:root {
  color-scheme: dark;
  --bg: #0b0b0d;
  --panel: #141416;
  --ink: #f3f3f3;
  --mute: rgba(243, 243, 243, 0.62);
  --line: rgba(255, 255, 255, 0.1);
  --gold: #d8b48a;
  --play: #107c10;
  --play-2: #0e6b0e;
  --font: "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: #050506;
  color: var(--ink);
  font-family: var(--font);
  min-height: 100%;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { position: relative; z-index: 1; width: min(1280px, calc(100% - 2.4rem)); margin: 0 auto; }

.mood {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #050506;
}
.mood-img {
  position: absolute;
  inset: -12%;
  background: center / cover no-repeat;
  opacity: 0;
  transform: scale(1.06);
  filter: saturate(1.12) brightness(0.92);
  transition: opacity 1.05s ease;
  animation: mood-drift 32s ease-in-out infinite alternate;
  will-change: opacity, transform;
}
.mood-img.is-on { opacity: 1; }
.mood-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 70% at 50% 18%, rgba(8, 8, 10, 0.18) 0%, rgba(8, 8, 10, 0.55) 52%, rgba(5, 5, 6, 0.88) 100%),
    linear-gradient(180deg, rgba(5, 5, 6, 0.62) 0%, rgba(5, 5, 6, 0.22) 28%, rgba(5, 5, 6, 0.55) 62%, rgba(5, 5, 6, 0.94) 100%);
}
@keyframes mood-drift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-1.4%, -0.8%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .mood-img { animation: none; transition: none; }
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
}
.brand {
  letter-spacing: 0.28em;
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
}
.brand span { color: var(--gold); letter-spacing: 0.16em; font-weight: 500; }
.nav { display: flex; gap: 1.15rem; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; }
.nav a { text-decoration: none; color: var(--mute); }
.nav a:hover, .nav a.is-on { color: var(--ink); }

.spot {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  min-height: 380px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel) url("/assets/games/kuboubou.jpg") center / cover no-repeat;
  position: relative;
  text-decoration: none;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
}
.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,8,10,0.82) 0%, rgba(8,8,10,0.35) 55%, rgba(8,8,10,0.15) 100%);
}
.spot-copy {
  position: relative;
  z-index: 1;
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.55rem;
  max-width: 36rem;
}
.spot-copy .kicker { margin: 0; }
.spot-copy h1 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: none; letter-spacing: -0.04em; font-weight: 650; }
.spot-copy p { color: var(--mute); line-height: 1.45; max-width: 34rem; }
.play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.7rem;
  width: fit-content;
  padding: 0.72rem 1.35rem;
  border: 0;
  border-radius: 4px;
  background: var(--play);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.play:hover { background: var(--play-2); }
.play.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.play[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }

.kicker {
  margin: 2.2rem 0 0.7rem;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}
h1 { font-weight: 600; font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.05; }
.lede { margin-top: 0.7rem; max-width: 38rem; color: var(--mute); line-height: 1.5; }

.rail-title {
  margin: 1.8rem 0 0.7rem;
  font-size: 1.05rem;
  font-weight: 650;
}
.rail {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 1.4rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 99px; }
.cover {
  flex: 0 0 260px;
  scroll-snap-align: start;
  text-decoration: none;
  background: var(--panel);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid transparent;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}
.cover:hover { border-color: rgba(255,255,255,0.28); }
.cover .art { aspect-ratio: 16/9; background: #111 center / cover no-repeat; }
.cover .cap { padding: 0.7rem 0.75rem 0.85rem; }
.cover h2 { font-size: 0.95rem; font-weight: 650; }
.cover .meta { margin-top: 0.2rem; font-size: 0.72rem; color: var(--mute); letter-spacing: 0.04em; }

.product {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 1.5rem;
  margin: 0.6rem 0 1.2rem;
  align-items: start;
}
.product-art {
  aspect-ratio: 16/9;
  border-radius: 10px;
  background: #111 center / cover no-repeat;
  border: 1px solid var(--line);
}
.product-info h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.publisher { margin-top: 0.35rem; color: var(--mute); font-size: 0.85rem; }
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0.4rem;
}
.facts span {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(216,180,138,0.3);
  padding: 0.28rem 0.5rem;
  border-radius: 99px;
}
.shots {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.2rem 0 1.4rem;
  scroll-snap-type: x mandatory;
}
.shots img {
  flex: 0 0 320px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
}
.article { max-width: 44rem; padding-bottom: 3.5rem; }
.article p { color: var(--mute); line-height: 1.65; margin: 0.85rem 0; }
.article h2 { font-size: 1.05rem; font-weight: 650; margin-top: 1.5rem; }

.door { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; }
.card {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  padding: 2.1rem 1.7rem 1.7rem;
  background: rgba(20, 20, 22, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 10px;
}
.card h1 { font-size: 1.35rem; }
.card form { display: grid; gap: 0.75rem; margin-top: 1.4rem; }
label { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); }
input {
  width: 100%;
  margin-top: 0.28rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  background: #0b0b0d;
  color: var(--ink);
  font: inherit;
  border-radius: 4px;
}
input:focus { outline: 1px solid var(--gold); }
button.play { cursor: pointer; width: 100%; justify-content: center; }
.err { color: #e8a090; font-size: 0.85rem; min-height: 1.2em; }
.note { margin-top: 1.1rem; color: var(--mute); font-size: 0.78rem; line-height: 1.45; }

@media (max-width: 900px) {
  .spot, .product { grid-template-columns: 1fr; }
  .spot { min-height: 320px; }
  .shots img { flex-basis: 78vw; height: 44vw; }
}
