:root {
  --ink: #191716;
  --paper: #f8f3e9;
  --surface: #fffaf0;
  --muted: #766b60;
  --line: #2b252014;
  --red: #d54837;
  --teal: #167c80;
  --yellow: #f2b84b;
  --green: #3b8b59;
  --shadow: 0 24px 80px #24160f24;
  --era-body-bg: linear-gradient(120deg, #f8f3e9 0%, #f7ead8 42%, #eaf5f2 100%);
  --era-backdrop-bg: linear-gradient(120deg, #f8f3e9 0%, #f7ead8 42%, #eaf5f2 100%);
  --era-texture: radial-gradient(circle at 20% 20%, #ffffff24 0 2px, transparent 2px 8px), radial-gradient(circle at 80% 10%, #00000012 0 1px, transparent 1px 10px);
  --era-backdrop-filter: none;
  --era-border-style: solid;
  --era-accent: #167c80;
  --era-accent-2: #f2b84b;
  --era-panel-overlay: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.16) 24%, transparent 100%);
  --era-backdrop-opacity: 0;
  --desktop-bg: linear-gradient(180deg, #94aac5 0%, #90a2bc 28%, #6d7f9a 100%);
  --desktop-noise: radial-gradient(circle at 18% 22%, rgba(255,255,255,0.18) 0 1px, transparent 1px 10px), radial-gradient(circle at 72% 18%, rgba(0,0,0,0.08) 0 1px, transparent 1px 11px);
  --shell-border: #274063;
  --shell-shadow: 0 30px 64px rgba(20, 32, 52, 0.34);
  --shell-radius: 10px;
  --shell-title-bg: linear-gradient(180deg, #5d8fd8 0%, #315a9f 100%);
  --shell-title-text: #ffffff;
  --shell-title-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
  --shell-toolbar-bg: linear-gradient(180deg, #eaf1fb 0%, #d9e7f8 100%);
  --shell-toolbar-border: rgba(55, 84, 134, 0.28);
  --shell-menu-bg: #e6eef9;
  --shell-status-bg: linear-gradient(180deg, #e9eff7 0%, #d5dfe9 100%);
  --shell-button-bg: linear-gradient(180deg, #fcfdff 0%, #d8e4f2 100%);
  --shell-button-border: rgba(40, 59, 92, 0.42);
  --shell-start-bg: linear-gradient(180deg, #67b05a 0%, #2f7e2f 100%);
  --shell-start-text: #ffffff;
  --shell-taskbar-bg: linear-gradient(180deg, rgba(34, 52, 86, 0.98) 0%, rgba(18, 33, 61, 0.98) 100%);
  --shell-taskbar-text: #eff6ff;
  --shell-address-bg: #ffffff;
  --shell-address-text: #1d2a3d;
  --shell-frame-border: rgba(18, 31, 53, 0.32);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  position: relative;
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--desktop-bg);
  transition: background 420ms ease, color 320ms ease, filter 320ms ease;
  overflow-x: hidden;
}

.os-stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 14px;
  gap: 12px;
}

.desktop-surface {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.28), transparent 42%),
    var(--desktop-bg);
}

.desktop-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--desktop-noise);
  opacity: 0.3;
  mix-blend-mode: soft-light;
}

.browser-window,
.taskbar {
  position: relative;
  z-index: 1;
}

.browser-window {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 14px - 12px - 44px);
  overflow: hidden;
  border: 1px solid var(--shell-border);
  border-radius: var(--shell-radius);
  background: rgba(240, 244, 249, 0.88);
  box-shadow: var(--shell-shadow);
  backdrop-filter: blur(6px);
}

.browser-chrome {
  display: none;
  flex-direction: column;
}

.browser-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
  padding: 0 8px 0 10px;
  background: var(--shell-title-bg);
  color: var(--shell-title-text);
  text-shadow: var(--shell-title-shadow);
}

.browser-chrome .browser-titlebar {
  flex: 0 0 auto;
}

.window-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 700;
}

.window-badge {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 2px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  overflow: hidden;
}

.window-badge-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
}

.window-controls {
  display: flex;
  gap: 4px;
}

.window-control {
  width: 24px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  font-size: 0.8rem;
  line-height: 1;
  padding: 0;
}

.window-control.close {
  background: rgba(209, 79, 79, 0.92);
}

.browser-menu {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  min-height: 24px;
  padding: 0 10px;
  background: var(--shell-menu-bg);
  border-bottom: 1px solid var(--shell-toolbar-border);
  font-size: 0.78rem;
  scrollbar-width: none;
}

.browser-menu::-webkit-scrollbar {
  display: none;
}

.menu-button {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.menu-button:hover,
.menu-button:focus-visible,
.menu-button[aria-expanded="true"] {
  outline: none;
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 1px 0 rgba(0, 0, 0, 0.05);
}

body[data-shell="xp"] .menu-button,
body[data-shell="aero"] .menu-button,
body[data-shell="win10"] .menu-button {
  font-weight: 600;
}

.browser-linksbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 22px;
  padding: 0 10px;
  border-bottom: 1px solid var(--shell-toolbar-border);
  font-size: 0.74rem;
  color: #44526c;
}

.browser-linksbar span {
  white-space: nowrap;
}

body[data-shell="classic"] .browser-chrome-classic,
body[data-shell="xp"] .browser-chrome-xp,
body[data-shell="aero"] .browser-chrome-aero,
body[data-shell="win10"] .browser-chrome-win10 {
  display: flex;
}

body[data-shell="classic"] .browser-titlebar {
  min-height: 26px;
}

