/* The header and footer of every page: layouts/_site_header.html, layouts/_site_footer.html,
   js/site_chrome.js. Bump ?v= in base.html when this file changes (static files are cached a year). */

/* each menu section's colour: the approved domain colours, Info in blue */
.tz-k-places     { --k: var(--tz-domain-economy);    --k-rgb: var(--tz-domain-economy-rgb); }
.tz-k-wars       { --k: var(--tz-domain-war);        --k-rgb: var(--tz-domain-war-rgb); }
.tz-k-government { --k: var(--tz-domain-government); --k-rgb: var(--tz-domain-government-rgb); }
.tz-k-market     { --k: var(--tz-domain-market);     --k-rgb: var(--tz-domain-market-rgb); }
.tz-k-community  { --k: var(--tz-domain-community);  --k-rgb: var(--tz-domain-community-rgb); }
.tz-k-info       { --k: #60a5fa;                     --k-rgb: 96, 165, 250; }
.tzh .is-account { --k: var(--tz-green-500);         --k-rgb: var(--tz-green-500-rgb); }

/* ---------- header ---------- */
.tzh { position: relative; z-index: 10000; margin-bottom: 1.25rem; font-family: var(--tz-font-body); }
.tzh-in { max-width: 1400px; padding: 1rem 1rem 0; }
.tzh-bar { position: relative; display: flex; align-items: center; gap: 0.9rem; min-height: 4.25rem; padding: 0.55rem 0.7rem; border-radius: 16px;
           background: linear-gradient(180deg, rgba(var(--tz-white-rgb), 0.035), rgba(0, 0, 0, 0.14)), rgba(var(--tz-surface-900-rgb), 0.86);
           border: 1px solid rgba(var(--tz-green-500-rgb), 0.18); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.tzh-bar::before { content: ''; position: absolute; left: 10%; right: 10%; top: -1px; height: 1px; pointer-events: none;
                   background: linear-gradient(90deg, transparent, rgba(var(--tz-green-500-rgb), 0.7), transparent); }

.tzh-brand { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; text-decoration: none; }
.tzh-logo { display: flex; width: 2.9rem; height: 2.9rem; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, var(--tz-green-500), var(--tz-green-600));
            box-shadow: 0 0 18px rgba(var(--tz-green-500-rgb), 0.3); transition: box-shadow .2s; }
.tzh-logo img { width: 100%; height: 100%; object-fit: contain; }
.tzh-brand:hover .tzh-logo { box-shadow: 0 0 26px rgba(var(--tz-green-500-rgb), 0.55); }
.tzh-name { font-family: var(--tz-font-display); font-size: 1.45rem; font-weight: 900; line-height: 1; letter-spacing: 0.04em; color: var(--tz-green-500); }

/* the six menus */
.tzh-menu { flex: 1 1 auto; min-width: 0; }
.tzh-menu > ul { display: flex; align-items: center; justify-content: center; gap: 0.1rem; margin: 0; padding: 0; list-style: none; }
.tzh-item { position: relative; }
.tzh-top { position: relative; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0.75rem; border: 0; border-radius: 10px; background: transparent; cursor: pointer;
           font-family: var(--tz-font-ui); font-size: 0.9rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: rgba(var(--tz-white-rgb), 0.62); transition: color .15s, background .15s; }
.tzh-top > i { font-size: 0.58rem; opacity: 0.55; transition: transform .2s; }
.tzh-top::after { content: ''; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.22rem; height: 2px; border-radius: 2px; background: var(--k);
                  box-shadow: 0 0 8px rgba(var(--k-rgb), 0.6); transform: scaleX(0); transition: transform .2s; }
.tzh-top:hover, .tzh-item.is-open > .tzh-top { color: var(--tz-white); background: rgba(var(--tz-white-rgb), 0.05); }
.tzh-top:focus-visible { outline: 2px solid var(--k); outline-offset: 1px; }
.tzh-item.is-open > .tzh-top > i { transform: rotate(180deg); }
.tzh-top.is-active { color: var(--tz-white); }
.tzh-top.is-active::after, .tzh-top:hover::after, .tzh-item.is-open > .tzh-top::after { transform: scaleX(1); }
.tzh-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 1.2rem; height: 1.2rem; padding: 0 0.32rem; border-radius: 999px;
             font-family: var(--tz-font-body); font-size: 0.68rem; font-weight: 700; letter-spacing: 0; color: #fff; background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2); }

/* a menu's panel */
.tzh-panel { position: absolute; top: calc(100% + 0.75rem); left: 50%; z-index: 10001; --shift: 0px; width: max-content; max-width: min(46rem, calc(100vw - 2rem)); padding: 0.6rem; border-radius: 16px;
             background: linear-gradient(160deg, rgba(var(--k-rgb), 0.08), transparent 45%), rgba(var(--tz-surface-900-rgb), 0.98);
             border: 1px solid rgba(var(--k-rgb), 0.28); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55), 0 0 30px rgba(var(--k-rgb), 0.08);
             opacity: 0; visibility: hidden; transform: translate(calc(-50% + var(--shift)), 6px); transition: opacity .15s, transform .15s, visibility 0s linear .15s; }
