/* ============================================================
   LANKO GAMES PLAYGROUND — moderní dark gaming theme
   ============================================================ */
:root {
    /* paleta dle spec (kap. 14.2) + rozšíření */
    --color-bg: #050914;
    --color-bg-soft: #090f20;
    --color-panel: rgba(13, 22, 44, 0.72);
    --color-panel-2: rgba(16, 26, 52, 0.55);
    --color-panel-border: rgba(255, 255, 255, 0.08);
    --color-panel-border-2: rgba(255, 255, 255, 0.14);

    --color-blue: #0077ff;
    --color-blue-glow: #36c2ff;
    --color-red: #ff1f2d;
    --color-red-glow: #ff5460;

    --color-text: #eef2ff;
    --color-text-muted: #8e9bc0;
    --color-text-dim: #5e6a8c;
    --color-success: #00d084;
    --color-warning: #ffcc00;
    --color-danger: #ff3b3b;

    --radius-card: 18px;
    --radius-button: 12px;
    --radius-pill: 999px;

    --font-sans: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;

    --grad-blue: linear-gradient(135deg, #0a86ff, #36c2ff);
    --grad-red: linear-gradient(135deg, #ff2a37, #ff5460);
    --grad-brand: linear-gradient(120deg, #36c2ff 0%, #6aa8ff 45%, #ff5460 100%);

    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);
    --glow-blue: 0 0 0 1px rgba(54, 194, 255, 0.4), 0 10px 30px rgba(0, 119, 255, 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    /* modro-červené ladění: modrá vlevo → červená vpravo */
    background-image:
        radial-gradient(1100px 900px at -6% 28%, rgba(0, 119, 255, 0.22), transparent 58%),
        radial-gradient(1100px 900px at 106% 72%, rgba(255, 31, 45, 0.18), transparent 58%),
        linear-gradient(90deg, rgba(0, 130, 255, 0.10) 0%, rgba(0, 130, 255, 0.0) 38%, rgba(255, 40, 60, 0.0) 62%, rgba(255, 40, 60, 0.10) 100%),
        linear-gradient(180deg, #060b18 0%, #050914 100%);
    background-attachment: fixed;
    min-height: 100vh;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(54, 194, 255, 0.32); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); background-clip: padding-box; }

a { color: var(--color-blue-glow); text-decoration: none; transition: color .15s; }
a:hover { color: #7ad6ff; }
code { background: rgba(255, 255, 255, 0.06); padding: 2px 7px; border-radius: 6px; font-size: .82em; color: #bcd6ff; font-family: 'Space Grotesk', monospace; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: .2px; line-height: 1.2; }
.muted { color: var(--color-text-muted); }
.nowrap { white-space: nowrap; }
.ta-right { text-align: right; }
hr.sep { border: none; border-top: 1px solid var(--color-panel-border); margin: 20px 0; }

/* ---------- Auth ---------- */
body.auth { display: grid; place-items: center; padding: 24px; }
.auth-wrap { position: relative; width: 100%; max-width: 430px; }
.auth-card {
    position: relative; z-index: 2;
    background: linear-gradient(180deg, rgba(18, 28, 56, 0.85), rgba(10, 17, 35, 0.9));
    border: 1px solid var(--color-panel-border-2);
    border-radius: 24px;
    padding: 40px 34px;
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-lg);
}
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo img { height: 60px; filter: drop-shadow(0 6px 22px rgba(0, 140, 255, 0.35)); }
.auth-title { font-family: var(--font-display); text-align: center; margin: 0 0 4px; font-size: 1.55rem; }
.auth-subtitle { text-align: center; color: var(--color-text-muted); letter-spacing: 4px; font-size: .72rem; margin: 0 0 26px; text-transform: uppercase; }
.auth-subtitle span { color: var(--color-blue-glow); }
.auth-glow {
    position: absolute; inset: -60px; z-index: 1; filter: blur(75px); opacity: .85;
    background:
        radial-gradient(320px 260px at 8% 50%, rgba(0, 130, 255, 0.45), transparent 70%),
        radial-gradient(320px 260px at 92% 50%, rgba(255, 31, 60, 0.40), transparent 70%);
}

/* ---------- App shell ---------- */
/* Horní logo hlavička přes celou šířku, vystředěná */
.topbrand { display: flex; justify-content: center; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--color-panel-border); background: rgba(6, 10, 22, 0.72); backdrop-filter: blur(10px); position: relative; z-index: 30; }
.topbrand-logo { height: clamp(52px, 8vw, 92px); width: auto; max-width: 96%; display: block; filter: drop-shadow(0 0 16px rgba(0, 150, 255, 0.35)); transition: transform .2s; }
.topbrand-link:hover .topbrand-logo { transform: scale(1.03); }

.app-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
    background: linear-gradient(180deg, rgba(8, 14, 30, 0.94), rgba(6, 10, 22, 0.88));
    border-right: 1px solid rgba(54, 194, 255, 0.16);
    box-shadow: inset -1px 0 30px -16px rgba(0, 119, 255, 0.5);
    padding: 22px 16px; position: sticky; top: 0; height: 100vh; backdrop-filter: blur(8px);
}

/* značka: ikona + vysázený název (čitelné, ne obří logo) */
.brand { display: block; text-align: center; padding: 2px; margin-bottom: 16px; overflow: hidden; }
.brand:hover { text-decoration: none; }
.brand-img { width: 100%; max-width: 165px; height: auto; display: inline-block; transform: scale(1.5); transform-origin: center; transition: transform .2s; }
.brand:hover .brand-img { transform: scale(1.55); }
.brand-mark { width: 48px; height: auto; flex: none; filter: drop-shadow(0 0 12px rgba(0, 150, 255, 0.35)); transition: transform .25s; }
.brand:hover .brand-mark { transform: scale(1.05) rotate(-2deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; letter-spacing: .4px; }
.bt-blue { color: #36c2ff; } /* logo „LANKO" zůstává vždy modré, akcent ho nemění */
.bt-red { color: var(--color-red-glow); }
.brand-text small { font-size: .58rem; letter-spacing: 5px; color: var(--color-text-dim); margin-top: 5px; text-transform: uppercase; }

.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-section { margin: 20px 12px 8px; font-size: .66rem; text-transform: uppercase; letter-spacing: 2px; color: var(--color-text-dim); font-weight: 600; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 11px; color: var(--color-text-muted); font-weight: 500; font-size: .94rem; position: relative; transition: .16s; }
.nav-link span { width: 22px; text-align: center; font-size: 1.05rem; opacity: 1; transition: .16s; }
.nav-link:hover { background: rgba(255, 255, 255, 0.05); color: var(--color-text); text-decoration: none; }
.nav-link.is-active { background: linear-gradient(90deg, rgba(0, 119, 255, 0.22), rgba(0, 119, 255, 0.02)); color: #fff; }
.nav-link.is-active::before { content: ''; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 3px; background: var(--grad-blue); box-shadow: 0 0 12px rgba(54, 194, 255, 0.7); }
.nav-link.is-active span { opacity: 1; color: var(--color-blue-glow); }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 30px; border-bottom: 1px solid var(--color-panel-border); position: sticky; top: 0; z-index: 20; background: rgba(6, 10, 22, 0.7); backdrop-filter: blur(12px); }
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, #36c2ff 0%, #6aa8ff 50%, #ff5460 100%); box-shadow: 0 0 16px rgba(110, 150, 255, 0.4); opacity: .9; }
.topbar-title { font-family: var(--font-display); font-weight: 500; color: var(--color-text-muted); }
.topbar-user { display: flex; align-items: center; gap: 12px; }
.user-name { font-weight: 600; }
.content { padding: 30px clamp(24px, 4vw, 56px); max-width: 1500px; width: 100%; margin: 0 auto; }
/* centrované formulářové karty (méně prázdných míst po stranách) */
.panel-form { max-width: 560px; margin: 0 auto; }
.panel-form-wide { max-width: 880px; margin: 0 auto; }
/* Editace hry: formulář i panely stejně široké a lícují; panely jako dlaždice vedle sebe */
.game-form { max-width: 1200px; margin: 0 auto; }
.game-form .form-grid { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.form-panels { max-width: 1200px; margin: 18px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.form-panels > .panel { max-width: none; width: auto; margin: 0; min-width: 0; }
.form-panels > .span-all { grid-column: 1 / -1; } /* panely s tabulkami přes celou šířku, ať nescrollují */
@media (max-width: 760px) { .form-panels { grid-template-columns: 1fr; } }
/* obecné dvousloupcové rozložení stránky */
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.info-list { display: flex; flex-direction: column; gap: 0; }
.info-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--color-panel-border); }
.info-row:last-child { border-bottom: none; }
.info-row .k { color: var(--color-text-muted); font-size: .88rem; }
.info-row .v { font-weight: 600; text-align: right; }

/* ---------- Badges & chips ---------- */
.badge { display: inline-flex; align-items: center; padding: 3px 11px; border-radius: var(--radius-pill); font-size: .68rem; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.badge-admin { background: rgba(255, 31, 45, 0.16); color: var(--color-red-glow); border: 1px solid rgba(255, 31, 45, 0.4); }
.badge-user { background: rgba(0, 119, 255, 0.16); color: var(--color-blue-glow); border: 1px solid rgba(0, 119, 255, 0.35); }
.badge-draft { background: rgba(255, 204, 0, 0.14); color: var(--color-warning); border: 1px solid rgba(255, 204, 0, 0.35); }
.badge-published { background: rgba(0, 208, 132, 0.14); color: var(--color-success); border: 1px solid rgba(0, 208, 132, 0.35); }
.badge-archived { background: rgba(154, 164, 191, 0.12); color: var(--color-text-muted); border: 1px solid rgba(154, 164, 191, 0.3); }
.chip { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 9px; font-size: .78rem; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--color-panel-border); }
.chip-ok { color: var(--color-success); border-color: rgba(0, 208, 132, 0.4); background: rgba(0, 208, 132, 0.08); }
.chip-off { color: var(--color-warning); border-color: rgba(255, 204, 0, 0.4); background: rgba(255, 204, 0, 0.08); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; border: 1px solid transparent; border-radius: var(--radius-button); padding: 10px 18px; font-family: var(--font-sans); font-size: .9rem; font-weight: 600; color: var(--color-text); background: rgba(255, 255, 255, 0.06); transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 6px 13px; font-size: .82rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad-blue); color: #fff; box-shadow: 0 8px 24px rgba(0, 119, 255, 0.35); }
.btn-primary:hover { box-shadow: 0 12px 32px rgba(0, 119, 255, 0.5); }
.btn-secondary { background: rgba(0, 119, 255, 0.12); border-color: rgba(0, 119, 255, 0.4); color: var(--color-blue-glow); }
.btn-secondary:hover { background: rgba(0, 119, 255, 0.2); }
.btn-danger { background: rgba(255, 31, 45, 0.13); border-color: rgba(255, 31, 45, 0.45); color: var(--color-red-glow); }
.btn-danger:hover { background: rgba(255, 31, 45, 0.22); }
.btn-ghost { background: transparent; border-color: var(--color-panel-border-2); color: var(--color-text-muted); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); color: var(--color-text); }
.inline-form { display: inline; margin: 0; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
/* Univerzální responzivní "dlažba" panelů – řádky se samy zalomí */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.tiles-sm { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; align-items: start; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field-label { font-size: .8rem; color: var(--color-text-muted); font-weight: 600; }
.field-label small { color: var(--color-text-dim); font-weight: 500; }
input, select, textarea { background: rgba(4, 8, 18, 0.7); border: 1px solid var(--color-panel-border-2); border-radius: 11px; padding: 11px 14px; color: var(--color-text); font-size: .94rem; font-family: inherit; width: 100%; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: var(--color-text-dim); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--color-blue); box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.18); }
input:disabled { opacity: .55; cursor: not-allowed; }
.filters { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.filters select { width: auto; }

/* ---------- Panels & layout bits ---------- */
.panel { background: var(--color-panel); border: 1px solid var(--color-panel-border); border-radius: var(--radius-card); padding: 24px; margin-bottom: 18px; backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); }
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 1.7rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 30px 0 16px; }
.section-head h2 { margin: 0; font-size: 1.2rem; }
.link { color: var(--color-blue-glow); font-weight: 600; font-size: .9rem; }
.quick-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }

/* ---------- Stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { position: relative; background: linear-gradient(180deg, var(--color-panel), var(--color-panel-2)); border: 1px solid var(--color-panel-border); border-radius: var(--radius-card); padding: 22px; overflow: hidden; transition: .2s; }
.stat-card::after { content: ''; position: absolute; top: -40px; right: -40px; width: 130px; height: 130px; background: radial-gradient(circle, rgba(54, 194, 255, 0.20), transparent 70%); }
/* přechod zleva (modrá) doprava (červená) napříč řadou */
.stat-card:nth-child(3n+1)::after { background: radial-gradient(circle, rgba(54, 194, 255, 0.24), transparent 70%); }
.stat-card:nth-child(3n+2)::after { background: radial-gradient(circle, rgba(150, 120, 255, 0.22), transparent 70%); }
.stat-card:nth-child(3n)::after   { background: radial-gradient(circle, rgba(255, 84, 96, 0.24), transparent 70%); }
.stat-card:hover { transform: translateY(-2px); border-color: var(--color-panel-border-2); }
.stat-value { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; line-height: 1; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { color: var(--color-text-muted); font-size: .85rem; margin-top: 8px; }

/* ---------- Game grid / cards ---------- */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.game-card { background: var(--color-panel); border: 1px solid var(--color-panel-border); border-radius: var(--radius-card); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; box-shadow: var(--shadow-sm); }
.game-card:hover { transform: translateY(-4px); border-color: rgba(54, 194, 255, 0.5); box-shadow: var(--shadow-md), 0 0 40px rgba(0, 119, 255, 0.15); }
.game-card-cover-wrap { position: relative; }
.fav-form { position: absolute; top: 8px; right: 8px; margin: 0; z-index: 2; }
.fav-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--color-panel-border-2); background: rgba(5, 9, 20, 0.55); backdrop-filter: blur(6px); color: #fff; font-size: 1.05rem; cursor: pointer; line-height: 1; display: grid; place-items: center; transition: .15s; }
.fav-btn:hover { background: rgba(5, 9, 20, 0.85); transform: scale(1.1); }
.fav-btn.is-fav { color: var(--color-warning); border-color: rgba(255, 204, 0, 0.5); text-shadow: 0 0 10px rgba(255, 204, 0, 0.6); }
.btn.is-fav { color: var(--color-warning); border-color: rgba(255, 204, 0, 0.5); }
.game-card-cover { display: block; aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.game-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.game-card:hover .game-card-cover img { transform: scale(1.06); }
.game-card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, rgba(0, 119, 255, 0.28), rgba(255, 31, 45, 0.22)); }
.game-card-placeholder span { font-family: var(--font-display); font-size: 2.8rem; font-weight: 700; color: rgba(255, 255, 255, 0.9); text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); }
.game-card-placeholder.big { aspect-ratio: 16 / 10; border-radius: var(--radius-card); }
.game-card-body { padding: 15px 16px 16px; }
.game-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.game-card-title { font-family: var(--font-display); margin: 0; font-size: 1.02rem; font-weight: 600; }
.game-card-slug { color: var(--color-text-dim); font-size: .78rem; margin: 5px 0 13px; font-family: 'Space Grotesk', monospace; }
.game-card-actions { display: flex; gap: 8px; }

