﻿:root {
            --main-bg: #fefefe;
            --header-bg: #6c6c70;
            --card-bg: rgba(255, 255, 255, 0.92);
            --accent-gold: #ffd700;
            --accent-gold-dark: #daa520;
            --text-dark: #333333;
            --text-medium: #555555;
            --border-light: rgba(224, 224, 224, 0.7);
            --shadow-light: rgba(0, 0, 0, 0.08);
            --header-height: 82px;
            --gp-color: #4285F4;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            color: var(--text-dark);
            line-height: 1.6;
            min-height: 100vh;
            position: relative;
        }
        
        .background-image {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url('../images/site/img.png');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            opacity: 0.2;
            filter: blur(2px) brightness(1.1);
            z-index: -2;
        }
        
        .background-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(254, 254, 254, 0.7);
            z-index: -1;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        .site-header {
            background-color: var(--header-bg);
            box-shadow: 0 4px 15px var(--shadow-light);
            position: sticky;
            top: 0;
            z-index: 100;
            border-bottom: 2px solid var(--accent-gold);
            backdrop-filter: blur(5px);
            height: var(--header-height);
        }
        
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
            height: 100%;
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .logo-img {
            height: 40px;
            width: auto;
            object-fit: contain;
        }
        
        .logo-img-mobile {
            display: none;
            height: 40px;
            width: auto;
            object-fit: contain;
        }
        
        .logo-text {
            font-size: 28px;
            font-weight: 700;
            color: var(--text-dark);
        }
        
        .logo-text span {
            color: var(--accent-gold-dark);
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
        }
        
        .btn-gp-desktop {
            background: linear-gradient(145deg, #4285F4, #3367D6);
            color: #fff !important;
            padding: 8px 20px !important;
            border: none;
            border-radius: 6px;
            font-weight: 600;
            box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            text-decoration: none;
            height: 36px;
            font-size: 14px;
            margin-left: 15px;
        }
        
        .btn-gp-desktop:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(66, 133, 244, 0.4);
            background: linear-gradient(145deg, #3367D6, #4285F4);
        }
        
        .mobile-gp-icon {
            display: none;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: linear-gradient(145deg, #4285F4, #3367D6);
            color: white;
            text-decoration: none;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
            position: relative;
            font-weight: 700;
            font-size: 16px;
            margin-right: 10px;
        }
        
        .mobile-gp-icon:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
        }
        
        .mobile-gp-icon i {
            font-size: 18px;
        }
        
        .desktop-nav ul {
            display: flex;
            list-style: none;
            gap: 25px;
            align-items: center;
        }
        
        .desktop-nav a {
            text-decoration: none;
            color: var(--text-dark);
            font-weight: 600;
            font-size: 16px;
            padding: 10px 16px;
            border-radius: 6px;
            transition: all 0.3s ease;
            position: relative;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .desktop-nav a:hover {
            color: var(--accent-gold-dark);
            background-color: rgba(255, 215, 0, 0.08);
        }
        
        .desktop-nav a.active {
            color: var(--accent-gold-dark);
            background-color: rgba(255, 215, 0, 0.05);
        }
        
        .desktop-nav a.active::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 16px;
            right: 16px;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
        }
        
        .btn-download, .btn-all-news, .btn-account {
            background: linear-gradient(145deg, #ffd700, #daa520);
            color: #fff !important;
            padding: 10px 24px !important;
            border: none;
            border-radius: 8px;
            font-weight: 700;
            box-shadow: 0 4px 15px rgba(218, 165, 32, 0.3), 
                        0 0 20px rgba(255, 215, 0, 0.2),
                        inset 0 1px 0 rgba(255, 255, 255, 0.3);
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            text-decoration: none;
            height: 44px;
            font-size: 16px;
        }
        
        .btn-all-news {
            margin: 20px auto 0;
            max-width: 200px;
        }
        
        .btn-download::before, .btn-all-news::before, .btn-account::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
            transform: rotate(45deg);
            animation: shine 3s infinite;
        }
        
        @keyframes shine {
            0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
            100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
        }
        
        .btn-download:hover, .btn-all-news:hover, .btn-account:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(218, 165, 32, 0.4), 
                        0 0 25px rgba(255, 215, 0, 0.3),
                        inset 0 1px 0 rgba(255, 255, 255, 0.4);
        }
        
        .mobile-account-icon {
            display: none;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: linear-gradient(145deg, #ffd700, #daa520);
            color: white;
            text-decoration: none;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(218, 165, 32, 0.3);
            position: relative;
            overflow: hidden;
        }
        
        .mobile-account-icon::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
            transform: rotate(45deg);
            animation: shine 3s infinite;
        }
        
        .mobile-account-icon:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(218, 165, 32, 0.4);
        }
        
        .mobile-account-icon i {
            font-size: 20px;
            position: relative;
            z-index: 1;
        }
        
        .mobile-menu-btn {
            display: none;
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 999;
            background: linear-gradient(145deg, #ffd700, #daa520);
            color: white;
            border: none;
            border-radius: 50%;
            width: 60px;
            height: 60px;
            font-size: 24px;
            box-shadow: 0 4px 15px rgba(218, 165, 32, 0.4), 
                        0 0 20px rgba(255, 215, 0, 0.3);
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .mobile-menu-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 20px rgba(218, 165, 32, 0.5), 
                        0 0 25px rgba(255, 215, 0, 0.4);
        }
        
        .main-content {
            display: flex;
            gap: 30px;
            margin: 30px 0;
        }
        
        .left-column {
            flex: 1;
        }
        
        .right-column {
            flex: 2;
        }
        
        .section-title {
            font-size: 22px;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid rgba(255, 215, 0, 0.2);
            color: var(--text-dark);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .section-title i {
            color: var(--accent-gold);
        }
        
        .popular-articles {
            background-color: var(--card-bg);
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0 5px 20px var(--shadow-light);
            margin-bottom: 25px;
            border: 1px solid var(--border-light);
            backdrop-filter: blur(3px);
        }
        
        .article-item {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--border-light);
            transition: transform 0.2s ease;
        }
        
        .article-item:hover {
            transform: translateX(5px);
        }
        
        .article-item:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }
        
        .article-rank {
            font-size: 24px;
            font-weight: 700;
            color: var(--accent-gold);
            min-width: 30px;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
        }
        
        .article-content h3 {
            font-size: 16px;
            margin-bottom: 8px;
            color: var(--text-dark);
        }
        
        .article-content p {
            font-size: 14px;
            color: var(--text-medium);
            margin-bottom: 5px;
        }
        
        .article-meta {
            font-size: 12px;
            color: #888;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .article-meta i {
            color: var(--accent-gold);
        }
        
        .rating-table {
            background-color: var(--card-bg);
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0 5px 20px var(--shadow-light);
            margin-bottom: 25px;
            border: 1px solid var(--border-light);
            backdrop-filter: blur(3px);
        }
        
        .rating-tabs {
            display: flex;
            margin-bottom: 20px;
            border-bottom: 2px solid rgba(255, 215, 0, 0.2);
        }
        
        .rating-tab {
            padding: 10px 20px;
            font-size: 16px;
            font-weight: 600;
            color: var(--text-medium);
            background: none;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
        }
        
        .rating-tab:hover {
            color: var(--accent-gold-dark);
        }
        
        .rating-tab.active {
            color: var(--accent-gold-dark);
        }
        
        .rating-tab.active::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            right: 0;
            height: 2px;
            background-color: var(--accent-gold);
        }
        
        .rating-content {
            display: none;
        }
        
        .rating-content.active {
            display: block;
            animation: fadeIn 0.5s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .rating-table table {
            width: 100%;
            border-collapse: collapse;
            table-layout: fixed;
        }
        
        .rating-table th:first-child,
        .rating-table td:first-child {
            width: 35px;
        }
        
        .rating-table th:nth-child(2),
        .rating-table td:nth-child(2) {
            width: 55%;
        }
        
        .rating-table th:nth-child(3),
        .rating-table td:nth-child(3) {
            width: 20%;
        }
        
        .rating-table th:nth-child(4),
        .rating-table td:nth-child(4) {
            width: 25%;
        }
        
        .rating-table th {
            text-align: left;
            padding: 12px 15px;
            font-weight: 600;
            color: var(--accent-gold-dark);
            border-bottom: 2px solid rgba(255, 215, 0, 0.2);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .rating-table td {
            padding: 12px 15px;
            border-bottom: 1px solid var(--border-light);
            transition: background-color 0.2s ease;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .rating-table tr:hover td {
            background-color: rgba(255, 215, 0, 0.05);
        }
        
        .rating-table tr:last-child td {
            border-bottom: none;
        }
        
        .clan-rank, .hero-rank {
            font-weight: 700;
            color: var(--accent-gold);
            text-align: center;
            font-size: 16px;
        }
        
        .clan-name, .hero-name {
            font-weight: 600;
        }
        
        .clan-level, .hero-level {
            font-weight: 600;
            color: var(--accent-gold-dark);
            text-align: center;
        }
        
        .hero-class {
            text-align: center;
            color: var(--text-medium);
            font-weight: 500;
        }
        
        .class-fairy {
            color: #e600ff;
        }
        
        .class-warrior {
            color: #cc0000;
        }
        
        .class-mage {
            color: #0066cc;
        }
        
        .news-item {
            background-color: var(--card-bg);
            border-radius: 12px;
            padding: 25px;
            margin-bottom: 25px;
            box-shadow: 0 5px 20px var(--shadow-light);
            transition: all 0.3s ease;
            border: 1px solid var(--border-light);
            backdrop-filter: blur(3px);
        }
        
        .news-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            border-color: rgba(255, 215, 0, 0.3);
        }
        
        .news-item h3 {
            font-size: 20px;
            margin-bottom: 10px;
            color: var(--text-dark);
        }
        
        .news-date {
            color: var(--accent-gold-dark);
            font-size: 14px;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .news-excerpt {
            color: var(--text-medium);
            margin-bottom: 15px;
        }
        
        .news-image {
            width: 100%;
            height: 200px;
            background: linear-gradient(45deg, rgba(255, 215, 0, 0.1), rgba(218, 165, 32, 0.05));
            border-radius: 8px;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--accent-gold);
            font-size: 50px;
            overflow: hidden;
            border: 1px solid rgba(255, 215, 0, 0.2);
        }
        
        .news-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .read-more {
            display: inline-block;
            color: var(--accent-gold-dark);
            text-decoration: none;
            font-weight: 600;
            font-size: 14px;
            position: relative;
            padding-right: 20px;
        }
        
        .read-more::after {
            content: '→';
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            transition: right 0.2s ease;
        }
        
        .read-more:hover {
            color: #c69500;
        }
        
        .read-more:hover::after {
            right: -5px;
        }
        
        .mobile-tab-switcher {
            display: none;
            margin: 20px auto 30px;
            width: 90%;
            max-width: 320px;
        }
        
        .tab-switcher {
            display: flex;
            background-color: rgba(255, 255, 255, 0.9);
            border-radius: 12px;
            padding: 5px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            border: 1px solid var(--border-light);
            position: relative;
            overflow: hidden;
        }
        
        .tab-btn {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 12px 15px;
            background: none;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            color: var(--text-medium);
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            z-index: 1;
        }
        
        .tab-btn i {
            font-size: 18px;
            transition: all 0.3s ease;
        }
        
        .tab-btn.active {
            color: #fff;
            background: linear-gradient(145deg, #ffd700, #daa520);
            box-shadow: 0 4px 10px rgba(218, 165, 32, 0.3);
        }
        
        .tab-btn.active i {
            color: #fff;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        }
        
        .tab-btn:not(.active):hover {
            color: var(--accent-gold-dark);
            background-color: rgba(255, 215, 0, 0.08);
        }
        
        .tab-btn:not(.active):hover i {
            color: var(--accent-gold-dark);
        }
        
        .faq-content {
            display: none;
            animation: fadeIn 0.5s ease;
        }
        
        .faq-content.active {
            display: block;
        }
        
        .faq-item {
            background-color: var(--card-bg);
            border-radius: 12px;
            padding: 25px;
            margin-bottom: 20px;
            box-shadow: 0 5px 15px var(--shadow-light);
            border: 1px solid var(--border-light);
            backdrop-filter: blur(3px);
            transition: all 0.3s ease;
        }
        
        .faq-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
            border-color: rgba(255, 215, 0, 0.3);
        }
        
        .faq-item h3 {
            font-size: 18px;
            margin-bottom: 15px;
            color: var(--accent-gold-dark);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .faq-item h3 i {
            color: var(--accent-gold);
        }
        
        .faq-item p {
            color: var(--text-medium);
            line-height: 1.6;
        }
        
        .faq-item p strong {
            color: var(--text-dark);
        }
        
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }
        
        .modal-content {
            background-color: var(--card-bg);
            border-radius: 12px;
            width: 90%;
            max-width: 450px;
            padding: 30px;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
            position: relative;
            animation: modalFadeIn 0.3s ease;
            border: 1px solid var(--border-light);
            backdrop-filter: blur(5px);
        }
        
        @keyframes modalFadeIn {
            from { opacity: 0; transform: translateY(-30px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .close-modal {
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 24px;
            color: var(--text-medium);
            cursor: pointer;
            transition: color 0.3s;
        }
        
        .close-modal:hover {
            color: var(--accent-gold);
        }
        
        .modal-title {
            font-size: 24px;
            margin-bottom: 25px;
            text-align: center;
            color: var(--text-dark);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        
        .modal-title i {
            color: var(--accent-gold);
        }
        
        .auth-form {
            display: block;
        }
        
        .auth-form.hidden {
            display: none;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 8px;
            color: var(--text-dark);
            font-weight: 600;
        }
        
        .form-group input {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid var(--border-light);
            border-radius: 8px;
            font-size: 16px;
            transition: all 0.3s;
            background-color: rgba(254, 254, 254, 0.8);
        }
        
        .form-group input:focus {
            border-color: var(--accent-gold);
            outline: none;
            box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
        }
        
        .form-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .remember-me {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            color: var(--text-medium);
        }
        
        .remember-me input {
            width: auto;
        }
        
        .forgot-password {
            color: var(--accent-gold-dark);
            text-decoration: none;
            font-size: 14px;
            transition: color 0.3s;
        }
        
        .forgot-password:hover {
            color: #c69500;
            text-decoration: underline;
        }
        
        .form-buttons {
            display: flex;
            gap: 15px;
            margin-top: 30px;
        }
        
        .btn-login, .btn-register {
            flex: 1;
            padding: 15px;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            position: relative;
            overflow: hidden;
        }
        
        .btn-login {
            background: linear-gradient(145deg, #ffd700, #daa520);
            color: white;
            box-shadow: 0 4px 15px rgba(218, 165, 32, 0.25);
        }
        
        .btn-login::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
            transform: rotate(45deg);
            animation: shine 3s infinite;
        }
        
        .btn-register {
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 248, 248, 0.9));
            color: var(--text-dark);
            border: 2px solid var(--accent-gold);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        }
        
        .btn-login:hover, .btn-register:hover {
            transform: translateY(-3px);
        }
        
        .btn-login:hover {
            box-shadow: 0 6px 20px rgba(218, 165, 32, 0.35);
        }
        
        .btn-register:hover {
            background: linear-gradient(145deg, rgba(248, 248, 248, 0.95), rgba(255, 255, 255, 0.95));
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
        }
        
        .auth-links {
            text-align: center;
            margin-top: 20px;
            color: var(--text-medium);
            font-size: 14px;
        }
        
        .auth-links a {
            color: var(--accent-gold-dark);
            text-decoration: none;
            font-weight: 600;
        }
        
        .auth-links a:hover {
            text-decoration: underline;
        }
        
        body > footer {
            background-color: var(--header-bg);
            border-top: 2px solid rgba(255, 215, 0, 0.3);
            padding: 30px 0;
            margin-top: 40px;
            backdrop-filter: blur(5px);
        }
        
        .footer-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .copyright {
            color: var(--text-medium);
            font-size: 14px;
        }
        
        .social-links {
            display: flex;
            gap: 15px;
        }
        
        .social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background-color: var(--card-bg);
            color: var(--accent-gold-dark);
            border-radius: 50%;
            text-decoration: none;
            transition: all 0.3s ease;
            border: 1px solid var(--border-light);
            box-shadow: 0 2px 8px var(--shadow-light);
        }
        
        .social-links a:hover {
            background-color: var(--accent-gold);
            color: white;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(218, 165, 32, 0.3);
        }
        
        .news-footer {
            text-align: center;
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid var(--border-light);
        }
        
        @media (max-width: 992px) {
            .main-content {
                flex-direction: column;
            }
            
            .left-column {
                display: none;
            }
            
            .mobile-tab-switcher {
                display: block;
            }
            
            .desktop-nav {
                display: none !important;
            }
            
            .mobile-account-icon {
                display: flex;
            }
            
            .mobile-gp-icon {
                display: flex;
            }
            
            .logo-img {
                display: none;
            }
            
            .logo-img-mobile {
                display: block;
            }
            
            .mobile-menu-btn {
                display: flex;
                align-items: center;
                justify-content: center;
            }
            
            .right-column .section-title:first-child {
                display: none;
            }
            
            .form-buttons {
                flex-direction: column;
            }
            
            .rating-table th:first-child,
            .rating-table td:first-child {
                width: 30px;
            }
            
            .rating-table th:nth-child(2),
            .rating-table td:nth-child(2) {
                width: 50%;
            }
            
            .rating-table th:nth-child(3),
            .rating-table td:nth-child(3) {
                width: 20%;
            }
            
            .rating-table th:nth-child(4),
            .rating-table td:nth-child(4) {
                width: 25%;
            }
        }
        
        @media (min-width: 993px) {
            .desktop-nav {
                display: block !important;
            }
            
            .mobile-account-icon {
                display: none !important;
            }
            
            .mobile-gp-icon {
                display: none !important;
            }
            
            .logo-img {
                display: block;
            }
            
            .logo-img-mobile {
                display: none !important;
            }
            
            .mobile-menu-btn {
                display: none !important;
            }
        }
        
        @media (max-width: 768px) {
            .header-content {
                flex-direction: row;
                gap: 10px;
            }
            
            .footer-content {
                flex-direction: column;
                gap: 20px;
                text-align: center;
            }
            
            .logo-text {
                font-size: 24px;
            }
            
            .rating-table {
                padding: 15px;
            }
            
            .rating-table th, .rating-table td {
                padding: 8px 10px;
                font-size: 14px;
            }
            
            .rating-tab {
                padding: 8px 15px;
                font-size: 14px;
            }
            
            .clan-rank, .hero-rank {
                font-size: 14px;
            }
        }
        
        @media (max-width: 480px) {
            .logo-text {
                font-size: 20px;
            }
            
            .news-item h3 {
                font-size: 18px;
            }
            
            .rating-table th, .rating-table td {
                padding: 6px 8px;
                font-size: 13px;
            }
            
            .hero-class {
                display: table-cell;
            }
            
            .rating-table th:first-child,
            .rating-table td:first-child {
                width: 25px;
            }
            
            .rating-table th:nth-child(2),
            .rating-table td:nth-child(2) {
                width: 45%;
            }
            
            .rating-table th:nth-child(3),
            .rating-table td:nth-child(3) {
                width: 20%;
            }
            
            .rating-table th:nth-child(4),
            .rating-table td:nth-child(4) {
                width: 25%;
            }
            
            .modal-content {
                padding: 20px;
            }
            
            .form-options {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
            }
            
            .clan-rank, .hero-rank {
                font-size: 13px;
            }
            
            .tab-btn {
                padding: 10px 12px;
                font-size: 14px;
            }
            
            .tab-btn i {
                font-size: 16px;
            }
        }

html {
    scroll-behavior: smooth;
}

body {
    background: #f7f7f5;
    display: flex;
    flex-direction: column;
}

body.menu-open {
    overflow: hidden;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.site-header {
    background: rgba(78, 78, 82, 0.96);
}

.brand-link {
    display: inline-flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
}

.brand-link picture {
    display: flex;
    align-items: center;
}

.brand-link img {
    width: auto;
    height: 42px;
    max-width: 220px;
    object-fit: contain;
}

.desktop-nav a {
    color: #f5f5f5;
}

.desktop-nav a.active,
.desktop-nav a:hover {
    color: var(--accent-gold);
}

.mobile-header-actions {
    display: none;
    align-items: center;
    gap: 10px;
}

.mobile-download-icon,
.mobile-account-icon {
    display: inline-flex;
}

.mobile-download-icon {
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-gold);
    text-decoration: none;
    border: 1px solid rgba(255, 215, 0, 0.25);
}

.mobile-drawer {
    position: fixed;
    inset: var(--header-height) 0 0;
    z-index: 900;
    padding: 22px;
    background: rgba(51, 51, 54, 0.98);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.mobile-drawer.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-drawer ul {
    display: grid;
    gap: 12px;
    list-style: none;
    max-width: 520px;
    margin: 0 auto;
}

.mobile-drawer a {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 54px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 650;
}

.mobile-drawer a.active,
.mobile-drawer a:hover {
    color: var(--accent-gold);
    border-color: rgba(255, 215, 0, 0.4);
    background: rgba(255, 215, 0, 0.07);
}

.page-main {
    flex: 1;
    width: 100%;
    padding: 34px 0 60px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 38px 42px;
    margin-bottom: 28px;
    border: 1px solid rgba(218, 165, 32, 0.22);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(255, 251, 226, 0.92));
    box-shadow: 0 8px 30px var(--shadow-light);
}

.page-hero::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    top: -105px;
    right: -65px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.28), transparent 68%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    color: var(--accent-gold-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-hero h1 {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin-bottom: 10px;
    color: #29292c;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.12;
}

.page-hero p {
    position: relative;
    z-index: 1;
    max-width: 720px;
    color: var(--text-medium);
    font-size: 17px;
}

.page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 28px;
    align-items: start;
}

.content-card,
.sidebar-card {
    padding: 26px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: var(--card-bg);
    box-shadow: 0 5px 20px var(--shadow-light);
}

.sidebar-card + .sidebar-card {
    margin-top: 20px;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(218, 165, 32, 0.22);
    font-size: 22px;
}

.card-title i {
    color: var(--accent-gold-dark);
}

.muted {
    color: #777;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.1);
    color: #765d00;
    font-size: 13px;
    font-weight: 700;
}

.link-list {
    display: grid;
    gap: 5px;
    list-style: none;
}

.link-list a {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    color: var(--text-medium);
    text-decoration: none;
    border-bottom: 1px solid rgba(224, 224, 224, 0.75);
}

.link-list a:hover {
    color: var(--accent-gold-dark);
}

.home-intro {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 24px;
    min-height: 370px;
    aspect-ratio: 1983 / 793;
    overflow: hidden;
    border-color: rgba(255, 187, 44, 0.5);
    color: #fff;
    background: #0a0a10;
}

.home-intro::after {
    display: none;
}

.home-intro-art,
.home-intro-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-intro-art {
    z-index: 0;
    display: block;
    object-fit: contain;
    object-position: center;
}

.home-intro-shade {
    z-index: 1;
    background: linear-gradient(90deg, rgba(10, 10, 16, 0.94) 0%, rgba(10, 10, 16, 0.76) 42%, rgba(10, 10, 16, 0.08) 72%, transparent 100%);
    pointer-events: none;
}

.home-intro-copy {
    position: relative;
    z-index: 2;
    max-width: 570px;
}

.home-intro .eyebrow {
    color: #ffd84a;
}

.home-intro h1 {
    color: #fff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.42);
}

.home-intro p {
    color: rgba(255, 255, 255, 0.86);
}

.home-intro-actions {
    position: relative;
    z-index: 2;
    display: flex;
    flex-shrink: 0;
    gap: 12px;
}

.home-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: stretch;
}

.home-news {
    width: 100%;
    margin: 0;
    padding: 30px 34px 25px;
}

.home-section-heading,
.home-help-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.home-section-heading {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(218, 165, 32, 0.24);
}

.home-section-heading .eyebrow {
    margin-bottom: 4px;
}

.home-section-heading h2 {
    font-size: 28px;
}

.home-help-link {
    padding-top: 22px;
    color: var(--text-medium);
}

.home-news-list {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
    gap: 14px;
    padding: 24px 0 4px;
}

.home-news-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    overflow: hidden;
    min-width: 0;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    background: #fff;
}

.home-news-preview,
.simple-news-preview {
    display: block;
    overflow: hidden;
    background: #15151a;
}

.home-news-preview {
    height: 100%;
    min-height: 160px;
}

.home-news-preview img,
.simple-news-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.home-news-preview:hover img,
.simple-news-preview:hover img {
    transform: scale(1.035);
}

.news-preview-left {
    object-position: 18% center;
}

.news-preview-center {
    object-position: 50% center;
}

.news-preview-right {
    object-position: 78% center;
}

.news-preview-far-right {
    object-position: 94% center;
}

.home-news-body {
    display: flex;
    flex: 1;
    padding: 19px;
    flex-direction: column;
}

.home-news-body h3 {
    margin: 7px 0 9px;
    font-size: 18px;
    line-height: 1.35;
}

.home-news-body h3 a {
    color: var(--text-dark);
    text-decoration: none;
}

.home-news-body h3 a:hover {
    color: var(--accent-gold-dark);
}

.home-news-body p {
    flex: 1;
    margin-bottom: 14px;
    color: var(--text-medium);
}

.home-rating {
    display: flex;
    min-width: 0;
    padding: 30px 26px 25px;
    flex-direction: column;
}

.home-rating-heading {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(218, 165, 32, 0.24);
}

.home-rating-heading .eyebrow {
    margin-bottom: 4px;
}

.home-rating-heading h2 {
    font-size: 28px;
}

.home-rating-list {
    display: grid;
    gap: 2px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.home-rating-list li {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 7px 4px;
    border-bottom: 1px solid #ededed;
}

.rating-position {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #777;
    background: #f0f0f0;
    font-size: 13px;
    font-weight: 800;
}

.home-rating-list li:nth-child(-n + 3) .rating-position {
    color: #725a00;
    background: rgba(255, 215, 0, 0.25);
}

.rating-name {
    min-width: 0;
}

.rating-name strong,
.rating-name small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rating-name strong {
    color: var(--text-dark);
    font-size: 14px;
}

.rating-name small {
    margin-top: 2px;
    color: #888;
    font-size: 12px;
}

.rating-value {
    display: grid;
    justify-items: end;
    color: #8a7430;
    font-size: 12px;
    white-space: nowrap;
}

.rating-value strong {
    font-size: 13px;
    font-weight: 800;
}

.home-rating-empty {
    display: grid;
    place-items: center;
    gap: 10px;
    min-height: 260px;
    color: #8a8a8a;
    text-align: center;
}

.home-rating-empty i {
    color: rgba(218, 165, 32, 0.55);
    font-size: 32px;
}

.home-rating-empty p {
    margin: 0;
}

.home-rating-note {
    margin-top: auto;
    padding-top: 16px;
    color: #8a8a8a;
    font-size: 12px;
}

.button-primary,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 11px 20px;
    border: 0;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 750;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button-primary {
    color: #fff;
    background: linear-gradient(145deg, #ffd700, #daa520);
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.3);
}

.button-secondary {
    color: #4d4d50;
    background: #fff;
    border: 1px solid #d9d9d9;
}

.button-primary:hover,
.button-secondary:hover {
    transform: translateY(-2px);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 26px 0;
}

.stat-card {
    padding: 20px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 16px var(--shadow-light);
}

.stat-card strong {
    display: block;
    color: var(--accent-gold-dark);
    font-size: 28px;
}

.simple-news-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 34px 28px;
}

.simple-news-header {
    padding: 32px 0 20px;
    border-bottom: 1px solid rgba(218, 165, 32, 0.24);
}

.simple-news-header h1 {
    margin-bottom: 4px;
    font-size: clamp(30px, 5vw, 42px);
}

.simple-news-header p {
    color: var(--text-medium);
}

.simple-news-list {
    display: grid;
}

.simple-news-item {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    padding: 25px 0;
    border-bottom: 1px solid #e9e9e9;
}

.simple-news-preview {
    height: 138px;
    border-radius: 9px;
}

.simple-news-body {
    align-self: center;
    min-width: 0;
}

.simple-news-item h2 {
    margin: 7px 0 8px;
    font-size: 22px;
    line-height: 1.35;
}

.simple-news-item h2 a {
    color: var(--text-dark);
    text-decoration: none;
}

.simple-news-item h2 a:hover {
    color: var(--accent-gold-dark);
}

.simple-news-item p {
    margin-bottom: 11px;
    color: var(--text-medium);
}

.news-article-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 38px 44px 42px;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: #777;
    text-decoration: none;
    font-weight: 700;
}

