/* =========================================================
   START MENU
   ========================================================= */
.start-menu {
  position: absolute;
  left: 1rem;
  bottom: 4.8rem;
  z-index: 9500;
  width: 23.6rem;
  display: flex;
  padding: 0.3rem;
  background: var(--face);
  box-shadow: var(--sh-window);
}

.start-menu__banner {
  width: 3.4rem;
  flex: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.8rem;
  background: linear-gradient(to bottom, #9c9c9c, #6b6b6b);
}
.start-menu__banner span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: "Arial Black", "Arial Bold", Arial, sans-serif;
  font-weight: 900;
  font-size: 2.8rem;
  letter-spacing: 0.1rem;
  color: #d9d9d9;
}

.start-menu__list { flex: 1; list-style: none; padding: 0.3rem 0 0.1rem; }

.start-menu__item {
  width: 100%;
  height: 2.95rem;
  display: flex;
  align-items: center;
  gap: 1.3rem;
  padding: 0 0.8rem 0 1.4rem;
  background: none;
  border: 0;
  font-size: 1.7rem;
  text-align: left;
  outline: none;
}
.start-menu__item .ico { width: 2.5rem; height: 2.5rem; }
.start-menu__item:hover,
.start-menu__item:focus-visible { background: var(--navy); color: #fff; }
.start-menu__label { flex: 1; }
.start-menu__arrow {
  width: 0; height: 0;
  border-top: 0.45rem solid transparent;
  border-bottom: 0.45rem solid transparent;
  border-left: 0.45rem solid currentColor;
}
.start-menu__sep { margin: 0.5rem 0.3rem 0.5rem 0.3rem; }

/* ---------- MOBILE (ver el bloque equivalente en window.css) ---------- */

/* Mismo menú, mismas entradas, mismo dibujo: solo filas que un dedo acierta. */
[data-mobile] .start-menu {
  bottom: calc(4.8rem + env(safe-area-inset-bottom, 0px));
  /* En horizontal un teléfono tiene menos de 400 px de alto, y las diez entradas con
     filas de dedo miden 401: SHOP y CREATE quedaban POR ENCIMA del borde superior de
     la pantalla, inalcanzables (medido en 844x390 y 932x430). El menú se limita a lo
     que hay libre sobre la taskbar y la lista se desplaza por dentro. En vertical
     sobra altura, así que el menú no cambia ni un píxel respecto al anterior. */
  max-height: calc(100vh - 6rem - env(safe-area-inset-bottom, 0px));
  max-height: calc(100dvh - 6rem - env(safe-area-inset-bottom, 0px));
}
/* Sin barra de scroll a la vista: Windows 98 no la tenía aquí y el dedo no la necesita.
   Es la red de seguridad; con la regla de abajo las diez entradas caben sin usarla. */
[data-mobile] .start-menu__list { overflow-y: auto; min-height: 0; scrollbar-width: none; }
[data-mobile] .start-menu__list::-webkit-scrollbar { display: none; }
[data-mobile] .start-menu__item { height: 4.2rem; }

/* Teléfono en horizontal: con filas de 4,2rem las diez entradas piden 401 px y la
   pantalla ofrece 346. En vez de dejar las últimas detrás de un scroll que nadie ve,
   la fila se ajusta a lo que cabe —siguen siendo 32 px, más que las 30 del escritorio—
   y el menú entero queda a la vista. En vertical esta regla no llega a aplicarse. */
@media (max-height: 520px) {
  [data-mobile] .start-menu__item { height: 3.5rem; }
}
