@property --accent { syntax: '<color>'; inherits: true; initial-value: #4f8bff; }
@property --deep { syntax: '<color>'; inherits: true; initial-value: #06122e; }

:root {
  --accent: #4f8bff;
  --deep: #06122e;
  --ink: #03050a;
  --fg: #f3f5fa;
  --fg2: rgba(243, 245, 250, .74);
  --fg3: rgba(243, 245, 250, .5);
  --fg4: rgba(243, 245, 250, .28);
  --line: rgba(255, 255, 255, .1);
  --line2: rgba(255, 255, 255, .18);
  --glass: rgba(255, 255, 255, .07);
  --glass2: rgba(255, 255, 255, .12);
  --panel: rgba(9, 12, 20, .62);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  --pad: clamp(20px, 4.4vw, 72px);
  transition: --accent .9s var(--ease), --deep .9s var(--ease);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--ink);
  color: var(--fg);
  font-family: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-feature-settings: 'ss01', 'tnum';
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
svg { display: block; }
.icon-btn svg, .btn svg, .vr svg, .mission-list svg, .interest-bar svg, .rows svg.i {
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.muted { color: var(--fg3); }
.key {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 20px; padding: 0 6px; border-radius: 5px;
  border: 1px solid var(--line2); background: rgba(255,255,255,.06);
  font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--fg2);
}

/* ---------- Boot ---------- */
.boot {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: radial-gradient(70% 60% at 50% 55%, #0c1a3d 0%, #03050a 70%);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease), filter 1s;
}
.boot.out { opacity: 0; transform: scale(1.08); filter: blur(10px); pointer-events: none; }
.boot-glow {
  position: absolute; width: 60vmin; height: 60vmin; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,139,255,.35), transparent 65%);
  animation: breathe 5s ease-in-out infinite; filter: blur(20px);
}
@keyframes breathe { 50% { transform: scale(1.15); opacity: .7; } }
.boot-inner { position: relative; text-align: center; }
.boot-mark { width: 74px; height: 74px; margin: 0 auto 26px; color: #fff; opacity: 0; animation: rise 1.2s .2s var(--ease) forwards; }
.boot-word {
  font-size: clamp(54px, 10vw, 120px); font-weight: 300; letter-spacing: .42em; margin-right: -.42em;
  opacity: 0; animation: rise 1.4s .45s var(--ease) forwards;
}
.boot-sub { margin-top: 10px; font-size: 15px; letter-spacing: .3em; text-transform: uppercase; color: var(--fg3); opacity: 0; animation: rise 1.2s .8s var(--ease) forwards; }
.boot-start {
  margin-top: 70px; display: inline-flex; align-items: center; gap: 12px;
  font-size: 15px; color: var(--fg2); opacity: 0;
  animation: rise 1s 1.3s var(--ease) forwards, pulse 2.4s 2.3s ease-in-out infinite;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { opacity: .45; } }

/* ---------- Background ---------- */
#bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.bg-layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease); }
.bg-layer.show { opacity: 1; }
.bg-fill { position: absolute; inset: 0; }
.bg-sun {
  position: absolute; right: 4vw; top: -18vh; width: 70vw; height: 70vw; border-radius: 50%;
  filter: blur(40px); opacity: .55; animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-4vw, 6vh) scale(1.06); } }
.court-art {
  position: absolute; right: -8vw; top: 8vh; width: 84vw; height: 76vh;
  transform-origin: 50% 60%;
  transform: perspective(1200px) rotateX(62deg) rotateZ(-20deg);
  filter: drop-shadow(0 0 6px var(--glow)) drop-shadow(0 0 22px var(--glow));
  animation: courtIn 1.6s var(--ease) both;
}
.court-art svg { width: 100%; height: 100%; }
.court-art.wall { transform: perspective(1200px) rotateY(-28deg) rotateX(6deg); top: 10vh; right: -2vw; width: 60vw; height: 64vh; }
.court-art.flat { transform: perspective(1200px) rotateX(50deg) rotateZ(-10deg); }
@keyframes courtIn { from { opacity: 0; transform: perspective(1200px) rotateX(70deg) rotateZ(-26deg) translateY(6vh); } }
.court-art.wall { animation-name: wallIn; }
@keyframes wallIn { from { opacity: 0; transform: perspective(1200px) rotateY(-50deg) rotateX(6deg); } }
.big-glyph { position: absolute; right: 8vw; bottom: 10vh; width: 34vmin; height: 34vmin; opacity: .07; color: #fff; }
.big-glyph svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: .6; }
#particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(3,5,10,.92) 0%, rgba(3,5,10,.55) 38%, rgba(3,5,10,0) 70%),
    linear-gradient(0deg, var(--ink) 4%, rgba(3,5,10,.4) 42%, rgba(3,5,10,0) 70%),
    linear-gradient(180deg, rgba(3,5,10,.6), rgba(3,5,10,0) 22%);
  transition: background .6s;
}
body.page-mode .scrim { background: linear-gradient(180deg, rgba(3,5,10,.75), rgba(3,5,10,.93) 45%, var(--ink)); }
.grain {
  position: absolute; inset: -50%; opacity: .07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Top bar ---------- */
.topbar {
  position: relative; z-index: 10; display: flex; align-items: center; gap: 34px;
  padding: 26px var(--pad) 0;
}
.brand { width: 30px; height: 30px; color: #fff; flex: none; }
.brand svg { width: 100%; height: 100%; }
.tabs { display: flex; gap: 30px; }
.tab { font-size: 21px; font-weight: 400; color: var(--fg3); padding: 6px 0; position: relative; transition: color .3s; }
.tab:hover { color: var(--fg2); }
.tab.active { color: var(--fg); font-weight: 600; }
.tab.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: #fff; border-radius: 2px; animation: grow .4s var(--ease); }
@keyframes grow { from { transform: scaleX(0); } }
.tab-count { font-size: 12px; font-weight: 600; background: var(--accent); color: #fff; border-radius: 10px; padding: 1px 7px; vertical-align: 3px; margin-left: 4px; }
.tab-count:empty { display: none; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--fg2); position: relative; transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--glass2); color: #fff; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .snd-off { display: none; }
body.muted-sfx .icon-btn .snd-on { display: none; }
body.muted-sfx .icon-btn .snd-off { display: block; }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--ink); }
.notif-wrap { position: relative; }
.notif-panel {
  position: absolute; right: 0; top: 50px; width: 340px; padding: 8px; z-index: 30;
  background: rgba(14,18,28,.92); backdrop-filter: blur(30px); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: pop .3s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.notif-item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; font-size: 14px; }
