@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('./assets/dm-sans-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('./assets/dm-sans-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./assets/fraunces-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./assets/fraunces-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

:root {
  --teal: #102b2b;
  --teal-dark: #0a2020;
  --teal-mid: #2c4c48;
  --cream: #f7f2e5;
  --paper: #fffaf0;
  --gold: #f6c34a;
  --gold-light: #ffda6e;
  --ink: #17302d;
  --muted: #52645a;
  --border: #d9d6c6;
  --heading: Fraunces, Georgia, serif;
  --body: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.55 var(--body);
}
main { flex: 1; }
a { color: inherit; }
button { font: inherit; }
button:enabled { cursor: pointer; }
:focus-visible { outline: 3px solid #9b5907; outline-offset: 4px; }
.site-header :focus-visible, .hero :focus-visible, .result-panel :focus-visible, .site-footer :focus-visible { outline-color: var(--gold-light); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--heading); font-weight: 650; line-height: 1.08; }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }
.wrap { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 10px 14px; background: var(--cream); }

.site-header { background: var(--teal-dark); color: var(--cream); border-bottom: 1px solid #ffffff20; }
.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 69px;
  column-gap: clamp(14px, 3vw, 32px);
}
.brand, .header-link { display: inline-flex; align-items: center; text-decoration: none; }
.brand { gap: 11px; font-weight: 790; font-size: 1.15rem; letter-spacing: -.04em; white-space: nowrap; }
.brand-mark { display: block; width: 35px; height: 35px; border-radius: 8px; background: var(--gold); padding: 2px; object-fit: contain; }
.header-link { gap: 8px; font-size: .88rem; font-weight: 700; }
.header-link span { color: var(--gold); }
.header-link:hover { text-decoration: underline; }