.tzh-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -0.85rem; height: 0.85rem; }     /* the mouse can cross the gap */
.tzh-item.is-open > .tzh-panel { opacity: 1; visibility: visible; transform: translate(calc(-50% + var(--shift)), 0); transition: opacity .15s, transform .15s; }
.tzh-panel.is-right { left: auto; right: 0; transform: translateY(6px); }
.tzh-item.is-open > .tzh-panel.is-right { transform: none; }
.tzh-panel-head { display: flex; align-items: center; gap: 0.5rem; margin: 0.15rem 0.45rem 0.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(var(--tz-white-rgb), 0.07);
                  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: rgba(var(--tz-white-rgb), 0.55); }
.tzh-panel-head img { width: 1.45rem; height: 1rem; border-radius: 2px; object-fit: cover; }
.tzh-panel-body { display: flex; align-items: flex-start; gap: 0.6rem; }
.tzh-grid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(var(--rows), auto); gap: 0.15rem 0.35rem; }
.tzh-link { display: flex; align-items: center; gap: 0.7rem; min-width: 13.5rem; padding: 0.45rem 0.6rem 0.45rem 0.45rem; border-radius: 11px; text-decoration: none; color: inherit; transition: background .12s; }
.tzh-link:hover, .tzh-link:focus-visible { background: rgba(var(--k-rgb), 0.1); color: inherit; outline: none; }
.tzh-ico { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 2.25rem; height: 2.25rem; border-radius: 10px; font-size: 0.92rem;
           color: var(--k); background: rgba(var(--k-rgb), 0.13); border: 1px solid rgba(var(--k-rgb), 0.22); transition: transform .15s, background .15s; }
.tzh-link:hover .tzh-ico { transform: scale(1.06); background: rgba(var(--k-rgb), 0.2); }
.tzh-link b { display: block; font-size: 0.9rem; font-weight: 600; line-height: 1.2; color: var(--tz-white); }
.tzh-link small { display: block; margin-top: 0.1rem; font-size: 0.74rem; line-height: 1.25; color: rgba(var(--tz-white-rgb), 0.5); }
.tzh-link[aria-current="page"] b { color: var(--k); }
.tzh-link.is-out { --k: var(--tz-red-500); --k-rgb: var(--tz-red-500-rgb); }
.tzh-link.is-out b { color: #fca5a5; }

/* Wars: what is being fought right now */
.tzh-live { width: 17.5rem; padding: 0.55rem; border-radius: 12px; background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(var(--tz-white-rgb), 0.06); }
.tzh-live-head { display: flex; align-items: center; gap: 0.45rem; margin: 0 0.2rem 0.4rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #fca5a5; }
.tzh-live-head a { margin-left: auto; font-size: 0.72rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: rgba(var(--tz-white-rgb), 0.55); text-decoration: none; }
.tzh-live-head a:hover { color: var(--tz-white); }
.tzh-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); animation: tzhPulse 1.6s ease-out infinite; }
@keyframes tzhPulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); } 80%, 100% { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); } }
.tzh-battle { display: flex; align-items: center; gap: 0.65rem; padding: 0.45rem; border-radius: 10px; text-decoration: none; color: inherit; transition: background .12s; }
.tzh-battle:hover, .tzh-battle:focus-visible { background: rgba(var(--k-rgb), 0.1); color: inherit; outline: none; }
.tzh-vs { display: inline-flex; align-items: center; gap: 0.3rem; flex-shrink: 0; }
.tzh-vs img { width: 1.5rem; height: 1.05rem; border-radius: 2px; object-fit: cover; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4); }
.tzh-vs b { font-family: var(--tz-font-display); font-size: 0.8rem; color: var(--tz-white); }
.tzh-vs b i { font-style: normal; margin: 0 0.12rem; color: rgba(var(--tz-white-rgb), 0.4); }
.tzh-bwhere { min-width: 0; }
.tzh-bwhere b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.84rem; font-weight: 600; color: var(--tz-white); }
.tzh-bwhere small { font-size: 0.72rem; color: rgba(var(--tz-white-rgb), 0.5); }
.tzh-live-none { margin: 0.4rem 0.2rem; font-size: 0.8rem; color: rgba(var(--tz-white-rgb), 0.5); }

