/* ---------- Command Prompt ---------- */
.cmd { flex: 1; min-height: 0; overflow: auto; background: #000; color: #c0c0c0; font: 14px/1.25 "Lucida Console", "Courier New", monospace; padding: 2px 4px; white-space: pre-wrap; word-break: break-all; position: relative; cursor: text; user-select: text; -webkit-user-select: text; outline: none; }
.cmd-out { display: inline; }
.cmd-line { display: inline; }
.cmd-cur { display: inline-block; width: .62em; height: .2em; background: currentColor; vertical-align: -.1em; animation: caret 1s steps(1) infinite; }
.cmd[data-cursor="medium"] .cmd-cur { height: .55em; vertical-align: -.1em; }
.cmd[data-cursor="large"] .cmd-cur { height: 1.05em; vertical-align: -.2em; }
.cmd-in { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; }
.cmd-sw { display: grid; grid-template-columns: repeat(16, 1fr); gap: 2px; }
.cmd-sw i { height: 18px; border: 1px solid #808080; }
.cmd-sw i.on { outline: 2px solid #000; outline-offset: 1px; }
.cmd-prev { margin-top: 12px; padding: 6px; font: 13px "Lucida Console", monospace; border: 1px solid #808080; }
iframe.telnet { flex: 1; border: 0; width: 100%; min-height: 0; background: #050302; }

/* ---------- Corium Navigator ---------- */
.nav-bars { flex: none; border-bottom: 1px solid var(--shadow); }
.nav-tb { position: relative; padding-right: 46px; }
.nav-tb .tbtn { flex-direction: column; height: 40px; min-width: 44px; gap: 1px; }
.nav-tb .tbtn svg { width: 22px; height: 22px; }
.nav-throb { position: absolute; right: 2px; top: 2px; width: 38px; height: 38px; background: #000; display: flex; align-items: center; justify-content: center; border: 1px solid; border-color: var(--shadow) var(--hilite) var(--hilite) var(--shadow); }
.nav-throb .orb { width: 22px; height: 22px; animation: none; }
.nav-throb.spin .orb { animation: throb .8s linear infinite; }
@keyframes throb { 0% { transform: rotate(0) scale(1); filter: hue-rotate(0); } 50% { transform: rotate(180deg) scale(.8); filter: hue-rotate(40deg); } 100% { transform: rotate(360deg) scale(1); filter: hue-rotate(0); } }
.addr-dd { padding: 0 3px; cursor: default; font-size: 9px; }
.nav-links { padding: 0 6px; white-space: nowrap; cursor: default; }
.nav-page { flex: 1; min-height: 0; overflow: auto; background: #fff; color: #000; margin: 2px; user-select: text; -webkit-user-select: text; cursor: auto; font: 12px/1.45 "Times New Roman", Georgia, serif; outline: none; }
.nav-prog { width: 110px; flex: none !important; position: relative; padding: 0 !important; }
.nav-prog i { position: absolute; left: 1px; top: 1px; bottom: 1px; width: 0; background: repeating-linear-gradient(90deg, var(--sel) 0 7px, transparent 7px 9px); }
.nav-page a { color: #0000ee; text-decoration: underline; cursor: pointer; }
.nav-page a:visited { color: #551a8b; }
.w { padding: 10px 14px; font-size: 1em; }
.w h2 { font: bold 1.55em "Times New Roman", serif; color: #000080; margin: 10px 0; }
.w h3 { font: bold 1.2em "Times New Roman", serif; margin: 12px 0 6px; }
.w p, .w ul, .w ol { margin: 0 0 10px; } .w ul, .w ol { padding-left: 24px; }
.w-home { background: #fff url() ; }
.w-head { background: linear-gradient(90deg, #000, #0a1d5a 60%, #2a4ea8); color: #fff; border-bottom: 4px solid #ff7a2a; }
.w-head td { padding: 10px 12px; }
.w-logo { font: bold 2em "Arial Black", Arial, sans-serif; letter-spacing: .08em; display: flex; align-items: center; gap: 10px; }
.w-logo .orb, .w-updh .orb { width: 34px; height: 34px; }
.w-tag { font: italic 1em Georgia, serif; color: #ffc48a; margin-top: 2px; }
.w-date { font: .95em Arial, sans-serif; color: #c8d4ff; }
.w-ticker { background: #000; color: #00ff00; font: bold 12px "Courier New", monospace; padding: 3px 0; display: block; }
.w-nav { background: #d4d0c8; padding: 4px 8px; border-bottom: 1px solid #808080; font: 12px Arial, sans-serif; }
.w-side { width: 170px; background: #ffffcc; border-right: 2px dashed #c0a060; font: 12px Arial, sans-serif; line-height: 1.7; }
.w-counter { display: inline-flex; gap: 1px; background: #000; padding: 2px; margin-top: 4px; }
.w-counter b { background: #111; color: #ff4020; font: bold 14px "Courier New", monospace; padding: 0 3px; border: 1px solid #333; }
.w-badge { display: none; }
.w-small { font: 11px Arial, sans-serif; color: #555; }
.w-new { background: #ff0000; color: #ffff00; font: bold 11px Arial, sans-serif; padding: 0 4px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { visibility: hidden; } }
.w-table { border: 2px outset #c0c0c0; font: 12px Arial, sans-serif; }
.w-table th { background: #000080; color: #fff; }
.w-table td, .w-table th { border: 1px inset #c0c0c0; }
.w-table .ok { color: #008000; font-weight: bold; } .w-table .bad { color: #c00000; font-weight: bold; }
.w-gb input, .w-gb textarea, .w-gb select, .w input[type="submit"], .w input[type="reset"], .w-upd button { font: 12px Arial, sans-serif; }
.w-entry { border: 1px solid #c0c0c0; padding: 6px 8px; margin: 8px 0; background: #f8f8ff; }
.w-entry p { margin: 4px 0 0; }
.w-ring { background: #000 linear-gradient(#200400, #000); color: #ffcc66; min-height: 100%; text-align: center; }
.w-ring h2 { color: #ff8a2a; } .w-ring a { color: #66ccff !important; } .w-ring ol { text-align: left; display: inline-block; }
.w-ringnav { margin: 10px auto; border: 2px ridge #ff8a2a; }
.w-upd { font-family: Tahoma, Arial, sans-serif; }
.w-updh { font: bold 1.6em Tahoma, sans-serif; color: #fff; background: linear-gradient(90deg, #0a246a, #3a6ec8); padding: 10px 12px; display: flex; align-items: center; gap: 10px; margin: -10px -14px 12px; }
.w-bar { height: 14px; border: 1px solid #808080; width: 260px; overflow: hidden; }
.w-bar i { display: block; height: 100%; width: 40%; background: repeating-linear-gradient(90deg, #0a246a 0 8px, transparent 8px 10px); animation: wbar 1.2s linear infinite; }
@keyframes wbar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.w-uc { text-align: center; padding: 20px 0 6px; }
.w-uc-sign { display: inline-block; padding: 8px 16px; font: bold 16px Arial, sans-serif; background: repeating-linear-gradient(45deg, #ffd400 0 14px, #000 14px 28px); color: #fff; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000; border: 2px solid #000; }
.w-uc-man { font-size: 40px; margin-top: 8px; animation: dig .6s ease-in-out infinite alternate; }
@keyframes dig { to { transform: rotate(-12deg) translateY(3px); } }
.w-err { padding: 16px 20px; font: 12px/1.5 Tahoma, Verdana, sans-serif; max-width: 560px; }
.w-err h1 { font: bold 17px Tahoma, sans-serif; display: flex; align-items: center; gap: 10px; margin: 0; }
.w-err h1 svg { width: 32px; height: 32px; flex: none; }
.w-err hr { border-color: #c0c0c0; border-bottom: 0; }
.w-err ul { padding-left: 20px; margin: 6px 0 12px; }
.w-pre { margin: 0; padding: 10px; font: 13px "Courier New", monospace; white-space: pre-wrap; }
.w-img { padding: 10px; } .w-img img { max-width: 100%; image-rendering: pixelated; border: 1px solid #ccc; }

/* ---------- Disk Defragmenter ---------- */
.df { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 6px; min-height: 0; overflow: auto; }
.df-vols { background: #fff; height: 96px; flex: none; overflow: auto; }
.df-lbl { margin-top: 4px; }
canvas.df-map { width: 100%; height: 46px; display: block; background: #fff; flex: none; }
.df-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; }
.df-legend i { display: inline-block; width: 12px; height: 12px; border: 1px solid #000; vertical-align: -2px; margin-right: 4px; }
.df-rep { width: 420px; max-width: calc(100vw - 40px); }
.df-rep p { margin: 6px 0; display: flex; gap: 8px; align-items: center; }

/* ---------- Solitaire ---------- */
.sol-table { flex: 1; position: relative; min-height: 0; overflow: hidden; background: #008000 radial-gradient(ellipse at 50% 40%, #0a9a2a, #006a10 85%); margin-top: 2px; user-select: none; -webkit-user-select: none; touch-action: none; --cw: 71px; --ch: 96px; }
.slot { position: absolute; width: var(--cw); height: var(--ch); border: 1px solid rgba(0,0,0,.45); border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.slot.stock::after { content: ""; position: absolute; inset: 28%; border: 3px solid #00c000; border-radius: 50%; opacity: .8; }
.slot.stock.done::after { border: 0; content: "\2715"; color: #e02020; font: bold calc(var(--cw) * .5) Arial; display: flex; align-items: center; justify-content: center; inset: 0; }
.slot.found { background: rgba(0,0,0,.08); }
.card { position: absolute; width: var(--cw); height: var(--ch); border-radius: 4px; cursor: default; }
.card .c-face, .card .c-back { position: absolute; inset: 0; border-radius: 4px; border: 1px solid #000; }
.card .c-face { display: none; background: #fff; color: #000; font-family: Arial, sans-serif; }
.card.up .c-face { display: block; }
.card.up .c-back { display: none; }
.c-face.red { color: #d01010; }
.c-face .tl, .c-face .br { position: absolute; font: bold calc(var(--cw) * .19) / 1 Arial, sans-serif; text-align: center; }
.c-face .tl { left: 3px; top: 3px; } .c-face .br { right: 3px; bottom: 3px; transform: rotate(180deg); }
.c-face .mid { position: absolute; inset: 22% 20%; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; font-size: calc(var(--cw) * .26); line-height: 1; letter-spacing: 1px; text-align: center; word-break: break-all; }
.c-face .mid big { font-size: calc(var(--cw) * .6); }
.c-face .mid.court { border: 1px solid currentColor; background: repeating-linear-gradient(45deg, rgba(255,210,0,.18) 0 4px, transparent 4px 8px); flex-direction: column; font: bold calc(var(--cw) * .42) Georgia, serif; }
.c-face .mid.court small { font-size: .55em; }
.c-back { background: #0a246a; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px rgba(0,0,0,.4); }
.back-0 .c-back { background: radial-gradient(circle at 50% 50%, #fff3c8 0, #ffbf55 6%, #ff6c1c 13%, #8a1c06 21%, rgba(0,0,0,0) 23%), repeating-linear-gradient(45deg, #0a246a 0 4px, #14307e 4px 8px); }
.back-1 .c-back { background: repeating-linear-gradient(45deg, #2050c8 0 3px, #5a86e8 3px 6px), #2050c8; background-blend-mode: multiply; background-image: repeating-linear-gradient(45deg, #2050c8 0 3px, #5a86e8 3px 6px), repeating-linear-gradient(-45deg, rgba(255,255,255,.35) 0 3px, transparent 3px 6px); }
.back-2 .c-back { background: repeating-linear-gradient(180deg, #000 0 7px, #1d1d1d 7px 9px); }
.back-2 .c-back::after { content: "CLASSIFIED"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-30deg); color: #d01010; border: 2px solid #d01010; font: bold calc(var(--cw) * .14) Arial; padding: 1px 3px; }
.back-3 .c-back { background: repeating-linear-gradient(0deg, rgba(160,200,255,.35) 0 1px, transparent 1px 8px), repeating-linear-gradient(90deg, rgba(160,200,255,.35) 0 1px, transparent 1px 8px), radial-gradient(circle, rgba(255,140,40,.6), rgba(0,0,0,0) 40%), #0b2a5a; }
.back-4 .c-back { background: repeating-linear-gradient(45deg, #a01010 0 3px, #d84a3a 3px 6px), #a01010; background-image: repeating-linear-gradient(45deg, #a01010 0 3px, #d84a3a 3px 6px), repeating-linear-gradient(-45deg, rgba(255,255,255,.3) 0 3px, transparent 3px 6px); }
canvas.sol-win { position: absolute; inset: 0; z-index: 5000; cursor: default; }
.deck-pick { display: flex; gap: 10px; flex-wrap: wrap; --cw: 56px; --ch: 76px; }
.deck-pick .card { position: relative; }
.deck-pick .card.on { outline: 3px solid var(--sel); outline-offset: 3px; }
.sol-og { display: flex; gap: 10px; }
.sol-og fieldset { flex: 1; }