.article-back:hover {
    color: var(--accent-gold-dark);
}

.news-article-page h1 {
    margin: 10px 0 12px;
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.16;
}

.article-lead {
    color: var(--text-medium);
    font-size: 18px;
}

.article-visual {
    display: grid;
    place-items: center;
    min-height: 270px;
    margin: 27px 0;
    border: 1px solid rgba(218, 165, 32, 0.22);
    border-radius: 12px;
    color: var(--accent-gold);
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.1), rgba(108, 108, 112, 0.06));
    font-size: 72px;
}

.article-body {
    color: #444;
    font-size: 16px;
    line-height: 1.75;
}

.article-body p + p {
    margin-top: 15px;
}

.article-body h2 {
    margin: 28px 0 10px;
    color: var(--text-dark);
    font-size: 24px;
}

.article-body ul {
    display: grid;
    gap: 7px;
    margin: 10px 0 0 21px;
}

.article-figure {
    margin: 26px 0;
    text-align: center;
}

.article-figure figcaption {
    margin-top: 8px;
    color: #858585;
    font-size: 13px;
}

.article-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 25px 0;
}

.article-gallery .article-figure {
    margin: 0;
}

.article-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 25px 0;
    padding: 16px 18px;
    border-left: 3px solid var(--accent-gold-dark);
    border-radius: 0 8px 8px 0;
    color: #665516;
    background: rgba(255, 215, 0, 0.08);
}