/* search, with the "/" key that jumps to it */
.tzh-search { flex: 0 1 19rem; min-width: 11rem; }
.tzh .global-search-container { max-width: none; }
.tzh .global-search-input { height: 2.65rem; border-radius: 12px; padding-right: 2.4rem; }
/* results: all four columns (players, parties, units, countries), opening leftwards from the box */
.tzh-bar .global-search-dropdown { left: auto; right: 0; width: min(44rem, calc(100vw - 2rem)); }
.tzh-kbd { position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%); pointer-events: none; padding: 0.05rem 0.42rem; border-radius: 6px; font-family: var(--tz-font-mono); font-size: 0.72rem;
           color: rgba(var(--tz-white-rgb), 0.55); background: rgba(var(--tz-white-rgb), 0.06); border: 1px solid rgba(var(--tz-white-rgb), 0.14); transition: opacity .15s; }
.global-search-input:focus ~ .tzh-kbd, .global-search-input:not(:placeholder-shown) ~ .tzh-kbd { opacity: 0; }

/* the buttons on the right */
.tzh-acts { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; margin-left: auto; }
.tzh-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 2.65rem; height: 2.65rem; border-radius: 12px; cursor: pointer; font-size: 1.05rem;
           color: var(--tz-green-400); background: rgba(var(--tz-slate-900-rgb), 0.8); border: 1px solid rgba(var(--tz-green-500-rgb), 0.28); transition: border-color .15s, background .15s, color .15s; }
.tzh-btn:hover, .tzh-item.is-open > .tzh-btn { border-color: var(--tz-green-500); background: rgba(var(--tz-green-500-rgb), 0.12); color: var(--tz-white); }
.tzh-btn:focus-visible { outline: 2px solid var(--tz-green-500); outline-offset: 2px; }
.tzh-btn.is-star { color: var(--tz-amber-400); }
.tzh-item.is-account > .tzh-btn > i { transition: transform .4s; }
.tzh-item.is-account.is-open > .tzh-btn > i { transform: rotate(90deg); }
.tzh-me { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.4rem; padding: 0.5rem; border-radius: 12px; text-decoration: none; color: inherit;
          background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(var(--tz-white-rgb), 0.06); }
.tzh-me:hover { color: inherit; border-color: rgba(var(--tz-green-500-rgb), 0.4); }
.tzh-me img { width: 2.6rem; height: 2.6rem; border-radius: 10px; object-fit: cover; border: 2px solid rgba(var(--tz-green-500-rgb), 0.45); }
.tzh-me b { display: block; font-size: 0.95rem; color: var(--tz-white); }
.tzh-me small { font-size: 0.75rem; color: rgba(var(--tz-white-rgb), 0.5); }
.tzh-burger { display: none; flex-direction: column; gap: 4px; }
.tzh-burger span { display: block; width: 1.1rem; height: 2px; border-radius: 1px; background: currentColor; transition: transform .2s, opacity .2s; }
.tzh-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.tzh-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.tzh-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.tzh-plain { padding: 0.5rem 0.7rem; border-radius: 10px; font-family: var(--tz-font-ui); font-size: 0.92rem; font-weight: 700; letter-spacing: 0.04em; text-decoration: none; color: rgba(var(--tz-white-rgb), 0.68); transition: color .15s, background .15s; }
.tzh-plain:hover { color: var(--tz-white); background: rgba(var(--tz-white-rgb), 0.06); }

