﻿/* Ponéglyphes — Quête Nico Robin (immersion cinéma + NFC) */
.page-poneglyph {
  --pg-t: #7ec8e3;
  --pg-glow: #4a9fd4;
  --pg-y: #fee440;
  --pg-v: #9b5cff;
  --pg-leaf: #3d8b6e;
  --pg-leaf-deep: #12281e;
  --pg-bloom: #e8a0c8;
  --pg-bg: #050806;
  --dmajin-nav-inner-h: 64px;
  background: var(--pg-bg);
  color: #eef2f0;
  overflow-x: clip;
}

.page-poneglyph.pg-vine-locked {
  overflow: hidden;
  height: 100dvh;
}

.page-poneglyph .page-content {
  opacity: 1;
  animation: none;
  padding: 0 !important;
}

.page-poneglyph .nav {
  background: linear-gradient(180deg, rgba(5, 8, 6, 0.92), rgba(5, 8, 6, 0.55) 70%, transparent);
  border-bottom: 0;
  backdrop-filter: blur(8px);
}

.pg-main {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 0 0 2.5rem;
  isolation: isolate;
}

/* ── Viewport 1 : scène full-bleed ── */
.pg-cinematic {
  position: relative;
  min-height: 100dvh;
  min-height: 100svh;
  display: grid;
  align-content: end;
  overflow: hidden;
  background: #050806;
}

.pg-cinematic-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(61, 139, 110, 0.22), transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(74, 159, 212, 0.12), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.pg-cinematic .pg-scene {
  position: absolute;
  inset: 0;
  border-radius: 0;
  overflow: hidden;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  z-index: 1;
}

.pg-scene-bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.04);
  animation: pgSceneBreathe 18s ease-in-out infinite alternate;
}

@keyframes pgSceneBreathe {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.2%, 0.6%, 0); }
}

.pg-scene-fog {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 8, 6, 0.55) 0%, transparent 28%, transparent 45%, rgba(5, 8, 6, 0.75) 78%, #050806 100%),
    radial-gradient(ellipse at 50% 55%, transparent 35%, rgba(5, 8, 6, 0.45) 100%);
}

.pg-cinematic-copy {
  position: relative;
  z-index: 5;
  padding:
    0
    max(1.1rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom))
    max(1.1rem, env(safe-area-inset-left));
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85);
}

.pg-hero-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pg-bloom);
}

.pg-hero-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: clamp(2.6rem, 9vw, 4.2rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  color: #f7faf8;
}

.pg-hero-title span {
  color: var(--pg-t);
  text-shadow:
    0 0 28px rgba(74, 159, 212, 0.55),
    0 0 48px rgba(61, 139, 110, 0.35);
}

.pg-hero-lead {
  margin: 0 auto 0.85rem;
  max-width: 28rem;
  color: rgba(238, 242, 240, 0.88);
  font-size: 0.95rem;
  line-height: 1.5;
}

.pg-pieces-count {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(126, 200, 227, 0.35);
  background: rgba(5, 8, 6, 0.55);
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pg-t);
  letter-spacing: 0.02em;
}

.pg-next-hint {
  margin: 0.65rem auto 0;
  max-width: 26rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(238, 242, 240, 0.9);
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(232, 160, 200, 0.28);
  background: rgba(5, 8, 6, 0.62);
  backdrop-filter: blur(10px);
}

.pg-next-hint[hidden] { display: none !important; }

.pg-next-cta {
  margin-top: 0.65rem;
  min-height: 44px;
}

.pg-next-cta.hidden { display: none !important; }

.pg-jump-flash {
  animation: pgJumpFlash 1.2s ease;
  outline: 2px solid rgba(126, 200, 227, 0.75);
  outline-offset: 4px;
}

@keyframes pgJumpFlash {
  0%, 100% { box-shadow: none; }
  30% { box-shadow: 0 0 0 6px rgba(126, 200, 227, 0.22); }
}

/* Lianes décoratives persistantes (bords) */
.pg-edge-vine {
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(18vw, 140px);
  z-index: 4;
  pointer-events: none;
  opacity: 0.55;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  filter: saturate(1.1);
}

.pg-edge-vine--l {
  left: 0;
  background-image:
    radial-gradient(ellipse 80% 40% at 0% 20%, rgba(61, 139, 110, 0.55), transparent 70%),
    radial-gradient(ellipse 70% 35% at 10% 55%, rgba(45, 110, 85, 0.45), transparent 70%),
    radial-gradient(ellipse 60% 30% at 0% 85%, rgba(232, 160, 200, 0.2), transparent 70%);
}

