/* Balderson OS
   Palette: lime #D4F54A, ink #111111, cream #F5F5F0, signal orange #FF6B3D, pink #FF8FB8, burgundy #6E1424
   Type: Anton (display), Archivo (text). */

/* Pixel digits: the 3x5 numbers from the arcade cards. Only 0 to 9 use it, letters stay Pixelify. */
@font-face { font-family: "Balder Digits"; src: url("../fonts/balder-digits.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: block; unicode-range: U+0030-0039; }

:root {
  --lime: #D4F54A;
  --lime-dot: #C3E33D;
  --lime-deep: #A9C532;
  --ink: #111111;
  --cream: #F5F5F0;
  --orange: #FF6B3D;
  --pink: #FF8FB8;
  --burgundy: #6E1424;
  --muted: #555555;
  --display: "Anton", Impact, sans-serif;
  --text: "Archivo", system-ui, sans-serif;
  --bar: 40px;
  --taskbar: 48px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--text); color: var(--ink); background: var(--lime); overflow: hidden; }
img { display: block; max-width: 100%; -webkit-user-drag: none; }
button { font-family: inherit; color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, canvas:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Desktop and wallpapers */
.desktop { position: fixed; inset: 0; overflow: hidden; background-color: var(--wall); background-image: radial-gradient(var(--wall-dot) 1.5px, transparent 1.7px); background-size: 20px 20px; --wall: var(--lime); --wall-dot: var(--lime-dot); --wall-mark: var(--lime-deep); --wall-ink: var(--ink); }
.desktop[data-wallpaper="burgundy"] { --wall: #6E1424; --wall-dot: #7E2132; --wall-mark: #8F3346; --wall-ink: var(--cream); }
.desktop[data-wallpaper="pink"] { --wall: #FF8FB8; --wall-dot: #F47FAA; --wall-mark: #E4709B; --wall-ink: var(--ink); }
.desktop[data-wallpaper="denim"] { --wall: #1E2A40; --wall-dot: #28364F; --wall-mark: #34445F; --wall-ink: var(--cream); }
.desktop[data-wallpaper="black"] { --wall: #111111; --wall-dot: #1D1D1D; --wall-mark: #2A2A2A; --wall-ink: var(--lime); }

.watermark { position: absolute; inset: var(--bar) 0 var(--taskbar); display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--display); font-size: clamp(80px, 14vw, 220px); line-height: .86; color: var(--wall-mark); pointer-events: none; user-select: none; }
.watermark .outline { color: transparent; -webkit-text-stroke: 2px var(--wall-mark); }

/* Menu bar */
.menubar { position: absolute; top: 0; left: 0; right: 0; height: var(--bar); z-index: 5000; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; background: var(--ink); color: var(--cream); font-weight: 700; font-size: 13px; letter-spacing: 2px; }
.menubar-left, .menubar-right { display: flex; align-items: center; gap: 16px; }
.menubar button { border: 0; background: transparent; cursor: pointer; font-weight: 700; letter-spacing: 2px; font-size: 13px; color: var(--cream); padding: 6px 4px; }
.menubar .brand { font-family: var(--display); font-size: 18px; letter-spacing: 1px; color: var(--lime); }
.menubar .cart-chip { background: var(--lime); color: var(--ink); padding: 5px 10px; }

/* Desktop icons */
.icons { position: absolute; top: calc(var(--bar) + 14px); left: 10px; bottom: calc(var(--taskbar) + 10px); z-index: 1; display: flex; flex-direction: column; flex-wrap: wrap; align-content: flex-start; gap: 4px; }
.icon { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 96px; padding: 8px 4px; border: 0; background: transparent; cursor: pointer; font-weight: 700; font-size: 12px; letter-spacing: 1px; color: var(--wall-ink); text-align: center; }
.icon:hover, .icon:focus-visible { background: rgba(17,17,17,.14); }
.icon svg { width: 46px; height: 46px; }
.icons.is-free { display: block; right: 10px; pointer-events: none; }
.icons.is-free .icon { position: absolute; pointer-events: auto; touch-action: none; }
.icon.is-dragging { z-index: 2; background: rgba(17,17,17,.22); cursor: grabbing; }
.icon.is-dragging svg { transform: scale(1.08); }

/* Windows */
.windows { position: absolute; inset: var(--bar) 0 var(--taskbar); pointer-events: none; }
.windows > * { pointer-events: auto; }
.win { position: absolute; display: flex; flex-direction: column; min-width: 260px; max-width: calc(100vw - 16px); max-height: calc(100% - 8px); background: var(--cream); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); animation: win-open .2s ease-out both; }
.win[hidden] { display: none; }
.win.is-max { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; box-shadow: none; }
@keyframes win-open { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.titlebar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 5px 5px 12px; background: var(--ink); color: var(--lime); cursor: grab; touch-action: none; user-select: none; }
.titlebar:active { cursor: grabbing; }
.win:not(.is-focused) .titlebar { background: #3A3A3A; color: var(--cream); }
.titlebar h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 17px; letter-spacing: 1px; }
.win-btns { display: flex; gap: 6px; }
.win-btn { width: 30px; height: 28px; border: 2px solid currentColor; background: transparent; color: inherit; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.win-body { overflow: auto; flex: 1; min-height: 0; }

/* Taskbar */
.taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: var(--taskbar); z-index: 5000; display: flex; align-items: center; gap: 8px; padding: 0 8px; background: var(--ink); }
.start { position: relative; flex: none; height: 44px; padding: 0 6px; border: 2px solid transparent; background: var(--ink); cursor: pointer; display: flex; align-items: center; }
.start-logo { height: 40px; width: auto; display: block; }
.start:hover, .start[aria-expanded="true"] { border-color: var(--lime); background: #1C1C1C; }
.logo-stack { display: flex; flex-direction: column; font-family: var(--display); font-size: 12px; line-height: .9; letter-spacing: .6px; color: var(--ink); }
.logo-stack .o { color: transparent; -webkit-text-stroke: 1px var(--ink); }
.logo-tag { background: var(--orange); color: var(--ink); font-weight: 800; font-size: 6px; letter-spacing: .3px; padding: 2px 1px; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }

/* Start menu */
.start-menu { position: absolute; left: 8px; bottom: calc(var(--taskbar) + 8px); z-index: 5500; width: min(470px, calc(100vw - 16px)); max-height: calc(100% - var(--bar) - var(--taskbar) - 16px); overflow: auto; background: var(--cream); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); animation: win-open .15s ease-out both; transform-origin: bottom left; }
.start-menu[hidden] { display: none; }
.sm-head { position: relative; display: flex; align-items: center; padding: 16px 18px; background: var(--lime); border-bottom: 3px solid var(--ink); }
.sm-head .logo-stack.big { font-size: 30px; letter-spacing: 1px; }
.sm-head .logo-stack.big .o { -webkit-text-stroke-width: 1.4px; }
.sm-head .logo-tag { margin-left: 10px; font-size: 12px; padding: 8px 4px; align-self: stretch; text-align: center; }
.sm-cols { display: grid; grid-template-columns: 1fr 1fr; }
.sm-col { display: flex; flex-direction: column; padding: 8px; gap: 2px; }
.sm-dark { background: var(--ink); color: var(--cream); }
.sm-label { font-weight: 800; font-size: 11px; letter-spacing: 2px; color: var(--lime); padding: 8px 8px 4px; }
.sm-item { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 4px 8px; border: 0; background: transparent; color: inherit; font-weight: 800; font-size: 13px; letter-spacing: 1px; text-align: left; cursor: pointer; }
.sm-item svg { width: 30px; height: 30px; flex: none; }
.sm-dark .sm-item svg { background: var(--cream); padding: 2px; }
.sm-item:hover, .sm-item:focus-visible { background: var(--lime); color: var(--ink); outline: none; }
.sm-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 8px 16px; border-top: 3px solid var(--ink); font-weight: 800; font-size: 11px; letter-spacing: 2px; }
.sm-close { min-height: 36px; padding: 0 12px; border: 2px solid var(--ink); background: transparent; font-weight: 800; font-size: 11px; letter-spacing: 1px; cursor: pointer; }
.sm-close:hover { background: var(--orange); }
.tasks { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.task { height: 36px; padding: 0 14px; border: 2px solid var(--lime); background: var(--lime); color: var(--ink); font-weight: 700; font-size: 12px; letter-spacing: 1px; white-space: nowrap; cursor: pointer; }
.task.is-min { background: transparent; color: var(--lime); }

/* Shared UI */
.pad { padding: 16px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.h-display { margin: 0; font-family: var(--display); font-weight: 400; line-height: .95; }
.label { font-weight: 800; font-size: 12px; letter-spacing: 2px; }
.muted { color: var(--muted); }
.btn { min-height: 44px; padding: 0 16px; border: 2px solid var(--ink); background: transparent; font-weight: 800; letter-spacing: 1px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--lime); }
.btn-lime { background: var(--lime); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.field { height: 46px; border: 2px solid var(--ink); padding: 0 12px; font: inherit; font-size: 16px; background: #FFFFFF; min-width: 0; }
.note { background: var(--lime); border: 2px solid var(--ink); padding: 8px 10px; font-weight: 700; font-size: 12px; letter-spacing: 1px; }
.error { color: #B3121A; font-weight: 700; font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--taskbar) + 16px); transform: translateX(-50%); z-index: 6000; background: var(--ink); color: var(--lime); border: 3px solid var(--lime); font-family: var(--display); font-size: 20px; padding: 10px 20px; animation: win-open .2s ease-out both; }

/* Shop */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.card { border: 2px solid var(--ink); background: #FFFFFF; display: flex; flex-direction: column; text-align: left; padding: 0; cursor: pointer; }
.card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.card-body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 4px; }
.card-name { font-family: var(--display); font-size: 18px; }
.price { font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-width: 46px; height: 44px; border: 2px solid var(--ink); background: transparent; font-weight: 800; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--lime); }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.detail-img { position: relative; border: 2px solid var(--ink); }
.detail-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.flip-btn { position: absolute; left: 10px; bottom: 10px; }

/* Cart */
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; border-bottom: 1px dashed var(--ink); padding-bottom: 8px; }
.line img { width: 56px; height: 56px; object-fit: cover; border: 2px solid var(--ink); }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--ink); }
.qty button { width: 34px; height: 34px; border: 0; background: transparent; font-weight: 800; cursor: pointer; }
.qty span { min-width: 26px; text-align: center; font-weight: 800; }
.total { font-family: var(--display); font-size: 24px; }

/* Collector */
.album { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.slot { aspect-ratio: 3 / 4; border: 2px dashed var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 26px; color: var(--muted); background: #EAEAE2; overflow: hidden; padding: 0; cursor: default; }
.slot.is-open { border-style: solid; cursor: zoom-in; }
.slot img { width: 100%; height: 100%; object-fit: cover; }

/* Radio */
.radio { background: var(--ink); color: var(--lime); }
.eq { height: 54px; display: flex; align-items: flex-end; gap: 5px; }
.eq span { width: 9px; height: 25%; background: var(--lime); }
.eq.is-on span { animation: eq .6s ease-in-out infinite; }
.eq span:nth-child(2) { animation-delay: .1s; } .eq span:nth-child(3) { animation-delay: .25s; } .eq span:nth-child(4) { animation-delay: .05s; } .eq span:nth-child(5) { animation-delay: .3s; } .eq span:nth-child(6) { animation-delay: .15s; } .eq span:nth-child(7) { animation-delay: .2s; }
@keyframes eq { 0%, 100% { height: 20%; } 50% { height: 100%; } }
.track { width: 100%; text-align: left; border: 0; background: transparent; color: var(--cream); padding: 8px 0; font-weight: 700; cursor: pointer; border-bottom: 1px solid #2A2A2A; }
.track[aria-current="true"] { color: var(--lime); }

/* Arcade */
.arcade { background: #0A0A0A; color: var(--cream); }
.arcade canvas { display: block; margin: 0 auto; background: #050505; touch-action: none; image-rendering: auto; }
.arcade-stage { position: relative; background: #000000; }
.win-body.arcade { position: relative; }
.game-bar { display: flex; justify-content: flex-end; gap: 6px; padding: 6px 8px; background: #0A0A0A; }
.game-bar .mute-btn { width: 34px; height: 34px; }
.win.is-max .game-bar { position: absolute; top: 8px; right: 8px; z-index: 7; background: transparent; padding: 0; }
.crt-btn { min-height: 34px; padding: 0 10px; background: rgba(17,17,17,.8); color: #8A8A84; border: 2px solid #5A5A5A; font: 800 11px var(--text); letter-spacing: 1px; cursor: pointer; }
.crt-btn[aria-pressed="true"] { color: var(--lime); border-color: var(--lime); }
/* Maximized: the whole game fits on screen, letterboxed, the leaderboard stays below. */
.win.is-max .win-body.arcade { display: flex; flex-direction: column; overflow: hidden; }
.win.is-max .arcade-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.win.is-max .arcade > .pad.stack { display: none; }
.pads { display: none; gap: 8px; padding: 10px; justify-content: center; }
.pads button { width: 64px; height: 52px; border: 2px solid var(--lime); background: transparent; color: var(--lime); font-family: var(--display); font-size: 18px; touch-action: manipulation; }
.overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 20px; background: rgba(5,5,5,.78); }
.launcher { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cab { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; border: 2px solid #2A2A2A; background: #111111; color: var(--cream); text-align: left; cursor: pointer; }
.cab svg { width: 52px; height: 52px; }
.cab:hover, .cab:focus-visible { border-color: var(--lime); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--lime); }
.cab-name { font-family: var(--display); font-size: 20px; color: var(--lime); line-height: 1; }
.cab-blurb { font-size: 13px; line-height: 1.35; color: #B8B8B0; }

/* Admin.exe (Simon) */
.simon-app { background: #111111; }
.simon { position: relative; width: min(300px, 78vw); aspect-ratio: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px; background: #050505; border-radius: 50%; }
.simon-pad { border: 0; background: var(--c); opacity: .38; cursor: pointer; transition: opacity .08s, transform .08s; display: flex; padding: 18px; font-family: var(--display); font-size: 18px; color: var(--ink); }
.simon-pad:nth-child(1) { border-radius: 100% 0 0 0; align-items: flex-start; justify-content: flex-start; padding: 34px; }
.simon-pad:nth-child(2) { border-radius: 0 100% 0 0; align-items: flex-start; justify-content: flex-end; padding: 34px; }
.simon-pad:nth-child(3) { border-radius: 0 0 0 100%; align-items: flex-end; justify-content: flex-start; padding: 34px; }
.simon-pad:nth-child(4) { border-radius: 0 0 100% 0; align-items: flex-end; justify-content: flex-end; padding: 34px; }
.simon-pad.is-lit, .simon-pad:active { opacity: 1; transform: scale(.97); box-shadow: 0 0 28px var(--c); }
.simon.is-playing .simon-pad { cursor: wait; }
.simon.is-wrong { animation: shake .35s linear 2; }
.simon.is-done .simon-pad { opacity: 1; animation: blink .4s steps(2) infinite; }
.simon-core { position: absolute; left: 50%; top: 50%; width: 38%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: #111111; border: 8px solid #050505; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--lime); font-family: var(--display); font-size: 34px; line-height: 1; pointer-events: none; }
.simon-core small { font-family: var(--text); font-weight: 800; font-size: 10px; letter-spacing: 2px; color: var(--cream); }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
@keyframes blink { 50% { opacity: .3; } }
.board { width: 100%; border-collapse: collapse; font-weight: 700; }
.board td { padding: 6px 4px; border-bottom: 1px solid #2A2A2A; }
.board td:last-child { text-align: right; color: var(--lime); }

/* Settings */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 64px; height: 64px; border: 3px solid var(--ink); cursor: pointer; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 4px var(--orange); }

/* Phone mode: apps open full screen, icons form a home screen */
@media (max-width: 760px) {
  .menubar .menu-link { display: none; }
  .watermark { font-size: 22vw; opacity: .7; }
  .icons { left: 0; right: 0; flex-direction: row; justify-content: center; align-content: flex-start; padding: 12px; gap: 8px; }
  .icon { width: 84px; }
  .win, .win.is-max { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; max-width: none; box-shadow: none; border-width: 0; }
  .titlebar { cursor: default; padding: 8px 8px 8px 14px; }
  .titlebar .win-btn[data-act="max"], .titlebar .win-btn[data-act="min"] { display: none; }
  .detail { grid-template-columns: 1fr; }
  .pads { display: flex; flex-wrap: wrap; }
  .start-menu { left: 0; right: 0; width: auto; bottom: var(--taskbar); box-shadow: none; border-width: 3px 0 0; }
  .sm-cols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .win, .toast, .eq.is-on span, .start-menu, .simon.is-wrong, .simon.is-done .simon-pad { animation: none; }
}

/* ===== Balderson OS 1.1: users, Bald Bucks, skins, casino, arcade hub ===== */

/* Extra wallpapers (Skin Shop) */
.desktop[data-wallpaper="checker"], [data-wallpaper="checker"].preview-wall { --wall: #D4F54A; --wall-mark: #111111; --wall-ink: var(--ink); background-color: #D4F54A; background-image: conic-gradient(#111111 25%, transparent 0 50%, #111111 0 75%, transparent 0); background-size: 120px 120px; }
.desktop[data-wallpaper="checker"] .watermark { opacity: .16; }
.desktop[data-wallpaper="halftone"], [data-wallpaper="halftone"].preview-wall { --wall: #FF8FB8; --wall-mark: #E4709B; --wall-ink: var(--ink); background-color: #FF8FB8; background-image: radial-gradient(#111111 22%, transparent 24%), radial-gradient(#111111 22%, transparent 24%); background-size: 18px 18px; background-position: 0 0, 9px 9px; }
.desktop[data-wallpaper="halftone"] .watermark { opacity: .35; }
.desktop[data-wallpaper="chrome"], [data-wallpaper="chrome"].preview-wall { --wall: #C9CCD1; --wall-mark: #A8ADB4; --wall-ink: var(--ink); background-color: #C9CCD1; background-image: linear-gradient(160deg, #F2F3F5 0%, #9CA2AA 35%, #EDEFF2 50%, #8A9098 70%, #D9DCE0 100%); background-size: cover; }
.desktop[data-wallpaper="grid"], [data-wallpaper="grid"].preview-wall { --wall: #0B0B1A; --wall-mark: #2A1E4A; --wall-ink: var(--lime); background-color: #0B0B1A; background-image: linear-gradient(rgba(255,143,184,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,143,184,.35) 1px, transparent 1px), linear-gradient(180deg, #0B0B1A 0%, #2A1240 100%); background-size: 40px 40px, 40px 40px, cover; }
.desktop[data-wallpaper="city"], [data-wallpaper="city"].preview-wall { --wall: #111111; --wall-mark: transparent; --wall-ink: var(--cream); background: #111111 url("/assets/lookbook/banner-illu.jpg") center / cover no-repeat; }
.desktop:is([data-wallpaper="city"],[data-wallpaper="checker"],[data-wallpaper="halftone"],[data-wallpaper="grid"],[data-wallpaper="chrome"]) .icon span { background: var(--ink); color: var(--cream); padding: 2px 5px; }
.preview-wall[data-wallpaper="lime"] { background: #D4F54A; }
.preview-wall[data-wallpaper="burgundy"] { background: #6E1424; } .preview-wall[data-wallpaper="pink"] { background: #FF8FB8; }
.preview-wall[data-wallpaper="denim"] { background: #1E2A40; } .preview-wall[data-wallpaper="black"] { background: #111111; }

/* Cursor skins */
html[data-cursor], html[data-cursor] * { cursor: var(--cursor), auto !important; }
html[data-cursor] input, html[data-cursor] textarea { cursor: text !important; }

/* Menu bar user chip */
.menubar .user-chip { display: flex; align-items: center; gap: 8px; padding: 3px 10px 3px 3px; border: 2px solid #333333; color: var(--cream); }
.menubar .user-chip svg { display: block; }
.chip-bucks { display: inline-flex; align-items: center; gap: 4px; color: var(--lime); margin-left: 4px; }
.bucks-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: var(--lime); font-weight: 800; letter-spacing: 1px; padding: 6px 10px; font-size: 13px; white-space: nowrap; }
.bucks-pill.big { font-size: 16px; padding: 8px 14px; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; font-weight: 800; color: var(--lime); text-decoration: underline; cursor: pointer; }

/* Start menu user */
.sm-head { gap: 0; }
.sm-user { margin-left: auto; display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border: 3px solid var(--ink); background: var(--cream); cursor: pointer; text-align: left; font-weight: 800; letter-spacing: 1px; }
.sm-user strong { font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: .5px; }
.sm-user small { font-size: 11px; }
.sm-user:hover { background: #FFFFFF; }
.sm-foot { gap: 6px; justify-content: flex-start; flex-wrap: wrap; padding: 8px; }

/* Users screen */
.users-screen { position: fixed; inset: 0; z-index: 9000; display: flex; flex-direction: column; background: var(--ink); color: var(--cream); background-image: radial-gradient(#1E1E1E 1.5px, transparent 1.7px); background-size: 20px 20px; animation: win-open .2s ease-out both; overflow: auto; }
.us-top { display: flex; justify-content: space-between; align-items: flex-start; padding: 22px 26px; }
.us-time { font-family: var(--display); font-size: clamp(40px, 8vw, 64px); white-space: nowrap; line-height: .9; color: var(--lime); }
.us-date { font-weight: 800; letter-spacing: 2px; font-size: 13px; margin-top: 6px; }
.us-x { border: 2px solid var(--cream); background: transparent; color: var(--cream); font-weight: 800; letter-spacing: 1px; padding: 10px 14px; cursor: pointer; }
.us-x:hover { background: var(--cream); color: var(--ink); }
.us-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 10px 18px 30px; }
.us-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 7vw, 76px); line-height: .92; text-align: center; }
.us-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.us-tile-wrap { position: relative; }
.us-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 140px; padding: 14px; border: 3px solid transparent; background: transparent; color: var(--cream); font-family: var(--display); font-size: 20px; letter-spacing: .5px; cursor: pointer; }
.us-tile svg { border: 3px solid var(--cream); }
.us-tile:hover, .us-tile:focus-visible { border-color: var(--lime); background: #1C1C1C; }
.us-tile.is-current svg { border-color: var(--lime); box-shadow: 0 0 0 4px var(--lime); }
.us-add .us-plus { width: 96px; height: 96px; border: 3px dashed var(--lime); color: var(--lime); display: flex; align-items: center; justify-content: center; font-size: 60px; line-height: 1; }
.us-forget { position: absolute; top: 4px; right: 10px; width: 26px; height: 26px; border: 2px solid var(--cream); background: var(--ink); color: var(--cream); font-weight: 800; font-size: 11px; cursor: pointer; opacity: 0; }
.us-tile-wrap:hover .us-forget, .us-forget:focus-visible { opacity: 1; }
.us-link { border: 0; background: none; color: var(--lime); font-weight: 800; letter-spacing: 1px; cursor: pointer; padding: 6px; }
.us-card { width: min(380px, 100%); display: flex; flex-direction: column; gap: 12px; background: var(--cream); color: var(--ink); border: 3px solid var(--lime); box-shadow: 10px 10px 0 var(--lime); padding: 22px; }
.us-card .us-link { color: var(--ink); }
.us-wide { width: min(460px, 100%); }
.us-who { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.us-who .h-display { font-size: 32px; }
.us-who svg { border: 3px solid var(--ink); }
.us-err { margin: 0; min-height: 1em; color: #B3121A; font-weight: 700; font-size: 14px; }
.us-hint { font-size: 13px; font-weight: 700; margin-top: -6px; min-height: 1em; }
.lbl-us { font-weight: 800; font-size: 12px; letter-spacing: 2px; margin-bottom: -6px; }
.us-small { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.us-avatars { display: flex; flex-wrap: wrap; gap: 8px; }
.us-av { padding: 0; border: 3px solid var(--ink); background: none; cursor: pointer; line-height: 0; }
.us-av[aria-checked="true"] { box-shadow: 0 0 0 4px var(--orange); }
.us-welcome { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.us-welcome svg { border: 4px solid var(--lime); }
.us-welcome .h-display { font-size: clamp(36px, 6vw, 60px); color: var(--lime); }
.us-foot { text-align: center; padding: 14px; font-weight: 800; letter-spacing: 2px; font-size: 11px; color: #8A8A84; }

/* My user */
.acct-head { display: flex; align-items: center; gap: 16px; padding: 18px; background: var(--lime); border-bottom: 3px solid var(--ink); }
.acct-head svg { border: 3px solid var(--ink); }
.daily { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 2px solid var(--ink); padding: 10px 12px; background: #FFFFFF; }
.daily.is-ready { background: var(--lime); }
.mini-board { width: 100%; border-collapse: collapse; font-weight: 700; }
.mini-board td { padding: 6px 0; border-bottom: 1px dashed var(--ink); }
.mini-board td:last-child { text-align: right; }
.code-row { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 10px; border: 2px solid var(--ink); padding: 6px 6px 6px 10px; background: #FFFFFF; }
.code-row .btn { min-height: 34px; }
.code-row.is-used { opacity: .5; }

/* Skin Shop */
.skinshop { background: var(--cream); }
.ss-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; background: var(--pink); border-bottom: 3px solid var(--ink); }
.ss-tabs { display: flex; gap: 0; overflow-x: auto; border-bottom: 3px solid var(--ink); background: var(--ink); }
.ss-tab { flex: 1; min-height: 44px; border: 0; background: transparent; color: var(--cream); font-weight: 800; letter-spacing: 1px; font-size: 12px; cursor: pointer; padding: 0 12px; white-space: nowrap; }
.ss-tab[aria-selected="true"] { background: var(--lime); color: var(--ink); }
.ss-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; padding: 12px; }
.ss-card { display: flex; flex-direction: column; border: 2px solid var(--ink); background: #FFFFFF; }
.ss-card.is-eq { box-shadow: 0 0 0 3px var(--lime), 0 0 0 5px var(--ink); }
.ss-card > .btn { margin: 0 10px 10px; min-height: 40px; }
.ss-card .btn svg { width: 16px; height: 16px; }
.btn.is-sure { background: var(--orange); }
.ss-body { display: flex; flex-direction: column; gap: 3px; padding: 10px; flex: 1; }
.ss-name { font-family: var(--display); font-size: 20px; }
.ss-blurb { font-size: 13px; line-height: 1.35; color: var(--muted); }
.ss-price { font-weight: 800; font-size: 12px; letter-spacing: 1px; margin-top: 4px; }
.preview-wall, .preview-box { height: 96px; border-bottom: 2px solid var(--ink); }
.preview-box { display: flex; align-items: center; justify-content: center; background: #EAEAE2; }
.preview-radio { background: var(--ink); gap: 5px; align-items: flex-end; padding-bottom: 22px; }
.preview-radio span { width: 9px; background: var(--lime); animation: eq .8s ease-in-out infinite; height: 40%; }
.preview-radio span:nth-child(2) { animation-delay: .1s; } .preview-radio span:nth-child(3) { animation-delay: .3s; } .preview-radio span:nth-child(4) { animation-delay: .15s; }

/* Settings */
.set-user { display: flex; align-items: center; gap: 12px; border: 2px solid var(--ink); padding: 8px; background: #FFFFFF; }
.set-user svg { border: 2px solid var(--ink); flex: none; }
.set-user .btn { margin-left: auto; }
.set-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.set-opt { padding: 0; border: 2px solid var(--ink); background: #FFFFFF; cursor: pointer; display: flex; flex-direction: column; font-weight: 800; font-size: 11px; letter-spacing: 1px; }
.set-opt .preview-wall, .set-opt .preview-box { height: 54px; }
.set-opt span { padding: 5px; }
.set-opt[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--orange); }

/* Game overlays and boards */
.ov-who { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 12px; letter-spacing: 1px; color: #B8B8B0; flex-wrap: wrap; justify-content: center; }
.ov-top { margin: 0; font-weight: 800; letter-spacing: 1px; color: var(--yellow, #FFE14D); font-size: 13px; }
.ov-result { margin: 0; display: flex; flex-direction: column; gap: 4px; font-weight: 800; letter-spacing: 1px; color: var(--cream); min-height: 1em; }
.ov-best { color: var(--pink); font-family: var(--display); font-size: 24px; font-weight: 400; }
.ov-earn { color: var(--lime); font-family: var(--display); font-size: 22px; font-weight: 400; }
.lb-tabs { display: inline-flex; border: 2px solid var(--lime); }
.lb-tabs button { border: 0; background: transparent; color: var(--lime); font-weight: 800; font-size: 11px; letter-spacing: 1px; padding: 7px 10px; cursor: pointer; }
.lb-tabs button[aria-selected="true"] { background: var(--lime); color: var(--ink); }
.lb-rank { width: 34px; color: #8A8A84; }
.lb-who { display: inline-flex; align-items: center; gap: 8px; }
.board tr.is-me td { color: var(--lime); }
.board.big td { padding: 9px 4px; }

/* Arcade hub */
.arcade-hub { background: #0A0A0A; }
.ah-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; background: #0A0A0A; border-bottom: 2px solid #222222; }
.ah-logo { font-size: 26px; color: var(--lime); }
.ah-tabs { display: flex; gap: 6px; }
.ah-tabs button { min-height: 38px; padding: 0 14px; border: 2px solid #333333; background: transparent; color: var(--cream); font-weight: 800; font-size: 12px; letter-spacing: 1px; cursor: pointer; }
.ah-tabs button[aria-selected="true"] { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.ah-body { padding: 16px; }
.ah-banner { width: 100%; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "tag go" "title go" "meta go"; gap: 2px 16px; align-items: center; text-align: left; padding: 16px 18px; margin-bottom: 16px; border: 3px solid var(--lime); background: repeating-linear-gradient(-45deg, #141414 0 14px, #0E0E0E 14px 28px); color: var(--cream); cursor: pointer; }
.ah-banner-tag { grid-area: tag; font-weight: 800; font-size: 11px; letter-spacing: 2px; color: var(--pink); }
.ah-banner-title { grid-area: title; font-size: clamp(26px, 4vw, 40px); color: var(--lime); }
.ah-banner-meta { grid-area: meta; font-weight: 700; font-size: 13px; letter-spacing: 1px; }
.ah-banner-go { grid-area: go; background: var(--lime); color: var(--ink); font-family: var(--display); font-size: 22px; padding: 10px 18px; }
.ah-banner:hover .ah-banner-go { background: var(--cream); }
.ah-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.ah-cab { position: relative; display: flex; flex-direction: column; padding: 0; border: 3px solid var(--c); background: #111111; color: var(--cream); text-align: left; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.ah-cab:hover, .ah-cab:focus-visible { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--c); }
.ah-marquee { display: block; background: var(--c); color: var(--ink); padding: 8px 10px; }
.ah-marquee .h-display { font-size: 22px; }
.ah-casino .ah-marquee { color: var(--cream); }
.ah-screen { position: relative; height: 112px; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, #222222, #050505 70%); border-bottom: 2px solid #222222; }
.ah-screen svg { width: 74px; height: 74px; }
.ah-lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(5,5,5,.72); color: var(--cream); font-weight: 800; letter-spacing: 1px; font-size: 13px; }
.ah-blurb { padding: 10px 10px 6px; font-size: 13px; line-height: 1.35; color: #B8B8B0; min-height: 50px; }
.ah-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 10px 12px; font-weight: 800; font-size: 12px; letter-spacing: .5px; color: var(--cream); }
.ah-stats small { display: block; font-size: 10px; letter-spacing: 2px; color: #8A8A84; margin-bottom: 2px; }
.ah-guest { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px; border: 2px dashed #444444; font-size: 14px; }
.ah-guest .btn { margin-left: auto; flex: none; }
.chip-g { min-height: 36px; padding: 0 12px; border: 2px solid #333333; background: transparent; color: var(--cream); font-weight: 800; font-size: 11px; letter-spacing: 1px; cursor: pointer; }
.chip-g[aria-pressed="true"] { border-color: var(--lime); color: var(--lime); }
.lb-pills { display: flex; flex-wrap: wrap; gap: 6px; }

/* Contest */
.ct-card { border: 3px solid #2A2A2A; margin-bottom: 16px; }
.ct-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px; background: var(--c); color: var(--ink); }
.ct-head h3 { font-size: clamp(28px, 4vw, 42px); }
.ct-head p { margin: 4px 0 0; font-weight: 800; letter-spacing: 1px; font-size: 13px; }
.ct-head .ah-banner-tag { color: var(--ink); }
.ct-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 16px; }
.ct-rules p { margin: 4px 0 14px; line-height: 1.5; font-size: 14px; color: #C8C8C0; }
.ct-prize { font-family: var(--display); font-size: 22px; color: var(--lime) !important; line-height: 1.1 !important; }
.ct-past { display: flex; flex-direction: column; gap: 6px; }
.ct-past-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; padding: 8px 10px; border: 1px solid #2A2A2A; font-size: 13px; }
.ct-past-row span:last-child { color: var(--lime); font-weight: 800; }

/* Casino */
.casino { background: #0A0A0A; color: var(--cream); display: flex; flex-direction: column; }
.bj-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.bj-top .bucks-pill { background: var(--lime); color: var(--ink); }
.bj-guest { margin: 0 16px 10px; padding: 8px 10px; border: 1px dashed #444444; font-size: 13px; }
.felt { flex: 1; margin: 0 16px; min-height: 340px; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; border: 4px solid #2A0A10; background: radial-gradient(ellipse at 50% 45%, #8A1E33 0%, #6E1424 55%, #4A0D18 100%); box-shadow: inset 0 0 0 2px rgba(212,245,74,.25); }
.bj-row { display: flex; flex-direction: column; gap: 8px; }
.bj-label { font-weight: 800; letter-spacing: 2px; font-size: 12px; display: flex; align-items: center; gap: 8px; }
.bj-label b { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--lime); letter-spacing: 0; }
.bj-bet { margin-left: auto; background: var(--ink); color: var(--lime); padding: 3px 8px; }
.bj-cards { display: flex; gap: 10px; min-height: 108px; }
.card-p { position: relative; width: 74px; height: 104px; background: #FFFFFF; border: 2px solid var(--ink); border-radius: 6px; box-shadow: 3px 3px 0 rgba(0,0,0,.35); padding: 5px 6px; display: flex; flex-direction: column; align-items: flex-start; animation: deal .25s ease-out both; animation-delay: calc(var(--i) * 90ms); }
.cp-r { font-family: var(--display); font-size: 22px; line-height: 1; }
.cp-mid { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-top: 14px; }
.card-p.is-back { background: var(--lime); background-image: repeating-linear-gradient(45deg, #111111 0 3px, transparent 3px 10px); align-items: center; justify-content: center; }
.card-p.is-back span { background: var(--ink); color: var(--lime); font-family: var(--display); font-size: 26px; padding: 2px 10px; }
.card-slot { width: 74px; height: 104px; border: 2px dashed rgba(245,245,240,.3); border-radius: 6px; }
@keyframes deal { from { transform: translate(40px, -60px) rotate(8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.bj-banner { min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-weight: 800; letter-spacing: 1px; font-size: 13px; }
.bj-banner .h-display { font-size: 34px; color: var(--lime); letter-spacing: 0; }
.bj-banner.is-on { animation: win-open .25s ease-out both; }
.muted-l { color: rgba(245,245,240,.6); }
.bj-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding: 14px 16px 18px; }
.bj-controls .btn { color: var(--cream); border-color: var(--cream); min-width: 110px; }
.bj-controls .btn-lime { color: var(--ink); border-color: var(--lime); }
.chips-row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.chip-b { width: 50px; height: 50px; border-radius: 50%; border: 4px dashed var(--ink); background: var(--cream); color: var(--ink); font-family: var(--display); font-size: 16px; cursor: pointer; }
.chip-b:nth-child(2) { background: var(--pink); } .chip-b:nth-child(3) { background: var(--sky, #6EC6FF); } .chip-b:nth-child(4) { background: var(--lime); } .chip-b:nth-child(5) { background: var(--orange); } .chip-b:nth-child(6) { background: #FFE14D; }
.chip-b[aria-checked="true"] { outline: 3px solid var(--cream); outline-offset: 3px; transform: translateY(-4px); }
.chip-b[disabled] { opacity: .3; cursor: not-allowed; }

/* Radio stations */
.fm-dial { display: flex; align-items: baseline; justify-content: space-between; border: 2px solid var(--lime); padding: 8px 12px; }
.fm-dial .h-display { font-size: 40px; color: var(--lime); }
.stations { display: flex; flex-direction: column; gap: 4px; }
.station { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 8px; min-height: 42px; padding: 0 10px; border: 2px solid #2A2A2A; background: transparent; color: var(--cream); font-weight: 800; letter-spacing: 1px; font-size: 12px; text-align: left; cursor: pointer; }
.station.is-on { border-color: var(--lime); color: var(--lime); }
.station.is-locked { opacity: .55; }
.st-freq { font-family: var(--display); font-size: 18px; font-weight: 400; }
.st-tag { font-size: 10px; letter-spacing: 2px; }

@media (max-width: 760px) {
  .menubar .user-chip span:not(.chip-bucks) { display: none; }
  .ct-body { grid-template-columns: 1fr; }
  .ah-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .us-time { font-size: 44px; }
  .us-tile { width: 112px; }
  .card-p, .card-slot { width: 58px; height: 84px; }
  .ah-banner { grid-template-areas: "tag" "title" "meta" "go"; grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .users-screen, .card-p, .bj-banner.is-on, .preview-radio span { animation: none; }
}

/* ---------- SHOP.EXE: the walkable store ---------- */
.win-body.shopmap { overflow: hidden; position: relative; background: #1A1414; }
.shop-view { position: absolute; inset: 0; overflow: hidden; }
.shop-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; touch-action: none; cursor: pointer; image-rendering: pixelated; }
.shop-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 55%, transparent 55%, rgba(26,12,10,.5) 100%); }
.shop-near { position: absolute; transform: translateX(-50%); z-index: 3; background: var(--cream); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); padding: 4px 8px; font-weight: 800; font-size: 12px; letter-spacing: 1px; white-space: nowrap; pointer-events: none; }
.shop-zone { position: absolute; left: 16px; top: 14px; z-index: 4; min-width: 220px; padding: 8px 16px; background: var(--cream); border: 4px solid var(--ink); box-shadow: inset 0 0 0 3px var(--orange); font-family: var(--display); font-size: 24px; letter-spacing: 1px; animation: shop-pop .25s ease-out; pointer-events: none; }
@keyframes shop-pop { from { transform: translateY(-80px); } to { transform: none; } }
.shop-hud { position: absolute; right: 14px; top: 14px; z-index: 4; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.shop-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 12px; background: var(--cream); border: 3px solid var(--ink); font: 800 12px/1 var(--text); letter-spacing: 1px; color: var(--ink); }
button.shop-chip { cursor: pointer; }
.shop-chip-ink { background: var(--ink); color: var(--lime); }
.shop-mini { position: absolute; right: 14px; bottom: 14px; z-index: 4; width: 200px; height: 136px; border: 3px solid var(--cream); background: #111111; pointer-events: none; image-rendering: pixelated; }
.shop-help { position: absolute; left: 14px; bottom: 14px; z-index: 4; background: rgba(17,17,17,.82); color: var(--cream); font-weight: 800; font-size: 11px; letter-spacing: 1px; padding: 8px 10px; pointer-events: none; }
.shop-loading { position: absolute; inset: 0; display: grid; place-items: center; z-index: 5; color: var(--lime); font-family: var(--display); font-size: 26px; letter-spacing: 1px; text-align: center; padding: 20px; }
.shop-panel { position: absolute; z-index: 10; background: var(--cream); border: 4px solid var(--ink); color: var(--ink); }
.shop-dialog { left: 6%; right: 6%; bottom: 18px; padding: 16px 22px; box-shadow: inset 0 0 0 4px var(--cream), inset 0 0 0 7px var(--orange); }
.shop-who { font-family: var(--display); font-size: 18px; letter-spacing: 1px; color: #C8461F; }
.shop-text { margin: 4px 0 0; font-size: 19px; line-height: 1.45; font-weight: 600; }
.shop-choices { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.shop-section { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(820px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow: auto; box-shadow: 10px 10px 0 var(--ink); }
.shop-sec-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; background: var(--ink); color: var(--lime); font-family: var(--display); font-size: 22px; letter-spacing: 1px; position: sticky; top: 0; }
.shop-back { min-height: 36px; padding: 0 12px; border: 2px solid var(--lime); background: transparent; color: var(--lime); font: 800 12px/1 var(--text); letter-spacing: 1px; cursor: pointer; }
.shop-flavor { margin: 0; padding: 10px 16px 0; font-weight: 700; font-size: 14px; color: var(--muted); }
.shop-sec-body { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; padding: 14px 16px 18px; }
.shop-photo { position: relative; padding: 0; border: 3px solid var(--ink); background: #FFFFFF; cursor: pointer; align-self: start; }
.shop-photo img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.shop-tag { position: absolute; left: 8px; bottom: 8px; background: var(--ink); color: var(--lime); font-weight: 800; font-size: 11px; padding: 4px 8px; }
.shop-new { position: absolute; right: 8px; top: 8px; background: var(--orange); border: 2px solid var(--ink); font-family: var(--display); font-size: 16px; padding: 2px 8px; }
@media (max-width: 760px) {
  .shop-sec-body { grid-template-columns: 1fr; }
  .shop-mini, .shop-help { display: none; }
  .shop-zone { font-size: 18px; min-width: 0; }
  .shop-text { font-size: 16px; }
}
.shop-inv { width: min(640px, calc(100% - 24px)); }
.shop-inv-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; padding: 14px 16px 18px; align-items: start; }
.shop-slots { display: grid; grid-template-columns: repeat(4, 64px); gap: 8px; }
.shop-slot { width: 64px; height: 64px; display: grid; place-items: center; padding: 0; border: 3px solid var(--ink); background: #FFFFFF; cursor: pointer; }
.shop-slot[aria-pressed="true"] { background: var(--lime); box-shadow: 3px 3px 0 var(--ink); }
.shop-slot.is-empty { border-style: dashed; border-color: #B5AE9E; background: transparent; cursor: default; }
.shop-item { display: flex; flex-direction: column; gap: 8px; text-align: left; letter-spacing: normal; font-weight: 400; }
@media (max-width: 760px) { .shop-inv-body { grid-template-columns: 1fr; } }

/* ---------- BALD NEWS ---------- */
.win-body.bn { background: #E9E0CB; }
.bn-paper { max-width: 900px; margin: 0 auto; padding: 18px 22px 22px; background: #F2EAD8; color: var(--ink); min-height: 100%; box-sizing: border-box; }
.bn-mast { text-align: center; border-bottom: 5px double var(--ink); padding-bottom: 8px; margin-bottom: 14px; }
.bn-meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 5px 0; font-weight: 800; font-size: 11px; letter-spacing: 1px; }
.bn-title { margin: 6px 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(54px, 11vw, 96px); line-height: .9; letter-spacing: 2px; }
.bn-motto { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 15px; margin-top: 4px; }
.bn-section { display: inline-block; align-self: flex-start; background: var(--ink); color: var(--lime); font-weight: 800; font-size: 10px; letter-spacing: 2px; padding: 3px 7px; }
.bn-link, .bn-card, .bn-box { all: unset; cursor: pointer; }
.bn-link:focus-visible, .bn-card:focus-visible, .bn-box:focus-visible, .bn-more:focus-visible, .bn-back:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.bn-h1 { margin: 8px 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(30px, 5vw, 46px); line-height: 1; }
.bn-link:hover .bn-h1, .bn-card:hover .bn-h2, .bn-box:hover .bn-h3 { text-decoration: underline; text-decoration-thickness: 3px; }
.bn-h2 { display: block; font-family: var(--display); font-size: 24px; line-height: 1.05; }
.bn-h3 { display: block; font-family: var(--display); font-size: 20px; line-height: 1.05; margin-top: 6px; }
.bn-dek { margin: 8px 0 0; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 17px; line-height: 1.4; }
.bn-by { margin: 10px 0 0; font-weight: 800; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.bn-body { margin: 10px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 16px; line-height: 1.6; }
.bn-drop::first-letter { float: left; font-family: var(--display); font-size: 52px; line-height: .85; margin: 4px 8px 0 0; }
.bn-small { display: block; margin: 6px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 14px; line-height: 1.45; }
.bn-art { margin-top: 12px; border: 3px solid var(--ink); }
.bn-art svg { display: block; width: 100%; height: auto; }
.bn-front { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }
.bn-lead { display: flex; flex-direction: column; padding-right: 20px; border-right: 1px solid var(--ink); }
.bn-side { display: flex; flex-direction: column; gap: 14px; }
.bn-box { display: flex; flex-direction: column; border: 2px solid var(--ink); padding: 10px 12px; background: #FBF6EA; }
.bn-classified .bn-small { border-top: 1px dashed var(--ink); padding-top: 6px; }
.bn-more, .bn-back { align-self: flex-start; margin-top: 12px; min-height: 40px; padding: 0 14px; border: 2px solid var(--ink); background: var(--ink); color: var(--lime); font: 800 12px/1 var(--text); letter-spacing: 1px; cursor: pointer; }
.bn-back { margin: 0 0 12px; background: transparent; color: var(--ink); }
.bn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 18px; border-top: 3px solid var(--ink); }
.bn-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 16px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.bn-card:nth-child(3n) { border-right: 0; }
.bn-cols { columns: 2; column-gap: 26px; column-rule: 1px solid var(--ink); margin-top: 4px; }
.bn-cols .bn-body:first-child { margin-top: 6px; }
.bn-foot { margin-top: 18px; padding-top: 8px; border-top: 2px solid var(--ink); text-align: center; font-weight: 800; font-size: 10px; letter-spacing: 1px; }
@media (max-width: 760px) {
  .bn-front, .bn-grid { grid-template-columns: 1fr; }
  .bn-lead { padding-right: 0; border-right: 0; }
  .bn-card { border-right: 0; }
  .bn-cols { columns: 1; }
}

/* ---------- ARCADE: the cartridge shelf ---------- */
.win-body.ac { background: #EDE6D6; color: var(--ink); position: relative; }
.ac-wrap { display: flex; gap: 24px; padding: 20px; min-height: 100%; box-sizing: border-box; }
.ac-left { width: 380px; flex: none; display: flex; flex-direction: column; gap: 12px; }
.ac-right { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.ac-label { font-weight: 800; font-size: 10px; letter-spacing: 2px; color: #5E5A50; }
.ac-shelves { display: flex; flex-direction: column; gap: 12px; }
.ac-row { height: 168px; display: flex; align-items: flex-end; justify-content: center; gap: 10px; }
.ac-plank { height: 16px; background: #8A5A2E; border: 3px solid var(--ink); box-shadow: 0 6px 0 #5E3C1E; }
.ac-cart { position: relative; width: 84px; height: 128px; padding: 0; border: 3px solid var(--ink); background: #8E8E88; display: flex; flex-direction: column; box-shadow: 4px 4px 0 var(--ink); cursor: pointer; transition: transform .15s, opacity .15s; }
.ac-cart:hover { transform: translateY(-6px); }
.ac-cart.is-out { transform: translateY(-34px); opacity: .4; }
.ac-cart:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.ac-cart-top { height: 12px; background: repeating-linear-gradient(90deg, #6E6E68 0 5px, #8E8E88 5px 9px); border-bottom: 3px solid var(--ink); }
.ac-cart-label { flex: 1; margin: 6px; background: var(--c); border: 3px solid var(--ink); display: flex; flex-direction: column; justify-content: space-between; padding: 5px; text-align: left; overflow: hidden; }
.ac-cart-num { font-family: var(--display); font-size: 18px; line-height: 1; }
.ac-cart-name { font-family: var(--display); font-size: 13px; line-height: 1; }
.ac-sticker { position: absolute; right: -10px; top: 18px; background: var(--orange); border: 2px solid var(--ink); font-weight: 800; font-size: 9px; letter-spacing: 1px; padding: 3px 5px; transform: rotate(10deg); }
.ac-wrap-film { position: absolute; inset: -3px; background: linear-gradient(120deg, rgba(255,255,255,.55) 0 18%, rgba(255,255,255,.12) 18% 40%, rgba(255,255,255,.45) 40% 46%, rgba(255,255,255,.1) 46%); border: 2px solid rgba(255,255,255,.8); pointer-events: none; }
.ac-band { position: absolute; left: -6px; right: -6px; top: 54px; background: var(--ink); color: var(--pink); font-weight: 800; font-size: 9px; letter-spacing: 1px; padding: 5px 0; transform: rotate(-8deg); }
.ac-empty { width: 84px; height: 128px; box-sizing: border-box; border: 3px dashed #A39C8C; display: grid; place-items: center; text-align: center; font-weight: 800; font-size: 10px; letter-spacing: 1px; color: #6E685A; }
.ac-card { margin-top: auto; display: flex; gap: 12px; align-items: center; background: var(--cream); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); padding: 12px 14px; font-size: 12px; line-height: 1.35; }
.ac-mem { width: 44px; height: 56px; flex: none; box-sizing: border-box; border: 3px solid var(--ink); background: #B5AE9E; position: relative; }
.ac-mem::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 4px; height: 8px; background: repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 6px); }
.ac-mem.on { background: var(--lime); }
.ac-card-text { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.ac-card-title { font-family: var(--display); font-size: 20px; line-height: 1; }
.ac-btn { min-height: 44px; padding: 0 12px; border: 3px solid var(--ink); background: var(--cream); color: var(--ink); font: 800 11px/1 var(--text); letter-spacing: 1px; cursor: pointer; }
.ac-btn.lime { background: var(--lime); }
.ac-tv { background: #2B2B2B; border: 4px solid var(--ink); border-radius: 18px; padding: 16px 16px 12px; box-shadow: 8px 8px 0 var(--ink); display: flex; flex-direction: column; gap: 10px; }
.ac-screen { position: relative; height: 400px; border-radius: 22px; border: 4px solid #000000; background: #050505; overflow: hidden; color: var(--cream); }
.ac-screen::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(rgba(255,255,255,.05) 0 2px, transparent 2px 4px); pointer-events: none; z-index: 5; }
.ac-scr { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; padding: 30px 48px; animation: ac-in .35s ease-out both; }
.ac-scr.left { align-items: stretch; text-align: left; padding: 36px 60px; gap: 14px; }
.ac-boot { animation: ac-boot .5s ease-out both; }
.ac-small { font-weight: 800; font-size: 12px; letter-spacing: 3px; color: #8A8A84; }
.ac-title { font-family: var(--display); font-size: clamp(36px, 5vw, 54px); line-height: 1; color: var(--c); }
.ac-big { font-family: var(--display); font-size: 40px; line-height: 1; }
.ac-big.dim { color: #3A3A3A; } .ac-big.lime { color: var(--lime); letter-spacing: 2px; } .ac-big.ink { color: var(--ink); font-size: 30px; }
.ac-head { font-family: var(--display); font-size: 28px; line-height: 1.05; color: var(--c); }
.ac-head.center { text-align: center; }
.ac-text { font-size: 17px; line-height: 1.6; max-width: 420px; color: #DCDCD4; }
.ac-text.dim { font-size: 13px; color: #A8A8A0; }
.ac-pill { background: var(--lime); color: var(--ink); font-weight: 800; font-size: 11px; letter-spacing: 2px; padding: 4px 8px; }
.ac-press { min-height: 44px; padding: 0 18px; background: transparent; color: var(--cream); border: 0; font: 800 15px/1 var(--text); letter-spacing: 3px; cursor: pointer; animation: ac-blink 1s steps(1) infinite; }
.ac-press:hover, .ac-press:focus-visible { animation: none; color: var(--c); outline: 2px solid var(--c); }
.ac-huh { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px; background: transparent; color: var(--yellow, #FFE14D); border: 2px solid #FFE14D; font: 800 12px/1 var(--text); letter-spacing: 1px; cursor: pointer; }
.ac-huh svg { width: 14px; height: 14px; }
.ac-tvbtn { min-height: 44px; padding: 0 16px; background: var(--lime); color: var(--ink); border: 0; font-family: var(--display); font-size: 18px; letter-spacing: 1px; cursor: pointer; }
.ac-tvbtn.ghost { align-self: center; min-height: 36px; background: transparent; color: var(--cream); border: 2px solid var(--cream); font: 800 11px/1 var(--text); }
.ac-rows { display: flex; flex-direction: column; }
.ac-row-score { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #3A3A3A; font-weight: 800; font-size: 16px; letter-spacing: 1px; }
.ac-row-score span:first-child { color: var(--c); }
.ac-row-score.is-me { color: var(--lime); }
.ac-crawl { position: absolute; inset: 0; z-index: 3; background: radial-gradient(#FFFFFF 1px, transparent 1.5px) 0 0 / 37px 41px, radial-gradient(rgba(255,255,255,.6) 1px, transparent 1.5px) 18px 22px / 53px 47px, #000000; overflow: hidden; perspective: 260px; }
.ac-crawl-tilt { position: absolute; left: 8%; right: 8%; top: 0; bottom: 0; transform: rotateX(28deg); transform-origin: 50% 100%; }
.ac-crawl-text { position: absolute; left: 0; right: 0; top: 100%; color: #FFE14D; text-align: justify; font-weight: 800; font-size: 22px; line-height: 1.7; animation: ac-crawl 55s linear forwards; }
.ac-crawl-text p { margin: 0 0 28px; }
.ac-crawl-title { text-align: center; font-family: var(--display); font-size: 30px; letter-spacing: 2px; margin-bottom: 32px !important; }
.ac-skip { position: absolute; right: 14px; bottom: 12px; z-index: 6; min-height: 34px; padding: 0 12px; background: #000000; color: #FFE14D; border: 2px solid #FFE14D; font: 800 11px/1 var(--text); letter-spacing: 1px; cursor: pointer; }
.ac-tvbar { display: flex; align-items: center; gap: 8px; }
.ac-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.ac-tabs button { min-height: 40px; padding: 0 12px; background: #1C1C1C; color: var(--cream); border: 2px solid #5A5A5A; font: 800 11px/1 var(--text); letter-spacing: 1px; cursor: pointer; }
.ac-tabs button[aria-selected="true"] { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.ac-gap { flex: 1; }
.ac-led { width: 10px; height: 10px; border-radius: 50%; background: #3A3A3A; }
.ac-led.is-on { background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.mute-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 2px solid #5A5A5A; background: #1C1C1C; color: var(--cream); cursor: pointer; }
.mute-btn[aria-pressed="true"] { color: var(--orange); border-color: var(--orange); }
.game-mute { position: absolute; top: 8px; right: 8px; z-index: 6; background: rgba(17,17,17,.8); }
.ac-console { margin: 0 34px; height: 60px; background: #D9D3C4; border: 4px solid var(--ink); display: flex; align-items: center; gap: 14px; padding: 0 14px; box-shadow: 6px 6px 0 var(--ink); }
.ac-slot { width: 130px; height: 16px; flex: none; background: var(--ink); border: 3px solid #6A6A64; position: relative; }
.ac-slot-cart { position: absolute; left: 22px; right: 22px; bottom: 5px; height: 32px; background: var(--c); border: 3px solid var(--ink); animation: ac-drop .3s ease-out both; }
.ac-brand { flex: 1; font-family: var(--display); font-size: 18px; letter-spacing: 1px; }
.ac-wallet { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: var(--lime); padding: 6px 10px; font-family: var(--display); font-size: 16px; }
.ac-wallet svg { width: 16px; height: 16px; }
.ac-bottom { margin-top: auto; display: flex; gap: 14px; align-items: center; }
.ac-gift { position: relative; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 16px 0 10px; background: #E2DCCD; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); text-align: left; color: var(--ink); cursor: pointer; }
.ac-gift.is-ready { background: var(--lime); }
.ac-minwheel { position: relative; width: 42px; height: 42px; flex: none; }
.ac-minwheel-disc { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--ink); background: conic-gradient(#D4F54A 0deg 108deg, #111111 108deg 136.8deg, #FF8FB8 136.8deg 223.2deg, #FF6B3D 223.2deg 237.6deg, #6EC6FF 237.6deg 295.2deg, #BDB6A6 295.2deg 311.4deg, #FFE14D 311.4deg 316.8deg, #6E1424 316.8deg 360deg); }
.ac-gift.is-ready .ac-minwheel-disc { animation: ac-spin 6s linear infinite; }
.ac-minwheel-hub { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink); }
.ac-minwheel::before { content: ""; position: absolute; left: 15px; top: -9px; border: 6px solid transparent; border-top: 9px solid var(--ink); z-index: 1; }
.ac-star { position: absolute; width: 12px; height: 12px; fill: #FFE14D; stroke: var(--ink); stroke-width: 1; animation: ac-twinkle 1.4s ease-in-out infinite; }
.ac-star.a { left: -9px; top: 4px; } .ac-star.b { right: -7px; top: 22px; width: 10px; height: 10px; animation-delay: .7s; }
.ac-gift-text { display: flex; flex-direction: column; gap: 2px; }
.ac-gift-title { font-family: var(--display); font-size: 19px; line-height: 1; }
.ac-hint { flex: 1; font-weight: 800; font-size: 11px; letter-spacing: 1px; line-height: 1.4; color: #5E5A50; }
.ac-play { min-height: 52px; padding: 0 22px; background: var(--ink); color: var(--c); border: 3px solid var(--ink); font-family: var(--display); font-size: 22px; letter-spacing: 1px; cursor: pointer; }
.ac-play:disabled { cursor: default; opacity: .7; }
.ac-modal { position: absolute; inset: 0; z-index: 20; background: rgba(17,17,17,.72); display: grid; place-items: safe center; padding: 16px; overflow: auto; }
.ac-modal[hidden] { display: none; }
.ac-dialog { width: min(470px, 100%); background: var(--cream); border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 0 0 22px; animation: ac-pop .25s ease-out both; }
.ac-dialog-head { align-self: stretch; display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 8px 16px; background: var(--ink); color: var(--lime); font-family: var(--display); font-size: 24px; letter-spacing: 1px; }
.ac-x { min-width: 40px; min-height: 36px; background: transparent; color: var(--lime); border: 2px solid var(--lime); font-weight: 800; cursor: pointer; }
.ac-dialog-sub { font-weight: 700; font-size: 13px; color: #4A4A44; padding: 0 16px; text-align: center; }
.ac-wheel-box { position: relative; width: 300px; height: 300px; }
.ac-wheel { position: absolute; inset: 0; border-radius: 50%; border: 5px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.ac-slice { position: absolute; left: 50%; top: 50%; width: 120px; margin: -9px 0 0 -60px; text-align: center; font-weight: 800; font-size: 11px; letter-spacing: 1px; line-height: 18px; }
.ac-hub { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--lime); border: 4px solid var(--ink); display: grid; place-items: center; font-family: var(--display); font-size: 16px; box-sizing: border-box; }
.ac-pointer { position: absolute; left: 133px; top: -16px; width: 34px; height: 34px; }
.ac-result { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 0 20px; min-height: 0; animation: ac-pop .3s ease-out both; }
.ac-result-text { font-size: 13px; color: #4A4A44; line-height: 1.4; }
.ac-spin { min-width: 220px; min-height: 52px; background: var(--ink); color: var(--lime); border: 3px solid var(--ink); font-family: var(--display); font-size: 22px; letter-spacing: 1px; cursor: pointer; }
.ac-gw { position: relative; z-index: 1; width: min(440px, 100%); }
.ac-gw-wheel { width: min(360px, 78vw, 52vh); min-width: 240px; height: auto; aspect-ratio: 1; image-rendering: pixelated; cursor: pointer; filter: drop-shadow(6px 6px 0 var(--ink)); }
.ac-gw .ac-dialog-sub { max-width: 360px; }
.ac-gw .ac-spin { font-family: "Balder Digits", "Pixelify Sans", var(--display); font-weight: 700; }
.ac-big.ac-gw-jack { background: linear-gradient(90deg, #FF6B3D, #FFE14D, #D4F54A, #6EC6FF, #FF8FB8); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 1px var(--ink); font-size: 40px; }
.ac-confetti { position: absolute; inset: 0; z-index: 2; pointer-events: none; image-rendering: pixelated; }
.ac-spin:disabled { background: #E2DCCD; color: #6A6A64; cursor: default; }
@keyframes ac-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ac-boot { 0% { transform: scaleY(.02); } 40% { transform: scaleY(1); } }
@keyframes ac-drop { from { transform: translateY(-50px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ac-blink { 50% { opacity: 0; } }
@keyframes ac-crawl { from { transform: translateY(-6%); } to { transform: translateY(-132%); } }
@keyframes ac-spin { to { transform: rotate(360deg); } }
@keyframes ac-twinkle { 0%, 100% { transform: scale(.3); opacity: 0; } 50% { transform: scale(1); opacity: 1; } }
@keyframes ac-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 760px) {
  .ac-wrap { flex-direction: column; padding: 12px; }
  .ac-left { width: auto; }
  .ac-row { height: 150px; gap: 6px; }
  .ac-cart, .ac-empty { width: 72px; height: 112px; }
  .ac-screen { height: 340px; }
  .ac-scr { padding: 24px; } .ac-scr.left { padding: 24px; }
  .ac-console { margin: 0; }
  .ac-bottom { flex-wrap: wrap; }
}

/* ARCADE ROOM (pixel art): the room is 1040 x 720 and scaled to the window in arcade.js. Gags live in arcade-room.css. */
.win-body.ac.ar { background: #120E24; color: #F5F5F0; overflow: hidden; }
.ar-fit { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ar-room { position: relative; flex: none; width: 1040px; height: 720px; overflow: hidden; font-family: "Balder Digits", "Pixelify Sans", var(--text); transform-origin: center; }
.ar-room > * { position: absolute; }
.ar-px, .ar-room img { image-rendering: pixelated; }
.ar-bg { left: 1px; top: 0; width: 1038px; height: 720px; }
.ar-sign { font-size: 13px; letter-spacing: 1px; color: #8C88A8; }
.ar-tiny { pointer-events: none; }
.ar-btnlabel { top: 406px; width: 36px; text-align: center; font-size: 9px; }
.ar-hot { padding: 0; border: 0; background: transparent; cursor: pointer; }
.ar-hot:focus-visible, .ar-cart:focus-within { outline: 3px solid #D4F54A; outline-offset: 2px; }
.ar-ab { top: 426px; width: 36px; height: 30px; }
.ar-ab img { display: block; margin: 6px auto 0; width: 24px; height: 18px; }
.ar-ab.is-press img { animation: ar-press .2s ease-out; }
.ar-marquee { left: 408px; top: 64px; width: 222px; text-align: center; font-size: 34px; font-weight: 700; line-height: .95; color: #111111; letter-spacing: 1px; pointer-events: none; }
.ar-stick { left: 435px; top: 393px; width: 36px; height: 54px; transform-origin: 50% 100%; pointer-events: none; }
.ar-stick.tilt-l { animation: ar-tiltL .32s ease-out; }
.ar-stick.tilt-r { animation: ar-tiltR .32s ease-out; }
.ar-coinglow { top: 528px; width: 18px; height: 24px; background: #FF6B3D; opacity: .25; filter: blur(4px); pointer-events: none; }
.ar-coinglow.on { animation: ar-glow 1.4s ease-in-out infinite; }
.ar-coinglow.b.on { animation-delay: .7s; }
.ar-sticker { left: 483px; top: 579px; width: 72px; text-align: center; font-size: 10px; font-weight: 700; color: #111111; pointer-events: none; }
.ar-cart { position: absolute; width: 96px; height: 123px; cursor: pointer; }
.ar-cart-in { position: absolute; left: 0; top: 0; width: 192px; height: 246px; transform: scale(.5); transform-origin: 0 0; }
.ar-contest { position: absolute; left: 6px; top: 48px; padding: 2px 4px; background: #FF8FB8; color: #111111; border: 2px solid #111111; font-size: 9px; font-weight: 700; transform: rotate(-8deg); pointer-events: none; }
.ar-contest[hidden] { display: none; }
.ar-soon { position: absolute; left: -6px; right: -6px; top: 52px; padding: 2px 0; background: #FFE14D; color: #111111; border-top: 2px solid #111111; border-bottom: 2px solid #111111; font-size: 10px; font-weight: 700; text-align: center; transform: rotate(-12deg); pointer-events: none; }
.ar-myst { width: 96px; height: 123px; }
.ar-myst img { display: block; width: 96px; height: 123px; }
.ar-myst.is-shake { animation: ar-qShake .5s ease-out; }
.ar-fallen { left: 292px; top: 614px; width: 192px; height: 36px; transform: scale(.5); transform-origin: 0 0; }
.ar-fallen:empty { display: none; }
.ar-arrow { width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 12px solid #D4F54A; animation: ar-bob .8s ease-in-out infinite; pointer-events: none; transition: left .15s, top .15s; }
.ar-mute { left: 984px; top: 12px; width: 40px; height: 40px; }
/* the high score board on the right wall */
.ar-board { left: 712px; top: 60px; width: 250px; height: 290px; display: flex; flex-direction: column; gap: 4px; }
.ar-board-head { font-size: 20px; font-weight: 700; color: #D4F54A; }
.ar-board-sub { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: #7FA07A; }
.ar-board-sub > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ar-rows { display: flex; flex-direction: column; gap: 10px; margin: 10px 0 auto; }
.ar-row { display: flex; gap: 8px; font-size: 17px; }
.ar-row .ar-rank { width: 20px; }
.ar-row .ar-name { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ar-row.me { color: #D4F54A; }
.ar-row.dim { font-size: 13px; color: #7FA07A; }
.ar-row.small { justify-content: space-between; font-size: 12px; }
.ar-row .lime { color: #D4F54A; }
.ar-link { padding: 0; border: 0; background: transparent; color: #D4F54A; font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
/* the cabinet screen */
.ar-screen { left: 435px; top: 159px; width: 168px; height: 210px; overflow: hidden; }
.ar-tabs { display: flex; gap: 4px; padding: 6px 6px 0; }
.ar-tabs button { flex: 1; min-height: 22px; padding: 0; background: transparent; color: #D4F54A; border: 1px solid #D4F54A; font: 10px "Balder Digits", "Pixelify Sans", var(--text); cursor: pointer; }
.ar-tabs button[aria-selected="true"] { background: #D4F54A; color: #111111; }
.ar-scr { position: absolute; left: 0; right: 0; top: 34px; bottom: 0; padding: 6px 10px 8px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; line-height: 1.3; }
.ar-scr.center { align-items: center; text-align: center; }
.ar-title { font-size: 17px; font-weight: 700; line-height: 1.05; }
.ar-txt { font-size: 11px; color: #CFCBE6; }
.ar-txt.dim, .ar-dim { font-size: 11px; color: #8C88A8; }
.ar-head { font-size: 16px; font-weight: 700; }
.ar-head.pink { color: #FF8FB8; } .ar-head.blue { color: #6EC6FF; }
.ar-small { margin-top: auto; font-size: 10px; color: #8C88A8; }
.ar-small.lime { color: #D4F54A; }
.ar-mid { font-size: 13px; }
.ar-q { font-size: 40px; font-weight: 700; line-height: 1; }
.ar-huh { margin-top: auto; width: 100%; min-height: 34px; background: #FF8FB8; color: #111111; border: 2px solid #111111; box-shadow: 0 3px 0 #C85C86; font: 700 18px "Balder Digits", "Pixelify Sans", var(--text); cursor: pointer; animation: ar-huhPulse 1.6s ease-in-out infinite; }
.ar-huh:active { transform: translateY(2px); box-shadow: 0 1px 0 #C85C86; }
.ar-ctas { margin-top: auto; width: 100%; display: flex; gap: 4px; }
.ar-play { flex: 1; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; background: #D4F54A; color: #111111; border: 2px solid #111111; box-shadow: 0 3px 0 #8FA82A; font: 700 22px "Balder Digits", "Pixelify Sans", var(--text); letter-spacing: 1px; cursor: pointer; animation: ar-playPulse 1.2s ease-in-out infinite; }
.ar-play:hover { background: #E4FF6A; }
.ar-play:active { transform: translateY(2px); box-shadow: 0 1px 0 #8FA82A; }
.ar-tri { width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 12px solid #111111; }
.ar-ctas .ar-huh.small { margin-top: 0; width: 48px; flex: none; min-height: 44px; padding: 0; font-size: 12px; animation: none; }
.ar-btnlabel.play { font-size: 11px; font-weight: 700; }
.ar-ab.is-play::after { content: ""; position: absolute; left: 3px; top: 3px; width: 30px; height: 24px; border-radius: 50%; box-shadow: 0 0 0 0 rgba(212,245,74,.6); animation: ar-aRing 1.2s ease-out infinite; pointer-events: none; }
@keyframes ar-playPulse { 0%, 100% { box-shadow: 0 3px 0 #8FA82A, 0 0 0 0 rgba(212,245,74,0); } 50% { box-shadow: 0 3px 0 #8FA82A, 0 0 0 5px rgba(212,245,74,.35); } }
@keyframes ar-aRing { 0% { box-shadow: 0 0 0 0 rgba(212,245,74,.7); } 100% { box-shadow: 0 0 0 10px rgba(212,245,74,0); } }
.ar-press { font-size: 12px; color: #D4F54A; animation: ar-blink 1s steps(1) infinite; }
.ar-press.still { animation: none; color: #8C88A8; }
.ar-scrbtn { align-self: flex-start; min-height: 26px; padding: 0 10px; background: #D4F54A; color: #111111; border: 2px solid #111111; font: 700 11px "Balder Digits", "Pixelify Sans", var(--text); cursor: pointer; }
.ar-noise { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, #1A1D24 0 2px, #05070A 2px 4px), radial-gradient(#FFFFFF 1px, transparent 1.5px) 0 0 / 7px 5px; animation: ar-noise .12s steps(3) infinite; }
.ar-crawlbox { position: absolute; left: 0; top: 0; width: 420px; height: 525px; transform: scale(.4); transform-origin: 0 0; }
.ar-crawlbox .ac-crawl-text { font-family: var(--text); }
.ar-theater { position: absolute; inset: 0; z-index: 15; overflow: hidden; background: radial-gradient(#FFFFFF 1px, transparent 1.5px) 0 0 / 37px 41px, radial-gradient(rgba(255,255,255,.6) 1px, transparent 1.5px) 18px 22px / 53px 47px, #000000; animation: ar-theaterIn .35s ease-out both; }
.ar-theater[hidden] { display: none; }
.ar-theater-box { position: absolute; left: 50%; top: 50%; width: 420px; height: 525px; transform-origin: center; }
.ar-theater-box .ac-crawl { background: transparent; }
.ar-theater-box .ac-crawl-text { font-family: var(--text); }
.ar-theater-skip { position: absolute; right: 16px; bottom: 16px; z-index: 2; min-height: 34px; padding: 0 14px; display: flex; align-items: center; gap: 8px; background: #000000; color: #FFE14D; border: 2px solid #FFE14D; font: 700 14px "Balder Digits", "Pixelify Sans", var(--text); letter-spacing: 1px; cursor: pointer; }
.ar-theater-skip span { font-size: 10px; opacity: .6; }
.ar-theater-skip:hover { background: #FFE14D; color: #000000; }
@keyframes ar-theaterIn { from { opacity: 0; } to { opacity: 1; } }
.ar-skip { position: absolute; right: 6px; bottom: 6px; z-index: 4; min-height: 22px; padding: 0 8px; background: #000000; color: #FFE14D; border: 1px solid #FFE14D; font: 800 9px var(--text); letter-spacing: 1px; cursor: pointer; }
@keyframes ar-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes ar-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes ar-glow { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes ar-noise { 0% { background-position: 0 0; } 100% { background-position: 37px 23px; } }
@keyframes ar-press { 0% { transform: translateY(0); } 40% { transform: translateY(3px); } 100% { transform: translateY(0); } }
@keyframes ar-tiltL { 0%, 100% { transform: rotate(0); } 30%, 60% { transform: rotate(-24deg); } }
@keyframes ar-tiltR { 0%, 100% { transform: rotate(0); } 30%, 60% { transform: rotate(24deg); } }
@keyframes ar-qShake { 0%, 100% { transform: none; } 20% { transform: translate(-3px,-2px) rotate(-3deg); } 40% { transform: translate(3px,0) rotate(3deg); } 60% { transform: translate(-2px,-1px) rotate(-2deg); } 80% { transform: translate(2px,0) rotate(1deg); } }
@keyframes ar-huhPulse { 0%, 100% { box-shadow: 0 3px 0 #C85C86, 0 0 0 0 rgba(255,143,184,0); } 50% { box-shadow: 0 3px 0 #C85C86, 0 0 0 4px rgba(255,143,184,.35); } }
[data-carts] { left: 0; top: 0; }
.arcade canvas:focus, .arcade canvas:focus-visible { outline: none; }

/* MESSAGES: answering machine on the left (pixel), mailbox on the right (brand cream) */
.win-body.msg { padding: 0; overflow: hidden; background: #EDE6D6; }
.msg-wrap { display: flex; height: 100%; min-height: 600px; }
.msg-left { position: relative; width: 420px; flex: none; background: #1B1530; color: #F5F5F0; display: flex; flex-direction: column; gap: 14px; padding: 18px 14px; box-sizing: border-box; }
.msg-head { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.msg-title { font-family: var(--display); font-size: 28px; letter-spacing: 1px; }
.msg-new { padding: 3px 8px; background: #E5242B; color: #FFFFFF; font: 700 12px "Balder Digits", "Pixelify Sans", var(--text); }
.msg-new[hidden] { display: none; }
.msg-head .mute-btn { margin-left: auto; width: 36px; height: 36px; }
.msg-machine { position: relative; width: 336px; height: 216px; margin: 0 auto; flex: none; }
.msg-px { image-rendering: pixelated; }
.msg-machine > img:first-child { display: block; width: 336px; height: 216px; }
.msg-reel { position: absolute; top: 87px; width: 30px; height: 30px; }
.msg-reel.on { animation: msg-spin 1.2s linear infinite; }
.msg-reel.b.on { animation-duration: 1.6s; }
.msg-lcd { position: absolute; left: 201px; top: 45px; width: 114px; height: 48px; display: flex; flex-direction: column; justify-content: center; font-family: "Balder Digits", "Pixelify Sans", var(--text); color: #1E2A0A; line-height: 1.15; font-size: 12px; }
.msg-lcd b { font-size: 17px; }
.msg-ledlight { position: absolute; left: 207px; top: 111px; width: 12px; height: 12px; background: #5A0E12; }
.msg-ledlight.on { background: #FF2A2A; box-shadow: 0 0 8px #FF2A2A; animation: msg-blink 1s steps(1) infinite; }
.msg-keys { position: absolute; left: 30px; top: 156px; width: 276px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.msg-key { min-height: 36px; padding: 0; background: #C9C2B0; color: #111111; border: 2px solid #000000; box-shadow: inset 0 -4px 0 #8E877A, inset 0 2px 0 #E6E0D0; font: 700 12px "Balder Digits", "Pixelify Sans", var(--text); cursor: pointer; }
.msg-key[aria-pressed="true"] { background: #D4F54A; box-shadow: inset 0 -2px 0 #9AB82A; transform: translateY(2px); }
.msg-bar { height: 6px; background: #2E2748; margin: 0 8px; }
.msg-bar span { display: block; height: 100%; width: 0; background: #D4F54A; }
.msg-scroll { position: relative; height: 180px; flex: none; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.msg-lines { position: absolute; left: 0; right: 0; top: 0; transform: translateY(190px); transition: transform .4s linear; }
.msg-lines p { margin: 0 0 6px; font-size: 13px; font-weight: 700; line-height: 1.35; color: transparent; }
.msg-lines.on p { color: #3E3858; }
.msg-lines.on p.past { color: #5E587E; }
.msg-lines.on p.now { color: #F5F5F0; }
.msg-lines p.cough { animation: msg-glitch .5s steps(2) 2; }
.msg-idle { position: absolute; left: 0; right: 0; top: 74px; text-align: center; font: 15px "Balder Digits", "Pixelify Sans", var(--text); color: #D4F54A; }
.msg-idle[hidden] { display: none; }
.msg-chapters { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 8px; }
.msg-chip { min-height: 30px; padding: 0 9px; background: transparent; color: #B9B4D6; border: 2px solid #4A4466; font: 11px "Balder Digits", "Pixelify Sans", var(--text); cursor: pointer; }
.msg-chip[aria-pressed="true"] { background: #D4F54A; color: #111111; border-color: #D4F54A; }
.msg-openrow { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 8px; margin-top: auto; font-size: 12px; line-height: 1.4; color: #8C88A8; }
.msg-openrow span { flex: 1; }
.msg-open { min-height: 40px; padding: 0 14px; background: #D4F54A; color: #111111; border: 2px solid #111111; font: 800 12px var(--text); letter-spacing: 1px; cursor: pointer; }
.msg-open[hidden] { display: none; }
.msg-right { flex: 1; min-width: 0; display: flex; flex-direction: column; color: #111111; }
.msg-tabs { display: flex; align-items: center; gap: 8px; padding: 18px 22px 14px; border-bottom: 2px solid #111111; }
.msg-tab { min-height: 38px; padding: 0 14px; background: transparent; color: #111111; border: 2px solid #111111; font: 800 12px var(--text); letter-spacing: 1px; cursor: pointer; }
.msg-tab[aria-selected="true"] { background: #111111; color: #EDE6D6; }
.msg-who { margin-left: auto; font-size: 11px; font-weight: 800; letter-spacing: 1px; color: #5E5A50; }
.msg-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.msg-list { flex: none; max-height: 52%; overflow: auto; }
.msg-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 8px 14px; background: transparent; border: 0; border-bottom: 2px solid #D3CAB4; text-align: left; color: #111111; font: inherit; cursor: pointer; }
.msg-row[aria-selected="true"] { background: #F7F2E6; box-shadow: inset 4px 0 0 #111111; }
.msg-badge { flex: none; width: 36px; height: 36px; border: 2px solid #111111; display: grid; place-items: center; font: 700 10px "Balder Digits", "Pixelify Sans", var(--text); }
.msg-rowtext { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.msg-from, .msg-meta, .msg-date { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: #5E5A50; }
.msg-subj { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-subj.unread { font-weight: 800; }
.msg-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #E5242B; }
.msg-dot[hidden] { visibility: hidden; display: block; }
.msg-note { padding: 12px 14px; font-size: 13px; line-height: 1.5; background: #F7F2E6; border-bottom: 2px solid #D3CAB4; }
.msg-link { padding: 0; border: 0; background: transparent; font: inherit; font-weight: 800; text-decoration: underline; color: #111111; cursor: pointer; }
.msg-read { flex: 1; min-height: 0; overflow: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; }
.msg-h { margin: 0; font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.05; }
.msg-h.small { font-size: 24px; }
.msg-body { margin: 0; font-size: 15px; line-height: 1.55; max-width: 520px; white-space: pre-wrap; }
.msg-actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.msg-btn { min-height: 40px; padding: 0 16px; background: transparent; color: #111111; border: 2px solid #111111; font: 800 12px var(--text); letter-spacing: 1px; cursor: pointer; }
.msg-btn.ink { background: #111111; color: #EDE6D6; }
.msg-btn.lime { background: #D4F54A; box-shadow: 4px 4px 0 #111111; min-height: 44px; }
.msg-btn:disabled { opacity: .6; cursor: default; }
.msg-empty { padding: 28px 22px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; font-size: 15px; }
.msg-empty p { margin: 0; }
.msg-tk { flex: 1; min-height: 0; display: flex; }
.msg-tklist { width: 230px; flex: none; border-right: 2px solid #111111; overflow: auto; }
.msg-row.tk { flex-direction: column; align-items: flex-start; gap: 4px; }
.msg-tktop { display: flex; width: 100%; gap: 6px; align-items: center; font-size: 12px; }
.msg-status { margin-left: auto; padding: 2px 6px; font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.msg-tksubj { font-size: 14px; font-weight: 700; }
.msg-thread { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 16px 20px; }
.msg-bubbles { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.msg-bubble { align-self: flex-start; max-width: 82%; padding: 10px 12px; background: #F7F2E6; border: 2px solid #111111; font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.msg-bubble.me { align-self: flex-end; background: #111111; color: #EDE6D6; }
.msg-bubble span { display: block; font-size: 10px; font-weight: 800; letter-spacing: 1px; margin-bottom: 4px; opacity: .7; }
.msg-reply { display: flex; gap: 8px; }
.msg-field { width: 100%; box-sizing: border-box; min-height: 40px; padding: 8px 10px; background: #F7F2E6; border: 2px solid #111111; font: inherit; font-size: 14px; color: #111111; }
.msg-field.grow { flex: 1; min-height: 90px; resize: none; }
.msg-write { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 18px 22px; overflow: auto; }
.msg-sub { margin: 0; font-size: 14px; line-height: 1.5; color: #3A372F; }
.msg-types { display: flex; flex-wrap: wrap; gap: 8px; }
.msg-type { min-height: 38px; padding: 0 12px; background: transparent; color: #111111; border: 2px solid #111111; font: 800 11px var(--text); letter-spacing: 1px; cursor: pointer; }
.msg-type[aria-pressed="true"] { background: #111111; color: #EDE6D6; }
.msg-sendrow { display: flex; align-items: center; gap: 12px; }
.msg-sendrow .msg-field { max-width: 280px; }
.msg-gap { flex: 1; }
.msg-check { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.msg-check input { width: 18px; height: 18px; accent-color: #111111; }
.icon.has-new .msg-led { animation: msg-blink 1s steps(1) infinite; }
.icons:not(.is-free) .icon.has-new { position: relative; }
.icon.has-new::after { content: "1"; position: absolute; top: 2px; right: 22px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #E5242B; color: #FFFFFF; font: 800 11px/18px var(--text); text-align: center; }
@keyframes msg-spin { to { transform: rotate(360deg); } }
@keyframes msg-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .15; } }
@keyframes msg-glitch { 0%, 100% { transform: none; filter: none; } 20% { transform: translateX(3px); filter: hue-rotate(90deg); } 40% { transform: translateX(-3px); } 60% { transform: none; filter: none; } }
@media (max-width: 760px) {
  .msg-wrap { flex-direction: column; height: auto; }
  .msg-left { width: 100%; }
  .msg-tk { flex-direction: column; }
  .msg-tklist { width: 100%; border-right: 0; border-bottom: 2px solid #111111; }
}
.ov-file { display: flex; flex-direction: column; gap: 3px; min-width: 260px; max-width: 420px; padding: 10px 14px; background: #F5F5F0; color: #111111; border: 2px solid #111111; box-shadow: 4px 4px 0 #D4F54A; text-align: left; font-size: 12px; line-height: 1.4; }
.ov-file-head { font-family: var(--display); font-size: 18px; letter-spacing: 1px; border-bottom: 2px solid #111111; padding-bottom: 3px; margin-bottom: 3px; }
.ov-file b { font-weight: 800; }

/* ---------- PET.EXE: the Page-Pet ---------- */
.pt-body { background: #E5DDCB; }
.pt-loading { padding: 40px; font-weight: 800; letter-spacing: 2px; }
.pt-wrap { display: flex; gap: 18px; padding: 16px; min-height: 100%; box-sizing: border-box; }
.pt-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-width: 0; }
.pt-hint { margin: 0; max-width: 460px; text-align: center; font-size: 12px; line-height: 1.5; color: #4A4A44; }
.pt-pager { position: relative; width: 500px; height: 300px; flex: none; }
.pt-clip { position: absolute; right: -14px; top: -22px; width: 70px; height: 250px; border-radius: 14px; background: #111111; border: 4px solid #111111; }
.pt-antenna { position: absolute; left: 34px; top: -20px; width: 34px; height: 36px; border-radius: 8px 8px 0 0; background: #1E1E1E; border: 4px solid #111111; }
.pt-shell { position: absolute; inset: 0; border-radius: 28px; background: #1E1E1E; border: 4px solid #111111; box-shadow: 8px 8px 0 #111111; }
.pt-lcd { position: absolute; left: 22px; top: 26px; width: 320px; height: 172px; background: #C4CFA1; border: 7px solid #111111; border-radius: 6px; box-shadow: inset 0 0 0 3px #B5C08F; overflow: hidden; font-family: "Balder Digits", "Pixelify Sans", sans-serif; color: #1F2418; }
.pt-icons { position: absolute; left: 6px; right: 6px; top: 5px; display: flex; justify-content: space-between; }
.pt-ic { width: 22px; height: 22px; display: grid; place-items: center; }
.pt-ic.is-sel { background: #E2E9C6; outline: 2px solid #1F2418; }
.pt-ic span { width: 14px; height: 14px; image-rendering: pixelated; }
.pt-area { position: absolute; left: 0; right: 0; top: 32px; bottom: 0; border-top: 2px solid #8B956D; }
.pt-clock { position: absolute; left: 5px; top: 3px; font-size: 11px; }
.pt-stagename { position: absolute; right: 5px; top: 3px; font-size: 11px; }
.pt-lives { position: absolute; right: 6px; top: 18px; display: flex; gap: 2px; }
.pt-lives i { width: 10px; height: 10px; image-rendering: pixelated; }
.pt-floor { position: absolute; left: 0; right: 0; bottom: 10px; height: 2px; background: #8B956D; }
.pt-prop { position: absolute; bottom: 11px; width: 28px; height: 28px; image-rendering: pixelated; }
.pt-prop.pt-big { width: 42px; height: 42px; }
.pt-prop.is-dim { opacity: .35; }
.pt-badge { position: absolute; right: 14px; bottom: 54px; font-size: 11px; }
.pt-sprite { position: absolute; bottom: 11px; image-rendering: pixelated; }
.pt-sprite.is-bob { animation: pt-bob .5s ease-in-out infinite; }
@keyframes pt-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.pt-mess { position: absolute; bottom: 10px; width: 21px; height: 21px; image-rendering: pixelated; }
.pt-caption { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 11px; line-height: 10px; background: #C4CFA1; }
.pt-caption:empty { display: none; }
.pt-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px; text-align: center; font-size: 12px; background: #C4CFA1; }
.pt-over strong { font-size: 20px; font-weight: 700; }
.pt-over.is-top { inset: 0 0 auto 0; padding: 4px 6px 6px; gap: 1px; font-size: 11px; }
.pt-over.is-top strong { font-size: 15px; }
.pt-stats { position: absolute; inset: 0; padding: 6px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 10px; }
.pt-srow { display: flex; align-items: center; gap: 6px; }
.pt-srow > span:first-child { width: 56px; }
.pt-sbar { flex: 1; height: 8px; border: 2px solid #1F2418; position: relative; }
.pt-sbar i { position: absolute; left: 0; top: 0; bottom: 0; background: #1F2418; }
.pt-banner { position: absolute; left: 29px; top: 67px; width: 320px; height: 20px; display: flex; align-items: center; padding: 0 6px; box-sizing: border-box; background: #1F2418; color: #C4CFA1; font-family: "Balder Digits", "Pixelify Sans", sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; }
.pt-led { position: absolute; right: 28px; top: 18px; width: 18px; height: 18px; border-radius: 50%; background: #5A2A26; border: 2px solid #111111; }
.pt-led.on { background: #FF3B2A; box-shadow: 0 0 0 4px rgba(255,59,42,.35), 0 0 14px #FF3B2A; }
.pt-call { position: absolute; right: 54px; top: 21px; font-weight: 800; font-size: 11px; letter-spacing: 2px; color: #F5F5F0; }
.pt-keys { position: absolute; right: 28px; top: 56px; display: flex; flex-direction: column; gap: 10px; }
.pt-key { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 12px; color: #F5F5F0; }
.pt-key button { width: 70px; height: 30px; border-radius: 16px; background: #3A3A3A; border: 3px solid #111111; box-shadow: inset 0 -5px 0 rgba(0,0,0,.25); cursor: pointer; }
.pt-key button:active { box-shadow: none; transform: translateY(2px); }
.pt-brand { position: absolute; left: 26px; bottom: 22px; font-family: "Balder Digits", "Pixelify Sans", sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 3px; color: #F5F5F0; }
.pt-grill { position: absolute; right: 30px; bottom: 22px; display: flex; gap: 5px; }
.pt-grill i { width: 5px; height: 26px; border-radius: 3px; background: rgba(255,255,255,.18); }
.pt-side { width: 300px; flex: none; display: flex; flex-direction: column; gap: 10px; }
.pt-head { display: flex; flex-direction: column; gap: 4px; }
.pt-head .h-display { font-size: 30px; }
.pt-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pt-act { min-height: 44px; padding: 0 6px; display: flex; align-items: center; gap: 6px; background: #ECE7DA; border: 2px solid #111111; text-align: left; cursor: pointer; color: #111111; }
.pt-act:hover:not([disabled]) { background: var(--lime); }
.pt-act[disabled] { opacity: .45; cursor: not-allowed; }
.pt-act strong { display: block; font-size: 12px; font-weight: 800; }
.pt-act small { display: block; font-size: 10px; font-weight: 600; opacity: .7; line-height: 1.2; }
.pt-aic { width: 28px; height: 28px; flex: none; image-rendering: pixelated; }
.pt-bars { display: flex; flex-direction: column; gap: 5px; background: var(--cream); border: 2px solid #111111; padding: 10px 12px; }
.pt-brow { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; }
.pt-brow > span:first-child { width: 62px; }
.pt-brow > span:last-child { width: 26px; text-align: right; }
.pt-bar { flex: 1; height: 11px; background: #E2DCCD; border: 2px solid #111111; position: relative; }
.pt-bar i { position: absolute; left: 0; top: 0; bottom: 0; }
.pt-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.pt-adopt { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.pt-ahead { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.pt-ahead .h-display { font-size: 30px; }
.pt-wallet { flex: none; padding: 6px 10px; background: var(--ink); color: var(--lime); font-weight: 800; font-size: 12px; letter-spacing: 1px; }
.pt-rule { margin: 0; font-size: 12px; line-height: 1.5; color: #4A4A44; }
.pt-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.pt-card { display: flex; flex-direction: column; gap: 6px; padding: 8px; background: var(--cream); border: 2px solid #111111; }
.pt-card.is-active { background: var(--lime); }
.pt-card.is-dev { background: #E2DCCD; }
.pt-card .btn { min-height: 36px; padding: 0 6px; font-size: 11px; }
.btn-gold { background: #FFD23F; }
.btn-orange { background: var(--orange); }
.pt-port { position: relative; height: 112px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; box-sizing: border-box; background: #C4CFA1; border: 4px solid #111111; border-radius: 4px; overflow: hidden; }
.pt-pspr { image-rendering: pixelated; }
.pt-pspr.is-locked { filter: brightness(.35) contrast(1.2); }
.pt-num { position: absolute; left: 6px; top: 4px; font-family: "Balder Digits", "Pixelify Sans", sans-serif; font-size: 12px; color: #1F2418; z-index: 1; }
.pt-grad { position: absolute; right: 4px; top: 4px; background: #1F2418; color: #C4CFA1; padding: 1px 5px; font-family: "Balder Digits", "Pixelify Sans", sans-serif; font-size: 10px; }
.pt-tape { background: repeating-linear-gradient(135deg, #FFD23F 0 14px, #111111 14px 28px); align-items: center; }
.pt-devlabel { background: #111111; color: #FFD23F; padding: 3px 7px; font-weight: 800; font-size: 10px; letter-spacing: 1px; transform: rotate(-6deg); white-space: nowrap; }
.pt-cname { font-family: var(--display); font-weight: 400; font-size: 19px; line-height: 1; }
/* tray pager in the menubar */
.menubar .pager-chip { position: relative; display: flex; align-items: center; gap: 6px; padding: 3px 8px; border: 2px solid #333333; color: var(--cream); font-weight: 800; font-size: 11px; letter-spacing: 1px; }
.pager-chip .pc-body { position: relative; width: 26px; height: 16px; border-radius: 4px; background: #1E1E1E; border: 2px solid var(--cream); }
.pager-chip .pc-body i { position: absolute; left: 2px; top: 2px; width: 12px; height: 8px; background: #C4CFA1; }
.pager-chip .pc-led { position: absolute; right: -5px; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: #5A2A26; border: 1px solid #111111; }
.pager-chip.is-alert .pc-led { background: #FF3B2A; animation: pc-blink 1s steps(2) infinite; }
.pager-chip.is-urgent .pc-led { background: #FF3B2A; box-shadow: 0 0 8px #FF3B2A; animation: none; }
@keyframes pc-blink { 50% { background: #5A2A26; } }
/* creatures that broke out of the pager wander along the bottom of the desktop */
.pet-roam { position: absolute; bottom: calc(var(--taskbar) + 2px); z-index: 4; image-rendering: pixelated; cursor: pointer; transition: left 1.6s linear; border: 0; padding: 0; background-color: transparent; }
.pet-roam.is-flip { transform: scaleX(-1); }
@media (max-width: 760px) {
  .pt-wrap { flex-direction: column; padding: 10px; }
  .pt-pager { transform: scale(.66); transform-origin: top center; margin-bottom: -100px; }
  .pt-side { width: auto; }
  .pt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menubar .pager-chip span.pc-text { display: none; }
}
.menubar .pager-chip[hidden] { display: none; }
.shop-chip-pet { background: #FFD23F; }
.shop-chip-pet[hidden] { display: none; }
.shop-animals { display: flex; flex-wrap: wrap; gap: 12px; padding: 4px 0; }
.shop-animal { width: 180px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; background: #8FD3F5; border: 2px solid #111111; font-size: 12px; line-height: 1.4; }
.shop-animal strong { font-family: var(--display); font-weight: 400; font-size: 20px; }
.shop-animal-spr { image-rendering: pixelated; align-self: center; }
/* the floating Page-Pet: only the pager, draggable over the desktop */
.pg-float { position: absolute; z-index: 4000; width: 520px; height: 330px; padding: 26px 18px 0 4px; box-sizing: border-box; cursor: grab; touch-action: none; user-select: none; }
.pg-float.is-dragging { cursor: grabbing; }
.pg-float.is-dragging .pt-shell { box-shadow: 14px 14px 0 rgba(17,17,17,.6); }
.pg-float.is-ping { animation: pg-ping .5s ease-in-out 2; }
@keyframes pg-ping { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-2deg); } 75% { transform: rotate(2deg); } }
.pg-float .pt-pager { position: relative; }
.pt-ic { border: 0; padding: 0; background: transparent; cursor: pointer; }
.pt-x { position: absolute; right: -10px; top: -10px; z-index: 3; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: var(--ink); border: 3px solid #111111; font: 800 13px/1 var(--text); cursor: pointer; box-shadow: 2px 2px 0 #111111; }
.pt-x:hover { background: var(--lime); }
.pt-tip { position: absolute; left: 26px; top: 238px; font-family: "Balder Digits", "Pixelify Sans", sans-serif; font-size: 12px; letter-spacing: 1px; color: var(--lime); }
@media (max-width: 760px) {
  .pg-float { transform: scale(.62); transform-origin: top left; }
}
/* PET.EXE daily care: four care icons on top, then the mini game in the screen */
.pt-care-icons { justify-content: flex-start; gap: 4px; align-items: center; }
.pt-care-icons .pt-ic { position: relative; }
.pt-care-icons .pt-ic.is-done::after { content: ""; position: absolute; right: -1px; bottom: 1px; width: 7px; height: 4px; border-left: 2px solid #1F2418; border-bottom: 2px solid #1F2418; transform: rotate(-45deg); }
.pt-days { margin-left: auto; font-size: 11px; }
.cg { position: absolute; inset: 0; overflow: hidden; }
.cg-layer { position: absolute; inset: 0; }
.cg-hud { position: absolute; left: 5px; right: 5px; top: 2px; display: flex; justify-content: space-between; font-size: 11px; z-index: 2; }
.cg-msg { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0 16px; text-align: center; font-size: 20px; background: #C4CFA1; }
.cg-msg small { font-size: 11px; line-height: 1.3; }
.cg-msg[hidden] { display: none; }
.cg-it { position: absolute; image-rendering: pixelated; }
.cg-it.is-hit { opacity: .35; }
.cg-rock { background: #1F2418; border: 2px solid #4D533C; box-sizing: border-box; border-radius: 3px; }
.cg-bowl { position: absolute; width: 30px; height: 14px; background: #4D533C; border: 2px solid #1F2418; border-top-width: 3px; border-radius: 0 0 14px 14px; box-sizing: border-box; }
.cg-floor { position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: #8B956D; }
.cg-bar { position: absolute; left: 50px; top: 62px; width: 270px; height: 14px; border: 2px solid #1F2418; box-sizing: border-box; }
.cg-zone { position: absolute; top: 64px; height: 10px; background: #8B956D; }
.cg-mark { position: absolute; top: 56px; width: 4px; height: 26px; background: #1F2418; }
.cg-tries { position: absolute; left: 50px; top: 88px; font-size: 11px; }
.cg-key { position: absolute; bottom: -2px; width: 20px; text-align: center; font-size: 11px; }
.cg-pop { animation: cg-pop .15s ease-out; }
@keyframes cg-pop { from { transform: scale(.4); } to { transform: scale(1); } }
.cg-pet { position: absolute; image-rendering: pixelated; }
.cg-flash { position: absolute; left: 0; right: 0; top: 18px; text-align: center; font-size: 14px; opacity: 0; transition: opacity .2s; z-index: 2; pointer-events: none; }

/* CASINO.EXE, the Tavern: boards drawn at 1040 x 720 (assets/js/apps/casino/*.js), scaled to the window in casino.js */
.win-body.cz { position: relative; overflow: hidden; background: #1E1418; }
.cz-fit { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cz-stage { position: relative; flex: none; width: 1040px; height: 720px; transform-origin: center; }
.cz-view { width: 1040px; height: 720px; }
.cz-view button { cursor: pointer; }
.cz-view canvas, .cz-view img { image-rendering: pixelated; }
@keyframes cz-flick { 0%, 100% { opacity: 1; } 90% { opacity: 1; } 91% { opacity: .2; } 92% { opacity: 1; } 95% { opacity: .35; } 96% { opacity: 1; } }
@keyframes cz-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes cz-pop { 0% { transform: scale(.9); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
