.gamebox-theme { color-scheme: light; background: #fffcf7; color: #271737; }
.gamebox-theme body { background: none; }
.gamebox-theme p { color: #61526a; }
.gamebox-theme a:focus-visible, .gamebox-filters button:focus-visible { outline: 2px solid #7b42be; outline-offset: 4px; }
.gamebox-bar { border-bottom: 1px solid #eee4ef; background: #fffdfa; }
footer.gamebox-bar { border-top: 1px solid #eee4ef; border-bottom: 0; }
.gamebox-bar .product-page-header { width: min(1120px, calc(100% - 40px)); padding-block: 14px; }
.gamebox-bar .product-page-header nav a { color: #554365; }
.gamebox-bar .product-page-header nav a[aria-current] { color: #6c33ad; font-weight: 800; }
.gamebox-small-cta { padding: 8px 13px; border: 1px solid #e6d7ed; border-radius: 99px; font-size: .79rem; font-weight: 800; text-decoration: none; }
.gamebox-main { width: min(1120px, calc(100% - 40px)); }
.gamebox-hero { position: relative; isolation: isolate; margin-block: 20px 0; padding: clamp(38px, 6vw, 76px) 14px 50px; overflow: hidden; border-radius: 30px; background: radial-gradient(70% 70% at 100% 0%, #f6a4cf, #fbcfe8 30%, transparent 65%), linear-gradient(135deg, #f0f9ff, #e0f2fe 40%, #bae6fd); text-align: center; }
.gamebox-hero-effects { position: absolute; z-index: -1; inset: 0; overflow: hidden; container-type: inline-size; pointer-events: none; }
.gamebox-drift { position: absolute; top: var(--level); left: 0; font-size: clamp(26px, 4vw, 49px); filter: drop-shadow(0 7px 9px #34446433); animation: gamebox-drift var(--duration) linear var(--phase) infinite var(--direction, normal); }
.gamebox-drift:nth-child(1) { --level: 12%; --duration: 16s; --phase: -3s; --rise: 24px; }
.gamebox-drift:nth-child(2) { --level: 44%; --duration: 20s; --phase: -6s; --rise: -32px; --direction: reverse; }
.gamebox-drift:nth-child(3) { --level: 26%; --duration: 18s; --phase: -12s; --rise: -38px; }
.gamebox-drift:nth-child(4) { --level: 64%; --duration: 19s; --phase: -1s; --rise: 19px; }
.gamebox-drift:nth-child(5) { --level: 17%; --duration: 23s; --phase: -12s; --rise: 32px; --direction: reverse; }
@keyframes gamebox-drift {
  0% { transform: translate(-12cqw, 0) rotate(-22deg); opacity: 0; }
  12%, 88% { opacity: .64; }
  100% { transform: translate(108cqw, var(--rise)) rotate(37deg); opacity: 0; }
}
.gamebox-effect-sticker { position: absolute; width: clamp(60px, 11vw, 140px); height: auto; animation: gamebox-sticker-float 4.2s ease-in-out infinite alternate; }
.gamebox-effect-dice { top: 9%; left: 3%; --sticker-tilt: -10deg; }
.gamebox-effect-extra { top: 49%; right: 2.3%; --sticker-tilt: 7deg; animation-delay: -2s; border: 2px solid #f7e6ff; border-radius: 15px; box-shadow: 0 12px 25px #34446443; }
@keyframes gamebox-sticker-float {
  from { transform: translateY(-5px) rotate(var(--sticker-tilt)); }
  to { transform: translateY(7px) rotate(calc(var(--sticker-tilt) + 4deg)); }
}
.gamebox-theme .gamebox-kicker { margin: 0 0 12px; color: #6937a3; font-size: .75rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.gamebox-hero h1 { margin: 0; font-size: clamp(2.48rem, 7.1vw, 6rem); line-height: .96; }
.gamebox-hero h1 em { display: block; color: #713abd; font-style: normal; }
.gamebox-intro { max-width: 46ch; margin: 16px auto 0; font-size: clamp(.98rem, 1.7vw, 1.15rem); }
.gamebox-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 11px 21px; margin-top: 22px; }
.gamebox-button { display: inline-block; padding: 12px 22px; border-radius: 99px; background: #6434a1; color: #fff; font-weight: 800; text-decoration: none; }
.gamebox-button:hover { background: #4d247e; }
.gamebox-link { color: #613496; font-weight: 800; text-underline-offset: 4px; }
.gamebox-deck { display: flex; justify-content: center; align-items: end; width: min(100%, 875px); margin: 35px auto 0; padding: 9px 8px 13px; }
[data-tone="mint"] { --tile: #bbf1da; --spectrum: #69bca3; --tile-ink: #184c40; }
[data-tone="lime"] { --tile: #e8f4b5; --spectrum: #aab854; --tile-ink: #3a4a17; }
[data-tone="lilac"] { --tile: #e6cafa; --spectrum: #ac6bdd; --tile-ink: #4b216b; }
[data-tone="pink"] { --tile: #ffd2e8; --spectrum: #f283ac; --tile-ink: #79294d; }
[data-tone="sky"] { --tile: #cce9ff; --spectrum: #73bff6; --tile-ink: #204d75; }
[data-tone="peach"] { --tile: #ffe0b1; --spectrum: #f5a746; --tile-ink: #743b11; }
[data-tone="coral"] { --tile: #ffc4b2; --spectrum: #f06e67; --tile-ink: #762720; }
.gamebox-deck-card {
  position: relative;
  display: grid;
  flex: 0 1 162px;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 4px;
  min-width: 0;
  aspect-ratio: .78;
  padding: clamp(8px, 1.5vw, 18px);
  margin-left: clamp(-9px, -1vw, -4px);
  transform: translateY(var(--lift, 0)) rotate(var(--angle, 0deg));
  overflow: hidden;
  border: 2px solid #fffdf8;
  border-radius: clamp(12px, 2vw, 23px);
  background: radial-gradient(ellipse at 70% 74%, var(--spectrum), transparent 80%), var(--tile);
  box-shadow: 0 9px 21px #60387936;
  color: var(--tile-ink);
  text-align: left;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease;
}
.gamebox-deck-card:nth-child(1) { --angle: -13deg; --lift: 12px; }
.gamebox-deck-card:nth-child(2) { --angle: -6deg; --lift: 3px; }
.gamebox-deck-card:nth-child(3) { z-index: 2; --lift: -10px; }
.gamebox-deck-card:nth-child(4) { --angle: 6deg; --lift: 3px; }
.gamebox-deck-card:nth-child(5) { --angle: 13deg; --lift: 12px; }
.gamebox-deck-card:is(:hover, :focus-visible) { z-index: 3; transform: translateY(-12px); box-shadow: 0 13px 28px #60387965; }
.gamebox-deck-card::before { content: ""; position: absolute; inset: -31% -11% 15%; pointer-events: none; background: repeating-radial-gradient(ellipse at 54% 40%, transparent 0 12px, #ffffff40 13px, transparent 15px 26px); }
.gamebox-deck-card > * { position: relative; }
.gamebox-card-mark { position: absolute; top: 10%; left: 10%; font-size: clamp(.63rem, 1.2vw, .92rem); }
.gamebox-card-symbol { justify-self: center; font: 800 clamp(2rem, 6vw, 4.8rem)/1 "Bricolage Grotesque", system-ui, sans-serif; }
.gamebox-deck-card strong { font: 800 clamp(.78rem, 2vw, 1.43rem)/1 "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -.025em; }

.gamebox-library { padding-block: clamp(36px, 6vw, 70px); }
.gamebox-library-head { margin-bottom: 16px; }
.gamebox-main h2 { margin: 0; font: 800 clamp(1.95rem, 4.3vw, 3.2rem)/1 "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -.04em; }
.gamebox-library-head p, .gamebox-close p { margin: 10px 0 0; }
.gamebox-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 21px; }
.gamebox-filters[hidden], .gamebox-game[hidden] { display: none; }
.gamebox-filters button { padding: 8px 13px; border: 1px solid #e7d9eb; border-radius: 99px; background: #fff; color: #523b64; font: 750 .82rem Manrope, system-ui, sans-serif; cursor: pointer; }
.gamebox-filters button:is(:hover, [aria-pressed="true"]) { background: #f1e3fc; border-color: #b790d3; color: #542984; }
.gamebox-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 247px), 1fr)); gap: 10px; }
.gamebox-game { display: flex; align-items: start; gap: 11px; padding: 14px; border: 1px solid #ebdfeb; border-radius: 15px; background: #fffdfa; scroll-margin-top: 28px; }
.gamebox-game:target { border-color: #a978cd; background: #f8ecff; }
.gamebox-game-icon { display: grid; flex: 0 0 42px; height: 42px; place-items: center; border-radius: 11px; background: var(--tile); color: var(--tile-ink); font: 800 1.38rem "Bricolage Grotesque", system-ui, sans-serif; }
.gamebox-theme .gamebox-game-category { margin: 0 0 4px; color: #734e88; font-size: .68rem; font-weight: 800; }
.gamebox-game h3 { margin: 0; font-size: 1rem; }
.gamebox-game p { margin: 4px 0 0; font-size: .83rem; line-height: 1.52; }

.gamebox-close { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .58fr); align-items: center; gap: 12px; margin-bottom: 44px; padding: clamp(20px, 5vw, 50px); border-radius: 26px; background: linear-gradient(120deg, #ffe8d4, #ebd6ff); }
.gamebox-close img { display: block; width: min(100%, 273px); height: auto; justify-self: center; }
.gamebox-close .gamebox-button { margin-top: 18px; }
@media (max-width: 600px) {
  .gamebox-main { width: calc(100% - 28px); }
  .gamebox-bar .product-page-header { column-gap: 8px; }
  .gamebox-bar .product-page-header nav { flex-basis: 100%; order: 2; gap: 9px 14px; }
  .gamebox-bar .product-page-header nav a { font-size: .81rem; }
  .gamebox-hero { margin-top: 12px; padding-bottom: 31px; }
  .gamebox-effect-dice { top: 3%; left: -10px; opacity: .55; }
  .gamebox-effect-extra, .gamebox-drift:nth-child(2), .gamebox-drift:nth-child(3) { display: none; }
  .gamebox-deck { padding-inline: 4px; }
  .gamebox-deck-card { flex-basis: 117px; }
  .gamebox-deck-card:is(:first-child, :last-child) { display: none; }
  .gamebox-close { grid-template-columns: minmax(0, 1fr); }
  .gamebox-close img { width: min(60%, 166px); }
}
@media (prefers-reduced-motion: reduce) {
  .gamebox-deck-card { transition: none; }
  .gamebox-drift { display: none; }
  .gamebox-effect-sticker { animation: none; transform: rotate(var(--sticker-tilt)); }
}
