/* =============================================================================
 * Dice Days Countdown – Stylesheet
 * -----------------------------------------------------------------------------
 * Mobile first, ab ca. 720 px zweispaltig, ab 1100 px breites Raster.
 * Keine externen Fonts, keine externen Icons – alles läuft offline.
 * ========================================================================== */

/* --- Grundlagen ----------------------------------------------------------- */

:root {
  --felt-1: #0d1a15;
  --felt-2: #16281f;
  --felt-3: #1e362a;
  --panel: rgba(255, 255, 255, .055);
  --panel-strong: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .12);

  --gold: #e7b64b;
  --gold-soft: #f4d489;
  --cream: #f6ecda;
  --ink: #16211c;
  --muted: #a9bcb0;
  --teal: #58bfae;
  --red: #d9603f;
  --violet: #8f7fd6;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 26px;

  --shadow-s: 0 2px 8px rgba(0, 0, 0, .25);
  --shadow-m: 0 12px 32px rgba(0, 0, 0, .38);
  --shadow-l: 0 28px 70px rgba(0, 0, 0, .5);

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --maxw: 1180px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream);
  background: var(--felt-1);
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: var(--gold-soft); }
img { max-width: 100%; display: block; }

.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-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--gold);
  color: var(--ink);
  padding: .6rem 1rem;
  border-radius: 0 0 var(--radius-s) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.noscript {
  margin: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(231, 182, 75, .45);
  background: rgba(231, 182, 75, .1);
  border-radius: var(--radius-m);
  color: var(--cream);
  text-align: center;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Tischfelt ------------------------------------------------------------ */

.felt {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 620px at 50% -8%, rgba(231, 182, 75, .16), transparent 62%),
    radial-gradient(900px 520px at 12% 8%, rgba(88, 191, 174, .12), transparent 60%),
    radial-gradient(800px 600px at 88% 22%, rgba(143, 127, 214, .10), transparent 60%),
    linear-gradient(170deg, var(--felt-3) 0%, var(--felt-2) 42%, var(--felt-1) 100%);
}

.felt::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .35;
  background-image:
    radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    radial-gradient(rgba(0, 0, 0, .05) 1px, transparent 1px);
  background-size: 3px 3px, 4px 4px;
  background-position: 0 0, 1px 2px;
  mix-blend-mode: overlay;
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(2.2rem, 6vw, 4.5rem) 1.1rem clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

.hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  border: 1px solid rgba(231, 182, 75, .32);
  background: rgba(231, 182, 75, .08);
  border-radius: 999px;
  padding: .4rem .95rem;
}

.eyebrow__dot {
  width: .5rem; height: .5rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(231, 182, 75, .18);
}

.wordmark {
  margin: clamp(1rem, 3vw, 1.6rem) 0 .4rem;
  font-size: clamp(2.6rem, 11vw, 5.4rem);
  letter-spacing: .01em;
  text-shadow: 0 12px 34px rgba(0, 0, 0, .45);
}

.wordmark__line { display: block; }

.wordmark__line--accent {
  color: var(--gold);
  position: relative;
  display: inline-block;
}

.wordmark__line--accent::after {
  content: "";
  position: absolute;
  left: 4%; right: 4%;
  bottom: .04em;
  height: .07em;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(231, 182, 75, 0), rgba(231, 182, 75, .9), rgba(231, 182, 75, 0));
}

.hero__intro {
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  margin-bottom: clamp(1.6rem, 4vw, 2.4rem);
}

/* --- Countdown ------------------------------------------------------------ */

.countdown { margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }

.countdown__headline {
  font-size: clamp(1.25rem, 4.2vw, 2.1rem);
  margin-bottom: 1.1rem;
  color: var(--cream);
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.4rem, 1.6vw, .9rem);
  max-width: 620px;
  margin: 0 auto;
}

.counter {
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: clamp(.6rem, 2vw, .95rem) .2rem;
  box-shadow: var(--shadow-s), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.counter__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 6.4vw, 2.9rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--gold-soft);
}

.counter__label {
  display: block;
  margin-top: .35rem;
  font-size: clamp(.62rem, 2.2vw, .78rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.countdown__sub {
  margin-top: 1rem;
  color: var(--muted);
  font-size: .95rem;
}

/* Event-Zustand */
body.is-event .countdown__headline { color: var(--gold); }
body.is-event .counter__value { color: var(--cream); }
body.is-event .countdown__grid { display: none; }

/* --- Fortschritt ---------------------------------------------------------- */

.progress {
  max-width: 720px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 1.1rem 1.2rem 1rem;
  backdrop-filter: blur(3px);
}

.progress__row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: .7rem;
}

.progress__headline {
  font-size: 1.05rem;
  letter-spacing: .01em;
}

.progress__value { font-size: .92rem; color: var(--muted); }
.progress__value strong { color: var(--gold-soft); font-size: 1.1rem; }

.progress__track {
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .35);
  overflow: hidden;
  border: 1px solid var(--line);
}

