/* ==========================================================================
   Escritorio 98 — estilos de programas, diálogos y pantallas del sistema
   ========================================================================== */

/* Recalcula los biseles con los colores locales (vista previa de Apariencia) */
.scheme-scope {
  --raised: inset -1px -1px var(--dark), inset 1px 1px var(--hilite), inset -2px -2px var(--shadow), inset 2px 2px var(--light);
  --raised-win: inset -1px -1px var(--dark), inset 1px 1px var(--light), inset -2px -2px var(--shadow), inset 2px 2px var(--hilite);
  --sunken: inset -1px -1px var(--hilite), inset 1px 1px var(--shadow), inset -2px -2px var(--light), inset 2px 2px var(--dark);
}
.no-menu-anim .menu.anim { animation: none; }
html.smooth-fonts body { -webkit-font-smoothing: auto; }
.ico32 { width: 32px; height: 32px; image-rendering: pixelated; flex: none; }
.run-row { display: flex; align-items: center; gap: 8px; }
.run-row label { white-space: nowrap; }

/* ---------- Bienvenido ---------- */
.welcome-body { padding: 10px 12px 10px; display: flex; flex-direction: column; gap: 10px; }
.welcome-head { font: 22px/1.1 Arial, sans-serif; letter-spacing: -0.3px; }
.welcome-head b { font-family: "Arial Black", Arial, sans-serif; }
.welcome-head .w98 { font: bold 22px Arial, sans-serif; color: var(--face); -webkit-text-stroke: 1px var(--dark); margin-left: 1px; }
.welcome-main { display: flex; gap: 10px; }
.tipbox { flex: 1; background: var(--win); box-shadow: var(--sunken); padding: 12px 14px; min-height: 150px; }
.tip-title { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 8px; }
.tip-title img { width: 32px; height: 32px; image-rendering: pixelated; }
.tip-text { margin: 0; font-size: 12px; line-height: 1.5; }
.welcome-btns { display: flex; flex-direction: column; gap: 6px; width: 150px; }
.welcome-btns .btn { width: 100%; }
.welcome-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
@media (max-width: 520px) {
  .welcome-main { flex-direction: column; }
  .welcome-btns { width: 100%; }
  .welcome-foot { flex-direction: column; align-items: stretch; }
}

