/* Mallet Knights page (Fable pass 16.11.2026). Loaded after site.css. Animations use transform / opacity only. */
:root { --night: #0b1530; --night-2: #13224a; --aurora-a: #4fe3c1; --aurora-b: #7c6cff; --gold: #ffc94a; --ps-x: #6f9bff; --ps-o: #ff6b6b; --ps-sq: #ff8ad8; --ps-tri: #3fd6a0; }
.mk { overflow-x: clip; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--yarn); color: var(--yarn-ink); padding: 8px 14px; border-radius: 999px; font-weight: 800; }
.skip:focus { left: 8px; }
.mk .site-header { z-index: 30; }
.mk h2 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); letter-spacing: -0.01em; }
.center { justify-content: center; }

/* ---------- night sky (hero, outro): always night, in both themes */
.sky { position: relative; isolation: isolate; color: #eef4ff; background: radial-gradient(120% 90% at 70% 0%, #213a7a 0%, var(--night-2) 38%, var(--night) 70%); overflow: hidden; }
.sky .muted, .sky .lead { color: #c3d2ef; }
.stars, .stars::after { position: absolute; inset: 0; z-index: -2; pointer-events: none;
	background-image: radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 62%, #fff 50%, transparent 51%),
		radial-gradient(1.6px 1.6px at 44% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 61% 38%, #dfe9ff 50%, transparent 51%),
		radial-gradient(1.4px 1.4px at 77% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 88% 66%, #fff 50%, transparent 51%),
		radial-gradient(1.2px 1.2px at 6% 80%, #dfe9ff 50%, transparent 51%), radial-gradient(1px 1px at 52% 84%, #fff 50%, transparent 51%),
		radial-gradient(1.8px 1.8px at 93% 9%, #fff6d6 50%, transparent 51%), radial-gradient(1px 1px at 35% 33%, #fff 50%, transparent 51%);
	background-size: 420px 420px; }
.stars::after { content: ""; background-size: 260px 260px; opacity: 0.6; animation: twinkle 4.5s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: 0.25; } to { opacity: 0.8; } }
.aurora { position: absolute; z-index: -1; inset: -20% -10% auto -10%; height: 70%; pointer-events: none; filter: blur(40px); opacity: 0.55;
	background: radial-gradient(40% 50% at 30% 50%, var(--aurora-a), transparent 70%), radial-gradient(35% 45% at 70% 40%, var(--aurora-b), transparent 70%);
	animation: aurora 14s ease-in-out infinite alternate; will-change: transform; }
@keyframes aurora { from { transform: translate3d(-4%, 0, 0) scale(1); } to { transform: translate3d(5%, 4%, 0) scale(1.08); } }

/* ---------- hero */
.mk .hero { padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 9vw, 120px); min-height: min(92vh, 900px); display: grid; align-items: center; }
.hero-bg { position: absolute; inset: auto 0 -8% 0; z-index: -1; opacity: 0.32; mask-image: linear-gradient(to top, #000 30%, transparent 95%); -webkit-mask-image: linear-gradient(to top, #000 30%, transparent 95%); will-change: transform; }
.hero-pano { width: 100%; height: auto; }
.mk .hero-grid { grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 56px); }
.mk .kicker { color: var(--gold); }
.mk h1 { margin: 0 0 12px; line-height: 1; }
.h1-top { display: block; font-size: clamp(2.6rem, 8vw, 5rem); background: linear-gradient(180deg, #fff 30%, #b9d6ff); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 0 #0a1230) drop-shadow(0 10px 24px rgba(0,0,0,.35)); }
.h1-sub { display: block; font-size: clamp(1.1rem, 2.6vw, 1.6rem); color: var(--gold); margin-top: 6px; }
.mk .date-badge { background: var(--gold); color: #1d1405; box-shadow: 0 6px 18px rgba(255, 201, 74, .25); }
.btn-big { padding: 15px 26px; font-size: 1.08rem; box-shadow: 0 10px 30px rgba(255, 161, 74, .35); transition: transform .2s ease, box-shadow .2s ease; }
.btn-big:hover { transform: translateY(-2px); }
.btn-ico { width: 28px; height: 28px; border-radius: 50%; }
.sky .btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.chips { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 800; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.chip-ico { width: 24px; height: 24px; border-radius: 50%; }
.hero-art { position: relative; }
.hero-capsule { width: 100%; border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 4px rgba(255,255,255,.08); transform: rotate(-1.5deg); }
.hero-badge { position: absolute; right: -10px; bottom: -26px; width: clamp(72px, 10vw, 112px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 4px var(--gold); animation: bob 5s ease-in-out infinite; }
.badge-ico { width: 100%; height: 100%; object-fit: cover; }
@keyframes bob { 0%, 100% { transform: translate3d(0, 0, 0) rotate(-4deg); } 50% { transform: translate3d(0, -10px, 0) rotate(4deg); } }
.floaters { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.fl { position: absolute; width: clamp(40px, 6vw, 78px); will-change: transform; }
.fl img { width: 100%; height: auto; border-radius: 50%; animation: drift 9s ease-in-out infinite; filter: drop-shadow(0 8px 16px rgba(0,0,0,.4)); }
.f1 { left: 1.5%; top: 8%; } .f2 { left: 46%; top: 6%; } .f2 img { animation-delay: -3s; }
.f3 { right: 4%; top: 10%; } .f3 img { animation-delay: -5s; } .f4 { right: 12%; bottom: 6%; } .f4 img { animation-delay: -7s; }
@keyframes drift { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0); } 50% { transform: translate3d(6px, -16px, 0) rotate(8deg); } }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- reveals (JS adds .js on <html>; without JS everything is visible) */
.js .reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d, 0) * 80ms); }
.js .reveal[data-r="zoom"] { transform: scale(.94); }
.js .reveal[data-r="left"] { transform: translate3d(-40px, 0, 0); }
.js .reveal[data-r="right"] { transform: translate3d(40px, 0, 0); }
.js .reveal[data-r="tilt"] { transform: perspective(800px) rotateX(10deg) translate3d(0, 40px, 0); }
.js .reveal[data-r="pop"] { transform: scale(.4) rotate(-20deg); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- cast strip */
.band { background: linear-gradient(180deg, var(--night) 0, var(--bg) 140px); }
.cast-strip { list-style: none; margin: 0; padding: 8px 4px 20px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.cast { scroll-snap-align: start; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px 12px; box-shadow: var(--shadow); transition: transform .25s ease; }
.cast:hover { transform: translateY(-4px) rotate(-1deg); }
.cast-img { width: 112px; height: 112px; margin: 0 auto 10px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--surface-2), 0 8px 20px rgba(0,0,0,.18); }
.cast b { display: block; font-size: 1rem; line-height: 1.2; }
.cast small { color: var(--muted); font-size: .82rem; }
@media (min-width: 1000px) { .cast-strip { grid-auto-flow: row; grid-template-columns: repeat(8, 1fr); overflow: visible; } }

/* ---------- trailer */
.trailer { position: relative; border-radius: 22px; overflow: hidden; background: #050a18; aspect-ratio: 16 / 9; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.trailer-poster { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform 1.2s ease; }
.trailer:hover .trailer-poster { transform: scale(1.03); }
.trailer iframe, .trailer video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; border: 0; background: var(--yarn); cursor: pointer; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.play-tri { position: absolute; left: 38px; top: 30px; border-style: solid; border-width: 18px 0 18px 28px; border-color: transparent transparent transparent #fff; }
.play-ring { position: absolute; inset: -10px; border-radius: 50%; border: 3px solid rgba(255,255,255,.6); animation: ring 2s ease-out infinite; }
@keyframes ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.trailer-note { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 14px 18px; color: #fff; font-weight: 800; text-align: center; background: linear-gradient(transparent, rgba(0,0,0,.7)); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.trailer.soon .trailer-note { opacity: 1; transform: none; }

/* ---------- modes */
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mode { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); padding: 0 0 18px; transition: transform .3s ease, box-shadow .3s ease; }
.mode:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.mode-pic { position: relative; }
.mode-pic img:first-child { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s ease; }
.mode:hover .mode-pic img:first-child { transform: scale(1.05); }
.mode-ico { position: absolute; right: 14px; bottom: -28px; width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 0 4px var(--surface), 0 8px 18px rgba(0,0,0,.25); }
.mode h3 { padding: 18px 20px 0; margin-right: 70px; color: var(--ice); }
.mode p { padding: 0 20px; margin: 0; color: var(--muted); }

/* ---------- how to play */
.how { background: linear-gradient(180deg, var(--bg), var(--surface-2)); }
.sub { margin-top: 48px; font-size: 1.4rem; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 0; }
.tabs button { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 800; padding: 8px 16px 8px 8px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; transition: transform .15s; }
.tabs button[aria-selected="true"] { background: var(--ice); border-color: var(--ice); color: #fff; }
.tabs button:active { transform: scale(.97); }
.tab-ico { width: 28px; height: 28px; border-radius: 50%; }
.panels { margin-top: 16px; }
.panel { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); }
.panel[hidden] { display: none; }
.keylist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.keylist li { display: grid; grid-template-columns: minmax(150px, auto) 1fr; gap: 14px; align-items: center; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.keylist li:last-child { border-bottom: 0; }
.keys { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.vs { color: var(--muted); padding: 0 2px; }
.k { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 9px; font: 800 .82rem/1 "Nunito", system-ui, sans-serif; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); box-shadow: 0 3px 0 var(--line); }
.ps-x, .ps-o, .ps-sq, .ps-tri { border-radius: 50%; width: 32px; padding: 0; background: #1a2233; font-size: 1rem; box-shadow: 0 3px 0 #000; border-color: #000; }
.ps-x { color: var(--ps-x); } .ps-o { color: var(--ps-o); } .ps-sq { color: var(--ps-sq); } .ps-tri { color: var(--ps-tri); }
.panel-art { text-align: center; }
.pad-art { position: relative; height: 170px; margin-bottom: 12px; }
.pad-body { position: absolute; left: 50%; top: 40px; width: 220px; height: 110px; margin-left: -110px; border-radius: 50px 50px 70px 70px; background: linear-gradient(180deg, #f2f5fb, #c9d3e6); box-shadow: inset 0 -8px 0 rgba(0,0,0,.08), 0 14px 30px rgba(0,0,0,.25); animation: tilt 3.2s ease-in-out infinite; }
.pad-knight { position: absolute; left: 50%; top: 0; width: 72px; margin-left: -36px; animation: slide 3.2s ease-in-out infinite; }
.pad-knight img { width: 72px; height: 72px; border-radius: 50%; box-shadow: 0 6px 14px rgba(0,0,0,.3); }
@keyframes tilt { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); } }
@keyframes slide { 0%, 100% { transform: translate3d(-60px, 0, 0); } 50% { transform: translate3d(60px, 0, 0); } }
.kb-art { display: flex; gap: 10px; justify-content: center; margin: 30px 0 22px; }
.kb-art span { padding: 22px 18px; border-radius: 14px; font-weight: 800; letter-spacing: .1em; color: #fff; box-shadow: 0 6px 0 rgba(0,0,0,.25); }
.kb-l { background: #7c6cff; } .kb-r { background: #e8892b; }
.phone-art { position: relative; height: 170px; margin-bottom: 12px; }
.qr { position: absolute; left: 20px; top: 30px; width: 96px; height: 96px; border-radius: 8px; background: conic-gradient(#14202e 0 25%, #fff 0 50%, #14202e 0 75%, #fff 0) 0 0 / 24px 24px; box-shadow: 0 0 0 6px #fff, 0 10px 24px rgba(0,0,0,.25); }
.phone { position: absolute; right: 20px; top: 50px; width: 150px; height: 74px; border-radius: 16px; background: #14202e; box-shadow: 0 12px 26px rgba(0,0,0,.35); animation: tilt 3.2s ease-in-out infinite reverse; }
.phone i { position: absolute; inset: 7px 12px; border-radius: 9px; background: linear-gradient(135deg, var(--aurora-b), var(--aurora-a)); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.step { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--yarn); color: var(--yarn-ink); font-weight: 800; }
.goals { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.goal { display: grid; gap: 10px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); }
.goal-ico { width: 64px; height: 64px; border-radius: 50%; }
.goal b { display: block; margin-bottom: 4px; }
.goal p { margin: 0; color: var(--muted); font-size: .92rem; }
.setup { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; }
.setup-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); }
.setup-card h3 { display: flex; align-items: center; gap: 12px; }
.h-ico { width: 40px; height: 40px; border-radius: 50%; }
.split-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 18px; aspect-ratio: 16 / 9; max-width: 260px; border-radius: 12px; overflow: hidden; border: 4px solid #14202e; background: #14202e; }
.split-demo span { animation: pulse 3s ease-in-out infinite; }
.c1 { background: #7c6cff; } .c2 { background: #ffb347; animation-delay: -.75s !important; } .c3 { background: #4fd18b; animation-delay: -1.5s !important; } .c4 { background: #ff7aa8; animation-delay: -2.25s !important; }
@keyframes pulse { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
.skills { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.skill { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 10px; box-shadow: var(--shadow); transition: transform .25s; }
.skill:hover { transform: translateY(-4px) rotate(1deg); }
.skill-ico { width: 80px; height: 80px; margin: 0 auto 8px; border-radius: 50%; }
.skill b { display: block; font-size: .85rem; letter-spacing: .06em; }
.skill small { color: var(--muted); font-size: .82rem; line-height: 1.35; display: block; }

/* ---------- New Year */
.ny { position: relative; isolation: isolate; overflow: hidden; padding: clamp(80px, 12vw, 160px) 0; background: #0d1a3a; }
.ny-bg { position: absolute; inset: -12% 0; z-index: -2; will-change: transform; }
.ny-bg img { width: 100%; height: 100%; object-fit: cover; }
.ny::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,14,32,.75), rgba(8,14,32,.15)); }
.snow { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .8;
	background-image: radial-gradient(3px 3px at 10% 20%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 30% 60%, #fff 50%, transparent 51%), radial-gradient(3px 3px at 60% 30%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 80% 70%, #fff 50%, transparent 51%), radial-gradient(2.5px 2.5px at 45% 85%, #fff 50%, transparent 51%);
	background-size: 300px 300px; animation: snow 12s linear infinite; }
@keyframes snow { from { transform: translate3d(0, -300px, 0); } to { transform: translate3d(40px, 0, 0); } }
.ny-card { max-width: 480px; color: #fff; background: rgba(10, 18, 40, .6); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.18); border-radius: 24px; padding: 28px; }
.ny-ico { width: 84px; height: 84px; border-radius: 50%; margin-bottom: 10px; }

/* ---------- gallery */
.gfilters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.gf { font: inherit; font-weight: 800; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.gf.on { background: var(--yarn); border-color: var(--yarn); color: var(--yarn-ink); }
.gallery { --cols: 4; --gap: 12px; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols), 1fr); grid-auto-flow: dense; gap: var(--gap);
	/* fixed row height from the column width (16:9), so tall comics span exactly two rows and nothing shifts while images load */
	grid-auto-rows: calc((min(1100px, 100vw - 32px) - (var(--cols) - 1) * var(--gap)) / var(--cols) * 0.5625); }
.gi { position: relative; }
.gi.tall { grid-row: span 2; }
.gi.hide { display: none; }
.gi a { display: block; position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.gi.tall a { aspect-ratio: auto; height: 100%; min-height: 0; }
.gi img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform .5s ease; }
.gi span[data-l] { display: contents; }
.gi a:hover img, .gi a:focus-visible img { transform: scale(1.06); }
.gcap { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 12px 10px; color: #fff; font-weight: 800; font-size: .85rem; background: linear-gradient(transparent, rgba(0,0,0,.7)); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.gi a:hover .gcap, .gi a:focus-visible .gcap { opacity: 1; transform: none; }
@media (hover: none) { .gcap { opacity: 1; transform: none; font-size: .78rem; padding-top: 16px; } }
.lb { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; background: rgba(5, 8, 18, .94); touch-action: pan-y; }
.lb[hidden] { display: none; }
.lb-fig { margin: 0; display: grid; justify-items: center; gap: 10px; max-height: 100vh; padding: 56px 0 40px; }
.lb-img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.6); transition: opacity .2s, transform .25s; }
.lb-img.swap { opacity: 0; transform: scale(.97); }
.lb-img[hidden] { display: none; }
/* a guide clip in the big view (17.11) */
.lb-fig { position: relative; min-width: 0; width: 100%; }
.lb-vid { display: block; width: min(100%, calc((100vh - 170px) * 16 / 9)); max-height: calc(100vh - 170px); aspect-ratio: 16 / 9; border-radius: 12px; background: #050a18; box-shadow: 0 20px 60px rgba(0,0,0,.6); cursor: pointer; }
.lb.is-video .lb-cap { min-height: 2.6em; max-width: 60ch; font-size: 1.1rem; }
.lb .lb-play { position: absolute; left: 50%; top: calc(56px + (100% - 96px - 2.6em - 10px) / 2); width: 84px; height: 84px; margin: -42px 0 0 -42px; background: rgba(5, 10, 24, .62); border: 2px solid rgba(255,255,255,.85); }
.lb .lb-play::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -16px 0 0 -10px; border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent #fff; }
.lb.playing .lb-play { opacity: 0; pointer-events: none; }
.lb.playing .lb-play:focus-visible { opacity: 1; pointer-events: auto; }
.lb .lb-snd { position: absolute; top: 12px; right: 72px; font-size: 1.2rem; }
.lb .lb-snd.off { opacity: .55; text-decoration: line-through; }
.lb button[hidden] { display: none; }
.lb button:focus-visible { outline: 3px solid #ffd166; outline-offset: 2px; }
.vplay:focus-visible { outline: 3px solid #ffd166; outline-offset: -4px; }
@media (prefers-reduced-motion: reduce) { .lb-img, .lb .lb-play { transition: none; } }
.lb-cap { color: #fff; font-weight: 800; text-align: center; padding: 0 12px; }
.lb button { font: inherit; background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 1.8rem; line-height: 1; cursor: pointer; justify-self: center; }
.lb button:hover { background: rgba(255,255,255,.22); }
.lb-x { position: absolute; top: 12px; right: 12px; font-size: 1.2rem !important; }
.lb-count { position: absolute; top: 14px; left: 0; right: 0; margin: 0; text-align: center; color: #c3d2ef; font-size: .9rem; pointer-events: none; }

/* ---------- outro */
.outro { padding: clamp(64px, 10vw, 130px) 0; }
.outro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.iconwall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.iw-ico { width: 100%; height: auto; border-radius: 50%; transition: transform .3s; }
.iw:nth-child(odd) .iw-ico { animation: drift 8s ease-in-out infinite; }
.iw:hover .iw-ico { transform: scale(1.12) rotate(6deg); }
.outro-card { text-align: center; }
.outro-capsule { width: min(340px, 70vw); margin: 0 auto 18px; border-radius: 22px; box-shadow: 0 30px 70px rgba(0,0,0,.5); transform: rotate(2deg); }

/* ---------- sticky wishlist (phones) */
.sticky-wish { display: none; }
@media (max-width: 820px) {
	.sticky-wish { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; border-radius: 999px; background: var(--yarn); color: var(--yarn-ink); font-weight: 800; text-decoration: none; box-shadow: 0 12px 30px rgba(0,0,0,.35); transform: translate3d(0, 140%, 0); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
	.sticky-wish.on { transform: none; }
	.mk .site-footer { padding-bottom: 96px; }
}

/* ---------- responsive */
@media (max-width: 1000px) {
	.mode-grid { grid-template-columns: 1fr 1fr; }
	.goals { grid-template-columns: repeat(2, 1fr); }
	.skills { grid-template-columns: repeat(3, 1fr); }
	.gallery { --cols: 3; }
	.panel { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
	.mk .hero { min-height: 0; }
	.mk .hero-grid { grid-template-columns: 1fr; }
	.hero-art { order: -1; max-width: 560px; }
	.setup, .outro-grid { grid-template-columns: 1fr; }
	.iconwall { grid-template-columns: repeat(8, 1fr); order: 2; }
	.mk .nav { gap: 2px 14px; }
	.lb { grid-template-columns: 1fr; }
	.lb-prev, .lb-next { position: absolute; bottom: 14px; }
	.lb-prev { left: 20%; } .lb-next { right: 20%; }
	.scroll-cue { display: none; }
}
@media (max-width: 600px) {
	.mode-grid { grid-template-columns: 1fr; }
	.gallery { --cols: 2; --gap: 8px; }
	.skills { grid-template-columns: 1fr 1fr; }
	.goals { grid-template-columns: 1fr; }
	.goal { grid-template-columns: 56px 1fr; align-items: start; }
	.goal-ico { width: 56px; height: 56px; }
	.keylist li { grid-template-columns: 1fr; gap: 6px; }
	.iconwall { grid-template-columns: repeat(6, 1fr); }
	.fl { opacity: .7; }
}

/* ---------- motion off */
@media (prefers-reduced-motion: reduce) {
	.js .reveal { opacity: 1 !important; transform: none !important; }
	.aurora, .stars::after, .fl img, .hero-badge, .pad-body, .pad-knight, .phone, .split-demo span, .snow, .play-ring, .scroll-cue span, .iw .iw-ico { animation: none !important; }
	[data-par] { transform: none !important; }
}
.k-tilt { background: var(--gold); color: #1d1405; border-color: #b98a1c; box-shadow: 0 3px 0 #b98a1c; }

/* ---------- support page (Tools/site/build_support_page.py) */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.mk .sup-hero { min-height: 0; padding: clamp(40px, 6vw, 72px) 0; display: block; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.jump a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 8px; border-radius: 999px; font-weight: 800; text-decoration: none; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); transition: transform .2s, background .2s; }
.jump a:hover { transform: translateY(-2px); background: rgba(255,255,255,.18); }
.padlist { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.padrow { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); }
.padrow p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .95rem; }
.tag { font-size: .72rem; font-weight: 800; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.tilt-yes { background: var(--gold); color: #1d1405; } .tilt-no { background: var(--surface-2); color: var(--muted); } .tilt-chk { background: transparent; color: var(--gold); border: 1px dashed var(--gold); }
.note { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--ice) 12%, var(--surface)); border: 1px solid var(--line); }
.note .chip-ico { flex: none; margin-top: 2px; }
.psteps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pstep { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); }
.pstep .step { position: absolute; left: 14px; top: 14px; }
.pstep p { margin: 0; }
.pa { position: relative; height: 120px; margin-bottom: 12px; display: grid; place-items: center; font-weight: 800; font-size: 3rem; }
.pa .qr { position: static; } .pa .phone { position: relative; right: auto; top: auto; }
.pa .phone.up { width: 74px; height: 130px; animation: none; }
.pa-warn { color: var(--gold); } .pa-ok { color: var(--ps-tri); }
.pa-wifi i { position: absolute; left: 50%; border: 5px solid var(--ice); border-color: var(--ice) transparent transparent transparent; border-radius: 50%; margin-left: -13px; animation: pulse 2.4s ease-in-out infinite; }
.pa-wifi i:nth-child(1) { width: 26px; height: 26px; bottom: 22px; } .pa-wifi i:nth-child(2) { width: 58px; height: 58px; bottom: 6px; margin-left: -29px; animation-delay: -.4s; } .pa-wifi i:nth-child(3) { width: 92px; height: 92px; bottom: -11px; margin-left: -46px; animation-delay: -.8s; }
.faq-tools { display: grid; gap: 12px; margin-bottom: 16px; }
.search input { width: 100%; font: inherit; padding: 14px 18px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--text); }
.search input:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.faq { display: grid; gap: 10px; }
.qa { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); scroll-margin-top: 84px; }
.qa[hidden] { display: none; }
.qa summary { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 12px 16px; cursor: pointer; list-style: none; font-weight: 800; }
.qa summary::-webkit-details-marker { display: none; }
.qa-ico { width: 40px; height: 40px; border-radius: 50%; transition: transform .3s; }
.qa[open] .qa-ico { transform: rotate(12deg) scale(1.1); }
.anchor { color: var(--muted); text-decoration: none; padding: 4px 8px; opacity: .5; }
.anchor:hover, .anchor:focus-visible { opacity: 1; }
.qa .a { padding: 0 16px 14px 70px; color: var(--muted); }
.qa .a p { margin: 0; }
.qa:target { border-color: var(--yarn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--yarn) 35%, transparent); }
.report-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
.report-grid a { color: var(--gold); }
.report-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); border-radius: 22px; padding: 24px; }
@media (max-width: 1000px) { .psteps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) { .padlist, .report-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .psteps { grid-template-columns: 1fr; } .qa .a { padding-left: 16px; } }

/* ---------- video guides */
.vgrid { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.vcard b { display: block; margin-top: 8px; font-size: .95rem; }
.vbox { position: relative; border-radius: 16px; overflow: hidden; background: #050a18; aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
.vbox video, .vbox img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vcard.soon img { opacity: .45; filter: saturate(.6); }
.vsoon { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.vplay { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; cursor: pointer; }
.vbox::after { content: "⤢"; position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(5, 10, 24, .6); color: #fff; font-size: 1rem; line-height: 28px; text-align: center; pointer-events: none; opacity: .85; }
.vcard.soon .vbox::after { display: none; }
.vplay::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -12px 0 0 -8px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); transition: opacity .2s; }
.vbox.playing .vplay::after { opacity: 0; }
.vcap { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 18px 10px 8px; color: #fff; font-size: .82rem; font-weight: 800; line-height: 1.3; text-align: center; background: linear-gradient(transparent, rgba(0,0,0,.78)); pointer-events: none; min-height: 3.2em; }
.vcap:empty { display: none; }
video::cue { font: 800 0.9rem "Nunito", sans-serif; }
@media (max-width: 1000px) { .vgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .vgrid { grid-template-columns: 1fr; } }
.lb-open .sticky-wish { display: none; }
