:root {
  --ink: #120d0a;
  --cream: #f3e9d8;
  --cream-dim: rgba(243, 233, 216, .72);
  --pill: rgba(18, 13, 10, .72);
  --pill-line: rgba(243, 233, 216, .22);
  --accent: #f0a35e;
  --tv-glow: #3d5cff;
  --phosphor: #9dffa8;
  --font-ui: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-crt: "VT323", ui-monospace, monospace;
  --font-hand: "Caveat", "Comic Sans MS", cursive;
  --ease-cam: cubic-bezier(.65, 0, .25, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--cream); }
body {
  font-family: var(--font-ui);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 50;
  background: var(--cream); color: var(--ink); padding: 8px 12px; border-radius: 6px;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 26px;
  pointer-events: none;
  background: linear-gradient(rgba(10, 7, 5, .55), rgba(10, 7, 5, 0));
}
.top a { pointer-events: auto; text-decoration: none; }
.brand {
  font-weight: 900; font-stretch: 125%;
  text-transform: uppercase; letter-spacing: .06em; font-size: 15px;
}
.nav { display: flex; gap: 6px; }
.nav a {
  font-stretch: 100%; font-weight: 500; text-transform: uppercase;
  letter-spacing: .1em; font-size: 19px;
  padding: 5px 12px 4px; border-radius: 3px;
  color: var(--cream-dim);
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--cream); }
.nav a[aria-current="page"] { background: var(--cream); color: var(--ink); font-weight: 700; }

/* ---------- Stage & camera ---------- */
.stage { position: fixed; inset: 0; overflow: hidden; background: #0c0806; }
.scene {
  position: absolute; left: 0; top: 0;
  width: 2048px; height: 1152px;
  transform-origin: 0 0;
  transition: transform 1.25s var(--ease-cam), filter .9s;
}
.scene.instant { transition: none; }
.photo { position: absolute; inset: 0; width: 2048px; height: 1152px; display: block; user-select: none; -webkit-user-drag: none; }
.rain { position: absolute; left: 0; top: 0; width: 2048px; height: 910px; pointer-events: none; transition: filter 1s; }
.glow { position: absolute; pointer-events: none; mix-blend-mode: screen; }
.lamp-glow {
  left: 120px; top: 260px; width: 760px; height: 760px;
  background: radial-gradient(closest-side, rgba(255,170,90,.32), rgba(255,140,60,.1) 55%, transparent);
  animation: lamp 7s ease-in-out infinite;
  transition: opacity .5s;
}
body.lamp-off .lamp-glow { opacity: 0; }
body.lamp-off .photo { filter: brightness(.5) saturate(.85); }
body.lamp-off .tv-glow { opacity: 1; filter: brightness(1.35); }
.photo { transition: filter .5s; }
@keyframes lamp { 50% { opacity: .82; } }
.tv-glow {
  left: 560px; top: 420px; width: 1080px; height: 720px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tv-glow) 34%, transparent), transparent);
  transition: background .6s;
}
.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(75% 80% at 50% 55%, transparent 60%, rgba(0,0,0,.55));
}