/* ---------- Detail ---------- */
.detail { display: grid; grid-template-columns: 380px 1fr; gap: 30px; align-items: start; }
.detail-cover img, .detail-cover .game-card-placeholder { width: 100%; border-radius: var(--radius-card); box-shadow: var(--shadow-md); }
.detail-info h1 { margin: 0 0 14px; font-size: 2rem; }
.detail-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.detail-desc { color: #cdd5ec; margin-bottom: 24px; font-size: 1.02rem; }

/* ---------- Player ---------- */
.content-player { max-width: none; padding: 12px 16px; }
.player-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 12px; }
.player-title { font-family: var(--font-display); font-weight: 600; }
.player-frame { position: relative; width: 100%; height: calc(100vh - 130px); min-height: 420px; background: #000; border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--color-panel-border-2); box-shadow: var(--shadow-md); }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--color-text-muted); }
.player-frame:fullscreen { border-radius: 0; }
.player-frame:fullscreen iframe { width: 100vw; height: 100vh; }

/* ---------- Tables ---------- */
.table-wrap { background: var(--color-panel); border: 1px solid var(--color-panel-border); border-radius: var(--radius-card); overflow: auto; box-shadow: var(--shadow-sm); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--color-panel-border); }
.table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .6px; color: var(--color-text-dim); font-weight: 700; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover td { background: rgba(255, 255, 255, 0.025); }
.row-actions { display: inline-flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- Licenses ---------- */
.license-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.license-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border: 1px solid var(--color-panel-border); border-radius: 12px; gap: 12px; background: rgba(255, 255, 255, 0.02); transition: border-color .15s; }
.license-row:hover { border-color: var(--color-panel-border-2); }
.license-row code { margin: 0 6px; }

