@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 100 700; font-display: swap; src: url(fonts/plex-sans-latin.e2291e842c.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 100 700; font-display: swap; src: url(fonts/plex-sans-first.c1c1177b17.woff2) format('woff2'); unicode-range: U+20-7e, U+b7, U+2013-2014, U+2018-2019, U+201c-201d, U+2026, U+2190; }
@font-face { font-family: 'Metal Mania'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/metal-mania-latin.c04fd74ab7.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Metal Mania Title'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/metal-mania-title.cdc5bbe708.woff2) format('woff2'); }



:root { --ink:#08080A; --surface:#141319; --raised:#201D28; --paper:#FFF0CE; --muted:#B5ACBE; --line:#756B80;
--blue:#16A9FF; --violet:#B444F5; --red:#FF3B4F; --yellow:#FFD23F; --green:#48E477;
--glide: 900ms cubic-bezier(.45,.05,.2,1); }
* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; background: var(--ink); color: var(--paper); overflow: hidden;
font-family: 'IBM Plex Sans', Arial, sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

#stage { position: fixed; left: 0; top: 0; width: 1440px; height: 900px;
transform-origin: 0 0; background: var(--ink); }

html:not(.ready) #stage { opacity: 0; animation: reveal 1ms 4s forwards; }
@keyframes reveal { to { opacity: 1; } }
#world { position: absolute; inset: 0; transform-origin: 0 0; transition: transform var(--glide); }
.bg { position: absolute; left: -48px; top: -30px; width: 1536px; height: 960px; object-fit: cover; user-select: none;
--fx: 30px; --fy: 20px; }

.bg { -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fx), #000 calc(100% - var(--fx)), transparent),
linear-gradient(transparent, #000 var(--fy), #000 calc(100% - var(--fy)), transparent);
-webkit-mask-composite: source-in;
mask-image: linear-gradient(90deg, transparent, #000 var(--fx), #000 calc(100% - var(--fx)), transparent),
linear-gradient(transparent, #000 var(--fy), #000 calc(100% - var(--fy)), transparent);
mask-composite: intersect; }

.obj { position: absolute; transform-origin: 50% 50%; cursor: pointer; outline: none; }
.obj .inner { position: relative; transform-origin: 50% 100%; }
.obj .inner > img { display: block; width: 100%; height: auto; user-select: none; pointer-events: none;
filter: drop-shadow(8px 18px 12px rgba(0,0,0,.65)); }

.plate { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 8px); white-space: nowrap;
background: var(--surface); border: 1px solid var(--yellow); border-radius: 6px; padding: 3px 10px;
font-weight: 600; font-size: 16px; line-height: 1.4; color: var(--yellow);
opacity: 0; transition: opacity 160ms; pointer-events: none; }
#snake .plate { top: 30%; left: 92%; }

body:not(.portrait) #snake .plate { top: 100%; left: 50%; }
#head .plate { top: 96%; }
.obj:hover .plate, .obj:focus-visible .plate { opacity: 1; }
@media (hover: none) { .plate { opacity: 1; } }

.obj:focus-visible .inner { outline: 4px solid var(--yellow); outline-offset: 6px; border-radius: 8px; }
.obj:focus-visible .plate { background: var(--yellow); color: var(--ink); border: 3px solid var(--ink);
outline: 2px solid var(--yellow); }

@keyframes squash { 0% { transform: scale(1,1); } 30% { transform: scale(1.08,.93); }
55% { transform: scale(.97,1.06); } 78% { transform: scale(1.05,1.02); } 100% { transform: scale(1.04,1.04); } }
@keyframes breathe { 0%, 100% { transform: scale(1.04,1.04); } 50% { transform: scale(1.055,1.025); } }
.obj:hover .inner { animation: squash 520ms ease-out forwards, breathe 3.2s ease-in-out 520ms infinite; }
@keyframes hop { 0% { transform: translateY(0) scale(1,1); } 20% { transform: translateY(0) scale(1.04,.95); }
45% { transform: translateY(-14px) scale(.97,1.04); } 70% { transform: translateY(0) scale(1.03,.97); }
100% { transform: translateY(0) scale(1,1); } }
.obj.hop:not(:hover) .inner { animation: hop 650ms ease-out; }

#head .bolt { width: 100%; filter: none; }
#head .face { position: absolute; left: 26.8%; top: 19%; width: 46.4%; }
#head .prop { position: absolute; display: none; filter: drop-shadow(4px 8px 6px rgba(0,0,0,.6)); }

#pad { left: 2%; top: 60%; width: 30%; }
#gearBig { left: 6%; top: 2%; width: 22%; }
#gearSmall { left: 24%; top: 0%; width: 14%; }
#bulb { left: 10%; top: -3%; width: 22%; }
#head .bolt.crackle-a { filter: brightness(1.35) saturate(1.2); transform: rotate(7deg) scale(1.04); }
#head .bolt.crackle-b { filter: brightness(.8); transform: rotate(-5deg) scale(.98); }

#ui { position: absolute; inset: 0; pointer-events: none; transition: opacity 400ms; }
#ui .txt { position: absolute; pointer-events: auto; transform-origin: 0 0; }
#brand { width: max-content; }
#t-title { font-family: 'Metal Mania Title', 'Metal Mania', serif; font-weight: 400; font-size: 60px; line-height: 1; color: var(--paper);
text-shadow: 0 3px 0 var(--ink); }
#t-sub { margin-top: 6px; font-size: 20px; font-weight: 600; color: var(--yellow); }
#t-intro { width: 450px; font-size: 17px; line-height: 1.5; color: var(--paper);
text-shadow: 0 1px 3px var(--ink), 0 0 12px var(--ink); }
body.zoomed #ui { opacity: 0; }
body.zoomed .plate { opacity: 0 !important; }

