/* Fonts are self-hosted (OFL, see fonts/LICENSES.md): no requests to Google Fonts. */
@font-face { font-family: "Monoton"; src: url("./fonts/monoton.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Pacifico"; src: url("./fonts/pacifico.woff2") format("woff2"); font-display: swap; }

/* ---------- theme tokens: the 2000s look is the default, other decades override ---------- */
:root {
  --font: "Trebuchet MS", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: var(--font);
  --display-weight: 800;
  --ink: #17345e;
  --muted: #4f6b93;
  --card: rgba(255, 255, 255, 0.86);
  --panel-border: 2px solid rgba(255, 255, 255, 0.95);
  --panel-shadow: 0 18px 40px rgba(20, 60, 120, .18);
  --radius: 22px;
  --a: #ff7ac6;
  --b: #7a5cff;
  --primary-bg: linear-gradient(#6fd3ff, #2b8ff0);
  --primary-ink: #fff;
  --primary-shadow: inset 0 2px 0 rgba(255,255,255,.5), 0 6px 14px rgba(43,143,240,.35);
  --btn-bg: #fff;
  --btn-border: 0;
  --chip-bg: linear-gradient(#6fd3ff, #2b8ff0);
  --chip-ink: #fff;
  --brand-ink: #fff;
  --brand-accent: #fff3a6;
  --brand-shadow: 0 2px 6px rgba(0,40,100,.35);
  --icon-bg: rgba(255,255,255,.35);
  --icon-ink: #fff;
  --icon-border: 2px solid rgba(255,255,255,.95);
  --foot: #eaffdf;
  --foot-link: #fff;
  --reveal-year: #2b8ff0;
  --dlg-bg: #f7fbff;
  --sky: linear-gradient(#2f7fe0 0%, #8cc8ff 55%, #e8f6ff 100%);
  --page: #8cc8ff;
  /* 90s bevels: raised button, pressed button, sunken field, window frame, default (focused) button */
  --w-out: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #dfdfdf;
  --w-in: inset -1px -1px #fff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px #808080;
  --w-field: inset -1px -1px #fff, inset 1px 1px #808080, inset -2px -2px #dfdfdf, inset 2px 2px #0a0a0a;
  --w-window: inset -1px -1px #0a0a0a, inset 1px 1px #dfdfdf, inset -2px -2px #808080, inset 2px 2px #fff;
  --w-default: inset -1px -1px #000, inset 1px 1px #000, inset -2px -2px #0a0a0a, inset 2px 2px #fff, inset -3px -3px #808080, inset 3px 3px #dfdfdf;
  --w-title: linear-gradient(90deg, #000080, #1084d0);
}

/* 80s: neon sunset, striped sun, glowing grid */
[data-decade="80s"] {
  --display: "Monoton", var(--font);
  --display-weight: 400;
  --ink: #fbeaff;
  --muted: #c9a8ff;
  --card: rgba(22, 6, 46, .86);
  --panel-border: 2px solid #19f0ff;
  --panel-shadow: 0 0 22px rgba(25, 240, 255, .45), 0 0 60px rgba(255, 60, 172, .25);
  --radius: 14px;
  --a: #ff3cac;
  --b: #19f0ff;
  --primary-bg: linear-gradient(90deg, #ff3cac, #784ba0 60%, #2b86c5);
  --primary-ink: #fff;
  --primary-shadow: 0 0 18px rgba(255, 60, 172, .6);
  --btn-bg: transparent;
  --btn-border: 2px solid #19f0ff;
  --chip-bg: #ff3cac;
  --chip-ink: #fff;
  --brand-ink: #19f0ff;
  --brand-accent: #ff3cac;
  --brand-shadow: 0 0 10px rgba(25, 240, 255, .8);
  --icon-bg: rgba(22, 6, 46, .6);
  --icon-ink: #19f0ff;
  --icon-border: 2px solid #19f0ff;
  --foot: #c9a8ff;
  --foot-link: #19f0ff;
  --reveal-year: #19f0ff;
  --dlg-bg: #1b0838;
  --sky: linear-gradient(#090220 0%, #2a0a52 42%, #8a1f7a 64%, #ff5f6d 78%, #ffb36b 100%);
  --page: #090220;
}

/* 90s: a classic beige-box desktop: teal wallpaper, grey bevelled windows, navy title bars */
[data-decade="90s"] {
  --font: Tahoma, Verdana, "Segoe UI", system-ui, sans-serif;
  --display: "Arial Black", "Arial Bold", Tahoma, Verdana, sans-serif;
  --display-weight: 900;
  --ink: #000;
  --muted: #3a3a3a;
  --card: #c0c0c0;
  --panel-border: 0;
  --panel-shadow: var(--w-window);
  --radius: 0;
  --a: #000080;
  --b: #1084d0;
  --primary-bg: #c0c0c0;
  --primary-ink: #000;
  --primary-shadow: var(--w-default);
  --btn-bg: #c0c0c0;
  --btn-border: 0;
  --chip-bg: #000080;
  --chip-ink: #fff;
  --brand-ink: #000;
  --brand-accent: #000080;
  --brand-shadow: none;
  --icon-bg: #c0c0c0;
  --icon-ink: #000;
  --icon-border: 0;
  --foot: #fff;
  --foot-link: #fff;
  --reveal-year: #000080;
  --dlg-bg: #c0c0c0;
  --page: #008080;
  --sky: #008080;
}

/* 2010s: pastel gradient, soft blobs, flat buttons, script headline */
[data-decade="2010s"] {
  --display: "Pacifico", var(--font);
  --display-weight: 400;
  --ink: #3d3550;
  --muted: #7a7090;
  --card: rgba(255, 255, 255, .92);
  --panel-border: 0;
  --panel-shadow: 0 20px 50px rgba(120, 80, 160, .18);
  --radius: 30px;
  --a: #ff6f91;
  --b: #9d7bff;
  --primary-bg: #ff6f61;
  --primary-ink: #fff;
  --primary-shadow: none;
  --btn-bg: #f3eefc;
  --btn-border: 0;
  --chip-bg: #f3eefc;
  --chip-ink: #7d5fd3;
  --brand-ink: #3d3550;
  --brand-accent: #ff6f61;
  --brand-shadow: none;
  --icon-bg: rgba(255,255,255,.7);
  --icon-ink: #3d3550;
  --icon-border: 0;
  --foot: #7a7090;
  --foot-link: #3d3550;
  --reveal-year: #ff6f61;
  --dlg-bg: #fff;
  --page: #ffd9c9;
  --sky:
    radial-gradient(40vmax 40vmax at 10% 10%, rgba(255, 179, 199, .9), transparent 70%),
    radial-gradient(45vmax 45vmax at 95% 30%, rgba(200, 182, 255, .9), transparent 70%),
    radial-gradient(40vmax 40vmax at 30% 100%, rgba(167, 230, 215, .8), transparent 70%),
    linear-gradient(160deg, #ffe3d6, #fbd3e9 50%, #dcd3ff);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--page);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s;
}
[hidden] { display: none !important; }

/* ---------- scenery ---------- */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--sky); }
.sun { position: absolute; right: 8%; top: 6%; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,248,214,.95), rgba(255,248,214,0) 70%); }
.cloud { position: absolute; background: #fff; opacity: .85; border-radius: 999px; height: 44px; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 70px; height: 70px; left: 30px; top: -34px; }
.cloud::after { width: 54px; height: 54px; left: 86px; top: -22px; }
.c1 { width: 170px; left: 8%; top: 14%; animation: drift 60s linear infinite; }
.c2 { width: 140px; left: 60%; top: 26%; opacity: .7; animation: drift 80s linear infinite reverse; }
@keyframes drift { from { transform: translateX(-20px); } to { transform: translateX(40px); } }
.hill { position: absolute; left: -10%; right: -10%; bottom: -12vh; height: 36vh; border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: linear-gradient(#5fbf3c, #2f8a23); }
.grid, .stars { display: none; }

[data-decade="80s"] .cloud, [data-decade="80s"] .hill { display: none; }
[data-decade="80s"] .sun { display: block; left: 50%; right: auto; top: auto; bottom: 22vh; width: min(64vw, 300px); height: min(64vw, 300px);
  transform: translateX(-50%);
  background: linear-gradient(#ffe66d, #ff8c5a 45%, #ff3cac);
  -webkit-mask: linear-gradient(#000 52%, transparent 52% 56%, #000 56% 64%, transparent 64% 69%, #000 69% 76%, transparent 76% 82%, #000 82% 87%, transparent 87%);
          mask: linear-gradient(#000 52%, transparent 52% 56%, #000 56% 64%, transparent 64% 69%, #000 69% 76%, transparent 76% 82%, #000 82% 87%, transparent 87%);
  filter: drop-shadow(0 0 30px rgba(255, 60, 172, .7)); }
[data-decade="80s"] .grid { display: block; position: absolute; left: -50%; right: -50%; bottom: 0; height: 60vh;
  background:
    repeating-linear-gradient(90deg, rgba(25,240,255,.8) 0 2px, transparent 2px 60px),
    repeating-linear-gradient(0deg, rgba(255,60,172,.8) 0 2px, transparent 2px 50px),
    linear-gradient(#1a0333, #090220);
  transform: perspective(400px) rotateX(68deg); transform-origin: bottom; animation: run 2.5s linear infinite; }
@keyframes run { from { background-position: 0 0, 0 0, 0 0; } to { background-position: 0 0, 0 50px, 0 0; } }
[data-decade="80s"] .stars { display: block; position: absolute; inset: 0 0 50% 0;
  background-image: radial-gradient(1.5px 1.5px at 12% 20%, #fff, transparent), radial-gradient(1px 1px at 30% 8%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 55% 16%, #fff, transparent), radial-gradient(1px 1px at 72% 6%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 88% 22%, #fff, transparent), radial-gradient(1px 1px at 42% 30%, #fff, transparent); }

[data-decade="90s"] .sun, [data-decade="90s"] .cloud, [data-decade="90s"] .hill,
[data-decade="2010s"] .sun, [data-decade="2010s"] .cloud, [data-decade="2010s"] .hill { display: none; }

@media (prefers-reduced-motion: reduce) { .cloud, .grid { animation: none !important; } }

/* ---------- layout ---------- */
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; max-width: 560px; width: 100%; margin: 0 auto; }
.brand { color: var(--brand-ink); text-decoration: none; font-size: 22px; letter-spacing: .3px; text-shadow: var(--brand-shadow); }
.brand b { color: var(--brand-accent); }
.top-actions { display: flex; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: var(--icon-border); background: var(--icon-bg);
  color: var(--icon-ink); font-size: 18px; font-weight: 700; cursor: pointer; }
.icon-btn:focus-visible, .btn:focus-visible, .decade-tile:focus-visible { outline: 3px solid var(--a); outline-offset: 2px; }

main { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 0 16px 24px; }
.panel { background: var(--card); border: var(--panel-border); border-radius: var(--radius);
  padding: 24px 20px; box-shadow: var(--panel-shadow); text-align: center; backdrop-filter: blur(6px); }

h1 { font-size: clamp(28px, 7vw, 40px); line-height: 1.15; margin: 8px 0 12px; }
.grad { white-space: nowrap; font-family: var(--display); font-weight: var(--display-weight);
  background: linear-gradient(90deg, var(--a), var(--b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-decade="80s"] .grad { filter: drop-shadow(0 0 8px rgba(255, 60, 172, .6)); }
.kicker { text-transform: uppercase; letter-spacing: 2px; font-size: 13px; color: var(--muted); margin: 0; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 18px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.btn { font: inherit; font-weight: 700; border: var(--btn-border); border-radius: 999px; padding: 14px 26px; font-size: 18px; cursor: pointer;
  color: var(--ink); background: var(--btn-bg); box-shadow: 0 3px 0 rgba(0,0,0,.08); text-decoration: none; display: inline-block; }
.btn-primary { color: var(--primary-ink); background: var(--primary-bg); box-shadow: var(--primary-shadow); border: var(--btn-border); }
[data-decade="80s"] .btn-primary { border-color: transparent; }
.btn-primary:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-small { font-size: 15px; padding: 10px 16px; }

.challenge { background: #fff3a6; color: #5b4300; border-radius: 16px; padding: 12px 16px; margin: 0 0 12px; text-align: center; font-weight: 700; }

/* ---------- decade picker: every tile wears its own decade, whatever the page theme ---------- */
.decades { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 4px 0 18px; }
.decade-tile { position: relative; font: inherit; cursor: pointer; text-align: left; padding: 14px 12px 12px; min-height: 92px;
  border-radius: 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; transition: transform .15s; }
.decade-tile b { font-size: 26px; line-height: 1; font-weight: 400; }
.decade-tile span { font-size: 12px; line-height: 1.25; opacity: .9; }
.decade-tile i { position: absolute; top: 8px; right: 10px; font-style: normal; font-size: 12px; font-weight: 700; }
.decade-tile[aria-pressed="true"] { outline: 3px solid var(--a); outline-offset: 3px; }
.decade-tile:not(:disabled):hover { transform: translateY(-2px); }
.decade-tile:disabled { opacity: .45; cursor: default; }
.decade-tile[data-decade="80s"] { color: #fbeaff; border: 2px solid #19f0ff; box-shadow: 0 0 12px rgba(25,240,255,.4);
  background: linear-gradient(#2a0a52, #8a1f7a 70%, #ff5f6d); }
.decade-tile[data-decade="80s"] b { font-family: "Monoton", var(--font); color: #ffe66d; text-shadow: 0 0 8px #ff3cac; }
.decade-tile[data-decade="2000s"] { color: #17345e; border: 2px solid #fff; border-radius: 18px;
  background: radial-gradient(130% 55% at 50% 100%, #6cc14a 0 60%, transparent 61%), linear-gradient(#bfe6ff, #e3f4ff); box-shadow: inset 0 2px 0 rgba(255,255,255,.7), 0 6px 14px rgba(43,143,240,.3); }
.decade-tile[data-decade="2000s"] b { font-family: "Trebuchet MS", var(--font); font-weight: 800; color: #1d5fb8; }
.decade-tile[data-decade="2000s"] span { color: #17345e; font-weight: 700; }
.decade-tile[data-decade="2010s"] { color: #3d3550; border: 0; border-radius: 22px;
  background: linear-gradient(140deg, #ffd6c9, #f8c3dd 50%, #d4c8ff); box-shadow: 0 8px 20px rgba(120,80,160,.18); }
.decade-tile[data-decade="2010s"] b { font-family: "Pacifico", var(--font); color: #ff6f61; }

/* ---------- play ---------- */
.progress { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; }
.progress span { width: 34px; height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--b) 25%, transparent); }
.progress span.done { background: var(--b); }
.progress span.now { background: var(--a); }
.chip { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--chip-bg); color: var(--chip-ink); font-weight: 700; font-size: 14px; }
.clue-figure { margin: 14px auto 0; }
.clue-figure img { display: block; width: 100%; max-height: 30vh; object-fit: contain; border-radius: 12px; background: #fff; }
[data-decade="80s"] .clue-figure img { border: 2px solid #ff3cac; box-shadow: 0 0 16px rgba(255,60,172,.5); }
.clue-figure figcaption { font-size: 11px; color: var(--muted); margin-top: 4px; }
.clue-figure figcaption a { color: inherit; }
.clue { font-size: 17px; line-height: 1.45; margin: 10px 0 0; color: var(--muted); font-style: italic; }
.clue.clue-only { font-size: clamp(20px, 5vw, 24px); font-style: normal; color: var(--ink); }

.year-display { display: block; font-size: 64px; line-height: 1.05; margin: 4px 0 4px;
  font-family: var(--display); font-weight: var(--display-weight);
  background: linear-gradient(var(--a), var(--b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-decade="80s"] .year-display { font-size: 64px; }
[data-decade="2010s"] .year-display { font-family: var(--font); font-weight: 800; }
/* Slider: a thick track filled up to the thumb (--fill is set from JS). */
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 12px; border-radius: 99px;
  background: linear-gradient(90deg, var(--a), var(--b)) 0 0 / var(--fill, 50%) 100% no-repeat, color-mix(in srgb, var(--b) 18%, transparent); }
input[type=range]::-moz-range-track { height: 12px; border-radius: 99px; background: color-mix(in srgb, var(--b) 18%, transparent); }
input[type=range]::-moz-range-progress { height: 12px; border-radius: 99px; background: linear-gradient(90deg, var(--a), var(--b)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: -10px; border-radius: 50%;
  background: #fff; border: 4px solid var(--a); box-shadow: 0 3px 8px rgba(0,0,0,.25); }
input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid var(--a); box-shadow: 0 3px 8px rgba(0,0,0,.25); }
input[type=range]:focus-visible { outline: 3px solid var(--a); outline-offset: 4px; border-radius: 99px; }
[data-decade="80s"] input[type=range]::-webkit-slider-thumb { background: #19f0ff; border-color: #ff3cac; box-shadow: 0 0 14px #ff3cac; }
.range-labels { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); margin-top: 2px; font-weight: 700; }
.range-hint { font-weight: 400; opacity: .8; }
.nudge { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 16px; }
.btn-nudge { min-width: 56px; }

/* ---------- step cards (intro row + help dialog column) ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li { display: flex; border-radius: 14px; background: color-mix(in srgb, var(--b) 10%, transparent); color: var(--ink);
  animation: var(--step-in, none) .5s calc(var(--i, 0) * 110ms + 120ms) both; }
.step-no { display: inline-block; align-self: flex-start; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase; background: var(--a); color: #fff; white-space: nowrap; }
.steps b { display: block; font-size: 16px; line-height: 1.2; }
.steps li span:not(.step-no):not(.step-ico):not(.mini-card):not(.pts) { display: block; font-size: 13px; line-height: 1.35; color: var(--muted); }
[data-decade="80s"] .steps li { border: 1px solid rgba(25, 240, 255, .5); background: rgba(25, 240, 255, .06); }
.steps-row { grid-template-columns: repeat(3, 1fr); margin: 6px 0 22px; }
.steps-row li { flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 12px 8px 14px; }
.steps-row .step-no { align-self: center; }
.step-ico { font-size: 28px; line-height: 1.1; }
.step-year { font-family: var(--display); font-weight: var(--display-weight); font-size: 24px; color: var(--reveal-year); }
@media (max-width: 420px) {
  .steps-row { gap: 6px; }
  .steps-row li { padding: 10px 4px 12px; }
  .steps-row b { font-size: 14px; }
  .steps-row li span:not(.step-no):not(.step-ico) { font-size: 12px; }
}
.steps-col li { gap: 12px; align-items: flex-start; padding: 12px 14px; text-align: left; }
.steps-col li > div { display: grid; gap: 3px; }
.mini-card { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: var(--card);
  border: 1px solid color-mix(in srgb, var(--b) 30%, transparent); }
.mini-card .chip { white-space: nowrap; font-style: normal; font-size: 12px; padding: 3px 9px; }
.pts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.pts i { font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.pts .p0 { background: #c9f2b5; color: #1d4d0c; } .pts .p1, .pts .p2 { background: #fff0a6; color: #5b4300; } .pts .p3 { background: #ffd2a6; color: #6b3200; }
.help-note { margin: 12px 0 4px; }
.btn-link { font: inherit; font-size: 15px; background: none; border: 0; padding: 8px 4px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.pick-title { font-size: 14px; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); margin: 0 0 10px; }

/* ---------- play: the memory card + the guess ---------- */
.play-head { margin-bottom: 14px; }
.play-head .progress { margin-bottom: 6px; }
.step { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.memory { position: relative; text-align: center; padding: 18px 16px 20px; border-radius: calc(var(--radius) * .7);
  background: color-mix(in srgb, var(--b) 9%, var(--card)); border: 2px solid color-mix(in srgb, var(--b) 30%, transparent); }
[data-decade="80s"] .memory { border-color: #ff3cac; box-shadow: inset 0 0 18px rgba(255, 60, 172, .25); }
.memory-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.memory:has(.tip-btn:not([hidden])) .memory-tags { padding: 0 40px; } /* room for the 💡 in the corner */
.where { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink);
  background: color-mix(in srgb, var(--a) 16%, transparent); }
.memory-name { font-size: clamp(26px, 7vw, 34px); line-height: 1.12; margin: 12px 0 2px; overflow-wrap: anywhere; }
.memory-by { margin: 2px 0 0; font-size: 16px; font-weight: 700; color: var(--muted); }
/* 💡 sits quietly in the card's corner; hovering (or keyboard focus) explains it, a click shows the tip */
.tip-btn { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; font-size: 19px; line-height: 1; cursor: pointer; color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--a) 45%, transparent); background: color-mix(in srgb, var(--a) 10%, transparent);
  transition: transform .15s ease, background .15s ease; }
.tip-btn[hidden] { display: none; }
.tip-btn:hover, .tip-btn:focus-visible { transform: scale(1.08); background: color-mix(in srgb, var(--a) 22%, transparent); }
.tip-btn::after { content: attr(data-tooltip); position: absolute; top: calc(100% + 8px); right: 0; z-index: 5; width: max-content; max-width: 200px;
  padding: 7px 10px; border-radius: 8px; font-size: 13px; font-weight: 700; line-height: 1.3; font-style: normal; text-align: left; white-space: normal;
  color: var(--ink); background: var(--card); border: 1px solid color-mix(in srgb, var(--a) 45%, transparent); box-shadow: 0 6px 18px rgba(0,0,0,.25);
  opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .15s ease, transform .15s ease; }
.tip-btn:hover::after, .tip-btn:focus-visible::after { opacity: 1; transform: none; }
@media (hover: none) { .tip-btn:hover::after { opacity: 0; } }
.tip { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; font-size: 15px; line-height: 1.45; text-align: left;
  background: color-mix(in srgb, var(--a) 10%, transparent); color: var(--ink); }
[data-decade="90s"] .tip, [data-decade="90s"] .tip-btn::after { border-radius: 0; }
[data-decade="90s"] .tip-btn { border-radius: 0; background: #c0c0c0; border: 0; box-shadow: var(--w-out, inset -1px -1px #0a0a0a, inset 1px 1px #fff); }
.guess { margin-top: 18px; }
.question { font-size: 19px; font-weight: 800; margin: 0; }

.reveal-line { font-size: 30px; font-weight: 800; margin: 4px 0; }
.reveal-name { margin: 6px 0 0; font-size: 18px; font-weight: 700; color: var(--muted); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 320px; margin: 6px auto 4px; }
.compare div { padding: 8px; border-radius: 12px; background: color-mix(in srgb, var(--b) 10%, transparent); }
.compare span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.compare b { font-size: 20px; }
.compare[data-off="0"] div:last-child { background: #c9f2b5; color: #1d4d0c; }
.compare[data-off="1"] div:last-child, .compare[data-off="2"] div:last-child { background: #fff0a6; color: #5b4300; }
.compare[data-off="3"] div:last-child { background: #ffd2a6; color: #6b3200; }
.compare div:last-child span { color: inherit; opacity: .8; }
.reveal-year { font-size: 64px; margin: 0; color: var(--reveal-year); font-family: var(--display); font-weight: var(--display-weight); }
[data-decade="2010s"] .reveal-year { font-family: var(--font); font-weight: 800; }
.fact { font-size: 18px; line-height: 1.45; margin: 14px 0 6px; }
.source { display: block; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.listen { margin: 0 0 18px; }
.listen p { margin: 0 0 8px; font-weight: 700; }
.listen-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* ---------- result ---------- */
.card-img { display: block; margin: 0 auto; height: min(52vh, 480px); max-width: 100%; aspect-ratio: 9 / 16; border-radius: 18px; box-shadow: 0 14px 30px rgba(20,60,120,.25); background: var(--page); }
.share-row { display: flex; justify-content: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.ad-slot { margin: 18px 0 4px; min-height: 100px; }

.foot { text-align: center; padding: 14px 16px 22px; font-size: 13px; color: var(--foot); }
.foot a { color: var(--foot-link); }

.dlg { border: var(--panel-border); border-radius: var(--radius); max-width: min(92vw, 460px); padding: 22px; color: var(--ink);
  background: var(--dlg-bg); box-shadow: 0 30px 60px rgba(20,60,120,.35); }
.dlg::backdrop { background: rgba(20, 52, 94, .45); }
#dlg-stats { width: min(92vw, 440px); } /* fixed width: the calendar needs the room */
.dlg h2 { margin-top: 0; }
.dlg ol { padding-left: 20px; line-height: 1.5; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 6px; text-align: center; }
.stats b { display: block; font-size: 26px; }
.stats span { font-size: 12px; color: var(--muted); }
.souls { display: flex; flex-wrap: wrap; gap: 6px; }
.souls span { background: var(--btn-bg); border: 1px solid color-mix(in srgb, var(--b) 40%, transparent); border-radius: 999px; padding: 4px 10px; font-size: 14px; }
.archive { list-style: none; padding: 0; margin: 0 0 12px; max-height: 50vh; overflow: auto; }
.archive li a { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.archive li a:hover { background: color-mix(in srgb, var(--b) 15%, transparent); }
.panel:focus { outline: none; }

/* ---------- year pages (/1987/, /years/) ---------- */
.yearpage main { display: grid; gap: 16px; }
.yp-hero .btn-primary { margin-top: 6px; }
.yp-era { margin: 4px auto 18px; max-width: 420px; }
.yp-era p { margin: 8px 0 0; color: var(--muted); }
.yp-list { text-align: left; }
.yp-list h2 { text-align: center; margin-top: 0; }
.yp-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.yp-item { padding: 14px 0 4px; border-top: 1px solid color-mix(in srgb, var(--b) 25%, transparent); }
.yp-item:first-child { border-top: 0; padding-top: 0; }
.yp-item h3 { margin: 8px 0 4px; font-size: 20px; }
.yp-item p { margin: 6px 0; line-height: 1.45; }
.yp-meta { font-size: 14px; color: var(--muted); }
.yp-meta a { color: inherit; }
.yp-figure { margin: 8px 0; }
.yp-figure img { width: 100%; max-height: 240px; object-fit: contain; background: #fff; border-radius: 12px; }
.yp-prevnext { display: flex; justify-content: space-between; gap: 10px; }
.yp-decade { margin: 14px 0 0; line-height: 1.8; }
.yp-decade a { color: var(--ink); }
.yp-hub { text-align: center; }
.yp-hub h2 { font-family: var(--display); font-weight: var(--display-weight); margin: 0; }
.yp-years { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 12px 0 16px; }
.yp-year { display: flex; flex-direction: column; padding: 8px 4px; border-radius: 12px; text-decoration: none; color: var(--ink);
  background: color-mix(in srgb, var(--b) 12%, transparent); }
.yp-year b { font-size: 18px; }
.yp-year span { font-size: 11px; color: var(--muted); }
@media (max-width: 380px) { .yp-years { grid-template-columns: repeat(4, 1fr); } }
.yp-hub, .yp-hub h2 { color: var(--ink); }
.yp-clue { font-style: italic; color: var(--muted); }

/* ---------- help dialog ---------- */
.dlg-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- first-game tour (coach marks) ---------- */
.coach { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.coach-spot { position: fixed; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(10, 20, 45, .62); transition: all .25s ease;
  outline: 3px solid var(--a); outline-offset: 2px; }
.coach-bubble { position: fixed; pointer-events: auto; padding: 14px 16px; border-radius: 16px; background: var(--dlg-bg); color: var(--ink);
  border: var(--panel-border); box-shadow: 0 16px 40px rgba(0,0,0,.35); transition: top .25s ease, left .25s ease; text-align: left; }
[data-decade="2010s"] .coach-bubble { border: 0; }
.coach-bubble p { margin: 0 0 10px; font-size: 16px; line-height: 1.4; }
.coach-count { font-size: 12px !important; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--a); margin-bottom: 4px !important; }
.coach-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.coach-skip { background: transparent; box-shadow: none !important; border: 0 !important; padding-left: 0; color: var(--muted); font-weight: 400; }
@media (prefers-reduced-motion: reduce) { .coach-spot, .coach-bubble { transition: none; } }

/* ================= decade motion =================
   Every decade moves like its own era. JS adds .enter to a screen when it appears,
   .tick to the year when it changes, and .burst for a spot-on guess. */
:root { --enter: glossy-in; --tick: soft-tick; --step-in: glossy-in; --pop: glossy-pop; }
[data-decade="80s"] { --enter: crt-on; --tick: neon-glitch; --step-in: neon-in; --pop: neon-flicker; }
[data-decade="90s"] { --enter: win-open; --tick: bounce-tick; --step-in: win-open; --pop: wiggle-pop; }
[data-decade="2010s"] { --enter: fade-up; --tick: soft-tick; --step-in: fade-up; --pop: heart-pop; }

.panel.enter { animation: var(--enter) .55s cubic-bezier(.2, .9, .3, 1.2) both; }
.dlg[open] { animation: var(--enter) .45s cubic-bezier(.2, .9, .3, 1.2) both; }
.panel.enter .memory { animation: var(--step-in) .55s .12s both; }
.year-display.tick { animation: var(--tick) .28s ease-out; }
.reveal-year { position: relative; }
.reveal-year span { display: inline-block; }
.enter .reveal-year span { animation: var(--pop) .8s .15s both; }

/* 80s: CRT switch-on, neon flicker, glitchy digits, scanlines */
@keyframes crt-on {
  0% { opacity: 0; transform: scaleY(.01) scaleX(1.15); filter: brightness(4); }
  45% { opacity: 1; transform: scaleY(.02) scaleX(1); filter: brightness(3); }
  70% { transform: scaleY(1.03); filter: brightness(1.4); }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes neon-in { 0%, 30%, 50% { opacity: 0; } 20%, 40%, 60%, 100% { opacity: 1; } }
@keyframes neon-flicker {
  0%, 18%, 22%, 26% { opacity: .15; text-shadow: none; }
  20%, 24%, 100% { opacity: 1; text-shadow: 0 0 12px #19f0ff, 0 0 30px #ff3cac; }
}
@keyframes neon-glitch {
  0% { transform: translateX(-3px); text-shadow: 3px 0 #ff3cac, -3px 0 #19f0ff; }
  50% { transform: translateX(2px); }
  100% { transform: none; text-shadow: none; }
}
@keyframes neon-buzz { 0%, 92%, 96%, 100% { opacity: 1; } 94% { opacity: .55; } }
[data-decade="80s"] h1 .grad, [data-decade="80s"] .brand { animation: neon-buzz 5s infinite; }
[data-decade="80s"] body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 40;
  background: repeating-linear-gradient(rgba(0,0,0,.18) 0 1px, transparent 1px 3px); animation: scan 8s linear infinite; }
@keyframes scan { to { background-position: 0 100px; } }

@keyframes bounce-tick { 0% { transform: translateY(-8px) scale(1.06); } 60% { transform: translateY(2px); } 100% { transform: none; } }
@keyframes wiggle-pop {
  0% { transform: scale(0) rotate(-20deg); } 50% { transform: scale(1.25) rotate(8deg); }
  70% { transform: scale(.95) rotate(-4deg); } 100% { transform: none; }
}

/* 2000s: glossy bubbles and a light sweep over shiny buttons */
@keyframes glossy-in {
  0% { opacity: 0; transform: translateY(16px) scale(.94); filter: blur(4px); }
  70% { opacity: 1; transform: translateY(-3px) scale(1.01); filter: none; }
  100% { transform: none; }
}
@keyframes glossy-pop { 0% { opacity: 0; transform: scale(.5); } 60% { opacity: 1; transform: scale(1.12); } 100% { transform: none; } }
@keyframes soft-tick { 0% { transform: scale(1.08); } 100% { transform: none; } }
:root:not([data-decade]) .btn-primary, [data-decade="2000s"] .btn-primary { position: relative; overflow: hidden; }
:root:not([data-decade]) .btn-primary::after, [data-decade="2000s"] .btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: shine 3.2s 1s infinite; pointer-events: none; }
@keyframes shine { 0% { left: -60%; } 35%, 100% { left: 130%; } }

/* 2010s: smooth flat fade-ups, a breathing pastel backdrop, story-style progress */
@keyframes fade-up { 0% { opacity: 0; transform: translateY(22px); } 100% { opacity: 1; transform: none; } }
@keyframes heart-pop { 0% { opacity: 0; transform: scale(.6); } 55% { opacity: 1; transform: scale(1.1); } 100% { transform: none; } }
[data-decade="2010s"] .sky { animation: breathe 18s ease-in-out infinite alternate; }
@keyframes breathe { to { transform: scale(1.12) rotate(4deg); } }
[data-decade="2010s"] .progress span.now { background: color-mix(in srgb, var(--b) 25%, transparent); position: relative; overflow: hidden; }
[data-decade="2010s"] .progress span.now::after { content: ""; position: absolute; inset: 0; background: var(--a); animation: story 1.2s ease-out both; transform-origin: left; }
@keyframes story { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Spot-on burst: an emoji that fits the decade flies out of the year */
.burst { position: absolute; left: 50%; top: 50%; font-size: 30px; pointer-events: none; animation: burst 1s ease-out forwards; }
@keyframes burst { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.4); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.2) rotate(var(--r)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- result: card + actions (side by side on wide screens) ---------- */
.result-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.result-head { display: none; }
.result-head h2 { margin: 2px 0 0; font-size: 24px; line-height: 1.2; }
.recap-box { text-align: left; border-radius: 14px; padding: 10px 14px; background: color-mix(in srgb, var(--b) 8%, transparent); }
.recap-box summary { cursor: pointer; font-weight: 800; font-size: 15px; }
.recap-box summary span { font-weight: 400; color: var(--muted); }
.recap { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.recap li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 44px; gap: 10px; align-items: center; padding: 6px 0; font-size: 14px;
  border-top: 1px solid color-mix(in srgb, var(--b) 18%, transparent); }
.recap li:first-child { border-top: 0; }
.recap-dot { width: 12px; height: 12px; border-radius: 3px; background: #ddd; }
.recap li[data-off="0"] .recap-dot { background: #3cb043; }
.recap li[data-off="1"] .recap-dot, .recap li[data-off="2"] .recap-dot { background: #f2c230; }
.recap li[data-off="3"] .recap-dot { background: #f08a2c; }
.recap-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.recap-year s { color: var(--muted); }
.recap-pts { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.result-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; text-align: center; }
.result-side > * { margin: 0; }
.result-side .share-row { margin: 0; align-items: center; }
.btn-icon { width: 48px; height: 48px; padding: 0; font-size: 20px; line-height: 1; }
.meta-line { font-size: 14px; margin: 0; }
.more-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.more-row .btn { padding: 8px 14px; font-size: 14px; }
#share-status:empty { display: none; }
@media (min-width: 760px) {
  main:has(#screen-result:not([hidden])) { max-width: 860px; }
  .result-grid { grid-template-columns: auto minmax(0, 1fr); gap: 32px; }
  .card-img { height: auto; width: 320px; position: sticky; top: 16px; }
  .result-head { display: block; }
  .result-side { text-align: left; }
  .result-side .share-row, .more-row { justify-content: flex-start; }
}

/* favourite memory form */
.memo { text-align: left; padding: 12px 14px; border-radius: 14px;
  background: color-mix(in srgb, var(--a) 10%, transparent); border: 2px dashed color-mix(in srgb, var(--a) 45%, transparent); }
.memo-q { display: block; font-weight: 800; font-size: 15px; margin-bottom: 8px; }
.memo-row { display: flex; gap: 8px; }
.memo-row input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 9px 12px; border-radius: 12px; color: #222;
  border: 2px solid color-mix(in srgb, var(--b) 40%, transparent); background: #fff; }
.memo-row input:focus { outline: 3px solid var(--a); outline-offset: 1px; }
.memo-row .btn { padding: 9px 16px; }
.memo-foot { margin: 6px 0 0; font-size: 11.5px; line-height: 1.35; }
.memo-foot a { color: inherit; }
#memo-status { font-weight: 700; color: var(--ink); }
.result-side .share-row { flex-wrap: nowrap; }
#btn-share { flex: 0 1 auto; min-width: 0; white-space: nowrap; }
.btn-icon { flex: none; }
@media (max-width: 420px) {
  #btn-share { flex: 1 1 auto; font-size: 16px; padding: 12px 14px; }
  .btn-icon { width: 44px; height: 44px; font-size: 18px; }
}
@media (min-width: 760px) { body:has(#screen-result:not([hidden])) .top { max-width: 860px; } }
.all-done { font-weight: 700; }

/* ---------- come back tomorrow ---------- */
.tomorrow { text-align: left; padding: 12px 14px; border-radius: 14px; display: grid; gap: 4px; justify-items: start;
  background: color-mix(in srgb, var(--b) 10%, transparent); border: 2px solid color-mix(in srgb, var(--b) 25%, transparent); }
[data-decade="80s"] .tomorrow { border-color: rgba(25, 240, 255, .55); background: rgba(25, 240, 255, .07); }
.tomorrow p { margin: 0; }
.tomorrow-title { font-weight: 800; font-size: 15px; }
.tomorrow-time { font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.tomorrow-cats { font-size: 16px; line-height: 1.4; }
.tomorrow-streak { font-size: 14px; font-weight: 700; color: var(--ink); }
.tomorrow .btn { margin-top: 6px; padding: 8px 14px; font-size: 14px; }

/* new sticker on the reveal screen */
.sticker-new { display: inline-block; margin: 6px 0 2px; padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 14px;
  background: #fff3a6; color: #5b4300; animation: var(--pop) .7s .3s both; }

/* ---------- stats dialog: numbers, streak calendar, spot-on years, soul years, one next step ---------- */
.stats-sec { margin-top: 18px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.stats-sec h3 { margin: 0 0 6px; font-size: 18px; }
[data-decade="90s"] .stats-sec { border-top: 1px solid #808080; box-shadow: inset 0 1px #fff; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-nav h3 { margin: 0; font-size: 18px; }
.cal-arrow { width: 36px; height: 36px; border: 0; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink);
  background: color-mix(in srgb, var(--b) 12%, transparent); }
.cal-arrow:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-head { font-size: 11px; font-weight: 700; color: var(--muted); padding-bottom: 2px; }
.cal-day { position: relative; display: grid; place-items: center; justify-self: center; width: 100%; max-width: 40px; height: 40px; padding: 0 0 6px; border: 0; border-radius: 50%;
  font: inherit; font-size: 14px; color: var(--ink); background: transparent; cursor: pointer; font-variant-numeric: tabular-nums; }
button.cal-day:hover { background: color-mix(in srgb, var(--b) 12%, transparent); }
.cal-day.off { color: color-mix(in srgb, var(--muted) 55%, transparent); cursor: default; }
.cal-day.on, button.cal-day.on:hover { background: var(--a); color: #fff; font-weight: 800; }
.cal-day.late { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--a) 45%, transparent); }
.cal-day.today { outline: 2px solid var(--ink); outline-offset: -2px; }
.cal-day:focus-visible { outline: 3px solid var(--a); outline-offset: 1px; }
.cal-dots { position: absolute; bottom: 4px; left: 0; right: 0; display: flex; justify-content: center; gap: 2px; }
.cal-dots i { width: 5px; height: 5px; border-radius: 50%; box-shadow: 0 0 0 1px #fff; }
.cal-dots i[data-d="80s"] { background: #ff3cac; } .cal-dots i[data-d="90s"] { background: #000080; }
.cal-dots i[data-d="2000s"] { background: #2b8ff0; } .cal-dots i[data-d="2010s"] { background: #ff6f61; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cal-key { width: 12px; height: 12px; border-radius: 50%; }
.cal-key.on { background: var(--a); }
.cal-key.late { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--a) 45%, transparent); }
.cal-key.today { outline: 2px solid var(--ink); outline-offset: -2px; }
.cal-day-panel { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--b) 8%, transparent); }
.cal-day-panel ul { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 4px; }
.cal-day-panel button { width: 100%; display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 0; border-radius: 10px;
  font: inherit; font-size: 14px; color: var(--ink); background: var(--card); cursor: pointer; }
.cal-day-panel button:hover { background: color-mix(in srgb, var(--b) 15%, transparent); }
.cal-day-panel p { margin: 0; }
.cal-day-title { font-weight: 800; }
.cal-device { margin: 10px 0 0; }
.stats-sec .inapp-hint { margin: 8px 0 0; }
.spot-on { margin: 0 0 14px; font-weight: 700; }
.stats-actions { display: grid; justify-items: start; gap: 6px; margin-top: 20px; }
.stats-actions form, .stats-actions p { margin: 0; }
[data-decade="90s"] .cal-day, [data-decade="90s"] .cal-key, [data-decade="90s"] .cal-arrow, [data-decade="90s"] .cal-dots i,
[data-decade="90s"] .cal-day-panel, [data-decade="90s"] .cal-day-panel button { border-radius: 0; }
[data-decade="90s"] .cal-arrow { background: #c0c0c0; box-shadow: var(--w-out); font-size: 18px; }
[data-decade="90s"] .cal-grid { background: #fff; box-shadow: var(--w-field); padding: 6px; }
[data-decade="90s"] .cal-day-panel { background: #ffffe1; border: 1px solid #000; }
[data-decade="90s"] .cal-day-panel button { background: #c0c0c0; box-shadow: var(--w-out); }
h3 .muted { font-weight: 400; }

/* sheet-style dialogs (reminder, share): title + ✕, then big equal option tiles */
.dlg-sheet { width: min(92vw, 480px); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.dlg-head h2 { margin: 0; font-size: 22px; }
.dlg-head form { margin: 0; }
.dlg-x { width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; font-size: 16px; color: var(--ink);
  background: color-mix(in srgb, var(--b) 12%, transparent); }
.dlg-x:focus { outline: none; }
.dlg-x:focus-visible { outline: 3px solid var(--a); outline-offset: 2px; }
.dlg-lead { margin: 4px 0 14px; color: var(--muted); line-height: 1.45; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.options-3 { grid-template-columns: repeat(3, 1fr); margin-top: 10px; }
.option { font: inherit; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px; border-radius: 14px;
  text-align: left; text-decoration: none; color: var(--ink); cursor: pointer; background: var(--card);
  border: 2px solid color-mix(in srgb, var(--b) 25%, transparent); transition: transform .15s, border-color .15s; }
.option:hover { transform: translateY(-2px); border-color: var(--a); }
.option:focus-visible { outline: 3px solid var(--a); outline-offset: 2px; }
.option b { font-size: 15px; line-height: 1.25; }
.option span:not(.opt-ico) { font-size: 12px; color: var(--muted); }
.opt-ico { font-size: 24px; margin-bottom: 4px; }
[data-decade="80s"] .option { background: rgba(25, 240, 255, .06); border-color: rgba(25, 240, 255, .5); }
@media (max-width: 420px) { .options-3 { grid-template-columns: 1fr 1fr; } }
.share-to { margin: 16px 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.nets { display: flex; flex-wrap: wrap; gap: 8px; }
.net { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; color: #fff; }
.net[data-net="whatsapp"] { background: #1fa855; } .net[data-net="telegram"] { background: #229ed9; }
.net[data-net="x"] { background: #111; } .net[data-net="facebook"] { background: #1877f2; } .net[data-net="email"] { background: #6b6b80; }
#share-dlg-status { margin: 12px 0 0; min-height: 1.2em; }
.inapp-hint { padding: 10px 12px; border-radius: 12px; background: #fff3a6; color: #5b4300; font-size: 14px; }

/* ================= the story (Wrapped-style reveal) ================= */
.story { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(5, 8, 20, .82); }
body.story-open { overflow: hidden; }
.story-frame { position: relative; overflow: hidden; width: 100vw; height: 100dvh; background: var(--sky); background-color: var(--page);
  color: var(--ink); display: flex; flex-direction: column; }
@media (min-width: 600px) {
  .story-frame { height: min(92dvh, 860px); width: calc(min(92dvh, 860px) * 9 / 16); border-radius: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
}
.story-bars { position: absolute; top: 12px; left: 12px; right: 56px; display: flex; gap: 4px; z-index: 3; }
.story-bars span { flex: 1; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 22%, transparent); overflow: hidden; }
.story-bars i { display: block; height: 100%; width: 0; background: var(--ink); }
.story-bars .done i { width: 100%; }
.story-bars .now i { animation: story-fill var(--ms, 3200ms) linear forwards; }
.story.on-last .story-bars .now i { animation: none; width: 100%; }
@keyframes story-fill { to { width: 100%; } }
.story-x { position: absolute; top: 4px; right: 8px; z-index: 4; width: 40px; height: 40px; border: 0; border-radius: 50%; font-size: 18px;
  background: color-mix(in srgb, var(--card) 70%, transparent); color: var(--ink); cursor: pointer; }
.story-slides { flex: 1; display: grid; position: relative; z-index: 2; pointer-events: none; }
.st-slide { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 56px 28px 40px; gap: 10px; animation: var(--enter) .6s cubic-bezier(.2, .9, .3, 1.2) both; }
.st-slide > * { margin: 0; }
.st-slide .st-actions, .st-slide .st-actions * { pointer-events: auto; }
.story-tap { position: absolute; top: 0; bottom: 0; z-index: 1; background: transparent; border: 0; cursor: pointer; padding: 0; }
.story-prev { left: 0; width: 30%; }
.story-next { right: 0; width: 70%; }
.story.on-last .story-tap { display: none; }
.st-kicker { text-transform: uppercase; letter-spacing: 2px; font-size: 14px; font-weight: 700; color: var(--muted); }
.st-big { font-size: clamp(30px, 8vw, 40px); line-height: 1.15; }
.st-huge { font-size: 96px; line-height: 1; font-family: var(--display); font-weight: var(--display-weight); color: var(--reveal-year); font-variant-numeric: tabular-nums; }
.st-huge small { font-size: 30px; color: var(--muted); font-family: var(--font); }
.st-emojis { font-size: 40px; letter-spacing: 4px; }
.st-line { font-size: 18px; color: var(--muted); max-width: 320px; line-height: 1.4; }
.st-icon { font-size: 88px; line-height: 1; animation: var(--pop) .9s .2s both; }
.st-year { font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(88px, 26vw, 120px); line-height: 1;
  background: linear-gradient(var(--a), var(--b)); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: var(--pop) 1s .25s both; }
[data-decade="80s"] .st-year { font-size: clamp(64px, 19vw, 92px); }
.st-soul { font-size: 30px; font-weight: 800; }
.st-pill { padding: 8px 20px; border-radius: 999px; background: var(--chip-bg); color: var(--chip-ink); font-weight: 800; font-size: 20px;
  animation: var(--pop) .8s .6s both; }
.st-4 { justify-content: space-between; padding-top: 34px; padding-bottom: 22px; }
.st-card-wrap { flex: 1 1 0; min-height: 0; width: 100%; display: flex; justify-content: center; }
.st-card { height: 100%; width: auto; max-width: 100%; object-fit: contain; border-radius: 16px; box-shadow: 0 14px 30px rgba(0,0,0,.3); }
.st-actions { display: grid; gap: 8px; justify-items: center; width: 100%; }
.btn-story { width: min(100%, 320px); font-size: 19px; padding: 15px 22px;
  background: linear-gradient(90deg, #feda75, #fa7e1e 25%, #d62976 55%, #962fbf 80%, #4f5bd5); color: #fff; border: 0;
  box-shadow: 0 8px 20px rgba(214, 41, 118, .35); animation: story-pulse 2.4s 1s ease-in-out infinite; }
@keyframes story-pulse { 0%, 100% { transform: none; } 50% { transform: scale(1.04); } }
.result-side .btn-story { width: auto; flex: 1 1 auto; }
.sticker-steps { margin: 0 0 14px; padding-left: 22px; line-height: 1.6; }

/* ================= 90s: the beige-box desktop =================
   Teal wallpaper, grey bevelled windows with navy title bars, a taskbar at the bottom,
   pixel icons (our own, see src/lib/pixel-icons.js). Everything below only applies to the 90s. */
/* PIXEL-ICONS:START (generated by scripts/pixel-icons.mjs, do not edit) */
:root {
  --ico-logo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='1' y='2' width='14' height='1' fill='%23000000'/%3E%3Crect x='1' y='3' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='3' width='12' height='1' fill='%23000080'/%3E%3Crect x='14' y='3' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='4' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='4' width='9' height='1' fill='%237ec8ff'/%3E%3Crect x='11' y='4' width='2' height='1' fill='%23ffd800'/%3E%3Crect x='13' y='4' width='1' height='1' fill='%237ec8ff'/%3E%3Crect x='14' y='4' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='5' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='5' width='9' height='1' fill='%237ec8ff'/%3E%3Crect x='11' y='5' width='2' height='1' fill='%23ffd800'/%3E%3Crect x='13' y='5' width='1' height='1' fill='%237ec8ff'/%3E%3Crect x='14' y='5' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='6' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='6' width='12' height='1' fill='%237ec8ff'/%3E%3Crect x='14' y='6' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='7' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='7' width='12' height='1' fill='%237ec8ff'/%3E%3Crect x='14' y='7' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='8' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='8' width='7' height='1' fill='%237ec8ff'/%3E%3Crect x='9' y='8' width='3' height='1' fill='%233cb043'/%3E%3Crect x='12' y='8' width='2' height='1' fill='%237ec8ff'/%3E%3Crect x='14' y='8' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='9' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='9' width='3' height='1' fill='%237ec8ff'/%3E%3Crect x='5' y='9' width='8' height='1' fill='%233cb043'/%3E%3Crect x='13' y='9' width='1' height='1' fill='%237ec8ff'/%3E%3Crect x='14' y='9' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='10' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='10' width='12' height='1' fill='%233cb043'/%3E%3Crect x='14' y='10' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='11' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='11' width='12' height='1' fill='%233cb043'/%3E%3Crect x='14' y='11' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='12' width='14' height='1' fill='%23000000'/%3E%3C/svg%3E");
  --ico-pc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='1' y='1' width='14' height='1' fill='%23000000'/%3E%3Crect x='1' y='2' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='2' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='3' y='2' width='10' height='1' fill='%23c0c0c0'/%3E%3Crect x='13' y='2' width='1' height='1' fill='%23808080'/%3E%3Crect x='14' y='2' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='3' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='3' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='3' y='3' width='10' height='1' fill='%23000000'/%3E%3Crect x='13' y='3' width='1' height='1' fill='%23808080'/%3E%3Crect x='14' y='3' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='4' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='4' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='3' y='4' width='1' height='1' fill='%23000000'/%3E%3Crect x='4' y='4' width='8' height='1' fill='%23008080'/%3E%3Crect x='12' y='4' width='1' height='1' fill='%23000000'/%3E%3Crect x='13' y='4' width='1' height='1' fill='%23808080'/%3E%3Crect x='14' y='4' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='5' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='5' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='3' y='5' width='1' height='1' fill='%23000000'/%3E%3Crect x='4' y='5' width='1' height='1' fill='%23008080'/%3E%3Crect x='5' y='5' width='1' height='1' fill='%2300ffff'/%3E%3Crect x='6' y='5' width='6' height='1' fill='%23008080'/%3E%3Crect x='12' y='5' width='1' height='1' fill='%23000000'/%3E%3Crect x='13' y='5' width='1' height='1' fill='%23808080'/%3E%3Crect x='14' y='5' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='6' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='6' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='3' y='6' width='1' height='1' fill='%23000000'/%3E%3Crect x='4' y='6' width='8' height='1' fill='%23008080'/%3E%3Crect x='12' y='6' width='1' height='1' fill='%23000000'/%3E%3Crect x='13' y='6' width='1' height='1' fill='%23808080'/%3E%3Crect x='14' y='6' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='7' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='7' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='3' y='7' width='1' height='1' fill='%23000000'/%3E%3Crect x='4' y='7' width='8' height='1' fill='%23008080'/%3E%3Crect x='12' y='7' width='1' height='1' fill='%23000000'/%3E%3Crect x='13' y='7' width='1' height='1' fill='%23808080'/%3E%3Crect x='14' y='7' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='8' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='8' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='3' y='8' width='10' height='1' fill='%23000000'/%3E%3Crect x='13' y='8' width='1' height='1' fill='%23808080'/%3E%3Crect x='14' y='8' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='9' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='9' width='9' height='1' fill='%23c0c0c0'/%3E%3Crect x='11' y='9' width='1' height='1' fill='%23ffd800'/%3E%3Crect x='12' y='9' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='13' y='9' width='1' height='1' fill='%23808080'/%3E%3Crect x='14' y='9' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='10' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='10' width='12' height='1' fill='%23808080'/%3E%3Crect x='14' y='10' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='11' width='14' height='1' fill='%23000000'/%3E%3Crect x='6' y='12' width='1' height='1' fill='%23000000'/%3E%3Crect x='7' y='12' width='2' height='1' fill='%23808080'/%3E%3Crect x='9' y='12' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='13' width='13' height='1' fill='%23000000'/%3E%3Crect x='2' y='14' width='1' height='1' fill='%23000000'/%3E%3Crect x='3' y='14' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='4' y='14' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='5' y='14' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='6' y='14' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='7' y='14' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='8' y='14' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='9' y='14' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='10' y='14' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='11' y='14' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='12' y='14' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='13' y='14' width='1' height='1' fill='%23808080'/%3E%3Crect x='14' y='14' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='15' width='13' height='1' fill='%23000000'/%3E%3C/svg%3E");
  --ico-folder: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='2' y='2' width='5' height='1' fill='%23000000'/%3E%3Crect x='1' y='3' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='3' width='6' height='1' fill='%23ffe680'/%3E%3Crect x='8' y='3' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='4' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='4' width='6' height='1' fill='%23ffe680'/%3E%3Crect x='8' y='4' width='7' height='1' fill='%23000000'/%3E%3Crect x='1' y='5' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='5' width='12' height='1' fill='%23ffffff'/%3E%3Crect x='14' y='5' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='6' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='6' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='3' y='6' width='10' height='1' fill='%23ffd800'/%3E%3Crect x='13' y='6' width='1' height='1' fill='%23a08000'/%3E%3Crect x='14' y='6' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='7' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='7' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='3' y='7' width='10' height='1' fill='%23ffd800'/%3E%3Crect x='13' y='7' width='1' height='1' fill='%23a08000'/%3E%3Crect x='14' y='7' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='8' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='8' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='3' y='8' width='10' height='1' fill='%23ffd800'/%3E%3Crect x='13' y='8' width='1' height='1' fill='%23a08000'/%3E%3Crect x='14' y='8' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='9' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='9' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='3' y='9' width='10' height='1' fill='%23ffd800'/%3E%3Crect x='13' y='9' width='1' height='1' fill='%23a08000'/%3E%3Crect x='14' y='9' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='10' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='10' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='3' y='10' width='10' height='1' fill='%23ffd800'/%3E%3Crect x='13' y='10' width='1' height='1' fill='%23a08000'/%3E%3Crect x='14' y='10' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='11' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='11' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='3' y='11' width='10' height='1' fill='%23ffd800'/%3E%3Crect x='13' y='11' width='1' height='1' fill='%23a08000'/%3E%3Crect x='14' y='11' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='12' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='12' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='3' y='12' width='10' height='1' fill='%23ffd800'/%3E%3Crect x='13' y='12' width='1' height='1' fill='%23a08000'/%3E%3Crect x='14' y='12' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='13' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='13' width='12' height='1' fill='%23a08000'/%3E%3Crect x='14' y='13' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='14' width='14' height='1' fill='%23000000'/%3E%3C/svg%3E");
  --ico-doc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='3' y='0' width='8' height='1' fill='%23000000'/%3E%3Crect x='3' y='1' width='1' height='1' fill='%23000000'/%3E%3Crect x='4' y='1' width='6' height='1' fill='%23ffffff'/%3E%3Crect x='10' y='1' width='2' height='1' fill='%23000000'/%3E%3Crect x='3' y='2' width='1' height='1' fill='%23000000'/%3E%3Crect x='4' y='2' width='6' height='1' fill='%23ffffff'/%3E%3Crect x='10' y='2' width='1' height='1' fill='%23000000'/%3E%3Crect x='11' y='2' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='12' y='2' width='1' height='1' fill='%23000000'/%3E%3Crect x='3' y='3' width='1' height='1' fill='%23000000'/%3E%3Crect x='4' y='3' width='6' height='1' fill='%23ffffff'/%3E%3Crect x='10' y='3' width='4' height='1' fill='%23000000'/%3E%3Crect x='3' y='4' width='1' height='1' fill='%23000000'/%3E%3Crect x='4' y='4' width='9' height='1' fill='%23ffffff'/%3E%3Crect x='13' y='4' width='1' height='1' fill='%23000000'/%3E%3Crect x='3' y='5' width='1' height='1' fill='%23000000'/%3E%3Crect x='4' y='5' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='5' y='5' width='7' height='1' fill='%231084d0'/%3E%3Crect x='12' y='5' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='13' y='5' width='1' height='1' fill='%23000000'/%3E%3Crect x='3' y='6' width='1' height='1' fill='%23000000'/%3E%3Crect x='4' y='6' width='9' height='1' fill='%23ffffff'/%3E%3Crect x='13' y='6' width='1' height='1' fill='%23000000'/%3E%3Crect x='3' y='7' width='1' height='1' fill='%23000000'/%3E%3Crect x='4' y='7' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='5' y='7' width='6' height='1' fill='%231084d0'/%3E%3Crect x='11' y='7' width='2' height='1' fill='%23ffffff'/%3E%3Crect x='13' y='7' width='1' height='1' fill='%23000000'/%3E%3Crect x='3' y='8' width='1' height='1' fill='%23000000'/%3E%3Crect x='4' y='8' width='9' height='1' fill='%23ffffff'/%3E%3Crect x='13' y='8' width='1' height='1' fill='%23000000'/%3E%3Crect x='3' y='9' width='1' height='1' fill='%23000000'/%3E%3Crect x='4' y='9' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='5' y='9' width='7' height='1' fill='%231084d0'/%3E%3Crect x='12' y='9' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='13' y='9' width='1' height='1' fill='%23000000'/%3E%3Crect x='3' y='10' width='1' height='1' fill='%23000000'/%3E%3Crect x='4' y='10' width='9' height='1' fill='%23ffffff'/%3E%3Crect x='13' y='10' width='1' height='1' fill='%23000000'/%3E%3Crect x='3' y='11' width='1' height='1' fill='%23000000'/%3E%3Crect x='4' y='11' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='5' y='11' width='4' height='1' fill='%231084d0'/%3E%3Crect x='9' y='11' width='4' height='1' fill='%23ffffff'/%3E%3Crect x='13' y='11' width='1' height='1' fill='%23000000'/%3E%3Crect x='3' y='12' width='1' height='1' fill='%23000000'/%3E%3Crect x='4' y='12' width='9' height='1' fill='%23ffffff'/%3E%3Crect x='13' y='12' width='1' height='1' fill='%23000000'/%3E%3Crect x='3' y='13' width='1' height='1' fill='%23000000'/%3E%3Crect x='4' y='13' width='9' height='1' fill='%23ffffff'/%3E%3Crect x='13' y='13' width='1' height='1' fill='%23000000'/%3E%3Crect x='3' y='14' width='11' height='1' fill='%23000000'/%3E%3C/svg%3E");
  --ico-floppy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='1' y='1' width='14' height='1' fill='%23000000'/%3E%3Crect x='1' y='2' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='2' width='2' height='1' fill='%23000080'/%3E%3Crect x='4' y='2' width='1' height='1' fill='%23000000'/%3E%3Crect x='5' y='2' width='4' height='1' fill='%23c0c0c0'/%3E%3Crect x='9' y='2' width='1' height='1' fill='%23000000'/%3E%3Crect x='10' y='2' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='11' y='2' width='1' height='1' fill='%23000000'/%3E%3Crect x='12' y='2' width='2' height='1' fill='%23000080'/%3E%3Crect x='14' y='2' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='3' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='3' width='2' height='1' fill='%23000080'/%3E%3Crect x='4' y='3' width='1' height='1' fill='%23000000'/%3E%3Crect x='5' y='3' width='4' height='1' fill='%23c0c0c0'/%3E%3Crect x='9' y='3' width='1' height='1' fill='%23000000'/%3E%3Crect x='10' y='3' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='11' y='3' width='1' height='1' fill='%23000000'/%3E%3Crect x='12' y='3' width='2' height='1' fill='%23000080'/%3E%3Crect x='14' y='3' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='4' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='4' width='2' height='1' fill='%23000080'/%3E%3Crect x='4' y='4' width='1' height='1' fill='%23000000'/%3E%3Crect x='5' y='4' width='4' height='1' fill='%23c0c0c0'/%3E%3Crect x='9' y='4' width='1' height='1' fill='%23000000'/%3E%3Crect x='10' y='4' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='11' y='4' width='1' height='1' fill='%23000000'/%3E%3Crect x='12' y='4' width='2' height='1' fill='%23000080'/%3E%3Crect x='14' y='4' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='5' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='5' width='2' height='1' fill='%23000080'/%3E%3Crect x='4' y='5' width='8' height='1' fill='%23000000'/%3E%3Crect x='12' y='5' width='2' height='1' fill='%23000080'/%3E%3Crect x='14' y='5' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='6' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='6' width='12' height='1' fill='%23000080'/%3E%3Crect x='14' y='6' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='7' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='7' width='2' height='1' fill='%23000080'/%3E%3Crect x='4' y='7' width='8' height='1' fill='%23ffffff'/%3E%3Crect x='12' y='7' width='2' height='1' fill='%23000080'/%3E%3Crect x='14' y='7' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='8' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='8' width='2' height='1' fill='%23000080'/%3E%3Crect x='4' y='8' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='5' y='8' width='6' height='1' fill='%231084d0'/%3E%3Crect x='11' y='8' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='12' y='8' width='2' height='1' fill='%23000080'/%3E%3Crect x='14' y='8' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='9' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='9' width='2' height='1' fill='%23000080'/%3E%3Crect x='4' y='9' width='8' height='1' fill='%23ffffff'/%3E%3Crect x='12' y='9' width='2' height='1' fill='%23000080'/%3E%3Crect x='14' y='9' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='10' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='10' width='2' height='1' fill='%23000080'/%3E%3Crect x='4' y='10' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='5' y='10' width='4' height='1' fill='%231084d0'/%3E%3Crect x='9' y='10' width='3' height='1' fill='%23ffffff'/%3E%3Crect x='12' y='10' width='2' height='1' fill='%23000080'/%3E%3Crect x='14' y='10' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='11' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='11' width='2' height='1' fill='%23000080'/%3E%3Crect x='4' y='11' width='8' height='1' fill='%23ffffff'/%3E%3Crect x='12' y='11' width='2' height='1' fill='%23000080'/%3E%3Crect x='14' y='11' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='12' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='12' width='2' height='1' fill='%23000080'/%3E%3Crect x='4' y='12' width='8' height='1' fill='%23ffffff'/%3E%3Crect x='12' y='12' width='2' height='1' fill='%23000080'/%3E%3Crect x='14' y='12' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='13' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='13' width='2' height='1' fill='%23000080'/%3E%3Crect x='4' y='13' width='8' height='1' fill='%23ffffff'/%3E%3Crect x='12' y='13' width='2' height='1' fill='%23000080'/%3E%3Crect x='14' y='13' width='1' height='1' fill='%23000000'/%3E%3Crect x='1' y='14' width='14' height='1' fill='%23000000'/%3E%3C/svg%3E");
  --ico-trash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='6' y='1' width='4' height='1' fill='%23000000'/%3E%3Crect x='2' y='2' width='5' height='1' fill='%23000000'/%3E%3Crect x='7' y='2' width='2' height='1' fill='%23808080'/%3E%3Crect x='9' y='2' width='5' height='1' fill='%23000000'/%3E%3Crect x='2' y='3' width='1' height='1' fill='%23000000'/%3E%3Crect x='3' y='3' width='10' height='1' fill='%23c0c0c0'/%3E%3Crect x='13' y='3' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='4' width='12' height='1' fill='%23000000'/%3E%3Crect x='3' y='5' width='1' height='1' fill='%23000000'/%3E%3Crect x='4' y='5' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='5' y='5' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='6' y='5' width='1' height='1' fill='%23808080'/%3E%3Crect x='7' y='5' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='8' y='5' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='9' y='5' width='1' height='1' fill='%23808080'/%3E%3Crect x='10' y='5' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='11' y='5' width='1' height='1' fill='%23808080'/%3E%3Crect x='12' y='5' width='1' height='1' fill='%23000000'/%3E%3Crect x='3' y='6' width='1' height='1' fill='%23000000'/%3E%3Crect x='4' y='6' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='5' y='6' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='6' y='6' width='1' height='1' fill='%23808080'/%3E%3Crect x='7' y='6' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='8' y='6' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='9' y='6' width='1' height='1' fill='%23808080'/%3E%3Crect x='10' y='6' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='11' y='6' width='1' height='1' fill='%23808080'/%3E%3Crect x='12' y='6' width='1' height='1' fill='%23000000'/%3E%3Crect x='3' y='7' width='1' height='1' fill='%23000000'/%3E%3Crect x='4' y='7' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='5' y='7' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='6' y='7' width='1' height='1' fill='%23808080'/%3E%3Crect x='7' y='7' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='8' y='7' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='9' y='7' width='1' height='1' fill='%23808080'/%3E%3Crect x='10' y='7' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='11' y='7' width='1' height='1' fill='%23808080'/%3E%3Crect x='12' y='7' width='1' height='1' fill='%23000000'/%3E%3Crect x='3' y='8' width='1' height='1' fill='%23000000'/%3E%3Crect x='4' y='8' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='5' y='8' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='6' y='8' width='1' height='1' fill='%23808080'/%3E%3Crect x='7' y='8' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='8' y='8' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='9' y='8' width='1' height='1' fill='%23808080'/%3E%3Crect x='10' y='8' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='11' y='8' width='1' height='1' fill='%23808080'/%3E%3Crect x='12' y='8' width='1' height='1' fill='%23000000'/%3E%3Crect x='3' y='9' width='1' height='1' fill='%23000000'/%3E%3Crect x='4' y='9' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='5' y='9' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='6' y='9' width='1' height='1' fill='%23808080'/%3E%3Crect x='7' y='9' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='8' y='9' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='9' y='9' width='1' height='1' fill='%23808080'/%3E%3Crect x='10' y='9' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='11' y='9' width='1' height='1' fill='%23808080'/%3E%3Crect x='12' y='9' width='1' height='1' fill='%23000000'/%3E%3Crect x='3' y='10' width='1' height='1' fill='%23000000'/%3E%3Crect x='4' y='10' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='5' y='10' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='6' y='10' width='1' height='1' fill='%23808080'/%3E%3Crect x='7' y='10' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='8' y='10' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='9' y='10' width='1' height='1' fill='%23808080'/%3E%3Crect x='10' y='10' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='11' y='10' width='1' height='1' fill='%23808080'/%3E%3Crect x='12' y='10' width='1' height='1' fill='%23000000'/%3E%3Crect x='3' y='11' width='1' height='1' fill='%23000000'/%3E%3Crect x='4' y='11' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='5' y='11' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='6' y='11' width='1' height='1' fill='%23808080'/%3E%3Crect x='7' y='11' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='8' y='11' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='9' y='11' width='1' height='1' fill='%23808080'/%3E%3Crect x='10' y='11' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='11' y='11' width='1' height='1' fill='%23808080'/%3E%3Crect x='12' y='11' width='1' height='1' fill='%23000000'/%3E%3Crect x='3' y='12' width='1' height='1' fill='%23000000'/%3E%3Crect x='4' y='12' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='5' y='12' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='6' y='12' width='1' height='1' fill='%23808080'/%3E%3Crect x='7' y='12' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='8' y='12' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='9' y='12' width='1' height='1' fill='%23808080'/%3E%3Crect x='10' y='12' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='11' y='12' width='1' height='1' fill='%23808080'/%3E%3Crect x='12' y='12' width='1' height='1' fill='%23000000'/%3E%3Crect x='3' y='13' width='1' height='1' fill='%23000000'/%3E%3Crect x='4' y='13' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='5' y='13' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='6' y='13' width='1' height='1' fill='%23808080'/%3E%3Crect x='7' y='13' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='8' y='13' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='9' y='13' width='1' height='1' fill='%23808080'/%3E%3Crect x='10' y='13' width='1' height='1' fill='%23c0c0c0'/%3E%3Crect x='11' y='13' width='1' height='1' fill='%23808080'/%3E%3Crect x='12' y='13' width='1' height='1' fill='%23000000'/%3E%3Crect x='3' y='14' width='10' height='1' fill='%23000000'/%3E%3C/svg%3E");
  --ico-sparkle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='5' y='1' width='1' height='1' fill='%23000000'/%3E%3Crect x='4' y='2' width='1' height='1' fill='%23000000'/%3E%3Crect x='5' y='2' width='1' height='1' fill='%23ffd800'/%3E%3Crect x='6' y='2' width='1' height='1' fill='%23000000'/%3E%3Crect x='3' y='3' width='1' height='1' fill='%23000000'/%3E%3Crect x='4' y='3' width='1' height='1' fill='%23ffd800'/%3E%3Crect x='5' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='6' y='3' width='1' height='1' fill='%23ffd800'/%3E%3Crect x='7' y='3' width='1' height='1' fill='%23000000'/%3E%3Crect x='4' y='4' width='1' height='1' fill='%23000000'/%3E%3Crect x='5' y='4' width='1' height='1' fill='%23ffd800'/%3E%3Crect x='6' y='4' width='1' height='1' fill='%23000000'/%3E%3Crect x='12' y='4' width='1' height='1' fill='%23000000'/%3E%3Crect x='5' y='5' width='1' height='1' fill='%23000000'/%3E%3Crect x='11' y='5' width='1' height='1' fill='%23000000'/%3E%3Crect x='12' y='5' width='1' height='1' fill='%23ffd800'/%3E%3Crect x='13' y='5' width='1' height='1' fill='%23000000'/%3E%3Crect x='10' y='6' width='1' height='1' fill='%23000000'/%3E%3Crect x='11' y='6' width='1' height='1' fill='%23ffd800'/%3E%3Crect x='12' y='6' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='13' y='6' width='1' height='1' fill='%23ffd800'/%3E%3Crect x='14' y='6' width='1' height='1' fill='%23000000'/%3E%3Crect x='8' y='7' width='1' height='1' fill='%23000000'/%3E%3Crect x='11' y='7' width='1' height='1' fill='%23000000'/%3E%3Crect x='12' y='7' width='1' height='1' fill='%23ffd800'/%3E%3Crect x='13' y='7' width='1' height='1' fill='%23000000'/%3E%3Crect x='7' y='8' width='1' height='1' fill='%23000000'/%3E%3Crect x='8' y='8' width='1' height='1' fill='%23ffd800'/%3E%3Crect x='9' y='8' width='1' height='1' fill='%23000000'/%3E%3Crect x='12' y='8' width='1' height='1' fill='%23000000'/%3E%3Crect x='7' y='9' width='1' height='1' fill='%23000000'/%3E%3Crect x='8' y='9' width='1' height='1' fill='%23ffd800'/%3E%3Crect x='9' y='9' width='1' height='1' fill='%23000000'/%3E%3Crect x='4' y='10' width='3' height='1' fill='%23000000'/%3E%3Crect x='7' y='10' width='3' height='1' fill='%23ffd800'/%3E%3Crect x='10' y='10' width='3' height='1' fill='%23000000'/%3E%3Crect x='3' y='11' width='1' height='1' fill='%23000000'/%3E%3Crect x='4' y='11' width='4' height='1' fill='%23ffd800'/%3E%3Crect x='8' y='11' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='9' y='11' width='4' height='1' fill='%23ffd800'/%3E%3Crect x='13' y='11' width='1' height='1' fill='%23000000'/%3E%3Crect x='4' y='12' width='3' height='1' fill='%23000000'/%3E%3Crect x='7' y='12' width='3' height='1' fill='%23ffd800'/%3E%3Crect x='10' y='12' width='3' height='1' fill='%23000000'/%3E%3Crect x='7' y='13' width='1' height='1' fill='%23000000'/%3E%3Crect x='8' y='13' width='1' height='1' fill='%23ffd800'/%3E%3Crect x='9' y='13' width='1' height='1' fill='%23000000'/%3E%3Crect x='7' y='14' width='1' height='1' fill='%23000000'/%3E%3Crect x='8' y='14' width='1' height='1' fill='%23ffd800'/%3E%3Crect x='9' y='14' width='1' height='1' fill='%23000000'/%3E%3Crect x='8' y='15' width='1' height='1' fill='%23000000'/%3E%3C/svg%3E");
  --ico-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='7' y='1' width='2' height='1' fill='%23000000'/%3E%3Crect x='6' y='2' width='1' height='1' fill='%23000000'/%3E%3Crect x='7' y='2' width='2' height='1' fill='%23ffd800'/%3E%3Crect x='9' y='2' width='1' height='1' fill='%23000000'/%3E%3Crect x='6' y='3' width='1' height='1' fill='%23000000'/%3E%3Crect x='7' y='3' width='2' height='1' fill='%23ffd800'/%3E%3Crect x='9' y='3' width='1' height='1' fill='%23000000'/%3E%3Crect x='5' y='4' width='1' height='1' fill='%23000000'/%3E%3Crect x='6' y='4' width='4' height='1' fill='%23ffd800'/%3E%3Crect x='10' y='4' width='1' height='1' fill='%23000000'/%3E%3Crect x='0' y='5' width='6' height='1' fill='%23000000'/%3E%3Crect x='6' y='5' width='4' height='1' fill='%23ffd800'/%3E%3Crect x='10' y='5' width='6' height='1' fill='%23000000'/%3E%3Crect x='1' y='6' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='6' width='12' height='1' fill='%23ffd800'/%3E%3Crect x='14' y='6' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='7' width='1' height='1' fill='%23000000'/%3E%3Crect x='3' y='7' width='10' height='1' fill='%23ffd800'/%3E%3Crect x='13' y='7' width='1' height='1' fill='%23000000'/%3E%3Crect x='3' y='8' width='1' height='1' fill='%23000000'/%3E%3Crect x='4' y='8' width='8' height='1' fill='%23ffd800'/%3E%3Crect x='12' y='8' width='1' height='1' fill='%23000000'/%3E%3Crect x='4' y='9' width='1' height='1' fill='%23000000'/%3E%3Crect x='5' y='9' width='6' height='1' fill='%23ffd800'/%3E%3Crect x='11' y='9' width='1' height='1' fill='%23000000'/%3E%3Crect x='4' y='10' width='1' height='1' fill='%23000000'/%3E%3Crect x='5' y='10' width='6' height='1' fill='%23ffd800'/%3E%3Crect x='11' y='10' width='1' height='1' fill='%23000000'/%3E%3Crect x='3' y='11' width='1' height='1' fill='%23000000'/%3E%3Crect x='4' y='11' width='3' height='1' fill='%23ffd800'/%3E%3Crect x='7' y='11' width='2' height='1' fill='%23000000'/%3E%3Crect x='9' y='11' width='3' height='1' fill='%23ffd800'/%3E%3Crect x='12' y='11' width='1' height='1' fill='%23000000'/%3E%3Crect x='3' y='12' width='1' height='1' fill='%23000000'/%3E%3Crect x='4' y='12' width='2' height='1' fill='%23ffd800'/%3E%3Crect x='6' y='12' width='1' height='1' fill='%23000000'/%3E%3Crect x='9' y='12' width='1' height='1' fill='%23000000'/%3E%3Crect x='10' y='12' width='2' height='1' fill='%23ffd800'/%3E%3Crect x='12' y='12' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='13' width='1' height='1' fill='%23000000'/%3E%3Crect x='3' y='13' width='2' height='1' fill='%23ffd800'/%3E%3Crect x='5' y='13' width='1' height='1' fill='%23000000'/%3E%3Crect x='10' y='13' width='1' height='1' fill='%23000000'/%3E%3Crect x='11' y='13' width='2' height='1' fill='%23ffd800'/%3E%3Crect x='13' y='13' width='1' height='1' fill='%23000000'/%3E%3Crect x='2' y='14' width='3' height='1' fill='%23000000'/%3E%3Crect x='11' y='14' width='3' height='1' fill='%23000000'/%3E%3C/svg%3E");
}
/* PIXEL-ICONS:END */
:root { --w-controls: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='14' shape-rendering='crispEdges'%3E%3Crect x='0' y='0' width='16' height='14' fill='%23c0c0c0'/%3E%3Crect x='0' y='0' width='15' height='1' fill='%23fff'/%3E%3Crect x='0' y='0' width='1' height='13' fill='%23fff'/%3E%3Crect x='0' y='13' width='16' height='1' fill='%23000'/%3E%3Crect x='15' y='0' width='1' height='14' fill='%23000'/%3E%3Crect x='1' y='12' width='14' height='1' fill='%23808080'/%3E%3Crect x='14' y='1' width='1' height='12' fill='%23808080'/%3E%3Crect x='5' y='10' width='6' height='2' fill='%23fff'/%3E%3Crect x='4' y='9' width='6' height='2' fill='%23808080'/%3E%3Crect x='16' y='0' width='16' height='14' fill='%23c0c0c0'/%3E%3Crect x='16' y='0' width='15' height='1' fill='%23fff'/%3E%3Crect x='16' y='0' width='1' height='13' fill='%23fff'/%3E%3Crect x='16' y='13' width='16' height='1' fill='%23000'/%3E%3Crect x='31' y='0' width='1' height='14' fill='%23000'/%3E%3Crect x='17' y='12' width='14' height='1' fill='%23808080'/%3E%3Crect x='30' y='1' width='1' height='12' fill='%23808080'/%3E%3Crect x='20' y='3' width='9' height='2' fill='%23fff'/%3E%3Crect x='20' y='3' width='1' height='9' fill='%23fff'/%3E%3Crect x='28' y='3' width='1' height='9' fill='%23fff'/%3E%3Crect x='20' y='11' width='9' height='1' fill='%23fff'/%3E%3Crect x='19' y='2' width='9' height='2' fill='%23808080'/%3E%3Crect x='19' y='2' width='1' height='9' fill='%23808080'/%3E%3Crect x='27' y='2' width='1' height='9' fill='%23808080'/%3E%3Crect x='19' y='10' width='9' height='1' fill='%23808080'/%3E%3Crect x='36' y='0' width='16' height='14' fill='%23c0c0c0'/%3E%3Crect x='36' y='0' width='15' height='1' fill='%23fff'/%3E%3Crect x='36' y='0' width='1' height='13' fill='%23fff'/%3E%3Crect x='36' y='13' width='16' height='1' fill='%23000'/%3E%3Crect x='51' y='0' width='1' height='14' fill='%23000'/%3E%3Crect x='37' y='12' width='14' height='1' fill='%23808080'/%3E%3Crect x='50' y='1' width='1' height='12' fill='%23808080'/%3E%3Crect x='41' y='4' width='1' height='1' fill='%23fff'/%3E%3Crect x='42' y='4' width='1' height='1' fill='%23fff'/%3E%3Crect x='47' y='4' width='1' height='1' fill='%23fff'/%3E%3Crect x='48' y='4' width='1' height='1' fill='%23fff'/%3E%3Crect x='42' y='5' width='1' height='1' fill='%23fff'/%3E%3Crect x='43' y='5' width='1' height='1' fill='%23fff'/%3E%3Crect x='46' y='5' width='1' height='1' fill='%23fff'/%3E%3Crect x='47' y='5' width='1' height='1' fill='%23fff'/%3E%3Crect x='43' y='6' width='1' height='1' fill='%23fff'/%3E%3Crect x='44' y='6' width='1' height='1' fill='%23fff'/%3E%3Crect x='45' y='6' width='1' height='1' fill='%23fff'/%3E%3Crect x='46' y='6' width='1' height='1' fill='%23fff'/%3E%3Crect x='44' y='7' width='1' height='1' fill='%23fff'/%3E%3Crect x='45' y='7' width='1' height='1' fill='%23fff'/%3E%3Crect x='43' y='8' width='1' height='1' fill='%23fff'/%3E%3Crect x='44' y='8' width='1' height='1' fill='%23fff'/%3E%3Crect x='45' y='8' width='1' height='1' fill='%23fff'/%3E%3Crect x='46' y='8' width='1' height='1' fill='%23fff'/%3E%3Crect x='42' y='9' width='1' height='1' fill='%23fff'/%3E%3Crect x='43' y='9' width='1' height='1' fill='%23fff'/%3E%3Crect x='46' y='9' width='1' height='1' fill='%23fff'/%3E%3Crect x='47' y='9' width='1' height='1' fill='%23fff'/%3E%3Crect x='41' y='10' width='1' height='1' fill='%23fff'/%3E%3Crect x='42' y='10' width='1' height='1' fill='%23fff'/%3E%3Crect x='47' y='10' width='1' height='1' fill='%23fff'/%3E%3Crect x='48' y='10' width='1' height='1' fill='%23fff'/%3E%3Crect x='40' y='3' width='1' height='1' fill='%23808080'/%3E%3Crect x='41' y='3' width='1' height='1' fill='%23808080'/%3E%3Crect x='46' y='3' width='1' height='1' fill='%23808080'/%3E%3Crect x='47' y='3' width='1' height='1' fill='%23808080'/%3E%3Crect x='41' y='4' width='1' height='1' fill='%23808080'/%3E%3Crect x='42' y='4' width='1' height='1' fill='%23808080'/%3E%3Crect x='45' y='4' width='1' height='1' fill='%23808080'/%3E%3Crect x='46' y='4' width='1' height='1' fill='%23808080'/%3E%3Crect x='42' y='5' width='1' height='1' fill='%23808080'/%3E%3Crect x='43' y='5' width='1' height='1' fill='%23808080'/%3E%3Crect x='44' y='5' width='1' height='1' fill='%23808080'/%3E%3Crect x='45' y='5' width='1' height='1' fill='%23808080'/%3E%3Crect x='43' y='6' width='1' height='1' fill='%23808080'/%3E%3Crect x='44' y='6' width='1' height='1' fill='%23808080'/%3E%3Crect x='42' y='7' width='1' height='1' fill='%23808080'/%3E%3Crect x='43' y='7' width='1' height='1' fill='%23808080'/%3E%3Crect x='44' y='7' width='1' height='1' fill='%23808080'/%3E%3Crect x='45' y='7' width='1' height='1' fill='%23808080'/%3E%3Crect x='41' y='8' width='1' height='1' fill='%23808080'/%3E%3Crect x='42' y='8' width='1' height='1' fill='%23808080'/%3E%3Crect x='45' y='8' width='1' height='1' fill='%23808080'/%3E%3Crect x='46' y='8' width='1' height='1' fill='%23808080'/%3E%3Crect x='40' y='9' width='1' height='1' fill='%23808080'/%3E%3Crect x='41' y='9' width='1' height='1' fill='%23808080'/%3E%3Crect x='46' y='9' width='1' height='1' fill='%23808080'/%3E%3Crect x='47' y='9' width='1' height='1' fill='%23808080'/%3E%3C/svg%3E"); --w-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='7' shape-rendering='crispEdges'%3E%3Crect x='0' y='0' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='0' width='1' height='1' fill='%23000'/%3E%3Crect x='6' y='0' width='1' height='1' fill='%23000'/%3E%3Crect x='7' y='0' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%23000'/%3E%3Crect x='2' y='1' width='1' height='1' fill='%23000'/%3E%3Crect x='5' y='1' width='1' height='1' fill='%23000'/%3E%3Crect x='6' y='1' width='1' height='1' fill='%23000'/%3E%3Crect x='2' y='2' width='1' height='1' fill='%23000'/%3E%3Crect x='3' y='2' width='1' height='1' fill='%23000'/%3E%3Crect x='4' y='2' width='1' height='1' fill='%23000'/%3E%3Crect x='5' y='2' width='1' height='1' fill='%23000'/%3E%3Crect x='3' y='3' width='1' height='1' fill='%23000'/%3E%3Crect x='4' y='3' width='1' height='1' fill='%23000'/%3E%3Crect x='2' y='4' width='1' height='1' fill='%23000'/%3E%3Crect x='3' y='4' width='1' height='1' fill='%23000'/%3E%3Crect x='4' y='4' width='1' height='1' fill='%23000'/%3E%3Crect x='5' y='4' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='5' width='1' height='1' fill='%23000'/%3E%3Crect x='2' y='5' width='1' height='1' fill='%23000'/%3E%3Crect x='5' y='5' width='1' height='1' fill='%23000'/%3E%3Crect x='6' y='5' width='1' height='1' fill='%23000'/%3E%3Crect x='0' y='6' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='6' width='1' height='1' fill='%23000'/%3E%3Crect x='6' y='6' width='1' height='1' fill='%23000'/%3E%3Crect x='7' y='6' width='1' height='1' fill='%23000'/%3E%3C/svg%3E"); }

[data-decade="90s"] body { padding-bottom: calc(48px + env(safe-area-inset-bottom)); -webkit-font-smoothing: auto; }
[data-decade="90s"] main { padding-top: 18px; }
[data-decade="90s"] .panel, .panel[data-decade="90s"] { position: relative; border: 0; border-radius: 0; background: #c0c0c0; box-shadow: var(--w-window);
  padding: 40px 16px 20px; backdrop-filter: none; }
/* title bar + window buttons (decoration: the real controls stay in the taskbar) */
[data-decade="90s"] .panel::before, .panel[data-decade="90s"]::before { content: "veryniceview"; content: "veryniceview" / ""; position: absolute; top: 3px; left: 3px; right: 3px; height: 22px;
  padding: 0 64px 0 25px; background: var(--ico-logo) 4px 3px / 16px 16px no-repeat, var(--w-title); color: #fff;
  font: 700 13px/22px var(--font); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-decade="90s"] .panel::after, .panel[data-decade="90s"]::after { content: ""; position: absolute; top: 7px; right: 6px; width: 52px; height: 14px; background: var(--w-controls); }
[data-decade="90s"] #screen-loading::before { content: "Loading…"; content: "Loading…" / ""; }
[data-decade="90s"] #screen-intro::before { content: "Welcome to veryniceview"; content: "Welcome to veryniceview" / ""; }
[data-decade="90s"] #screen-play::before { content: "Guess the year"; content: "Guess the year" / ""; }
[data-decade="90s"] #screen-reveal::before { content: "The answer"; content: "The answer" / ""; }
[data-decade="90s"] #screen-result::before { content: "My soul year"; content: "My soul year" / ""; }

/* taskbar: brand = start-style button on the left, the three actions + clock as the tray */
[data-decade="90s"] .top { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; max-width: none !important; margin: 0;
  height: calc(44px + env(safe-area-inset-bottom)); padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
  background: #c0c0c0; box-shadow: inset 0 1px #dfdfdf, inset 0 2px #fff; align-items: flex-start; }
[data-decade="90s"] .brand { display: inline-block; height: 36px; padding: 0 10px 0 7px; background: #c0c0c0;
  box-shadow: var(--w-out); color: #000; font: 700 15px/36px var(--font); letter-spacing: 0; text-shadow: none; white-space: nowrap; }
[data-decade="90s"] .brand::before { content: ""; display: inline-block; vertical-align: -3px; margin-right: 6px; width: 16px; height: 16px;
  background: var(--ico-logo) center / 16px no-repeat; }
[data-decade="90s"] .brand b { color: #000080; }
[data-decade="90s"] .brand:active { box-shadow: var(--w-in); }
[data-decade="90s"] .top-actions { gap: 3px; align-items: center; height: 36px; padding: 0 4px; box-shadow: inset -1px -1px #fff, inset 1px 1px #808080; }
[data-decade="90s"] .icon-btn { width: 34px; height: 30px; border-radius: 0; border: 0; background: #c0c0c0; box-shadow: var(--w-out);
  color: #000; font: 700 15px var(--font); }
[data-decade="90s"] .icon-btn:active { box-shadow: var(--w-in); }
[data-decade="90s"] .icon-btn[data-open="dlg-archive"], [data-decade="90s"] .icon-btn[data-open="dlg-stats"] { font-size: 0; background-position: center; background-size: 16px; background-repeat: no-repeat; }
[data-decade="90s"] .icon-btn[data-open="dlg-archive"] { background-image: var(--ico-folder); }
[data-decade="90s"] .icon-btn[data-open="dlg-stats"] { background-image: var(--ico-star); }
.tray { display: none; }
[data-decade="90s"] .tray:not(:empty) { display: block; padding: 0 6px 0 8px; font: 13px/30px var(--font); color: #000; white-space: nowrap; font-variant-numeric: tabular-nums; }
[data-decade="90s"] .icon-btn:focus-visible, [data-decade="90s"] .btn:focus-visible, [data-decade="90s"] .option:focus-visible,
[data-decade="90s"] .brand:focus-visible, [data-decade="90s"] .dlg-x:focus-visible { outline: 1px dotted #000; outline-offset: -5px; }

/* desktop shortcuts (wide screens only): real buttons, each opens what its label says */
.desk { display: none; }
@media (min-width: 1100px) {
  [data-decade="90s"] .desk { display: grid; position: absolute; z-index: 5; top: 18px; left: 14px; gap: 18px; } /* scrolls with the page */
}
.desk > * { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 88px; padding: 4px 0; border: 0; background: none;
  color: #fff; font: 12px/1.25 Tahoma, Verdana, sans-serif; text-align: center; text-decoration: none; cursor: pointer; }
.desk > *::before { content: ""; width: 32px; height: 32px; background: var(--ico) center / 32px no-repeat; }
.desk b { font-weight: 400; padding: 0 2px; }
.desk > *:hover b, .desk > *:focus-visible b { background: #000080; outline: 1px dotted #fff; }
.desk > *:focus-visible { outline: none; }

/* the one window button that works: ✕ = back to the start (min/max are drawn greyed out, like disabled ones) */
.win-x { display: none; }
[data-decade="90s"] .win-x { display: block; position: absolute; z-index: 2; top: 7px; right: 6px; width: 16px; height: 14px; padding: 0; border: 0;
  background: var(--w-x) center / 8px 7px no-repeat, #c0c0c0; box-shadow: var(--w-out); cursor: pointer; }
[data-decade="90s"] .win-x::before { content: ""; position: absolute; inset: -8px; } /* bigger tap target */
[data-decade="90s"] .win-x:active { box-shadow: var(--w-in); }
[data-decade="90s"] .win-x:focus-visible { outline: 1px dotted #000; outline-offset: 1px; }

/* type */
[data-decade="90s"] h1 { font-size: clamp(26px, 6.5vw, 36px); }
[data-decade="90s"] .grad { background: var(--w-title); -webkit-background-clip: text; background-clip: text; }
[data-decade="90s"] .kicker, [data-decade="90s"] .pick-title { letter-spacing: 1px; }

/* buttons */
[data-decade="90s"] .btn { border: 0; border-radius: 0; background: #c0c0c0; color: #000; box-shadow: var(--w-out); padding: 12px 22px; font-weight: 700; }
[data-decade="90s"] .btn-primary { box-shadow: var(--w-default); }
[data-decade="90s"] .btn-small { padding: 8px 14px; }
[data-decade="90s"] .btn:active:not(:disabled) { transform: none; box-shadow: var(--w-in); }
[data-decade="90s"] .btn-primary:active:not(:disabled) { box-shadow: inset 0 0 0 1px #000, inset 0 0 0 2px #808080; }
[data-decade="90s"] .btn:disabled { opacity: 1; color: #808080; text-shadow: 1px 1px #fff; }
[data-decade="90s"] .btn-story { background: var(--w-title); color: #fff; box-shadow: var(--w-out); }
[data-decade="90s"] .btn-story:active { box-shadow: var(--w-in); }
[data-decade="90s"] .btn-link { color: #000080; }
[data-decade="90s"] .net { border-radius: 0; box-shadow: var(--w-out); }

/* sunken white fields */
[data-decade="90s"] .memory, [data-decade="90s"] .recap-box, [data-decade="90s"] .mini-card, [data-decade="90s"] .souls span,
[data-decade="90s"] .compare div:first-child { background: #fff; border: 0; border-radius: 0; box-shadow: var(--w-field); }
[data-decade="90s"] .compare div { border-radius: 0; box-shadow: var(--w-field); }
[data-decade="90s"] .memory { padding: 16px 14px 18px; }
[data-decade="90s"] .chip, [data-decade="90s"] .step-no, [data-decade="90s"] .st-pill, [data-decade="90s"] .pts i { border-radius: 0; }
[data-decade="90s"] .where { border-radius: 0; background: #ffffe1; border: 1px solid #000; padding: 5px 10px; }
[data-decade="90s"] .clue-figure img, [data-decade="90s"] .yp-figure img { border-radius: 0; padding: 3px; background: #fff; box-shadow: var(--w-field); }
[data-decade="90s"] .card-img { border-radius: 0; padding: 3px; background: #c0c0c0; box-shadow: var(--w-window); }

/* raised tiles */
[data-decade="90s"] .steps li, [data-decade="90s"] .option, [data-decade="90s"] .yp-year { border: 0; border-radius: 0; background: #c0c0c0; box-shadow: var(--w-out); }
[data-decade="90s"] .option:hover { transform: none; }
[data-decade="90s"] .option:active { box-shadow: var(--w-in); }
[data-decade="90s"] .steps-row li:nth-child(1) .step-ico, [data-decade="90s"] .steps-row li:nth-child(3) .step-ico { font-size: 0; width: 32px; height: 32px; background: var(--ico-pc) center / 32px no-repeat; }
[data-decade="90s"] .steps-row li:nth-child(3) .step-ico { background-image: var(--ico-sparkle); }

/* group box + tooltips */
[data-decade="90s"] .memo { border: 1px solid #808080; border-radius: 0; background: transparent; box-shadow: inset 1px 1px #fff, 1px 1px #fff; }
[data-decade="90s"] .memo-row input { border: 0; border-radius: 0; box-shadow: var(--w-field); padding: 9px 10px; }
[data-decade="90s"] .memo-row input:focus { outline: 0; }
[data-decade="90s"] .tomorrow, [data-decade="90s"] .challenge, [data-decade="90s"] .sticker-new, [data-decade="90s"] .inapp-hint,
[data-decade="90s"] .coach-bubble { background: #ffffe1; color: #000; border: 1px solid #000; border-radius: 0; box-shadow: 2px 2px 0 rgba(0, 0, 0, .35); }
[data-decade="90s"] .coach-spot { border-radius: 0; outline: 2px dotted #fff; }

/* progress bar: navy blocks in a sunken box */
[data-decade="90s"] .progress { width: max-content; margin: 0 auto 8px; padding: 3px; gap: 2px; background: #fff; box-shadow: var(--w-field); }
[data-decade="90s"] .progress span { width: 30px; height: 14px; border-radius: 0; background: transparent; }
[data-decade="90s"] .progress span.done { background: #000080; }
[data-decade="90s"] .progress span.now { background: #1084d0; }

/* slider: a sunken groove and a grey bevelled handle */
[data-decade="90s"] input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 0; background: #fff;
  box-shadow: inset 1px 1px #808080, inset -1px -1px #fff, inset 2px 2px #0a0a0a; }
[data-decade="90s"] input[type=range]::-moz-range-track { height: 6px; border-radius: 0; background: #fff; box-shadow: inset 1px 1px #808080, inset 2px 2px #0a0a0a; }
[data-decade="90s"] input[type=range]::-moz-range-progress { height: 6px; border-radius: 0; background: #000080; }
[data-decade="90s"] input[type=range]::-webkit-slider-thumb { width: 22px; height: 34px; margin-top: -14px; border: 0; border-radius: 0;
  background: #c0c0c0; box-shadow: var(--w-out); }
[data-decade="90s"] input[type=range]::-moz-range-thumb { width: 22px; height: 34px; border: 0; border-radius: 0; background: #c0c0c0; box-shadow: var(--w-out); }
[data-decade="90s"] input[type=range]:focus-visible { outline: 1px dotted #000; border-radius: 0; }

/* dialogs = windows: the first heading becomes the title bar */
[data-decade="90s"] .dlg { border: 0; border-radius: 0; padding: 3px 3px 16px; background: #c0c0c0; box-shadow: var(--w-window); }
[data-decade="90s"] .dlg > * { margin-left: 13px; margin-right: 13px; }
[data-decade="90s"] .dlg > h2:first-child, [data-decade="90s"] .dlg > .dlg-head { margin: 0 0 14px; padding: 3px 3px 3px 25px; min-height: 24px;
  background: var(--ico-logo) 4px 50% / 16px 16px no-repeat, var(--w-title); color: #fff; font-size: 14px; }
[data-decade="90s"] .dlg-head h2 { font-size: 14px; color: #fff; }
[data-decade="90s"] .dlg-x { width: 22px; height: 20px; border-radius: 0; background: #c0c0c0; box-shadow: var(--w-out); color: #000; font: 700 12px var(--font); }
[data-decade="90s"] .dlg-x:active { box-shadow: var(--w-in); }
[data-decade="90s"] .dlg::backdrop { background: rgba(0, 0, 0, .3); }
[data-decade="90s"] .archive { background: #fff; box-shadow: var(--w-field); padding: 3px; }
[data-decade="90s"] .archive li a { border-radius: 0; }
[data-decade="90s"] .archive li a:hover, [data-decade="90s"] .archive li a:focus-visible { background: #000080; color: #fff; outline: 0; }

/* the story */
[data-decade="90s"] .story-frame { background: #c0c0c0; box-shadow: var(--w-window); border-radius: 0; }
[data-decade="90s"] .story-bars span { border-radius: 0; background: #fff; box-shadow: inset 1px 1px #808080; }
[data-decade="90s"] .story-bars i { background: #000080; }
[data-decade="90s"] .story-frame::before { content: "veryniceview: your 90s story"; content: "veryniceview: your 90s story" / ""; position: absolute; top: 3px; left: 3px; right: 3px; height: 30px; z-index: 3;
  padding: 0 40px 0 30px; background: var(--ico-logo) 7px 50% / 16px 16px no-repeat, var(--w-title); color: #fff; font: 700 14px/30px var(--font);
  text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-decade="90s"] .story-bars { top: 44px; right: 14px; left: 14px; }
[data-decade="90s"] .story-x { z-index: 4; border-radius: 0; width: 24px; height: 22px; top: 7px; right: 8px; background: #c0c0c0; box-shadow: var(--w-out);
  color: #000; font: 700 12px var(--font); }
[data-decade="90s"] .st-slide { padding-top: 70px; }
[data-decade="90s"] .coach-skip { background: transparent; text-decoration: underline; }
[data-decade="90s"] .st-card { border-radius: 0; }
[data-decade="90s"] .st-year { background: var(--w-title); -webkit-background-clip: text; background-clip: text; }

/* the 90s decade tile, on every page: a tiny window */
.decade-tile[data-decade="90s"] { color: #000; border: 0; border-radius: 0; padding-top: 30px;
  background: var(--w-title) 3px 3px / calc(100% - 6px) 18px no-repeat, #c0c0c0; box-shadow: var(--w-window); }
.decade-tile[data-decade="90s"] b { font-family: "Arial Black", Tahoma, var(--font); font-weight: 900; color: #000080; }
.decade-tile[data-decade="90s"] span { font-family: Tahoma, Verdana, var(--font); }
.decade-tile[data-decade="90s"] i { top: 5px; right: 8px; color: #fff; font-family: Tahoma, Verdana, var(--font); }

/* windows open in a few choppy steps, like an old PC */
@keyframes win-open {
  0% { opacity: 0; transform: scale(.25); animation-timing-function: steps(1, end); }
  25% { opacity: 1; transform: scale(.5); animation-timing-function: steps(1, end); }
  50% { transform: scale(.75); animation-timing-function: steps(1, end); }
  75% { transform: scale(.92); animation-timing-function: steps(1, end); }
  100% { transform: none; }
}