/* ---------- Flash ---------- */
.flash-stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.flash { padding: 13px 17px; border-radius: 12px; font-weight: 600; font-size: .92rem; border: 1px solid; display: flex; align-items: center; gap: 10px; backdrop-filter: blur(8px); }
.flash::before { font-size: 1.05rem; }
.flash-success { background: rgba(0, 208, 132, 0.12); color: var(--color-success); border-color: rgba(0, 208, 132, 0.4); }
.flash-success::before { content: '✓'; }
.flash-error { background: rgba(255, 59, 59, 0.12); color: var(--color-danger); border-color: rgba(255, 59, 59, 0.4); }
.flash-error::before { content: '!'; }
.flash-info { background: rgba(0, 119, 255, 0.12); color: var(--color-blue-glow); border-color: rgba(0, 119, 255, 0.4); }
.flash-info::before { content: 'i'; }

/* ---------- Empty & error ---------- */
.empty-state { text-align: center; padding: 64px 20px; background: var(--color-panel); border: 1px dashed var(--color-panel-border-2); border-radius: var(--radius-card); }
.empty-icon { font-size: 2.8rem; opacity: .35; margin-bottom: 6px; }
.empty-state h3 { margin: 6px 0; }
.error-page { text-align: center; padding: 70px 20px; }
.error-code { font-family: var(--font-display); font-size: 5.5rem; font-weight: 700; line-height: 1; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.page-link { padding: 7px 13px; border-radius: 9px; border: 1px solid var(--color-panel-border); font-size: .88rem; }
.page-link:hover { border-color: var(--color-panel-border-2); text-decoration: none; }
.page-link.is-active { background: var(--grad-blue); color: #fff; border-color: transparent; }

.welcome-card p { margin: 0; font-size: 1.05rem; }
.collapsible[hidden] { display: none; }

/* seznam zaškrtávátek (hromadné licence) */
.check-list { display: flex; flex-direction: column; gap: 2px; max-height: 280px; overflow: auto; border: 1px solid var(--color-panel-border); border-radius: 12px; padding: 8px; }
.check-item { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 8px; cursor: pointer; }
.check-item:hover { background: rgba(255, 255, 255, 0.04); }
.check-item input { width: auto; }

/* diagnostika */
.diag-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.diag-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--color-panel-border); border-radius: 12px; background: rgba(255, 255, 255, 0.02); }
.diag-status { font-weight: 700; font-size: .8rem; padding: 3px 10px; border-radius: 999px; }
.diag-ok { color: var(--color-success); background: rgba(0, 208, 132, 0.12); }
.diag-warn { color: var(--color-warning); background: rgba(255, 204, 0, 0.12); }
.diag-bad { color: var(--color-danger); background: rgba(255, 59, 59, 0.12); }

