:root {
  --olive: #587d18;
  --olive-deep: #3f5c12;
  --ink: #243018;
  --muted: #5c6754;
  --cream: #f3efe4;
  --paper: #fbf8f1;
  --card: #fffdf8;
  --line: #e3dccb;
  --gold: #c89209;
  --gold-soft: #fbcd44;
  --danger: #7a332c;
  --danger-bg: #f8ebe6;
  --miss-bg: #fff4cc;
  --serif: "Museo", "Iowan Old Style", Palatino, serif;
  --sans: "Museo", "Iowan Old Style", Palatino, serif;
  --header: 68px;
}

@font-face {
  font-family: "Museo";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/Museo_300.woff2") format("woff2");
}
@font-face {
  font-family: "Museo";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/Museo_500.woff2") format("woff2");
}
@font-face {
  font-family: "Museo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/Museo_700.woff2") format("woff2");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; }
h1, h2, h3, p, ul, ol { margin-top: 0; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: white;
  padding: 0.7rem 1rem;
  z-index: 30;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  background: rgba(251, 248, 241, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner, .section-wrap, .footer-inner {
  width: min(1080px, calc(100% - 2.4rem));
  margin-inline: auto;
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--olive-deep);
}
.brand-mark { width: 42px; height: auto; flex: 0 0 auto; }
.brand strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}
nav { display: flex; align-items: center; gap: 1.3rem; }
nav a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
nav a:hover { color: var(--olive); }
.nav-cta {
  background: var(--olive-deep);
  color: var(--cream);
  padding: 0.55rem 0.8rem;
  border-radius: 2px;
}
.nav-cta:hover { color: white; }

.hero { padding: 2.6rem 0 2.2rem; }
.hero-grid {
  width: min(1080px, calc(100% - 2.4rem));
  margin: auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}
.hero-grid > *, .split > *, .header-inner > * { min-width: 0; }
.eyebrow, .section-kicker, .pot-kicker, .verdict-kicker, .menu-name, .fee span, .rules span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-kicker { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.85rem; }
.section-kicker span:first-child {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--olive);
  text-transform: none;
}
.hero h1, .split h2, .registration-inner h2, .verdict h3 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.hero h1 {
  margin: 0.7rem 0 0.9rem;
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  max-width: 12ch;
}
.hero h1 em { font-style: normal; font-weight: 700; color: var(--olive); }
.hero-lead { max-width: 38rem; color: var(--muted); margin-bottom: 1.1rem; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive-deep);
}
.diamond {
  width: 0.42rem;
  height: 0.42rem;
  background: var(--gold-soft);
  transform: rotate(45deg);
}
.hero-actions, .game-actions, .moral-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.2rem;
}
.hero-actions { margin-top: 1.4rem; }
.hero-mark { width: min(100%, 340px); max-width: 100%; justify-self: end; }

.button, .text-button {
  border: 0;
  cursor: pointer;
  text-decoration: none;
}
.button[hidden] { display: none; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.05rem;
  background: var(--olive-deep);
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.button:hover { background: var(--olive); }
.button-light { background: var(--cream); color: var(--olive-deep); }
.button-light:hover { background: white; }
.text-link, .text-button {
  background: none;
  color: var(--olive-deep);
  font-size: 0.82rem;
  font-weight: 700;
  text-underline-offset: 0.22em;
}
.text-link { text-decoration: underline; }
.text-button { text-decoration: underline; padding: 0; }
.text-button-light { color: var(--gold-soft); }

.requirements-section, .game-section, .registration-section { padding: 3.4rem 0; }
.menu-section { padding: 3.4rem 0 2.6rem; }
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem 2.5rem;
  align-items: end;
  margin-bottom: 1.6rem;
}
.split h2, .requirements-grid h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.15rem);
}
.split p, .registration-inner > p { color: var(--muted); margin: 0; }

.pot, .verdict, .menu {
  background: var(--card);
  border: 1px solid var(--line);
}
.menu-place, .fee { color: var(--muted); }