.article-note i {
    margin-top: 5px;
    color: var(--accent-gold-dark);
}

.article-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid #e8e8e8;
}

.news-list {
    display: grid;
    gap: 20px;
}

.news-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 5px 18px var(--shadow-light);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.1);
}

.news-card-visual {
    display: grid;
    place-items: center;
    min-height: 205px;
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.12), rgba(218, 165, 32, 0.04));
    color: var(--accent-gold);
    font-size: 54px;
}

.news-card-body {
    padding: 23px 25px;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 9px;
    color: #8a7b3b;
    font-size: 13px;
}

.news-card h2 {
    margin-bottom: 9px;
    font-size: 22px;
    line-height: 1.35;
}

.news-card p {
    margin-bottom: 14px;
    color: var(--text-medium);
}

.text-link {
    color: var(--accent-gold-dark);
    text-decoration: none;
    font-weight: 750;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 26px;
}

.pagination a,
.pagination span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 7px;
    color: #555;
    background: #fff;
    border: 1px solid #ddd;
    text-decoration: none;
}

.pagination .active {
    color: #fff;
    border-color: var(--accent-gold-dark);
    background: var(--accent-gold-dark);
}

.sr-only {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    border: 0;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.guide-catalog-page {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 34px 34px;
}

.guide-catalog-header {
    padding: 32px 0 22px;
    border-bottom: 1px solid rgba(218, 165, 32, 0.24);
}

.guide-catalog-header h1 {
    margin: 4px 0 7px;
    font-size: clamp(30px, 5vw, 42px);
    line-height: 1.15;
}

.guide-catalog-header p {
    max-width: 700px;
    color: var(--text-medium);
    font-size: 16px;
}

.guide-catalog-tools {
    display: grid;
    gap: 16px;
    margin: 24px 0 22px;
}

.guide-search {
    position: relative;
    display: block;
}

.guide-search i {
    position: absolute;
    top: 50%;
    left: 16px;
    color: #999;
    transform: translateY(-50%);
}

.guide-search input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 1px solid #d8d8d8;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--text-dark);
    font: inherit;
    outline: none;
}

.guide-search input:focus {
    border-color: var(--accent-gold-dark);
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.1);
}

.guide-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.guide-filter {
    padding: 8px 13px;
    border: 1px solid #dedede;
    border-radius: 999px;
    background: #fff;
    color: #676767;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.guide-filter:hover {
    border-color: rgba(218, 165, 32, 0.65);
    color: var(--accent-gold-dark);
}

.guide-filter.is-active {
    border-color: var(--accent-gold-dark);
    background: var(--accent-gold-dark);
    color: #fff;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.guide-card {
    display: flex;
    overflow: hidden;
    min-width: 0;
    min-height: 100%;
    flex-direction: column;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

a.guide-card:hover {
    border-color: rgba(218, 165, 32, 0.55);
    box-shadow: 0 12px 28px rgba(45, 35, 10, 0.1);
    transform: translateY(-2px);
}

.guide-card[hidden] {
    display: none;
}

.guide-card.is-coming {
    background: rgba(255, 255, 255, 0.82);
}

.guide-card-preview {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #eee9d8;
}

.guide-card-preview > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guide-card-placeholder {
    display: grid;
    place-items: center;
    color: rgba(139, 105, 13, 0.68);
    background:
        radial-gradient(circle at 75% 20%, rgba(255, 215, 0, 0.22), transparent 34%),
        linear-gradient(135deg, #faf6e6, #eee3bc);
    font-size: 42px;
}

.guide-card-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    background: rgba(40, 35, 25, 0.78);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(5px);
}

.guide-card-status.is-ready {
    background: rgba(167, 122, 7, 0.9);
}

.guide-card-content {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.guide-card-category,
.guide-article-category {
    color: var(--accent-gold-dark);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.guide-card h2 {
    margin: 5px 0 8px;
    font-size: 21px;
    line-height: 1.28;
}

.guide-card p {
    color: var(--text-medium);
    font-size: 14px;
    line-height: 1.55;
}

.guide-card-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 14px;
    margin-top: auto;
    padding-top: 16px;
    color: #91835a;
    font-size: 12px;
}

.guide-card-meta i {
    margin-right: 4px;
}

.guide-empty {
    display: none;
    place-items: center;
    gap: 5px;
    padding: 48px 20px 28px;
    color: #777;
    text-align: center;
}

.guide-empty.is-visible {
    display: grid;
}

.guide-empty i {
    margin-bottom: 5px;
    color: var(--accent-gold-dark);
    font-size: 30px;
}

.guide-empty span {
    font-size: 13px;
}

.guide-article-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 38px 50px 46px;
}

.guide-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 11px;
    color: #8b8b8b;
    font-size: 13px;
}

.guide-breadcrumbs a {
    color: var(--accent-gold-dark);
    text-decoration: none;
    font-weight: 750;
}

.guide-breadcrumbs i {
    font-size: 9px;
}

.guide-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 15px;
    margin: 8px 0 9px;
    color: #8a7b3b;
    font-size: 13px;
}

.guide-article-page > h1 {
    max-width: 820px;
    margin: 8px 0 12px;
    font-size: clamp(32px, 5vw, 46px);
    line-height: 1.12;
}

.guide-article-lead {
    max-width: 780px;
    color: var(--text-medium);
    font-size: 18px;
    line-height: 1.6;
}

.guide-toc {
    max-width: 800px;
    margin: 28px auto 32px;
    padding: 18px 20px;
    border: 1px solid rgba(218, 165, 32, 0.28);
    border-radius: 10px;
    background: rgba(255, 215, 0, 0.055);
}

.guide-toc h2 {
    margin: 0 0 11px;
    font-size: 18px;
}

.guide-toc h2 i {
    margin-right: 7px;
    color: var(--accent-gold-dark);
}

.guide-toc ol {
    display: grid;
    gap: 7px;
    margin-left: 22px;
}

.guide-toc a {
    color: #665516;
    text-decoration: none;
    font-weight: 700;
}

.guide-toc a:hover {
    color: var(--accent-gold-dark);
    text-decoration: underline;
}

.guide-article-body {
    max-width: 800px;
    margin: 0 auto;
    color: #444;
    font-size: 16px;
    line-height: 1.75;
}

.guide-article-body section {
    scroll-margin-top: 110px;
}

.guide-article-body h2 {
    margin: 42px 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(218, 165, 32, 0.22);
    color: var(--text-dark);
    font-size: 28px;
    line-height: 1.25;
}

.guide-article-body > h2,
.article-body > h2 {
    scroll-margin-top: 110px;
}

.guide-article-body > h2:first-child {
    margin-top: 0;
}

.guide-article-body section:first-child h2 {
    margin-top: 0;
}

.guide-article-body h3 {
    margin: 27px 0 8px;
    color: var(--text-dark);
    font-size: 20px;
}

.guide-article-body p + p {
    margin-top: 14px;
}

.guide-article-body ul {
    display: grid;
    gap: 7px;
    margin: 15px 0 0 22px;
}

.guide-callout {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin: 25px 0;
    padding: 17px 18px;
    border-left: 3px solid #9d9d9d;
    border-radius: 0 9px 9px 0;
    background: #f5f5f5;
}

.guide-callout > i {
    margin-top: 4px;
    color: #777;
    font-size: 18px;
}

.guide-callout strong {
    display: block;
    margin-bottom: 3px;
    color: var(--text-dark);
}

.guide-callout.is-warning {
    border-left-color: var(--accent-gold-dark);
    background: rgba(255, 215, 0, 0.09);
}

.guide-callout.is-warning > i,
.guide-callout.is-tip > i {
    color: var(--accent-gold-dark);
}

.guide-figure {
    margin: 26px 0;
    text-align: center;
}

.guide-image-button {
    position: relative;
    display: inline-grid;
    overflow: hidden;
    max-width: 100%;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #eee;
    box-shadow: 0 8px 22px rgba(42, 34, 17, 0.12);
    cursor: zoom-in;
}

.guide-image-button img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
}

.guide-image-zoom {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(25, 22, 17, 0.76);
    color: #fff;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.guide-image-button:hover .guide-image-zoom,
.guide-image-button:focus-visible .guide-image-zoom {
    opacity: 1;
}

.guide-figure figcaption {
    margin-top: 8px;
    color: #858585;
    font-size: 13px;
    line-height: 1.45;
}

.guide-figure-pair {
    display: grid;
    gap: 2px;
}

.guide-reward-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 21px;
}

.guide-reward-gallery .guide-figure {
    margin: 0;
}

.guide-article-footer {
    max-width: 800px;
    margin: 42px auto 0;
    padding-top: 25px;
    border-top: 1px solid #e6e6e6;
}

.guide-related {
    margin-top: 30px;
}

.guide-related h2 {
    margin-bottom: 12px;
    font-size: 20px;
}

.guide-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.guide-related-grid span,
.guide-related-grid a {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
    padding: 13px;
    border: 1px solid #e3e3e3;
    border-radius: 9px;
    background: #fafafa;
    color: #666;
    font-size: 13px;
    font-weight: 750;
}

.guide-related-grid a {
    padding: 12px;
    border: 1px solid #e5e1d7;
    border-radius: 8px;
    color: #665516;
    background: #fffdf6;
    font-weight: 700;
    text-decoration: none;
}

.public-empty,
.public-not-found {
    display: grid;
    min-height: 280px;
    place-items: center;
    align-content: center;
    gap: 10px;
    color: var(--text-medium);
    text-align: center;
}

.public-empty i,
.public-not-found > i {
    color: var(--accent-gold-dark);
    font-size: 34px;
}

.public-empty h2,
.public-not-found h1,
.public-empty p,
.public-not-found p {
    margin: 0;
}

.public-not-found {
    max-width: 720px;
    margin: 0 auto;
    padding: 50px 25px;
}

.public-not-found .button-primary {
    margin-top: 10px;
}

.guide-related-grid small {
    color: #a08a35;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.guide-lightbox-open {
    overflow: hidden;
}

