/* Games ve stylu tom-apk.com: černá, azurový akcent, Archivo + Instrument Sans. */

:root {
  color-scheme: dark;
  --bg: #000000;
  --bg-2: #0b0d10;
  --bg-3: #14171b;
  --ink: #f5f7fa;
  --muted: #9aa3ad;
  --faint: #7d8691;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --accent: #00e5ff;
  --accent-ink: #001a1f;
  --danger: #ff6b5e;
  --display: 'Archivo', 'Arial Narrow', sans-serif;
  --sans: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; outline: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; overflow-wrap: break-word; }
h1, h2 { font-family: var(--display); font-weight: 900; font-stretch: 80%; letter-spacing: -0.04em; line-height: 0.95; }
h2 { font-size: clamp(2.4rem, 5.6vw, 4.5rem); }
h3 { font: 700 1.15rem/1.2 var(--display); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 10px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 10px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.eyebrow { margin: 0; font: 600 13px/1.3 var(--display); font-stretch: 112%; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.eyebrow + h2 { margin-top: 14px; }

/* ------------------------------------------------ ikony */
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-fill { fill: currentColor; stroke: none; }
.star { width: 1em; height: 1em; flex: none; fill: var(--accent); }
.stars { display: inline-flex; gap: 2px; vertical-align: -0.1em; }
.stars .star.off { fill: var(--line-2); }

/* ------------------------------------------------ tlačítka a odkazy */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink);
  font: 600 16px/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.15s, filter 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: rgba(255, 255, 255, 0.06); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent); filter: brightness(1.08); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-small { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-danger { color: var(--danger); border-color: rgba(255, 107, 94, 0.5); }
.btn-danger:hover { background: rgba(255, 107, 94, 0.08); }
.more { color: var(--accent); font-weight: 600; font-size: 17px; text-decoration: none; }
.more::after { content: ' ›'; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font-size: 15px; font-weight: 600; cursor: pointer; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------ hlavička */
.site-header { position: sticky; top: 0; z-index: 40; }
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(0, 0, 0, 0.72); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; min-height: 56px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font: 800 19px/1 var(--display); letter-spacing: -0.01em; }
.logo-mark { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2.5; }
.search { position: relative; max-width: 400px; width: 100%; justify-self: center; }
.search input {
  width: 100%; height: 40px; padding: 0 16px 0 42px; font-size: 15px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); border-radius: 999px;
}
.search input::placeholder { color: var(--faint); }
.search input:focus { border-color: var(--accent); outline: none; }
.search-ico { position: absolute; left: 15px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav-link { background: none; border: 0; padding: 4px 0; font-size: 14px; color: var(--muted); text-decoration: none; cursor: pointer; white-space: nowrap; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); }

@media (max-width: 760px) {
  .header-inner { grid-template-columns: auto auto; justify-content: space-between; gap: 10px 16px; padding-block: 10px; }
  .search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .nav { gap: 16px; }
  .nav-logout, .hide-sm { display: none; }
}

/* ------------------------------------------------ úvod */
.hero { text-align: center; padding-block: clamp(72px, 11vw, 140px) clamp(72px, 10vw, 128px); overflow: hidden; }
.hero-mark { width: 44px; height: 44px; margin: 0 auto 22px; fill: none; stroke: var(--accent); stroke-width: 1.6; }
.hero-title { margin-top: 14px; font-size: clamp(5rem, 19vw, 13rem); font-stretch: 78%; letter-spacing: -0.045em; line-height: 0.86; }
.hero-sub { margin: 26px auto 0; max-width: 22ch; font: 600 clamp(1.5rem, 3.4vw, 2.4rem)/1.15 var(--display); letter-spacing: -0.015em; }
.hero-lead { margin: 18px auto 0; max-width: 36rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 28px; margin-top: 36px; }

/* ------------------------------------------------ sekce */
.section { padding-block: clamp(80px, 11vw, 150px); }
.section + .section { border-top: 1px solid var(--line); }

/* ------------------------------------------------ výpis her */
.games-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 20px; margin-top: 12px; }
.games-count { color: var(--muted); font-size: 16px; }
.games-head .link-btn { margin-left: auto; }
.filters { display: flex; align-items: center; gap: 16px; margin-top: 36px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding: 4px 2px; margin: -4px -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 9px 16px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line-2);
  font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer;
}
.chip:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: transparent; color: var(--accent-ink); font-weight: 600; }
.select-wrap { flex: none; }

