/* Pack of Anything v3 — Native Mobile App-Shell + Museum Gold Collector UI */
.poa {
  --gold: #d8b35a;
  --gold-hi: #f6e0a0;
  --gold-lo: #8d6b23;
  --glow: #e9dec4;
  --glow2: #ffffff;
  --tear: 0%;
  position: relative;
  width: 100%;
  max-width: 460px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: env(safe-area-inset-top, 8px) 14px calc(env(safe-area-inset-bottom, 8px) + 108px);
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 50% 34%, rgba(216, 179, 90, 0.14), transparent 56%),
    linear-gradient(rgba(255, 240, 200, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 240, 200, 0.025) 1px, transparent 1px),
    #09080e;
  background-size: 100% 100%, 28px 28px, 28px 28px, 100% 100%;
  color: #f5f0e5;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

@media (min-width: 640px) {
  .poa {
    margin: 14px auto;
    min-height: min(860px, calc(100dvh - 28px));
    border-radius: 28px;
    border: 1px solid rgba(216, 179, 90, 0.28);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.78), 0 0 60px rgba(216, 179, 90, 0.09);
  }
}

/* Rarity Glow Tiers */
.poa[data-tier="0"], .poa-pack-wrap[data-tier="0"] { --glow: #d8d1c2; --glow2: #ffffff; }
.poa[data-tier="1"], .poa-pack-wrap[data-tier="1"] { --glow: #58a6ff; --glow2: #d8ebff; }
.poa[data-tier="2"], .poa-pack-wrap[data-tier="2"] { --glow: #b473ff; --glow2: #f1ddff; }
.poa[data-tier="3"], .poa-pack-wrap[data-tier="3"] { --glow: #ffb938; --glow2: #fff2b8; }
.poa[data-tier="4"], .poa-pack-wrap[data-tier="4"] { --glow: #ff7de8; --glow2: #fff6c2; }

/* Top Title & Level Bar */
.poa-top {
  text-align: center;
  padding: 10px 4px 4px;
  flex-shrink: 0;
  z-index: 5;
}

.poa[data-phase="card"] .poa-top {
  display: none;
}

.poa-logo {
  margin: 0;
  font-family: var(--font-display, serif);
  font-size: clamp(1.42rem, 6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.15;
  color: #f6f1e6;
}

.poa-logo span {
  background: linear-gradient(135deg, #fff1c2 0%, #d8b35a 55%, #b58932 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.poa-sub {
  margin: 3px 0 10px;
  font-size: 0.78rem;
  color: #a69c88;
}

.poa-level-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(20, 17, 30, 0.85);
  border: 1px solid rgba(216, 179, 90, 0.22);
}

.poa-lv-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gold-hi);
}

.poa-info-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(216, 179, 90, 0.55);
  background: transparent;
  color: var(--gold-hi);
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 0.72rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.poa-xp-cells {
  display: flex;
  gap: 3px;
}

.poa-xp-cells span {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(216, 179, 90, 0.18);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.poa-xp-cells span.is-filled {
  background: linear-gradient(180deg, #ffeaa8, #d4a441);
  border-color: #fff3c7;
  box-shadow: 0 0 8px rgba(246, 224, 160, 0.55);
}

.poa-gift-btn {
  position: relative;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0 2px;
  line-height: 1;
}

.poa-dot-badge {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 999px;
  background: #e5484d;
  color: #fff;
  font-style: normal;
  font-family: var(--font-mono, monospace);
  font-size: 0.6rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.poa-dot-badge[hidden] { display: none; }

/* Views */
.poa-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.poa-view[hidden] { display: none; }

.poa-view-home {
  justify-content: center;
  align-items: center;
  position: relative;
}

.poa-view-scroll {
  overflow-y: auto;
  padding: 4px 2px 16px;
  gap: 12px;
}

/* Stage A: Sealed Pack + Real Curling Tear Strip */
.poa-pack-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.poa-pack-stage[hidden] { display: none; }

.poa-name-bar {
  width: min(300px, 88%);
  display: flex;
  gap: 6px;
  z-index: 8;
}

.poa-name-bar[hidden] { display: none; }

.poa-name-bar input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(244, 220, 149, 0.45);
  background: rgba(14, 11, 22, 0.92);
  color: #fff8e8;
  font-size: 0.88rem;
  user-select: text;
  -webkit-user-select: text;
}

.poa-mini-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(244, 220, 149, 0.4);
  background: rgba(24, 19, 34, 0.94);
  color: var(--gold-hi);
  font-size: 1.15rem;
  cursor: pointer;
}

.poa-name-err {
  margin: -8px 0 0;
  font-size: 0.76rem;
  color: #ff8e8e;
}

.poa-pack-wrap {
  position: relative;
  width: min(268px, 68vw);
  aspect-ratio: 104 / 152;
  animation: poaPackFloat 4.6s ease-in-out infinite;
  touch-action: none;
  transform: rotate(-1.5deg);
  transition: transform 0.25s ease;
}

.poa-pack-wrap.is-tearing {
  animation: none;
  transform: rotate(0deg) scale(1.02);
}

.poa-pack-wrap.is-ripped {
  animation: poaPackDrop 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes poaPackFloat {
  0%, 100% { transform: translateY(0) rotate(-1.6deg); }
  50% { transform: translateY(-8px) rotate(-0.4deg); }
}

@keyframes poaPackDrop {
  0% { transform: scale(1.03); opacity: 1; }
  40% { transform: scale(1.06) translateY(-4px); opacity: 1; }
  100% { transform: scale(0.92) translateY(70px); opacity: 0; }
}

/* Volumetric Light Rays Shooting Out of the Torn Seal */
.poa-tear-rays {
  position: absolute;
  left: -14px;
  top: -92px;
  width: calc(var(--tear, 0%) + 28px);
  height: 146px;
  pointer-events: none;
  background:
    repeating-conic-gradient(from -40deg at 50% 100%, var(--glow) 0deg 7deg, transparent 7deg 19deg),
    radial-gradient(ellipse 70% 85% at 50% 100%, var(--glow) 0%, transparent 78%);
  opacity: calc(var(--tear-n, 0) * 0.95);
  filter: blur(4px);
  mask-image: radial-gradient(ellipse 76% 92% at 50% 100%, #000 32%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 76% 92% at 50% 100%, #000 32%, transparent 82%);
  z-index: 1;
}

.poa-tear-flash {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow2) 0%, var(--glow) 34%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  z-index: 9;
}

.poa-pack-wrap.is-ripped .poa-tear-flash {
  animation: poaFlash 0.45s ease-out forwards;
}

@keyframes poaFlash {
  0% { opacity: 0; transform: scale(0.4); }
  35% { opacity: 0.95; transform: scale(1.35); }
  100% { opacity: 0; transform: scale(1.7); }
}

/* Top Serrated Seal Zone + Physical Curling Foil Strip */
.poa-pack-top-zone {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  z-index: 6;
  cursor: grab;
  touch-action: none;
}

.poa-pack-top-static {
  position: absolute;
  top: 0;
  left: var(--tear, 0%);
  right: 0;
  height: 30px;
  background:
    repeating-linear-gradient(90deg, #2a2338 0px, #2a2338 3px, #120f1a 3px, #120f1a 6px);
  border-bottom: 2px dashed rgba(246, 224, 160, 0.8);
  clip-path: polygon(
    0% 18%, 4% 0%, 8% 18%, 12% 0%, 16% 18%, 20% 0%, 24% 18%, 28% 0%, 32% 18%, 36% 0%,
    40% 18%, 44% 0%, 48% 18%, 52% 0%, 56% 18%, 60% 0%, 64% 18%, 68% 0%, 72% 18%, 76% 0%,
    80% 18%, 84% 0%, 88% 18%, 92% 0%, 96% 18%, 100% 0%, 100% 100%, 0% 100%
  );
  transition: left 0.16s ease;
}

.poa-pack-wrap.is-tearing .poa-pack-top-static {
  transition: none;
}

/* Curled Foil Roll that grows & curls upward as --tear advances */
.poa-pack-curl {
  position: absolute;
  top: -2px;
  left: var(--tear, 0%);
  width: calc(var(--tear-n, 0) * 74px + 1px);
  height: calc(var(--tear-n, 0) * 62px + 1px);
  transform-origin: bottom left;
  transform: translate(-18%, -68%) rotate(calc(var(--tear-n, 0) * -28deg));
  opacity: calc(min(1, var(--tear-n, 0) * 5));
  pointer-events: none;
  z-index: 7;
}

.poa-curl-foil {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50% 50% 45% 8px;
  background:
    repeating-conic-gradient(from 0deg at 60% 45%, #3c3152 0deg 6deg, #161124 6deg 12deg, #d8b35a 12deg 15deg);
  border: 1.5px solid rgba(246, 224, 160, 0.72);
  box-shadow: -6px 8px 18px rgba(0, 0, 0, 0.65), inset 0 0 12px rgba(255, 240, 194, 0.35);
}

.poa-pack-wrap.is-ripped .poa-pack-curl {
  transition: transform 0.36s ease-out, opacity 0.36s ease-out;
  transform: translate(90px, -130px) rotate(35deg) scale(0.7);
  opacity: 0;
}

/* Pulsing Golden Drag Ring on Top-Left Tear Notch */
.poa-tear-handle {
  position: absolute;
  top: 18px;
  left: calc(var(--tear, 0%) - 10px);
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 8;
}

.poa-tear-ring {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid #f6e0a0;
  background: rgba(15, 11, 24, 0.85);
  box-shadow: 0 0 14px rgba(246, 224, 160, 0.85);
  animation: poaBeacon 1.8s ease-in-out infinite;
}

.poa-tear-trail {
  width: 24px;
  height: 2px;
  margin-left: 3px;
  background: linear-gradient(90deg, #f6e0a0, transparent);
}

.poa-pack-wrap.is-tearing .poa-tear-trail,
.poa-pack-wrap.is-ripped .poa-tear-handle {
  opacity: 0;
}

@keyframes poaBeacon {
  0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(246, 224, 160, 0.7); }
  50% { transform: scale(1.16); box-shadow: 0 0 20px rgba(255, 240, 180, 1); }
}

/* Pack Body */
.poa-pack-body {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 4px 4px 10px 10px;
  overflow: hidden;
  background: linear-gradient(155deg, #211a30 0%, #0d0b14 55%, #1d150c 100%);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.72),
    0 0 28px rgba(216, 179, 90, 0.16),
    inset 0 1px 0 rgba(255, 242, 200, 0.25);
  cursor: pointer;
}

.poa-pack-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  transform: scale(1.44);
  display: block;
}

.poa-pack-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(122deg, transparent 22%, rgba(255, 242, 198, 0.16) 44%, rgba(125, 215, 255, 0.12) 50%, transparent 72%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.poa-pack-badge-top {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(10, 8, 16, 0.84);
  border: 1px solid rgba(246, 224, 160, 0.45);
  font-family: var(--font-mono, monospace);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--gold-hi);
}

.poa-pack-overlay {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(9, 8, 14, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(246, 224, 160, 0.28);
}

.poa-pack-label {
  font-family: var(--font-display, serif);
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff6dc;
  letter-spacing: 0.03em;
}

.poa-pack-tiers {
  display: flex;
  gap: 4px;
}

.poa-pack-tiers i {
  font-style: normal;
  font-family: var(--font-mono, monospace);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.t-N { background: #e8e0cf; color: #362e23; }
.t-R { background: #3b7be5; color: #fff; }
.t-SR { background: #8f4be8; color: #fff; }
.t-SSR { background: linear-gradient(135deg, #f3c44d, #b87e16); color: #160f03; }
.t-UR { background: linear-gradient(135deg, #ff7de8, #67d6ff, #ffe066); color: #110b19; }

.poa-pack-crimp-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
  background: repeating-linear-gradient(90deg, #251f33 0px, #251f33 3px, #100d18 3px, #100d18 6px);
  border-top: 1px solid rgba(246, 224, 160, 0.25);
}

.poa-pack-count {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #141020;
  border: 1px solid rgba(246, 224, 160, 0.55);
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-hi);
  z-index: 4;
}

.poa-tear-hint {
  margin: 0;
  font-size: 0.75rem;
  color: #a69c88;
  text-align: center;
}

/* Stage B: Full-Screen Hero Collector Card (Museum Parchment + Holographic Rarity) */
.poa-card-stage {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  padding-top: 4px;
}

.poa-card-stage[hidden] { display: none; }

.poa-reveal-rays {
  position: absolute;
  inset: -40px;
  background: repeating-conic-gradient(from 0deg, var(--glow) 0deg 6deg, transparent 6deg 24deg);
  opacity: 0;
  pointer-events: none;
  mask-image: radial-gradient(circle, #000 18%, transparent 66%);
  -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 66%);
}

.poa[data-tier="2"] .poa-reveal-rays { opacity: 0.26; animation: poaSpin 36s linear infinite; }
.poa[data-tier="3"] .poa-reveal-rays { opacity: 0.38; animation: poaSpin 28s linear infinite; }
.poa[data-tier="4"] .poa-reveal-rays { opacity: 0.52; animation: poaSpin 18s linear infinite; }

@keyframes poaSpin {
  to { transform: rotate(360deg); }
}

.poa-hero-wrap {
  width: 100%;
  max-width: 356px;
  z-index: 2;
  touch-action: pan-y;
}

.poa-hero-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  padding: 10px;
  background:
    linear-gradient(rgba(110, 90, 55, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 90, 55, 0.06) 1px, transparent 1px),
    #f3ede0;
  background-size: 10px 10px, 10px 10px, 100% 100%;
  color: #1f1a14;
  border: 2px solid #cfc2a6;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.65);
  transform: translateX(var(--swipe-x, 0px)) rotate(var(--swipe-rot, 0deg));
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
  animation: poaCardRise 0.44s cubic-bezier(0.18, 0.9, 0.26, 1);
}

.poa-hero-card.is-swiping {
  transition: none;
}

.poa-hero-card.is-dismissing {
  opacity: 0;
  transform: translateX(var(--dismiss-x, -360px)) rotate(var(--dismiss-rot, -16deg));
}

@keyframes poaCardRise {
  0% { opacity: 0; transform: translateY(42px) scale(0.92); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Rarity Card Themes */
.poa-hero-card[data-rarity="R"] {
  border-color: #5b9cf5;
  box-shadow: 0 20px 50px rgba(32, 92, 200, 0.35);
}

.poa-hero-card[data-rarity="SR"] {
  background:
    radial-gradient(circle at 50% 0%, rgba(170, 110, 255, 0.22), transparent 60%),
    #1b1429;
  color: #f4ecff;
  border-color: #b473ff;
  box-shadow: 0 22px 56px rgba(154, 86, 255, 0.42);
}

.poa-hero-card[data-rarity="SSR"] {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 200, 82, 0.28), transparent 62%),
    linear-gradient(170deg, #241a0d 0%, #140f08 100%);
  color: #fff5dd;
  border: 2.5px solid #f4c85b;
  box-shadow: 0 0 36px rgba(244, 198, 86, 0.48), 0 24px 54px rgba(0, 0, 0, 0.72);
}

.poa-hero-card[data-rarity="UR"] {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 224, 130, 0.34), transparent 55%),
    linear-gradient(155deg, #1f142c 0%, #120d1a 52%, #24190c 100%);
  color: #fff8e6;
  border: 2.5px solid #fff0b8;
  box-shadow: 0 0 42px rgba(255, 212, 110, 0.62), 0 0 70px rgba(185, 115, 255, 0.38);
}

.poa-hero-art-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10.6;
  border-radius: 13px;
  overflow: hidden;
  border: 1.5px solid rgba(130, 102, 54, 0.45);
  background: #0d0b13;
}

.poa-hero-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.poa-hero-foil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.poa-hero-card[data-rarity="SSR"] .poa-hero-foil {
  opacity: 0.32;
  background: linear-gradient(125deg, transparent 20%, rgba(255, 224, 130, 0.55) 50%, transparent 80%);
  mix-blend-mode: screen;
}

.poa-hero-card[data-rarity="UR"] .poa-hero-foil {
  opacity: 0.48;
  background: linear-gradient(125deg, rgba(255, 215, 110, 0.35), rgba(110, 230, 255, 0.35), rgba(255, 130, 230, 0.35), rgba(255, 232, 140, 0.35));
  mix-blend-mode: color-dodge;
}

.poa-hero-serial {
  position: absolute;
  left: 8px;
  bottom: 7px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(8, 7, 12, 0.78);
  color: #f4dc95;
  font-family: var(--font-mono, monospace);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.poa-hero-resonance {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c92646, #941730);
  color: #fff2d6;
  border: 1px solid rgba(255, 228, 175, 0.6);
  font-size: 0.64rem;
  font-weight: 700;
}

.poa-hero-resonance[hidden] { display: none; }

.poa-hero-fab {
  position: absolute;
  top: 7px;
  right: 7px;
  display: flex;
  gap: 6px;
}

.poa-fab-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 240, 200, 0.45);
  background: rgba(12, 10, 18, 0.8);
  color: #fff4d6;
  font-size: 0.92rem;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.poa-fab-btn[aria-pressed="true"] {
  background: #d93855;
  border-color: #ffd7df;
  color: #fff;
}

/* Hero Card Interior */
.poa-hero-content {
  padding: 9px 6px 4px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.poa-hero-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.poa-r-tag {
  flex-shrink: 0;
  font-family: var(--font-mono, monospace);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
}

.poa-r-N { background: #ded5c2; color: #4c4132; }
.poa-r-R { background: #2f73e8; color: #fff; }
.poa-r-SR { background: #8c48e8; color: #fff; }
.poa-r-SSR { background: linear-gradient(135deg, #f5c852, #b87b12); color: #160e03; }
.poa-r-UR { background: linear-gradient(135deg, #ff7de8, #63d8ff, #ffe066); color: #120c1c; }

.poa-hero-name {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-family: var(--font-display, serif);
  font-size: 1.18rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poa-hero-score {
  font-family: var(--font-mono, monospace);
  font-size: 1.25rem;
  font-weight: 800;
  opacity: 0.85;
  border-bottom: 1.5px dotted currentColor;
  line-height: 1;
}

.poa-hero-meta {
  margin: -3px 0 0;
  font-size: 0.74rem;
  opacity: 0.76;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poa-life-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 6px 0 2px;
  border-top: 1px solid rgba(128, 108, 72, 0.25);
  text-align: center;
}

.poa-life-strip small {
  display: block;
  font-size: 0.64rem;
  opacity: 0.68;
}

.poa-life-strip strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 1px;
}

.poa-life-track {
  position: relative;
  height: 3px;
  border-radius: 999px;
  background: rgba(128, 108, 72, 0.24);
  margin: 0 2px 2px;
}

.poa-life-track span {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--life-pct, 35%);
  background: #8f6b23;
  border-radius: inherit;
}

.poa-hero-card[data-rarity="SR"] .poa-life-track span,
.poa-hero-card[data-rarity="SSR"] .poa-life-track span,
.poa-hero-card[data-rarity="UR"] .poa-life-track span {
  background: #f4dc95;
}

.poa-life-track span::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #8f6b23;
}

.poa-wish-box {
  padding: 6px 9px;
  border-left: 2.5px solid #b58932;
  background: rgba(165, 130, 62, 0.1);
  border-radius: 0 8px 8px 0;
}

.poa-wish-box small {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  color: #9e7422;
}

.poa-hero-card[data-rarity="SR"] .poa-wish-box small,
.poa-hero-card[data-rarity="SSR"] .poa-wish-box small,
.poa-hero-card[data-rarity="UR"] .poa-wish-box small {
  color: #f4dc95;
}

.poa-wish-box p {
  margin: 2px 0 0;
  font-size: 0.78rem;
  line-height: 1.38;
}

/* SVG Hexagon Radar */
.poa-radar-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: -2px 0;
}

.poa-radar-svg {
  width: 100%;
  max-width: 248px;
  height: 142px;
  overflow: visible;
}

/* Talents */
.poa-talents-row small {
  display: block;
  font-size: 0.64rem;
  opacity: 0.66;
  margin-bottom: 4px;
}

.poa-talents {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.poa-talent-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.poa-talent-N { background: linear-gradient(135deg, #8b7e6b, #695e4f); }
.poa-talent-R { background: linear-gradient(135deg, #4b8bf5, #2758b8); }
.poa-talent-SR { background: linear-gradient(135deg, #a15cf0, #692cb5); }
.poa-talent-SSR { background: linear-gradient(135deg, #ebb43c, #a86c0e); color: #191003; }
.poa-talent-UR { background: linear-gradient(135deg, #f57be3, #55c8ff, #f7d659); color: #120c1c; }

.poa-talent-chip i {
  font-style: normal;
  font-family: var(--font-mono, monospace);
  font-size: 0.6rem;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
}

/* Bottom Action Pills under Hero Card */
.poa-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 356px;
  z-index: 3;
}

.poa-next-pill {
  flex: 1;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 240, 195, 0.7);
  background: linear-gradient(135deg, #f1d589 0%, #c89d3e 100%);
  color: #120d04;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(216, 179, 90, 0.35);
}

.poa-export-pill, .poa-share-pill {
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(244, 220, 149, 0.35);
  background: rgba(20, 17, 30, 0.92);
  color: var(--gold-hi);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

/* Floating XP Pop */
.poa-xp-pop {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(18, 14, 30, 0.95);
  border: 1px solid rgba(244, 220, 149, 0.55);
  color: var(--gold-hi);
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  font-weight: 700;
  z-index: 20;
  animation: poaXpFloat 1.4s ease-out forwards;
}

.poa-xp-pop[hidden] { display: none; }

@keyframes poaXpFloat {
  0% { opacity: 0; transform: translate(-50%, 10px); }
  20% { opacity: 1; transform: translate(-50%, 0); }
  80% { opacity: 1; transform: translate(-50%, -10px); }
  100% { opacity: 0; transform: translate(-50%, -22px); }
}

/* Market / Binder / Trophies */
.poa-view-head h2 {
  margin: 0;
  font-family: var(--font-display, serif);
  font-size: 1.3rem;
  color: var(--gold-hi);
}

.poa-view-head p {
  margin: 3px 0 0;
  font-size: 0.78rem;
  color: #a69c88;
}

.poa-reward-banner {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(244, 220, 149, 0.42);
  background: linear-gradient(135deg, rgba(216, 179, 90, 0.18), rgba(22, 17, 34, 0.9));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.poa-reward-banner strong {
  display: block;
  font-size: 0.88rem;
  color: var(--gold-hi);
}

.poa-reward-banner span {
  font-size: 0.74rem;
  color: #cfc5b2;
}

.poa-claim-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #fff0be;
  background: linear-gradient(135deg, #f3d78a, #c89d3e);
  color: #110c04;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.poa-claim-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.poa-market-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.poa-market-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(216, 179, 90, 0.24);
  background: rgba(18, 15, 28, 0.9);
  text-align: left;
  color: #f5f0e5;
  cursor: pointer;
}

.poa-market-card.is-active {
  border-color: var(--gold-hi);
  box-shadow: 0 0 18px rgba(216, 179, 90, 0.24);
}

.poa-market-card:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.poa-market-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  object-fit: cover;
  background: #0d0b14;
}

.poa-market-card strong {
  font-size: 0.84rem;
  color: var(--gold-hi);
}

.poa-market-card small {
  font-size: 0.7rem;
  color: #a69c88;
  line-height: 1.35;
}

.poa-market-tag {
  align-self: flex-start;
  padding: 2px 7px;
  border-radius: 999px;
  font-family: var(--font-mono, monospace);
  font-size: 0.64rem;
  background: rgba(216, 179, 90, 0.16);
  color: var(--gold-hi);
}

/* Dex / Binder */
.poa-dex-seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(20, 17, 30, 0.9);
  border: 1px solid rgba(216, 179, 90, 0.22);
  align-self: flex-start;
}

.poa-dex-seg button {
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #a69c88;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.poa-dex-seg button[aria-pressed="true"] {
  background: var(--gold);
  color: #100c04;
}

.poa-dex-rarities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.poa-dex-rarities button {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0.55;
}

.poa-dex-rarities button[aria-pressed="true"] {
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(246, 224, 160, 0.35);
}

.pill-all { background: #262136; color: #f6e0a0; }
.pill-N { background: #e8e0cf; color: #362e23; }
.pill-R { background: #3375e6; color: #fff; }
.pill-SR { background: #8e4be8; color: #fff; }
.pill-SSR { background: linear-gradient(135deg, #f3c44d, #b87e16); color: #160f03; }
.pill-UR { background: linear-gradient(135deg, #ff7de8, #67d6ff, #ffe066); color: #110b19; }

.poa-dex-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.poa-dex-item {
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid rgba(216, 179, 90, 0.28);
  background: #171322;
  padding: 0;
  text-align: left;
  color: #f5f0e5;
  cursor: pointer;
}

.poa-dex-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.poa-dex-meta {
  padding: 7px 9px 9px;
}

.poa-dex-meta strong {
  display: block;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poa-dex-meta small {
  font-size: 0.68rem;
  color: #a69c88;
}

.poa-dex-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 36px 12px;
  color: #a69c88;
  font-size: 0.86rem;
}

/* Trophies */
.poa-trophy-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.poa-trophy-item {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(216, 179, 90, 0.18);
  background: rgba(18, 15, 28, 0.72);
  opacity: 0.5;
}

.poa-trophy-item.is-unlocked {
  opacity: 1;
  border-color: var(--gold);
  background: rgba(216, 179, 90, 0.12);
}

.poa-trophy-item strong {
  display: block;
  font-size: 0.84rem;
  color: var(--gold-hi);
}

.poa-trophy-item span {
  font-size: 0.74rem;
  color: #b4aa97;
}

/* Floating Glass Bottom Navigation Dock */
.poa-bottom-dock {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 460px;
  padding: 6px 14px calc(env(safe-area-inset-bottom, 6px) + 8px);
  background: linear-gradient(180deg, transparent 0%, rgba(9, 8, 14, 0.92) 28%, #09080e 100%);
  z-index: 30;
}

.poa-tab-pill {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 4px;
  border-radius: 999px;
  background: rgba(25, 21, 38, 0.94);
  border: 1px solid rgba(216, 179, 90, 0.34);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.68);
}

.poa-tab-pill button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #a69c88;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.poa-tab-pill button i {
  font-style: normal;
  font-size: 0.86rem;
}

.poa-tab-pill button[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(216, 179, 90, 0.28), rgba(74, 56, 108, 0.65));
  border: 1px solid rgba(244, 220, 149, 0.55);
  color: var(--gold-hi);
}

.poa-nav-dot {
  position: absolute;
  top: 7px;
  right: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4b53;
}

.poa-nav-dot[hidden] { display: none; }

.poa-foot-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 7px;
  padding: 0 2px;
}

.poa-foot-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.poa-chip-btn {
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(216, 179, 90, 0.25);
  background: rgba(18, 15, 28, 0.85);
  color: #bfb5a2;
  font-size: 0.7rem;
  cursor: pointer;
}

.poa-opened-stat {
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  color: #9e9482;
}

/* Odds Modal */
.poa-modal {
  width: min(92vw, 400px);
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(244, 220, 149, 0.4);
  background: #141020;
  color: #f5f0e5;
}

.poa-modal::backdrop {
  background: rgba(5, 4, 9, 0.75);
  backdrop-filter: blur(6px);
}

.poa-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.poa-modal-head h3 {
  margin: 0;
  font-family: var(--font-display, serif);
  color: var(--gold-hi);
}

.poa-close-x {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(216, 179, 90, 0.35);
  background: transparent;
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
}

.poa-modal-body {
  font-size: 0.82rem;
  color: #cec4b2;
  line-height: 1.55;
}

.poa-modal-body table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono, monospace);
  font-size: 0.76rem;
  margin: 8px 0;
}

.poa-modal-body th, .poa-modal-body td {
  padding: 6px 6px;
  border-bottom: 1px solid rgba(216, 179, 90, 0.16);
  text-align: left;
}

.poa-toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 95;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--gold-hi);
  background: rgba(15, 11, 24, 0.96);
  color: var(--gold-hi);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65);
  max-width: 90vw;
  text-align: center;
}

.poa-toast[hidden] { display: none; }