/* Paper labels stuck on the tape spines */
.tapes { position: absolute; inset: 0; pointer-events: none; }
.tape-label {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(#efe4cc, #ddd0b3);
  color: #2b1d12;
  font-family: var(--font-ui); font-weight: 800; font-stretch: 80%;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden;
  border-radius: 1px;
  box-shadow: 0 1px 0 rgba(0,0,0,.35);
  filter: brightness(.62) sepia(.25);
}

.hot { position: absolute; cursor: pointer; border-radius: 24px; transition: background .3s; }
body.at-desk .hot:hover { background: radial-gradient(closest-side, rgba(255,236,210,.13), transparent); }
body:not(.at-desk) .hot { cursor: default; pointer-events: none; }

/* Depth of field when focused on something */
body.focus-tv .photo { filter: brightness(.8); }
body.focus-tv .rain { filter: blur(2px); }
body.focus-pad .scene { filter: brightness(.55) blur(1.5px); }

.hint {
  position: fixed; z-index: 25; pointer-events: none;
  padding: 5px 10px 4px; border-radius: 999px;
  background: var(--pill); border: 1px solid var(--pill-line);
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  white-space: nowrap; opacity: 0; transform: translate(14px, 14px);
  transition: opacity .15s;
  backdrop-filter: blur(6px);
}
.hint.on { opacity: 1; }

/* ---------- CRT ---------- */
.crt {
  position: absolute; left: 872px; top: 554px; width: 320px; height: 242px;
  border-radius: 22px / 20px;
  overflow: hidden;
  background: #04060c;
  box-shadow: 0 0 40px 2px color-mix(in srgb, var(--tv-glow) 45%, transparent);
  cursor: pointer;
  transition: box-shadow .6s;
}
body:not(.at-desk) .crt { cursor: default; }
.crt-content { position: absolute; inset: 0; animation: flicker 6s infinite steps(1); }
.crt-scan {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(rgba(0,0,0,.28) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
.crt-glare {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background:
    radial-gradient(120% 90% at 30% 15%, rgba(255,255,255,.11), transparent 45%),
    radial-gradient(100% 100% at 50% 50%, transparent 60%, rgba(0,0,0,.6) 100%);
  box-shadow: inset 0 0 22px rgba(0,0,0,.85);
}
.crt-noise { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.crt.switching .crt-noise { opacity: 1; }
.crt.switching .crt-content { animation: roll .32s steps(6); }
@keyframes flicker { 0%, 100% { opacity: 1; } 47% { opacity: .96; } 48% { opacity: 1; } 81% { opacity: .97; } }
@keyframes roll { from { transform: translateY(-18%); } to { transform: translateY(0); } }

/* VHS blue screen */
.vhs {
  position: absolute; inset: 0; padding: 22px 26px;
  background: radial-gradient(130% 120% at 50% 40%, #2f4cff, #1a2ab8 70%, #101a7a);
  font-family: var(--font-crt); color: #f4f6ff; font-size: 15px; letter-spacing: .04em;
  text-shadow: 0 0 4px rgba(255,255,255,.6), 2px 0 0 rgba(255,60,60,.25), -2px 0 0 rgba(60,200,255,.25);
  display: flex; flex-direction: column;
}
.vhs-row { display: flex; justify-content: space-between; }
.vhs-mid { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.vhs-hi { font-size: 30px; line-height: 1; }
.vhs-sub { font-size: 14px; opacity: .85; }
.vhs-bar { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.vhs-bar i { display: inline-block; width: 5px; height: 9px; margin-right: 2px; background: #f4f6ff; opacity: .25; }
.vhs-bar i.on { opacity: 1; }
.blink { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* About pager */
.pager {
  position: absolute; inset: 0; padding: 16px 20px 14px;
  background: #020a04; color: var(--phosphor);
  font-family: var(--font-crt); font-size: 13.5px; line-height: 1.12;
  text-shadow: 0 0 5px rgba(120,255,140,.55);
  display: flex; flex-direction: column;
}
.pager-bar { display: flex; justify-content: space-between; background: var(--phosphor); color: #021004; padding: 0 5px; text-shadow: none; }
.pager-body { flex: 1; overflow-y: auto; scrollbar-width: none; padding: 6px 2px 4px; }
.pager-body::-webkit-scrollbar { display: none; }
.pager-body p { margin: 0 0 9px; }
.pager-body h3 { font: inherit; margin: 12px 0 6px; color: #e9ffe9; }
.pager-body h3::before { content: "> "; }
.pager-body a { color: #e9ffe9; text-decoration: underline; text-underline-offset: 2px; }
.pager-body a:hover, .pager-body a:focus { background: var(--phosphor); color: #021004; outline: none; }

/* Teletext */
.ttx {
  position: absolute; inset: 0; padding: 14px 20px 12px;
  background: #000; color: #fff;
  font-family: var(--font-crt); font-size: 12.5px; line-height: 1.08;
  text-shadow: 0 0 3px rgba(255,255,255,.45);
  display: flex; flex-direction: column;
}
.ttx-head { display: flex; gap: 8px; white-space: nowrap; }
.ttx-head .y { color: #ffef3a; }
.ttx-head .c { color: #4ff6ff; }
.ttx-band {
  display: flex; justify-content: space-between; align-items: center;
  margin: 3px 0 5px; padding: 1px 6px;
  background: #1f33ff; color: #ffef3a;
}
.ttx-band b { font-weight: 400; font-size: 21px; letter-spacing: .06em; }
.ttx-band span { color: #fff; }
.ttx-list { flex: 1; list-style: none; margin: 0; padding: 0; }
.ttx-list li { display: grid; grid-template-columns: 26px 1fr; gap: 0 4px; padding: 1px 2px; cursor: pointer; }
.ttx-list li .n { color: #ffef3a; }
.ttx-list li .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ttx-list li .d { grid-column: 2; color: #4ff6ff; font-size: 11px; }
.ttx-list li.sel, .ttx-list li:hover { background: #fff; color: #000; text-shadow: none; }
.ttx-list li.sel .n, .ttx-list li:hover .n { color: #b00000; }
.ttx-list li.sel .d, .ttx-list li:hover .d { color: #0024b0; }
.ttx-fast { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; font-size: 11.5px; }
.ttx-fast span { cursor: pointer; }
.ttx-fast .r { color: #ff3b3b; } .ttx-fast .g { color: #3bff5a; }
.ttx-fast .yy { color: #ffef3a; } .ttx-fast .cc { color: #4ff6ff; }

/* Online terminal */
.term {
  position: absolute; inset: 0; padding: 16px 20px 10px;
  background: #050505; color: #bfc7ff;
  font-family: var(--font-crt); font-size: 12.5px; line-height: 1.08;
  text-shadow: 0 0 4px rgba(170,180,255,.5);
  display: flex; flex-direction: column;
}
.term-out { flex: 1; white-space: pre-wrap; overflow: hidden; }
.term-out .w { color: #fff; }
.term-out .gr { color: #7dff9b; }
.term-out a { color: #ffe66b; text-decoration: none; }
.term-out a:hover, .term-out a:focus { background: #ffe66b; color: #000; outline: none; }
.term-status { display: flex; justify-content: space-between; background: #26308a; color: #e6e9ff; padding: 0 5px; font-size: 12px; }
.cursor { display: inline-block; width: 7px; height: 12px; background: currentColor; vertical-align: -1px; animation: blink 1s steps(1) infinite; }

/* ---------- Notepad ---------- */
.notepad {
  position: fixed; z-index: 20;
  right: max(4vw, 24px); top: 78px; bottom: 70px;
  width: min(520px, 92vw);
  display: flex; flex-direction: column;
  transform: translateY(115%) rotate(7deg);
  transition: transform .9s var(--ease-cam);
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.6));
}
.notepad.open { transform: translateY(0) rotate(-1.2deg); }
.pad-binding { height: 34px; background: linear-gradient(#7c2f24, #5e2219); border-radius: 3px 3px 0 0; box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); }
.pad-page {
  flex: 1; overflow-y: auto; scrollbar-width: thin;
  padding: 18px 30px 30px 64px;
  color: #1d2742;
  font-family: var(--font-hand); font-size: 25px; line-height: 32px;
  background:
    linear-gradient(90deg, transparent 46px, rgba(214,72,60,.55) 46px 47.5px, transparent 47.5px 51px, rgba(214,72,60,.4) 51px 52px, transparent 52px),
    repeating-linear-gradient(transparent 0 31px, rgba(80,130,190,.42) 31px 32px),
    linear-gradient(#f4e5a1, #f1df93);
  background-attachment: local;
}
.pad-title { font-family: var(--font-hand); font-weight: 700; font-size: 52px; line-height: 64px; margin: 0; color: #121a30; }
.pad-title::after { content: ""; display: block; width: 120px; height: 3px; background: #c2423a; border-radius: 2px; margin-top: -10px; transform: rotate(-1deg); }
.pad-h { font-weight: 700; color: #c2423a; font-size: 26px; margin: 10px 0 0; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.pad-row { position: relative; }
.pad-row button {
  all: unset; box-sizing: border-box; width: 100%; cursor: pointer;
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 12px;
}
.pad-row .num { position: absolute; left: -44px; top: 0; font-size: 19px; color: #5a6a8a; }
.pad-row .nm { font-weight: 700; }
.pad-row .meta { font-size: 21px; color: #44506d; }
.pad-row button:hover .nm, .pad-row button:focus-visible .nm { text-decoration: underline wavy #c2423a 1.5px; text-underline-offset: 5px; }
.pad-more { font-size: 21px; color: #344064; padding: 0 0 0 14px; border-left: 2px solid rgba(194,66,58,.5); margin: 0 0 4px; }
.pad-more a { color: #a3332b; font-weight: 700; }

/* ---------- Bottom controls ---------- */
.controls {
  position: fixed; right: 20px; bottom: 16px; z-index: 30;
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end;
}
.pill {
  appearance: none; cursor: pointer;
  padding: 7px 14px 6px; border-radius: 999px;
  background: var(--pill); border: 1px solid var(--pill-line);
  color: var(--cream);
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  backdrop-filter: blur(8px);
  transition: background .2s, border-color .2s;
}
.pill:hover { background: rgba(40, 28, 20, .85); border-color: rgba(243,233,216,.45); }
#btn-sound[aria-pressed="true"] { border-color: var(--accent); color: #ffd3a3; }

/* ---------- Lo-fi text version ---------- */
.lofi-page { display: none; }
html.lofi body { overflow: auto; }
html.lofi .stage, html.lofi .notepad, html.lofi .hint, html.lofi #btn-sound, html.lofi #btn-back { display: none !important; }
html.lofi .top { position: sticky; background: rgba(18,13,10,.92); backdrop-filter: blur(8px); }
html.lofi .nav a { font-size: 15px; padding: 4px 8px; }
html.lofi .lofi-page { display: block; }
html.lofi .skip { display: none; }

.lofi-page {
  max-width: 720px; margin: 0 auto; padding: 40px 16px 120px;
  font-size: 17px; line-height: 1.6; color: #eadfcd;
}
.lofi-page:focus { outline: none; }
.lofi-page h1 { font-stretch: 125%; font-weight: 900; font-size: clamp(34px, 7vw, 54px); line-height: 1.02; margin: 18px 0 14px; text-transform: uppercase; letter-spacing: .01em; }
.lofi-page .lede { font-size: 19px; color: #f6eee1; margin: 0 0 8px; }
.lofi-page .muted { color: #a8998a; }
.lofi-page h2 {
  font-stretch: 110%; font-weight: 800; font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin: 56px 0 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(243,233,216,.14);
}
.lofi-page h3 { font-size: 17px; margin: 22px 0 6px; color: #fff4e3; }
.lofi-page p { margin: 0 0 14px; }
.lofi-page a { color: #ffd3a3; text-underline-offset: 3px; }
.lofi-note {
  border: 1px solid rgba(243,233,216,.16); border-radius: 10px;
  padding: 14px 16px; font-size: 14px; color: #c6b8a6; background: rgba(255,255,255,.03);
}
.lofi-note button { all: unset; cursor: pointer; color: #ffd3a3; text-decoration: underline; text-underline-offset: 3px; }
.lofi-list { list-style: none; margin: 0; padding: 0; }
.lofi-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid rgba(243,233,216,.08); }
.lofi-list .nm { font-weight: 700; color: #fff4e3; }
.lofi-list .meta { color: #a8998a; font-size: 14px; white-space: nowrap; }
.lofi-list .bl { grid-column: 1 / -1; color: #c6b8a6; font-size: 15px; }
.lofi-posts li { grid-template-columns: 1fr auto; }
.lofi-posts a { color: #f3e9d8; text-decoration: none; }
.lofi-posts a:hover { color: #ffd3a3; text-decoration: underline; }

@media (max-width: 720px) {
  .top { padding: 14px 16px; }
  .brand { font-size: 13px; }
  .nav { gap: 0; }
  .nav a { font-size: 13px; padding: 4px 6px; letter-spacing: .06em; }
  .controls { right: 12px; bottom: 12px; }
  .notepad { right: 4vw; top: 64px; bottom: 64px; }
  .pad-page { padding: 14px 18px 24px 58px; font-size: 22px; }
  .lofi-list li { grid-template-columns: 1fr; }
  .lofi-list .meta { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .scene, .notepad { transition-duration: .01s; }
  .steam path, .led, .crt-content, .blink, .cursor { animation: none; }
}

/* ================================================================ Weather, rooms, new props */

/* the next weather photo fades in over the current one */
.photo-next { opacity: 0; transition: opacity 1.2s ease; }
.photo-next.show { opacity: 1; }
/* no lamp glow on a bright dry day */
body.is-day:not(.is-rain) .lamp-glow { opacity: 0; }
body.is-day:not(.is-rain) .tv-glow { opacity: .5; }

/* two rooms: the PC fades in over the desk */
/* the camera pans right from the desk to the computer corner */
.room-desk, .room-pc { transition: transform 1.25s var(--ease-cam), translate 1.3s var(--ease-cam), filter .6s; }
.room-pc { translate: 100vw 0; pointer-events: none; }
body.in-pc .room-pc { translate: 0 0; pointer-events: auto; }
body.in-pc .room-desk { translate: -100vw 0; pointer-events: none; }
body.panning .room-desk, body.panning .room-pc { filter: blur(3px); }
/* on a narrow portrait screen each room is far wider than the screen, so a one-screen slide
   isn't enough to hide the other room: hide it outright, except while the camera pans */
body:not(.in-pc):not(.panning) .room-pc, body.in-pc:not(.panning) .room-desk { visibility: hidden; }
body:not(.at-pc) .pc-hot { pointer-events: none; cursor: default; }
body.at-pc .pc-hot, body.focus-pc #hot-robot { pointer-events: auto; cursor: pointer; }
body.focus-pc .room-pc .photo { filter: brightness(.85); }

.pan-btn {
  position: fixed; top: 50%; z-index: 26; translate: 0 -50%;
  padding: 10px 14px; border-radius: 999px; cursor: pointer;
  background: var(--pill); border: 1px solid var(--pill-line); color: var(--cream);
  font: 700 12px var(--font-ui); letter-spacing: .14em; text-transform: uppercase;
  backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .4s, background .2s;
}
.pan-btn:hover { background: rgba(40, 28, 20, .9); }
.pan-right { right: 18px; }
.pan-left { left: 18px; }
body.at-desk .pan-right, body.at-pc .pan-left { opacity: 1; pointer-events: auto; }
/* on a phone the middle of the screen is the TV: put the pan buttons under the menu */
@media (max-width: 640px) { .pan-btn { top: 78px; translate: none; } }

/* TV knobs: a quarter turn when clicked */
.knob { border-radius: 50%; }
.knob.turned { animation: knob .35s ease-out; }
@keyframes knob { 0% { box-shadow: inset 0 0 0 3px rgba(255,236,210,.55); transform: rotate(0); } 100% { box-shadow: inset 0 0 0 3px rgba(255,236,210,0); transform: rotate(90deg); } }
body.focus-tv .knob { pointer-events: auto; cursor: pointer; }

/* channel number flashing up in the corner of the TV */
.osd {
  position: absolute; bottom: 30px; right: 22px; z-index: 3;
  font-family: var(--font-crt); font-size: 15px; color: #7dff8a; letter-spacing: .06em;
  text-shadow: 0 0 6px #3dff5a, 2px 2px 0 #000;
  animation: osd 2.2s steps(1) forwards;
}
@keyframes osd { 90% { opacity: 1; } 100% { opacity: 0; } }

/* Filem Klasik */
.film { position: absolute; inset: 0; background: #000; }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(1.05); }
.film-grain {
  position: absolute; inset: -20%; pointer-events: none; opacity: .22; mix-blend-mode: overlay;
  background-image: radial-gradient(rgba(255,255,255,.9) .6px, transparent .8px), radial-gradient(rgba(0,0,0,.9) .6px, transparent .8px);
  background-size: 3px 3px, 4px 4px; animation: grain .5s steps(4) infinite;
}
@keyframes grain { 25% { transform: translate(-3px, 2px); } 50% { transform: translate(2px, -3px); } 75% { transform: translate(-2px, -1px); } }
.film-tag { position: absolute; left: 18px; top: 14px; font-family: var(--font-crt); font-size: 14px; color: #fff; text-shadow: 2px 2px 0 #000; letter-spacing: .08em; }
.film-note { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-family: var(--font-crt); font-size: 11px; color: rgba(255,255,255,.75); text-shadow: 1px 1px 0 #000; }
.film-none { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-family: var(--font-crt); font-size: 22px; color: #fff; background: repeating-linear-gradient(90deg, #c0c0c0 0 14%, #c0c000 14% 28%, #00c0c0 28% 42%, #00c000 42% 56%, #c000c0 56% 70%, #c00000 70% 84%, #0000c0 84% 100%); text-shadow: 2px 2px 0 #000; }

/* Sejarah Komputer */
.hist { background: #000030; }
.hist-year { font-family: var(--font-crt); font-size: 58px; line-height: 1; color: #ffef3a; margin: 12px 0 6px; text-shadow: 0 0 8px rgba(255,239,58,.5); }
.hist-text { flex: 1; font-size: 15px; line-height: 1.2; color: #fff; }

/* Lepak FM */
.radio { position: absolute; inset: 0; padding: 16px 20px 12px; background: radial-gradient(120% 120% at 50% 0%, #3a0f2e, #0b0410 70%); display: flex; flex-direction: column; font-family: var(--font-crt); color: #ffd1ea; }
.radio-head { display: flex; justify-content: space-between; font-size: 16px; letter-spacing: .08em; color: #ff7ab8; text-shadow: 0 0 6px #ff3d9a; }
.radio canvas { width: 100%; flex: 1; min-height: 0; margin: 6px 0; }
.radio-now { font-size: 14px; text-align: center; }
.radio-foot { display: flex; justify-content: space-between; font-size: 12px; margin-top: 4px; }
.radio-foot span { cursor: pointer; color: #ffef3a; }

/* ---------- Flip clock on the desk ---------- */
.flip { position: absolute; inset: 0; pointer-events: none; }
.fc { position: absolute; perspective: 200px; font-family: var(--font-ui); font-weight: 800; font-stretch: 75%; color: #efe7d6; filter: brightness(.82); }
.fc > span { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; background: linear-gradient(#1d1b19, #121110); }
.fc > span b { position: absolute; left: 0; right: 0; height: 200%; display: grid; place-items: center; font-size: 62px; line-height: 1; font-weight: inherit; }
.fc .fc-top, .fc .fc-flap-top { top: 0; border-radius: 4px 4px 0 0; }
.fc .fc-bot, .fc .fc-flap-bot { bottom: 0; border-radius: 0 0 4px 4px; background: linear-gradient(#171514, #0d0c0b); }
.fc .fc-top b, .fc .fc-flap-top b { top: 0; }
.fc .fc-bot b, .fc .fc-flap-bot b { bottom: 0; }
.fc::after { content: ""; position: absolute; left: 0; right: 0; top: calc(50% - 1px); height: 2px; background: #000; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.fc .fc-flap { visibility: hidden; backface-visibility: hidden; }
.fc .fc-flap-top { transform-origin: bottom; }
.fc .fc-flap-bot { transform-origin: top; transform: rotateX(90deg); }
.fc.flipping .fc-flap { visibility: visible; }
.fc.flipping .fc-flap-top { animation: flipTop .3s ease-in forwards; }
.fc.flipping .fc-flap-bot { animation: flipBot .3s .3s ease-out forwards; }
@keyframes flipTop { to { transform: rotateX(-90deg); } }
@keyframes flipBot { to { transform: rotateX(0); } }

/* ---------- The PC ---------- */
.pc-crt {
  left: 775px; top: 195px; width: 533px; height: 450px;
  border-radius: 30px / 26px;
  background: #050c08;
  box-shadow: 0 0 60px 4px rgba(120,255,170,.12);
}
.pc-crt .crt-scan { background: repeating-linear-gradient(rgba(0,0,0,.22) 0 2px, transparent 2px 5px); }
.pc-note {
  position: absolute; left: 1281px; top: 602px; width: 104px; height: 114px; z-index: 5;
  background: url(../img/pc-shelves.webp) -1281px -602px / 2048px 1152px no-repeat;
  display: grid; place-items: center; text-decoration: none;
  transform-origin: top center;
}
.pc-note span { font-family: var(--font-hand); font-weight: 700; font-size: 18px; line-height: .95; color: #24305a; transform: rotate(-4deg); text-align: center; opacity: .88; }
.pc-note:hover { filter: brightness(1.12); }

.post { position: absolute; inset: 0; padding: 40px 48px; white-space: pre; font-family: var(--font-crt); font-size: 28px; line-height: 1.15; color: #b8ffc8; text-shadow: 0 0 6px rgba(120,255,160,.6); background: #020804; }

/* Siang 95 */
.w95 {
  position: absolute; inset: 0; font-family: Tahoma, Verdana, "Segoe UI", sans-serif; font-size: 20px; color: #000;
  background: radial-gradient(120% 100% at 50% 40%, #1d8a8a, #0b5e60);
}
.w95-icons { position: absolute; left: 30px; top: 26px; display: grid; gap: 10px; }
.w95-icon { all: unset; cursor: pointer; width: 110px; display: grid; justify-items: center; gap: 4px; color: #fff; font-size: 17px; text-align: center; text-shadow: 1px 1px 0 #000; }
.w95-icon .ico { font-size: 34px; line-height: 1; text-shadow: none; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.4)); }
.w95-icon:hover span:last-child, .w95-icon:focus-visible span:last-child { background: #000080; outline: 1px dotted #fff; }
.w95-window {
  position: absolute; left: 165px; top: 30px; right: 46px; bottom: 82px;
  background: #c0c0c0; display: flex; flex-direction: column;
  box-shadow: inset -2px -2px 0 #000, inset 2px 2px 0 #fff, inset -4px -4px 0 #808080, inset 4px 4px 0 #dfdfdf;
  padding: 5px;
}
.w95-title { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 4px 10px; background: linear-gradient(90deg, #000080, #1084d0); color: #fff; font-weight: 700; font-size: 19px; }
.w95-btns { display: flex; gap: 3px; }
.w95-btns i { font-style: normal; width: 26px; height: 22px; display: grid; place-items: center; background: #c0c0c0; color: #000; font-size: 16px; line-height: 1; box-shadow: inset -1px -1px 0 #000, inset 1px 1px 0 #fff, inset -2px -2px 0 #808080; cursor: pointer; }
.w95-menu { display: flex; gap: 18px; padding: 4px 8px; font-size: 18px; }
.w95-text { flex: 1; overflow-y: auto; background: #fff; padding: 12px 16px; font-family: "Courier New", monospace; font-size: 23px; line-height: 1.35; box-shadow: inset 2px 2px 0 #808080, inset -2px -2px 0 #fff; scrollbar-width: thin; }
.w95-text p { margin: 0 0 14px; }
.w95-text h3 { font: inherit; font-weight: 700; margin: 18px 0 6px; }
.w95-text a { color: #0000ee; }
.w95-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 44px 6px 34px; background: #c0c0c0; box-shadow: inset 0 2px 0 #fff; }
.w95-start { all: unset; padding: 6px 14px; font-weight: 700; font-size: 19px; box-shadow: inset -2px -2px 0 #000, inset 2px 2px 0 #fff, inset -3px -3px 0 #808080; cursor: default; }
.w95-task { flex: 1; max-width: 300px; padding: 6px 12px; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: inset 2px 2px 0 #000, inset -2px -2px 0 #fff; background: #d8d8d8; }
.w95-task:empty { visibility: hidden; }
.w95-tray { margin-left: auto; padding: 6px 14px; font-size: 18px; box-shadow: inset 2px 2px 0 #808080, inset -2px -2px 0 #fff; }

/* mIRC */
.irc { flex: 1; display: grid; grid-template-columns: 1fr 170px; gap: 4px; min-height: 0; margin-top: 4px; }
.irc-log { overflow-y: auto; background: #fff; padding: 10px 12px; font-family: "Fixedsys", "Courier New", monospace; font-size: 21px; line-height: 1.35; box-shadow: inset 2px 2px 0 #808080; scrollbar-width: thin; }
.irc-line .ts { color: #7f7f7f; }
.irc-line.sys { color: #009300; }
.irc-line.me { color: #00007f; }
.irc-line a { color: #fc7f00; font-weight: 700; text-decoration: none; }
.irc-line a:hover { text-decoration: underline; }
.irc-nicks { list-style: none; margin: 0; padding: 10px; background: #fff; font-family: "Courier New", monospace; font-size: 17px; box-shadow: inset 2px 2px 0 #808080; }
.irc-nicks li { padding: 2px 0; }
.irc-nicks em { color: #888; font-style: normal; font-size: 14px; }
.irc-nicks .me { color: #00007f; }
.irc-input { margin-top: 4px; }
.irc-input input { width: 100%; box-sizing: border-box; padding: 6px 10px; font: 18px "Courier New", monospace; border: 0; box-shadow: inset 2px 2px 0 #808080, inset -2px -2px 0 #fff; outline: none; }

/* notepad additions */
.pad-li { margin: 0; }
.pad-big { color: #a3332b; font-weight: 700; }
.pad-doodle { color: #6a5a8a; transform: rotate(-2deg); margin-top: 32px; }

/* The PC's screen UI is laid out at 768 x 648 and scaled into the 533 x 450 glass */
.pc-crt .crt-content { width: 768px; height: 648px; transform: scale(.694); transform-origin: 0 0; inset: auto; left: 0; top: 0; }
.pc-crt[data-power="off"] { background: #0b0d0b; box-shadow: none; }
.pc-crt[data-power="off"] .crt-content::after {
  content: "\23FB  click to switch on"; position: absolute; inset: 0; display: grid; place-items: center;
  font: 26px var(--font-crt); color: rgba(170,255,190,.22); letter-spacing: .1em;
}
body:not(.at-pc) .pc-crt[data-power="off"] .crt-content::after { content: ""; }
body.at-pc .pc-crt { cursor: pointer; }

/* modem lights */
.modem-leds i { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; opacity: 0; }
.modem-leds.on i { opacity: 1; background: radial-gradient(#fff6c8, #ff9a2b 45%, transparent 70%); box-shadow: 0 0 10px 2px rgba(255,150,40,.7); }
.modem-leds.on i:nth-child(1), .modem-leds.on i:nth-child(6) { background: radial-gradient(#e9ffd9, #57ff6a 45%, transparent 70%); box-shadow: 0 0 10px 2px rgba(80,255,110,.6); }
.modem-leds.busy i:nth-child(3), .modem-leds.busy i:nth-child(4) { animation: led-busy .09s steps(1) infinite; }
.modem-leds.busy i:nth-child(5) { animation: led-busy .14s steps(1) infinite; }
@keyframes led-busy { 50% { opacity: .1; } }

/* Kopi-Bot */
.robot { position: absolute; inset: 0; pointer-events: none; }
.robot-body { position: absolute; transform-origin: 50% 97%; }
.robot-body img { position: absolute; inset: 0; width: 100%; height: 100%; }
.robot.dancing .robot-body, .robot.party .robot-body { animation: robo-dance .8s ease-in-out infinite; }
.robot.party .robot-body { animation-duration: .35s; }
@keyframes robo-dance { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) translateY(-6px); } }
.robot .eye { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; }
.robot .eye b { position: absolute; left: 7px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: #170c08; box-shadow: 0 0 0 2px rgba(255,255,255,.35); transition: transform .12s; }
.robot.modem .eye b, .robot.talking .eye b { background: #ff5a3a; box-shadow: 0 0 10px 3px rgba(255,90,58,.8); }
.robot.modem .eye b { animation: led-busy .2s steps(1) infinite; }
.robot.asleep .eye b { transform: none !important; height: 2px; top: 10px; }
.robot-mouth { position: absolute; left: 72px; top: 112px; width: 52px; height: 15px; border-radius: 3px; opacity: 0; background: #ff6a3d; box-shadow: 0 0 12px 3px rgba(255,106,61,.7); mix-blend-mode: screen; }
.robot.talking .robot-mouth { animation: talk .18s steps(2) infinite; }
@keyframes talk { 0% { opacity: .85; } 50% { opacity: .2; } }
.bubble {
  position: fixed; z-index: 28; width: min(320px, 80vw);
  padding: 12px 16px; border-radius: 14px 14px 4px 14px;
  background: #fffaf0; color: #1f1a16; font: 600 15px/1.4 var(--font-ui); cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.bubble.pop { animation: pop .25s ease-out; }
@keyframes pop { from { transform: scale(.8); opacity: 0; } }
body.party .room-pc .photo { animation: party-hue 1s linear infinite; }
@keyframes party-hue { to { filter: hue-rotate(360deg) saturate(1.4); } }

/* dial-up window */
.dialer { position: absolute; inset: 0; background: radial-gradient(120% 100% at 50% 40%, #1d8a8a, #0b5e60); display: grid; place-items: center; font-family: Tahoma, Verdana, sans-serif; }
.dialer-win { width: 560px; background: #c0c0c0; padding: 5px; box-shadow: inset -2px -2px 0 #000, inset 2px 2px 0 #fff, inset -4px -4px 0 #808080; }
.dialer-body { padding: 22px; display: grid; gap: 16px; justify-items: center; font-size: 22px; color: #000; }
.dialer-icon { font-size: 48px; letter-spacing: 8px; }
.dialer-bar { width: 100%; height: 26px; padding: 3px; box-shadow: inset 2px 2px 0 #808080, inset -2px -2px 0 #fff; }
.dialer-bar i { display: block; height: 100%; width: 4%; background: repeating-linear-gradient(90deg, #000080 0 16px, transparent 16px 20px); transition: width .4s; }
.w95-btn { font: 20px Tahoma, sans-serif; padding: 6px 26px; background: #c0c0c0; border: 0; box-shadow: inset -2px -2px 0 #000, inset 2px 2px 0 #fff, inset -3px -3px 0 #808080; cursor: pointer; }

/* Berita Tek */
.nav-bar { display: flex; gap: 8px; align-items: center; padding: 4px 6px; font-size: 17px; }
.nav-bar input { flex: 1; font: 17px "Courier New", monospace; padding: 3px 6px; border: 0; box-shadow: inset 2px 2px 0 #808080; }
.news { font-family: "Times New Roman", Times, serif; font-size: 24px; }
.news h3 { font-family: Tahoma, sans-serif; }
.news ol { padding-left: 30px; margin: 0; }
.news li { margin-bottom: 10px; line-height: 1.25; }
.news .site, .news .meta { font-size: 16px; color: #555; font-family: Tahoma, sans-serif; }
.news-load { animation: blink 1s steps(1) infinite; }

/* steam from the teh tarik and the kopi */
.steam-canvas { position: absolute; pointer-events: none; filter: blur(1.2px); mix-blend-mode: screen; }

/* Kopi-Bot peeking in from the corner while you read the PC screen */
.robot-peek {
  position: fixed; right: 26px; bottom: 58px; z-index: 27; width: 84px; height: 124px; padding: 8px 6px 0; border: 0; cursor: pointer;
  background: rgba(18,13,10,.82) url(../img/robot.webp) 50% 8px / 72px auto no-repeat;
  border-radius: 14px 14px 0 0; box-shadow: 0 0 0 2px rgba(243,233,216,.25), 0 10px 26px rgba(0,0,0,.5);
  translate: 0 150%; transition: translate .5s var(--ease-cam) .6s;
}
body.focus-pc .robot-peek { translate: 0 0; }
.robot-peek:hover { box-shadow: 0 0 0 2px rgba(255,214,170,.7), 0 10px 26px rgba(0,0,0,.5); }
body.party .robot-peek, body.tape-on.focus-pc .robot-peek { animation: robo-dance .8s ease-in-out infinite; transform-origin: 50% 100%; }

/* Radio Dunia */
.world { position: absolute; inset: 0; padding: 14px 20px 10px; display: flex; flex-direction: column; gap: 5px; font-family: var(--font-crt); color: #c9fff4;
  background: radial-gradient(130% 120% at 50% 0%, #073b3a, #02100f 70%); text-shadow: 0 0 5px rgba(63,224,200,.5); }
.world-head { display: flex; justify-content: space-between; font-size: 16px; letter-spacing: .08em; color: #3fe0c8; }
.world.live .world-head span:last-child { color: #ff6a5a; animation: blink 1.2s steps(1) infinite; }
.world-bands { display: flex; gap: 6px; font-size: 11px; }
.world-bands span { padding: 0 5px; border: 1px solid rgba(63,224,200,.4); cursor: pointer; }
.world-bands span.on { background: #3fe0c8; color: #02100f; text-shadow: none; }
.world-now { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 8px; }
.world-now b { font-weight: 400; font-size: 17px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.world-now small { grid-column: 1; font-size: 11px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.world-eq { grid-column: 2; grid-row: 1 / 3; display: flex; gap: 2px; align-items: end; height: 26px; }
.world-eq i { width: 3px; height: 3px; background: #3fe0c8; }
.world.live .world-eq i { animation: eq .5s ease-in-out infinite alternate; }
.world.live .world-eq i:nth-child(3n) { animation-duration: .38s; } .world.live .world-eq i:nth-child(4n+1) { animation-duration: .62s; }
.world.live .world-eq i:nth-child(5n+2) { animation-duration: .44s; animation-delay: -.2s; }
@keyframes eq { from { height: 3px; } to { height: 24px; } }
.world-list { flex: 1; list-style: none; margin: 2px 0 0; padding: 0; font-size: 12.5px; overflow: hidden; }
.world-list li { padding: 1px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; opacity: .7; }
.world-list li.sel { opacity: 1; background: rgba(63,224,200,.18); }
.world-list li:hover { opacity: 1; }
.world-foot { display: flex; justify-content: space-between; font-size: 11px; color: #ffef3a; }
.world-foot span { cursor: pointer; }

/* The portrait frame beside the PC, leaning back like the card in the photo */
.legend-frame {
  position: absolute; left: 1410px; top: 675px; width: 136px; height: 130px; padding: 0; border: 0;
  background: #e9e1d0; transform: skewX(2.5deg); transform-origin: 0 0; cursor: default; pointer-events: none;
  box-shadow: inset 0 0 10px rgba(60,40,20,.35); transition: filter .3s;
  filter: brightness(.66) saturate(.9) sepia(.2);  /* lit by the room, not glowing */
}
.legend-frame canvas { width: 100%; height: 100%; display: block; }
body.at-pc .legend-frame { pointer-events: auto; cursor: pointer; }
body.at-pc .legend-frame:hover, body.at-pc .legend-frame:focus-visible { filter: brightness(.82) saturate(.95) sepia(.15); outline: none; }

.legend-card {
  position: fixed; z-index: 29; width: min(460px, calc(100vw - 24px));
  display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: start;
  padding: 16px; border-radius: 14px; background: rgba(12, 20, 40, .94); color: #e8eef6;
  box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(150,180,230,.18);
  backdrop-filter: blur(8px); pointer-events: none;
}
.legend-card img { width: 132px; height: 132px; border-radius: 4px; }
.legend-card blockquote { margin: 0 0 10px; font: 600 17px/1.4 var(--font-ui); color: #fff; }
.legend-card p { margin: 0 0 3px; font-size: 13px; line-height: 1.4; color: #a9bbd6; }
.legend-who b { color: #fff; font-size: 14px; }
.legend-credit { font-size: 11px !important; opacity: .7; margin-top: 6px !important; }
.legend-credit a { color: inherit; }
@media (max-width: 560px) { .legend-card { grid-template-columns: 80px 1fr; } .legend-card img { width: 80px; height: 80px; } }


/* hit counter at the end of readme.txt */
.hits { margin-top: 22px !important; font-size: 18px; color: #555; }
.hit-digits { display: inline-flex; gap: 2px; margin-left: 6px; vertical-align: middle; }
.hit-digits i { font: 700 20px "Courier New", monospace; font-style: normal; background: #111; color: #3f3; padding: 1px 4px; }

/* Ask Scott */
.ask { flex: 1; display: flex; flex-direction: column; min-height: 0; margin-top: 4px; }
.ask-log { flex: 1; overflow-y: auto; background: #fff; padding: 10px 12px; font: 20px/1.4 "Courier New", monospace; box-shadow: inset 2px 2px 0 #808080; scrollbar-width: thin; }
.ask-line { margin-bottom: 10px; }
.ask-line.me { color: #00007f; }
.ask-line a { color: #0000ee; word-break: break-all; }
.ask .irc-input { display: flex; gap: 4px; }
.ask .w95-btn { padding: 4px 16px; font-size: 18px; }

/* Minesweeper */
.mines-win { left: auto; right: auto; left: 50%; transform: translateX(-38%); width: 360px; bottom: auto; }
.mines { padding: 8px; display: grid; gap: 8px; box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #808080; }
.mines-top { display: flex; justify-content: space-between; align-items: center; padding: 6px; box-shadow: inset 2px 2px 0 #808080, inset -2px -2px 0 #fff; }
.mines-top span { font: 700 26px "Courier New", monospace; background: #000; color: #f00; padding: 0 4px; }
.mines-face { padding: 2px 8px !important; font-size: 24px !important; }
.mines-grid { display: grid; grid-template-columns: repeat(9, 1fr); box-shadow: inset 3px 3px 0 #808080, inset -3px -3px 0 #fff; padding: 3px; }
.mines-grid button { all: unset; aspect-ratio: 1; display: grid; place-items: center; font: 700 20px Tahoma, sans-serif; background: #c0c0c0; box-shadow: inset -2px -2px 0 #808080, inset 2px 2px 0 #fff; cursor: pointer; }
.mines-grid button.open { box-shadow: inset 1px 1px 0 #808080; cursor: default; }
.mines-grid button.boom { background: #f00; }
.mines-grid [data-n="1"] { color: #00f; } .mines-grid [data-n="2"] { color: #008000; } .mines-grid [data-n="3"] { color: #f00; }
.mines-grid [data-n="4"] { color: #000080; } .mines-grid [data-n="5"] { color: #800000; } .mines-grid [data-n="6"] { color: #008080; }

/* Rotary phone */
.phone-card { position: fixed; z-index: 60; right: 24px; bottom: 70px; width: min(330px, calc(100vw - 32px)); max-height: calc(100vh - 100px); overflow-y: auto;
  padding: 16px 18px 18px; border-radius: 14px; background: #f1e6c8; color: #3a2a17; box-shadow: 0 18px 50px rgba(0,0,0,.55);
  font: 15px/1.45 var(--font-ui); opacity: 0; transform: translateY(14px); transition: opacity .25s, transform .25s; }
.phone-card.open { opacity: 1; transform: none; }
.phone-h { margin: 0 0 8px; font-weight: 700; font-size: 17px; }
.phone-x { position: absolute; right: 12px; top: 12px; border: 0; border-radius: 6px; padding: 4px 9px; background: #b33a2b; color: #fff; font: 600 13px var(--font-ui); cursor: pointer; }
.phone-dial { display: block; width: 200px; height: 200px; margin: 4px auto 6px; }
.phone-dial .plate { fill: #e9dcb8; stroke: #c9b78e; stroke-width: 2; }
.phone-dial .wheel { transform-origin: 100px 100px; transform-box: view-box; }
.phone-dial .hole { cursor: pointer; }
.phone-dial .hole circle { fill: #3a2a17; stroke: #f6eedb; stroke-width: 3; }
.phone-dial .hole:hover circle { fill: #6b4b26; }
.phone-dial .hole text { fill: #f6eedb; font: 700 16px var(--font-ui); text-anchor: middle; pointer-events: none; }
.phone-dial .hub { fill: #f6eedb; stroke: #c9b78e; }
.phone-dial .hub-t { fill: #7a6040; font: 700 11px var(--font-ui); text-anchor: middle; }
.phone-dial .stop { fill: #8a8a8a; }
.phone-status { min-height: 3em; margin: 0 0 8px; }
.phone-form { display: grid; gap: 8px; }
.phone-form input, .phone-form textarea { font: 15px var(--font-ui); padding: 8px 10px; border: 1px solid #c9b78e; border-radius: 8px; background: #fffaf0; color: #3a2a17; resize: vertical; }
.phone-form button, .phone-link { display: inline-block; border: 0; border-radius: 8px; padding: 9px 14px; background: #3a2a17; color: #f6eedb; font: 600 15px var(--font-ui); text-decoration: none; cursor: pointer; text-align: center; }

/* IKLAN: ad breaks on the TV (the screen is 320x242) */
.ad { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 6px; text-align: center; padding: 16px; font-family: var(--font-crt); cursor: pointer; }
.ad-tag { position: absolute; left: 12px; top: 9px; font-size: 12px; padding: 0 5px; background: rgba(0,0,0,.35); color: #fff; }
.ad-h { font-size: 30px; line-height: 1; letter-spacing: 1px; text-shadow: 2px 2px 0 rgba(0,0,0,.35); animation: ad-pop .5s steps(4); }
.ad-s { font-size: 16px; max-width: 92%; line-height: 1.1; }
.ad-t { font-size: 14px; padding: 1px 8px; border: 1px solid currentColor; }
.ad-skip { position: absolute; right: 11px; bottom: 8px; font-size: 11px; opacity: .8; }
@keyframes ad-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* Festive decorations (js/festive.js) */
.fest-lights { position: absolute; left: 0; top: 0; overflow: visible; }
.fest-wire { fill: none; stroke: rgba(30,25,20,.85); stroke-width: 1.6; }
.fest-bulb { filter: drop-shadow(0 0 5px var(--c)) drop-shadow(0 0 12px var(--c)); animation: fest-twinkle 2.4s ease-in-out infinite; }
.is-day .fest-bulb { filter: drop-shadow(0 0 3px var(--c)); }
@keyframes fest-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.festive { position: absolute; inset: 0; pointer-events: none; }
.fest-hang { position: absolute; display: flex; flex-direction: column; align-items: center; transform: translateX(-50%); transform-origin: 50% 0; animation: fest-sway 7s ease-in-out infinite alternate; }
.fest-hang img { display: block; filter: drop-shadow(0 6px 8px rgba(0,0,0,.35)); }
.fest-string { display: block; width: 1.5px; background: rgba(60,45,30,.8); }
body:not(.is-day) .fest-hang img { filter: brightness(.8) drop-shadow(0 6px 8px rgba(0,0,0,.4)); }
@keyframes fest-sway { from { transform: translateX(-50%) rotate(-1.6deg); } to { transform: translateX(-50%) rotate(1.6deg); } }
.fest-desk { position: absolute; transform: translateX(-50%); }
.fest-desk img { position: relative; display: block; filter: drop-shadow(0 3px 3px rgba(0,0,0,.5)); }
.fest-glow { position: absolute; left: 50%; top: 0; width: 200px; height: 200px; margin: -100px 0 0 -100px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,190,90,.55), rgba(255,140,40,.15) 55%, transparent); mix-blend-mode: screen; animation: fest-flicker 2.3s infinite; }
.is-day .fest-glow { opacity: .35; }
@keyframes fest-flicker { 0%, 100% { transform: scale(1); opacity: 1; } 30% { transform: scale(.94); opacity: .85; } 55% { transform: scale(1.04); opacity: .95; } 80% { transform: scale(.97); opacity: .8; } }
.fest-flag { position: absolute; width: 120px; height: 150px; }
.fest-pole { position: absolute; left: 0; top: 0; width: 4px; height: 150px; background: linear-gradient(90deg, #d8c08a, #8a6a30); border-radius: 2px; }
.fest-flag .flag-cloth { position: absolute; left: 4px; top: 2px; width: 112px; height: 56px; transform-origin: 0 50%; animation: fest-wave 2.6s ease-in-out infinite alternate; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
@keyframes fest-wave { from { transform: skewY(-3deg) scaleX(.97); } to { transform: skewY(3deg) scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .fest-bulb, .fest-hang, .fest-glow, .fest-flag .flag-cloth { animation: none; } }

/* Wall calendar (js/calendar.js), kedai style */
.calendar { position: absolute; width: 118px; padding: 0 0 7px; background: #fbf6e9; color: #222; font-family: Arial, sans-serif; text-align: center;
  transform: rotate(1.2deg); transform-origin: 50% 0; box-shadow: 2px 5px 9px rgba(0,0,0,.35); pointer-events: none; }
.calendar::before { content: ""; position: absolute; left: 50%; top: -9px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: #444; box-shadow: 0 1px 1px rgba(0,0,0,.5); }
.cal-top { background: #c8102e; color: #ffd200; padding: 6px 4px 5px; line-height: 1.05; }
.cal-top b { display: block; font-size: 10.5px; letter-spacing: .3px; }
.cal-top span { font-size: 7px; color: #fff; }
.cal-month { font-weight: 700; font-size: 10px; margin: 5px 0 3px; letter-spacing: .5px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px 0; padding: 0 5px; font-size: 8px; line-height: 12px; }
.cal-grid i { font-style: normal; }
.cal-grid .cal-h { font-weight: 700; }
.cal-grid .red { color: #c8102e; }
.cal-grid .today { border-radius: 50%; box-shadow: 0 0 0 1.2px #c8102e; font-weight: 700; }
body:not(.is-day) .calendar { filter: brightness(.68) sepia(.2); }
body.lamp-off .calendar { filter: brightness(.45) sepia(.2); }

/* Map of Malaysia pinned up in the computer corner */
.map-poster { position: absolute; width: 470px; transform: rotate(-1.4deg); box-shadow: 3px 8px 16px rgba(0,0,0,.5); filter: brightness(.5) sepia(.2); pointer-events: none; }
.map-poster img { display: block; width: 100%; height: auto; }

/* Close-ups (calendar, map) */
.zoom { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(10,8,6,.72); }
.zoom[hidden] { display: none; }
.zoom-box { max-width: 100%; max-height: calc(100vh - 90px); overflow: auto; }
.map-big { position: relative; width: min(1100px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.map-big img { display: block; width: 100%; height: auto; }
.map-note { margin: 10px 0 0; text-align: center; color: #f1e6cf; font: 14px var(--font-ui); }
.zoom-x { position: fixed; top: 16px; right: 16px; padding: 8px 14px; border: 0; border-radius: 8px; background: #f1e6cf; color: #2b2118; font: 600 14px var(--font-ui); cursor: pointer; }
.calendar.big { position: relative; width: min(380px, calc(100vw - 32px)); transform: none; filter: none !important; padding-bottom: 16px; }
.calendar.big .cal-top { padding: 16px 10px 12px; }
.calendar.big .cal-top b { font-size: 26px; }
.calendar.big .cal-top span { font-size: 13px; }
.calendar.big .cal-month { font-size: 22px; margin: 12px 0 8px; }
.calendar.big .cal-grid { font-size: 17px; line-height: 34px; padding: 0 16px; }
.calendar.big .today { box-shadow: 0 0 0 2px #c8102e; }
.cal-list { text-align: left; padding: 6px 18px 0; border-top: 1px dashed #d8ccb0; margin: 12px 16px 0; font-size: 14px; }
.cal-list p { margin: 8px 0 6px; font-weight: 700; }
.cal-list ul { list-style: none; margin: 0; padding: 0; }
.cal-list li { padding: 3px 0; color: #444; }
.cal-list li.this { color: #c8102e; }
.cal-list li b { display: inline-block; min-width: 92px; }
.cal-list small { display: block; margin-top: 8px; font-size: 11px; color: #777; line-height: 1.35; }
.cal-today { padding: 12px 10px 4px; }
.cal-today small { display: block; font-size: 12px; color: #777; text-transform: uppercase; letter-spacing: .6px; }
.cal-today b { display: block; font-size: 24px; color: #c8102e; margin-top: 2px; }
.cal-today em { display: block; font-style: normal; font-size: 14px; color: #c8102e; margin-top: 2px; }

/* Friday pasar malam lights in the city (js/pasar.js) */
.pasar { position: absolute; left: 0; top: 0; width: 2048px; height: 1152px; pointer-events: none; mix-blend-mode: screen; }
.is-day .pasar { opacity: .45; }

/* Visitor pins on the map (js/visitors.js) */
.map-pins { position: absolute; inset: 0; pointer-events: none; }
.vpin { position: absolute; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffb3a8, #d4301f 60%, #8a120a); box-shadow: 0 1px 2px rgba(0,0,0,.5); }
.vpin.me { animation: vpin-pulse 1.4s ease-in-out infinite; }
@keyframes vpin-pulse { 50% { box-shadow: 0 0 0 6px rgba(212,48,31,.35), 0 1px 2px rgba(0,0,0,.5); } }
.vabroad { position: absolute; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; max-width: 46%; font: 700 1.3cqw Georgia, serif; color: #3c5f69; }
.map-poster, .map-big { container-type: inline-size; }
.vabroad b { width: 100%; font-size: 1.5cqw; letter-spacing: .5px; }
.vabroad span { font-size: 2.4cqw; line-height: 1; display: inline-flex; align-items: baseline; gap: 1px; }
.vabroad span small { font: 700 1.1cqw var(--font-ui); color: #3c5f69; }
.vabroad span.me { animation: vpin-pulse 1.4s ease-in-out infinite; border-radius: 4px; }
.map-big .map-pins { pointer-events: auto; }

/* Foggy glass you can draw on when it rains (js/fog.js) */
.fog { position: absolute; left: 0; top: 0; width: 2048px; height: 910px; pointer-events: none; opacity: .1; filter: blur(7px); }
body.fog-on.at-desk #hot-window { cursor: crosshair; touch-action: none; }

/* Desk drawer (js/drawer.js) */
.drawer-pull { position: absolute; width: 130px; height: 16px; border-radius: 8px; pointer-events: none;
  background: linear-gradient(#e9c97a, #b48a3a 55%, #7a5a20); box-shadow: 0 3px 4px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,240,200,.7); }
.drawer-pull::before, .drawer-pull::after { content: ""; position: absolute; top: -6px; width: 12px; height: 12px; border-radius: 3px; background: #6d4f1c; }
.drawer-pull::before { left: 6px; } .drawer-pull::after { right: 6px; }
body:not(.is-day) .drawer-pull { filter: brightness(.7); }
.drawer { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; background: rgba(10,8,6,.55); }
.drawer[hidden] { display: none; }
.drawer-box { position: relative; width: min(860px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 22px 22px 18px;
  background: linear-gradient(#5a3418, #3d2310); border: 10px solid #6e4220; border-bottom: 0; border-radius: 10px 10px 0 0;
  box-shadow: inset 0 18px 30px rgba(0,0,0,.55), 0 -10px 40px rgba(0,0,0,.6); transform: translateY(100%); transition: transform .35s cubic-bezier(.2,.8,.3,1); }
.drawer.open .drawer-box { transform: none; }
.drawer-h { margin: 0 0 14px; color: #f1e2c4; font: 700 18px var(--font-ui); }
.drawer-x { position: absolute; top: 14px; right: 14px; border: 0; border-radius: 8px; padding: 6px 12px; background: #f1e6cf; color: #2b2118; font: 600 13px var(--font-ui); cursor: pointer; }
.drawer-items { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: center; padding: 10px 0 6px; }
.dk { border: 0; cursor: pointer; transform: rotate(var(--r)); transition: transform .2s; font-family: var(--font-ui); box-shadow: 0 6px 12px rgba(0,0,0,.5); }
.dk:hover, .dk.on { transform: rotate(0) translateY(-6px) scale(1.04); }
.dk.on { outline: 3px solid #ffd46b; outline-offset: 3px; }
.dk-card { width: 190px; height: 108px; padding: 12px 14px; background: #fbf7ee; color: #1f2a44; text-align: left; display: grid; align-content: start; gap: 2px; border-radius: 3px; }
.dk-card b { font-size: 15px; color: #0b4f8a; } .dk-card span { font-size: 14px; font-weight: 700; margin-top: 10px; } .dk-card em { font-size: 12px; font-style: normal; } .dk-card small { font-size: 11px; color: #667; }
.dk-floppy { position: relative; width: 118px; height: 122px; background: #2a2d33; border-radius: 4px; padding: 0; }
.dk-floppy .dk-shutter { position: absolute; left: 30px; top: 0; width: 58px; height: 38px; background: linear-gradient(#cfd3d8, #9aa0a8); }
.dk-floppy .dk-label { position: absolute; left: 12px; right: 12px; bottom: 10px; height: 58px; background: #fffdf3; color: #222; display: grid; place-content: center; text-align: center; font-family: "Courier New", monospace; }
.dk-floppy .dk-label b { font-size: 14px; } .dk-floppy .dk-label small { font-size: 10px; }
.dk-pass { position: relative; width: 120px; height: 160px; padding: 26px 10px 10px; background: #e8eef3; color: #123; display: grid; align-content: start; gap: 4px; border-radius: 6px; text-align: center; }
.dk-pass .dk-clip { position: absolute; left: 50%; top: 8px; width: 36px; height: 8px; margin-left: -18px; border-radius: 4px; background: #555; }
.dk-pass b { font-size: 13px; background: #c8102e; color: #fff; padding: 4px 0; } .dk-pass span { font-size: 11px; letter-spacing: 1px; } .dk-pass em { font-style: normal; font-weight: 800; font-size: 15px; margin-top: 18px; } .dk-pass small { font-size: 11px; }
.dk-badge { width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe9a6, #d9a62e 60%, #8b6312); color: #3d2a05; display: grid; place-content: center; gap: 0; text-align: center; border: 4px solid #f3d27a; }
.dk-badge b { font-size: 18px; } .dk-badge span { font-size: 11px; } .dk-badge small { font-size: 10px; }
.dk-note { width: 150px; height: 120px; padding: 18px 12px; background: #ffe680; color: #2a2a2a; display: grid; place-content: center; gap: 6px; font-family: "Caveat", "Comic Sans MS", cursive; }
.dk-note span { font-size: 19px; } .dk-note small { font-size: 14px; }
.drawer-story { min-height: 3em; margin: 16px auto 0; max-width: 640px; color: #f6ead2; font: 16px/1.5 var(--font-ui); text-align: center; }
.drawer-note { margin: 10px 0 0; color: #b99c78; font: 12px var(--font-ui); text-align: center; }
@media (prefers-reduced-motion: reduce) { .drawer-box { transition: none; } }

/* Screensaver on the computer: flying teh tarik and Kopi-Bots */
.saver { position: absolute; inset: 0; z-index: 2; overflow: hidden; background: #000; }
.saver[hidden] { display: none; }
.saver i { position: absolute; top: -12%; width: var(--sz); height: var(--sz); animation: saver-fly linear infinite; }
.saver svg { width: 100%; height: 100%; overflow: visible; }
.saver .wing { transform-box: fill-box; transform-origin: 100% 50%; animation: saver-flap .45s ease-in-out infinite alternate; }
.saver .wing.r { transform-origin: 0 50%; animation-name: saver-flap-r; }
@keyframes saver-fly { from { transform: translate(0, 0); } to { transform: translate(-420px, 560px); } }
@keyframes saver-flap { from { transform: rotate(10deg); } to { transform: rotate(-35deg); } }
@keyframes saver-flap-r { from { transform: rotate(-10deg); } to { transform: rotate(35deg); } }

/* Phones: drag sideways to look around the room */
@media (pointer: coarse), (max-width: 700px) { .room-desk, .room-pc { touch-action: pan-y; } }
.swipe-tip { position: fixed; left: 50%; bottom: 120px; z-index: 40; translate: -50% 0; padding: 9px 16px; border-radius: 999px;
  background: rgba(20,14,10,.8); color: var(--cream); font: 700 12px var(--font-ui); letter-spacing: .12em; text-transform: uppercase;
  opacity: 0; pointer-events: none; transition: opacity .5s; white-space: nowrap; }
.swipe-tip.on { opacity: 1; animation: swipe-nudge 1.6s ease-in-out infinite; }
@keyframes swipe-nudge { 50% { translate: calc(-50% + 12px) 0; } }

/* "The Nosy Robot": 10-second 1960s SenangAI commercial on the TV (320 x 242 screen) */
.sa { position: absolute; inset: 0; background: #e9e4d8; color: #111; font-family: Georgia, serif; overflow: hidden; cursor: pointer;
  filter: grayscale(1) contrast(1.15); animation: sa-flicker .18s steps(2) infinite; }
.sa::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 60px, rgba(0,0,0,.05) 60px 61px), radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.45)); }
@keyframes sa-flicker { 50% { opacity: .93; } }
.sa .ad-tag { z-index: 2; }
.sa-scene { position: absolute; inset: 0; opacity: 0; }
.sa-1 { animation: sa-show 10s linear both; --a: 0%; --b: 20%; }
.sa-2 { animation: sa-show2 10s linear both; }
.sa-3 { animation: sa-show3 10s linear both; }
.sa-4 { animation: sa-show4 10s linear both; }
@keyframes sa-show { 0%, 19.9% { opacity: 1; } 20%, 100% { opacity: 0; } }
@keyframes sa-show2 { 0%, 19.9% { opacity: 0; } 20%, 39.9% { opacity: 1; } 40%, 100% { opacity: 0; } }
@keyframes sa-show3 { 0%, 39.9% { opacity: 0; } 40%, 69.9% { opacity: 1; } 70%, 100% { opacity: 0; } }
@keyframes sa-show4 { 0%, 69.9% { opacity: 0; } 70%, 100% { opacity: 1; } }
.sa p { position: absolute; left: 10px; right: 10px; bottom: 10px; margin: 0; text-align: center; font: italic 700 14px/1.15 Georgia, serif; }
.sa-cab { position: absolute; left: 190px; top: 40px; width: 78px; height: 130px; background: #777; border: 3px solid #222; display: grid; grid-template-rows: auto 1fr 1fr; gap: 6px; padding: 6px; box-sizing: border-box; }
.sa-cab b { font: 700 11px Georgia, serif; color: #fff; text-align: center; background: #222; padding: 2px 0; }
.sa-cab i { background: #999; border: 2px solid #333; }
.sa-robot { position: absolute; left: 60px; top: 70px; width: 64px; height: 100px; overflow: visible; }
.sa-1 .sa-robot { animation: sa-sneak 2s ease-in-out both; }
@keyframes sa-sneak { from { left: 20px; } to { left: 118px; } }
.sa-1 .sa-arm { animation: sa-reach .5s ease-in-out infinite alternate; transform-origin: 10px 9px; transform-box: view-box; }
@keyframes sa-reach { to { transform: rotate(-25deg); } }
.sa-2 .sa-robot { left: 118px; animation: sa-shake .12s linear 2.3s 8; }
@keyframes sa-shake { 50% { translate: 3px 0; } }
.sa-stamp { position: absolute; left: 132px; top: 88px; padding: 5px 9px; border: 4px solid #111; background: rgba(233,228,216,.85); color: #111; font: 900 16px Georgia, serif; white-space: nowrap; rotate: -12deg; opacity: 0; animation: sa-stamp 10s linear both; }
@keyframes sa-stamp { 0%, 22% { opacity: 0; scale: 2.4; } 24%, 100% { opacity: 1; scale: 1; } }
.sa-boing { font-style: normal !important; font-size: 22px !important; letter-spacing: 2px; }
.sa-card { position: absolute; left: 30px; right: 30px; top: 34px; padding: 12px 14px; background: #fff; border: 2px solid #222; box-shadow: 4px 4px 0 #222; display: grid; gap: 6px; text-align: left; animation: sa-pop 10s linear both; }
@keyframes sa-pop { 0%, 42% { translate: 0 160px; } 46%, 100% { translate: 0 0; } }
.sa-card small { font: 12px Georgia, serif; } .sa-card b { font: 700 15px Georgia, serif; } .sa-card em { font: 700 11px "Courier New", monospace; font-style: normal; }
.sa-burst { position: absolute; left: 50%; top: 24px; width: 230px; height: 122px; translate: -50% 0; display: grid; place-content: center; text-align: center; background: #111; color: #fff; border: 3px solid #111;
  clip-path: polygon(50% 0, 61% 18%, 82% 8%, 80% 30%, 100% 36%, 85% 52%, 100% 66%, 79% 72%, 82% 94%, 61% 84%, 50% 100%, 39% 84%, 18% 94%, 21% 72%, 0 66%, 15% 52%, 0 36%, 20% 30%, 18% 8%, 39% 18%); animation: sa-spin 10s linear both; }
@keyframes sa-spin { 0%, 70% { scale: .3; rotate: -40deg; } 74%, 100% { scale: 1; rotate: 0deg; } }
.sa-burst b { font: 900 25px Georgia, serif; line-height: 1; } .sa-burst small { font: italic 13px Georgia, serif; }
.sa-4 em { position: absolute; left: 0; right: 0; top: 150px; text-align: center; font: 700 15px Georgia, serif; font-style: normal; }
.sa .ad-skip { top: 9px; bottom: auto; right: 12px; color: #333; opacity: .7; z-index: 2; }

/* filmed version of the SenangAI ad: the clip fills the screen, captions over it */
.sa-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sa-film .sa-4 { background: rgba(233,228,216,.92); }
.sa-cap { position: absolute; left: 8px; right: 8px; bottom: 8px; margin: 0; padding: 6px 8px; text-align: center; background: rgba(0,0,0,.72); color: #fff;
  font: italic 700 16px/1.25 Georgia, serif; opacity: 0; z-index: 1; }
/* captions and the title card are switched on in turn by app.js */
.sa-cap.on { opacity: 1; }
.sa-film .sa-title { animation: none; opacity: 0; }
.sa-film .sa-title.on { opacity: 1; }
.sa-film .sa-title .sa-burst { animation: none; }
.sa-film .sa-title.on .sa-burst { animation: sa-spinf .5s ease-out both; }
@keyframes sa-spinf { from { scale: .3; rotate: -40deg; } to { scale: 1; rotate: 0deg; } }

/* sitcom-style subtitles for the dialogue ad: colour film, yellow subtitles */
.sa-sub { filter: none; animation: none; background: #000; }
.sa-sub::after { background: none; }
.sa-sub .sa-cap { background: none; color: #ffe14d; font: 700 15px/1.25 Arial, sans-serif; font-style: normal; text-shadow: 0 0 3px #000, 1px 1px 0 #000, -1px -1px 0 #000; }
.sa-sub .sa-title { filter: grayscale(1) contrast(1.15); }

/* the outro card: kognosys.com under the starburst */
.sa-title em { top: 142px !important; }
.sa-url { position: absolute; left: 0; right: 0; top: 165px; text-align: center; font: 700 15px "Courier New", monospace; letter-spacing: 1px; }
.sa-title p { bottom: 8px; font-size: 12px; }
.sa-title .sa-burst small { font-size: 11px; }

/* a real photo pinned to the wall under the map, in the computer corner */
.pc-photo { position: absolute; width: 96px; padding: 7px 7px 16px; background: #f1ead9; transform: rotate(3deg);
  box-shadow: 2px 5px 9px rgba(0,0,0,.45); filter: brightness(.55) sepia(.2); pointer-events: none; }
.pc-photo img { display: block; width: 100%; height: auto; }
.pc-pin { position: absolute; left: 50%; top: -6px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8a7a, #c0261b 70%); box-shadow: 0 2px 2px rgba(0,0,0,.5); }
.pc-photo-bubble { position: absolute; left: 1360px; top: 395px; width: 250px; padding: 12px 14px; background: #fff; color: #222; border-radius: 14px;
  font: 700 20px/1.3 var(--font-ui); box-shadow: 0 6px 16px rgba(0,0,0,.4); pointer-events: none; z-index: 6; }
.pc-photo-bubble::after { content: ""; position: absolute; right: -10px; top: 30px; border: 8px solid transparent; border-left-color: #fff; }
.pc-photo-bubble[hidden] { display: none; }
.pc-photo-bubble.pop { animation: bubble-pop .25s ease-out; }
@keyframes bubble-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* the bookshelf in the computer corner: real spines you can pull out, and the card each one opens */
.shelf-tag { position: absolute; padding: 4px 11px; background: #f1ead9; color: #5a3b22; font: 700 22px var(--font-hand); font-style: normal; transform: rotate(-3deg);
  box-shadow: 1px 3px 5px rgba(0,0,0,.45); filter: brightness(.8); pointer-events: none; }
.book-row { position: absolute; height: 232px; display: flex; align-items: flex-end; gap: 2px; filter: brightness(.6) sepia(.25) saturate(.8); }
/* cloth hardcovers: gold foil bands top and bottom, serif title */
.book { all: unset; box-sizing: border-box; position: relative; width: 29px; border-radius: 2px 2px 0 0; cursor: pointer; display: grid; place-items: center; overflow: hidden;
  background-image: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.12) 30%, rgba(0,0,0,.05) 60%, rgba(0,0,0,.4)) !important;
  background-blend-mode: multiply; box-shadow: 1px 0 2px rgba(0,0,0,.55); transition: transform .3s; }
.book::before, .book::after { content: ""; position: absolute; left: 3px; right: 3px; height: 3px; border-top: 1px solid #d9b56a; border-bottom: 1px solid #d9b56a; opacity: .8; }
.book::before { top: 14px; } .book::after { bottom: 14px; }
.book span { writing-mode: vertical-rl; transform: rotate(180deg); font: 700 13px/1 Georgia, serif; letter-spacing: .4px; white-space: nowrap; max-height: 78%; overflow: hidden; text-overflow: ellipsis; }
body.at-pc .book:hover { transform: translateY(-10px); }
.book.out { transform: translateY(-34px) rotate(-6deg); }

/* the pop-up: an open vintage book on warm paper */
.openbook { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(680px, calc(100vw - 32px)); border-radius: 6px;
  background: var(--spine); padding: 10px; box-shadow: 0 24px 60px rgba(0,0,0,.65), inset 0 0 0 2px rgba(0,0,0,.25); }
.ob-page { position: relative; min-height: 290px; padding: 30px 28px 26px; color: #3b2a1a;
  background: radial-gradient(ellipse at 50% 40%, #fbf3df, #eedfbf 85%); box-shadow: inset 0 0 30px rgba(120,80,30,.18); }
.ob-left { border-radius: 4px 0 0 4px; box-shadow: inset -18px 0 22px -14px rgba(80,50,20,.45), inset 0 0 30px rgba(120,80,30,.18); text-align: center; display: grid; align-content: center; justify-items: center; gap: 4px; }
.ob-right { border-radius: 0 4px 4px 0; box-shadow: inset 18px 0 22px -14px rgba(80,50,20,.45), inset 0 0 30px rgba(120,80,30,.18); display: grid; align-content: center; gap: 18px; }
.ob-from { font: 600 11px var(--font-ui); letter-spacing: .18em; text-transform: uppercase; color: #a0675c; }
.ob-t { margin: 6px 0 0; font: 700 26px/1.15 Georgia, serif; }
.ob-a { margin: 0; font: italic 15px Georgia, serif; color: #6b5a44; }
.ob-orn { margin-top: 12px; font-style: normal; font-size: 22px; color: #b58c4a; }
.openbook blockquote { margin: 0; font: italic 19px/1.45 Georgia, serif; }
.ob-idea { margin: 0; font: 16px/1.5 Georgia, serif; }
.ob-idea b, .ob-note b { display: block; margin-bottom: 4px; font: 600 11px var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: #a0675c; }
.ob-note { margin: 0; padding: 10px 12px; font: 600 22px/1.2 var(--font-hand); color: #2e3f66; background: rgba(240,200,190,.35); border-left: 3px solid #d79a8f; rotate: -1deg; }
.ob-ribbon { position: absolute; right: 54px; top: -6px; width: 14px; height: 70px; z-index: 2; background: #b3473f; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%); box-shadow: 0 2px 3px rgba(0,0,0,.4); }
@media (max-width: 600px) { .openbook { grid-template-columns: 1fr; } .ob-page { min-height: 0; } .ob-left { padding-bottom: 16px; } }
