/* Lala Studio: one stylesheet for the three pages.
   index.html        the studio: its name over a spread of game cards, face down but one
   mole-patrol.html  the first game: the boss in his cave, his mallets, the bonuses, the maths
   leaderboard.html  the weekly wager race, and connecting a Stake account to it */
:root {
  --black: #000;       /* stage behind the art */
  --ink: #0A0A0C;      /* page ground */
  --deep: #17161C;     /* panels, chart surface */
  --line: #2A2A31;     /* hairlines, grid */
  --mute: #9A9AA4;     /* secondary text */
  --bone: #F1F1EC;     /* text */
  --lime: #8CFF00;     /* live / progress */
  --violet: #7B00FF;   /* holo, accents */
  --cave: #16003A;     /* the cave in shadow */
  --pink: #FF4FA3;     /* holo second hue */
  --c1: #9B6BFF;       /* chart: base game, frequency (validated on --deep) */
  --c2: #FF4FA3;       /* chart: first bonus, share of payout */
  --c3: #7FAE12;       /* chart: second bonus */
  --display: 'Unbounded', 'Arial Black', sans-serif;
  --text: 'Onest', system-ui, -apple-system, sans-serif;
  --gl: max(16px, env(safe-area-inset-left, 0px));
  --gr: max(16px, env(safe-area-inset-right, 0px));
  --pad: clamp(16px, 3.4vw, 48px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--bone); font-family: var(--text); font-size: 16px; line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--black); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1440px; margin: 0 auto; padding-left: calc(var(--gl) + var(--pad) - 16px); padding-right: calc(var(--gr) + var(--pad) - 16px); }

/* ---------- holo: tilt toward the pointer + rainbow sheen ---------- */
.holo { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --lift: 0px; position: relative; transform: perspective(900px) translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.holo.live { transition: transform .08s linear; --lift: -6px; }
.holo .shine { position: absolute; inset: 0; border-radius: inherit; z-index: 5; pointer-events: none; mix-blend-mode: color-dodge; opacity: 0; transition: opacity .35s;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.6), transparent 42%), linear-gradient(115deg, transparent 18%, rgba(255,79,163,.55) 36%, rgba(140,255,0,.45) 50%, rgba(123,0,255,.6) 64%, transparent 82%);
  background-size: 100% 100%, 260% 260%; background-position: center, var(--mx) var(--my); }
.holo.live .shine { opacity: 1; }