body[data-shell="classic"] .browser-menu-classic {
  gap: 14px;
  min-height: 22px;
  background: linear-gradient(180deg, #ded7c8 0%, #cfc7b7 100%);
  font-size: 0.72rem;
}

body[data-shell="classic"] .browser-toolbar-classic {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 6px;
  padding: 7px 9px;
  background: linear-gradient(180deg, #f5f2ea 0%, #ddd7ca 100%);
}

body[data-shell="classic"] .browser-linksbar-classic {
  min-height: 20px;
  gap: 10px;
  background: linear-gradient(180deg, #dbd4c4 0%, #c9c1b1 100%);
  color: #554c3d;
}

body[data-shell="classic"] .nav-cluster-classic {
  gap: 4px;
}

body[data-shell="classic"] .nav-cluster-classic .nav-button {
  min-width: 28px;
  height: 24px;
  padding: 0;
  border-radius: 2px;
  font-size: 0.72rem;
}

body[data-shell="classic"] .address-bar-classic {
  border-radius: 2px;
}

body[data-shell="classic"] .address-bar-classic span {
  font-size: 0.7rem;
}

body[data-shell="classic"] .address-bar-classic input {
  height: 26px;
}

body[data-shell="xp"] .browser-titlebar {
  min-height: 30px;
}

body[data-shell="xp"] .browser-menu-xp {
  gap: 16px;
  min-height: 24px;
  background: linear-gradient(180deg, #edf5ff 0%, #dceaf8 100%);
  font-size: 0.73rem;
}

body[data-shell="xp"] .browser-toolbar-xp {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  padding: 9px 10px;
  background: linear-gradient(180deg, #f8fbff 0%, #dbeaf9 100%);
}

body[data-shell="xp"] .browser-linksbar-xp {
  min-height: 23px;
  gap: 10px;
  background: linear-gradient(180deg, #dcebf9 0%, #cfdff1 100%);
  color: #29476a;
}

body[data-shell="xp"] .nav-cluster-xp {
  gap: 4px;
}

body[data-shell="xp"] .nav-cluster-xp .nav-button {
  min-width: 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 6px;
  font-size: 0.92rem;
  line-height: 1;
}

body[data-shell="xp"] .nav-cluster-xp .nav-button.nav-button-icon {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 1px 0 rgba(102, 130, 170, 0.16);
  color: #24528d;
}

body[data-shell="xp"] .address-bar-xp {
  border-radius: 6px;
}

body[data-shell="xp"] .address-bar-xp input {
  height: 28px;
}

body[data-shell="aero"] .browser-titlebar {
  min-height: 34px;
}

body[data-shell="aero"] .browser-menu-aero {
  gap: 14px;
  min-height: 22px;
  background: linear-gradient(180deg, rgba(236, 243, 250, 0.86) 0%, rgba(223, 233, 244, 0.82) 100%);
  font-size: 0.72rem;
}

body[data-shell="aero"] .browser-toolbar-aero {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  padding: 8px 10px;
  background: linear-gradient(180deg, rgba(250, 253, 255, 0.9) 0%, rgba(233, 241, 249, 0.76) 100%);
}

body[data-shell="aero"] .browser-linksbar-aero {
  min-height: 20px;
  gap: 12px;
  background: linear-gradient(180deg, rgba(242, 246, 251, 0.88) 0%, rgba(228, 236, 244, 0.8) 100%);
  color: #516074;
}

body[data-shell="aero"] .nav-cluster-aero {
  gap: 4px;
}

body[data-shell="aero"] .nav-cluster-aero .nav-button {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 6px;
}

body[data-shell="aero"] .address-bar-aero {
  border-radius: 8px;
}

body[data-shell="aero"] .address-bar-aero input {
  height: 28px;
}

body[data-shell="win10"] .browser-titlebar {
  min-height: 30px;
}

body[data-shell="win10"] .browser-toolbar-win10 {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  padding: 7px 10px;
  background: linear-gradient(180deg, #f8fafc 0%, #edf1f6 100%);
}

body[data-shell="win10"] .browser-menu-win10 {
  gap: 12px;
  min-height: 20px;
  background: #f3f5f8;
  font-size: 0.7rem;
}

body[data-shell="win10"] .browser-linksbar-win10 {
  min-height: 18px;
  gap: 10px;
  background: linear-gradient(180deg, #eff3f7 0%, #e1e8ef 100%);
  color: #4d5b6f;
  font-size: 0.7rem;
}

body[data-shell="win10"] .nav-cluster-win10 {
  gap: 4px;
}

body[data-shell="win10"] .nav-cluster-win10 .nav-button {
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 4px;
}

body[data-shell="win10"] .address-bar-win10 {
  border-radius: 4px;
}

body[data-shell="win10"] .address-bar-win10 input {
  height: 28px;
}

.browser-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  background: var(--shell-toolbar-bg);
  border-bottom: 1px solid var(--shell-toolbar-border);
}

.nav-cluster {
  display: flex;
  gap: 6px;
}

.nav-button,
.go-button,
.start-button {
  font: inherit;
}

.nav-button,
.go-button {
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--shell-button-border);
  border-radius: 4px;
  background: var(--shell-button-bg);
  color: #1f2f46;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.address-bar {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0 10px 0 0;
  border: 1px solid var(--shell-button-border);
  border-radius: 4px;
  background: var(--shell-address-bg);
  color: var(--shell-address-text);
  box-shadow: inset 0 1px 2px rgba(17, 23, 36, 0.08);
}

.address-bar span {
  padding-left: 10px;
  font-size: 0.74rem;
  color: #53637d;
}

.address-bar input {
  width: 100%;
  min-width: 0;
  height: 30px;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.address-link {
  display: block;
  min-width: 0;
  padding: 0 8px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 30px;
}

.address-link:hover {
  text-decoration: underline;
}

.browser-body {
  flex: 1;
  min-height: 0;
  padding: 0;
  background: rgba(245, 248, 252, 0.9);
}

.browser-body .app-shell {
  width: 100%;
  min-height: auto;
  margin: 0;
  padding: 18px;
}

.browser-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 24px;
  padding: 0 10px;
  border-top: 1px solid var(--shell-toolbar-border);
  background: var(--shell-status-bg);
  color: #39465c;
  font-size: 0.76rem;
}

.menu-popover {
  position: fixed;
  z-index: 20;
  min-width: 220px;
  max-width: min(320px, calc(100vw - 20px));
}

.menu-panel {
  display: grid;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(66, 60, 53, 0.26);
  border-radius: 4px;
  background: linear-gradient(180deg, #fffdf7 0%, #f1eadb 100%);
  box-shadow:
    0 10px 24px rgba(43, 30, 18, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.menu-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 10px 0 8px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.menu-item:hover,
.menu-item:focus-visible {
  outline: none;
  background: linear-gradient(180deg, #dfeeff 0%, #bfd8f3 100%);
  border-color: rgba(69, 104, 161, 0.26);
}

.menu-item:disabled {
  opacity: 0.45;
  cursor: default;
}

.menu-item-icon {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  color: var(--era-accent);
}

.menu-item-icon svg {
  width: 14px;
  height: 14px;
}

.menu-separator {
  height: 1px;
  margin: 3px 4px;
  background: linear-gradient(90deg, transparent 0%, rgba(105, 89, 67, 0.28) 16%, rgba(105, 89, 67, 0.28) 84%, transparent 100%);
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 17, 24, 0.34);
}

.modal-window {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 32px));
  max-height: min(78vh, 760px);
  overflow: hidden;
  border: 1px solid rgba(63, 78, 104, 0.42);
  border-radius: 6px;
  background: linear-gradient(180deg, #f7f5ef 0%, #ece4d7 100%);
  box-shadow:
    0 22px 48px rgba(18, 24, 35, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.modal-window[data-width="wide"] {
  width: min(720px, calc(100vw - 32px));
}

.modal-window[aria-modal="true"] {
  animation: modalPop 180ms ease;
}

.modal-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
  padding: 0 8px 0 10px;
  color: #fff;
  background: linear-gradient(180deg, #5b87d0 0%, #2d5d9f 100%);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.24);
}

.modal-title {
  min-width: 0;
  font-size: 0.86rem;
  font-weight: 800;
}

.modal-close {
  width: 24px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.modal-body {
  display: grid;
  gap: 12px;
  padding: 14px 14px 10px;
  max-height: calc(78vh - 78px);
  overflow: auto;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 14px 14px;
}

.modal-actions .modal-action {
  min-height: 38px;
}

.modal-actions .modal-action.primary {
  color: #fff;
  border-color: rgba(46, 118, 126, 0.9);
  background: linear-gradient(180deg, #2d7a82 0%, #14505a 100%);
}

.modal-copy {
  display: grid;
  gap: 10px;
}

.modal-muted {
  color: var(--muted);
}

.modal-field {
  display: grid;
  gap: 6px;
}

.modal-field span {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.modal-field input {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(85, 75, 62, 0.24);
  border-radius: 4px;
  background: #fffefb;
  font: inherit;
}

.modal-list-wrap {
  display: grid;
  gap: 10px;
}

.modal-subtitle {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.modal-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.modal-empty {
  color: var(--muted);
}

body.crt-filter-on .os-stage::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0 2px, rgba(0, 0, 0, 0.08) 2px 4px),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.08) 52%, rgba(0, 0, 0, 0.04) 100%);
  mix-blend-mode: soft-light;
  opacity: 0.62;
  animation: crtPulse 8s linear infinite;
}

body.crt-filter-on .browser-window,
body.crt-filter-on .taskbar {
  filter: saturate(1.03) contrast(1.03);
}

body.modal-open {
  overflow: hidden;
}

.taskbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 0 0 8px 8px;
  background: var(--shell-taskbar-bg);
  color: var(--shell-taskbar-text);
  box-shadow: 0 -2px 0 rgba(255, 255, 255, 0.06) inset;
}

.start-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  height: 30px;
  padding: 0 14px 0 12px;
  border: 1px solid rgba(12, 68, 24, 0.42);
  border-radius: 16px 6px 16px 6px;
  background: var(--shell-start-bg);
  color: var(--shell-start-text);
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 2px 10px rgba(0, 0, 0, 0.18);
}

.start-orb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fffff4 0%, #c8ffd1 22%, #5dcf5d 58%, #146017 100%);
}

.start-art {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.start-label {
  white-space: nowrap;
}

.start-xp-mark,
.start-xp-text {
  display: none;
  pointer-events: none;
  user-select: none;
}

.taskbar-apps {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.taskbar-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: inherit;
}

.taskbar-app.active {
  background: rgba(255, 255, 255, 0.18);
}

.taskbar-app-icon {
  display: none;
  width: 24px;
  height: 24px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.taskbar-tray {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.taskbar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.taskbar-clock {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

body[data-shell="classic"] .browser-window {
  border-radius: 2px;
  backdrop-filter: none;
}

body[data-shell="classic"] .browser-titlebar {
  min-height: 26px;
  background: linear-gradient(180deg, #a7b0c1 0%, #7d8797 100%);
}

body[data-shell="classic"] .browser-menu,
body[data-shell="classic"] .browser-toolbar,
body[data-shell="classic"] .browser-statusbar {
  border-color: rgba(104, 100, 89, 0.3);
}

body[data-shell="classic"] .browser-toolbar {
  background: linear-gradient(180deg, #f5f2ea 0%, #ddd7ca 100%);
}

body[data-shell="classic"] .browser-menu {
  background: linear-gradient(180deg, #ded7c8 0%, #cfc7b7 100%);
}

body[data-shell="classic"] .browser-statusbar {
  background: linear-gradient(180deg, #e1dbcf 0%, #cbc3b3 100%);
}

body[data-shell="classic"] .nav-button,
body[data-shell="classic"] .go-button,
body[data-shell="classic"] .address-bar {
  border-radius: 2px;
}

body[data-shell="classic"] .nav-button,
body[data-shell="classic"] .go-button {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 1px 0 rgba(255, 255, 255, 0.16);
}

body[data-shell="classic"] .address-bar {
  box-shadow: inset 0 1px 2px rgba(63, 52, 39, 0.08);
}

body[data-shell="classic"] .taskbar {
  border-radius: 0;
  min-height: 46px;
  padding-inline: 8px 10px;
  background:
    linear-gradient(180deg, #c7c1b2 0%, #a8a091 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 -1px 0 rgba(92, 86, 72, 0.28);
}

body[data-shell="classic"] .start-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 124px;
  height: 41px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  box-shadow: none;
}

body[data-shell="classic"] .start-art-classic {
  display: block;
}

body[data-shell="classic"] .start-orb,
body[data-shell="classic"] .start-label {
  display: none;
}

body[data-shell="classic"] .start-button {
  margin-left: 2px;
}

body[data-shell="classic"] .taskbar-apps {
  gap: 6px;
}

body[data-shell="classic"] .taskbar-app {
    width: 44px;
    height: 36px;
    border-radius: 2px;
    background: linear-gradient(180deg, #ede7da 0%, #cbc3b3 100%);
    border-color: rgba(91, 80, 62, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 1px 0 rgba(255, 255, 255, 0.18);
}

body[data-shell="classic"] .taskbar-app.active {
  background: linear-gradient(180deg, #f6f1e5 0%, #d6cfbe 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.44),
    inset 0 -1px 0 rgba(0, 0, 0, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.18);
}

body[data-shell="classic"] .taskbar-app-icon-classic {
    display: block;
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
  }

body[data-shell="classic"] .taskbar-tray {
  gap: 4px;
}

body[data-shell="classic"] .taskbar-badge {
  min-width: 36px;
  height: 20px;
  border-radius: 3px;
  border-color: rgba(91, 80, 62, 0.18);
  background: linear-gradient(180deg, #f0eadf 0%, #d8d0bf 100%);
  color: #2c2418;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 1px 0 rgba(255, 255, 255, 0.16);
}

body[data-shell="classic"] .taskbar-clock {
  padding-inline: 4px 2px;
  color: #2c2418;
}

body[data-shell="xp"] .browser-window {
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96) 0%, rgba(223, 237, 251, 0.92) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.45) inset,
    0 0 0 2px rgba(87, 137, 204, 0.22) inset,
    var(--shell-shadow);
}

body[data-shell="xp"] .browser-window::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, transparent 12%, rgba(255, 255, 255, 0.08) 100%),
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.3) 0 11%, transparent 12%);
  mix-blend-mode: screen;
}

body[data-shell="xp"] .browser-titlebar {
  min-height: 30px;
  position: relative;
  overflow: hidden;
}

body[data-shell="xp"] .browser-titlebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 50%, rgba(255, 255, 255, 0.5) 0 12%, transparent 13%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, transparent 30%, rgba(255, 255, 255, 0.1) 100%);
  mix-blend-mode: screen;
  pointer-events: none;
}

body[data-shell="xp"] .browser-titlebar .window-badge {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.08) 100%);
}

body[data-shell="xp"] .browser-titlebar .window-controls .close {
  background: linear-gradient(180deg, #f06e6e 0%, #c83d3d 100%);
}

body[data-shell="xp"] .browser-toolbar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(219, 234, 250, 0.92) 100%),
    radial-gradient(circle at 8% 50%, rgba(255, 255, 255, 0.6) 0 8%, transparent 9%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body[data-shell="xp"] .browser-toolbar,
body[data-shell="xp"] .browser-menu,
body[data-shell="xp"] .browser-statusbar {
  border-color: rgba(49, 88, 149, 0.28);
}

body[data-shell="xp"] .browser-menu {
  background: linear-gradient(180deg, #edf5ff 0%, #dceaf8 100%);
  letter-spacing: 0.01em;
}

body[data-shell="xp"] .browser-statusbar {
  background: linear-gradient(180deg, #edf4fb 0%, #dce9f7 100%);
}

body[data-shell="xp"] .browser-toolbar {
  padding-block: 9px;
  background:
    linear-gradient(180deg, #f8fbff 0%, #dbeaf9 100%),
    radial-gradient(circle at 8% 50%, rgba(255, 255, 255, 0.45) 0 8%, transparent 9%);
}

body[data-shell="xp"] .browser-menu {
  border-bottom-color: rgba(73, 108, 170, 0.16);
}

body[data-shell="xp"] .browser-statusbar {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body[data-shell="xp"] .nav-button,
body[data-shell="xp"] .go-button,
body[data-shell="xp"] .address-bar {
  border-radius: 6px;
}

body[data-shell="xp"] .nav-button,
body[data-shell="xp"] .go-button {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 1px 0 rgba(102, 130, 170, 0.18);
}

body[data-shell="xp"] .address-bar {
  box-shadow:
    inset 0 1px 2px rgba(10, 27, 52, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.22);
}

body[data-shell="xp"] .nav-button,
body[data-shell="xp"] .go-button,
body[data-shell="xp"] .address-bar {
  border-radius: 6px;
}

body[data-shell="xp"] .nav-button,
body[data-shell="xp"] .go-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(219, 232, 246, 0.96) 100%),
    radial-gradient(circle at 28% 28%, rgba(255, 255, 255, 0.65) 0 12%, transparent 13%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 1px 0 rgba(102, 130, 170, 0.18);
}

body[data-shell="xp"] .address-bar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 248, 255, 0.94) 100%);
}

body[data-shell="xp"] .browser-body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(229, 241, 253, 0.9) 100%),
    radial-gradient(circle at 72% 16%, rgba(113, 184, 255, 0.18) 0 14%, transparent 15%);
}

body[data-shell="xp"] .start-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 132px;
  height: 41px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  box-shadow: none;
  gap: 0;
}

body[data-shell="xp"] .start-art,
body[data-shell="xp"] .start-orb,
body[data-shell="xp"] .start-label {
  display: none;
}

body[data-shell="xp"] .start-art-xp {
  display: block;
  width: 132px;
  height: 41px;
  flex: 0 0 auto;
  margin-right: 0;
  object-fit: fill;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.2));
}

body[data-shell="xp"] .start-xp-text {
  display: block;
  color: #f8fff7;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 1.06rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.34),
    0 0 2px rgba(0, 0, 0, 0.16);
  transform: translateY(-1px);
}

body[data-shell="xp"] .taskbar {
  border-radius: 0 0 10px 10px;
  min-height: 44px;
  padding-inline: 8px 10px;
  background:
    linear-gradient(180deg, rgba(63, 134, 224, 0.98) 0%, rgba(35, 91, 178, 0.98) 100%),
    radial-gradient(circle at 12% 36%, rgba(255, 255, 255, 0.18) 0 10%, transparent 11%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 -1px 0 rgba(26, 60, 117, 0.34);
}

body[data-shell="xp"] .taskbar-app {
    width: 48px;
    height: 36px;
    border-radius: 4px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    0 1px 0 rgba(0, 0, 0, 0.08);
}

body[data-shell="xp"] .taskbar-app.active {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.14) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

body[data-shell="xp"] .taskbar-app-icon-xp {
    display: block;
    width: 32px;
    height: 32px;
  }

body[data-shell="xp"] .taskbar-tray {
  gap: 5px;
}

body[data-shell="xp"] .taskbar-badge {
  min-width: 38px;
  height: 21px;
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.1) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 1px 0 rgba(0, 0, 0, 0.08);
}

body[data-shell="xp"] .taskbar-clock {
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

body[data-shell="aero"] .browser-window {
  border-radius: 18px;
  background: rgba(238, 244, 251, 0.38);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.34) inset,
    0 10px 24px rgba(255, 255, 255, 0.08) inset,
    var(--shell-shadow);
}

body[data-shell="aero"] .browser-window::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 12%, rgba(255, 255, 255, 0.18) 100%),
    radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 0.28) 0 12%, transparent 13%);
  opacity: 0.95;
}

body[data-shell="aero"] .browser-titlebar {
  min-height: 34px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(224, 245, 255, 0.9) 0%, rgba(137, 194, 255, 0.82) 38%, rgba(71, 127, 202, 0.72) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

body[data-shell="aero"] .browser-titlebar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 255, 255, 0.42) 0 10%, transparent 11%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, transparent 34%, rgba(255, 255, 255, 0.08) 100%);
}

