/* /shop/wardrobe/ : a plain room, a dark menu in the corner, a chunky low-resolution picture — in the spirit of an old console game (an original design) */
@font-face { font-family:"UnifrakturCook"; src:url(/shop/wardrobe/fonts/unifrakturcook-latin-700-normal.woff2) format("woff2"); font-weight:700; font-display:swap; }
:root { --blue:#bfdcff; --dim:#4f6e93; --bg:#141414; }
* { box-sizing:border-box; }
html, body { height:100%; margin:0; background:var(--bg); color:#fff; overflow:hidden; font-family:Arial,"Helvetica Neue","Liberation Sans",sans-serif; -webkit-font-smoothing:none; }
.stage { position:fixed; inset:0; }
.stage canvas { display:block; width:100%; height:100%; cursor:grab; image-rendering:pixelated; image-rendering:crisp-edges; image-rendering:pixelated; filter:contrast(1.06) saturate(.92); }
.stage canvas:active { cursor:grabbing; }
.grain { position:fixed; inset:0; pointer-events:none; opacity:.14; mix-blend-mode:overlay; background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>"); }
.vig { position:fixed; inset:0; pointer-events:none; background:radial-gradient(ellipse at 52% 48%, rgba(0,0,0,0) 55%, rgba(0,0,0,.4) 100%); }

/* the text boxes: near-black, white bold text with a hard shadow */
.menu { position:fixed; top:30px; left:40px; width:min(440px,42vw); max-height:calc(100vh - 50px); max-height:calc(100dvh - 50px); display:flex; flex-direction:column; text-shadow:2px 2px 0 #000; }
.hint { background:rgba(20,20,20,.9); padding:10px 14px 8px; font-weight:700; font-size:1.15rem; line-height:1.25; }
.hint p { margin:0 0 4px; }
.hint b { font-weight:700; }
.hint a { color:#fff; text-decoration:none; }
.hint a:hover { color:var(--blue); }
.title { margin:26px 0 0 14px; font:700 3.6rem/1 "UnifrakturCook","Old English Text MT","Blackadder ITC",serif; letter-spacing:.01em; color:#fff; text-shadow:-2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000, 0 3px 0 #000; }
.panel { background:rgba(20,20,20,.92); padding:10px 16px 12px; margin-top:0; min-height:0; flex:0 1 auto; display:flex; flex-direction:column; }
.phead { display:flex; justify-content:space-between; font-weight:700; font-size:1.3rem; line-height:1.4; margin-bottom:2px; }
.list { list-style:none; margin:0; padding:0; min-height:0; flex:0 1 auto; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#555 transparent; }
.list button { display:flex; justify-content:space-between; gap:16px; width:100%; padding:1px 0; border:0; background:none; color:var(--dim); font:inherit; font-weight:700; font-size:1.3rem; line-height:1.4; text-align:left; cursor:pointer; text-shadow:2px 2px 0 #000; }
.list button .st { color:#fff; white-space:nowrap; }
.list button .st.out { color:#8a8a8a; }
.list button[aria-selected=true] { color:var(--blue); }
.list button:hover:not([aria-selected=true]) { color:#7fa2cc; }
.list button:focus, .list button:focus-visible { outline:none; }
.ptype { margin:10px 0 0; color:#c9c9c9; font-size:.95rem; font-weight:700; }

.hud { position:fixed; top:32px; right:40px; text-align:right; pointer-events:none; font-family:"Courier New",monospace; }
.hud time { display:block; font:700 2.1rem/1 "Courier New",monospace; letter-spacing:.06em; color:#fff; text-shadow:-2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000; }
.cash { margin-top:10px; font:700 2.1rem/1 "Courier New",monospace; letter-spacing:.04em; color:#3f9d3f; text-shadow:-2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000; }
.nojs { position:fixed; inset:auto 0 40% 0; text-align:center; text-shadow:2px 2px 0 #000; }

.sw { display:flex; gap:10px; margin:12px 0 2px; }
.sw[hidden] { display:none; }
.dot { width:24px; height:24px; border:2px solid #000; background:var(--c); cursor:pointer; padding:0; box-shadow:0 0 0 1px rgba(255,255,255,.35); }
.dot[aria-pressed=true] { box-shadow:0 0 0 2px var(--blue); }
.cta { display:block; margin-top:14px; padding:12px 14px 10px; background:var(--blue); color:#141414; text-align:center; text-decoration:none; font-weight:700; font-size:1.25rem; letter-spacing:.04em; text-transform:uppercase; text-shadow:none; border:2px solid #000; box-shadow:3px 3px 0 #000; }
.cta:hover { background:#fff; }
.cta:active { transform:translate(2px,2px); box-shadow:1px 1px 0 #000; }

@media (max-width: 820px) {
  .menu { top:auto; bottom:max(10px, env(safe-area-inset-bottom)); left:10px; right:10px; width:auto; max-height:none; }
  .hint, .title, .phead { display:none; }
  .panel { padding:10px 10px 10px; }
  .list { display:flex; gap:6px; overflow-x:auto; overflow-y:hidden; padding-bottom:6px; scrollbar-width:none; }
  .list::-webkit-scrollbar { display:none; }
  .list li { flex:none; }
  .list button { width:auto; padding:7px 12px; background:rgba(60,60,60,.7); border:1px solid #000; font-size:1rem; line-height:1.2; white-space:nowrap; }
  .list button .st { display:none; }
  .list button[aria-selected=true] { background:var(--blue); color:#141414; text-shadow:none; }
  .ptype { margin:6px 0 0; font-size:.85rem; }
  .sw { margin:8px 0 0; }
  .dot { width:30px; height:30px; }
  .cta { margin-top:10px; padding:11px 10px 9px; font-size:1.05rem; letter-spacing:.02em; }
  .hud { top:14px; right:14px; } .hud time, .cash { font-size:1.4rem; }
}
/* short screens (a phone on its side): no hint or title, the menu fills the left edge */
@media (max-height: 560px) {
  .hint, .title { display:none; }
  .menu { top:10px; bottom:10px; left:max(10px, env(safe-area-inset-left)); max-height:none; width:min(360px,46vw); }
  .panel { max-height:100%; } .phead, .list button { font-size:1rem; line-height:1.3; } .cta { margin-top:8px; padding:9px 12px 7px; font-size:1rem; } .ptype { margin-top:6px; font-size:.8rem; } .sw { margin:8px 0 0; }
  .hud { top:10px; right:max(12px, env(safe-area-inset-right)); } .hud time, .cash { font-size:1.2rem; } .cash { margin-top:6px; }
}

.dot:focus, .dot:focus-visible, .cta:focus { outline:none; }
.cta:focus-visible { box-shadow:3px 3px 0 #000, 0 0 0 2px var(--blue); }