/* odznaky */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.badge-card { background: var(--color-panel); border: 1px solid var(--color-panel-border); border-radius: var(--radius-card); padding: 18px; text-align: center; transition: .18s; }
.badge-card.earned { border-color: rgba(255, 204, 0, 0.4); box-shadow: 0 0 24px rgba(255, 204, 0, 0.1); }
.badge-card.locked { opacity: .45; filter: grayscale(.7); }
.badge-card.earned:hover { transform: translateY(-3px); }
.badge-ico { font-size: 2.2rem; line-height: 1; margin-bottom: 8px; }
.badge-name { font-family: var(--font-display); font-weight: 600; }
.badge-desc { color: var(--color-text-muted); font-size: .78rem; margin-top: 4px; }

/* žebříčky */
.lb-list { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; }
.lb-row:nth-child(odd) { background: rgba(255, 255, 255, 0.02); }
.lb-row.lb-me { border-color: rgba(54, 194, 255, 0.5); background: rgba(0, 119, 255, 0.1); }
.lb-rank { width: 32px; text-align: center; font-weight: 700; font-family: var(--font-display); }
.lb-name { flex: 1; font-weight: 600; }
.lb-val { color: var(--color-text-muted); font-family: 'Space Grotesk', monospace; }

/* akcentní barva */
.accent-picker { display: flex; gap: 10px; margin-top: 8px; }
.accent-swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; transition: .15s; }
.accent-swatch:hover { transform: scale(1.12); }
.accent-swatch.is-active { border-color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25); }