body[data-shell="aero"] .browser-titlebar .window-badge {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.22);
}

body[data-shell="aero"] .browser-toolbar,
body[data-shell="aero"] .browser-menu,
body[data-shell="aero"] .browser-statusbar {
  background-color: rgba(245, 249, 255, 0.56);
  backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, 0.2);
}

body[data-shell="aero"] .browser-menu {
  background:
    linear-gradient(180deg, rgba(233, 240, 248, 0.8) 0%, rgba(217, 227, 239, 0.7) 100%);
}

body[data-shell="aero"] .browser-toolbar {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(110, 129, 158, 0.12);
}

body[data-shell="aero"] .nav-button,
body[data-shell="aero"] .go-button,
body[data-shell="aero"] .address-bar {
  border-radius: 8px;
}

body[data-shell="aero"] .nav-button,
body[data-shell="aero"] .go-button {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 1px 0 rgba(255, 255, 255, 0.36);
}

body[data-shell="aero"] .address-bar {
  box-shadow:
    inset 0 1px 2px rgba(7, 15, 28, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.15);
}

body[data-shell="aero"] .browser-body {
  background:
    linear-gradient(180deg, rgba(249, 252, 255, 0.66) 0%, rgba(233, 240, 247, 0.5) 100%),
    radial-gradient(circle at 70% 18%, rgba(171, 220, 255, 0.18) 0 12%, transparent 13%);
}

