/* One look per era, shared by the TV and the phones. Each one is based on what that AI actually ran on.
   Every theme sets the same variables, so layouts never need to know which era they are in. */
:root {
  --bg: #0a0a0a; --fg: #ededed; --muted: #8a8a8a; --accent: #ff7a1a; --panel: #141414; --panel-fg: #ededed;
  --line: rgba(255,255,255,.12); --font: 'Inter', system-ui, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --title-font: 'Space Grotesk', sans-serif; --glow: none; --bubble-me: #262626; --bubble-bot: #141414;
}

/* 1950 · a printed journal page (Mind, October 1950) */
.theme-paper { --bg: #ebe4d3; --fg: #1d1a16; --muted: #6b6253; --accent: #7a1f12; --panel: #faf7ef; --panel-fg: #1d1a16; --line: rgba(40,30,20,.22);
  --font: 'Noto Serif', Georgia, serif; --mono: 'Noto Serif', Georgia, serif; --title-font: 'Noto Serif', Georgia, serif; --bubble-me: transparent; --bubble-bot: transparent; }
/* 1956 · IBM punch cards on a dark machine-room desk */
.theme-punch { --bg: #23201c; --fg: #efe3c2; --muted: #a89a7a; --accent: #f0b43c; --panel: #f1e2b0; --panel-fg: #3a2a12; --line: rgba(240,227,194,.18);
  --font: 'IBM Plex Mono', monospace; --mono: 'IBM Plex Mono', monospace; --title-font: 'IBM Plex Mono', monospace; --bubble-me: transparent; --bubble-bot: transparent; }
/* 1966 · ELIZA typed out on a Teletype Model 33, onto a roll of paper */
.theme-teletype { --bg: #2b2d2a; --fg: #ece6d4; --muted: #9c978a; --accent: #e9c46a; --panel: #f3edd9; --panel-fg: #1b1a17; --line: rgba(236,230,212,.16);
  --font: 'Special Elite', 'Courier New', monospace; --mono: 'Special Elite', 'Courier New', monospace; --title-font: 'Special Elite', monospace; --bubble-me: transparent; --bubble-bot: transparent; }
/* 1970 · SHRDLU's vector display: thin glowing lines on black */
.theme-vector { --bg: #010409; --fg: #d6ecff; --muted: #6a86a3; --accent: #9fd6ff; --panel: #02070f; --panel-fg: #d6ecff; --line: rgba(159,214,255,.22);
  --font: 'IBM Plex Mono', monospace; --mono: 'IBM Plex Mono', monospace; --title-font: 'IBM Plex Mono', monospace; --glow: 0 0 4px rgba(159,214,255,.7); --bubble-me: transparent; --bubble-bot: transparent; }
/* 1972 · PARRY on an amber CRT terminal over ARPANET */
.theme-amber { --bg: #0c0600; --fg: #ffb000; --muted: #a06a00; --accent: #ffd27a; --panel: #110800; --panel-fg: #ffb000; --line: rgba(255,176,0,.25);
  --font: 'VT323', monospace; --mono: 'VT323', monospace; --title-font: 'VT323', monospace; --glow: 0 0 6px rgba(255,176,0,.75), 0 0 18px rgba(255,140,0,.35); --bubble-me: transparent; --bubble-bot: transparent; }
/* 1974 · the AI winter */
.theme-ice { --bg: #06101f; --fg: #d8ecff; --muted: #6f8fb3; --accent: #8fd3ff; --panel: #0b1a30; --panel-fg: #d8ecff; --line: rgba(143,211,255,.2);
  --font: 'Space Grotesk', sans-serif; --title-font: 'Space Grotesk', sans-serif; --glow: 0 0 18px rgba(143,211,255,.35); }
/* 1995 · a plain 90s web page */
.theme-web { --bg: #c0c0c0; --fg: #000; --muted: #404040; --accent: #0000ee; --panel: #ffffff; --panel-fg: #000; --line: #808080;
  --font: 'Times New Roman', Times, serif; --mono: 'Courier New', monospace; --title-font: 'Times New Roman', serif; --bubble-me: transparent; --bubble-bot: transparent; }
