/* Escritorio oculto "Hoopla OS": aparece al tipear HOOPLA (o tocar HOOPLA al costado en el celular).
   Reusa el marco Platinum de ventanas.css. */
.marcas .m-marca { pointer-events: auto; cursor: default; padding: 8px; margin: -8px; -webkit-tap-highlight-color: transparent; }

/* Pista escondida dentro de cada foto de las ventanas */
.mac-win .mw-pista {
  position: absolute; z-index: 1; pointer-events: none; display: flex; align-items: baseline; gap: 3px;
  font: 400 34px/1 "Pixelify Sans", monospace; color: #f6fa97; mix-blend-mode: difference; text-shadow: 0 0 1px #000;
}
.mac-win .mw-pista small { font-size: 11px; letter-spacing: .05em; }
.mac-win .mw-huevo .mw-huevo-pista { display: block; margin-top: 6px; font-weight: 400; }

.hos {
  --hos-gris: #272624; --hos-rosa: #f2cfce; --hos-amarillo: #f6fa97;
  position: fixed; inset: 0; z-index: 2147483000; overflow: hidden; color: #000;
  font-family: Charcoal, "Chicago", Geneva, -apple-system, Helvetica, Arial, sans-serif; font-size: 12px;
  background-color: var(--hos-gris);
  background-image: radial-gradient(rgba(242, 207, 206, .14) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s linear .25s;
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.hos.abierto { opacity: 1; visibility: visible; transition: opacity .25s; }
.hos *, .hos *::before, .hos *::after { box-sizing: border-box; }

/* Barra de menú */
.hos-menu {
  position: absolute; left: 0; right: 0; top: 0; height: 22px; display: flex; align-items: center; gap: 18px; padding: 0 12px;
  background: #dddddd; border-bottom: 1px solid #000; box-shadow: inset 0 -1px 0 #888, inset 0 1px 0 #fff; font-weight: 700; z-index: 5;
}
.hos-menu .hos-logo { font: 400 19px/1 "Instrument Serif", Georgia, serif; margin-top: -2px; }
.hos-menu .hos-reloj { margin-left: auto; font-weight: 700; }
.hos-menu button { all: unset; cursor: pointer; padding: 2px 6px; font-weight: 700; }
.hos-menu button:hover, .hos-menu button:focus-visible { background: #000; color: #fff; }

/* Íconos */
.hos-iconos {
  position: absolute; top: 40px; right: 18px; bottom: 18px; display: grid; grid-auto-flow: column;
  grid-template-rows: repeat(auto-fill, 96px); grid-auto-columns: 96px; gap: 6px 10px; direction: rtl;
}
.hos-icono { all: unset; direction: ltr; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 96px; cursor: default; text-align: center; }
.hos-icono svg { width: 44px; height: 44px; display: block; image-rendering: pixelated; }
.hos-icono span { padding: 1px 4px; color: #fff; background: rgba(0, 0, 0, .35); font-size: 11px; line-height: 1.25; max-width: 96px; overflow-wrap: anywhere; }
.hos-icono.sel svg { filter: brightness(.55) sepia(1) hue-rotate(200deg) saturate(3); }
.hos-icono.sel span, .hos-icono:focus-visible span { background: #000; color: #fff; outline: 1px dotted #fff; }

/* Ventanas del escritorio */
.hos .hos-win { position: absolute; width: min(440px, calc(100vw - 24px)); max-height: calc(100% - 60px); z-index: 2; }
.hos .hos-win .mw-cuerpo { overflow: auto; cursor: auto; padding: 16px 18px 20px; user-select: text; -webkit-user-select: text; flex: 1 1 auto; }
.hos .hos-win .mw-cuerpo h3 { margin: 0 0 .35em; font: 400 32px/1 "Instrument Serif", Georgia, serif; }
.hos .hos-win .mw-cuerpo h3 i { font-style: italic; }
.hos .hos-win .mw-cuerpo p { margin: 0 0 .8em; font-size: 13px; line-height: 1.45; }
.hos .hos-win .mw-cuerpo .hos-dato { font: 400 40px/1 "Pixelify Sans", monospace; margin: .2em 0 .1em; }
.hos .hos-win .mw-cuerpo a { color: #000; }
.hos .hos-win .mw-cuerpo .hos-nota { opacity: .55; font-size: 11px; }
.hos .hos-boton { all: unset; cursor: pointer; display: inline-block; margin-top: 4px; padding: 3px 14px; border: 1px solid #000; border-radius: 4px; background: #eee; box-shadow: inset -1px -1px 0 #888, inset 1px 1px 0 #fff, 0 0 0 1px #000; font-weight: 700; }
.hos .hos-boton:active { background: #888; color: #fff; }

/* Arranque */
.hos-arranque {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 9; width: min(320px, 86vw);
  padding: 22px 18px 18px; text-align: center; background: #dddddd; border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #888, 3px 3px 0 rgba(0, 0, 0, .55);
}
.hos-arranque b { display: block; font: 400 44px/1 "Instrument Serif", Georgia, serif; }
.hos-arranque b i { font-style: italic; }
.hos-arranque .hos-barra { height: 12px; margin-top: 14px; border: 1px solid #000; background: #fff; }
.hos-arranque .hos-barra i { display: block; height: 100%; width: 0; background: #6666cc; transition: width 1s steps(12); }
.hos.listo .hos-arranque { display: none; }
.hos:not(.listo) .hos-iconos, .hos:not(.listo) .hos-win { visibility: hidden; }

@media (min-width: 641px) { .hos-icono[data-id="papelera"] { position: absolute; right: 0; bottom: 0; } }
@media (max-width: 640px) {
  .hos-menu .hos-opc { display: none; }
  .hos-iconos { left: 12px; right: 12px; grid-auto-flow: row; grid-template-columns: repeat(auto-fill, 86px); grid-template-rows: none; grid-auto-rows: 92px; direction: ltr; justify-content: space-between; }
  .hos-icono { width: 86px; }
  .hos .hos-win { left: 12px !important; top: auto !important; bottom: 12px; width: calc(100vw - 24px); max-height: 58%; }
}
@media (prefers-reduced-motion: reduce) { .hos, .hos.abierto { transition: none; } .hos-arranque .hos-barra i { transition: none; } }
