/* Disc screens for section, post and tag pages (docs/PLAN-disc.md step 1).
   Bulletins: the terminal list a section shows. Code Archive: the CRT
   monitor a post reads in. Original art in the disc's language; no Sony
   assets. Approved mockups: design/mockups/disc. */
@font-face { font-family: "VT323"; src: url("../fonts/VT323-Regular.ttf") format("truetype"); }
@font-face { font-family: "Anton"; src: url("../fonts/Anton-Regular.ttf") format("truetype"); }

:root { --teal: #0d3b3f; --deep: #061a1e; --cyan: #34e0e8; --green: #7dff6a; --lime: #b6ff3a; --ink: #e6f6f2; --dim: #7fa9a4; --blue: #69a9ff; --red: #ff4a3a; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { background: #000; color: var(--ink); font: 16px/1.5 Verdana, Tahoma, Geneva, sans-serif; }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.28) 0 1px, transparent 1px 3px); }
a { color: var(--cyan); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ---------- Bulletins screen ---------- */
.bulletins { min-height: 100vh; padding: 28px 28px 110px;
  background:
    linear-gradient(rgba(52,224,232,.07) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(52,224,232,.07) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(ellipse at 60% 30%, #134b50 0%, var(--teal) 40%, var(--deep) 100%);
  background-attachment: fixed; }
.bulletins > * { max-width: 1000px; }
.crumb { max-width: 100%; min-width: 0; display: flex; align-items: stretch; height: 44px; margin: 0 0 26px; font: 30px/44px "VT323", "Courier New", monospace; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.crumb .root { flex: none; background: #000; color: #fff; padding: 0 18px; border: 2px solid var(--cyan); border-right: 0; text-decoration: none; line-height: 40px; }
.crumb .root::after { content: ">"; color: var(--cyan); margin-left: 6px; }
.crumb .here { background: var(--cyan); color: #032; padding: 0 40px 0 22px; clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
h1 { margin: 0 0 6px; font: 400 52px/1 "Anton", Impact, sans-serif; color: #fff; text-transform: uppercase; text-shadow: 3px 3px 0 #03353a, 0 0 18px rgba(52,224,232,.5); overflow-wrap: anywhere; }
.intro { color: var(--dim); max-width: 60ch; margin: 0 0 18px; }
.intro p { margin: 0 0 8px; }
.menu { list-style: none; margin: 0; padding: 0; }
.menu li a { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 8px 12px; color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(52,224,232,.15); }
.menu li a:focus-visible { outline: 0; }
.menu .ico { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle, #000 0 18%, var(--green) 20% 32%, #173a0e 34% 70%, var(--green) 72% 100%); box-shadow: 0 0 8px rgba(125,255,106,.4); }
.menu .ico.dir { border-radius: 4px; background: linear-gradient(#173a0e, #0a1a06); border: 2px solid var(--green); }
.menu .t { font: 26px/1.1 "VT323", "Courier New", monospace; letter-spacing: .03em; overflow-wrap: anywhere; }
.menu .t small { display: block; font: 14px/1.4 Verdana, Tahoma, sans-serif; letter-spacing: 0; color: var(--dim); margin-top: 2px; }
.menu .d { font: 20px/1 "VT323", "Courier New", monospace; color: var(--dim); white-space: nowrap; }
.menu li a.on { background: linear-gradient(90deg, rgba(52,224,232,.35), rgba(52,224,232,0)); }
.menu li a.on .t { color: #fff; text-shadow: 0 0 8px var(--cyan); }
.menu li a.on .t small { text-shadow: none; color: var(--ink); }
.empty { font: 26px/1 "VT323", "Courier New", monospace; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- prompt row ---------- */

/* ---------- Code Archive CRT (post page) ---------- */
.archive { min-height: 100vh; padding: 24px 24px 110px; background: radial-gradient(ellipse at 50% 20%, #2a2a33, #07070a 70%); background-attachment: fixed; }
.frame { position: relative; max-width: 1080px; margin: 0 auto; padding: 26px; border-radius: 18px;
  background: linear-gradient(145deg, #8d8f99, #3a3c44 45%, #6b6d77 55%, #25262c);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -3px 0 rgba(0,0,0,.5), 0 20px 40px rgba(0,0,0,.6); }
.bolts i { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e8e8e8, #4a4a4a); }
.bolts i:nth-child(1) { top: 9px; left: 9px; }
.bolts i:nth-child(2) { top: 9px; right: 9px; }
.bolts i:nth-child(3) { bottom: 9px; left: 9px; }
.bolts i:nth-child(4) { bottom: 9px; right: 9px; }
.top-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.panel { background: #050607; border-radius: 10px; box-shadow: inset 0 0 0 2px #1a1b20, inset 0 0 24px rgba(0,0,0,.9); padding: 12px 16px; min-width: 0; }
.tabs { list-style: none; margin: 0; padding: 0; max-height: 7.5em; overflow-y: auto; font: 24px/1.25 "VT323", "Courier New", monospace; letter-spacing: .05em; text-transform: uppercase; scrollbar-color: #333 transparent; }
.tabs a { color: var(--blue); text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabs a:hover { color: #fff; }
.tabs a.on { color: var(--red); }
.facts { font: 22px/1.3 "VT323", "Courier New", monospace; color: var(--green); overflow-wrap: anywhere; }
.facts a { color: var(--green); }
.facts .sec { color: #fff; text-decoration: none; text-transform: uppercase; letter-spacing: .06em; }
.screen { position: relative; background: #030504; border-radius: 22px / 18px; padding: 34px 44px 40px; min-height: 420px;
  box-shadow: inset 0 0 0 3px #111, inset 0 0 60px rgba(0,0,0,.95), inset 0 0 140px rgba(20,60,20,.25); overflow: hidden; }
.screen::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(ellipse at 30% 10%, rgba(255,255,255,.07), transparent 45%); }
.screen h1 { font: 400 44px/1.05 "Anton", Impact, sans-serif; color: var(--green); text-shadow: 0 0 10px rgba(125,255,106,.45); text-transform: none; margin: 0 0 22px; }
.screen .cover { display: block; max-width: 100%; height: auto; margin: 0 0 22px; border-radius: 6px; }
.screen .body { max-width: 68ch; color: #c9f5c2; text-shadow: 0 0 6px rgba(125,255,106,.18); overflow-wrap: break-word; }
.screen .body a { color: var(--lime); }
.screen .body h2, .screen .body h3, .screen .body h4 { font: 30px/1 "VT323", "Courier New", monospace; color: var(--lime); text-transform: uppercase; letter-spacing: .06em; margin: 26px 0 8px; }
.screen .body h3 { font-size: 26px; }
.screen .body h4 { font-size: 22px; }
.screen .body code { font: 21px "VT323", "Courier New", monospace; color: var(--lime); }
.screen .body pre { overflow-x: auto; background: #0a120a; border: 1px solid #1d3a1a; padding: 12px 14px; }
.screen .body pre code { font-size: 20px; line-height: 1.2; }
.screen .body blockquote { margin: 16px 0; padding: 4px 16px; border-left: 3px solid var(--green); color: #a8d8a0; }
.screen .body blockquote p { margin: 6px 0; }
.screen .body img, .screen .body video { max-width: 100%; height: auto; }
.screen .body hr { border: 0; border-top: 1px dashed #2e5a2a; margin: 24px 0; }
.screen .body table { border-collapse: collapse; display: block; overflow-x: auto; }
.screen .body td, .screen .body th { border: 1px solid #1d3a1a; padding: 4px 8px; }
.screen .body th { font: 20px/1.2 "VT323", "Courier New", monospace; color: var(--lime); font-weight: normal; text-align: left; }

/* Shortcodes inside the screen: {{file}}, {{release}}, {{video}}. */
.sc-file, .sc-release { background: #081008; border: 1px solid #2e5a2a; padding: 10px 14px; margin: 16px 0; }
.sc-file .facts, .sc-release .facts { font: inherit; color: var(--dim); margin-left: 6px; }
.sc-release p { margin: 0 0 6px; }
.sc-release time { margin-left: 8px; font: 20px/1 "VT323", "Courier New", monospace; color: var(--dim); }
.sc-release ul { margin: 0; padding-left: 20px; }
.hash, .screen .body code.hash { display: block; margin-top: 4px; font: 13px/1.3 "Courier New", monospace; word-break: break-all; color: var(--dim); text-shadow: none; }
a.dl { font-weight: bold; }

@media (max-width: 760px) {
  .bulletins, .archive { padding: 16px 16px 100px; }
  .crumb { font-size: 22px; height: 36px; line-height: 36px; }
  .crumb .root { line-height: 32px; padding: 0 12px; }
  .crumb .here { padding: 0 32px 0 14px; }
  h1 { font-size: 38px; }
  .menu li a { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 8px 6px; }
  .menu .ico { width: 26px; height: 26px; }
  .menu .d { grid-column: 2; }
  .menu .ico.dir + .t + .d { display: none; }
  .top-row { grid-template-columns: 1fr; }
  .frame { padding: 14px; }
  .screen { padding: 22px 18px 26px; min-height: 0; }
  .screen h1 { font-size: 32px; }
}

/* Visually hidden, still read by screen readers. */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The Theatre player (PLAN-disc step 6; theatre.js): the video in a TV
   tube, our bar under it, the typed caption and the name lower third. */
.sc-video { margin: 20px 0; padding: 12px; border-radius: 18px; background: linear-gradient(160deg, #3b3a40, #1d1c21 60%, #2a292f);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.18), inset 0 -3px 0 rgba(0,0,0,.6), 5px 5px 0 #000; text-shadow: none; }
.sc-video .tube { position: relative; border-radius: 22px / 18px; overflow: hidden; background: #000; box-shadow: 0 0 0 3px #0c0c0e; }
.sc-video video { display: block; width: 100%; height: auto; background: #000; }
.sc-video.skinned video { cursor: pointer; }
/* A PlayStation STR movie: 320x240 drawn at the tube's width, the pixels
   left soft as a television showed them. */
.sc-video canvas.str { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; background: #000; cursor: pointer; }
.sc-video .nostr { margin: 0; padding: 40px 16px; color: #ddd; text-align: center; }
.sc-video .making { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: #000; }
.sc-video .making img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.sc-video .making p { position: relative; margin: 0; padding: 16px; max-width: 30ch; text-align: center; font: 22px/1.2 "VT323", "Courier New", monospace; color: #fff; }
.sc-video:fullscreen canvas.str { max-height: 100%; width: auto; max-width: 100%; }
.sc-video .tube::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(0,0,0,.55) 100%), repeating-linear-gradient(to bottom, rgba(0,0,0,.22) 0 1px, transparent 1px 3px); }
.sc-video .third { position: absolute; left: 6%; bottom: 14%; z-index: 1; display: grid; justify-items: start; transition: opacity .6s, translate .6s; animation: third-in .5s ease-out; }
.sc-video .third b { background: #d8261a; color: #fff; padding: 5px 14px 3px; font: 400 clamp(16px, 2.6vw, 26px)/1.05 "Anton", Impact, sans-serif; }
.sc-video .third span { background: #f2f0ea; color: #111; padding: 2px 14px; font: 18px/1.1 "VT323", "Courier New", monospace; letter-spacing: .05em; }
.sc-video .third.gone { opacity: 0; translate: -20px 0; }
@keyframes third-in { from { translate: -30px 0; opacity: 0; } }
.sc-video .type { position: absolute; left: 6%; right: 6%; top: 8%; z-index: 1; margin: 0; font: clamp(18px, 2.4vw, 26px)/1.25 "VT323", "Courier New", monospace; color: #fff;
  text-shadow: 2px 2px 0 #000, 0 0 6px #000; letter-spacing: .04em; transition: opacity .8s; }
.sc-video .type::after { content: "_"; animation: cue 1s steps(2, start) infinite; }
.sc-video .type.gone { opacity: 0; }
.sc-video.skinned figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.sc-video figcaption { color: var(--dim); font-size: 14px; margin-top: 8px; }
.sc-video .bar { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 6px 10px; border-radius: 8px; background: #0a0a0d; box-shadow: inset 0 0 0 2px #1a1a20; }
.sc-video .bar button { flex: none; width: 34px; height: 30px; padding: 0; border: 0; border-radius: 6px; background: #1d1c24; display: grid; place-items: center; cursor: pointer; }
.sc-video .bar button:hover, .sc-video .bar button:focus-visible { background: #2c2a38; }
.sc-video .bar svg { width: 16px; height: 16px; fill: none; stroke: #ff4a3a; stroke-width: 2.2; stroke-linejoin: round; }
.sc-video .bar .play svg { fill: #ff4a3a; stroke: none; }
.sc-video .time { flex: none; font: 20px/1 "VT323", "Courier New", monospace; color: #ff4a3a; text-shadow: 0 0 6px rgba(255,74,58,.6); letter-spacing: .04em; min-width: 9.5ch; }
.sc-video input[type=range] { accent-color: #d8261a; min-width: 0; }
.sc-video .scrub { flex: 1; }
.sc-video .vol { flex: 0 1 90px; }
.sc-video:fullscreen { display: grid; grid-template-rows: 1fr auto; padding: 16px; border-radius: 0; background: #000; }
.sc-video:fullscreen .tube { display: grid; place-items: center; border-radius: 0; }
.sc-video:fullscreen video { max-height: 100%; width: auto; max-width: 100%; }
@keyframes cue { 50% { opacity: .35; } }
@media (max-width: 600px) { .sc-video .vol { display: none; } .sc-video { padding: 8px; } }
.sc-video.skinned:not(.on) .tube::before { content: ""; position: absolute; z-index: 1; left: 50%; top: 50%; width: 64px; height: 72px; translate: -35% -50%; pointer-events: none;
  background: #ff4a3a; clip-path: polygon(0 0, 100% 50%, 0 100%); filter: drop-shadow(0 0 12px rgba(255,74,58,.8)); opacity: .9; }

/* The issue rail on Bulletins pages (PLAN-disc step 7): THIS ISSUE and
   LAST ISSUE as discs, the way the disc's own rail offered them. */
.layout.railed { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 32px; }
.rail { border: 2px solid var(--cyan); border-radius: 14px; padding: 16px 10px; display: flex; flex-direction: column; align-items: center; gap: 14px; background: rgba(0,0,0,.35); align-self: start; }
.rail h3 { margin: 0; font: 22px/1 "VT323", "Courier New", monospace; color: var(--cyan); letter-spacing: .1em; text-transform: uppercase; text-align: center; }
.rail .disc { position: relative; width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; text-decoration: none;
  background: radial-gradient(circle, #000 0 11%, #24501a 12% 58%, var(--green) 60% 66%, #122b0a 68% 100%); box-shadow: 0 0 0 3px #0a1a06, 0 0 18px rgba(125,255,106,.35); transition: rotate .6s; }
.rail .disc:hover, .rail .disc:focus-visible { rotate: 30deg; }
.rail .disc span { font: 400 30px/1 "Anton", Impact, sans-serif; color: #fff; text-shadow: 2px 2px 0 #000; rotate: 0deg; }
.rail .disc.past { width: 84px; height: 84px; filter: saturate(.45) brightness(.65); }
.rail .disc.past span { font-size: 20px; }
.menu .ico.dl { border-radius: 4px; background: linear-gradient(#3a2508, #1a0f03); border: 2px solid #f0b040; box-shadow: 0 0 8px rgba(240,176,64,.4); }
@media (max-width: 760px) {
  .layout.railed { grid-template-columns: 1fr; gap: 16px; }
  .rail { display: grid; grid-template-rows: auto auto; grid-auto-flow: column; grid-auto-columns: 1fr; justify-items: center; align-items: center; padding: 10px; gap: 6px 10px; }
  .rail h3 { font-size: 18px; }
  .rail .disc { width: 70px; height: 70px; }
  .rail .disc span { font-size: 18px; }
  .rail .disc.past { width: 56px; height: 56px; }
  .rail .disc.past span { font-size: 14px; }
}
