/* Public pages: hero, home, posters, cards, rankings, profile, competition detail, auth, news */

/* ---------- 3D cube & hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(900px 420px at 82% 40%, rgba(31, 107, 255, .42), transparent 62%), radial-gradient(700px 400px at 5% 0%, rgba(18, 60, 190, .45), transparent 60%), linear-gradient(180deg, #060b1b, #081230 70%, var(--bg)); color: #eaf0ff; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: -20% -10%; z-index: -1; background: repeating-linear-gradient(115deg, transparent 0 140px, rgba(63, 130, 255, .10) 140px 150px, transparent 150px 330px, rgba(63, 164, 255, .16) 330px 336px); transform: skewX(-8deg); mask-image: linear-gradient(90deg, transparent 20%, #000 70%); }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, var(--bg)); z-index: -1; }
.hero-in { max-width: 1480px; margin: 0 auto; padding: 56px 40px 120px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 20px; min-height: 410px; }
.h-title { font: italic 800 clamp(30px, 4vw, 54px)/1.05 var(--display); letter-spacing: -.02em; margin: 0; text-transform: uppercase; }
.h-title .tca { font-size: 1.18em; background: linear-gradient(180deg, #4d9aff, #1f6bff); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 4px; }
.h-tag { font: italic 700 clamp(26px, 3.2vw, 42px)/1.15 var(--display); margin: 8px 0 0; color: #fff; }
.h-line { display: block; width: 140px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #2f7dff, transparent); margin: 6px 0 22px; transform: rotate(-1deg); }
.h-desc { font-size: 18px; max-width: 560px; color: #dbe5ff; margin-bottom: 26px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; } .hero .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .5); background: rgba(6, 12, 30, .45); }
.hero-cube { display: grid; place-items: center; min-height: 300px; }
.cube3d { --s: 232px; position: relative; width: var(--s); height: var(--s); perspective: 1000px; cursor: grab; user-select: none; }
.cube3d:active { cursor: grabbing; }
.cube { position: absolute; inset: 0; transform-style: preserve-3d; }
.face { position: absolute; inset: 0; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); gap: 5px; padding: 5px; background: #04070e; border-radius: 12px; backface-visibility: hidden; }
.face.front { transform: translateZ(calc(var(--s) / 2)); } .face.back { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.face.right { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); } .face.left { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.face.top { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); } .face.bottom { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
.st { border-radius: 8px; display: block; box-shadow: inset 0 0 14px rgba(255, 255, 255, .28), inset 0 -8px 12px rgba(0, 0, 0, .28); background-image: linear-gradient(135deg, rgba(255, 255, 255, .45), transparent 48%, rgba(0, 0, 0, .12)); }
.cube3d .glow { position: absolute; left: 50%; top: 50%; width: calc(var(--s) * 2.1); height: calc(var(--s) * 2.1); transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(31, 107, 255, .5), transparent 70%); filter: blur(10px); pointer-events: none; }

/* ---------- home */
.home-wrap { max-width: 1480px; margin: -78px auto 0; padding: 0 24px 40px; position: relative; display: flex; flex-direction: column; gap: 20px; }
.home-1 { display: grid; grid-template-columns: 1.22fr 1fr .78fr; gap: 20px; } .home-2 { display: grid; grid-template-columns: 1.05fr 1fr 1.05fr; gap: 20px; }
.home .card { background: linear-gradient(180deg, rgba(14, 26, 54, .86), rgba(8, 15, 34, .92)); min-width: 0; }
:root[data-theme="light"] .home .card { background: #fff; }
.home .card-h { padding-top: 18px; } .home .card-b { padding-top: 12px; }
.feat { display: grid; grid-template-columns: 238px 1fr; gap: 20px; align-items: stretch; }
.feat-poster { display: block; } .feat-b { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.feat-b h3 { font-size: 27px; font-weight: 800; line-height: 1.15; margin: 4px 0 4px; } .feat-b h3 a { color: var(--text); } .feat-b .btn { margin-top: auto; }
.meta { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 14.5px; } .meta li { display: flex; gap: 10px; align-items: flex-start; } .meta .icon { color: var(--muted); margin-top: 2px; } .meta .k { color: var(--accent2); }
.also { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); } .also-i { display: flex; flex-direction: column; font-size: 13px; background: var(--tile); border-radius: 10px; padding: 8px 12px; color: var(--text); } .also-i:hover { text-decoration: none; background: var(--accent-soft); }
.poster { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1.02; background: #07102a; border: 1px solid var(--line2); display: flex; flex-direction: column; justify-content: flex-end; padding: 6%; isolation: isolate; width: 100%; container-type: inline-size; }
.poster .p-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 80% 0%, #2a7dff 0%, transparent 55%), radial-gradient(90% 60% at 0% 100%, #0b3ad0 0%, transparent 60%), linear-gradient(160deg, #0a1b55, #050b1f); }
.poster .p-bg::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(120deg, transparent 0 38px, rgba(130, 180, 255, .13) 38px 40px); }
.poster > svg { position: absolute; top: 6%; left: 6%; width: 30%; height: auto; }
.poster .p-txt { display: flex; flex-direction: column; color: #fff; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 11cqw; line-height: 1; text-transform: uppercase; text-shadow: 0 2px 14px rgba(0, 0, 0, .5); }
.poster .p-txt b { font-size: 1.9em; margin-bottom: 4px; } .poster.img { padding: 0; } .poster.img img { width: 100%; height: 100%; object-fit: cover; }
.ann-list { display: flex; flex-direction: column; gap: 0; padding-top: 6px !important; }
.ann { display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text); } .ann:last-child { border: 0; } .ann:hover { text-decoration: none; } .ann:hover b { color: var(--accent2); }
.thumb { width: 110px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--panel3); } .thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.gen { display: grid; place-items: center; color: #fff; background: radial-gradient(100% 120% at 20% 0, #3a86ff, transparent 60%), linear-gradient(135deg, #1a1f6b, #0a1f5e); }
.ann-t { display: flex; flex-direction: column; min-width: 0; gap: 1px; font-size: 13.5px; } .ann-t b { font-size: 15px; line-height: 1.25; } .ann-t > span { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.q { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 92px; padding: 10px 4px; border-radius: 12px; background: var(--tile); border: 1px solid var(--line); color: var(--text); font-size: 13px; font-weight: 600; transition: .15s; } .q:hover { text-decoration: none; background: var(--accent-soft); transform: translateY(-2px); border-color: var(--line2); }
.compact td, .compact th { padding: 9px 8px; font-size: 13.5px; } .compact th { background: transparent; text-transform: none; font-size: 12.5px; letter-spacing: 0; }
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .fp { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 6px 4px; color: var(--text); border-radius: 12px; font-size: 14px; } .fp:hover { text-decoration: none; background: var(--tile); } .fp + .fp { border-left: 1px solid var(--line); }
.stats4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; } .sx { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 4px; background: var(--tile); border: 1px solid var(--line); border-radius: 12px; } .sx b { font-size: 26px; font-weight: 800; line-height: 1.1; } .sx small { color: var(--muted); }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 6px 4px 12px; } .sec-head h2 { margin: 0; font-size: 22px; } .more { font-weight: 600; font-size: 13px; display: inline-flex; gap: 4px; align-items: center; }
.news-card { display: flex; flex-direction: column; color: var(--text); overflow: hidden; } .news-card:hover { text-decoration: none; border-color: var(--line2); } .news-card .thumb { width: 100%; height: 150px; border-radius: 0; } .nc-b { padding: 16px; display: flex; flex-direction: column; gap: 6px; } .nc-b h3 { margin: 4px 0 0; font-size: 17px; }