/* visitors: sign in */
.tzh-wallet { display: inline-flex; align-items: center; gap: 0.55rem; height: 2.65rem; padding: 0 1rem; border-radius: 12px; cursor: pointer; white-space: nowrap;
              font-family: var(--tz-font-ui); font-size: 0.92rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
              color: var(--tz-green-400); background: rgba(var(--tz-green-500-rgb), 0.08); border: 1px solid rgba(var(--tz-green-500-rgb), 0.35); transition: background .15s, border-color .15s; }
.tzh-wallet:hover:not(:disabled) { background: rgba(var(--tz-green-500-rgb), 0.16); border-color: var(--tz-green-500); }
.tzh-wallet:disabled { opacity: 0.6; cursor: wait; }
.tzh-google { display: inline-flex; align-items: center; gap: 0.55rem; height: 2.65rem; padding: 0 1rem; border-radius: 12px; white-space: nowrap; text-decoration: none;
              font-family: 'Roboto', var(--tz-font-body); font-size: 0.9rem; font-weight: 600; color: #3c4043; background: #fff; border: 1px solid #dadce0; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); transition: box-shadow .15s; }
.tzh-google:hover { color: #202124; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); }
.tzh-g-short { display: none; }
.tzh-wstatus { position: absolute; right: 0.8rem; top: calc(100% + 0.4rem); max-width: 20rem; font-size: 0.8rem; text-align: right; pointer-events: none; }
.tzh-wstatus > div:not(:empty) { padding: 0.35rem 0.7rem; border-radius: 10px; background: rgba(var(--tz-surface-900-rgb), 0.95); border: 1px solid rgba(var(--tz-white-rgb), 0.12); }

/* phones: the menu sheet */
.tzh-sheet { display: none; }

@media (max-width: 1200px) and (min-width: 992px) {
    .tzh-top { padding: 0.55rem 0.5rem; font-size: 0.82rem; letter-spacing: 0.06em; }
    .tzh-top::after { left: 0.5rem; right: 0.5rem; }
    .tzh-search { flex-basis: 14rem; }
    .tzh-name { font-size: 1.2rem; }
}

@media (max-width: 991px) {
    :root { --tzh-h: 4.25rem; }
    body { padding-top: var(--tzh-h); }
    .tzh { position: fixed; top: 0; left: 0; right: 0; margin: 0; }
    .tzh-in { max-width: none; padding: 0.45rem 0.6rem; background: rgba(var(--tz-surface-900-rgb), 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: box-shadow .3s; }
    .tzh.is-scrolled .tzh-in { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5); }
    .tzh-bar { min-height: 0; padding: 0.4rem 0.45rem; border-radius: 14px; box-shadow: none; }
    .tzh-logo { width: 2.35rem; height: 2.35rem; border-radius: 10px; }
    .tzh-name { font-size: 1.1rem; }
    .tzh-menu, .tzh .tzh-search, .tzh-item.is-account, .tzh-plain.is-wide { display: none; }
    .tzh-burger { display: inline-flex; }
    .tzh-btn, .tzh-wallet, .tzh-google { height: 2.4rem; }
    .tzh-btn { width: 2.4rem; }

    .tzh-sheet { display: block; position: fixed; left: 0; right: 0; top: var(--tzh-h); bottom: 0; z-index: 9999; overflow-y: auto; overscroll-behavior: contain;
                 background: rgba(8, 11, 16, 0.97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
                 opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .18s, transform .18s, visibility 0s linear .18s; }
    .tzh.is-sheet .tzh-sheet { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
    .tzh-sheet-in { max-width: 40rem; margin: 0 auto; padding: 0.8rem 0.9rem 2rem; }
    .tzh-sheet .global-search-container { display: block; max-width: none; margin-bottom: 0.6rem; }
    .tzh-sheet .global-search-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tzh-sheet .tzh-kbd { display: none; }
    .tzh-sec { padding: 0.75rem 0 0.4rem; border-top: 1px solid rgba(var(--tz-white-rgb), 0.06); }
    .tzh-sec:first-of-type { border-top: 0; }
    .tzh-sec-head { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.55rem; font-family: var(--tz-font-ui); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(var(--tz-white-rgb), 0.7); }
    .tzh-sec-head > i { color: var(--k); }
    .tzh-sec-country { display: inline-flex; align-items: center; gap: 0.35rem; margin-left: auto; font-family: var(--tz-font-body); font-size: 0.75rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: rgba(var(--tz-white-rgb), 0.5); }
    .tzh-sec-country img { width: 1.3rem; height: 0.9rem; border-radius: 2px; object-fit: cover; }
    .tzh-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4rem; }
    .tzh-tile { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 0.6rem 0.2rem 0.5rem; border-radius: 12px; text-align: center; text-decoration: none;
                font-size: 0.74rem; font-weight: 600; line-height: 1.15; color: rgba(var(--tz-white-rgb), 0.85); background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(var(--tz-white-rgb), 0.06); overflow-wrap: anywhere; }
    .tzh-tile:active, .tzh-tile:hover { color: var(--tz-white); border-color: rgba(var(--k-rgb), 0.5); background: rgba(var(--k-rgb), 0.08); }
    .tzh-tile[aria-current="page"] { border-color: rgba(var(--k-rgb), 0.6); color: var(--k); }
    .tzh-sec.is-account { margin-top: 0.4rem; }
    .tzh-sheet-acc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.15rem 0.4rem; }
    .tzh-sheet-acc .tzh-link { min-width: 0; }
    .tzh-sheet-acc .tzh-link small { display: none; }
    html.tzh-locked, html.tzh-locked body { overflow: hidden; }
    /* the top panel (_command_center.html) pulls itself up with a negative margin meant for the
       desktop header; under the fixed phone bar that hid its top edge */
    .cc-wrap:not(.is-today) { margin-top: 0.6rem; }
}

@media (max-width: 560px) {
    .tzh-wallet { width: 2.4rem; padding: 0; justify-content: center; }
    .tzh-wallet span { display: none; }
    .tzh-google { padding: 0 0.75rem; }
    .tzh-g-long { display: none; }
    .tzh-g-short { display: inline; }
    .tzh-acts { gap: 0.4rem; }
}
@media (max-width: 360px) {
    .tzh-name { font-size: 0.95rem; }
    .tzh-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tzh-sheet-acc { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- footer ---------- */
.tzf { margin: 2.5rem 0 0; padding: 0 0 1.25rem; border: 0; color: rgba(var(--tz-white-rgb), 0.6); font-family: var(--tz-font-body); position: relative; z-index: 1; }
.tzf-in { max-width: 1400px; padding: 0 1rem; }
.tzf-card { position: relative; border-radius: 18px; overflow: hidden;
            background: linear-gradient(180deg, rgba(var(--tz-white-rgb), 0.03), rgba(0, 0, 0, 0.18)), rgba(var(--tz-surface-900-rgb), 0.86);
            border: 1px solid rgba(var(--tz-green-500-rgb), 0.16); box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25); }
.tzf-card::before { content: ''; position: absolute; left: 10%; right: 10%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--tz-green-500-rgb), 0.6), transparent); }
.tzf-main { display: grid; grid-template-columns: minmax(15rem, 19rem) minmax(0, 1fr); gap: 2.5rem; padding: 1.6rem 1.8rem 1.4rem; }