/* Ctrl+K paleta */
.cmdk { position: fixed; inset: 0; z-index: 100; background: rgba(2, 5, 12, 0.6); backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: flex-start; padding-top: 14vh; }
.cmdk[hidden] { display: none; }
.cmdk-box { width: 100%; max-width: 560px; background: linear-gradient(180deg, rgba(18,28,56,0.96), rgba(10,17,35,0.98)); border: 1px solid var(--color-panel-border-2); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
#cmdk-input { border: 0; border-bottom: 1px solid var(--color-panel-border); border-radius: 0; padding: 16px 18px; font-size: 1rem; background: transparent; }
#cmdk-input:focus { box-shadow: none; }
.cmdk-results { max-height: 50vh; overflow: auto; padding: 6px; }
.cmdk-item { display: block; padding: 11px 14px; border-radius: 10px; color: var(--color-text); }
.cmdk-item:hover, .cmdk-item.active { background: rgba(0, 119, 255, 0.18); text-decoration: none; }
.cmdk-empty { padding: 16px; text-align: center; color: var(--color-text-muted); }

@media (max-width: 640px) { .hide-sm { display: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; }
    .brand { margin-bottom: 14px; }
    .nav { flex-direction: row; flex-wrap: wrap; }
    .nav-section { width: 100%; margin: 8px 12px 2px; }
    .nav-link.is-active::before { display: none; }
    .detail { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .content { padding: 20px; }
    .topbar { padding: 14px 20px; }
}

/* ---------- Náhled obrázku & ochrana ---------- */
.cover-preview { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.cover-thumb {
    width: 120px; height: 72px; object-fit: cover; border-radius: 10px;
    border: 1px solid var(--color-border, rgba(255,255,255,0.12)); flex: none;
}
.checkbox-field { flex-direction: row; align-items: flex-start; gap: 12px; }
.checkbox-field input[type="checkbox"] { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.checkbox-field .field-label { margin-bottom: 2px; }

/* ============================================================
   VIZUÁLNÍ VYLEPŠENÍ (polish pack) — animace jen transform/opacity
   ============================================================ */

/* Plynulé přechody mezi stránkami (kde to prohlížeč umí) */
@view-transition { navigation: auto; }

/* --- Animované ambientní pozadí (modrá ↔ červená "dýchání") --- */
body::before {
    content: ''; position: fixed; inset: -15%; z-index: -1; pointer-events: none;
    background:
        radial-gradient(38% 38% at 18% 28%, rgba(0, 140, 255, 0.16), transparent 70%),
        radial-gradient(42% 42% at 84% 74%, rgba(255, 44, 72, 0.14), transparent 70%);
    filter: blur(18px);
    animation: ambientDrift 20s ease-in-out infinite alternate;
}
@keyframes ambientDrift {
    0%   { transform: translate3d(-2%, -1%, 0) scale(1); }
    50%  { transform: translate3d(2%, 1.5%, 0) scale(1.08); }
    100% { transform: translate3d(-1%, 2%, 0) scale(1.04); }
}

/* --- Logo: jemné pulzování záře --- */
.brand-mark { animation: logoGlow 4.5s ease-in-out infinite; }
@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(0, 150, 255, 0.3)); }
    50%      { filter: drop-shadow(0 0 18px rgba(0, 150, 255, 0.6)); }
}

/* --- Game card: nástup, sheen, cover zoom, play overlay --- */
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.game-grid .game-card { animation: cardIn .5s both; }
.game-grid .game-card:nth-child(1) { animation-delay: .03s; }
.game-grid .game-card:nth-child(2) { animation-delay: .08s; }
.game-grid .game-card:nth-child(3) { animation-delay: .13s; }
.game-grid .game-card:nth-child(4) { animation-delay: .18s; }
.game-grid .game-card:nth-child(5) { animation-delay: .23s; }
.game-grid .game-card:nth-child(6) { animation-delay: .28s; }
.game-grid .game-card:nth-child(7) { animation-delay: .33s; }
.game-grid .game-card:nth-child(8) { animation-delay: .38s; }
.game-grid .game-card:nth-child(n+9) { animation-delay: .42s; }

.game-card-cover-wrap { overflow: hidden; }
.game-card-cover-wrap::after {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.16) 48%, transparent 64%);
    transform: translateX(-130%); transition: transform .65s ease;
}
.game-card:hover .game-card-cover-wrap::after { transform: translateX(130%); }

.card-play {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    display: grid; place-items: center;
    background: linear-gradient(180deg, rgba(5, 9, 20, 0) 45%, rgba(5, 9, 20, 0.5));
    opacity: 0; transition: opacity .25s;
}
.game-card:hover .card-play { opacity: 1; }
.card-play span {
    width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
    background: var(--grad-blue); color: #fff; font-size: 1.25rem; padding-left: 3px;
    box-shadow: 0 8px 28px rgba(0, 119, 255, 0.6); transform: scale(.6); transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}
.game-card:hover .card-play span { transform: scale(1); }

