/* META CASINO RESORT x LUMORA SKIN — Y2K Corporate Horror */

@import url('https://fonts.googleapis.com/css2?family=VT323&family=Special+Elite&family=Press+Start+2P&family=IM+Fell+English:ital@0;1&family=Monoton&display=swap');

:root {
  --win-bg: #c0c0c0;
  --win-bg-2: #d4d0c8;
  --win-light: #ffffff;
  --win-dark: #808080;
  --win-darker: #404040;
  --win-text: #000000;
  --teal: #008080;
  --beige: #ece9d8;
  --paper: #f5f1e3;
  --f-sys: Tahoma, "MS Sans Serif", Geneva, sans-serif;
  --f-mono: "Lucida Console", "Courier New", monospace;
  --f-vt: "VT323", monospace;
  --f-typewriter: "Special Elite", "Courier New", monospace;
  --f-arcade: "Press Start 2P", monospace;
  --f-serif: "IM Fell English", "Times New Roman", serif;
  --f-neon: "Monoton", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%; height: 100%;
  background: #000;
  overflow: hidden;
  font-family: var(--f-sys);
  font-size: 13px;
  color: var(--win-text);
}

/* ======= SCREEN MANAGEMENT ======= */
.screen {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.screen.active { display: block; }

/* ======= WIN9X CHROME ======= */
.win {
  background: var(--win-bg);
  border: 2px solid;
  border-color: var(--win-light) var(--win-darker) var(--win-darker) var(--win-light);
  box-shadow: 1px 1px 0 0 #000;
  display: inline-flex;
  flex-direction: column;
}
.win .titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  padding: 3px 4px;
  font-weight: 700;
  font-size: 12px;
  user-select: none;
  flex-shrink: 0;
}
.win .titlebar .icon {
  display: inline-block;
  width: 16px; height: 16px;
  margin-right: 4px;
  background: #ff0;
  border: 1px solid #000;
}
.win .titlebar .ctrls {
  display: flex;
  gap: 2px;
}
.win .titlebar .ctrls span {
  width: 18px; height: 16px;
  display: grid;
  place-items: center;
  background: var(--win-bg);
  border: 1px solid;
  border-color: var(--win-light) var(--win-darker) var(--win-darker) var(--win-light);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.win .titlebar .ctrls span:active {
  border-color: var(--win-darker) var(--win-light) var(--win-light) var(--win-darker);
}

/* Win9x system menu dropdown */
.win-sys-menu {
  position: fixed;
  z-index: 100000;
  background: var(--win-bg);
  border: 2px solid;
  border-color: var(--win-light) var(--win-darker) var(--win-darker) var(--win-light);
  box-shadow: 2px 2px 0 #000;
  min-width: 148px;
  padding: 2px 0;
  font-family: var(--f-sys);
  font-size: 12px;
}
.win-sys-menu-item {
  padding: 3px 16px 3px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  cursor: default;
  white-space: nowrap;
}
.win-sys-menu-item:hover:not(.disabled) {
  background: #000080;
  color: #fff;
}
.win-sys-menu-item.disabled {
  color: var(--win-dark);
  text-shadow: 1px 1px 0 var(--win-light);
}
.win-sys-menu-shortcut {
  color: inherit;
  opacity: 0.75;
}
.win-sys-menu-sep {
  border-top: 1px solid var(--win-dark);
  border-bottom: 1px solid var(--win-light);
  margin: 3px 2px;
}

/* Draggable titlebar cursor */
.win-draggable > .titlebar {
  cursor: move;
}
.win .menubar {
  background: var(--win-bg);
  border-bottom: 1px solid var(--win-dark);
  padding: 2px 6px;
  display: flex;
  gap: 14px;
  font-size: 12px;
  flex-shrink: 0;
}
.win .menubar u { text-decoration: underline; }
.win .body { padding: 10px; font-family: var(--f-sys); }
.win .statusbar {
  border-top: 1px solid var(--win-dark);
  background: var(--win-bg);
  padding: 3px 8px;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  flex-shrink: 0;
}

.bevel-in { border: 2px solid; border-color: var(--win-darker) var(--win-light) var(--win-light) var(--win-darker); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--win-bg);
  border: 2px solid;
  border-color: var(--win-light) var(--win-darker) var(--win-darker) var(--win-light);
  padding: 5px 14px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  min-width: 74px;
}
.btn:active {
  border-color: var(--win-darker) var(--win-light) var(--win-light) var(--win-darker);
  padding-top: 6px; padding-bottom: 4px;
}
.btn:disabled { color: var(--win-dark); pointer-events: none; text-shadow: 1px 1px 0 var(--win-light); }
.btn.primary { font-weight: 700; }
.btn.danger { color: #7a0000; }
.input {
  background: #fff;
  border: 2px solid;
  border-color: var(--win-darker) var(--win-light) var(--win-light) var(--win-darker);
  padding: 3px 6px;
  font: inherit;
}
.muted { color: var(--win-dark); }

/* CRT scanlines */
.crt::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.06) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
.crt::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 91;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.45) 100%);
}

