/* ───────── pako.lol · launcher ───────── */
:root {
  --bg: #f3f2f7;
  --ink: #17151e;
  --ink-2: rgba(23, 21, 30, 0.6);
  --tile: #fbfaff;
  --tile-line: rgba(255, 255, 255, 0.85);
  --tile-shadow: 0 1px 2px rgba(20, 16, 40, 0.04), 0 10px 30px -18px rgba(20, 16, 40, 0.18);
  --glass: rgba(255, 255, 255, 0.55);
  --glass-line: rgba(255, 255, 255, 0.75);
  --glass-hi: rgba(255, 255, 255, 0.9);
  --blob-mix: 72%;
  --blob-op: 0.9;
  --grain-op: 0.32;
  --bg-b1: #d9d0ff;
  --bg-b2: #c7f1e8;
  --bg-b3: #ffd9e8;
  --dash: rgba(23, 21, 30, 0.16);
  --focus: #6d4aff;

  --r: 32px;
  --r-hover: 46px;
  --gap: 12px;
  --pad: clamp(16px, 2.4vw, 28px);

  --spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --emph: cubic-bezier(0.2, 0, 0, 1);

  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0b11;
    --ink: #f2f0f8;
    --ink-2: rgba(242, 240, 248, 0.6);
    --tile: #15131c;
    --tile-line: rgba(255, 255, 255, 0.07);
    --tile-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 40px -24px rgba(0, 0, 0, 0.8);
    --glass: rgba(34, 31, 44, 0.5);
    --glass-line: rgba(255, 255, 255, 0.12);
    --glass-hi: rgba(255, 255, 255, 0.18);
    --blob-mix: 55%;
    --blob-op: 0.55;
    --grain-op: 0.22;
    --bg-b1: #2c1f5c;
    --bg-b2: #0f3b38;
    --bg-b3: #3d1631;
    --dash: rgba(255, 255, 255, 0.14);
    --focus: #a58bff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0b11;
  --ink: #f2f0f8;
  --ink-2: rgba(242, 240, 248, 0.6);
  --tile: #15131c;
  --tile-line: rgba(255, 255, 255, 0.07);
  --tile-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 40px -24px rgba(0, 0, 0, 0.8);
  --glass: rgba(34, 31, 44, 0.5);
  --glass-line: rgba(255, 255, 255, 0.12);
  --glass-hi: rgba(255, 255, 255, 0.18);
  --blob-mix: 55%;
  --blob-op: 0.55;
  --grain-op: 0.22;
  --bg-b1: #2c1f5c;
  --bg-b2: #0f3b38;
  --bg-b3: #3d1631;
  --dash: rgba(255, 255, 255, 0.14);
  --focus: #a58bff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* ruido reutilizable */
.grain, .tile-grain {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ───────── fondo ───────── */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; width: 70vmax; height: 70vmax; opacity: 0.9; }
.b1 { background: radial-gradient(closest-side, var(--bg-b1), transparent); left: -25vmax; top: -30vmax; animation: d1 30s ease-in-out infinite alternate; }
.b2 { background: radial-gradient(closest-side, var(--bg-b2), transparent); right: -28vmax; top: 10vmax; animation: d2 36s ease-in-out infinite alternate; }
.b3 { background: radial-gradient(closest-side, var(--bg-b3), transparent); left: 20vmax; bottom: -40vmax; animation: d1 42s ease-in-out infinite alternate-reverse; }
@keyframes d1 { to { transform: translate3d(10vmax, 8vmax, 0) scale(1.08); } }
@keyframes d2 { to { transform: translate3d(-12vmax, 6vmax, 0) scale(0.92); } }
.bg .grain { position: absolute; inset: 0; opacity: calc(var(--grain-op) * 1.1); }

/* ───────── vidrio (solo en detalles) ───────── */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 8px 24px -12px rgba(10, 8, 30, 0.25);
}

