/* Oware Beyond: coming soon. The game's own night room: dark warm wood, cream type, gold, red. */
@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url("fonts/Fredoka-SemiBold.woff") format("woff"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url("fonts/AtkinsonHyperlegible-Regular.woff") format("woff"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url("fonts/AtkinsonHyperlegible-Bold.woff") format("woff"); }

:root {
  color-scheme: dark;
  --night: #1b110b;
  --wood: #2b1d13;
  --glass: rgba(74, 46, 28, 0.55);
  --rim: rgba(251, 233, 200, 0.22);
  --cream: #fbe9c8;
  --cream-soft: rgba(251, 233, 200, 0.74);
  --gold: #e8bd6a;
  --red: #b3352a;
  --display: "Fredoka", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --text: "Atkinson Hyperlegible", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --gutter: max(18px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
}

* { box-sizing: border-box; }
html { background: var(--night); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night) radial-gradient(120% 60% at 50% 0%, #3a2416 0%, var(--night) 70%) no-repeat;
  color: var(--cream);
  font: 18px/1.5 var(--text);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img { max-width: 100%; display: block; }
b { font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The room, with the name moving in over it. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 980px);
  display: grid; align-items: center;
  padding: calc(48px + env(safe-area-inset-top, 0px)) var(--gutter) 56px;
}
.hero-room { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; z-index: -2; }
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(90% 70% at 50% 42%, rgba(27, 17, 11, 0.38), rgba(27, 17, 11, 0.80) 100%),
    linear-gradient(to bottom, rgba(27, 17, 11, 0) 60%, var(--night) 100%);
}
.hero-inner { width: 100%; max-width: 980px; margin: 0 auto; text-align: center; display: grid; justify-items: center; gap: 18px; }

.name { position: relative; width: 100%; max-width: 900px; aspect-ratio: 1185 / 230; }
.name-still { position: absolute; left: 0; top: 50%; width: 100%; height: auto; transform: translateY(-50%); }
.name.moving .name-still { display: none; }
.name .mark { position: absolute; left: 0; top: 0; height: 240px; transform-origin: 0 0; }
.name .mark img { position: absolute; left: 0; top: 0; height: 240px; max-width: none; transform-origin: 50% 66%; opacity: 0; will-change: transform, opacity; }

.lead {
  margin: 4px 0 0; max-width: 24ch;
  font: 600 clamp(24px, 4.6vw, 38px)/1.2 var(--display);
  text-wrap: balance; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}
.sub { margin: 0; max-width: 40ch; color: var(--cream-soft); font-size: clamp(17px, 2.2vw, 20px); text-wrap: balance; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6); }

/* Not a button: nothing to tap yet, so it is a raised glass panel, not the game's red button. */
.soon {
  margin-top: 12px; padding: 16px 30px 18px; border-radius: 22px;
  background: rgba(54, 33, 20, 0.62); border: 1.5px solid var(--rim);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(251, 233, 200, 0.10);
  display: grid; gap: 6px;
}
.soon p { margin: 0; }
.soon-word { font: 600 clamp(24px, 3.4vw, 30px)/1.15 var(--display); color: var(--gold); }
.soon-where { font: 600 19px/1.2 var(--display); color: var(--cream); letter-spacing: 0.01em; }
.soon-where span { color: var(--gold); padding: 0 6px; }

/* Captures from the game. */
main { padding: 8px var(--gutter) 0; }
.shots {
  max-width: 1080px; margin: 0 auto;
  display: grid; gap: 34px 22px; grid-template-columns: 1fr;
}
.shot { margin: 0; display: grid; gap: 12px; align-content: start; }
.shot img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 18px; border: 1.5px solid var(--rim);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  background: var(--wood);
}
.shot figcaption { color: var(--cream-soft); font-size: 17px; padding: 0 4px; }
.shot figcaption b { display: block; font: 600 22px/1.25 var(--display); color: var(--gold); margin-bottom: 2px; }
@media (min-width: 720px) {
  .shots { grid-template-columns: 1fr 1fr; }
  .shot.wide { grid-column: 1 / -1; }
  .shot.wide figcaption { text-align: center; }
}

/* The nine games, each where the Journey plays it. */
.games { max-width: 1080px; margin: 72px auto 0; }
.games h2 { margin: 0 0 18px; text-align: center; font: 600 clamp(28px, 4vw, 36px)/1.2 var(--display); }
.games ul {
  list-style: none; margin: 0; padding: 10px;
  display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--glass); border: 1.5px solid var(--rim); border-radius: 22px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(251, 233, 200, 0.08);
}
.games li { padding: 12px 12px; border-radius: 14px; color: var(--cream-soft); font-size: 15px; line-height: 1.35; }
.games li b { display: block; font: 600 20px/1.25 var(--display); color: var(--cream); }

.closing { max-width: 1080px; margin: 80px auto 0; display: grid; justify-items: center; gap: 18px; text-align: center; }
.closing img { width: 112px; height: 112px; border-radius: 25px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5); }
.closing-line { margin: 0; font: 600 clamp(24px, 3.6vw, 32px)/1.25 var(--display); text-wrap: balance; }

footer {
  max-width: 1080px; margin: 72px auto 0; padding: 22px var(--gutter) 30px;
  border-top: 1px solid var(--rim);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  color: var(--cream-soft); font-size: 15px;
}
footer p { margin: 0; }

/* Landscape phones: the room is short, so keep the name smaller. */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; padding-top: calc(28px + env(safe-area-inset-top, 0px)); }
  .name { max-width: 560px; }
  .hero-inner { gap: 12px; }
}
@media (min-width: 720px) {
  .games ul { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 14px; }
  .games li { padding: 14px 18px; }
}
