@font-face {
  font-family: 'Big Shoulders';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/big-shoulders-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Big Shoulders';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/big-shoulders-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/public-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/public-sans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/public-sans-700.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-mono-600.woff2') format('woff2');
}

/*
  Dirección de arte: campo soleado de caricatura, colores jugosos tipo Fruit
  Ninja. Es un mundo visual único a propósito — un juego de frutas al sol no
  se invierte a modo oscuro sin romper la ilustración, así que todos los
  colores se pintan explícitos y no hay variante oscura.
*/
:root {
  --sky: #8FD4F0;
  --card: #FFFFFF;
  --card-soft: #FFF8E8;
  --ink: #2B2016;
  --ink-soft: #6A5947;
  --ink-faint: #9A8878;
  --border: #EADFC9;

  --sun-1: #FFB020;
  --sun-2: #F2660C;
  --sun-edge: #C24A00;

  --leaf-1: #57C93F;
  --leaf-2: #229B3C;
  --leaf-edge: #16702A;

  --crate-1: #B4763F;
  --crate-2: #8A5227;
  --crate-edge: #5E3517;

  --danger: #E7413A;

  --shadow-card: 0 2px 0 rgba(43, 32, 22, 0.06), 0 18px 40px -16px rgba(43, 32, 22, 0.35);
  --radius: 20px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  overscroll-behavior: none;
}

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: 'Public Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  touch-action: none;
  overflow: hidden;
}

button {
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible {
  outline: 3px solid #1B4E7A;
  outline-offset: 3px;
}

/* ---------- Fondo de campo ---------- */

.field-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.field-bg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cloud { animation: drift 34s ease-in-out infinite; }
.cloud-b { animation-duration: 46s; animation-direction: reverse; }

@keyframes drift {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(26px); }
}

/* ---------- Frutas decorativas ---------- */