/* Campaign table */
.cmp-table { width: 100%; border-collapse: collapse; font-size: 12px; background: #fff; font-family: var(--f-sys); }
.cmp-table th { background: var(--win-bg-2); text-align: left; padding: 6px 8px; font-weight: 700; border: 1px solid var(--win-dark); position: sticky; top: 0; font-size: 11px; letter-spacing: .04em; }
.cmp-table td { padding: 6px 8px; border-bottom: 1px solid #d4d0c8; font-family: var(--f-mono); font-size: 12px; }
.cmp-table tr.selected td { background: #0a246a; color: #fff; }
.cmp-table tr.paused td { color: var(--win-dark); font-style: italic; background: #e8e8e8; }
.cmp-table tr.selected.paused td { background: #2a3a6a; color: #aab0cc; font-style: italic; }
.cmp-table tr.dead td { color: #7a0000; background: #ffe8e8; }
.cmp-table tr.competitor td { color: #5a0060; background: #ffe8ff; }
.cmp-table .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.cmp-table .dot.g { background: #00a000; }
.cmp-table .dot.y { background: #d4a020; }
.cmp-table .dot.r { background: #c00000; }
.cmp-table .dot.k { background: #000; }
.cmp-table .dot.p { background: #8000a0; }
.cmp-table .num.up { color: #006400; }
.cmp-table .num.dn { color: #aa0000; }

/* Toolbar */
.toolbar {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-bottom: 1px solid var(--win-dark);
  background: var(--win-bg);
  flex-shrink: 0;
}
.toolbar .btn { min-width: 90px; font-size: 12px; }

.tabbar {
  display: flex;
  gap: 2px;
  padding: 6px 8px 0;
  border-bottom: 1px solid var(--win-dark);
  background: var(--win-bg-2);
  flex-shrink: 0;
}
.tabbar .tab {
  padding: 5px 12px;
  background: var(--win-bg);
  border: 2px solid;
  border-color: var(--win-light) var(--win-darker) transparent var(--win-light);
  font-size: 12px;
}
.tabbar .tab.active { font-weight: 700; border-bottom-color: var(--win-bg); }

/* Dayhead */
.dayhead {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-vt);
  font-size: 34px;
  color: #fff;
  letter-spacing: .3em;
  text-shadow: 2px 2px 0 #000;
  white-space: nowrap;
  z-index: 10;
}
.dayhead small { display: block; font-size: 14px; letter-spacing: .4em; color: #aaffaa; }

/* Subtitle bar (cinematic screens) */
.subtitle-bar {
  position: absolute;
  left: 50%;
  bottom: 60px;
  transform: translateX(-50%);
  font-family: var(--f-typewriter);
  font-size: 24px;
  color: #e8e2c8;
  background: rgba(0,0,0,.5);
  padding: 8px 18px;
  letter-spacing: .04em;
  white-space: nowrap;
  z-index: 10;
}
.subtitle-bar::before { content: "› "; }

/* Click-anywhere to advance */
.advance-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-typewriter);
  font-size: 14px;
  color: rgba(255,255,255,.5);
  letter-spacing: .15em;
  z-index: 20;
  pointer-events: none;
  animation: blink 1.5s steps(2) infinite;
}

/* ======= ANIMATIONS ======= */
@keyframes blink { 50% { opacity: 0; } }
@keyframes flicker { 0%,19.9%,22%,62.9%,64%,64.9%,70%,100% { opacity: 1; } 20%,21.9%,63%,63.9%,65%,69.9% { opacity: .4; } }
@keyframes shake { 0%,100% { transform: translate(-50%,-50%); } 10% { transform: translate(calc(-50% - 2px), calc(-50% + 1px)); } 20% { transform: translate(calc(-50% + 3px), calc(-50% - 1px)); } 30% { transform: translate(calc(-50% - 1px), calc(-50% + 2px)); } 40% { transform: translate(calc(-50% + 2px), calc(-50% + 1px)); } 50% { transform: translate(calc(-50% - 2px), calc(-50% - 1px)); } 60% { transform: translate(calc(-50% + 1px), calc(-50% + 2px)); } 70% { transform: translate(calc(-50% - 3px), calc(-50% + 1px)); } 80% { transform: translate(calc(-50% + 2px), calc(-50% - 2px)); } 90% { transform: translate(calc(-50% - 1px), calc(-50% - 1px)); } }
@keyframes shake-abs { 0%,100% { transform: translate(0,0); } 10% { transform: translate(-2px, 1px); } 20% { transform: translate(3px, -1px); } 30% { transform: translate(-1px, 2px); } 40% { transform: translate(2px, 1px); } 50% { transform: translate(-2px, -1px); } 60% { transform: translate(1px, 2px); } 70% { transform: translate(-3px, 1px); } 80% { transform: translate(2px, -2px); } 90% { transform: translate(-1px, -1px); } }
@keyframes vibrate { 0%,100% { transform: translate(0,0); } 25% { transform: translate(-1px,0); } 75% { transform: translate(1px,0); } }
@keyframes raindrop { to { transform: translateY(120vh); } }
@keyframes neon-pulse { 0%,100% { opacity: 1; text-shadow: 0 0 8px #ff2096, 0 0 22px #ff2096, 0 0 60px #ff2096; } 50% { opacity: .5; text-shadow: 0 0 2px #ff2096; } }
@keyframes metric-scroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes typewriter { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.shake-abs { animation: shake-abs .35s infinite; }
.blink { animation: blink 1.05s steps(2) infinite; }
.flicker { animation: flicker 5s infinite; }
.vibrate { animation: vibrate .12s infinite; }


/* ============= 1. RAIN — COLD OPEN ============= */
#rain {
  background: #0a0612;
  cursor: pointer;
}
.rain-window {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 800px at 60% 30%, rgba(255,0,140,.18), transparent 70%),
    radial-gradient(900px 600px at 30% 80%, rgba(0,180,255,.12), transparent 70%),
    #0a0612;
}
.window-frame {
  position: absolute;
  inset: 60px;
  border: 14px solid #1c1018;
  border-radius: 6px;
  box-shadow: inset 0 0 0 4px #2a1820, 0 30px 80px rgba(0,0,0,.7);
}
.window-mullion { position: absolute; left: 50%; top: 0; bottom: 0; width: 14px; background: #1c1018; transform: translateX(-50%); }
.window-mullion.h { left: 0; right: 0; width: auto; top: 50%; height: 14px; transform: translateY(-50%); }
.rain-drops { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.rain-drops i { position: absolute; top: -20vh; width: 1px; height: 60px; background: linear-gradient(180deg, transparent, rgba(220,220,255,.7)); animation: raindrop linear infinite; opacity: .5; }
.neon-sign {
  position: absolute;
  left: 50%;
  top: 34%;
  transform: translate(-50%,-50%);
  font-family: var(--f-neon);
  color: #ff2096;
  font-size: clamp(48px, 8vw, 120px);
  letter-spacing: .04em;
  line-height: .85;
  text-align: center;
  filter: blur(0.4px);
}
.neon-sign .l1 { display: block; animation: neon-pulse 4.7s infinite; }
.neon-sign small { display: block; font-size: clamp(14px, 2vw, 24px); letter-spacing: .5em; color: #00d8ff; margin-top: 18px; animation: neon-pulse 5.3s infinite; animation-delay: .6s; }
.phone {
  position: absolute;
  right: 80px;
  bottom: 80px;
  width: clamp(200px, 20vw, 300px);
  height: clamp(380px, 50vh, 580px);
  background: #0e0e12;
  border-radius: 38px;
  border: 6px solid #1a1a22;
  box-shadow: 0 30px 60px rgba(0,0,0,.6), inset 0 0 0 2px #2a2a32;
  padding: 28px 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: rotate(-4deg);
}
.phone .notch { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); width: 90px; height: 18px; background: #000; border-radius: 0 0 14px 14px; }
.phone .top-row { display: flex; justify-content: space-between; color: #fff; font-family: var(--f-mono); font-size: 10px; padding: 0 8px; }
.phone .lock-time { color: #fff; text-align: center; font-family: var(--f-sys); font-weight: 200; font-size: clamp(36px, 5vw, 60px); line-height: 1; margin-top: 10px; }
.phone .lock-date { color: #fff; text-align: center; font-size: 13px; margin-top: 2px; opacity: .85; }
.phone .notif {
  margin-top: auto;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(20px);
  border-radius: 14px;
  padding: 10px 12px;
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  animation: vibrate .12s infinite;
}
.phone .notif .nh { display: flex; justify-content: space-between; font-size: 10px; opacity: .85; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; }
.phone .notif .nb { font-size: 13px; font-weight: 500; }


/* ============= 2. CASINO FLOOR ============= */
#floor {
  background: #0a0512;
  cursor: pointer;
}
.floor-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 50% 50%, rgba(255,40,160,.22), transparent 70%),
    radial-gradient(700px 400px at 90% 20%, rgba(0,200,255,.18), transparent 70%),
    linear-gradient(180deg, #0a0512 0%, #14081f 70%, #060309 100%);
}
.tile-floor {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 46%;
  background:
    linear-gradient(180deg, transparent 0%, #100617 100%),
    repeating-linear-gradient(90deg, #2a0f3a 0 2px, transparent 2px 80px),
    repeating-linear-gradient(0deg, #2a0f3a 0 2px, transparent 2px 80px);
  transform: perspective(900px) rotateX(64deg);
  transform-origin: top center;
}
.cubicle { position: absolute; width: 200px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.monitor {
  width: 100%; height: 130px; background: #000;
  border: 8px solid #2a2a30; border-radius: 6px;
  box-shadow: 0 0 0 2px #111, 0 0 32px rgba(255,40,160,.3);
  overflow: hidden; color: #aaffaa;
  font-family: var(--f-mono); font-size: 9px; padding: 6px; line-height: 1.2;
}
.monitor.red { color: #ffa0a0; }
.monitor.gold { color: #ffe28a; }
.marketer {
  width: 48px; height: 48px;
  background: #2a2030;
  border: 2px solid #1a1018;
  border-radius: 50% 50% 16px 16px;
  position: relative;
}
.marketer::before {
  content: "";
  position: absolute;
  left: 50%; top: 8px;
  transform: translateX(-50%);
  width: 16px; height: 16px;
  background: #3a3038;
  border-radius: 50%;
}
.cubicle .label { font-family: var(--f-mono); font-size: 10px; color: #ffaecf; letter-spacing: .2em; }
#floor .subtitle-bar { bottom: 80px; }


/* ============= 3. LUMORA BRAND PACK ============= */
#brand {
  background: #f5f1e3;
  cursor: pointer;
}
.brand-wrap {
  padding: clamp(30px, 4vw, 60px) clamp(30px, 5vw, 70px);
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  overflow: hidden;
}
.brand-headline { font-family: var(--f-serif); font-style: italic; font-size: 18px; color: #5a4f3a; letter-spacing: .04em; text-transform: uppercase; }
.lumora-mark { font-family: "IM Fell English", serif; font-size: clamp(60px, 8vw, 96px); letter-spacing: .34em; color: #1f1a14; line-height: 1; margin: 6px 0 18px; }
.lumora-sub { font-family: var(--f-typewriter); font-size: 16px; color: #5a4f3a; max-width: 520px; line-height: 1.55; }
.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.brand-card { background: #fff; border: 1px solid #e5dfc8; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.brand-card .lbl { font-family: var(--f-mono); font-size: 10px; letter-spacing: .3em; color: #8a7c5a; text-transform: uppercase; }
.brand-card .h { font-family: "IM Fell English", serif; font-size: 20px; color: #1f1a14; }
.brand-card .b { font-family: var(--f-typewriter); font-size: 13px; color: #3a322a; line-height: 1.45; }
.swatches { display: flex; gap: 8px; margin-top: 8px; }
.swatches i { width: 28px; height: 28px; display: inline-block; border: 1px solid #c2b893; }
.product-render {
  width: 100%; aspect-ratio: 1 / 1.1;
  background: radial-gradient(ellipse at 50% 20%, #fff 0%, #f1ead4 60%, #d4cba6 100%);
  border: 1px solid #e5dfc8;
  position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.bottle {
  width: 32%; height: 74%;
  background: linear-gradient(180deg, #f9f6ea, #e5dfc8);
  border-radius: 60px 60px 8px 8px / 80px 80px 8px 8px;
  box-shadow: inset -10px 0 30px rgba(0,0,0,.06), inset 10px 0 20px rgba(255,255,255,.6), 0 18px 30px rgba(0,0,0,.08);
  position: relative;
}
.bottle::before { content: ""; position: absolute; left: 50%; top: -14px; transform: translateX(-50%); width: 42%; height: 24px; background: #1f1a14; border-radius: 4px; }
.bottle .blbl { position: absolute; left: 50%; top: 42%; transform: translateX(-50%); text-align: center; font-family: "IM Fell English", serif; color: #1f1a14; font-size: 12px; letter-spacing: .3em; }
.bottle .blbl b { display: block; font-size: 18px; letter-spacing: .4em; font-weight: 400; }
.bottle .blbl span { font-family: var(--f-typewriter); font-size: 8px; letter-spacing: .18em; display: block; margin-top: 4px; color: #5a4f3a; }
.product-render .stamp { position: absolute; right: 18px; top: 18px; font-family: var(--f-typewriter); font-size: 10px; letter-spacing: .3em; color: #8a7c5a; border: 1px solid #c2b893; padding: 6px 10px; text-transform: uppercase; }
.founder { background: #1f1a14; color: #f1ead4; padding: 18px; display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; }
.founder .face { width: 72px; height: 72px; background: linear-gradient(160deg, #5a4f3a, #3a322a); border-radius: 50%; border: 2px solid #f1ead4; flex: none; position: relative; overflow: hidden; }
.founder .face::before { content: ""; position: absolute; left: 50%; top: 55%; transform: translateX(-50%); width: 54px; height: 54px; background: #7a6a48; border-radius: 50%; }
.founder .face::after { content: ""; position: absolute; left: 50%; top: 24%; transform: translateX(-50%); width: 38px; height: 38px; background: #a08e60; border-radius: 50%; }
.founder h4 { font-family: "IM Fell English", serif; font-size: 18px; letter-spacing: .06em; }
.founder p { margin: 4px 0 0; font-family: var(--f-typewriter); font-size: 11px; line-height: 1.5; color: #d4cba6; }
#brand .advance-hint { color: rgba(30,20,10,.4); }


/* ============= 4. TUTORIAL DESKTOP ============= */
#tutorial {
  background: var(--teal);
  position: relative;
}
.desktop-icons { position: absolute; left: 18px; top: 18px; display: grid; grid-template-columns: 1fr; gap: 10px; z-index: 2; }
.dicon { display: flex; flex-direction: column; align-items: center; width: 74px; color: #fff; text-shadow: 1px 1px 0 #000; font-size: 11px; text-align: center; gap: 4px; cursor: default; }
.dicon .ic { width: 34px; height: 34px; background: #fff; border: 1px solid #000; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #000; }
.dicon .ic.folder { background: #ffcc00; }
.dicon .ic.exe { background: #0044aa; color: #fff; }
.dicon .ic.txt { background: #fff; font-family: var(--f-mono); }
.dicon .ic.trash { background: #a00; color: #fff; }
.aim-window { position: absolute; left: 60px; top: 50px; width: clamp(320px, 35vw, 560px); z-index: 5; }
.aim-msg { font-family: var(--f-sys); font-size: 13px; padding: 4px 6px; line-height: 1.5; }
.aim-msg b { color: #1d3acb; }
.aim-msg.me b { color: #a30000; }
.aim-msg.muted { color: var(--win-dark); }
.aim-input { border-top: 1px solid var(--win-dark); padding: 6px; background: var(--win-bg); display: flex; gap: 6px; }
.aim-input input { flex: 1; font-family: var(--f-sys); font-size: 13px; }
.ads-mgr-preview { position: absolute; right: 40px; top: 80px; width: clamp(400px, 50vw, 760px); opacity: .55; pointer-events: none; filter: saturate(.5); z-index: 3; }
.tut-callout {
  position: absolute;
  max-width: 260px;
  padding: 10px 12px;
  background: #ffffd4;
  border: 1px solid #000;
  box-shadow: 3px 3px 0 rgba(0,0,0,.4);
  font-size: 12px;
  line-height: 1.4;
  z-index: 8;
}
.taskbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 30px;
  background: var(--win-bg);
  border-top: 2px solid var(--win-light);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px;
  font-size: 12px;
  z-index: 10;
}
.start-btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; padding: 3px 10px; background: var(--win-bg); border: 2px solid; border-color: var(--win-light) var(--win-darker) var(--win-darker) var(--win-light); }
.start-btn .flag { display: inline-block; width: 16px; height: 16px; background: conic-gradient(#f00 0 25%, #0f0 0 50%, #00f 0 75%, #ff0 0); border-radius: 2px; }
.taskbar .clock { margin-left: auto; border: 1px solid; border-color: var(--win-darker) var(--win-light) var(--win-light) var(--win-darker); padding: 3px 8px; font-family: var(--f-mono); font-size: 11px; }
.tasks { display: flex; gap: 4px; }
.tasks .tab { padding: 3px 8px; background: var(--win-bg); font-size: 11px; border: 2px solid; border-color: var(--win-light) var(--win-darker) var(--win-darker) var(--win-light); display: flex; align-items: center; gap: 6px; }
.tasks .tab.active { border-color: var(--win-darker) var(--win-light) var(--win-light) var(--win-darker); }
.tasks .tab .icon { display: inline-block; width: 12px; height: 12px; background: #ff0; border: 1px solid #000; }


/* LUMORA Brief window (inside tutorial desktop) */
.lumora-brief-win {
  position: absolute;
  left: 440px;
  top: 60px;
  width: 400px;
  z-index: 6;
}
.lumora-brief-body {
  background: #fff;
  overflow-y: auto;
  max-height: 340px;
}
.lumora-brief-win.minimized .lumora-brief-body,
.lumora-brief-win.minimized .menubar,
.lumora-brief-win.minimized .statusbar { display: none; }
.brief-lbl {
  padding: 5px 10px;
  border-bottom: 1px solid var(--win-dark);
  border-right: 1px solid var(--win-dark);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #8a7c5a;
  white-space: nowrap;
  background: var(--win-bg-2);
  vertical-align: top;
}
.brief-val {
  padding: 5px 10px;
  border-bottom: 1px solid var(--win-dark);
  font-family: var(--f-sys);
  font-size: 11px;
  line-height: 1.45;
}

/* ============= 5. SIM SCREEN ============= */
#sim { background: var(--teal); }
.sim-timer {
  position: absolute;
  right: 36px;
  top: 48px;
  background: #000;
  color: #0f0;
  font-family: var(--f-vt);
  font-size: 30px;
  padding: 4px 14px;
  border: 2px solid #0f0;
  z-index: 5;
}
.sim-timer.danger { color: #f00; border-color: #f00; animation: flicker 1s infinite; }
.ads-mgr-full {
  position: absolute;
  left: 24px; top: 80px; bottom: 24px;
  right: 320px;
  display: flex;
  flex-direction: column;
}
.ads-mgr-full .win { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.ads-mgr-full .body { flex: 1; overflow: auto; background: #fff; padding: 0; }
.sim-rightcol {
  position: absolute;
  right: 28px;
  top: 106px;
  width: 270px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  bottom: 24px;
}
.kpi-card { background: var(--win-bg); padding: 10px; }
.kpi-card .lbl { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--win-darker); }
.kpi-card .kv { font-family: var(--f-mono); font-size: 28px; line-height: 1; margin: 6px 0 0; }
.kpi-card .kd { font-family: var(--f-mono); font-size: 11px; color: var(--win-dark); }
.alerts-body { background: var(--win-bg); padding: 8px; font-size: 11px; font-family: var(--f-mono); flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 0; }
.alert-row { padding: 3px 0; border-bottom: 1px dashed var(--win-dark); font-size: 11px; }
.alert-row.warn { color: #a04400; }
.alert-row.bad { color: #aa0000; font-weight: 700; }
.alert-row.ok { color: #006400; }

/* Toast modal */
.day-toast {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  background: var(--win-bg);
  border: 2px solid;
  border-color: var(--win-light) var(--win-darker) var(--win-darker) var(--win-light);
  box-shadow: 6px 6px 0 rgba(0,0,0,.5);
  width: 380px;
  z-index: 50;
  display: none;
}
.day-toast.show { display: block; }
.day-toast .titlebar { background: linear-gradient(90deg, #a00000, #d04040); color: #fff; padding: 3px 6px; font-size: 12px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.day-toast .body { padding: 14px; display: flex; gap: 12px; align-items: flex-start; font-size: 12px; line-height: 1.5; }
.day-toast .body .ic { flex: none; width: 36px; height: 36px; display: grid; place-items: center; background: #ff0; border: 2px solid #000; font-size: 22px; }
.day-toast .actions { padding: 8px 12px; background: var(--win-bg-2); border-top: 1px solid var(--win-dark); display: flex; gap: 8px; justify-content: flex-end; }

/* End of Day modal */
.eod-modal {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  background: var(--win-bg);
  border: 2px solid;
  border-color: var(--win-light) var(--win-darker) var(--win-darker) var(--win-light);
  box-shadow: 8px 8px 0 rgba(0,0,0,.5);
  width: 420px;
  z-index: 60;
  display: none;
}
.eod-modal.show { display: block; }
.eod-modal .titlebar { background: linear-gradient(90deg, #000080, #1084d0); color: #fff; padding: 3px 6px; font-size: 12px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.eod-modal .body { padding: 24px; }
.eod-modal .eod-day { font-family: var(--f-vt); font-size: 28px; letter-spacing: .2em; margin-bottom: 8px; }
.eod-modal .eod-profit { font-family: var(--f-mono); font-size: 48px; font-weight: 700; }
.eod-modal .eod-msg { font-size: 13px; margin-top: 10px; line-height: 1.5; font-family: var(--f-typewriter); }
.eod-modal .actions { padding: 12px; background: var(--win-bg-2); border-top: 1px solid var(--win-dark); display: flex; justify-content: flex-end; }

/* Founder mid-sim modal */
.founder-modal {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: 500px;
  z-index: 55;
  display: none;
}
.founder-modal.show { display: block; animation: shake .35s infinite; }
.founder-modal .titlebar { background: linear-gradient(90deg, #a00000, #000080); }
.founder-portrait {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: radial-gradient(ellipse 280px 360px at 50% 60%, #d4b08a 0%, #b08c64 60%, #6a4c2c 100%), #000;
  position: relative; overflow: hidden;
  filter: contrast(1.4) saturate(1.4);
}
.founder-portrait::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 2px, transparent 2px 4px); }
.founder-portrait .eye { position: absolute; width: 34px; height: 14px; background: radial-gradient(circle, #fff 0 30%, #2a1a08 30% 60%, #000 60%); top: 34%; border-radius: 50%; }
.founder-portrait .eye.l { left: 32%; }
.founder-portrait .eye.r { right: 32%; }
.founder-portrait .mouth { position: absolute; left: 50%; top: 62%; transform: translateX(-50%); width: 120px; height: 40px; background: #3a0808; border-radius: 50% 50% 30% 30% / 30% 30% 60% 60%; border: 3px solid #1a0404; }
.founder-portrait .rec { position: absolute; left: 8px; bottom: 8px; font-family: var(--f-vt); font-size: 18px; color: #0f0; letter-spacing: .1em; }
.scream { padding: 14px; background: #000; color: #ff2020; font-family: "Press Start 2P", monospace; font-size: clamp(12px, 2vw, 18px); text-align: center; line-height: 1.5; }
.founder-modal .actions { background: var(--win-bg-2); padding: 10px; display: flex; gap: 8px; justify-content: flex-end; border-top: 1px solid var(--win-dark); }

/* Competitor alert in sim */
.competitor-alert {
  position: absolute;
  left: 50%; bottom: 80px;
  transform: translateX(-50%);
  width: 460px;
  z-index: 45;
  display: none;
}
.competitor-alert.show { display: block; }

/* Andromeda overlay (Day 5) */
.andromeda-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  display: none;
  opacity: .15;
}
.andromeda-overlay.active { display: block; }
.metric-wall-small {
  position: absolute;
  inset: 0;
  font-family: var(--f-vt);
  color: #0f0;
  font-size: 14px;
  line-height: 1.1;
  padding: 10px;
  white-space: pre;
}


/* ============= 6. DAY 2 CINEMATIC ============= */
#day2-cin { background: var(--teal); }
.alarm-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,0,0,.18), transparent 70%);
  animation: flicker 4s infinite;
  pointer-events: none;
  z-index: 1;
}
.cin-bg-table {
  position: absolute;
  left: 60px; top: 120px; right: 60px;
  opacity: .55;
  filter: saturate(.5);
  z-index: 2;
}
.error-popup {
  position: absolute;
  z-index: 10;
  transition: opacity .3s;
}
.error-popup.dismissed { opacity: 0; pointer-events: none; }
.error-popup .titlebar { background: linear-gradient(90deg, #9b0000, #ff3a3a); }
.error-popup .body { padding: 14px; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; }
.error-popup .actions { background: var(--win-bg-2); padding: 8px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--win-dark); }
.cin-continue {
  position: absolute;
  left: 50%; bottom: 80px;
  transform: translateX(-50%);
  display: none;
  z-index: 20;
}
.cin-continue.show { display: block; }


/* ============= 7. DAY 3 CINEMATIC ============= */
#day3-cin { background: var(--teal); }
.day3-founder-popup {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: clamp(340px, 40vw, 520px);
  z-index: 10;
  animation: shake .35s infinite;
}
.day3-founder-popup .titlebar { background: linear-gradient(90deg, #a00000, #000080); }


/* ============= 8. DAY 4 CINEMATIC ============= */
#day4-cin { background: var(--teal); }
.steal-grid {
  position: absolute;
  left: 60px; top: 130px; right: 60px; bottom: 90px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  z-index: 5;
}
.creative-frame {
  background: #fff;
  border: 8px solid #1f1a14;
  display: flex;
  flex-direction: column;
  position: relative;
}
.creative-frame .cf-top { padding: 8px 12px; background: #1f1a14; color: #f1ead4; font-family: var(--f-typewriter); font-size: 11px; letter-spacing: .3em; display: flex; justify-content: space-between; }
.creative-frame .cf-img { flex: 1; background: linear-gradient(160deg, #f1ead4, #c2b893); position: relative; display: grid; place-items: center; min-height: 200px; }
.product-mini { width: 100px; height: 170px; background: linear-gradient(180deg, #f9f6ea, #d4cba6); border-radius: 48px 48px 6px 6px; position: relative; box-shadow: 0 12px 24px rgba(0,0,0,.1); }
.product-mini::before { content: ""; position: absolute; left: 50%; top: -10px; transform: translateX(-50%); width: 42%; height: 18px; background: #1f1a14; border-radius: 3px; }
.product-mini .pm-lbl { position: absolute; left: 50%; top: 38%; transform: translateX(-50%); font-family: "IM Fell English", serif; font-size: 10px; letter-spacing: .3em; color: #1f1a14; text-align: center; }
.creative-frame .cf-copy { padding: 10px 12px; font-family: "IM Fell English", serif; font-size: 18px; background: #f5f1e3; color: #1f1a14; border-top: 1px solid #c2b893; }
.creative-frame .stolen-stamp {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%,-50%) rotate(-12deg);
  font-family: "Press Start 2P", monospace; color: #a00000; font-size: clamp(24px, 3vw, 42px);
  border: 6px solid #a00000; padding: 8px 14px; background: rgba(255,255,255,.4); letter-spacing: .04em;
}
.day4-alert {
  position: absolute;
  left: 50%; bottom: 10px;
  transform: translateX(-50%);
  width: clamp(360px, 50vw, 560px);
  z-index: 10;
}
.day4-alert .titlebar { background: linear-gradient(90deg, #9b0000, #ff3a3a); }
.day4-alert .body { padding: 14px; display: flex; gap: 14px; font-size: 13px; line-height: 1.5; }
.day4-alert .actions { background: var(--win-bg-2); padding: 10px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--win-dark); }


/* ============= 9. ANDROMEDA NIGHT CINEMATIC ============= */
#day5-cin { background: #000; cursor: pointer; }
.glitch-bg {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,0,160,.06) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(0,200,255,.04) 0 2px, transparent 2px 7px),
    #04020a;
}
.metric-wall {
  position: absolute; inset: 0;
  font-family: var(--f-vt); color: #0f0; font-size: 18px; line-height: 1.1; padding: 10px;
  white-space: pre; opacity: .4; pointer-events: none;
  animation: metric-scroll 6s linear infinite;
  height: 200%;
}
.bsod-strip {
  position: absolute; left: 0; right: 0; top: 80px;
  background: #0000aa; color: #fff;
  padding: 10px 20px; font-family: var(--f-mono); font-size: 13px;
  z-index: 5;
}
.algo-title {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  font-family: "Press Start 2P", monospace;
  font-size: clamp(32px, 5vw, 64px);
  color: #fff; text-align: center; line-height: 1.2; letter-spacing: .04em;
  text-shadow: 4px 0 #ff0080, -4px 0 #00f0ff;
  animation: shake .35s infinite;
  z-index: 10;
}
.algo-title small { display: block; font-family: var(--f-vt); font-size: 36px; color: #0f0; text-shadow: none; margin-top: 18px; letter-spacing: .4em; animation: blink 1s steps(2) infinite; }


/* ============= ENDINGS ============= */
.gameover-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: #000; color: #ff2020;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(18px, 3vw, 32px);
  padding: 20px 40px; letter-spacing: .1em; text-align: center;
  border-top: 4px solid #ff2020;
  animation: shake-abs .35s infinite;
}

/* Fired */
#end-fired { background: linear-gradient(180deg, #0a0008, #000); }
.fired-card {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: clamp(340px, 55vw, 760px);
}
.fired-card .body { background: var(--win-bg); padding: 24px; font-size: 14px; line-height: 1.6; }
.fired-card .body h3 { margin: 0 0 12px; font-size: 18px; }
.fired-card .body p { margin: 0 0 10px; }
.fired-card .actions { padding: 12px; background: var(--win-bg-2); display: flex; gap: 8px; justify-content: flex-end; border-top: 1px solid var(--win-dark); }

/* Sued */
#end-sued { background: #f3eedb; }
.sued-paper {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%) rotate(-1deg);
  width: clamp(340px, 60vw, 780px);
  background: #fcf8ea; padding: clamp(30px, 5vw, 60px) clamp(30px, 5vw, 70px);
  font-family: var(--f-typewriter); color: #1f1a14; line-height: 1.7; font-size: 15px;
  box-shadow: 0 30px 60px rgba(0,0,0,.3), 0 0 0 1px #c2b893;
}
.sued-paper h2 { font-family: var(--f-serif); font-size: clamp(22px, 3vw, 34px); letter-spacing: .04em; text-transform: uppercase; text-align: center; margin: 0 0 8px; }
.sued-paper .case { text-align: center; font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; margin-bottom: 30px; }
.sued-paper p { margin: 8px 0; }
.sued-paper .sig { margin-top: 30px; display: flex; justify-content: space-between; font-family: "IM Fell English", serif; font-style: italic; }
#end-sued .gameover-bar { color: #fff; }

/* LinkedIn */
#end-linkedin { background: linear-gradient(180deg, #f3f2ef, #e6e9ec); }
.li-card {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: clamp(340px, 50vw, 680px);
  background: #fff; border: 1px solid #d6d6d6; border-radius: 8px; overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #000;
  box-shadow: 0 16px 50px rgba(0,0,0,.18);
}
.li-head { display: flex; gap: 12px; padding: 14px; align-items: flex-start; }
.li-avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(160deg, #3a322a, #5a4f3a); position: relative; overflow: hidden; border: 2px solid #00a37a; flex-shrink: 0; }
.li-avatar::after { content: ""; position: absolute; left: 50%; top: 55%; transform: translateX(-50%); width: 42px; height: 42px; background: #7a6a48; border-radius: 50%; }
.li-name { font-weight: 700; font-size: 15px; }
.li-sub { font-size: 13px; color: #444; }
.li-time { font-size: 12px; color: #666; }
.li-body { padding: 0 14px 12px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.li-banner { margin: 6px 14px 14px; background: linear-gradient(135deg, #00a37a, #0a66c2); color: #fff; border-radius: 6px; padding: 20px; text-align: center; font-weight: 700; font-size: 20px; position: relative; }
.li-banner small { display: block; font-weight: 400; font-size: 12px; opacity: .85; margin-top: 4px; }
.li-react { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid #eee; font-size: 12px; color: #666; align-items: center; }
.li-pile { display: flex; }
.li-r { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; margin-left: -4px; display: grid; place-items: center; font-size: 11px; }
.li-r.l { background: #0a66c2; }
.li-r.h { background: #df704d; }
.li-r.s { background: #6dae4f; }
#end-linkedin .gameover-bar { background: #0a66c2; border-top-color: #fff; color: #fff; }

/* Win */
#end-win { background: linear-gradient(180deg, #ff8a4a 0%, #ffd070 40%, #d8a8ff 100%); }
.win-scene { position: absolute; inset: 0; overflow: hidden; }
.sun {
  position: absolute; left: 50%; bottom: 30%; transform: translateX(-50%);
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 12%, #ffe5b0 30%, #ff9f4a 70%, transparent 100%);
  box-shadow: 0 0 120px rgba(255,180,80,.6);
}
.horizon { position: absolute; left: 0; right: 0; bottom: 24%; height: 1px; background: #fff; opacity: .6; }
.casino-sil { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(180deg, transparent 0%, #1a0014 80%, #1a0014 100%); }
.casino-sil::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 60%; background: radial-gradient(ellipse at 20% 100%, #1a0014 60%, transparent 70%), radial-gradient(ellipse at 50% 100%, #1a0014 70%, transparent 80%), radial-gradient(ellipse at 82% 100%, #1a0014 60%, transparent 70%); }
.casino-sign-text { position: absolute; left: 50%; top: 14%; transform: translateX(-50%); font-family: var(--f-neon); color: #3a0024; font-size: clamp(20px, 3vw, 34px); letter-spacing: .3em; opacity: .7; white-space: nowrap; }
.win-msg { position: absolute; left: 50%; top: 18%; transform: translateX(-50%); text-align: center; color: #fff; width: 80%; }
.win-msg .wh { font-family: "IM Fell English", serif; font-size: clamp(36px, 5vw, 64px); text-shadow: 0 4px 20px rgba(0,0,0,.3); font-style: italic; }
.win-msg .ws { font-family: var(--f-typewriter); font-size: 18px; margin-top: 8px; letter-spacing: .1em; }
.tt-popup {
  position: absolute; right: 60px; bottom: 60px; width: 320px;
  background: #000; color: #fff; border-radius: 14px; padding: 14px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  box-shadow: 0 16px 50px rgba(0,0,0,.4);
  animation: vibrate .12s infinite;
}
.tt-popup .top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tt-popup .logo { width: 32px; height: 32px; border-radius: 50%; background: #000; color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 18px; border: 1px solid #444; }
.tt-popup .logo b { color: #ff0050; text-shadow: 1px 0 #00f2ea; }
.tt-popup .tname { font-weight: 700; font-size: 13px; }
.tt-popup .ttime { font-size: 11px; opacity: .7; }
.tt-popup .tmsg { font-size: 13px; line-height: 1.4; }
.tt-popup .tmsg b { color: #00f2ea; }
#end-win .gameover-bar {
  background: transparent;
  border-top: none;
  color: rgba(255,255,255,.7);
  font-family: "IM Fell English", serif;
  font-size: 20px;
  font-style: italic;
  letter-spacing: .05em;
  animation: none;
}