@media (max-width: 1280px) { .home-1 { grid-template-columns: 1.3fr 1fr; } .home-1 .c-quick { grid-column: 1 / -1; } .home-2 { grid-template-columns: 1fr 1fr; } .home-2 .c-stats { grid-column: 1 / -1; } .quick { grid-template-columns: repeat(8, 1fr); } }
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; padding: 12px 18px 92px; min-height: 0; gap: 0; position: relative; }
  .hero-text { position: relative; z-index: 2; max-width: 100%; } .h-title, .h-tag, .h-desc { max-width: 66%; } .h-title { font-size: 26px; } .h-tag { font-size: 19px; } .h-desc { font-size: 15px; margin-bottom: 18px; max-width: 280px; }
  .hero-cube { position: absolute; right: -34px; top: 6px; min-height: 0; z-index: 1; } .cube3d { --s: 150px; }
  .hero-btns { gap: 10px; width: calc(100vw - 36px); position: relative; z-index: 2; margin-top: 8px; } .hero-btns .btn { padding: 11px 16px; font-size: 14px; } .hero-btns .btn.primary { width: calc(100% - 0px); max-width: 410px; justify-content: center; padding: 15px; font-size: 17px; }
  .home-wrap { margin-top: -66px; padding: 0 14px 28px; gap: 14px; } .home-1, .home-2 { grid-template-columns: 1fr; gap: 14px; } .home-2 .c-stats { grid-column: auto; }
  .feat { grid-template-columns: 120px 1fr; gap: 14px; } .feat-b h3 { font-size: 19px; } .feat-b .meta { font-size: 13px; gap: 5px; } .feat-b .btn { padding: 11px; }
  .ann { grid-template-columns: 96px 1fr; } .ann > .badge { grid-column: 2; justify-self: start; } .thumb { width: 96px; height: 70px; }
  .quick { grid-template-columns: repeat(4, 1fr); gap: 8px; } .q { min-height: 78px; font-size: 12px; } .q:nth-child(n+5) { display: none; }
  .stats4 .sx b { font-size: 21px; } .compact { font-size: 13px; }
  .home .card-h h2 { font-size: 17px; }
}
@media (max-width: 480px) { .feat { grid-template-columns: 112px 1fr; } .feats { grid-template-columns: 1fr; } .fp + .fp { border: 0; border-top: 1px solid var(--line); } }

