/* ==========================================================================
   GuancheCromos — App Shell
   Dirección: "Nocturno de estadio". Focos, césped, y el brillo holográfico
   del cromo shiny. Pensado para que la PWA instalada se sienta como una app
   nativa, no como una web dentro de un navegador.

   CSS escrito a mano a propósito: el proyecto no tiene build de Tailwind
   (app.css está precompilado y no existe el tailwind.config.js original),
   así que cualquier clase nueva de Tailwind no tendría estilos.
   Mismo patrón que portal.css.
   ========================================================================== */

:root {
  --gc-night: #05080f;
  --gc-surface: #0a1120;
  --gc-raised: #101a2e;
  --gc-line: rgba(255, 255, 255, 0.10);
  --gc-line-strong: rgba(255, 255, 255, 0.18);

  --gc-text: #ffffff;
  --gc-muted: rgba(255, 255, 255, 0.62);
  --gc-faint: rgba(255, 255, 255, 0.38);

  --gc-gold: #ffcf4d;
  --gc-amber: #f5a524;
  --gc-turf: #20c878;
  --gc-turf-deep: #0e7a47;
  --gc-holo-a: #5be9e9;
  --gc-holo-b: #ff5ba8;

  --gc-tab-h: 62px;
  --gc-safe-b: env(safe-area-inset-bottom, 0px);
  --gc-safe-t: env(safe-area-inset-top, 0px);

  --gc-r-sm: 10px;
  --gc-r: 16px;
  --gc-r-lg: 22px;

  /* Curva con un punto de rebote: da sensación de resorte nativo. */
  --gc-spring: cubic-bezier(.22, 1.4, .36, 1);
  --gc-ease: cubic-bezier(.4, 0, .2, 1);
}

/* --------------------------------------------------------------------------
   1. Comportamiento de app, no de web
   -------------------------------------------------------------------------- */

.gc-app {
  /* Evita el rebote elástico del scroll que delata que estás en un navegador. */
  overscroll-behavior-y: none;
  /* Sin flash azul al tocar. */
  -webkit-tap-highlight-color: transparent;
}

.gc-app a,
.gc-app button {
  -webkit-touch-callout: none;
}

/* El texto de la interfaz no se selecciona (como en nativo); el contenido sí. */
.gc-app .gc-noselect,
.gc-tabbar,
.gc-appbar {
  -webkit-user-select: none;
  user-select: none;
}

/* --------------------------------------------------------------------------
   2. Atmósfera: focos de estadio + césped
   -------------------------------------------------------------------------- */

.gc-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Los focos son una clase aparte para poder reutilizarlos en la web
   (portada, cabeceras) sin arrastrar el resto del shell de la app. */
.gc-floodlights {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Dos haces de foco cayendo desde las esquinas superiores. */
.gc-atmosphere::before,
.gc-atmosphere::after,
.gc-floodlights::before,
.gc-floodlights::after {
  content: '';
  position: absolute;
  top: -34%;
  width: 88%;
  height: 92%;
  background: radial-gradient(
    ellipse 46% 58% at 50% 0%,
    rgba(255, 207, 77, 0.30),
    rgba(255, 190, 60, 0.10) 38%,
    transparent 68%
  );
  filter: blur(10px);
}

.gc-atmosphere::before,
.gc-floodlights::before {
  left: -30%;
  transform: rotate(-16deg);
}

.gc-atmosphere::after,
.gc-floodlights::after {
  right: -30%;
  transform: rotate(16deg);
  background: radial-gradient(
    ellipse 46% 58% at 50% 0%,
    rgba(32, 200, 120, 0.26),
    rgba(32, 200, 120, 0.08) 38%,
    transparent 68%
  );
}

/* Rayas de césped, como el corte del campo visto desde la grada. */
.gc-turf-stripes {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.030) 0 46px,
    transparent 46px 92px
  );
  /* Se desvanecen hacia arriba: el foco domina la parte alta. */
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 38%);
  mask-image: linear-gradient(180deg, transparent, #000 38%);
}

/* Halo de césped al pie de la pantalla: cierra la composición. */
.gc-turf-glow {
  position: absolute;
  left: 50%;
  bottom: -26%;
  width: 150%;
  height: 46%;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse 50% 50% at 50% 100%,
    rgba(14, 122, 71, 0.34),
    rgba(14, 122, 71, 0.10) 45%,
    transparent 72%
  );
  filter: blur(14px);
}

