/* Foglihten — фирменный шрифт логотипа (используется в .tsb-cash баннера) */
@font-face {
    font-family: 'Foglihten';
    src: url('/assets/fonts/FoglihtenNo06.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Tournament timer widget — noir стиль (синхронизировано с display.html) */
.tw {
    background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(0,0,0,0));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 24px;
    padding: 22px 28px 20px;
    color: #bcc1cb;
    font-family: 'Oswald', 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}
.tw.running { border-color: rgba(170,175,185,0.18); }
.tw.is-break { border-color: rgba(205,185,138,0.22); }

.tw-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 12px;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight: 300;
}
.tw-level { color: #5a5d65; font-weight: 300; letter-spacing: 7px; }
.tw-status {
    color: #5a5d65;
    font-size: 10px;
    letter-spacing: 3px;
    font-weight: 400;
}
.tw.running .tw-status { color: #9aa0aa; }
.tw.is-break .tw-status { color: #9c8848; }

.tw-time {
    font-size: clamp(56px, 10vw, 132px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -3px;
    background: linear-gradient(180deg, #fff 0%, #bbb 25%, #eee 50%, #999 75%, #ddd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    font-feature-settings: "tnum";
    margin: 8px 0 14px;
    user-select: none;
    white-space: nowrap;
}
.tw-time.warn {
    background: linear-gradient(180deg, #faa 0%, #c00 25%, #f55 50%, #900 75%, #f33 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: tw-blink 0.55s ease-in-out infinite;
}
.tw.is-break .tw-time {
    background: linear-gradient(180deg, #cdb98a 0%, #7a5e2a 25%, #e6cf95 50%, #5d4318 75%, #b89758 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
@keyframes tw-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

.tw-blinds {
    text-align: center;
    font-size: clamp(24px, 3.4vw, 42px);
    font-weight: 600;
    letter-spacing: 3px;
    background: linear-gradient(180deg, #fff 0%, #bbb 25%, #eee 50%, #999 75%, #ddd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    font-feature-settings: "tnum";
}
.tw-next {
    text-align: center;
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #5a5d65;
    margin-bottom: 18px;
    font-weight: 300;
}

.tw-stats {
    display: flex;
    justify-content: center;
    gap: 28px;
    padding: 14px 0 0;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.tw-stat { text-align: center; }
.tw-stat-num {
    display: block;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(180deg, #fff 0%, #bbb 25%, #eee 50%, #999 75%, #ddd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    font-feature-settings: "tnum";
    font-family: inherit;
}
.tw-stat-lab {
    display: block;
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #4a4d54;
    margin-top: 5px;
    font-weight: 300;
}

.tw-scrub {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 0;
    padding: 10px 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 999px;
}
.tw-scrub-time {
    font-family: 'Inter', monospace;
    font-size: 11px;
    color: #6a6a6a;
    font-feature-settings: "tnum";
    min-width: 42px;
    letter-spacing: 0.5px;
}
.tw-scrub-time:last-child { text-align: right; }
.tw-scrub-range {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    height: 20px;
    cursor: pointer;
}
.tw-scrub-range::-webkit-slider-runnable-track {
    height: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 1px;
}
.tw-scrub-range::-moz-range-track {
    height: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 1px;
}
.tw-scrub-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #c0c0c0;
    border-radius: 50%;
    margin-top: -5px;
    cursor: grab;
    border: 1.5px solid #050608;
}
.tw-scrub-range::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #c0c0c0;
    border-radius: 50%;
    cursor: grab;
    border: 1.5px solid #050608;
}

.tw-controls {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.04);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
}
.tw-btn {
    padding: 10px 16px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: #9aa0aa;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.tw-btn:hover { border-color: rgba(255,255,255,0.3); color: #fff; background: rgba(255,255,255,0.04); }
.tw-btn.tw-primary {
    background: linear-gradient(180deg, #f0f0f0, #c0c0c0);
    color: #050608;
    border-color: #c0c0c0;
    font-weight: 700;
}
.tw-btn.tw-primary:hover { background: linear-gradient(180deg, #fff, #d8d8d8); border-color: #fff; }

.tw-counters {
    display: flex;
    gap: 18px;
    margin-left: auto;
    flex-wrap: wrap;
}
.tw-counter { text-align: center; }
.tw-counter-label {
    display: block;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #5a5d65;
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}
.tw-counter-ctl {
    display: flex;
    align-items: center;
    gap: 6px;
}
.tw-counter-val {
    min-width: 36px;
    font-size: 22px;
    font-weight: 700;
    color: #e8e8e8;
    font-feature-settings: "tnum";
}
.tw-counter-sub {
    display: block;
    font-size: 9px;
    color: #555;
    margin-top: 3px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
}
.tw-mini {
    width: 28px; height: 28px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    color: #9aa0aa;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: all 0.15s;
}
.tw-mini:hover { background: rgba(255,255,255,0.06); color: #fff; }

.tw-skel {
    text-align: center;
    padding: 40px 20px;
    color: #5a5d65;
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 300;
}

/* Compact mode (для sidebar/banner) */
.tw.compact { padding: 16px 22px; border-radius: 18px; }
.tw.compact .tw-time { font-size: clamp(44px, 7vw, 56px); margin: 4px 0; letter-spacing: -1px; }
.tw.compact .tw-blinds { font-size: clamp(20px, 2.4vw, 26px); letter-spacing: 2px; margin-bottom: 4px; }
.tw.compact .tw-next { margin-bottom: 10px; font-size: 10px; }
.tw.compact .tw-stats { gap: 16px; padding-top: 8px; }
.tw.compact .tw-stat-num { font-size: 18px; }
.tw.compact .tw-head { font-size: 10px; letter-spacing: 4px; margin-bottom: 8px; }

/* Main site banner — ПОД шапкой, sticky, одна строка */
.tw-site-banner {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(5, 6, 8, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(170,175,185,0.18);
    color: #e8e8e8;
    padding: 8px 16px;
    display: none;
    align-items: center;
    gap: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto;
    margin: 0 !important;
}
.tw-site-banner.active { display: flex; }
.tw-site-banner .tsb-players { margin-left: auto; }
.tw-site-banner .tsb-next-blinds {
    font-size: 10px;
    color: #5a5d65;
    font-weight: 400;
    margin-left: 4px;
    letter-spacing: 1px;
}
.tw-site-banner .tsb-live {
    color: #c0c0c0;
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 10px;
    text-transform: uppercase;
}
.tw-site-banner .tsb-format { font-weight: 600; letter-spacing: 1px; }
.tw-site-banner .tsb-time {
    font-family: 'Oswald', monospace;
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(180deg, #fff 0%, #bbb 25%, #eee 50%, #999 75%, #ddd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-feature-settings: "tnum";
}
.tw-site-banner .tsb-time.warn {
    background: linear-gradient(180deg, #faa 0%, #c00 25%, #f55 50%, #900 75%, #f33 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: tw-blink 0.5s infinite;
}
.tw-site-banner .tsb-blinds {
    font-family: 'Oswald', monospace;
    font-size: 16px;
    color: #c0c0c0;
    letter-spacing: 1px;
}
.tw-site-banner .tsb-cash {
    font-family: 'Foglihten', 'Oswald', serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 5px;
    color: #e8c78a;
    background: linear-gradient(180deg, #fff 0%, #f0dca8 45%, #b89758 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 18px rgba(232,199,138,0.18);
}
.tw-site-banner .tsb-cash[hidden] { display: none; }
.tw-site-banner .tsb-time[hidden],
.tw-site-banner .tsb-blinds[hidden] { display: none; }
.tw-site-banner .tsb-players {
    margin-left: auto;
    color: #5a5d65;
    font-size: 12px;
    letter-spacing: 1px;
}
.tw-site-banner .tsb-players strong { color: #e8e8e8; font-size: 14px; font-weight: 700; margin-right: 4px; }
.tw-site-banner .tsb-open {
    padding: 6px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    color: #c0c0c0;
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.2s;
}
.tw-site-banner .tsb-open:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.4); }
.tw-site-banner .tsb-close {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    padding: 4px 10px;
    color: #5a5d65;
    cursor: pointer;
    font-size: 11px;
}
.tw-site-banner .tsb-close:hover { color: #fff; border-color: rgba(255,255,255,0.3); }

@media (max-width: 700px) {
    .tw-site-banner { padding: 6px 10px; gap: 10px; font-size: 11px; }
    .tw-site-banner .tsb-time { font-size: 18px; }
    .tw-site-banner .tsb-players { margin-left: auto; }
}
