:root {
  color-scheme: dark;
  --ink: #101210;
  --cream: #f2f1e8;
  --lime: #d4ff65;
  --muted: #b4b9ae;
  --line: #eaf5de26;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
body { background: var(--ink); color: var(--cream); font-family: Arial, Helvetica, sans-serif; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
button { min-height: 44px; }
#world { position: fixed; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
#world.grabbing { cursor: grabbing; }
#world.pulling-field { cursor: crosshair; }
.hint-small { display: none; }
header { position: absolute; inset: 0 0 auto; padding: 28px 42px; display: flex; align-items: center; justify-content: space-between; z-index: 3; }
.wordmark { color: var(--cream); text-decoration: none; display: flex; align-items: center; font-size: 22px; font-weight: 900; letter-spacing: -1.2px; min-height: 44px; }
.wordmark svg { width: 33px; height: 32px; margin-right: 10px; fill: var(--cream); }
.wordmark span { font-weight: 400; }
.header-caption { font: 10px/1.65 monospace; letter-spacing: 1px; margin: 0 auto 0 64px; color: var(--muted); }
.about { background: none; border: 0; font-size: 12px; padding: 0 0 0 10px; }
.about span { color: var(--lime); font-size: 24px; margin-left: 18px; }
main { pointer-events: none; }
.intro { position: absolute; left: 7%; top: 22%; max-width: 460px; z-index: 2; transition: opacity .2s; }
.eyebrow { font: 10px/1.5 monospace; letter-spacing: 1.4px; color: var(--muted); margin: 0 0 25px; display: flex; align-items: center; gap: 9px; }
.live-dot { display: inline-block; width: 6px; height: 6px; background: var(--lime); border-radius: 50%; }
h1 { font-size: clamp(86px, 9vw, 142px); font-weight: 900; line-height: .84; letter-spacing: -.08em; margin: 0 0 28px; }
.outline { -webkit-text-stroke: 1px var(--cream); color: transparent; }
.question { color: var(--lime); letter-spacing: -.1em; }
.description { font-size: 15px; line-height: 1.65; color: var(--muted); margin: 0 0 22px; }
.hero-actions { display: flex; align-items: center; gap: 14px; }
.meet { pointer-events: auto; background: var(--lime); border: 0; border-radius: 100px; color: var(--ink); padding: 12px 20px; display: flex; align-items: center; gap: 25px; font-size: 13px; font-weight: 600; transition: transform .2s, filter .2s; }
.meet:hover { filter: brightness(1.08); transform: translateY(-2px); }
.meet span { font-size: 24px; font-weight: 400; }
.secondary { pointer-events: auto; background: none; border: 0; font-size: 12px; padding: 10px 4px; display: flex; gap: 10px; align-items: center; }
.secondary span { color: var(--lime); font-size: 23px; }
.identity { display: flex; align-items: center; gap: 12px; margin-top: 26px; font: 10px monospace; letter-spacing: .8px; }
.identity > span:first-child { color: var(--lime); }
.identity > span:nth-child(2) { color: var(--muted); }
.identity-line { width: 42px; height: 1px; background: var(--line); }
.tiny-cross { color: var(--lime); font-size: 22px; line-height: 1; }
.scene-caption { position: absolute; left: 69%; bottom: 27%; transform: translateX(-50%); font: 9px monospace; letter-spacing: 1px; color: var(--muted); display: flex; gap: 18px; align-items: center; white-space: nowrap; }
.tiny-cross { font-size: 14px; }
.stage-tools { position: absolute; right: 16%; bottom: 19%; display: flex; gap: 10px; pointer-events: auto; }
.stage-tools button { background: #242c227d; backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 50px; padding: 0 16px; display: flex; align-items: center; gap: 9px; font-size: 11px; transition: border-color .2s; }
.stage-tools button:hover { border-color: var(--lime); }
.stage-tools span { font-size: 19px; color: var(--lime); }
footer { position: absolute; bottom: 0; left: 0; right: 0; padding: 0 42px 23px; pointer-events: none; z-index: 3; }
.controls { display: flex; align-items: center; justify-content: center; width: max-content; margin: 0 auto 27px; padding: 10px 15px; background: #20251fe6; backdrop-filter: blur(20px); border: 1px solid var(--line); border-radius: 100px; pointer-events: auto; }
.controls button { border: 0; background: none; display: flex; align-items: center; gap: 10px; font-size: 12px; text-align: left; padding: 5px 12px; border-radius: 14px; transition: background .2s; }
.controls button:hover { background: #ffffff0d; }
.controls button strong { display: block; font: 9px/1.5 monospace; letter-spacing: .6px; color: var(--muted); margin-top: 3px; }
.control-icon { color: var(--lime); font-size: 25px; }
.divider { height: 27px; width: 1px; background: var(--line); margin: 0 8px; }
.controls .icon-button { font-size: 24px; width: 44px; height: 44px; justify-content: center; padding: 0; text-align: center; }
.icon-button[aria-pressed=true] { color: var(--lime); background: #ffffff0b; }
.footer-meta { font: 9px monospace; letter-spacing: .7px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.hand { font-size: 17px; margin-right: 8px; color: var(--cream); }
.version { display: flex; gap: 10px; align-items: center; }
.discoveries { color: var(--lime); }
dialog { background: #1d231d; color: var(--cream); border: 1px solid #58634b; border-radius: 24px; max-width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 36px; margin: auto; box-shadow: 0 25px 80px #0008; }
dialog::backdrop { background: #070a07bb; backdrop-filter: blur(6px); }
dialog h2 { font-size: 40px; line-height: 1.06; letter-spacing: -1.8px; }
dialog p, dialog li { font-size: 13px; line-height: 1.8; color: #c6cbbf; }
dialog ul { padding-left: 18px; }
dialog .keys, dialog .credits { font: 11px/1.8 monospace; }
#close-info, #close-wardrobe { width: 44px; min-width: 44px; height: 44px; background: #ffffff0b; border: 1px solid var(--line); border-radius: 50%; font-size: 26px; }
#close-info { position: absolute; right: 18px; top: 18px; }
#info .eyebrow { margin-right: 40px; }
#wardrobe { position: fixed; inset: 15% auto auto 6.5%; width: 380px; max-height: 76dvh; margin: 0; padding: 24px; background: #1b211bf5; border-color: #c7d8b338; }
#wardrobe::backdrop { background: #00000012; backdrop-filter: none; }
.wardrobe-open .intro { opacity: 0; }
.wardrobe-heading { display: flex; align-items: flex-start; gap: 8px; }
.wardrobe-heading .eyebrow { font-size: 10px; margin: 0 0 8px; color: var(--lime); }
.wardrobe-heading h2 { font-size: 29px; letter-spacing: -1.1px; margin: 0; }
#wardrobe .wardrobe-note { font-size: 12px; margin: 10px 0 22px; }
fieldset { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
legend { font: 10px monospace; color: var(--lime); margin-bottom: 10px; padding: 0; }
legend span { color: var(--cream); font: 12px Arial; margin-left: 7px; }
.outfit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.outfit-grid button { position: relative; background: #ffffff05; border: 1px solid var(--line); border-radius: 12px; min-height: 64px; padding: 10px; display: flex; gap: 10px; align-items: center; text-align: left; font-size: 12px; }
.outfit-grid button[aria-pressed=true] { background: #ffffff0b; border-color: var(--lime); }
.outfit-grid button[aria-pressed=true]::after { content: '✓'; position: absolute; right: 6px; top: 3px; font-size: 11px; color: var(--lime); }
.outfit-symbol { font-size: 25px; color: var(--lime); }
.outfit-symbol svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.outfit-grid small { display: block; font: 8px monospace; letter-spacing: .6px; color: var(--muted); margin-top: 5px; }
.accessory-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.accessory-grid label { font-size: 11px; color: var(--muted); }
select { display: block; margin-top: 7px; padding: 10px 7px; width: 100%; height: 44px; background: #252e24; border: 1px solid var(--line); border-radius: 9px; font-size: 12px; }
.swatches { display: flex; justify-content: space-between; gap: 6px; }
.swatches button { flex: 1; background: none; border: 1px solid transparent; border-radius: 10px; font-size: 10px; padding: 7px 0; min-height: 58px; }
.swatches button span { display: block; width: 21px; height: 21px; border-radius: 50%; margin: 0 auto 6px; background: var(--swatch); }
.swatches button[aria-pressed=true] { border-color: var(--swatch); }
.swatches button[aria-pressed=true] span::after { content: '✓'; display: block; padding-top: 3px; color: #101210; font-size: 12px; }
.scene-options { display: flex; gap: 6px; }
.scene-options button { flex: 1; background: #ffffff05; border: 1px solid var(--line); border-radius: 9px; font-size: 11px; padding: 8px 3px; }
.scene-options button[aria-pressed=true] { border-color: var(--lime); color: var(--lime); }
.shuffle-style { width: 100%; border: 0; border-radius: 12px; background: var(--lime); color: #101210; font-size: 12px; padding: 12px; }
.default-style { width: 100%; margin-top: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: none; font-size: 12px; }
.default-style:hover { border-color: var(--lime); }
#wardrobe .saved-note { font-size: 10px; text-align: center; margin: 10px 0 0; color: var(--muted); }
.no-script { position: fixed; bottom: 20%; width: 100%; text-align: center; background: var(--ink); padding: 20px; }
@media (min-width: 1700px) { .intro { left: 10%; top: 24%; }  #wardrobe { left: 10%; } }
@media (max-width: 1000px) and (min-width: 800px) { h1 { font-size: 95px; } .intro { left: 5%; max-width: 340px; }  .hero-actions { gap: 5px; } .meet { padding: 10px 15px; gap: 14px; } #wardrobe { left: 4%; width: 330px; } .stage-tools { right: 10%; } }
@media (max-width: 799px) {
  header { padding: 18px 22px; }
  .header-caption { display: none; }
  .wordmark { font-size: 19px; }
  .wordmark svg { width: 28px; }
  .about { font-size: 11px; }
  .about span { margin-left: 10px; }
  .intro { left: 25px; top: 15%; max-width: 320px; }
  .eyebrow { font-size: 9px; letter-spacing: .7px; margin-bottom: 18px; }
  h1 { font-size: clamp(64px, 19vw, 90px); margin-bottom: 20px; }
  .description { font-size: 12px; line-height: 1.6; max-width: 240px; margin-bottom: 15px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 0; }
  .meet { font-size: 11px; padding: 9px 14px; gap: 15px; }
  .meet span { font-size: 20px; }
  .secondary { font-size: 11px; gap: 6px; }
  .identity { margin-top: 18px; font-size: 9px; letter-spacing: .3px; gap: 8px; }
  .identity-line { width: 24px; }
      .scene-caption { display: none; }
  .stage-tools { right: auto; left: 50%; transform: translateX(-50%); bottom: 25%; gap: 8px; white-space: nowrap; }
  .stage-tools button { font-size: 11px; padding: 0 13px; }
  footer { padding: 0 18px 18px; }
  .controls { display: grid; grid-template-columns: repeat(3, 1fr); width: min(100%, 360px); padding: 7px; border-radius: 24px; margin-bottom: 18px; gap: 4px; }
  .controls button { font-size: 11px; padding: 6px; gap: 5px; justify-content: center; }
  .controls button strong { font-size: 8px; letter-spacing: 0; }
  .control-icon { font-size: 22px; }
  .controls .icon-button { width: 100%; font-size: 22px; }
  .divider { display: none; }
  .footer-meta { font-size: 8px; letter-spacing: .1px; }
  .version { display: none; }
  .hint { max-width: 190px; }
  .hint-wide { display: none; }
  .hint-small { display: inline; }
  .hand { margin-right: 4px; }
  #wardrobe { inset: auto 0 0; width: 100%; max-width: none; max-height: 52dvh; border-radius: 24px 24px 0 0; padding: 20px 24px 25px; }
  #wardrobe::backdrop { background: #0002; }
  .wardrobe-heading { position: sticky; top: -20px; background: #1b211b; padding-top: 6px; padding-bottom: 10px; z-index: 2; }
  .wardrobe-heading h2 { font-size: 25px; }
  .wardrobe-open footer, .wardrobe-open .stage-tools { opacity: .1; }
  .wardrobe-open .intro { visibility: hidden; }
}
@media (max-height: 740px) and (max-width: 799px) {
  .intro { top: 14%; }
  h1 { font-size: 62px; margin-bottom: 13px; }
  .eyebrow { margin-bottom: 12px; }
  .description { margin-bottom: 10px; font-size: 11px; }
  .identity { margin-top: 10px; }
    .stage-tools { bottom: 26%; }
  .controls { margin-bottom: 12px; }
}
@media (max-height: 650px) and (min-width: 800px) {
  .intro { top: 20%; } h1 { font-size: 80px; margin-bottom: 16px; } .eyebrow { margin-bottom: 16px; } .description { margin-bottom: 10px; } .identity { margin-top: 14px; }
  .stage-tools { bottom: 21%; } .scene-caption { display: none; } .controls { margin-bottom: 14px; }
  #wardrobe { top: 12%; max-height: 84dvh; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
