/* BLOB · the single cell of Monad */
:root {
  --abyss: #050720;
  --deep: #0b0f3a;
  --sea: #141c63;
  --ink: #170a3d;
  --tako: #8b6dff;
  --tako-2: #b9a6ff;
  --tako-3: #5a3ee0;
  --pink: #ff7ac6;
  --sucker: #ffd34d;
  --glow: #5cf2d6;
  --sun: #ffd34d;
  --text: #eef0ff;
  --muted: #9aa3d9;
  --line: rgba(185, 166, 255, .16);
  --card: rgba(20, 28, 99, .45);
  --r: 22px;
  --display: "Fredoka", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; color: var(--text); font: 400 17px/1.6 var(--body); overflow-x: hidden;
  background: linear-gradient(180deg, #10186a 0%, #0b0f3a 22%, #070a2c 55%, var(--abyss) 100%);
  background-color: var(--abyss);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--pink); color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
b, strong { font-weight: 700; }

#net { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: .38; }
main, header, footer { position: relative; z-index: 1; }


/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none;
  font: 600 16px var(--display); padding: 12px 22px; border-radius: 999px; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:active { transform: translateY(2px); }
.btn-buy { background: var(--pink); color: var(--ink); box-shadow: 0 5px 0 #b8357f, 0 10px 30px rgba(255, 122, 198, .35); }
.btn-buy:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #b8357f, 0 16px 40px rgba(255, 122, 198, .45); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: var(--text); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-lg { font-size: 19px; padding: 15px 28px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; padding: 14px clamp(16px, 4vw, 48px);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(8, 11, 46, .55); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 24px var(--display); }
.logo img { width: 42px; height: 42px; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; transition: color .15s; }
.top nav a:hover { color: var(--text); }
@media (max-width: 860px) { .top nav { display: none; } .top .btn { margin-left: auto; } }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 32px; max-width: 1240px; margin: 0 auto;
  padding: clamp(40px, 7vw, 90px) clamp(16px, 4vw, 48px) 60px; min-height: calc(100vh - 72px); }
.chip { display: inline-flex; gap: 8px; align-items: center; padding: 7px 14px; border-radius: 999px; font: 600 14px var(--display);
  background: rgba(92, 242, 214, .1); color: var(--glow); box-shadow: inset 0 0 0 1px rgba(92, 242, 214, .3); }
.hero h1 { font-size: clamp(42px, 5.4vw, 76px); margin: 18px 0 20px; }
.hero h1 .l2 { color: var(--tako-2); }
.hero h1 .l3 { background: linear-gradient(90deg, var(--pink), var(--sun)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: #cfd4ff; max-width: 34em; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.ca { display: flex; align-items: center; gap: 10px; max-width: 560px; padding: 8px 8px 8px 16px; border-radius: 16px;
  background: rgba(5, 7, 32, .6); box-shadow: inset 0 0 0 1px var(--line); }
.ca > span { font: 700 13px var(--display); color: var(--glow); letter-spacing: .08em; }
.ca code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 14px ui-monospace, SFMono-Regular, Menlo, monospace; color: #dfe3ff; }
.copy { border: 0; cursor: pointer; padding: 8px 14px; border-radius: 10px; background: var(--tako); color: #fff; font: 600 14px var(--display); }
.copy:hover { background: var(--tako-3); }
.socials { display: flex; gap: 16px; margin-top: 16px; }
.socials a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.socials a:hover { color: var(--text); }

.hero-art { position: relative; aspect-ratio: 1; max-width: 560px; justify-self: center; width: 100%; }
.hero-art .halo { position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(139, 109, 255, .55), rgba(92, 242, 214, .12) 55%, transparent 70%); filter: blur(10px); }
.hero-art .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(185, 166, 255, .25); animation: spin 60s linear infinite; }
.hero-art .ring.r2 { inset: 9%; animation-duration: 40s; animation-direction: reverse; border-style: dotted; }
.hero-blob { position: absolute; inset: 4%; width: 92%; filter: drop-shadow(0 0 2px rgba(255, 255, 255, .25)) drop-shadow(0 30px 40px rgba(0, 0, 0, .45));
  animation: bob 5s ease-in-out infinite; }
.hero-art .bub { position: absolute; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .5), transparent 40%);
  animation: rise 6s ease-in infinite; }
.hero-art .tag { position: absolute; font: 600 14px var(--display); padding: 6px 12px; border-radius: 999px; background: rgba(5, 7, 32, .75);
  box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; animation: bob 6s ease-in-out infinite; }
