
:root {
    --thb-gold-1: #e7d39d;
    --thb-gold-2: #b19560;
    --thb-gold-text: #ba995d;
    --thb-panel: #1c1c1c;
    --thb-panel-2: #2a2a2a;
}

.thb-page { padding: 14px 12px 90px; color: #fff; }
.thb-page__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--thb-gold-1);
    text-align: center;
    padding: 12px 0;
}
.thb-card { background: var(--thb-panel); border-radius: 8px; padding: 12px; margin-bottom: 12px; }
.thb-table { width: 100%; font-size: 12px; border-collapse: collapse; }
.thb-table th {
    background: linear-gradient(to bottom, var(--thb-gold-1), var(--thb-gold-2));
    color: #000;
    padding: 8px 6px;
    font-weight: 700;
    white-space: nowrap;
}
.thb-table td { padding: 8px 6px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.thb-table tr:nth-child(even) td { background: rgba(255, 255, 255, .02); }
.thb-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.thb-empty { text-align: center; padding: 26px 0; color: var(--thb-gold-text); font-size: 12px; }

.thb-form label { display: block; font-size: 11px; color: var(--thb-gold-text); margin: 12px 0 5px; }
.thb-form input,
.thb-form select,
.thb-form textarea {
    width: 100%;
    height: 40px;
    border-radius: 20px;
    border: 1px solid #d5ccb7;
    background: #fff;
    padding: 0 16px;
    font-size: 12px;
    color: #2b2b2b;
}
.thb-form textarea { height: auto; padding: 12px 16px; border-radius: 12px; }
.thb-btn {
    display: inline-block;
    width: 100%;
    height: 43px;
    margin-top: 18px;
    border: 0;
    border-radius: 5em;
    background: linear-gradient(to bottom, var(--thb-gold-1), var(--thb-gold-2));
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
}

.thb-table-scroll { overflow-x: auto; }
.thb-table--kv th { width: 45%; text-align: left; }
.thb-table .pos { color: #58c27d; }
.thb-table .neg { color: #ff6b6b; }
.thb-table .nowrap { white-space: nowrap; }
.thb-table tr.unread td { background: rgba(231, 211, 157, .08); }
.thb-memo__title { color: var(--thb-gold-1); font-weight: 700; margin-bottom: 2px; }

.thb-alert {
    color: var(--thb-gold-1);
    border-left: 3px solid var(--thb-gold-2);
    font-size: 12px;
}
.thb-alert--error { color: #ff8080; border-left-color: #9b2727; }

.thb-kv {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    font-size: 12px;
}
.thb-kv:last-child { border-bottom: 0; }
.thb-kv span { color: var(--thb-gold-text); }
.thb-kv--stack { display: block; }
.thb-kv--stack span { display: block; margin-bottom: 8px; }

.thb-hint { color: var(--thb-gold-text); font-size: 11px; margin-top: 6px; }
.thb-note {
    padding: 8px 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    background: rgba(231, 211, 157, .08);
    color: var(--thb-gold-text);
    font-size: 11px;
    line-height: 1.5;
}

.thb-prose { color: #ddd; font-size: 13px; line-height: 1.7; }
.thb-prose img { max-width: 100%; height: auto; }

.thb-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.thb-tab {
    flex: 1;
    padding: 9px 4px;
    border-radius: 6px;
    background: var(--thb-panel);
    color: #ccc;
    font-size: 12px;
    text-align: center;
}
.thb-tab.active { background: linear-gradient(to bottom, var(--thb-gold-1), var(--thb-gold-2)); color: #000; font-weight: 700; }
.thb-tab:hover { text-decoration: none; }

.thb-btn--ghost {
    background: transparent;
    border: 1px solid var(--thb-gold-2);
    color: var(--thb-gold-1);
}
.thb-agreement { max-height: 48vh; overflow-y: auto; color: #ddd; font-size: 12px; line-height: 1.7; }
.thb-agreement__actions { display: flex; gap: 10px; }
.thb-agreement__actions .thb-btn { flex: 1; }

.thb-lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.thb-lang-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(203, 179, 125, .3);
    border-radius: 6px;
    color: #ddd;
    font-size: 12px;
}
.thb-lang-chip.active { border-color: var(--thb-gold-1); color: var(--thb-gold-1); }
.thb-lang-chip:hover { text-decoration: none; }
.thb-lang-chip img { width: 18px; height: 18px; }

.thb-date-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; }
.thb-date-chip {
    padding: 5px 10px;
    border-radius: 4px;
    background: var(--thb-panel-2);
    color: #ccc;
    font-size: 11px;
    white-space: nowrap;
}
.thb-date-chip.active { background: linear-gradient(to bottom, var(--thb-gold-1), var(--thb-gold-2)); color: #000; }
.thb-league { color: var(--thb-gold-text); font-size: 11px; }
.thb-table .vs { color: #7a7a7a; margin: 0 4px; }

.thb-search { margin-bottom: 10px; }
.thb-search input {
    width: 100%;
    height: 38px;
    padding: 0 14px;
    border-radius: 19px;
    border: 1px solid #d5ccb7;
    background: #fff;
    font-size: 12px;
}

.game_card__name {
    padding: 4px 6px;
    color: var(--thb-gold-1);
    font-size: 11px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thb-promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.thb-promo { display: block; background: var(--thb-panel); border-radius: 8px; overflow: hidden; }
.thb-promo img { width: 100%; height: auto; display: block; }
.thb-promo__title { padding: 10px; color: var(--thb-gold-1); font-size: 13px; }
.thb-promo:hover { text-decoration: none; }
.thb-promo__hero { width: 100%; height: auto; border-radius: 6px; margin-bottom: 12px; }

.thb-qr { margin: 12px 0; min-height: 160px; }

.thb-grid__item { position: relative; }
.thb-grid__item .maintenance-badge,
.game_card .maintenance-badge {
    position: absolute;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(0, 0, 0, .78);
    color: var(--thb-gold-1);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
}

.thb-popup {
    position: fixed;
    z-index: 300;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 86%;
    max-width: 420px;
    text-align: center;
}
.thb-popup img { width: 100%; height: auto; border-radius: 8px; }
.thb-popup__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-top: 14px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 18px;
    line-height: 1;
}
.thb-popup__body { color: #fff; font-size: 13px; padding: 14px; background: var(--thb-panel); border-radius: 8px; }
.thb-popup-backdrop { position: fixed; inset: 0; z-index: 290; background: rgba(0, 0, 0, .72); }