body.zoomed .bg { filter: blur(2px); }

.sheet { --padx: 32px; --pt: 28px; --pb: 28px; --fk: 1; position: absolute; top: 0; height: 900px; padding: var(--pt) var(--padx) var(--pb); overscroll-behavior: contain;
display: flex; flex-direction: column; gap: 14px; background: var(--surface);
border: calc(44px * var(--fk)) solid transparent; border-radius: 0;
filter: drop-shadow(8px 14px 10px rgba(0,0,0,.6)); }

.later .sheet { border-image: url(art/frame.1585dcbc37.webp) 311 306 324 307 /
calc(77px * var(--fk)) calc(76px * var(--fk)) calc(80px * var(--fk)) calc(76px * var(--fk)) stretch; }
.avif.later .sheet { border-image-source: url(art/frame.2dab827b09.avif); }
#panel { overflow-x: hidden; overflow-y: auto; }
body:not(.bottomsheet) #panel { top: 34px; right: 34px; height: calc(var(--sh, 900px) - 68px); width: 560px; }
body:not(.bottomsheet) #chat { left: var(--sw, 1440px); width: 820px; height: 760px; top: 70px; }
.back { align-self: flex-start; padding: 6px 12px; font-size: 15px; }

.sheet { transform: translateX(110%); visibility: hidden;
transition: transform 600ms cubic-bezier(.3,.1,.2,1) 250ms, visibility 0s linear 850ms; }
.sheet.open { transform: translateX(0); visibility: visible;
transition: transform 600ms cubic-bezier(.3,.1,.2,1) 250ms, visibility 0s linear 0s; }
body.bottomsheet .sheet { transform: translateY(105%); }
body.bottomsheet .sheet.open { transform: translateY(0); }
#panel, #panel.open { transform: none; }
#panel { opacity: 0; transform-origin: 0 50%; transition: opacity 220ms, visibility 0s linear 220ms; }
#panel.open { opacity: 1; transition: visibility 0s; animation: po-pop 650ms cubic-bezier(.2,.8,.3,1) 250ms backwards; }
#panel.open.still { animation: none; }
body.bottomsheet #panel { transform-origin: 50% 0; }
@keyframes po-pop { from { transform: scale(.2); opacity: 0; } 55% { transform: scale(1.03, .96); opacity: 1; } 78% { transform: scale(.99, 1.01); } to { transform: none; } }
@keyframes po-fade { from { opacity: 0; } }

#panel > .back { position: sticky; top: 0; z-index: 4; min-height: 44px; background: rgba(10,10,12,.92);
border-color: transparent; outline: 2px solid var(--yellow); outline-offset: -2px; }
#panel > .back:focus-visible { outline-width: 3px; outline-offset: 3px; }

#panel { container-type: inline-size; }
#panel > .back::before { content: ''; position: absolute; z-index: -1; left: calc(-1 * var(--padx)); width: calc(100cqw + 2 * var(--padx));
top: calc(-1 * var(--pt) - 24px); bottom: -30px; pointer-events: none; background: linear-gradient(var(--ink) calc(100% - 16px), rgba(8,8,10,0));
opacity: 0; transition: opacity 200ms;
-webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--padx), #000 calc(100% - var(--padx)), transparent);
mask-image: linear-gradient(90deg, transparent, #000 var(--padx), #000 calc(100% - var(--padx)), transparent); }
#panel.more-top > .back::before { opacity: 1; }

.sback { display: none; }
body.short:has(#panel.open) .sback { display: block; position: fixed; z-index: 7; left: calc(12px + env(safe-area-inset-left));
top: calc(12px + env(safe-area-inset-top)); min-height: 44px; background: rgba(8,8,10,.8); }
body.short #panel > .back { display: none; }
#panel .pfade { position: sticky; bottom: calc(-1 * var(--pb)); z-index: 3; flex: none; height: 44px; margin-top: -58px; pointer-events: none;
background: linear-gradient(rgba(10,10,12,0), rgba(10,10,12,.97) 70%); opacity: 0; transition: opacity 200ms; }
#panel.more-bot .pfade { opacity: var(--foot, 1); }