.progress__fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transition: width .6s cubic-bezier(.22, 1, .36, 1);
}

.progress__hint {
  margin-top: .7rem;
  font-size: .82rem;
  color: rgba(169, 188, 176, .85);
}

/* --- Kalender ------------------------------------------------------------- */

.calendar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(1.6rem, 5vw, 3rem) 1.1rem;
}

.calendar__head { text-align: center; margin-bottom: clamp(1.3rem, 4vw, 2.2rem); }
.calendar__head h2 { font-size: clamp(1.5rem, 5vw, 2.3rem); }
.calendar__sub { color: var(--muted); margin-top: .5rem; font-size: .95rem; }

.doors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: clamp(.45rem, 1.6vw, .9rem);
}

.doors > li { list-style: none; margin: 0; padding: 0; }

/* --- Tuerchen-Raster ----------------------------------------------------- */

.doors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: clamp(.45rem, 1.6vw, .85rem);
}

.doors > li { list-style: none; margin: 0; padding: 0; }

.doors__loading, .doors__error {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 2rem 0;
}

.doors__error {
  color: #ffd7cc;
  border: 1px solid rgba(217, 96, 63, .45);
  background: rgba(217, 96, 63, .12);
  border-radius: var(--radius-m);
  padding: 1rem 1.1rem;
  text-align: left;
  line-height: 1.7;
}
.doors__error code {
  background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 5px;
  padding: .08rem .38rem;
  font-size: .88em;
  color: var(--gold-soft);
}
.doors__error strong { color: var(--cream); }

/* Türchen-Kachel */
.door {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: .2rem;
  width: 100%;
  align-self: start;
  aspect-ratio: 1 / 1.12;
  padding: .45rem .3rem .5rem;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02)),
    var(--felt-2);
  color: var(--cream);
  font-family: var(--font-body);
  cursor: pointer;
  overflow: hidden;
  transition: transform .22s cubic-bezier(.22, 1, .36, 1), box-shadow .22s, border-color .22s, background .22s;
  box-shadow: var(--shadow-s);
}

.door::before {
  /* innerer Rahmen – erinnert an ein Spielkarten-Fach */
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 11px;
  border: 1px dashed rgba(255, 255, 255, .12);
  pointer-events: none;
}

.door__number {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5.6vw, 2.3rem);
  font-weight: 600;
  line-height: 1;
  color: rgba(246, 236, 218, .9);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
}

/* Nach dem Öffnen rückt die Zahl in die Ecke, das Cover hat Platz. */
.door--opened .door__number {
  inset: auto auto 4px 5px;
  display: block;
  font-size: .72rem;
  font-weight: 700;
  color: var(--gold-soft);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .9);
}

.door__day {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 3;
  min-width: 16px;
  padding: 1px 3px;
  text-align: center;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.45;
  color: rgba(246, 236, 218, .85);
  background: rgba(9, 17, 13, .6);
  border-radius: 5px;
}

.door__date {
  position: relative;
  z-index: 2;
  font-size: .62rem;
  letter-spacing: .04em;
  color: rgba(246, 236, 218, .82);
  text-align: center;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
}

.door__name {
  position: absolute;
  left: 3px; right: 3px; bottom: 4px;
  z-index: 2;
  font-size: .6rem;
  line-height: 1.15;
  text-align: center;
  color: var(--cream);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .9);
  overflow: hidden;
  display: none;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Erst auf grösseren Displays ist Platz für den Spielnamen. */
@media (min-width: 1080px) {
  .door__name { display: -webkit-box; }
}

.door__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .9;
  transition: transform .3s, opacity .3s;
}

/* Beim Oeffnen blendet das Cover weich ein */
.door--just-opened .door__cover { animation: coverIn .5s ease both; }
.door--just-opened { animation: none; }

@keyframes coverIn {
  from { opacity: 0; transform: scale(1.12); }
  to { opacity: .9; transform: none; }
}

.door__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 18, 14, .3) 0%, rgba(10, 18, 14, .45) 45%, rgba(10, 18, 14, .92) 100%);
}

.door__badge {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 21px; height: 21px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .68rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .45);
  z-index: 2;
}
.door__badge svg { width: 13px; height: 13px; }

.door__lock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 26px; height: 26px;
  color: rgba(246, 236, 218, .35);
  z-index: 2;
}

.door__placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -70%);
  width: 34%;
  color: rgba(246, 236, 218, .22);
  z-index: 1;
}
.door__placeholder svg { width: 100%; height: auto; }

