/* "Your first competition in two clicks" (POC): the dark stage the play screens
   live on (arena home play block, rolling bracket play room). It breaks out of
   the page column to full width; the rest of the site keeps its own look.
   Arena colors come through the tenant tokens (--blue, --green, --violet). */

html:has(.stage) { overflow-x: clip; }
body:has(.stage.room) { background: #060a18; }
body:has(.stage.room) main { padding-bottom: 0; }
body:has(.stage.room) .stage { margin-bottom: 0; }
body:has(.stage.room) footer { color: #93a3c9; border-color: rgba(150, 175, 255, 0.14); }

.stage {
  --st-bg: #060a18;
  --st-panel: #0e1530;
  --st-panel2: #151f45;
  --st-line: rgba(150, 175, 255, 0.14);
  --st-text: #eef3ff;
  --st-muted: #93a3c9;
  --st-cyan: var(--green, #10c8d6);
  --st-blue: var(--blue, #155fea);
  --st-violet: var(--violet, #7b61ff);
  --st-gold: #ffc940;
  --st-red: #ff3d5a;
  position: relative;
  width: 100vw;
  margin: -1.5rem 0 2rem calc(50% - 50vw);
  color: var(--st-text);
  background:
    radial-gradient(900px 500px at 12% 0%, color-mix(in srgb, var(--st-blue) 30%, transparent), transparent 65%),
    radial-gradient(800px 480px at 92% 10%, color-mix(in srgb, var(--st-cyan) 18%, transparent), transparent 60%),
    var(--st-bg);
  overflow: hidden;
  isolation: isolate;
}
.st-art {
  position: absolute; inset: 0 0 auto 0; height: 460px; z-index: -1;
  background-position: center 30%; background-size: cover; opacity: 0.38;
  mask-image: linear-gradient(180deg, #000 30%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent);
}
.st-inner { max-width: 1240px; margin: 0 auto; padding: 2.6rem 1rem 3rem; }
.stage h1, .stage h2, .stage h3 { color: var(--st-text); border: 0; text-shadow: none; }
.stage a { color: var(--st-cyan); }
.stage b, .stage strong { color: inherit; font-style: normal; }
.st-muted { color: var(--st-muted); }
.st-small { font-size: 0.85rem; }
.st-label { display: block; color: var(--st-muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.st-h2 { font-size: 1.1rem; margin: 0 0 0.8rem; letter-spacing: 0.02em; }
.st-count { font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: -0.02em; }

/* Buttons */
.st-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 3.1rem; padding: 0.7rem 1.6rem; border: 0; border-radius: 14px; cursor: pointer;
  font: inherit; font-weight: 800; font-size: 1.08rem; letter-spacing: 0.01em; text-decoration: none;
  color: #fff !important;
  background: linear-gradient(100deg, var(--st-blue), var(--st-cyan));
  box-shadow: 0 8px 28px color-mix(in srgb, var(--st-cyan) 35%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.st-cta:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 12px 36px color-mix(in srgb, var(--st-cyan) 50%, transparent); }
.st-cta:active { transform: translateY(1px); }
.st-cta-sm { min-height: 2.5rem; padding: 0.45rem 1.1rem; font-size: 0.95rem; }
.st-btn {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.5rem; padding: 0.45rem 1rem;
  border-radius: 12px; border: 1px solid var(--st-line); background: rgba(255, 255, 255, 0.05);
  color: var(--st-text) !important; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.st-btn:hover { background: rgba(255, 255, 255, 0.1); }
.st-link { background: none; border: 0; padding: 0; font: inherit; color: var(--st-muted); text-decoration: underline; cursor: pointer; }
.st-link:hover { color: var(--st-text); }
.stage form { margin: 0; display: inline; }

/* Pills, live dot */
.st-pill { display: inline-block; padding: 0.3rem 0.75rem; border-radius: 999px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(255, 255, 255, 0.08); color: var(--st-muted); white-space: nowrap; }
.st-pill-open { background: color-mix(in srgb, var(--st-cyan) 18%, transparent); color: var(--st-cyan); }
.st-pill-live { background: var(--st-red); color: #fff; }
.st-live { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 0 0.8rem; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--st-text); }
.st-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--st-red); box-shadow: 0 0 0 0 var(--st-red); animation: st-pulse 1.6s infinite; }
@keyframes st-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--st-red) 70%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Avatars */
.stage .av { width: 2.2rem; height: 2.2rem; border-radius: 50%; object-fit: cover; background: var(--st-panel2); border: 2px solid var(--st-bg); flex: none; }
.stage .av-empty { display: inline-block; border: 2px dashed rgba(150, 175, 255, 0.28); background: transparent; }
.stage .av-xl { width: 5.5rem; height: 5.5rem; border-width: 3px; }
.stage .av.me { border-color: var(--st-cyan); }

/* ── Arena home ─────────────────────────────────────────────── */
.hm-head { max-width: 760px; margin-bottom: 1.8rem; }
.hm-head h1 { margin: 0 0 0.6rem; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; }
.st-lead { margin: 0; font-size: 1.1rem; color: var(--st-muted); }
.hm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 1.25rem; }
.hm-card {
  display: flex; flex-direction: column; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, var(--st-panel2), var(--st-panel));
  border: 1px solid var(--st-line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.hm-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--st-cyan) 45%, transparent); }
.hm-art {
  position: relative; display: block; aspect-ratio: 16 / 7;
  background: linear-gradient(135deg, var(--st-blue), var(--st-violet)) center / cover no-repeat;
}
.hm-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 10, 24, 0.25), rgba(6, 10, 24, 0.35) 45%, var(--st-panel2)); }
.hm-logo { position: absolute; left: 1.1rem; bottom: 0.8rem; width: 55%; height: 55%; z-index: 1; background: left bottom / contain no-repeat; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6)); }
.hm-icon { position: absolute; inset: 0; margin: auto; max-width: 35%; max-height: 60%; z-index: 1; }
.hm-body { display: flex; flex-direction: column; gap: 1rem; padding: 0.4rem 1.25rem 1.3rem; flex: 1; }
.hm-body h2 { margin: 0; font-size: 1.35rem; font-weight: 800; }
.hm-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.hm-count .st-count { font-size: 2.4rem; line-height: 1; }
.hm-seats { display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem; }
.hm-avs { display: flex; }
.hm-avs .av { width: 2rem; height: 2rem; margin-left: -0.45rem; }
.hm-avs .av:first-child { margin-left: 0; }
.hm-play { display: flex !important; flex-direction: column; gap: 0.5rem; margin-top: auto; }
.hm-card .st-cta { width: 100%; margin-top: auto; }
.hm-play p { margin: 0; text-align: center; }