body[data-shell="aero"] .nav-button,
body[data-shell="aero"] .go-button,
body[data-shell="aero"] .address-bar {
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(226, 236, 247, 0.88) 100%);
}

body[data-shell="aero"] .nav-button,
body[data-shell="aero"] .go-button {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 1px 0 rgba(255, 255, 255, 0.36);
}

body[data-shell="aero"] .address-bar {
  box-shadow:
    inset 0 1px 2px rgba(7, 15, 28, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.15);
}

body[data-shell="aero"] .taskbar {
  position: relative;
  min-height: 48px;
  padding: 0 10px;
  gap: 10px;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(25, 37, 58, 0.92) 0%, rgba(11, 18, 30, 0.97) 100%);
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.06) inset,
    0 -6px 20px rgba(0, 0, 0, 0.14);
}

body[data-shell="aero"] .taskbar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.26) 50%, transparent 100%);
}

body[data-shell="aero"] .start-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

body[data-shell="aero"] .start-orb {
  display: none;
}

body[data-shell="aero"] .start-button span:last-child {
  display: none;
}

body[data-shell="aero"] .start-art {
  display: none;
}

body[data-shell="aero"] .start-art-aero {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}

body[data-shell="aero"] .taskbar-app {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 4px;
}

body[data-shell="aero"] .taskbar-app.active {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.08) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 18px rgba(120, 179, 255, 0.12);
}

