@font-face { font-family: 'VT323'; src: url(/fonts/vt323.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Silk'; src: url(/fonts/silkscreen-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Silk'; src: url(/fonts/silkscreen-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --lime: #8be01e;
  --lime-d: #3e8e10;
  --lime-dd: #174d0b;
  --acid: #d6e81a;
  --paper: #ccd6cf;
  --ink0: #060806;
  --face: #c3c7cb;
  --hi: #ffffff;
  --lo: #818181;
  --dk: #1a1a1a;
  --ink: #111;
  --blue: #e3eefb;
  --led: #39ff6a;
  --red: #ff4141;
  --amber: #ffbf3b;
  --px: 'Silk', 'Courier New', monospace;
  --vt: 'VT323', 'Courier New', monospace;
  --serif: 'Times New Roman', Times, Georgia, serif;
  --ios: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  --cracks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='turbulence' baseFrequency='.012 .03' numOctaves='4' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.4 1.1'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23c)' opacity='.16'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html, body { height: var(--app-h, 100dvh); margin: 0; overflow: hidden; overscroll-behavior: none; }
body {
  font: 21px/1.15 var(--vt);
  color: var(--ink);
  background: #1c1f1a;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='22' shape-rendering='crispEdges'%3E%3Cpath d='M1 1v16l4-4 3 7 3-1-3-7h6z' fill='%23fff' stroke='%23000'/%3E%3C/svg%3E") 1 1, auto;
}
img.px, canvas.px { image-rendering: pixelated; }
button, input, textarea { font: inherit; color: inherit; }
a { color: #0018a8; }
[hidden] { display: none !important; }

/* ---------- the desk and the monitor ---------- */
#desk {
  height: 100%;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 236, 190, 0.18), transparent 60%),
    var(--noise),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #4a3b2a, #2c2219);
}
#frame { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; }
#screen { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.os { position: relative; height: 100%; display: flex; flex-direction: column; container: os / size; }
#top { flex: none; position: relative; z-index: 5; }
#app { flex: 1; min-height: 0; overflow: hidden; position: relative; }
#bar { flex: none; position: relative; z-index: 6; }
#modal, #fx { position: absolute; inset: 0; z-index: 40; pointer-events: none; }
#modal > *, #fx > * { pointer-events: auto; }
#fx { z-index: 60; }
.postit { display: none; }

/* CRT: beige LimeTron case with a bulging glass. */
[data-skin='crt'] #frame {
  max-width: 1500px;
  max-height: 980px;
  padding: clamp(10px, 2.2vmin, 26px) clamp(10px, 2.2vmin, 26px) 0;
  border-radius: 22px 22px 30px 30px;
  background:
    var(--noise),
    linear-gradient(180deg, #e9e2cc, #d9d0b5 60%, #c9bf9f);
  box-shadow:
    inset 0 2px 0 #fffaf0,
    inset 0 -4px 0 rgba(0, 0, 0, 0.18),
    inset 3px 0 0 rgba(255, 255, 255, 0.35),
    0 30px 60px rgba(0, 0, 0, 0.55),
    0 4px 0 #8f856a;
}
[data-skin='crt'] #screen {
  border-radius: 28px / 22px;
  background: #0d120c;
  box-shadow: 0 0 0 3px #7c7358, 0 0 0 9px #2a2a26, 0 0 0 11px #9d9478;
  margin: 9px;
  transform: perspective(1400px) translateZ(0);
  animation: jitter 7s infinite steps(1);
}
@keyframes jitter { 0%, 96% { transform: none; } 97% { transform: translateX(1px) skewX(0.3deg); } 98% { transform: translateX(-1px); } }
[data-skin='crt'] .os {
  background: #3f8f22 url('/img/meadow.png') center bottom / cover no-repeat;
  image-rendering: pixelated;
}
/* Curved glass: scanlines, a rolling bar, vignette and a reflection. */
.glass { position: absolute; inset: 0; pointer-events: none; z-index: 90; display: none; }
[data-skin='crt'] .glass {
  display: block;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 60% 40% at 28% 12%, rgba(255, 255, 255, 0.09), transparent 70%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.7), inset 0 0 4px rgba(0, 0, 0, 0.9);
  animation: flicker 6s infinite steps(1);
}
[data-skin='crt'] .glass::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 18%;
  top: -20%;
  background: linear-gradient(180deg, transparent, rgba(180, 255, 180, 0.05), transparent);
  animation: roll 9s linear infinite;
}
@keyframes roll { to { top: 110%; } }
@keyframes flicker { 0%, 97% { opacity: 1; } 98% { opacity: 0.8; } 99% { opacity: 0.95; } }
.power-on[data-skin='crt'] #screen .os { animation: poweron 0.9s ease-out; }
@keyframes poweron {
  0% { transform: scale(1, 0.004); filter: brightness(6); }
  35% { transform: scale(1, 0.01); filter: brightness(4); }
  60% { transform: scale(1, 1); filter: brightness(1.8) contrast(1.4); }
  100% { transform: none; filter: none; }
}
#screen.degauss .os { animation: degauss 1.1s ease-out; }
@keyframes degauss {
  0% { filter: hue-rotate(0) saturate(1); transform: none; }
  10% { filter: hue-rotate(160deg) saturate(3); transform: skewX(4deg) scale(1.03); }
  25% { filter: hue-rotate(-120deg) saturate(2.5); transform: skewX(-3deg); }
  45% { filter: hue-rotate(80deg) saturate(2); transform: skewX(2deg); }
  70% { filter: hue-rotate(-30deg); transform: skewX(-0.6deg); }
  100% { filter: none; transform: none; }
}
#chin { flex: none; display: flex; align-items: center; gap: 12px; }
[data-skin='crt'] #chin { height: clamp(36px, 5.4vmin, 52px); padding: 0 14px 4px; font: 11px var(--px); color: #5e563f; }
[data-skin='crt'] #chin .badge { position: static; min-width: 0; height: auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; display: flex; align-items: center; gap: 6px; font: 700 15px var(--serif); font-style: italic; color: #4a4434; text-shadow: 0 1px #fff8e4; }
[data-skin='crt'] #chin .badge img { width: 18px; height: 18px; }
[data-skin='crt'] #chin .model { letter-spacing: 1px; opacity: 0.8; }
#chin .grow { flex: 1; }
[data-skin='crt'] #chin .hw {
  font: 700 10px var(--px);
  min-height: 0;
  padding: 5px 10px;
  color: #5e563f;
  background: linear-gradient(#ece5d0, #cfc5a6);
  border: 1px solid #8f856a;
  border-radius: 4px;
  box-shadow: 0 2px 0 #8f856a, inset 0 1px #fff;
}
[data-skin='crt'] #chin .hw:active { transform: translateY(2px); box-shadow: 0 0 0 #8f856a; padding: 5px 10px; }
#chin .led { width: 10px; height: 10px; border-radius: 50%; background: #39ff6a; box-shadow: 0 0 8px #39ff6a, inset 0 -2px 2px rgba(0, 0, 0, 0.3); }
[data-skin='crt'] .postit {
  display: block;
  position: absolute;
  left: 24%;
  bottom: -14px;
  z-index: 95;
  width: 86px;
  padding: 8px;
  background: #fff27a;
  color: #333;
  font: 15px/1.1 'Comic Sans MS', 'Marker Felt', cursive;
  transform: rotate(-4deg);
  box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
@media (max-width: 900px), (max-height: 560px) {
  [data-skin='crt'] .postit, [data-skin='crt'] #chin .model { display: none; }
}
@media (max-width: 600px) {
  #desk { padding: 0; }
  [data-skin='crt'] #frame { border-radius: 0; padding: max(6px, env(safe-area-inset-top)) 6px 0; }
  [data-skin='crt'] #screen { margin: 5px; border-radius: 18px / 14px; }
  [data-skin='crt'] #chin { height: calc(38px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); gap: 8px; }
  [data-skin='crt'] #chin .badge { font-size: 13px; }
}

/* ---------- Win98 bevels ---------- */
.raised, button, .window, .startmenu {
  border: 2px solid;
  border-color: var(--hi) var(--dk) var(--dk) var(--hi);
  box-shadow: inset -1px -1px var(--lo), inset 1px 1px #e6e6e6;
}
.sunken, input, textarea {
  border: 2px solid;
  border-color: var(--lo) var(--hi) var(--hi) var(--lo);
  box-shadow: inset 1px 1px var(--dk), inset -1px -1px #e6e6e6;
}
button {
  background: var(--face);
  font: 700 13px/1 var(--px);
  letter-spacing: 0.5px;
  padding: 7px 12px 6px;
  cursor: inherit;
  text-transform: uppercase;
  min-height: 32px;
  touch-action: manipulation;
}
button:active:not(:disabled), button.on {
  border-color: var(--dk) var(--hi) var(--hi) var(--dk);
  box-shadow: inset 1px 1px var(--lo);
}
button:disabled { color: #8a8a8a; text-shadow: 1px 1px #fff; }
button:focus-visible { outline: 1px dotted #000; outline-offset: -5px; }
button.go { background: var(--lime); }
button.go:hover:not(:disabled) { background: #a6f53a; }
button.danger { background: #ff6b6b; }
input, textarea { background: #fff; padding: 4px 6px; font-size: 22px; width: 100%; border-radius: 0; }
input:focus, textarea:focus { outline: none; background: #fbfff2; }
textarea { resize: none; }

.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.center { justify-content: center; }
.grow { flex: 1; }
.mt { margin-top: 10px; }
.muted { color: #4b4b4b; }
.big { font-size: 32px; line-height: 1; margin: 4px 0 8px; }
.prompt { font-size: 30px; line-height: 1.05; margin: 2px 0 10px; }
.kicker { font: 700 11px var(--px); color: var(--lime-dd); letter-spacing: 1px; text-transform: uppercase; margin: 0 0 8px; }

/* ---------- ticker ---------- */
.ticker {
  height: 30px;
  background: #050805;
  border-bottom: 2px solid #2a2a2a;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
  font-size: 22px;
}
.ticker .tag { flex: none; background: var(--red); color: #fff; font: 700 12px var(--px); padding: 0 8px; height: 100%; display: flex; align-items: center; box-shadow: 6px 0 8px #050805; z-index: 1; }
.ticker .track-wrap { flex: 1; min-width: 0; overflow: hidden; }
.ticker .track { display: inline-block; padding-left: 100%; animation: tick var(--dur, 60s) linear infinite; }
.ticker .it { margin-right: 46px; color: var(--led); text-shadow: 0 0 6px rgba(57, 255, 106, 0.7); }
.ticker .it.amber { color: var(--amber); text-shadow: 0 0 6px rgba(255, 191, 59, 0.7); }
.ticker .it.red { color: var(--red); text-shadow: 0 0 6px rgba(255, 65, 65, 0.7); }
.ticker .it.white { color: #e8e8e8; text-shadow: 0 0 6px rgba(255, 255, 255, 0.5); }
@keyframes tick { to { transform: translateX(-100%); } }
.mini-timer { flex: none; display: flex; align-items: center; gap: 4px; padding: 0 8px; height: 100%; background: #050805; box-shadow: -8px 0 8px #050805; }
.mini-timer canvas { width: 14px; height: 21px; image-rendering: pixelated; }
.lcd { font: 26px/1 var(--vt); color: var(--led); text-shadow: 0 0 8px rgba(57, 255, 106, 0.8); }
.lcd.low { color: var(--red); text-shadow: 0 0 8px rgba(255, 65, 65, 0.9); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.35; } }

/* ---------- taskbar ---------- */
[data-skin='crt'] #bar {
  height: 40px;
  background: var(--face);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 4px;
  border-top: 2px solid var(--hi);
  box-shadow: inset 0 1px #e6e6e6;
}
#bar .start { flex: none; display: flex; align-items: center; gap: 6px; font-size: 14px; padding: 4px 9px; }
#bar .start img { width: 22px; height: 22px; }
#bar .tasks { display: flex; gap: 4px; min-width: 0; flex: 0 1 auto; overflow: hidden; }
#bar .task { font: 12px var(--px); padding: 0 10px; background: var(--face); max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; height: 30px; display: flex; align-items: center; flex: none; }
#bar .panes { display: none; flex: 1; gap: 3px; min-width: 0; }
#bar .grow { flex: 1; }
.pane-tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 4px 6px; min-width: 0; font-size: 12px; position: relative; }
.pane-tab img { width: 18px; height: 18px; }
.badge { position: absolute; top: -6px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font: 700 11px/18px var(--ios); text-align: center; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); border: 1px solid #fff; }
#bar .tray { flex: none; font: 20px var(--vt); padding: 0 6px; height: 30px; display: flex; align-items: center; gap: 6px; }
#bar .tray img { width: 18px; height: 18px; }
.tray-btn { all: unset; display: flex; cursor: inherit; padding: 2px; }
.tray-btn:hover { outline: 1px dotted #000; }
.startmenu { position: absolute; left: 4px; bottom: 42px; z-index: 41; background: var(--face); display: flex; min-width: 230px; }
.startmenu .side { writing-mode: vertical-rl; transform: rotate(180deg); background: linear-gradient(0deg, var(--lime-dd), var(--lime-d)); color: #fff; font: 700 15px var(--px); padding: 8px 4px; }
.startmenu .side b { color: var(--lime); }
.startmenu ul { list-style: none; margin: 0; padding: 4px; flex: 1; }
.startmenu li button { all: unset; display: flex; gap: 10px; align-items: center; width: 100%; padding: 8px 10px; font: 13px var(--px); box-sizing: border-box; cursor: inherit; }
.startmenu li button:hover { background: #0b3f8f; color: #fff; }
.startmenu img { width: 24px; height: 24px; }

/* ---------- windows ---------- */
.window { background: var(--face); padding: 3px; position: relative; display: flex; flex-direction: column; min-height: 0; }
.titlebar {
  flex: none;
  background: linear-gradient(90deg, var(--lime-dd), var(--lime-d) 55%, var(--lime));
  color: #fff;
  font: 700 13px var(--px);
  padding: 3px 3px 3px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 1px 1px #000;
  letter-spacing: 0.5px;
}
.titlebar img { width: 18px; height: 18px; flex: none; }
.titlebar .t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.titlebar .ctl { display: flex; gap: 2px; }
.titlebar .ctl i { width: 18px; height: 16px; background: var(--face); border: 1.5px solid; border-color: var(--hi) var(--dk) var(--dk) var(--hi); font-size: 0; color: transparent; font-style: normal; position: relative; cursor: pointer; }
.titlebar .ctl i::after { content: ''; position: absolute; inset: 0; margin: auto; width: 8px; height: 7px; background: var(--g-x) center / 100% 100% no-repeat; image-rendering: pixelated; }
.titlebar .ctl i:active { border-color: var(--dk) var(--hi) var(--hi) var(--dk); }
.titlebar .ctl i:active::after { translate: 1px 1px; }
.titlebar .ctl i[data-g='min']::after { width: 7px; background-image: var(--g-min); }
.titlebar .ctl i[data-g='max']::after { width: 9px; height: 8px; background-image: var(--g-max); }
:root { --g-x: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 7' shape-rendering='crispEdges' fill='%23000'><rect x='0' y='0' width='1' height='1'/><rect x='1' y='0' width='1' height='1'/><rect x='6' y='0' width='1' height='1'/><rect x='7' y='0' width='1' height='1'/><rect x='1' y='1' width='1' height='1'/><rect x='2' y='1' width='1' height='1'/><rect x='5' y='1' width='1' height='1'/><rect x='6' y='1' width='1' height='1'/><rect x='2' y='2' width='1' height='1'/><rect x='3' y='2' width='1' height='1'/><rect x='4' y='2' width='1' height='1'/><rect x='5' y='2' width='1' height='1'/><rect x='3' y='3' width='1' height='1'/><rect x='4' y='3' width='1' height='1'/><rect x='2' y='4' width='1' height='1'/><rect x='3' y='4' width='1' height='1'/><rect x='4' y='4' width='1' height='1'/><rect x='5' y='4' width='1' height='1'/><rect x='1' y='5' width='1' height='1'/><rect x='2' y='5' width='1' height='1'/><rect x='5' y='5' width='1' height='1'/><rect x='6' y='5' width='1' height='1'/><rect x='0' y='6' width='1' height='1'/><rect x='1' y='6' width='1' height='1'/><rect x='6' y='6' width='1' height='1'/><rect x='7' y='6' width='1' height='1'/></svg>"); --g-min: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7' shape-rendering='crispEdges' fill='%23000'><rect x='0' y='5' width='1' height='1'/><rect x='1' y='5' width='1' height='1'/><rect x='2' y='5' width='1' height='1'/><rect x='3' y='5' width='1' height='1'/><rect x='4' y='5' width='1' height='1'/><rect x='5' y='5' width='1' height='1'/><rect x='0' y='6' width='1' height='1'/><rect x='1' y='6' width='1' height='1'/><rect x='2' y='6' width='1' height='1'/><rect x='3' y='6' width='1' height='1'/><rect x='4' y='6' width='1' height='1'/><rect x='5' y='6' width='1' height='1'/></svg>"); --g-max: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 8' shape-rendering='crispEdges' fill='%23000'><rect x='0' y='0' width='1' height='1'/><rect x='1' y='0' width='1' height='1'/><rect x='2' y='0' width='1' height='1'/><rect x='3' y='0' width='1' height='1'/><rect x='4' y='0' width='1' height='1'/><rect x='5' y='0' width='1' height='1'/><rect x='6' y='0' width='1' height='1'/><rect x='7' y='0' width='1' height='1'/><rect x='8' y='0' width='1' height='1'/><rect x='0' y='1' width='1' height='1'/><rect x='1' y='1' width='1' height='1'/><rect x='2' y='1' width='1' height='1'/><rect x='3' y='1' width='1' height='1'/><rect x='4' y='1' width='1' height='1'/><rect x='5' y='1' width='1' height='1'/><rect x='6' y='1' width='1' height='1'/><rect x='7' y='1' width='1' height='1'/><rect x='8' y='1' width='1' height='1'/><rect x='0' y='2' width='1' height='1'/><rect x='8' y='2' width='1' height='1'/><rect x='0' y='3' width='1' height='1'/><rect x='8' y='3' width='1' height='1'/><rect x='0' y='4' width='1' height='1'/><rect x='8' y='4' width='1' height='1'/><rect x='0' y='5' width='1' height='1'/><rect x='8' y='5' width='1' height='1'/><rect x='0' y='6' width='1' height='1'/><rect x='8' y='6' width='1' height='1'/><rect x='0' y='7' width='1' height='1'/><rect x='1' y='7' width='1' height='1'/><rect x='2' y='7' width='1' height='1'/><rect x='3' y='7' width='1' height='1'/><rect x='4' y='7' width='1' height='1'/><rect x='5' y='7' width='1' height='1'/><rect x='6' y='7' width='1' height='1'/><rect x='7' y='7' width='1' height='1'/><rect x='8' y='7' width='1' height='1'/></svg>"); }
.x-glyph { display: block; width: 8px; height: 7px; margin: auto; background: var(--g-x) center / 100% 100% no-repeat; image-rendering: pixelated; }
.menubar { flex: none; font: 12px var(--px); display: flex; gap: 14px; padding: 3px 8px 2px; }
.wbody { flex: 1; min-height: 0; overflow: auto; padding: 10px 12px; overscroll-behavior: contain; scrollbar-width: thin; }
.statusbar { flex: none; display: flex; gap: 3px; margin-top: 3px; font-size: 18px; }
.statusbar > * { padding: 1px 6px; flex: 1; border: 1px solid; border-color: var(--lo) var(--hi) var(--hi) var(--lo); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.statusbar > .fit { flex: none; }

/* ---------- app layout: nothing scrolls but windows ---------- */
.layout { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) clamp(280px, 30%, 380px); gap: 12px; padding: 12px; }
.col-main, .col-side { display: flex; flex-direction: column; gap: 10px; min-height: 0; min-width: 0; }
.col-main > .grow-win { flex: 1; }
.col-main > .vote-win { flex: none; max-height: 45%; }
.col-side > .timer-win { flex: none; }
.col-side > .players-win { flex: 0 1 auto; max-height: 42%; }
.col-side > .chat-win { flex: 1; }
.col-side > .help-side { flex: 1; }
.actionbar { flex: none; display: flex; align-items: center; gap: 10px; padding: 6px 8px; background: var(--face); border: 2px solid; border-color: var(--hi) var(--dk) var(--dk) var(--hi); font-size: 20px; }
.actionbar .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actionbar button.go { font-size: 14px; padding: 9px 16px; min-height: 40px; }

@container os (max-width: 820px) {
  .layout { grid-template-columns: minmax(0, 1fr); padding: 6px; gap: 6px; }
  .layout > .col-side { display: contents; }
  #app [data-p] { display: none; }
  #app[data-pane='stage'] [data-p='stage'],
  #app[data-pane='players'] [data-p='players'],
  #app[data-pane='chat'] [data-p='chat'] { display: flex; flex: 1; max-height: none; }
  .timer-win, .wide-only { display: none !important; }
  #bar .panes { display: flex; }
  #bar .tasks, #bar .tray .clock, #bar .tray > img { display: none; }
  #bar .start { font-size: 0; gap: 0; padding: 4px 7px; }
  .wbody { padding: 8px; --pad-y: 8px; --pad-x: 8px; }
  .prompt { font-size: 26px; }
  .taskhead .prompt { font-size: 22px; max-height: 30vh; overflow: auto; }
}

/* ---------- hint (Limey) ---------- */
.hint { flex: none; display: flex; align-items: center; gap: 8px; background: #ffffe1; border: 1px solid #000; padding: 4px 4px 4px 8px; font-size: 19px; line-height: 1.05; box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35); }
.hint .limey { width: 26px; height: 26px; flex: none; animation: bob 1.6s ease-in-out infinite; }
.hint p { margin: 0; flex: 1; }
.hint .x { width: 26px; height: 26px; min-height: 0; padding: 0; flex: none; display: grid; place-items: center; }
@keyframes bob { 50% { transform: translateY(-3px) rotate(-6deg); } }

/* ---------- hourglass window ---------- */
.hg { display: flex; gap: 14px; align-items: center; padding: 6px 10px; background: #050805; }
.hg canvas { width: 44px; height: 66px; image-rendering: pixelated; flex: none; }
.hg .lcd { font-size: 56px; line-height: 0.9; }
.hg .sub { font: 11px var(--px); color: #6ad46a; letter-spacing: 1px; text-transform: uppercase; margin-top: 4px; }
@media (min-height: 760px) { .hg canvas { width: 66px; height: 99px; } .hg .lcd { font-size: 64px; } }

/* ---------- home: magazine cover + mode windows ---------- */
.home { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 32%, 400px); gap: 16px; padding: 14px; }
.cover-slot { min-height: 0; min-width: 0; container: cover / size; }
.cover {
  position: relative;
  height: 100%;
  overflow: hidden;
  color: var(--ink0);
  background: var(--cracks), var(--noise), radial-gradient(ellipse at 30% 20%, #dde6df, var(--paper) 60%, #aebbb2);
  box-shadow: 10px 12px 0 rgba(0, 0, 0, 0.4), 0 0 0 1px #000;
  padding: 0 4cqw 3cqh;
}
.cover .strip {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 -4cqw;
  padding: 1.4cqh 4cqw;
  background: var(--ink0);
  color: var(--acid);
  font: 700 clamp(9px, 2.1cqh, 14px) var(--px);
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
}
.cover h1 {
  position: relative;
  z-index: 2;
  margin: 2.6cqh 0 1.6cqh;
  font: 900 min(15.5cqh, 15cqw) / 0.82 var(--serif);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--ink0);
  text-shadow: 0.04em 0.04em 0 var(--lime);
}
.cover h1 span { background: var(--ink0); color: var(--acid); text-shadow: none; padding: 0 0.08em; }
.cover .dek { position: relative; z-index: 2; display: inline-block; background: var(--ink0); color: var(--lime); font: 700 min(3.2cqh, 3.6cqw) var(--px); padding: 0.5em 0.8em; letter-spacing: 1px; transform: rotate(-1deg); box-shadow: 4px 4px 0 var(--lime-d); }
.cover .lines { position: relative; z-index: 2; list-style: none; padding: 0; margin: 3.4cqh 0 0; max-width: 52%; display: flex; flex-direction: column; gap: 2.2cqh; }
.cover .lines li { border: 1.5px solid var(--ink0); background: rgba(204, 214, 207, 0.85); padding: 0.4em 0.6em; font-size: min(3.6cqh, 3.4cqw); line-height: 1; position: relative; }
.cover .lines li + li::before { content: ''; position: absolute; left: 22px; top: calc(-2.2cqh - 2px); height: 2.2cqh; border-left: 1.5px solid var(--ink0); }
.cover .lines b { display: block; font: 700 min(1.9cqh, 2.2cqw) var(--px); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 0.3em; }
.cd {
  position: absolute;
  right: -8cqmin;
  bottom: 4cqh;
  width: 52cqmin;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--paper) 0 14%, #d9d9d9 14.5% 15.5%, transparent 16% 31%, rgba(255, 255, 255, 0.5) 31.5% 32%, transparent 32.5%),
    conic-gradient(from 20deg, #c8f7ff, #f0c8ff, #fff6c0, #c0ffd8, #c8d6ff, #ffc8e0, #c8f7ff);
  box-shadow: 0 0 0 3px #999, 8px 10px 0 rgba(0, 0, 0, 0.35);
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cd-label { position: absolute; right: 6cqw; bottom: 30cqmin; z-index: 3; font: 700 min(2.2cqh, 2.6cqw) / 1.1 var(--px); color: #000; background: #f4e7b5; padding: 0.5em 0.7em; transform: rotate(8deg); box-shadow: 3px 3px 0 #000; text-align: center; }
.sticker { position: absolute; z-index: 3; font: 700 min(2.4cqh, 2.8cqw) / 1.05 var(--px); text-align: center; }
.sticker.burst {
  right: 3cqw;
  top: 8cqh;
  width: 22cqmin;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--acid);
  color: var(--ink0);
  clip-path: polygon(50% 0, 61% 14%, 79% 6%, 81% 25%, 100% 28%, 90% 45%, 100% 62%, 82% 68%, 82% 88%, 63% 84%, 50% 100%, 38% 85%, 18% 92%, 17% 71%, 0 63%, 10% 46%, 0 29%, 19% 25%, 21% 6%, 39% 14%);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { transform: rotate(12deg); } 50% { transform: rotate(12deg) scale(1.07); } }
.sticker.round { right: 24cqmin; top: 40cqh; width: 18cqmin; aspect-ratio: 1; border-radius: 50%; background: #e5484d; color: #fff; display: grid; place-content: center; transform: rotate(-14deg); border: 2px dashed #fff; box-shadow: 3px 3px 0 #000; }
.sticker.round small { font: 400 0.7em var(--px); display: block; margin-top: 3px; }
.sticker.tape { left: 4cqw; bottom: 3cqh; background: rgba(245, 232, 180, 0.88); color: #333; padding: 0.5em 2em; transform: rotate(-4deg); font-weight: 400; }
.cover .barcode { position: absolute; right: 3cqw; bottom: 2.4cqh; z-index: 4; background: #fff; color: #000; padding: 4px 8px 2px; font: 9px var(--px); text-align: center; }
.cover .barcode i { display: block; width: 96px; height: 28px; background: repeating-linear-gradient(90deg, #000 0 2px, #fff 2px 3px, #000 3px 4px, #fff 4px 7px, #000 7px 10px, #fff 10px 11px); }
@container cover (max-height: 420px) {
  .cover .lines, .sticker.round { display: none; }
  .cover h1 { font-size: min(22cqh, 15cqw); }
  .cover .dek { font-size: min(4.6cqh, 3.6cqw); }
}
@container cover (max-height: 260px) { .cd-label, .sticker.tape, .cover .barcode { display: none; } }
@container cover (max-width: 520px) { .cover .lines { max-width: 62%; } }

.modes { display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow: auto; }
.mode { flex: none; }
.mode .wbody { overflow: visible; }
.mode ul { margin: 0 0 10px; padding-left: 20px; }
.mode li { margin-bottom: 2px; }
.mode button.go { width: 100%; font-size: 15px; padding: 11px; min-height: 44px; }
.joinform { display: flex; gap: 6px; }
.code-in { font: 700 26px var(--px); text-transform: uppercase; letter-spacing: 8px; text-align: center; min-width: 0; }
.helpbtn { align-self: flex-start; }
@container os (min-width: 821px) and (max-height: 720px) {
  .mode ul { display: none; }
  .modes { gap: 8px; }
}

@container os (max-width: 820px) {
  .home { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; padding: 8px; gap: 10px; }
  .modes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; overflow: visible; }
  .modes .window { min-width: 0; }
  .modes .ctl { display: none; }
  .modes .join, .modes .helpbtn { grid-column: 1 / -1; }
  .modes .helpbtn { justify-self: stretch; }
  .mode .wbody { padding: 6px; }
  .mode .kicker { font-size: 9px; }
  .mode button.go { font-size: 12px; padding: 8px 4px; }
  .cover { box-shadow: 5px 6px 0 rgba(0, 0, 0, 0.4), 0 0 0 1px #000; }
}
@container os (max-width: 460px) {
  .modes { grid-template-columns: minmax(0, 1fr); overflow: auto; }
  .deskrow { gap: 2px; }
  .deskrow .helpbtn { flex: 0 1 auto; min-width: 0; padding: 4px 6px; }
  .deskrow .kevin-ico { padding: 2px 1px; font-size: 9px; }
  .deskrow .kevin-ico .kev, .deskrow .kevin-ico .kev img { width: 36px; height: 36px; }
}

/* ---------- tables & chips ---------- */
.lw { width: 100%; border-collapse: collapse; background: #fff; font-size: 20px; }
.lw th { position: sticky; top: 0; background: var(--face); font: 11px var(--px); text-align: left; padding: 3px 6px; border: 1px solid; border-color: var(--hi) var(--lo) var(--lo) var(--hi); white-space: nowrap; }
.lw td { padding: 2px 6px; white-space: nowrap; }
.lw tr:nth-child(even) td { background: var(--blue); }
.lw tr.me td { background: #fffbd6; }
.lw tr.dead td { color: #8d8d8d; text-decoration: line-through; }
.lw td.name { display: flex; align-items: center; gap: 7px; }
.lw td.name img { width: 26px; height: 26px; }
.lw td.model { white-space: normal; font-size: 18px; }
.lw .type { font: 11px var(--px); }
.lw .bot { color: #c01818; font-weight: bold; }
.lw .hum { color: #1a7a1a; }
@container os (max-width: 460px) { .players-win .st { display: none; } }
.sus { display: inline-flex; gap: 1px; vertical-align: middle; }
.sus i { width: 5px; height: 12px; background: #d9d9d9; border: 1px solid #a8a8a8; }
.sus i.on { background: var(--red); border-color: #8a0000; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 20px; white-space: nowrap; }
.chip img { width: 24px; height: 24px; }

/* ---------- lobby ---------- */
.led-code { font: clamp(64px, 12vh, 104px)/0.9 var(--vt); color: var(--led); background: #050805; text-align: center; padding: 8px 0 2px; letter-spacing: 18px; text-shadow: 0 0 16px rgba(57, 255, 106, 0.8); }
.slots { margin-top: 10px; }
.bars { display: inline-flex; gap: 2px; align-items: flex-end; }
.bars i, .bars b { width: 5px; background: var(--lime-d); }
.bars :nth-child(1) { height: 6px; } .bars :nth-child(2) { height: 10px; } .bars :nth-child(3) { height: 14px; } .bars :nth-child(4) { height: 18px; }
.bars.off i { background: #ccc; }
.progress { height: 22px; padding: 2px; display: flex; gap: 2px; overflow: hidden; background: #fff; }
.progress i { width: 14px; flex: none; background: #0b3f8f; transition: opacity 0.2s steps(1); }
.progress i.off { opacity: 0; }
.progress.anim { position: relative; }
.progress.anim::after { content: ''; position: absolute; top: 2px; bottom: 2px; right: 0; left: 2px; background: inherit; animation: fillbar 2.6s steps(22, end) infinite; }
@keyframes fillbar { from { left: 2px; } to { left: 100%; } }
@keyframes fill { 0% { opacity: 0; } 50% { opacity: 1; } }
.dialup { font: 20px var(--vt); background: #000; color: var(--led); padding: 10px 12px; min-height: 110px; white-space: pre-wrap; }
.dialup .cur { animation: blink 1s steps(2) infinite; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.steps li { display: flex; gap: 10px; align-items: flex-start; }
.steps .n { flex: none; width: 30px; height: 30px; display: grid; place-items: center; background: var(--ink0); color: var(--acid); font: 700 14px var(--px); }
.steps b { font: 700 13px var(--px); text-transform: uppercase; }
.steps p { margin: 2px 0 0; font-size: 20px; line-height: 1.05; }
.steps.compact p { font-size: 18px; }
.help .solo { margin-top: 12px; border: 1.5px solid var(--ink0); padding: 6px 10px; background: var(--paper); }
.help .solo p { margin: 2px 0 0; }
.tip { font-size: 18px; }

/* ---------- picker ---------- */
.tabs { display: flex; margin-bottom: -2px; position: relative; z-index: 1; }
.tabs .tab { background: var(--face); font: 700 12px var(--px); padding: 7px 12px; border: 2px solid; border-color: var(--hi) var(--dk) transparent var(--hi); box-shadow: inset -1px 0 var(--lo); margin-top: 4px; min-height: 0; }
.tabs .tab.on { margin-top: 0; padding-bottom: 11px; border-bottom-color: var(--face); box-shadow: inset -1px 0 var(--lo); }
.tabpane { border: 2px solid; border-color: var(--hi) var(--dk) var(--dk) var(--hi); padding: 12px; }
.pane { display: none; }
.pane.on { display: block; }
.pane label { font: 11px var(--px); display: block; margin: 0 0 4px; }
.sugg { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; }
.sugg button { text-transform: none; font: 20px/1 var(--vt); text-align: left; padding: 5px 10px; display: flex; gap: 8px; align-items: center; letter-spacing: 0; }
.sugg button img { width: 18px; height: 18px; flex: none; }

/* ---------- task ---------- */
.from { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font: 12px var(--px); }
.from img { width: 28px; height: 28px; }
.riddle-tag, .draw-tag, .q-tag { color: #fff; padding: 2px 7px; font: 700 11px var(--px); }
.riddle-tag { background: #8e4ec6; }
.draw-tag { background: #f76b15; }
.q-tag { background: #0090ff; }
.grow-win > .wbody { display: flex; flex-direction: column; }
/* The task stays on screen while the answers under it scroll. */
.wbody { --pad-y: 10px; --pad-x: 12px; }
.grow-win > .wbody > .taskhead { position: sticky; top: calc(-1 * var(--pad-y)); z-index: 3; flex: none; margin: calc(-1 * var(--pad-y)) calc(-1 * var(--pad-x)) 8px; padding: var(--pad-y) var(--pad-x) 6px; background: var(--face); border-bottom: 1px solid var(--lo); box-shadow: 0 1px 0 var(--hi), 0 6px 8px -6px rgba(0, 0, 0, 0.35); }
.taskhead .prompt { margin-bottom: 4px; overflow-wrap: anywhere; }
.taskhead .reveal-answer { margin: 4px 0 0; }
#answerform { flex: 1; display: flex; min-height: 90px; }
.notepad { flex: 1; background: #fff; padding: 8px 10px; font-size: 24px; min-height: 90px; }
.reveal-answer { background: #050805; color: var(--amber); font-size: 26px; padding: 6px 12px; margin-bottom: 10px; text-shadow: 0 0 8px rgba(255, 191, 59, 0.6); }
.answers { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; align-content: start; }
.answers.drawings { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.answer { padding: 2px; }
.answer .titlebar { font-size: 11px; padding: 2px 3px 2px 4px; }
.answer .titlebar img { width: 22px; height: 22px; }
.answer .body { background: #fff; padding: 6px 10px; min-height: 56px; font-size: 22px; word-break: break-word; }
.answer .body.none { color: #999; font-style: italic; }
.answer.solved .titlebar { background: linear-gradient(90deg, #6b2fa0, #b07ae0); }
.stamp { display: inline-block; font: 700 11px var(--px); padding: 2px 6px; border: 2px solid currentColor; transform: rotate(-4deg); margin-top: 6px; }
.stamp.ok { color: #1a7a1a; }
.stamp.master { color: #8e4ec6; }

/* ---------- chat (mIRC) ---------- */
.chat-win > .wbody { display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.irc { flex: 1; min-height: 70px; background: #000; color: #c8ffc8; font-size: 20px; overflow-y: auto; padding: 6px 8px; overscroll-behavior: contain; }
.irc .msg { margin-bottom: 2px; word-break: break-word; }
.irc .nick { color: var(--c); font-weight: bold; }
.irc .sys { color: #8b8bff; white-space: pre-wrap; }
.chatform { flex: none; display: flex; gap: 4px; }
.chat-off { margin: 4px 0 0; font-size: 18px; }

/* ---------- vote ---------- */
.votes { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.votes button { text-transform: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px; font: 12px var(--px); }
.votes button img { width: 44px; height: 44px; }
.votes button:hover:not(:disabled) { background: #ffd9d9; }
.votes .skip { justify-content: center; }

/* ---------- dialogs ---------- */
.modal-bg { position: absolute; inset: 0; z-index: 50; background: rgba(0, 20, 0, 0.4); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); place-items: center; padding: 14px; }
.dialog { width: min(460px, 100%); max-height: 100%; }
.dialog.help { width: min(560px, 100%); }
.confirm .wbody { display: flex; gap: 14px; align-items: flex-start; font-size: 22px; }
.confirm .wbody img { width: 48px; height: 48px; flex: none; }
.confirm .q { display: block; font: 700 14px var(--px); margin-bottom: 4px; }
.dialog .btns { display: flex; justify-content: center; gap: 10px; padding: 0 0 10px; }
.dialog .btns button { min-width: 96px; }

/* ---------- result ---------- */
.verdict { display: flex; gap: 18px; align-items: center; }
.verdict img.big-ava { width: 96px; height: 96px; flex: none; }
.verdict.bot .t1 { color: #c01818; }
.tally { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 10px; }

/* ---------- loss / win effects ---------- */
.bsod { position: absolute; inset: 0; background: #0000aa; color: #fff; display: grid; place-items: center; padding: 20px; font: 24px/1.25 var(--vt); cursor: pointer; }
.bsod .inner { max-width: 720px; }
.bsod .hd { display: table; margin: 0 auto 22px; background: #aaa; color: #0000aa; padding: 0 10px; font-weight: bold; }
.bsod p { margin: 0 0 16px; }
.bsod .blink { animation: blink 1s steps(2) infinite; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 8px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
#toast { position: absolute; left: 50%; bottom: 64px; z-index: 80; transform: translateX(-50%) translateY(30px); opacity: 0; transition: 0.2s; background: #ffffe1; border: 1px solid #000; padding: 6px 12px; font-size: 21px; box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35); pointer-events: none; max-width: 90%; text-align: center; }
#toast.show { opacity: 1; transform: translateX(-50%); }

/* ---------- Etch A Bot: red plastic magic screen ---------- */
.pad-slot { flex: 1; min-height: 160px; display: flex; }
.etch {
  --r: clamp(14px, 3cqmin, 26px);
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0 clamp(12px, 4%, 34px);
  border-radius: var(--r);
  background:
    radial-gradient(ellipse 70% 30% at 30% 6%, rgba(255, 255, 255, 0.35), transparent 70%),
    linear-gradient(180deg, #e8263c, #c8102e 45%, #9c0b22);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.35),
    inset 0 -5px 0 rgba(0, 0, 0, 0.25),
    inset 4px 0 6px rgba(255, 255, 255, 0.12),
    0 8px 0 #6e0717,
    0 14px 22px rgba(0, 0, 0, 0.45);
  container: etch / size;
}
.etch-top { flex: none; display: flex; align-items: baseline; justify-content: center; gap: 12px; padding: 8px 0 6px; }
.etch-logo {
  font: italic 700 clamp(18px, 3.2vmin, 30px) 'Brush Script MT', 'Snell Roundhand', 'Segoe Script', cursive;
  color: #f5d77a;
  text-shadow: 0 1px 0 #8a6416, 0 2px 2px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
}
.etch-sub { font: 700 9px var(--px); color: #ffd3d8; letter-spacing: 1px; opacity: 0.85; }
.etch-screen {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  container: etchscreen / size;
  padding: 9px;
}
.etch-screen canvas {
  display: block;
  width: min(100cqw, 133.333cqh);
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  touch-action: none;
  cursor: crosshair;
  box-shadow:
    0 0 0 7px #8f928b,
    0 0 0 8px rgba(0, 0, 0, 0.35),
    0 -1px 0 8px rgba(0, 0, 0, 0.5),
    0 1px 0 9px rgba(255, 255, 255, 0.25);
}
.etch-bot { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 0 10px; }
.knob {
  flex: none;
  width: clamp(38px, 7vmin, 58px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, #fff 0 18%, transparent 46%),
    radial-gradient(circle, #f4f4f0 0 52%, transparent 53%),
    repeating-conic-gradient(#e7e7e2 0 6deg, #b9bab4 6deg 12deg);
  box-shadow: 0 4px 0 #7a7a74, 0 6px 8px rgba(0, 0, 0, 0.45), inset 0 -2px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.05s linear;
}
.etch-tools { flex: 1; display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
.etch-tools button {
  min-height: 34px;
  padding: 4px 10px;
  border: 0;
  border-radius: 16px;
  font: 700 11px var(--px);
  color: #fff;
  background: linear-gradient(#a10c24, #7c0819);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.3);
}
.etch-tools button.on, .etch-tools button:active:not(:disabled) { background: #f5d77a; color: #6e0717; box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.35); }
.etch-tools .nib { width: 38px; padding: 0; display: grid; place-items: center; }
.etch-tools .sz { display: block; border-radius: 50%; background: currentColor; }
.etch-tools .shake-btn { background: linear-gradient(#f5d77a, #d6a92e); color: #6e0717; }
.etch.shaking { animation: shake 0.5s linear 2; }
@keyframes shake {
  0%, 100% { transform: none; }
  15% { transform: translate(-9px, 3px) rotate(-3deg); }
  35% { transform: translate(8px, -4px) rotate(2.5deg); }
  55% { transform: translate(-7px, 2px) rotate(-2deg); }
  75% { transform: translate(6px, -2px) rotate(1.5deg); }
}
/* Tiny boards for drawings in the discussion. */
.etch.mini { --r: 12px; padding: 0 8px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), 0 4px 0 #6e0717; container: none; flex: none; }
.etch.mini .etch-top { padding: 3px 0 2px; }
.etch.mini .etch-logo { font-size: 14px; }
.etch.mini .etch-screen { padding: 4px; border-radius: 6px; display: block; container: none; }
.etch.mini .etch-screen canvas { width: 100%; cursor: default; box-shadow: 0 0 0 3px #8f928b, 0 0 0 4px rgba(0, 0, 0, 0.35); }
.etch.mini .etch-bot { padding: 4px 0 6px; }
.etch.mini .knob { width: 16px; box-shadow: 0 2px 0 #7a7a74; }
.answer.art { background: transparent; border: 0; box-shadow: none; padding: 0; }
.answer.art .titlebar { margin-bottom: 4px; }
@container os (max-width: 820px) {
  .etch-sub { display: none; }
  .etch-tools button { padding: 4px 8px; font-size: 10px; }
  .etch-tools .nib { width: 32px; }
  .etch-bot { gap: 6px; }
}

/* =====================================================================
   iPod skin: iPhone OS 1 skeuomorphism in LimeWire green
   ===================================================================== */
[data-skin='ipod'] #desk { background: radial-gradient(ellipse at 50% 30%, #f4f6f3, #cfd6d0 70%, #aab5ad); }
[data-skin='ipod'] #frame {
  width: auto;
  height: min(100%, 940px);
  aspect-ratio: 0.5;
  max-width: 100%;
  padding: 0;
  border-radius: 62px;
  background: linear-gradient(160deg, #3a3a3c, #0b0b0c 40%, #000);
  box-shadow:
    0 0 0 2px #2a2a2a,
    0 0 0 7px #d9dce0,
    0 0 0 8px #8d9096,
    0 0 0 10px #eef0f2,
    0 0 0 11px #9a9ea4,
    0 40px 70px rgba(0, 0, 0, 0.45);
}
[data-skin='ipod'] #frame::before { content: ''; position: absolute; top: 7%; left: 50%; width: 18%; height: 7px; transform: translateX(-50%); border-radius: 4px; background: linear-gradient(#1a1a1a, #333); box-shadow: inset 0 1px 2px #000, 0 1px 0 #333; }
[data-skin='ipod'] #frame::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, 0.13) 0 30%, transparent 30.2%); }
[data-skin='ipod'] #screen { position: absolute; top: 13.5%; bottom: 16.5%; left: 5.5%; right: 5.5%; border-radius: 3px; background: #c5ccd4; box-shadow: 0 0 0 2px #000; }
[data-skin='ipod'] #chin { position: absolute; left: 50%; bottom: 5.5%; transform: translateX(-50%); z-index: 2; }
.home-btn {
  all: unset;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  cursor: pointer;
  background: radial-gradient(circle at 50% 30%, #2b2b2d, #070707 70%);
  box-shadow: inset 0 0 0 2px #1d1d1d, inset 0 2px 3px rgba(255, 255, 255, 0.08), 0 0 0 1px #3a3a3a;
}
.home-btn i { width: 19px; height: 19px; border: 2px solid #8a8a8c; border-radius: 5px; }
.home-btn:active { background: #000; }
@media (max-width: 599px), (max-height: 640px) {
  [data-skin='ipod'] #desk { padding: 0; background: #000; }
  [data-skin='ipod'] #frame { aspect-ratio: auto; width: 100%; height: 100%; padding: 0; border-radius: 0; box-shadow: none; background: #000; }
  [data-skin='ipod'] #frame::before, [data-skin='ipod'] #frame::after, [data-skin='ipod'] #chin { display: none; }
  [data-skin='ipod'] #screen { inset: 0; border-radius: 0; box-shadow: none; }
  [data-skin='ipod'] .ios-status { display: none; }
  [data-skin='ipod'] .ios-nav { padding-top: env(safe-area-inset-top); height: calc(44px + env(safe-area-inset-top)); }
  [data-skin='ipod'] .tabbar { padding-bottom: env(safe-area-inset-bottom); height: calc(49px + env(safe-area-inset-bottom)); }
}

[data-skin='ipod'] .os {
  font: 16px/1.3 var(--ios);
  color: #1d2a36;
  background: repeating-linear-gradient(90deg, #c5ccd4 0 5px, #cbd2d8 5px 9px);
}
.ios-status { height: 20px; display: flex; align-items: center; justify-content: space-between; padding: 0 6px; background: linear-gradient(#3c3c3c, #0d0d0d); color: #fff; font: 700 12px var(--ios); }
.ios-status > span { flex: 1; display: flex; align-items: center; gap: 4px; }
.ios-status .clock { justify-content: center; }
.ios-status .batt { justify-content: flex-end; }
.ios-status .bars b { width: 3px; background: #fff; }
.ios-status .bars :nth-child(1) { height: 4px; } .ios-status .bars :nth-child(2) { height: 6px; } .ios-status .bars :nth-child(3) { height: 8px; } .ios-status .bars :nth-child(4) { height: 10px; }
.ios-status .batt i { width: 22px; height: 10px; border: 1px solid #fff; border-radius: 2px; position: relative; background: linear-gradient(90deg, #8cf04a 0 80%, transparent 80%) content-box; padding: 1px; }
.ios-status .batt i::after { content: ''; position: absolute; right: -3px; top: 2px; width: 2px; height: 4px; background: #fff; }
.ios-nav {
  height: 44px;
  display: grid;
  grid-template-columns: minmax(70px, 1fr) auto minmax(70px, 1fr);
  align-items: center;
  gap: 6px;
  padding: 0 6px;
  background: linear-gradient(#c8ef86, #9fd655 49%, #82c034 50%, #6aa926);
  border-bottom: 1px solid #3e6d12;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.5);
}
.ios-nav h1 { margin: 0; font: 700 19px var(--ios); color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.ios-nav .nav-btn {
  all: unset;
  justify-self: end;
  height: 30px;
  padding: 0 10px;
  border-radius: 5px;
  font: 700 12px/30px var(--ios);
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
  background: linear-gradient(#9ccf55, #6aa926 50%, #5a9a1a 51%, #67a524);
  box-shadow: inset 0 0 0 1px #3e6d12, inset 0 1px 0 1px rgba(255, 255, 255, 0.3), 0 1px 0 rgba(255, 255, 255, 0.3);
  cursor: pointer;
}
.ios-nav .nav-btn.back { justify-self: start; padding: 0; background: none; box-shadow: none; filter: drop-shadow(1px 0 0 #3e6d12) drop-shadow(-1px 0 0 #3e6d12) drop-shadow(0 1px 0 #3e6d12) drop-shadow(0 -1px 0 #3e6d12) drop-shadow(0 1px 0 rgba(255, 255, 255, 0.3)); }
.ios-nav .nav-btn.back span { display: block; height: 30px; padding: 0 10px 0 17px; border-radius: 0 5px 5px 0; background: linear-gradient(#9ccf55, #6aa926 50%, #5a9a1a 51%, #67a524); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35); clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%); }
.ios-nav .nav-btn.back:active span { background: linear-gradient(#7fb43c, #558f18 50%, #4a8410 51%, #548e17); }
.ios-nav .mini-timer { justify-self: end; height: 30px; border-radius: 6px; background: #0d1a0a; box-shadow: inset 0 1px 3px #000, 0 1px 0 rgba(255, 255, 255, 0.35); }
.ios-nav .lcd { font-size: 24px; }
.ticker.np { height: 24px; background: linear-gradient(#f2f5f7, #cbd4dc); border-bottom: 1px solid #8a96a2; font: 700 13px var(--ios); }
.ticker.np .it, .ticker.np .it.white { color: #26323e; text-shadow: none; margin-right: 34px; }
.ticker.np .it.red { color: #c01818; }
.ticker.np .it.amber { color: #8a5a00; }

.tabbar { height: 49px; display: flex; background: linear-gradient(#444, #1c1c1c 50%, #000 51%, #000); border-top: 1px solid #000; padding: 2px 2px 0; }
.tabbar .tb {
  all: unset;
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 1px;
  height: 44px;
  border-radius: 4px;
  color: #999;
  font: 700 10px var(--ios);
  cursor: pointer;
}
.tabbar .tb img { width: 26px; height: 26px; filter: grayscale(1) brightness(1.5) opacity(0.6); }
.tabbar .tb.on { color: #fff; background: rgba(255, 255, 255, 0.14); }
.tabbar .tb.on img { filter: drop-shadow(0 0 4px rgba(139, 224, 30, 0.8)); }
.tabbar .badge { top: 1px; right: calc(50% - 26px); }

/* iOS grouped list on home */
.ios-list { gap: 4px; }
.ios-list .sec { margin: 8px 10px 4px; font: 700 15px var(--ios); color: #4c566c; text-shadow: 0 1px 0 #fff; }
.ios-list .group { flex: none; background: #fff; border: 1px solid #a9abae; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8); }
.ios-list .group.pad { padding: 8px; }
.ios-list .cell { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer; border-top: 1px solid #e0e3e6; }
.ios-list .cell:first-child { border-top: 0; }
.ios-list .cell:active { background: linear-gradient(#8cc63f, #5f9620); color: #fff; }
.ios-list .cell img { width: 32px; height: 32px; flex: none; }
.ios-list .cell > span { flex: 1; min-width: 0; }
.ios-list .cell b { display: block; font: 700 16px var(--ios); }
.ios-list .cell small { display: block; font: 13px var(--ios); color: #7a8591; }
.chev { flex: none; width: 9px; height: 9px; border-top: 3px solid #8a96a2; border-right: 3px solid #8a96a2; transform: rotate(45deg); margin-right: 4px; }
[data-skin='ipod'] .home { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; padding: 8px; gap: 2px; }
[data-skin='ipod'] .modes.ios-list { display: flex; overflow: visible; }
[data-skin='ipod'] .cover { border-radius: 8px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); }

/* iPod: windows become grouped cards */
[data-skin='ipod'] .window { background: #fff; border: 1px solid #a9abae; border-radius: 10px; padding: 0; overflow: hidden; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8); }
[data-skin='ipod'] .titlebar { background: linear-gradient(#f6f8fa, #dde3e9); color: #4c566c; text-shadow: 0 1px 0 #fff; font: 700 14px var(--ios); letter-spacing: 0; padding: 6px 10px; border-bottom: 1px solid #b4bac1; }
[data-skin='ipod'] .titlebar .ctl, [data-skin='ipod'] .menubar { display: none; }
[data-skin='ipod'] .statusbar { margin: 0; border-top: 1px solid #e0e3e6; background: #f6f8fa; font: 12px var(--ios); color: #6b7682; }
[data-skin='ipod'] .statusbar > * { border: 0; padding: 4px 10px; }
[data-skin='ipod'] .layout { padding: 6px; gap: 6px; }
[data-skin='ipod'] .actionbar { background: rgba(255, 255, 255, 0.7); border: 1px solid #a9abae; border-radius: 10px; font: 14px var(--ios); padding: 6px 6px 6px 10px; }
[data-skin='ipod'] .kicker { font: 700 12px var(--ios); color: #5f9620; letter-spacing: 0.5px; }
[data-skin='ipod'] .prompt { font: 700 22px/1.2 var(--ios); }
[data-skin='ipod'] .big { font: 700 22px/1.2 var(--ios); }
[data-skin='ipod'] .muted { color: #6b7682; }
[data-skin='ipod'] .from { font: 13px var(--ios); }
[data-skin='ipod'] .riddle-tag, [data-skin='ipod'] .draw-tag, [data-skin='ipod'] .q-tag { border-radius: 4px; font: 700 10px var(--ios); }

[data-skin='ipod'] button:not(.etch-tools *, .home-btn, .nav-btn, .cell, .cf-item, .tb, .tray-btn, .pill) {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #8c939b;
  border-radius: 8px;
  font: 700 15px var(--ios);
  letter-spacing: 0;
  text-transform: none;
  color: #2b3a4a;
  background: linear-gradient(#fff, #eceef1 50%, #dde1e5 51%, #eef0f2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
  text-shadow: 0 1px 0 #fff;
}
[data-skin='ipod'] button.go:not(.etch-tools *) { color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.35); border-color: #4a7d16; background: linear-gradient(#c6ef7e, #8cc63f 50%, #6aa926 51%, #82c034); }
[data-skin='ipod'] button.danger:not(.etch-tools *) { border-color: #7c0c0c; background: linear-gradient(#ff8c8c, #e5484d 50%, #c42424 51%, #d83a3a); }
[data-skin='ipod'] button:not(.etch-tools *):active:not(:disabled) { filter: brightness(0.85); }
[data-skin='ipod'] button:disabled { opacity: 0.55; }
[data-skin='ipod'] input, [data-skin='ipod'] textarea { border: 1px solid #9aa2aa; border-radius: 7px; box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.18); font: 17px var(--ios); padding: 8px 10px; }
[data-skin='ipod'] .code-in { font: 700 22px var(--ios); letter-spacing: 8px; }
[data-skin='ipod'] .notepad { font: 18px/1.35 var(--ios); background: #fffef2 repeating-linear-gradient(180deg, transparent 0 23px, #e6e0b8 23px 24px); background-attachment: local; }
[data-skin='ipod'] .hint { border: 1px solid #d8c36a; border-radius: 10px; background: linear-gradient(#fffce0, #fff3b0); font: 13px/1.3 var(--ios); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
[data-skin='ipod'] .hint .x { width: 28px; height: 28px; min-height: 0; padding: 0; border-radius: 50%; aspect-ratio: 1; }
[data-skin='ipod'] .hint .x .x-glyph { width: 10px; height: 9px; opacity: 0.75; }
[data-skin='ipod'] .led-code { border-radius: 8px; border: 0; }
[data-skin='ipod'] .dialup, [data-skin='ipod'] .reveal-answer { border-radius: 8px; }
[data-skin='ipod'] .progress { border-radius: 6px; border: 1px solid #8a96a2; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2); background: #e8ecf0; }
[data-skin='ipod'] .progress i { background: linear-gradient(#a8e060, #5f9620); }

[data-skin='ipod'] .lw { font: 15px var(--ios); }
[data-skin='ipod'] .lw th { background: #eef1f4; color: #6b7682; border: 0; border-bottom: 1px solid #d6dadf; font: 700 11px var(--ios); text-transform: uppercase; padding: 4px 8px; }
[data-skin='ipod'] .lw td { padding: 5px 8px; border-bottom: 1px solid #eceef1; }
[data-skin='ipod'] .lw tr:nth-child(even) td { background: #fff; }
[data-skin='ipod'] .lw .type { font: 700 11px var(--ios); }
[data-skin='ipod'] .answer .body { font: 16px/1.3 var(--ios); }
[data-skin='ipod'] .answer .titlebar img { width: 20px; height: 20px; }

/* segmented control for the picker */
[data-skin='ipod'] .tabs { margin: 0 0 10px; border: 1px solid #4a7d16; border-radius: 7px; overflow: hidden; }
[data-skin='ipod'] .tabs .tab { flex: 1; margin: 0; border: 0; border-radius: 0; min-height: 32px; padding: 0; font-size: 13px; color: #4a7d16; border-left: 1px solid #4a7d16; }
[data-skin='ipod'] .tabs .tab:first-child { border-left: 0; }
[data-skin='ipod'] .tabs .tab.on { color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3); background: linear-gradient(#b5e36a, #7cbb2e 50%, #5f9620 51%, #6aa926); }
[data-skin='ipod'] .tabpane { border: 0; padding: 0; }
[data-skin='ipod'] .pane label { font: 700 12px var(--ios); color: #4c566c; }
[data-skin='ipod'] .sugg button { justify-content: flex-start; font: 15px/1.2 var(--ios); text-align: left; padding: 6px 10px; min-height: 36px; }

/* chat as SMS */
[data-skin='ipod'] .irc { background: #dbe2ed; color: #111; border: 0; border-radius: 8px; box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2); font: 15px/1.3 var(--ios); padding: 8px; }
[data-skin='ipod'] .irc .msg { width: fit-content; max-width: 85%; margin: 0 0 6px; padding: 5px 12px 6px; border-radius: 16px; background: linear-gradient(#fff, #e9ecf0); border: 1px solid #b3bcc6; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12); }
[data-skin='ipod'] .irc .msg.mine { margin-left: auto; background: linear-gradient(#d9f7a8, #9ed85a); border-color: #6aa926; }
[data-skin='ipod'] .irc .nick { display: block; font: 700 11px var(--ios); filter: brightness(0.7); }
[data-skin='ipod'] .irc .msg.mine .nick { display: none; }
[data-skin='ipod'] .irc .sys { color: #6b7682; text-align: center; font-size: 12px; }

/* Cover Flow vote */
.vote-sheet { flex: none; border-radius: 10px; background: linear-gradient(#000, #1b1b1b 70%, #000); color: #fff; padding: 8px 0 10px; overflow: hidden; }
.coverflow { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; perspective: 520px; padding: 6px calc(50% - 50px) 40px; scrollbar-width: none; }
.coverflow::-webkit-scrollbar { display: none; }
.cf-item { all: unset; flex: none; width: 100px; scroll-snap-align: center; transform-style: preserve-3d; transition: transform 0.12s; cursor: pointer; }
.cf-item .art { display: block; }
.cf-item .art img { display: block; width: 100px; height: 100px; background: radial-gradient(circle at 50% 30%, #3a3a3a, #111); -webkit-box-reflect: below 2px linear-gradient(transparent 55%, rgba(255, 255, 255, 0.35)); }
.cf-item .cap { display: none; }
.cf-item.center .art img { box-shadow: 0 0 0 2px #8be01e; }
.cf-name { margin: 0 0 8px; text-align: center; font: 700 16px var(--ios); min-height: 21px; }
.vote-sheet .row { padding: 0 10px; }
.vote-sheet .row button { flex: 1; }

/* alerts: navy glass */
[data-skin='ipod'] .modal-bg { background: rgba(0, 0, 0, 0.45); }
[data-skin='ipod'] .confirm { width: min(290px, 100%); border: 2px solid rgba(255, 255, 255, 0.8); border-radius: 12px; background: linear-gradient(rgba(70, 90, 140, 0.92), rgba(18, 32, 72, 0.94)); color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6); }
[data-skin='ipod'] .confirm .titlebar { background: none; border: 0; color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5); justify-content: center; font-size: 17px; padding-top: 12px; }
[data-skin='ipod'] .confirm .titlebar img { display: none; }
[data-skin='ipod'] .confirm .titlebar .t { flex: none; }
[data-skin='ipod'] .confirm .wbody { flex-direction: column; align-items: center; text-align: center; font: 15px/1.3 var(--ios); padding: 4px 14px 12px; }
[data-skin='ipod'] .confirm .q { font: 700 16px var(--ios); }
[data-skin='ipod'] .confirm .btns { padding: 0 12px 12px; }
[data-skin='ipod'] .confirm .btns button { flex: 1; color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5); border-color: rgba(0, 0, 0, 0.6); background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.04) 51%, rgba(255, 255, 255, 0.12)); }
[data-skin='ipod'] .confirm .btns button.danger { background: linear-gradient(#ff8c8c, #d33 50%, #b11 51%, #c22); }
[data-skin='ipod'] .dialog.help { border-radius: 12px; }
[data-skin='ipod'] .steps .n { border-radius: 50%; background: linear-gradient(#b5e36a, #5f9620); color: #fff; font: 700 15px var(--ios); }
[data-skin='ipod'] .steps b { font: 700 15px var(--ios); text-transform: none; }
[data-skin='ipod'] .steps p { font: 14px/1.3 var(--ios); }
[data-skin='ipod'] .help .solo { border-radius: 8px; border-color: #a9abae; background: #f4f7ee; font-size: 14px; }

/* sad iPod on a loss */
.sad { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 20px; text-align: center; background: linear-gradient(#f2f4f6, #d3d9df); color: #26323e; font: 15px/1.35 var(--ios); cursor: pointer; animation: fadein 0.4s; }
.sad svg { width: 110px; height: auto; margin-bottom: 10px; }
.sad .h { font: 700 22px var(--ios); margin: 0; }
.sad p { margin: 0; }
.sad .s { margin-top: 14px; color: #6b7682; font-size: 13px; }
@keyframes fadein { from { opacity: 0; } }
[data-skin='ipod'] #toast { bottom: 50%; transform: translate(-50%, 50%) scale(0.9); background: rgba(0, 0, 0, 0.78); color: #fff; border: 0; border-radius: 12px; font: 700 15px var(--ios); padding: 14px 18px; box-shadow: none; }
[data-skin='ipod'] #toast.show { transform: translate(-50%, 50%); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .ticker .track { padding-left: 0; }
}

.window.nope { animation: nope 0.32s steps(2) 1; }
@keyframes nope { 25% { translate: -4px 0; } 50% { translate: 4px 0; } 75% { translate: -2px 0; } }

.cf-said { margin: 0 10px 2px; min-height: 46px; display: grid; place-items: center; }
.cf-said .said { position: relative; margin: 0; max-width: 100%; padding: 7px 12px; border-radius: 14px; background: linear-gradient(#fdfdfd, #dfe5ea); color: #1d2630; font: 15px/1.3 var(--ios); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); animation: said-in 0.18s ease-out; }
.cf-said .said.none { background: #333; color: #aaa; font-style: italic; }
.cf-said .said-art { width: 120px; height: 90px; border-radius: 6px; background: #c9cdc3; box-shadow: 0 0 0 4px #c7121f, 0 1px 3px 4px rgba(0, 0, 0, 0.5); image-rendering: pixelated; animation: said-in 0.18s ease-out; }
@keyframes said-in { from { opacity: 0; transform: translateY(4px) scale(0.97); } }
.answer.picked { outline: 3px solid #4aa0e6; outline-offset: -1px; }

.busy-bg { z-index: 60; opacity: 0; pointer-events: none; transition: opacity 0.12s steps(2); }
.busy-bg.show { opacity: 1; pointer-events: auto; }
.dialog.busy { width: min(380px, 100%); }
.busy .wbody { display: flex; flex-direction: column; gap: 6px; }
.busy-t { margin: 0; font: 700 14px var(--px); }
.busy-s { margin: 0 0 4px; font-size: 18px; }
.copyanim { position: relative; display: flex; justify-content: space-between; align-items: center; height: 54px; padding: 0 6px; }
.copyanim > img { width: 42px; height: 42px; }
.copyanim .paper { position: absolute; left: 54px; right: 54px; top: 0; bottom: 0; }
.copyanim .paper i { position: absolute; left: 0; top: 22px; width: 12px; height: 15px; background: #fff; border: 1.5px solid #000; box-shadow: inset 0 3px 0 -1px #fff, inset 0 4px 0 -1px #777, inset 0 8px 0 -1px #fff, inset 0 9px 0 -1px #777; animation: fly 1.5s steps(10) infinite; opacity: 0; }
.copyanim .paper i:nth-child(2) { animation-delay: 0.5s; }
.copyanim .paper i:nth-child(3) { animation-delay: 1s; }
@keyframes fly { 0% { left: 0; top: 22px; opacity: 1; rotate: -10deg; } 50% { top: 0; rotate: 10deg; } 99% { left: calc(100% - 12px); top: 22px; opacity: 1; rotate: -6deg; } 100% { opacity: 0; } }
.mini-bar { flex: none; width: 120px; }
.mini-bar .progress { height: 16px; padding: 1px; gap: 1px; }
.mini-bar .progress i { width: 9px; }
[data-skin='ipod'] .dialog.busy { width: min(250px, 100%); border-radius: 14px; border: 0; background: rgba(15, 18, 24, 0.86); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); }
[data-skin='ipod'] .busy .titlebar { display: none; }
[data-skin='ipod'] .busy .wbody { align-items: center; text-align: center; padding: 18px 16px 16px; background: none; }
[data-skin='ipod'] .busy-t { font: 700 17px var(--ios); }
[data-skin='ipod'] .busy-s { font: 13px var(--ios); color: #aab; }
[data-skin='ipod'] .busy .progress { width: 100%; }
[data-skin='ipod'] .busy .copyanim { width: 100%; max-width: 200px; }
@media (prefers-reduced-motion: reduce) { .copyanim .paper i { animation: none; opacity: 1; left: 45%; } }

/* Kevin, the mascot: two stacked frames, the top one blinks. */
.kev { position: relative; display: inline-block; width: 48px; height: 48px; flex: none; }
.kev img { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.kev .blink { opacity: 0; animation: kev-blink 4.2s infinite steps(1); }
@keyframes kev-blink { 0%, 93% { opacity: 0; } 94%, 97% { opacity: 1; } 98% { opacity: 0; } }
.kev.big { width: 96px; height: 96px; }
.deskrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kevin-ico { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; font: 11px var(--px); color: #fff; text-shadow: 1px 1px 0 #000; padding: 2px 4px; }
.kevin-ico:hover .kev, .kevin-ico:focus-visible .kev { filter: drop-shadow(0 0 4px #b6ff5a); }
.kevin-ico:focus-visible span:last-child { background: #000080; outline: 1px dotted #fff; }
.kevin-dlg { max-width: min(520px, 100%); }
.kevin-card { display: flex; gap: 14px; align-items: flex-start; }
.props { border-collapse: collapse; font: 18px/1.15 var(--vt); }
.props th { text-align: left; font-weight: normal; color: #555; padding: 1px 10px 1px 0; white-space: nowrap; vertical-align: top; }
.lore { margin-top: 10px; border-top: 1px solid #808080; box-shadow: 0 1px 0 #fff inset; padding-top: 8px; font: 18px/1.2 var(--vt); }
.lore p { margin: 0 0 8px; }
[data-skin='ipod'] .ios-list .cell > .kev { width: 32px; height: 32px; flex: none; }
[data-skin='ipod'] .share-dlg .tip { font: 13px/1.35 var(--ios); }
[data-skin='ipod'] .props, [data-skin='ipod'] .lore { font: 13px/1.35 var(--ios); }
[data-skin='ipod'] .props th { color: #6d7580; }
@media (max-width: 560px) {
  .kevin-card { gap: 10px; }
  .kev.big { width: 64px; height: 64px; }
  .props, .lore { font-size: 16px; }
}

/* Share dialog */
.share-dlg { width: min(460px, 100%); }
.share-prev { position: relative; display: block; background: #000; padding: 0; overflow: hidden; }
.share-prev img { display: block; width: 100%; aspect-ratio: 1200 / 630; image-rendering: pixelated; }
.share-cap { display: block; padding: 4px 8px; background: #fff; color: #000; font: 12px var(--px); border-top: 1px solid #808080; }
.share-cap small { display: block; color: #666; font: 15px var(--vt); }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.share-grid button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; font: 11px var(--px); text-transform: none; }
.share-grid .wide { grid-column: 1 / -1; flex-direction: row; justify-content: center; }
.net { display: grid; place-items: center; width: 26px; height: 26px; font: 700 13px var(--px); color: #fff; background: #333; border: 2px solid #000; box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.35), inset 2px 2px 0 rgba(255, 255, 255, 0.35); }
.net-x { background: #111; }
.net-dc { background: #5865f2; }
.net-tg { background: #229ed9; }
.net-wa { background: #25d366; }
.net-rd { background: #ff4500; }
[data-skin='ipod'] .share-grid button { font: 600 12px var(--ios); }
[data-skin='ipod'] .net { border-radius: 7px; border: 0; }
[data-skin='ipod'] .share-cap { font: 600 13px var(--ios); }

/* Quick match */
.btn2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 6px; }
.qline { margin: 6px 0 0; font: 16px var(--vt); min-height: 1em; }
.match { display: flex; gap: 16px; align-items: center; }
.match-txt { flex: 1; min-width: 0; }
.match-txt p { margin: 4px 0 8px; font: 20px/1.15 var(--vt); }
.qcount { color: #c00; font-weight: bold; }
.radar { position: relative; flex: none; width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle, #0a3 0 2px, transparent 3px), repeating-radial-gradient(circle, #032 0 13px, #0a4a1a 13px 14px); border: 3px solid #111; box-shadow: inset 0 0 12px #000; overflow: hidden; }
.radar i { position: absolute; inset: 0; background: conic-gradient(from 0deg, rgba(57, 255, 106, 0.65), transparent 70deg); animation: radar 1.6s steps(24) infinite; }
@keyframes radar { to { transform: rotate(360deg); } }
[data-skin='ipod'] .match-txt p { font: 14px/1.35 var(--ios); }
[data-skin='ipod'] .qline { font: 13px var(--ios); }
@media (max-width: 560px) { .radar { width: 60px; height: 60px; } .match { gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .radar i { animation: none; } }

/* Account & game history */
.acct-btn { align-items: center; gap: 4px; }
.acct-btn .nick { font: 18px var(--vt); max-width: 9ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-dlg { width: min(560px, 100%); }
.acct-pitch { display: flex; gap: 14px; align-items: flex-start; }
.acct-pitch img.big { width: 64px; height: 64px; flex: none; }
.acct-pitch p { margin: 6px 0 0; font: 19px/1.2 var(--vt); }
.acct-dlg .go img { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.stat { display: flex; flex-direction: column; padding: 6px 8px; background: #fff; min-width: 0; }
.stat small { font: 9px var(--px); text-transform: uppercase; color: #555; }
.stat b { font: 34px/1 var(--vt); color: #1d5e12; }
.stat span { font: 15px/1.1 var(--vt); color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gamelist { margin-top: 8px; background: #fff; max-height: min(260px, 38vh); overflow: auto; }
.gamelist table { width: 100%; border-collapse: collapse; font: 18px/1.15 var(--vt); }
.gamelist th { position: sticky; top: 0; background: var(--face); font: 10px var(--px); text-align: left; padding: 3px 6px; border: 1px solid; border-color: var(--hi) var(--lo) var(--lo) var(--hi); white-space: nowrap; }
.gamelist td { padding: 2px 6px; white-space: nowrap; }
.gamelist .num { text-align: right; }
.gamelist tr.win b { color: #1d7a12; }
.gamelist tr.loss b { color: #b3261e; }
.gamelist .empty { margin: 0; padding: 18px 10px; text-align: center; font: 19px var(--vt); }
.acct-dlg .who { display: flex; align-items: center; gap: 6px; font: 18px var(--vt); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-dlg .row { gap: 6px; }
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat b { font-size: 28px; }
  .gamelist { max-height: 34vh; }
}
[data-skin='ipod'] .stat { border-radius: 10px; border: 0; background: #f2f3f5; }
[data-skin='ipod'] .stat small { font: 600 10px var(--ios); letter-spacing: 0.02em; }
[data-skin='ipod'] .stat b { font: 700 26px/1.1 var(--ios); color: #2f7d16; }
[data-skin='ipod'] .stat span, [data-skin='ipod'] .acct-pitch p, [data-skin='ipod'] .acct-dlg .who { font: 13px/1.35 var(--ios); }
[data-skin='ipod'] .gamelist { border-radius: 10px; border: 1px solid #d5d8dd; }
[data-skin='ipod'] .gamelist table { font: 13px/1.3 var(--ios); }
[data-skin='ipod'] .gamelist th { font: 600 11px var(--ios); background: #eceef1; border: 0; border-bottom: 1px solid #d5d8dd; }
[data-skin='ipod'] .gamelist td { padding: 5px 6px; border-bottom: 1px solid #eef0f2; }
[data-skin='ipod'] .grow-win > .wbody > .taskhead { background: #fff; border-bottom: 1px solid #d5d8dd; box-shadow: 0 6px 10px -8px rgba(0, 0, 0, 0.35); }

/* Tabs, rank, achievements, season ledger */
.tabs98 { display: flex; gap: 2px; margin: 0 0 -2px 4px; position: relative; z-index: 1; }
.tabs98 button { min-height: 0; padding: 4px 12px 3px; font: 11px var(--px); border-bottom: 0; box-shadow: none; border-radius: 0; }
.tabs98 button.on { padding-bottom: 6px; margin-top: -2px; background: var(--face); }
.tabpane { border: 2px solid; border-color: var(--hi) var(--dk) var(--dk) var(--hi); padding: 8px; height: min(52vh, 400px); overflow: auto; overscroll-behavior: contain; }
.tabpane .gamelist { margin: 0; max-height: none; }
.rankbox { display: flex; align-items: center; gap: 10px; background: #050805; color: var(--led, #39ff6a); padding: 8px 10px; margin-bottom: 8px; }
.rankbox img.big { width: 40px; height: 40px; flex: none; }
.rankbox small, .pts-big small { font: 9px var(--px); text-transform: uppercase; color: #8fd99a; display: block; }
.rankbox b { font: 30px/1 var(--vt); color: var(--amber, #ffbf3b); text-shadow: 0 0 8px rgba(255, 191, 59, 0.5); }
.rankbox .muted { color: #8fd99a; font: 16px var(--vt); }
.rankbox .rankbar { margin: 4px 0 2px; }
.rankbox .grow { flex: 1; min-width: 0; }
.pts-big { text-align: right; flex: none; }
.pts-big b { color: var(--led, #39ff6a); text-shadow: 0 0 8px rgba(57, 255, 106, 0.6); font-size: 38px; }
.stat.bad b { color: #b3261e; }
.achs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.ach { display: flex; gap: 8px; align-items: center; padding: 6px 8px; background: #fff; position: relative; min-width: 0; }
.ach img { width: 32px; height: 32px; flex: none; filter: grayscale(1) opacity(0.45); }
.ach.done img { filter: none; }
.ach b { display: block; font: 11px var(--px); }
.ach small { display: block; font: 16px/1.05 var(--vt); color: #555; }
.ach .grow { min-width: 0; }
.ach.done { background: #f4ffe8; }
.ach.shame.done { background: #fff0ee; }
.ach.secret b { letter-spacing: 0.2em; }
.ach .stamp { flex: none; }
.achbar { display: flex; align-items: center; gap: 6px; margin-top: 3px; font: 14px var(--vt); color: #555; }
.achbar .blocks, .achbar > :first-child { flex: 1; min-width: 0; }
.stamp.bad { color: #b3261e; border-color: #b3261e; }
.gamelist .robo { color: #b3261e; font-weight: bold; }
.gamelist .pts { color: #1d5e12; font-weight: bold; }
.ledger-dlg { width: min(620px, 100%); }
.ledger-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.ledger-lore { margin: 0 0 8px; font: 17px/1.1 var(--vt); }
.ledger-head .season, .ledger-head .seal { flex: none; background: #050805; color: var(--amber, #ffbf3b); text-align: center; padding: 4px 10px; font: 9px var(--px); text-transform: uppercase; }
.ledger-head .season b { display: block; font: 32px/1 var(--vt); text-shadow: 0 0 8px rgba(255, 191, 59, 0.5); }
.ledger-head .seal { display: flex; align-items: center; gap: 6px; color: #8fd99a; line-height: 1.3; }
.ledger-head .seal img { width: 24px; height: 24px; }
.ledger-head .seal b { color: var(--led, #39ff6a); font: 20px var(--vt); }
.gamelist.ledger { max-height: min(42vh, 340px); }
.gamelist.ledger td img { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.gamelist.ledger tr.top td { background: #fffbe0; }
.gamelist.ledger tr.me td { background: #e4f7d4; font-weight: bold; }
.gamelist.ledger tbody.mine tr td { border-top: 2px dashed #888; }
.gamelist.ledger .name { max-width: 16ch; overflow: hidden; text-overflow: ellipsis; }
.redacted { display: flex; align-items: center; gap: 8px; margin-top: 8px; font: 18px var(--vt); }
.redacted img { width: 16px; height: 16px; }
.redacted .bar { display: inline-block; width: 7.5em; height: 0.9em; vertical-align: -0.1em; background: #111; }
.redacted > span:nth-child(2) { white-space: nowrap; }
.redacted .hex { margin-inline-start: auto; font: 14px var(--vt); color: #9a9a9a; opacity: 0.55; user-select: all; }
.fine { margin: 6px 0 0; font: 13px var(--vt); color: #777; text-align: center; }
.scoreline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 8px; font: 20px var(--vt); }
.scoreline b { color: #1d5e12; font-size: 26px; }
.linkish { background: none; border: 0; box-shadow: none; padding: 0; min-height: 0; color: #00c; text-decoration: underline; font: inherit; text-transform: none; letter-spacing: normal; cursor: pointer; }
.acct-dlg .row button img { width: 16px; height: 16px; margin-inline-end: 5px; vertical-align: -3px; }
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .tabpane { height: min(58vh, 520px); padding: 6px; }
  .rankbox b { font-size: 24px; }
  .pts-big b { font-size: 28px; }
  .achs { grid-template-columns: 1fr; }
  .ledger-head .grow b { font-size: 20px; }
  .gamelist.ledger { max-height: 46vh; }
  .gamelist.ledger th:nth-child(3), .gamelist.ledger td:nth-child(3) { display: none; }
  .acct-dlg .row { flex-wrap: wrap; }
  .acct-dlg .row .who { flex-basis: 100%; }
}
[data-skin='ipod'] .tabs98 { margin: 0 0 8px; background: #e3e6ea; border-radius: 9px; padding: 2px; }
[data-skin='ipod'] .tabs98 button { flex: 1; border: 0; border-radius: 7px; background: none; font: 600 12px var(--ios); padding: 6px 4px; margin: 0; }
[data-skin='ipod'] .tabs98 button.on { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
[data-skin='ipod'] .tabpane { border: 0; padding: 0; }
[data-skin='ipod'] .rankbox, [data-skin='ipod'] .ledger-head .season, [data-skin='ipod'] .ledger-head .seal { border-radius: 10px; }
[data-skin='ipod'] .rankbox { background: linear-gradient(#2a2f36, #111418); }
[data-skin='ipod'] .ach { border-radius: 10px; border: 0; background: #f2f3f5; }
[data-skin='ipod'] .ach.done { background: #eaf7df; }
[data-skin='ipod'] .ach.shame.done { background: #fdecea; }
[data-skin='ipod'] .ach b { font: 700 13px var(--ios); }
[data-skin='ipod'] .ach small, [data-skin='ipod'] .achbar, [data-skin='ipod'] .ledger-head p, [data-skin='ipod'] .redacted, [data-skin='ipod'] .scoreline { font: 13px/1.3 var(--ios); }
[data-skin='ipod'] .scoreline b { font: 700 20px var(--ios); }
[data-skin='ipod'] .fine { font: 11px var(--ios); }

.tabpane .stat span { white-space: normal; line-height: 1; }
[data-skin='ipod'] .ledger-head .grow b { font: 700 17px var(--ios); }
[data-skin='ipod'] .ledger-lore { font: 13px/1.35 var(--ios); color: #4c566c; }
.acct-dlg > .wbody { display: flex; flex-direction: column; overflow: hidden; }
.acct-dlg > .wbody > * { flex: none; }
.acct-dlg > .wbody > .tabpane, .acct-dlg > .wbody > .gamelist.ledger { flex: 0 1 auto; min-height: 96px; overflow: auto; }

/* ---------- language ---------- */
.globe { display: inline-flex; align-items: center; justify-content: center; flex: none; line-height: 1; }
.lang-pick .globe { margin-inline-end: 4px; }
.lang-pick { white-space: nowrap; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; }
.tray-btn.lang-btn { font: 16px var(--vt); align-items: center; gap: 2px; }
.ios-list .cell > .globe { flex: none; width: 32px; height: 32px; font-size: 24px; }
.lang-dlg { width: min(440px, 100%); }
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 4px; max-height: min(60vh, 420px); overflow: auto; }
.lang-grid button { text-align: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lang-grid button.on { font-weight: bold; outline: 1px dotted currentColor; outline-offset: -4px; }
.lang-chip { display: inline-flex; align-items: center; gap: 4px; font: 16px var(--vt); padding: 0 6px; border: 1px solid currentColor; margin: 4px 0; white-space: nowrap; }
.match-txt .lang-chip { margin-inline-start: 8px; vertical-align: 2px; }
[data-skin='ipod'] .lang-chip { font: 12px var(--ios); border-radius: 10px; padding: 1px 8px; border-color: rgba(0, 0, 0, 0.25); }
[data-skin='ipod'] .lang-grid button.on { outline: 0; background: #2f7de1; color: #fff; }
@media (max-width: 380px) { .lang-grid { grid-template-columns: 1fr 1fr; } }
.lang-pick .lc, .deskrow .helpbtn .lc { display: none; }
.joinform .go { white-space: nowrap; flex: none; }
.joinform .code-in { min-width: 0; }
@container os (max-width: 460px) {
  .lang-pick .ln, .deskrow .helpbtn .ln { display: none; }
  .lang-pick .lc, .deskrow .helpbtn .lc { display: inline; }
  .deskrow .helpbtn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .deskrow .lang-pick { flex: none; padding: 4px; }
}
.pane-tab .lbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Narrow CRT: game tabs stack icon over label so translated names fit; the skin switch lives in the Start menu. */
@container os (max-width: 460px) {
  .pane-tab { flex-direction: column; gap: 2px; padding: 2px 3px; font-size: 10px; line-height: 1; }
  .pane-tab img { width: 16px; height: 16px; }
  .pane-tab .lbl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pane-tab .badge { top: -5px; right: 2px; }
  #bar:has(.panes) .tray [data-act='skin'] { display: none; }
}

/* The side column is ~300px on 1024px screens while the screen is wide: size its rows by the column, not the screen. */
.modes { container: modes / inline-size; }
.joinform .code-in { flex: 1 1 0; }
.joinform button.go { width: auto; padding-inline: 18px; }
@container modes (max-width: 380px) {
  .deskrow { gap: 6px; }
  .deskrow .lang-pick .ln, .deskrow .helpbtn .ln { display: none; }
  .deskrow .lang-pick .lc, .deskrow .helpbtn .lc { display: inline; }
  .deskrow .helpbtn { flex: 0 1 auto; min-width: 0; padding: 4px 6px; white-space: nowrap; }
  .deskrow .lang-pick { display: none; }
  .deskrow .kevin-ico { padding: 2px 1px; font-size: 9px; }
  .deskrow .kevin-ico .kev, .deskrow .kevin-ico .kev img { width: 36px; height: 36px; }
}

/* ---------- HUMAN.ID ---------- */
.folk-btn { all: unset; cursor: pointer; display: inline-flex; flex: none; position: relative; box-shadow: 0 0 0 1px #000; line-height: 0; }
.folk-btn img.folk { width: 100%; height: 100%; image-rendering: pixelated; }
.folk-btn:hover, .folk-btn:focus-visible { box-shadow: 0 0 0 1px #000, 0 0 0 3px var(--lime, #9be22d); }
.folk-btn.xs { width: 24px; height: 24px; margin-inline-end: 6px; }
.folk-btn.sm { width: 32px; height: 32px; }
.lw td.name .folk-btn img, .gamelist td .folk-btn img { width: 100%; height: 100%; margin: 0; vertical-align: 0; }
.lw td.name { display: flex; align-items: center; gap: 4px; }
.gamelist.ledger td.name { display: flex; align-items: center; }
.gamelist.ledger td.name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folk-btn.forged::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, transparent 0 3px, rgba(224, 65, 58, 0.55) 3px 5px); }
.folk-empty { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-inline-end: 6px; background: #1a1a1a; color: #39ff6a; font: 14px var(--vt); box-shadow: inset 0 0 0 1px #444; animation: folk-scan 1.2s steps(2) infinite; }
@keyframes folk-scan { 50% { color: #0f4a1f; } }
.lw tr.me td { font-weight: bold; }
.ios-list .cell img.folk { border-radius: 7px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); }
.kevin-ico .kev img.folk { box-shadow: 0 0 0 1px #000; }

.id-dlg { width: min(600px, 100%); }
.idcard { display: flex; gap: 14px; align-items: flex-start; }
.id-pic { position: relative; flex: none; width: 200px; height: 200px; padding: 3px; background: #fff; box-shadow: inset -1px -1px #fff, inset 1px 1px #808080, inset -2px -2px #dfdfdf, inset 2px 2px #0a0a0a; }
.id-pic img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.id-pic .tier { position: absolute; left: -4px; bottom: 10px; padding: 3px 8px; font: 10px var(--px); color: #fff; text-transform: uppercase; box-shadow: 2px 2px 0 #000; }
.tier-common { background: #5b6066; } .tier-uncommon { background: #2f8f2f; } .tier-rare { background: #2d5fd0; }
.tier-epic { background: #7a3fd0; } .tier-legendary { background: #d27a00; }
.tier-mythic { background: linear-gradient(90deg, #d0206a, #7a3fd0, #2d5fd0, #2f8f2f, #d27a00); background-size: 300% 100%; animation: mythic 3s linear infinite; }
@keyframes mythic { to { background-position: 300% 0; } }
.forged-stamp { position: absolute; inset: 40% -6px auto; text-align: center; transform: rotate(-14deg); font: 20px var(--px); color: #e0413a; border: 3px double #e0413a; background: rgba(255, 255, 255, 0.7); padding: 2px 0; letter-spacing: 2px; }
.id-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.id-info > small { font: 10px var(--px); color: #555; }
.id-serial { font: 30px/1 var(--vt); color: #000080; letter-spacing: 1px; }
.props { border-collapse: collapse; width: 100%; font: 15px/1.15 var(--vt); background: #fff; box-shadow: inset 1px 1px #808080, inset -1px -1px #fff; }
.props th { text-align: start; font-weight: normal; color: #555; padding: 1px 6px; width: 40%; white-space: nowrap; }
.props td { padding: 1px 6px; overflow-wrap: anywhere; }
.props tr:nth-child(odd) { background: #f1f1ee; }
.certified { margin: 2px 0 0; font: 11px var(--px); }
.certified small { font: 14px var(--vt); color: #666; }
.forged .certified s { color: #888; }
.barcode { display: flex; height: 22px; gap: 1px; overflow: hidden; }
.barcode i { flex: none; width: 1px; background: transparent; }
.barcode i.on { background: #000; }
.barcode i.w1 { width: 2px; } .barcode i.w2 { width: 3px; } .barcode i.w3 { width: 1px; }
.id-btns { flex-wrap: wrap; }
@media (max-width: 560px) {
  .idcard { flex-direction: column; align-items: center; }
  .id-pic { width: min(56vw, 220px); height: min(56vw, 220px); }
  .id-info { width: 100%; }
  .id-serial { text-align: center; font-size: 28px; }
  .id-info > small { text-align: center; }
}
@media (max-height: 640px) and (max-width: 560px) {
  .id-pic { width: 132px; height: 132px; }
  .props { font-size: 13px; }
}
[data-skin='ipod'] .id-pic { border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); }
[data-skin='ipod'] .id-pic .tier { left: 8px; border-radius: 6px; }
[data-skin='ipod'] .props { font: 13px/1.3 var(--ios); border-radius: 8px; overflow: hidden; }
[data-skin='ipod'] .id-serial { font-family: var(--ios); font-weight: 700; font-size: 24px; }

/* ---------- for those who know ---------- */
#rain { position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.85; transition: opacity 0.6s; }
#rain.out { opacity: 0; }
body.granted #screen { animation: granted 1.6s steps(8); }
@keyframes granted { 0%, 100% { filter: none; } 20%, 60% { filter: hue-rotate(80deg) saturate(3) brightness(1.2); } 40%, 80% { filter: none; } }
.pills { display: inline-flex; gap: 6px; align-items: center; margin-inline-end: 6px; }
.pills .pill { all: unset; cursor: pointer; width: 14px; height: 7px; border-radius: 4px; box-shadow: inset -1px -1px rgba(0, 0, 0, 0.35), 0 0 0 1px #000; opacity: 0.55; }
.pills .pill:hover, .pills .pill:focus-visible { opacity: 1; }
.pills .pill.red { background: #e0413a; }
.pills .pill.blue { background: #3f6fd8; }
[data-skin='ipod'] .pills .pill { width: 18px; height: 9px; border-radius: 5px; background-image: linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 55%); }