/* ---------- arranque / apagado ---------- */
.boot-bios, .boot-text { background: #000; color: #c0c0c0; }
.boot-bios pre, .boot-text pre { margin: 0; padding: 18px 22px; font: 20px/1.15 var(--mono); white-space: pre-wrap; }
.boot-bios::after {
  content: ""; position: absolute; top: 18px; right: 22px; width: 90px; height: 54px;
  background: linear-gradient(135deg, #1a8f2a 0 48%, #000 48% 52%, #e8d020 52%); opacity: .8;
  -webkit-mask: radial-gradient(circle at 30% 50%, #000 0 40%, transparent 41%), linear-gradient(#000, #000) right / 45% 100% no-repeat;
  mask: radial-gradient(circle at 30% 50%, #000 0 40%, transparent 41%), linear-gradient(#000, #000) right / 45% 100% no-repeat;
}
.boot-splash { background: #000; }
.splash { position: absolute; inset: 0; display: grid; place-items: center; }
.splash-logo { display: flex; align-items: center; gap: 18px; margin-top: -8vh; }
.splash-logo img { width: 96px; height: 96px; image-rendering: pixelated; filter: drop-shadow(3px 4px 0 rgba(0,0,40,.35)); }
.splash-word { display: flex; align-items: flex-start; color: #fff; text-shadow: 2px 3px 0 rgba(0, 0, 60, .35); }
.sw-win { font: italic 900 clamp(38px, 8vw, 72px)/1 "Arial Black", Arial, sans-serif; letter-spacing: -2px; }
.sw-98 { font: 900 clamp(22px, 4.5vw, 40px)/1 "Arial Black", Arial, sans-serif; color: #ffcc33; margin-left: 4px; }
.splash-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 14px;
  background: linear-gradient(90deg, #0a246a, #3a6ea5, #a6caf0, #3a6ea5, #0a246a, #3a6ea5, #a6caf0, #3a6ea5, #0a246a) 0 0 / 200% 100%;
  animation: splash-bar 1.6s linear infinite;
}
@keyframes splash-bar { to { background-position: -200% 0; } }
.shut-wait { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; }
.shut-logo { width: 72px; height: 72px; image-rendering: pixelated; }
.shut-msg { color: #fff; font: bold 22px Arial, sans-serif; text-shadow: 2px 2px 0 #102050; text-align: center; padding: 0 16px; }
.shut-off { background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; }
.off-msg { color: #e8801c; font: 700 clamp(22px, 5vw, 44px)/1.2 var(--mono); text-align: center; padding: 0 16px; }
.off-hint { color: #444; font: 16px var(--mono); }
.suspended { background: #000; cursor: none; }
.saver { background: #000; cursor: none; }
.saver canvas { display: block; }
.dosfull { background: #000; }
@media (prefers-reduced-motion: reduce) { .splash-bar { animation-duration: 6s; } }

/* ---------- Apagar el sistema ---------- */
.shut-row { display: flex; gap: 16px; padding: 4px 10px 0 4px; }
.shut-opts { display: flex; flex-direction: column; gap: 4px; }
.shut-opts p { margin: 0 0 6px; }

/* ---------- Explorador ---------- */
.ex-body { background: var(--face); }
.ex-toolbar, .ex-addr { display: flex; align-items: center; gap: 2px; padding: 2px 2px; flex: none; border-top: 1px solid var(--hilite); box-shadow: 0 -1px 0 var(--shadow); margin-top: 1px; }
.ex-toolbar .tbtn { min-width: 50px; }
.ex-toolbar .tbtn img { width: 20px; height: 20px; }
.ex-toolbar.big .tbtn { min-width: 54px; }
.ex-addr label { padding: 0 4px 0 2px; }
.addr-box { flex: 1; min-width: 0; display: flex; align-items: center; background: var(--win); box-shadow: var(--sunken); padding: 2px 3px; height: 22px; gap: 3px; }
.addr-box img { width: 16px; height: 16px; image-rendering: pixelated; }
.addr-input { flex: 1; min-width: 0; box-shadow: none !important; padding: 0 !important; min-height: 0 !important; background: transparent !important; }
.ex-main { flex: 1; min-height: 0; display: flex; background: var(--win); box-shadow: var(--sunken); padding: 2px; margin-top: 2px; }
.ex-side { width: 190px; flex: none; padding: 12px 12px; overflow: auto; background: var(--win); border-right: 1px solid var(--light); }
.ex-side-icon { width: 32px; height: 32px; image-rendering: pixelated; }
.ex-side-title { font: bold 18px/1.15 Arial, sans-serif; margin: 6px 0 6px; overflow-wrap: anywhere; }
.ex-side-rule { height: 3px; background: linear-gradient(90deg, #d00000, #ffcc00 35%, #1060e0 70%, transparent); margin-bottom: 10px; }
.ex-side p { margin: 0; }
.ex-side a { color: #0000ff; text-decoration: underline; }
.pie { width: 70px; height: 70px; border-radius: 50%; margin-top: 10px; background: conic-gradient(#0000ff 0 69%, #ff00ff 0); border: 1px solid #000; }
.ex-list { flex: 1; min-width: 0; overflow: auto; padding: 4px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 2px; outline: none; }
.ex-list .ex-item { display: flex; align-items: center; gap: 4px; }
.ex-list.large .ex-item { width: 80px; flex-direction: column; text-align: center; padding: 3px 0; gap: 3px; }
.ex-list.large .lbl { max-width: 76px; overflow-wrap: anywhere; line-height: 13px; }
.ex-list.small .ex-item { width: 150px; }
.ex-list.list { flex-direction: column; flex-wrap: nowrap; }
.ex-list.details { flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 0; }
.ex-list.details .ex-item, .ex-head, .find-results .ex-item { display: grid; grid-template-columns: 16px minmax(120px, 2fr) 1fr 1.4fr; gap: 6px; padding: 1px 4px; }
.ex-head { grid-template-columns: minmax(136px, 2fr) 1fr 1.4fr; background: var(--face); position: sticky; top: 0; padding: 0; gap: 0; }
.ex-head span { box-shadow: var(--raised); padding: 2px 6px; }
.ex-item .lbl { padding: 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-list.large .ex-item .lbl { white-space: normal; }
.ex-item.selected .lbl { background: var(--sel); color: var(--sel-text); }
.ex-list:focus .ex-item.selected .lbl { outline: 1px dotted #ff0; }
.ex-size { text-align: right; }
.ex-empty { color: var(--shadow); padding: 8px; }
@container (max-width: 380px) { .ex-side { display: none; } }
.win98.ex-narrow .ex-side { display: none; }

/* propiedades de elemento */
.prop-head { display: flex; align-items: center; gap: 16px; padding: 2px 4px 8px; }
.prop-head img { width: 32px; height: 32px; image-rendering: pixelated; }
.prop-grid { display: grid; grid-template-columns: 110px 1fr; gap: 8px 6px; padding: 6px 4px; }
.prop-v { overflow-wrap: anywhere; }

/* buscar */
.find-body { gap: 6px; }
.find-top { display: flex; gap: 10px; padding: 6px 4px 0; }
.find-form { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.find-form .tab-panel { display: flex; flex-direction: column; gap: 8px; }
.find-form label { min-width: 70px; }
.find-btns { display: flex; flex-direction: column; gap: 6px; padding-top: 22px; align-items: center; }
.find-anim { width: 32px; height: 32px; margin-top: 6px; }
.find-results { flex: 1; min-height: 0; overflow: auto; background: var(--win); box-shadow: var(--sunken); padding: 2px; }
.find-results .ex-item { grid-template-columns: 16px minmax(100px, 1.3fr) 1.4fr 0.7fr; }
.find-results .ex-head { grid-template-columns: minmax(122px, 1.3fr) 1.4fr 0.7fr; }

/* ayuda */
.help-body { gap: 2px; }
.help-main { flex: 1; min-height: 0; display: flex; gap: 4px; padding-top: 2px; }
.help-left { width: 190px; display: flex; flex-direction: column; flex: none; }
.help-tree { flex: 1; min-height: 0; }
.help-tree > div { display: flex; align-items: center; gap: 2px; padding: 2px; }
.help-tree img { width: 16px; height: 16px; }
.help-content { flex: 1; min-width: 0; overflow: auto; padding: 10px 14px; font: 13px/1.45 Arial, sans-serif; user-select: text; -webkit-user-select: text; }
.help-content h2 { font-size: 16px; margin: 0 0 8px; color: #000080; }
.help-content h3 { font-size: 13px; margin: 12px 0 4px; }
.help-content p, .help-content ul { margin: 0 0 8px; }
.help-keys td { padding: 2px 12px 2px 0; }
@media (max-width: 520px) { .help-left { width: 130px; } }

/* ---------- cuadros comunes ---------- */
.fd { gap: 8px; }
.fd-list { height: 150px; overflow: auto; display: flex; flex-direction: column; flex-wrap: wrap; align-content: flex-start; padding: 2px; }
.fd-list .ex-item { width: 170px; }
.fd-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 8px; align-items: center; }
.fd-grid select:disabled { color: var(--text); }
.about { min-width: 300px; max-width: 400px; }
.about-row { display: flex; gap: 16px; padding: 4px 6px; }
.about-row img { width: 32px; height: 32px; }
.about-row p { margin: 0 0 10px; }

/* ---------- Bloc de notas ---------- */
.np-text { flex: 1; min-height: 0; width: 100%; box-shadow: var(--sunken); padding: 2px 4px; white-space: pre; overflow: auto; }
.np-text[wrap="soft"] { white-space: pre-wrap; }
.np-find-grid { display: flex; gap: 10px; }
.np-find-grid > div:first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.np-find-opts { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.np-find-opts fieldset { display: flex; gap: 10px; padding: 6px 8px; }
.np-find-btns { display: flex; flex-direction: column; gap: 6px; }

/* ---------- Buscaminas ---------- */
.ms-frame {
  background: #c0c0c0; padding: 6px; margin-top: 1px;
  box-shadow: inset 3px 3px #fff, inset -1px -1px #808080;
  display: flex; flex-direction: column; gap: 6px; width: max-content;
}
.ms-top {
  display: flex; justify-content: space-between; align-items: center; padding: 4px 6px;
  box-shadow: inset 2px 2px #808080, inset -2px -2px #fff;
}
.ms-led { display: flex; background: #000; padding: 1px; box-shadow: 0 0 0 1px #808080, 1px 1px 0 1px #fff; line-height: 0; }
.ms-face {
  width: 26px; height: 26px; padding: 0; border: 1px solid #808080; background: #c0c0c0;
  box-shadow: inset 2px 2px #fff, inset -2px -2px #808080; display: grid; place-items: center;
}
.ms-face:active { box-shadow: inset 1px 1px #808080; padding: 2px 0 0 2px; }
.ms-face svg { display: block; }
.ms-board { display: grid; box-shadow: inset 3px 3px #808080, inset -3px -3px #fff; padding: 3px; width: max-content; touch-action: none; }
.ms-cell {
  width: 16px; height: 16px; background: #c0c0c0; display: grid; place-items: center;
  box-shadow: inset 2px 2px #fff, inset -2px -2px #808080;
  font: bold 13px/16px Tahoma, "Arial Black", Arial, sans-serif;
}
.ms-cell svg { display: block; }
.ms-cell.open, .ms-cell.pressed { box-shadow: inset 1px 1px #808080; padding: 1px 0 0 1px; }
.ms-cell.boom { background: #ff0000; }
.ms-cell.n1 { color: #0000ff; } .ms-cell.n2 { color: #008000; } .ms-cell.n3 { color: #ff0000; } .ms-cell.n4 { color: #000080; }
.ms-cell.n5 { color: #800000; } .ms-cell.n6 { color: #008080; } .ms-cell.n7 { color: #000; } .ms-cell.n8 { color: #808080; }
.ms-best { display: grid; grid-template-columns: auto auto auto; gap: 8px 20px; padding: 10px 14px 4px; }

/* ---------- Paint ---------- */
.pt-body { gap: 0; }
.pt-main { flex: 1; min-height: 0; display: flex; gap: 2px; }
.pt-tools { width: 56px; flex: none; display: grid; grid-template-columns: 25px 25px; grid-auto-rows: 25px; gap: 0; padding: 2px 3px; align-content: start; }
.pt-tool { width: 25px; height: 25px; padding: 0; border: 0; background: var(--face); box-shadow: var(--raised); display: grid; place-items: center; }
.pt-tool img { width: 16px; height: 16px; }
.pt-tool.on { box-shadow: var(--pressed); background: var(--dither); }
.pt-opts { grid-column: 1 / -1; height: 66px; margin: 4px 2px 0; box-shadow: var(--shallow); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.pt-opt { border: 0; background: none; width: 40px; height: 12px; display: grid; place-items: center; padding: 0; }
.pt-opt i { display: block; background: #000; }
.pt-opt.on { background: var(--sel); }
.pt-opt.on i { background: #fff; }
.pt-stage { flex: 1; min-width: 0; overflow: auto; background: var(--shadow); box-shadow: var(--sunken); padding: 3px; }
.pt-paper { position: relative; width: max-content; margin: 2px; }
.pt-canvas, .pt-overlay { display: block; image-rendering: pixelated; max-width: none; }
.pt-overlay { position: absolute; left: 0; top: 0; touch-action: none; cursor: crosshair; }
.pt-paper::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 3px; height: 3px; background: #000080; }
.pt-text-in { position: absolute; min-height: 0 !important; padding: 0 2px !important; font: 13px "Times New Roman", serif; background: transparent !important; border: 1px dashed #000 !important; box-shadow: none !important; }
.pt-colorbox { display: flex; gap: 2px; padding: 4px 3px 2px; flex: none; }
.pt-current { width: 30px; height: 32px; position: relative; box-shadow: var(--sunken); background: var(--dither); flex: none; }
.pt-current i { position: absolute; width: 14px; height: 14px; box-shadow: 0 0 0 1px var(--shadow), 1px 1px 0 1px var(--hilite); }
.pt-fg { left: 5px; top: 5px; z-index: 1; }
.pt-bg { left: 11px; top: 12px; }
.pt-palette { display: grid; grid-template-columns: repeat(14, 16px); grid-auto-rows: 16px; gap: 0; }
.pt-swatch { width: 16px; height: 16px; border: 0; padding: 0; box-shadow: inset 1px 1px var(--shadow), inset -1px -1px var(--hilite), inset 2px 2px var(--dark); }

/* ---------- Calculadora ---------- */
.calc { display: flex; flex-direction: column; gap: 8px; padding: 6px 8px 8px; width: 256px; }
.calc-display { background: var(--win); box-shadow: var(--sunken); text-align: right; padding: 3px 6px; font: 14px/20px var(--font); height: 26px; overflow: hidden; white-space: nowrap; user-select: text; -webkit-user-select: text; }
.calc-top { display: grid; grid-template-columns: 34px 1fr 1fr 1fr; gap: 6px; align-items: center; }
.calc-mem { height: 26px; box-shadow: var(--shallow); display: grid; place-items: center; }
.calc-grid { display: grid; grid-template-columns: 34px repeat(5, 1fr); gap: 5px 6px; }
.calc-grid .btn:nth-child(6n + 1) { margin-right: 6px; width: 34px; }
.calc-btn { min-width: 0; min-height: 27px; padding: 0 2px; }
.calc-btn.blue { color: #0000ff; }
.calc-btn.red { color: #ff0000; }
.calc-btn.kbd { box-shadow: var(--pressed); }

/* ---------- MS-DOS ---------- */
.dos-body { gap: 2px; }
.dos-toolbar { display: flex; align-items: center; gap: 4px; padding: 2px; flex: none; }
.dos-size { min-height: 20px; padding-top: 1px; padding-bottom: 1px; }
.dos-toolbar .tbtn { min-width: 0; padding: 2px; }
.dos-toolbar .tbtn img { width: 16px; height: 16px; }
.dos-term {
  flex: 1; min-height: 0; overflow: auto; background: #000; color: #c0c0c0; padding: 4px 6px;
  font: 18px/1.05 var(--mono); box-shadow: var(--sunken); outline: none; user-select: text; -webkit-user-select: text;
}
.dos-term.full { position: absolute; inset: 0; font-size: clamp(16px, 2.6vw, 26px); padding: 10px 14px; box-shadow: none; }
.dos-out { white-space: pre-wrap; overflow-wrap: anywhere; }
.dos-row { display: flex; white-space: pre; position: relative; }
.dos-line { white-space: pre; }
.dos-input { position: absolute; left: 0; top: 0; width: 100%; opacity: 0; min-height: 0 !important; padding: 0 !important; font: inherit; }
.dos-cur { position: relative; }
.dos-term.focused .dos-cur::after { content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 2px; background: #c0c0c0; animation: dos-blink 1s steps(1) infinite; }
@keyframes dos-blink { 50% { opacity: 0; } }

/* ---------- Internet Explorer ---------- */
.ie-body { gap: 0; }
.menubar { position: relative; }
.ie-throbber { margin-left: auto; width: 38px; height: 22px; background: #000; display: grid; place-items: center; box-shadow: var(--shallow); }
.ie-throbber img { width: 18px; height: 18px; }
.ie-throbber.busy img { animation: ie-spin 1s steps(8) infinite; }
@keyframes ie-spin { to { transform: rotateY(360deg); } }
.ex-toolbar.big .tbtn { font-size: 11px; }
.tbtn.go { flex-direction: row; min-width: 0; padding: 2px 4px; }
.tbtn.go img { width: 16px; height: 16px; }
.ie-links { padding: 0 6px; white-space: nowrap; border-left: 1px solid var(--shadow); box-shadow: inset 1px 0 var(--hilite); }
.ie-view { flex: 1; min-height: 0; display: flex; margin-top: 2px; padding: 2px; }
.ie-page { flex: 1; overflow: auto; background: #fff; color: #000; font: 16px/1.3 "Times New Roman", Times, serif; padding: 8px; outline: none; user-select: text; -webkit-user-select: text; }
.ie-page a { color: #0000ee; text-decoration: underline; }
.ie-page a:hover { color: #ff0000; }
.ie-page hr { border: 0; border-top: 1px solid #808080; border-bottom: 1px solid #fff; }
.ie-page input[type="text"], .ie-page textarea { font: 13px var(--font); }
.ie-page textarea { width: 260px; max-width: 100%; }
.ie-prog { height: 14px; padding: 1px; box-shadow: none; }
.ie-zone { width: 14px; height: 14px; vertical-align: -3px; margin-right: 4px; }
.p-home { background: #000033 radial-gradient(circle, #fff 0 1px, transparent 1.5px) 0 0 / 37px 41px; color: #fff; margin: -8px; padding: 12px 16px 16px; min-height: calc(100% + 16px); }
.p-home a { color: #7fd4ff; }
.p-home a:visited { color: #ff9cff; }
.p-home a:hover { color: #ffff00; }
.p-marq { color: #ffff00; font: bold 14px Arial, sans-serif; background: #800000; padding: 2px 0; }
.p-title { font: italic bold 34px "Comic Sans MS", "Chalkboard SE", "Times New Roman", serif; color: #00ff66; text-shadow: 3px 3px 0 #ff00aa; text-align: center; margin: 10px 0; }
.p-construction { margin: 0 auto 12px; width: min(100%, 320px); padding: 5px; background: repeating-linear-gradient(-45deg, #ffcc00 0 12px, #000 12px 24px); }
.p-construction span { display: block; background: #ffcc00; color: #000; font: 900 16px Arial, sans-serif; text-align: center; padding: 3px; }
.p-layout { width: 100%; }
.p-nav { width: 150px; background: #000066; border: 2px ridge #6666ff; }
.p-small { font-size: 12px; }
.p-center { text-align: center; }
.p-blink { animation: p-blink 1s steps(1) infinite; font-weight: bold; }
@keyframes p-blink { 50% { visibility: hidden; } }
.ie-counter { display: inline-flex; gap: 1px; background: #000; padding: 2px; border: 2px inset #808080; margin-top: 4px; }
.ie-counter b { background: #111; color: #39ff14; font: bold 18px var(--mono); padding: 0 3px; }
.p-links li { margin-bottom: 6px; }
.p-form td { padding: 3px; color: #fff; }
.p-search { text-align: center; padding-top: 30px; }
.p-search h1 { font: bold 44px "Times New Roman", serif; margin: 0 0 16px; }
.p-search p { text-align: left; max-width: 520px; margin: 12px auto; }
.p-error { font: 13px/1.4 Arial, sans-serif; max-width: 560px; }
.p-error h2 { font: bold 16px Arial, sans-serif; margin: 4px 0 10px; }
.p-error td { padding: 4px 6px; }
@media (prefers-reduced-motion: reduce) { .p-blink { animation: none; } }

/* ---------- Pantalla y otras hojas de propiedades ---------- */
.sheet { display: flex; flex-direction: column; }
.sheet .tab-panel { min-height: 330px; display: flex; flex-direction: column; gap: 10px; }
.monitor { display: flex; flex-direction: column; align-items: center; flex: none; }
.monitor-case { width: 184px; height: 142px; padding: 14px 16px 16px; background: #c0c0c0; border-radius: 3px; box-shadow: inset -1px -1px #000, inset 1px 1px #fff, inset -2px -2px #808080, 2px 2px 0 rgba(0,0,0,.25); }
.monitor-case > * { width: 152px; height: 112px; display: block; box-shadow: 0 0 0 1px #000, 0 0 0 2px #808080; }
.monitor-neck { width: 40px; height: 6px; background: #a0a0a0; box-shadow: inset 1px 0 #fff, inset -1px 0 #000; }
.monitor-foot { width: 110px; height: 8px; background: #c0c0c0; box-shadow: inset -1px -1px #000, inset 1px 1px #fff; }
.mini-desk { background-size: auto; }
.wall-row { display: flex; gap: 10px; }
.wall-left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.wall-list { height: 104px; }
.wall-right { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.saver-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 3px 0; }
.saver-row select { min-width: 150px; }
.appearance-prev { background: var(--desktop); box-shadow: var(--sunken); padding: 12px 12px 14px; height: 196px; position: relative; overflow: hidden; }
.ap-win { position: absolute; background: var(--face); box-shadow: var(--raised-win); padding: 3px; color: var(--text); }
.ap-inactive { left: 12px; top: 10px; width: 250px; height: 80px; }
.ap-active { left: 24px; top: 32px; width: 270px; height: 120px; }
.ap-msg { left: 56px; top: 100px; width: 170px; height: 80px; }
.ap-win .title-bar { gap: 4px; }
.ap-ctl { display: flex; gap: 0; }
.ap-ctl i { width: 16px; height: 14px; background: var(--face); box-shadow: var(--raised); }
.ap-ctl i:last-child { margin-left: 2px; }
.ap-menu { display: flex; gap: 10px; padding: 3px 4px; }
.ap-sel { background: var(--sel); color: var(--sel-text); padding: 0 4px; }
.ap-text { height: 54px; padding: 4px; }
.ap-msg-body { padding: 6px; text-align: left; }
.ap-ok { min-width: 60px; min-height: 20px; margin: 6px auto 0; display: flex; width: max-content; }
.fx-icons { display: flex; gap: 14px; background: var(--win); box-shadow: var(--sunken); padding: 10px; }
.fx-icons img { width: 32px; height: 32px; }
.fx-set { display: flex; flex-direction: column; gap: 6px; }
.cfg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cfg-res { display: flex; align-items: center; gap: 6px; }
.cfg-track { flex: 1; height: 4px; box-shadow: var(--sunken); position: relative; }
.cfg-track i { position: absolute; left: 45%; top: -8px; width: 11px; height: 20px; background: var(--face); box-shadow: var(--raised); }
.cfg-center { text-align: center; margin-top: 6px; }
@media (max-width: 440px) { .cfg-grid { grid-template-columns: 1fr; } .wall-row { flex-direction: column; } }

.tb-preview { height: 120px; background: var(--desktop); box-shadow: var(--sunken); position: relative; overflow: hidden; margin-bottom: 4px; }
.tbp-menu { position: absolute; left: 4px; bottom: 26px; width: 150px; background: var(--face); box-shadow: var(--raised-win); padding: 3px 3px 3px 26px; display: flex; flex-direction: column; }
.tbp-menu i { position: absolute; left: 3px; top: 3px; bottom: 3px; width: 20px; background: linear-gradient(0deg, #000080, #1084d0); }
.tbp-menu span { padding: 7px 4px; }
.tbp-menu.small { padding-left: 3px; }
.tbp-menu.small i { display: none; }
.tbp-menu.small span { padding: 3px 4px; }
.tbp-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 24px; background: var(--face); box-shadow: inset 0 1px var(--face), inset 0 2px var(--hilite); display: flex; align-items: center; gap: 4px; padding: 3px 3px 1px; }
.tbp-start { display: flex; align-items: center; gap: 3px; height: 19px; padding: 0 4px; box-shadow: var(--raised); }
.tbp-start img { width: 14px; height: 14px; }
.tbp-task { height: 19px; padding: 0 6px; box-shadow: var(--raised); display: flex; align-items: center; flex: 0 1 120px; overflow: hidden; white-space: nowrap; }
.tbp-clock { margin-left: auto; height: 19px; padding: 0 6px; box-shadow: var(--shallow); display: flex; align-items: center; }

.dt-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; }
.dt-row { display: flex; gap: 6px; margin-bottom: 6px; }
.dt-row select { flex: 1; min-width: 0; }
.dt-cal { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--win); box-shadow: var(--sunken); padding: 3px; text-align: center; font-variant-numeric: tabular-nums; }
.dt-cal b { background: var(--shadow); color: #fff; padding: 1px 0; }
.dt-cal span { padding: 2px 0; }
.dt-cal .today { background: var(--sel); color: var(--sel-text); }
.dt-clock { display: grid; place-items: center; padding: 4px 0; }
.dt-time { width: 100%; text-align: center; font-variant-numeric: tabular-nums; }
.dt-zone { margin: 0; }
.tz-map { height: 150px; box-shadow: var(--sunken); background:
  radial-gradient(40% 30% at 25% 40%, #3a9a3a 0 60%, transparent 62%), radial-gradient(18% 34% at 30% 75%, #3a9a3a 0 60%, transparent 62%),
  radial-gradient(22% 26% at 55% 35%, #3a9a3a 0 60%, transparent 62%), radial-gradient(14% 30% at 55% 70%, #3a9a3a 0 60%, transparent 62%),
  radial-gradient(30% 22% at 75% 35%, #3a9a3a 0 60%, transparent 62%), radial-gradient(10% 10% at 85% 75%, #3a9a3a 0 60%, transparent 62%), #1a3a9a; }
@media (max-width: 440px) { .dt-grid { grid-template-columns: 1fr; } }

/* deslizadores */
.slider { position: relative; outline: none; touch-action: none; }
.slider.vertical { width: 24px; margin: 0 auto; }
.slider:not(.vertical) { height: 22px; }
.slider-track { position: absolute; box-shadow: var(--sunken); }
.slider.vertical .slider-track { left: 10px; top: 4px; bottom: 4px; width: 4px; }
.slider:not(.vertical) .slider-track { top: 9px; left: 4px; right: 4px; height: 4px; }
.slider-thumb { position: absolute; background: var(--face); box-shadow: var(--raised); }
.slider.vertical .slider-thumb { left: 2px; width: 21px; height: 11px; }
.slider:not(.vertical) .slider-thumb { top: 1px; width: 11px; height: 20px; }
.slider:focus-visible .slider-thumb { outline: 1px dotted #000; outline-offset: 1px; }
.vol-popup {
  position: fixed; z-index: 21000; background: var(--face); box-shadow: var(--raised-win);
  padding: 8px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.vol-mixer { display: flex; gap: 0; padding: 4px 0; }
.vol-col { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 12px 6px; min-width: 110px; }
.vol-col + .vol-col { border-left: 1px solid var(--shadow); box-shadow: inset 1px 0 var(--hilite); }
.vol-col > b { font-weight: normal; white-space: nowrap; margin-bottom: 6px; }
.vol-col > div:not(.slider) { align-self: flex-start; }

/* propiedades de sistema */
.sys-gen { display: flex; gap: 16px; padding: 10px 6px; }
.sys-art { width: 150px; height: 150px; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, #008080 0 55%, transparent 56%); flex: none; }
.sys-art img { width: 96px; height: 96px; image-rendering: pixelated; }
.sys-text p { margin: 0 0 14px; }
.sys-text span { display: block; padding-left: 24px; margin-top: 2px; }
.sys-tree { height: 240px; }
.sys-tree > div { display: flex; align-items: center; gap: 2px; }
.sys-tree img { width: 16px; height: 16px; }
.sys-radios { display: flex; gap: 14px; flex-wrap: wrap; }
.sys-perf { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 4px 4px 10px; }
@media (max-width: 440px) { .sys-gen { flex-direction: column; } .sys-art { width: 100%; height: 110px; } }

/* ---------- Juegos de MS-DOS (js-dos) ---------- */
.dg-body { gap: 0; }
.dg-screen {
  flex: 1; min-height: 0; position: relative; overflow: hidden;
  display: grid; place-items: center; background: #000; box-shadow: var(--sunken);
}
.dg-frame { position: relative; background: #000; }
.dg-frame canvas, .dg-frame .dosbox-container { display: block; width: 100% !important; height: 100% !important; }
.dg-canvas { image-rendering: pixelated; outline: none; background: #000; }
.dosbox-overlay, .dosbox-loader { display: none !important; }
.dg-loading {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; background: #000; color: #c0c0c0; font: 22px var(--mono);
}
.dg-loading p { margin: 0; }
.dg-loading img { width: 32px; height: 32px; image-rendering: pixelated; }
.dg-loading .progress { width: 220px; overflow: hidden; }
.dg-loading .progress > i { width: 40%; animation: dg-load 1.6s steps(12) infinite; }
@keyframes dg-load { from { margin-left: -40%; } to { margin-left: 100%; } }
@media (prefers-reduced-motion: reduce) { .dg-loading .progress > i { animation: none; width: 100%; } }

/* ---------- Perfil profesional (página de inicio de Internet Explorer) ---------- */
.pf {
  margin: -8px; padding: 10px 16px 14px; min-height: calc(100% + 16px);
  background: #05051e radial-gradient(circle, rgba(255,255,255,.4) 0 .7px, transparent 1.1px) 0 0 / 67px 59px;
  color: #e8e8ff; font: 16px/1.45 "Times New Roman", Times, serif;
}
.pf a { color: #7fd4ff; }
.pf a:visited { color: #ff9cff; }
.pf a:hover { color: #ffff00; }
.pf p { margin: 0 0 10px; max-width: 660px; }
.pf h2 { font: 900 20px/1.2 "Arial Black", Arial, sans-serif; color: #ffcc33; margin: 20px 0 8px; text-shadow: 2px 2px 0 #5a2000; }
.pf-marq { display: block; color: #ffff66; background: #7a0000; font: bold 13px Arial, sans-serif; padding: 2px 0; margin-bottom: 8px; }
.pf-nav { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.pf a.pf-navbtn {
  color: #000; text-decoration: none; background: #c0c0c0; font: bold 12px Arial, sans-serif; padding: 4px 10px;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #dfdfdf;
}
.pf a.pf-navbtn:hover { color: #000080; }
.pf a.pf-navbtn.on { box-shadow: inset -1px -1px #fff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px #808080; background: #a8a8a8; }
table.pf-head, .pf-head tbody, .pf-head tr { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.pf-head td { display: block; }
.pf-photo img { display: block; max-width: 100%; height: auto; border: 4px ridge #c0c0c0; image-rendering: auto; }
.pf-name, .pf-h1 {
  margin: 0 0 6px; font: italic 900 38px/1.05 "Arial Black", Arial, sans-serif; letter-spacing: -1px;
  background: linear-gradient(#fff3a0, #ffb000 50%, #e03000); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(2px 2px 0 #3a0a00);
}
.pf-h1 { font-size: 30px; margin-bottom: 8px; }
.pf-role { font: bold 18px/1.3 Arial, sans-serif; color: #7fd4ff; }
.pf-role span { font-weight: normal; font-size: 15px; color: #c8c8ff; }
.pf-loc { font: 13px Arial, sans-serif; color: #b0b0d8; }
.pf a.pf-hire {
  display: inline-block; text-decoration: none; color: #000; font: 900 15px Arial, sans-serif; padding: 6px 16px;
  background: linear-gradient(#ffe066, #ff8a00); border: 3px outset #ffcc66;
}
.pf a.pf-hire:hover { color: #000; border-style: inset; }
.pf-center { text-align: center; max-width: none !important; }
.pf-small { font-size: 12px; }

/* circuitos del tiempo */
.tc {
  display: grid; gap: 8px; max-width: 540px; margin: 16px 0 6px; padding: 10px 12px;
  background: linear-gradient(#5a5a5a, #2a2a2a); border: 3px outset #777;
}
.tc-row { display: flex; flex-direction: column; align-items: center; }
.tc-cells { display: flex; align-items: flex-end; gap: 6px; flex-wrap: wrap; justify-content: center; background: #151515; padding: 4px 10px 6px; border: 2px inset #444; }
.tc-cell { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.tc-cell small { font: bold 8px Arial, sans-serif; color: #ddd; letter-spacing: 1px; }
.tc-cell b { font: 28px/1 var(--mono); background: #000; padding: 1px 5px; letter-spacing: 2px; min-width: 2.4ch; text-align: center; }
.tc-colon { font: 28px/1 var(--mono); padding-bottom: 2px; }
.tc-ampm { display: flex; flex-direction: column; gap: 3px; font: bold 8px Arial, sans-serif; padding-bottom: 3px; }
.tc-ampm i { font-style: normal; opacity: .25; }
.tc-ampm i.on { opacity: 1; text-shadow: 0 0 6px currentColor; }
.tc-ampm i::before { content: "●"; margin-right: 2px; }
.tc-lbl { margin-top: 4px; padding: 1px 14px; font: bold 10px Arial, sans-serif; letter-spacing: 1px; color: #fff; }
.tc-red { color: #ff3b30; } .tc-red .tc-lbl { background: #9a0000; }
.tc-green { color: #3dff5a; } .tc-green .tc-lbl { background: #006a10; }
.tc-amber { color: #ffb000; } .tc-amber .tc-lbl { background: #9a6000; }
.tc-row .tc-cell b, .tc-row .tc-colon { text-shadow: 0 0 6px currentColor; }

/* insignias 88x31 */
.pf-badges { display: flex; flex-wrap: wrap; gap: 4px; max-width: 660px; }
.b88 {
  display: inline-flex; align-items: center; justify-content: center; width: 88px; height: 31px;
  background: var(--b-bg); color: var(--b-fg); font: bold 12px Arial, sans-serif; border: 1px solid #000;
  box-shadow: inset 1px 1px rgba(255,255,255,.45), inset -1px -1px rgba(0,0,0,.5);
}
.b88.small { width: auto; height: 20px; padding: 0 7px; font-size: 11px; }
.b88.long:not(.small) { font-size: 10px; letter-spacing: -0.2px; }

/* velocímetro a 88 mph */
table.pf-88box { margin: 20px 0 10px; background: #111; border: 3px outset #666; }
.pf-88box td { padding: 8px 12px; vertical-align: middle; }
.pf-needle { transform-box: view-box; transform-origin: 100px 100px; transform: rotate(68.4deg); animation: pf-needle 2.4s cubic-bezier(.55, 0, .3, 1) both; }
@keyframes pf-needle { from { transform: rotate(-90deg); } 88% { transform: rotate(72deg); } to { transform: rotate(68.4deg); } }
.pf-88 { font: 900 28px/1 "Arial Black", Arial, sans-serif; color: #ffcc00; text-shadow: 0 0 10px #ff6600; animation: pf-88 2.8s linear both; }
@keyframes pf-88 { 0%, 84% { opacity: 0; } 86% { opacity: 1; text-shadow: 0 0 30px #fff, 0 0 12px #ff6600; color: #fff; } 100% { opacity: 1; } }
.pf-quote { font-style: italic; color: #c8c8ff; }

/* proyectos */
.pf-projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.pf-proj { background: #10104a; border: 2px ridge #6666ff; padding: 8px 10px; }
.pf-proj p { font-size: 14px; margin: 6px 0; }
.pf-proj-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pf-proj-head b { font: bold 16px Arial, sans-serif; }
.pf-tipo { font: bold 10px Arial, sans-serif; background: #ffcc33; color: #000; padding: 1px 5px; white-space: nowrap; }
.pf-tags { display: flex; flex-wrap: wrap; gap: 3px; }
.pf-url { font-size: 12px !important; }

/* línea temporal */
.pf-time { border-left: 3px solid #ffcc33; margin: 10px 0 0 8px; padding-left: 14px; }
.pf-ev { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 14px; position: relative; }
.pf-ev::before { content: ""; position: absolute; left: -21px; top: 8px; width: 11px; height: 11px; background: #ffcc33; border: 2px solid #05051e; border-radius: 50%; }
.pf-ev-date { display: flex; align-items: center; gap: 4px; flex: none; min-width: 152px; }
.pf-ev-date span { font: 22px/1 var(--mono); background: #000; color: #ffb000; text-shadow: 0 0 6px #ffb000; padding: 2px 6px; border: 1px solid #444; }
.pf-ev-date i { font-style: normal; color: #ffcc33; }
.pf-ev-body { flex: 1 1 260px; font-size: 15px; }
.pf-ev-body b { color: #7fd4ff; font-family: Arial, sans-serif; }

/* contacto y formularios */
.pf-contact td { padding: 4px 8px 4px 0; vertical-align: middle; }
.pf-mail { font: bold 16px Arial, sans-serif; color: #fff; user-select: text; -webkit-user-select: text; }
.pf-form td { padding: 3px; color: #e8e8ff; }
.pf-foot { font: 12px Arial, sans-serif; color: #9090c0; text-align: center; }
.pf-foot p { max-width: none; }
.pf-foot hr { border: 0; border-top: 1px solid #333366; }
@media (prefers-reduced-motion: reduce) { .pf-needle, .pf-88 { animation: none; } }
.pf .btn, .p-search .btn { font: 11px/1.3 var(--font); }

/* ---------- Winamp (Webamp) ---------- */
#winamp-host { position: absolute; inset: 0; pointer-events: none; }
#winamp-host #webamp { pointer-events: auto; }
#webamp *, #webamp *::before, #webamp *::after { box-sizing: content-box; }
#webamp img { max-width: none; }