/* ---------- shared page bits */
.page.narrow { max-width: 860px; } .back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 14px; color: var(--muted); }
.subnav { display: flex; gap: 6px; margin-bottom: 18px; overflow-x: auto; } .subnav a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line2); color: var(--muted); font-weight: 600; font-size: 13.5px; white-space: nowrap; } .subnav a:hover { text-decoration: none; color: var(--text); } .subnav a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.big-ico { color: var(--accent2); display: inline-block; margin-bottom: 6px; }
.tgrid { grid-template-columns: repeat(3, 1fr); } .pgrid { grid-template-columns: repeat(3, 1fr); }
.tcard { overflow: hidden; display: flex; flex-direction: column; } .tcard .poster { border-radius: 0; aspect-ratio: 16 / 9; border: 0; padding: 4% 5%; } .tcard .poster > svg { width: 14%; } .tcard .poster .p-txt { flex-direction: row; flex-wrap: wrap; gap: 0 .35em; font-size: 7cqw; } .tcard .poster .p-txt b { font-size: 1em; margin: 0; }
.tc-b { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; } .tc-b h3 { margin: 0; font-size: 18px; } .tc-b h3 a { color: var(--text); } .tc-b .btn { margin-top: auto; } .tc-b .meta { font-size: 13.5px; }
.pcard { display: flex; gap: 14px; padding: 16px; color: var(--text); align-items: center; } .pcard:hover { text-decoration: none; border-color: var(--line2); transform: translateY(-2px); } .pc-b { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pc-stats { display: flex; gap: 16px; font-size: 13px; } .pc-stats span { display: flex; flex-direction: column; } .pc-stats small { color: var(--muted); font-size: 11px; } .pc-stats b { font-variant-numeric: tabular-nums; }
.pill-tca.lg { font-size: 14px; padding: 3px 10px; }

/* ---------- auth */
.auth { display: grid; place-items: start center; padding-top: 48px; } .auth-card { width: min(440px, 100%); padding: 32px; } .auth-card h1 { font: italic 800 28px var(--display); margin: 8px 0 4px; } .auth-logo { display: flex; } .auth-card form { margin: 18px 0; }
.dev-note { background: var(--warn-soft); border-color: var(--warn); font-size: 13px; word-break: break-all; }

/* ---------- competition detail */
.cdetail { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; } .cd-side { position: sticky; top: calc(var(--nav-h) + 16px); }
.chead { display: grid; grid-template-columns: 200px 1fr; gap: 22px; margin-bottom: 18px; } .ctitle { font: italic 800 30px/1.1 var(--display); margin: 4px 0; }
.reg-panel { display: flex; flex-direction: column; gap: 12px; } .cap .bar { height: 8px; border-radius: 9px; background: var(--panel3); overflow: hidden; margin-bottom: 4px; } .cap .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; } .cp { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; color: var(--text); } .cp:hover { background: var(--tile); text-decoration: none; } .cp div { display: flex; flex-direction: column; min-width: 0; }
.att { color: var(--muted); }