body[data-shell="aero"] .taskbar-clock {
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.38);
}

body[data-shell="aero"] .browser-titlebar {
  background:
    linear-gradient(180deg, rgba(178, 220, 255, 0.96) 0%, rgba(95, 150, 224, 0.96) 100%);
}

body[data-shell="aero"] .browser-toolbar,
body[data-shell="aero"] .browser-menu,
body[data-shell="aero"] .browser-statusbar {
  background-color: rgba(245, 249, 255, 0.82);
}

body[data-shell="aero"] .browser-titlebar {
  background:
    linear-gradient(180deg, rgba(180, 222, 255, 0.96) 0%, rgba(104, 161, 231, 0.96) 34%, rgba(48, 94, 174, 0.96) 100%);
}

body[data-shell="aero"] .browser-menu {
  background: linear-gradient(180deg, rgba(236, 243, 250, 0.86) 0%, rgba(223, 233, 244, 0.82) 100%);
}

body[data-shell="aero"] .browser-toolbar {
  background:
    linear-gradient(180deg, rgba(250, 253, 255, 0.9) 0%, rgba(233, 241, 249, 0.76) 100%);
}

body[data-shell="aero"] .browser-statusbar {
  background: linear-gradient(180deg, rgba(241, 246, 251, 0.82) 0%, rgba(223, 232, 242, 0.76) 100%);
}

body[data-shell="aero"] .taskbar-apps {
  gap: 6px;
}

body[data-shell="aero"] .taskbar-app {
  width: 38px;
  height: 34px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 1px 0 rgba(0, 0, 0, 0.16);
}

body[data-shell="aero"] .taskbar-app.active {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.1) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -2px 0 rgba(94, 178, 255, 0.75),
    0 0 18px rgba(120, 179, 255, 0.14);
}

body[data-shell="aero"] .taskbar-app-icon-aero {
  display: block;
  width: 22px;
  height: 22px;
}

body[data-shell="aero"] .taskbar-tray {
  gap: 6px;
}

body[data-shell="aero"] .taskbar-badge {
  min-width: 42px;
  height: 22px;
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
  color: #f2f7ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 18px rgba(120, 179, 255, 0.08);
}

body[data-shell="aero"] .taskbar-clock {
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.38);
}

body[data-shell="win10"] .browser-window {
  border-radius: 10px;
  background: #f6f8fb;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.38) inset,
    var(--shell-shadow);
}

body[data-shell="win10"] .browser-titlebar {
  min-height: 30px;
  position: relative;
  background: linear-gradient(180deg, #262b32 0%, #14171b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-shell="win10"] .browser-titlebar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #00a4ef;
}

body[data-shell="win10"] .browser-titlebar .window-badge {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

body[data-shell="win10"] .browser-toolbar,
body[data-shell="win10"] .browser-menu,
body[data-shell="win10"] .browser-statusbar {
  background: #f6f8fb;
  border-color: rgba(156, 168, 185, 0.22);
}

body[data-shell="win10"] .browser-menu {
  background: #eef2f6;
}

body[data-shell="win10"] .browser-toolbar {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

body[data-shell="win10"] .browser-statusbar {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

body[data-shell="win10"] .browser-body {
  background: linear-gradient(180deg, #f9fbfd 0%, #edf2f7 100%);
}

body[data-shell="win10"] .nav-button,
body[data-shell="win10"] .go-button,
body[data-shell="win10"] .address-bar {
  border-radius: 4px;
}

body[data-shell="win10"] .nav-button,
body[data-shell="win10"] .go-button {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 1px 0 rgba(60, 74, 92, 0.08);
}

body[data-shell="win10"] .address-bar {
  box-shadow:
    inset 0 1px 2px rgba(20, 29, 40, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

body[data-shell="win10"] .nav-button,
body[data-shell="win10"] .go-button,
body[data-shell="win10"] .address-bar {
  border-radius: 4px;
  background: linear-gradient(180deg, #ffffff 0%, #e9edf2 100%);
}

body[data-shell="win10"] .nav-button,
body[data-shell="win10"] .go-button {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 1px 0 rgba(60, 74, 92, 0.08);
}

body[data-shell="win10"] .address-bar {
  box-shadow:
    inset 0 1px 2px rgba(20, 29, 40, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

body[data-shell="win10"] .taskbar {
  min-height: 48px;
  padding: 0 10px;
  gap: 10px;
  border-radius: 0;
  background: linear-gradient(180deg, #1f2329 0%, #101317 100%);
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.04) inset,
    0 -6px 20px rgba(0, 0, 0, 0.18);
}

body[data-shell="win10"] .taskbar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 50%, transparent 100%);
}

body[data-shell="win10"] .start-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

body[data-shell="win10"] .start-art,
body[data-shell="win10"] .start-orb,
body[data-shell="win10"] .start-label {
  display: none;
}

body[data-shell="win10"] .start-art-win10 {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.28));
}

body[data-shell="win10"] .taskbar-app {
  width: 38px;
  height: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-color: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -2px 0 transparent;
}

body[data-shell="win10"] .taskbar-app.active {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -3px 0 #00a4ef;
}

body[data-shell="win10"] .taskbar-app-icon-win10 {
  display: block;
  width: 22px;
  height: 22px;
}

body[data-shell="win10"] .taskbar-tray {
  gap: 5px;
}

body[data-shell="win10"] .taskbar-badge {
  min-width: 40px;
  height: 21px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: #edf4ff;
}

body[data-shell="win10"] .taskbar-clock {
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

#eraBackdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--era-backdrop-opacity);
  background: var(--era-backdrop-bg);
  background-size: cover;
  filter: var(--era-backdrop-filter);
  transition: opacity 360ms ease, filter 360ms ease, background 360ms ease;
}

#eraBackdrop::before,
#eraBackdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#eraBackdrop::before {
  background-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.06) 100%);
  mix-blend-mode: soft-light;
  opacity: 0.65;
}

#eraBackdrop::after {
  background-image: var(--era-texture);
  background-size: auto;
  mix-blend-mode: soft-light;
  opacity: 0.7;
}

body[data-era="web1"] #eraBackdrop::after {
  opacity: 0.98;
  background-size: 28px 28px, 28px 28px, auto;
  background-position: 0 0, 14px 14px, 0 0;
}

body[data-era="web1"] #eraBackdrop::before {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 24%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 100%);
  background-size: 100% 100%, 2px 100%;
  opacity: 0.88;
}

