/* ==========================================================================
   Simulador de Windows XP · estilos (Luna azul)
   Totalmente adaptable: ordenador, portátil, tableta y móvil (vertical/horizontal)
   ========================================================================== */
:root {
  --cjk: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", "WenQuanYi Micro Hei", SimSun;
  --font: Tahoma, var(--cjk), "Segoe UI", Geneva, Verdana, "DejaVu Sans", sans-serif;
  --title-font: "Trebuchet MS", Tahoma, var(--cjk), "Segoe UI", sans-serif;
  --tb-h: 30px;                       /* altura de la barra de tareas */
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --face: #ece9d8;
  --sel: #316ac5;
  --login-blue: #5a7edc;
  --login-dark: #00309c;
}
body.touch { --tb-h: 40px; }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #000; }
body {
  font: 11px/1.35 var(--font); color: #000;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none;
  touch-action: manipulation; overscroll-behavior: none;
}
input, textarea, button, select { font: inherit; color: inherit; }
input, textarea { -webkit-user-select: text; user-select: text; }
button { cursor: default; }
img { -webkit-user-drag: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.px { image-rendering: auto; }
[hidden] { display: none !important; }

.screen { position: fixed; inset: 0; display: none; overflow: hidden; }
.screen.on { display: flex; }

/* ----------------------------------------------------------------- Marca XP */
/* Marca NOLUENGO: isotipo que gira (ciclo de 12 s, como en noluengo.com) + rótulo + etiqueta arena */
.nl-brand { display: flex; align-items: center; gap: 14px; color: #F4F4F2; }
.nl-mark { width: 64px; height: 64px; flex: none; }
.nl-mark.spin { animation: nl-spin 12s linear infinite; }
@keyframes nl-spin { to { transform: rotate(360deg); } }
.nl-word { font: 900 46px/1 "Arial Black", Arial, Helvetica, sans-serif; letter-spacing: -.04em; white-space: nowrap; }
.nl-tag { align-self: center; padding: 4px 11px; border-radius: 30px; background: #D8C7AF; color: #050505;
  font: 700 15px/1.2 Rubik, "Trebuchet MS", Arial, sans-serif; letter-spacing: .04em; }
.nl-brand.small { gap: 11px; }
.nl-brand.small .nl-mark { width: 48px; height: 48px; }
.nl-brand.small .nl-word { font-size: 34px; }
.nl-brand.small .nl-tag { font-size: 13px; padding: 3px 9px; }

/* ----------------------------------------------------------------- Arranque */
#boot { background: #000; flex-direction: column; align-items: center; justify-content: center; cursor: none; }
.boot-center { display: flex; flex-direction: column; align-items: center; gap: clamp(40px, 9vh, 90px); transform: translateY(-4vh); }
.boot-bar { position: relative; width: 158px; height: 18px; border: 2px solid #A7A7A2; border-radius: 5px; overflow: hidden; }
.boot-bar i { position: absolute; top: 2px; left: -40px; width: 9px; height: 10px; border-radius: 1px;
  background: linear-gradient(#8f816c 0%, #D8C7AF 30%, #efe5d6 50%, #D8C7AF 70%, #8f816c 100%);
  animation: bootbar 2.4s linear infinite; }
.boot-bar i:nth-child(2) { animation-delay: .13s; }
.boot-bar i:nth-child(3) { animation-delay: .26s; }
@keyframes bootbar { 0% { left: -40px; } 100% { left: 170px; } }
.boot-foot { position: absolute; bottom: calc(18px + var(--safe-b)); left: 0; right: 0; text-align: center; color: #555; font-size: 11px; }

/* ----------------------------------------------------------------- Inicio de sesión */
#login { flex-direction: column; background: var(--login-blue); color: #fff; }
.lg-top, .lg-bottom { flex: none; height: clamp(44px, 11vh, 86px); background: var(--login-dark); position: relative; }
.lg-top::after, .lg-bottom::before { content: ""; position: absolute; left: 0; right: 0; height: 2px; }
.lg-top::after { bottom: 0; background: linear-gradient(90deg, #5a7edc 0%, #fff 45%, #5a7edc 100%); opacity: .9; }
.lg-bottom::before { top: 0; background: linear-gradient(90deg, #3a50a8 0%, #f99736 40%, #c87f2c 70%, #3a50a8 100%); }
.lg-mid { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse 60% 70% at 4% 0%, rgba(160,190,245,.9) 0%, rgba(122,153,230,.6) 35%, rgba(90,126,220,0) 70%), var(--login-blue);
  padding: 16px max(16px, var(--safe-r)) 16px max(16px, var(--safe-l)); }
.lg-left { flex: 1 1 0; display: flex; flex-direction: column; align-items: flex-end; text-align: right; padding-right: clamp(16px, 3vw, 34px); }
.lg-hint { margin: 18px 0 0; font-size: 15px; max-width: 300px; }
.lg-divider { flex: none; width: 1px; align-self: stretch; margin: clamp(10px, 6vh, 60px) 0;
  background: linear-gradient(transparent, rgba(255,255,255,.85) 30%, rgba(255,255,255,.85) 70%, transparent); }
.lg-right { flex: 1 1 0; padding-left: clamp(16px, 3vw, 34px); position: relative; min-width: 0; }
.tile { display: flex; align-items: flex-start; gap: 12px; width: min(380px, 100%); padding: 10px 12px; border-radius: 8px;
  background: linear-gradient(90deg, rgba(0,48,156,.95), rgba(0,48,156,.55) 60%, rgba(90,126,220,0)); }
.avatar { width: 64px; height: 64px; flex: none; border: 2px solid #ffc94a; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.tile-fields { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tile input { width: 100%; height: 30px; padding: 3px 8px; font-size: 16px; color: #000; background: #fff;
  border: 1px solid #0b2f8a; border-radius: 4px; outline: none; }
.tile input:focus { box-shadow: 0 0 0 2px #ffc94a; }
.tile input::placeholder { color: #8a94ad; }
.lg-pw-label { font-size: 12px; opacity: .9; margin-top: 2px; }
.pw-row { display: flex; gap: 6px; align-items: center; }
.pw-row input { flex: 1; min-width: 0; }
.go, .pw-help { flex: none; width: 30px; height: 30px; padding: 0; border: 0; background: none; border-radius: 5px; cursor: pointer; }
.go img { width: 30px; height: 30px; display: block; }
.go:hover img { filter: brightness(1.12); }
.go:active img { filter: brightness(.9); }
.pw-help { background: radial-gradient(circle at 35% 30%, #8cc8ff, #2671e3 60%, #0d3f9e); color: #fff; font-weight: bold; font-size: 15px;
  border: 1.5px solid #fff; }
.lg-balloon { position: absolute; left: clamp(16px, 3vw, 34px); top: calc(100% + 12px); width: min(330px, calc(100vw - 32px)); z-index: 3;
  background: #ffffe1; color: #000; border: 1px solid #000; border-radius: 8px; padding: 8px 10px 8px 34px; font-size: 12px;
  box-shadow: 2px 3px 8px rgba(0,0,0,.35);
  background-image: url(img/aviso.svg); background-repeat: no-repeat; background-size: 18px; background-position: 9px 9px; }
.lg-balloon::before { content: ""; position: absolute; top: -10px; left: 64px; border: 10px solid transparent; border-top: 0;
  border-bottom-color: #000; }
.lg-balloon::after { content: ""; position: absolute; top: -8px; left: 65px; border: 9px solid transparent; border-top: 0;
  border-bottom-color: #ffffe1; }
.lg-balloon b { display: block; margin-bottom: 2px; }
.lg-status { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; text-align: center; padding: 20px;
  font: italic bold clamp(26px, 6vw, 46px)/1.1 var(--title-font); text-shadow: 2px 2px 3px rgba(0,0,40,.6); }
.lg-status small { display: block; font: normal 15px var(--font); margin-top: 12px; text-shadow: none; }
#login.busy .lg-left, #login.busy .lg-right, #login.busy .lg-divider { visibility: hidden; }
#login.busy .lg-status { display: flex; flex-direction: column; }
.tile.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.lg-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 max(20px, var(--safe-r)) var(--safe-b) max(20px, var(--safe-l)); }
.lg-off { display: flex; align-items: center; gap: 8px; background: none; border: 0; color: #fff; font-size: 14px; padding: 4px; cursor: pointer; }
.lg-off img { width: 26px; height: 26px; }
.lg-off:hover span { text-decoration: underline; }
.lg-note { margin: 0; font-size: 12px; text-align: right; max-width: 420px; opacity: .95; }
.lg-foot-right { display: flex; align-items: center; gap: 18px; min-width: 0; }
.lg-langs { flex: none; display: flex; border: 1px solid rgba(255,255,255,.55); border-radius: 4px; overflow: hidden; }
.lg-langs button { padding: 5px 10px; border: 0; background: transparent; color: #fff; font-size: 13px; cursor: pointer; }
.lg-langs button + button { border-left: 1px solid rgba(255,255,255,.55); }
.lg-langs button[aria-pressed="true"] { background: #fff; color: var(--login-dark); font-weight: bold; }
.lg-langs button:hover:not([aria-pressed="true"]) { background: rgba(255,255,255,.15); }
body.touch .lg-langs button { padding: 8px 12px; font-size: 14px; }
:lang(zh) #startbtn { font-style: normal; letter-spacing: 1px; }
:lang(zh) .lg-status { font-style: normal; }
.tray-lang { flex: none; min-width: 22px; height: 18px; padding: 0 3px; border: 1px solid rgba(255,255,255,.65); border-radius: 2px;
  background: #1c5fc8; color: #fff; font: bold 10px/16px Tahoma, sans-serif; cursor: pointer; }
.tray-lang:hover { background: #2b74e0; }
body.touch .tray-lang { height: 24px; min-width: 28px; font-size: 12px; line-height: 22px; }
body.compact .tbtn.b-max { display: none; }

/* ----------------------------------------------------------------- Escritorio */
#desktop { background: #F4F4F2; }
#desktop.wp-colina { background: #245edb url(img/colina.svg) center / cover no-repeat; }
/* Fondo NOLUENGO: marfil con trama de puntos y el sello arena girando despacio, como la portada de noluengo.com */
.wall { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
#desktop[class*="wp-"] .wall { display: none; }
.wall-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(5,5,5,.09) 1px, transparent 1.5px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 40%, #000 20%, transparent 100%); mask-image: radial-gradient(ellipse 70% 80% at 30% 40%, #000 20%, transparent 100%); }
.wall-seal { position: absolute; right: -14vw; top: -26vh; width: max(min(68vw, 980px), 62vh); height: auto; aspect-ratio: 1; opacity: .42;
  animation: nl-spin 110s linear infinite; }
#desktop:not([class*="wp-"]) .dicon span { color: #050505; text-shadow: 0 0 3px #F4F4F2, 0 0 6px rgba(244,244,242,.9); }
#desktop:not([class*="wp-"]) .dicon.sel span { color: #fff; text-shadow: none; }
#desktop:not([class*="wp-"]) .dicon:focus-visible { border-color: #050505; }
#desktop.wp-azul { background: #004e98; }
#desktop.wp-verde { background: #3a6ea5 linear-gradient(160deg, #2f8a5a, #0f4d2c); }
#desktop.wp-cielo { background: linear-gradient(#2a62c9, #6fa3ea 60%, #bcd8f7); }
#desktop.wp-billete { background: #140d08 url(img/billete1940.jpg) center / contain no-repeat; }
#desktop.wp-clasico { background: #3a6ea5; }
#desktop.gray { filter: grayscale(1); transition: filter 1.2s; }

#icons { position: absolute; top: 0; left: 0; right: 0; bottom: calc(var(--tb-h) + var(--safe-b)); padding: 6px 4px;
  padding-left: max(4px, var(--safe-l)); padding-top: max(6px, var(--safe-t));
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(auto-fill, 86px); grid-auto-columns: 82px;
  gap: 2px 6px; align-content: start; justify-content: start; overflow: hidden; }
.dicon { position: relative; width: 82px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 2px;
  border: 1px dotted transparent; background: none; color: #fff; outline: none; cursor: default; }
.dicon .ic { position: relative; width: 48px; height: 48px; }
.dicon .ic img { width: 48px; height: 48px; display: block; filter: drop-shadow(1px 2px 1px rgba(0,0,0,.35)); }
.dicon .ic .shortcut { position: absolute; left: 0; bottom: 0; width: 13px; height: 13px; filter: none; }
.dicon span { font-size: 11px; line-height: 1.25; text-align: center; padding: 0 2px; max-width: 78px; overflow-wrap: anywhere;
  text-shadow: 1px 1px 1px #000, 0 0 3px rgba(0,0,0,.6); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dicon.sel span { background: var(--sel); text-shadow: none; }
.dicon.sel .ic img:first-child { filter: drop-shadow(1px 2px 1px rgba(0,0,0,.35)) brightness(.75) sepia(1) hue-rotate(180deg) saturate(2.4); }
.dicon:focus-visible { border-color: #fff; }

/* ----------------------------------------------------------------- Barra de tareas */
#taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--tb-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: flex; align-items: stretch; z-index: 9000;
  background: linear-gradient(#1f2f86 0, #3165c4 3%, #3682e5 6%, #4490e6 10%, #3883e5 12%, #2b71e0 15%, #2663da 18%, #235bd6 20%,
    #2258d5 23%, #2157d6 38%, #245ddb 54%, #2562df 86%, #245fdc 89%, #2158d4 92%, #1d4ec0 95%, #1941a5 98%); }
#startbtn { flex: none; display: flex; align-items: center; gap: 5px; height: var(--tb-h); padding: 0 22px 0 9px; margin-left: var(--safe-l);
  border: 0; border-radius: 0 12px 12px 0; color: #fff; cursor: pointer;
  font: italic bold 19px/1 var(--title-font); text-shadow: 1px 1px 2px rgba(0,0,0,.55);
  background: radial-gradient(ellipse at 50% 120%, #2c8a2c 0%, rgba(44,138,44,0) 60%),
              linear-gradient(#3c8f3c 0%, #63b85c 7%, #4ea64a 14%, #3a9a38 45%, #349334 75%, #2a822a 92%, #1e6b1e 100%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.35), 2px 0 3px rgba(0,0,0,.35); }
#startbtn img { width: 20px; height: 20px; filter: drop-shadow(1px 1px 1px rgba(0,0,0,.45)); }
#startbtn:hover { filter: brightness(1.1); }
#startbtn[aria-expanded="true"] { filter: brightness(.86); box-shadow: inset 1px 2px 4px rgba(0,0,0,.4); }
#quick { flex: none; display: flex; align-items: center; gap: 2px; padding: 0 6px 0 8px; border-right: 1px solid rgba(0,0,0,.25);
  box-shadow: 1px 0 rgba(255,255,255,.18); margin-right: 4px; }
#quick button { width: 26px; height: 26px; padding: 4px; border: 1px solid transparent; border-radius: 3px; background: none; }
#quick button img { width: 18px; height: 18px; display: block; }
#quick button:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.12); }
#tasks { flex: 1; min-width: 0; display: flex; align-items: center; gap: 3px; padding: 0 4px; overflow: hidden; }
.task { flex: 0 1 160px; min-width: 34px; height: calc(var(--tb-h) - 6px); display: flex; align-items: center; gap: 6px; padding: 0 8px;
  border: 1px solid #1c49a8; border-radius: 3px; color: #fff; font-size: 11px; text-align: left; overflow: hidden;
  background: linear-gradient(#3c81f3, #3b7ef0 8%, #3676e6 90%, #2a63d0); box-shadow: inset 1px 1px rgba(255,255,255,.3); }
.task img { width: 16px; height: 16px; flex: none; }
.task span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task:hover { background: linear-gradient(#53a3ff, #4b93f7 8%, #458bf2 90%, #3a76e0); }
.task.active { background: #1e52b7; box-shadow: inset 1px 1px 2px rgba(0,0,0,.45); border-color: #163c8a; }
#tray { flex: none; display: flex; align-items: center; gap: 6px; padding: 0 max(10px, var(--safe-r)) 0 10px; color: #fff;
  border-left: 1px solid #1042af; box-shadow: inset 1px 0 1px #18bbff;
  background: linear-gradient(#0c59b9 1%, #139ee9 6%, #18b5f2 10%, #139beb 14%, #1290e8 19%, #0d8dea 63%, #0d9ff1 81%, #0f9eed 88%,
    #119be9 91%, #1392e2 94%, #137ed7 97%, #095bc9 100%); }
.tray-ico { width: 16px; height: 16px; }
button.tray-ico { padding: 0; border: 0; background: none; width: 18px; height: 18px; }
button.tray-ico img { width: 16px; height: 16px; filter: invert(1) brightness(2); }
#clock { font-size: 11px; white-space: nowrap; text-shadow: none; }

/* ----------------------------------------------------------------- Menú Inicio */
#startmenu { position: absolute; left: var(--safe-l); bottom: calc(var(--tb-h) + var(--safe-b)); z-index: 9500;
  width: 410px; max-width: calc(100vw - var(--safe-l) - var(--safe-r)); max-height: calc(100% - var(--tb-h) - var(--safe-b) - var(--safe-t));
  display: flex; flex-direction: column; border-radius: 8px 8px 0 0; overflow: hidden;
  background: #4282d6; border: 1px solid #1a50b8; border-bottom: 0; box-shadow: 3px -2px 10px rgba(0,0,0,.45);
  animation: smopen .14s ease-out; }
@keyframes smopen { from { opacity: 0; transform: translateY(12px); } }
.sm-head { flex: none; display: flex; align-items: center; gap: 8px; height: 60px; padding: 6px 10px; color: #fff;
  font: bold 15px var(--title-font); text-shadow: 1px 1px 2px rgba(0,0,0,.5);
  background: linear-gradient(#1868ce, #0e60cb 12%, #0e60cb 20%, #1164cf 32%, #1667cf 33%, #1b6cd3 47%, #1e70d9 54%, #2476dc 60%,
    #297ae0 65%, #3482e3 77%, #3786e5 79%, #428ee9 90%, #4791eb 100%); }
.sm-head img { width: 46px; height: 46px; border: 2px solid #fff; border-radius: 4px; box-shadow: 1px 1px 3px rgba(0,0,0,.4); }
.sm-body { flex: 1; min-height: 0; display: flex; position: relative; border-top: 2px solid #e58d3c;
  border-image: linear-gradient(90deg, rgba(229,141,60,0), #e58d3c 25%, #e58d3c 75%, rgba(229,141,60,0)) 1; }
.sm-left { flex: 1.12; min-width: 0; background: #fff; padding: 6px 0; display: flex; flex-direction: column; overflow: auto; }
.sm-right { flex: 1; min-width: 0; background: #d3e5fa; border-left: 1px solid #95bdee; padding: 6px 0; overflow: auto; }
.sm-item { display: flex; align-items: center; gap: 7px; width: 100%; min-height: 36px; padding: 3px 9px; border: 0; background: none;
  text-align: left; font-size: 11px; color: #000; cursor: pointer; }
.sm-item img { width: 32px; height: 32px; flex: none; }
.sm-item .t { display: flex; flex-direction: column; min-width: 0; }
.sm-item .t b { font-weight: bold; }
.sm-item .t small { color: #666; font-size: 10px; }
.sm-right .sm-item { min-height: 30px; color: #0a246a; font-weight: bold; }
.sm-right .sm-item img { width: 24px; height: 24px; }
.sm-item:hover, .sm-item:focus-visible { background: var(--sel); color: #fff; outline: none; }
.sm-item:hover .t small, .sm-item:focus-visible .t small { color: #dfe8ff; }
.sm-sep { height: 1px; margin: 4px 8px; background: linear-gradient(90deg, transparent, #aab9d0 20%, #aab9d0 80%, transparent); flex: none; }
.sm-left .grow { flex: 1; }
.sm-all { justify-content: center; font-weight: bold; min-height: 30px; }
.sm-all .arr { display: inline-block; width: 18px; height: 18px; border-radius: 3px; margin-left: 6px;
  background: linear-gradient(#5cc04a, #2c8f1c); position: relative; }
.sm-all .arr::after { content: ""; position: absolute; left: 6px; top: 4px; border: 5px solid transparent; border-left: 6px solid #fff; border-right: 0; }
.sm-all.back .arr { transform: scaleX(-1); }
.sm-foot { flex: none; display: flex; justify-content: flex-end; align-items: center; gap: 6px; height: 44px; padding: 0 8px;
  background: linear-gradient(#4282d6, #3b78d0 50%, #2d64c4); }
.sm-foot button { display: flex; align-items: center; gap: 5px; padding: 3px 6px; border: 1px solid transparent; border-radius: 3px;
  background: none; color: #fff; font-size: 11px; cursor: pointer; }
.sm-foot button img { width: 24px; height: 24px; }
.sm-foot button:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.25); }
.sm-group { padding: 6px 10px 2px; font-weight: bold; color: #555; font-size: 10px; text-transform: uppercase; letter-spacing: .5px; }

/* ----------------------------------------------------------------- Ventanas */
#winarea { position: absolute; top: 0; left: 0; right: 0; bottom: calc(var(--tb-h) + var(--safe-b)); pointer-events: none; overflow: hidden; }
.win { position: absolute; display: flex; flex-direction: column; pointer-events: auto; min-width: 180px; min-height: 90px;
  background: var(--face); border-radius: 8px 8px 0 0; padding: 0 3px 3px;
  box-shadow: inset -1px -1px #00138c, inset 1px 1px #0831d9, inset -2px -2px #001ea0, inset 2px 2px #166aee,
              inset -3px -3px #003bda, inset 3px 3px #0855dd, 3px 5px 16px rgba(0,0,0,.38);
  transition: transform .18s ease, opacity .18s ease; }
.win.opening { animation: winopen .14s ease-out; }
@keyframes winopen { from { opacity: 0; transform: scale(.94); } }
.win.min { opacity: 0; transform: translateY(40%) scale(.5); pointer-events: none; visibility: hidden;
  transition: transform .18s ease, opacity .18s ease, visibility 0s .18s; }
.win.max { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; border-radius: 0; }
.win.max .titlebar { border-radius: 0; }
.titlebar { flex: none; display: flex; align-items: center; gap: 4px; height: 30px; margin: 0 -3px; padding: 0 5px 0 6px; color: #fff;
  border-radius: 7px 7px 0 0; touch-action: none;
  background: linear-gradient(#0997ff, #0053ee 8%, #0050ee 40%, #06f 88%, #06f 93%, #005bff 95%, #003dd7 96%, #003dd7);
  box-shadow: inset 1px 1px #3d95ff, inset -1px 0 #002ca8; }
.titlebar .ti { width: 16px; height: 16px; flex: none; }
.titlebar .tt { flex: 1; min-width: 0; font: bold 13px var(--title-font); letter-spacing: .1px; text-shadow: 1px 1px #0f1089;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbtns { flex: none; display: flex; gap: 2px; }
.tbtn { flex: none; width: 21px; height: 21px; padding: 0; border: 1px solid #fff; border-radius: 3px; color: #fff; display: grid; place-items: center;
  background: radial-gradient(circle at 90% 90%, #0054e9 0%, #2263d5 55%, #4479e4 70%, #a3bbec 90%, #fff 100%); }
.tbtn svg { width: 11px; height: 11px; display: block; }
.tbtn:hover { filter: brightness(1.15); }
.tbtn:active { filter: brightness(.85); }
.tbtn.close { background: radial-gradient(circle at 90% 90%, #cc4600 0%, #dc6527 55%, #cd7546 70%, #ffccb2 90%, #fff 100%); }
.win:not(.active) .titlebar { background: linear-gradient(#7697e7, #7e9ee3 3%, #94afe8 6%, #97b4e9 8%, #82a5e4 14%, #7c9fe2 17%, #7996de 25%,
  #7b99e1 56%, #82a9e9 81%, #80a5e7 89%, #7b96e1 94%, #7a93df 97%, #abbae3); box-shadow: none; }
.win:not(.active) .titlebar .tt { color: #d8e4f8; text-shadow: none; }
.win:not(.active) .tbtn { opacity: .65; }
.win:not(.active) { box-shadow: inset -1px -1px #6f87cc, inset 1px 1px #7c97e0, inset -2px -2px #8aa3e3, inset 2px 2px #93abe6,
  inset -3px -3px #8aa3e3, inset 3px 3px #93abe6, 2px 3px 10px rgba(0,0,0,.25); }
.win-body { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; overflow: hidden; container-type: inline-size; }
.rs { position: absolute; z-index: 2; touch-action: none; }
.rs.n { top: -3px; left: 8px; right: 8px; height: 6px; cursor: n-resize; }
.rs.s { bottom: -3px; left: 8px; right: 8px; height: 7px; cursor: s-resize; }
.rs.e { right: -3px; top: 8px; bottom: 8px; width: 7px; cursor: e-resize; }
.rs.w { left: -3px; top: 8px; bottom: 8px; width: 7px; cursor: w-resize; }
.rs.ne { top: -3px; right: -3px; width: 12px; height: 12px; cursor: ne-resize; }
.rs.nw { top: -3px; left: -3px; width: 12px; height: 12px; cursor: nw-resize; }
.rs.se { bottom: -3px; right: -3px; width: 14px; height: 14px; cursor: se-resize; }
.rs.sw { bottom: -3px; left: -3px; width: 12px; height: 12px; cursor: sw-resize; }
.win.max .rs, .win.fixed .rs, body.compact .rs { display: none; }
body.dragging iframe { pointer-events: none; }
body.dragging, body.dragging * { -webkit-user-select: none !important; user-select: none !important; }

/* Barra de menús */
.menubar { flex: none; display: flex; flex-wrap: wrap; align-items: center; padding: 1px 2px; background: var(--face);
  border-bottom: 1px solid #d6d2c2; position: relative; z-index: 5; }
.menubar > button { padding: 3px 7px; border: 0; background: none; font-size: 11px; }
.menubar > button:hover, .menubar > button.open { background: var(--sel); color: #fff; }
.menu-pop { position: absolute; z-index: 9800; min-width: 170px; padding: 2px; background: #fff; border: 1px solid #aca899;
  box-shadow: 2px 2px 4px rgba(0,0,0,.35); font-size: 11px; }
.menu-pop button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 4px 20px 4px 22px;
  border: 0; background: none; text-align: left; white-space: nowrap; }
.menu-pop button:hover:not(:disabled) { background: var(--sel); color: #fff; }
.menu-pop button:disabled { color: #aca899; }
.menu-pop button.chk::before { content: "✓"; position: absolute; left: 8px; }
.menu-pop button { position: relative; }
.menu-pop hr { border: 0; border-top: 1px solid #aca899; margin: 3px 2px; }
.menu-pop kbd { font: inherit; color: inherit; opacity: .8; }
body.touch .menu-pop button { padding-top: 9px; padding-bottom: 9px; font-size: 13px; }

/* Barra de estado */
.statusbar { flex: none; display: flex; gap: 2px; padding: 2px 3px 1px; background: var(--face); border-top: 1px solid #fff;
  box-shadow: 0 -1px #a0a0a0; font-size: 11px; white-space: nowrap; overflow: hidden; }
.statusbar span { padding: 1px 6px; border: 1px solid; border-color: #a0a0a0 #fff #fff #a0a0a0; overflow: hidden; text-overflow: ellipsis; }
.statusbar span:first-child { flex: 1; min-width: 0; }

/* Controles comunes */
.xpbtn { min-width: 75px; height: 23px; padding: 0 10px; font-size: 11px; color: #000; border: 1px solid #003c74; border-radius: 3px;
  background: linear-gradient(#fff, #ecebe6 86%, #d6d0c5); box-shadow: inset 0 -1px 1px rgba(0,0,0,.08); }
.xpbtn:hover:not(:disabled) { box-shadow: inset -1px 1px #fff0cf, inset 1px 2px #fdd889, inset -2px 2px #fbc761, inset 2px -2px #e5a01a; }
.xpbtn:focus-visible, .xpbtn.def { box-shadow: inset -1px 1px #cee7ff, inset 1px 2px #98b8ea, inset -2px 2px #bcd4f6, inset 1px -1px #89ade4, inset 2px -2px #89ade4; outline: none; }
.xpbtn:active:not(:disabled) { background: linear-gradient(#cdcac3, #e3e3db 8%, #e5e5de 94%, #f2f2f1); }
.xpbtn:disabled { color: #aca899; border-color: #c9c7ba; background: #f5f4ea; }
body.touch .xpbtn { height: 32px; min-width: 88px; font-size: 13px; }
.xpinput { height: 23px; padding: 2px 4px; border: 1px solid #7f9db9; background: #fff; font-size: 11px; outline: none; }
body.touch .xpinput { height: 32px; font-size: 16px; }
.field-row { display: flex; align-items: center; gap: 8px; }
.btn-row { display: flex; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }

/* Cuadros de mensaje */
.msg { padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 14px; background: var(--face); }
.msg .msg-main { display: flex; gap: 14px; align-items: flex-start; font-size: 11px; line-height: 1.45; }
body.touch .msg .msg-main { font-size: 13px; }
.msg .msg-main img { width: 32px; height: 32px; flex: none; }
.msg .msg-main p { margin: 0 0 6px; }
.msg .btn-row { justify-content: center; }

/* ----------------------------------------------------------------- Explorador */
.ex-toolbar { flex: none; display: flex; align-items: center; gap: 2px; padding: 2px 4px; background: var(--face); border-bottom: 1px solid #d6d2c2; overflow: hidden; }
.ex-toolbar button { display: flex; align-items: center; gap: 4px; height: 34px; padding: 2px 6px; border: 1px solid transparent; border-radius: 3px; background: none; font-size: 11px; white-space: nowrap; }
.ex-toolbar button img { width: 24px; height: 24px; }
.ex-toolbar button:hover:not(:disabled) { border-color: #cecec3; background: linear-gradient(#fff, #f1f0e8); }
.ex-toolbar button:disabled { opacity: .45; }
.ex-toolbar .sep { width: 1px; align-self: stretch; margin: 4px 3px; background: #c6c3b2; }
.ex-address { flex: none; display: flex; align-items: center; gap: 5px; padding: 3px 5px; background: var(--face); border-bottom: 1px solid #d6d2c2; color: #444; }
.ex-address .box { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; height: 22px; padding: 0 4px; background: #fff; border: 1px solid #7f9db9; color: #000; overflow: hidden; white-space: nowrap; }
.ex-address .box img { width: 16px; height: 16px; flex: none; }
.ex-main { flex: 1; min-height: 0; display: flex; background: #fff; }
.ex-side { flex: none; width: 200px; padding: 12px 10px; overflow: auto; background: linear-gradient(#7ba2e7, #6375d6); }
.ex-panel { margin-bottom: 12px; border-radius: 4px 4px 0 0; overflow: hidden; }
.ex-panel h3 { margin: 0; padding: 5px 10px; font-size: 11px; color: #215dc6; background: linear-gradient(90deg, #fff, #c6d3f7); }
.ex-panel div { padding: 8px 10px; background: #d6dff7; display: flex; flex-direction: column; gap: 5px; }
.ex-panel a { color: #0c32a8; text-decoration: none; display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 11px; }
.ex-panel a img { width: 16px; height: 16px; flex: none; }
.ex-panel a:hover { text-decoration: underline; color: #2b72ff; }
.ex-panel p { margin: 0; font-size: 11px; }
.ex-content { flex: 1; min-width: 0; overflow: auto; padding: 8px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 4px; }
.ex-item { display: flex; align-items: center; gap: 8px; width: 230px; max-width: 100%; padding: 4px; border: 1px solid transparent; background: none; text-align: left; font-size: 11px; }
.ex-item img { width: 48px; height: 48px; flex: none; }
.ex-item .t { display: flex; flex-direction: column; min-width: 0; }
.ex-item .t b { font-weight: normal; overflow-wrap: anywhere; }
.ex-item .t small { color: #7f7f7f; }
.ex-item.sel { background: #e0e8f7; border-color: #a9bfe5; }
.ex-item.sel .t b { background: var(--sel); color: #fff; }
.ex-group { width: 100%; margin: 6px 0 2px; padding-bottom: 3px; font-weight: bold; color: #215dc6; font-size: 11px;
  border-bottom: 1px solid; border-image: linear-gradient(90deg, #7ba2e7, transparent) 1; }
.ex-empty { width: 100%; padding: 20px; color: #555; }
.ex-hidden { margin: 10px; padding: 12px 14px; border: 1px solid #a5b9e3; background: #f0f4fd; max-width: 460px; }
.ex-hidden h4 { margin: 0 0 6px; font-size: 12px; color: #215dc6; }
@container (max-width: 560px) {
  .ex-side { display: none; }
  .ex-toolbar button span { display: none; }
  .ex-item { width: 100%; }
}

/* Bloc de notas */
.np-text { flex: 1; min-height: 0; width: 100%; resize: none; border: 0; outline: none; padding: 2px 4px; font: 13px/1.35 "Lucida Console", Consolas, "Courier New", monospace;
  background: #fff; border-top: 1px solid #a0a0a0; }
body.touch .np-text { font-size: 16px; }
.np-text.nowrap { white-space: pre; overflow-wrap: normal; overflow-x: auto; }

/* Calculadora */
.calc { padding: 8px; display: flex; flex-direction: column; gap: 8px; background: var(--face); flex: 1; }
.calc-disp { height: 28px; padding: 3px 6px; text-align: right; font-size: 16px; background: #fff; border: 1px solid #7f9db9; overflow: hidden; white-space: nowrap; }
.calc-grid { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-rows: minmax(26px, 1fr); gap: 5px; }
.calc-grid button { min-width: 0; padding: 0; height: auto; font-size: 12px; }
.calc-grid .op { color: #c00000; }
.calc-grid .fn { color: #00007f; }
.calc-grid .wide { grid-column: span 2; }

/* Propiedades de pantalla */
.disp { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 10px; background: var(--face); overflow: auto; }
.disp-tabs { display: flex; gap: 2px; border-bottom: 1px solid #919b9c; }
.disp-tabs span { padding: 3px 10px; border: 1px solid #919b9c; border-bottom: 0; border-radius: 3px 3px 0 0; background: #fff;
  box-shadow: inset 0 2px #ff9900; position: relative; top: 1px; }
.disp-mon { align-self: center; width: 190px; padding: 10px 10px 18px; border-radius: 6px 6px 3px 3px; background: linear-gradient(#e6e3d7, #bdb7a3); border: 1px solid #7e7864; position: relative; }
.disp-mon::after { content: ""; position: absolute; left: 70px; right: 70px; bottom: -10px; height: 10px; background: #b2ac97; border: 1px solid #7e7864; border-top: 0; }
.disp-mon .scr { height: 112px; border: 1px solid #3b4c6b; background: #F4F4F2; }
.disp-list { height: 120px; overflow: auto; background: #fff; border: 1px solid #7f9db9; }
.disp-list button { display: flex; align-items: center; gap: 6px; width: 100%; padding: 3px 6px; border: 0; background: none; text-align: left; font-size: 11px; }
.disp-list button img { width: 16px; height: 16px; }
.disp-list button.sel { background: var(--sel); color: #fff; }
body.touch .disp-list button { padding: 8px; font-size: 13px; }

/* Visor de imágenes */
.viewer { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; background: #fff; padding: 8px; overflow: auto; }
.viewer img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 1px 1px 4px rgba(0,0,0,.4); }

/* Ayuda */
.help { flex: 1; min-height: 0; overflow: auto; background: #fff; padding: 0 0 20px; font-size: 12px; line-height: 1.5; -webkit-user-select: text; user-select: text; }
.help header { display: flex; align-items: center; gap: 12px; padding: 14px 18px; color: #fff; background: linear-gradient(90deg, #0a3fb0, #3c82e8); }
.help header img { width: 40px; height: 40px; }
.help header h2 { margin: 0; font: bold 17px var(--title-font); }
.help section { padding: 4px 18px; }
.help h3 { color: #215dc6; font-size: 13px; margin: 14px 0 4px; border-bottom: 1px solid #c6d3f7; padding-bottom: 3px; }
.help ul { margin: 4px 0; padding-left: 20px; }
.help kbd { font: 11px var(--font); border: 1px solid #aca899; border-bottom-width: 2px; border-radius: 3px; padding: 0 4px; background: #f6f5ef; }
body.touch .help { font-size: 14px; }

/* Acerca de / Ejecutar */
.about-banner { flex: none; display: flex; align-items: center; justify-content: center; gap: 12px; height: 76px; background: #050505; color: #F4F4F2; }
.about-banner .nl-mark { width: 40px; height: 40px; }
.about-banner .nl-word { font-size: 28px; }
.about-banner .nl-tag { font-size: 12px; padding: 3px 9px; }
.about-text { padding: 14px 18px; line-height: 1.55; background: var(--face); flex: 1; overflow: auto; }
.about-text p { margin: 0 0 8px; }
.run { padding: 12px; display: flex; flex-direction: column; gap: 12px; background: var(--face); flex: 1; }
.run .msg-main { display: flex; gap: 12px; align-items: flex-start; }
.run .msg-main img { width: 32px; height: 32px; }
.run .field-row input { flex: 1; min-width: 0; }

/* Ventana del juego */
.game-wrap { flex: 1; min-height: 0; position: relative; background: #000; }
.game-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.game-tip { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 3; max-width: calc(100% - 20px);
  padding: 6px 12px; border-radius: 4px; background: rgba(0,0,0,.72); color: #fff; font-size: 12px; text-align: center; pointer-events: none;
  transition: opacity .6s; }
.win.game .win-body { background: #000; }

/* Modo inmersivo (móviles sin pantalla completa real, p. ej. iPhone) */
body.immersive #taskbar, body.immersive .win.game .titlebar, body.immersive .win.game .menubar, body.immersive .win.game .statusbar { display: none; }
body.immersive #winarea { bottom: 0; }
body.immersive .win.game { padding: 0; box-shadow: none; }
.exit-immersive { position: fixed; top: calc(6px + var(--safe-t)); right: calc(6px + var(--safe-r)); z-index: 99999; padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.5); border-radius: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; }

/* ----------------------------------------------------------------- Globo de notificación */
.balloon { position: absolute; right: max(8px, var(--safe-r)); bottom: calc(var(--tb-h) + var(--safe-b) + 12px); z-index: 9600;
  width: min(320px, calc(100vw - 16px)); padding: 10px 28px 10px 12px; background: #ffffe1; border: 1px solid #000; border-radius: 8px;
  box-shadow: 2px 3px 8px rgba(0,0,0,.35); font-size: 11px; animation: smopen .25s ease-out; }
.balloon::after { content: ""; position: absolute; right: 40px; bottom: -12px; border: 12px solid transparent; border-bottom: 0; border-right: 0; border-top-color: #000; }
.balloon::before { content: ""; position: absolute; right: 41px; bottom: -10px; z-index: 1; border: 10px solid transparent; border-bottom: 0; border-right: 0; border-top-color: #ffffe1; }
.balloon h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 5px; font-size: 11px; }
.balloon h4 img { width: 16px; height: 16px; }
.balloon .x { position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; padding: 0; border: 1px solid #aca899; border-radius: 3px; background: #fff; font-size: 10px; line-height: 13px; }
body.touch .balloon { font-size: 13px; }

/* ----------------------------------------------------------------- Diálogo de apagado / cerrar sesión */
.shade { position: fixed; inset: 0; z-index: 99990; display: flex; align-items: center; justify-content: center; padding: 16px; }
.offdlg { width: min(330px, 100%); border-radius: 6px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.5); animation: winopen .15s ease-out; }
.offdlg .hd { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 12px; background: var(--login-dark); color: #fff; font-size: 17px; }
.offdlg .hd img { width: 36px; }
.offdlg .bd { display: flex; justify-content: space-around; gap: 6px; padding: 28px 8px 22px;
  background: linear-gradient(90deg, #6d8ee8, #a6bdf3 50%, #6d8ee8); border-top: 2px solid #8eaef2; }
.offdlg .bd button { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 92px; border: 0; background: none; color: #fff; font-size: 11px; cursor: pointer; text-shadow: 1px 1px 1px rgba(0,0,0,.4); }
.offdlg .bd button img { width: 34px; height: 34px; transition: transform .1s; }
.offdlg .bd button:hover img { transform: scale(1.08); filter: brightness(1.1); }
.offdlg .ft { display: flex; justify-content: flex-end; padding: 8px 12px; background: var(--login-dark); }

/* ----------------------------------------------------------------- Apagado */
#off { background: #000; color: #f0b03a; flex-direction: column; align-items: center; justify-content: center; gap: 24px; text-align: center; padding: 20px; }
#off p { margin: 0; font: bold clamp(16px, 3.6vw, 24px) var(--font); }
.power-on { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid #333; border-radius: 6px; background: #111; color: #aaa; font-size: 13px; cursor: pointer; }
.power-on img { width: 22px; height: 22px; }
.power-on:hover { color: #fff; border-color: #666; }

/* ==========================================================================
   ADAPTACIÓN A PANTALLAS PEQUEÑAS (móvil y tableta pequeña)
   ========================================================================== */
@media (max-width: 760px) {
  .lg-mid { flex-direction: column; justify-content: center; gap: 10px; overflow: auto; }
  .lg-left { flex: none; align-items: center; text-align: center; padding: 0; }
  .lg-hint { margin-top: 10px; font-size: 13px; }
  .lg-divider { width: min(320px, 80%); height: 1px; align-self: center; margin: 4px 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.85) 30%, rgba(255,255,255,.85) 70%, transparent); }
  .lg-right { flex: none; padding: 0; width: min(380px, 100%); display: flex; flex-direction: column; align-items: center; }
  .lg-balloon { left: 50%; transform: translateX(-50%); }
  .lg-balloon::before { left: 30px; } .lg-balloon::after { left: 31px; }
  .tile { background: linear-gradient(90deg, rgba(0,48,156,.95), rgba(0,48,156,.6)); }
  .lg-note { display: none; }
  .lg-bottom { justify-content: space-between; }
  .nl-brand.small .nl-mark { width: 40px; height: 40px; }
  .nl-brand.small .nl-word { font-size: 28px; }
  .nl-mark { width: 52px; height: 52px; }
  .nl-word { font-size: 36px; }
  .nl-tag { font-size: 13px; }
  .wall-seal { width: max(68vw, 70vh); right: -30vw; top: -18vh; }

  #startmenu { width: 100%; max-width: none; left: 0; border-radius: 0; }
  .sm-item { min-height: 44px; font-size: 13px; }
  .sm-right .sm-item { min-height: 40px; }
  .sm-item .t small { font-size: 11px; }
  .sm-foot { height: 52px; }
  .sm-foot button { font-size: 13px; }
  .task { flex-basis: 44px; padding: 0 6px; justify-content: center; }
  .task span { display: none; }
  .task img { width: 20px; height: 20px; }
  #quick { display: none; }
  #startbtn { padding-right: 16px; font-size: 17px; }
}
@media (max-width: 400px) {
  .nl-brand { gap: 10px; }
  .nl-mark { width: 42px; height: 42px; }
  .nl-word { font-size: 28px; }
  .nl-tag { font-size: 12px; padding: 3px 8px; }
}
@media (max-width: 420px) {
  .sm-body { flex-direction: column; overflow: auto; }
  .sm-left, .sm-right { flex: none; overflow: visible; }
  .sm-right { border-left: 0; border-top: 1px solid #95bdee; }
  .tile { padding: 10px 8px; gap: 10px; }
  .avatar { width: 52px; height: 52px; }
  #clock { font-size: 11px; }
}
/* Móvil en horizontal / pantallas muy bajas */
@media (max-height: 500px) {
  .lg-top { height: 20px; }
  .lg-bottom { height: 40px; }
  .lg-mid { flex-direction: row; gap: 0; }
  .lg-left { flex: 1 1 0; align-items: flex-end; text-align: right; padding-right: 20px; }
  .lg-hint { display: none; }
  .lg-divider { width: 1px; height: auto; align-self: stretch; margin: 10px 0;
    background: linear-gradient(transparent, rgba(255,255,255,.85) 30%, rgba(255,255,255,.85) 70%, transparent); }
  .lg-right { flex: 1 1 0; align-items: flex-start; padding-left: 20px; }
  .lg-balloon { left: 20px; transform: none; top: auto; bottom: calc(100% + 8px); }
  .lg-balloon::before, .lg-balloon::after { display: none; }
  .lg-pw-label { display: none; }
  .boot-center { gap: 30px; }
  #icons { grid-template-rows: repeat(auto-fill, 78px); }
  .dicon .ic, .dicon .ic img { width: 40px; height: 40px; }
  .sm-head { height: 48px; }
  .sm-head img { width: 36px; height: 36px; }
  .sm-item { min-height: 34px; }
  .sm-foot { height: 40px; }
  /* Más espacio para el juego en un móvil en horizontal */
  .win.game .statusbar { display: none; }
  body.touch .win.game .titlebar { height: 32px; }
  body.touch .win.game .menubar > button { padding: 5px 10px; }
  .game-tip { top: 4px; font-size: 11px; }
}
/* Pantallas táctiles: objetivos más grandes */
body.touch .tbtn { width: 30px; height: 30px; }
body.touch .tbtn svg { width: 13px; height: 13px; }
body.touch .titlebar { height: 38px; }
body.touch .titlebar .tt { font-size: 14px; }
body.touch .menubar > button { padding: 8px 10px; font-size: 13px; }
body.touch .statusbar { font-size: 12px; }
body.touch .ex-item { font-size: 13px; }
body.touch .ex-panel a { font-size: 13px; padding: 3px 0; }
body.touch #quick button { width: 34px; height: 34px; }
body.touch #quick button img { width: 22px; height: 22px; }
body.touch #startbtn { font-size: 20px; }
body.touch #startbtn img { width: 24px; height: 24px; }
body.touch .tray-ico, body.touch button.tray-ico img { width: 20px; height: 20px; }
body.touch button.tray-ico { width: 24px; height: 24px; }
body.touch #clock { font-size: 13px; }
body.touch .dicon span { font-size: 12px; }
body.touch #icons { grid-template-rows: repeat(auto-fill, 100px); grid-auto-columns: 88px; }
body.touch .dicon { width: 88px; }
body.touch .dicon span { max-width: 86px; }
/* Móvil en vertical: los iconos se reparten en filas, como en la pantalla de inicio de un teléfono */
@media (max-width: 760px) and (orientation: portrait) {
  #icons { grid-auto-flow: row; grid-template-rows: none; grid-auto-rows: 100px; grid-template-columns: repeat(auto-fill, 88px);
    justify-content: space-evenly; overflow-y: auto; padding-top: max(12px, var(--safe-t)); }
}
@media (max-height: 500px) {
  body.touch #icons { grid-template-rows: repeat(auto-fill, 86px); }
}
@media (min-width: 761px) { body.touch .task { font-size: 12px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