/* Grano: rompe las bandas de los degradados y da textura de impresión.
   Sin mix-blend-mode a propósito: en overlay, una capa a pantalla completa
   levanta los medios tonos y lava todo el contenido que tiene debajo. */
.gc-grain {
  position: absolute;
  inset: 0;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   3. Brillo holográfico (el cromo "shiny")
   -------------------------------------------------------------------------- */

.gc-holo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.gc-holo::after {
  content: '';
  position: absolute;
  inset: -60%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 38%,
    rgba(91, 233, 233, 0.13) 45%,
    rgba(255, 255, 255, 0.26) 50%,
    rgba(255, 91, 168, 0.13) 55%,
    transparent 62%
  );
  transform: translateX(-42%);
  animation: gc-holo-sweep 5.5s var(--gc-ease) infinite;
}

@keyframes gc-holo-sweep {
  0%, 62% { transform: translateX(-42%); }
  100%    { transform: translateX(42%); }
}

/* --------------------------------------------------------------------------
   4. Barra superior de app
   -------------------------------------------------------------------------- */

.gc-appbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: calc(var(--gc-safe-t) + .7rem) 1rem .7rem;
  background: linear-gradient(180deg, rgba(5, 8, 15, .94), rgba(5, 8, 15, .72));
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--gc-ease), background .25s var(--gc-ease);
}

/* La línea inferior sólo aparece al hacer scroll, como en iOS. */
.gc-appbar.is-scrolled {
  border-bottom-color: var(--gc-line);
}

.gc-appbar__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 207, 77, .5);
  flex: none;
}

/* Sin foto: iniciales sobre el degradado dorado. */
.gc-appbar__avatar--initials {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--gc-gold), var(--gc-amber));
  color: #0b0f18;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: -.02em;
}

.gc-appbar__copy { flex: 1; min-width: 0; line-height: 1.2; }

.gc-appbar__hello {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gc-faint);
}

.gc-appbar__name {
  display: block;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--gc-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gc-appbar__action {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 13px;
  border: 1px solid var(--gc-line);
  background: rgba(255, 255, 255, .04);
  color: var(--gc-text);
  transition: transform .18s var(--gc-spring), background .2s var(--gc-ease);
}

.gc-appbar__action:active { transform: scale(.9); background: rgba(255, 255, 255, .09); }
.gc-appbar__action svg { width: 20px; height: 20px; }

.gc-appbar__dot {
  position: absolute;
  top: 8px;
  right: 9px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--gc-gold);
  color: #0b0f18;
  font-size: .6rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  border: 2px solid var(--gc-night);
}

/* --------------------------------------------------------------------------
   5. Tarjeta de progreso del álbum — el dato que importa al coleccionista
   -------------------------------------------------------------------------- */

.gc-progress-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.05rem;
  padding: 1.1rem;
  border-radius: var(--gc-r-lg);
  border: 1px solid var(--gc-line);
  background:
    radial-gradient(120% 130% at 100% 0%, color-mix(in srgb, var(--gc-collection, #ffcf4d) 22%, transparent), transparent 58%),
    linear-gradient(160deg, var(--gc-raised), var(--gc-surface));
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .95);
}

/* display:block explícito porque en las vistas son <span> dentro de un <a>. */
.gc-ring { display: block; position: relative; width: 88px; height: 88px; flex: none; }
.gc-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gc-ring circle { fill: none; stroke-width: 8; stroke-linecap: round; }
.gc-ring .gc-ring__track { stroke: rgba(255, 255, 255, .09); }

.gc-ring .gc-ring__value {
  stroke: url(#gcRingGrad);
  stroke-dasharray: var(--gc-dash, 226);
  stroke-dashoffset: var(--gc-offset, 226);
  animation: gc-ring-fill 1.1s var(--gc-ease) forwards;
}

@keyframes gc-ring-fill { from { stroke-dashoffset: var(--gc-dash, 226); } }

.gc-ring__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  font-family: 'Unbounded', system-ui, sans-serif;
}

.gc-ring__pct { font-size: 1.32rem; font-weight: 900; color: var(--gc-text); line-height: 1; }
.gc-ring__pct sup { font-size: .62rem; font-weight: 700; margin-left: 1px; }

.gc-progress-card__body { display: block; min-width: 0; flex: 1; }

.gc-progress-card__eyebrow {
  display: block;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gc-turf);
  margin-bottom: .2rem;
}