/* Zustände */
.door--locked {
  cursor: not-allowed;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)), rgba(8, 16, 12, .55);
  border-color: rgba(255, 255, 255, .07);
  color: rgba(246, 236, 218, .45);
}
.door--locked .door__number {
  color: rgba(246, 236, 218, .58);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .7);
}
.door--locked .door__day { color: rgba(169, 188, 176, .45); }

.door--ready {
  border-color: rgba(231, 182, 75, .55);
  background: linear-gradient(180deg, rgba(231, 182, 75, .2), rgba(231, 182, 75, .05)), var(--felt-2);
  box-shadow: 0 0 0 1px rgba(231, 182, 75, .25), 0 10px 26px rgba(231, 182, 75, .16);
  animation: shimmer 3.4s ease-in-out infinite;
}
.door--ready:hover, .door--ready:focus-visible { transform: translateY(-4px); }
.door--ready .door__number { color: var(--gold-soft); }

@keyframes shimmer {
  0%, 100% { box-shadow: 0 0 0 1px rgba(231, 182, 75, .2), 0 10px 26px rgba(231, 182, 75, .12); }
  50% { box-shadow: 0 0 0 3px rgba(231, 182, 75, .18), 0 14px 34px rgba(231, 182, 75, .3); }
}

.door--opened { border-color: rgba(88, 191, 174, .35); }
.door--opened:hover, .door--opened:focus-visible { transform: translateY(-4px); }
.door--opened:hover .door__cover, .door--opened:focus-visible .door__cover { transform: scale(1.06); opacity: .95; }

/* --- Legende -------------------------------------------------------------- */

.legend { padding: 0 1.1rem clamp(2rem, 6vw, 3.4rem); }
.legend__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  justify-content: center;
  margin: 0 auto;
  max-width: var(--maxw);
  font-size: .85rem;
  color: var(--muted);
}
.legend__list li { display: flex; align-items: center; gap: .45rem; }
.legend__hint {
  flex-basis: 100%;
  text-align: center;
  color: rgba(169, 188, 176, .65);
  font-size: .8rem;
}
.legend__swatch {
  width: 16px; height: 16px;
  border-radius: 5px;
  border: 1px solid var(--line);
}
.legend__swatch--open { background: linear-gradient(180deg, rgba(88, 191, 174, .5), rgba(88, 191, 174, .15)); border-color: rgba(88, 191, 174, .5); }
.legend__swatch--ready { background: linear-gradient(180deg, rgba(231, 182, 75, .55), rgba(231, 182, 75, .15)); border-color: rgba(231, 182, 75, .6); }
.legend__swatch--locked { background: rgba(8, 16, 12, .6); }

/* --- Detailansicht (Modal) ------------------------------------------------ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: end center;
}

.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 12, 9, .74);
  backdrop-filter: blur(4px);
  animation: fade .25s ease both;
}

.modal__dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, #fbf4e6, #f0e5d1);
  color: var(--ink);
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  box-shadow: var(--shadow-l);
  padding: 1.4rem 1.2rem 2rem;
  animation: slideup .32s cubic-bezier(.22, 1, .36, 1) both;
}

.modal__close {
  position: absolute;
  top: .7rem; right: .7rem;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(22, 33, 28, .18);
  background: rgba(255, 255, 255, .7);
  color: var(--ink);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.modal__close:hover { background: #fff; transform: rotate(90deg); }
.modal__close svg { width: 18px; height: 18px; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideup { from { transform: translateY(26px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Modal-Inhalt */
.game__top {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 1rem;
  align-items: start;
}

.game__cover {
  width: 118px;
  aspect-ratio: 1;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-m);
  background: linear-gradient(160deg, #2c4a3d, #16281f);
  display: grid;
  place-items: center;
  color: rgba(246, 236, 218, .8);
  text-align: center;
  font-size: .68rem;
  padding: .5rem;
}

.game__cover img { width: 100%; height: 100%; object-fit: cover; }

.game__door {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7a6a4c;
  margin-bottom: .35rem;
  padding-right: 2.4rem;
}

.game__title {
  font-size: clamp(1.5rem, 5.5vw, 2.1rem);
  line-height: 1.1;
  margin-bottom: .35rem;
}

.game__year { color: #6c6355; font-size: .92rem; }

.game__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 1rem 0 .2rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(22, 33, 28, .07);
  border: 1px solid rgba(22, 33, 28, .12);
  border-radius: 999px;
  padding: .3rem .7rem;
  font-size: .82rem;
  color: #3d4a42;
}
.chip svg { width: 15px; height: 15px; flex: none; }
.chip strong { font-weight: 600; color: var(--ink); }

