/* ==========================================================================
   OHEMAA.OS — base, boot screen, desktop, taskbar, start menu, tray
   ========================================================================== */

:root {
  --font-ui: "Pixelify Sans", "Trebuchet MS", sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
  --font-display: "Pixelify Sans", "Trebuchet MS", sans-serif;
  --font-mono: "VT323", "Courier New", monospace;

  --taskbar-h: 44px;

  /* Win95 bevels, built from the theme tokens */
  --bevel-out: inset -1px -1px var(--dk), inset 1px 1px var(--lt), inset -2px -2px var(--sh), inset 2px 2px var(--hl);
  --bevel-btn: inset -1px -1px var(--dk), inset 1px 1px var(--hl), inset -2px -2px var(--sh), inset 2px 2px var(--lt);
  --bevel-pressed: inset -1px -1px var(--hl), inset 1px 1px var(--dk), inset -2px -2px var(--lt), inset 2px 2px var(--sh);
  --bevel-in: inset -1px -1px var(--hl), inset 1px 1px var(--sh), inset -2px -2px var(--lt), inset 2px 2px var(--dk);
  --bevel-thin-in: inset -1px -1px var(--hl), inset 1px 1px var(--sh);
  --bevel-thin-out: inset -1px -1px var(--sh), inset 1px 1px var(--hl);

  --cursor-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' shape-rendering='crispEdges'%3E%3Cpath d='M1.5 1.5v16l4-4 3 7 2.5-1-3-6.8h5.6z' fill='%23ff4fa3' stroke='%231a0a12' stroke-width='1.2' stroke-linejoin='miter'/%3E%3Cpath d='M3 5v2h1V5z' fill='%23fff'/%3E%3C/svg%3E") 1 1;
  --cursor-busy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' shape-rendering='crispEdges'%3E%3Cpath d='M1.5 1.5v16l4-4 3 7 2.5-1-3-6.8h5.6z' fill='%23ff4fa3' stroke='%231a0a12' stroke-width='1.2'/%3E%3Cg transform='translate(12 10)'%3E%3Cpath d='M0 0h10v2H9v2L6 7l3 3v2h1v2H0v-2h1v-2l3-3-3-3V2H0z' fill='%231a0a12'/%3E%3Cpath d='M2 2h6v1.6L5 6.4 2 3.6zM2 12v-1l3-2.6L8 11v1z' fill='%23ffc2df'/%3E%3C/g%3E%3C/svg%3E") 1 1;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--face);
  cursor: var(--cursor-arrow), default;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body.is-busy, body.is-busy * { cursor: var(--cursor-busy), progress !important; }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: inherit; }
a { color: var(--link); cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 8px; top: -60px; z-index: 20000;
  padding: 8px 14px;
  background: var(--select); color: var(--select-text);
  font: 700 15px var(--font-ui);
  text-decoration: none;
  box-shadow: var(--bevel-btn);
}
.skip-link:focus { top: 8px; }

/* Win95 focus rectangle, but chunkier so it's easy to see */
:focus { outline: none; }
:focus-visible {
  outline: 2px dotted var(--text);
  outline-offset: 2px;
}

::selection { background: var(--select); color: var(--select-text); }

.noscript {
  position: fixed; inset: 0; z-index: 30000;
  display: grid; place-content: center; gap: 8px;
  padding: 24px; text-align: center;
  background: #ffe1f0; color: #3a0d25;
}

/* ==========================================================================
   BOOT
   ========================================================================== */

.boot {
  position: fixed; inset: 0; z-index: 10000;
  background: #000;
  color: #d9d9d9;
  font-family: var(--font-mono);
  font-size: 22px;
  line-height: 1.25;
  overflow: hidden;
}

.boot__stage { position: absolute; inset: 0; }

.boot__power {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  text-align: center;
  padding: 24px;
}

.boot__os {
  margin: 0;
  font: 400 28px var(--font-mono);
  letter-spacing: .25em;
  color: #ff8cc6;
  text-shadow: 0 0 12px rgba(255, 79, 163, .6);
}