/* Level strip: you start at level 1 and see what you can earn (display only). */
.hm-level { margin-top: 1.6rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 0.9rem 1.6rem; align-items: center; padding: 1.1rem 1.3rem; border-radius: 18px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--st-line); }
.hm-lvl-now { display: flex; align-items: center; gap: 0.9rem; min-width: 0; }
.hm-lvl-now > div { min-width: 0; flex: 1; }
.hm-lvl-badge { flex: none; width: 3.2rem; height: 3.2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; color: #1a1205; background: linear-gradient(135deg, var(--st-gold), #ff9a3d); box-shadow: 0 0 24px color-mix(in srgb, var(--st-gold) 40%, transparent); }
.hm-lvl-now b { display: block; font-size: 1.05rem; color: var(--st-text); }
.hm-lvl-now .st-muted { display: block; font-size: 0.9rem; }
.hm-bar { margin-top: 0.55rem; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.hm-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--st-gold), #ff9a3d); }
.hm-rewards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.hm-rewards li { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.6rem 0.75rem; border-radius: 12px; border: 1px dashed var(--st-line); font-size: 0.88rem; color: var(--st-muted); }
.hm-rewards li b { color: var(--st-text); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; }
.hm-rw-ico { font-size: 1.15rem; line-height: 1.2; }
.hm-lvl-note { grid-column: 1 / -1; margin: 0; }
@media (max-width: 720px) {
  .hm-level { grid-template-columns: 1fr; padding: 1rem; }
  .hm-rewards { gap: 0.45rem; }
  .hm-rewards li { padding: 0.5rem; font-size: 0.78rem; }
}

.hm-wins { margin-top: 2.2rem; }
.hm-wins ul { list-style: none; margin: 0 0 0.8rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 0.6rem; }
.hm-wins li a { display: flex; align-items: center; gap: 0.7rem; padding: 0.65rem 0.8rem; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--st-line); color: var(--st-text); text-decoration: none; }
.hm-wins li a:hover { background: rgba(255, 255, 255, 0.08); }
.hm-wins li.big a { border-color: color-mix(in srgb, var(--st-gold) 55%, transparent); background: color-mix(in srgb, var(--st-gold) 9%, transparent); }
.hm-win-txt { display: flex; flex-direction: column; font-size: 0.95rem; line-height: 1.3; min-width: 0; }
.hm-win-txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-win-txt small { color: var(--st-muted); font-size: 0.8rem; }
.st-more { font-weight: 600; text-decoration: none; }