select {
  appearance: none; -webkit-appearance: none;
  padding: 11px 44px 11px 16px; font-size: 15px;
  background: rgba(255, 255, 255, 0.04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%239aa3ad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 18px;
  border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer;
}
select:focus { border-color: var(--accent); outline: none; }
select option { background: var(--bg-3); }
.filters select { border-radius: 999px; }

@media (max-width: 760px) {
  .filters { flex-direction: column; align-items: stretch; }
  .select-wrap select { width: 100%; }
}

.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: clamp(32px, 4vw, 48px) clamp(16px, 2.5vw, 28px);
  margin-top: 40px;
}
@media (max-width: 400px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card { display: flex; flex-direction: column; min-width: 0; text-decoration: none; }
.icon {
  width: 100%; height: auto; aspect-ratio: 1; border-radius: 22%; object-fit: cover;
  background: var(--bg-3); border: 1px solid var(--line);
}
.icon-ph { display: grid; place-items: center; container-type: inline-size; font-family: var(--display); font-weight: 900; font-stretch: 80%; color: var(--accent); }
.icon-ph span { font-size: 46cqi; line-height: 1; }
.card .icon { transition: transform 0.2s ease; }
.card:hover .icon { transform: translateY(-4px); }
.card-title {
  margin-top: 14px; font-weight: 600; font-size: 17px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card:hover .card-title { color: var(--accent); }
.card-cat { margin-top: 2px; font-size: 14px; color: var(--muted); }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 10px; }
.card-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; }
.ptag { padding: 2px 8px; border: 1px solid var(--line-2); border-radius: 999px; font: 600 10.5px/1.5 var(--display); font-stretch: 112%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.empty { grid-column: 1 / -1; padding: 48px 0; }
.empty-title { font: 700 1.35rem/1.2 var(--display); }
.empty p + p { margin-top: 10px; }
.empty .btn { margin-top: 26px; }

/* ------------------------------------------------ pro autory */
.statement { text-align: center; }
.statement-title { margin: 14px auto 0; max-width: 14ch; font-size: clamp(2.8rem, 8vw, 6.5rem); line-height: 0.92; }
.statement-title span { color: var(--faint); }
.statement .hero-actions { margin-top: 40px; }

.pi { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(56px, 7vw, 112px); }
@media (max-width: 900px) { .pi { grid-template-columns: 1fr; } }
.pi h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 30px; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start; }
.step-n { font: 900 2rem/0.9 var(--display); font-stretch: 80%; color: var(--accent); }
.steps p { margin-top: 6px; color: var(--muted); font-size: 17px; }
.faq { margin-top: 40px; }
.faq details { border-top: 1px solid var(--line-2); }
.faq details:last-of-type { border-bottom: 1px solid var(--line-2); }
.faq summary { position: relative; padding: 20px 44px 20px 0; font: 600 clamp(17px, 1.8vw, 19px)/1.35 var(--sans); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 44rem; font-size: 17px; }

/* ------------------------------------------------ stránka hry */
.page { padding-block: 36px clamp(80px, 10vw, 140px); }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 15px; text-decoration: none; }
.back:hover { color: var(--ink); }

.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; }
.manage {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  margin-top: 24px; padding: 14px 16px 14px 20px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; font-size: 16px;
}
.manage-info { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.manage-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.status { display: inline-block; padding: 3px 10px; border: 1px solid; border-radius: 999px; font: 600 10.5px/1.5 var(--display); font-stretch: 112%; letter-spacing: 0.14em; text-transform: uppercase; }
.status-pub { color: var(--accent); border-color: rgba(0, 229, 255, 0.5); }
.status-draft { color: var(--muted); border-color: var(--line-2); }

.game-head { display: grid; grid-template-columns: clamp(104px, 14vw, 160px) 1fr; gap: clamp(22px, 3vw, 40px); align-items: center; margin-top: 36px; }
.game-title { font-size: clamp(2.6rem, 7vw, 5.2rem); }
.game-author { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.game-author:hover { text-decoration: underline; text-underline-offset: 4px; }
.game-cat { display: block; margin-top: 2px; color: var(--muted); }

.game-stats { display: flex; flex-wrap: wrap; margin: 40px 0 0; padding: 0; }
.game-stats > div { display: flex; flex-direction: column-reverse; padding: 0 clamp(20px, 3vw, 36px); border-left: 1px solid var(--line-2); }
.game-stats > div:first-child { padding-left: 0; border-left: 0; }
.game-stats dd { margin: 0; display: flex; align-items: center; gap: 6px; font: 900 1.9rem/1 var(--display); font-stretch: 80%; letter-spacing: -0.02em; }
.game-stats dd .star { width: 0.7em; height: 0.7em; }
.game-stats dt { margin-top: 6px; font-size: 14px; color: var(--muted); }

.game-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 36px; }
.game-tagline { margin-top: 48px; max-width: 30ch; font: 600 clamp(1.4rem, 3vw, 2.1rem)/1.15 var(--display); letter-spacing: -0.015em; }

.shots { display: flex; gap: 16px; margin-top: 40px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.shots a { flex: none; scroll-snap-align: start; }
.shots img { height: clamp(190px, 30vw, 340px); width: auto; border-radius: 22px; border: 1px solid var(--line); background: var(--bg-2); }

.game-body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 100px); margin-top: clamp(64px, 8vw, 100px); }
@media (max-width: 860px) { .game-body { grid-template-columns: 1fr; } }
.game-body h2, .reviews h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.desc { margin-top: 24px; max-width: 62ch; }
.desc p { white-space: pre-line; }
.desc p + p { margin-top: 1em; }
.facts-box { padding: clamp(22px, 3vw, 30px); align-self: start; }
.manage-note { flex-basis: 100%; color: var(--muted); font-size: 15px; }
.form-note { margin-top: 16px; }
.admin-files { display: flex; flex-direction: column; font: 500 15px/1.4 var(--sans) !important; }
.facts-title { margin-bottom: 18px; }
.facts { margin: 0; display: grid; gap: 16px; font-size: 16px; }
.facts dt { font: 600 11px/1.4 var(--display); font-stretch: 112%; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 500; overflow-wrap: anywhere; }
.facts a { color: var(--accent); text-decoration: none; }