body[data-era="web1"] .app-shell::before {
  content: "KYM";
  position: fixed;
  inset: 12px 12px 64px;
  z-index: 0;
  pointer-events: none;
  display: flex;
  justify-content: center;
  padding-top: 12px;
  border: 24px solid #a38b6b;
  border-radius: 40px;
  color: #5e7d63;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  box-shadow:
    inset 0 0 0 8px rgba(255, 249, 238, 0.72),
    inset 0 0 0 24px rgba(184, 167, 141, 0.42),
    inset 0 -16px 0 rgba(67, 55, 40, 0.08),
    0 28px 72px rgba(64, 49, 35, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 13%, rgba(0, 0, 0, 0.1) 100%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 36%, rgba(0, 0, 0, 0.08) 100%),
    linear-gradient(180deg, #eadcc8 0%, #d0b99c 52%, #b5946e 100%);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45), 0 -1px 0 rgba(71, 59, 43, 0.2);
}

body[data-era="web1"] .app-shell::after {
  content: "";
  position: fixed;
  left: 20%;
  right: 20%;
  bottom: -38px;
  height: 92px;
  z-index: 0;
  pointer-events: none;
  border-radius: 0 0 44px 44px;
  border: 1px solid rgba(81, 63, 43, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 243, 219, 0.82) 0%, rgba(179, 145, 104, 0.95) 100%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.14) 0 3px, rgba(255, 255, 255, 0.04) 3px 7px);
  box-shadow:
    inset 0 10px 0 rgba(255, 255, 255, 0.16),
    inset 0 -12px 18px rgba(61, 43, 25, 0.18),
    0 18px 34px rgba(48, 35, 24, 0.24);
  opacity: 0.92;
}

body[data-era="web1"] .app-shell {
  padding: 34px 28px 30px;
  border-radius: 42px;
  background:
    linear-gradient(180deg, rgba(74, 62, 47, 0.18) 0%, rgba(255, 255, 255, 0.12) 7%, rgba(233, 226, 211, 0.18) 100%),
    linear-gradient(180deg, #dcc3a2 0%, #b79a77 48%, #997d5e 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -22px 0 rgba(71, 53, 36, 0.1),
    0 28px 70px rgba(67, 51, 37, 0.22);
}

body[data-era="web1"] .app-shell > * {
  position: relative;
  z-index: 1;
}

body[data-era="web1"] .app-shell::before,
body[data-era="web1"] .app-shell::after {
  transform: translateZ(0);
}

body[data-era="web1"] .topbar,
body[data-era="web1"] .play-surface,
body[data-era="web1"] .side-panel {
  border-color: rgba(99, 84, 66, 0.28);
  border-radius: 4px;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.66),
    inset -1px -1px 0 rgba(114, 95, 72, 0.24),
    0 16px 36px rgba(67, 52, 37, 0.18);
}

body[data-era="web1"] .topbar {
  background:
    linear-gradient(180deg, rgba(255, 250, 238, 0.98) 0%, rgba(232, 222, 203, 0.96) 100%);
  position: relative;
}

body[data-era="web1"] .topbar::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #b8ffb8 0%, #59b45f 42%, #2d6f31 100%);
  box-shadow: 0 0 0 1px rgba(47, 94, 51, 0.32), 0 0 14px rgba(89, 180, 95, 0.55);
}

body[data-era="web1"] .stat,
body[data-era="web1"] .mode-tabs,
body[data-era="web1"] .choice-button,
body[data-era="web1"] .answer-panel,
body[data-era="web1"] .secondary-button,
body[data-era="web1"] .timeline li {
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.68),
    inset -1px -1px 0 rgba(107, 90, 67, 0.12);
}

body[data-era="web1"] .choice-button:hover:not(:disabled),
body[data-era="web1"] .choice-button:focus-visible {
  background: #f5efe0;
}

body[data-era="web1"] .meme-frame {
  border-radius: 2px;
  background:
    linear-gradient(180deg, #212121 0%, #343434 8%, #151515 100%);
  box-shadow:
    inset 0 0 0 4px #202020,
    inset 0 0 0 7px #7d7467,
    0 0 0 1px rgba(255, 255, 255, 0.28),
    0 14px 28px rgba(45, 35, 24, 0.34);
}

body[data-era="web1"] .meme-frame::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 6%, rgba(0, 0, 0, 0.18) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.09) 0 2px, rgba(0, 0, 0, 0.03) 2px 4px);
  opacity: 0.48;
}

body[data-era="web1"] .meme-frame img {
  image-rendering: auto;
}

body[data-era="web1"] .eyebrow {
  color: var(--green);
}

body[data-era="web1"] .mode-tab.active,
body[data-era="web1"] .primary-button,
body[data-era="web1"] .source-link {
  background: linear-gradient(180deg, #d7cfbf 0%, #b7ab98 100%);
  color: #27211b;
}

body[data-era="web1"] .primary-button:disabled {
  background: #cec4b2;
  color: #6f6457;
}

body[data-era="web1"] .source-link {
  color: #2a231d;
}

body[data-era="web1"] .timeline li {
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.98) 0%, rgba(240, 233, 222, 0.98) 100%);
}

body[data-era="web1"] .timeline .year {
  color: #2c241d;
  background: linear-gradient(180deg, #d5cab4 0%, #b4a18c 100%);
}

body[data-era="web1"] .stat strong,
body[data-era="web1"] .mode-tab,
body[data-era="web1"] .choice-button,
body[data-era="web1"] .answer-panel,
body[data-era="web1"] .secondary-button,
body[data-era="web1"] .source-link {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

body[data-era="web1"] .stat span,
body[data-era="web1"] .round-meta,
body[data-era="web1"] .eyebrow,
body[data-era="web1"] .timeline .result,
body[data-era="web1"] footer,
body[data-era="web1"] .panel-header .eyebrow,
body[data-era="web1"] .panel-header h2,
body[data-era="web1"] .question-row h2 {
  color: var(--green);
}

body[data-era="web1"] .crt-stage {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.07) 0 32%, rgba(0, 0, 0, 0.16) 68%, rgba(0, 0, 0, 0.3) 100%);
}

body[data-era="web1"] .crt-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("./assets/crt-monitor.webp") center center / contain no-repeat;
  filter: saturate(1.03) contrast(1.02);
}

body[data-era="web1"] .app-shell {
  position: absolute;
  left: 13.2%;
  top: 10.2%;
  width: 73.4%;
  height: 68.8%;
  margin: 0;
  padding: 14px 14px 12px;
  overflow: auto;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

body[data-era="web1"] .crt-stage .app-shell {
  pointer-events: auto;
}

body[data-era="web1"] .app-shell::before,
body[data-era="web1"] .app-shell::after {
  content: none;
  display: none;
}

body[data-era="web1"] .app-shell .topbar,
body[data-era="web1"] .app-shell .play-surface,
body[data-era="web1"] .app-shell .side-panel {
  border-color: rgba(99, 84, 66, 0.28);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.66),
    inset -1px -1px 0 rgba(114, 95, 72, 0.24),
    0 16px 36px rgba(67, 52, 37, 0.18);
}

body[data-era="web1"] .app-shell .topbar {
  margin-bottom: 12px;
}

body[data-era="web1"] .app-shell .game-layout {
  gap: 12px;
}

body[data-era="web1"] .app-shell .play-surface {
  padding: 12px;
}

body[data-era="web1"] .app-shell .side-panel {
  padding: 12px;
}

body[data-era="web1"] .app-shell .meme-frame {
  min-height: 220px;
}

body[data-era="myspace"] .crt-stage,
body[data-era="tumblr"] .crt-stage {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.18) 0 34%, rgba(0, 0, 0, 0.15) 70%, rgba(0, 0, 0, 0.28) 100%);
}

body[data-era="myspace"] .crt-stage::before,
body[data-era="tumblr"] .crt-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("./assets/frame-2003-2010.png") center center / contain no-repeat;
  filter: saturate(1.02) contrast(1.02);
}

