/* Phase 1 – layered on top of shared/aa.css (same tokens: --brand gold, --accent teal) */
:root { --glass: rgba(18, 40, 76, .62); --glass-line: rgba(255, 255, 255, .12); --gold-grad: linear-gradient(135deg, #ffd166, #ffb703 45%, #fb8500); }
body.p1 { background:
  radial-gradient(900px 500px at 85% -10%, rgba(255, 183, 3, .18), transparent 60%),
  radial-gradient(700px 500px at -10% 30%, rgba(34, 193, 195, .14), transparent 60%), var(--bg); }
.glass { background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.tiny { font-size: .72rem; }
.big { font-size: 1.05rem; padding: 14px 22px; }
.err { color: var(--bad); min-height: 1.2em; margin: 0; }
.hidden { display: none !important; }

/* nav */
.p1-nav { position: sticky; top: 0; z-index: 20; display: flex; gap: 4px; justify-content: center; padding: 8px; background: rgba(7, 20, 40, .82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.p1-nav a { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 700; font-size: .88rem; }
.p1-nav a.on { color: var(--brand-ink); background: var(--gold-grad); }
.p1-nav a:hover:not(.on) { color: var(--text); background: rgba(255, 255, 255, .06); }
.p1-nav a.out { margin-left: auto; padding: 8px 12px; }
@media (max-width: 520px) { .p1-nav a { padding: 8px 10px; font-size: .78rem; } .p1-nav a span { display: none; } }

/* modal sign-in */
.p1-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(4, 10, 22, .7); backdrop-filter: blur(6px); animation: fadeIn .25s; }
.p1-sheet { width: min(420px, 100%); padding: 22px; animation: rise .35s cubic-bezier(.2, .9, .3, 1.2); }
.p1-sheet label { display: block; font-size: .82rem; color: var(--muted); font-weight: 600; }
.p1-sheet input { width: 100%; margin-top: 4px; }
.brand-mark { width: 56px; height: 56px; margin: 0 auto 8px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; color: var(--brand-ink); background: var(--gold-grad); box-shadow: 0 8px 24px rgba(255, 183, 3, .4); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, .25); margin: 12px 0; }
.seg button { border: 0; border-radius: 9px; padding: 8px; background: none; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.seg button.on { background: var(--surface-2); color: var(--text); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(30px) scale(.96); opacity: 0; } }

/* hero */
.hero { position: relative; overflow: hidden; border-radius: 22px; margin: 16px 0; min-height: 230px; padding: 22px;
  background: linear-gradient(90deg, rgba(7, 20, 40, .92) 0%, rgba(7, 20, 40, .55) 55%, rgba(7, 20, 40, .1) 100%), url(../assets/hub-hero.png) center/cover, linear-gradient(120deg, #1b3d73, #3a2a5e 60%, #f08a24); display: flex; flex-direction: column; justify-content: flex-end; }
.hero h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); margin: 0; }
.hero .who-line { color: var(--brand); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: .78rem; }
.hero p { max-width: 520px; color: #d8e3f5; margin: 6px 0 14px; }

/* the money pipeline: coins → points → market */
.pipeline { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 8px; align-items: stretch; margin: 14px 0; }
.pipe { padding: 14px; position: relative; overflow: hidden; }
.pipe .lbl { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.pipe .val { font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.15; }
.pipe .sub { font-size: .75rem; color: var(--muted); min-height: 1.2em; }
.pipe .ico { position: absolute; right: 10px; top: 8px; font-size: 1.8rem; opacity: .9; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .4)); }
.pipe.coins .val { color: var(--brand); } .pipe.points .val { color: var(--accent); } .pipe.cash .val { color: var(--good); font-size: 1.3rem; }
.pipe .act { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.pipe .act .btn { padding: 6px 12px; font-size: .8rem; }
.arrow { display: grid; place-items: center; color: var(--brand); font-size: 1.4rem; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(4px); opacity: .6; } }
@media (max-width: 720px) { .pipeline { grid-template-columns: 1fr; } .arrow { transform: rotate(90deg); animation: none; } }
.pulse { animation: pulse .45s; } @keyframes pulse { 40% { transform: scale(1.08); filter: brightness(1.4); } }
.fly-coin { position: fixed; z-index: 200; font-size: 1.6rem; pointer-events: none; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); }

/* cards on the hub */
.hub-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 20px; }
@media (min-width: 860px) { .hub-grid { grid-template-columns: 1.25fr 1fr; } }
.tile { padding: 18px; }
.tile h3 { display: flex; align-items: center; gap: 8px; }
.play-cta { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(255, 183, 3, .18), rgba(251, 133, 0, .08)), var(--glass); }
.runs-left { display: flex; gap: 6px; } .runs-left i { width: 14px; height: 14px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--brand); }
.runs-left i.on { background: var(--brand); box-shadow: 0 0 10px var(--brand); }
.bar { height: 10px; border-radius: 6px; background: rgba(0, 0, 0, .3); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: var(--gold-grad); transition: width 1s cubic-bezier(.2, .9, .3, 1); }
.lesson-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.lesson-chips span { font-size: .72rem; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.lesson-chips span.m { background: rgba(46, 204, 113, .18); color: var(--good); font-weight: 700; }

/* Investor Licence card */
.licence { position: relative; aspect-ratio: 1.6; border-radius: 18px; padding: 18px; overflow: hidden; color: #1b1300; perspective: 800px;
  background: url(../assets/licence-card.png) center/cover, linear-gradient(135deg, #fff1c1, #ffd166 40%, #e0a100); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.licence.locked { filter: grayscale(1) brightness(.45); }
.licence .t1 { font-weight: 800; letter-spacing: .12em; font-size: .72rem; text-transform: uppercase; }
.licence .t2 { font-weight: 800; font-size: 1.4rem; line-height: 1.1; margin-top: 2px; }
.licence .nm { position: absolute; left: 18px; bottom: 16px; font-weight: 800; font-size: 1.05rem; }
.licence .no { position: absolute; right: 18px; bottom: 16px; font-weight: 800; font-family: ui-monospace, monospace; }
.licence::after { content: ''; position: absolute; inset: -50%; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%); transform: translateX(-60%); animation: sheen 4s ease-in-out infinite; }
@keyframes sheen { 60%, 100% { transform: translateX(60%); } }
.licence.printing { animation: print 1.6s cubic-bezier(.2, .9, .3, 1); }
@keyframes print { 0% { transform: translateY(40px) rotateX(70deg) scale(.6); opacity: 0; } 60% { transform: translateY(-8px) rotateX(-8deg) scale(1.04); opacity: 1; } }

/* league + podium */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 10px; margin: 18px 0; }
.podium .step { text-align: center; border-radius: 14px 14px 0 0; padding: 12px 8px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); }
.podium .p1s { min-height: 170px; background: linear-gradient(180deg, rgba(255, 209, 102, .35), var(--surface)); border-color: var(--brand); }
.podium .p2s { min-height: 130px; } .podium .p3s { min-height: 105px; }
.podium .medal { font-size: 2rem; } .podium .nm { font-weight: 800; } .podium .sc { color: var(--muted); font-size: .8rem; }
table.p1t { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.p1t th { text-align: left; color: var(--muted); font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; padding: 8px 6px; border-bottom: 1px solid var(--line); }
table.p1t td { padding: 9px 6px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
table.p1t tr.me td { background: rgba(255, 183, 3, .1); }
table.p1t .num { text-align: right; }
.scroll-x { overflow-x: auto; }
.up { color: var(--good); } .down { color: var(--bad); } .flat { color: var(--muted); }
.note-box { border-left: 3px solid var(--brand); background: rgba(255, 183, 3, .08); padding: 10px 12px; border-radius: 0 10px 10px 0; font-size: .85rem; }
.src-badge { display: inline-flex; gap: 6px; align-items: center; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); }
.src-badge.cse { background: rgba(46, 204, 113, .16); color: var(--good); } .src-badge.simulated { background: rgba(255, 176, 32, .15); color: var(--warn); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