.tzf-day { padding: 1rem 1.1rem; border-radius: 14px; background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(var(--tz-amber-400-rgb), 0.18); }
.tzf-day-top { display: flex; align-items: center; gap: 0.75rem; }
.tzf-day-ico { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; font-size: 1.1rem;
               color: var(--tz-amber-400); background: rgba(var(--tz-amber-400-rgb), 0.12); border: 1px solid rgba(var(--tz-amber-400-rgb), 0.3); }
.tzf-day-num small { display: block; font-family: var(--tz-font-ui); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(var(--tz-white-rgb), 0.5); }
.tzf-day-num b { display: block; font-family: var(--tz-font-display); font-size: 1.6rem; font-weight: 800; line-height: 1.05; color: var(--tz-amber-400); }
.tzf-next { margin: 0.8rem 0 0.4rem; font-size: 0.85rem; color: rgba(var(--tz-white-rgb), 0.65); }
.tzf-next b { font-family: var(--tz-font-display); font-weight: 700; color: var(--tz-green-400); }
.tzf-bar { display: block; height: 6px; border-radius: 3px; overflow: hidden; background: rgba(var(--tz-white-rgb), 0.08); }
.tzf-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--tz-amber-400), var(--tz-green-500)); transition: width .6s ease; }
.tzf-online { display: flex; align-items: center; gap: 0.45rem; margin: 0.8rem 0 0; font-size: 0.85rem; color: rgba(var(--tz-white-rgb), 0.65); }
.tzf-online b { color: var(--tz-white); }
.tzf-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--tz-green-500); box-shadow: 0 0 8px rgba(var(--tz-green-500-rgb), 0.8); }