/* ───────── barra ───────── */
.bar {
  position: relative; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: var(--pad) var(--pad) 0;
  max-width: 1600px; margin: 0 auto;
}
.menu-btn {
  justify-self: start; position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 18px 0 14px; border-radius: 999px; cursor: pointer;
  font-size: 15px; font-weight: 600;
  transition: transform 0.4s var(--spring), border-radius 0.4s var(--spring);
}
.menu-btn:active { transform: scale(0.95); }
.menu-ico { position: relative; width: 18px; height: 18px; }
.menu-ico i {
  position: absolute; width: 7px; height: 7px; border-radius: 2.5px; background: currentColor;
  transition: transform 0.45s var(--spring), border-radius 0.45s var(--emph), width 0.45s var(--emph), height 0.45s var(--emph);
}
.menu-ico i:nth-child(1) { left: 0; top: 0; }
.menu-ico i:nth-child(2) { right: 0; top: 0; border-radius: 50%; }
.menu-ico i:nth-child(3) { left: 0; bottom: 0; border-radius: 50%; }
.menu-ico i:nth-child(4) { right: 0; bottom: 0; }
.menu-btn:hover .menu-ico i:nth-child(1) { border-radius: 50%; }
.menu-btn:hover .menu-ico i:nth-child(2) { border-radius: 2.5px; }
.menu-btn:hover .menu-ico i:nth-child(3) { border-radius: 2.5px; }
.menu-btn:hover .menu-ico i:nth-child(4) { border-radius: 50%; }
/* abierto: los 4 puntos se convierten en una X */
.menu-btn[aria-expanded="true"] .menu-ico i { width: 20px; height: 2.5px; border-radius: 2px; left: -1px; top: 8px; right: auto; bottom: auto; }
.menu-btn[aria-expanded="true"] .menu-ico i:nth-child(odd) { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-ico i:nth-child(even) { transform: rotate(-45deg); }

.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; letter-spacing: -0.03em; }
.brand svg { width: 24px; height: 24px; }
.clock { justify-self: end; margin: 0; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* menú que nace del botón */
.menu {
  position: absolute; top: var(--pad); left: var(--pad); z-index: 1;
  width: min(340px, calc(100vw - 2 * var(--pad)));
  padding: 62px 10px 10px;
  border-radius: 28px;
  clip-path: inset(0 calc(100% - 112px) calc(100% - 46px) 0 round 23px);
  opacity: 0;
  transition: clip-path 0.55s var(--emph), opacity 0.2s;
  background: color-mix(in srgb, var(--tile) 92%, transparent);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 30px 60px -20px rgba(10, 8, 30, 0.35);
}
.menu.open { clip-path: inset(0 0 0 0 round 28px); opacity: 1; }
.menu[hidden] { display: block; visibility: hidden; }
.menu-title { margin: 0 12px 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { opacity: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.4s var(--spring); }
.menu.open .menu-list li { opacity: 1; transform: none; transition-delay: calc(var(--i) * 30ms + 120ms); }
.m-item {
  display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 16px;
  transition: background 0.2s, border-radius 0.3s var(--spring);
}
.m-item:hover, .m-item:focus-visible { background: color-mix(in srgb, var(--ink) 7%, transparent); border-radius: 22px; }
.m-row { display: flex; align-items: center; gap: 4px; }
.m-row .m-item { flex: 1; }
.m-item img { width: 36px; height: 36px; border-radius: 10px; }
.m-item > span { min-width: 0; }
.m-item small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-item b { display: block; font-size: 15px; font-weight: 600; }
.m-item small { display: block; font-size: 13px; color: var(--ink-2); }
.m-item.off { opacity: 0.5; }
.m-sub { white-space: nowrap; margin-left: auto; font-size: 12px; color: var(--ink-2); padding: 4px 8px; border-radius: 999px; border: 1px solid var(--dash); }
.m-sub:hover { color: var(--ink); }
.menu-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding: 10px 6px 2px; border-top: 1px solid var(--dash); }
.theme { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.theme button {
  width: 36px; height: 32px; border: 0; border-radius: 999px; background: none; cursor: pointer; color: var(--ink-2);
  display: grid; place-items: center; transition: background 0.2s, color 0.2s;
}
.theme button[aria-checked="true"] { background: var(--tile); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.theme svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-count { font-size: 13px; color: var(--ink-2); padding-right: 6px; }

/* ───────── grilla ───────── */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(190px, 1fr));
  gap: var(--gap);
  padding: var(--pad) var(--pad) calc(var(--pad) + 68px);
  max-width: 1600px; margin: 0 auto;
  min-height: calc(100svh - 46px - var(--pad));
}

.tile {
  --c1: #9b7bff; --c2: #ff7cc3;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(18px, 1.8vw, 26px);
  border-radius: var(--r);
  background: color-mix(in srgb, var(--c1) 9%, var(--tile));
  border: 1px solid var(--tile-line);
  box-shadow: var(--tile-shadow);
  transition: border-radius 0.5s var(--spring), transform 0.5s var(--spring), box-shadow 0.4s;
}
.tile.xl { grid-column: span 2; grid-row: span 2; }
.tile.wide { grid-column: span 2; }

/* blobs con ruido dentro de cada tarjeta */
.tile-art { position: absolute; inset: 0; z-index: -1; opacity: var(--blob-op); }
.tile-art i { position: absolute; border-radius: 50%; transition: transform 1.2s var(--emph); }
.tile-art .ba { width: 95%; aspect-ratio: 1; right: -38%; top: -48%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c1) var(--blob-mix), transparent), transparent); }
.tile-art .bb { width: 70%; aspect-ratio: 1; right: -12%; bottom: -46%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c2) var(--blob-mix), transparent), transparent); }
.tile.xl .tile-art .ba { width: 85%; right: -22%; top: -30%; }
.tile.xl .tile-art .bb { width: 60%; right: 6%; bottom: -26%; }
.tile.wide .tile-art .ba { width: 60%; right: -14%; top: -70%; }
.tile.wide .tile-art .bb { width: 45%; right: 18%; bottom: -60%; }
.tile-grain { position: absolute; inset: 0; opacity: var(--grain-op); }

.tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tile-icon { width: 56px; height: 56px; border-radius: 16px; box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--c1) 80%, black); transition: transform 0.5s var(--spring); }
.tile.xl .tile-icon { width: 92px; height: 92px; border-radius: 24px; }
.tile-meta { display: flex; align-items: center; gap: 6px; }
.chip { white-space: nowrap; flex: none; height: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--dot); }
.chip.beta { --dot: #18b8d6; }
.chip.paused { --dot: #e8a33a; }
.chip.maintenance { --dot: #8a90a3; }
.go {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  transition: transform 0.5s var(--spring), border-radius 0.5s var(--spring), background 0.3s;
}
.go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.tile-text b { display: block; font-size: clamp(22px, 1.9vw, 28px); font-weight: 650; letter-spacing: -0.035em; line-height: 1.05; }
.tile-text small { display: block; margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.tile.xl .tile-text b { font-size: clamp(44px, 5.4vw, 88px); letter-spacing: -0.055em; line-height: 0.95; }
.tile.xl .tile-text small { font-size: clamp(16px, 1.5vw, 22px); margin-top: 10px; letter-spacing: -0.02em; }

/* expresivo: la forma cambia al pasar */
a.tile:hover { border-radius: var(--r-hover); box-shadow: var(--tile-shadow), 0 24px 50px -28px color-mix(in srgb, var(--c1) 90%, transparent); }
a.tile:hover .tile-art .ba { transform: translate(-8%, 10%) scale(1.1); }
a.tile:hover .tile-art .bb { transform: translate(-10%, -8%) scale(1.15); }
a.tile:hover .tile-icon { transform: rotate(-6deg) scale(1.05); }
a.tile:hover .go { transform: rotate(45deg); border-radius: 14px; }
a.tile:active { transform: scale(0.985); transition-duration: 0.15s; }

.tile.off { filter: saturate(0.4); }
.tile.off .tile-text { opacity: 0.7; }

/* hueco de "próximamente" */
.tile.soon {
  background: transparent; border: 1.5px dashed var(--dash); box-shadow: none;
  align-items: flex-start;
}
.soon-plus {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  border: 1.5px dashed var(--dash); color: var(--ink-2);
  animation: morph 6s var(--emph) infinite;
}
.soon-plus svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@keyframes morph { 0%, 100% { border-radius: 16px; } 33% { border-radius: 50%; } 66% { border-radius: 28px 8px 28px 8px; } }


/* ───────── isla del servidor de Minecraft ─────────
   Siempre oscura (como una "isla dinámica"): es un monitor, no una app. */
.island {
  --dot: #8a90a3;
  --mc: #5ee36a;
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 30;
  width: max-content; max-width: calc(100vw - 24px);
  color: #eef5ea;
  background: rgba(13, 16, 12, 0.88);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 20px 50px -14px rgba(0, 0, 0, 0.55);
  transform: translate(-50%, 160%);
  interpolate-size: allow-keywords;
  transition: transform 0.8s var(--spring), width 0.55s var(--emph), border-radius 0.5s var(--spring);
}
.island.in { transform: translate(-50%, 0); }
.island.open { width: min(440px, calc(100vw - 24px)); border-radius: 30px; }
/* textura de píxeles muy sutil */
.island::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0.6;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 4px 4px;
}
.island[data-state="online"] { --dot: var(--mc); }
.island[data-state="starting"] { --dot: #f2b441; }
.island[data-state="offline"] { --dot: #e2584a; }
.px { font-family: "Silkscreen", ui-monospace, monospace; letter-spacing: 0.02em; }

.isl-pill {
  position: relative; width: 100%; height: 52px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px 0 14px; border: 0; background: none; color: inherit; cursor: pointer; border-radius: inherit;
}
.mc-block { width: 24px; height: 24px; flex: none; transition: transform 0.5s var(--spring); }
.isl-pill:hover .mc-block { transform: rotate(-10deg) scale(1.1); }
.isl-name { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.isl-state { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: rgba(238, 245, 234, 0.7); white-space: nowrap; }
.isl-state i { width: 8px; height: 8px; background: var(--dot); box-shadow: 0 0 10px var(--dot); }
.island[data-state="online"] .isl-state i { animation: pxblink 1.6s steps(2, jump-none) infinite; }
@keyframes pxblink { 50% { opacity: 0.35; box-shadow: none; } }
.isl-sep { width: 1px; height: 18px; background: rgba(255, 255, 255, 0.14); }
.isl-quick { font-size: 13px; white-space: nowrap; }
.isl-quick small { font-family: "DM Sans", sans-serif; font-size: 12px; opacity: 0.55; margin-left: 4px; }
.isl-up:empty { display: none; }
.isl-chev { width: 16px; height: 16px; margin-left: auto; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.6; transition: transform 0.5s var(--spring); }
.island.open .isl-chev { transform: rotate(180deg); }

.isl-body { contain: inline-size; display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--emph); }
.island.open .isl-body { grid-template-rows: 1fr; }
.isl-inner { min-height: 0; overflow: hidden; padding: 0 16px; opacity: 0; transition: opacity 0.25s, padding 0.55s var(--emph); }
.island.open .isl-inner { opacity: 1; padding: 0 16px 16px; transition-delay: 0.12s, 0s; }
.isl-motd { margin: 2px 0 12px; font-size: 12.5px; color: rgba(238, 245, 234, 0.5); }

.isl-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.isl-stats > div { padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.isl-big { font-size: 18px; line-height: 1; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.isl-big small { font-size: 12px; opacity: 0.5; }
.isl-label { font-size: 12px; color: rgba(238, 245, 234, 0.55); }

.isl-chart { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; margin-top: 14px; }
.isl-chart .col { display: grid; gap: 3px; }
.isl-chart i { display: block; aspect-ratio: 1; background: rgba(255, 255, 255, 0.06); }
.isl-chart i.on { background: var(--mc); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.25); }
.isl-chart .col.down i:last-child { background: #e2584a; opacity: 0.7; }
.isl-chart .col.nodata i { opacity: 0.45; }
.isl-chart-cap { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: rgba(238, 245, 234, 0.42); }

.isl-people { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 14px 0 0; padding: 0; }
.isl-people li { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); font-size: 13px; }
.isl-people .head { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 3px; background: hsl(var(--h) 50% 42%); font-family: "Silkscreen", monospace; font-size: 11px; color: #fff; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25); }
.isl-people li.none, .isl-people li.more { padding: 4px 10px; color: rgba(238, 245, 234, 0.6); }

.isl-ip {
  width: 100%; margin-top: 14px; display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--mc); color: #0d1a0b; font-weight: 700;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.2), inset 0 2px 0 rgba(255, 255, 255, 0.35);
  transition: border-radius 0.4s var(--spring), transform 0.3s var(--spring), background 0.2s;
}
.isl-ip:hover { border-radius: 20px; }
.isl-ip:active { transform: scale(0.97); }
.isl-ip.copied { background: #fff; }
.isl-ip-label { margin-right: auto; font-size: 13px; opacity: 0.75; }
.isl-ip .px { font-size: 15px; }
.isl-ip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.island[data-state="offline"] .isl-ip, .island[data-state="unknown"] .isl-ip { background: rgba(255, 255, 255, 0.12); color: #eef5ea; }

/* ───────── entrada ───────── */
.js .tile { opacity: 0; transform: translateY(18px) scale(0.97); }
.js .tile.in { opacity: 1; transform: none; transition: opacity 0.6s var(--emph) var(--d), transform 0.8s var(--spring) var(--d), border-radius 0.5s var(--spring), box-shadow 0.4s; }
.js .tile.in.done { transition: border-radius 0.5s var(--spring), transform 0.5s var(--spring), box-shadow 0.4s; }

/* ───────── responsive ───────── */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; min-height: 0; }
  .tile { aspect-ratio: 1; }
  .tile.xl { grid-row: auto; aspect-ratio: 1.5; }
  .tile.wide { aspect-ratio: 2.1; }
  .tile.xl .tile-icon { width: 64px; height: 64px; border-radius: 18px; }
}
@media (max-width: 560px) {
  :root { --r: 26px; --r-hover: 34px; --gap: 10px; }
  .menu-label, .clock { display: none; }
  .menu-btn { width: 46px; padding: 0; justify-content: center; }
  .bar { grid-template-columns: 46px 1fr 46px; }
  .brand { justify-self: center; }
  .tile { padding: 16px; }
  .tile.xl { aspect-ratio: 1.15; }
  .tile.wide { aspect-ratio: 1.9; }
  .tile-icon { width: 46px; height: 46px; border-radius: 13px; }
  .go { width: 34px; height: 34px; }
  .chip { height: 26px; padding: 0 9px; font-size: 12px; }
  .tile-text b { font-size: 19px; }
  .tile-text small { font-size: 13px; }
  .tile.xl .tile-text b { font-size: 46px; }
  .isl-up, .isl-quick small { display: none; }
  .isl-big { font-size: 15px; }
  .isl-stats > div { padding: 10px; }
  .isl-pill { gap: 9px; padding: 0 14px 0 12px; }
  .tile:not(.xl):not(.wide) .chip { width: 26px; padding: 0; justify-content: center; }
  .tile:not(.xl):not(.wide) .chip span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
}