.guide-lightbox {
    position: fixed;
    z-index: 2500;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(10, 9, 7, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.guide-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.guide-lightbox-dialog {
    position: relative;
    display: grid;
    place-items: center;
    max-width: 96vw;
    max-height: 94vh;
}

.guide-lightbox-dialog > img {
    display: block;
    max-width: min(1100px, 92vw);
    max-height: 82vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    object-fit: contain;
}

.guide-lightbox-dialog p {
    margin-top: 12px;
    color: #f3ecd2;
    font-size: 14px;
    text-align: center;
}

.guide-lightbox-close {
    position: absolute;
    z-index: 2;
    top: -13px;
    right: -13px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: #25221c;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.guide-filter:focus-visible,
.guide-card:focus-visible,
.guide-image-button:focus-visible,
.guide-lightbox-close:focus-visible,
.guide-toc a:focus-visible {
    outline: 3px solid rgba(218, 165, 32, 0.48);
    outline-offset: 3px;
}

@media (max-width: 760px) {
    .guide-catalog-page {
        padding: 24px 20px 28px;
    }

    .guide-catalog-header {
        padding: 0 0 19px;
    }

    .guide-grid,
    .guide-related-grid,
    .guide-reward-gallery,
    .article-gallery {
        grid-template-columns: 1fr;
    }

    .guide-card-meta time {
        display: none;
    }

    .guide-article-page {
        padding: 25px 19px 32px;
    }

    .guide-article-lead {
        font-size: 16px;
    }

    .guide-toc {
        margin: 24px 0 29px;
        padding: 16px;
    }

    .guide-article-body h2 {
        margin-top: 34px;
        font-size: 24px;
    }

    .guide-callout {
        padding: 15px;
    }

    .guide-lightbox {
        padding: 16px;
    }

    .guide-lightbox-dialog > img {
        max-width: 94vw;
        max-height: 78vh;
    }

    .guide-lightbox-close {
        top: -14px;
        right: 0;
    }
}

.simple-download-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 32px;
    border: 1px solid rgba(218, 165, 32, 0.24);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 28px var(--shadow-light);
    text-align: center;
}

.simple-download-card > img {
    display: block;
    width: 76px;
    height: 76px;
    margin: 0 auto 12px;
    object-fit: contain;
}

.simple-download-card h1 {
    margin-bottom: 8px;
    font-size: clamp(30px, 5vw, 42px);
}

.simple-download-card > p {
    color: var(--text-medium);
}

.simple-download-button {
    min-width: 245px;
    margin-top: 22px;
}

.download-options {
    display: grid;
    gap: 11px;
    max-width: 460px;
    margin: 23px auto 0;
}

.download-option-item {
    display: grid;
    min-width: 0;
    gap: 7px;
}

.download-choice {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 13px;
    min-height: 66px;
    padding: 11px 17px;
    border-radius: 9px;
    text-align: left;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-choice:hover {
    transform: translateY(-2px);
}
.download-choice.is-disabled {
    opacity: .58;
    cursor: not-allowed;
    filter: grayscale(.25);
}
.download-choice.is-disabled:hover {
    transform: none;
}

.download-choice > i {
    text-align: center;
    font-size: 19px;
}

.download-choice span {
    display: grid;
}

.download-choice strong {
    font-size: 16px;
}

.download-choice small {
    opacity: 0.72;
    font-size: 12px;
}

.download-choice.recommended {
    color: #fff;
    background: linear-gradient(145deg, #ffd700, #daa520);
    box-shadow: 0 5px 16px rgba(218, 165, 32, 0.3);
}

.download-guide-link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0 auto;
    color: #806313;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.download-guide-link:hover {
    color: #b08409;
    text-decoration: underline;
}

.download-guide-link:focus-visible {
    border-radius: 5px;
    outline: 3px solid rgba(218, 165, 32, .28);
    outline-offset: 3px;
}

.download-guide-link.is-disabled {
    opacity: .48;
    cursor: not-allowed;
    text-decoration: none;
}

.download-archive-panel {
    display: grid;
    gap: 13px;
    margin-top: 16px;
    padding: 16px;
    border: 1px solid rgba(189, 176, 145, .42);
    border-radius: 11px;
    background: rgba(255,255,255,.6);
}

.download-archive-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.download-archive-heading > i {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 10px;
    color: #9b7200;
    background: #fff1bd;
}

.download-archive-heading > span {
    display: grid;
    gap: 2px;
}

.download-archive-heading strong {
    color: #39362f;
    font-size: 16px;
}

.download-archive-heading small {
    color: #827b6e;
    font-size: 12px;
}

.download-archive-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.download-archive-links > a,
.download-archive-links > span {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid #e1d9c7;
    border-radius: 8px;
    color: #5b5138;
    background: #fff;
    font-size: 12px;
    font-weight: 750;
    transition: .18s ease;
}

.download-archive-links > a:hover {
    color: #7e5e06;
    border-color: #d8b54c;
    background: #fff9e9;
}

.download-archive-links > .is-disabled {
    opacity: .48;
    cursor: not-allowed;
}

.download-manual-patches {
    display: grid;
    gap: 8px;
    padding-top: 13px;
    border-top: 1px solid #e6decb;
}

.download-manual-patches-button {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 20px;
    min-height: 56px;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid #d7b64d;
    border-radius: 9px;
    color: #5c4505;
    background: linear-gradient(135deg, #fff9e5, #ffefad);
    box-shadow: 0 6px 16px rgba(129, 96, 6, .1);
    text-align: left;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.download-manual-patches-button > i {
    text-align: center;
}

.download-manual-patches-button > strong {
    font-size: 15px;
}

a.download-manual-patches-button:hover {
    color: #5c4505;
    border-color: #b78d13;
    box-shadow: 0 8px 20px rgba(129, 96, 6, .16);
    transform: translateY(-1px);
}

.download-manual-patches-button.is-disabled {
    opacity: .52;
    cursor: not-allowed;
    filter: grayscale(.2);
}

.download-choice.legacy {
    color: #555;
    border: 1px solid #d9d9d9;
    background: #fff;
}

.simple-start-card {
    max-width: 760px;
    margin: 22px auto 0;
}

.simple-download-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    color: #888;
    font-size: 13px;
}

.simple-download-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 22px auto 0;
}

.compact-list {
    display: grid;
    gap: 9px;
    list-style: none;
}

.compact-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 9px;
    border-bottom: 1px solid #ececec;
}

.compact-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.compact-list span {
    color: #888;
}

.compact-steps {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
    list-style: none;
}

.compact-steps li {
    display: flex;
    align-items: center;
    gap: 11px;
}

.compact-steps span {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    color: #fff;
    background: var(--accent-gold-dark);
    font-size: 13px;
    font-weight: 800;
}

.download-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 28px;
    align-items: center;
}

.download-version {
    display: inline-flex;
    gap: 8px;
    margin: 14px 0 22px;
    color: #777;
    font-size: 14px;
}

.download-art {
    display: grid;
    place-items: center;
    min-height: 260px;
    border: 1px solid rgba(255, 215, 0, 0.22);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.08), rgba(108, 108, 112, 0.08));
}

.download-art img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    filter: drop-shadow(0 12px 16px rgba(218, 165, 32, 0.22));
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.requirements-list {
    display: grid;
    gap: 10px;
    list-style: none;
}

.requirements-list li {
    display: grid;
    grid-template-columns: 115px 1fr;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ececec;
}

.requirements-list strong {
    color: #777;
    font-size: 13px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 24px;
}

.step-card {
    padding: 22px;
    border: 1px solid var(--border-light);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.94);
}

.step-number {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 13px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #ffd700, #daa520);
    font-weight: 800;
}

.account-entry-card {
    max-width: 560px;
    margin: 40px auto;
    text-align: center;
}

.account-entry-card .muted {
    margin: 8px 0 20px;
}

body.auth-modal-open {
    overflow: hidden;
}

.auth-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(28, 28, 30, 0.68);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.auth-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.auth-modal-card {
    position: relative;
    overflow: auto;
    width: min(100%, 520px);
    max-height: calc(100vh - 44px);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 22px 65px rgba(0, 0, 0, 0.3);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.2s ease;
}

.auth-modal-overlay.is-open .auth-modal-card {
    transform: translateY(0) scale(1);
}

.auth-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, 0.12);
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.auth-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 58px 22px 26px;
    color: #fff;
    background: linear-gradient(145deg, #555559, #6c6c70);
}

.auth-modal-header img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.auth-modal-header h2 {
    font-size: 23px;
    line-height: 1.2;
}

.auth-modal-header p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.auth-modal-body {
    padding: 24px 28px 28px;
}

.auth-modal-body .button-primary {
    width: 100%;
}

.auth-rules {
    margin: 3px 0 18px;
}

.simple-auth-shell {
    overflow: hidden;
    max-width: 560px;
    margin: 0 auto;
    border: 1px solid rgba(218, 165, 32, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.1);
}

.simple-auth-header {
    padding: 27px 28px 24px;
    color: #fff;
    background: linear-gradient(145deg, #555559, #6c6c70);
    text-align: center;
}

.simple-auth-header img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.simple-auth-header h1 {
    margin: 7px 0 2px;
    font-size: 27px;
}

.simple-auth-header p {
    color: rgba(255, 255, 255, 0.72);
}

.simple-auth-panel {
    padding: 28px 32px 32px;
}

.account-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    overflow: hidden;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.1);
}

.account-aside {
    padding: 44px 36px;
    color: #fff;
    background: linear-gradient(150deg, #4f4f53, #707075);
}

.account-aside h1 {
    margin: 18px 0 12px;
    font-size: 34px;
}

.account-aside p {
    color: rgba(255, 255, 255, 0.78);
}

.account-feature-list {
    display: grid;
    gap: 14px;
    margin-top: 28px;
    list-style: none;
}

.account-feature-list li {
    display: flex;
    align-items: center;
    gap: 11px;
}

.account-feature-list i {
    color: var(--accent-gold);
}

.account-panel {
    padding: 42px;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 26px;
    padding: 5px;
    border-radius: 9px;
    background: #f2f2f2;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    border: 0;
    border-radius: 7px;
    color: #666;
    background: transparent;
    font-weight: 750;
    cursor: pointer;
}

.auth-tab.active {
    color: #6d5800;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.account-form {
    display: none;
}

.account-form.active {
    display: block;
}

.account-form .form-group {
    margin-bottom: 18px;
}

.account-form input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d7d7d7;
    border-radius: 8px;
    outline: none;
}

.account-form input:focus {
    border-color: var(--accent-gold-dark);
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-note {
    margin-top: 16px;
    color: #777;
    font-size: 13px;
}

.form-feedback {
    display: none;
    margin-bottom: 18px;
    padding: 11px 13px;
    border-radius: 7px;
    color: #6f5900;
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(218, 165, 32, 0.24);
}

.form-feedback.is-visible {
    display: block;
}

.form-feedback.is-error {
    color: #8a2f2f;
    border-color: rgba(175, 55, 55, 0.24);
    background: rgba(175, 55, 55, 0.08);
}

.profile-overview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 34px;
    margin-bottom: 24px;
    border: 1px solid rgba(218, 165, 32, 0.25);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(78, 78, 82, 0.97), rgba(108, 108, 112, 0.95));
    color: #fff;
    box-shadow: 0 9px 30px rgba(0, 0, 0, 0.13);
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 19px;
}

.profile-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 76px;
    height: 76px;
    border: 2px solid rgba(255, 215, 0, 0.72);
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #ffd700, #b88714);
    font-size: 31px;
    box-shadow: 0 6px 20px rgba(218, 165, 32, 0.28);
}

.profile-overview h1 {
    margin: 3px 0 4px;
    font-size: 30px;
    line-height: 1.2;
}

.profile-overview p {
    color: rgba(255, 255, 255, 0.72);
}

.online-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #d8ffcd;
    font-size: 13px;
    font-weight: 700;
}

.online-label::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6ee052;
    box-shadow: 0 0 8px rgba(110, 224, 82, 0.8);
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.profile-actions .button-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
}

.profile-actions button.button-secondary {
    font: inherit;
    cursor: pointer;
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 19px;
    border: 1px solid var(--border-light);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 16px var(--shadow-light);
}

.metric-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    color: #846600;
    background: rgba(255, 215, 0, 0.14);
    font-size: 19px;
}

.metric-card strong {
    display: block;
    color: #2f2f31;
    font-size: 22px;
    line-height: 1.15;
}

.metric-card span {
    color: #777;
    font-size: 13px;
}

.cabinet-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
    gap: 24px;
    align-items: start;
}

.cabinet-stack {
    display: grid;
    gap: 20px;
}

.character-summary {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
}

.character-portrait {
    display: grid;
    place-items: center;
    width: 110px;
    height: 132px;
    border: 1px solid rgba(218, 165, 32, 0.32);
    border-radius: 12px;
    color: var(--accent-gold-dark);
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.13), rgba(108, 108, 112, 0.08));
    font-size: 48px;
}

.character-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 7px 0 16px;
}

.characters-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(218, 165, 32, 0.22);
}

.characters-heading .card-title {
    margin: 0;
    border: 0;
}

.characters-heading > span {
    padding-bottom: 12px;
    color: #888;
    font-size: 13px;
    white-space: nowrap;
}

.character-table-wrap {
    overflow-x: auto;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
}

.character-table {
    width: 100%;
    border-collapse: collapse;
}

.character-table th,
.character-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #ededed;
    color: #555;
    text-align: left;
    vertical-align: middle;
}

.character-table th {
    color: #7d7d7d;
    background: #f7f7f7;
    font-size: 11px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.character-table th:first-child,
.character-table-portrait {
    width: 78px;
}

.character-table th:last-child,
.character-table td:last-child {
    width: 100px;
}

.character-table tbody tr:last-child td {
    border-bottom: 0;
}

.character-table tbody tr:hover {
    background: rgba(255, 215, 0, 0.035);
}

.character-table-portrait img {
    display: block;
    width: 48px;
    height: 88px;
    object-fit: contain;
}

.character-table-name {
    width: 45%;
    min-width: 180px;
}

.character-table-name strong {
    display: block;
    color: #333;
    font-size: 16px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.cabinet-game-empty {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 150px;
    padding: 24px;
    border: 1px dashed rgba(218, 165, 32, 0.42);
    border-radius: 10px;
    color: #777;
    background: rgba(255, 215, 0, 0.035);
    text-align: left;
}

.cabinet-game-empty > i {
    color: #b58a12;
    font-size: 25px;
}

.cabinet-game-empty strong {
    display: block;
    margin-bottom: 4px;
    color: #555;
}

.cabinet-game-empty p {
    margin: 0;
    font-size: 13px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    color: #777;
    font-size: 13px;
}

.progress-track {
    overflow: hidden;
    height: 9px;
    border-radius: 99px;
    background: #ececec;
}

.progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #daa520, #ffd700);
}

.cabinet-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.cabinet-action {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 56px;
    padding: 12px 14px;
    border: 1px solid #e1e1e1;
    border-radius: 9px;
    color: #4d4d50;
    background: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.cabinet-action:hover {
    transform: translateY(-2px);
    border-color: rgba(218, 165, 32, 0.55);
}

.cabinet-action i {
    color: var(--accent-gold-dark);
    font-size: 18px;
}

.activity-list {
    display: grid;
    gap: 14px;
    list-style: none;
}

.activity-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #ececec;
}

.activity-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.activity-list i {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--accent-gold-dark);
    background: rgba(255, 215, 0, 0.1);
}

.activity-list time {
    display: block;
    margin-top: 2px;
    color: #999;
    font-size: 12px;
}

.security-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid #ececec;
}

.security-row:last-child {
    border-bottom: 0;
}

.status-success,
.status-warning {
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.status-success {
    color: #2f7120;
    background: #e5f6e0;
}

.status-warning {
    color: #8a6400;
    background: #fff2c7;
}

.sr-only {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    margin: -1px;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.cabinet-log-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin: 18px 0 22px;
    padding: 4px;
    border-radius: 9px;
    background: #f1f1f1;
}

.cabinet-log-tab {
    min-height: 42px;
    padding: 9px 13px;
    border: 0;
    border-radius: 7px;
    color: #777;
    background: transparent;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.cabinet-log-tab.active {
    color: #725a00;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cabinet-log-panel[hidden] {
    display: none;
}

.cabinet-log-panel:not([hidden]) {
    overflow-y: auto;
    height: 340px;
    padding-right: 4px;
    scrollbar-gutter: stable;
}

.game-login-table-wrap {
    overflow-x: auto;
}

.game-login-table {
    width: 100%;
    border-collapse: collapse;
}

.game-login-table th,
.game-login-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #e9e9e9;
    text-align: left;
    white-space: nowrap;
}

.game-login-table th {
    color: #7d7d7d;
    background: #f7f7f7;
    font-size: 12px;
    text-transform: uppercase;
}

.game-login-table td {
    color: #4f4f52;
    font-size: 13px;
}

.game-login-table td.game-login-empty {
    padding: 28px 14px;
    color: #888;
    text-align: center;
    white-space: normal;
}

.login-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.login-status.is-success {
    color: #2f7120;
    background: #e5f6e0;
}

.login-status.is-warning {
    color: #8a6400;
    background: #fff2c7;
}

.login-status.is-error {
    color: #9b2f2f;
    background: #fde7e7;
}

.currency-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 5px 0 16px;
    padding: 13px 0;
    border-bottom: 1px solid #ececec;
    color: #777;
    font-size: 13px;
}