.gc-progress-card__title {
  display: block;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--gc-text);
  margin: 0 0 .5rem;
  line-height: 1.15;
}

.gc-stat-row { display: flex; gap: 1.1rem; }
.gc-stat { display: block; line-height: 1.1; }

.gc-stat strong {
  display: block;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-size: 1.02rem;
  font-weight: 900;
  color: var(--gc-text);
}

.gc-stat small {
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gc-faint);
}

.gc-stat--gold strong { color: var(--gc-gold); }
.gc-stat--turf strong { color: var(--gc-turf); }

/* --------------------------------------------------------------------------
   6. Acciones rápidas
   -------------------------------------------------------------------------- */

.gc-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }

.gc-quick__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: .95rem .4rem .8rem;
  border-radius: var(--gc-r);
  border: 1px solid var(--gc-line);
  background: linear-gradient(165deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  color: var(--gc-text);
  text-align: center;
  transition: transform .2s var(--gc-spring), border-color .2s var(--gc-ease);
}

.gc-quick__item:active { transform: scale(.94); border-color: var(--gc-line-strong); }

.gc-quick__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 207, 77, .12);
  color: var(--gc-gold);
}

.gc-quick__item--turf .gc-quick__icon { background: rgba(32, 200, 120, .12); color: var(--gc-turf); }
.gc-quick__item--holo .gc-quick__icon { background: rgba(91, 233, 233, .12); color: var(--gc-holo-a); }
.gc-quick__icon svg { width: 20px; height: 20px; }

.gc-quick__label { font-size: .7rem; font-weight: 800; letter-spacing: .01em; }

.gc-quick__badge {
  position: absolute;
  top: .55rem;
  right: .55rem;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--gc-gold);
  color: #0b0f18;
  font-size: .6rem;
  font-weight: 900;
  display: grid;
  place-items: center;
}

.gc-quick__item { position: relative; }

/* --------------------------------------------------------------------------
   7. Cabecera de sección
   -------------------------------------------------------------------------- */

.gc-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.6rem 0 .8rem;
}

.gc-section-head h2 {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-size: .96rem;
  font-weight: 800;
  color: var(--gc-text);
  margin: 0;
}

.gc-section-head a {
  font-size: .72rem;
  font-weight: 800;
  color: var(--gc-gold);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   8. Carrusel de cambios posibles
   -------------------------------------------------------------------------- */

.gc-rail {
  display: flex;
  gap: .7rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: .15rem .15rem .5rem;
  margin: 0 -1rem;
  padding-inline: 1rem;
  scrollbar-width: none;
}

.gc-rail::-webkit-scrollbar { display: none; }

.gc-match {
  flex: none;
  width: 172px;
  scroll-snap-align: start;
  padding: .85rem;
  border-radius: var(--gc-r);
  border: 1px solid var(--gc-line);
  background: linear-gradient(165deg, var(--gc-raised), var(--gc-surface));
  transition: transform .2s var(--gc-spring);
}

.gc-match:active { transform: scale(.96); }

.gc-match__top { display: flex; align-items: center; gap: .55rem; margin-bottom: .7rem; }

.gc-match__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-size: .74rem;
  font-weight: 900;
  color: #0b0f18;
  background: linear-gradient(145deg, var(--gc-gold), var(--gc-amber));
}