.menu { list-style: none; margin: 0; padding: 0.3rem 1.1rem; }
.menu li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.8rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.menu li:last-child { border-bottom: 0; }
.menu-no {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--gold);
}
.menu h3 { margin: 0.1rem 0; font-size: 1.25rem; font-family: var(--serif); font-weight: 700; }
.menu-name, .menu-place, .menu-taste { margin: 0; }
.menu-place { font-size: 0.92rem; }
.menu-taste { margin-top: 0.25rem; font-size: 0.95rem; }
.menu-note { margin: 0.9rem 0 0; color: var(--muted); font-size: 0.92rem; max-width: 46rem; }
.command { margin-top: 1.1rem; }
.command p {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.command ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.command li { font-size: 0.95rem; }
.command a { color: var(--olive-deep); font-weight: 700; text-underline-offset: 0.15em; }

.requirements-section { background: #f7f1dc; }
.requirements-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: start;
}
.requirements { list-style: none; margin: 0; padding: 0; }
.requirements li {
  padding: 0.65rem 0 0.65rem 1.4rem;
  border-bottom: 1px solid #e4d8b8;
  position: relative;
}
.requirements li::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  background: var(--olive);
  position: absolute;
  left: 0;
  top: 1.05rem;
  transform: rotate(45deg);
}
.fee-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  margin: 0.9rem 0 0;
}
.fee, .rules { margin: 0; font-size: 0.95rem; }
.fee span, .rules span { display: block; margin-bottom: 0.35rem; }
.fee ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.fee li { margin: 0; }
.fee strong { color: var(--ink); font-weight: 700; }
.rules {
  width: 100%;
  margin-top: 0.15rem;
  padding-top: 0.95rem;
  border-top: 1px solid #e4d8b8;
}
.rules a {
  display: inline-flex;
  align-items: center;
  margin-top: 0.15rem;
  padding: 0.55rem 0.85rem;
  border: 1.5px solid var(--olive-deep);
  color: var(--olive-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.rules a:hover { background: var(--olive-deep); color: var(--cream); }

.game-section { padding-bottom: 2.4rem; }
.game { display: grid; gap: 1rem; align-items: start; }
.pot {
  position: relative;
  width: min(100% - 1.2rem, 22rem);
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cream);
}
.pot-vessel {
  position: relative;
  min-height: 8.5rem;
  padding: 1.35rem 1rem 1.7rem;
  border-radius: 0.85rem 0.85rem 3.4rem 3.4rem;
  background:
    radial-gradient(90% 55% at 50% 0%, rgba(255, 255, 255, 0.14), transparent 58%),
    linear-gradient(#537a18, var(--olive-deep) 28%, #31480f);
  box-shadow:
    inset 0 0.38rem 0 var(--gold),
    inset 0 0.52rem 0 #8d680c,
    inset 0 -1.1rem 1.2rem rgba(0, 0, 0, 0.16);
}
.pot-vessel::before,
.pot-vessel::after {
  content: "";
  position: absolute;
  top: 1.35rem;
  width: 0.72rem;
  height: 1.45rem;
  border: 0.16rem solid var(--gold);
}
.pot-vessel::before {
  left: -0.52rem;
  border-right: 0;
  border-radius: 0.7rem 0 0 0.7rem;
}
.pot-vessel::after {
  right: -0.52rem;
  border-left: 0;
  border-radius: 0 0.7rem 0.7rem 0;
}
.pot-fire {
  display: block;
  width: 92%;
  height: auto;
  margin: -1.35rem auto 0;
}
.pot-kicker { color: var(--gold-soft); margin-bottom: 0.25rem; }
.pot-count { margin: 0; font-family: var(--serif); font-size: 1.25rem; line-height: 1.25; }
.pot-list { list-style: none; margin: 0.7rem 0 0; padding: 0 0.15rem 0.35rem; display: grid; gap: 0.4rem; max-height: 24rem; overflow: auto; scrollbar-width: none; }
.pot-list::-webkit-scrollbar { display: none; }
.pot-list:empty { display: none; }
.pill {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(251, 248, 241, 0.28);
  background: transparent;
  color: var(--cream);
  padding: 0.45rem 0.55rem;
  cursor: pointer;
}
.pill:hover { background: rgba(255, 255, 255, 0.06); }
.pill-spice {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.pill-text { display: block; font-size: 0.78rem; line-height: 1.35; }
.game-actions { margin-top: 0.75rem; }

.shelf { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.jar-wrap { position: relative; }
.jar-wrap:hover,
.jar-wrap:focus-within,
.jar-wrap:has(.hint[aria-expanded="true"]) { z-index: 4; }
.jar {
  text-align: left;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  padding: 0.75rem 2.15rem 0.7rem 0.8rem;
  cursor: pointer;
  display: grid;
  gap: 0.35rem;
}
.hint {
  position: absolute;
  top: 0.45rem;
  right: 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--olive-deep);
  line-height: 1;
  cursor: help;
}
.hint:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.hint-mark {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
}
.hint-bubble {
  display: none;
  position: relative;
  z-index: 5;
  width: auto;
  margin-top: 0.4rem;
  padding: 0.7rem 0.8rem;
  background: var(--olive-deep);
  color: var(--cream);
  text-align: left;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}
.hint.is-open ~ .hint-bubble,
.hint:focus-visible ~ .hint-bubble,
.hint[aria-expanded="true"] ~ .hint-bubble { display: block; }
.idea-line .hint {
  position: relative;
  top: auto;
  right: auto;
  display: inline-flex;
  margin-left: 0.35rem;
  vertical-align: text-top;
}
.jar:hover { border-color: var(--olive); }
.jar[aria-pressed="true"] { background: var(--olive-deep); color: var(--cream); border-color: var(--olive-deep); }
.jar-top { display: flex; justify-content: space-between; gap: 0.6rem; align-items: baseline; }
.spice, .jar-state, .badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.spice { color: var(--gold); }
.jar[aria-pressed="true"] .spice,
.jar[aria-pressed="true"] .jar-state { color: var(--gold-soft); }
.jar-state { color: var(--muted); }
.jar-text { font-size: 0.95rem; line-height: 1.4; }
.badge { justify-self: start; }
.badge[hidden] { display: none; }
.jar.is-decoy, .jar.is-decoy[aria-pressed="true"] {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: #e3b2a8;
}
.jar.is-decoy .spice, .jar.is-decoy .jar-state, .jar.is-missing .spice { color: inherit; }
.jar.is-missing {
  background: var(--miss-bg);
  border-color: #e4c56a;
}
.jar.is-hit {
  background: #eef3df;
  border-color: var(--leaf, var(--olive));
  color: var(--ink);
}
.jar.is-hit .spice { color: var(--olive); }
.jar:disabled { cursor: default; }

.verdict { padding: clamp(1.1rem, 3vw, 2rem); }
.verdict[hidden] { display: none; }
.verdict h3 { margin: 0.2rem 0 0.8rem; font-size: clamp(1.8rem, 3vw, 2.5rem); max-width: 18ch; }
.idea-line {
  position: relative;
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.55;
  max-width: 42rem;
}
.idea-line:hover,
.idea-line:focus-within { z-index: 4; }
.moral {
  margin-top: 1.2rem;
  padding: 1.15rem 1.15rem 1.2rem;
  background: var(--olive-deep);
  color: var(--cream);
}
.moral p { margin: 0 0 0.45rem; }
.moral-strong {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.2;
  color: var(--gold-soft);
  margin-bottom: 1rem;
}
.registration-section { background: var(--olive-deep); color: var(--cream); padding-top: 3.2rem; padding-bottom: 3.2rem; }
.section-kicker-light { color: #d5dec8; }
.section-kicker-light span:first-child { color: var(--gold-soft); }
.registration-inner h2 {
  margin: 0.2rem 0 0.8rem;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 16ch;
}
.registration-inner > p { color: #d7e0cf; max-width: 36rem; margin-bottom: 1.2rem; }
.prep-block {
  width: min(100%, 46rem);
  margin: 1.45rem 0 0;
  border: 1px solid rgba(232, 223, 196, .28);
  background: rgba(0, 0, 0, .16);
}
.prep-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 1.05rem 1.15rem;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  color: var(--gold-soft);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.prep-summary::-webkit-details-marker { display: none; }
.prep-summary::after {
  content: "";
  flex: 0 0 auto;
  width: .55rem;
  height: .55rem;
  border-right: 2px solid var(--gold-soft);
  border-bottom: 2px solid var(--gold-soft);
  transform: rotate(45deg);
  transition: transform .2s ease;
  margin-top: -.2rem;
}
.prep-block[open] .prep-summary::after {
  transform: rotate(-135deg);
  margin-top: .2rem;
}
.prep-block[open] .prep-summary {
  padding-bottom: .85rem;
  border-bottom: 1px solid rgba(232, 223, 196, .18);
}
.prep-list {
  margin: 0;
  padding: 1rem 1.15rem 1.15rem;
  list-style: none;
  display: grid;
  gap: .95rem;
  counter-reset: prep;
}
.prep-list > li {
  position: relative;
  padding-left: 2rem;
  counter-increment: prep;
}
.prep-list > li::before {
  content: counter(prep);
  position: absolute;
  left: 0;
  top: .05rem;
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 223, 196, .35);
  color: var(--gold-soft);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
}
.prep-title {
  margin: 0 0 .35rem;
  color: var(--cream);
  font-weight: 700;
  font-size: .98rem;
}
.prep-list ul {
  margin: 0;
  padding: 0 0 0 1rem;
  display: grid;
  gap: .28rem;
}
.prep-list ul li {
  color: #d7e0cf;
  font-size: .92rem;
  line-height: 1.4;
}
.registration-gate { display: grid; gap: 1rem; justify-items: start; }
.countdown-lead { margin: 0; color: #d7e0cf; max-width: 36rem; }
.countdown-lead strong { color: var(--gold-soft); font-weight: 700; }
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(4.2rem, 5.2rem));
  gap: .55rem;
  margin-top: .35rem;
}
.countdown-grid div {
  display: grid;
  gap: .15rem;
  padding: .7rem .55rem .65rem;
  border: 1px solid rgba(232, 223, 196, .28);
  background: rgba(0, 0, 0, .18);
  text-align: center;
}
.countdown-grid strong {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  line-height: 1;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}
.countdown-grid span {
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #c5d0b8;
}
.button.is-disabled {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
  background: rgba(232, 223, 196, .35);
  color: #e8dfc4;
}
.nav-cta.is-waiting {
  background: transparent;
  color: var(--olive-deep);
  border: 1px solid currentColor;
}
.nav-cta.is-waiting:hover { background: var(--olive-deep); color: var(--cream); }
.site-footer { background: #2c4210; color: #d5dec8; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.footer-brands {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .85rem 1.15rem;
  flex: 0 1 auto;
  min-width: 0;
}
.footer-mark { height: auto; width: auto; flex: 0 0 auto; display: block; }
.footer-mark-iskra { width: 150px; }
.footer-mark-choragiew { width: 168px; }
.footer-mark-zhp { width: 118px; }
.footer-inner span { color: white; }
.footer-inner a { color: inherit; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (min-width: 980px) {
  .game { grid-template-columns: 1fr 300px; }
  .pot-col { position: sticky; top: calc(var(--header) + 12px); grid-column: 2; grid-row: 1; }
  .shelf { grid-column: 1; grid-row: 1; }
  .verdict { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  .countdown-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(100%, 22rem); }
  .hero-grid, .split, .requirements-grid, .shelf { grid-template-columns: 1fr; }
  .hero { padding-top: 1.6rem; }
  .hero-mark { order: -1; width: min(168px, 100%); justify-self: start; }
  .hero h1 { max-width: none; font-size: clamp(2.15rem, 9vw, 2.7rem); }
  .eyebrow { letter-spacing: 0.08em; }
  nav a:not(.nav-cta):not([href="#zjazdy"]):not([href="#warunki"]) { display: none; }
  .menu-section, .requirements-section, .game-section { padding: 2.4rem 0; }
  .pot-list { max-height: 11rem; }
  .footer-inner { flex-wrap: wrap; row-gap: .85rem; }
  .footer-brands { width: 100%; }
  .footer-mark-iskra { width: 132px; }
  .footer-mark-choragiew { width: 150px; }
  .footer-mark-zhp { width: 104px; }
}
.game.is-solved .shelf { display: none; }
.game.is-solved { grid-template-columns: 1fr; }
.game.is-solved .pot-col { position: static; grid-column: 1; }

@media (max-width: 420px) {
  .header-inner, .hero-grid, .section-wrap, .footer-inner { width: min(1080px, calc(100% - 1.6rem)); }
  .brand small { display: none; }
  .brand strong { letter-spacing: 0.1em; }
  nav { gap: 0.55rem; }
  .nav-cta { padding: 0.5rem 0.65rem; }
  .footer-inner { flex-wrap: wrap; }
}

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