/* ==========================================================================
   Superluminal · DFBA explainer — slide content styles
   (Windows 98 shell lives in styles.css; this file skins the explainer
   content that sits inside the explorer content pane.)
   ========================================================================== */

:root {
  --slx-navy: #000080;
  --slx-buy: #008000;
  --slx-sell: #b00020;
  --slx-teal: #008080;
  --slx-yellow: #ffe254;
  --slx-cream: #efefdf;
  --slx-paper: #fffbd6;
}

/* ---------- shell tweaks ---------- */

.title-logo {
  display: inline-block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border: 1px solid #fff;
  image-rendering: auto;
}

.brand-mark {
  display: block;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border: 2px solid;
  border-color: #fff #4b4b4b #4b4b4b #fff;
  box-shadow: inset 0 0 0 1px #8a8a8a;
}

.stat-card strong small {
  margin-left: 1px;
  color: var(--slx-navy);
  font-size: 11px;
}

.tree-node-icon[data-slide="intro"] { color: #000; background: var(--slx-yellow); }
.tree-node-icon[data-slide="what"] { background: #006400; }
.tree-node-icon[data-slide="dfba"] { background: var(--slx-navy); }
.tree-node-icon[data-slide="problem"] { background: #a52929; }
.tree-node-icon[data-slide="sim"] { background: #4b318d; }
.tree-node-icon[data-slide="recap"] { background: #4a5a69; }
.tree-node-icon[data-slide="campaign"] { background: #8a6d00; }
.tree-node-icon[data-slide="finale"] { color: #000; background: #e7bf2c; }

.start-icon--prize {
  border: 1px solid #000;
  color: #000;
  background: var(--slx-yellow);
  font-family: "Courier New", monospace;
  font-size: 18px;
  font-weight: 700;
}

.slide-progress {
  display: flex;
  min-width: 200px;
  height: 29px;
  align-items: center;
  padding: 4px 9px;
  overflow: hidden;
  color: var(--slx-navy);
  background: #fff;
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.toolbar-spacer { flex: 1 1 auto; }

.status-dot--buy { background: #1ab21a; }
.status-dot--sell { background: #d43a3a; }
.status-dot--clear { background: var(--slx-navy); }
.status-dot--fast { background: var(--slx-yellow); }

.start-icon--logo img {
  width: 28px;
  height: 28px;
  border: 1px solid #000;
}

.start-options a {
  display: grid;
  width: 100%;
  grid-template-columns: 36px 1fr;
  gap: 9px;
  align-items: center;
  padding: 8px;
  color: #000;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.start-options a:hover,
.start-options a:focus-visible {
  color: #fff;
  background: var(--navy);
  outline: none;
}

.start-options a strong,
.start-options a small { display: block; }
.start-options a small { margin-top: 2px; color: #666; font-size: 9px; }
.start-options a:hover small { color: #ddd; }

/* taskbar: second window button (idle) — shared by both windows */
.task-button--idle {
  display: flex;
  width: 210px;
  height: 29px;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  overflow: hidden;
  color: #000;
  background: var(--face);
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
}

.task-prize {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  font-size: 11px;
}

.campaign-link { color: #000; background: var(--slx-yellow); font-weight: 700; }
.campaign-link:hover { filter: brightness(1.04); }
.about-body a { color: var(--slx-navy); font-weight: 700; }

.about-mark {
  width: 96px;
  height: 96px;
  border: 2px solid;
  border-color: #fff #3f3f3f #3f3f3f #fff;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
}

.about-body p b { color: #000; }
.dialog-actions a.classic-button { color: #000; text-decoration: none; }

/* ---------- scroll pane ---------- */

.slide-scroll {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  scrollbar-color: #808080 #dfdfdf;
  scrollbar-width: auto;
  background:
    linear-gradient(90deg, rgba(0, 0, 128, 0.025) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(rgba(0, 0, 128, 0.025) 1px, transparent 1px) 0 0 / 20px 20px,
    #fff;
}

.slide-scroll::-webkit-scrollbar {
  width: 17px;
  height: 17px;
  background: var(--face-light);
}

.slide-scroll::-webkit-scrollbar-thumb {
  border: 2px solid;
  border-color: #fff #000 #000 #fff;
  background: var(--face);
  box-shadow: inset 1px 1px #dfdfdf, inset -1px -1px #808080;
}

.slides {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 22px 44px;
}

.slide { display: none; }
.slide.active { display: block; animation: slideIn 0.25s ease; }
.hero.slide.active,
.finaleSlide.active { display: flex; flex-direction: column; align-items: center; text-align: center; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: none; }
}

.slide > .wrap { width: 100%; }

/* ---------- typography ---------- */

.mono { font-family: "Courier New", monospace; font-variant-numeric: tabular-nums; }
.hl-l { color: var(--slx-navy); font-weight: 700; }
.hl-t { color: var(--slx-teal); font-weight: 700; }
.hl-r { color: var(--slx-sell); font-weight: 700; }
.mut { color: #777; }
.small { color: #666; font-size: 10px; font-weight: 400; }
.tiny { color: #666; font-size: 10px; }

.slide .tag,
.csection .tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 8px;
  border: 1px dotted var(--slx-navy);
  color: var(--slx-navy);
  background: var(--slx-cream);
  font-family: "Courier New", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.slide h2,
.csection h2 {
  margin: 0 0 8px;
  color: #11115d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.slide h3,
.csection h3 {
  margin: 0;
  color: #00005e;
  font-size: 13px;
}

.slide .lead,
.csection .lead {
  max-width: 760px;
  margin: 0 0 12px;
  color: #333;
  font-size: 13px;
  line-height: 1.55;
}

.slide .lead b,
.csection .lead b,
.note b,
.card .v b,
.step p b { color: #000; }

/* ---------- hero (slide 00) ---------- */

.hero.slide { padding: 26px 0 12px; }

.heromark {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 14px;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
}

.pill {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 10px;
  border: 1px dotted var(--slx-navy);
  color: var(--slx-navy);
  background: var(--slx-yellow);
  font-family: "Courier New", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.hero h1 {
  margin: 0 0 12px;
  color: #11115d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -1px;
}

.hero .sub {
  max-width: 620px;
  margin: 0 auto;
  color: #333;
  font-size: 13px;
  line-height: 1.55;
}

.hero .sub b { color: #000; }

.heroBar {
  width: min(520px, 100%);
  margin: 20px auto 0;
  padding: 7px 9px;
  background: #fff;
}

.heroBarDots {
  display: flex;
  height: 9px;
  gap: 3px;
  overflow: hidden;
}

.heroBarDots i {
  flex: 0 0 auto;
  width: 6px;
  height: 9px;
  background: #d0d0d0;
  transition: background 0.15s;
}

.heroBarDots i.on { background: var(--slx-navy); }

.cue {
  margin-top: 22px;
  color: #555;
  font-family: "Courier New", monospace;
  font-size: 10px;
  letter-spacing: 1px;
  animation: bob 1.9s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---------- panels, cards, notes, buttons ---------- */

.panel {
  position: relative;
  margin-top: 16px;
  padding: 16px;
  background: var(--face);
}

.corner {
  position: absolute;
  top: -7px;
  padding: 0 6px;
  color: var(--slx-navy);
  background: var(--face);
  font-family: "Courier New", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.corner.tl { left: 12px; }
.corner.tr { right: 12px; }

.note {
  margin-top: 14px;
  padding: 9px 11px;
  border: 1px dotted #777;
  color: #333;
  background: var(--slx-cream);
  font-size: 11px;
  line-height: 1.55;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.card {
  padding: 10px 12px;
  background: #fff;
}

.card .k {
  color: var(--slx-navy);
  font-family: "Courier New", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.card .v {
  margin-top: 5px;
  color: #333;
  font-size: 12px;
  line-height: 1.5;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.classic-button.big { width: 100%; min-height: 33px; font-weight: 700; }

.classic-button.pulse { animation: btnPulse 1.6s ease-in-out infinite; }
.classic-button.pulse:disabled { animation: none; opacity: 0.6; cursor: default; }

@keyframes btnPulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px #000,
      inset 1px 1px 0 var(--white),
      inset -1px -1px 0 var(--shadow);
  }
  50% {
    box-shadow:
      0 0 0 1px #000,
      0 0 0 4px var(--slx-yellow),
      inset 1px 1px 0 var(--white),
      inset -1px -1px 0 var(--shadow);
  }
}

.classic-button.on {
  padding-top: 1px;
  padding-left: 1px;
  border-color: var(--black) var(--white) var(--white) var(--black);
  color: var(--slx-navy);
  background: #efefef;
  box-shadow: inset 1px 1px 0 var(--shadow);
  font-weight: 700;
}

/* ---------- slide 01 · 40ms match book ---------- */

.matchWrap {
  margin-top: 12px;
  padding: 12px;
  background: var(--face);
}

.matchBook {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: stretch;
}

.mbcol { padding: 7px 8px; background: #fff; }

.mbh {
  margin-bottom: 6px;
  font-family: "Courier New", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.mbh span { color: #777; font-weight: 400; }
.mbcol.buy .mbh { color: var(--slx-buy); }
.mbcol.sell .mbh { color: var(--slx-sell); }

.mbrows { min-height: 112px; }

.mbrow {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2px;
  padding: 3px 7px;
  background: #efefef;
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s, transform 0.25s, background 0.25s;
}

.mbrow.in { opacity: 1; transform: none; }
.mbcol.buy .mbrow .p { color: var(--slx-buy); }
.mbcol.sell .mbrow .p { color: var(--slx-sell); }
.mbrow .s { color: #555; }
.mbrow.matched { background: var(--slx-yellow); outline: 1px solid var(--slx-navy); }
.mbrow.matched .p { color: var(--slx-navy); }
.mbrow.dim { opacity: 0.35; }
.mbrow.empty { background: transparent; outline: 1px dotted #bbb; opacity: 1; transform: none; }
.mbrow.empty .p { color: #aaa; }
.mbrow.empty .s { display: none; }

.mbwin {
  display: flex;
  min-width: 150px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px dashed #808080;
  background: #f8f8f8;
  text-align: center;
  transition: border-color 0.25s, background 0.25s;
}

.mbwin.sealed { border: 1px solid var(--slx-navy); background: var(--slx-paper); }

.mbwlabel { color: #555; font-size: 10px; line-height: 1.5; }
.mbwin.sealed .mbwlabel { color: var(--slx-navy); font-weight: 700; }

.mbclear { margin-top: 8px; color: #333; font-size: 11px; }
.mbBigPx { color: var(--slx-navy); font-size: 15px; font-weight: 700; line-height: 1.5; }
.mbBigCap { color: #555; font-size: 10px; }
.mbHint { color: #777; font-size: 10px; }

.matchReadout { margin-top: 10px; color: #333; font-size: 11.5px; text-align: center; }
.matchReadout b { color: var(--slx-navy); }
.matchDesc { margin-top: 4px; color: #666; font-size: 10.5px; text-align: center; }

/* ---------- slide 02 · clearing viz + steps ---------- */

.clearLegend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-bottom: 10px;
  font-size: 11px;
}

.clearLegend span { display: inline-flex; align-items: center; gap: 6px; }
.clearLegend i { display: inline-block; width: 9px; height: 9px; border: 1px solid rgba(0, 0, 0, 0.6); }

.stage { position: relative; overflow: hidden; background: #fff; }
canvas.fill { display: block; width: 100%; height: 100%; }

.aucLbl {
  position: absolute;
  bottom: 4px;
  color: var(--slx-navy);
  font-family: "Courier New", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  white-space: nowrap;
  transform: translateX(-50%);
}

.clearCallout {
  min-height: 20px;
  margin-top: 10px;
  color: #333;
  font-size: 12px;
  text-align: center;
  transition: 0.3s;
}

.clearCallout.done { color: #000; font-weight: 700; }
.clearCallout .px { color: var(--slx-navy); font-family: "Courier New", monospace; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.step {
  padding: 10px 12px;
  background: var(--face-light);
  opacity: 0.4;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}

.step.show { opacity: 1; transform: none; }

.step .num {
  display: grid;
  width: 24px;
  height: 24px;
  margin-bottom: 6px;
  place-items: center;
  border: 1px solid #000;
  color: #fff;
  background: var(--slx-navy);
  box-shadow: inset 1px 1px rgba(255, 255, 255, 0.4);
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
}

.step h4 { margin: 0 0 4px; color: #00005e; font-size: 12.5px; }
.step p { margin: 0; color: #333; font-size: 11px; line-height: 1.5; }

/* ---------- order book ---------- */

.ob { padding: 4px; background: #fff; }

.ob .obrow {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 3px 7px;
  overflow: hidden;
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
}

.ob .obrow .px { position: relative; z-index: 2; }
.ob .obrow .sz { position: relative; z-index: 2; color: #444; text-align: right; }
.ob .obrow .bar { position: absolute; top: 0; right: 0; bottom: 0; z-index: 1; opacity: 0.2; }
.ob .ask .px { color: var(--slx-sell); }
.ob .ask .bar { background: var(--slx-sell); }
.ob .bid .px { color: var(--slx-buy); }
.ob .bid .bar { background: var(--slx-buy); }
.ob .obrow.flash { animation: rowflash 0.55s; }
.ob .obrow.eaten { opacity: 0.3; text-decoration: line-through; }
.ob .obrow.frontrun { background: var(--slx-yellow); }

@keyframes rowflash {
  0% { background: var(--slx-navy); }
  100% { background: transparent; }
}

.ob .mid {
  display: flex;
  justify-content: space-between;
  margin: 3px 0;
  padding: 4px 7px;
  border: 1px dotted #999;
  color: #333;
  background: var(--slx-cream);
  font-family: "Courier New", monospace;
  font-size: 10px;
}

.ob .mid .sp { color: var(--slx-navy); font-weight: 700; }

/* ---------- slide 03 · speed race ---------- */

.raceGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.incoming { display: flex; flex-direction: column; gap: 6px; }

.chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  overflow: hidden;
  border: 1px solid;
  border-color: var(--white) var(--black) var(--black) var(--white);
  background: var(--face-light);
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 var(--shadow);
  font-size: 12px;
  font-weight: 700;
  transition: transform 0.3s;
}

.chip .prog { position: absolute; bottom: 0; left: 0; height: 3px; width: 0; background: #808080; }
.chip.fast .prog { background: var(--slx-navy); }
.chip .dot { flex: 0 0 auto; width: 9px; height: 9px; border: 1px solid #000; background: #bbb; }
.chip.fast .dot { background: var(--slx-yellow); }
.chip .who { color: #333; }
.chip.fast .who { color: var(--slx-navy); }
.chip .spd { margin-left: 8px; color: #666; font-family: "Courier New", monospace; font-size: 10px; font-weight: 400; }
.chip .got { margin-left: auto; color: #777; font-family: "Courier New", monospace; font-size: 11px; }
.chip.active { outline: 1px dotted #000; outline-offset: -3px; transform: translateX(3px); }
.chip.done .got { color: #000; }

.probmsg {
  min-height: 38px;
  margin-top: 12px;
  color: #333;
  font-size: 12px;
  line-height: 1.5;
}

.probmsg b { color: #000; }

/* ---------- slide 04 · simulator ---------- */

.simGrid {
  display: grid;
  grid-template-columns: 236px 1fr;
  gap: 12px;
  align-items: start;
}

.simCtrls { display: flex; flex-direction: column; gap: 6px; }

.ctl-label {
  margin-top: 4px;
  color: #555;
  font-family: "Courier New", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
}

.modewrap,
.seg { display: flex; gap: 3px; }
.modewrap .classic-button,
.seg .classic-button { flex: 1; }

.rangewrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  background: #fff;
  font-size: 11px;
}

.rangewrap input[type="range"] { flex: 1 1 auto; min-width: 0; width: auto; accent-color: var(--slx-navy); }

.simCtrls .classic-button.big { margin-top: 8px; }

.simNote {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--shadow);
  box-shadow: inset 0 1px #fff;
  color: #555;
  font-size: 10px;
  line-height: 1.5;
}

.simNote b { color: #222; }

.duel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.duelPanel { padding: 9px; background: #fff; transition: outline 0.2s; }
.duelPanel.win { background: var(--slx-paper); }
.duelPanel.flash { outline: 2px solid var(--slx-navy); outline-offset: -3px; }

.duelHead {
  margin-bottom: 7px;
  color: #333;
  font-family: "Courier New", monospace;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.duelHead .dh { margin-right: 5px; color: var(--slx-teal); font-weight: 700; }
.duelHead .dh.lime { color: var(--slx-navy); }

.duelV {
  min-height: 50px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px dotted #999;
  color: #333;
  font-size: 11px;
  line-height: 1.5;
}

.duelV .big { font-size: 13px; font-weight: 700; }
.duelV .hl-r { color: var(--slx-sell); }
.duelV .hl-l { color: var(--slx-navy); }

.cmpBig {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
  background: #fff;
  opacity: 0.55;
  transition: opacity 0.3s;
}

.cmpBig.show { opacity: 1; }
.cmpSide { text-align: center; }
.cmpLbl { color: #555; font-family: "Courier New", monospace; font-size: 9px; letter-spacing: 1px; }

.cmpPx {
  margin-top: 4px;
  font-family: "Courier New", monospace;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  line-height: 1;
}

.cmpPx.clob { color: var(--slx-sell); }
.cmpPx.dfba { color: var(--slx-navy); }
.cmpSub { margin-top: 4px; color: #444; font-size: 10px; }

.cmpMid {
  padding: 6px 10px;
  border: 1px solid #000;
  color: var(--slx-navy);
  background: var(--slx-yellow);
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}

/* ---------- slide 05 · summary ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0 6px;
}

.stat { padding: 10px 12px; background: var(--face-light); }

.statv {
  color: #00005e;
  font-family: "Courier New", monospace;
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 700;
  line-height: 1;
}

.statv .unit { margin-left: 2px; color: var(--slx-navy); font-size: 0.45em; }

.statk {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--shadow);
  box-shadow: inset 0 1px #fff;
  color: #555;
  font-family: "Courier New", monospace;
  font-size: 9px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.terms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}

.term {
  display: block;
  width: 100%;
  padding: 8px 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.term:hover,
.term:focus-visible { background: var(--slx-paper); }
.term b { display: block; margin-bottom: 3px; color: var(--slx-navy); font-size: 12px; }
.term span { display: block; color: #333; font-size: 11px; line-height: 1.5; }

.term-definition { margin: 0; color: #333; font-size: 13px; line-height: 1.6; }

/* ---------- slide 06 · community campaign ---------- */

.campaignGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(250px, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 16px;
}

.brief { color: #333; font-size: 12px; line-height: 1.55; }
.brief p { margin: 0 0 8px; }
.brief b { color: #000; }
.briefList { margin: 0 0 8px; padding-left: 18px; }
.briefList li { margin-bottom: 3px; }

.briefWarn {
  display: inline-block;
  padding: 5px 8px;
  border: 1px dotted var(--slx-sell);
  color: var(--slx-sell);
  background: #fff3f3;
  font-weight: 700;
}

.campaignSteps { margin-top: 10px; }
.controls a.classic-button { color: #000; text-decoration: none; }

.prizeCol { display: flex; flex-direction: column; }

.prizeBoard { padding: 8px; background: #fff; }

.prizeHead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
  padding: 6px 8px;
  border: 1px solid #000;
  color: var(--slx-navy);
  background: var(--slx-yellow);
  font-family: "Courier New", monospace;
}

.prizeHead span { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; }
.prizeHead b { font-size: 22px; font-weight: 700; }

.prizeRow {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 7px 6px;
  border-bottom: 1px dotted #bbb;
  font-size: 12px;
}

.prizeRow:last-child { border-bottom: 0; }
.prizeRow b { color: var(--slx-navy); font-family: "Courier New", monospace; font-size: 14px; }
.prizeLbl { color: #333; }
.prizeLbl small { display: block; color: #777; font-size: 9px; }

.rank {
  display: grid;
  height: 22px;
  place-items: center;
  border: 1px solid #000;
  color: #000;
  box-shadow: inset 1px 1px rgba(255, 255, 255, 0.6);
  font-family: "Courier New", monospace;
  font-size: 10px;
  font-weight: 700;
}

.rank-1 { background: #f7c948; }
.rank-2 { background: #d9d9d9; }
.rank-3 { background: #d9a066; }
.rank-g { color: #fff; background: var(--slx-buy); }

.sharePanel { margin-top: 12px; }

.notepad { padding: 2px; background: var(--face); }

.notepadBar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 5px;
  color: #fff;
  background: linear-gradient(90deg, var(--navy), var(--blue));
  font-size: 11px;
  font-weight: 700;
}

.postText {
  display: block;
  width: 100%;
  min-height: 250px;
  margin: 0;
  padding: 8px 10px;
  resize: vertical;
  border-radius: 0;
  color: #171717;
  background: #fff;
  font-family: "Courier New", monospace;
  font-size: 11.5px;
  line-height: 1.5;
}

.postText:focus { outline: 1px dotted #000; outline-offset: -3px; }

/* ---------- slide 07 · finale ---------- */

.finaleActions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.finaleSlide { padding: 34px 0 20px; }

.finale {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
  white-space: nowrap;
}

.fmark {
  width: 72px;
  height: 72px;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
}

.finaleSlide.active .fmark { animation: fmarkIn 2.2s cubic-bezier(0.5, 0, 0.2, 1); }

.ftext {
  max-width: 0;
  overflow: hidden;
  color: #11115d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1;
  opacity: 0;
}

.finaleSlide.active .ftext { animation: ftextIn 1s ease forwards; animation-delay: 1.1s; }

@keyframes fmarkIn {
  0% { transform: scale(1.6) rotate(0deg); }
  60% { transform: scale(1.6) rotate(360deg); }
  100% { transform: scale(1) rotate(360deg); }
}

@keyframes ftextIn {
  to { max-width: 600px; opacity: 1; }
}

.finaleSub { margin-top: 10px; color: #333; font-size: 13px; }
.waitBtn { margin-top: 16px; padding: 7px 18px; color: #000; font-weight: 700; text-decoration: none; }
.finaleMeta { margin-top: 14px; color: #555; font-family: "Courier New", monospace; font-size: 9px; letter-spacing: 1px; }

/* ---------- toasts (tiny Win98 message windows) ---------- */

#toasts {
  position: sticky;
  top: 8px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  height: 0;
  padding-right: 24px;
  overflow: visible;
  pointer-events: none;
}

.toast {
  width: min(280px, 70vw);
  padding: 2px;
  background: var(--face);
  animation: toastin 0.25s ease;
}

.toast-bar {
  padding: 2px 5px;
  color: #fff;
  background: linear-gradient(90deg, var(--navy), var(--blue));
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast.sell .toast-bar { background: linear-gradient(90deg, #7a0016, #b00020); }
.toast.lime .toast-bar { background: linear-gradient(90deg, #6b5a00, #b89400); }
.toast-body { padding: 5px 6px; color: #333; font-family: "Courier New", monospace; font-size: 10px; }
.toast.out { animation: toastout 0.35s forwards; }

@keyframes toastin {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: none; }
}

@keyframes toastout {
  to { opacity: 0; transform: translateX(20px); }
}

/* ---------- responsive ---------- */

@media (max-width: 920px) {
  .simGrid,
  .raceGrid,
  .campaignGrid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .slide-progress { min-width: 150px; }
}

@media (max-width: 700px) {
  .slide-scroll { overflow: visible; }
  .slides { padding: 12px 10px 30px; }
  .matchBook,
  .duel,
  .steps,
  .terms,
  .cmpBig { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cmpMid { order: 3; }
  .hero h1 br,
  .slide h2 br { display: none; }
  .slide-progress { flex: 1 1 auto; min-width: 0; }
  .heromark { width: 72px; height: 72px; }
  .finale { white-space: normal; }
  #toasts { position: fixed; top: 52px; right: 8px; padding-right: 0; }

  /* taskbar: always show BOTH window buttons side by side on phones */
  .taskbar { gap: 4px; padding: 3px 4px; }
  .task-button,
  .task-button--idle {
    display: flex;
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    padding: 3px 6px;
    font-size: 11px;
  }
  .tray { min-width: 0; padding: 3px 6px; }

  /* toolbar: keep the Campaign label visible (the generic map-view-label rule hides it) */
  .campaign-link .map-view-label { display: inline !important; }
}

@media (max-width: 430px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .start-button strong { display: none; }
  .start-button { padding: 3px 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .classic-button.pulse,
  .cue,
  .finaleSlide.active .fmark { animation: none !important; }
  .finaleSlide.active .ftext { animation-duration: 0.01s; animation-delay: 0s; }
}

@media (max-width: 920px) {
  .campaign-link .map-view-label { display: inline !important; }
}