/* ---------- top bar ---------- */
.bar { position: absolute; z-index: 30; left: 0; right: 0; top: 0; }
.bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; }
.bar .logo { width: 116px; margin-left: -8px; }
.bar nav { display: flex; gap: 4px; padding: 5px; border-radius: 99px; background: rgba(255,255,255,.1); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.bar nav a { text-decoration: none; font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: 99px; transition: background .2s; }
.bar nav a:hover { background: rgba(255,255,255,.12); }
.bar nav a.cta { background: var(--bone); color: var(--ink); }
.bar nav a[aria-current] { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }

/* ---------- opening screens: the cave, then the boss (mole-patrol) or the cards (home) ---------- */
.front { position: relative; background: var(--cave); min-height: 680px; height: min(100svh, 1000px); display: grid; overflow: hidden; isolation: isolate; --px: 0; --py: 0; }
.front .layer { position: absolute; transition: transform .5s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.front .cave { inset: -2.5%; z-index: -5; transform: translate(calc(var(--px) * -10px), calc(var(--py) * -6px)); }
.front .cave img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; }
.front .lamp { z-index: -4; right: 4%; top: 2%; width: 56vw; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(255,196,80,.5), rgba(255,120,60,.14) 55%, transparent); mix-blend-mode: screen; }
.front .lantern { z-index: -3; left: 43%; top: -10px; width: clamp(48px, 4.6vw, 72px); transform-origin: 50% 0; animation: swing 5s ease-in-out infinite alternate; }
.front .lantern::before { content: ""; position: absolute; left: 50%; top: 74%; width: 420%; aspect-ratio: 1; translate: -50% -50%; background: radial-gradient(closest-side, rgba(255,190,80,.55), transparent); mix-blend-mode: screen; }
.front .lantern img { position: relative; }
@keyframes swing { from { rotate: -2.5deg; } to { rotate: 2.5deg; } }
.front .boss { z-index: -2; right: max(1.5vw, calc(50vw - 740px)); top: 13%; height: 106%; aspect-ratio: 1162 / 1400; transform: translate(calc(var(--px) * 14px), calc(var(--py) * 8px)); }
.front .boss img { width: 100%; height: 100%; max-width: none; filter: drop-shadow(-8px 14px 24px rgba(8,4,24,.55)); transform-origin: 50% 90%; animation: cheer 1.5s cubic-bezier(.45,0,.55,1) infinite alternate; }
@keyframes cheer { from { transform: scale(1.012,.988); } to { transform: translateY(-6px) scale(.992,1.01); } }
.coin { position: absolute; display: grid; place-items: center; width: var(--s); aspect-ratio: 1; container-type: inline-size; animation: bob var(--t, 4s) ease-in-out infinite alternate; }
.coin > * { grid-area: 1 / 1; }
.coin b { font: 900 62cqw/1 var(--display); color: #B86A00; translate: 0 -8%; }
@keyframes bob { from { transform: rotate(var(--r)) translateY(-8px) scaleX(.82); } to { transform: rotate(calc(var(--r) + 9deg)) translateY(8px) scaleX(.96); } }
.front .coins { inset: 0; z-index: -1; transform: translate(calc(var(--px) * 26px), calc(var(--py) * 16px)); }
.front::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(0deg, var(--ink) 0%, rgba(10,10,12,.55) 16%, transparent 42%), linear-gradient(90deg, rgba(16,0,46,.72), transparent 56%); }
.front .bottom { align-self: end; padding-bottom: clamp(36px, 6vh, 72px); width: 100%; }
.front h1 { font: 900 clamp(50px, 8.6vw, 136px)/.9 var(--display); letter-spacing: -0.04em; margin: 0 0 0 -.04em; text-shadow: 0 10px 40px rgba(0,0,0,.5); }
.front .pitch { max-width: 44ch; font-size: 18px; color: rgba(241,241,236,.86); margin: 18px 0 26px; }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; font: 700 15px/1 var(--display); padding: 17px 26px; border-radius: 99px; transition: transform .15s, background .2s; border: 0; cursor: pointer; }
.btn:hover { transform: scale(1.04); }
.btn.solid { background: var(--bone); color: var(--ink); }
.btn.glass { background: rgba(255,255,255,.14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--bone); }
.btn.line { background: none; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--bone); }
.btn.line:hover { box-shadow: inset 0 0 0 1.5px var(--bone); }
.btn svg { width: 14px; height: 14px; }
.facts { display: flex; gap: 26px; margin-top: 28px; font-size: 14px; color: rgba(241,241,236,.7); flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.facts b { display: block; font: 700 18px/1.2 var(--display); color: var(--bone); }
/* ---------- section heads ---------- */
.sec { padding-block: clamp(72px, 9vw, 128px); }
.head { display: flex; justify-content: space-between; align-items: end; gap: 20px 32px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.head h2 { font: 900 clamp(36px, 5vw, 72px)/.95 var(--display); letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
.head p { margin: 12px 0 0; color: var(--mute); max-width: 46ch; }

/* ---------- the four mallets: holo cards ---------- */
.mallets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); margin: clamp(16px, 2vw, 28px) 0 0; padding: 0; list-style: none; }
.mallet { border-radius: 22px; padding: 20px; min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; background: radial-gradient(90% 70% at 50% 30%, var(--a), var(--b) 100%); box-shadow: 0 0 0 1.5px rgba(255,255,255,.14), 0 30px 60px -28px rgba(0,0,0,.8); }
.mallet img { position: absolute; left: 50%; top: 5%; width: min(64%, 184px); transform: translateX(-50%) translateZ(44px); filter: drop-shadow(0 16px 18px rgba(0,0,0,.5)); pointer-events: none; }
.mallet b { font: 900 clamp(34px, 3.6vw, 56px)/1 var(--display); letter-spacing: -0.04em; transform: translateZ(30px); }
.mallet h3 { font: 700 15px/1.2 var(--display); margin: 8px 0 0; transform: translateZ(20px); }
.mallet p { margin: 4px 0 0; font-size: 14px; color: rgba(241,241,236,.8); transform: translateZ(20px); }
.aside { margin: 28px 0 0; color: var(--mute); max-width: 68ch; }
.aside b { color: var(--bone); font-weight: 600; }

/* ---------- the two bonuses ---------- */
.page { border-top: 1px solid var(--line); }
.store { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(24px, 3.6vw, 64px); align-items: center; }
.store + .store { margin-top: clamp(64px, 8vw, 120px); }
.store.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); } .store.flip .scene { order: 2; }
.side { min-width: 0; display: grid; gap: 22px; }
.side h3 { font: 900 clamp(34px, 4vw, 56px)/.95 var(--display); letter-spacing: -0.035em; margin: 0; }
.side p.blurb { margin: 0; color: rgba(241,241,236,.82); max-width: 48ch; font-size: 17px; }
.feats { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.feats li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 150px 1fr; gap: 16px; }
.feats b { font: 700 13px/1.5 var(--display); }
.feats span { font-size: 15px; color: var(--mute); }

