/* NarvaMC website — built like the NarvaClient launcher: a fixed gold-edged side menu with a glowing
   hex field, a golden-sky stage, gold-framed cards, the 3D PLAY button, card packs and medals,
   a start-up splash and animated page changes. */
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .28s ease both; }
::view-transition-new(root) { animation: vtIn .45s cubic-bezier(.2, .8, .2, 1) both; }
::view-transition-group(side) { animation: none; }
@keyframes vtOut { to { opacity: 0; filter: blur(6px); transform: scale(.985); } }
@keyframes vtIn { from { opacity: 0; filter: blur(8px); transform: translateY(14px); } }

:root {
  color-scheme: dark;
  --night: #0c0805; --panel: #1e140c; --panel2: #291c11; --panel3: #352415;
  --edge: rgba(238, 172, 76, .22); --edge2: rgba(255, 205, 120, .5);
  --ink: #f6efe8; --cream: #f5e9d3; --dim: #c9b294; --faint: #8e7c62;
  --ember: #f5a23a; --ember2: #ffcf7a; --gold: #ffd166; --gold2: #ffd98a;
  --grass: #7ccf4d; --sky: #5fc6ff; --red: #ff5a6a;
  --f-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --f-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --radius: 14px; --side: 252px;
  --shadow: 0 24px 60px -28px #000;
  --frame: 0 0 0 1px rgba(0, 0, 0, .55), 0 0 14px rgba(255, 160, 40, .22), 0 14px 34px -14px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 232, 170, .28), inset 0 0 22px rgba(255, 150, 40, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; padding-left: var(--side); background: var(--night); color: var(--ink); font: 15px/1.6 var(--f-body); overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background: linear-gradient(180deg, rgba(12, 8, 5, .45) 0%, rgba(12, 8, 5, .86) 42%, var(--night) 80%), url(/img/gokyuzu.jpg) center 30% / cover no-repeat; }
