/* ==================================================
   Pokémon Shrine — Home Page (Pastel PokéMart)
   Home-only styling; panels/theme come from shared.css
================================================== */

.poke-home-hero{
  text-align: center;
  margin: 0 auto 14px;
  padding: 10px 8px 0;
}

.poke-home-logo{
  width: min(420px, 92vw);
  height: auto;
  image-rendering: pixelated;
  display: block;
  margin: 0 auto 6px;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.18));
}

/* -------------------------
   GBA Dialog Intro Box
------------------------- */

.gba-dialog{
  width: min(760px, 96vw);
  margin: 10px auto 0;
  padding: 12px 64px 14px 12px;

  position: relative;
  border-radius: 16px;

  background: rgba(255,255,255,0.92);
  border: 4px solid rgba(22,49,74,0.42);
  box-shadow:
    0 18px 30px rgba(0,0,0,0.12),
    0 0 0 3px rgba(255,255,255,0.65) inset,
    0 0 22px rgba(254,200,237,0.35),
    0 0 18px rgba(38,186,246,0.16);
}

.gba-dialog__line{
  font-size: 10px;
  line-height: 1.85;
  margin: 0;
  color: var(--pm-ink);
}

.gba-dialog__title{
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

/* cursor + blink */
.gba-cursor{
  display: inline-block;
  margin-left: 6px;
  transform: translateY(1px);
  animation: gba-blink 1s steps(2, end) infinite;
}

@keyframes gba-blink{
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* “press A” hint */
.gba-dialog__hint{
  margin: 8px 0 0;
  font-size: 9px;
  opacity: 0.75;
  text-align: right;
  letter-spacing: 0.4px;
  color: var(--pm-ink-soft);
}

/* -------------------------
   Typewriter reveal (clip-path)
------------------------- */

.gba-type{ position: relative; }
.gba-type__text{ visibility: hidden; }

.gba-type__reveal{
  position: absolute;
  left: 0;
  top: 0;
  clip-path: inset(0 100% 0 0);
  overflow: hidden;
}

.gba-dialog__title .gba-type__reveal{
  animation: gba-clip-reveal 1.05s steps(24, end) forwards;
}

.gba-dialog__line:not(.gba-dialog__title) .gba-type__reveal{
  animation: gba-clip-reveal 2.2s steps(60, end) forwards;
  animation-delay: 0.65s;
}

@keyframes gba-clip-reveal{
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

.gba-dialog.gba-typed-done .gba-type__text{ visibility: visible; }
.gba-dialog.gba-typed-done .gba-type__reveal{ display: none; }

@media (prefers-reduced-motion: reduce){
  .gba-type__text{ visibility: visible; }
  .gba-type__reveal{ display: none; }
}

@media (max-width: 520px){
  .gba-type__reveal{
    white-space: normal;
    width: 100% !important;
    animation: none !important;
  }
  .gba-type__text{ visibility: visible; }
}

/* -------------------------
   AUTO light (aqua)
------------------------- */

.gba-dialog::before{
  content: "";
  position: absolute;
  top: 10px;
  right: 12px;
  width: 10px;
  height: 10px;
  border-radius: 999px;

  background: radial-gradient(circle at 30% 30%, #ffffff, #26BAF6 60%, #1b7fb0 100%);
  box-shadow:
    0 0 0 2px rgba(22,49,74,0.42),
    0 0 14px rgba(38,186,246,0.55);

  animation: auto-pulse 1.8s ease-in-out infinite;
}

.gba-dialog::after{
  content: "AUTO";
  position: absolute;
  top: 8px;
  right: 28px;
  font-size: 9px;
  letter-spacing: 0.5px;
  opacity: 0.85;
  color: var(--pm-ink);
}

@keyframes auto-pulse{
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}

@media (prefers-reduced-motion: reduce){
  .gba-dialog::before{ animation: none; }
}

/* -------------------------
   Home link tiles (match theme)
------------------------- */

.poke-home-links{
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.poke-home-links li{
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(254,226,252,0.72));
  border: 2px solid var(--pm-border);
  border-radius: 14px;
  padding: 10px;
  box-shadow:
    0 2px 0 rgba(22,49,74,0.08),
    0 0 0 2px rgba(255,255,255,0.55) inset,
    0 0 14px rgba(254,200,237,0.22);
}

.poke-home-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  text-decoration: none;
  color: var(--pm-ink);
}

.poke-home-link:hover{
  filter: brightness(1.02) saturate(1.05);
  transform: translateY(-1px);
}

.poke-home-desc{
  display: block;
  font-size: 9px;
  line-height: 1.7;
  margin-top: 6px;
  opacity: 0.9;
  color: var(--pm-ink-soft);
}
