/* AUREA Portal — /grow-burn (Grow & Burn entrance). Page-specific
   styles only; shell/cards/buttons come from styles.css / rewards.css /
   ai-local.css. Numbers come from ai-growth.json (the same real ledger
   as /ai-training); copy lives in grow-burn.js (page-local dict) plus
   reused shared atk.* keys for the hero and stage names. */

.pg-kicker {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  border: 1px solid rgba(255,215,0,.55);
  background: linear-gradient(90deg, rgba(255,215,0,.16), rgba(179,136,255,.14));
  color: #FFD700; font-weight: 800; font-size: .72rem;
  letter-spacing: .14em; margin-bottom: 14px;
}

.gb-stage-card {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: center;
  padding: 18px; border-radius: 18px; margin-top: 18px;
  border: 1px solid rgba(255,215,0,.45);
  background: linear-gradient(160deg, rgba(255,215,0,.07), rgba(10,15,30,.55));
  box-shadow: 0 0 24px rgba(255,215,0,.1);
}
@media (max-width: 700px) { .gb-stage-card { grid-template-columns: 1fr; } }
.gb-stage-media { position: relative; }
.gb-stage-media img { width: 100%; height: auto; border-radius: 12px; display: block; }
.gb-stage-badge {
  position: absolute; left: 12px; bottom: 12px; padding: 5px 12px; border-radius: 999px;
  background: rgba(10,15,30,.82); border: 1px solid rgba(255,215,0,.6);
  color: #FFE97A; font-weight: 800; font-size: .85rem;
}
.gb-now-lab { margin: 0; font-size: .8rem; letter-spacing: .12em; color: var(--muted, #A7ACC2); text-transform: uppercase; }
.gb-stage-name { margin: 4px 0 10px; font-size: 1.7rem; color: #FFE97A; }
.gb-next-line { margin: 0 0 10px; color: var(--muted, #A7ACC2); line-height: 1.6; }
.gb-next-line strong { color: var(--text, #EDEFF7); }
.gb-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.gb-bar-fill { height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, #FFD700, #B388FF); transition: width .5s ease; }

.gb-stats, .gb-burn-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
.gb-burn-cards { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .gb-stats { grid-template-columns: repeat(2, 1fr); } .gb-burn-cards { grid-template-columns: 1fr; } }
.gb-stat {
  padding: 16px; border-radius: 16px; text-align: center;
  border: 1px solid #39415F; background: rgba(255,255,255,.03);
}
.gb-stat-num { margin: 0; font-size: 1.55rem; font-weight: 800; color: #FFE97A; }
.gb-stat-lab { margin: 6px 0 0; font-size: .82rem; color: var(--muted, #A7ACC2); }

.gb-stage-rail { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.gb-stage-chip {
  padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700;
  border: 1px solid #39415F; color: var(--muted, #A7ACC2); background: rgba(255,255,255,.03);
}
.gb-stage-chip.on {
  border: 2px solid #FFD700; color: #FFE97A; background: rgba(255,215,0,.14);
  box-shadow: 0 0 14px rgba(255,215,0,.5);
}
.gb-now-badge {
  display: inline-block; margin-left: 7px; padding: 1px 7px; border-radius: 999px;
  font-size: .68rem; font-weight: 800; letter-spacing: .06em; vertical-align: 1px;
  color: #231A00; background: linear-gradient(120deg, #FFD700, #F5C542);
  box-shadow: 0 0 8px rgba(255,215,0,.6);
}

.gb-table-wrap { overflow-x: auto; margin-top: 16px; }
.gb-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.gb-table th, .gb-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #39415F; }
.gb-table th { color: #FFE97A; font-size: .88rem; }
.gb-table td { color: var(--muted, #A7ACC2); }
.gb-table td:first-child { color: var(--text, #EDEFF7); font-weight: 700; }
.gb-table .gb-total td { border-top: 2px solid rgba(255,215,0,.55); color: #FFE97A; font-weight: 800; }
.gb-tlab { display: none; }

/* Charity-style hero: one big honest total + next-stage progress. */
.gb-hero-card {
  padding: 26px 22px; border-radius: 18px; text-align: center;
  border: 1px solid rgba(255,215,0,.55);
  background: linear-gradient(165deg, rgba(255,215,0,.1), rgba(179,136,255,.07) 55%, rgba(10,15,30,.55));
  box-shadow: 0 0 30px rgba(255,215,0,.13);
}
.gb-hero-lab { margin: 0; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted, #A7ACC2); font-weight: 700; }
.gb-hero-num { margin: 8px 0 2px; font-size: 2.9rem; line-height: 1.1; font-weight: 800; color: #FFE97A; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .gb-hero-num { font-size: 2.1rem; } }
.gb-hero-done { margin: 0 0 18px; color: var(--muted, #A7ACC2); font-size: .95rem; }
.gb-hero-mile-lab { margin: 0 0 8px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted, #A7ACC2); }
.gb-bar-lg { height: 14px; max-width: 640px; margin: 0 auto; }
.gb-hero-card .gb-next-line { margin-top: 10px; }

/* History chart + additions feed. */
.gb-chart-card {
  padding: 18px; border-radius: 18px; margin-top: 16px;
  border: 1px solid #39415F; background: rgba(255,255,255,.03);
}
.gb-chart svg { width: 100%; height: auto; display: block; }
.gb-chart-legend { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 10px; font-size: .85rem; color: var(--muted, #A7ACC2); }
.gb-leg { display: inline-flex; align-items: center; gap: 8px; }
.gb-leg-bar { width: 14px; height: 10px; border-radius: 2px; background: linear-gradient(180deg, #FFE97A, #FFB300); display: inline-block; }
.gb-leg-line { width: 18px; height: 0; border-top: 3px solid #B388FF; display: inline-block; }
.gb-feed-title { margin: 22px 0 10px; font-size: 1.15rem; color: var(--text, #EDEFF7); }
.gb-feed { display: flex; flex-direction: column; gap: 10px; }
.gb-feed-row {
  display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap;
  padding: 12px 14px; border-radius: 14px;
  border: 1px solid #39415F; background: rgba(255,255,255,.03);
}
.gb-feed-date { font-weight: 800; color: var(--text, #EDEFF7); font-variant-numeric: tabular-nums; }
.gb-feed-chip {
  padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 800;
  border: 1px solid rgba(179,136,255,.6); color: #D6BCFA; background: rgba(179,136,255,.1);
}
.gb-feed-chip.user { border-color: rgba(255,215,0,.65); color: #FFE97A; background: rgba(255,215,0,.1); }
.gb-feed-meta { color: var(--muted, #A7ACC2); font-size: .92rem; font-variant-numeric: tabular-nums; }
.gb-feed-aur { margin-left: auto; font-weight: 800; color: #FFE97A; font-variant-numeric: tabular-nums; }

/* How-it-works steps. */
.gb-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
@media (max-width: 900px) { .gb-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gb-steps { grid-template-columns: 1fr; } }
.gb-step {
  padding: 16px; border-radius: 16px;
  border: 1px solid rgba(255,215,0,.35); background: rgba(255,255,255,.03);
}
.gb-step h3 { margin: 0 0 8px; font-size: 1rem; color: #FFE97A; }
.gb-step p { margin: 0; color: var(--muted, #A7ACC2); line-height: 1.6; font-size: .92rem; }
#gbHow .ail-connect-row { margin-top: 16px; }
/* Wide tables stack vertically on phones (workspace rule, 2026-12-03). */
@media (max-width: 700px) {
  .gb-table { min-width: 0; }
  .gb-table thead { display: none; }
  .gb-table tr { display: block; padding: 10px 0; border-bottom: 1px solid #39415F; }
  .gb-table td { display: block; border-bottom: none; padding: 3px 12px; }
  .gb-tlab { display: inline; font-weight: 700; color: #FFE97A; margin-right: 8px; }
}

/* Official AUR coin logo (green-dragon gold medallion) beside every
   AUR figure on the page — hero total, burn cards, feed rows, ticker. */
.gb-coin { border-radius: 50%; flex: none; }
.gb-coin-hero { width: 46px; height: 46px; }
@media (max-width: 700px) { .gb-coin-hero { width: 34px; height: 34px; } }
.gb-coin-sm { width: 17px; height: 17px; vertical-align: -3px; margin-right: 6px; }
.gb-hero-num { display: flex; align-items: center; justify-content: center; gap: 14px; }
.gb-num-coin { display: flex; align-items: center; justify-content: center; gap: 9px; }
.gb-num-coin .gb-coin { width: 27px; height: 27px; }
.gb-feed-aur { display: inline-flex; align-items: center; gap: 7px; }
.gb-feed-aur .gb-coin { width: 18px; height: 18px; }

/* Spot images on the how-it-works step cards and the CTA card. */
.gb-step-img {
  width: 54px; height: 54px; object-fit: cover; display: block; margin-bottom: 10px;
  border-radius: 12px; border: 1px solid rgba(255,215,0,.35);
}
.gb-step-coin { object-fit: contain; border: none; border-radius: 50%; }
.gb-cta-img {
  width: 110px; height: 110px; object-fit: cover; display: block; margin: 0 auto 14px;
  border-radius: 16px; border: 1px solid rgba(255,215,0,.45);
}

/* Breaking-news burn ticker: a full-width bar under the hero carousel.
   Items are built by grow-burn.js from burn-history.json only (real
   accepted batches + the baseline block + the live totals), worded as
   set-aside / reserve — never as an executed burn. The track holds two
   identical groups and slides right-to-left; hover or tap pauses it. */
.gb-ticker-sec { padding-top: 18px; padding-bottom: 0; }
.gb-ticker {
  display: flex; align-items: stretch; overflow: hidden; border-radius: 12px;
  border: 1px solid rgba(255,215,0,.55); cursor: pointer;
  background: linear-gradient(90deg, rgba(255,215,0,.10), rgba(10,15,30,.65) 32%);
  box-shadow: 0 0 18px rgba(255,215,0,.08);
}
.gb-ticker-tag {
  flex: none; display: flex; align-items: center; padding: 8px 14px;
  background: linear-gradient(180deg, #1B2340, #0A0F1E); color: #FFD700; border-right: 1px solid rgba(255,215,0,.55);
  font-weight: 800; font-size: .82rem; letter-spacing: .12em; white-space: nowrap;
}
.gb-ticker-view {
  flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.gb-ticker-track { display: inline-flex; white-space: nowrap; will-change: transform; animation: gbTickMove 30s linear infinite; }
.gb-ticker:hover .gb-ticker-track,
.gb-ticker.gb-paused .gb-ticker-track { animation-play-state: paused; }
.gb-tick-group { display: inline-flex; align-items: center; }
.gb-tick-item {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 4px;
  color: var(--text, #EDEFF7); font-size: .92rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.gb-tick-item .gb-coin { width: 17px; height: 17px; }
.gb-tick-sep { color: #FFD700; padding: 0 10px; font-size: .78rem; }
.gb-tick-date { color: var(--muted, #A7ACC2); font-weight: 700; }
.gb-tick-aur { color: #FFE97A; font-weight: 800; }
@keyframes gbTickMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .gb-ticker-track { animation: none; }
  .gb-ticker-view { overflow-x: auto; }
  .gb-stage-media.gb-evolve img { animation: none; }
  .gb-confetti { display: none; }
}

/* ---- Evolution celebration: added by grow-burn.js ONLY when the stage
   is higher than the highest stage this visitor has seen here before
   (a real stage-up since their last visit). Normal visits show none of
   this. ---- */
.gb-stage-media.gb-evolve img { animation: gbEvolve 1.9s ease; }
@keyframes gbEvolve {
  0% { transform: scale(1); filter: brightness(1); }
  30% { transform: scale(1.045); filter: brightness(2.05) saturate(1.45); }
  62% { transform: scale(1.02); filter: brightness(1.35); }
  100% { transform: scale(1); filter: brightness(1); }
}
.gb-stage-media.gb-evolve .gb-stage-badge {
  border-color: #FFD700; color: #fff3b0;
  box-shadow: 0 0 18px rgba(255,215,0,.8);
}
.gb-confetti {
  position: absolute; left: 50%; top: 42%; z-index: 3; pointer-events: none;
  width: 8px; height: 12px; border-radius: 2px; background: #FFD700;
  animation: gbConfettiFly 1.9s ease-out forwards;
}
.gb-confetti.gc0 { --dx: -150px; --dy: -120px; --rot: 300deg; background: #FFD700; }
.gb-confetti.gc1 { --dx: 130px;  --dy: -140px; --rot: -260deg; background: #B388FF; }
.gb-confetti.gc2 { --dx: -90px;  --dy: -170px; --rot: 420deg; background: #B388FF; }
.gb-confetti.gc3 { --dx: 170px;  --dy: -80px;  --rot: -340deg; background: #FFE97A; }
.gb-confetti.gc4 { --dx: -180px; --dy: -40px;  --rot: 240deg; background: #B388FF; }
.gb-confetti.gc5 { --dx: 60px;   --dy: -180px; --rot: -420deg; background: #FFD700; }
.gb-confetti.gc6 { --dx: -40px;  --dy: -150px; --rot: 360deg; background: #fff3b0; }
@keyframes gbConfettiFly {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; }
}