.pg-edge-vine--r {
  right: 0;
  background-image:
    radial-gradient(ellipse 80% 40% at 100% 25%, rgba(61, 139, 110, 0.5), transparent 70%),
    radial-gradient(ellipse 70% 35% at 90% 60%, rgba(45, 110, 85, 0.4), transparent 70%),
    radial-gradient(ellipse 60% 30% at 100% 80%, rgba(232, 160, 200, 0.18), transparent 70%);
}

.pg-below {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: -1.5rem auto 0;
  padding: 0 max(1rem, env(safe-area-inset-left)) 2rem max(1rem, env(safe-area-inset-right));
}

.pg-below .pg-card {
  background:
    linear-gradient(180deg, rgba(18, 28, 24, 0.92), rgba(10, 16, 13, 0.96));
  border: 1px solid rgba(126, 200, 227, 0.18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.pg-guest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-top: 0.85rem;
}

.pg-scene-bg--complete {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}

.pg-scene.is-complete .pg-scene-bg--complete {
  opacity: 1;
}

.pg-scene.is-unlocking-bg .pg-scene-bg:not(.pg-scene-bg--complete) {
  animation: pgBgSwap 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes pgBgSwap {
  0% { filter: brightness(2.2) saturate(1.4); }
  40% { filter: brightness(1.35) saturate(1.15); }
  100% { filter: none; }
}

/* Zone pinceau uniquement (fonds = swap d'image entière) */
.pg-puzzle-zone {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.pg-piece-img {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.pg-piece-burst {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 80%;
  height: 80%;
  transform: translate(-50%, -50%) scale(0.35);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(126, 200, 227, 0.55) 0%, rgba(74, 159, 212, 0.15) 45%, transparent 70%);
}

.pg-piece-burst.is-active {
  animation: pgSlotBurst 0.85s ease-out forwards;
}

@keyframes pgSlotBurst {
  0% { opacity: 0.9; transform: translate(-50%, -50%) scale(0.3); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.2); }
}

.pg-scene.is-complete .pg-slot {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.pg-scene.is-brush-ready .pg-slot {
  opacity: 0;
}

.pg-complete-glow {
  position: absolute;
  inset: -8%;
  border-radius: 8px;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(126, 200, 227, 0.35) 0%, transparent 68%);
  animation: pgCompletePulse 2.4s ease-in-out infinite;
}

.pg-complete-glow.is-active {
  animation: pgCompleteReveal 1.4s ease-out forwards, pgCompletePulse 2.4s ease-in-out 1.4s infinite;
}

@keyframes pgCompleteReveal {
  0% { opacity: 0; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes pgCompletePulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.85; }
}

/* Pinceau d'archéologue — révélation du ponéglyphe rouge */
.pg-brush-wrap {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: auto;
  touch-action: none;
  cursor: none;
}

.pg-brush-wrap.is-ready {
  animation: pgBrushZoneIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes pgBrushZoneIn {
  0% { opacity: 0; filter: blur(6px); }
  100% { opacity: 1; filter: none; }
}

.pg-brush-text,
.pg-brush-display {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.pg-brush-text {
  opacity: 0;
  pointer-events: none;
}

.pg-brush-display {
  z-index: 4;
  pointer-events: none;
  background: transparent;
}

.pg-scene.is-brush-active {
  cursor: none;
}

.pg-brush-card {
  border-color: rgba(239, 68, 68, 0.28);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.06), rgba(16, 22, 20, 0.92));
}

.pg-brush-card.is-unlocked {
  border-color: rgba(254, 228, 64, 0.35);
  box-shadow: 0 0 32px rgba(239, 68, 68, 0.12);
}

.pg-brush-icon { font-size: 2rem; line-height: 1; }

.pg-brush-secret {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.28);
  font-size: 0.88rem;
  line-height: 1.6;
  color: #fecaca;
}

.pg-brush-secret strong { color: #fca5a5; }


.pg-scan-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 62% 42%, rgba(126, 200, 227, 0.55), transparent 55%);
  pointer-events: none;
  animation: pgScanFlash 0.9s ease-out forwards;
}

@keyframes pgScanFlash {
  from { opacity: 0.85; }
  to { opacity: 0; }
}

/* count style défini dans .pg-cinematic-copy */

/* Cartes & formulaires */
.pg-card {
  position: relative;
  background: rgba(16, 22, 20, 0.92);
  border: 1px solid rgba(126, 200, 227, 0.14);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.pg-card-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pg-t);
}

.pg-card-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: 1.55rem;
  letter-spacing: 0.03em;
}

.pg-card-desc {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(238, 242, 240, 0.72);
  line-height: 1.5;
}

.pg-card-head { margin-bottom: 0.85rem; }
.pg-card-head--row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.pg-tea-icon { font-size: 2rem; line-height: 1; }

.pg-guest-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: center;
}

.pg-guest-text { margin: 0; max-width: 28rem; }