:where(.sheet) p, :where(.sheet) li { font-size: 17px; line-height: 1.55; max-width: 64ch; }
.note, .sub, .fine { color: var(--muted); font-size: 15px !important; }

#p-title { font-family: 'Metal Mania', serif; font-weight: 400; font-size: calc(44px * var(--tk, 1)); line-height: 1.05;
color: var(--paper); }

#panel h3 { font: 400 26px/1.1 'Metal Mania', serif; color: var(--acc); margin-top: 14px; }

#panel { background: linear-gradient(rgba(8,8,10,.84), rgba(8,8,10,.84)),
var(--ghost, none) var(--gpos, right -40px bottom -30px) / var(--gw, 78%) auto no-repeat, var(--ink);
background-blend-mode: normal, luminosity; background-repeat: no-repeat; background-origin: border-box; }
#panel[data-sec="arcade"] { --gw: 56%; --gpos: right -38px bottom -56px; }
#panel[data-sec="cauldron"] { --gw: 60%; --gpos: right -44px bottom -44px; }
#panel[data-sec="hand"] { --gw: 66%; --gpos: right -50px bottom -34px; }
#panel[data-sec="contact"] { --gw: 66%; --gpos: right -54px bottom -26px; }
#panel[data-sec="snake"] { --gw: 150%; --gpos: right -40px bottom 6%; }

:root { --body-zoom: 1.08; }
#p-content { display: grid; gap: 14px; zoom: var(--body-zoom, 1); }
#p-content .summary { font-size: 18px; }

ol.tl { --x: 5px; --cy: 8px; --gap: 8px; --mw: 10px; --rail: var(--line);
list-style: none; padding: 0 0 0 22px; margin: 0; display: grid; gap: var(--gap); }
ol.tl li { position: relative; font-size: 16px; }
ol.tl li::before, ol.tl li:not(:last-child)::after { content: ''; position: absolute; left: calc(var(--x) - var(--mw) / 2 - 22px); width: var(--mw); }
ol.tl li::before { z-index: 1; top: calc(var(--cy) - 5px); height: 10px; border-radius: 50%; background: var(--acc); }
ol.tl li:not(:last-child)::after { top: var(--cy); height: calc(100% + var(--gap));
background: linear-gradient(90deg, transparent calc(50% - 1px), var(--rail) 0 calc(50% + 1px), transparent 0); }
ol.tl time { display: block; margin: 0 0 1px; font-size: 13px; font-weight: 700; letter-spacing: .06em;
text-transform: uppercase; color: var(--acc); }

#panel { --acc: var(--yellow); }
#panel[data-sec="rack"] { --acc: #16A9FF; }
#panel:is([data-sec="hand"], [data-sec="snake"]) { --acc: #FF4D5E; }
#panel[data-sec="cauldron"] { --acc: #48E477; }
#panel[data-sec="contact"] { --acc: #C77DFF; }

dl.facts { display: grid; gap: 12px; font-size: 16px; }
dl.facts div { display: grid; gap: 2px; }
dl.facts dt { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--acc); }
dl.facts dd { margin: 0; }

.back, .links a { background: none; color: var(--yellow); border: 2px solid var(--yellow); border-radius: 999px; font-weight: 600; }
.askabout, .contact-form .send { background: var(--yellow); color: var(--ink); border: 0; border-radius: 8px;
box-shadow: 0 3px 0 #9A7A12; font-weight: 700; }
.askabout:active, .contact-form .send:active { transform: translateY(2px); box-shadow: 0 1px 0 #9A7A12; }
.askabout { justify-self: start; padding: 8px 16px; font-size: 15px; text-align: left; }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.links a { padding: 6px 14px; text-decoration: none; font-size: 15px; }

.contact-form { display: grid; gap: 10px; }
.contact-form label { display: grid; gap: 6px; color: var(--acc); font-size: 12px; font-weight: 600; letter-spacing: .12em;
text-transform: uppercase; }
.contact-form input, .contact-form textarea { font-weight: 400; letter-spacing: normal; text-transform: none;
background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 4px;
box-shadow: 4px 4px 0 rgba(0,0,0,.75); padding: 10px 12px; font-size: 17px; }
.contact-form :is(input, textarea)::placeholder { color: #6E6556; opacity: 1; }
.contact-form textarea { min-height: 110px; resize: vertical; }

.contact-form :is(input, textarea) { width: 100%; min-width: 0; }
.contact-form .send { justify-self: start; padding: 10px 22px; }

#panel .contact-form + .note { margin-top: 14px; }
#panel .contact .note + h3 { margin-top: 28px; }

#chips { display: flex; flex-wrap: wrap; gap: 8px; }
#chips button { background: var(--ink); border: 2px solid var(--yellow); color: var(--yellow); border-radius: 999px;
padding: 6px 14px; font-size: 15px; font-weight: 600; }
#chips button:disabled, #ask button:disabled { opacity: .45; cursor: default; }
#ask { display: flex; gap: 10px; }
#q { flex: 1; min-width: 0; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 4px;
box-shadow: 4px 4px 0 rgba(0,0,0,.75); padding: 12px 14px; font-size: 17px; }
#q::placeholder { color: #6E6556; opacity: 1; }

#chat.out #q { opacity: 1; }
#chat.out #q::placeholder { color: var(--ink); font-weight: 600; }
#chat.out #chips { display: none; }

#chat.out #ask button { opacity: 1; background: #3A3628; color: var(--muted); box-shadow: none; }

#chat.busy #ask button { opacity: 1; background: #3A3628; color: var(--muted); box-shadow: none; }
#chat.out #log .retry { display: none; }
#ask button { background: var(--yellow); color: var(--ink); border: 0; border-radius: 8px; padding: 0 22px;
box-shadow: 0 3px 0 #9A7A12; font-weight: 700; }

#chat { border: 0; border-image: none; filter: none; box-shadow: none;
background: linear-gradient(rgba(8,8,10,0), rgba(8,8,10,.5) 25%, rgba(8,8,10,.9) 70%); }