body[data-era="myspace"] .app-shell,
body[data-era="tumblr"] .app-shell {
  position: absolute;
  left: 8.3%;
  top: 10.9%;
  width: 84.8%;
  height: 80.2%;
  margin: 0;
  padding: 14px 14px 12px;
  overflow: auto;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

body[data-era="myspace"] .crt-stage .app-shell,
body[data-era="tumblr"] .crt-stage .app-shell {
  pointer-events: auto;
}

body[data-era="myspace"] .app-shell::before,
body[data-era="myspace"] .app-shell::after,
body[data-era="tumblr"] .app-shell::before,
body[data-era="tumblr"] .app-shell::after {
  content: none;
  display: none;
}

body[data-era="myspace"] .app-shell .topbar,
body[data-era="myspace"] .app-shell .play-surface,
body[data-era="myspace"] .app-shell .side-panel,
body[data-era="tumblr"] .app-shell .topbar,
body[data-era="tumblr"] .app-shell .play-surface,
body[data-era="tumblr"] .app-shell .side-panel {
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.68),
    inset -1px -1px 0 rgba(114, 95, 72, 0.16),
    0 16px 36px rgba(67, 52, 37, 0.14);
}

body[data-era="myspace"] .app-shell .topbar,
body[data-era="tumblr"] .app-shell .topbar {
  margin-bottom: 12px;
}

body[data-era="myspace"] .app-shell .game-layout,
body[data-era="tumblr"] .app-shell .game-layout {
  gap: 12px;
}

body[data-era="myspace"] .app-shell .play-surface,
body[data-era="tumblr"] .app-shell .play-surface {
  padding: 12px;
}

body[data-era="myspace"] .app-shell .side-panel,
body[data-era="tumblr"] .app-shell .side-panel {
  padding: 12px;
}

body[data-era="myspace"] .app-shell .meme-frame,
body[data-era="tumblr"] .app-shell .meme-frame {
  min-height: 220px;
}

body[data-era="myspace"] #eraBackdrop::after {
  opacity: 0.5;
}

body[data-era="tumblr"] #eraBackdrop::after {
  opacity: 0.42;
}

body[data-era="peak"] #eraBackdrop::after {
  opacity: 0.34;
}

body[data-era="tiktok"] #eraBackdrop::after {
  opacity: 0.25;
}

body[data-era="ai"] #eraBackdrop::after {
  opacity: 0.55;
}

body.era-shift #eraBackdrop {
  animation: eraPulse 520ms ease;
}

body.era-shift .app-shell {
  animation: eraNudge 520ms ease;
}

body.era-shift .meme-frame::after {
  animation: eraScan 520ms linear;
}

.app-shell {
  position: relative;
  z-index: 1;
}

.crt-stage {
  display: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.app-shell {
  width: min(1180px, calc(100vw - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 0 18px;
}

.topbar,
.game-layout,
footer {
  width: 100%;
}

.topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px var(--era-border-style) var(--line);
  border-radius: 8px;
  background: var(--surface);
  background-image: var(--era-panel-overlay);
  box-shadow: var(--shadow);
  backdrop-filter: var(--era-backdrop-filter);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 3vw, 3.35rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.35rem, 2.2vw, 2.25rem);
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.eyebrow {
  margin-bottom: 7px;
  color: var(--red);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(78px, 1fr));
  gap: 8px;
}

.stat {
  min-width: 78px;
  padding: 10px 12px;
  border: 1px var(--era-border-style) var(--line);
  border-radius: 8px;
  background: var(--surface);
  background-image: var(--era-panel-overlay);
  box-shadow: 0 8px 24px #39231510;
  transition: background-color 320ms ease, border-color 320ms ease, box-shadow 320ms ease, color 320ms ease;
}

.title-shell {
  display: flex;
  align-items: center;
  min-width: 0;
  align-self: stretch;
}

.title-shell-caption {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  padding: 8px 14px 8px 10px;
  border: 1px solid rgba(99, 84, 66, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(247, 240, 229, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(114, 95, 72, 0.12),
    0 8px 18px rgba(64, 48, 29, 0.06);
}

.title-shell-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(99, 84, 66, 0.18);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.title-shell-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.title-shell h1 {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  font-size: clamp(1.1rem, 2vw, 1.65rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  margin-top: 2px;
  font-size: 1.35rem;
  line-height: 1;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 18px;
  align-items: stretch;
}

.play-surface,
.side-panel {
  border: 1px var(--era-border-style) var(--line);
  border-radius: 8px;
  background: var(--surface);
  background-image: var(--era-panel-overlay);
  box-shadow: var(--shadow);
  backdrop-filter: var(--era-backdrop-filter);
  transition: background-color 320ms ease, border-color 320ms ease, box-shadow 320ms ease, color 320ms ease, backdrop-filter 320ms ease;
}

.play-surface {
  display: flex;
  min-height: 682px;
  flex-direction: column;
  padding: clamp(16px, 2vw, 24px);
}

.round-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.meme-frame {
  position: relative;
  display: grid;
  min-height: 280px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  place-items: center;
  border: 1px var(--era-border-style) #1f17111a;
  border-radius: 8px;
  background:
    linear-gradient(135deg, #202124 0%, #3b2b20 52%, #165d61 100%);
}

.meme-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.12) 100%);
  opacity: 0.28;
}

.meme-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111;
}

.image-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff8ef;
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 900;
  text-align: center;
}

.question-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0 16px;
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: fit-content;
  min-width: 0;
  max-width: 360px;
  padding: 3px;
  border: 1px var(--era-border-style) var(--line);
  border-radius: 8px;
  background: var(--surface);
  background-image: var(--era-panel-overlay);
  box-shadow: 0 8px 24px #24160f12;
  transition: background-color 320ms ease, border-color 320ms ease, box-shadow 320ms ease;
}

.mode-tab {
  min-height: 38px;
  min-width: 0;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.mode-tab.active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 6px 16px #24160f18;
}

.choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.choice-button {
  min-height: 74px;
  border: 1px var(--era-border-style) #231c1630;
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  background-image: var(--era-panel-overlay);
  cursor: pointer;
  font-size: clamp(1.2rem, 2.8vw, 2rem);
  font-weight: 900;
  letter-spacing: 0;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.choice-button:hover:not(:disabled),
.choice-button:focus-visible {
  border-color: var(--era-accent);
  background: #effaf7;
  transform: translateY(-1px);
  outline: none;
}

.choice-button.selected {
  border-color: var(--era-accent);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 236, 222, 0.98) 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
  color: var(--ink);
}

.choice-button:disabled {
  cursor: default;
}

.choice-button.correct {
  border-color: #2e744d;
  background: #dff1e6;
  color: #18492e;
}

.choice-button.wrong {
  border-color: #b73c2f;
  background: #ffe5df;
  color: #8b231a;
}

.guess-panel {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.guess-panel.is-locked {
  opacity: 0.95;
}

.slider-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 800;
}

#dateSlider {
  width: 100%;
}

.slider-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

#selectedDateLabel {
  font-size: 1.1rem;
}