/* ── Play room ──────────────────────────────────────────────── */
.rm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.rm-logo { width: min(320px, 70vw); height: 90px; background: left bottom / contain no-repeat; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6)); margin-bottom: 0.6rem; }
.rm-head h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; }
.rm-head p { margin: 0.25rem 0 0; }

.rm-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.2rem 2rem; margin-bottom: 1.6rem; }
.rm-in { flex-basis: 100%; margin: 0; font-size: 1.5rem; font-weight: 800; color: var(--st-cyan); }
.rm-count .st-count { display: block; font-size: clamp(4rem, 12vw, 7rem); line-height: 0.95; margin: 0.2rem 0; }
.rm-join { display: flex !important; flex-direction: column; gap: 0.5rem; min-width: min(100%, 320px); }
.rm-join p { margin: 0; text-align: center; }

.rm-seats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 0.7rem; }
.seat {
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem; padding: 0.9rem 0.5rem;
  border-radius: 16px; border: 1px dashed rgba(150, 175, 255, 0.22); color: var(--st-muted); font-size: 0.85rem;
  text-align: center; min-width: 0;
}
.seat span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat .av { width: 3.2rem; height: 3.2rem; }
.seat .av-empty { animation: st-breathe 2.4s ease-in-out infinite; }
@keyframes st-breathe { 50% { opacity: 0.35; } }
.seat.on { border-style: solid; border-color: var(--st-line); background: rgba(255, 255, 255, 0.05); color: var(--st-text); font-weight: 600; animation: st-pop 0.35s ease-out; }
.seat.me { border-color: var(--st-cyan); background: color-mix(in srgb, var(--st-cyan) 12%, transparent); box-shadow: 0 0 24px color-mix(in srgb, var(--st-cyan) 25%, transparent); }
@keyframes st-pop { from { transform: scale(0.9); opacity: 0; } }
.rm-seatcount { margin: 0.6rem 0 0; font-size: 0.9rem; }

.rm-next { margin-top: 2rem; }
.st-steps { list-style: none; counter-reset: st; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0.8rem; }
.st-steps > li { counter-increment: st; position: relative; display: flex; flex-direction: column; gap: 0.3rem; padding: 1rem 1rem 1rem 3.4rem; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--st-line); color: var(--st-muted); }
.st-steps > li::before { content: counter(st); position: absolute; left: 1rem; top: 1rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.9rem; color: var(--st-bg); background: linear-gradient(135deg, var(--st-blue), var(--st-cyan)); }
.st-steps > li b { color: var(--st-text); }
.st-steps-row > li > b { display: none; }
.st-steps > li.done::before { content: "✓"; }
.rm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1rem; margin-top: 1.6rem; }