.currency-balance strong {
    color: #6f5900;
    font-size: 15px;
}

.currency-card-compact {
    display: grid;
    gap: 12px;
}

.currency-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(218, 165, 32, 0.22);
}

.currency-card-heading .card-title {
    margin: 0;
    padding: 0;
    border: 0;
}

.currency-card-heading > span {
    display: grid;
    flex: 0 0 auto;
    gap: 1px;
    text-align: right;
}

.currency-card-heading small {
    color: #8b867d;
    font-size: 10px;
}

.currency-card-heading strong {
    color: #6f5900;
    font-size: 13px;
}

.currency-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.currency-option {
    display: flex;
    min-width: 0;
    min-height: 66px;
    padding: 9px 5px;
    border: 1px solid #dedede;
    border-radius: 8px;
    color: #666;
    background: #fff;
    flex-direction: column;
    cursor: pointer;
}

.currency-option strong {
    color: #333;
    font-size: 15px;
}

.currency-option span {
    margin-top: 3px;
    color: #888;
    font-size: 11px;
}

.currency-option.active {
    border-color: #d2ab18;
    background: rgba(255, 215, 0, 0.09);
    box-shadow: 0 0 0 2px rgba(218, 165, 32, 0.1);
}

.currency-buy {
    width: 100%;
    margin-top: 14px;
}

.currency-buy:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.currency-form {
    display: grid;
    gap: 8px;
}

.currency-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 9px;
}

.currency-field-group {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.currency-field-group > label {
    color: #555;
    font-size: 11px;
    font-weight: 750;
}

.currency-form > label {
    color: #555;
    font-size: 12px;
    font-weight: 750;
}

.currency-form > small {
    color: #888;
    font-size: 10px;
}

.currency-amount-field {
    position: relative;
}

.currency-amount-field input {
    width: 100%;
    min-height: 48px;
    padding: 10px 42px 10px 13px;
    border: 1px solid #d9d9d9;
    border-radius: 9px;
    color: #302d25;
    background: #fff;
    font: inherit;
    font-size: 18px;
    font-weight: 800;
    outline: none;
}

.currency-amount-field input:focus {
    border-color: #d2ab18;
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.12);
}

.currency-amount-field input:disabled {
    color: #999;
    background: #f4f4f4;
}

.currency-amount-field span {
    position: absolute;
    top: 50%;
    right: 14px;
    color: #88701d;
    font-size: 17px;
    font-weight: 800;
    transform: translateY(-50%);
}

.currency-calculation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 5px;
    padding: 12px 13px;
    border: 1px solid #eadfae;
    border-radius: 9px;
    color: #79691d;
    background: #fffaf0;
    font-size: 11px;
}

.currency-calculation strong {
    color: #5f4a00;
    font-size: 14px;
}

.currency-form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #888;
    font-size: 10px;
}

.currency-form-meta > span {
    color: #7d6a22;
    white-space: nowrap;
}

.currency-form-meta strong {
    color: #5f4a00;
    font-size: 11px;
}

.currency-card-compact .currency-buy {
    width: auto;
    min-height: 44px;
    margin: 0;
    padding: 0 14px;
    white-space: nowrap;
}

.currency-promo-button {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid #e2dac2;
    border-radius: 10px;
    color: #4d473d;
    background: #fffaf0;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: border-color .15s ease, background .15s ease;
}

.currency-promo-button:hover,
.currency-promo-button:focus-visible {
    border-color: #d2ab18;
    background: #fff3cc;
}

.currency-promo-button > i:first-child {
    color: #9b7609;
    font-size: 16px;
    text-align: center;
}

.currency-promo-button > i:last-child {
    color: #a69b7d;
    font-size: 10px;
}

.currency-promo-button > span {
    display: grid;
    gap: 1px;
}

.currency-promo-button strong {
    font-size: 12px;
}

.currency-promo-button small {
    color: #898278;
    font-size: 9px;
}

.currency-feedback {
    margin-bottom: 12px;
    padding: 10px 11px;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.45;
}

.currency-feedback.is-error {
    color: #8c3434;
    border: 1px solid #efcece;
    background: #fff2f2;
}

.currency-feedback.is-success {
    color: #326c2d;
    border: 1px solid #cfe5ca;
    background: #f0faee;
}

.currency-message {
    display: none;
    margin-top: 11px;
    color: #7d6a22;
    font-size: 12px;
    line-height: 1.45;
}

.cabinet-support-links {
    display: grid;
    gap: 9px;
}

.cabinet-support-links a {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px 13px;
    border: 1px solid #e2e2e2;
    border-radius: 9px;
    color: #555;
    background: #fff;
    font-size: 13px;
    font-weight: 750;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.cabinet-support-links a:hover,
.cabinet-support-links a:focus-visible {
    border-color: rgba(218, 165, 32, 0.55);
    color: #745c00;
    background: rgba(255, 215, 0, 0.05);
}

.cabinet-support-links a > i:first-child {
    color: #b68b12;
    font-size: 20px;
    text-align: center;
}

.cabinet-support-links a > i:last-child {
    color: #aaa;
    font-size: 11px;
}

.currency-message.is-visible {
    display: block;
}

.payment-history-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.payment-history-heading > span {
    color: #999;
    font-size: 10px;
}

.payment-history-list {
    display: grid;
}

.payment-history-list article {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 11px 0;
    border-top: 1px solid #eeeeec;
}

.payment-history-list article:first-child {
    border-top: 0;
}

.payment-history-list article > div {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.payment-history-list strong {
    color: #45423b;
    font-size: 12px;
}

.payment-history-list small,
.payment-history-list time,
.payment-history-empty {
    color: #8a8882;
    font-size: 9px;
}

.payment-history-list small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.payment-history-list time {
    white-space: nowrap;
}

.payment-history-icon {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 50%;
    color: #82680c;
    background: #fff3c6;
    font-size: 10px;
}

.payment-history-icon.is-success {
    color: #34732f;
    background: #eaf7e7;
}

.payment-history-icon.is-failed {
    color: #923a3a;
    background: #fbeaea;
}

.payment-history-empty {
    margin: 4px 0 0;
    line-height: 1.5;
}

.payment-result-card {
    max-width: 620px;
    margin: 48px auto;
    padding: 44px 36px;
    border: 1px solid rgba(218, 165, 32, 0.24);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 55px rgba(37, 31, 15, 0.12);
    text-align: center;
}

.payment-result-card h1 {
    margin: 9px 0 10px;
    font-size: clamp(26px, 4vw, 38px);
}

.payment-result-card p {
    margin: 0 0 14px;
}

.payment-result-card .button-primary {
    margin-top: 12px;
}

.payment-result-icon {
    display: inline-grid;
    width: 68px;
    height: 68px;
    margin-bottom: 16px;
    place-items: center;
    border-radius: 50%;
    color: #806309;
    background: #fff2bd;
    font-size: 28px;
}

.payment-result-card.is-success .payment-result-icon {
    color: #2f742c;
    background: #e7f7e4;
}

.payment-result-card.is-failed .payment-result-icon {
    color: #943737;
    background: #fbe8e8;
}

.support-chat-card {
    margin-top: 24px;
    padding: 28px 30px 30px;
}

.support-chat-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(218, 165, 32, 0.24);
}

.support-chat-heading .eyebrow {
    margin-bottom: 4px;
}

.support-chat-heading h2 {
    font-size: 26px;
}

.support-chat-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 999px;
    color: #866600;
    background: #fff2c7;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.support-chat-status i {
    font-size: 7px;
}

.support-chat-thread {
    display: grid;
    gap: 16px;
    max-height: 440px;
    margin: 22px 0;
    padding: 4px 8px 4px 0;
    overflow-y: auto;
}

.chat-message {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    max-width: 78%;
}

.chat-message.is-user {
    justify-self: end;
}

.chat-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #7c650b;
    background: rgba(255, 215, 0, 0.16);
}

.chat-message.is-user .chat-avatar {
    color: #fff;
    background: #68686c;
}

.chat-bubble {
    padding: 13px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 12px 12px 12px 3px;
    color: #4f4f52;
    background: #fff;
}

.chat-message.is-user .chat-bubble {
    border-color: rgba(218, 165, 32, 0.25);
    border-radius: 12px 12px 3px 12px;
    background: rgba(255, 215, 0, 0.08);
}

.chat-bubble strong {
    display: block;
    margin-bottom: 4px;
    color: #343436;
    font-size: 13px;
}

.chat-bubble p {
    line-height: 1.55;
}

.chat-message time {
    display: block;
    margin-top: 4px;
    color: #999;
    font-size: 11px;
}

.chat-message.is-user time {
    text-align: right;
}

.chat-attachment {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    padding: 7px 9px;
    border-radius: 7px;
    color: #725a00;
    background: rgba(255, 215, 0, 0.12);
    font-size: 12px;
    font-weight: 700;
}

.support-composer {
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
}

.support-composer textarea {
    width: 100%;
    min-height: 94px;
    padding: 13px 14px;
    border: 1px solid #d8d8d8;
    border-radius: 9px;
    outline: none;
    resize: vertical;
}

.support-composer textarea:focus {
    border-color: var(--accent-gold-dark);
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.1);
}

.support-composer-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.support-attach {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    color: #555;
    background: #fff;
    font-weight: 700;
    cursor: pointer;
}

.support-attach input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.support-file-name {
    flex: 1;
    overflow: hidden;
    color: #888;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.support-form-message {
    min-height: 18px;
    margin-top: 8px;
    color: #8a6400;
    font-size: 12px;
}

body.security-modal-open {
    overflow: hidden;
}

.security-settings-overlay {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(28, 28, 30, 0.68);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.security-settings-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.security-settings-modal {
    position: relative;
    overflow: auto;
    width: min(100%, 820px);
    max-height: calc(100vh - 44px);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 22px 65px rgba(0, 0, 0, 0.3);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.2s ease;
}

.security-settings-overlay.is-open .security-settings-modal {
    transform: translateY(0) scale(1);
}

.security-settings-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, 0.12);
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.security-settings-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 58px 22px 26px;
    color: #fff;
    background: linear-gradient(145deg, #555559, #6c6c70);
}

.security-settings-header img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.security-settings-header h2 {
    font-size: 23px;
    line-height: 1.2;
}

.security-settings-header p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.security-settings-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    align-items: center;
    gap: 12px;
    padding: 16px 26px;
    border-bottom: 1px solid #e7e7e7;
    background: #faf9f5;
}

.security-settings-summary > div {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.security-settings-summary > div > i {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--accent-gold-dark);
    background: rgba(255, 215, 0, 0.11);
}

.security-settings-summary span {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.security-settings-summary strong {
    color: #454545;
    font-size: 12px;
}

.security-settings-summary small {
    color: #838383;
    font-size: 11px;
}

.security-settings-summary .verification-resend-form {
    margin: 0;
}

.security-settings-summary .verification-resend-form .button-secondary {
    white-space: nowrap;
}

.security-settings-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 24px 26px 28px;
}

.security-settings-form {
    display: flex;
    min-width: 0;
    padding: 19px;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    flex-direction: column;
}

.security-settings-form h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 17px;
    font-size: 19px;
}

.security-settings-form h3 i {
    color: var(--accent-gold-dark);
}

.security-form-note {
    margin: -5px 0 15px;
    color: #777;
    font-size: 11px;
    line-height: 1.55;
}

.security-email-pending {
    display: grid;
    gap: 3px;
    margin: -3px 0 15px;
    padding: 11px 12px;
    border: 1px solid #ead993;
    border-radius: 8px;
    color: #6f5900;
    background: #fff9e5;
}

.security-email-pending strong {
    font-size: 12px;
}

.security-email-pending strong i {
    margin-right: 5px;
}

.security-email-pending span,
.security-email-pending small {
    font-size: 10px;
}

.security-email-pending small {
    color: #87783e;
}

.security-settings-form .button-primary {
    width: 100%;
    margin-top: auto;
}