.hero-art .tag b { color: var(--glow); font-weight: 600; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-16px) rotate(1.5deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-260px) scale(1.1); opacity: 0; } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; text-align: left; }
  .hero-art { max-width: 400px; order: -1; }
}

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(139, 109, 255, .08); padding: 14px 0; }
.marquee .track { display: flex; gap: 34px; width: max-content; animation: marq 40s linear infinite; font: 600 20px var(--display); white-space: nowrap; }
.marquee .track span { color: var(--pink); }
.marquee .track b { color: var(--text); font-weight: 600; }
.marquee .track i { color: var(--tako-2); font-style: normal; }
@keyframes marq { to { transform: translateX(-50%); } }

/* sections */
.section { max-width: 1180px; margin: 0 auto; padding: clamp(70px, 10vw, 130px) clamp(16px, 4vw, 48px) 0; }
.kicker { font: 600 14px var(--display); color: var(--glow); letter-spacing: .14em; text-transform: uppercase; }
.section h2 { font-size: clamp(36px, 5vw, 64px); margin: 10px 0 14px; }
.sub { color: var(--muted); font-size: 18px; max-width: 40em; margin: 0 0 40px; }

/* reveal: only once the script has marked <html>, so the page stays readable without JS */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .hero-blob, .hero-art .ring, .hero-art .tag, .hero-art .bub, .marquee .track { animation: none !important; }
}