.reviews { margin-top: clamp(72px, 9vw, 120px); padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line); }
.reviews-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(48px, 6vw, 100px); margin-top: 32px; }
@media (max-width: 860px) { .reviews-grid { grid-template-columns: 1fr; } }
.rsum { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.rsum-avg { display: flex; flex-direction: column; gap: 6px; }
.rsum-avg strong { font: 900 4.4rem/0.85 var(--display); font-stretch: 80%; letter-spacing: -0.04em; }
.rsum-avg span { font-size: 14px; color: var(--muted); }
.rbar { display: grid; grid-template-columns: 14px 1fr 32px; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.rbar + .rbar { margin-top: 6px; }
.rbar-track { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.rbar-fill { height: 100%; width: 0; background: var(--accent); border-radius: 3px; }

.review-form { margin-top: 40px; }
.rate { border: 0; margin: 0 0 18px; padding: 0; }
.rate legend { padding: 0; font-weight: 600; margin-bottom: 8px; }
.rate-stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rate-stars input { position: absolute; opacity: 0; pointer-events: none; }
.rate-stars label { cursor: pointer; padding: 4px; border-radius: 6px; }
.rate-stars .star { width: 30px; height: 30px; fill: transparent; stroke: var(--line-2); stroke-width: 1.5; transition: fill 0.1s; }
.rate-stars input:checked ~ label .star,
.rate-stars label:hover .star,
.rate-stars label:hover ~ label .star { fill: var(--accent); stroke: var(--accent); }
.rate-stars input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.review-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.review-cta { margin-top: 24px; color: var(--muted); }
.review-cta a { color: var(--accent); font-weight: 600; text-decoration: none; }

.review-list { list-style: none; margin: 0; padding: 0; }
.review { padding: 24px 0; border-bottom: 1px solid var(--line); }
.review:first-child { padding-top: 0; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.review-name { font-weight: 600; text-decoration: none; }
.review-name:hover { color: var(--accent); }
.review-date { font-size: 14px; color: var(--muted); }
.review p { margin-top: 10px; white-space: pre-line; overflow-wrap: anywhere; }
.review .link-btn { margin-top: 10px; }

/* ------------------------------------------------ přehrávač */
body.playing .site-header, body.playing .site-footer { display: none; }
.player { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; background: #000; }
.player-bar { display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 0 16px; background: #000; border-bottom: 1px solid var(--line); }
.player-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 18px/1 var(--display); letter-spacing: -0.01em; }
.player iframe { flex: 1; width: 100%; border: 0; background: #000; }

/* ------------------------------------------------ formuláře */
.narrow { max-width: 820px; }
.page-title { margin-top: 28px; font-size: clamp(2.8rem, 7vw, 5rem); }
.page-lead { margin-top: 18px; color: var(--muted); max-width: 40rem; }
.editor { margin-top: 56px; }
.editor fieldset { margin: 0 0 28px; padding: clamp(22px, 3.5vw, 34px); min-width: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; }
.editor legend { float: left; width: 100%; padding: 0; margin-bottom: 24px; font: 900 clamp(1.7rem, 3vw, 2.2rem)/1 var(--display); font-stretch: 88%; letter-spacing: -0.015em; }
.editor legend + * { clear: left; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 24px; }
.editor fieldset > .field:last-child { margin-bottom: 0; }
.label { font-weight: 600; font-size: 16px; }
.hint { color: var(--muted); font-size: 14px; }
.editor fieldset > .hint { margin: -10px 0 22px; }
input[type="text"], input[type="email"], input[type="password"], textarea {
  width: 100%; padding: 12px 14px; font-size: 16px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); border-radius: 12px;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, textarea:focus { border-color: var(--accent); outline: none; }
textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
input[type="file"] {
  width: 100%; padding: 14px; color: var(--muted); font-size: 14px;
  background: rgba(255, 255, 255, 0.02); border: 1px dashed var(--line-2); border-radius: 12px; cursor: pointer;
}
input[type="file"]:hover { border-color: var(--muted); }
input[type="file"]::file-selector-button {
  margin-right: 14px; padding: 9px 16px; cursor: pointer;
  background: transparent; color: var(--ink); font: 600 14px var(--sans);
  border: 1px solid var(--line-2); border-radius: 999px;
}
.icon-pick { display: grid; grid-template-columns: 112px 1fr; gap: 20px; align-items: center; }
@media (max-width: 520px) { .icon-pick { grid-template-columns: 1fr; } .icon-preview { width: 112px; } }
.icon-preview { aspect-ratio: 1; border-radius: 22%; overflow: hidden; background: var(--bg-3); border: 1px solid var(--line); display: grid; place-items: center; color: var(--faint); font-size: 13px; text-align: center; }
.icon-preview img { width: 100%; height: 100%; object-fit: cover; }
.shot-list { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-wrap: wrap; gap: 14px; }
.shot-list:empty { display: none; }
.shot-list li { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.shot-list img { height: 96px; width: auto; max-width: 180px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.current-file { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-bottom: 8px; padding: 12px 16px; background: var(--bg-3); border-radius: 12px; font-size: 15px; }
.current-file strong { font-weight: 600; overflow-wrap: anywhere; }
.current-file .link-btn { margin-left: auto; }
.upload-block + .upload-block { padding-top: 24px; border-top: 1px solid var(--line); }
.field-inline { margin: 14px 0 0; max-width: 260px; }
.form-error { margin-bottom: 24px; padding: 14px 18px; border: 1px solid rgba(255, 107, 94, 0.5); border-radius: 12px; color: var(--danger); font-weight: 500; font-size: 16px; }
.progress { margin-bottom: 24px; }
.progress-label { font-weight: 500; font-size: 16px; }
.progress-track { height: 6px; margin-top: 10px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--accent); transition: width 0.15s linear; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.auth-page { max-width: 480px; }
.auth-form { margin-top: 36px; padding: clamp(22px, 3.5vw, 34px); background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; }
.auth-form .btn-block { margin-top: 8px; }
.auth-switch { margin-top: 24px; color: var(--muted); font-size: 16px; }
.auth-switch a { color: var(--accent); font-weight: 600; text-decoration: none; }

/* ------------------------------------------------ moje hry */
.mine-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.mine-head .muted { margin-top: 12px; font-size: 16px; }
.mine-list { list-style: none; margin: 48px 0 0; padding: 0; border-top: 1px solid var(--line); }
.mine-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 16px 28px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.mine-row .icon { width: 64px; }
.mine-main { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.mine-title { font-weight: 600; font-size: 18px; text-decoration: none; overflow-wrap: anywhere; }
.mine-title:hover { color: var(--accent); }
.mine-stats { display: flex; gap: 26px; margin: 0; }
.mine-stats > div { display: flex; flex-direction: column-reverse; }
.mine-stats dd { margin: 0; font: 900 1.35rem/1 var(--display); font-stretch: 80%; }
.mine-stats dt { margin-top: 4px; font-size: 13px; color: var(--muted); }
.mine-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 860px) {
  .mine-row { grid-template-columns: 56px minmax(0, 1fr); }
  .mine-row .icon { width: 56px; }
  .mine-stats, .mine-actions { grid-column: 1 / -1; }
}
.account-box { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 56px; }

/* ------------------------------------------------ vývojář, chyby */
.dev-meta { margin-top: 14px; color: var(--muted); }
.msg-page { padding-block: clamp(96px, 14vw, 180px); text-align: center; }
.msg-page p { margin: 20px auto 0; color: var(--muted); max-width: 40rem; }
.msg-page .btn { margin-top: 34px; }

/* ------------------------------------------------ patička */
.site-footer { border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; padding-block: 40px 52px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); }

/* ------------------------------------------------ oznámení */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; max-width: calc(100vw - 32px);
  padding: 13px 22px; border-radius: 999px; background: var(--ink); color: #000; font-weight: 600; font-size: 16px;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
