/* The landing page's own layout. Colours, cards, packs and buttons come from game.css. */
:root {
  --page: #0c0d11;
  --cream: #f3ecdc;
  --cream-2: #e6d7ae;
  --cream-ink: #2a2418;
  --cream-muted: #6b5d43;
  --gut: clamp(16px, 4vw, 48px);
  --wrap: 1240px;
  --nav-h: 60px;
  --atk: #e8573a;
  --def: #3f86d8;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); background: var(--page); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--text); font: 400 17px/1.55 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; }
main { display: block; }
img { max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }
.sr, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h2 { font: 400 clamp(36px, 5.6vw, 76px)/1.02 var(--serif); letter-spacing: .005em; text-wrap: balance; }
.icon { width: 1em; height: 1em; }


.sec-head { max-width: 780px; display: grid; gap: 14px; justify-items: start; margin-bottom: clamp(20px, 2.600vw, 36px); }
.sec-head p { max-width: 62ch; color: #c9c3b3; font-size: clamp(16px, 1.5vw, 19px); }
.battle h2 { font-size: clamp(30px, 3.400vw, 46px); }
/* heading, board and hand on one screen: picking a card should never need a scroll */
.battle { padding-block: 28px 36px !important; }
.battle .sec-head { max-width: none; gap: 4px; margin-bottom: 14px; }
@media (min-width: 761px) { .battle .bt-center { min-height: 220px; } }
.battle .bt-arena { padding: 8px 0; }
.battle { padding: clamp(56px, 6vw, 92px) max(var(--gut), calc((100% - var(--wrap)) / 2)); }

.js [data-rise] { opacity: 0; transform: translateY(34px); transition: opacity .7s, transform .8s cubic-bezier(.2, .9, .3, 1); }
.js [data-rise].in { opacity: 1; transform: none; }

.nav { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; height: var(--nav-h); padding: 0 var(--gut);
  background: rgba(12, 13, 17, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.nav-logo { display: inline-flex; align-items: center; gap: 8px; font: 400 23px/1 var(--serif); text-decoration: none; color: var(--bone); }
.nav-crown { display: inline-grid; color: var(--gold-2); }
.nav-crown .icon { width: 24px; height: 24px; }
.nav .round-btn { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; }
.nav-play { flex: none; }

/* ------------------------------------------------------------- hero */
.hero { --cw: min(330px, 64vw, 40vh); position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 0 clamp(16px, 3vw, 48px);
  min-height: max(calc(100svh - var(--nav-h)), 660px); padding: 0 var(--gut) clamp(24px, 4vh, 44px); overflow: clip;
  background: radial-gradient(60% 70% at 76% 56%, #3a2a10, transparent 70%), radial-gradient(70% 60% at 14% 0%, #1b1e29, transparent 70%), var(--page); }
.hero-dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.hero-word { position: relative; z-index: 1; width: max-content; font: 400 100px/.98 var(--serif); color: var(--bone); white-space: nowrap; user-select: none; }
.hero-word i { display: inline-block; font-style: normal; text-shadow: 0 .03em 0 #b4a78a, 0 .06em 0 #74694f, 0 .13em .2em rgba(0, 0, 0, .55); animation: wordSlam .75s cubic-bezier(.2, 1.5, .4, 1) both; animation-delay: calc(var(--k) * 70ms + 120ms); }
.hero-word i.gold { position: relative; color: var(--gold-2); text-shadow: 0 .03em 0 #c08d26, 0 .06em 0 #7a5610, 0 .13em .2em rgba(0, 0, 0, .55); }
.hw-crown { position: absolute; left: 50%; top: -.205em; width: .36em; height: .36em; margin-left: -.18em; line-height: 0; color: var(--gold-2); animation: crownDrop .6s .9s cubic-bezier(.2, 1.7, .4, 1) both, crownFloat 3.400s 1.600s ease-in-out infinite; filter: drop-shadow(0 .02em 0 #7a5610) drop-shadow(0 0 .1em rgba(243, 207, 106, .55)); }
@keyframes crownFloat { 0%, 100% { translate: 0 0; rotate: -4deg; } 50% { translate: 0 -.07em; rotate: 4deg; } }
.hw-crown .icon { width: 100%; height: 100%; stroke-width: 2; }
@keyframes wordSlam { from { opacity: 0; transform: translateY(-.6em) scale(1.5) rotate(-5deg); } }
@keyframes crownDrop { from { opacity: 0; transform: translateY(-.5em) rotate(-30deg) scale(.5); } }
.hero-copy { position: relative; z-index: 3; align-self: center; min-width: 0; display: grid; gap: clamp(12px, 2vh, 20px); justify-items: start; }
.hero-copy h1 { font: 400 clamp(29px, 3.5vw, 48px)/1.06 var(--serif); color: var(--bone); text-wrap: balance; }
.hero-copy h1 em { font-style: normal; color: var(--gold-2); }
.hero-copy > p { max-width: 50ch; color: #cfc9ba; }
.hero-stage { position: relative; z-index: 3; min-height: 560px; align-self: stretch; }

@keyframes fanIn { from { opacity: 0; transform: translateY(40px) scale(.7); } }

.classic.in-page { position: absolute; inset: 0; display: grid; place-items: center; --lift: 0px; background: none !important; pointer-events: none; }
.classic.in-page .cl-pack, .classic.in-page .cl-stack { pointer-events: auto; }
.classic.in-page .cl-pack { width: calc(var(--cw) * .84); }
.classic.in-page .cl-glow { width: min(620px, 118vw); }
.classic.in-page .cl-foot { top: calc(50% + var(--cw) * .7 + 18px); }
.classic.in-page:not(.stacked) .cl-foot { top: calc(50% + var(--cw) * .66 + 12px); }
.classic.in-page .cl-omen { bottom: calc(100% + 14px); }
.classic.in-page:not(.stacked) .cl-nav { display: none; }
.cl-hint b { color: var(--gold-2); font-weight: 650; }
.drop-in { animation: packDrop .9s .55s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes packDrop { from { opacity: 0; transform: translateY(-110%) rotate(9deg) scale(1.12); } }
.stacked .cl-pack-wrap { pointer-events: none; }

/* The fan is measured against its own column, so it can never reach across to the logo.
   --sw is one card; 1.27 is how wide a card gets once it is tilted 12 degrees. */
.sum { position: absolute; inset: 0; container-type: inline-size; display: grid; align-content: center; justify-items: center; gap: 20px; text-align: center; }
.sum-fan { position: relative; width: 100%; height: calc(min(calc(var(--cw) * .66), 36cqw) * 1.45 + 28px); }
.sum-c { --sw: min(calc(var(--cw) * .66), 36cqw); position: absolute; left: 50%; top: 0; width: var(--sw); margin-left: calc(var(--sw) / -2);
  transform: translateX(calc(var(--i) * (100cqw - var(--sw) * 1.27) / 4)) translateY(calc(var(--i) * var(--i) * 7px)) rotate(calc(var(--i) * 6deg));
  animation: dealIn .55s calc(var(--n) * 90ms) cubic-bezier(.2, 1.2, .4, 1) both; }
.sum-c:hover { z-index: 6; }
.sum-c .card { max-width: none; width: 100%; }
@keyframes dealIn { from { opacity: 0; transform: translateY(90px) rotate(0) scale(.7); } }
.sum-line { font: 400 22px/1.2 var(--serif); padding: 0 8px; }
.sum-note { font-size: 13px; color: rgba(255, 255, 255, .6); }

/* ------------------------------------------------------------- knowledge battle */
.battle { background: radial-gradient(60% 46% at 50% 60%, #1a2740, transparent 72%), var(--page); }
.bt { position: relative; display: grid; gap: clamp(12px, 2.4vw, 26px); padding: clamp(14px, 2.600vw, 30px); border-radius: 22px; background: linear-gradient(180deg, #16181f, #0f1015); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 0 0 1px rgba(255, 255, 255, .05), 0 6px 0 #050608, 0 40px 80px -40px rgba(0, 0, 0, .9); }
.bt.kb-shake { animation: kbShake .45s; }
.bt.kb-crit { animation: kbZoom .6s cubic-bezier(.2, 1.4, .4, 1); }
.bt.kb-crit::after { content: ''; position: absolute; inset: 0; z-index: 24; pointer-events: none; border-radius: inherit; animation: kbFlash .6s ease-out forwards; background: radial-gradient(circle, rgba(255, 244, 200, .9), rgba(255, 200, 90, .3) 45%, transparent 75%); }
.bt-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 20; pointer-events: none; }
.bt-top, .bt-low { display: grid; align-items: center; gap: 14px 22px; }
.bt-top { grid-template-columns: 1fr minmax(0, 320px); }
.bt-low { grid-template-columns: minmax(0, 320px) 1fr; }
.bt-backs { display: flex; padding-left: 14px; }
.bt-mini { position: relative; width: 42px; aspect-ratio: 63 / 88; margin-left: -14px; display: block; transition: transform .4s, opacity .4s; }
.bt-mini .card-back { display: block; width: 100%; height: 100%; }
.bt-mini .card-back-name { display: none; }
.bt-mini .card-back-inner .icon { min-width: 14px; }
.bt-mini.used { opacity: .15; transform: translateY(10px) scale(.85); }
.bt-arena { position: relative; display: grid; grid-template-columns: minmax(120px, 210px) minmax(0, 1fr) minmax(120px, 210px); align-items: center; gap: clamp(12px, 2.4vw, 32px); padding: 22px 0; }
.bt-arena::before { content: ''; position: absolute; left: 50%; top: 50%; width: min(560px, 74%); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1px dashed rgba(226, 178, 60, .16); box-shadow: inset 0 0 90px rgba(226, 178, 60, .05); pointer-events: none; }
.bt-center { position: relative; z-index: 3; display: grid; justify-items: center; align-content: center; min-height: 270px; }
.bt-hand { display: grid; grid-template-columns: repeat(5, minmax(0, 118px)); justify-content: end; gap: 8px; }
.bt-pick { display: block; padding: 0; border-radius: 8px; text-align: left; opacity: .5; transition: transform .25s cubic-bezier(.2, 1.3, .4, 1), opacity .3s; }
.bt-pick .card { max-width: none; width: 100%; }
.bt-hand.picking .bt-pick:not(.used) { opacity: 1; animation: pickIn .5s calc((var(--i) + 2) * 60ms) both cubic-bezier(.2, 1.3, .4, 1); }
.bt-hand.picking .bt-pick:not(.used):hover { transform: translateY(-14px); }
.bt-pick.used { opacity: .15; cursor: default; transform: translateY(8px) scale(.94); }
@keyframes pickIn { from { transform: translateY(30px); opacity: 0; } }
.kb-slot { position: relative; width: 100%; aspect-ratio: 63 / 88; display: grid; place-items: center; }
.kb-slot > * { position: absolute; inset: 0; }
.kb-slot .card { max-width: none; width: 100%; }
.kb-empty-slot { display: grid; place-items: center; border-radius: 6%/4.3%; border: 2px dashed rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .2); color: var(--faint); font-size: 13px; }
.kb-in { animation: kbIn .45s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes kbIn { from { transform: translateY(30px) scale(.85) rotateY(70deg); opacity: 0; } }
.kb-slot.mine { --side: #5fd39a; --dir: 1; translate: 0 18px; }
.kb-slot.theirs { --side: #f2765c; --dir: -1; translate: 0 -18px; }
.kb-slot.clash { z-index: 5; animation: kbClash 1.25s cubic-bezier(.3, .7, .3, 1) both; }
.kb-slot.clash.hit { animation-name: kbClashHit; }
.kb-slot.knocked { animation: kbKnock 1.25s ease-out both; }
@keyframes kbClash {
  30% { transform: translate(calc(var(--fx) * -.12), calc(var(--fy) * -.12 - 16px)) scale(1.06) rotate(calc(var(--dir) * -5deg)); }
  57% { transform: translate(var(--fx), var(--fy)) scale(1.12) rotate(calc(var(--dir) * 6deg)); }
  72% { transform: translate(calc(var(--fx) * .7), calc(var(--fy) * .7)) scale(1.04); } }
@keyframes kbClashHit {
  30% { transform: translate(calc(var(--fx) * -.12), calc(var(--fy) * -.12 - 16px)) scale(1.06) rotate(calc(var(--dir) * -5deg)); }
  57% { transform: translate(var(--fx), var(--fy)) scale(1.1); }
  68% { transform: translate(calc(var(--fx) * .2 - var(--dir) * 40px), calc(var(--fy) * .2)) rotate(calc(var(--dir) * -12deg)) scale(.94); filter: brightness(1.7); } }
@keyframes kbKnock { 0%, 56% { transform: none; }
  64% { transform: translateX(calc(var(--dir) * -50px)) rotate(calc(var(--dir) * -13deg)) scale(.92); filter: brightness(1.9); }
  80% { transform: translateX(calc(var(--dir) * -28px)) rotate(calc(var(--dir) * -6deg)); } }
.kb-slot.ko .card { animation: kbKo .7s ease-in forwards; }
@keyframes kbKo { to { transform: translateY(26px) rotate(calc(var(--dir) * -14deg)) scale(.9); filter: grayscale(1) brightness(.5); opacity: .6; } }
.kb-slot::before { content: attr(data-tag); position: absolute; left: 50%; top: 0; z-index: 7; transform: translate(-50%, -60%); max-width: 92%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 11px; border-radius: 99px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; pointer-events: none; color: #0d0c0a; background: var(--side); box-shadow: 0 4px 12px rgba(0, 0, 0, .5); }
.kb-slot .card-frame { box-shadow: 0 0 0 2px color-mix(in srgb, var(--side) 75%, transparent), 0 0 26px -6px var(--side), 0 14px 30px rgba(0, 0, 0, .5); }
.kb-slot .kb-empty-slot { border-color: color-mix(in srgb, var(--side) 35%, transparent); }
.float { position: absolute; top: 35%; left: 50%; transform: translateX(-50%); font-family: var(--serif); font-size: 40px; font-weight: 800; text-shadow: 0 3px 12px #000; pointer-events: none; animation: rise 1.3s ease-out forwards; z-index: 5; white-space: nowrap; }
.float.hit { color: #ff7d5e; }
.float.miss { color: var(--muted); font-size: 30px; }
.kb-slot .float { inset: 35% auto auto 50%; z-index: 6; animation-name: kbPop; animation-timing-function: cubic-bezier(.2, 1.5, .4, 1); }
@keyframes rise { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.7); } 20% { opacity: 1; transform: translate(-50%, 0) scale(1.1); } 100% { opacity: 0; transform: translate(-50%, -60px) scale(1); } }
.kb-prompt { display: grid; justify-items: center; gap: 8px; text-align: center; max-width: 360px; }
.kb-prompt h3 { font: 400 clamp(26px, 3vw, 40px)/1.1 var(--serif); }
.kb-prompt p { color: #c9c3b3; }
.bt-result.won h3 { color: var(--gold-2); }
.bt-result .btn { margin-top: 8px; }
.bt-foot { min-height: 2.800em; margin-top: 10px; font-size: 14px; line-height: 1.4; color: #5a4d36; font-variant-numeric: tabular-nums; }
.bt-foot b { font: 400 20px var(--serif); color: #2a2418; }
.bt-foot .good { color: #1f6e3f; font-weight: 700; }
.bt-foot .bad { color: #8f2f1f; font-weight: 700; }

/* ------------------------------------------------------------- the end */
.end { --p: 0; position: relative; overflow: clip; display: grid; place-items: center; min-height: 92svh; padding: 130px var(--gut) 90px; text-align: center; background: linear-gradient(180deg, var(--page), #07070a 30%); }
.wall { position: absolute; left: -12%; right: -12%; top: 50%; display: grid; gap: 16px; transform: translateY(calc(-50% + (1 - var(--p)) * 150px)) rotate(calc(-3deg - var(--p) * 4deg)) scale(calc(1.14 - var(--p) * .14)); opacity: calc(var(--p) * .6); pointer-events: none; will-change: transform, opacity; }
.wall-row { display: flex; width: max-content; gap: 14px; animation: wallDrift var(--t) linear infinite; }
.wall-row:nth-child(even) { animation-direction: reverse; }
.wall-card { width: clamp(118px, 13vw, 176px); flex: none; }
.wall-card .card { max-width: none; width: 100%; }
.wall-card .card-foil { display: none; }
@keyframes wallDrift { to { transform: translateX(-50%); } }
.idle .wall-row, .idle .cl-rays, .idle .pack-shine, .idle .card-foiltag, .idle .wish-heart { animation-play-state: paused; }
.end::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, var(--page) 0, transparent 34%, transparent 76%, #050508 100%), radial-gradient(60% 60% at 50% 50%, rgba(7, 7, 10, .96) 25%, rgba(7, 7, 10, .55) 72%, rgba(7, 7, 10, .3)); }
.end-copy { position: relative; z-index: 2; display: grid; justify-items: center; gap: 12px; max-width: 780px; }
.end-crown { display: grid; color: var(--gold-2); }
.end-crown .icon { width: 64px; height: 64px; filter: drop-shadow(0 0 24px rgba(243, 207, 106, .55)); animation: float 3.200s ease-in-out infinite; }
.end-word { font: 400 clamp(70px, 14vw, 180px)/.95 var(--serif); color: var(--bone); text-shadow: 0 .03em 0 #b4a78a, 0 .06em 0 #74694f; }
.end-word b { font-weight: 400; color: var(--gold-2); text-shadow: 0 .03em 0 #c08d26, 0 .06em 0 #7a5610; }
.end-copy h2 { font-size: clamp(26px, 3.400vw, 42px); }
.end-btn { margin-top: 12px; }
.end-btn .icon { width: 20px; height: 20px; }
.end-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }

.foot { padding: 32px max(var(--gut), calc((100% - var(--wrap)) / 2)) 44px; display: grid; gap: 12px; font-size: 14px; color: var(--muted); background: #050508; border-top: 1px solid rgba(255, 255, 255, .06); }
.foot summary { cursor: pointer; color: #c9c3b3; font-weight: 500; padding: 6px 0; }
.foot ul { columns: 3 260px; column-gap: 28px; margin-top: 10px; font-size: 12.500px; line-height: 1.5; }
.foot li { break-inside: avoid; padding: 2px 0; }
.foot a { color: #c9c3b3; }
.foot-small { font-size: 13px; }

/* ------------------------------------------------------------- narrower screens */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { display: flex; flex-direction: column; --cw: min(250px, 66vw, 36svh); padding-bottom: 28px; }
  .hero-word { margin-top: 8px; }
  .hero-copy { display: contents; }
  .hero-copy h1 { order: 1; margin-top: 8px; font-size: clamp(26px, 7.400vw, 34px); position: relative; z-index: 3; }
  .hero-word { order: 0; }
  .hero-stage { order: 2; min-height: calc(var(--cw) * 1.4 + 200px); margin: 10px -16px 0; }
  .hero-copy > p { order: 1; margin-top: 4px; position: relative; z-index: 3; }
  .bt { padding: 12px; }
  .bt-top { grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
  .bt-mini { width: 24px; margin-left: -10px; }
  .bt-backs { padding-left: 10px; }
  .bt-low { grid-template-columns: minmax(0, 1fr); }
  .bt-arena { grid-template-columns: repeat(2, minmax(0, 132px)); justify-content: center; gap: 22px 18px; padding: 14px 0 6px; }
  .bt-arena::before { display: none; }
  .bt-center { grid-column: 1 / -1; grid-row: 2; min-height: 0; width: calc(100vw - 58px); justify-self: center; margin-inline: auto; }
  .kb-slot.mine, .kb-slot.theirs { translate: 0 0; }
  .bt-hand { order: -1; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
  .bt-hand .card-title { font-size: 9cqw; }
  .kb-opts { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .kb-opt { min-height: 44px; }
  .float { font-size: 32px; }
  .float.crit { font-size: 42px; }
  .wall { gap: 10px; }
  .foot ul { columns: 1; }
}

/* ------------------------------------------------------------- calm */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js [data-rise] { opacity: 1; transform: none; }
  .wall-row { animation: none !important; }
}

/* two columns on a tablet: a smaller pack leaves the logo its column */
@media (min-width: 761px) and (max-width: 1040px) { .hero { --cw: min(260px, 32vw, 36vh); } }

/* ------------------------------------------------------------- the line under the main buttons */
.cta-note { font-size: 14px; line-height: 1.4; color: var(--muted); }
.end-copy .cta-note { color: #d6d0c0; text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
@media (max-width: 760px) { .hero-copy > .cta-note { order: 5; margin-top: 10px; position: relative; z-index: 3; font-size: 13px; } }

/* ------------------------------------------------------------- the pack says it opens */
.cl-open { pointer-events: auto; }
.cl-open .icon { width: 22px; height: 22px; }
.classic.opened .cl-open { display: none; }
.classic:not(.stacked) .cl-hint:empty { display: none; }
.cl-try { position: absolute; left: 50%; bottom: calc(100% + 14px); translate: -50% 0; white-space: nowrap; padding: 6px 14px; border-radius: 99px; background: var(--bone); color: #17130a; font-size: 14px; font-weight: 650; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .8); }
.cl-try::after { content: ''; position: absolute; left: 50%; top: 100%; width: 10px; height: 10px; translate: -50% -60%; rotate: 45deg; background: var(--bone); border-radius: 2px; }
.classic.opened .cl-try, .classic.opened .tap-hand { display: none; }
.classic.in-page .cl-guide { background: rgba(255, 255, 255, .4); }
.classic.in-page:not(.opened) .cl-guide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #fff3c9, #fff); transform-origin: 0 50%; animation: guideSweep 2.600s ease-in-out infinite; }
.tap-hand { position: absolute; z-index: 3; top: 8%; left: 8%; width: 46px; height: 46px; color: #17130a; pointer-events: none; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .55)); animation: handSwipe 2.600s ease-in-out infinite; }
.tap-hand .icon { width: 100%; height: 100%; fill: #fff; }
@keyframes handSwipe { 0%, 12% { transform: translateX(0); opacity: 0; } 22% { opacity: 1; } 68% { opacity: 1; } 78%, 100% { transform: translateX(calc(var(--cw) * .58)); opacity: 0; } }
@keyframes guideSweep { 0%, 16% { transform: scaleX(0); opacity: 1; } 74% { transform: scaleX(1); opacity: 1; } 88%, 100% { transform: scaleX(1); opacity: 0; } }
.classic.in-page:not(.opened) .cl-pack { transition: filter .2s; }
.classic.in-page:not(.opened) .cl-pack:hover, .classic.in-page:not(.opened) .cl-pack:focus-visible { filter: brightness(1.12) drop-shadow(0 0 54px rgba(243, 207, 106, .7)); }

@media (prefers-reduced-motion: reduce) { .tap-hand { display: none; } }

/* Once the pack is torn it is the only thing to do: the note steps aside.
   Hidden, not removed, so the logo beside it does not jump. */
.hero:has(#packStage.is-open, #packStage.is-summary) .hero-copy > .cta-note { visibility: hidden; }

/* ------------------------------------------------------------- the one button that counts */
.sum .btn-gold { animation: keepPulse 2.200s ease-in-out infinite; }
@keyframes keepPulse { 50% { scale: 1.05; filter: brightness(1.08) drop-shadow(0 0 18px rgba(243, 207, 106, .55)); } }
.bt-result .bt-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.bt-result .bt-actions .btn { margin-top: 0; }

/* ------------------------------------------------------------- buttons, redone */
a.btn, a.btn:hover { text-decoration: none; }
.btn { position: relative; isolation: isolate; overflow: hidden; min-height: 44px; padding: 0 20px; border: 0; border-radius: 10px; font: 800 13px/1 var(--sans); letter-spacing: .085em; text-transform: uppercase; }
.btn-big { min-height: 58px; padding: 0 30px; border-radius: 12px; font-size: 15px; }
.btn-gold { color: #2b1d05; text-shadow: 0 1px 0 rgba(255, 255, 255, .42); background: linear-gradient(180deg, #fff0bf 0, #f9d26f 36%, #e6aa30 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 0 0 1px rgba(150, 98, 14, .32), 0 4px 0 #94661a, 0 14px 30px -10px rgba(243, 190, 80, .6); transition: transform .14s, box-shadow .14s, filter .14s; }
.btn-gold::before { content: ''; position: absolute; z-index: -1; top: -20%; bottom: -20%; left: -40%; width: 26%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent); animation: btnSheen 3.800s ease-in-out infinite; }
@keyframes btnSheen { 0%, 62% { left: -40%; } 100% { left: 120%; } }
.btn-gold:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 0 0 1px rgba(150, 98, 14, .32), 0 6px 0 #94661a, 0 20px 38px -10px rgba(243, 190, 80, .8); }
.btn-gold:active:not(:disabled) { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 0 0 1px rgba(150, 98, 14, .32), 0 1px 0 #94661a; }
a.btn[data-play]::after { content: ''; flex: none; width: 1.15em; height: 1.15em; background: currentColor; transition: translate .18s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
a.btn[data-play]:hover::after { translate: 4px 0; }
.btn-ghost { color: var(--bone); }
.idle .btn-gold::before { animation-play-state: paused; }

/* ------------------------------------------------------------- top links */
.nav-links { position: relative; display: flex; gap: 2px; }
.nav-links a { position: relative; z-index: 1; padding: 8px 15px; border-radius: 9px; font: 600 14.500px/1 var(--sans); color: #bcb6a6; text-decoration: none; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--gold-2); }
.nav-pill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 9px; background: rgba(243, 207, 106, .13); box-shadow: inset 0 0 0 1px rgba(243, 207, 106, .28); opacity: 0; transition: transform .32s cubic-bezier(.3, 1.2, .4, 1), width .32s cubic-bezier(.3, 1.2, .4, 1), opacity .2s; }
.nav-pill.ready { opacity: 1; }

/* ------------------------------------------------------------- the claim */
.hero { min-height: max(calc(100svh - var(--nav-h)), 640px); }
.hero-word { padding-top: .3em; }
.hero-copy h1:has(.hook) { font-size: clamp(36px, 4.700vw, 68px); }
.hook { display: block; min-height: 2.12em; }
.hk { display: inline-block; animation: hkIn .5s calc(var(--w) * 42ms) cubic-bezier(.2, 1.3, .4, 1) both; }
.hk.g { color: var(--gold-2); }
.hook.leaving .hk { animation: hkOut .24s ease-in both; }
@keyframes hkIn { from { opacity: 0; transform: translateY(.55em) rotateX(-50deg); } }
@keyframes hkOut { to { opacity: 0; transform: translateY(-.4em); } }


/* ------------------------------------------------------------- the pack begs to be opened */
.cl-tilt { position: relative; display: block; isolation: isolate; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .3s; }
.cl-tilt.tilting { transition: transform .06s linear; }
.classic.in-page:not(.opened) .cl-pack { animation: float 3.200s ease-in-out infinite, packBeg 5.200s 3s ease-in-out infinite; }
@keyframes packBeg { 0%, 84%, 100% { rotate: 0deg; } 87% { rotate: -3.500deg; } 90% { rotate: 3.500deg; } 93% { rotate: -2.500deg; } 96% { rotate: 2deg; } }
.classic.in-page:not(.opened) .cl-glow { opacity: .55; transform: scale(1); background: radial-gradient(closest-side, #f3cf6a, transparent 72%); }
.cl-peek { position: absolute; z-index: -1; inset: 0; }
.cl-peek .card-back { position: absolute; left: 8%; top: 4%; width: 84%; height: 90%; transform-origin: 50% 100%; animation: peekOut 3.200s ease-in-out infinite; box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
.cl-peek .card-back:nth-child(1) { --a: -13deg; --y: -8%; }
.cl-peek .card-back:nth-child(2) { --a: 0deg; --y: -13%; animation-delay: -.5s; }
.cl-peek .card-back:nth-child(3) { --a: 13deg; --y: -8%; animation-delay: -1s; }
@keyframes peekOut { 0%, 100% { transform: translateY(var(--y)) rotate(var(--a)); } 50% { transform: translateY(calc(var(--y) - 5%)) rotate(calc(var(--a) * 1.15)); } }
.classic.opened .cl-peek { display: none; }
.classic.in-page .cl-try { bottom: calc(100% + 42px); z-index: 4; animation: float 2.600s ease-in-out infinite; }

/* ------------------------------------------------------------- cards react to the pointer */
@property --rx { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
@property --ry { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
.cl-card .card::after, .sum-c .card::after { content: ''; position: absolute; inset: 0; z-index: 6; border-radius: 5.500cqw; pointer-events: none; opacity: 0; transition: opacity .2s; mix-blend-mode: overlay;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .85), rgba(255, 255, 255, .15) 34%, transparent 60%); }
.card.tilting::after { opacity: 1 !important; }
.card.tilting .card-art img { transform: scale(1.1) translate(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -14px)); }
.card-art img { transition: transform .25s; }
.cl-card.top:not(.nudge):not(.gone):not(.dragging) .card:not(.tilting) { animation: cardSway 5.200s ease-in-out infinite; }
@keyframes cardSway { 0%, 100% { --rx: 3deg; --ry: -7deg; } 50% { --rx: -3deg; --ry: 7deg; } }
.cl-card.top .card { transition: transform .22s, scale .22s; }
.cl-card.top:hover .card { scale: 1.035; }
.cl-card.top .card.tilting { transition: transform .06s linear, scale .22s; }
.sum-c .card { transition: transform .22s, translate .22s; }
.sum-c:hover .card { translate: 0 -16px; }
.sum-c.best { z-index: 5; }
.sum-c.best .card-frame { box-shadow: 0 0 0 2px var(--tier), 0 0 40px 2px var(--tier); }

/* ------------------------------------------------------------- what you pulled */
.pull { display: grid; justify-items: center; gap: 7px; animation: fanIn .55s .55s cubic-bezier(.2, 1.2, .4, 1) both; }
.pull-tag { padding: 5px 13px; border-radius: 7px; font: 800 12px/1 var(--sans); letter-spacing: .11em; text-transform: uppercase; color: #0d0c0a; background: var(--t); box-shadow: 0 0 26px -2px var(--t); }
.pull-name { font: 400 clamp(23px, 2.500vw, 31px)/1.1 var(--serif); color: var(--bone); text-wrap: balance; }
.pull-scale { display: flex; align-items: center; gap: 9px; margin-top: 2px; }
.pull-scale small { font-size: 11px; font-weight: 600; color: #8d8778; }
.pull-scale span { display: flex; gap: 4px; }
.pull-scale i { width: clamp(16px, 2.200vw, 26px); height: 7px; border-radius: 3px; background: rgba(255, 255, 255, .13); }
.pull-scale i.on, .pull-scale i.me { background: var(--c); animation: fanIn .35s calc(var(--n) * 90ms + .8s) both; }
.pull-scale i.me { box-shadow: 0 0 12px 1px var(--c); }
.pull-odds { font-size: 14px; color: #cfc9ba; }
.sum { gap: 16px; }

.sec-head.center { margin-inline: auto; justify-items: center; text-align: center; }

/* ------------------------------------------------------------- the seam between the sections */
.battle { padding-bottom: clamp(48px, 6vw, 84px) !important; }


/* ------------------------------------------------------------- the number */
.end-copy h2 { font-size: clamp(27px, 3.600vw, 46px); line-height: 1.12; }
.end-num { display: block; margin-top: 6px; font-size: clamp(58px, 12.500vw, 158px); line-height: 1; color: var(--gold-2); font-variant-numeric: tabular-nums; text-shadow: 0 .03em 0 #c08d26, 0 .06em 0 #7a5610, 0 .1em .3em rgba(0, 0, 0, .7); }
.end-num.landed { animation: numLand .6s cubic-bezier(.2, 1.7, .4, 1); }
@keyframes numLand { 40% { transform: scale(1.06); text-shadow: 0 .03em 0 #c08d26, 0 .06em 0 #7a5610, 0 0 .5em rgba(243, 207, 106, .75); } }
.end-sub { max-width: 44ch; color: #e0dacb; font-size: clamp(17px, 1.700vw, 21px); text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }

/* ------------------------------------------------------------- phones */
@media (max-width: 760px) {
  :root { --nav-h: 96px; }
  .nav-logo { margin-right: auto; font-size: 21px; }
  .nav .round-btn { width: 36px; height: 36px; }
  .nav-play { min-height: 36px; padding: 0 12px; font-size: 11.500px; }
  .hook { font-size: clamp(25px, 7.200vw, 30px); }
  .hero-copy h1 { font-size: inherit; }
  .end { padding-top: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-gold::before, .cl-peek .card-back { animation: none !important; }
  .cl-peek .card-back { transform: translateY(var(--y)) rotate(var(--a)); }
}


/* ------------------------------------------------------------- top bar: the links sit on the page's true centre */
.nav-logo { justify-self: start; }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 14px; }

/* ------------------------------------------------------------- features */
.md-sec { position: relative; padding: clamp(48px, 6vw, 84px) max(var(--gut), calc((100% - 1240px) / 2)); background: radial-gradient(56% 50% at 50% 58%, #2a2212, transparent 74%), var(--page); }
.md-sec h2 { font-size: clamp(32px, 4.200vw, 56px); }
.md-sec .sec-head { gap: 6px; }
.md { display: grid; gap: 22px; }
.md-tabs { display: flex; justify-content: center; gap: 6px; }
.md-tab { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 12px; font: 600 15.500px/1 var(--sans); color: #bcb6a6; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); transition: color .2s, background .2s, box-shadow .2s; }
.md-tab:hover { color: var(--bone); background: rgba(255, 255, 255, .08); }
.md-tab[aria-selected="true"] { color: #2b1d05; background: var(--gold-2); box-shadow: 0 0 26px -6px rgba(243, 207, 106, .8); }
.md-ic, .md-tl { position: relative; z-index: 1; }
.md-ic { display: inline-grid; }
.md-ic .icon { width: 18px; height: 18px; }
.md-fill { position: absolute; inset: 0; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, #ffe9a8, #fff4d0); }
.md.auto .md-tab[aria-selected="true"] .md-fill { animation: mdFill var(--dur, 12s) linear forwards; }
@keyframes mdFill { to { transform: scaleX(1); } }
.idle .md-fill { animation-play-state: paused !important; }
@media (hover: hover) { .md:has(.md-stage:hover, .md-copies:hover) .md-fill { animation-play-state: paused !important; } }

.md-body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 56px); }
.md-stage { position: relative; aspect-ratio: 860 / 572; border-radius: 22px; overflow: hidden; background: radial-gradient(80% 70% at 50% 40%, #232636, #12131a); box-shadow: inset 0 0 0 1px rgba(243, 207, 106, .16), 0 26px 60px -24px rgba(0, 0, 0, .9); }
.md-scene { position: absolute; inset: 0; display: grid; animation: mdScene .4s ease both; }
@keyframes mdScene { from { opacity: 0; transform: scale(.975); } }
.md-copies { display: grid; }
.md-copy { grid-area: 1 / 1; visibility: hidden; opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .35s cubic-bezier(.2, .9, .3, 1), visibility 0s .3s; }
.md-copy.on { visibility: visible; opacity: 1; transform: none; transition: opacity .35s .08s, transform .4s .08s cubic-bezier(.2, .9, .3, 1), visibility 0s; }
.md-copy h3 { font: 400 clamp(29px, 3vw, 40px)/1.08 var(--serif); color: var(--gold-2); }
.md-copy p { margin-top: 10px; color: #d6d0c0; font-size: clamp(16px, 1.350vw, 18px); line-height: 1.55; }
.md-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.md-facts li { padding: 7px 11px; border-radius: 8px; font-size: 13.500px; font-weight: 600; color: var(--bone); background: rgba(243, 207, 106, .1); box-shadow: inset 0 0 0 1px rgba(243, 207, 106, .22); }

/* The scenes are the game's own screens, drawn at a fixed size and scaled to fit. Sizes the game
   works out from the window are pinned here, because the window isn't the screen these live in. */
.md-fit { position: absolute; left: 0; top: 0; transform-origin: 0 0; text-align: left; color: var(--text); pointer-events: none; }
.md-game .kb { position: absolute; inset: 0; height: 100%; min-height: 0; border: 0; border-radius: 0; gap: 4px; padding: 10px 18px 0; }
.md-game .kb-arena { grid-template-columns: 158px minmax(0, 1fr) 158px; gap: 18px; }
.md-game .kb-arena::before { display: none; }
.md-game .kb-slot.mine, .md-game .kb-slot.theirs { translate: none; }
.md-game .kb-center { min-height: 220px; }
.md-game .kb-q { padding: 12px 14px 10px; }
.md-game .kb-q-text { font-size: 20px; margin: 6px 2px 10px; }
.md-game .kb-opt { min-height: 44px; }
.md-game .kb-hand { padding: 12px 6% 0 0; margin-bottom: -44px; }
.md-game .kb-hand-card { width: 92px; }
.md-game .cl { height: 100%; }
.md-game .cl-run { height: 100%; min-height: 0; gap: 10px; padding: 12px 22px 14px; border: 0; border-radius: 0; }
.md-game .cl-stage { gap: 12px; }
.md-game .cl-hand { grid-template-columns: repeat(3, 150px); gap: 22px; }
.md-game .cl-hand.two { grid-template-columns: repeat(2, 174px); gap: 30px; }
.md-game .cl-q { grid-template-columns: 200px minmax(0, 1fr); gap: 14px 28px; }
.md-game .cl-qtext { font-size: 23px; }
.md-game .cl-opts .kb-opt { min-height: 50px; }
.md-game .cl-praise { font-size: 58px; }
.md-game .cl-lift b { font-size: 130px; }
.md-game .cl-bossin h2 { font-size: 60px; }
.md-game .cl-kb { font: 400 26px var(--serif); color: var(--faint); font-variant-numeric: tabular-nums; text-align: center; }
.md-game .won .cl-kb { color: var(--gold-2); }
.md-game .cl-pick.lost { opacity: .5; }
.md-game .cl-pick:nth-child(2):last-child { rotate: 3deg; }
.md-game .cl-pick.chosen:nth-child(2):last-child { rotate: 0deg; }
.md-game .cl-hand.two .cl-pick.chosen { transform: translateY(-8px) scale(1.04); }

.md-stamp { position: absolute; z-index: 40; left: 50%; top: 50%; padding: 12px 26px; border-radius: 12px; font: 400 44px/1 var(--serif); color: #2b1d05; background: var(--gold-2); box-shadow: 0 10px 34px rgba(0, 0, 0, .7); white-space: nowrap; opacity: 0; transform: translate(-50%, -50%) scale(1.5) rotate(-5deg); transition: opacity .18s, transform .28s cubic-bezier(.2, 1.5, .4, 1); }
.md-stamp.in { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-5deg); }

/* the auction: the last seconds turn the whole panel red, and a bid knocks it back to calm */
.md-mk { position: absolute; inset: 0; display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: center; gap: 36px; padding: 28px 40px; background: radial-gradient(70% 70% at 30% 50%, rgba(91, 130, 214, .14), transparent 70%), linear-gradient(180deg, #171a22, #101218); transition: background .3s; }
.md-mk::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; box-shadow: inset 0 0 120px 20px rgba(232, 52, 42, .75); }
.md-mk.urgent::after { --al: .55; animation: clAlarm 1s ease-in-out infinite; }
.md-mk.critical::after { --al: 1; animation: clAlarm .5s ease-in-out infinite; }
.md-lot .card { max-width: none; width: 100%; }
.md-mk.critical .md-lot { animation: clTremble .16s linear infinite; }
.md-game .auc { position: relative; gap: 12px; padding: 20px 22px; transition: border-color .2s, box-shadow .2s; }
.md-game .auc-head { font-size: 15px; }
.md-game .auc-now small, .md-game .auc-now em { font-size: 15px; }
.md-game .auc-now b { font-size: 46px; }
.md-game .auc-now .wikey { width: 34px; height: 34px; }
.md-game .auc-now b.bump { animation: mdBump .42s cubic-bezier(.2, 1.7, .4, 1); }
@keyframes mdBump { 40% { transform: scale(1.14); color: #fff; } }
.md-game .muted-line { font-size: 15px; color: var(--muted); }
.md-game .auc-hist li { font-size: 15px; padding: 7px 0; }
.md-game .auc-hist b .wikey { width: 15px; height: 15px; }
.md-game .auc-hist small { font-size: 13px; }
.md-game .auc-hist li.new { animation: mdRow .36s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes mdRow { from { opacity: 0; transform: translateY(-14px); background: rgba(243, 207, 106, .3); } }
.md-clock { position: relative; display: flex; align-items: baseline; gap: 12px; }
.md-clock small { font-size: 15px; color: var(--muted); }
.md-clock b { display: inline-block; font: 400 64px/1 var(--serif); color: var(--text); font-variant-numeric: tabular-nums; transform-origin: 0 70%; }
.md-clock i { font-style: normal; font-size: 15px; color: var(--muted); }
.urgent .md-clock b { color: #ff8f78; text-shadow: 0 0 26px rgba(255, 90, 70, .75); animation: mdTick 1s ease-in-out infinite; }
.critical .md-clock b { color: #ff5a46; animation-duration: .45s; }
@keyframes mdTick { 50% { transform: scale(1.09); } }
.urgent .auc { border-color: rgba(255, 90, 70, .75); box-shadow: 0 0 34px -6px rgba(255, 90, 70, .7); }
.md-plus { position: absolute; left: 150px; top: 8px; padding: 7px 12px; border-radius: 9px; font: 700 22px/1 var(--sans); color: #0e2a18; background: #7bdc9f; box-shadow: 0 0 26px rgba(123, 220, 159, .7); opacity: 0; }
.md-plus.show { animation: mdPlus 1.15s ease both; }
@keyframes mdPlus { 0% { opacity: 0; transform: translateY(14px) scale(.7); } 16% { opacity: 1; transform: scale(1.18); } 26%, 74% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-14px); } }
.md-mk.saved .auc { animation: mdSaved .7s ease-out; }
@keyframes mdSaved { 0% { box-shadow: 0 0 0 3px #7bdc9f, 0 0 60px rgba(123, 220, 159, .7); } }

/* trades */
.md-tr { position: absolute; inset: 0; display: grid; align-content: center; padding: 20px 34px; background: radial-gradient(70% 70% at 50% 45%, rgba(226, 178, 60, .1), transparent 70%), linear-gradient(180deg, #171a22, #101218); }
.md-game .tr-item { gap: 18px; padding: 20px 24px; }
.md-game .tr-item header { font-size: 18px; }
.md-game .tr-state { font-size: 15px; }
.md-game .tr-sides { align-items: center; }
.md-game .tr-sides h4 { margin-bottom: 12px; font-size: 16px; }
.md-game .tr-cards { position: relative; gap: 10px; min-height: 206px; transition: transform .8s cubic-bezier(.45, .05, .25, 1); }
.md-game .tr-card { width: 142px; animation: mdDeal .36s cubic-bezier(.2, 1.2, .4, 1) calc(var(--i, 0) * 120ms) both; }
.md-game .tr-keys { font-size: 20px; padding: 6px 13px; }
.md-game .tr-keys .wikey { width: 19px; height: 19px; }
.md-game .tr-arrow .icon { width: 30px; height: 30px; color: var(--gold-2); }
.md-game .tr-arrow.spin { animation: mdSpin .8s cubic-bezier(.45, .05, .25, 1); }
@keyframes mdSpin { to { rotate: 180deg; } }
.md-game .tr-cards.go { z-index: 3; transform: translate(var(--dx), var(--dy)); }
.md-game .kb-rewards .wikey { width: 18px; height: 18px; }
.md-game .kb-rewards span { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; width: auto; height: auto; padding: 6px 14px; border-radius: 99px; }
.md-game .tr-sides h4 { transition: opacity .25s; }
.md-game .tr-sides.swapped h4 { opacity: 0; }
.md-game .tr-item footer .btn { font-size: 15px; padding: 10px 18px; }
.md-game .tr-item footer .btn.press { animation: mdPress .4s ease; }
@keyframes mdPress { 40% { transform: scale(.9); filter: brightness(1.4); } }
.md-av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font: 400 21px/1 var(--serif); color: #2b1d05; background: linear-gradient(180deg, #ffe9a8, #e0a526); }
@keyframes mdDeal { from { opacity: 0; transform: translateY(16px) scale(.88) rotate(-3deg); } }

/* phones: the game's phone layout, drawn at phone size */
@media (max-width: 760px) {
  .md-game .kb { padding: 8px 10px 8px; }
  .md-game .kb-arena { grid-template-columns: 1fr 1fr; gap: 10px 12px; }
  .md-game .kb-slot { width: 150px; }
  .md-game [data-phase="answer"] .kb-slot, .md-game [data-phase="reveal"] .kb-slot { width: 104px; }
  .md-game .kb-center { min-height: 0; }
  .md-game .kb-q-text { font-size: 18px; }
  .md-game .kb-opt { min-height: 42px; padding: 6px 12px; font-size: 15px; }
  .md-game .kb-hand { padding: 8px 0 26px; margin: 0; }
  .md-game .kb-hand-card { width: 84px; }
  .md-game .cl-run { padding: 10px 12px 12px; }
  .md-game .cl-hand { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .md-game .cl-hand.two { grid-template-columns: repeat(2, 150px); gap: 22px; margin-top: 10px; }
  .md-game .cl-q { grid-template-columns: 104px minmax(0, 1fr); gap: 10px 14px; }
  .md-game .cl-qtext { font-size: 18px; }
  .md-game .cl-opts .kb-opt { min-height: 42px; }
  .md-game .cl-praise { font-size: 44px; }
  .md-game .cl-lift b { font-size: 100px; }
  .md-mk { grid-template-columns: minmax(0, 1fr); grid-template-rows: 216px minmax(0, 1fr); justify-items: stretch; gap: 12px; padding: 14px 16px; }
  .md-lot { justify-self: center; width: 152px; }
  .md-game .auc { padding: 14px 16px; gap: 8px; align-self: start; }
  .md-game .auc-now b { font-size: 36px; }
  .md-clock b { font-size: 52px; }
  .md-plus { left: 128px; top: 4px; font-size: 19px; }
  .md-tr { padding: 12px; }
  .md-game .tr-item { padding: 14px; gap: 10px; }
  .md-game .tr-sides { grid-template-columns: 1fr; gap: 4px; }
  .md-game .tr-sides h4 { margin-bottom: 6px; }
  .md-game .tr-cards { min-height: 122px; gap: 8px; }
  .md-game .tr-card { width: 84px; }
}

/* ------------------------------------------------------------- FAQ: one column, one width, hairlines between */
.faq { padding: clamp(48px, 6vw, 88px) max(var(--gut), calc((100% - 1040px) / 2)) clamp(40px, 5vw, 72px); background: var(--page); }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; gap: clamp(28px, 5vw, 72px); }
.faq-head { position: sticky; top: calc(var(--nav-h) + 32px); display: grid; gap: 8px; }
.faq-head h2 { font-size: clamp(32px, 3.800vw, 50px); line-height: 1.04; }
.faq-head p { color: #c9c3b3; font-size: clamp(16px, 1.400vw, 18px); }
.faq-list { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.qa { box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .1); }
.qa h3 { font: inherit; }
.qa-q { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; padding: 19px 2px; text-align: left; font: 600 clamp(17px, 1.450vw, 19px)/1.3 var(--sans); color: var(--bone); transition: color .18s; }
.qa-q:hover, .qa.open .qa-q { color: var(--gold-2); }
.qa-x { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1.500px rgba(243, 207, 106, .45); transition: transform .32s cubic-bezier(.3, 1.3, .4, 1), background .2s, box-shadow .2s; }
.qa-x::before, .qa-x::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--gold-2); transition: background .2s; }
.qa-x::after { transform: rotate(90deg); }
.qa.open .qa-x { transform: rotate(135deg); background: var(--gold-2); box-shadow: none; }
.qa.open .qa-x::before, .qa.open .qa-x::after { background: #2b1d05; }
.qa-a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .32s cubic-bezier(.3, .9, .3, 1); }
.js .qa:not(.open) .qa-a { grid-template-rows: 0fr; }
.qa-a > div { min-height: 0; overflow: hidden; }
.qa-a p { padding: 0 48px 20px 2px; color: #c9c3b3; font-size: clamp(15.500px, 1.250vw, 17px); line-height: 1.55; opacity: 1; transform: none; transition: opacity .28s .06s, transform .32s .06s cubic-bezier(.2, .9, .3, 1); }
.js .qa:not(.open) .qa-a p { opacity: 0; transform: translateY(-6px); transition-delay: 0s; }

/* ------------------------------------------------------------- phones and small tablets */
@media (min-width: 761px) and (max-width: 1100px) {
  .md-body { grid-template-columns: minmax(0, 1fr); }
  .md-stage { width: min(100%, 760px); justify-self: center; }
}
@media (min-width: 761px) and (max-width: 940px) {
  .nav { gap: 8px; }
  .nav-right { gap: 8px; }
  .nav-links a { padding: 8px 9px; font-size: 13.500px; }
}
@media (max-width: 760px) {
  .nav { grid-template-columns: 1fr auto; align-content: center; gap: 4px 10px; }
  .nav-right { gap: 10px; }
  .nav-links { grid-column: 1 / -1; grid-row: 2; justify-self: center; justify-content: center; }
  .nav-links a { padding: 7px 9px; font-size: 13.500px; }
  .hero { --cw: min(220px, 52vw, 25svh); }
  .hero-copy > p:not(.cta-note) { font-size: 15.500px; line-height: 1.42; }
  .hero-stage { min-height: calc(var(--cw) * 1.4 + 150px); }

  .md { gap: 14px; }
  .md-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .md-tab { justify-content: center; gap: 5px; padding: 11px 2px; font-size: 12.500px; line-height: 1.12; text-align: center; }
  .md-ic { display: none; }
  .md-body { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .md-stage { aspect-ratio: 430 / 700; }

  .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .faq-head { position: static; }
  .qa-q { padding-block: 16px; }
  .qa-a p { padding-right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .md-copy, .md-copy.on { transition: none; }
}

/* legal links */
.foot-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 12px; font-size: 13px; }
.foot-legal a { color: inherit; opacity: .8; }
.foot-legal a:hover { opacity: 1; }