/* --- Tlačítka: lesk + ripple + jemné zmáčknutí --- */
.btn { position: relative; overflow: hidden; }
.btn-primary::after {
    content: ''; position: absolute; top: 0; left: -85%; width: 55%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg); transition: left .55s ease; pointer-events: none;
}
.btn-primary:hover::after { left: 135%; }
.btn:active { transform: translateY(1px) scale(.985); }
.ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.35); transform: scale(0); animation: ripple .6s ease-out; pointer-events: none; }
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }

/* --- Navigace: hover bounce + pulz aktivního indikátoru --- */
.nav-link:hover span { transform: translateX(2px) scale(1.1); }
.nav-link.is-active::before { animation: navPulse 2.6s ease-in-out infinite; }
@keyframes navPulse {
    0%, 100% { box-shadow: 0 0 9px rgba(54, 194, 255, 0.6); }
    50%      { box-shadow: 0 0 18px rgba(54, 194, 255, 1); }
}

/* --- Toasty (flash) --- */
.flash-stack {
    position: fixed; top: 74px; right: 18px; left: auto; z-index: 1000;
    width: min(360px, calc(100vw - 36px)); margin: 0;
}
.flash { position: relative; overflow: hidden; box-shadow: var(--shadow-md); animation: toastIn .42s cubic-bezier(.2, .8, .2, 1) both; }
.flash.hide { animation: toastOut .35s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(44px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(44px); } }
.toast-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: currentColor; opacity: .45; transform-origin: left; animation: toastBar 5s linear forwards; }
@keyframes toastBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.toast-close { margin-left: auto; background: none; border: none; color: inherit; cursor: pointer; font-size: 1.15rem; line-height: 1; opacity: .65; padding: 0 2px; }
.toast-close:hover { opacity: 1; }