/* Your match */
.rm-won { margin: 0 0 1rem; font-size: 1.3rem; font-weight: 800; color: var(--st-gold); }
.rm-match { padding: 1.5rem; border-radius: 22px; background: linear-gradient(180deg, var(--st-panel2), var(--st-panel)); border: 1px solid var(--st-line); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.rm-match.is-live { border-color: color-mix(in srgb, var(--st-red) 60%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--st-red) 40%, transparent), 0 24px 60px rgba(0, 0, 0, 0.35); }
.rm-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin: 1rem 0 1.4rem; }
.rm-vs-side { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; text-align: center; min-width: 0; }
.rm-vs-side b { font-size: 1.15rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-vs-side.me .av { border-color: var(--st-cyan); box-shadow: 0 0 28px color-mix(in srgb, var(--st-cyan) 40%, transparent); }
.rm-vs-txt { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 900; font-style: italic; letter-spacing: -0.04em; background: linear-gradient(135deg, var(--st-blue), var(--st-cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rdy { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--st-muted); padding: 0.15rem 0.6rem; border-radius: 999px; border: 1px solid var(--st-line); }
.rdy.on { color: #04131a; background: var(--st-cyan); border-color: var(--st-cyan); }
.rm-say { margin: 0 0 1rem; font-size: 1.05rem; text-align: center; }
.rm-timer { display: flex; align-items: baseline; justify-content: center; gap: 0.8rem; margin-bottom: 1.2rem; }
.rm-timer .st-label { display: inline; }
.rm-timer .st-count { font-size: 1.8rem; }
.rm-buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.5rem; justify-content: center; }
.st-steps .rm-buttons { justify-content: flex-start; }
.rm-readyform { display: block !important; margin-top: 0.5rem !important; }
.rm-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-top: 0.4rem; font-weight: 600; }
.rm-out { padding: 1.6rem; border-radius: 22px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--st-line); text-align: center; }
.rm-out h2 { margin: 0 0 0.4rem; font-size: 1.8rem; }
.rm-out p { margin: 0 0 1.1rem; }

/* Podium */
.rm-done { text-align: center; padding: 0.5rem 0 1rem; }
.rm-done h2 { margin: 0 0 0.3rem; font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 900; }
.rm-win { color: var(--st-gold) !important; text-shadow: 0 0 40px color-mix(in srgb, var(--st-gold) 45%, transparent) !important; }
.rm-podium { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 150px)); justify-content: center; align-items: end; gap: 0.8rem; margin: 1.6rem auto 1.6rem; padding: 0; }
.pd { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; min-width: 0; }
.pd b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-step { width: 100%; display: grid; place-items: center; border-radius: 12px 12px 0 0; font-weight: 900; font-size: 1.6rem; color: var(--st-bg); }
.pd-1 { order: 2; } .pd-2 { order: 1; } .pd-3 { order: 3; }
.pd-1 .pd-step { height: 110px; background: linear-gradient(180deg, var(--st-gold), #d99400); }
.pd-2 .pd-step { height: 80px; background: linear-gradient(180deg, #dfe7f5, #9fb0cc); }
.pd-3 .pd-step { height: 60px; background: linear-gradient(180deg, #f0a46b, #b86a35); }
.pd-1 .av { border-color: var(--st-gold); box-shadow: 0 0 30px color-mix(in srgb, var(--st-gold) 50%, transparent); }
.pd.me b { color: var(--st-cyan); }

/* Bracket */
.rm-bracket { margin-top: 2.2rem; }
.bx-cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); gap: 1rem; overflow-x: auto; padding-bottom: 0.5rem; }
.bx-col { display: flex; flex-direction: column; gap: 0.7rem; }
.bx-list { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 0.7rem; }
.bx-col h3 { margin: 0; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--st-muted); }
.bx-col h3.bx-small { margin-top: 0.6rem; }
.bx { border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--st-line); overflow: hidden; }
.bx.mine { border-color: color-mix(in srgb, var(--st-cyan) 60%, transparent); }
.bx.live { border-color: var(--st-red); }
.bx-side { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.6rem; font-size: 0.9rem; color: var(--st-muted); min-width: 0; }
.bx-side + .bx-side { border-top: 1px solid var(--st-line); }
.bx-side .av { width: 1.5rem; height: 1.5rem; border-width: 1px; }
.bx-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bx-side.win { color: var(--st-text); font-weight: 700; }
.bx-side.win::after { content: "✓"; margin-left: auto; color: var(--st-cyan); }
.bx-side.me .bx-name { color: var(--st-cyan); }
.bx-side.tbd { font-style: italic; }

.rm-foot { margin: 2.4rem 0 0; font-size: 0.85rem; }
.rm-foot a { color: var(--st-muted); }

/* Confetti canvas (bracket win) */
.st-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; }

@media (max-width: 720px) {
  .stage { margin-top: -1rem; }
  .st-inner { padding: 1.6rem 1rem 2.2rem; }
  .st-art { height: 300px; }
  .rm-head { flex-direction: column-reverse; gap: 0.6rem; }
  .rm-logo { height: 64px; }
  .rm-hero { flex-direction: column; align-items: stretch; }
  .rm-seats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.45rem; }
  .seat { padding: 0.6rem 0.2rem; font-size: 0.72rem; border-radius: 12px; }
  .seat .av { width: 2.5rem; height: 2.5rem; }
  .rm-match { padding: 1.1rem; }
  .stage .av-xl { width: 4.2rem; height: 4.2rem; }
  .podium { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* The bracket scrolls sideways edge to edge; the next round peeks in, rounds snap. */
  .bx-cols { grid-auto-columns: 74%; margin: 0 -1rem; padding: 0 1rem 0.5rem; scroll-snap-type: x mandatory; scroll-padding-inline: 1rem; }
  .bx-col { scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  .stage *, .stage *::before { animation: none !important; transition: none !important; }
}

/* ── Home level card: rewards already earned ─────────────────────────── */
.hm-xp { color: var(--st-gold); font-size: 0.85rem; font-weight: 700; }
.hm-rewards li.got { border-style: solid; border-color: color-mix(in srgb, var(--st-gold) 50%, transparent); color: var(--st-text); }
.rm-collect { margin-top: 1.2rem; }
.stage [hidden] { display: none !important; }

/* ── Rewards page: what a finished bracket earned, before the next one ── */
.rw-err { margin: 0 0 1rem; padding: 0.7rem 1rem; border-radius: 12px; background: color-mix(in srgb, var(--st-red) 18%, transparent); border: 1px solid var(--st-red); }
.rw-head { text-align: center; padding: 0.3rem 0 1.8rem; }
.rw-head h1 { margin: 0.2rem 0 0.4rem; font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 900; line-height: 1.05; }
.rw-head .st-lead { max-width: 40rem; margin: 0 auto; color: var(--st-muted); font-size: 1.05rem; }
.rw-me { position: relative; display: inline-block; margin-bottom: 0.9rem; }
.stage .rw-me .av-xl { width: 6.6rem; height: 6.6rem; border: 3px solid var(--st-line); }
/* Level 2 reward, worn on the spot: the profile frame. */
.stage .rw-me.framed .av-xl {
  border: 4px solid transparent;
  background: linear-gradient(var(--st-bg), var(--st-bg)) padding-box, conic-gradient(from 0deg, var(--st-gold), var(--st-cyan), var(--st-violet), var(--st-gold)) border-box;
  box-shadow: 0 0 36px color-mix(in srgb, var(--st-gold) 40%, transparent);
}
.rw-medal { position: absolute; right: -0.7rem; bottom: -0.4rem; font-size: 2.9rem; line-height: 1; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5)); }