/* 1997 · IBM's dark broadcast look from the Kasparov match */
.theme-ibm { --bg: #0b0e14; --fg: #f2f4f8; --muted: #8d96a8; --accent: #4f8bff; --panel: #121722; --panel-fg: #f2f4f8; --line: rgba(79,139,255,.25);
  --font: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif; --mono: 'IBM Plex Mono', monospace; --title-font: 'IBM Plex Sans', Arial, sans-serif; --bubble-me: #1c2433; --bubble-bot: #121722; }
/* 2011 · glossy iPhone 4S */
.theme-gloss { --bg: #1d2128; --fg: #f4f6f9; --muted: #9aa3b0; --accent: #4aa3ff; --panel: #e9edf2; --panel-fg: #111; --line: rgba(255,255,255,.18);
  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif; --title-font: 'Helvetica Neue', Helvetica, Arial, sans-serif; --bubble-me: linear-gradient(#6fc0ff, #1a7fe6); --bubble-bot: linear-gradient(#fff, #dfe3e8); }
/* 2016 · wooden go board */
.theme-go { --bg: #14110c; --fg: #f2e6cf; --muted: #b59c74; --accent: #e8b25c; --panel: #d9a956; --panel-fg: #1a140b; --line: rgba(242,230,207,.18);
  --font: 'Space Grotesk', sans-serif; --title-font: 'Noto Serif', Georgia, serif; }
/* 2019 · a researcher's code editor */
.theme-term { --bg: #0d1117; --fg: #e6edf3; --muted: #7d8590; --accent: #ff7b72; --panel: #161b22; --panel-fg: #e6edf3; --line: rgba(240,246,252,.12);
  --font: 'IBM Plex Mono', monospace; --title-font: 'IBM Plex Mono', monospace; --bubble-me: #1f2937; --bubble-bot: transparent; }
/* 2022 · the original dark ChatGPT */
.theme-chat22 { --bg: #343541; --fg: #ececf1; --muted: #a0a0b0; --accent: #19c37d; --panel: #444654; --panel-fg: #ececf1; --line: rgba(255,255,255,.1);
  --font: 'Inter', system-ui, sans-serif; --title-font: 'Inter', sans-serif; --bubble-me: #343541; --bubble-bot: #444654; }
/* 2023 · ChatGPT Plus in light mode with GPT-4 picked */
.theme-light23 { --bg: #f7f7f8; --fg: #202123; --muted: #6e6e80; --accent: #202123; --panel: #ffffff; --panel-fg: #202123; --line: rgba(0,0,0,.1);
  --font: 'Inter', system-ui, sans-serif; --title-font: 'Inter', sans-serif; --bubble-me: #f4f4f5; --bubble-bot: #ffffff; }
/* today · plain dark */
.theme-now { --bg: #0a0a0a; --fg: #ededed; --muted: #8a8a8a; --accent: #ff7a1a; --panel: #141414; --panel-fg: #ededed; --line: rgba(255,255,255,.1);
  --font: 'Inter', system-ui, sans-serif; --title-font: 'Space Grotesk', sans-serif; --bubble-me: #262626; --bubble-bot: #141414; }

/* backgrounds, shared */
.fx { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.theme-amber .fx { background: repeating-linear-gradient(0deg, rgba(0,0,0,.3) 0 2px, transparent 2px 4px); }
.theme-amber .fx::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.7)); }
.theme-vector .fx { background: radial-gradient(circle at 50% 50%, rgba(80,140,200,.08), transparent 65%); }
.theme-paper .fx { background: linear-gradient(90deg, transparent 0 calc(50% - .5px), rgba(40,30,20,.06) calc(50% - .5px) calc(50% + .5px), transparent 0); }
.theme-punch .fx { background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 40%); }
.theme-teletype .fx { background: repeating-linear-gradient(90deg, rgba(255,255,255,.015) 0 1px, transparent 1px 6px); }
.theme-web .fx { background-image: linear-gradient(45deg, rgba(255,255,255,.35) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.35) 75%), linear-gradient(45deg, rgba(255,255,255,.35) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.35) 75%); background-size: 32px 32px; background-position: 0 0, 16px 16px; }
.theme-ibm .fx { background: repeating-linear-gradient(180deg, rgba(79,139,255,.16) 0 5px, transparent 5px 11px) right 4vw top 6vh / 9vw 8.8vh no-repeat; }
.theme-gloss .fx { background: radial-gradient(ellipse at 50% -20%, rgba(120,170,255,.22), transparent 60%), repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 2px, transparent 2px 5px); }
.theme-go .fx { background-image: linear-gradient(rgba(242,230,207,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(242,230,207,.06) 1px, transparent 1px); background-size: 5vmin 5vmin; }
.theme-ice .fx { background: radial-gradient(ellipse at 50% 120%, rgba(143,211,255,.18), transparent 60%); }

.snow { position: absolute; top: -10px; color: #e6f4ff; opacity: .8; animation: fall linear infinite; }
@keyframes fall { to { transform: translateY(110vh) rotate(360deg); } }

/* 90s window chrome (used by the A.L.I.C.E. page) */
.win95 { background: #c0c0c0; color: #000; border: 2px solid; border-color: #fff #404040 #404040 #fff; box-shadow: 1px 1px 0 #000; }
.win95 .wt { background: #000080; color: #fff; font-weight: bold; padding: .2em .5em; display: flex; justify-content: space-between; }
.win95 .wt i { font-style: normal; background: #c0c0c0; color: #000; padding: 0 .4em; border: 1px solid; border-color: #fff #404040 #404040 #fff; }