@media (max-width: 1100px) {
    .desktop-nav ul {
        gap: 8px;
    }

    .desktop-nav a {
        padding-right: 11px;
        padding-left: 11px;
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    .mobile-header-actions {
        display: flex;
    }

    .mobile-account-icon {
        display: flex !important;
    }

    .page-main {
        padding-top: 24px;
    }

    .page-grid,
    .home-content-grid,
    .download-panel,
    .account-layout,
    .cabinet-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-intro {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-aside {
        padding: 32px;
    }
}

@media (max-width: 700px) {
    .mobile-download-icon {
        display: none;
    }

    .page-hero {
        padding: 28px 24px;
    }

    .home-intro-actions,
    .stats-row,
    .requirements-grid,
    .steps-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .home-intro-actions {
        display: grid;
        width: 100%;
    }

    .news-card {
        grid-template-columns: 1fr;
    }

    .simple-news-page,
    .news-article-page,
    .home-news,
    .home-rating {
        padding: 25px 20px 28px;
    }

    .simple-news-header {
        padding-top: 5px;
    }

    .home-section-heading,
    .home-help-link {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-intro {
        display: grid;
        min-height: 0;
        padding: 0;
        aspect-ratio: auto;
        gap: 0;
    }

    .home-intro-art {
        position: relative;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .home-intro-shade {
        display: none;
    }

    .home-intro-copy {
        max-width: none;
        padding: 24px 24px 0;
    }

    .home-intro-actions {
        padding: 20px 24px 26px;
    }

    .home-news-card {
        grid-template-columns: 1fr;
    }

    .home-news-preview {
        height: 175px;
        min-height: 175px;
    }

    .simple-news-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .simple-news-preview {
        height: 175px;
    }

    .simple-news-item h2 {
        font-size: 20px;
    }

    .article-visual {
        min-height: 190px;
        font-size: 58px;
    }

    .article-footer {
        flex-direction: column;
    }

    .article-footer a {
        width: 100%;
    }

    .news-card-visual {
        min-height: 155px;
    }

    .account-panel {
        padding: 28px 22px;
    }

    .simple-download-info {
        grid-template-columns: 1fr;
    }

    .simple-download-card {
        padding: 31px 22px;
    }

    .download-archive-links {
        grid-template-columns: 1fr;
    }

    .simple-download-button {
        width: 100%;
        min-width: 0;
    }

    .simple-auth-panel {
        padding: 24px 20px 27px;
    }

    .account-entry-card {
        margin: 12px auto;
    }

    .auth-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .auth-modal-card {
        width: 100%;
        max-height: 92vh;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 16px 16px 0 0;
    }

    .auth-modal-body {
        padding: 22px 20px 26px;
    }

    .auth-modal-header {
        padding-left: 22px;
    }

    .profile-overview,
    .profile-identity {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .profile-actions > * {
        flex: 1;
    }

    .cabinet-actions {
        grid-template-columns: 1fr;
    }

    .cabinet-log-tab {
        padding-right: 7px;
        padding-left: 7px;
        font-size: 11px;
    }

    .cabinet-log-panel:not([hidden]) {
        height: 430px;
    }

    .game-login-table-wrap {
        overflow: visible;
    }

    .game-login-table,
    .game-login-table tbody,
    .game-login-table tr,
    .game-login-table td {
        display: block;
        width: 100%;
    }

    .game-login-table thead {
        display: none;
    }

    .game-login-table tr {
        margin-bottom: 10px;
        padding: 11px 13px;
        border: 1px solid #e5e5e5;
        border-radius: 9px;
    }

    .game-login-table td {
        display: grid;
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 8px;
        padding: 6px 0;
        border: 0;
        white-space: normal;
        word-break: break-word;
    }

    .game-login-table td::before {
        content: attr(data-label);
        color: #8b8b8b;
        font-size: 11px;
        font-weight: 750;
        text-transform: uppercase;
    }

    .support-chat-card {
        padding: 24px 20px;
    }

    .support-chat-heading,
    .support-composer-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .support-chat-status {
        align-self: flex-start;
    }

    .chat-message {
        max-width: 94%;
    }

    .support-file-name {
        width: 100%;
    }

    .support-composer-actions .button-primary {
        width: 100%;
    }

    .characters-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
    }

    .security-settings-body {
        grid-template-columns: 1fr;
    }

    .security-settings-summary {
        grid-template-columns: 1fr;
        padding-right: 22px;
        padding-left: 22px;
    }

    .security-settings-summary .verification-resend-form .button-secondary {
        width: 100%;
    }

    .character-table-wrap {
        overflow: visible;
        border: 0;
    }

    .character-table,
    .character-table tbody {
        display: block;
        width: 100%;
    }

    .character-table thead {
        display: none;
    }

    .character-table tr {
        display: grid;
        grid-template-areas:
            "portrait name"
            "portrait class"
            "portrait level";
        grid-template-columns: 62px minmax(0, 1fr);
        column-gap: 12px;
        margin-bottom: 10px;
        padding: 10px 12px;
        border: 1px solid #e5e5e5;
        border-radius: 9px;
    }

    .character-table td {
        display: grid;
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 7px;
        width: auto;
        min-width: 0;
        padding: 4px 0;
        border: 0;
        font-size: 13px;
    }

    .character-table td:not(.character-table-portrait)::before {
        content: attr(data-label);
        color: #929292;
        font-size: 10px;
        font-weight: 750;
        text-transform: uppercase;
    }

    .character-table-portrait {
        display: flex !important;
        grid-area: portrait;
        align-items: center;
        width: 62px !important;
    }

    .character-table-portrait img {
        width: 52px;
        height: 96px;
    }

    .character-table-name {
        grid-area: name;
    }

    .character-table td:nth-child(3) {
        grid-area: class;
    }

    .character-table td:nth-child(4) {
        grid-area: level;
    }

    .character-table-name strong {
        font-size: 15px;
    }

    .security-settings-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .security-settings-modal {
        width: 100%;
        max-height: 92vh;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 16px 16px 0 0;
    }

    .security-settings-header {
        padding-left: 22px;
    }

    .security-settings-body {
        padding: 20px;
    }

    .character-summary {
        grid-template-columns: 1fr;
    }

    .character-portrait {
        width: 100%;
        height: 120px;
    }

}

@media (max-width: 420px) {
    .content-card,
    .sidebar-card {
        padding: 20px;
    }

    .requirements-list li {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

.guide-equipment-preview { background: #24262d; }
.guide-equipment-preview > img { object-position: center 38%; transition: transform .35s ease; }
.guide-equipment-card:hover .guide-equipment-preview > img { transform: scale(1.025); }
.guide-equipment-preview::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(15, 15, 17, .08), transparent 58%, rgba(15, 15, 17, .14)); }
.guide-equipment-preview .guide-card-status { z-index: 1; }

.equipment-guide-page { max-width: 1120px; margin: 0 auto; padding: 35px 42px 44px; }
.equipment-guide-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-top: 8px; padding-bottom: 27px; border-bottom: 1px solid rgba(218, 165, 32, .24); }
.equipment-guide-header > div:first-child { max-width: 790px; }
.equipment-guide-header h1 { margin: 6px 0 10px; font-size: clamp(31px, 4.7vw, 46px); line-height: 1.12; }
.equipment-guide-header p { margin: 0; color: var(--text-medium); font-size: 16px; line-height: 1.62; }
.equipment-guide-version { display: grid; flex: 0 0 170px; gap: 2px; padding: 13px 15px; border: 1px solid #e7dfc7; border-radius: 10px; background: #fffdf7; }
.equipment-guide-version span, .equipment-guide-version small { color: #8e825e; font-size: 10px; }
.equipment-guide-version strong { color: #63501a; font-size: 13px; }

.equipment-search-panel { display: grid; grid-template-columns: minmax(280px, 1fr) 250px auto auto; align-items: end; gap: 11px; margin: 25px 0 15px; padding: 17px; border: 1px solid #e5e1d6; border-radius: 12px; background: #faf9f6; }
.equipment-search-panel label { display: grid; gap: 6px; color: #6e6859; font-size: 11px; font-weight: 750; }
.equipment-search-panel input, .equipment-search-panel select { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #d7d3c9; border-radius: 8px; color: var(--text-dark); background: #fff; font: inherit; outline: none; }
.equipment-search-panel select { cursor: pointer; }
.equipment-search-panel input:focus, .equipment-search-panel select:focus { border-color: var(--accent-gold-dark); box-shadow: 0 0 0 3px rgba(218,165,32,.1); }
.equipment-search-input > div { position: relative; }
.equipment-search-input i { position: absolute; top: 50%; left: 13px; color: #a59b7c; transform: translateY(-50%); }
.equipment-search-input input { padding-left: 38px; }
.equipment-search-panel .button-primary { min-height: 43px; padding-inline: 19px; border: 0; cursor: pointer; white-space: nowrap; }
.equipment-search-reset { display: grid; min-height: 43px; align-items: center; padding: 0 7px; color: #81754f; font-size: 12px; font-weight: 750; text-decoration: none; }
.equipment-results-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 13px 2px; color: #827b69; font-size: 12px; }
.equipment-results-heading p { margin: 0; }
.equipment-results-heading strong { color: #514833; }

.equipment-table-wrap { overflow: hidden; border: 1px solid #dfdbd0; border-radius: 11px; background: #fff; box-shadow: 0 7px 22px rgba(45, 39, 24, .045); }
.equipment-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.equipment-col-icon { width: 82px; }
.equipment-col-category { width: 185px; }
.equipment-col-action { width: 170px; }
.equipment-table thead { color: #6e6653; background: #f4f1e9; }
.equipment-table thead th { height: 42px; padding: 9px 15px; border-bottom: 1px solid #dfdbd0; font-size: 10px; font-weight: 850; letter-spacing: .055em; text-align: left; text-transform: uppercase; }
.equipment-table thead th:first-child, .equipment-table thead th:last-child { text-align: center; }
.equipment-heading-short { display: none; }
.equipment-table-row > th, .equipment-table-row > td { height: 66px; padding: 10px 15px; border-bottom: 1px solid #ece9e1; vertical-align: middle; }
.equipment-table-row > td:first-child, .equipment-table-row > td:last-child { text-align: center; }
.equipment-table-row:hover > th, .equipment-table-row:hover > td { background: #fffdf8; }
.equipment-table-row.is-open > th, .equipment-table-row.is-open > td { border-bottom-color: #e5d5a9; background: #fffaf0; }
.equipment-icon-slot { display: inline-grid; width: 44px; height: 44px; overflow: hidden; place-items: center; border: 1px solid #e4dcc4; border-radius: 8px; color: #a17a18; background: linear-gradient(145deg, #fff9e8, #eee3c3); font-size: 17px; }
.equipment-icon-slot img { display: block; width: 100%; height: 100%; object-fit: contain; }
.equipment-table-name { overflow-wrap: anywhere; color: #35332e; font-size: 13px; font-weight: 800; line-height: 1.4; text-align: left; }
.equipment-table-name.has-game-color { color: var(--equipment-name-color); }
.equipment-table-category { display: inline-flex; max-width: 100%; padding: 5px 9px; border: 1px solid #e5dcc3; border-radius: 999px; color: #725b1d; background: #fffaf0; font-size: 10px; font-weight: 750; line-height: 1.25; text-align: center; }
.equipment-table-toggle { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; gap: 8px; padding: 7px 11px; border: 1px solid #d8c58d; border-radius: 7px; color: #735712; background: #fff; font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; transition: border-color .18s ease, background .18s ease, color .18s ease; }
.equipment-table-toggle:hover { border-color: #b58a1c; background: #fff9e8; }
.equipment-table-toggle:focus-visible { outline: 3px solid rgba(218,165,32,.3); outline-offset: 2px; }
.equipment-table-toggle i { font-size: 9px; transition: transform .18s ease; }
.equipment-table-toggle.is-open i { transform: rotate(180deg); }
.equipment-detail-row[hidden] { display: none; }
.equipment-detail-cell { padding: 0; border-bottom: 1px solid #dfdbd0; }
.equipment-item-body { display: grid; gap: 25px; padding: 23px 25px 27px; background: #fdfcf9; box-shadow: inset 0 4px 12px rgba(74, 57, 14, .035); }
.equipment-item-description { margin: -3px 0 0; padding: 12px 14px; border-left: 3px solid #d7b251; border-radius: 0 7px 7px 0; color: #645f52; background: #fffaf0; font-size: 12px; line-height: 1.55; }
.equipment-item-body h2 { margin: 0; font-size: 17px; }
.equipment-base-stats { display: grid; gap: 12px; }
.equipment-base-stats dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid #e9e5dc; border-radius: 9px; background: #e9e5dc; }
.equipment-base-stats dl > div { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 11px; background: #fff; }
.equipment-base-stats dt { overflow: hidden; color: #777062; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.equipment-base-stats dd { display: flex; align-items: flex-end; flex-direction: column; margin: 0; color: #38352f; font-size: 11px; font-weight: 800; white-space: nowrap; }
.equipment-base-stats dd small { color: #9d7a20; font-size: 9px; font-weight: 700; }
.equipment-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.equipment-section-heading p { margin: 0; color: #918b7c; font-size: 10px; }
.equipment-forge-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.equipment-forge-card { overflow: hidden; border: 1px solid #e7e1d2; border-radius: 10px; background: #fff; }
.equipment-forge-card header { display: flex; align-items: center; gap: 9px; padding: 11px 12px; border-bottom: 1px solid #eee9dc; background: #fffaf0; }
.equipment-forge-card header > span { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: #fff; background: #a77c12; font-size: 10px; font-weight: 850; }
.equipment-forge-card h3 { margin: 0; color: #5d4c1d; font-size: 12px; }
.equipment-forge-card ul { display: grid; margin: 0; padding: 0; list-style: none; }
.equipment-forge-card li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 9px 11px; border-bottom: 1px solid #f0ede5; }
.equipment-forge-card li:last-child { border-bottom: 0; }
.equipment-forge-card li > span { grid-row: 1 / 3; align-self: center; color: #635f56; font-size: 9px; line-height: 1.3; }
.equipment-forge-card li strong { color: #34322d; font-size: 10px; text-align: right; white-space: nowrap; }
.equipment-forge-card li small { color: #a17b1c; font-size: 9px; font-weight: 750; text-align: right; }
.equipment-forge-card.is-slot-3 { border-color: rgba(167,124,18,.4); }
.equipment-forge-card.is-slot-3 header { background: #fff5d8; }
.equipment-empty { display: grid; min-height: 250px; place-items: center; align-content: center; gap: 6px; color: #777164; text-align: center; }
.equipment-empty i { color: #a77c12; font-size: 30px; }
.equipment-empty h2, .equipment-empty p { margin: 0; }
.equipment-empty p { font-size: 13px; }
.equipment-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 15px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #e9e5da; }
.equipment-pagination a { color: #7b611e; font-size: 12px; font-weight: 750; text-decoration: none; }
.equipment-pagination a:last-child { justify-self: end; }
.equipment-pagination strong { color: #7d7563; font-size: 11px; }

@media (max-width: 900px) {
    .equipment-search-panel { grid-template-columns: minmax(0, 1fr) 220px auto; }
    .equipment-search-reset { grid-column: 1 / -1; min-height: auto; width: fit-content; }
    .equipment-base-stats dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .equipment-forge-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .equipment-guide-page { padding: 25px 18px 32px; }
    .equipment-guide-header { flex-direction: column; gap: 17px; }
    .equipment-guide-version { width: 100%; flex-basis: auto; }
    .equipment-search-panel { grid-template-columns: 1fr; padding: 14px; }
    .equipment-search-panel .button-primary { width: 100%; }
    .equipment-search-reset { grid-column: auto; justify-self: center; }
    .equipment-col-icon { width: 58px; }
    .equipment-col-category { width: 102px; }
    .equipment-col-action { width: 58px; }
    .equipment-table thead th { height: 38px; padding: 7px 6px; overflow-wrap: anywhere; font-size: 8px; line-height: 1.15; letter-spacing: .02em; text-align: center; }
    .equipment-table thead th:nth-child(2) { text-align: left; }
    .equipment-heading-long { display: none; }
    .equipment-heading-short { display: inline; }
    .equipment-table-row > th, .equipment-table-row > td { height: 61px; padding: 8px 6px; }
    .equipment-icon-slot { width: 40px; height: 40px; }
    .equipment-table-name { font-size: 11px; line-height: 1.35; }
    .equipment-table-category { display: inline; padding: 0; border: 0; border-radius: 0; color: #75683f; background: none; font-size: 9px; line-height: 1.3; }
    .equipment-table-toggle { width: 36px; height: 36px; min-height: 36px; padding: 0; }
    .equipment-table-toggle span { position: absolute; overflow: hidden; width: 1px; height: 1px; clip: rect(0 0 0 0); white-space: nowrap; }
    .equipment-item-body { padding: 17px 13px; }
    .equipment-base-stats dl { grid-template-columns: 1fr; }
    .equipment-section-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
}

@media (max-width: 390px) {
    .equipment-col-icon { width: 51px; }
    .equipment-col-category { width: 86px; }
    .equipment-col-action { width: 50px; }
    .equipment-table thead th { padding-inline: 4px; font-size: 7px; }
    .equipment-table-row > th, .equipment-table-row > td { padding-inline: 4px; }
    .equipment-icon-slot { width: 36px; height: 36px; border-radius: 7px; }
    .equipment-table-name { font-size: 10px; }
    .equipment-table-category { font-size: 8px; }
    .equipment-table-toggle { width: 34px; height: 34px; min-height: 34px; }
    .equipment-pagination { gap: 8px; }
    .equipment-pagination a { font-size: 11px; }
}

.guide-bestiary-preview { background: #24262d; }
.guide-bestiary-preview > img { object-position: center 42%; transition: transform .35s ease; }
.guide-bestiary-card:hover .guide-bestiary-preview > img { transform: scale(1.025); }
.guide-bestiary-preview::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(15, 15, 17, .07), transparent 58%, rgba(15, 15, 17, .15)); }
.guide-bestiary-preview .guide-card-status { z-index: 1; }

.bestiary-page { max-width: 1120px; margin: 0 auto; padding: 35px 42px 44px; }
.bestiary-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-top: 8px; padding-bottom: 27px; border-bottom: 1px solid rgba(218,165,32,.24); }
.bestiary-header > div:first-child { max-width: 790px; }
.bestiary-header h1 { margin: 6px 0 10px; font-size: clamp(31px, 4.7vw, 46px); line-height: 1.12; }
.bestiary-header p { margin: 0; color: var(--text-medium); font-size: 16px; line-height: 1.62; }
.bestiary-version { display: grid; min-width: 150px; flex: 0 0 150px; gap: 1px; padding: 13px 15px; border: 1px solid #e7dfc7; border-radius: 10px; background: #fffdf7; }
.bestiary-version strong { color: #63501a; font-size: 20px; line-height: 1.1; }
.bestiary-version span, .bestiary-version small { color: #8e825e; font-size: 10px; }

.bestiary-search-panel { display: grid; grid-template-columns: minmax(170px,1fr) minmax(190px,1.05fr) minmax(250px,1.25fr) auto auto; align-items: end; gap: 11px; margin: 25px 0 15px; padding: 17px; border: 1px solid #e5e1d6; border-radius: 12px; background: #faf9f6; }
.bestiary-search-panel label { display: grid; gap: 6px; color: #6e6859; font-size: 11px; font-weight: 750; }
.bestiary-search-panel input, .bestiary-search-panel select { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #d7d3c9; border-radius: 8px; color: var(--text-dark); background: #fff; font: inherit; outline: none; }
.bestiary-search-panel select { cursor: pointer; }
.bestiary-search-panel input:focus, .bestiary-search-panel select:focus { border-color: var(--accent-gold-dark); box-shadow: 0 0 0 3px rgba(218,165,32,.1); }
.bestiary-search-input > div { position: relative; }
.bestiary-search-input i { position: absolute; top: 50%; left: 13px; color: #a59b7c; transform: translateY(-50%); }
.bestiary-search-input input { padding-left: 38px; }
.bestiary-search-panel .button-primary { min-height: 43px; padding-inline: 19px; border: 0; cursor: pointer; white-space: nowrap; }
.bestiary-search-reset { display: grid; min-height: 43px; align-items: center; padding: 0 7px; color: #81754f; font-size: 12px; font-weight: 750; text-decoration: none; }
.bestiary-source-note { display: flex; align-items: flex-start; gap: 10px; margin: 13px 0; padding: 12px 14px; border: 1px solid #e6d8ad; border-radius: 9px; color: #6b6042; background: #fffaf0; font-size: 12px; line-height: 1.5; }
.bestiary-source-note i { margin-top: 3px; color: #9b7415; }
.bestiary-source-note p { margin: 0; }
.bestiary-source-note code, .bestiary-missing-definition code { font-size: .92em; }
.bestiary-results-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 28px; margin: 10px 2px; color: #827b69; font-size: 12px; }
.bestiary-results-heading p { margin: 0; }
.bestiary-results-heading strong { color: #514833; }
.bestiary-results-heading > span { overflow: hidden; max-width: 62%; color: #756839; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.bestiary-table-wrap { overflow: hidden; border: 1px solid #dfdbd0; border-radius: 11px; background: #fff; box-shadow: 0 7px 22px rgba(45,39,24,.045); }
.bestiary-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.bestiary-col-level { width: 92px; }
.bestiary-col-region { width: 34%; }
.bestiary-col-action { width: 145px; }
.bestiary-table thead { color: #6e6653; background: #f4f1e9; }
.bestiary-table thead th { height: 42px; padding: 9px 15px; border-bottom: 1px solid #dfdbd0; font-size: 10px; font-weight: 850; letter-spacing: .055em; text-align: left; text-transform: uppercase; }
.bestiary-table thead th:nth-child(2), .bestiary-table thead th:last-child { text-align: center; }
.bestiary-heading-short { display: none; }
.bestiary-table-row > th, .bestiary-table-row > td { height: 66px; padding: 10px 15px; border-bottom: 1px solid #ece9e1; vertical-align: middle; }
.bestiary-table-row > td:nth-child(2), .bestiary-table-row > td:last-child { text-align: center; }
.bestiary-table-row:hover > th, .bestiary-table-row:hover > td { background: #fffdf8; }
.bestiary-table-row.is-open > th, .bestiary-table-row.is-open > td { border-bottom-color: #e5d5a9; background: #fffaf0; }
.bestiary-monster-name { display: flex; min-width: 0; align-items: center; gap: 11px; color: #35332e; font-size: 13px; line-height: 1.4; text-align: left; }
.bestiary-monster-name > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.bestiary-monster-name small { display: none; margin-top: 2px; color: #918a78; font-size: 9px; font-weight: 600; line-height: 1.25; }
.bestiary-monster-mark { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border: 1px solid #e3d7b6; border-radius: 50%; color: #8e6a14; background: #fff8e7; font-size: 13px; }
.bestiary-level { display: inline-grid; min-width: 34px; height: 30px; place-items: center; padding: 0 7px; border-radius: 7px; color: #6b5418; background: #fff7df; font-size: 12px; }
.bestiary-region-name { display: block; color: #655f51; font-size: 11px; line-height: 1.4; }
.bestiary-table-toggle { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; gap: 8px; padding: 7px 11px; border: 1px solid #d8c58d; border-radius: 7px; color: #735712; background: #fff; font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; transition: border-color .18s ease, background .18s ease, color .18s ease; }
.bestiary-table-toggle:hover { border-color: #b58a1c; background: #fff9e8; }
.bestiary-table-toggle:focus-visible { outline: 3px solid rgba(218,165,32,.3); outline-offset: 2px; }
.bestiary-table-toggle i { font-size: 9px; transition: transform .18s ease; }
.bestiary-table-toggle.is-open i { transform: rotate(180deg); }
.bestiary-detail-row[hidden] { display: none; }
.bestiary-detail-cell { padding: 0; border-bottom: 1px solid #dfdbd0; }
.bestiary-monster-body { display: grid; gap: 23px; padding: 23px 25px 27px; background: #fdfcf9; box-shadow: inset 0 4px 12px rgba(74,57,14,.035); }
.bestiary-monster-body h2 { margin: 0; font-size: 16px; }
.bestiary-stats { display: grid; gap: 11px; }
.bestiary-stats dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; overflow: hidden; margin: 0; border: 1px solid #e9e5dc; border-radius: 9px; background: #e9e5dc; }
.bestiary-stats dl > div { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 11px; background: #fff; }
.bestiary-stats dt { overflow: hidden; color: #777062; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.bestiary-stats dd { margin: 0; color: #38352f; font-size: 11px; font-weight: 800; white-space: nowrap; }
.bestiary-missing-definition { padding: 11px 13px; border-left: 3px solid #d7b251; color: #655f50; background: #fff9e9; font-size: 12px; }
.bestiary-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 11px; }
.bestiary-section-heading > span { color: #948b72; font-size: 10px; }
.bestiary-drops ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; overflow: hidden; margin: 0; padding: 1px; border-radius: 9px; background: #e9e5dc; list-style: none; }
.bestiary-drops li { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 15px; padding: 9px 11px; background: #fff; }
.bestiary-drops li > span { overflow-wrap: anywhere; color: #5f5a4e; font-size: 10px; line-height: 1.35; }
.bestiary-drops li > strong { flex: 0 0 auto; color: #886713; font-size: 9px; white-space: nowrap; }
.bestiary-no-drops { margin: 0; padding: 13px; border: 1px solid #e9e5dc; border-radius: 8px; color: #817a69; background: #fff; font-size: 11px; }
.bestiary-empty { display: grid; min-height: 250px; place-items: center; align-content: center; gap: 6px; color: #777164; text-align: center; }
.bestiary-empty i { color: #a77c12; font-size: 30px; }
.bestiary-empty h2, .bestiary-empty p { margin: 0; }
.bestiary-empty p { font-size: 13px; }
.bestiary-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 15px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #e9e5da; }
.bestiary-pagination a { color: #7b611e; font-size: 12px; font-weight: 750; text-decoration: none; }
.bestiary-pagination a:last-child { justify-self: end; }
.bestiary-pagination strong { color: #7d7563; font-size: 11px; }

@media (max-width: 900px) {
    .bestiary-search-panel { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .bestiary-location-filter { grid-column: 1 / -1; }
    .bestiary-search-panel .button-primary { width: 100%; }
    .bestiary-search-reset { grid-column: 1 / -1; min-height: auto; width: fit-content; }
    .bestiary-stats dl { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 700px) {
    .bestiary-page { padding: 25px 18px 32px; }
    .bestiary-header { flex-direction: column; gap: 17px; }
    .bestiary-version { width: 100%; flex-basis: auto; }
    .bestiary-search-panel { grid-template-columns: 1fr; padding: 14px; }
    .bestiary-location-filter { grid-column: auto; }
    .bestiary-search-panel .button-primary { width: 100%; }
    .bestiary-search-reset { grid-column: auto; justify-self: center; }
    .bestiary-results-heading > span { display: none; }
    .bestiary-col-level { width: 57px; }
    .bestiary-col-region { width: 0; }
    .bestiary-col-action { width: 58px; }
    .bestiary-table thead th { height: 38px; padding: 7px 6px; font-size: 8px; line-height: 1.15; letter-spacing: .02em; }
    .bestiary-table thead th:nth-child(3), .bestiary-table-row > td:nth-child(3) { display: none; }
    .bestiary-heading-long { display: none; }
    .bestiary-heading-short { display: inline; }
    .bestiary-table-row > th, .bestiary-table-row > td { height: 61px; padding: 8px 6px; }
    .bestiary-monster-name { gap: 7px; font-size: 10px; }
    .bestiary-monster-name small { display: block; }
    .bestiary-monster-mark { width: 31px; height: 31px; flex-basis: 31px; font-size: 11px; }
    .bestiary-level { min-width: 30px; height: 28px; padding: 0 4px; font-size: 10px; }
    .bestiary-table-toggle { width: 36px; height: 36px; min-height: 36px; padding: 0; }
    .bestiary-table-toggle span { position: absolute; overflow: hidden; width: 1px; height: 1px; clip: rect(0 0 0 0); white-space: nowrap; }
    .bestiary-monster-body { padding: 17px 13px; }
    .bestiary-stats dl, .bestiary-drops ul { grid-template-columns: 1fr; }
    .bestiary-drops li { gap: 8px; }
}

@media (max-width: 390px) {
    .bestiary-col-level { width: 52px; }
    .bestiary-col-action { width: 50px; }
    .bestiary-table thead th, .bestiary-table-row > th, .bestiary-table-row > td { padding-inline: 4px; }
    .bestiary-table thead th { font-size: 7px; }
    .bestiary-monster-mark { width: 28px; height: 28px; flex-basis: 28px; }
    .bestiary-table-toggle { width: 34px; height: 34px; min-height: 34px; }
    .bestiary-pagination { gap: 8px; }
    .bestiary-pagination a { font-size: 11px; }
}

.form-feedback[hidden] {
    display: none !important;
}

.auth-form-help {
    display: flex;
    justify-content: flex-end;
    margin: -8px 0 16px;
}

.auth-form-help button,
.auth-form-back,
.account-secondary-link {
    padding: 0;
    border: 0;
    color: #776010;
    background: transparent;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.auth-form-help button:hover,
.auth-form-back:hover,
.account-secondary-link:hover {
    color: var(--accent-gold-dark);
}

.auth-form-heading {
    margin-bottom: 20px;
    text-align: center;
}

.auth-form-heading h3 {
    margin-bottom: 7px;
    color: var(--text-dark);
    font-size: 21px;
}

.auth-form-heading p {
    margin: 0;
    color: var(--text-medium);
    font-size: 14px;
    line-height: 1.55;
}

.auth-form-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
}

.account-result-card,
.password-reset-card {
    max-width: 580px;
    margin: 42px auto;
    padding: 42px;
    text-align: center;
}

.account-result-card h1,
.password-reset-card h1 {
    margin: 14px 0 10px;
    font-size: clamp(27px, 4vw, 38px);
}

.account-result-card p,
.password-reset-card > p {
    margin: 0 auto 24px;
    color: var(--text-medium);
    line-height: 1.65;
}

.account-result-icon {
    display: inline-grid;
    place-items: center;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    color: #856500;
    background: rgba(255, 215, 0, 0.17);
    font-size: 28px;
}

.account-result-icon.is-success {
    color: #31721f;
    background: #e5f6e0;
}

.account-result-icon.is-error {
    color: #9a3636;
    background: #fce9e9;
}

.password-reset-card form {
    margin-top: 24px;
    text-align: left;
}

.password-reset-card .button-primary {
    width: 100%;
}

.password-reset-card .button-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.account-secondary-link {
    display: inline-block;
    margin-top: 20px;
    font-size: 14px;
}

.verification-resend-form {
    margin-top: 12px;
}

.verification-resend-form .button-secondary {
    width: 100%;
}

@media (max-width: 600px) {
    .account-result-card,
    .password-reset-card {
        margin: 24px auto;
        padding: 28px 20px;
    }
}
.referral-card {
    display: grid;
    gap: 14px;
}

.referral-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.referral-card-heading .card-title {
    margin: 0;
}

.referral-card-heading > span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #765200;
    background: #fff4c9;
    font-size: .72rem;
    font-weight: 700;
}

.referral-card-intro,
.referral-code-line,
.referral-pending {
    margin: 0;
    color: var(--muted, #6e6a62);
    font-size: .86rem;
    line-height: 1.5;
}

.referral-link-label {
    margin-bottom: -8px;
    color: #38342e;
    font-size: .8rem;
    font-weight: 700;
}

.referral-link-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.referral-link-copy input {
    min-width: 0;
    height: 42px;
    padding: 0 11px;
    border: 1px solid #ddd6c9;
    border-radius: 9px;
    color: #504b43;
    background: #faf9f6;
    font: inherit;
    font-size: .78rem;
}

.referral-link-copy button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #d8b756;
    border-radius: 9px;
    color: #5e4300;
    background: #fff5d6;
    cursor: pointer;
    font: inherit;
    font-size: .78rem;
    font-weight: 700;
}

.referral-link-copy button:hover,
.referral-link-copy button.is-copied {
    background: #f6d76b;
}

.referral-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #e5ded2;
    border-radius: 11px;
    background: #faf9f6;
}

.referral-stats span {
    display: flex;
    min-width: 0;
    padding: 11px 7px;
    flex-direction: column;
    text-align: center;
}

.referral-stats span + span {
    border-left: 1px solid #e5ded2;
}

.referral-stats strong {
    color: #25221e;
    font-size: 1rem;
}

.referral-stats small {
    margin-top: 2px;
    color: #777168;
    font-size: .66rem;
}

.referral-pending {
    padding: 9px 10px;
    border-radius: 9px;
    color: #725400;
    background: #fff7df;
}

.referral-progress {
    display: grid;
    gap: 4px;
    padding: 11px;
    border-left: 3px solid #d5a70b;
    border-radius: 0 8px 8px 0;
    background: #faf8f1;
    font-size: .8rem;
}

.referral-progress small {
    color: #736e65;
}

.referral-invitees {
    border-top: 1px solid #ebe5da;
    padding-top: 10px;
}

.referral-invitees summary {
    color: #4d4840;
    cursor: pointer;
    font-size: .82rem;
    font-weight: 700;
}

.referral-invitees ul {
    display: grid;
    gap: 7px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.referral-invitees li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #69635a;
    font-size: .78rem;
}

body.referral-modal-open,
body.promo-modal-open {
    overflow: hidden;
}

.referral-card-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .95fr);
    gap: 8px;
}

.referral-copy-button {
    display: inline-flex;
    min-width: 0;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 11px;
    border: 1px solid #cda329;
    border-radius: 10px;
    color: #4f3b00;
    background: #f9df83;
    cursor: pointer;
    font: inherit;
    font-size: .75rem;
    font-weight: 800;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.referral-copy-button:hover,
.referral-copy-button.is-copied {
    border-color: #b88b08;
    background: #f1cd56;
    transform: translateY(-1px);
}

.referral-copy-button:focus-visible {
    outline: 3px solid rgba(207, 157, 12, .25);
    outline-offset: 2px;
}

.referral-details-button {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    gap: 9px;
    padding: 0 13px;
    border: 1px solid #d8b756;
    border-radius: 10px;
    color: #5e4300;
    background: #fff5d6;
    cursor: pointer;
    font: inherit;
    font-size: .8rem;
    font-weight: 800;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.referral-card-actions .referral-details-button {
    min-width: 0;
    padding: 0 10px;
    font-size: .75rem;
}

.referral-card-actions .referral-details-button > i:first-child {
    display: none;
}

.referral-details-button:hover {
    border-color: #c89b16;
    background: #ffeaa7;
    transform: translateY(-1px);
}

.referral-details-button:focus-visible,
.referral-modal-close:focus-visible {
    outline: 3px solid rgba(207, 157, 12, .25);
    outline-offset: 2px;
}

.referral-details-button .fa-arrow-right {
    margin-left: auto;
}

.referral-modal-overlay {
    position: fixed;
    z-index: 2150;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(22, 20, 16, .72);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, visibility .18s ease;
}

.referral-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.referral-modal {
    position: relative;
    width: min(940px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 20px;
    color: #302c25;
    background: #fff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .32);
    transform: translateY(12px) scale(.985);
    transition: transform .18s ease;
}

.referral-modal-overlay.is-open .referral-modal {
    transform: translateY(0) scale(1);
}

.referral-modal-close {
    position: absolute;
    z-index: 2;
    top: 15px;
    right: 15px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 10px;
    color: #fff;
    background: rgba(13, 12, 10, .28);
    cursor: pointer;
    font-size: 1rem;
}

.referral-modal-close:hover {
    background: rgba(13, 12, 10, .48);
}

.referral-modal-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 30px 66px 28px 30px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 0, rgba(255, 219, 90, .24), transparent 38%),
        linear-gradient(128deg, #25231e, #4d3c12);
}

.referral-modal-header > span {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 230, 138, .4);
    border-radius: 16px;
    color: #ffe88e;
    background: rgba(255, 222, 105, .12);
    font-size: 1.35rem;
}

.referral-modal-header > div {
    display: grid;
    gap: 5px;
}

.referral-modal-header small {
    color: #eed675;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.referral-modal-header h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.35rem, 3vw, 1.9rem);
    line-height: 1.18;
}

.referral-modal-header p {
    max-width: 690px;
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: .82rem;
    line-height: 1.5;
}

.referral-modal-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid #e8e2d7;
    background: #fffcf4;
}

.referral-modal-summary article {
    display: grid;
    min-width: 0;
    gap: 3px;
    padding: 18px 20px;
    border-right: 1px solid #e8e2d7;
}

.referral-modal-summary article:last-child {
    border-right: 0;
}

.referral-modal-summary strong {
    color: #8a6400;
    font-size: 1.25rem;
}

.referral-modal-summary span {
    color: #7a746a;
    font-size: .68rem;
    line-height: 1.35;
}

.referral-modal-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 20px;
    border-bottom: 1px solid #ebe4d7;
    color: #6f685e;
    background: #faf8f2;
    font-size: .72rem;
}

.referral-modal-code strong {
    color: #5d4700;
    letter-spacing: .04em;
}

.referral-modal-code i {
    margin-right: 4px;
    color: #ae8510;
}

.referral-modal-how {
    display: grid;
    gap: 13px;
    padding: 24px 28px 0;
}

.referral-modal-how h3,
.referral-modal-section-heading h3 {
    margin: 0;
    color: #2f2a23;
    font-size: 1rem;
}

.referral-modal-how ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.referral-modal-how li {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #ebe5da;
    border-radius: 11px;
    background: #faf9f6;
}

.referral-modal-how li > span {
    display: grid;
    width: 29px;
    height: 29px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #6d5000;
    background: #f8dc7a;
    font-size: .75rem;
    font-weight: 900;
}

.referral-modal-how p {
    margin: 0;
    color: #655f56;
    font-size: .72rem;
    line-height: 1.45;
}

.referral-modal-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding: 24px 28px 30px;
}

.referral-modal-columns > section {
    display: grid;
    min-width: 0;
    align-content: start;
    gap: 13px;
}

.referral-modal-section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.referral-modal-section-heading > span {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 10px;
    color: #765700;
    background: #f9e7a7;
}

.referral-modal-section-heading > div {
    display: grid;
    gap: 2px;
}

.referral-modal-section-heading p {
    margin: 0;
    color: #80796f;
    font-size: .68rem;
    line-height: 1.4;
}

.referral-prize-list,
.referral-achievement-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.referral-prize-list article {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
    border: 1px solid #e8e1d5;
    border-radius: 10px;
    background: #faf9f6;
}

.referral-prize-list article > span {
    padding: 6px 4px;
    border-radius: 8px;
    color: #715000;
    background: #fff0b4;
    text-align: center;
    font-size: .72rem;
    font-weight: 800;
}

.referral-prize-list article > div,
.referral-achievement-list li > span {
    display: grid;
    gap: 3px;
}

.referral-prize-list strong,
.referral-achievement-list strong {
    color: #2f2a23;
    font-size: .82rem;
}

.referral-prize-list small,
.referral-achievement-list small,
.referral-details-empty {
    color: #726c62;
    font-size: .74rem;
    line-height: 1.45;
}

.referral-details-empty {
    margin: 0;
}

.referral-achievement-list li {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid #e8e1d5;
    border-radius: 10px;
    background: #faf9f6;
}

.referral-achievement-list li > div {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.referral-achievement-list b,
.referral-achievement-list em {
    padding: 4px 7px;
    border-radius: 999px;
    font-size: .67rem;
    font-style: normal;
}

.referral-achievement-list b {
    color: #426723;
    background: #edf6df;
}

.referral-achievement-list em {
    color: #7b746a;
    background: #efede8;
}

@media (max-width: 430px) {
    .referral-link-copy {
        grid-template-columns: 1fr;
    }

    .referral-link-copy button {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .referral-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .referral-modal {
        width: 100%;
        max-height: calc(100vh - 18px);
        border-radius: 18px 18px 0 0;
        transform: translateY(28px);
    }

    .referral-modal-header {
        align-items: flex-start;
        gap: 12px;
        padding: 24px 54px 22px 18px;
    }

    .referral-modal-header > span {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        font-size: 1rem;
    }

    .referral-modal-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .referral-modal-summary article:nth-child(2) {
        border-right: 0;
    }

    .referral-modal-summary article:nth-child(-n+2) {
        border-bottom: 1px solid #e8e2d7;
    }

    .referral-modal-how {
        padding: 20px 16px 0;
    }

    .referral-modal-how ol,
    .referral-modal-columns {
        grid-template-columns: 1fr;
    }

    .referral-modal-how ol {
        gap: 7px;
    }

    .referral-modal-columns {
        gap: 24px;
        padding: 21px 16px 28px;
    }

    .referral-modal-code {
        align-items: flex-start;
        padding: 10px 16px;
        flex-direction: column;
        gap: 4px;
    }
}

.promo-modal {
    width: min(480px, 100%);
}

.promo-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 25px 58px 23px 24px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 0, rgba(255, 219, 90, .24), transparent 42%),
        linear-gradient(128deg, #25231e, #4d3c12);
}

.promo-modal-header > span {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 230, 138, .38);
    border-radius: 13px;
    color: #ffe88e;
    background: rgba(255, 222, 105, .12);
    font-size: 1.1rem;
}

.promo-modal-header > div {
    display: grid;
    gap: 3px;
}

.promo-modal-header small {
    color: #eed675;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.promo-modal-header h2 {
    margin: 0;
    color: #fff;
    font-size: 1.35rem;
}

.promo-modal-header p {
    margin: 0;
    color: rgba(255, 255, 255, .7);
    font-size: .72rem;
}

.promo-modal-body {
    display: grid;
    gap: 14px;
    padding: 22px 24px 24px;
}

.promo-modal-body .currency-feedback {
    margin: 0;
}

@media (max-width: 760px) {
    .promo-modal {
        max-height: calc(100vh - 18px);
    }

    .promo-modal-header {
        align-items: flex-start;
        padding: 22px 52px 20px 18px;
    }

    .promo-modal-body {
        padding: 19px 18px 24px;
    }
}

.promo-code-section {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e8e2d7;
    scroll-margin-top: 90px;
}

.promo-code-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.promo-code-heading > span {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 9px;
    color: #816000;
    background: #f8e8ae;
}

.promo-code-heading > div {
    display: grid;
    gap: 2px;
}

.promo-code-heading strong {
    color: #353129;
    font-size: .86rem;
}

.promo-code-heading small,
.promo-code-form > small {
    color: #827d73;
    font-size: .66rem;
    line-height: 1.4;
}

.promo-code-form {
    display: grid;
    gap: 8px;
}

.promo-code-form > label {
    color: #555047;
    font-size: .7rem;
    font-weight: 750;
}

.promo-code-input {
    position: relative;
}

.promo-code-input input,
.promo-code-form select {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #dcd7cd;
    border-radius: 9px;
    color: #302d25;
    background: #fff;
    font: inherit;
    font-size: .82rem;
    outline: none;
}

.promo-code-input input {
    padding-right: 38px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.promo-code-input > i {
    position: absolute;
    top: 50%;
    right: 13px;
    color: #b18a14;
    transform: translateY(-50%);
    pointer-events: none;
}

.promo-code-input input:focus,
.promo-code-form select:focus {
    border-color: #d2ab18;
    box-shadow: 0 0 0 3px rgba(218, 165, 32, .12);
}

.promo-code-submit {
    width: 100%;
    min-height: 42px;
    margin-top: 3px;
}

.promo-code-history {
    border-top: 1px solid #ede8df;
    padding-top: 10px;
}

.promo-code-history summary {
    color: #5e584e;
    cursor: pointer;
    font-size: .72rem;
    font-weight: 750;
}

.promo-code-history ul {
    display: grid;
    gap: 7px;
    margin: 9px 0 0;
    padding: 0;
    list-style: none;
}

.promo-code-history li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 9px;
    border-radius: 8px;
    background: #f8f7f3;
    font-size: .7rem;
}

.promo-code-history li > span {
    display: grid;
    gap: 2px;
}

.promo-code-history li small {
    color: #8b867d;
    font-size: .6rem;
}

.promo-code-history li b {
    font-size: .61rem;
}

.promo-code-history li b.is-success { color: #3d7338; }
.promo-code-history li b.is-error { color: #a04a42; }
.promo-code-history li b.is-pending { color: #8a6a12; }
