/* juegalaura.cl — editorial "block party". One electric accent per theme on neutral paper/ink, the app's own typefaces per theme (Nunito / Saira Stencil + Chakra Petch / Bagel Fat One + Figtree + Lexend),
   numbered chapters, and eyes that follow you. Fonts are self-hosted: the site makes no third-party requests. */
@font-face { font-family: 'Nunito'; src: url('/assets/fonts/nunito-latin-wght-normal.woff2') format('woff2'); font-weight: 200 1000; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/assets/fonts/nunito-latin-wght-italic.woff2') format('woff2'); font-weight: 200 1000; font-style: italic; font-display: swap; }
@font-face { font-family: 'Lexend'; src: url('/assets/fonts/lexend-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Bagel Fat One'; src: url('/assets/fonts/bagel-fat-one-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/assets/fonts/figtree-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/assets/fonts/figtree-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Saira Stencil One'; src: url('/assets/fonts/saira-stencil-one-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Chakra Petch'; src: url('/assets/fonts/chakra-petch-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Chakra Petch'; src: url('/assets/fonts/chakra-petch-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

/* ── themes ── */
:root, html[data-theme='toddler'] {
  --paper: #f4f1ea; --paper2: #e9e5da; --panel: #ffffff; --ink: #111111; --soft: #5b5a63; --line: rgba(17, 17, 17, 0.14);
  --accent: #ffd21f; --on-accent: #111111; --a2: #ff5c8a; --a3: #5fb6ff; --a4: #4fd69a; --edge: rgba(17, 17, 17, 0.9); --shadowy: rgba(17, 17, 17, 0.35);
  --display: 'Nunito', ui-rounded, system-ui, sans-serif; --dw: 900; --dcase: none; --emph: 'Nunito', ui-rounded, system-ui, sans-serif; --emw: 300; --body: 'Nunito', ui-rounded, system-ui, sans-serif; --bw: 600; --num: 'Nunito', ui-rounded, sans-serif; --numw: 900; --r: 28px; --grain: 0.1;
}
html[data-theme='tactical'] {
  --paper: #0b1310; --paper2: #14221a; --panel: #1b2a21; --ink: #eaf2e3; --soft: #a9b8a5; --line: rgba(234, 242, 227, 0.18);
  --accent: #b7ff3c; --on-accent: #0b1310; --a2: #ffb020; --a3: #4fe0f0; --a4: #7bd16a; --edge: rgba(0, 0, 0, 0.7); --shadowy: rgba(0, 0, 0, 0.6);
  --display: 'Saira Stencil One', 'Chakra Petch', sans-serif; --dw: 400; --dcase: uppercase; --emph: 'Chakra Petch', sans-serif; --emw: 500; --body: 'Chakra Petch', 'Figtree', sans-serif; --bw: 500; --num: 'Chakra Petch', sans-serif; --numw: 700; --r: 8px; --grain: 0.16;
}
html[data-theme='idol'] {
  --paper: #120a2b; --paper2: #1e0f45; --panel: #261559; --ink: #f6efff; --soft: #bba8e8; --line: rgba(246, 239, 255, 0.18);
  --accent: #ff3fb4; --on-accent: #ffffff; --a2: #5cf0ff; --a3: #a06cff; --a4: #ffe66d; --edge: rgba(0, 0, 0, 0.6); --shadowy: rgba(0, 0, 0, 0.55);
  --display: 'Bagel Fat One', 'Nunito', sans-serif; --dw: 400; --dcase: none; --emph: 'Figtree', system-ui, sans-serif; --emw: 500; --body: 'Figtree', system-ui, sans-serif; --bw: 500; --num: 'Lexend', 'Figtree', sans-serif; --numw: 800; --r: 30px; --grain: 0.12;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: var(--bw) 18px/1.65 var(--body); -webkit-font-smoothing: antialiased; transition: background 0.5s, color 0.5s; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 14px; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 28px; }
.mono { letter-spacing: 0.16em; text-transform: uppercase; font-size: 13px; font-weight: 700; color: var(--soft); }

/* display type: bold words in the theme face, emphasis words in the same family, light italic */
h1, h2, h3 { font-family: var(--display); font-weight: var(--dw); text-transform: var(--dcase); line-height: 0.92; letter-spacing: -0.035em; margin: 0 0 18px; }
h1 { font-size: clamp(56px, 10.6vw, 168px); }
h2 { font-size: clamp(42px, 7vw, 116px); }
h3 { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.05; letter-spacing: -0.02em; }
html[data-theme='tactical'] h1, html[data-theme='tactical'] h2 { letter-spacing: 0; line-height: 1; }
em, .it { font-family: var(--emph); font-style: italic; font-weight: var(--emw); text-transform: none; letter-spacing: -0.02em; }
.sticker { display: inline-block; background: var(--accent); color: var(--on-accent); padding: 0 0.16em 0.06em; border-radius: 0.16em; transform: rotate(-2.2deg); font-style: normal; font-family: inherit; font-weight: inherit; }

/* ── nav ── */
.nav { position: sticky; top: 0; z-index: 70; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 14px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: var(--dw); text-transform: var(--dcase); font-size: 23px; letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.nav nav a.opt { text-decoration: none; padding: 8px 12px; border-radius: 99px; font-size: 16px; font-weight: 700; color: var(--soft); }
.nav nav a.opt:hover { background: var(--line); color: var(--ink); }
.themes { display: flex; gap: 4px; padding: 4px; border-radius: 99px; border: 1.5px solid var(--ink); margin: 0 8px; }
.themes button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; font-size: 18px; cursor: pointer; transition: transform 0.2s; }
.themes button:hover { transform: scale(1.14) rotate(-6deg); }
.themes button[aria-pressed='true'] { background: var(--accent); }
.lang { border: 1.5px solid var(--ink); background: transparent; color: var(--ink); border-radius: 99px; padding: 7px 13px; font: 700 14px var(--body); letter-spacing: 0.08em; cursor: pointer; }
.navplay { background: var(--ink); color: var(--paper); text-decoration: none; padding: 9px 16px; border-radius: 99px; font-weight: 700; font-size: 15px; margin-left: 4px; }
@media (max-width: 920px) { .nav nav a.opt { display: none; } }
@media (max-width: 520px) { .navplay { display: none; } }

/* ── buttons: black pills, with the app's thick underside ── */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 17px 30px; border-radius: 99px; text-decoration: none; font-weight: 700; font-size: 18px; border: 0; cursor: pointer; background: var(--ink); color: var(--paper); transition: transform 0.12s, box-shadow 0.12s; box-shadow: 0 7px 0 var(--shadowy); }
html[data-theme='tactical'] .btn { border-radius: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 0 var(--shadowy); }
.btn:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--shadowy); }
.btn.hot { background: var(--accent); color: var(--on-accent); box-shadow: 0 7px 0 var(--ink); }
.btn.hot:hover { box-shadow: 0 10px 0 var(--ink); } .btn.hot:active { box-shadow: 0 2px 0 var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 6px 0 var(--ink); }
.chap .btn, .app .btn { background: var(--on-accent); color: var(--accent); }
.pill { display: inline-block; border: 1.5px solid currentColor; border-radius: 99px; padding: 4px 14px; font-size: 13px; letter-spacing: 0.14em; font-weight: 700; margin-bottom: 22px; }
.kicker { display: inline-flex; gap: 8px; align-items: center; border: 1.5px solid var(--ink); border-radius: 99px; padding: 7px 16px; font-weight: 700; font-size: 15px; margin-bottom: 26px; background: var(--panel); }

/* eyes that follow you */
.eyes { display: inline-flex; gap: 5px; vertical-align: middle; position: relative; }
.eye { --cap: var(--a2); position: relative; width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 2.5px solid #111; overflow: hidden; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25); }
.eye::before { content: ''; position: absolute; left: -2px; right: -2px; top: -2px; height: 45%; background: var(--cap); border-bottom: 2.5px solid #111; z-index: 2; border-radius: 40px 40px 0 0 / 60px 60px 0 0; }
.eye i { position: absolute; left: 50%; top: 58%; width: 15px; height: 15px; margin: -7px 0 0 -7px; border-radius: 50%; background: #111; transform: translate(var(--px, 0), var(--py, 0)); transition: transform 0.08s linear; }
.eye i::after { content: ''; position: absolute; left: 3px; top: 2px; width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.eyes.big .eye { width: 52px; height: 52px; } .eyes.big .eye i { width: 21px; height: 21px; margin: -10px 0 0 -10px; }
.eyes.abs { position: absolute; z-index: 3; }
.eyes.c2 .eye { --cap: var(--a3); } .eyes.c3 .eye { --cap: var(--accent); } .eyes.c4 .eye { --cap: var(--a4); }

/* grain over colour */
.grain::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: var(--grain); mix-blend-mode: multiply; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* ── hero ── */
.hero { position: relative; overflow: hidden; border-bottom: 1.5px solid var(--ink); }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; align-items: stretch; max-width: none; padding: 0; }
.hero .left { padding: clamp(40px, 7vw, 96px) clamp(24px, 4vw, 70px) clamp(50px, 7vw, 90px) clamp(24px, 6vw, 110px); position: relative; }
.hero .right { position: relative; background: var(--accent); display: grid; place-items: center; padding: 50px 30px; min-height: 520px; }
.hero h1 { font-size: clamp(54px, 8.2vw, 128px); }
.lead { font-size: clamp(19px, 2vw, 24px); color: var(--soft); max-width: 36ch; margin-top: 22px; }
.cta { display: flex; flex-wrap: wrap; gap: 16px; margin: 30px 0 18px; }
.fine { font-size: 15px; color: var(--soft); max-width: 54ch; }
.tiles { display: flex; gap: 10px; margin: 26px 0 0; flex-wrap: wrap; }
.tile { --c: var(--accent); display: flex; flex-direction: column; align-items: center; min-width: 82px; padding: 10px 12px 12px; border-radius: calc(var(--r) * 0.7); background: var(--panel); border: 2px solid var(--ink); box-shadow: 0 5px 0 var(--ink); animation: lit 5s infinite; animation-delay: calc(var(--i) * 0.5s); }
.tile b { font-family: var(--display); font-weight: var(--dw); font-size: 46px; line-height: 1; color: var(--c); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-transform: none; }
.tile span { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
@keyframes lit { 0%, 12%, 100% { transform: none; } 4%, 8% { transform: translateY(-9px) scale(1.1); background: color-mix(in srgb, var(--c) 30%, var(--panel)); } }
.t1 { --c: #ff7aa8; } .t2 { --c: #5fb6ff; } .t3 { --c: #4fd69a; } .t4 { --c: #ffbf3c; } .t5 { --c: #a98bff; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } .hero .right { min-height: 0; } }

/* iPad frame, tilted like a toy on a table */
.ipad { position: relative; width: min(100%, 780px); background: #14121c; border-radius: 38px; padding: 15px; box-shadow: 0 0 0 3px #2b2838, 0 36px 50px -20px rgba(0, 0, 0, 0.55), 0 12px 0 rgba(0, 0, 0, 0.22); transform: rotate(var(--tilt, 2deg)); transition: transform 0.4s ease-out; }
.ipad:hover { transform: rotate(0deg) scale(1.015); }
.ipad .screen { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 1194 / 834; background: #000; }
.ipad .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.45s; }

/* floating bricks */
.brick { --c: var(--a2); --w: 120px; --h: 52px; --r0: 0deg; position: absolute; width: var(--w); height: var(--h); background: var(--c); border: 2.5px solid #111; border-radius: 10px; transform: rotate(var(--r0)) translate(calc(var(--mx, 0) * var(--k, 1) * 1px), calc(var(--my, 0) * var(--k, 1) * 1px)); box-shadow: 0 9px 0 #111; animation: float 7s ease-in-out infinite; animation-delay: var(--d, 0s); z-index: 2; }
.brick::before { content: ''; position: absolute; left: 10px; right: 10px; top: -15px; height: 13px; background: radial-gradient(circle at 11px 7px, var(--c) 0 6px, #111 6.5px 8.5px, transparent 9px) 0 0 / 30px 14px repeat-x; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -16px; } }
.b1 { --c: var(--a2); left: 46%; top: 8%; --r0: -10deg; } .b2 { --c: var(--a3); --w: 90px; right: 8%; bottom: 7%; --r0: 8deg; --d: 1.2s; --k: -1.4; }
.b3 { --c: #fff; --w: 140px; --h: 58px; left: 7%; bottom: 8%; --r0: 6deg; --d: 2s; --k: 1.6; }
@media (max-width: 960px) { .b1, .b3 { display: none; } }

/* marquee of game names */
.marquee { overflow: hidden; padding: 22px 0; background: var(--ink); color: var(--accent); border-bottom: 1.5px solid var(--ink); }
.marquee .track { display: flex; width: max-content; gap: 34px; animation: slide 70s linear infinite; font-family: var(--emph); font-style: italic; font-weight: var(--emw); font-size: clamp(30px, 4vw, 54px); white-space: nowrap; letter-spacing: -0.02em; }
.marquee .track span::after { content: '✦'; font-style: normal; margin-left: 34px; opacity: 0.6; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ── chapters: media | accent panel ── */
.chap { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: min(92vh, 860px); border-bottom: 1.5px solid var(--ink); overflow: hidden; }
.chap .media { position: relative; background: var(--paper2); display: grid; place-items: center; padding: 56px 36px; overflow: hidden; }
.chap .panel { position: relative; background: var(--accent); color: var(--on-accent); display: flex; flex-direction: column; justify-content: center; padding: clamp(36px, 6vw, 96px); }
.chap.flip .media { order: 2; }
.chap .panel p { font-size: clamp(18px, 1.7vw, 22px); max-width: 38ch; color: color-mix(in srgb, var(--on-accent) 86%, transparent); }
.chap .panel .btn { align-self: flex-start; margin-top: 14px; }
.chap h2 { font-size: clamp(44px, 6.2vw, 104px); }
.chap .eyes.abs { right: 28px; top: 26px; }
.pick { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 4px; }
.pick button { font: 700 16px var(--body); padding: 10px 16px; border-radius: 99px; border: 2px solid var(--on-accent); background: transparent; color: var(--on-accent); cursor: pointer; }
.pick button[aria-pressed='true'] { background: var(--on-accent); color: var(--accent); }
@media (max-width: 960px) { .chap { grid-template-columns: 1fr; min-height: 0; } .chap.flip .media { order: 0; } .chap .media { padding: 36px 18px; } }

/* worlds: three tall panels */
.worlds { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1.5px solid var(--ink); }
.world { position: relative; padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; gap: 16px; min-height: 560px; border-right: 1.5px solid var(--ink); }
.world:last-child { border-right: 0; }
.world.w1 { background: #ffd21f; color: #111; } .world.w2 { background: #0b1310; color: #eaf2e3; } .world.w3 { background: #261559; color: #f6efff; }
.world .shot { border-radius: 16px; overflow: hidden; border: 2.5px solid #111; box-shadow: 0 8px 0 rgba(0, 0, 0, 0.5); transform: rotate(-1.5deg); transition: transform 0.3s; }
.world:hover .shot { transform: rotate(0.5deg) scale(1.03); }
.world h3 { margin: 6px 0 0; font-size: clamp(34px, 4vw, 56px); }
.world.w1 h3 { font-family: 'Nunito', sans-serif; font-weight: 900; } .world.w2 h3 { font-family: 'Saira Stencil One', sans-serif; text-transform: uppercase; font-weight: 400; } .world.w3 h3 { font-family: 'Bagel Fat One', sans-serif; font-weight: 400; color: #ff3fb4; }
.world .tag { margin: 0; opacity: 0.85; }
.world button { align-self: flex-start; margin-top: auto; font: 700 16px var(--body); padding: 12px 20px; border-radius: 99px; border: 2px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
.world button:hover { transform: translateY(-2px); }
@media (max-width: 960px) { .worlds { grid-template-columns: 1fr; } .world { border-right: 0; border-bottom: 1.5px solid var(--ink); min-height: 0; } }

/* sections and numbers */
section.plain { padding: clamp(60px, 9vw, 130px) 0; border-bottom: 1.5px solid var(--ink); }
.head { max-width: 960px; margin-bottom: clamp(28px, 4vw, 56px); }
.head p { font-size: clamp(18px, 2vw, 22px); color: var(--soft); max-width: 58ch; }
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1.5px solid var(--ink); }
.num-card { padding: 26px 22px 30px 0; border-right: 1.5px solid var(--line); }
.num-card:not(:first-child) { padding-left: 22px; } .num-card:last-child { border-right: 0; }
.num-card b { display: block; font-family: var(--num); font-weight: var(--numw); font-size: clamp(76px, 11vw, 170px); line-height: 0.9; letter-spacing: -0.04em; }
.num-card:nth-child(even) b { font-family: var(--emph); font-weight: var(--emw); font-style: italic; }
.num-card span { color: var(--soft); font-weight: 700; display: block; margin-top: 8px; }
@media (max-width: 800px) { .nums { grid-template-columns: repeat(2, 1fr); } .num-card { border-bottom: 1.5px solid var(--line); } }

/* "your progress is yours" */
.mine { position: relative; background: var(--ink); color: var(--paper); padding: clamp(36px, 6vw, 90px) clamp(24px, 5vw, 80px); border-radius: var(--r); box-shadow: 0 12px 0 var(--accent); }
.mine h2 { color: var(--paper); }
.mine h2 em { color: var(--accent); }
.mine p { color: color-mix(in srgb, var(--paper) 82%, transparent); }
.mine a { color: var(--accent); }
.mine .three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 34px 0 20px; border-top: 1.5px solid color-mix(in srgb, var(--paper) 30%, transparent); }
.mine .three > div { padding: 24px 24px 8px 0; }
.mine .three > div:not(:first-child) { padding-left: 24px; border-left: 1.5px solid color-mix(in srgb, var(--paper) 30%, transparent); }
.mine .three .em { font-size: 40px; display: block; }
.mine .three h3 { color: var(--paper); margin: 8px 0; }
.mine .back { border: 1.5px dashed var(--accent); border-radius: 18px; padding: 16px 20px; margin-top: 12px; }
@media (max-width: 860px) { .mine .three { grid-template-columns: 1fr; } .mine .three > div:not(:first-child) { padding-left: 0; border-left: 0; border-top: 1.5px solid color-mix(in srgb, var(--paper) 30%, transparent); } }

/* quote + app */
.quote { text-align: center; max-width: 1100px; margin: 0 auto; }
.app { position: relative; background: var(--accent); color: var(--on-accent); border-bottom: 1.5px solid var(--ink); overflow: hidden; }
.app .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 46px; align-items: center; padding-top: clamp(50px, 7vw, 100px); padding-bottom: clamp(60px, 8vw, 110px); }
.app .mono { color: color-mix(in srgb, var(--on-accent) 70%, transparent); }
.app .fine { color: color-mix(in srgb, var(--on-accent) 75%, transparent); }
.list { list-style: none; padding: 0; margin: 18px 0 0; }
.list li { padding: 9px 0 9px 42px; position: relative; }
.list li::before { content: '✓'; position: absolute; left: 0; top: 9px; width: 28px; height: 28px; border-radius: 50%; background: var(--on-accent); color: var(--accent); font-weight: 700; display: grid; place-items: center; font-size: 16px; }
@media (max-width: 960px) { .app .wrap { grid-template-columns: 1fr; } }
details { border-top: 1.5px solid var(--ink); padding: 22px 4px; }
details:last-of-type { border-bottom: 1.5px solid var(--ink); }
summary { cursor: pointer; font-family: var(--display); font-weight: var(--dw); text-transform: var(--dcase); font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.01em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: '+'; font-weight: 300; font-size: 1.3em; line-height: 0.8; } details[open] summary::after { content: '–'; }
details p { margin: 12px 0 0; color: var(--soft); max-width: 70ch; }
.faq { max-width: 960px; margin: 0 auto; }

/* chapter dots (desktop) */
.dots { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 65; display: flex; flex-direction: column; gap: 12px; }
.dots a { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper); display: block; transition: transform 0.2s, background 0.2s; }
.dots a.on { background: var(--ink); transform: scale(1.35); }
.dots a:hover { background: var(--accent); }
@media (max-width: 1100px) { .dots { display: none; } }

/* footer with the giant wordmark */
footer { background: var(--paper2); padding: 54px 0 0; overflow: hidden; }
footer .row { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; color: var(--soft); font-size: 16px; }
footer a { color: var(--ink); }
.wordmark { font-family: var(--display); font-weight: var(--dw); text-transform: var(--dcase); font-size: clamp(60px, 19.5vw, 320px); line-height: 0.78; letter-spacing: -0.05em; margin: 34px 0 -0.1em; color: var(--ink); white-space: nowrap; text-align: center; user-select: none; }

/* story page */
.pagehead { padding: clamp(50px, 8vw, 120px) 0 14px; text-align: center; position: relative; }
.story { max-width: 820px; margin: 0 auto; font-size: clamp(19px, 2vw, 22px); padding: 0 24px; }
.chapter { position: relative; padding-top: 74px; isolation: isolate; }
.chapter .time { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--soft); margin-bottom: 6px; }
.chapter::before { content: attr(data-n); position: absolute; top: 4px; right: -4px; font-family: var(--display); font-weight: var(--dw); font-size: clamp(110px, 21vw, 240px); line-height: 0.8; color: transparent; -webkit-text-stroke: 2px var(--line); z-index: -1; }
.chapter h2 { font-size: clamp(36px, 5.4vw, 70px); }
.pull { font-family: var(--emph); font-style: italic; font-weight: var(--emw); font-size: clamp(32px, 5.4vw, 66px); line-height: 1; color: var(--ink); margin: 60px 0 0; letter-spacing: -0.03em; border-left: 8px solid var(--accent); padding-left: 22px; }
.shotframe { margin: 34px -60px; border-radius: 18px; overflow: hidden; border: 2.5px solid var(--ink); box-shadow: 0 10px 0 var(--shadowy); background: var(--panel); }
.shotframe figcaption { padding: 12px 18px; font-size: 15px; color: var(--soft); border-top: 1.5px solid var(--line); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 34px -60px; }
.pair .shotframe { margin: 0; }
@media (max-width: 900px) { .shotframe { margin: 28px 0; } .pair { margin: 28px 0; grid-template-columns: 1fr; } }
.legal { max-width: 820px; margin: 0 auto; padding: 20px 24px 90px; }
.legal section.lang { padding: 30px 0; border-top: 1.5px solid var(--ink); }
.legal h1 { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -0.03em; }
.legal h2 { font-family: var(--body); font-weight: 700; font-size: 24px; text-transform: none; letter-spacing: 0; margin-top: 28px; line-height: 1.2; }
.legal .upd { color: var(--soft); font-size: 15px; } .legal .app { display: none; }
.langnav { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.langnav a { border: 1.5px solid var(--ink); border-radius: 99px; padding: 6px 14px; text-decoration: none; font-weight: 700; }

@media (prefers-reduced-motion: reduce) { .brick, .tile, .marquee .track { animation: none; } html { scroll-behavior: auto; } .ipad, .eye i { transition: none; } }

/* /play/: the game inside the site chrome */
.playbar { background: var(--accent); color: var(--on-accent); border-bottom: 1.5px solid var(--ink); font-size: 15px; }
.playbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 46px; flex-wrap: wrap; }
.playbar .acts { display: flex; gap: 10px; align-items: center; }
.playbar a { font-weight: 700; }
.playbar button { font: 700 14px var(--body); border: 1.5px solid currentColor; background: transparent; color: inherit; border-radius: 99px; padding: 5px 14px; cursor: pointer; }
.playframe { height: calc(100svh - 66px - 46px); min-height: 560px; background: #000; border-bottom: 1.5px solid var(--ink); }
.playframe iframe { width: 100%; height: 100%; border: 0; display: block; }

/* bio + social links */
.bio { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.bio-text { font-size: clamp(18px, 1.8vw, 22px); }
.soc { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 6px; font-weight: 700; }
.soc a { text-decoration: none; border-bottom: 2px solid currentColor; }
.soc a:hover { color: var(--a2); }
.soc.big { gap: 12px; } .soc.big a { border: 2px solid var(--ink); border-radius: 99px; padding: 10px 18px; box-shadow: 0 5px 0 var(--ink); }
.soc.big a:hover { transform: translateY(-2px); background: var(--accent); color: var(--on-accent); }
footer .soc { margin: 24px 0 0; font-size: 18px; }
@media (max-width: 860px) { .bio { grid-template-columns: 1fr; } }

/* GSAP: ScrollSmoother wraps the page on desktop; the nav stays pinned above it */
html.smooth { scroll-behavior: auto; }
html.smooth .nav { position: fixed; left: 0; right: 0; top: 0; }
html.smooth #smooth-content { padding-top: 66px; }
#smooth-wrapper { overflow: hidden; }
.hero h1 .char, .chap h2 .word { will-change: transform; }

/* the app's own 3D props (three.js, bundled from web/src/fx) drift behind the iPad and the app section */
.bd3d { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero .right > :not(.bd3d):not(.brick) { position: relative; z-index: 3; }
.hero .right > .eyes.abs { position: absolute; }
.app > .wrap { position: relative; z-index: 1; }
.has3d > .brick { display: none; }
html.gsap .ipad { transition: none; }   /* GSAP owns the iPad's transform (intro, scroll drift, hover) */
html.gsap .brand:hover img { transition: none; }
@media (max-width: 520px) { .brand span { display: none; } }