/* ---------- the maths, mode by mode (maths.js) ---------- */
.modes { display: flex; flex-wrap: wrap; gap: 22px 28px; margin-bottom: clamp(28px, 4vw, 48px); }
.mode-group { display: grid; gap: 10px; flex: 3 1 340px; } .mode-group:first-child { flex: 1 1 130px; }
.mode-group > span { font-size: 14px; color: var(--mute); } .mode-group > div { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.modes button { border: 0; cursor: pointer; border-radius: 18px; padding: 14px 10px 14px; background: var(--deep); display: grid; justify-items: center; align-content: start; gap: 2px; text-align: center; transition: background .2s; }
.modes button:hover { background: #221F2B; } .modes button[aria-selected=true] { background: var(--violet); }
.modes button img { width: 54px; height: 54px; object-fit: contain; margin-bottom: 8px; } .modes button b { font: 700 13px/1.25 var(--display); } .modes button small { font-size: 13px; color: rgba(241,241,236,.75); }
.mode-head { display: flex; gap: 22px; align-items: center; margin-bottom: 24px; } .mode-head img { width: 84px; height: 84px; object-fit: contain; flex: none; }
.mode-head h3 { font: 900 clamp(28px, 3.4vw, 48px)/1 var(--display); letter-spacing: -.035em; margin: 0 0 8px; } .mode-head p { margin: 0; color: rgba(241,241,236,.82); font-size: 17px; max-width: 64ch; }
.mx-facts { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mx-facts li { display: flex; align-items: center; gap: 16px; background: var(--deep); border-radius: 22px; padding: 18px 20px; } .mx-facts img { width: 58px; height: 58px; object-fit: contain; flex: none; }
.mx-facts span { color: rgba(241,241,236,.8); font-size: 15px; line-height: 1.35; } .mx-facts b { display: block; font: 900 clamp(22px, 2.2vw, 30px)/1.15 var(--display); letter-spacing: -.02em; color: var(--bone); }
.mx-card { background: var(--deep); border-radius: 22px; padding: clamp(18px, 2vw, 28px); min-width: 0; } .mx-card h4 { font: 900 clamp(18px, 1.7vw, 23px)/1.2 var(--display); letter-spacing: -.02em; margin: 0 0 6px; } .mx-card > p { margin: 0 0 20px; color: rgba(241,241,236,.78); font-size: 15px; }
.chart { position: relative; } .chart svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; cursor: crosshair; border-radius: 8px; }
.chart .grid { stroke: #2A2A33; stroke-width: 1; } .chart .base { stroke: #45454F; stroke-width: 1; } .chart .zero { stroke: var(--bone); stroke-width: 1.5; }
.chart .ax { fill: var(--mute); font: 400 13px var(--text); } .chart .line { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; } .chart .demo { fill: none; stroke: #B9B9C4; stroke-width: 1.2; stroke-opacity: .55; stroke-linejoin: round; }
.chart .mark { stroke: var(--bone); stroke-width: 1.5; } .chart .dot, .chart .cross circle { stroke: var(--deep); stroke-width: 2; } .chart .cross line { stroke: rgba(241,241,236,.6); stroke-width: 1; } .chart .cross { pointer-events: none; }
.chart .note { fill: rgba(241,241,236,.78); font: 400 13px var(--text); } .chart .note.big { fill: var(--bone); font: 600 15px var(--text); paint-order: stroke; stroke: var(--deep); stroke-width: 4px; stroke-linejoin: round; }
.chart .pop { position: absolute; z-index: 5; pointer-events: none; background: var(--bone); color: var(--ink); border-radius: 12px; padding: 11px 14px; font-size: 14px; line-height: 1.5; width: max-content; max-width: 250px; box-shadow: 0 12px 30px rgba(0,0,0,.5); } .chart .pop span { display: flex; justify-content: space-between; gap: 16px; } .chart .pop i { font-style: normal; font-weight: 700; white-space: nowrap; } .chart .pop b { display: block; } .chart .pop small { color: #55555E; }
.views { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; } .views button { border: 0; cursor: pointer; border-radius: 99px; padding: 12px 18px; background: rgba(255,255,255,.08); font-weight: 600; font-size: 15px; line-height: 1; transition: background .2s; } .views button:hover { background: rgba(255,255,255,.16); } .views button[aria-pressed=true] { background: var(--bone); color: var(--ink); }
.say { margin: 0 0 18px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; max-width: 78ch; min-height: 3em; } .one { min-height: 300px; } .one > h4 { margin-top: 4px; } .one > p { margin: 0 0 14px; font-size: 15px; color: var(--mute); }
.key { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 14px; color: rgba(241,241,236,.85); } .key li { display: flex; align-items: center; gap: 9px; } .key i { width: 24px; height: 4px; border-radius: 2px; }
.split { display: flex; gap: 2px; height: 28px; margin: 0 0 16px; } .split i { display: block; min-width: 3px; border-radius: 4px; } .split .keep { background: #4A4A55; }
.legend { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; } .legend li { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; font-size: 15px; } .legend li::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--sw); } .legend b { font-weight: 600; font-variant-numeric: tabular-nums; }
.mx-h { font: 900 clamp(24px, 2.6vw, 36px)/1.05 var(--display); letter-spacing: -.03em; margin: clamp(36px, 4.4vw, 60px) 0 20px; }
.m-keys { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 18px; overflow: hidden; margin: 0 0 16px; }
.m-keys div { background: var(--deep); padding: 16px 16px 18px; min-width: 0; } .m-keys dt { font-size: 14px; color: var(--mute); } .m-keys dd { margin: 6px 0 0; font: 700 clamp(17px, 1.6vw, 23px)/1.15 var(--display); letter-spacing: -.02em; } .m-keys dd small { display: block; font: 400 13px/1.4 var(--text); color: var(--mute); letter-spacing: 0; margin-top: 4px; }
.m-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin: 16px 0 0; }
.m-box { background: var(--deep); border-radius: 22px; padding: clamp(18px, 2vw, 28px); min-width: 0; } .m-box h4 { font: 700 17px/1.3 var(--display); margin: 0 0 4px; } .m-box h4.sub { margin: 26px 0 8px; } .m-box > p { margin: 0 0 14px; font-size: 15px; color: var(--mute); }
.tbl { overflow-x: auto; } .sizes, .plain { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.sizes th, .plain th { text-align: left; font-weight: 400; } .sizes thead th { color: var(--mute); font-size: 13px; padding: 0 16px 10px 0; } .sizes tbody th { white-space: nowrap; width: 1%; padding: 9px 24px 9px 0; } .sizes td { padding: 9px 16px 9px 0; white-space: nowrap; } .sizes tbody tr { border-top: 1px solid var(--line); } .sizes tbody tr:hover { background: rgba(255,255,255,.04); }
.sizes .b > span { display: inline-block; vertical-align: middle; } .sizes .b .t { width: calc(100% - 76px); min-width: 90px; height: 14px; margin-right: 10px; } .sizes .b i { display: block; height: 100%; min-width: 2px; border-radius: 0 4px 4px 0; } .sizes td.b { width: 34%; } .sizes .o { width: 1%; color: var(--mute); }
.plain tr { border-top: 1px solid var(--line); } .plain th { padding: 10px 12px 10px 0; color: rgba(241,241,236,.82); } .plain td { padding: 10px 0; text-align: right; font-weight: 600; white-space: nowrap; }
.mx-all tbody th { font-weight: 600; min-width: 236px; } .mx-all th img { display: inline-block; width: 30px; height: 30px; object-fit: contain; vertical-align: middle; margin-right: 12px; } .mx-all td { width: 12%; }
.mx-note { color: var(--mute); font-size: 14px; max-width: 76ch; margin: 18px 0 0; }
.tip { position: fixed; z-index: 70; left: 0; top: 0; pointer-events: none; background: var(--bone); color: var(--ink); font-size: 13px; line-height: 1.45; padding: 9px 12px; border-radius: 10px; max-width: 240px; opacity: 0; transition: opacity .12s; box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.tip.on { opacity: 1; }


/* ---------- partners ---------- */
.partners .box { border-radius: 32px; padding: clamp(28px, 6vw, 88px); background: linear-gradient(90deg, rgba(16,0,46,.82), rgba(16,0,46,.5) 60%, rgba(16,0,46,.62)), url('img/mp-cave.jpg') 50% 62% / cover; box-shadow: inset 0 0 0 1px var(--line); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.partners h2 { font: 900 clamp(40px, 6vw, 88px)/.92 var(--display); letter-spacing: -0.04em; margin: 0; }
.partners p { margin: 0 0 22px; color: rgba(241,241,236,.82); max-width: 40ch; font-size: 18px; }
.mail { display: block; font: 700 clamp(18px, 2vw, 26px)/1.2 var(--display); user-select: all; word-break: break-all; margin-bottom: 16px; }
footer { border-top: 1px solid var(--line); color: var(--mute); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-block: 26px 36px; }
footer .logo { width: 72px; margin-left: -6px; }
footer .legal { display: flex; align-items: center; gap: 10px; }
footer .age { display: grid; place-items: center; width: 34px; height: 34px; border: 1.5px solid var(--lime); border-radius: 50%; color: var(--bone); font-weight: 700; font-size: 12px; }
footer .by { text-decoration: none; white-space: nowrap; color: var(--bone); }
footer .by img { display: inline; height: calc(1.22ex * 550 / 361); width: auto; margin: 0 0 calc(-1.22ex * 189 / 361 - .11ex) .42em; vertical-align: baseline; }

/* ---------- small screens ---------- */
@media (max-width: 1080px) {
  .store, .store.flip, .partners .box { grid-template-columns: 1fr; }
  .store.flip .scene { order: 0; }
  .mallets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-keys { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .m-row { grid-template-columns: 1fr; }
}
/* ---------- home: the cards ---------- */
.home { min-height: 700px; }
.home .wrap.bottom { align-self: center; padding-block: 110px 40px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.home::after { background: linear-gradient(0deg, var(--ink) 0%, rgba(10,10,12,.5) 14%, transparent 36%), linear-gradient(90deg, rgba(16,0,46,.78), rgba(16,0,46,.25) 60%, rgba(16,0,46,.1)); }
.home .coins { z-index: 0; }
.home .wrap.bottom { position: relative; z-index: 1; }
.home .cave img { filter: blur(5px); scale: 1.04; }
.home h1 { font-size: clamp(50px, 7.4vw, 122px); }
.spread { position: relative; height: min(62vh, 530px); min-height: 440px; perspective: 1400px; }
.spread > * { position: absolute; left: 50%; top: 50%; height: 100%; aspect-ratio: 5 / 7; margin: 0; }
.spread .deal { translate: -50% -50%; transition: transform .7s cubic-bezier(.2,1.2,.4,1); }
.spread .deal:nth-child(1) { transform: translateX(-40%) rotate(-13deg) scale(.86); }
.spread .deal:nth-child(2) { transform: translateX(38%) rotate(12deg) scale(.86); }
.spread .deal:nth-child(3) { transform: rotate(-2deg); }
.spread:hover .deal:nth-child(1) { transform: translateX(-46%) rotate(-16deg) scale(.86); }
.spread:hover .deal:nth-child(2) { transform: translateX(48%) rotate(15deg) scale(.86); }
.card { display: block; width: 100%; height: 100%; border-radius: clamp(18px, 1.9vw, 28px); color: var(--bone); text-decoration: none; }
.card .face { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: var(--cave); box-shadow: 0 0 0 2px rgba(255,255,255,.22), 0 40px 70px -20px rgba(4,0,20,.85); }
.card .face > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; }
.card .face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, rgba(16,0,46,.94) 84%); }
.card .char { position: absolute; z-index: 2; left: 50%; bottom: 20%; width: 88%; transform: translateX(-50%) translateZ(46px); filter: drop-shadow(0 18px 22px rgba(4,0,20,.6)); pointer-events: none; }
.card .meta { position: absolute; z-index: 3; left: 22px; right: 22px; bottom: 22px; transform: translateZ(34px); }
.card .meta b { display: block; font: 900 clamp(24px, 2.5vw, 36px)/1 var(--display); letter-spacing: -.035em; }
.card .meta span { display: block; margin-top: 8px; font-size: 14px; color: rgba(241,241,236,.8); }
/* the back of every Lala card */
.back { border-radius: 5.6% / 4%; overflow: hidden; box-shadow: 0 0 0 2px rgba(255,255,255,.16), 0 30px 60px -20px rgba(4,0,20,.8); }
.back img { width: 100%; height: 100%; display: block; }

/* ---------- home: the shelf ---------- */
.shelf { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: clamp(14px, 1.8vw, 26px); }
.feature { position: relative; min-height: 520px; border-radius: 28px; overflow: hidden; isolation: isolate; text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: clamp(22px, 3vw, 44px); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14); background: var(--cave); }
.feature > .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; z-index: -3; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.feature > .who { position: absolute; z-index: -2; right: 2%; top: 7%; height: 112%; width: auto; max-width: none; filter: drop-shadow(-8px 12px 20px rgba(8,4,24,.5)); transition: transform .6s cubic-bezier(.2,1.4,.4,1); transform-origin: 60% 100%; }
.feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16,0,46,.82), transparent 60%), linear-gradient(0deg, rgba(16,0,46,.7), transparent 45%); }
.feature:hover > .bg { transform: scale(1.04); } .feature:hover > .who { transform: scale(1.03) rotate(-1.5deg); }
.feature h3 { font: 900 clamp(34px, 4.6vw, 68px)/.92 var(--display); letter-spacing: -.04em; margin: 0; }
.feature p { margin: 14px 0 22px; max-width: 34ch; color: rgba(241,241,236,.88); }
.next { border-radius: 28px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; background: var(--deep); box-shadow: inset 0 0 0 1.5px var(--line); }
.next .back { width: min(62%, 210px); aspect-ratio: 5 / 7; margin: 12px auto 0; rotate: 5deg; }
.next h3 { font: 900 24px/1.05 var(--display); letter-spacing: -.03em; margin: 0 0 8px; } .next p { margin: 0; color: var(--mute); font-size: 15px; }

/* ---------- home: the race ---------- */
.teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.teaser h2 { font: 900 clamp(36px, 5vw, 72px)/.95 var(--display); letter-spacing: -.035em; margin: 0 0 18px; }
.teaser p { color: rgba(241,241,236,.82); max-width: 44ch; margin: 0 0 26px; font-size: 17px; }
.medals { display: flex; justify-content: center; align-items: flex-end; gap: clamp(8px, 1.6vw, 22px); }
.medals .medal:nth-child(2) { margin-bottom: 44px; }
.medal { position: relative; display: grid; place-items: center; container-type: inline-size; width: var(--s); flex: none; filter: drop-shadow(0 18px 22px rgba(0,0,0,.5)); }
.medal > * { grid-area: 1 / 1; } .medal b { font: 900 46cqw/1 var(--display); color: var(--c); }
.medal img { width: 100%; }

/* ---------- mole patrol: the bonus scenes, in the game's own art ---------- */
.scene { position: relative; aspect-ratio: 16 / 10; border-radius: clamp(16px, 1.8vw, 28px); overflow: hidden; isolation: isolate; box-shadow: 0 0 0 1.5px var(--line); background: var(--deep); }
.scene > img { position: absolute; max-width: none; filter: drop-shadow(0 12px 14px rgba(6,0,20,.5)); }
.scene > .bg { inset: 0; width: 100%; height: 100%; object-fit: cover; filter: none; z-index: -1; }
.hole { position: absolute; width: var(--w); aspect-ratio: 256 / 193; container-type: inline-size; }
.hole > img { position: absolute; left: 0; width: 100%; } .hole .up { left: 18%; width: 64%; bottom: 34%; }
.hole b { position: absolute; left: 0; right: 0; bottom: -2%; text-align: center; font: 900 22cqw/1 var(--display); color: #fff; -webkit-text-stroke: 5cqw #16003A; paint-order: stroke fill; }
.hole.hot b { color: var(--lime); }

/* ---------- leaderboard ---------- */
.race-top { position: relative; isolation: isolate; overflow: hidden; background: var(--cave); padding: 140px 0 72px; }
.race-top > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; z-index: -2; filter: blur(3px); scale: 1.03; }
.race-top::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--ink), rgba(16,0,46,.5) 45%, rgba(16,0,46,.35)); }
.race-top .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 430px); gap: 48px; align-items: center; }
.race-top h1 { font: 900 clamp(44px, 6.6vw, 104px)/.92 var(--display); letter-spacing: -.045em; margin: 0 0 18px -.04em; }
.race-top .lead { max-width: 46ch; font-size: 18px; color: rgba(241,241,236,.9); margin: 0; }
.clock { display: flex; gap: 8px; margin: 30px 0 0; padding: 0; list-style: none; }
.clock li { min-width: 78px; padding: 12px 10px; border-radius: 16px; background: rgba(10,2,26,.62); text-align: center; font-size: 12px; color: rgba(241,241,236,.75); }
.clock b { display: block; font: 900 28px/1.1 var(--display); color: var(--bone); font-variant-numeric: tabular-nums; }
.notice { display: inline-flex; gap: 10px; align-items: center; margin: 28px 0 0; padding: 12px 18px; border-radius: 16px; background: rgba(10,2,26,.62); font-weight: 600; }
.connect { border-radius: 28px; padding: 28px; background: rgba(14,6,30,.86); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.16), 0 40px 80px -30px #000; }
.connect h2 { font: 900 24px/1.1 var(--display); letter-spacing: -.03em; margin: 0 0 8px; }
.connect p { margin: 0 0 18px; font-size: 15px; color: rgba(241,241,236,.8); }
.connect label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 8px; }
.connect input[type=text] { width: 100%; font: 600 17px/1 var(--text); color: var(--bone); background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.22); border-radius: 14px; padding: 15px 16px; }
.connect input[type=text]:focus { outline: 3px solid var(--lime); outline-offset: 1px; }
.connect .btn { width: 100%; justify-content: center; margin-top: 14px; }
.btn.lime { background: var(--lime); color: var(--ink); } .btn[disabled] { opacity: .5; cursor: default; transform: none; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.08); margin: 0 0 18px; border: 0; }
.seg label { position: relative; margin: 0; text-align: center; padding: 11px 8px; border-radius: 11px; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; } .seg label:has(:checked) { background: var(--bone); color: var(--ink); } .seg label:has(:focus-visible) { outline: 3px solid var(--lime); }
.connect .fine { margin: 16px 0 0; font-size: 13px; color: rgba(241,241,236,.66); }
.connect .err { color: #FF8AC4; font-size: 14px; margin: 10px 0 0; min-height: 0; } .connect .err:empty { display: none; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; font-size: 15px; color: rgba(241,241,236,.86); align-items: start; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--violet); color: #fff; font: 900 14px/1 var(--display); }
.steps b { color: var(--bone); }
.target { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 16px; background: var(--ink); box-shadow: inset 0 0 0 1.5px var(--lime); margin: 2px 0 18px; }
.target b { font: 900 26px/1 var(--display); font-variant-numeric: tabular-nums; } .target button { border: 0; background: rgba(255,255,255,.12); border-radius: 10px; padding: 10px 12px; font-weight: 600; font-size: 13px; cursor: pointer; }
.mine { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 6px; } .mine div { background: var(--ink); border-radius: 16px; padding: 14px 16px; } .mine dt { font-size: 13px; color: var(--mute); } .mine dd { margin: 4px 0 0; font: 900 24px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.linkish { border: 0; background: none; padding: 10px 0 0; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; color: rgba(241,241,236,.75); cursor: pointer; }

.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 24px); align-items: end; max-width: 1040px; margin: 0 auto clamp(28px, 4vw, 48px); padding: 0; list-style: none; }
.place { border-radius: 26px; text-align: center; padding: 76px 16px 24px; background: linear-gradient(180deg, var(--a), var(--b)); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.18); margin-top: 60px; min-width: 0; }
.place.p1 { --a: #8A5C00; --b: #241500; padding-bottom: 58px; order: 2; } .place.p2 { --a: #55627A; --b: #141824; order: 1; } .place.p3 { --a: #7E3418; --b: #220C04; order: 3; }
.place .medal { position: absolute; left: 50%; top: -58px; transform: translateX(-50%) translateZ(40px); --s: 122px; } .place.p1 .medal { --s: 150px; top: -78px; }
.place .who { display: block; font: 900 clamp(15px, 1.7vw, 24px)/1.15 var(--display); letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transform: translateZ(24px); }
.place .sum { display: block; margin-top: 8px; font: 700 clamp(16px, 2vw, 28px)/1.1 var(--display); color: var(--lime); font-variant-numeric: tabular-nums; transform: translateZ(24px); } .place small { display: block; margin-top: 6px; color: rgba(241,241,236,.72); font-size: 13px; }
.place.open .who { color: rgba(241,241,236,.6); }
.board-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; } .board-head .seg { margin: 0; min-width: 340px; } .board-head .seg label { font-size: 14px; font-weight: 600; padding: 10px 14px; white-space: nowrap; }
.totals { display: flex; gap: 28px; margin: 0; } .totals dt { font-size: 13px; color: var(--mute); } .totals dd { margin: 2px 0 0; font: 900 24px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.board { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-variant-numeric: tabular-nums; }
.board th { text-align: left; font-weight: 500; font-size: 13px; color: var(--mute); padding: 6px 18px; } .board td { background: var(--deep); padding: 16px 18px; } .board td:first-child { border-radius: 16px 0 0 16px; font: 900 15px/1 var(--display); color: var(--mute); width: 76px; } .board td:last-child { border-radius: 0 16px 16px 0; }
.board .num { text-align: right; } .board td.num:last-child { font: 700 16px/1 var(--display); } .board .name { font-weight: 600; } .board .site { margin-left: 8px; font-size: 12px; color: var(--mute); }
.board .you td { background: var(--lime); color: var(--ink); } .board .you td:first-child, .board .you .site { color: var(--ink); }
.empty { padding: 56px 24px; border-radius: 26px; background: var(--deep); text-align: center; box-shadow: inset 0 0 0 1.5px var(--line); } .empty h3 { font: 900 clamp(22px, 2.6vw, 34px)/1.1 var(--display); letter-spacing: -.03em; margin: 0 0 10px; } .empty p { margin: 0 auto; max-width: 50ch; color: var(--mute); }
.rules { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; } .rules h2 { font: 900 clamp(32px, 4vw, 56px)/.98 var(--display); letter-spacing: -.035em; margin: 0; }
.rules .feats li { grid-template-columns: 190px 1fr; }
.care { margin: 34px 0 0; padding: 22px 24px; border-radius: 20px; background: var(--deep); display: flex; gap: 18px; align-items: center; font-size: 15px; color: rgba(241,241,236,.82); } .care .age { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border: 2px solid var(--lime); border-radius: 50%; font-weight: 700; font-size: 15px; color: var(--bone); } .care a { color: var(--bone); }
.preview + .bar { top: 38px; } .preview { position: relative; z-index: 50; min-height: 38px; background: var(--pink); color: var(--ink); text-align: center; font-weight: 600; font-size: 14px; padding: 9px 16px; }
[hidden] { display: none !important; }

/* too narrow for him beside his name: he stands above it */
@media (max-width: 1000px) {
  .front { --w: min(88vw, 560px); height: auto; min-height: calc(var(--w) * .95 + 540px); }
  .front .boss { height: auto; width: var(--w); right: 50%; top: 84px; transform: translateX(50%); }
  .front .lamp { width: 130vw; right: -15vw; top: 0; }
  .front .lantern { display: none; }
  .front::after { background: linear-gradient(0deg, var(--ink) 0, rgba(10,10,12,.96) 340px, rgba(10,10,12,.72) 440px, transparent 600px); }
  .front .coins .coin:nth-child(1) { left: 6% !important; top: 13% !important; } .front .coins .coin:nth-child(2) { left: 87% !important; top: 41% !important; } .front .coins .coin:nth-child(3) { display: none; }
}
@media (max-width: 760px) {
  .bar .wrap { gap: 10px; } .bar .logo { width: 92px; }
  .bar nav a { padding: 9px 11px; font-size: 13px; } .bar nav .wide { display: none; }
  .mallet { min-height: 236px; padding: 16px; }
  .feats li { grid-template-columns: 1fr; gap: 4px; }
  .m-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .home { min-height: 0; } .home .wrap.bottom { grid-template-columns: 1fr; padding-block: 112px 56px; } .spread { height: 420px; min-height: 0; }
  .home::after { background: linear-gradient(0deg, var(--ink), transparent 30%), rgba(16,0,46,.5); }
  .home .coins .coin { display: none !important; }
  .shelf, .teaser, .race-top .wrap, .rules { grid-template-columns: 1fr; } .next { flex-direction: row; align-items: center; } .next .back { width: 120px; margin: 0 8px; order: -1; flex: none; } .next > div:last-child { flex: 1; }
}
@media (max-width: 620px) {
  .card .char { width: 80%; bottom: 29%; } .card .meta { left: 16px; right: 16px; bottom: 16px; }
  .spread { height: 350px; } .spread .deal:nth-child(1) { transform: translateX(-22%) rotate(-11deg) scale(.84); } .spread .deal:nth-child(2) { transform: translateX(22%) rotate(10deg) scale(.84); }
  .feature { min-height: 600px; } .feature > .who { height: auto; width: 92%; right: 4%; top: 4%; } .feature::before { background: linear-gradient(0deg, rgba(16,0,46,.97) 24%, rgba(16,0,46,.5) 52%, transparent 68%); }
  .medal { --s: 88px !important; } .race-top { padding-top: 112px; } .clock li { min-width: 0; flex: 1; } .clock b { font-size: 22px; } .connect { padding: 22px; }
  .place { padding: 48px 8px 18px; border-radius: 18px; } .place.p1 { padding-bottom: 40px; } .place .medal { --s: 76px !important; top: -40px; } .place.p1 .medal { --s: 92px !important; top: -50px; } .place small { font-size: 12px; }
  .board-head .seg { min-width: 0; width: 100%; } .board .bets { display: none; } .board td { padding: 14px 12px; } .board td:first-child { width: 52px; } .board .site { display: block; margin: 2px 0 0; } .rules .feats li { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) { .mx-facts { grid-template-columns: 1fr; gap: 10px; } }
@media (max-width: 620px) {
  .views { gap: 6px; margin-bottom: 18px; } .views button { padding: 11px 13px; font-size: 14px; }
  .modes { gap: 18px; } .mode-group, .mode-group:first-child { flex: 1 1 100%; } .modes button { padding: 12px 4px; border-radius: 14px; } .modes button img { width: 42px; height: 42px; } .modes button b { font-size: 11.5px; } .modes button small { font-size: 12px; }
  .mode-group:first-child button { grid-template-columns: auto 1fr; justify-items: start; column-gap: 14px; padding: 10px 16px; text-align: left; } .mode-group:first-child button img { grid-row: span 2; margin: 0; }
  .mode-head { align-items: flex-start; gap: 14px; } .mode-head img { width: 56px; height: 56px; } .mode-head p { font-size: 16px; }
  .sizes { font-size: 14px; } .sizes .o { display: none; } .sizes td, .sizes thead th { padding-right: 8px; white-space: normal; vertical-align: bottom; } .sizes td { vertical-align: middle; } .sizes td.b { width: 30%; } .sizes tbody th { padding-right: 10px; white-space: normal; width: auto; }
  .sizes .b .t { display: block; width: 100%; min-width: 0; height: 10px; margin: 0 0 4px; } .sizes td.b { padding-right: 14px; }
  .mx-all th img, .mx-all .b .t { display: none; } .mx-all tbody th { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .front .lantern, .front .boss img, .coin { animation: none; }
  .coin { transform: rotate(var(--r)); }
  .holo, .holo.live { transition: none; transform: none; }
}
