/* Phone: the chat / interactive area for each era, one design per AI. */

/* 1950 · journal page quiz */
.theme-paper .quiz { border-radius: 0; border: 0; box-shadow: 0 4px 18px rgba(60,40,10,.15); font-family: 'Noto Serif', Georgia, serif; }
.theme-paper .quiz blockquote { font-style: italic; }
.theme-paper .qbtn { border-radius: 0; border-width: 1px; font-family: 'Noto Serif', serif; }

/* 1956 · punch-card buttons and printout */
.theme-punch .ltpicks button { background: #f1e2b0; color: #2a1d0b; border: 0; border-radius: 2px; clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px); text-transform: uppercase; }

/* 1966 · ELIZA on Teletype paper */
.theme-teletype .chat { background: #f3edd9; color: #1b1a17; border: 0; border-radius: 0; }
.theme-teletype .msgs { gap: 4px; padding: 16px 16px 8px; }
.theme-teletype .bub { background: none; padding: 0; font: 17px/1.5 'Special Elite', 'Courier New', monospace; text-transform: uppercase; max-width: 100%; }
.theme-teletype .msg.me { justify-content: flex-start; }
.theme-teletype .msg.me .bub::before { content: '* '; }
.theme-teletype .msg.bot .bub { padding-left: 22px; }
.theme-teletype .composer { background: #3a3d39; border-top: 0; }
.theme-teletype .composer input { color: #f3edd9; border-color: rgba(243,237,217,.25); font-family: 'Special Elite', monospace; text-transform: uppercase; }
.theme-teletype .composer button { background: #e9c46a; color: #1b1a17; }
.theme-teletype .hints button { font-family: 'Special Elite', monospace; }

/* 1970 · SHRDLU on a vector display */
.blocks { flex: none; padding: 6px 8px 0; border: 7px solid #15191e; border-radius: 22px; background: #02070f; box-shadow: inset 0 0 24px rgba(0,0,0,.9); }
.blocks svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 2px rgba(159,214,255,.6)); }
.blocks .obj { transition: transform .55s cubic-bezier(.5,0,.3,1); }
.blocks .claw { transition: d .55s; }
.theme-vector .chat { background: #02070f; border: 1px solid var(--line); }
.theme-vector .bub { background: none; padding: 0; font: 300 15px/1.45 'IBM Plex Mono', monospace; text-shadow: var(--glow); max-width: 100%; }
.theme-vector .msg.me { justify-content: flex-start; }
.theme-vector .msg.me .bub { color: var(--muted); }
.theme-vector .msg.me .bub::before { content: 'YOU  '; }
.theme-vector .composer input { text-transform: uppercase; font-family: 'IBM Plex Mono', monospace; font-weight: 300; }

/* 1972 · PARRY on an amber CRT */
.theme-amber .head .yr { font-size: 56px; }
.theme-amber .head .nm { font-size: 34px; }
.theme-amber .head .blurb, .theme-amber .head .who { font-size: 18px; line-height: 1.2; }
.theme-amber .chat { background: #0d0700; border: 6px solid #1a1410; border-radius: 18px; box-shadow: inset 0 0 30px rgba(0,0,0,.9); }
.theme-amber .bub { background: none; padding: 0; font-size: 21px; line-height: 1.15; text-shadow: var(--glow); max-width: 100%; }
.theme-amber .msg.me { justify-content: flex-start; }
.theme-amber .msg.me .bub::before { content: '> '; color: var(--muted); }
.theme-amber .msg.me .bub { color: var(--muted); }
.theme-amber .composer input { font-size: 20px; text-transform: uppercase; }
.theme-amber .hints button { font-size: 16px; }
.sl.theme-amber { font-size: 21px; }

/* 1995 · A.L.I.C.E. as a plain web page */
.theme-web .chat { background: #fff; border: 0; border-radius: 0; box-shadow: 3px 3px 0 #808080; }
.theme-web .msgs { gap: 6px; }
.theme-web .chat::before { content: 'A.L.I.C.E. Online'; display: block; text-align: center; font: 700 22px 'Times New Roman', serif; padding: 10px 0 8px; border-bottom: 2px groove #c0c0c0; }
.theme-web .bub { background: none; padding: 0; border-radius: 0; font: 17px/1.4 'Times New Roman', serif; max-width: 100%; }
.theme-web .msg.me { justify-content: flex-start; }
.theme-web .msg.me .bub::before { content: 'Human: '; font-weight: 700; }
.theme-web .msg.bot .bub::before { content: 'ALICE: '; font-weight: 700; color: #c00000; }
.theme-web .composer { border-top: 2px groove #c0c0c0; }
.theme-web .composer input { border-radius: 0; border: 2px inset #c0c0c0; font-family: 'Times New Roman', serif; }
.theme-web .composer button { width: auto; padding: 0 14px; border-radius: 0; background: #c0c0c0; color: #000; border: 2px outset #e0e0e0; font: 15px Arial, sans-serif; }
.theme-web .composer button::after { content: 'Say'; }
.theme-web .composer button { font-size: 0; } .theme-web .composer button::after { font-size: 15px; }
.theme-web .hints button { border-radius: 0; background: #fff; color: #0000ee; text-decoration: underline; border: 0; font-family: 'Times New Roman', serif; }

/* 1997 · Deep Blue chess, IBM style */
.chesswin { flex: 1; min-height: 0; overflow-y: auto; background: #0f141e; border-top: 4px solid var(--accent); color: #f2f4f8; font-family: 'IBM Plex Sans', sans-serif; }
.ctop { display: flex; justify-content: space-between; padding: 10px 12px 0; font: 600 11px 'IBM Plex Mono', monospace; letter-spacing: .12em; color: #8d96a8; }
.cb { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: repeat(8, minmax(0, 1fr)); width: min(100% - 20px, 50dvh); aspect-ratio: 1; margin: 10px auto; container-type: inline-size; touch-action: manipulation; }
.cb .sq { position: relative; border: 0; padding: 0; margin: 0; min-width: 0; min-height: 0; overflow: hidden; }
.cb .pc { position: absolute; inset: 0; display: grid; place-items: center; font-size: 10.5cqw; line-height: 1; font-family: 'Segoe UI Symbol', 'Apple Symbols', 'DejaVu Sans', 'Noto Sans Symbols2', serif; pointer-events: none; z-index: 1; }
.cb .sq.lt { background: #e3e8f0; } .cb .sq.dk { background: #8394b8; }
.cb .sq.hl::before { content: ''; position: absolute; inset: 0; background: rgba(79,139,255,.45); }
.cb .sq.sel::before { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px #ff7a1a; }
.cb .sq.tg::after { content: ''; position: absolute; left: 36%; top: 36%; width: 28%; height: 28%; border-radius: 50%; background: rgba(15,20,30,.5); z-index: 2; }
.cb .pc.w { color: #fff; -webkit-text-stroke: .3cqw #0b0e14; } .cb .pc.b { color: #0b0e14; }
.cstat { margin: 0 10px; padding: 10px 12px; border-left: 3px solid var(--accent); background: rgba(79,139,255,.1); font-size: 13px; line-height: 1.4; height: 60px; overflow: hidden; }
.creset { margin: 10px; padding: 8px 14px; border: 1px solid rgba(79,139,255,.5); border-radius: 0; background: transparent; color: #f2f4f8; font: 600 13px 'IBM Plex Sans', sans-serif; }

/* 2023 · GPT-4 in light mode */
.theme-light23 .chat { background: #fff; border-radius: 10px; }
.theme-light23 .msgs { padding: 0; gap: 0; }
.theme-light23 .chat::before { content: '● Model: GPT-4'; display: block; text-align: center; padding: 10px; font: 600 13px var(--font); border-bottom: 1px solid var(--line); }
.theme-light23 .msg, .theme-light23 .msg.me { justify-content: flex-start; }
.theme-light23 .bub { max-width: 100%; width: 100%; border-radius: 0; padding: 14px; background: #fff; color: #202123; border-bottom: 1px solid var(--line); }
.theme-light23 .msg.bot .bub { background: #f7f7f8; }
.theme-light23 .composer input { border-color: rgba(0,0,0,.15); }
.theme-light23 .composer button { background: #202123; color: #fff; }
.theme-light23 .hints button { background: #fff; }
.theme-light23 .nav .next { color: #fff; }