/* --- Oblíbené: pop + jiskřičky (AJAX) --- */
.fav-btn.pop { animation: favPop .42s ease; }
@keyframes favPop { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
.spark {
    position: fixed; width: 6px; height: 6px; border-radius: 50%;
    background: var(--color-warning, #ffcc00); box-shadow: 0 0 8px #ffcc00;
    pointer-events: none; z-index: 1001; transform: translate(-50%, -50%);
    animation: spark .55s ease-out forwards;
}
@keyframes spark { to { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0); opacity: 0; } }

/* --- Statistiky: jemný hover lift navíc + odznaky --- */
.badge-card.earned { position: relative; overflow: hidden; }
.badge-card.earned::after {
    content: ''; position: absolute; top: 0; left: -60%; width: 42%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 204, 0, 0.18), transparent);
    transform: skewX(-20deg); animation: badgeShine 4s ease-in-out infinite; pointer-events: none;
}
@keyframes badgeShine { 0%, 100% { left: -60%; } 50% { left: 135%; } }
.badge-card.earned .badge-ico { animation: floaty 4s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* --- Žebříček: animované proužky + zvýraznění TOP 3 --- */
.lb-row { position: relative; overflow: hidden; }
.lb-row > * { position: relative; z-index: 1; }
.lb-bar {
    position: absolute; left: 0; top: 0; bottom: 0; z-index: 0; width: var(--bar, 0%);
    background: linear-gradient(90deg, rgba(0, 119, 255, 0.18), rgba(0, 119, 255, 0.02));
    transform-origin: left; animation: barGrow 1s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes barGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.lb-list .lb-row:nth-child(1) { border-color: rgba(255, 204, 0, 0.45); box-shadow: inset 0 0 22px rgba(255, 204, 0, 0.1); }
.lb-list .lb-row:nth-child(1) .lb-bar { background: linear-gradient(90deg, rgba(255, 204, 0, 0.22), transparent); }
.lb-list .lb-row:nth-child(2) .lb-bar { background: linear-gradient(90deg, rgba(184, 200, 220, 0.2), transparent); }
.lb-list .lb-row:nth-child(3) .lb-bar { background: linear-gradient(90deg, rgba(205, 127, 50, 0.22), transparent); }
.lb-rank { font-size: 1.05rem; }

/* --- Přehrávač: pěkné načítání --- */
.player-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(14px, 2.6vh, 32px); background: radial-gradient(circle at 50% 45%, rgba(0, 119, 255, 0.12), transparent 60%); color: var(--color-text-muted); font-family: var(--font-display); font-size: clamp(1rem, 2.4vh, 1.7rem); }
.player-spinner { width: clamp(46px, 8vh, 108px); height: clamp(46px, 8vh, 108px); border-radius: 50%; border: 4px solid rgba(255, 255, 255, 0.14); border-top-color: var(--color-blue-glow); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.player-loading-logo { width: auto; height: clamp(54px, 13vh, 180px); opacity: .9; filter: drop-shadow(0 0 14px rgba(0, 150, 255, 0.5)); }

/* --- Scroll reveal (přidává JS jen prvkům pod ohybem) --- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* --- Respekt k vypnutým animacím --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important; animation-iteration-count: 1 !important;
        transition-duration: .001ms !important; scroll-behavior: auto !important;
    }
    body::before, .brand-mark, .badge-card.earned .badge-ico { animation: none !important; }
    .game-grid .game-card { animation: none !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
}

/* --- Živé herní statistiky v přehrávači --- */
.player-stats { display: flex; gap: 8px; align-items: center; flex: 1 1 auto; min-width: 0; flex-wrap: wrap; }
.player-stats:empty { display: none; }
.pstat { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--color-panel-border); font-size: .8rem; white-space: nowrap; }
.pstat em { font-style: normal; color: var(--color-text-muted); }
.pstat b { font-family: 'Space Grotesk', monospace; color: var(--color-text); }
.pstat-primary { background: rgba(0, 119, 255, 0.16); border-color: rgba(0, 119, 255, 0.4); }
.pstat-primary b { color: var(--color-blue-glow); }

/* --- Galerie screenshotů (detail) --- */
.gallery { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.gallery-item { width: 168px; height: 96px; border-radius: 10px; overflow: hidden; border: 1px solid var(--color-panel-border); display: block; flex: none; background: #000; }
.gallery-item img, .gallery-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item:not(.gallery-video) { cursor: zoom-in; transition: transform .2s, border-color .2s; }
.gallery-item:not(.gallery-video):hover { transform: translateY(-2px); border-color: rgba(54, 194, 255, 0.5); }
.gallery-video { width: 228px; height: 128px; }

/* --- Lightbox --- */
.lightbox { position: fixed; inset: 0; z-index: 1100; background: rgba(2, 5, 12, 0.92); display: none; align-items: center; justify-content: center; padding: 30px; backdrop-filter: blur(4px); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.lightbox-close, .lightbox-nav { position: absolute; background: rgba(255, 255, 255, 0.1); border: 1px solid var(--color-panel-border-2); color: #fff; border-radius: 10px; cursor: pointer; font-size: 1.5rem; width: 46px; height: 46px; display: grid; place-items: center; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-nav.prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 18px; top: 50%; transform: translateY(-50%); }

/* --- Admin: nahraná média --- */
.shot-admin-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.shot-admin { position: relative; width: 124px; height: 72px; border-radius: 8px; overflow: hidden; border: 1px solid var(--color-panel-border); background: #000; display: grid; place-items: center; }
.shot-admin img { width: 100%; height: 100%; object-fit: cover; }
.shot-admin .shot-del { position: absolute; top: 3px; right: 3px; margin: 0; }
.shot-admin .shot-del .btn { width: 26px; height: 26px; padding: 0; border-radius: 6px; line-height: 1; }
.shot-admin-video { color: var(--color-text-muted); font-size: .85rem; }

/* --- Dokumentace pro hry (admin) --- */
.docs-box { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* --- Skupiny statistik + admin override --- */
.stat-group-title { font-size: 1.05rem; margin: 18px 0 10px; color: var(--color-text-muted); }
.ov-group { border: 1px solid var(--color-panel-border); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.ov-grouphead { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.ov-stat { display: flex; align-items: center; gap: 10px; padding: 6px 0; flex-wrap: wrap; }
.ov-stat code { min-width: 90px; }
.ov-stat input[type="text"], .ov-grouphead input[type="text"] { flex: 1; min-width: 160px; }
.ov-hide { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--color-text-muted); font-size: .85rem; }

/* --- Statistiky hráče na detailu (kompaktní, vycentrované) --- */
.gstats { display: flex; flex-direction: column; gap: 14px; margin-bottom: 8px; }
.gstats-group { background: var(--color-panel); border: 1px solid var(--color-panel-border); border-radius: var(--radius-card); padding: 16px 18px; }
.gstats-title { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-muted); margin-bottom: 12px; font-weight: 600; }
.gstats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 10px; }
.gstat { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 3px; padding: 14px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--color-panel-border); }
.gstat-val { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1.1; color: #fff; word-break: break-word; }
.gstat-name { font-size: .76rem; color: var(--color-text-muted); }
.gstat-range { font-size: .68rem; color: var(--color-text-dim); }

/* --- Žebříčky na detailu: vyplní šířku (1 přes celé, víc se rozdělí) --- */
.lb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }

/* --- Tagy / kategorie --- */
.tag-chip { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: .74rem; line-height: 1.5; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--color-panel-border); color: var(--color-text-muted); }
.tag-chip:hover { background: rgba(0, 119, 255, 0.15); color: var(--color-text); text-decoration: none; }
.tag-chip.is-active { background: var(--grad-blue); color: #fff; border-color: transparent; }
.card-tags { display: flex; gap: 5px; flex-wrap: wrap; margin: 0 0 12px; }
.tag-bar { display: flex; gap: 7px; flex-wrap: wrap; margin: 0 0 18px; }

/* --- Zamčená hra v katalogu --- */
.card-lock { position: absolute; top: 8px; left: 8px; z-index: 2; background: rgba(5, 9, 20, 0.65); border: 1px solid var(--color-panel-border-2); border-radius: 8px; padding: 3px 8px; font-size: .85rem; backdrop-filter: blur(6px); }
.game-card.is-locked .game-card-cover img { filter: saturate(.9) brightness(.9); }

/* --- Notifikace (zvoneček + stránka) --- */
.bell { position: relative; }
.bell-badge { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--color-red-glow, #ff5460); color: #fff; font-size: .66rem; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 8px rgba(255, 84, 96, 0.7); }
.notif-list { display: flex; flex-direction: column; gap: 8px; }
.notif { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: 12px; background: var(--color-panel); border: 1px solid var(--color-panel-border); color: var(--color-text); transition: transform .15s, border-color .15s; }
a.notif:hover { border-color: rgba(54, 194, 255, 0.5); text-decoration: none; transform: translateY(-1px); }
.notif.is-unread { border-color: rgba(0, 119, 255, 0.5); background: rgba(0, 119, 255, 0.08); }
.notif-ico { font-size: 1.3rem; line-height: 1.3; flex: none; }
.notif-main { min-width: 0; }
.notif-title { font-weight: 600; }
.notif-body { color: var(--color-text-muted); font-size: .88rem; margin-top: 2px; }
.notif-time { color: var(--color-text-dim); font-size: .74rem; margin-top: 4px; font-family: 'Space Grotesk', monospace; }

/* --- Hodnocení a recenze --- */
.stars { color: #ffcc00; letter-spacing: 1px; white-space: nowrap; }
.stars-lg { font-size: 1.4rem; }
.card-rating { display: flex; align-items: center; gap: 6px; font-size: .8rem; margin: 0 0 10px; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; font-size: 1.9rem; }
.star-input input { display: none; }
.star-input label { color: rgba(255, 255, 255, 0.2); cursor: pointer; transition: color .12s; line-height: 1; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #ffcc00; }
.reviews { display: flex; flex-direction: column; gap: 14px; }
.reviews-summary { display: flex; align-items: center; gap: 16px; }
.rev-avg { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; line-height: 1; }
.review-form textarea { width: 100%; margin: 10px 0; }
.review-list { display: flex; flex-direction: column; gap: 10px; }
.review { background: var(--color-panel); border: 1px solid var(--color-panel-border); border-radius: 12px; padding: 13px 15px; }
.review.is-hidden { opacity: .55; }
.review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review-author { font-weight: 600; }
.review-date { font-size: .78rem; }
.review-body { margin: 8px 0 0; }

/* --- Hero banner (dashboard) --- */
.hero { position: relative; display: block; border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--color-panel-border); margin-bottom: 24px; background: linear-gradient(135deg, rgba(0, 119, 255, 0.25), rgba(255, 31, 45, 0.18)); }
.hero:hover { text-decoration: none; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; transition: transform .4s, opacity .3s; }
.hero:hover .hero-bg { transform: scale(1.04); opacity: .6; }
.hero-content { position: relative; z-index: 1; padding: 34px clamp(20px, 4vw, 48px); min-height: 280px; max-width: 660px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; justify-content: center; background: linear-gradient(90deg, rgba(5, 9, 20, 0.88) 35%, rgba(5, 9, 20, 0)); }
.hero-badge { font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-warning, #ffcc00); }
.hero-title { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0; color: #fff; }
.hero-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-desc { color: var(--color-text); max-width: 540px; margin: 0; }

/* --- Vodorovné řady karet --- */
/* Řady karet se ZALAMUJÍ do dalšího řádku (žádný horizontální scroll). */
.row-scroll { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }

/* --- Gamifikace: XP, levely, achievementy --- */
.xp-panel { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.xp-level { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; background: var(--grad-blue); padding: 8px 16px; border-radius: 12px; color: #fff; white-space: nowrap; }
.xp-main { flex: 1; min-width: 0; }
.xp-bar-wrap { height: 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.xp-bar { height: 100%; background: var(--grad-brand); border-radius: 8px; transition: width .6s ease; }
.xp-info { font-size: .8rem; margin-top: 6px; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ach-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 12px; border-radius: 12px; background: rgba(255, 204, 0, 0.06); border: 1px solid rgba(255, 204, 0, 0.3); color: var(--color-text); }
a.ach-card { transition: transform .15s, border-color .15s; }
a.ach-card:hover { border-color: rgba(255, 204, 0, 0.6); text-decoration: none; transform: translateY(-2px); }
.ach-card-ico { font-size: 2rem; line-height: 1; }
.ach-img { width: 44px; height: 44px; object-fit: contain; display: block; }
.ach-card-label { font-weight: 600; font-size: .9rem; }
.ach-card-game { font-size: .72rem; }
.ach-toast { position: fixed; right: 20px; bottom: 20px; z-index: 1200; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; background: linear-gradient(135deg, rgba(20, 28, 56, 0.97), rgba(10, 17, 35, 0.98)); border: 1px solid rgba(255, 204, 0, 0.5); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); transform: translateY(150%); transition: transform .4s cubic-bezier(.2, .8, .2, 1); max-width: 320px; }
.ach-toast.show { transform: translateY(0); }
.ach-toast .ach-ico { font-size: 1.8rem; }
.ach-toast b { color: var(--color-warning, #ffcc00); }

/* --- Analytika: grafy --- */
.hbars { display: flex; flex-direction: column; gap: 9px; }
.hbar-row { display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: 10px; }
.hbar-label { font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { height: 14px; background: rgba(255, 255, 255, 0.06); border-radius: 7px; overflow: hidden; }
.hbar-fill { display: block; height: 100%; background: var(--grad-blue); border-radius: 7px; }
.hbar-val { font-family: 'Space Grotesk', monospace; font-size: .82rem; color: var(--color-text-muted); white-space: nowrap; }
.dchart { display: flex; align-items: flex-end; gap: 3px; height: 120px; }
.dcol { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.dcol-bar { display: block; width: 100%; background: var(--grad-blue); border-radius: 3px 3px 0 0; min-height: 2px; transition: background .15s; }
.dcol:hover .dcol-bar { background: var(--color-blue-glow); }