.rw-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.rw-col { display: grid; gap: 1.1rem; min-width: 0; }
.rw-card { padding: 1.2rem 1.3rem; border-radius: 18px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--st-line); min-width: 0; }
.rw-card .st-h2 { margin-bottom: 0.6rem; }
.rw-h2-gap { margin-top: 1.2rem !important; }

.rw-xp-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.rw-xp-total { font-size: 2.1rem; font-weight: 900; color: var(--st-gold) !important; font-variant-numeric: tabular-nums; text-shadow: 0 0 30px color-mix(in srgb, var(--st-gold) 35%, transparent); }
.rw-lines { list-style: none; margin: 0.2rem 0 1.1rem; padding: 0; }
.rw-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px dashed var(--st-line); animation: rw-in 0.4s ease both; animation-delay: calc(var(--i, 0) * 0.25s + 0.3s); }
.rw-lines li b { color: var(--st-gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rw-lines li span b { color: var(--st-text); }
.rw-level { display: flex; gap: 0.9rem; align-items: center; }
.rw-level-txt { flex: 1; min-width: 0; }
.rw-level-row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.rw-level-row > b { font-size: 1.1rem; }
.rw-bar { height: 10px; margin: 0.45rem 0 0.35rem; }
.rw-bar span { transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.rw-up { padding: 0.18rem 0.65rem; border-radius: 999px; background: linear-gradient(135deg, var(--st-gold), #ff9a3d); color: #1a1205; font-weight: 900; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; animation: rw-pop 0.5s ease both; }
.rw-badge.pop { animation: rw-pop 0.5s ease; }
@keyframes rw-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes rw-pop { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.18); opacity: 1; } 100% { transform: scale(1); } }

.rw-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.rw-item { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 0.85rem; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--st-line); animation: rw-in 0.4s ease both; animation-delay: calc(var(--i, 0) * 0.2s + 1.3s); }
.rw-item > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.rw-item.gold { border-color: color-mix(in srgb, var(--st-gold) 55%, transparent); background: color-mix(in srgb, var(--st-gold) 10%, transparent); }
.rw-item.next { border-style: dashed; animation: none; }
.rw-ico { font-size: 1.6rem; line-height: 1; }
.rw-new { flex: none; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--st-cyan); color: #04121a; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.rw-track { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; gap: 0.5rem; }
.rw-track li { flex: 1; display: flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.6rem; border-radius: 10px; border: 1px dashed var(--st-line); color: var(--st-muted); font-size: 0.82rem; }
.rw-track li .rw-ico { font-size: 1.1rem; }
.rw-track li.got { border-style: solid; border-color: color-mix(in srgb, var(--st-gold) 50%, transparent); color: var(--st-text); }
.rw-track li b { margin-left: auto; color: var(--st-gold); }

.rw-gg-lead { display: flex; align-items: center; gap: 0.5rem; margin: -0.3rem 0 0.9rem; }
.rw-gglist { list-style: none; margin: 0; padding: 0 0.2rem 0 0; display: flex; flex-direction: column; gap: 0.55rem; max-height: 24rem; overflow-y: auto; }
.rw-gglist .gg { display: flex; gap: 0.6rem; align-items: flex-start; animation: rw-in 0.35s ease both; }
.rw-gglist .gg .av { width: 2.2rem; height: 2.2rem; flex: none; }
.rw-gglist .gg > span { display: flex; flex-direction: column; min-width: 0; padding: 0.45rem 0.8rem; border-radius: 4px 14px 14px 14px; background: var(--st-panel2); }
.rw-gglist .gg b { font-size: 0.78rem; color: var(--st-cyan); }
.rw-gglist .gg.me > span { background: color-mix(in srgb, var(--st-blue) 38%, var(--st-panel2)); }
.rw-gglist .gg.me b { color: var(--st-text); }
.gg-body { overflow-wrap: anywhere; }
.rw-gg-empty { margin: 0.4rem 0; font-style: italic; }
.stage .rw-quick { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--st-line); }
.rw-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.rw-chip { padding: 0.5rem 0.95rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--st-cyan) 45%, transparent); background: color-mix(in srgb, var(--st-cyan) 10%, transparent); color: var(--st-text); font: inherit; font-weight: 700; cursor: pointer; }
.rw-chip:hover { background: color-mix(in srgb, var(--st-cyan) 22%, transparent); }
.rw-chip:disabled { opacity: 0.5; cursor: default; }
.rw-ggs .st-more { display: inline-block; margin-top: 1rem; font-weight: 700; }