/* ---------- rankings */
.ev-bar { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 12px; scrollbar-width: thin; } .ev { flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel2); font-weight: 600; font-size: 13px; color: var(--muted); } .ev:hover { color: var(--text); } .ev.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.seg { display: inline-flex; background: var(--panel2); border: 1px solid var(--line2); border-radius: 10px; padding: 3px; } .seg button { border: 0; background: none; padding: 7px 14px; border-radius: 8px; font-weight: 600; font-size: 13.5px; color: var(--muted); } .seg button.on { background: var(--accent); color: #fff; } .seg button[disabled] { opacity: .4; cursor: not-allowed; }
.rk .toolbar { margin: 14px 0; }

/* ---------- profile */
.phead { display: flex; gap: 22px; align-items: center; margin-bottom: 16px; } .ph-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; } .ph-b h1 { font: italic 800 30px var(--display); margin: 0; } .bio { margin: 6px 0 0; max-width: 70ch; }
.grid.tiles { margin-bottom: 8px; grid-template-columns: repeat(6, 1fr); }
.ach { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; } .ach .a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; background: var(--tile); border-radius: 12px; border: 1px solid var(--line); } .ach .a div { display: flex; flex-direction: column; } .ai { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--gold); flex: none; }
.chart { width: 100%; height: auto; }

/* ---------- news & events */
.post { display: flex; flex-direction: column; gap: 10px; } .post h1 { font: italic 800 30px/1.15 var(--display); margin: 6px 0 0; } .post-img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 12px; }
.evcard { display: flex; flex-direction: column; gap: 10px; } .evcard h3 { margin: 0; } .recs { display: flex; flex-direction: column; gap: 8px; flex: 1; } .recs b { font-size: 18px; }
@media (max-width: 1100px) { .tgrid, .pgrid { grid-template-columns: repeat(2, 1fr); } .cdetail { grid-template-columns: 1fr; } .cd-side { position: static; order: -1; } .grid.tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .tgrid, .pgrid { grid-template-columns: 1fr; } .chead { grid-template-columns: 1fr; } .cposter { max-width: 220px; } .ctitle { font-size: 24px; } .phead { flex-direction: column; text-align: center; align-items: center; } .ph-b .row { justify-content: center; } .auth { padding-top: 16px; } .auth-card { padding: 22px; } .grid.tiles { grid-template-columns: repeat(2, 1fr); } .tbl th, .tbl td { padding: 8px 8px; } }