.pg-nfc-panel {
  align-items: center;
  background: rgba(74, 159, 212, 0.06);
  border: 1px dashed rgba(126, 200, 227, 0.28);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  padding: 1.1rem 1rem;
  text-align: center;
}

.pg-nfc-icon {
  font-size: 2rem;
  line-height: 1;
  opacity: 0.9;
}

.pg-nfc-status {
  color: rgba(238, 242, 240, 0.82);
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0;
  max-width: 28rem;
}

.pg-nfc-btn { min-width: 200px; }

.pg-fragments-head {
  align-items: baseline;
  border-top: 1px solid rgba(126, 200, 227, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
}

.pg-fragments-title {
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  margin: 0;
}

.pg-fragments-count {
  color: var(--pg-t);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.pg-msg {
  margin: 0.55rem 0 0;
  font-size: 0.86rem;
  color: var(--pg-t);
}

.pg-msg.is-error { color: #f87171; }

.pg-fragment-legend {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.pg-frag-item {
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  display: flex;
  gap: 0.75rem;
  padding: 0.6rem 0.7rem;
}

.pg-frag-item.is-owned {
  background: rgba(74, 159, 212, 0.08);
  border-color: rgba(126, 200, 227, 0.32);
}

.pg-leg-thumb-slot {
  flex-shrink: 0;
  height: 45px;
  position: relative;
  width: 64px;
}

.pg-leg-thumb-slot--locked {
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(126, 200, 227, 0.18);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  opacity: 0.55;
}

.pg-leg-num {
  color: rgba(238, 242, 240, 0.35);
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.pg-leg-thumb-slot--img {
  align-items: center;
  background: #e4eae7;
  border: 1px solid rgba(126, 200, 227, 0.22);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.pg-leg-thumb-slot--img .pg-piece-img {
  max-height: 100%;
  max-width: 100%;
  mix-blend-mode: darken;
  object-fit: contain;
}

.pg-leg-thumb-slot--clone {
  overflow: hidden;
}

.pg-leg-thumb-slot--clone .pg-leg-zone {
  inset: 0;
  position: absolute;
}

.pg-leg-thumb-slot--clone .pg-leg-slot-clone {
  opacity: 1 !important;
  pointer-events: none;
}

.pg-fragment-legend .pg-leg-meta {
  flex: 1;
  min-width: 0;
}

.pg-leg-title {
  display: block;
  font-size: 0.88rem;
  line-height: 1.35;
}

.pg-leg-status {
  flex-shrink: 0;
  font-size: 0.9rem;
  opacity: 0.45;
}

.pg-leg-status.is-owned {
  color: var(--pg-t);
  opacity: 1;
}

.pg-alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(254, 228, 64, 0.08);
  border: 1px solid rgba(254, 228, 64, 0.25);
  font-size: 0.86rem;
  margin-bottom: 1rem;
}

.pg-alert a { color: var(--pg-t); }

.pg-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.pg-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  opacity: 0.45;
  font-size: 0.72rem;
}

.pg-step.is-active,
.pg-step.is-done { opacity: 1; }

.pg-step.is-active {
  background: rgba(74, 159, 212, 0.12);
  box-shadow: 0 0 0 1px rgba(126, 200, 227, 0.25);
}

.pg-step.is-done .pg-step-icon { filter: none; }

.pg-step-line {
  width: 28px;
  height: 2px;
  background: rgba(126, 200, 227, 0.2);
}

.pg-tea-bar-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.pg-tea-bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.pg-tea-bar::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--pg-pct, 0%);
  background: linear-gradient(90deg, var(--pg-glow), var(--pg-t));
  border-radius: inherit;
  transition: width 0.5s ease;
}

.pg-tea-label { font-size: 0.82rem; color: var(--pg-t); white-space: nowrap; }

.pg-reading-timer {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  font-size: 0.85rem;
}

.pg-reading-clock {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.72rem;
  color: var(--pg-y);
}

.pg-translation p {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(238, 242, 240, 0.85);
}

.pg-translation p.is-new {
  color: var(--pg-t);
  animation: pgFadeIn 0.6s ease;
}

@keyframes pgFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.pg-reward-card {
  text-align: center;
  border-color: rgba(254, 228, 64, 0.3);
  background: linear-gradient(180deg, rgba(254, 228, 64, 0.08), rgba(16, 22, 20, 0.92));
}

.pg-reward-icon { font-size: 2.2rem; display: block; margin-bottom: 0.35rem; }

.pg-cta-band {
  text-align: center;
  padding: 1rem 0 0.5rem;
}

.pg-cta-text {
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
  color: rgba(238, 242, 240, 0.65);
}

.pg-cta-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.pg-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.pg-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.pg-status-card {
  text-align: center;
  padding: 1.5rem;
  color: rgba(238, 242, 240, 0.7);
}

.hidden { display: none !important; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Modal connexion rapide */
.pg-login-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.pg-login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.pg-login-panel {
  position: relative;
  width: min(100%, 380px);
  background: #121816;
  border: 1px solid rgba(126, 200, 227, 0.22);
  border-radius: 14px;
  padding: 1.35rem 1.25rem 1.15rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.pg-login-close {
  position: absolute;
  top: 0.5rem;
  right: 0.65rem;
  border: 0;
  background: transparent;
  color: rgba(238, 242, 240, 0.6);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.pg-login-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: 1.65rem;
}

.pg-login-lead {
  margin: 0 0 0.85rem;
  font-size: 0.86rem;
  color: rgba(238, 242, 240, 0.72);
}

.pg-login-code {
  margin: 0 0 0.75rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: rgba(74, 159, 212, 0.1);
  font-family: monospace;
  font-size: 0.82rem;
  color: var(--pg-t);
}

.pg-login-form label {
  display: block;
  margin: 0.55rem 0 0.25rem;
  font-size: 0.78rem;
  color: rgba(238, 242, 240, 0.65);
}

.pg-login-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(126, 200, 227, 0.2);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font: inherit;
}

.pg-login-error {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  color: #f87171;
}

.pg-login-foot {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.82rem;
}

.pg-toast {
  position: fixed;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 9100;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: rgba(18, 24, 22, 0.96);
  border: 1px solid rgba(126, 200, 227, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  font-size: 0.88rem;
  color: var(--pg-t);
  max-width: min(92vw, 420px);
  text-align: center;
  animation: pgToastIn 0.35s ease;
}

@keyframes pgToastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Intro lianes canvas ─────────────────────────────────────────── */
.pg-vine-gate {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  background: #030705;
  overflow: hidden;
}

.pg-vine-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.pg-vine-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 20%, rgba(3, 7, 5, 0.55) 100%);
  transition: opacity 1.2s ease;
}

.pg-vine-gate.is-parting .pg-vine-shade {
  opacity: 0;
}

.pg-vine-gate.is-done {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.pg-vine-title {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 1rem 1.25rem;
  opacity: 0;
  transform: translateY(18px) scale(0.94);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  text-shadow: 0 6px 32px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}

.pg-vine-gate.is-holding .pg-vine-title {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.pg-vine-gate.is-parting .pg-vine-title {
  opacity: 0;
  transform: translateY(-20px) scale(1.06);
  transition-duration: 0.65s;
}

.pg-vine-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #e8a0c8;
}

.pg-vine-name {
  margin: 0;
  font-family: var(--font-display, "Bebas Neue", sans-serif);
  font-size: clamp(3.2rem, 14vw, 5.5rem);
  letter-spacing: 0.06em;
  line-height: 0.92;
  color: #f7faf8;
  text-shadow:
    0 0 32px rgba(232, 160, 200, 0.5),
    0 0 60px rgba(61, 139, 110, 0.4);
}

.pg-vine-sub {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  color: rgba(238, 242, 240, 0.82);
  letter-spacing: 0.03em;
}

.pg-vine-skip {
  position: absolute;
  z-index: 4;
  bottom: max(1.35rem, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  min-height: 44px;
  min-width: 7.5rem;
  border: 1px solid rgba(232, 160, 200, 0.45);
  background: rgba(5, 12, 9, 0.78);
  color: #f7faf8;
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 24px rgba(232, 160, 200, 0.2);
}

.pg-vine-skip:hover,
.pg-vine-skip:focus-visible {
  border-color: #e8a0c8;
  box-shadow: 0 0 32px rgba(232, 160, 200, 0.4);
  outline: none;
}

.pg-vine-gate.is-done .pg-vine-skip { display: none; }

@media (max-width: 640px) {
  .pg-puzzle-zone {
    left: 44%;
    top: 21%;
    width: 44%;
    height: 52%;
  }

  .pg-nfc-btn { width: 100%; }

  .pg-vine-name { font-size: clamp(2.4rem, 14vw, 3.4rem); }
  .pg-vine-skip { bottom: max(1rem, env(safe-area-inset-bottom)); }
}

@media (max-width: 640px) {
  .pg-cinematic-copy { padding-bottom: max(1.75rem, env(safe-area-inset-bottom)); }
  .pg-edge-vine { opacity: 0.35; width: min(22vw, 90px); }
  .pg-hero-title { font-size: clamp(2.4rem, 12vw, 3.2rem); }
  .pg-puzzle-zone {
    left: 44%;
    top: 21%;
    width: 44%;
    height: 52%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pg-vine-gate { display: none !important; }
  .pg-scene-bg { animation: none !important; transform: none !important; }
  .page-poneglyph.pg-vine-locked {
    overflow: auto;
    height: auto;
  }
}