.rw-why, .rw-stats { margin-top: 2rem; }
.rw-why ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0.7rem; }
.rw-why li { display: flex; flex-direction: column; gap: 0.3rem; padding: 1rem; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--st-line); color: var(--st-muted); font-size: 0.9rem; }
.rw-why li b { color: var(--st-text); font-size: 1rem; }
.rw-why .hm-bar { display: block; margin-top: 0.35rem; }
.rw-soon { font-style: normal; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.12rem 0.45rem; border-radius: 999px; background: color-mix(in srgb, var(--st-violet) 32%, transparent); color: #ddd5ff; vertical-align: middle; margin-left: 0.25rem; white-space: nowrap; }
.rw-stats dl { margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.7rem; }
.rw-stats dl div { padding: 0.9rem 0.6rem; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--st-line); text-align: center; }
.rw-stats dt { color: var(--st-muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.rw-stats dd { margin: 0.2rem 0 0; font-size: 1.8rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.rw-ctas { margin-top: 2.4rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.8rem; }
.rw .rm-foot { text-align: center; }

@media (max-width: 860px) {
  .rw-grid { grid-template-columns: 1fr; }
  .rw-stats dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .stage .rw-me .av-xl { width: 5.4rem; height: 5.4rem; }
  .rw-card { padding: 1rem; }
  .rw-stats dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rw-track { flex-direction: column; }
  .rw-ctas form, .rw-ctas .st-cta { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .stage *, .stage *::before { animation: none !important; transition: none !important; }
}