.hero { background: var(--teal); color: var(--cream); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; }
.hero-copy { padding: 61px 38px 51px 0; align-self: center; }
.series-name { font-size: .92rem; font-weight: 720; color: #e8c982; margin-bottom: 19px; }
.hero h1 { font-size: clamp(3.25rem, 5.7vw, 5.25rem); letter-spacing: -.065em; line-height: .99; }
.hero h1 span { display: block; color: var(--gold); }
.hero-description { margin-top: 24px; font-size: 1.05rem; max-width: 38ch; color: #e0e7da; }
.hero-photo { position: relative; min-height: 100%; overflow: hidden; background: #153936; }
.hero-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 58% 61%; }
.hero-cta { margin-top: 26px; }
.hero-meta { margin-top: 18px; display: flex; gap: .34em; align-items: center; color: #d5dfd5; font-size: .83rem; }
.hero-meta strong { color: var(--cream); }
.hero-meta span { width: 3px; height: 3px; background: var(--gold); border-radius: 50%; margin: 0 .45em; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 44px; padding: 10px 16px; border: 1px solid transparent; border-radius: 7px; font-size: .92rem; font-weight: 780; line-height: 1.25; text-decoration: none; text-align: center; }
.button-gold { background: var(--gold); color: var(--teal-dark); }
.button-gold:hover:not(:disabled) { background: var(--gold-light); }
.button:disabled { background: #e9e3d2; color: #625f56; }
.button-outline { color: var(--cream); background: transparent; border-color: #faf0d769; }
.button-outline:hover { background: #ffffff13; }
.text-button { padding: 6px 0; border: 0; background: transparent; color: var(--ink); font-weight: 720; }
.text-button:hover { text-decoration: underline; }
.text-button span { margin-right: 5px; }

.level-section { padding-block: 49px 55px; }
#urovne, #levels-title { scroll-margin-top: 22px; }
.level-section-heading { display: flex; gap: 16px; align-items: end; justify-content: space-between; margin-bottom: 27px; }
.level-section-heading h2, .review h2 { font-size: clamp(2.25rem, 4vw, 3.25rem); letter-spacing: -.055em; }
.level-section-heading p, .review-heading p { color: var(--muted); margin-top: 8px; }
.level-section-heading .spoiler { display: flex; align-items: center; gap: 7px; font-size: .85rem; font-weight: 650; }
.spoiler span { width: 17px; height: 17px; border-radius: 50%; border: 1px solid currentColor; text-align: center; font-size: .72rem; line-height: 15px; flex: none; }
.level-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.level-card { display: flex; flex-direction: column; min-width: 0; padding: 17px; border: 1px solid var(--border); border-radius: 12px; background: var(--paper); }
.card-top, .card-footer { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.card-top { margin-bottom: 18px; }
.level-icon { display: inline-grid; place-items: center; flex: none; width: 39px; height: 39px; border-radius: 8px; background: #e6eadb; color: #28514b; font: 25px/1 Georgia, serif; }
.level-order { color: var(--muted); font-size: .75rem; font-weight: 760; }
.level-card h3 { font-size: clamp(1.48rem, 2.15vw, 1.925rem); letter-spacing: -.045em; }
.card-description { color: var(--muted); min-height: 3.15em; margin-block: 8px 19px; font-size: .88rem; line-height: 1.44; }
.card-footer { margin-top: auto; padding-top: 13px; border-top: 1px solid var(--border); color: var(--muted); font-size: .76rem; font-weight: 700; }
.card-button { background: #e6eadb; color: var(--ink); padding-inline: 11px; gap: 6px; font-size: .82rem; }
.card-button:hover { background: #d4e0ce; }
.level-bonus { background: var(--teal); color: var(--cream); border-color: var(--teal); }
.level-bonus .level-icon { color: var(--teal-dark); background: var(--gold); }
.level-bonus .level-order { color: #f5cb7a; }
.level-bonus .card-description, .level-bonus .card-footer { color: #d8e1d5; }
.level-bonus .card-footer { border-color: #faf0d740; }
.level-bonus .card-button { background: var(--gold); }
.level-bonus .card-button:hover { background: var(--gold-light); }
.level-bonus :focus-visible { outline-color: var(--gold-light); }

.stage { padding-block: 36px 60px; }
.back-link { margin-bottom: 21px; }
.play-layout { display: grid; grid-template-columns: minmax(155px, 220px) minmax(0, 1fr); gap: clamp(23px, 5vw, 68px); }
.play-progress { align-self: start; padding-top: 12px; }
.play-level { display: flex; align-items: center; gap: 10px; font-weight: 810; }
.step-label { margin-top: 24px; }
progress { display: block; appearance: none; width: 100%; height: 7px; border: 0; border-radius: 12px; overflow: hidden; background: #ddd9c8; margin-block: 10px 8px; }
progress::-webkit-progress-bar { background: #ddd9c8; }
progress::-webkit-progress-value { background: #9d6909; border-radius: 12px; }
progress::-moz-progress-bar { background: #9d6909; border-radius: 12px; }
.progress-note { color: var(--muted); font-size: .82rem; }
.question-panel { border: 1px solid var(--border); background: var(--paper); border-radius: 16px; padding: clamp(20px, 4vw, 43px); }
.question-title { font-size: clamp(1.9rem, 4vw, 3.25rem); letter-spacing: -.048em; line-height: 1.12; }
fieldset { padding: 0; margin: 25px 0 0; border: 0; min-inline-size: 0; display: grid; gap: 9px; }
.option { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 13px; align-items: center; min-height: 58px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; overflow-wrap: anywhere; }
.option:hover { background: #f4f1e3; }
.option:has(input:checked) { background: #fff0c0; border-color: #9d6909; }
.option:has(input:focus-visible) { outline: 3px solid #9b5907; outline-offset: 3px; }
.option input { position: absolute; opacity: 0; margin: 0; inset-inline-start: 12px; width: 26px; height: 26px; }
.option-letter { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; background: #eeeadd; font-size: .82rem; font-weight: 820; }
.option:has(input:checked) .option-letter { background: var(--gold); }
.radio-mark { width: 16px; height: 16px; border: 1px solid #6f7b73; border-radius: 50%; margin-inline: 3px; }
.option:has(input:checked) .radio-mark { border: 5px solid #8b590c; background: var(--paper); }
.quiz-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 24px; }
.next-button { margin-left: auto; }

.result-panel { display: grid; grid-template-columns: minmax(130px, 180px) minmax(0, 1fr); gap: clamp(22px, 5vw, 55px); align-items: center; border-radius: 16px; padding: clamp(21px, 5vw, 55px); background: var(--teal); color: var(--cream); }
.score-disc { display: grid; place-items: center; width: 100%; max-width: 180px; aspect-ratio: 1; position: relative; isolation: isolate; border-radius: 50%; background: conic-gradient(var(--gold) var(--score), #42605c 0); text-align: center; }
.score-disc::before { content: ''; position: absolute; z-index: -1; inset: 8px; border-radius: inherit; background: var(--teal); }
.score-disc strong { display: block; color: var(--cream); font-size: clamp(2.1rem, 5vw, 3.5rem); font-family: var(--heading); line-height: 1; }
.score-disc strong span { font-size: .58em; color: #d8dece; margin-left: .13em; }
.percentage { color: var(--gold); font-weight: 790; }
.result-level { color: var(--gold); font-weight: 750; margin-bottom: 8px; }
.result-copy h1 { font-size: clamp(2.25rem, 5vw, 4.25rem); letter-spacing: -.045em; }
.result-copy > p:not(.result-level) { color: #d5e0d5; margin-top: 9px; }
.result-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 19px; }
.review { margin-top: 39px; }
.review-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 19px; }
.review-filter { display: inline-flex; flex: none; align-items: center; gap: 7px; cursor: pointer; min-height: 44px; font-size: .93rem; font-weight: 750; }
.review-filter input { accent-color: var(--teal); width: 18px; height: 18px; }
.answer-review { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.review-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; border: 1px solid var(--border); border-radius: 10px; padding: 16px; background: var(--paper); }
.review-item h3 { font-size: 1.24rem; margin: 3px 0 8px; }
.review-item p { color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.review-item .right-answer { color: #235442; }
.review-item .your-answer { color: #8a3528; }
.review-status { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; font-weight: 900; color: #235442; background: #deecdf; }
.incorrect .review-status { color: #8a3528; background: #f4e1d4; }
.review-item small { display: inline-block; margin-top: 6px; color: var(--muted); }

.site-footer { background: var(--teal-dark); color: #e2e8df; font-size: .84rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px 28px; align-items: start; padding-block: 20px; }
.footer-mark { margin-right: 5px; color: var(--gold); font-size: 1rem; }
.sources summary { cursor: pointer; font-weight: 730; }
.sources ul { margin: 8px 0 0; padding-left: 17px; }

@media (max-width: 1010px) {
  .wrap { width: calc(100% - 58px); }
  .hero-copy { padding-block: 49px 43px; }
  .level-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .level-card { padding: 19px; }
  .level-card h3 { font-size: 1.9rem; }
}

@media (max-width: 750px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 60px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding: 33px 0 25px; }
  .series-name { margin-bottom: 12px; }
  .hero h1 { font-size: clamp(2.7rem, 9.3vw, 4.8rem); }
  .hero-description { margin-top: 16px; }
  .hero-cta { margin-top: 18px; }
  .hero-photo { min-height: 0; aspect-ratio: 2.08; border-radius: 8px 8px 0 0; }
  .hero-photo img { object-position: 60% 60%; }
  .level-section { padding-block: 32px 36px; }
  .level-section-heading { align-items: start; flex-direction: column; gap: 3px; margin-bottom: 17px; }
  .level-grid { gap: 10px; }
  .level-card { padding: 13px; }
  .level-card h3 { font-size: 1.45rem; }
  .card-top { margin-bottom: 10px; }
  .card-description { margin-bottom: 12px; }
  .card-footer { flex-wrap: wrap; gap: 7px; }
  .play-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .play-progress { padding: 0; }
  .play-level { float: right; font-size: .86rem; }
  .play-level .level-icon { width: 25px; height: 25px; font-size: 17px; }
  .step-label { margin-top: 0; min-height: 25px; }
  .stage { padding-block: 20px 36px; }
  .back-link { margin-bottom: 13px; }
}

@media (max-width: 390px) {
  .level-grid { grid-template-columns: minmax(0, 1fr); }
  .level-card { padding: 16px; }
  .card-description { min-height: auto; }
  .footer-inner { flex-direction: column; }
  .review-heading { align-items: start; flex-direction: column; }
}

@media (max-width: 525px) {
  .result-panel { grid-template-columns: minmax(0, 1fr); }
  .score-disc { max-width: 124px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.show-nav {
  justify-self: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid #ffffff2e;
  border-radius: 9px;
}
.show-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 5px 11px;
  border-radius: 5px;
  color: var(--cream);
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}
.show-nav a:hover { background: #ffffff1a; }
.show-nav a[aria-current="page"] { background: var(--gold); color: var(--teal-dark); font-weight: 800; }

[data-show="prolhane-krasky"] {
  --teal: #40212f;
  --teal-dark: #28151e;
  --gold: #f3bdc9;
  --gold-light: #ffdae1;
}
[data-show="prolhane-krasky"] .series-name,
[data-show="prolhane-krasky"] .level-bonus .level-order { color: var(--gold-light); }
[data-show="prolhane-krasky"] .hero-description,
[data-show="prolhane-krasky"] .hero-meta,
[data-show="prolhane-krasky"] .level-bonus .card-description,
[data-show="prolhane-krasky"] .level-bonus .card-footer,
[data-show="prolhane-krasky"] .result-copy > p:not(.result-level) { color: #f1dfe4; }
[data-show="prolhane-krasky"] .hero-photo { background: #522837; }
[data-show="prolhane-krasky"] .level-card:not(.level-bonus) .level-icon,
[data-show="prolhane-krasky"] .level-card:not(.level-bonus) .card-button,
[data-show="prolhane-krasky"] .play-level .level-icon { background: #f5e4e7; color: #64253c; }
[data-show="prolhane-krasky"] .level-card:not(.level-bonus) .card-button:hover { background: #ecd0d9; }
[data-show="prolhane-krasky"] .option:has(input:checked) { background: #fcebef; border-color: #963b5a; }
[data-show="prolhane-krasky"] .option:has(input:checked) .radio-mark { border-color: #963b5a; }
[data-show="prolhane-krasky"] progress::-webkit-progress-value { background: #963b5a; }
[data-show="prolhane-krasky"] progress::-moz-progress-bar { background: #963b5a; }
[data-show="prolhane-krasky"] .score-disc { background: conic-gradient(var(--gold) var(--score), #794b5e 0); }

@media (max-width: 750px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 9px;
    padding-block: 10px 11px;
  }
  .show-nav {
    grid-area: 2 / 1 / 3 / -1;
    justify-self: start;
    justify-content: start;
  }
  .header-link { justify-self: end; }
}
@media (max-width: 358px) {
  .header-link { font-size: .78rem; }
  .brand { gap: 6px; font-size: 1.05rem; }
  .brand-mark { width: 29px; height: 29px; }
  .show-nav a { padding-inline: 7px; font-size: .8rem; }
}

.game-nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 2px 12px; }
.game-nav a { padding: 7px 0; color: var(--cream); font-size: .84rem; font-weight: 720; text-decoration: none; white-space: nowrap; }
.game-nav a:hover, .game-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; color: var(--gold-light); }
.header-inner { row-gap: 10px; padding-block: 10px; }
.hero-inner.without-photo { grid-template-columns: minmax(0, 1fr); }
.without-photo .hero-copy { max-width: 760px; }

.feature-panel, .share-panel {
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--paper);
  padding: clamp(20px, 4vw, 43px);
}
.feature-panel h1 { font-size: clamp(2.25rem, 5vw, 4rem); letter-spacing: -.055em; margin-bottom: 15px; }
.feature-panel h2, .share-panel h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); letter-spacing: -.04em; margin-bottom: 12px; }
.feature-lead { max-width: 60ch; margin-bottom: 17px; }
.feature-meta { color: var(--muted); font-weight: 750; margin-bottom: 8px; }
.feature-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 16px; margin-top: 12px; }
.feature-actions .text-button { min-height: 38px; text-decoration: none; line-height: 1.55; }
.feature-actions .text-button:hover { text-decoration: underline; }
.feature-panel > .button { margin-top: 12px; }
.back-link { display: inline-block; text-decoration: none; }
.form-message { color: var(--ink); font-weight: 700; margin-top: 8px; }
.form-message:empty { display: none; }
.empty-state { border-block: 1px solid var(--border); padding-block: 15px; color: var(--muted); }
.account-form { max-width: 440px; display: grid; gap: 9px; margin: 14px 0; }
.account-form .button { justify-self: start; }
.account-form label, .admin-form label, .share-panel label { font-size: .9rem; font-weight: 750; }
.account-form input, .admin-form input, .admin-form select, .admin-form textarea, .share-panel input, .newsletter-email input {
  display: block;
  width: 100%;
  min-inline-size: 0;
  min-height: 42px;
  border: 1px solid #a7aa9b;
  border-radius: 7px;
  background: #fffdf6;
  padding: 8px 10px;
  color: var(--ink);
  font: 500 .95rem/1.35 var(--body);
}
.admin-form input, .admin-form select, .admin-form textarea, .share-panel input { margin-top: 4px; }
.admin-form textarea { resize: vertical; }
.admin-form input[readonly], .admin-form select:disabled { background: var(--cream); }
.newsletter-panel {
  margin-top: 22px;
  padding: clamp(18px, 4vw, 32px);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--paper);
}
.newsletter-panel h2 { margin-bottom: 14px; }
.newsletter-panel fieldset { margin-block: 14px; }
.newsletter-panel legend, .newsletter-email { font-weight: 750; }
.newsletter-panel legend span, .newsletter-panel fieldset p { color: var(--muted); font-size: .88rem; font-weight: 500; }
.newsletter-email { display: block; max-width: 440px; }
.newsletter-email input { margin-top: 4px; }
.newsletter-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 2px 12px; }
.newsletter-choices label, .newsletter-consent { display: flex; align-items: flex-start; gap: 8px; line-height: 1.4; }
.newsletter-choices label { align-items: center; min-height: 34px; }
.newsletter-panel input[type="checkbox"] { flex: 0 0 auto; width: 17px; height: 17px; accent-color: var(--teal); }
.newsletter-consent { max-width: 630px; margin: 8px 0 16px; }
.newsletter-consent a { color: inherit; text-decoration: underline; }
.leaderboard-table { overflow: auto; margin-bottom: 8px; }
.leaderboard-table table { width: 100%; max-width: 780px; border-collapse: collapse; }
.leaderboard-table th, .leaderboard-table td { text-align: left; padding: 10px 9px; border-bottom: 1px solid var(--border); }
.leaderboard-table thead th { color: var(--muted); font-size: .83rem; }
.leaderboard-table tbody th { overflow-wrap: anywhere; }
.leaderboard-table tbody tr:first-child th { color: #704708; }
.share-panel { margin-top: 13px; }
.share-panel input { max-width: 660px; }
.shared-panel { margin-top: clamp(10px, 8vw, 100px); }

.admin-layout { display: grid; grid-template-columns: minmax(155px, 225px) minmax(0, 1fr); gap: clamp(18px, 3vw, 44px); }
.admin-sidebar { border-right: 1px solid var(--border); padding-right: 13px; }
.admin-sidebar > button { width: 100%; }
.admin-sidebar ul { padding: 0; margin: 10px 0 0; list-style: none; max-height: 54vh; overflow: auto; }
.admin-entry { width: 100%; display: grid; gap: 1px; text-align: left; background: transparent; border: 0; padding: 8px; color: var(--ink); border-radius: 5px; }
.admin-entry:hover, .admin-entry[aria-current="true"] { background: #ece9db; }
.admin-entry span { color: var(--muted); font-size: .82rem; }
.admin-form { min-width: 0; }
.admin-form > label, .admin-import { display: block; margin-top: 12px; }
.editor-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.admin-import { padding: 10px 12px; border: 1px solid var(--border); border-radius: 7px; }
.admin-import summary { cursor: pointer; font-weight: 750; }
.admin-import p { font-size: .88rem; margin-block: 6px; }
.admin-import button { margin-top: 6px; }
.admin-questions { display: grid; gap: 13px; margin: 14px 0; }
.admin-question { border: 1px solid var(--border); border-radius: 9px; padding: 12px; margin: 0; }
.admin-question legend { padding-inline: 6px; color: var(--teal); font-weight: 800; }
.admin-question .text-button { justify-self: start; }
.admin-publish { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--border); margin-top: 16px; padding-top: 16px; }
.admin-publish .form-message { flex: 1 0 100%; }

@media (max-width: 960px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .show-nav { grid-area: 2 / 1 / 3 / -1; justify-self: start; }
}
@media (max-width: 560px) {
  .game-nav { gap: 0 7px; }
  .game-nav a { font-size: .76rem; }
  .header-inner { column-gap: 8px; }
  .brand { font-size: .98rem; gap: 6px; }
  .brand-mark { width: 28px; height: 28px; }
  .admin-layout { grid-template-columns: minmax(0, 1fr); }
  .admin-sidebar { border-right: 0; border-bottom: 1px solid var(--border); padding: 0 0 12px; }
  .admin-sidebar ul { max-height: 160px; }
  .admin-form > .editor-options { grid-template-columns: minmax(0, 1fr); }
  .leaderboard-table th, .leaderboard-table td { padding-inline: 5px; }
}
@media (max-width: 350px) {
  .header-inner { grid-template-columns: minmax(0, 1fr); }
  .show-nav { grid-area: auto; }
  .game-nav { justify-content: flex-start; }
}

/* Front page and series library */
.header-inner { grid-template-columns: auto minmax(0, 1fr); }
.game-nav { justify-self: end; }
.landing-hero { background: var(--teal); color: var(--cream); overflow: clip; }
.landing-hero-inner { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; min-height: 425px; gap: 28px; }
.landing-intro { container-type: inline-size; padding-block: clamp(30px, 7vw, 80px); }
.landing-intro h1 { font-size: clamp(1.9rem, 13.5cqi, 5.45rem); letter-spacing: -.075em; line-height: .98; overflow-wrap: anywhere; }
.landing-intro p { margin-top: 19px; max-width: 29ch; color: #e0e7da; font-size: clamp(1.05rem, 2vw, 1.28rem); }
.landing-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.landing-art { min-height: 330px; width: 100%; align-self: stretch; background: center / cover no-repeat url('./assets/serialy/uvod.webp'); }
.landing-library { padding-block: clamp(32px, 7vw, 70px); scroll-margin-top: 16px; }
.library-header { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.library-header h2 { font-size: clamp(2.35rem, 5vw, 3.7rem); letter-spacing: -.063em; }
.library-search { width: min(100%, 290px); }
.library-search input { width: 100%; min-height: 44px; border-radius: 7px; padding: 9px 12px; border: 1px solid var(--border); background: var(--paper); color: var(--ink); font: inherit; }
#library-status { margin-top: 14px; color: var(--muted); font-size: .88rem; min-height: 1.4em; }
.library-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 2vw, 18px); padding: 0; margin: 13px 0 0; list-style: none; }
.library-card { display: block; height: 100%; overflow: hidden; border: 1px solid var(--border); border-radius: 9px; background: var(--paper); text-decoration: none; }
.library-card:hover { border-color: #8f865f; }
.library-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.library-cover { display: block; aspect-ratio: 1.64; background: var(--teal-mid); position: relative; }
.library-cover img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.library-cover[data-empty]::after { content: '▶'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold); font-size: 1.75rem; }
.library-card-body { padding: 12px 14px 14px; }
.library-card h3 { font-size: clamp(1.1rem, 2.2vw, 1.45rem); letter-spacing: -.025em; }
.library-card p { margin-top: 5px; color: var(--muted); font-size: .83rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-nav .text-button { color: inherit; font: inherit; }
.analytics-choice { position: fixed; inset: auto 16px 16px auto; margin: 0; width: min(100% - 32px, 490px); max-height: calc(100dvh - 32px); padding: clamp(16px, 4vw, 24px); border: 1px solid var(--border); border-radius: 12px; background: var(--paper); color: var(--ink); box-shadow: 0 6px 36px #102b2b32; }
.analytics-choice p { margin-top: 8px; color: var(--muted); }
.analytics-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.analytics-choice .button { background: var(--paper); border: 1px solid var(--teal); color: var(--teal); }
.analytics-choice form { margin-top: 12px; display: grid; justify-items: start; gap: 8px; }
.analytics-choice form input { accent-color: var(--teal); }
.footer-nav a, .information-copy a, .account-information a { text-underline-offset: 4px; }
.information-copy, .account-information { margin-top: 17px; }
.information-copy { max-width: 72ch; }
.information-copy h2 { margin-top: 25px; margin-bottom: 6px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.information-copy p + p { margin-top: 12px; }
.information-copy dt { font-weight: 700; }
.information-copy dd { margin: 2px 0 10px; }
.account-information { font-size: .88rem; }
.account-information span { padding-inline: 4px; }
@media (max-width: 850px) {
  .library-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .landing-hero-inner { min-height: 370px; }
}
@media (max-width: 620px) {
  .landing-hero-inner { display: block; }
  .landing-intro { padding-block: 32px 22px; }
  .landing-art { min-height: 0; aspect-ratio: 1.95; }
  .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { flex-wrap: wrap; }
}
@media (max-width: 350px) {
  .header-inner { grid-template-columns: minmax(0, 1fr); }
  .game-nav { justify-self: start; }
}