body:not(.bottomsheet) #chat { background: none; }
body:not(.bottomsheet):not(.short) #chat::before { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none;
background: radial-gradient(ellipse 70% 60% at 50% 55%, rgba(8,8,10,.82), rgba(8,8,10,0));
-webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent), linear-gradient(transparent, #000 48px, #000 calc(100% - 48px), transparent);
-webkit-mask-composite: source-in;
mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent), linear-gradient(transparent, #000 48px, #000 calc(100% - 48px), transparent);
mask-composite: intersect; }

body:not(.bottomsheet) #chat :is(#gate .sub, .fine) { color: var(--paper); text-shadow: 0 1px 2px #000, 0 0 8px #000; }

body:not(.bottomsheet) #chat :is(#gate .sub, .fine) { width: fit-content; max-width: none; margin: -2px -8px; padding: 2px 8px;
border-radius: 6px; background: rgba(8,8,10,.85); }
#log { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 26px 6px 0 0;
overscroll-behavior: contain; -webkit-mask-image: linear-gradient(transparent, #000 26px); mask-image: linear-gradient(transparent, #000 26px); }

#log { margin-left: -4px; padding-left: 4px; }
#log::after { content: ''; flex: none; margin-top: -6px; }

#log.more { -webkit-mask-image: linear-gradient(transparent, #000 26px, #000 calc(100% - 36px), transparent);
mask-image: linear-gradient(transparent, #000 26px, #000 calc(100% - 36px), transparent); }
.msg { flex-shrink: 0; max-width: 92%; font-size: 18px; line-height: 1.55; padding: 10px 14px; border-radius: 12px; white-space: pre-line; }

.msg, #p-content, .take-back { overflow-wrap: anywhere; }
.msg.him { position: relative; align-self: flex-start; min-height: 1.6em; margin-top: 18px; max-width: 94%; padding: 12px 18px;
background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 26px;
box-shadow: 0 0 0 2px var(--paper), 6px 8px 0 rgba(0,0,0,.55); }
.msg.you { position: relative; align-self: flex-end; margin-bottom: 22px; max-width: 86%; padding: 10px 16px; font-weight: 600;
background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 24px;
box-shadow: 0 0 0 2px var(--paper), 6px 8px 0 rgba(0,0,0,.55); }

body:not(.bottomsheet) .msg.him { margin: 6px 0 0 30px; }

.msg.him::before { content: ''; position: absolute; left: 22px; top: -30px; width: 44px; height: 32px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='32' viewBox='0 0 44 32'%3E%3CclipPath id='i'%3E%3Crect x='0' y='0' width='44' height='30'/%3E%3C/clipPath%3E%3CclipPath id='r'%3E%3Crect x='0' y='0' width='44' height='30'/%3E%3C/clipPath%3E%3Cpath d='M16 32Q11 17 4 2Q22 13 38 32' fill='none' stroke='%23FFF0CE' stroke-width='7' stroke-linejoin='round' clip-path='url%28%23r%29'/%3E%3Cpath d='M16 32Q11 17 4 2Q22 13 38 32Z' fill='%23FFF0CE'/%3E%3Cpath d='M16 32Q11 17 4 2Q22 13 38 32' fill='none' stroke='%2308080A' stroke-width='3' stroke-linejoin='round' clip-path='url%28%23i%29'/%3E%3C/svg%3E") no-repeat; }
body:not(.bottomsheet) .msg.him::before { left: -30px; top: 16px; width: 32px; height: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='44' viewBox='0 0 32 44'%3E%3CclipPath id='i'%3E%3Crect x='0' y='0' width='30' height='44'/%3E%3C/clipPath%3E%3CclipPath id='r'%3E%3Crect x='0' y='0' width='30' height='44'/%3E%3C/clipPath%3E%3Cpath d='M32 16Q17 11 2 4Q13 22 32 38' fill='none' stroke='%23FFF0CE' stroke-width='7' stroke-linejoin='round' clip-path='url%28%23r%29'/%3E%3Cpath d='M32 16Q17 11 2 4Q13 22 32 38Z' fill='%23FFF0CE'/%3E%3Cpath d='M32 16Q17 11 2 4Q13 22 32 38' fill='none' stroke='%2308080A' stroke-width='3' stroke-linejoin='round' clip-path='url%28%23i%29'/%3E%3C/svg%3E"); }
.msg.you::before { content: ''; position: absolute; right: 22px; bottom: -30px; width: 44px; height: 32px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='32' viewBox='0 0 44 32'%3E%3CclipPath id='i'%3E%3Crect x='0' y='2' width='44' height='30'/%3E%3C/clipPath%3E%3CclipPath id='r'%3E%3Crect x='0' y='2' width='44' height='30'/%3E%3C/clipPath%3E%3Cpath d='M28 0Q33 15 40 30Q22 19 6 0' fill='none' stroke='%23FFF0CE' stroke-width='7' stroke-linejoin='round' clip-path='url%28%23r%29'/%3E%3Cpath d='M28 0Q33 15 40 30Q22 19 6 0Z' fill='%23FFF0CE'/%3E%3Cpath d='M28 0Q33 15 40 30Q22 19 6 0' fill='none' stroke='%2308080A' stroke-width='3' stroke-linejoin='round' clip-path='url%28%23i%29'/%3E%3C/svg%3E") no-repeat; }

.msg:is(.him, .you) { transition: opacity 150ms; }
.msg:is(.him, .you).past { opacity: 0; }

body.bottomsheet #log { padding-top: calc(26px + var(--chin, 0px));
-webkit-mask-image: linear-gradient(transparent var(--chin, 0px), #000 calc(var(--chin, 0px) + 26px));
mask-image: linear-gradient(transparent var(--chin, 0px), #000 calc(var(--chin, 0px) + 26px)); }
body.bottomsheet #log.more {
-webkit-mask-image: linear-gradient(transparent var(--chin, 0px), #000 calc(var(--chin, 0px) + 26px), #000 calc(100% - 36px), transparent);
mask-image: linear-gradient(transparent var(--chin, 0px), #000 calc(var(--chin, 0px) + 26px), #000 calc(100% - 36px), transparent); }

.msg.greet .gq { display: block; margin-top: 10px; }
.msg.greet .gq em { display: block; margin-bottom: 2px; font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .12em;
text-transform: uppercase; color: #876800; }
.msg.greet .gq button { position: relative; display: block; width: 100%; min-height: 44px; padding: 8px 26px 8px 0; background: none; border: 0;
border-top: 1px dashed rgba(8,8,10,.3); color: var(--ink); text-align: left; font-size: 16px; font-weight: 600; white-space: normal; }
.msg.greet .gq button::after { content: '→'; position: absolute; right: 2px; top: 50%; translate: 0 -50%; color: #0B5E9E; }
.msg.greet .gq button:disabled { opacity: .45; cursor: default; }
#chat:not(:has(#log .msg.you)) #chips { display: none; }

body:not(.short) #chat:has(#log .msg.you) .msg.greet .gq { display: none; }

@media (min-width: 600px) { body.bottomsheet .msg.him::before { left: clamp(22px, var(--tailx, 22px), 100% - 60px); } }

.msg .src { display: block; margin-top: 8px; font-size: 14px; color: #5E5446; white-space: normal; }
.msg .src .srcbtn { position: relative; display: inline-flex; align-items: center; min-height: 34px; margin-top: 8px; padding: 2px 14px;
background: none; border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); font-size: 14px; font-weight: 600; }
.msg .src .srcbtn::after { content: ' ▾'; white-space: pre; }
.msg .src.open .srcbtn::after { content: ' ▴'; }
.msg .src .srclist { display: none; }
.msg .src.open .srclist { display: block; }
.msg .src .srcname { display: block; margin-top: 6px; color: var(--ink); font-weight: 600; text-decoration: underline;
text-decoration-color: rgba(8,8,10,.35); text-underline-offset: 3px; }
.msg sup { display: none; }

#chat #chips .srcjump { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 2px 16px; background: var(--paper);
border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); font-size: 15px; font-weight: 700; white-space: nowrap;
box-shadow: none; }
#chat #chips .srcjump[hidden] { display: none; }

#chat.out.srcwait #chips { display: flex; }
#chat.out #chips button:not(.srcjump) { display: none; }

.msg.err .retry, .take-back button { min-height: 44px; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink);
border-radius: 8px; font-weight: 700; box-shadow: 0 3px 0 #9A7A12; }
.msg.err .retry { display: block; margin-top: 10px; padding: 8px 20px; }
.msg.err .retry:disabled { opacity: .45; cursor: default; }

.take-back { display: grid; gap: 8px; margin-top: 10px; white-space: normal; }
.take-back .tbo { margin: 0; font-weight: 600; }

.take-back[hidden] { display: none; }
.tbopen { display: block; margin-top: 10px; padding: 10px 0; min-height: 44px; background: none; border: 0; color: var(--ink);
font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.take-back label[for] { margin-bottom: -4px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #876800; }
.take-back input[type=email] { min-height: 44px; padding: 9px 10px; background: #FFF8E6; color: var(--ink); border: 2px solid var(--ink);
border-radius: 4px; box-shadow: 4px 4px 0 rgba(0,0,0,.35); font-size: 16px; }
.take-back input::placeholder { color: #6E6556; opacity: 1; }
.take-back label.ok { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 14px; line-height: 1.35; color: #5E5446; }
.take-back label.ok input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--yellow); }
.take-back button { justify-self: start; padding: 8px 18px; }
.tbdone { margin: 6px 0 0; font-weight: 600; }
#gate { display: grid; gap: 8px; justify-items: start; }

.fine .keep-short, :is(body.bottomsheet, body.small) .fine :is(.keep-long, .qw) { display: none; }
:is(body.bottomsheet, body.small) .fine .keep-short { display: inline; }

.fine.tight .qt { display: none; }

#chat .disclaim { margin-bottom: -6px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--paper); text-wrap: balance; }

body:not(.bottomsheet) #chat .disclaim { width: fit-content; max-width: calc(100% + 16px); margin: -2px -8px -6px; padding: 2px 8px;
border-radius: 6px; background: rgba(8,8,10,.85); text-shadow: 0 1px 2px #000, 0 0 8px #000; }

body.short #chat .disclaim { position: fixed; z-index: 7; left: calc(12px + env(safe-area-inset-left)); bottom: 8px; margin: 0;

max-width: min(19.5em, calc(100vw - min(560px, 54vw) - 32px - env(safe-area-inset-left))); padding: 4px 10px; border-radius: 10px;
font-size: 13px; line-height: 1.35; background: rgba(8,8,10,.94); text-shadow: none; }

.stories { display: grid; gap: 10px; }
.story { display: grid; gap: 3px; padding: 12px 14px; background: var(--paper); color: var(--ink);
border: 2px solid var(--ink); border-radius: 4px; box-shadow: 4px 4px 0 rgba(0,0,0,.65); }
.story b { font-size: 17px; }
.story time { font-size: 14px; color: #5E5446; }
.story p { margin: 4px 0 2px; line-height: 1.5; }

a.story { text-decoration: none; cursor: pointer; }
.story .more { margin-top: 2px; font-size: 15px; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(8,8,10,.35);
text-underline-offset: 3px; }
.story .more::after, .storylist a::after, a.stat::after { content: '←'; display: inline-block; transform: scaleX(-1); margin-left: 6px; }
@media (hover: hover) { .story.opens:hover .more { text-decoration-color: currentColor; } }

.storylist { list-style: none; margin: 0; padding: 0; display: grid; }
.storylist li { max-width: none; }
.storylist a { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; min-height: 44px;
padding: 9px 2px; border-top: 1px solid var(--line); color: var(--paper); text-decoration: none; }
.storylist li:last-child a { border-bottom: 1px solid var(--line); }
.storylist time { grid-column: 1; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--acc); }
.storylist span { grid-column: 1; font-size: 16px; font-weight: 600; line-height: 1.35; }
.storylist a::after { grid-column: 2; grid-row: 1 / span 2; margin: 0; color: var(--yellow); font-size: 18px; }
@media (hover: hover) { .storylist a:hover span { text-decoration: underline; text-underline-offset: 3px; } }

#p-content .summary.lead { font-size: 20px; line-height: 1.4; font-weight: 600; text-wrap: pretty; }

body.bottomsheet #p-content .summary.lead { font-size: 18px; }
body.small #p-content .summary.lead { font-size: 18px; }
ol.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
ol.stats li { max-width: none; }
.stat { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; margin: 0;
padding: 10px 14px 12px; border-left: 4px solid var(--acc); border-radius: 0 6px 6px 0; background: rgba(32,29,40,.92);
color: var(--paper); text-decoration: none; }
.stat b { grid-column: 1; font-size: 34px; line-height: 1.1; font-weight: 700; color: var(--acc); font-variant-numeric: tabular-nums;
letter-spacing: -.01em; }
.stat span { grid-column: 1; margin-top: 2px; font-size: 16px; line-height: 1.35; }
:is(body.bottomsheet, body.small) .stat b { font-size: 30px; }
:is(body.bottomsheet, body.small) .stat span { font-size: 15px; }
a.stat::after { grid-column: 2; grid-row: 1 / span 2; margin: 0; color: var(--yellow); font-size: 20px; }
@media (hover: hover) { a.stat:hover { background: rgba(48,43,60,.95); } a.stat:hover span { text-decoration: underline; text-underline-offset: 3px; } }

#panel.reading #p-title { font-size: calc(34px * var(--tk, 1)); line-height: 1.1; }
body.small #panel.reading #p-title { font-size: 26px; }
.fullstory { display: grid; gap: 14px; }
.fullstory p { margin: 0; }
.fullstory .when time, .fullstory .srclist time { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--acc); }
.fullstory .srcbtn { position: relative; display: inline-flex; align-items: center; min-height: 36px; padding: 4px 16px; background: none;
border: 2px solid var(--yellow); border-radius: 999px; color: var(--yellow); font-size: 15px; font-weight: 600; }
.fullstory .srcbtn::after { content: ' ▾'; white-space: pre; }
.fullstory .src.open .srcbtn::after { content: ' ▴'; }
.fullstory .srclist { display: none; list-style: none; margin: 14px 0 0; padding: 0; gap: 14px; }
.fullstory .src.open .srclist { display: grid; }
.fullstory .srclist li { padding-left: 12px; border-left: 2px solid var(--acc); font-size: 15px; line-height: 1.5; }
.fullstory .srclist time { display: block; font-size: 12px; }

#fx { position: fixed; inset: 0; pointer-events: none; z-index: 8; }

.msg .ch:not(.in) { visibility: hidden; }
.fly { position: absolute; left: 0; top: 0; white-space: pre; font-weight: 700; color: var(--yellow);
text-shadow: 0 2px 0 var(--ink), 0 0 10px rgba(255,210,63,.35); will-change: transform; }

#toast { position: fixed; left: 50%; top: 20px; transform: translateX(-50%); background: var(--surface); color: var(--paper);
border: 1px solid var(--yellow); border-radius: 8px; padding: 10px 16px; z-index: 20; font-size: 16px; }
#toast:empty { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

body.portrait .bg { left: -135px; top: -156px; width: 1170px; height: 2262px; --fx: 40px; --fy: 40px; }
body.portrait .plate { font-size: 30px; padding: 4px 16px; border-width: 2px; border-radius: 10px; opacity: 1; }
body.bottomsheet .sheet { --fk: .75; --padx: 18px; position: fixed; top: auto; bottom: 10px; left: 10px; right: 10px;
width: auto; height: 62vh; height: 62dvh; z-index: 6;
--pt: 16px; --pb: calc(16px + env(safe-area-inset-bottom)); gap: 12px; overflow-y: auto; }
body.bottomsheet #panel .pfade { margin-top: -56px; }

body.bottomsheet #chat { overflow: visible; }

body.bottomsheet #chat { background: none; }
body.bottomsheet #chat::before { content: ''; position: absolute; z-index: -1; inset: 0 -10px -10px; pointer-events: none;
background: linear-gradient(rgba(8,8,10,0), rgba(8,8,10,.5) 25%, rgba(8,8,10,.9) 70%); }
body.bottomsheet #chat.open { transform: none; }

body.bottomsheet #chat > .back { position: relative; z-index: 7; flex: none; background: rgba(8,8,10,.94); }

body.bottomsheet :is(#panel, #chat) > .back { min-height: 36px; padding: 4px 14px; }

body.bottomsheet :is(#panel, #chat) > .back::after { content: ''; position: absolute; inset: -6px -2px; }

body.bottomsheet { --backrow: 48px; --sat: env(safe-area-inset-top, 0px); }
body.bottomsheet #chat { height: calc(62vh + var(--backrow)); height: calc(62dvh + var(--backrow)); }
body.bottomsheet #panel > .back { margin-bottom: 8px; }
body.bottomsheet #p-title { --tk: .77; }
body.bottomsheet .sheet p, body.bottomsheet .sheet li, body.bottomsheet #p-content .summary { font-size: 16px; }

body.bottomsheet { --body-zoom: .94; }
body.bottomsheet #chat .msg { font-size: 16px; }

body.bottomsheet #chat:has(#log .msg.you) { height: calc(72vh + var(--backrow)); height: calc(72dvh + var(--backrow)); }
:is(body.bottomsheet, body.small) #chips { flex: none; flex-wrap: nowrap; gap: 12px; overflow-x: auto; scrollbar-width: none; margin-right: -4px; }
:is(body.bottomsheet, body.small) #chips::-webkit-scrollbar { display: none; }

:is(body.bottomsheet, body.small) #chips.more { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
:is(body.bottomsheet, body.small) #chips button { flex: 0 0 auto; min-height: 44px; white-space: nowrap; }
:is(body.bottomsheet, body.small) #chips button::after { content: none; }

@media (pointer: fine) {
:is(body.bottomsheet, body.small) #chips { flex-wrap: wrap; gap: 8px; overflow-x: visible; margin-right: 0; }
:is(body.bottomsheet, body.small) #chips button { min-height: 0; white-space: normal; }
}

body.small :is(#panel, #chat) { position: fixed; top: 8px; bottom: 8px; right: 8px; left: auto; width: min(560px, 54vw); height: auto; z-index: 6; --fk: .6; }
body.small #panel { --padx: 22px; --pt: 14px; --pb: 14px; }
body.small #p-title { font-size: 32px; }
body.small .sheet p:not(.summary), body.small .sheet li { font-size: 16px; }
body.small #chat { gap: 8px; --pt: 12px; --pb: 10px; }

body.short #chat:has(#log .msg.you) #chips { display: none; }

body.short #chat.srcwait:has(#log .msg.you) #chips { display: flex; }
body.short #chat.srcwait #chips button:not(.srcjump) { display: none; }
body.short #chat.open { transform: none; }
body.short #chat > .back { position: fixed; z-index: 7; left: calc(12px + env(safe-area-inset-left)); top: calc(12px + env(safe-area-inset-top));
background: rgba(8,8,10,.94); }
body.short #chat::before { content: ''; position: fixed; z-index: -1; top: 0; bottom: 0; right: 0; width: calc(min(560px, 54vw) + 56px);
pointer-events: none; background: linear-gradient(90deg, rgba(8,8,10,0), rgba(8,8,10,.9) 48px); }
body.short #chat.out :is(#ask, .fine) { display: none; }

body.shrunk .plate { font-size: calc(16px * var(--pk)); padding: calc(3px * var(--pk)) calc(10px * var(--pk)); border-radius: calc(6px * var(--pk)); }
body.shrunk #t-intro { font-size: calc(17px * min(var(--pk), 1.6)); width: 540px; }
body.shrunk #t-sub { display: none; }

@media (pointer: coarse) {
.back, .askabout, .links a, .contact-form .send, #chips button { position: relative; }
.back::after, .askabout::after, .links a::after, .contact-form .send::after, #chips button::after { content: ''; position: absolute; }
.back::after { inset: -7px -2px; }
.contact-form .send::after, #chips button::after { inset: -4px -2px; }
.askabout::after { inset: -6px -2px; }
.links a::after { inset: -8px -4px; }

.links { row-gap: 16px; }
.contact-form input { min-height: calc(44px / var(--body-zoom, 1)); }

.msg .src .srcbtn::before { content: ''; position: absolute; inset: -7px -4px; }
.msg .src .srcname { display: flex; align-items: center; min-height: 44px; margin-top: 0; }
.msg .src .srclist { margin-top: 6px; }
.fullstory .srcbtn { min-height: calc(44px / var(--body-zoom, 1)); }

.take-back label.ok input { appearance: none; box-sizing: content-box; width: 20px; height: 20px; margin: -12px -2px -12px -12px;
border: 12px solid transparent; border-radius: 16px; background: #FFF8E6 padding-box; box-shadow: inset 0 0 0 2px var(--ink); outline-offset: -8px; }
.take-back label.ok input:checked { background: var(--yellow) center / 16px no-repeat padding-box
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%2308080A' stroke-width='3'/%3E%3C/svg%3E"); }
}

@media (prefers-reduced-motion: reduce) {
#world, #ui { transition-duration: 1ms !important; }
.obj:hover .inner, .obj.hop .inner { animation: none !important; }
.sheet { transition-duration: 1ms !important; transition-delay: 0ms !important; }

#panel.open { animation: po-fade 200ms 250ms backwards; }
}

#p-content.swap { animation: po-fade 220ms; }
.unitlist .hint { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
#units { position: absolute; z-index: 5; transform-origin: 50% 50%; visibility: hidden; opacity: 0; transition: opacity 300ms, visibility 0s 300ms;
--pick: var(--green); --lift: 9; }
body.units-open #units { visibility: visible; opacity: 1; transition: opacity 300ms 250ms; }
#units .unit { position: absolute; padding: 0; border: 0; background: none; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
#units .u { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: transform 300ms cubic-bezier(.2,.8,.2,1), filter 300ms; }
#units .unit.out { z-index: 2; }
#units .unit.out .u { transform: translate(calc(var(--k) * var(--lift) * 1px), calc(var(--k) * var(--lift) * var(--rise) * -1px));
filter: drop-shadow(0 0 calc(2px / var(--zs, 1)) var(--pick)) drop-shadow(0 0 calc(5px / var(--zs, 1)) var(--pick)); }
#units.picked .unit:not(.out) .u { filter: brightness(.55) saturate(.8); }

#units .tag { position: absolute; right: calc(100% + var(--off) + 8px / var(--zs, 1)); top: 50%; transform: translateY(-50%); white-space: nowrap; pointer-events: none;
background: var(--surface); border: calc(1px / var(--zs, 1)) solid var(--yellow); border-radius: calc(6px / var(--zs, 1));
padding: calc(2px / var(--zs, 1)) calc(8px / var(--zs, 1)); font-size: calc(13px / var(--zs, 1)); font-weight: 600; line-height: 1.4; color: var(--yellow); }
#units .unit.out .tag { background: var(--yellow); color: var(--ink); }
@media (hover: hover) {
#units .unit:hover:not(.out) .u { transform: translate(calc(var(--k) * 3px), calc(var(--k) * 3px * var(--rise) * -1)); }
}

@media (prefers-reduced-motion: reduce) {
#units, #units .u { transition: none !important; }
#units .unit.out .u, #units .unit:hover:not(.out) .u { transform: none; }
#units .unit.out .u { filter: drop-shadow(0 0 calc(1.5px / var(--zs, 1)) var(--pick)) drop-shadow(0 0 calc(1.5px / var(--zs, 1)) var(--pick)); }
}