/* lore */
.chapters { display: grid; gap: 22px; }
.chap { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; padding: 22px; border-radius: var(--r);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.chap:nth-child(even) { grid-template-columns: 1fr 220px; }
.chap:nth-child(even) .art { order: 2; }
.art { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; display: grid; place-items: center; }
.art img { width: 78%; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .4)); position: relative; z-index: 1; }
.art .prop { position: absolute; font-size: 46px; z-index: 2; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .4)); }
.art.a1 { background: radial-gradient(circle at 50% 110%, #2a6fb0, #0d2a5c 60%, #081a3d); }
.art.a2 { background: radial-gradient(circle at 50% 50%, #3b2b8f, #160f4a 70%); }
.art.a3 { background: linear-gradient(180deg, #9fd6e8 0%, #5aa7c4 60%, #2c6c88); }
.art.a3::after { content: ""; position: absolute; inset: 10px; border: 6px solid rgba(255, 255, 255, .55); border-radius: 10px; }
.art.a4 { background: radial-gradient(circle at 30% 20%, #3a3f63, #121528 70%); }
.art.a5 { background: radial-gradient(circle at 50% 40%, #7c5cff, #2a1580 60%, #120838); }
.art.a6 { background: radial-gradient(circle at 50% 60%, #1a1a2e, #05050f); }
.art.a7 { background: radial-gradient(circle at 50% 100%, #2fe0b0, #0e5b6e 55%, #0b1f4a); }
.when { font: 600 13px var(--display); color: var(--glow); letter-spacing: .1em; text-transform: uppercase; }
.chap h3 { font-size: clamp(26px, 3vw, 34px); margin: 6px 0 10px; }
.chap p { margin: 0; color: #d4d8ff; }
.chap.now { background: linear-gradient(135deg, rgba(139, 109, 255, .35), rgba(255, 122, 198, .18)); box-shadow: inset 0 0 0 2px rgba(255, 122, 198, .4); }
@media (max-width: 760px) {
  .chap, .chap:nth-child(even) { grid-template-columns: 1fr; }
  .chap:nth-child(even) .art { order: 0; }
  .art { max-width: 240px; }
}

/* parallel */
.lanes { border-radius: var(--r); padding: 26px; background: rgba(5, 7, 32, .6); box-shadow: inset 0 0 0 1px var(--line); }
.lane { margin-bottom: 22px; }
.lane-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font: 600 16px var(--display); }
.lane-h span { color: var(--muted); font-weight: 500; }
.lane-h em { font-style: normal; }
.lane-h b { color: var(--glow); font-variant-numeric: tabular-nums; font-weight: 600; }
.slots { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.slot { height: 46px; border-radius: 12px; background: rgba(255, 255, 255, .05); position: relative; overflow: hidden; display: grid; place-items: center;
  font: 600 13px var(--display); color: var(--muted); }
.slot i { position: absolute; inset: 0; width: 0; background: linear-gradient(90deg, var(--tako), var(--pink)); }
.slot span { position: relative; z-index: 1; }
.slot.done span { color: var(--ink); }
.lanes-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lanes-foot p { margin: 0; color: var(--muted); font-size: 15px; max-width: 46em; }
.pairs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 28px; }
.pair { padding: 22px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.pair .row { display: flex; gap: 14px; align-items: flex-start; }
.pair .ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: rgba(139, 109, 255, .18); }
.pair h3 { font-size: 21px; margin-bottom: 4px; }
.pair p { margin: 0; color: #cfd4ff; font-size: 16px; }
.pair .eq { display: block; margin: 12px 0 0 62px; font: 600 14px var(--display); color: var(--glow); }
@media (max-width: 760px) { .pairs { grid-template-columns: 1fr; } .slots { gap: 4px; } .slot { font-size: 11px; } }

/* cast */
.cast { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.who { padding: 24px 20px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); text-align: center; transition: transform .2s; }
.who:hover { transform: translateY(-6px) rotate(-.6deg); }
.who img { width: 120px; margin: 0 auto 8px; }
.who .ico { font-size: 70px; line-height: 120px; height: 120px; }
.who h3 { font-size: 24px; }
.tag-s { display: inline-block; margin: 8px 0 10px; padding: 3px 10px; border-radius: 999px; font: 600 12px var(--display); letter-spacing: .06em; text-transform: uppercase; }
.tag-s.good { background: rgba(92, 242, 214, .14); color: var(--glow); }
.tag-s.bad { background: rgba(255, 99, 99, .15); color: #ff8f8f; }
.who p { margin: 0; color: #cfd4ff; font-size: 15px; }
@media (max-width: 960px) { .cast { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cast { grid-template-columns: 1fr; } }

/* code (8 arms, 8 rules) */
.code { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; counter-reset: arm; }
.code li { counter-increment: arm; position: relative; padding: 18px 18px 18px 74px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: #cfd4ff; }
.code li::before { content: counter(arm); position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font: 700 20px var(--display); color: var(--ink); background: var(--sucker); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .12); }
.code li b { color: var(--text); display: block; font-family: var(--display); font-weight: 600; font-size: 19px; }
@media (max-width: 760px) { .code { grid-template-columns: 1fr; } }

/* facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fact { padding: 24px; border-radius: var(--r); background: linear-gradient(160deg, rgba(92, 242, 214, .08), rgba(139, 109, 255, .1)); box-shadow: inset 0 0 0 1px var(--line); }
.fact .big { display: block; font: 700 clamp(34px, 4vw, 46px) var(--display); color: var(--glow); margin-bottom: 6px; }
.fact p { margin: 0; color: #cfd4ff; font-size: 16px; }
.src { color: var(--muted); font-size: 13px; margin-top: 18px; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

/* memes */
.maker { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; align-items: start; }
.mk-canvas { border-radius: var(--r); overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .4), inset 0 0 0 1px var(--line); background: var(--deep); }
.mk-canvas canvas { width: 100%; height: auto; display: block; }
.mk-ctl { display: grid; gap: 16px; padding: 22px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.mk-ctl h3 { font-size: 22px; }
.mk-lbl { font: 600 13px var(--display); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; display: block; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.picks button { border: 0; cursor: pointer; border-radius: 12px; padding: 0; width: 46px; height: 46px; background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 2px transparent; display: grid; place-items: center; overflow: hidden; font-size: 24px; transition: box-shadow .15s; }
.picks button img { width: 40px; }
.picks button[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--pink); }
.mk-ctl input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 0; background: rgba(5, 7, 32, .7); color: var(--text);
  font: 500 16px var(--body); box-shadow: inset 0 0 0 1px var(--line); }
.mk-ctl input:focus { outline: 2px solid var(--tako); }
.mk-row { display: flex; gap: 10px; flex-wrap: wrap; }
.stickers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 26px; }
.stickers button { border: 0; cursor: pointer; padding: 12px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: transform .15s; }
.stickers button:hover { transform: translateY(-4px) rotate(2deg); }
.stickers span { display: block; color: var(--muted); font: 500 13px var(--display); margin-top: 6px; }
@media (max-width: 900px) { .maker { grid-template-columns: 1fr; } .stickers { grid-template-columns: repeat(3, 1fr); } }

/* game */
.arcade { display: grid; grid-template-columns: minmax(0, 520px) 320px; gap: 26px; align-items: start; justify-content: center; }
.game { position: relative; border-radius: var(--r); overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .45), inset 0 0 0 1px var(--line);
  aspect-ratio: 3 / 4; max-height: 78vh; background: #0a1550; touch-action: none; user-select: none; -webkit-user-select: none; margin: 0 auto; width: 100%; }
.game canvas { width: 100%; height: 100%; display: block; }
.g-hud { position: absolute; left: 14px; right: 14px; top: 12px; display: flex; justify-content: space-between; align-items: center; pointer-events: none;
  font: 600 18px var(--display); text-shadow: 0 2px 0 rgba(0, 0, 0, .4); }
.g-ink { width: 110px; height: 12px; border-radius: 8px; background: rgba(0, 0, 0, .35); overflow: hidden; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .2); }
.g-ink i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--tako-2), var(--glow)); transition: width .2s; }
.g-over { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5, 7, 32, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); padding: 18px; }
.g-over[hidden] { display: none; }
.g-card { text-align: center; max-width: 340px; }
.g-card img { width: 110px; margin: 0 auto 6px; }
.g-card h3 { font-size: 34px; margin-bottom: 8px; }
.g-card p { margin: 0 0 16px; color: #d4d8ff; }
.g-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.g-inkbtn { position: absolute; right: 14px; bottom: 14px; width: 74px; height: 74px; border-radius: 50%; border: 0; cursor: pointer;
  font: 700 15px var(--display); color: #fff; background: radial-gradient(circle at 35% 30%, #4a4a70, #111122); box-shadow: 0 6px 0 #000, inset 0 0 0 3px rgba(255, 255, 255, .2); }
.g-inkbtn:disabled { opacity: .4; }
.g-side { display: grid; gap: 16px; }
.g-box { padding: 20px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.g-box .lbl { font: 600 13px var(--display); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.g-box b.big { display: block; font: 700 40px var(--display); color: var(--glow); }
.g-box ul { margin: 8px 0 0; padding-left: 18px; color: #cfd4ff; font-size: 15px; }
.g-box ul li { margin: 4px 0; }
.kbd { display: inline-block; padding: 1px 7px; border-radius: 6px; background: rgba(255, 255, 255, .1); font: 600 13px var(--display); }
@media (max-width: 900px) { .arcade { grid-template-columns: minmax(0, 1fr); } .game { max-width: 480px; } }

/* catch / tokenomics */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; padding: 26px 22px 22px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.step > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--tako); font: 700 20px var(--display); margin-bottom: 12px; }
.step h3 { font-size: 22px; margin-bottom: 6px; }
.step p { margin: 0; color: #cfd4ff; font-size: 16px; }
.toknm { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 18px; }
.toknm div { padding: 22px; border-radius: var(--r); text-align: center; background: linear-gradient(160deg, rgba(139, 109, 255, .25), rgba(255, 122, 198, .1)); box-shadow: inset 0 0 0 1px var(--line); }
.toknm b { display: block; font: 700 38px var(--display); }
.toknm span { color: var(--muted); font-size: 15px; }
.howto { margin-top: 18px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .toknm { grid-template-columns: 1fr 1fr; } }

/* final + footer */
.final { text-align: center; padding: clamp(90px, 12vw, 150px) 16px 90px; position: relative; }
.final img { width: 190px; margin: 0 auto 16px; animation: bob 5s ease-in-out infinite; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); }
.final h2 { font-size: clamp(36px, 5.4vw, 70px); margin-bottom: 26px; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 24px clamp(16px, 4vw, 48px) 34px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 120px); z-index: 30; padding: 12px 20px; border-radius: 999px;
  background: var(--glow); color: var(--ink); font: 600 15px var(--display); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.toast.on { transform: translate(-50%, 0); }

/* blob extras */
.hero-art .oat { position: absolute; font-size: 44px; animation: bob 4s ease-in-out infinite; filter: drop-shadow(0 6px 8px rgba(0,0,0,.4)); }
.hero-blob { top: 8%; }
.art.a8 { background: radial-gradient(circle at 50% 100%, #ffd34d, #9a5cff 50%, #2a1580); }
.art.a7 { background: radial-gradient(circle at 50% 30%, #3a3f63, #121528 70%); }
.mazes { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; border-radius: var(--r); padding: 24px; background: rgba(5, 7, 32, .6); box-shadow: inset 0 0 0 1px var(--line); }
.mazes .lanes-foot { grid-column: 1 / -1; }
.mz canvas { width: 100%; height: auto; aspect-ratio: 1; border-radius: 16px; background: #070a2c; display: block; }
@media (max-width: 760px) { .mazes { grid-template-columns: 1fr; padding: 16px; } }
.pad { display: none; grid-template-columns: repeat(3, 64px); grid-template-rows: repeat(2, 64px); gap: 8px; justify-content: center; }
.pad button { border: 0; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font: 700 24px var(--display); cursor: pointer; }
.pad button[data-d="up"] { grid-column: 2; }
.pad button[data-d="left"] { grid-column: 1; grid-row: 2; }
.pad button[data-d="down"] { grid-column: 2; grid-row: 2; }
.pad button[data-d="right"] { grid-column: 3; grid-row: 2; }
@media (hover: none) { .pad { display: grid; } }
.game { aspect-ratio: 1; }