.gc-match__who { min-width: 0; line-height: 1.2; }
.gc-match__who strong { display: block; font-size: .78rem; font-weight: 800; color: var(--gc-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-match__who small { font-size: .64rem; color: var(--gc-faint); font-weight: 600; }

.gc-match__deal { display: flex; align-items: center; gap: .45rem; }

.gc-match__side { flex: 1; text-align: center; padding: .45rem .3rem; border-radius: var(--gc-r-sm); background: rgba(255, 255, 255, .04); }
.gc-match__side strong { display: block; font-family: 'Unbounded', system-ui, sans-serif; font-size: .96rem; font-weight: 900; line-height: 1; }
.gc-match__side small { font-size: .58rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--gc-faint); }
.gc-match__side--give strong { color: var(--gc-holo-a); }
.gc-match__side--get strong { color: var(--gc-turf); }
.gc-match__swap { color: var(--gc-faint); flex: none; }
.gc-match__swap svg { width: 15px; height: 15px; display: block; }

/* --------------------------------------------------------------------------
   8b. Sin colección activa / lista de álbumes
   -------------------------------------------------------------------------- */

.gc-empty-card {
  display: block;
  padding: 1.3rem;
  border-radius: var(--gc-r-lg);
  border: 1.5px dashed rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .02);
  text-align: center;
}

.gc-empty-card strong {
  display: block;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--gc-gold);
  margin-bottom: .35rem;
}

.gc-empty-card span { font-size: .8rem; color: var(--gc-muted); line-height: 1.45; }

.gc-album-row {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .75rem .85rem;
  border-radius: var(--gc-r);
  border: 1px solid var(--gc-line);
  background: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  transition: transform .2s var(--gc-spring);
}

.gc-album-row:active { transform: scale(.98); }

.gc-album-row__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  background: color-mix(in srgb, var(--gc-collection, #ffcf4d) 20%, transparent);
  color: var(--gc-collection, #ffcf4d);
  font-family: 'Unbounded', system-ui, sans-serif;
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.gc-album-row__body { display: block; flex: 1; min-width: 0; }

.gc-album-row__body strong {
  display: block;
  font-size: .84rem;
  font-weight: 800;
  color: var(--gc-text);
  margin-bottom: .38rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gc-album-row__bar {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .09);
  overflow: hidden;
}

.gc-album-row__bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gc-collection, #ffcf4d), var(--gc-turf));
}

.gc-album-row__pct {
  flex: none;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-size: .82rem;
  font-weight: 900;
  color: var(--gc-text);
}

/* --------------------------------------------------------------------------
   9. Rejilla de huecos de álbum (motivo de colección)
   -------------------------------------------------------------------------- */

.gc-slots { display: grid; grid-template-columns: repeat(6, 1fr); gap: .35rem; }

.gc-slot {
  aspect-ratio: 58 / 77;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: .56rem;
  font-weight: 800;
  font-family: 'Unbounded', system-ui, sans-serif;
}

/* Hueco vacío: contorno discontinuo, como el álbum sin pegar. */
.gc-slot--empty { border: 1.5px dashed rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .22); }

/* Pegado. */
.gc-slot--owned { border: 1px solid rgba(32, 200, 120, .4); background: rgba(32, 200, 120, .14); color: var(--gc-turf); }

/* Repetido: el que puedes cambiar. */
.gc-slot--dupe { border: 1px solid rgba(255, 207, 77, .45); background: rgba(255, 207, 77, .16); color: var(--gc-gold); }

/* --------------------------------------------------------------------------
   10. Barra de pestañas inferior
   -------------------------------------------------------------------------- */

.gc-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: stretch;
  height: calc(var(--gc-tab-h) + var(--gc-safe-b));
  padding-bottom: var(--gc-safe-b);
  background: rgba(7, 11, 20, .88);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border-top: 1px solid var(--gc-line);
}

.gc-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--gc-faint);
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .01em;
  transition: color .2s var(--gc-ease);
}

.gc-tab svg { width: 22px; height: 22px; transition: transform .3s var(--gc-spring); }
.gc-tab:active svg { transform: scale(.82); }
.gc-tab.is-active { color: var(--gc-gold); }
.gc-tab.is-active svg { transform: translateY(-1px); }

/* Barra indicadora que se desliza sobre la pestaña activa. */
.gc-tab.is-active::before {
  content: '';
  position: absolute;
  top: 0;
  width: 26px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--gc-gold), var(--gc-amber));
  box-shadow: 0 0 14px rgba(255, 207, 77, .6);
  animation: gc-tab-in .32s var(--gc-spring);
}

@keyframes gc-tab-in { from { width: 0; opacity: 0; } }

.gc-tab__badge {
  position: absolute;
  top: 6px;
  left: 50%;
  margin-left: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #ff4d5e;
  color: #fff;
  font-size: .58rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  border: 2px solid #070b14;
}