.notif-item:hover { background: var(--glass); }
.notif-item .ni { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; }
.notif-item .ni svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.notif-item .nw { margin-left: auto; color: var(--fg3); font-size: 12px; }
.profile { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 30px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; padding: 2px; flex: none;
  background: conic-gradient(var(--accent), #fff, var(--accent));
}
.avatar span { width: 100%; height: 100%; border-radius: 50%; background: #121826; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.profile-name { font-size: 14px; font-weight: 600; }
.profile-sub { font-size: 12px; color: var(--fg3); }
.clock { font-size: 20px; font-weight: 400; color: var(--fg); min-width: 56px; text-align: right; }

/* ---------- Views ---------- */
main { position: relative; z-index: 2; }
.view { display: none; }
.view.active { display: block; animation: viewIn .6s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Tiles (the PS-style row) ---------- */
.tiles-wrap { padding: 30px 0 0; overflow-x: auto; scrollbar-width: none; }
.tiles-wrap::-webkit-scrollbar { display: none; }
.tiles { display: flex; align-items: flex-start; gap: 14px; padding: 6px var(--pad) 16px; width: max-content; }
.tile {
  position: relative; width: 88px; height: 88px; border-radius: 18px; flex: none;
  background: linear-gradient(150deg, var(--ta) 0%, var(--td) 120%);
  display: grid; place-items: center; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 10px 30px rgba(0,0,0,.35);
  transition: width .45s var(--spring), height .45s var(--spring), margin .45s var(--ease), box-shadow .3s, filter .3s;
  filter: saturate(.85) brightness(.85);
}
.tile::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(120% 80% at 20% 0%, rgba(255,255,255,.28), transparent 55%);
}
.tile svg { width: 44%; height: 44%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; position: relative; transition: transform .45s var(--spring); }
.tile.library { background: linear-gradient(150deg, #2a2f3b, #12151c); }
.tile:hover { filter: none; }
.tile.selected {
  width: 128px; height: 128px; filter: none;
  box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px #fff, 0 18px 50px color-mix(in oklab, var(--ta) 45%, transparent);
}
.tile.selected svg { transform: scale(1.05); }
.tile-label {
  position: absolute; left: calc(100% + 24px); top: 50%; transform: translateY(-50%);
  white-space: nowrap; font-size: 22px; font-weight: 500; opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.tile.selected .tile-label { opacity: 1; transition-delay: .15s; }
.tile .badge {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: #fff; color: #000; font-size: 11px; font-weight: 700; display: grid; place-items: center;
}

/* ---------- Hero ---------- */
.hero { padding: 7vh var(--pad) 0; min-height: 48vh; max-width: 760px; }
.hero > * { animation: heroIn .7s var(--ease) both; }
.hero > *:nth-child(2) { animation-delay: .05s; }
.hero > *:nth-child(3) { animation-delay: .1s; }
.hero > *:nth-child(4) { animation-delay: .15s; }
.hero > *:nth-child(5) { animation-delay: .2s; }
@keyframes heroIn { from { opacity: 0; transform: translateX(-16px); } }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .2em; color: var(--accent); filter: brightness(1.25); }
.hero-title { font-size: clamp(56px, 7.4vw, 112px); line-height: .95; font-weight: 600; letter-spacing: -.035em; margin: 14px 0 18px; }
.hero-tag { font-size: 18px; line-height: 1.55; color: var(--fg2); max-width: 540px; margin: 0; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; align-items: center; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 24px; margin-top: 30px; flex-wrap: wrap; }
.meta-item { font-size: 13px; color: var(--fg3); }
.meta-item b { display: block; font-size: 22px; font-weight: 500; color: var(--fg); margin-bottom: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px; border-radius: 999px; font-size: 16px; font-weight: 600;
  transition: transform .25s var(--spring), background .2s, box-shadow .25s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: scale(1.04); }
.btn:active { transform: scale(.97); }
.btn.primary { background: #fff; color: #05070c; }
.btn.primary:hover { box-shadow: 0 0 0 4px rgba(255,255,255,.18), 0 12px 40px rgba(255,255,255,.18); }
.btn.glass { background: var(--glass2); color: #fff; backdrop-filter: blur(20px); box-shadow: inset 0 0 0 1px var(--line); }
.btn.glass:hover { background: rgba(255,255,255,.2); }
.btn.accent { background: var(--accent); color: #fff; }
.btn.big { height: 58px; padding: 0 34px; font-size: 17px; }
.btn.round { width: 58px; padding: 0; }
.btn.small { height: 36px; padding: 0 16px; font-size: 14px; }
.btn.danger { background: rgba(255,90,90,.14); color: #ff9c9c; box-shadow: inset 0 0 0 1px rgba(255,90,90,.25); }

/* ---------- Arena rows ---------- */
.rows { padding: 4vh 0 140px; }
.row { margin-bottom: 44px; }
.row-head { display: flex; align-items: baseline; gap: 14px; padding: 0 var(--pad); margin-bottom: 16px; }
.row-title { font-size: 19px; font-weight: 500; }
.row-sub { font-size: 14px; color: var(--fg3); }
.row-track { display: flex; gap: 18px; padding: 8px var(--pad) 18px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.row-track::-webkit-scrollbar { display: none; }

.moment {
  position: relative; flex: none; width: 340px; aspect-ratio: 16 / 9.4; border-radius: 16px; overflow: hidden;
  background: radial-gradient(120% 120% at 80% 0%, color-mix(in oklab, var(--ma) 60%, transparent), var(--md) 70%);
  box-shadow: 0 12px 40px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.08);
  scroll-snap-align: start; text-align: left;
  transition: transform .35s var(--spring), box-shadow .3s;
}
.moment:hover, .moment:focus-visible { transform: scale(1.04); box-shadow: 0 0 0 3px #fff, 0 24px 60px rgba(0,0,0,.5); outline: none; }
.moment .m-court {
  position: absolute; inset: -10% -20% 10% 10%; color: var(--ma); opacity: .9;
  transform: perspective(500px) rotateX(58deg) rotateZ(-18deg);
  filter: drop-shadow(0 0 4px var(--ma));
}
.moment .m-court.wall { transform: perspective(500px) rotateY(-30deg); inset: 8% 0 8% 30%; }
.moment .m-court svg { width: 100%; height: 100%; }
.moment::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.1) 60%); }
.moment .m-badge {
  position: absolute; top: 12px; left: 12px; z-index: 1; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  padding: 5px 9px; border-radius: 8px; background: rgba(0,0,0,.45); backdrop-filter: blur(10px);
}
.moment .m-len { position: absolute; top: 12px; right: 12px; z-index: 1; font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 8px; background: rgba(0,0,0,.45); }
.moment .m-body { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; }
.moment .m-title { font-size: 17px; font-weight: 600; line-height: 1.25; }
.moment .m-meta { font-size: 13px; color: var(--fg2); margin-top: 5px; display: flex; gap: 8px; align-items: center; }
.uni-pill { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.uni-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--uc); display: inline-block; }
.moment .m-play {
  position: absolute; z-index: 1; left: 50%; top: 44%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%;
  background: rgba(255,255,255,.95); display: grid; place-items: center; opacity: 0; transform: scale(.7);
  transition: opacity .25s, transform .35s var(--spring);
}
.moment:hover .m-play, .moment:focus-visible .m-play { opacity: 1; transform: none; }
.moment .m-play svg { width: 22px; height: 22px; fill: #000; margin-left: 3px; }

.card {
  flex: none; width: 300px; min-height: 180px; border-radius: 16px; padding: 22px;
  background: var(--panel); backdrop-filter: blur(24px); box-shadow: inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column; text-align: left;
  transition: transform .35s var(--spring), box-shadow .3s;
}
.card:hover { transform: scale(1.03); box-shadow: 0 0 0 3px #fff, 0 20px 50px rgba(0,0,0,.4); }
.card-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--fg3); text-transform: uppercase; }
.card-title { font-size: 20px; font-weight: 600; margin: 10px 0 6px; line-height: 1.25; }
.card-text { font-size: 14px; color: var(--fg2); line-height: 1.5; }
.card-foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.card-foot svg { width: 18px; height: 18px; }
.xp-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 14px; }
.xp-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), #fff); }
.avatars { display: flex; margin-top: 14px; }
.avatars span { width: 32px; height: 32px; border-radius: 50%; margin-right: -8px; border: 2px solid #0b0f18; display: grid; place-items: center; font-size: 11px; font-weight: 700; }

.loop {
  display: flex; align-items: stretch; gap: 0; padding: 8px var(--pad) 0; flex-wrap: wrap;
}
.loop-step {
  flex: 1 1 160px; min-width: 160px; position: relative; padding: 22px 26px 22px 22px; margin-right: 14px; margin-bottom: 14px;
  background: var(--panel); backdrop-filter: blur(24px); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line);
  text-align: left; transition: transform .35s var(--spring), box-shadow .3s;
}
.loop-step:hover { transform: translateY(-3px); box-shadow: 0 0 0 2px rgba(255,255,255,.7); }
.loop-step .n { font-size: 12px; font-weight: 700; color: var(--accent); filter: brightness(1.3); letter-spacing: .1em; }
.loop-step .h { font-size: 18px; font-weight: 600; margin: 8px 0 6px; }
.loop-step .p { font-size: 13.5px; color: var(--fg3); line-height: 1.45; }
.loop-step:not(:last-child)::after {
  content: ''; position: absolute; right: -11px; top: 50%; width: 8px; height: 8px; z-index: 2;
  border-top: 2px solid var(--fg4); border-right: 2px solid var(--fg4); transform: translateY(-50%) rotate(45deg);
}

/* ---------- Page views (Missions / Match) ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 6vh var(--pad) 0; flex-wrap: wrap; }
.page-title { font-size: clamp(44px, 5.6vw, 76px); font-weight: 600; letter-spacing: -.03em; margin: 10px 0 10px; line-height: 1; }
.page-lede { margin: 0; color: var(--fg2); font-size: 17px; max-width: 620px; line-height: 1.5; }
.page-actions { display: flex; gap: 10px; }

.interest-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 28px var(--pad) 0; font-size: 14px; color: var(--fg3); }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 18px;
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 500; color: var(--fg2);
  transition: background .2s, color .2s, box-shadow .2s, transform .25s var(--spring);
}
.chip:hover { background: var(--glass2); color: #fff; }
.chip.on { background: #fff; color: #06080d; box-shadow: none; }
.chip .ci { width: 18px; height: 18px; }
.chip .ci svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chip .x { opacity: .55; font-size: 16px; line-height: 1; margin-left: 2px; }
.chip.add { color: var(--fg3); border: 1px dashed var(--line2); box-shadow: none; background: none; }
.chip-pop { position: relative; }
.chip-menu { position: absolute; top: 44px; left: 0; z-index: 20; display: grid; grid-template-columns: repeat(3, auto); gap: 6px; padding: 10px; border-radius: 16px; background: rgba(14,18,28,.95); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.5); animation: pop .25s var(--ease); }

.stats { display: flex; gap: 14px; padding: 22px var(--pad) 0; flex-wrap: wrap; }
.stat { padding: 16px 22px; border-radius: 16px; background: var(--panel); backdrop-filter: blur(24px); box-shadow: inset 0 0 0 1px var(--line); min-width: 170px; }
.stat b { display: block; font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.stat span { font-size: 13px; color: var(--fg3); }
.stat.good b { color: #6ef0a8; }

.missions-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 18px; padding: 18px var(--pad) 140px; }
.panel { background: var(--panel); backdrop-filter: blur(28px); border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); padding: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 600; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.legend { display: flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 500; color: var(--fg3); }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; margin-left: 8px; }
.lg-class { background: repeating-linear-gradient(135deg, rgba(255,255,255,.18) 0 3px, rgba(255,255,255,.06) 3px 6px); }
.lg-mission { background: var(--accent); }

.timetable { --hr: 30px; display: grid; grid-template-columns: 40px repeat(7, minmax(64px, 1fr)); overflow-x: auto; }
.tt-head { font-size: 12px; font-weight: 600; color: var(--fg3); text-align: center; padding-bottom: 8px; }
.tt-head.today { color: #fff; }
.tt-head.today span { background: var(--accent); padding: 2px 8px; border-radius: 8px; }
.tt-hours { position: relative; }
.tt-hours div { height: var(--hr); font-size: 11px; color: var(--fg4); transform: translateY(-7px); }
.tt-col { position: relative; border-left: 1px solid var(--line); background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% var(--hr); }
.tt-col.today { background-color: rgba(255,255,255,.03); }
.tt-block { position: absolute; left: 3px; right: 3px; border-radius: 8px; padding: 5px 7px; font-size: 11px; line-height: 1.25; overflow: hidden; }
.tt-class { background: repeating-linear-gradient(135deg, rgba(255,255,255,.1) 0 4px, rgba(255,255,255,.05) 4px 8px); color: var(--fg3); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.tt-mission {
  background: linear-gradient(160deg, var(--ma), color-mix(in oklab, var(--ma) 50%, #000));
  color: #fff; font-weight: 600; cursor: pointer; box-shadow: 0 6px 20px color-mix(in oklab, var(--ma) 35%, transparent);
  transition: transform .25s var(--spring), box-shadow .2s; animation: blockIn .5s var(--spring) both;
}
.tt-mission.done { opacity: .45; }
.tt-mission:hover, .tt-mission.hl { transform: scale(1.05); box-shadow: 0 0 0 2px #fff; z-index: 2; }
.tt-mission .tb-time { font-weight: 500; opacity: .85; }
@keyframes blockIn { from { opacity: 0; transform: scale(.8); } }
.tt-now { position: absolute; left: 0; right: 0; height: 2px; background: #ff5d5d; z-index: 3; }
.tt-now::before { content: ''; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #ff5d5d; }

.mission-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mission {
  display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.04);
  box-shadow: inset 0 0 0 1px transparent; transition: background .2s, box-shadow .2s, opacity .4s, transform .4s var(--ease), max-height .4s, margin .4s, padding .4s;
  max-height: 120px; animation: rowIn .45s var(--ease) both;
}
@keyframes rowIn { from { opacity: 0; transform: translateX(14px); } }
.mission:hover, .mission.hl { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px var(--line2); }
.mission.removing { opacity: 0; transform: translateX(40px); max-height: 0; padding-top: 0; padding-bottom: 0; margin-top: -8px; }
.mission.done .m-name { text-decoration: line-through; color: var(--fg3); }
.m-ico { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; background: linear-gradient(150deg, var(--ma), color-mix(in oklab, var(--ma) 40%, #000)); }
.m-ico svg { width: 22px; height: 22px; stroke: #fff; }
.m-info { flex: 1; min-width: 0; }
.m-name { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.m-sub { font-size: 12.5px; color: var(--fg3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv { font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.12); color: var(--fg2); letter-spacing: .04em; flex: none; }
.src { font-size: 10.5px; font-weight: 600; padding: 2px 6px; border-radius: 6px; color: var(--fg3); box-shadow: inset 0 0 0 1px var(--line2); flex: none; }
.cost { font-size: 13px; font-weight: 600; color: #6ef0a8; flex: none; }
.cost.paid { color: var(--fg2); }
.m-btn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--fg3); flex: none; transition: background .2s, color .2s; }
.m-btn svg { width: 18px; height: 18px; }
.m-btn:hover { background: var(--glass2); color: #fff; }
.m-btn.check { box-shadow: inset 0 0 0 1.5px var(--line2); }
.m-btn.check:hover { background: #6ef0a8; color: #04140b; box-shadow: none; }
.mission.done .m-btn.check { background: #6ef0a8; color: #04140b; box-shadow: none; }
.m-btn.del:hover { background: rgba(255,90,90,.18); color: #ff8f8f; }
.empty { text-align: center; padding: 40px 10px; color: var(--fg3); font-size: 14px; }
.empty .btn { margin-top: 14px; }

/* ---------- Match ---------- */
.intent { display: inline-flex; gap: 6px; margin: 26px var(--pad) 0; padding: 6px; border-radius: 22px; background: var(--panel); backdrop-filter: blur(24px); box-shadow: inset 0 0 0 1px var(--line); flex-wrap: wrap; }
.intent button { display: flex; align-items: center; gap: 12px; padding: 10px 20px 10px 14px; border-radius: 16px; text-align: left; color: var(--fg2); transition: background .25s, color .25s, transform .3s var(--spring); }
.intent button svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.intent button b { display: block; font-size: 16px; font-weight: 600; }
.intent button small { display: block; font-size: 12.5px; color: var(--fg3); margin-top: 1px; }
.intent button:hover { background: var(--glass); color: #fff; }
.intent button.active { background: #fff; color: #06080d; }
.intent button.active small { color: rgba(6,8,13,.6); }
.mode-art b.plus { font-size: 20px; font-weight: 500; margin: 0 4px; }
.mode-art.crowd { gap: 0; }
.mode-art.crowd span { margin-right: -6px; box-shadow: 0 0 0 2px #0b0f18; }
.mode-art.crowd span:nth-child(1) { background: #2f6bff; }
.mode-art.crowd span:nth-child(2) { background: #8a4dff; }
.mode-art.crowd span:nth-child(3) { background: #e0315b; }
.mode-art.crowd span:nth-child(4) { background: #ff8a00; }
.mode-art.crowd span:nth-child(5) { background: #2ecc71; }
.mode-art.crowd b.plus { margin: 0 12px 0 14px; }
.mode-art.crowd span.you, .mode-art.pair span:last-child { background: transparent; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); border: 0; }
.mode-art.pair span:first-child { background: var(--accent); }
.mode-card.active .mode-art.pair span:first-child, .mode-card.active .mode-art.duel span:first-child { background: var(--accent); }
.compat { flex: none; font-size: 13px; font-weight: 700; padding: 5px 9px; border-radius: 10px; background: rgba(110,240,168,.12); color: #6ef0a8; }
.p-bio { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--fg2); }
.p-row span.vibe-on { background: color-mix(in oklab, var(--accent) 35%, transparent); color: #fff; }
.p-av.g { background: linear-gradient(150deg, var(--accent), color-mix(in oklab, var(--accent) 40%, #000)); box-shadow: none; border-radius: 14px; }
.p-av.g svg { width: 24px; height: 24px; }
.p-av.sm { width: 38px; height: 38px; font-size: 13px; }
.group-avs { display: flex; align-items: center; }
.group-avs span { width: 30px; height: 30px; border-radius: 50%; margin-right: -7px; display: grid; place-items: center; font-size: 10px; font-weight: 700; background: #141a28; box-shadow: 0 0 0 2px #0b0f18, inset 0 0 0 2px var(--uc); }
.group-avs span.open { background: none; box-shadow: inset 0 0 0 1.5px var(--line2); color: var(--fg3); margin-left: 10px; }
.group-avs.big { margin: 22px 0 4px; position: relative; justify-content: center; }
.group-avs.big span { width: 50px; height: 50px; font-size: 13px; margin-right: -10px; animation: modalIn .5s var(--spring) both; }
.group-avs.big span.me { background: var(--uc); color: #fff; margin-left: 18px; box-shadow: 0 0 0 3px #fff, 0 0 30px var(--uc); }
.vs.together .vs-mid { font-size: 40px; font-weight: 300; color: var(--accent); filter: brightness(1.4); }
.modal .quote { margin-top: 6px; font-style: italic; text-align: center; color: var(--fg2); }
.buddies { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.buddies li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: rgba(255,255,255,.04); animation: rowIn .4s var(--ease) both; }
.b-info { flex: 1; min-width: 0; }
.b-name { font-size: 14px; font-weight: 600; }
.b-sub { font-size: 12px; color: var(--fg3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buddies .btn.small { height: 32px; padding: 0 12px; font-size: 12.5px; }
.circle-stat { margin-top: 16px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.04); }
.cs-dots { display: flex; gap: 6px; margin-bottom: 8px; }
.cs-dots i { width: 14px; height: 14px; border-radius: 50%; display: block; }
.circle-stat p { margin: 0; font-size: 13px; color: var(--fg2); line-height: 1.45; }

.mode-cards { display: flex; gap: 16px; padding: 28px var(--pad) 0; flex-wrap: wrap; }
.mode-card {
  flex: 1 1 300px; max-width: 460px; padding: 22px 24px; border-radius: 20px; text-align: left;
  background: var(--panel); backdrop-filter: blur(24px); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .35s var(--spring), box-shadow .3s, background .3s;
}
.mode-card:hover { transform: translateY(-3px); }
.mode-card.active { background: linear-gradient(150deg, color-mix(in oklab, var(--accent) 35%, rgba(9,12,20,.7)), rgba(9,12,20,.7)); box-shadow: 0 0 0 3px #fff; }
.mode-art { display: flex; align-items: center; gap: 6px; height: 40px; margin-bottom: 14px; }
.mode-art span { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.2); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.mode-card.active .mode-art.squad span:nth-child(-n+3) { background: var(--accent); }
.mode-art.duel span:first-child { background: var(--accent); }
.mode-art b { font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--fg3); margin: 0 6px; }
.mode-name { font-size: 24px; font-weight: 600; }
.mode-desc { font-size: 14px; color: var(--fg3); margin-top: 4px; }

.match-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; padding: 18px var(--pad) 140px; align-items: start; }
.filters { padding: 20px; border-radius: 20px; background: var(--panel); backdrop-filter: blur(24px); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 14px; }
.filter-row { display: flex; gap: 14px; align-items: flex-start; }
.filter-row .filter-label { padding-top: 9px; }
.filter-label { width: 92px; font-size: 13px; font-weight: 600; color: var(--fg3); flex: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; }
.filters .btn.big { align-self: flex-start; margin-top: 4px; }
.results-head { display: flex; justify-content: space-between; align-items: baseline; margin: 26px 2px 12px; font-size: 17px; font-weight: 600; }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.player {
  padding: 18px; border-radius: 18px; background: var(--panel); backdrop-filter: blur(24px); box-shadow: inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column; gap: 12px; animation: rowIn .4s var(--ease) both;
  transition: transform .3s var(--spring), box-shadow .3s;
}
.player:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line2), 0 16px 40px rgba(0,0,0,.35); }
.p-top { display: flex; align-items: center; gap: 12px; }
.p-av { width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 15px; background: #141a28; box-shadow: 0 0 0 2px var(--uc); }
.p-name { font-size: 16px; font-weight: 600; }
.p-uni { font-size: 13px; color: var(--fg3); }
.p-row { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--fg2); }
.p-row span { padding: 4px 8px; border-radius: 8px; background: rgba(255,255,255,.06); }
.p-row span.fit { color: #6ef0a8; background: rgba(110,240,168,.1); }
.player .btn { align-self: stretch; }
.lobby-slots { display: flex; gap: 4px; }
.lobby-slots i { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); }
.lobby-slots i.f { background: var(--uc); }
.lobby-slots i.f.b { background: var(--uc2); }

.leaderboard ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.lb-row { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; padding: 8px 6px; border-radius: 10px; font-size: 14px; }
.lb-row.me { background: rgba(255,255,255,.07); }
.lb-rank { font-weight: 700; color: var(--fg3); font-size: 13px; }
.lb-name { font-weight: 600; display: flex; flex-direction: column; gap: 5px; }
.lb-bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,.08); }
.lb-bar i { display: block; height: 100%; border-radius: 2px; background: var(--uc); }
.lb-pts { font-weight: 600; font-size: 13px; color: var(--fg2); }
.lb-note { font-size: 12.5px; color: var(--fg3); margin: 14px 6px 0; }

/* ---------- Modals ---------- */
.modal-back {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px;
  background: rgba(2,3,6,.6); backdrop-filter: blur(16px); animation: fade .3s var(--ease);
}
.modal-back.out { opacity: 0; transition: opacity .25s; }
@keyframes fade { from { opacity: 0; } }
.modal {
  width: min(620px, 100%); border-radius: 26px; padding: 34px; position: relative; overflow: hidden;
  background: linear-gradient(170deg, rgba(28,34,50,.96), rgba(12,15,24,.97)); box-shadow: 0 0 0 1px var(--line), 0 40px 120px rgba(0,0,0,.6);
  animation: modalIn .5s var(--spring);
}
@keyframes modalIn { from { opacity: 0; transform: scale(.92) translateY(10px); } }
.modal-glow { position: absolute; top: -40%; right: -20%; width: 70%; height: 90%; border-radius: 50%; background: var(--ma, var(--accent)); filter: blur(80px); opacity: .35; pointer-events: none; }
.modal h2 { font-size: 30px; font-weight: 600; letter-spacing: -.02em; margin: 8px 0 8px; position: relative; }
.modal p { color: var(--fg2); margin: 0; font-size: 15px; line-height: 1.5; position: relative; }
.modal .eyebrow { position: relative; }
.feel { display: flex; gap: 8px; margin: 22px 0 6px; position: relative; flex-wrap: wrap; }
.feel .chip { height: 42px; padding: 0 18px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; position: relative; }
.choice {
  text-align: left; padding: 20px; border-radius: 18px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .3s var(--spring), box-shadow .25s, background .2s;
}
.choice:hover { transform: translateY(-3px); box-shadow: 0 0 0 2px #fff; }
.choice.keep { background: linear-gradient(150deg, color-mix(in oklab, var(--ma, var(--accent)) 40%, transparent), rgba(255,255,255,.04)); }
.choice .c-n { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--fg3); }
.choice .c-h { font-size: 19px; font-weight: 600; margin: 6px 0; }
.choice .c-p { font-size: 13.5px; color: var(--fg2); line-height: 1.45; }
.modal-close { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--fg3); z-index: 2; }
.modal-close:hover { background: var(--glass2); color: #fff; }
.modal-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* matchmaking */
.mm { text-align: center; padding: 20px 0 6px; }
.mm-rings { position: relative; width: 180px; height: 180px; margin: 0 auto 22px; }
.mm-rings i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: ring 2.4s var(--ease) infinite; }
.mm-rings i:nth-child(2) { animation-delay: .8s; }
.mm-rings i:nth-child(3) { animation-delay: 1.6s; }
@keyframes ring { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(1.1); opacity: 0; } }
.mm-core { position: absolute; inset: 50px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(150deg, var(--accent), color-mix(in oklab, var(--accent) 40%, #000)); box-shadow: 0 0 60px var(--accent); }
.mm-core svg { width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mm-uni { font-size: 15px; color: var(--fg2); height: 22px; }
.mm-uni b { color: #fff; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin: 26px 0 8px; position: relative; }
.vs-side { text-align: center; }
.vs-av { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; font-size: 26px; font-weight: 700; background: #141a28; box-shadow: 0 0 0 3px var(--uc), 0 0 40px color-mix(in oklab, var(--uc) 50%, transparent); animation: modalIn .6s var(--spring) both; }
.vs-side:last-child .vs-av { animation-delay: .15s; }
.vs-name { font-weight: 600; font-size: 17px; }
.vs-uni { font-size: 13px; color: var(--fg3); }
.vs-mid { font-size: 28px; font-weight: 800; letter-spacing: .06em; color: var(--fg3); }
.deal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; position: relative; }
.deal div { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.06); font-size: 12.5px; color: var(--fg3); }
.deal b { display: block; color: #fff; font-size: 15px; margin-top: 3px; }
.modal-actions { display: flex; gap: 10px; margin-top: 24px; position: relative; flex-wrap: wrap; }

/* ---------- Toasts & trophy ---------- */
.toasts { position: fixed; left: 50%; bottom: 70px; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 18px; border-radius: 14px; font-size: 14px;
  background: rgba(22,27,40,.95); backdrop-filter: blur(20px); box-shadow: 0 0 0 1px var(--line), 0 20px 50px rgba(0,0,0,.5);
  animation: toastIn .45s var(--spring);
}
.toast.out { opacity: 0; transform: translateY(10px); transition: .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.toast button { font-weight: 700; color: var(--accent); filter: brightness(1.4); padding: 4px 8px; border-radius: 8px; }
.toast button:hover { background: var(--glass2); }
.trophy {
  position: fixed; top: 24px; right: 24px; z-index: 90; display: flex; align-items: center; gap: 14px;
  padding: 12px 20px 12px 12px; border-radius: 16px; min-width: 300px;
  background: rgba(20,25,38,.96); box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(0,0,0,.5);
  transform: translateX(130%); transition: transform .6s var(--spring);
}
.trophy.show { transform: none; }
.trophy .t-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(150deg, #ffd66b, #b7791f); box-shadow: 0 0 30px rgba(255,200,80,.45); }
.trophy .t-ico svg { width: 26px; height: 26px; fill: none; stroke: #2a1a00; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trophy .t-h { font-weight: 600; font-size: 15px; }
.trophy .t-p { font-size: 13px; color: var(--fg3); margin-top: 2px; }

/* ---------- Hints ---------- */
.hints { position: fixed; right: var(--pad); bottom: 18px; z-index: 20; display: flex; gap: 18px; font-size: 12.5px; color: var(--fg3); padding: 8px 14px; border-radius: 14px; background: rgba(6,8,14,.72); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--line); }
.hints span { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- VR viewer ---------- */
.vr { position: fixed; inset: 0; z-index: 70; background: #000; overflow: hidden; }
.vr[hidden] { display: none; }
#vrCanvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
#vrCanvas:active { cursor: grabbing; }
.vr-lens { position: absolute; inset: 0; pointer-events: none; display: none; }
.vr.headset .vr-lens {
  display: block;
  background:
    radial-gradient(ellipse 54% 52% at 50% 50%, transparent 80%, #000 100%) left / 50% 100% no-repeat,
    radial-gradient(ellipse 54% 52% at 50% 50%, transparent 80%, #000 100%) right / 50% 100% no-repeat;
}
.vr.headset .vr-lens::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 6px; margin-left: -3px; background: #000; }
.vr-enter { position: absolute; inset: 0; display: grid; place-items: center; z-index: 5; pointer-events: none; background: radial-gradient(circle, color-mix(in oklab, var(--accent) 30%, #000), #000 70%); transition: opacity .9s var(--ease) .2s; }
.vr-enter.done { opacity: 0; }
.vr-enter-ring { position: absolute; width: 120px; height: 120px; border-radius: 50%; border: 2px solid #fff; animation: enterRing 1.1s var(--ease) forwards; }
@keyframes enterRing { to { transform: scale(14); opacity: 0; } }
.vr-enter-text { font-size: 14px; letter-spacing: .4em; text-transform: uppercase; color: var(--fg2); animation: pulse 1s infinite; }
.vr-hud { position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; padding: 26px var(--pad); opacity: 0; transition: opacity .6s .5s; }
.vr.ready .vr-hud { opacity: 1; }
.vr-hud > * { pointer-events: auto; }
.vr-top { display: flex; align-items: flex-start; gap: 24px; }
.vr-exit { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; border-radius: 20px; background: rgba(0,0,0,.45); backdrop-filter: blur(16px); font-size: 14px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.vr-exit svg { width: 20px; height: 20px; }
.vr-exit:hover { background: rgba(255,255,255,.15); }
.vr-title { flex: 1; }
.vr-eyebrow { font-size: 12px; letter-spacing: .2em; font-weight: 600; color: var(--accent); filter: brightness(1.3); }
.vr-name { font-size: 26px; font-weight: 600; margin-top: 4px; text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.vr-teams { display: flex; gap: 14px; margin-top: 6px; font-size: 14px; color: var(--fg2); }
.vr-views { display: flex; gap: 4px; padding: 4px; border-radius: 22px; background: rgba(0,0,0,.45); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--line); }
.vr-views button { height: 34px; padding: 0 14px; border-radius: 17px; font-size: 13px; font-weight: 600; color: var(--fg2); display: inline-flex; align-items: center; gap: 6px; }
.vr-views button svg { width: 18px; height: 18px; }
.vr-views button.active { background: #fff; color: #000; }
.vr-views .swap-btn { display: none; }
.vr.fp .vr-views .swap-btn { display: inline-flex; }
.vr-pov { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 6px 12px; border-radius: 14px; font-size: 12.5px; font-weight: 600; background: rgba(0,0,0,.45); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line); }
.vr-pov i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 1.6s infinite; }
.vr-views button:not(.active):hover { background: rgba(255,255,255,.12); color: #fff; }
.vr-flash {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(.8); pointer-events: none;
  font-size: clamp(40px, 8vw, 110px); font-weight: 700; letter-spacing: .3em; margin-left: .15em;
  color: transparent; -webkit-text-stroke: 1.5px #fff; opacity: 0; text-shadow: 0 0 40px var(--accent);
}
.vr-flash.on { animation: flash 1.6s var(--ease); }
@keyframes flash { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.7); letter-spacing: .1em; } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.1); letter-spacing: .4em; } }
.vr-drag-hint { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); font-size: 13px; color: var(--fg2); padding: 8px 14px; border-radius: 16px; background: rgba(0,0,0,.4); backdrop-filter: blur(10px); pointer-events: none; transition: opacity .6s; }
.vr-drag-hint.gone { opacity: 0; }
.vr-bottom { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.vr-transport { flex: 1; min-width: 300px; display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; border-radius: 30px; background: rgba(0,0,0,.45); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--line); }
.vr-play { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; flex: none; }
.vr-play svg { width: 18px; height: 18px; stroke-width: 2.4; }
.vr-play .i-play { display: none; fill: #000; }
.vr.paused .vr-play .i-play { display: block; }
.vr.paused .vr-play .i-pause { display: none; }
.vr-timeline { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.18); position: relative; cursor: pointer; }
.vr-timeline::before { content: ''; position: absolute; inset: -10px 0; }
.vr-progress { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: #fff; width: 0; }
.vr-marker { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(0,0,0,.5), 0 0 14px var(--accent); }
.vr-time { font-size: 13px; font-weight: 600; color: var(--fg2); min-width: 72px; text-align: right; }
.vr-slow { font-size: 12.5px; font-weight: 700; padding: 7px 12px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line2); color: var(--fg2); }
.vr-slow.on { background: var(--accent); color: #fff; box-shadow: none; }
.vr-cta { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 20px; border-radius: 24px; background: rgba(0,0,0,.5); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--line); }
.vr-cta-eyebrow { font-size: 12px; color: var(--fg3); }
.vr-cta-title { font-size: 16px; font-weight: 600; }
.vr-cta .btn { height: 42px; font-size: 14px; padding: 0 18px; }
.vr.headset .vr-cta, .vr.headset .vr-drag-hint { opacity: .25; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .missions-grid, .match-grid { grid-template-columns: 1fr; }
  .profile-meta { display: none; }
}
@media (max-width: 760px) {
  .topbar { gap: 16px; flex-wrap: wrap; padding-top: 18px; }
  .tabs { gap: 18px; order: 3; width: 100%; }
  .tab { font-size: 17px; }
  .clock { font-size: 16px; }
  .tile { width: 68px; height: 68px; border-radius: 14px; }
  .tile.selected { width: 92px; height: 92px; }
  .tile-label { font-size: 17px; left: calc(100% + 16px); }
  .hero { min-height: 0; padding-top: 4vh; }
  .hero-tag { font-size: 16px; }
  .moment { width: 280px; }
  .hints { display: none; }
  .row-sub { display: none; }
  .choices, .deal { grid-template-columns: 1fr; }
  .modal { padding: 26px 22px; }
  .court-art { width: 140vw; right: -50vw; top: 20vh; opacity: .6; }
  .vr-views button:not(.active):not(.headset-btn) { display: none; }
  .vr-cta-text { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