.game__complexity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .6rem;
  margin-top: .9rem;
}
.game__complexity-label { font-size: .82rem; color: #6c6355; }
.pips { display: inline-flex; gap: 4px; }
.pip {
  width: 15px; height: 15px;
  border-radius: 4px;
  background: rgba(22, 33, 28, .13);
  border: 1px solid rgba(22, 33, 28, .14);
}
.pip--on { background: linear-gradient(140deg, var(--gold), #c8912f); border-color: #b9842a; }

.game__desc {
  margin: 1.1rem 0 0;
  font-size: 1rem;
  line-height: 1.65;
  color: #33403a;
}

.game__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .9rem;
}
.tag {
  font-size: .74rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6b7a70;
  border: 1px dashed rgba(22, 33, 28, .2);
  border-radius: 6px;
  padding: .16rem .5rem;
}

.game__platforms { margin-top: 1.3rem; }
.game__platforms h3 {
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7a6a4c;
  margin-bottom: .6rem;
}
.platforms { display: flex; flex-wrap: wrap; gap: .5rem; }

.platform {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
  color: var(--cream);
  background: #1f3a2f;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-s);
  padding: .5rem .8rem;
  transition: transform .18s, background .18s, box-shadow .18s;
}
.platform:hover { background: #28493b; transform: translateY(-2px); box-shadow: var(--shadow-s); }
.platform svg { width: 18px; height: 18px; flex: none; }
.platform--bgg { background: #16211c; }
.platform--bgg:hover { background: #22322a; }
.platform small { display: block; font-weight: 400; font-size: .68rem; opacity: .75; }

.game__foot {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(22, 33, 28, .12);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  color: #6c6355;
}

.game__close {
  background: #1f3a2f;
  color: var(--cream);
  border: 0;
  border-radius: 999px;
  padding: .5rem 1.1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.game__close:hover { background: #28493b; }

.game__placeholder {
  margin-top: 1rem;
  font-size: .82rem;
  color: #7a6a4c;
  background: rgba(22, 33, 28, .05);
  border-left: 3px solid var(--gold);
  padding: .55rem .8rem;
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
}

/* --- Footer --------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  background: rgba(6, 13, 10, .5);
  padding: clamp(2rem, 5vw, 3rem) 1.1rem 1.4rem;
  margin-top: 1rem;
}

.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: 1.6rem;
}

.footer__title { font-size: 1.05rem; margin-bottom: .4rem; color: var(--gold-soft); }
.footer__block p { color: var(--muted); font-size: .88rem; }
.footer__note { margin-top: .5rem; font-size: .78rem; color: rgba(169, 188, 176, .7); }
.footer__legal {
  max-width: var(--maxw);
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: .78rem;
  color: rgba(169, 188, 176, .6);
}

.button {
  font: inherit;
  font-weight: 600;
  font-size: .88rem;
  border-radius: 999px;
  padding: .5rem 1.05rem;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--cream);
  transition: background .2s, transform .2s;
}
.button:hover { background: rgba(255, 255, 255, .16); transform: translateY(-1px); }
.button--ghost { background: transparent; }

/* --- Konfetti (Event-Modus) ----------------------------------------------- */

.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 55;
  display: none;
}
body.is-event .confetti { display: block; }
.confetti i {
  position: absolute;
  top: -12px;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  opacity: .9;
  animation: fall linear infinite;
}
@keyframes fall {
  0% { transform: translateY(-10vh) rotate(0deg); }
  100% { transform: translateY(115vh) rotate(720deg); }
}

/* --- Update-Hinweis ------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: .8rem;
  max-width: min(560px, calc(100vw - 2rem));
  padding: .75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(231, 182, 75, .45);
  background: rgba(18, 33, 28, .96);
  box-shadow: var(--shadow-m);
  color: var(--cream);
  font-size: .9rem;
  animation: toastIn .3s cubic-bezier(.22, 1, .36, 1) both;
}

.toast[hidden] { display: none; }

.toast__text { flex: 1; }

.toast__action {
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: var(--gold);
  border: 0;
  border-radius: 999px;
  padding: .35rem .9rem;
  cursor: pointer;
  white-space: nowrap;
}

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* --- Größere Bildschirme -------------------------------------------------- */

@media (min-width: 600px) {
  .doors { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .door__name { font-size: .72rem; }
  .door__date { font-size: .68rem; }
}

@media (min-width: 900px) {
  .modal { place-items: center; }
  .modal__dialog { border-radius: var(--radius-l); padding: 1.8rem 1.8rem 2.2rem; }
  .footer__inner { grid-template-columns: repeat(3, 1fr); gap: 2.4rem; }
  .doors { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); }
}

@media (min-width: 1100px) {
  .game__top { grid-template-columns: 168px 1fr; }
  .game__cover { width: 168px; }
}

/* --- Bewegungsreduktion --------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .door--ready { animation: none; box-shadow: 0 0 0 2px rgba(231, 182, 75, .5); }
}

@media print {
  .felt, .confetti, .modal, .footer { display: none; }
  body { background: #fff; color: #000; }
}