.answer-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 84px;
  margin-top: 16px;
  padding: 14px;
  border: 1px var(--era-border-style) var(--line);
  border-left: 6px solid var(--yellow);
  border-radius: 8px;
  background: var(--surface);
  background-image: var(--era-panel-overlay);
  backdrop-filter: var(--era-backdrop-filter);
  transition: background-color 320ms ease, border-color 320ms ease, box-shadow 320ms ease, color 320ms ease, backdrop-filter 320ms ease;
}

.answer-panel.is-finished {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  min-height: 220px;
  padding: 18px 18px 16px;
  border-left-width: 8px;
  border-color: rgba(171, 120, 28, 0.34);
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 230, 149, 0.24) 0 14%, transparent 15%),
    radial-gradient(circle at 84% 12%, rgba(255, 196, 82, 0.16) 0 12%, transparent 13%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 247, 226, 0.96) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 0 0 1px rgba(232, 180, 63, 0.22),
    0 24px 64px rgba(135, 88, 15, 0.14);
  position: relative;
  overflow: hidden;
}

.answer-panel.is-finished::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 223, 124, 0.42) 0 12%, transparent 13%),
    radial-gradient(circle at 84% 12%, rgba(255, 197, 72, 0.2) 0 10%, transparent 11%),
    linear-gradient(135deg, rgba(255, 226, 128, 0.18) 0%, transparent 28%);
  mix-blend-mode: screen;
}

.answer-copy {
  display: grid;
  gap: 2px;
  position: relative;
  z-index: 1;
}

.answer-panel.is-finished .answer-copy {
  gap: 12px;
}

.finish-hero {
  display: none;
  gap: 10px;
  padding: 0 0 6px;
}

.answer-panel.is-finished .finish-hero {
  display: grid;
}

.finish-eyebrow {
  margin: 0;
  color: var(--era-accent);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.finish-score-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(171, 120, 28, 0.16);
  border-radius: 999px;
  background: rgba(255, 247, 223, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.finish-score-row svg {
  width: 24px;
  height: 24px;
  color: var(--yellow);
  flex: 0 0 auto;
}

.verdict {
  font-size: 1rem;
  font-weight: 900;
  margin: 0;
}

.answer-panel.is-finished .verdict {
  font-size: 1.2rem;
  color: var(--ink);
}

.answer-text {
  margin-top: 2px;
  color: var(--muted);
  line-height: 1.45;
}

.finish-title-card {
  display: inline-grid;
  gap: 6px;
  align-self: start;
  width: 100%;
  max-width: none;
  padding: 14px 16px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, rgba(35, 111, 119, 0.98) 0%, rgba(17, 74, 83, 0.98) 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 14px 28px rgba(17, 76, 84, 0.18);
  position: relative;
  overflow: hidden;
}

.finish-title-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--yellow) 0%, #fff1be 52%, var(--yellow) 100%);
}

.finish-title-label {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 248, 218, 0.88);
}

.finish-title-card strong {
  position: relative;
  z-index: 1;
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
  line-height: 1;
  font-weight: 950;
}

.finish-title-note {
  position: relative;
  z-index: 1;
  font-size: 0.8rem;
  color: rgba(255, 248, 218, 0.78);
}

.finish-stats {
  display: grid;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.answer-panel.is-finished .finish-stats {
  display: none;
}

.answer-panel.is-finished .source-link,
.answer-panel.is-finished .daily-share {
  position: relative;
  z-index: 1;
}

.answer-panel.is-finished .source-link {
  align-self: start;
  justify-self: start;
  width: fit-content;
  margin-top: 2px;
}

.descendants-list {
  margin: 4px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.daily-share {
  display: grid;
  gap: 10px;
}

.daily-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.invite-link {
  text-decoration: none;
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--era-accent) 0%, var(--ink) 100%);
  font-weight: 800;
  text-decoration: none;
  border: 1px var(--era-border-style) transparent;
  transition: background-color 320ms ease, color 320ms ease, border-color 320ms ease, box-shadow 320ms ease;
}

.source-link svg,
.controls svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.controls {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  border-style: var(--era-border-style);
  transition: background-color 320ms ease, border-color 320ms ease, color 320ms ease, box-shadow 320ms ease, transform 160ms ease;
}

.primary-button {
  border: 1px solid var(--era-accent);
  color: #fff;
  background: var(--red);
}

.primary-button:disabled {
  border-color: #cbbeb0;
  color: #8f8174;
  background: #e7ddcf;
  cursor: default;
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  background-image: var(--era-panel-overlay);
}

.side-panel {
  display: flex;
  min-height: 682px;
  flex-direction: column;
  padding: 18px;
}

.panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

#accuracyPill {
  min-width: 58px;
  padding: 8px 10px;
  border-radius: 999px;
  color: #103f42;
  background: #d9f0ea;
  text-align: center;
  font-weight: 900;
}

.timeline {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  margin: 14px 0 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
  background-image: var(--era-panel-overlay);
}

.timeline .year {
  display: grid;
  min-height: 42px;
  place-items: center;
  border-radius: 6px;
  background: var(--era-accent-2);
  font-weight: 900;
}

.timeline .name {
  overflow-wrap: anywhere;
  font-weight: 900;
}

.timeline .result {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.84rem;
}

.timeline li.hit .year {
  color: #144d2e;
  background: #dff1e6;
}

.timeline li.miss .year {
  color: #842016;
  background: #ffe5df;
}

footer {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

@media (max-width: 880px) {
  .app-shell {
    width: min(100vw - 20px, 680px);
    padding-top: 12px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .stats-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .game-layout {
    grid-template-columns: 1fr;
  }

  .play-surface,
  .side-panel {
    min-height: auto;
  }

  .meme-frame {
    min-height: 210px;
  }

}

@media (max-width: 560px) {
  .question-row,
  .answer-panel,
  .controls {
    align-items: stretch;
    flex-direction: column;
  }

  .mode-tabs {
    width: 100%;
  }

  .primary-button {
    margin-left: 0;
  }
}

@keyframes eraPulse {
  0% {
    opacity: 0;
    filter: saturate(1) contrast(1);
  }
  30% {
    opacity: 1;
    filter: saturate(1.15) contrast(1.05);
  }
  65% {
    opacity: 0.72;
  }
  100% {
    opacity: 0;
    filter: saturate(1) contrast(1);
  }
}

@keyframes crtPulse {
  0%,
  100% {
    opacity: 0.48;
  }
  50% {
    opacity: 0.68;
  }
}

@keyframes modalPop {
  from {
    transform: translateY(8px) scale(0.98);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes eraNudge {
  0%,
  100% {
    transform: translateY(0);
  }
  45% {
    transform: translateY(-1px);
  }
}

@keyframes eraScan {
  0% {
    opacity: 0.12;
    transform: translateY(0);
  }
  50% {
    opacity: 0.42;
  }
  100% {
    opacity: 0.12;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  #eraBackdrop,
  .app-shell,
  .play-surface,
  .side-panel,
  .topbar,
  .stat,
  .mode-tabs,
  .choice-button,
  .answer-panel,
  .source-link,
  .primary-button,
  .secondary-button {
    transition: none !important;
    animation: none !important;
  }
}
