/* App/win98/css/cdrom.css — the CD-ROM drive: the Insert Disc shelf and the
   AutoPlay front ends (js/cdrom.js, js/cdfront.js). */

/* ── Insert Disc: the shelf of jewel cases ── */
.cd-insert-dlg { gap: 6px; height: 100%; box-sizing: border-box; }
.cd-shelf { flex: 1; min-height: 0; overflow-y: auto; background: #fff; border: 2px inset #fff; border-color: #808080 #fff #fff #808080; padding: 4px 6px; }
.cd-shelfrow { margin-bottom: 6px; }
.cd-shelflabel { font-weight: bold; border-bottom: 1px solid #c0c0c0; margin-bottom: 4px; }
.cd-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cd-case { width: 84px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 2px; cursor: default; }
.cd-jewel { width: 76px; height: 76px; position: relative; background: #e8eef4; border: 1px solid #707880; box-shadow: inset 4px 0 0 #b8c0c8, 1px 1px 0 #404040; overflow: hidden; }
.cd-jewel img, .cd-jewel .cd-art, .cd-jewel .cd-art svg { position: absolute; left: 4px; top: 0; width: 72px; height: 76px; object-fit: cover; object-position: 12% 20%; display: block; }
.cd-jewel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,0) 40%); pointer-events: none; }
.cd-name { width: 100%; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 1px; }
.cd-case.sel .cd-name { background: #000080; color: #fff; outline: 1px dotted #ffff00; }
.cd-case.sel .cd-jewel { outline: 2px solid #000080; }
.cd-case.in .cd-jewel { opacity: .55; }
.cd-case.missing { color: #808080; }
.cd-caption { min-height: 14px; }
.cd-props .cd-pie { display: flex; justify-content: center; padding: 4px 0; }
.cd-piedisc { width: 90px; height: 44px; border-radius: 50%; background: #0000ff; box-shadow: 0 6px 0 #000080; margin-bottom: 6px; }

/* ── The Windows 98 CD-ROM window (its own bitmaps) ── */
.cdf .body { overflow: hidden; }
.cdf98 { position: relative; width: 600px; height: 404px; background: #fff no-repeat 0 0; image-rendering: pixelated; font-family: Arial, sans-serif; }
.cdf98-item { position: absolute; left: 34px; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.cdf98-ico { width: 32px; height: 32px; background-repeat: no-repeat; flex: none; }
.cdf98-t { font-size: 19px; color: #000; }
.cdf98-item.hot .cdf98-t { color: #0000ff; text-decoration: underline; }
.cdf98-desc { position: absolute; left: 34px; top: 345px; width: 300px; font-size: 13px; color: #000080; }

/* ── PC Gamer CD: Engine front end (Oct/Nov 1999) ── */
.cdfe { position: relative; width: 800px; height: 600px; background: #001040 no-repeat 0 0; color: #fff; font-family: Arial, sans-serif; overflow: hidden; }
.cdfe-head { position: absolute; left: 20px; top: 14px; display: flex; align-items: baseline; gap: 14px; }
.cdfe-logo { font: italic 900 40px "Arial Black", Impact, Arial; color: #ff2010; text-shadow: 2px 2px 0 #000; letter-spacing: -1px; }
.cdfe-issue { font: bold 14px Arial; color: #ffd040; letter-spacing: 2px; }
.cdfe-feature { position: absolute; left: 22px; top: 70px; width: 420px; font-size: 13px; color: #c8d8ff; }
.cdfe-tabs { position: absolute; left: 0; right: 0; top: 380px; height: 47px; display: flex; align-items: center; gap: 2px; padding-left: 20px; }
.cdfe-tabs span { font: bold 13px Arial; padding: 6px 14px; background: rgba(0, 20, 80, .7); border: 1px solid #6080c0; cursor: pointer; }
.cdfe-tabs span.on { background: #c01010; border-color: #ff8080; }
.cdfe-tabs .cdfe-exit { margin-left: auto; margin-right: 20px; }
.cdfe-list { position: absolute; left: 20px; top: 436px; width: 280px; height: 150px; overflow-y: auto; background: rgba(0, 10, 40, .75); border: 1px solid #6080c0; }
.cdfe-item { padding: 3px 8px; font-size: 13px; cursor: pointer; }
.cdfe-item:hover { color: #ffd040; }
.cdfe-item.sel { background: #c01010; }
.cdfe-info { position: absolute; left: 314px; top: 436px; right: 20px; height: 150px; background: rgba(0, 10, 40, .75); border: 1px solid #6080c0; padding: 6px 10px; box-sizing: border-box; font-size: 12px; display: flex; flex-direction: column; gap: 4px; }
.cdfe-title { font: bold 17px Arial; color: #ffd040; }
.cdfe-req { color: #c8d8ff; }
.cdfe-btns { margin-top: auto; display: flex; gap: 8px; }
.cdfe-btn { font: bold 12px Arial; color: #fff; background: #c01010; border: 2px outset #ff6060; padding: 3px 12px; cursor: pointer; }
.cdfe-btn:active { border-style: inset; }

/* ── PC Gamer CD: NeoBook front end, redrawn (Jun–Aug 1999) ── */
.cdfn { display: flex; width: 640px; height: 480px; background: #000; color: #fff; font-family: Arial, sans-serif; }
.cdfn-side { width: 116px; background: linear-gradient(#300000, #000); border-right: 2px solid #c00000; display: flex; flex-direction: column; align-items: stretch; padding: 8px 6px; gap: 6px; }
.cdfn-logo { font: italic 900 25px/0.95 "Arial Black", Impact, Arial; color: #ff2010; text-align: center; text-shadow: 2px 2px 0 #400; margin-bottom: 8px; }
.cdfn-navbtn { font: bold 14px Impact, "Arial Black", Arial; letter-spacing: 1px; text-align: center; padding: 6px 2px; background: #600000; border: 2px outset #c04040; cursor: pointer; text-transform: uppercase; }
.cdfn-navbtn:active { border-style: inset; }
.cdfn-page { flex: 1; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; background: radial-gradient(circle at 80% 10%, #301010, #000 70%); }
.cdfn-head { font: 24px Impact, "Arial Black", Arial; color: #ffcc00; letter-spacing: 1px; text-transform: uppercase; }
.cdfn-text { font-size: 13px; color: #e0e0e0; }
.cdfn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; overflow-y: auto; }
.cdfn-red { font: bold 13px Arial; padding: 6px 8px; background: #a00000; border: 2px outset #ff6060; cursor: pointer; text-align: center; }
.cdfn-red:active { border-style: inset; }
.cdfn-demobtns { display: flex; gap: 6px; }
.cdfn-demobtns .cdfn-red { flex: 1; }
.cdfn-pub { font-size: 12px; color: #ffcc00; }
.cdfn-readme { flex: 1; min-height: 0; background: #000; color: #e0e0e0; border: 1px solid #a00000; font: 12px "Courier New", monospace; resize: none; }

/* ── A compilation's HTML menu ── */
.cdfh-frame { flex: 1; width: 100%; height: 100%; border: 0; display: block; background: #000033; }
.cdf-html .body { display: flex; }