.tzf-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; align-content: start; }
.tzf-col h2 { margin: 0.3rem 0 0.8rem; font-family: var(--tz-font-ui); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(var(--tz-white-rgb), 0.45); }
.tzf-col ul { margin: 0; padding: 0; list-style: none; }
.tzf-col li + li { margin-top: 0.45rem; }
.tzf .tzf-col a, .tzf-col button { padding: 0; border: 0; background: none; font: inherit; font-size: 0.92rem; color: rgba(var(--tz-white-rgb), 0.75); text-decoration: none; cursor: pointer; transition: color .15s; }
.tzf .tzf-col a:hover, .tzf-col button:hover { color: var(--tz-green-400); }
.tzf-col kbd { margin-left: 0.3rem; padding: 0 0.38rem; border-radius: 5px; font-family: var(--tz-font-mono); font-size: 0.72rem; color: rgba(var(--tz-white-rgb), 0.6);
               background: rgba(var(--tz-white-rgb), 0.06); border: 1px solid rgba(var(--tz-white-rgb), 0.14); }
.tzf .tzf-soc { display: inline-flex; align-items: center; gap: 0.6rem; min-width: 9.5rem; padding: 0.45rem 0.8rem 0.45rem 0.5rem; border-radius: 11px;
                background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(var(--tz-white-rgb), 0.08); transition: border-color .15s, background .15s, transform .15s; }
.tzf .tzf-soc i { display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; border-radius: 8px; font-size: 1rem; color: var(--s); background: rgba(var(--s-rgb), 0.15); }
.tzf .tzf-soc:hover { color: var(--tz-white); border-color: rgba(var(--s-rgb), 0.55); background: rgba(var(--s-rgb), 0.1); transform: translateY(-1px); }
.tzf-soc.is-discord { --s: #8b93ff; --s-rgb: 88, 101, 242; }
.tzf-soc.is-telegram { --s: #38b6f0; --s-rgb: 38, 165, 228; }
.tzf-soc.is-x { --s: #e7e9ea; --s-rgb: 231, 233, 234; }

.tzf-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 0.85rem 1.8rem; border-top: 1px solid rgba(var(--tz-white-rgb), 0.06); background: rgba(0, 0, 0, 0.18); }
.tzf-bottom p { margin: 0; font-size: 0.8rem; color: rgba(var(--tz-white-rgb), 0.45); }
.tzf-bottom p span { margin: 0 0.3rem; }
.tzf .tzf-bottom a { color: rgba(var(--tz-white-rgb), 0.6); text-decoration: none; }
.tzf .tzf-bottom a:hover { color: var(--tz-white); }
.tzf-top { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.75rem; border-radius: 9px; font-size: 0.8rem; cursor: pointer;
           color: rgba(var(--tz-white-rgb), 0.65); background: rgba(var(--tz-white-rgb), 0.04); border: 1px solid rgba(var(--tz-white-rgb), 0.1); transition: color .15s, border-color .15s; }
.tzf-top:hover { color: var(--tz-white); border-color: rgba(var(--tz-green-500-rgb), 0.5); }

@media (hover: none) { .tzf-keys { display: none; } }
@media (max-width: 991px) {
    .tzf-main { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; padding: 1.2rem; }
    .tzf-bottom { padding: 0.8rem 1.2rem; }
}
@media (max-width: 640px) {
    .tzf { margin-top: 1.75rem; }
    .tzf-in { padding: 0 0.6rem; }
    .tzf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 1rem; }
    .tzf-col.is-social { grid-column: 1 / -1; }
    .tzf-col.is-social ul { display: flex; flex-wrap: wrap; gap: 0.45rem; }
    .tzf-col.is-social li + li { margin-top: 0; }
    .tzf .tzf-soc { min-width: 0; }
    .tzf-bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .tzh-dot { animation: none; }
    .tzh-panel, .tzh-sheet, .tzf-bar i { transition: none; }
}