.power-btn {
  position: relative;
  width: 124px; height: 124px;
  border: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, #fff 0 7%, rgba(255,255,255,0) 18%),
    radial-gradient(circle at 50% 50%, #ffc2df 0%, #ff4fa3 52%, #a3105a 100%);
  box-shadow:
    0 0 0 6px #22081a,
    0 0 0 9px #ff8cc6,
    0 0 0 11px #22081a,
    0 0 48px 10px rgba(255, 79, 163, .55),
    inset 0 -10px 20px rgba(80, 0, 40, .45);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease;
}
.power-btn svg { width: 54px; height: 54px; filter: drop-shadow(0 2px 0 rgba(94,26,63,.5)); }
.power-btn:hover { transform: scale(1.04); }
.power-btn:active { transform: scale(.96); }
.power-btn:focus-visible { outline: 3px dotted #ff8cc6; outline-offset: 16px; }

.boot__hint { margin: 0; color: #bdbdbd; font-size: 22px; }
.boot__hint b { color: #ffd166; font-weight: 400; }
.boot__sub { margin: 0; color: #777; font-size: 18px; }

.boot__skip {
  position: absolute; right: 18px; bottom: 16px; z-index: 2;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid #555;
  color: #bdbdbd;
  font: 20px var(--font-mono);
  cursor: pointer;
}
.boot__skip:hover, .boot__skip:focus-visible { color: #fff; border-color: #ff8cc6; outline: none; }

.boot__post {
  padding: clamp(16px, 4vw, 40px);
  word-break: break-word;
}
.boot__post .js-lines > div { white-space: pre-wrap; }
.boot__post .post-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.boot__post .hi { color: #ff8cc6; }
.boot__post .ok { color: #7CFFB2; }
.boot__post .warn { color: #ffd166; }
.boot__post .cursor { display: inline-block; width: .55em; background: #d9d9d9; animation: blink 1s steps(1) infinite; }

.boot__splash {
  display: grid;
  place-items: center;
  background: #000;
  color: #ffd6ec;
}

.splash__inner { display: grid; justify-items: center; gap: 14px; padding: 24px; text-align: center; }
.splash__logo { display: flex; align-items: center; gap: 16px; }
.splash__word {
  font: 700 clamp(48px, 9vw, 96px)/1 var(--font-display);
  color: #ff4fa3;
}
.splash__word sup {
  font: 700 .38em var(--font-ui);
  color: #c084fc;
  vertical-align: .9em;
}
.splash__sub { margin: 0; font: 600 18px var(--font-ui); letter-spacing: .3em; text-transform: uppercase; color: #ff8cc6; }

.splash__log {
  width: min(440px, 86vw);
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
  font: 22px var(--font-mono);
  color: #d9d9d9;
}
.splash__log li { display: flex; justify-content: space-between; gap: 12px; }
.splash__log li span:last-child { color: #7CFFB2; }

.splash__progress {
  width: min(440px, 86vw);
  height: 26px;
  padding: 3px;
  background: #0b0509;
  box-shadow: 0 0 0 1px #ff8cc6, inset 0 0 0 1px #3a1030;
}
.splash__progress i {
  display: block; height: 100%; width: 0%;
  background: repeating-linear-gradient(90deg, #ff2d8f 0 14px, transparent 14px 17px);
  transition: width .18s steps(4);
}
.splash__welcome { margin: 4px 0 0; min-height: 1.3em; font: 700 22px var(--font-ui); color: #ff8cc6; }

.boot.is-leaving { animation: bootOut .5s ease forwards; }

/* ==========================================================================
   DESKTOP
   ========================================================================== */

.desktop {
  position: fixed;
  inset: 0 0 var(--taskbar-h) 0;
  overflow: hidden;
  background: var(--wallpaper);
  background-color: var(--face);
  user-select: none;
  -webkit-user-select: none;
}

/* Desktop icons ----------------------------------------------------------- */

.desktop-icons {
  position: absolute;
  top: 10px; left: 8px;
  bottom: 10px;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(auto-fill, 90px);
  grid-auto-columns: 100px;
  gap: 2px 4px;
  z-index: 1;
}
.desktop-icons:focus { outline: none; }

/* Draggable layout (desktop sizes): icons are placed on a grid by js/main.js */
.desktop-icons.is-free {
  display: block;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
}
.desktop-icons.is-free .dicon {
  position: absolute;
  pointer-events: auto;
  touch-action: none;
  transition: left .15s ease, top .15s ease;
}
.desktop-icons.is-free .dicon.is-dragging { transition: none; z-index: 5; opacity: .75; }
.dicon img { -webkit-user-drag: none; user-select: none; }

.dicon {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px;
  width: 100px; padding: 4px 2px;
  background: none; border: 0;
  color: var(--desk-label);
  font: 500 14px/1.15 var(--font-ui);
  letter-spacing: -.01em;
  text-align: center;
}
.dicon__img {
  position: relative;
  width: 48px; height: 48px;
  flex: 0 0 auto;
}
.dicon__img img { width: 48px; height: 48px; image-rendering: pixelated; display: block; transition: transform .15s ease; }
.dicon__img::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--select);
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
  opacity: 0;
}
.dicon__label {
  padding: 1px 2px;
  font-size: 13.5px;
  text-shadow: 1px 1px 0 var(--desk-label-shadow), 0 0 6px color-mix(in srgb, var(--desk-label-shadow) 60%, transparent);
  overflow-wrap: break-word;
}
.dicon:hover .dicon__img img { transform: translateY(-2px); }
.dicon.is-selected .dicon__img::after { opacity: .5; }
.dicon.is-selected .dicon__label {
  background: var(--select);
  color: var(--select-text);
  text-shadow: none;
  outline: 1px dotted var(--select-text);
  outline-offset: -1px;
}
.dicon:focus-visible { outline: none; }
.dicon:focus-visible .dicon__label { outline: 2px dotted var(--desk-label); outline-offset: 1px; }

/* Guide button (top right, like the classic "Tutorial" tab) */
.guide-btn {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  padding: 6px 14px;
  border: 0;
  background: linear-gradient(180deg, #fff 0%, var(--accent-soft) 45%, var(--accent) 52%, color-mix(in srgb, var(--accent) 70%, #fff) 100%);
  color: #fff;
  font: 700 15px var(--font-ui);
  text-shadow: 0 1px 0 color-mix(in srgb, var(--accent) 60%, #000);
  border-radius: 999px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 60%, #000), inset 0 1px 0 rgba(255,255,255,.8), 0 3px 0 color-mix(in srgb, var(--accent) 50%, #000);
}
.guide-btn:hover { filter: brightness(1.06); }
.guide-btn:active { transform: translateY(2px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 60%, #000), inset 0 1px 0 rgba(255,255,255,.8), 0 1px 0 color-mix(in srgb, var(--accent) 50%, #000); }

/* Desktop buddy (avatar) --------------------------------------------------- */

.buddy {
  position: absolute; right: 16px; bottom: 4px; z-index: 2;
  width: 156px;
}
.buddy__btn { display: block; width: 100%; padding: 0; background: none; border: 0; }
.buddy__btn svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 6px 10px rgba(60, 10, 40, .25)); }
.buddy__bubble {
  position: absolute; right: 70%; bottom: 86%;
  width: max-content; max-width: 230px;
  padding: 8px 12px;
  background: var(--paper);
  color: var(--text);
  font: 500 14px/1.35 var(--font-ui);
  border: 2px solid var(--dk);
  border-radius: 14px 14px 2px 14px;
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--dk) 35%, transparent);
  transform-origin: 100% 100%;
}
.buddy__bubble[hidden] { display: none; }

.flower {
  position: absolute; right: 178px; bottom: 6px; z-index: 2;
  width: 68px; height: 104px;
  padding: 0; background: none; border: 0;
}
.flower svg { width: 100%; height: 100%; overflow: visible; }

/* ==========================================================================
   TASKBAR
   ========================================================================== */

.taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5000;
  height: var(--taskbar-h);
  display: flex; align-items: center; gap: 4px;
  padding: 4px 4px 3px;
  background: var(--face);
  box-shadow: inset 0 1px var(--lt), inset 0 2px var(--hl), 0 -1px 0 var(--sh);
  user-select: none; -webkit-user-select: none;
}

.start-btn {
  display: flex; align-items: center; gap: 6px;
  height: 100%;
  padding: 0 12px 0 7px;
  background: var(--face);
  border: 0;
  box-shadow: var(--bevel-btn);
  font: 700 17px var(--font-ui);
  color: var(--text);
}
.start-btn__logo { width: 22px; height: 22px; image-rendering: pixelated; }
.start-btn[aria-expanded="true"], .start-btn:active { box-shadow: var(--bevel-pressed); padding-top: 2px; padding-left: 8px; }
.start-btn:focus-visible { outline: 1px dotted var(--text); outline-offset: -5px; }

.taskbar__divider { width: 2px; height: 80%; margin: 0 2px; box-shadow: inset 1px 0 var(--sh), inset -1px 0 var(--hl); }

.task-apps { flex: 1 1 auto; display: flex; gap: 4px; min-width: 0; height: 100%; overflow: hidden; }

.task-btn {
  flex: 0 1 190px; min-width: 44px;
  display: flex; align-items: center; gap: 6px;
  height: 100%;
  padding: 0 8px;
  background: var(--face);
  border: 0;
  box-shadow: var(--bevel-btn);
  font: 500 14px var(--font-ui);
  text-align: left;
  color: var(--text);
}
.task-btn img { width: 18px; height: 18px; flex: 0 0 auto; image-rendering: pixelated; }
.task-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-btn[aria-pressed="true"] {
  box-shadow: var(--bevel-pressed);
  background: repeating-conic-gradient(var(--hl) 0 25%, var(--face) 0 50%) 0 0 / 2px 2px;
  font-weight: 700;
  padding-top: 2px;
}
.task-btn:focus-visible { outline: 1px dotted var(--text); outline-offset: -5px; }

.tray {
  display: flex; align-items: center; gap: 7px;
  height: 100%;
  padding: 0 10px 0 8px;
  box-shadow: var(--bevel-thin-in);
  font: 500 14px var(--font-ui);
}
.tray__icon { display: grid; place-items: center; width: 18px; height: 18px; }
.tray__icon img { width: 16px; height: 16px; image-rendering: pixelated; }
.tray__btn { padding: 0; background: none; border: 0; }
.tray__btn:focus-visible { outline: 1px dotted var(--text); outline-offset: 1px; }
.tray__music img { animation: bop .6s ease-in-out infinite alternate; }
.tray__clock { min-width: 58px; text-align: right; white-space: nowrap; }

.volume-pop {
  position: fixed; right: 42px; bottom: calc(var(--taskbar-h) + 2px); z-index: 6000;
  display: grid; justify-items: center; gap: 8px;
  width: 104px;
  padding: 10px 8px 12px;
  background: var(--face);
  box-shadow: var(--bevel-out);
  font: 500 14px var(--font-ui);
}
.volume-pop__label { margin: 0; }
.volume-pop input[type="range"] {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 28px; height: 120px;
}

/* ==========================================================================
   MENUS (start menu, submenus, context menu)
   ========================================================================== */

.start-menu {
  position: fixed; left: 3px; bottom: calc(var(--taskbar-h) - 3px); z-index: 6000;
  display: flex;
  min-width: 250px;
  padding: 3px;
  background: var(--face);
  box-shadow: var(--bevel-out), 4px 4px 0 rgba(0,0,0,.18);
}
.start-menu__banner {
  position: relative;
  width: 34px;
  background: linear-gradient(0deg, var(--title-a), var(--accent-2));
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden;
}
.start-menu__banner span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 10px 0;
  font: 400 24px/1 var(--font-ui);
  color: rgba(255,255,255,.75);
  letter-spacing: .02em;
}
.start-menu__banner b { font-weight: 700; color: #fff; }
.start-menu__items { flex: 1; }

.menu { margin: 0; padding: 0; list-style: none; }
.menu > li { position: relative; }
.menu-sep { height: 2px; margin: 4px 3px; box-shadow: inset 0 1px var(--sh), inset 0 -1px var(--hl); }

.menu-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  min-height: 30px;
  padding: 4px 26px 4px 8px;
  background: none; border: 0;
  color: var(--text);
  font: 500 15px/1.2 var(--font-ui);
  text-align: left;
  white-space: nowrap;
}
.menu-item img { width: 20px; height: 20px; flex: 0 0 auto; image-rendering: pixelated; }
.menu-item .menu-emoji { width: 20px; text-align: center; flex: 0 0 auto; }
.menu-item:hover,
.menu-item:focus-visible,
.menu-item[aria-expanded="true"] {
  background: var(--select);
  color: var(--select-text);
  outline: none;
}
.menu-item[aria-haspopup="menu"]::after {
  content: "";
  position: absolute; right: 9px; top: 50%;
  width: 0; height: 0;
  margin-top: -4px;
  border: 4px solid transparent;
  border-left: 4px solid currentColor;
  border-right: 0;
}
.menu-item[aria-checked="true"]::before {
  content: "✓";
  position: absolute; left: 4px;
  font-weight: 700;
}
.menu--root > li > .menu-item { min-height: 42px; font-size: 16px; }
.menu--root > li > .menu-item img { width: 32px; height: 32px; }

.menu--sub {
  position: absolute; left: calc(100% - 2px); top: -3px; z-index: 2;
  min-width: 220px;
  padding: 3px;
  background: var(--face);
  box-shadow: var(--bevel-out), 4px 4px 0 rgba(0,0,0,.18);
}
.menu--sub.flip-up { top: auto; bottom: -3px; }

.ctx-menu {
  position: fixed; z-index: 7000;
  min-width: 200px;
  padding: 3px;
  background: var(--face);
  box-shadow: var(--bevel-out), 4px 4px 0 rgba(0,0,0,.18);
}
.ctx-menu .menu-item { padding-left: 22px; }
.ctx-menu .menu--sub { left: calc(100% - 2px); }

/* ==========================================================================
   BALLOONS & TOASTS
   ========================================================================== */

.balloons {
  position: fixed; right: 12px; bottom: calc(var(--taskbar-h) + 12px); z-index: 5500;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  pointer-events: none;
}
.balloon {
  position: relative;
  width: min(320px, calc(100vw - 24px));
  padding: 10px 34px 12px 12px;
  background: var(--paper);
  color: var(--text);
  border: 1px solid var(--dk);
  border-radius: 10px;
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--dk) 30%, transparent);
  font: 500 14px/1.4 var(--font-ui);
  pointer-events: auto;
}
.balloon::after {
  content: "";
  position: absolute; right: 38px; bottom: -12px;
  width: 16px; height: 12px;
  background: var(--paper);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  filter: drop-shadow(1px 0 0 var(--dk));
}
.balloon__title { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-weight: 700; font-size: 15px; }
.balloon__title img { width: 18px; height: 18px; image-rendering: pixelated; }
.balloon__body { margin: 0; }
.balloon__action {
  display: block; width: 100%;
  margin: 0; padding: 0;
  background: none; border: 0;
  text-align: left;
  color: inherit;
}
.balloon__close {
  position: absolute; top: 6px; right: 6px;
  width: 20px; height: 18px;
  display: grid; place-items: center;
  padding: 0;
  background: var(--face); border: 0;
  box-shadow: var(--bevel-btn);
  font: 700 12px/1 var(--font-ui);
}

.toast {
  display: flex; align-items: center; gap: 12px;
  width: min(340px, calc(100vw - 24px));
  padding: 8px 18px 8px 8px;
  background: linear-gradient(180deg, #2c0f2b, #150815);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--accent), 0 10px 26px rgba(0,0,0,.35);
  font-family: var(--font-ui);
  pointer-events: auto;
}
.toast__badge {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 10%, var(--accent) 60%, #6b0f3f);
  box-shadow: inset 0 -4px 8px rgba(0,0,0,.35);
}
.toast__badge img { width: 32px; height: 32px; image-rendering: pixelated; }
.toast__kicker { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #ffb3d9; }
.toast__title { margin: 0; font-size: 16px; font-weight: 700; }
.toast__text { margin: 0; font-size: 13px; color: #f4d7e8; }

/* Little celebration sparkles (flower bloom, achievements…) */
.sparkle-layer { position: fixed; inset: 0; z-index: 9000; pointer-events: none; overflow: hidden; }
.float-sparkle {
  position: absolute;
  font-size: 20px;
  animation: floatUp 1.2s ease-out forwards;
}

/* ==========================================================================
   SHUT DOWN SCREEN
   ========================================================================== */

.shutdown-screen {
  position: fixed; inset: 0; z-index: 12000;
  display: grid; place-content: center; justify-items: center; gap: 28px;
  padding: 24px;
  background: #000;
  text-align: center;
  font-family: var(--font-mono);
}
.shutdown-screen p { margin: 0; font-size: clamp(28px, 5vw, 46px); line-height: 1.1; color: #ff9f43; }
.shutdown-screen p.pink { color: #ff8cc6; }
.shutdown-screen button {
  padding: 8px 18px;
  background: transparent; border: 1px solid #666;
  color: #ddd;
  font: 22px var(--font-mono);
  cursor: pointer;
}
.shutdown-screen button:hover, .shutdown-screen button:focus-visible { border-color: #ff8cc6; color: #fff; outline: none; }

/* ==========================================================================
   MOBILE — the desktop becomes OHEMAA.OS phone mode
   ========================================================================== */

.mobile-hero { display: none; }

@media (max-width: 760px) {
  :root { --taskbar-h: 52px; }

  .desktop {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background-attachment: fixed;
    scrollbar-width: none;
  }
  .desktop::-webkit-scrollbar { display: none; }

  .guide-btn, .buddy, .flower { display: none; }

  .mobile-hero {
    display: block;
    position: relative; z-index: 1;
    padding: max(14px, env(safe-area-inset-top)) 16px 4px;
  }
  .mobile-hero__os {
    margin: 0 0 10px;
    font: 700 18px var(--font-ui);
    letter-spacing: .12em;
    color: var(--desk-label);
    text-shadow: 1px 1px 0 var(--desk-label-shadow);
  }
  .mobile-hero__card {
    padding: 16px;
    background: var(--face);
    box-shadow: var(--bevel-out);
  }
  .mobile-hero__hi {
    margin: 0;
    font: 700 32px/1.1 var(--font-display);
    color: var(--select);
  }
  .mobile-hero__tag { margin: 8px 0 12px; font-size: 16px; }
  .mobile-hero__actions { display: flex; flex-wrap: wrap; gap: 8px; }

  .desktop-icons {
    position: relative; inset: auto;
    grid-auto-flow: row;
    grid-template-rows: none;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px 4px;
    padding: 18px 12px 24px;
  }
  .dicon { width: 100%; font-size: 15px; }
  .dicon__img, .dicon__img img { width: 56px; height: 56px; }

  .start-menu { left: 0; right: 0; bottom: var(--taskbar-h); max-height: calc(100dvh - var(--taskbar-h) - 20px); overflow-y: auto; }
  .start-menu__banner { width: 30px; }
  .menu--sub { position: static; box-shadow: none; padding: 0 0 0 30px; min-width: 0; background: transparent; }
  .menu--root > li > .menu-item { min-height: 48px; }
  .menu-item { min-height: 44px; white-space: normal; }

  .task-btn { flex: 0 0 44px; justify-content: center; padding: 0; }
  .task-btn span { display: none; }
  .tray__icon:not(.tray__btn) { display: none; }
  .tray__music { display: none !important; }

  .balloons { left: 12px; right: 12px; align-items: stretch; }
  .balloon, .toast { width: auto; }
}

@media (max-width: 380px) {
  .desktop-icons { grid-template-columns: repeat(3, 1fr); }
  .start-btn span { display: none; }
}