/* --------------------------------------------------------------------------
   11. Pull to refresh
   -------------------------------------------------------------------------- */

.gc-ptr {
  position: fixed;
  top: calc(var(--gc-safe-t) + 6px);
  left: 50%;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--gc-line);
  background: rgba(10, 17, 32, .95);
  backdrop-filter: blur(10px);
  color: var(--gc-gold);
  opacity: 0;
  transform: translate(-50%, -18px) scale(.7);
  transition: opacity .18s var(--gc-ease), transform .18s var(--gc-ease);
  pointer-events: none;
}

.gc-ptr svg { width: 17px; height: 17px; }
.gc-ptr.is-visible { opacity: 1; transform: translate(-50%, 0) scale(1); }
.gc-ptr.is-armed { border-color: rgba(255, 207, 77, .55); }
.gc-ptr.is-loading svg { animation: gc-spin .8s linear infinite; }

@keyframes gc-spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   11b. Aviso de sin conexión
   -------------------------------------------------------------------------- */

.gc-offline {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 60;
  padding: calc(var(--gc-safe-t) + .4rem) 1rem .4rem;
  text-align: center;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: #0b0f18;
  background: linear-gradient(90deg, var(--gc-amber), var(--gc-gold));
  animation: gc-rise .3s var(--gc-ease);
}

.gc-offline[hidden] { display: none; }

/* --------------------------------------------------------------------------
   12. Esqueletos de carga
   -------------------------------------------------------------------------- */

.gc-skel {
  border-radius: var(--gc-r-sm);
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, .045) 30%,
    rgba(255, 255, 255, .10) 50%,
    rgba(255, 255, 255, .045) 70%
  );
  background-size: 220% 100%;
  animation: gc-skel 1.3s var(--gc-ease) infinite;
}

@keyframes gc-skel { from { background-position: 180% 0; } to { background-position: -60% 0; } }

/* --------------------------------------------------------------------------
   13. Entrada escalonada al cargar la vista
   -------------------------------------------------------------------------- */

.gc-enter > * {
  animation: gc-rise .5s var(--gc-ease) backwards;
}

.gc-enter > *:nth-child(1) { animation-delay: .02s; }
.gc-enter > *:nth-child(2) { animation-delay: .07s; }
.gc-enter > *:nth-child(3) { animation-delay: .12s; }
.gc-enter > *:nth-child(4) { animation-delay: .17s; }
.gc-enter > *:nth-child(5) { animation-delay: .22s; }
.gc-enter > *:nth-child(6) { animation-delay: .27s; }
.gc-enter > *:nth-child(7) { animation-delay: .32s; }

@keyframes gc-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   14. Transiciones de vista nativas
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

::view-transition-old(root) { animation: gc-vt-out .2s var(--gc-ease) both; }
::view-transition-new(root) { animation: gc-vt-in .28s var(--gc-ease) both; }

@keyframes gc-vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes gc-vt-in { from { opacity: 0; transform: translateY(10px); } }

/* La tabbar y la appbar no deben participar en la transición: se quedan
   fijas como en una app nativa. */
.gc-tabbar { view-transition-name: gc-tabbar; }
.gc-appbar { view-transition-name: gc-appbar; }

/* --------------------------------------------------------------------------
   15. Contenedor de la app
   -------------------------------------------------------------------------- */

.gc-screen {
  position: relative;
  z-index: 1;
  padding: 1rem 1rem calc(var(--gc-tab-h) + var(--gc-safe-b) + 1.4rem);
  max-width: 640px;
  margin-inline: auto;
}

.gc-stack > * + * { margin-top: .9rem; }

/* --------------------------------------------------------------------------
   16. Accesibilidad
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .gc-holo::after,
  .gc-skel,
  .gc-enter > *,
  .gc-ring .gc-ring__value {
    animation: none !important;
  }
  .gc-enter > * { opacity: 1; transform: none; }
  .gc-ring .gc-ring__value { stroke-dashoffset: var(--gc-offset, 226); }
}

.gc-tab:focus-visible,
.gc-quick__item:focus-visible,
.gc-appbar__action:focus-visible {
  outline: 2px solid var(--gc-gold);
  outline-offset: 2px;
  border-radius: var(--gc-r-sm);
}