canvas.sky-embers { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
a { color: var(--ember2); text-decoration: none; }
a:hover { color: #fff0c8; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ember2); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
::selection { background: rgba(255, 190, 80, .35); }
::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-track { background: #0c0805; }
::-webkit-scrollbar-thumb { background: linear-gradient(#b8741f, #6a3509); border-radius: 10px; border: 2px solid #0c0805; }
.wrap { width: min(1180px, 100% - 56px); margin-inline: auto; }
main { flex: 1; }
.muted { color: var(--dim); } .faint { color: var(--faint); } .center { text-align: center; }

/* ================= SIDE MENU (launcher sidebar) ================= */
.side { position: fixed; left: 0; top: 0; bottom: 0; width: var(--side); z-index: 60; display: flex; flex-direction: column; view-transition-name: side;
  background: linear-gradient(90deg, rgba(12, 8, 5, .97), rgba(20, 12, 7, .9)); backdrop-filter: blur(12px); }
.side::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 1px; box-shadow: 0 0 10px rgba(255, 170, 50, .7);
  background: linear-gradient(180deg, rgba(255, 190, 90, .15), rgba(255, 200, 110, .9) 18%, rgba(255, 180, 70, .35) 50%, rgba(255, 200, 110, .75) 80%, rgba(255, 190, 90, .15)); }
.side .hexf { position: absolute; left: 0; bottom: 0; width: 100%; height: 320px; pointer-events: none; }
.hexf path { fill: none; stroke: #e0a040; stroke-width: 1; }
.hexf path.lit { fill: url(#hexfill); stroke: #ffd98a; stroke-width: 1.3; filter: url(#hexglow); }
.hexf path.wave { animation: hexwave 2.4s ease-in-out; }
@keyframes hexwave { 0%, 100% { fill: rgba(255, 190, 80, 0); stroke: #e0a040; } 40% { fill: rgba(255, 200, 90, .4); stroke: #ffe2a0; } }
.side-top { position: relative; padding: 18px 18px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.slogo { position: relative; width: 96px; height: 96px; display: grid; place-items: center; animation: crestBob 5s ease-in-out infinite; }
@keyframes crestBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.slogo img { position: relative; width: 88px; animation: lgpulse 3s ease-in-out infinite; transition: transform .5s cubic-bezier(.2, .9, .25, 1.3); }
.side-top:hover .slogo img { transform: rotate(-8deg) scale(1.1); }
.slogo .sglow { position: absolute; inset: -6px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 170, 50, .35), transparent 65%); animation: pulse 3s ease-in-out infinite; }
@keyframes lgpulse { 0%, 100% { filter: drop-shadow(0 0 5px #ffc85a) drop-shadow(0 0 12px rgba(255, 150, 40, .6)); } 50% { filter: drop-shadow(0 0 9px #ffe2a0) drop-shadow(0 0 22px rgba(255, 170, 50, 1)); } }
.side-name { font: 900 16px var(--f-display); letter-spacing: .2em; color: #fff; margin-top: 6px; }
.side-name em { font-style: normal; color: var(--gold); text-shadow: 0 0 12px rgba(255, 180, 60, .7); }
.side-ver { font-size: 10px; font-weight: 800; letter-spacing: .14em; color: var(--gold); border: 1px solid rgba(255, 191, 77, .7); border-radius: 5px; padding: 0 7px; line-height: 18px; background: rgba(255, 170, 50, .08); margin-top: 4px; }
.links { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 0; }
.links a { position: relative; display: flex; align-items: center; gap: 13px; height: 42px; padding-left: 15px; font-size: 15px; font-weight: 600; color: #eadfcc; border-radius: 9px; border: 1px solid transparent; transition: background .25s, transform .25s, color .25s; }
.links a svg { width: 20px; height: 20px; fill: #efe3cc; flex: none; transition: transform .3s, fill .3s; }
.links a:hover { color: #fff; background: rgba(255, 180, 70, .08); transform: translateX(4px); }
.links a:hover svg { fill: #ffd27a; transform: scale(1.15); }
.links a.on { color: #fff; background: linear-gradient(90deg, rgba(150, 100, 45, .55), rgba(90, 58, 26, .45)); border-color: rgba(255, 205, 120, .55); box-shadow: 0 0 14px rgba(255, 170, 50, .25), inset 0 1px 0 rgba(255, 235, 180, .35); }
.links a.on svg { fill: #ffd27a; filter: drop-shadow(0 0 5px #ffb43a); }
.links a.on::after { content: ""; position: absolute; right: -15px; top: 7px; bottom: 7px; width: 3px; border-radius: 3px; background: #ffd27a; box-shadow: 0 0 8px #ffb43a, 0 0 16px #ff9a2e; }
.side-bottom { position: relative; margin-top: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.srv { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; cursor: pointer; text-align: left; width: 100%;
  background: linear-gradient(180deg, rgba(52, 32, 14, .85), rgba(16, 10, 7, .92)); border: 1px solid rgba(238, 172, 76, .75); box-shadow: var(--frame); transition: transform .2s, box-shadow .2s; }
.srv:hover { transform: translateY(-2px); box-shadow: var(--frame), 0 0 20px rgba(255, 170, 50, .4); }
.srv i { width: 9px; height: 9px; border-radius: 50%; flex: none; background: #43d96b; box-shadow: 0 0 8px #43d96b; animation: blink 2s ease-in-out infinite; }
.srv.off i { background: var(--red); box-shadow: 0 0 8px var(--red); }
.srv b { display: block; font-size: 13.5px; color: #fff; line-height: 1.25; }
.srv small { display: block; font-size: 11.5px; color: var(--dim); }
@keyframes blink { 50% { opacity: .35; } }
.acct { display: flex; gap: 8px; }
.acct .btn { flex: 1; }
.user-btn { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 12px; cursor: pointer; font-weight: 700; font-size: 14px; text-align: left;
  background: rgba(28, 19, 11, .9); border: 1px solid rgba(255, 205, 120, .45); }
.user-btn img { width: 34px; height: 34px; border-radius: 7px; image-rendering: pixelated; box-shadow: 0 0 0 1.5px rgba(255, 200, 110, .7); }
.user-btn small { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #d9ead0; font-weight: 600; }
.user-btn small::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #43d96b; box-shadow: 0 0 6px #43d96b; }
.menu { position: absolute; bottom: calc(100% + 8px); left: 14px; right: 14px; padding: 6px; border-radius: 14px; z-index: 5;
  background: linear-gradient(180deg, rgba(52, 32, 14, .98), rgba(16, 10, 7, .99)); border: 1px solid rgba(238, 172, 76, .8); box-shadow: var(--frame); animation: rise .25s ease both; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 9px; color: var(--ink); background: none; border: 0; cursor: pointer; font-size: 14px; }
.menu a:hover, .menu button:hover { background: rgba(255, 180, 70, .12); }
/* mobile top bar */
.mbar { display: none; }
.scrim { display: none; }

/* ================= SPLASH (launcher start-up window) ================= */
.splash { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 45%, rgba(60, 34, 12, .96), #080503 70%); transition: opacity .6s ease, visibility .6s; }
.splash.out { opacity: 0; visibility: hidden; }
.splash .st { position: relative; width: 220px; height: 220px; }
.splash .glow { position: absolute; inset: -30px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 162, 58, .5), transparent 66%); animation: pulse 2.4s ease-in-out infinite; }
.splash .ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0deg, rgba(245, 162, 58, .95) 70deg, #ffd8a8 92deg, transparent 130deg);
  -webkit-mask: radial-gradient(circle, transparent 104px, #000 105px, #000 109px, transparent 110px); mask: radial-gradient(circle, transparent 104px, #000 105px, #000 109px, transparent 110px); animation: spin 1.4s linear infinite; filter: drop-shadow(0 0 6px #f5a23a); }
.splash .ring2 { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(245, 162, 58, .18); }
.splash img { position: absolute; left: 50%; top: 50%; width: 150px; margin: -75px 0 0 -75px; animation: reveal 1.2s cubic-bezier(.2, .9, .2, 1) .1s both; }
.splash .tt { position: absolute; left: -100px; right: -100px; top: 240px; text-align: center; font: 900 24px var(--f-display); letter-spacing: .24em; animation: rise .7s .45s both; }
.splash .tt em { font-style: normal; color: var(--ember); }
.splash .bar { position: absolute; left: 10px; right: 10px; top: 290px; height: 5px; border-radius: 3px; background: #261a10; overflow: hidden; }
.splash .bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 3px; background: linear-gradient(90deg, #b8701a, #f5a23a 70%, #ffe2a0); box-shadow: 0 0 12px #f5a23a; animation: fill 1.3s cubic-bezier(.3, .7, .3, 1) .2s forwards; }
@keyframes fill { to { width: 100%; } }
@keyframes reveal { 0% { opacity: 0; transform: scale(.6) rotate(-8deg); filter: blur(14px) brightness(3); } 60% { opacity: 1; filter: blur(0) brightness(1.4); } 100% { transform: none; filter: none; } }
@keyframes pulse { 50% { transform: scale(1.12); opacity: .65; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ================= BUTTONS / INPUTS ================= */
.btn { white-space: nowrap; position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 22px;
  border-radius: 12px; border: 1px solid rgba(238, 172, 76, .6); background: linear-gradient(180deg, rgba(60, 38, 18, .92), rgba(26, 16, 9, .96)); color: var(--cream);
  font: 800 14px var(--f-body); cursor: pointer; transition: transform .15s, filter .15s, box-shadow .2s; box-shadow: inset 0 1px 0 rgba(255, 232, 170, .25), 0 6px 18px -8px rgba(0, 0, 0, .8); }
.btn:hover { transform: translateY(-2px); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 232, 170, .35), 0 0 16px rgba(255, 170, 50, .35), 0 10px 22px -8px rgba(0, 0, 0, .8); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.primary { color: #fff4c8; border: 2px solid #ffcf66; text-shadow: 0 2px 0 #4a1f04, 0 0 10px rgba(255, 180, 60, .6); margin-bottom: 7px;
  background: radial-gradient(ellipse 80% 90% at 50% 40%, #d8761a 0%, #8a3c0b 55%, #3a1806 100%); font-family: var(--f-display); letter-spacing: .06em;
  box-shadow: 0 0 0 1px #6a3509, 0 5px 0 #5a2a07, 0 7px 0 #2a1003, 0 0 22px rgba(255, 150, 40, .55), 0 14px 26px -8px rgba(0, 0, 0, .8), inset 0 0 0 3px rgba(36, 16, 4, .6), inset 0 0 20px rgba(255, 160, 50, .5); }
.btn.primary::before { content: ""; position: absolute; left: 6px; right: 6px; top: 4px; height: 42%; border-radius: 8px 8px 40% 40% / 8px 8px 14px 14px; pointer-events: none; background: linear-gradient(180deg, rgba(255, 240, 200, .3), rgba(255, 220, 150, .03)); }
.btn.primary::after { content: ""; position: absolute; top: -10px; bottom: -10px; width: 60px; left: -100px; transform: skewX(-18deg); pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255, 245, 210, .55), transparent); animation: swipe 3.4s ease-in-out infinite 1s; }
.btn.primary:hover { filter: brightness(1.12); }
.btn.primary:active { transform: translateY(5px); box-shadow: 0 0 0 1px #6a3509, 0 1px 0 #5a2a07, 0 0 22px rgba(255, 150, 40, .55), inset 0 0 0 3px rgba(36, 16, 4, .6), inset 0 0 20px rgba(255, 160, 50, .5); }
@keyframes swipe { 0% { left: -100px; } 45%, 100% { left: 115%; } }
.btn.discord { background: linear-gradient(180deg, #6a76ff, #4752c4); border: 1px solid #8a94ff; color: #fff; box-shadow: 0 0 18px rgba(88, 101, 242, .35), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn.small { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn.small.primary { margin-bottom: 5px; box-shadow: 0 0 0 1px #6a3509, 0 4px 0 #5a2a07, 0 0 14px rgba(255, 150, 40, .45), inset 0 0 14px rgba(255, 160, 50, .45); }
.btn.danger { border-color: rgba(255, 90, 106, .55); color: #ffb3bc; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font: 800 11px var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.input, select.input, textarea.input { width: 100%; height: 46px; padding: 0 14px; border-radius: 11px; background: rgba(12, 8, 5, .85); border: 1px solid rgba(238, 172, 76, .3); color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
textarea.input { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; }
.input:focus { border-color: #ffcf66; box-shadow: 0 0 0 3px rgba(255, 180, 60, .18), 0 0 16px rgba(255, 170, 50, .25); }
.check { display: flex; align-items: center; gap: 9px; color: var(--dim); font-size: 14px; }
.check input { accent-color: var(--ember); width: 16px; height: 16px; }
.alert { padding: 11px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 14px; }
.alert.err { background: rgba(255, 90, 106, .12); border: 1px solid rgba(255, 90, 106, .4); color: #ffb3bc; }
.alert.ok { background: rgba(85, 214, 138, .1); border: 1px solid rgba(85, 214, 138, .35); color: #9fe3b0; }

/* ================= CARDS: gold frame + mouse spotlight ================= */
.card { position: relative; border-radius: var(--radius); padding: 22px; background: linear-gradient(180deg, rgba(52, 32, 14, .84), rgba(16, 10, 7, .93));
  border: 1px solid rgba(238, 172, 76, .6); box-shadow: var(--frame); backdrop-filter: blur(6px); }
.card::before { content: ""; position: absolute; left: 12%; right: 12%; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, #fff3c8, transparent); animation: edge 4s ease-in-out infinite; pointer-events: none; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 200, 110, .13), transparent 60%); }
.card:hover::after { opacity: 1; }
@keyframes edge { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }
.card > * { position: relative; z-index: 1; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 800 11px var(--f-body); letter-spacing: .06em; text-transform: uppercase; background: rgba(255, 170, 50, .1); color: var(--gold2); border: 1px solid rgba(255, 191, 77, .55); }
.head { image-rendering: pixelated; border-radius: 8px; background: var(--panel3); }
.empty { text-align: center; color: var(--faint); padding: 40px 10px; }
.skeleton { background: linear-gradient(90deg, rgba(41, 28, 17, .8), rgba(70, 46, 22, .8), rgba(41, 28, 17, .8)); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: 10px; min-height: 18px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ================= PAGE BANNER (every inner page) ================= */
.page-head { position: relative; overflow: hidden; margin: 28px 0 26px; padding: 54px 46px 50px; border-radius: 22px; isolation: isolate;
  background: linear-gradient(90deg, rgba(12, 8, 5, .88) 0%, rgba(12, 8, 5, .55) 55%, rgba(12, 8, 5, .15) 100%), url(/img/gokyuzu.jpg) center 46% / cover;
  border: 1px solid rgba(238, 172, 76, .85); box-shadow: var(--frame), 0 0 50px -16px rgba(255, 170, 50, .5); animation: bannerIn .8s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes bannerIn { from { opacity: 0; transform: translateY(20px) scale(.985); } }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(ellipse 40% 30% at 75% 50%, rgba(255, 225, 150, .45), transparent 70%); animation: breathe 5s ease-in-out infinite; }
.page-head h1 { font-size: clamp(30px, 4.4vw, 54px); margin: 12px 0 12px; max-width: 70%; text-shadow: 0 6px 30px rgba(0, 0, 0, .6); }
.page-head p { color: #eadcc4; max-width: 560px; margin: 0; font-size: 16px; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 800 11.5px var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--gold2); }
.eyebrow::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: #ffd27a; box-shadow: 0 0 8px #ffb43a; animation: spinD 6s linear infinite; }
@keyframes spinD { to { transform: rotate(405deg); } }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; margin: 0; }
/* split headings: every letter drops in */
.split .w { display: inline-block; white-space: nowrap; }
.split .ch { display: inline-block; opacity: 0; transform: translateY(.55em) rotateX(-80deg); transform-origin: 50% 100%;
  background: linear-gradient(180deg, #fff8e0 0%, #ffe2a0 55%, #ffb54a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: chIn .7s cubic-bezier(.2, .9, .25, 1.2) forwards; animation-delay: calc(var(--i) * 28ms + .15s); }
@keyframes chIn { to { opacity: 1; transform: none; } }
.section { padding: 46px 0; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-title h2 { position: relative; font-size: clamp(24px, 3vw, 36px); margin-top: 8px; padding-bottom: 12px; }
.section-title h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 120px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #ffd27a, transparent); box-shadow: 0 0 10px rgba(255, 180, 60, .6);
  transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.2, .8, .2, 1) .2s; }
.section-title.in h2::after { transform: none; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ================= HOME: the stage ================= */
.stage { position: relative; min-height: 100vh; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px 80px; }
.stage .sky { position: absolute; inset: -4%; z-index: -6; background: url(/img/gokyuzu.jpg) center 46% / cover no-repeat; animation: pan 30s ease-in-out infinite alternate; }
@keyframes pan { from { transform: scale(1) translateX(-1%); } to { transform: scale(1.07) translateX(1%); } }
.stage .clouds { position: absolute; left: -50%; right: -50%; bottom: -6%; height: 48%; z-index: -3; pointer-events: none; opacity: .75; mix-blend-mode: screen;
  background: url(/img/gokyuzu.jpg) 0 100% / 50% auto repeat-x; animation: clouds 60s linear infinite;
  -webkit-mask: linear-gradient(180deg, transparent, #000 45%); mask: linear-gradient(180deg, transparent, #000 45%); }
.stage .clouds.c2 { bottom: -14%; height: 40%; opacity: .5; animation-duration: 38s; animation-direction: reverse; filter: blur(2px) brightness(1.2); }
@keyframes clouds { to { background-position: 100% 100%; } }
.stage .hglow { position: absolute; left: 0; right: 0; top: 34%; height: 24%; z-index: -5; mix-blend-mode: screen; pointer-events: none; background: radial-gradient(ellipse 45% 50% at 50% 50%, rgba(255, 225, 150, .6), transparent 70%); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
.stage .stars { position: absolute; inset: 0 0 55% 0; z-index: -5; pointer-events: none; }
.stage .stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; box-shadow: 0 0 4px #fff; animation: tw 3s ease-in-out infinite; }
@keyframes tw { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
.stage .shade { position: absolute; inset: 0; z-index: -2; pointer-events: none; background: linear-gradient(180deg, rgba(8, 5, 3, .35) 0%, transparent 30%, transparent 55%, rgba(12, 8, 5, .85) 88%, var(--night) 100%), radial-gradient(ellipse 80% 80% at 50% 50%, transparent 55%, rgba(0, 0, 0, .55)); }
.stage canvas.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
/* giant outlined word behind the island */
.bigword { position: relative; z-index: -4; margin: 0 0 -.06em; text-align: center; pointer-events: none; white-space: nowrap; font: 900 clamp(50px, 12.5vw, 250px)/1 "Arial Black", "Segoe UI Black", Impact, sans-serif; letter-spacing: .08em;
  color: transparent; -webkit-text-stroke: 2px rgba(255, 210, 130, .35); transform: translate3d(calc(var(--px, 0px) * -.5), calc(var(--py, 0px) * -.5), 0); }
.bigword span { display: inline-block; opacity: 0; animation: bigIn 1s cubic-bezier(.2, .9, .2, 1) calc(var(--i) * 90ms + .3s) forwards, lineGlow 3.6s ease-in-out calc(var(--i) * .45s + 1.6s) infinite; }
/* the outline lines light up and fade, letter after letter */
@keyframes lineGlow { 0%, 100% { -webkit-text-stroke-color: rgba(255, 210, 130, .3); filter: none; }
  45% { -webkit-text-stroke-color: #fff0c0; filter: drop-shadow(0 0 6px #ffc85a) drop-shadow(0 0 18px rgba(255, 150, 40, .75)) drop-shadow(0 0 40px rgba(255, 130, 30, .4)); } }
@keyframes bigIn { from { opacity: 0; transform: translateY(80px) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes logoIn { from { opacity: 0; scale: .5; rotate: -10deg; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.stage-copy { position: relative; text-align: center; max-width: 760px; }
.stage-copy h1 { font-size: clamp(34px, 5vw, 64px); letter-spacing: -.01em; margin: 10px 0 10px; text-shadow: 0 10px 40px rgba(0, 0, 0, .8); }
.stage-copy .lead { font-size: 17px; color: #f0e2c8; margin: 0 auto 26px; max-width: 560px; text-shadow: 0 2px 12px rgba(0, 0, 0, .9); }
.rise { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px; }
.actions .side-acts { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.ip { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 13px; cursor: pointer; background: linear-gradient(180deg, rgba(52, 32, 14, .88), rgba(16, 10, 7, .94)); border: 1px solid rgba(238, 172, 76, .85); box-shadow: var(--frame); transition: transform .2s, box-shadow .2s; }
.ip:hover { transform: translateY(-2px); box-shadow: var(--frame), 0 0 24px rgba(255, 170, 50, .45); }
.ip code { font: 800 15px var(--f-display); letter-spacing: .04em; color: #fff; }
.ip span { white-space: nowrap; font-size: 12px; font-weight: 800; padding: 6px 10px; border-radius: 9px; background: rgba(255, 180, 60, .16); color: var(--gold2); border: 1px solid rgba(255, 191, 77, .5); }
/* floating HUD cards on the stage */
.hud { position: absolute; top: 36%; width: 230px; padding: 14px 16px; animation: hudIn .9s cubic-bezier(.2, .9, .2, 1) both 1s, bob 5s ease-in-out infinite 2s; }
.hud.l { left: 3%; } .hud.r { right: 3%; animation-delay: 1.2s, 2.6s; }
@keyframes hudIn { from { opacity: 0; transform: translateY(30px) scale(.9); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.hud .k { font: 800 11px var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold2); display: flex; align-items: center; gap: 7px; }
.hud .k i { width: 8px; height: 8px; border-radius: 50%; background: #43d96b; box-shadow: 0 0 8px #43d96b; animation: blink 2s infinite; }
.hud .k i.off { background: var(--red); box-shadow: 0 0 8px var(--red); }
.hud .v { font: 800 28px var(--f-display); color: #fff; margin: 4px 0 2px; text-shadow: 0 0 18px rgba(255, 180, 60, .4); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hud .s { font-size: 12.5px; color: var(--dim); }
.hud .faces { display: flex; margin-top: 8px; }
.hud .faces img { width: 26px; height: 26px; border-radius: 6px; margin-right: -6px; box-shadow: 0 0 0 2px #1e140c; image-rendering: pixelated; }
.scroll-hint { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; width: 24px; height: 38px; border-radius: 12px; border: 2px solid rgba(255, 205, 120, .6); }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #ffd27a; box-shadow: 0 0 6px #ffb43a; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* the big 3D PLAY button (launcher .play) */
.bigplay { position: relative; display: block; width: 340px; max-width: 100%; height: 96px; transform: rotate(-2deg) skewX(-6deg); animation: pbob 4s ease-in-out infinite; text-decoration: none; }
@keyframes pbob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
.bigplay .tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .18s ease-out; }
.bigplay .slab { position: absolute; inset: 0; border-radius: 15px; transform: translateY(10px); background: linear-gradient(180deg, #9a5414, #4a1f05 60%, #2a1003); border: 3px solid #b8741f; box-shadow: 0 14px 26px rgba(0, 0, 0, .65), 0 0 34px rgba(255, 140, 30, .55); }
.bigplay .face { position: absolute; inset: 0; border-radius: 15px; overflow: hidden; transition: transform .12s ease-out; background: radial-gradient(ellipse 75% 85% at 50% 45%, #d06a12 0%, #7a340a 45%, #2e1406 100%); border: 3px solid #ffcf66;
  box-shadow: 0 0 0 2px #6a3509, 0 0 18px #ffb43a, 0 0 46px rgba(255, 140, 30, .7), 0 0 90px rgba(255, 120, 20, .3), inset 0 0 0 5px rgba(36, 16, 4, .9), inset 0 0 0 6.5px rgba(255, 205, 115, .7), inset 0 0 38px rgba(255, 150, 40, .55); animation: pg 2.4s ease-in-out infinite; }
@keyframes pg { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.2); } }
.bigplay:hover .face, .bigplay:hover .ring { transform: translateY(-3px); }
.bigplay:active .face, .bigplay:active .ring { transform: translateY(8px); transition-duration: .06s; }
.bigplay .gloss { position: absolute; left: 10px; right: 10px; top: 7px; height: 42%; border-radius: 10px 10px 40% 40% / 10px 10px 18px 18px; background: linear-gradient(180deg, rgba(255, 240, 200, .32), rgba(255, 220, 150, .05)); }
.bigplay .face::after { content: ""; position: absolute; top: -10px; bottom: -10px; width: 80px; left: -140px; transform: skewX(-18deg); background: linear-gradient(90deg, transparent, rgba(255, 245, 210, .55), transparent); animation: swipe2 3.4s ease-in-out infinite 1.4s; }
@keyframes swipe2 { 0% { left: -140px; } 45%, 100% { left: 115%; } }
.bigplay .ring { position: absolute; inset: 0; border-radius: 15px; padding: 3px; pointer-events: none; transition: transform .12s ease-out;
  background: conic-gradient(from var(--a), transparent 0deg 240deg, rgba(255, 200, 90, .6) 290deg, #fffbe6 330deg, rgba(255, 200, 90, .6) 345deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; filter: drop-shadow(0 0 6px #ffd27a); animation: spinA 3.2s linear infinite; }
@keyframes spinA { to { --a: 360deg; } }
.bigplay .word { position: absolute; left: 0; right: 0; top: 10px; text-align: center; font: 900 48px/1 var(--f-display); letter-spacing: 2px; animation: tbreathe 2.4s ease-in-out infinite; }
@keyframes tbreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
.bigplay .word span { position: absolute; left: 0; right: 0; }
.bigplay .w1 { color: transparent; -webkit-text-stroke: 6px #4a1f04; filter: drop-shadow(0 2px 0 #3a1803) drop-shadow(0 4px 0 #261002) drop-shadow(0 6px 6px rgba(0, 0, 0, .55)); }
.bigplay .w2 { background: linear-gradient(180deg, #fff4c8 0%, #ffd468 40%, #ffa22e 72%, #ff8a1c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 12px rgba(255, 180, 60, .75)); }
.bigplay small { position: absolute; left: 0; right: 0; bottom: 9px; text-align: center; font: 700 12px var(--f-body); color: #f1dcb9; letter-spacing: .08em; text-transform: uppercase; }
.spark { position: fixed; width: 4px; height: 4px; border-radius: 1px; background: #ffd27a; box-shadow: 0 0 6px #ffb43a; pointer-events: none; z-index: 200; animation: sparkup .9s ease-out forwards; }
@keyframes sparkup { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }

/* ================= HOME: gold ticker strips ================= */
.ticker { position: relative; height: 150px; margin: -40px 0 10px; overflow: hidden; }
.strip { position: absolute; left: -5%; right: -5%; top: 50%; height: 54px; display: flex; align-items: center; overflow: hidden; border-block: 1px solid #ffcf66;
  background: linear-gradient(180deg, #e0a040, #a8601a 55%, #6a3509); box-shadow: 0 0 30px rgba(255, 160, 40, .45), inset 0 1px 0 rgba(255, 240, 200, .6); transform: translateY(-50%) rotate(-2.5deg); }
.strip.b { transform: translateY(-50%) rotate(2deg); background: linear-gradient(180deg, #2a1a0d, #120a05); border-color: rgba(238, 172, 76, .7); box-shadow: 0 0 20px rgba(0, 0, 0, .6); z-index: -1; }
.strip .run { display: flex; flex: none; gap: 34px; padding-right: 34px; animation: run 28s linear infinite; font: 900 20px var(--f-display); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; color: #2a1003; text-shadow: 0 1px 0 rgba(255, 240, 200, .5); }
.strip.b .run { animation-duration: 36s; animation-direction: reverse; color: var(--gold2); text-shadow: 0 0 12px rgba(255, 180, 60, .5); }
@keyframes run { to { transform: translateX(-100%); } }

/* ================= HOME: feature card pack (launcher card art, flip on hover) ================= */
.deck { display: flex; justify-content: center; align-items: flex-end; padding: 30px 0 50px; perspective: 1400px; min-height: 420px; }
.pcard { position: relative; width: 240px; height: 329px; margin: 0 -14px; flex: none; cursor: pointer; transform-style: preserve-3d;
  transform: translateY(var(--ty)) rotate(var(--rot)); transition: transform .6s cubic-bezier(.2, .9, .25, 1.1), margin .4s, filter .4s; z-index: var(--z); }
.deck.dealt .pcard { animation: deal .9s cubic-bezier(.2, .9, .25, 1.1) both; animation-delay: calc(var(--n) * 120ms); }
@keyframes deal { from { opacity: 0; transform: translateY(260px) rotate(0) scale(.7); } }
.deck:not(.dealt) .pcard { opacity: 0; }
.deck:hover .pcard { filter: brightness(.6) saturate(.8); }
.deck .pcard:hover, .deck .pcard.flip { filter: none; transform: translateY(-40px) rotate(0) scale(1.08); z-index: 10; margin: 0 14px; }
.pcard .in3d { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2, .9, .25, 1); }
.pcard:hover .in3d, .pcard.flip .in3d { transform: rotateY(180deg); }
.pcard .fr, .pcard .bk { position: absolute; inset: 0; border-radius: 12px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .8), 0 0 24px rgba(255, 160, 40, .3); }
.pcard .fr { background: url(/img/kart.png) center / 100% 100% no-repeat; }
.pcard .fr::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 230, 170, .3) 48%, rgba(255, 255, 255, .45) 50%, rgba(255, 230, 170, .3) 52%, transparent 65%); background-size: 320% 100%; animation: holo 5s linear infinite; animation-delay: calc(var(--n) * -1.2s); mix-blend-mode: screen; }
@keyframes holo { from { background-position: 150% 0; } to { background-position: -150% 0; } }
.pcard .ico { position: absolute; left: 50%; top: 47%; translate: -50% -50%; font-size: 70px; line-height: 1; filter: drop-shadow(0 4px 6px rgba(80, 40, 0, .6)); animation: icoBob 3s ease-in-out infinite; animation-delay: calc(var(--n) * -.7s); }
@keyframes icoBob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-6px) rotate(4deg); } }
.pcard .nm { position: absolute; left: 9%; right: 9%; bottom: 7.5%; text-align: center; font: 900 12px/1.2 var(--f-display); color: #fff4c8; letter-spacing: .04em; text-shadow: 0 2px 0 #2a1003, 0 0 10px rgba(255, 180, 60, .7); }
.pcard .bk { transform: rotateY(180deg); padding: 26px 22px; display: flex; flex-direction: column; justify-content: center; gap: 12px; text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 190, 80, .25), transparent 60%), linear-gradient(180deg, #3a2310, #120a05); border: 2px solid #ffcf66; }
.pcard .bk::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(255, 210, 130, .45); border-radius: 8px; pointer-events: none; }
.pcard .bk .ico2 { font-size: 40px; }
.pcard .bk h3 { font-size: 17px; color: #fff; }
.pcard .bk p { margin: 0; color: #e6d4b4; font-size: 14px; }

/* ================= HOME: how to start (gold line draws across) ================= */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.steps::before { content: ""; position: absolute; left: 16%; right: 16%; top: 38px; height: 2px; background: linear-gradient(90deg, #ffd27a, #ff9a2e, #ffd27a); box-shadow: 0 0 12px #ffb43a; transform: scaleX(0); transform-origin: left; transition: transform 1.4s cubic-bezier(.2, .8, .2, 1) .3s; }
.steps.in::before { transform: none; }
.step { position: relative; text-align: center; padding: 0 10px; }
.hexn { position: relative; width: 78px; height: 78px; margin: 0 auto 16px; display: grid; place-items: center; font: 900 26px var(--f-display); color: #2a1003;
  clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%); background: linear-gradient(180deg, #fff0a8, #e0a21a 60%, #a8601a); transform: scale(0) rotate(-90deg); transition: transform .7s cubic-bezier(.2, .9, .25, 1.4); }
.steps.in .hexn { transform: none; }
.steps.in .step:nth-child(1) .hexn { transition-delay: .1s; } .steps.in .step:nth-child(2) .hexn { transition-delay: .5s; } .steps.in .step:nth-child(3) .hexn { transition-delay: .9s; }
.step .hglo { filter: drop-shadow(0 0 12px rgba(255, 180, 60, .75)); }
.step h3 { font-size: 18px; color: #fff; margin-bottom: 6px; }
.step p { color: var(--dim); margin: 0; font-size: 14.5px; }

/* ================= HOME: podium with medals and rising blocks ================= */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: end; max-width: 860px; margin: 0 auto; }
.pod { position: relative; text-align: center; }
.medalw { position: relative; width: 150px; margin: 0 auto -6px; z-index: 2; animation: float 5s ease-in-out infinite; }
.pod.p1 .medalw { width: 180px; }
.pod.p2 .medalw { animation-delay: -1.6s; } .pod.p3 .medalw { animation-delay: -3.2s; }
.medalw img.m { width: 100%; display: block; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .6)) drop-shadow(0 0 16px rgba(255, 170, 50, .35)); }
.pod.p2 .medalw img.m { filter: grayscale(.85) brightness(1.25) drop-shadow(0 10px 16px rgba(0, 0, 0, .6)); }
.pod.p3 .medalw img.m { filter: sepia(.5) hue-rotate(-12deg) saturate(1.4) brightness(.9) drop-shadow(0 10px 16px rgba(0, 0, 0, .6)); }
.medalw .face { position: absolute; left: 50%; top: 37%; width: 40%; translate: -50% -50%; border-radius: 10px; image-rendering: pixelated; box-shadow: 0 0 0 2px rgba(255, 220, 150, .7), 0 0 16px rgba(255, 180, 60, .6); }
.medalw .num { position: absolute; left: 50%; top: -8px; translate: -50% 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 900 15px var(--f-display); color: #2a1003; background: linear-gradient(#fff0a8, #e0a21a); box-shadow: 0 0 12px rgba(255, 190, 80, .8); }
.block { position: relative; height: var(--h); border-radius: 10px 10px 4px 4px; overflow: hidden; transform-origin: bottom; transform: scaleY(0); transition: transform 1s cubic-bezier(.2, .9, .25, 1.15);
  background: linear-gradient(180deg, #7ccf4d 0 16px, #4a8a2a 16px 22px, transparent 22px), repeating-linear-gradient(90deg, rgba(0, 0, 0, .12) 0 10px, transparent 10px 20px), linear-gradient(180deg, #8a5a32, #5a3a1e 60%, #3a2412);
  border: 1px solid rgba(255, 205, 120, .5); box-shadow: 0 20px 40px -14px #000, inset 0 -20px 40px rgba(0, 0, 0, .35); }
.podium.in .block { transform: none; }
.podium.in .pod.p1 .block { transition-delay: .15s; } .podium.in .pod.p3 .block { transition-delay: .3s; }
.block .txt { position: absolute; left: 0; right: 0; top: 34px; padding: 0 10px; }
.block h3 { font-size: 16px; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .8); }
.block .faint { color: #e6d4b4; font-size: 13px; }
.block .pill { margin-top: 8px; background: rgba(0, 0, 0, .4); }
.pod.p1 .block { box-shadow: 0 20px 40px -14px #000, 0 0 50px -6px rgba(255, 200, 80, .55), inset 0 -20px 40px rgba(0, 0, 0, .35); border-color: #ffcf66; }

/* ================= HOME: news mosaic ================= */
.mosaic { display: grid; grid-template-columns: 1.3fr 1fr; grid-auto-rows: minmax(150px, auto); gap: 18px; }
.mosaic > .news-card:first-child { grid-row: span 2; justify-content: flex-end; min-height: 320px;
  background: linear-gradient(180deg, rgba(12, 8, 5, .15) 0%, rgba(12, 8, 5, .9) 75%), url(/img/gokyuzu.jpg) center 46% / cover; }
.mosaic > .news-card:first-child h3 { font-size: 26px; }
.mosaic > :only-child { grid-column: 1 / -1; }

/* ================= NEWS / TABLES / STORE / RULES / STAFF / VOTES ================= */
.news-card { display: flex; flex-direction: column; gap: 10px; color: var(--ink); transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .3s; }
.news-card:hover { transform: translateY(-5px); border-color: #ffcf66; color: var(--ink); box-shadow: var(--frame), 0 0 30px rgba(255, 170, 50, .3); }
.news-card h3 { font-size: 18px; color: #fff; }
.news-card p { color: var(--dim); margin: 0; font-size: 14.5px; }
.news-meta { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12.5px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 13px; background: rgba(20, 13, 8, .85); border: 1px solid rgba(238, 172, 76, .4); margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { border: 1px solid transparent; background: none; padding: 8px 16px; border-radius: 10px; color: var(--dim); font-weight: 800; cursor: pointer; transition: background .2s, color .2s; }
.tabs button:hover { color: #fff; background: rgba(255, 180, 70, .08); }
.tabs button.on { color: #fff; background: linear-gradient(180deg, rgba(150, 100, 45, .6), rgba(90, 58, 26, .5)); border-color: rgba(255, 205, 120, .55); box-shadow: 0 0 12px rgba(255, 170, 50, .25), inset 0 1px 0 rgba(255, 235, 180, .35); }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font: 800 11px var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold2); padding: 10px 14px; border-bottom: 1px solid rgba(238, 172, 76, .35); }
.table td { padding: 12px 14px; border-bottom: 1px solid rgba(238, 172, 76, .1); vertical-align: middle; }
.table tbody tr { animation: rowIn .5s cubic-bezier(.2, .8, .2, 1) both; }
.table tbody tr:nth-child(2) { animation-delay: .04s; } .table tbody tr:nth-child(3) { animation-delay: .08s; } .table tbody tr:nth-child(4) { animation-delay: .12s; } .table tbody tr:nth-child(5) { animation-delay: .16s; } .table tbody tr:nth-child(n+6) { animation-delay: .2s; }
@keyframes rowIn { from { opacity: 0; transform: translateX(-14px); } }
.table tr:hover td { background: rgba(255, 180, 70, .06); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 800; }
.rank { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 900 13px var(--f-display); background: rgba(60, 38, 18, .9); border: 1px solid rgba(238, 172, 76, .35); }
.who { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.who small { display: block; color: var(--faint); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.product { display: flex; flex-direction: column; gap: 14px; border-top: 3px solid var(--accent, var(--ember)); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.product:hover { transform: translateY(-8px) rotate(-.6deg); box-shadow: var(--frame), 0 0 40px -8px var(--accent, var(--ember)); }
.product.featured { box-shadow: var(--frame), 0 0 60px -14px var(--accent); }
.product .ribbon { position: absolute; top: 14px; right: 14px; }
.product h3 { font-size: 22px; color: var(--accent); }
.price { font: 900 28px var(--f-display); color: #fff; }
.product ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product li { display: flex; gap: 9px; color: var(--dim); font-size: 14.5px; }
.product li::before { content: "✦"; color: var(--accent); }
.rule-sec h2 { font-size: 20px; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.rule-sec ol { margin: 0; padding: 0; list-style: none; counter-reset: r; display: flex; flex-direction: column; gap: 10px; }
.rule-sec li { counter-increment: r; display: flex; gap: 14px; color: #e6d9c4; }
.rule-sec li::before { content: counter(r); flex: none; width: 28px; height: 28px; display: grid; place-items: center; font: 800 12px var(--f-display); color: #2a1003;
  clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%); background: linear-gradient(180deg, #fff0a8, #e0a21a); }
.staff-card { text-align: center; transition: transform .35s; }
.staff-card:hover { transform: translateY(-8px); }
.staff-card img { width: 96px; height: 96px; margin-bottom: 12px; border-radius: 18px; box-shadow: 0 0 0 3px var(--accent), 0 0 40px -6px var(--accent); transition: transform .4s; }
.staff-card:hover img { transform: rotate(-6deg) scale(1.08); }
.staff-card h3 { font-size: 18px; }
.role { display: inline-block; margin: 8px 0; padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: 12px; background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); }
.vote-card { display: flex; flex-direction: column; gap: 10px; transition: transform .35s; }
.vote-card:hover { transform: translateY(-6px); }
.vote-card h3 { font-size: 18px; }

/* ================= AUTH ================= */
.auth { display: grid; place-items: center; padding: 60px 0; min-height: calc(100vh - 160px); }
.auth .card { width: min(440px, 100%); padding: 34px; border-color: rgba(238, 172, 76, .9); animation: bannerIn .8s cubic-bezier(.2, .8, .2, 1) both; box-shadow: var(--frame), 0 0 60px -14px rgba(255, 170, 50, .5); }
.auth .logo { width: 96px; display: block; margin: 0 auto 10px; filter: drop-shadow(0 0 22px rgba(255, 180, 60, .7)); animation: logoIn 1.2s cubic-bezier(.2, .9, .2, 1) both, float 5s ease-in-out infinite 1.2s; }
.auth h1 { text-align: center; font-size: 24px; margin-bottom: 6px; }
.auth h1 em { font-style: normal; color: var(--gold); }
.auth .sub { text-align: center; color: var(--dim); margin: 0 0 22px; font-size: 14px; }
.auth .btn { width: 100%; }
.auth .alt { text-align: center; color: var(--dim); font-size: 14px; margin-top: 16px; }

/* ================= PROFILE / TICKETS / ADMIN ================= */
.profile-top { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.profile-top img { width: 112px; height: 112px; border-radius: 22px; box-shadow: 0 0 0 3px #ffcf66, 0 0 50px -8px var(--ember); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 14.5px; }
.kv dt { color: var(--faint); } .kv dd { margin: 0; font-weight: 700; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; }
.st-acik { background: rgba(255, 209, 102, .15); color: var(--gold); }
.st-yanitlandi { background: rgba(95, 198, 255, .15); color: var(--sky); }
.st-kapali { background: rgba(142, 124, 98, .2); color: var(--dim); }
.thread { display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 82%; padding: 12px 16px; border-radius: 16px; background: rgba(53, 36, 21, .9); border: 1px solid rgba(238, 172, 76, .15); animation: rise .4s both; }
.msg.mine { align-self: flex-end; background: rgba(255, 160, 50, .14); border-color: rgba(255, 191, 77, .4); }
.msg.staff { border-color: rgba(95, 198, 255, .35); }
.msg header { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--faint); margin-bottom: 4px; }
.msg header b { color: var(--ink); }
.msg p { margin: 0; white-space: pre-wrap; }
.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 20px; }
.admin-nav button { text-align: left; border: 1px solid transparent; background: none; padding: 10px 14px; border-radius: 11px; color: var(--dim); font-weight: 800; cursor: pointer; }
.admin-nav button:hover { color: #fff; background: rgba(255, 180, 70, .08); }
.admin-nav button.on { color: #fff; background: linear-gradient(90deg, rgba(150, 100, 45, .55), rgba(90, 58, 26, .45)); border-color: rgba(255, 205, 120, .55); }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ================= FOOTER / TOAST / REVEAL ================= */
.foot { position: relative; padding: 34px 0 24px; margin-top: 50px; background: linear-gradient(180deg, transparent, rgba(8, 5, 3, .9)); }
.foot::before { content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 1px; box-shadow: 0 0 10px rgba(255, 170, 50, .6);
  background: linear-gradient(90deg, transparent, rgba(255, 200, 110, .85) 20%, rgba(255, 180, 70, .35) 50%, rgba(255, 200, 110, .85) 80%, transparent); }
.foot::after { content: ""; position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; margin-left: -5px; transform: rotate(45deg); background: #ffe9a8; box-shadow: 0 0 10px #ffc85a; }
.foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--faint); font-size: 13px; }
.foot .fl { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--dim); } .foot a:hover { color: #fff; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 400; padding: 13px 18px; border-radius: 13px; background: linear-gradient(180deg, rgba(52, 32, 14, .97), rgba(16, 10, 7, .98)); border: 1px solid rgba(238, 172, 76, .85); box-shadow: var(--frame); font-weight: 700; animation: toastIn .3s ease; }
.toast.err { border-color: rgba(255, 90, 106, .6); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
.reveal { opacity: 0; transform: translateY(26px) scale(.97); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.grid > .reveal:nth-child(2), .mosaic > .reveal:nth-child(2) { transition-delay: .08s; }
.grid > .reveal:nth-child(3), .mosaic > .reveal:nth-child(3) { transition-delay: .16s; }
.grid > .reveal:nth-child(4) { transition-delay: .24s; }
.about .card { padding: 30px 34px; }
.about h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 8px 0 12px; }
.about p { color: var(--dim); margin: 0 0 10px; line-height: 1.7; }
.about strong { color: var(--gold2); }
.cta-band { position: relative; overflow: hidden; margin: 10px 0 20px; padding: 44px; border-radius: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(90deg, rgba(12, 8, 5, .92) 0%, rgba(12, 8, 5, .55) 60%, rgba(12, 8, 5, .2)), url(/img/gokyuzu.jpg) center 48% / cover; border: 1px solid rgba(238, 172, 76, .85); box-shadow: var(--frame), 0 0 40px -10px rgba(255, 170, 50, .45); }
.cta-band h2 { font-size: 30px; margin-bottom: 6px; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1360px) { .hud { display: none; } }
@media (max-width: 1000px) {
  body { padding-left: 0; padding-top: 60px; }
  .mbar { display: flex; position: fixed; left: 0; right: 0; top: 0; height: 60px; z-index: 55; align-items: center; gap: 12px; padding: 0 14px; view-transition-name: mbar;
    background: linear-gradient(180deg, rgba(10, 6, 4, .95), rgba(18, 11, 6, .85)); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 190, 90, .45); }
  .mbar a { display: flex; align-items: center; gap: 10px; }
  .mbar img { width: 34px; filter: drop-shadow(0 0 8px rgba(255, 170, 50, .6)); }
  .mbar b { font: 900 14px var(--f-display); letter-spacing: .18em; color: #fff; }
  .mbar b em { font-style: normal; color: var(--gold); }
  .mbar .dot { margin-left: auto; width: 9px; height: 9px; border-radius: 50%; background: #43d96b; box-shadow: 0 0 8px #43d96b; }
  .mbar .dot.off { background: var(--red); box-shadow: 0 0 8px var(--red); }
  .burger { background: none; border: 1px solid var(--edge2); border-radius: 10px; width: 42px; height: 40px; cursor: pointer; }
  .burger span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--gold2); }
  .side { transform: translateX(-105%); transition: transform .45s cubic-bezier(.2, .9, .25, 1); width: min(280px, 86vw); }
  .side.open { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 58; background: rgba(5, 3, 2, .6); opacity: 0; pointer-events: none; transition: opacity .35s; }
  .scrim.on { opacity: 1; pointer-events: auto; }
  .wrap { width: min(1180px, 100% - 28px); }
  .stage { min-height: calc(100vh - 60px); padding-top: 20px; justify-content: center; }
  .bigword { font-size: 17vw; }
  .page-head { padding: 38px 24px; }
  .page-head h1 { max-width: 100%; }
  .deck { flex-wrap: wrap; gap: 18px; min-height: 0; }
  .pcard { margin: 0; --rot: 0deg !important; --ty: 0px !important; }
  .deck .pcard:hover, .deck .pcard.flip { margin: 0; transform: translateY(-6px); }
  .deck:hover .pcard { filter: none; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .podium { grid-template-columns: 1fr; }
  .pod.p1 { order: -1; }
  .mosaic { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; position: static; }
}
@media (max-width: 560px) {
  .bigplay { width: 300px; }
  .ip code { font-size: 13px; }
  .strip .run { font-size: 15px; }
  .cta-band { padding: 26px; }
  .pcard { width: 200px; height: 274px; }
  .pcard .ico { font-size: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .split .ch, .bigword span, .deck:not(.dealt) .pcard { opacity: 1; transform: none; }
  .block, .hexn { transform: none; }
  .splash { display: none; }
}