.floating-fruits {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.floating-fruits img {
  position: absolute;
  width: var(--size);
  height: var(--size);
  left: var(--x);
  top: var(--y);
  opacity: 0.9;
  filter: drop-shadow(0 8px 14px rgba(43, 32, 22, 0.25));
  animation: bob var(--dur) ease-in-out infinite;
  animation-delay: var(--delay);
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%      { transform: translateY(-18px) rotate(calc(var(--rot, 0deg) + 6deg)); }
}

/* ---------- Pantallas ---------- */

.screen {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
}

.screen.active { display: flex; }

/* ---------- Menú ---------- */

.screen-menu {
  justify-content: center;
  padding: 20px;
}

.menu-card {
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.title-block {
  margin-bottom: 22px;
}

.logo {
  margin: 0 0 10px;
  font-family: 'Big Shoulders', sans-serif;
  font-weight: 800;
  font-size: clamp(3.2rem, 17vw, 4.6rem);
  line-height: 0.86;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-1 { color: #FFFFFF; }
.logo-2 { color: #FFD64A; }

.logo span {
  /* contorno grueso: el título se lee sobre cielo, nube o colina por igual */
  -webkit-text-stroke: 5px #2B2016;
  paint-order: stroke fill;
  text-shadow: 0 6px 0 rgba(43, 32, 22, 0.35);
}

.tagline {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: #2B2016;
  background: rgba(255, 255, 255, 0.72);
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}

.stat {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(43, 32, 22, 0.12);
  border-radius: 14px;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-value {
  font-family: 'IBM Plex Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--ink);
}

.stat-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ---------- Botones de modo ---------- */

.mode-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

.mode-btn {
  --btn-1: var(--sun-1);
  --btn-2: var(--sun-2);
  --btn-edge: var(--sun-edge);
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border: none;
  border-radius: 18px;
  color: #FFFFFF;
  text-align: left;
  background: linear-gradient(170deg, var(--btn-1) 0%, var(--btn-2) 100%);
  /* borde inferior sólido = botón "físico" que se hunde al presionar */
  box-shadow: 0 6px 0 var(--btn-edge), 0 14px 24px -10px rgba(43, 32, 22, 0.5);
  transform: translateY(0);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.mode-btn:hover { filter: brightness(1.06); }

.mode-btn:active {
  transform: translateY(5px);
  box-shadow: 0 1px 0 var(--btn-edge), 0 6px 12px -8px rgba(43, 32, 22, 0.5);
}

.mode-daily {
  --btn-1: #FFC02E;
  --btn-2: #F2660C;
  --btn-edge: #B84400;
}

.mode-libre {
  --btn-1: #6FDD52;
  --btn-2: #1F9E3C;
  --btn-edge: #14712A;
}

/* Rush: rojo de urgencia, distinto a propósito de los otros dos modos */
.mode-rush {
  --btn-1: #FF7A4D;
  --btn-2: #DC2F2F;
  --btn-edge: #9E1A1A;
}

.mode-glyph {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.mode-glyph svg { width: 24px; height: 24px; }

.mode-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.mode-title {
  font-family: 'Big Shoulders', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(43, 32, 22, 0.28);
}

.mode-sub {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.92;
}

.mode-btn-compact {
  justify-content: center;
  text-align: center;
  padding: 13px 18px;
}

.mode-btn-compact .mode-text { align-items: center; }

.link-btn {
  background: none;
  border: none;
  color: #2B2016;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 9px;
}

/* ---------- Botón de sonido ---------- */

.sound-btn {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 2px solid rgba(43, 32, 22, 0.16);
  background: rgba(255, 255, 255, 0.92);
  color: #4A3A2A;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.sound-btn svg { width: 21px; height: 21px; }
.sound-btn .icon-sound-off { display: none; }
.sound-btn.is-muted .icon-sound-on { display: none; }
.sound-btn.is-muted .icon-sound-off { display: block; }
.sound-btn.is-muted { color: #B0392F; }

.sound-btn-corner {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  z-index: 3;
}

/* ---------- Ajustes ---------- */

.sound-btn-corner-2 { right: 66px; }

.screen-settings {
  justify-content: center;
  padding: 20px;
  background: rgba(28, 20, 12, 0.55);
}

.settings-card {
  width: 100%;
  max-width: 380px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-card);
}

.settings-card h2 {
  margin: 0 0 18px;
  font-family: 'Big Shoulders', sans-serif;
  font-weight: 800;
  font-size: 1.9rem;
  text-transform: uppercase;
}

.set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.set-label {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.set-hint {
  font-size: 0.74rem;
  font-weight: 400;
  color: var(--ink-faint);
  display: none;
}

/* el aviso solo aparece cuando el aparato de verdad no puede vibrar */
.set-row.unsupported .set-hint { display: block; }
.set-row.unsupported { opacity: 0.55; }

/* --- interruptor --- */

.switch {
  flex: 0 0 auto;
  width: 54px;
  height: 31px;
  border-radius: 999px;
  border: 2px solid rgba(43, 32, 22, 0.18);
  background: #D6CFC2;
  padding: 0;
  position: relative;
  transition: background 0.18s ease;
}

.switch .knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(43, 32, 22, 0.35);
  transition: transform 0.18s ease;
}

.switch[aria-checked="true"] { background: #1F9E3C; border-color: #14712A; }
.switch[aria-checked="true"] .knob { transform: translateX(23px); }
.switch:disabled { cursor: default; }

/* --- selector de idioma --- */

.lang-toggle {
  display: flex;
  gap: 4px;
  background: var(--card-soft);
  border-radius: 999px;
  padding: 4px;
}

.lang-opt {
  border: none;
  background: none;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-opt.is-active {
  background: #F2660C;
  color: #FFFFFF;
  box-shadow: 0 2px 0 #B84400;
}

/* --- enlaces de acción --- */

.set-link {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
}

.set-link-danger { color: #B0392F; }

.set-toast {
  min-height: 1.3em;
  margin: 12px 0 4px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #1B6B2E;
  text-align: center;
}

.settings-card .mode-btn { margin-top: 8px; }

/* ---------- Cómo se juega ---------- */

.screen-howto {
  justify-content: center;
  padding: 20px;
  background: rgba(28, 20, 12, 0.55);
}

.howto-card {
  width: 100%;
  max-width: 380px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-card);
}

.howto-card h2 {
  margin: 0 0 16px;
  font-family: 'Big Shoulders', sans-serif;
  font-weight: 800;
  font-size: 1.9rem;
  text-transform: uppercase;
}

.howto-card ol {
  margin: 0 0 18px;
  padding-left: 20px;
  display: grid;
  gap: 9px;
}

.howto-card li {
  font-size: 0.93rem;
  color: var(--ink-soft);
}

.chain-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3px;
  background: var(--card-soft);
  border-radius: 14px;
  padding: 12px 10px;
  margin-bottom: 16px;
}

.chain-preview img {
  width: var(--s);
  height: var(--s);
}

.chain-preview .arrow {
  color: var(--ink-faint);
  font-size: 11px;
  line-height: 1;
}

.howto-note {
  margin: 0 0 18px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: var(--card-soft);
  border-radius: 12px;
  padding: 12px 14px;
}

.howto-note b { color: var(--ink); }

/* ---------- Juego ---------- */

.screen-game {
  justify-content: flex-start;
  padding: max(12px, env(safe-area-inset-top)) 14px 16px;
  gap: 10px;
}

.game-hud {
  width: 100%;
  max-width: 430px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.hud-side {
  display: flex;
  gap: 7px;
  flex: 0 0 auto;
  align-items: flex-start;
}

.hud-side-right { align-items: flex-start; }

.hud-center {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding-top: 1px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 2px solid rgba(43, 32, 22, 0.16);
  background: rgba(255, 255, 255, 0.92);
  color: #4A3A2A;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.icon-btn svg { width: 21px; height: 21px; }

.hud-score-value {
  font-family: 'Big Shoulders', sans-serif;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 0.9;
  color: #FFFFFF;
  -webkit-text-stroke: 4px #2B2016;
  paint-order: stroke fill;
  text-shadow: 0 4px 0 rgba(43, 32, 22, 0.32);
}

.hud-best {
  font-family: 'IBM Plex Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  font-weight: 600;
  color: #4A3A2A;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
}

.hud-score-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #3F3125;
  line-height: 1;
}

/* "Sigue" en la barra superior, fuera del tablero */
.next-chip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 5px 6px 4px;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(43, 32, 22, 0.14);
  border-radius: 14px;
}

.next-chip-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  line-height: 1;
}

.next-chip-fruit {
  width: 30px;
  height: 30px;
  display: block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- Aviso de "desliza para soltar" ---------- */

/*
  Enseña el gesto SIN texto solo: el dedo animado deslizándose es lo que se
  entiende de un vistazo, la frase nada más lo confirma. Solo aparece las
  primeras partidas; después estorbaría.
*/
.drop-hint {
  position: absolute;
  left: 50%;
  top: 34%;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  z-index: 3;
}

.drop-hint.is-visible { display: flex; }

.drop-hint-finger {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 3px solid rgba(58, 31, 16, 0.55);
  box-shadow: 0 4px 12px rgba(43, 32, 22, 0.35);
  animation: slideFinger 2.4s ease-in-out infinite;
}

@keyframes slideFinger {
  0%, 100% { transform: translateX(-58px) scale(1); opacity: 0.95; }
  45%      { transform: translateX(58px) scale(1); opacity: 0.95; }
  60%      { transform: translateX(58px) scale(0.78); opacity: 0.7; }
  70%      { transform: translateX(58px) scale(1); opacity: 0.95; }
}

.drop-hint-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: #FFFFFF;
  background: rgba(58, 31, 16, 0.82);
  padding: 7px 15px;
  border-radius: 999px;
  text-align: center;
  max-width: 80vw;
}

@media (prefers-reduced-motion: reduce) {
  .drop-hint-finger { animation: none; }
}

/* ---------- Cadena de evolución ---------- */

.evo-bar {
  width: 100%;
  max-width: 430px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(43, 32, 22, 0.16);
  border-radius: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.evo-bar::-webkit-scrollbar { display: none; }

.evo-bar img {
  flex: 0 0 auto;
  width: var(--s);
  height: var(--s);
  /* aún no lograda: apagada y sin color, para que se lea como meta pendiente */
  filter: grayscale(1) opacity(0.34);
  transition: filter 0.35s ease, transform 0.35s ease;
}

.evo-bar img.reached {
  filter: none;
}

/* la siguiente por desbloquear late suavemente: marca el objetivo inmediato */
.evo-bar img.target {
  filter: grayscale(0.35) opacity(0.85);
  animation: evoPulse 1.6s ease-in-out infinite;
}

@keyframes evoPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.16); }
}

.canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 430px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

#game-canvas {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(0, 0, 0, 0.16) 100%),
    linear-gradient(170deg, var(--crate-1) 0%, var(--crate-2) 100%);
  border: 4px solid var(--crate-edge);
  border-radius: 22px;
  box-shadow: inset 0 6px 18px rgba(0, 0, 0, 0.28), 0 16px 32px -14px rgba(43, 32, 22, 0.6);
  touch-action: none;
  max-width: 100%;
  max-height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .evo-bar img.target { animation: none; }
}

/* ---------- Resultado ---------- */

.screen-result {
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.result-wrap {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.share-mock {
  width: 100%;
  background: linear-gradient(165deg, #FFF0CC 0%, #FFD866 42%, #FFB020 100%);
  border-radius: var(--radius);
  padding: 20px;
  color: #3A2408;
  border: 3px solid rgba(43, 32, 22, 0.18);
  box-shadow: var(--shadow-card);
}

.share-mock-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-bottom: 12px;
}

.share-mock-title {
  margin: 0 0 4px;
  font-family: 'Big Shoulders', sans-serif;
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 0.98;
  text-transform: uppercase;
}

.share-mock-sub {
  margin: 0 0 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  opacity: 0.8;
}

.fruit-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 16px;
  min-height: 20px;
}

.fruit-grid img { width: 20px; height: 20px; }

.share-mock-score {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 2px solid rgba(58, 36, 8, 0.16);
  padding-top: 12px;
}

.share-mock-score .num {
  font-family: 'IBM Plex Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 2rem;
  line-height: 1;
}

.share-mock-score .num-label {
  display: block;
  margin-bottom: 2px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.share-mock-cta {
  font-weight: 700;
  font-size: 0.85rem;
}

.share-caption {
  margin: 12px 0 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2B2016;
  background: rgba(255, 255, 255, 0.75);
  padding: 5px 13px;
  border-radius: 999px;
}

.result-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 11px;
  align-items: center;
}

.result-actions .mode-btn { width: 100%; }

.copy-toast {
  margin: 6px 0 0;
  min-height: 1.2em;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1B6B2E;
}

@media (max-height: 620px) {
  .logo { font-size: clamp(2.4rem, 12vw, 3.2rem); }
  .title-block { margin-bottom: 14px; }
  .stat-row { margin-bottom: 14px; }
  .mode-btn { padding: 12px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .cloud, .floating-fruits img { animation: none; }
  .mode-btn { transition: none; }
}

/* ---------- Splash de estudio: NÚCLEO GAMES ---------- */

/*
  Se ve una vez al abrir y se va sola. Va por encima de todo (z-index alto)
  y con pointer-events none al desvanecerse, para que nunca bloquee el primer
  toque del jugador — un splash que se come un clic se siente como app trabada.
*/
.splash {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #14171A;
  color: #FFD64A;
  transition: opacity 0.55s ease;
}

.splash.is-gone {
  opacity: 0;
  pointer-events: none;
}

.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: splashIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.splash-mark {
  width: 84px;
  height: 84px;
  animation: splashSpin 2.6s ease-in-out both;
}

.splash-studio {
  margin: 0;
  font-family: 'Big Shoulders', sans-serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  letter-spacing: 0.06em;
  color: #FFFFFF;
  line-height: 1;
}

.splash-studio span { color: #FFD64A; }

.splash-tag {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

@keyframes splashIn {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

@keyframes splashSpin {
  from { transform: rotate(-90deg) scale(0.8); }
  to   { transform: rotate(0deg) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .splash-inner, .splash-mark { animation: none; }
}
