/* NEO theme part 2: home hero, stage, board, cards. */
.home .arena-hero { background: transparent; }
.home .arena-hero::before { background:
  radial-gradient(ellipse at 78% 60%, #c6ff3d14, transparent 55%),
  radial-gradient(ellipse at 15% 20%, #ff3d7f18, transparent 50%); }
.hero-kicker { color: var(--accent); letter-spacing: .3em; }
.hero-kicker::before { background: var(--pink); width: 28px; transform: none; border-radius: 3px; }
.hero-latin { color: transparent; -webkit-text-stroke: 2px var(--txt); position: relative; display: inline-block; }
.hero-latin::after { content: attr(data-text); position: absolute; left: 0; top: 0; color: var(--accent); -webkit-text-stroke: 0;
  clip-path: inset(0 100% 0 0); animation: fill-in 1.4s .4s cubic-bezier(.7,0,.2,1) forwards; }
@keyframes fill-in { to { clip-path: inset(0 0 0 0); } }
.hero-cn { position: relative; }
.hero-cn::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .08em; height: .22em; z-index: -1; background: var(--pink); transform: skewX(-12deg) scaleX(0); transform-origin: left; animation: mark 0.7s 1.2s cubic-bezier(.7,0,.2,1) forwards; }
@keyframes mark { to { transform: skewX(-12deg) scaleX(1); } }
.hero-stats dd { color: var(--accent); }
.hero-stats { border-color: #ffffff1c; }

.scene-shell { border-radius: 22px; overflow: hidden; border: 1.5px solid #ffffff1f; background: #101013; box-shadow: 10px 10px 0 var(--pink), 0 30px 80px #000a;
  transform-style: preserve-3d; transition: transform .2s ease-out, box-shadow .3s; }
.scene-display { background: radial-gradient(ellipse at 60% 55%, #2a3a10 0, #15180f 40%, #0d0d10 78%); }
.scene-display::before, .scene-display::after { border-color: var(--accent); }
.scene-hint { border-radius: 99px; background: #0a0a0cbb; }
.scene-link { border-radius: 99px; background: var(--accent); color: #0a0a0c; border: 0; }
.scene-link span { color: #0a0a0c; }
.scene-link:hover { background: var(--pink); color: #fff; }
.scene-mode { background: #111114; }
.scene-mode[aria-pressed="true"] { background: #1b2310; box-shadow: inset 0 3px var(--accent); }
.scene-mode:hover { background: #1a1a20; }

/* 跑马灯 */
.marquee { overflow: hidden; border-block: 1.5px solid #0a0a0c; background: var(--accent); color: #0a0a0c; transform: rotate(-1.4deg); margin: 10px -2vw; }
.marquee + .marquee { background: var(--pink); color: #fff; transform: rotate(1.2deg); margin-top: -34px; }
.marquee-track { display: flex; width: max-content; animation: marq 26s linear infinite; }
.marquee + .marquee .marquee-track { animation-direction: reverse; }
.marquee span { padding: 10px 22px; font: 900 18px/1 var(--display); letter-spacing: .04em; white-space: nowrap; }
.marquee span::after { content: "✦"; margin-left: 44px; }
@keyframes marq { to { transform: translateX(-50%); } }

/* 榜单 */
.rank-section { background: transparent; border: 0; }
.ranking-heading h2::before { background: var(--pink); border-radius: 3px; transform: rotate(12deg); }
.scoreboard { border-radius: 22px; overflow: hidden; border: 1.5px solid var(--line-strong); background: #111114e6; backdrop-filter: blur(8px); }
.home .mode-tabs .tab { background: transparent; }
.home .mode-tabs .tab.active { background: var(--accent); color: #0a0a0c; box-shadow: none; }
.home .mode-tabs .tab:hover:not(.active) { background: #1c1c22; }
.home .board, .rank-row, .podium, .rank-columns { background: transparent; }
.board-filters select, .board-search { border-radius: 99px; background: #0c0c0f; }
.board-search:focus-within { outline-color: var(--accent); }
.podium-player { border-radius: 18px; transform-style: preserve-3d; overflow: hidden; }
.podium-player.place-1 { --metal: #c6ff3d; --metal-edge: #c6ff3d; --podium-ground: #1c2410; }
.podium-player.place-2 { --metal: #3dd9ff; --metal-edge: #3dd9ff; --podium-ground: #0f1d24; }
.podium-player.place-3 { --metal: #ff3d7f; --metal-edge: #ff3d7f; --podium-ground: #24101a; }
.podium-player::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--gx,50%) var(--gy,50%), #ffffff26, transparent 45%); }
.podium-player:hover::before { opacity: 1; }
.podium-player::after { width: 46px; border-radius: 3px; }
.rank-row { transition: background .2s, transform .2s; }
.rank-row:hover, .rank-row:focus-visible { background: #1a1a20; box-shadow: inset 4px 0 var(--accent); transform: translateX(4px); }
.home .rank-row .rank-num { color: var(--dim); }
.home .score-cell b { color: var(--accent); }
.arena .tier-tile { border-radius: 10px; background: #1a1a20; border-color: #2e2e36; }
.arena .tier-tile:not(.none):hover { border-color: var(--gc, var(--accent)); }
.arena .tier-badge.pulse { animation: aplus 1.6s ease-in-out infinite; }
@keyframes aplus { 50% { text-shadow: 0 0 12px var(--gc); } }
.arena .avatar { border-radius: 8px; }
.cm-mini { background: var(--pink); color: #fff; border-radius: 4px; }
.arena .region-tag { border-radius: 99px; background: #18181d; }

/* 其他页卡片 */
.arena :is(.panel, .me-card, .mode-card, .profile-hero, .tester-card, .auth-card, .modal, .announce-card) { border-radius: 20px; background: #121216e8; border: 1.5px solid var(--line); backdrop-filter: blur(8px); }
.arena :is(.mode-card, .tester-card) { transform-style: preserve-3d; transition: transform .2s ease-out, border-color .2s, box-shadow .2s; }
.arena :is(.mode-card, .tester-card):hover { border-color: var(--accent); box-shadow: 6px 6px 0 var(--pink); }
.arena .tester-card { border-top: 1.5px solid var(--line); }
.arena .profile-hero { background: linear-gradient(120deg, #1a2410, #121216 60%); }
.arena .pf-skin { background: radial-gradient(ellipse at 50% 50%, #2a3a10, #101013 70%); }
.pf-label { color: var(--pink); }
.pf-stats dd { color: var(--accent); }
.arena .mc-bar i { background: linear-gradient(90deg, var(--accent), var(--sky)); }
.arena .auth-aside { border-radius: 20px 0 0 20px; background: radial-gradient(ellipse at 60% 37%, #2c3d12, #121216 70%); border-color: var(--line); }
.arena .auth-card { border-radius: 0 20px 20px 0; }
.auth-aside .auth-mark { background: var(--accent); border: 0; border-radius: 24px; box-shadow: 14px 14px 0 var(--pink), 28px 28px 0 #3dd9ff55; animation: mark-spin 6s ease-in-out infinite; }
@keyframes mark-spin { 50% { transform: translateX(-50%) perspective(460px) rotateX(-12deg) rotateY(24deg) rotateZ(6deg); } }
.arena .auth-tab.active, .arena .admin-tab.active, .arena .region-pick input:checked + label { background: var(--accent); color: #0a0a0c; box-shadow: none; border-color: var(--accent); }
.arena .auth-switch a { color: var(--accent); }
.rules-dialog { border-radius: 20px; border-top: 1.5px solid var(--accent); }
.arena .pg-btn { border-radius: 99px; }
.arena .footer { background: #08080a; }

/* 滚动出现 */
.reveal { opacity: 0; transform: translateY(40px) rotateX(18deg); transform-origin: 50% 100%; transition: opacity .8s, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
body.fx-off .reveal { opacity: 1; transform: none; }
body.fx-off #fx3dBg, body.fx-off .fx-spot { display: none; }
@media (max-width: 735px) { .arena .auth-card { border-radius: 20px; } .marquee span { font-size: 14px; } .scene-shell { box-shadow: 6px 6px 0 var(--pink); } }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } #fx3dBg, .fx-spot, .fx-grain { display: none; } }
