/* ==========================================================================
   PTIT ATTT CYBER ARENA - SOC / CTF design system
   Dark navy · cyan · red · gold. Chỉ trình bày, không đổi logic.
   ========================================================================== */

/* --------------------------------------------------------------- 1. Tokens */
:root {
  --bg-0: #04070e;
  --bg-1: #070c17;
  --bg-2: #0a1120;

  --surface: rgba(11, 20, 36, .78);
  --surface-solid: #0b1424;
  --surface-2: #0e1a2e;
  --surface-3: #122239;
  --ink: #03060d;

  --line: rgba(79, 227, 255, .13);
  --line-soft: rgba(136, 164, 196, .14);
  --line-strong: rgba(79, 227, 255, .34);

  --cyan: #4fe3ff;
  --cyan-deep: #1c86ab;
  --red: #ff4d6d;
  --gold: #ffc861;
  --green: #35e0a1;
  --violet: #9c8cff;

  --text: #e8f4ff;
  --muted: #8ba6c6;
  --muted-2: #61799a;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;

  --sans: "Space Grotesk", Inter, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --shadow-sm: 0 8px 24px -14px rgba(0, 0, 0, .9);
  --shadow: 0 26px 64px -34px rgba(0, 0, 0, .95);
  --shadow-cyan: 0 0 0 1px rgba(79, 227, 255, .22), 0 18px 50px -26px rgba(79, 227, 255, .5);

  --nav-h: 66px;
  color-scheme: dark;
}

/* ----------------------------------------------------------- 2. Reset/base */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-0);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  letter-spacing: .01em;
  overflow-x: hidden;
}

img, svg, canvas { max-width: 100%; }

a { color: var(--cyan); text-decoration: none; transition: color .18s ease; }
a:hover { color: #a6f0ff; }

h1, h2, h3, h4 { margin: 0; line-height: 1.18; letter-spacing: -.02em; font-weight: 600; }
h1 { font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.7rem); }
h2 { font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); }
h3 { font-size: 1.08rem; }
p { margin: 0 0 .85rem; }
p:last-child { margin-bottom: 0; }

code, pre, kbd { font-family: var(--mono); }
code {
  padding: .12em .4em;
  border-radius: var(--radius-xs);
  background: rgba(79, 227, 255, .1);
  border: 1px solid var(--line);
  color: var(--cyan);
  font-size: .88em;
}

::selection { background: rgba(79, 227, 255, .28); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: #1b3151; border-radius: 20px; border: 2px solid var(--bg-1); }
::-webkit-scrollbar-thumb:hover { background: #27496f; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------- 3. Background layers */
.bg-layer { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.bg-layer::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 80% -10%, #143254 0%, transparent 55%),
    radial-gradient(90% 70% at 5% 0%, #17203f 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 60%);
}

.bg-grid {
  position: absolute; inset: -2px;
  opacity: .16;
  background-image:
    linear-gradient(rgba(79, 227, 255, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 227, 255, .18) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(115% 85% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(115% 85% at 50% 0%, #000 20%, transparent 78%);
}

.bg-glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .3; }
.bg-glow--cyan { width: 620px; height: 620px; top: -240px; right: -140px; background: #1a6f9a; }
.bg-glow--red { width: 520px; height: 520px; bottom: -260px; left: -160px; background: #6e1f39; opacity: .26; }

.bg-scan {
  position: absolute; inset: 0;
  opacity: .05;
  background: repeating-linear-gradient(180deg, rgba(230, 244, 255, .5) 0 1px, transparent 1px 4px);
}

/* -------------------------------------------------------- 4. Type helpers */
.eyebrow {
  margin: 0 0 .5rem;
  color: var(--cyan);
  font: 700 .7rem/1.3 var(--mono);
  letter-spacing: .22em;
  text-transform: uppercase;
}
.eyebrow--gold { color: var(--gold); }
.eyebrow--red { color: var(--red); }

.lede { color: var(--muted); font-size: 1.02rem; max-width: 62ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin: 2.4rem 0 1.1rem;
}
.section-head__line {
  flex: 1 1 120px; height: 1px; min-width: 40px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

/* ------------------------------------------------- 5. Buttons & indicators */
.btn {
  --btn-fg: #eaf9ff;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .78rem 1.35rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(79, 227, 255, .16), rgba(79, 227, 255, .05));
  color: var(--btn-fg);
  font: 600 .82rem/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover {
  color: #fff;
  border-color: var(--cyan);
  background: linear-gradient(180deg, rgba(79, 227, 255, .3), rgba(79, 227, 255, .1));
  box-shadow: 0 0 0 1px rgba(79, 227, 255, .2), 0 14px 34px -18px rgba(79, 227, 255, .9);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }
.btn[disabled], .btn:disabled { opacity: .42; cursor: not-allowed; transform: none; box-shadow: none; }

.btn--primary {
  border-color: rgba(79, 227, 255, .55);
  background: linear-gradient(180deg, #1c6f92, #114b66);
  color: #f2fdff;
}
.btn--primary:hover { background: linear-gradient(180deg, #2a89b1, #14607f); }

.btn--gold {
  border-color: rgba(255, 224, 168, .65);
  background: linear-gradient(180deg, #ffd98d 0%, #f2ad42 100%);
  color: #1c1204;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .25);
}
.btn--gold:hover {
  color: #140c02;
  border-color: #fff0cd;
  background: linear-gradient(180deg, #ffe6ab 0%, #ffbe57 100%);
  box-shadow: 0 0 0 1px rgba(255, 224, 168, .35), 0 16px 38px -18px rgba(255, 200, 97, .95);
}

.btn--danger {
  border-color: rgba(255, 77, 109, .45);
  background: linear-gradient(180deg, rgba(255, 77, 109, .2), rgba(255, 77, 109, .05));
  color: #ffd2db;
}
.btn--danger:hover { border-color: var(--red); box-shadow: 0 14px 34px -18px rgba(255, 77, 109, .9); }

.btn--ghost {
  background: rgba(136, 164, 196, .06);
  border-color: var(--line-soft);
  color: var(--muted);
}
.btn--ghost:hover { color: var(--text); border-color: var(--line-strong); background: rgba(79, 227, 255, .1); box-shadow: none; }

.btn--sm { padding: .5rem .85rem; font-size: .7rem; letter-spacing: .1em; }
.btn--lg { padding: 1rem 2rem; font-size: .9rem; }
.btn--block { width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: .38rem;
  padding: .3rem .6rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(136, 164, 196, .08);
  color: var(--muted);
  font: 600 .66rem/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.chip--cyan { color: var(--cyan); border-color: rgba(79, 227, 255, .3); background: rgba(79, 227, 255, .1); }
.chip--gold { color: var(--gold); border-color: rgba(255, 200, 97, .3); background: rgba(255, 200, 97, .1); }
.chip--red { color: var(--red); border-color: rgba(255, 77, 109, .3); background: rgba(255, 77, 109, .1); }
.chip--green { color: var(--green); border-color: rgba(53, 224, 161, .3); background: rgba(53, 224, 161, .1); }
.chip--violet { color: var(--violet); border-color: rgba(156, 140, 255, .3); background: rgba(156, 140, 255, .1); }

.badge-diff { display: inline-flex; align-items: center; gap: .35rem; }
.badge-diff::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

.dot-live {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--green);
  font: 600 .68rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
}
.dot-live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 0 rgba(53, 224, 161, .6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(53, 224, 161, .55); }
  70% { box-shadow: 0 0 0 8px rgba(53, 224, 161, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 224, 161, 0); }
}

.meter { height: 6px; border-radius: 99px; background: rgba(136, 164, 196, .16); overflow: hidden; }
.meter > span {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan-deep), var(--cyan));
  box-shadow: 0 0 12px rgba(79, 227, 255, .55);
  transition: width .6s cubic-bezier(.22, 1, .36, 1);
}
.meter--gold > span { background: linear-gradient(90deg, #b5822c, var(--gold)); box-shadow: 0 0 12px rgba(255, 200, 97, .5); }
.meter--green > span { background: linear-gradient(90deg, #178866, var(--green)); box-shadow: 0 0 12px rgba(53, 224, 161, .5); }

/* --------------------------------------------------------- 6. Top nav bar */
.topnav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(6, 11, 21, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 40px -30px #000;
}
.topnav__inner {
  width: min(1440px, calc(100% - 2.4rem));
  margin: 0 auto;
  min-height: var(--nav-h);
  display: flex; align-items: center; gap: 1.1rem;
}

.brand { display: flex; align-items: center; gap: .7rem; color: var(--text); flex: 0 0 auto; }
.brand:hover { color: var(--text); }
.brand__mark {
  display: block;
  width: 42px; height: 42px;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 14px rgba(53, 160, 230, .45));
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font: 700 .95rem/1.1 var(--sans); letter-spacing: .02em; }
.brand__text span { font: 600 .58rem/1.2 var(--mono); letter-spacing: .26em; color: var(--cyan); }

.topnav__links { display: flex; align-items: center; gap: .2rem; margin-left: .8rem; }
.topnav__links a {
  position: relative;
  padding: .55rem .8rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font: 600 .74rem/1 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: color .18s ease, background .18s ease;
}
.topnav__links a:hover { color: var(--text); background: rgba(79, 227, 255, .08); }
.topnav__links a.is-active { color: var(--cyan); background: rgba(79, 227, 255, .12); }
.topnav__links a.is-active::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: -3px; width: 22px; height: 2px; border-radius: 2px;
  background: var(--cyan); box-shadow: 0 0 10px var(--cyan);
}

.topnav__right { display: flex; align-items: center; gap: .7rem; margin-left: auto; }

.sys-status {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .4rem .7rem;
  border: 1px solid rgba(53, 224, 161, .24);
  border-radius: 999px;
  background: rgba(53, 224, 161, .07);
  color: var(--green);
  font: 600 .64rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
}
.sys-status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  animation: pulse 2.4s ease-out infinite;
}

.user-chip {
  display: flex; align-items: center; gap: .6rem;
  padding: .32rem .75rem .32rem .32rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(14, 26, 46, .8);
}
.user-chip__avatar {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(150deg, #1c6f92, #6e1f39);
  color: #fff; font: 700 .8rem/1 var(--mono);
}
.user-chip__meta { display: flex; flex-direction: column; line-height: 1.15; }
.user-chip__meta strong { font-size: .82rem; font-weight: 600; }
.user-chip__meta span { font: 600 .58rem/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }

.logout-form { display: flex; }
.logout-form button {
  padding: .5rem .85rem;
  border: 1px solid rgba(255, 77, 109, .3);
  border-radius: var(--radius-sm);
  background: rgba(255, 77, 109, .09);
  color: #ffb9c6;
  font: 600 .68rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; transition: all .18s ease;
}
.logout-form button:hover { border-color: var(--red); color: #fff; background: rgba(255, 77, 109, .22); }

.nav-toggle {
  display: none;
  width: 40px; height: 38px;
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  background: rgba(14, 26, 46, .8); cursor: pointer;
  padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--cyan); margin: 0 auto;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------------------------------------------------------- 7. App layout */
main.shell {
  position: relative; z-index: 1;
  width: min(1440px, calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}
main.shell--narrow { width: min(1080px, calc(100% - 2.4rem)); }
main.shell--flush { padding-top: 1.2rem; }

.site-footer {
  position: relative; z-index: 1;
  width: min(1440px, calc(100% - 2.4rem));
  margin: 0 auto; padding: 1.4rem 0 2.4rem;
  border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between;
  color: var(--muted-2);
  font: 500 .7rem/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase;
}

/* --------------------------------------------------------- 8. Flash stack */
.flash-stack { display: grid; gap: .6rem; margin-bottom: 1.4rem; }
.flash {
  display: flex; align-items: flex-start; gap: .65rem;
  margin: 0; padding: .8rem 1rem;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius-sm);
  background: rgba(14, 26, 46, .85);
  color: var(--text);
  font-size: .92rem;
}
.flash::before { content: "▸"; color: var(--cyan); font-family: var(--mono); }
.flash.error { border-left-color: var(--red); background: rgba(58, 16, 28, .7); }
.flash.error::before { content: "✕"; color: var(--red); }
.flash.success { border-left-color: var(--green); }
.flash.success::before { content: "✓"; color: var(--green); }

/* ------------------------------------------------------------- 9. Surface */
.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.panel__head {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  padding: .95rem 1.15rem;
  border-bottom: 1px solid var(--line-soft);
}
.panel__head h2, .panel__head h3 { margin: 0; }
.panel__head .spacer { margin-left: auto; }
.panel__body { padding: 1.15rem; }

/* ----------------------------------------------------------- 10. Hero (SOC) */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 1.8rem;
  padding: 2rem 2.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(28, 111, 146, .22), transparent 45%),
    linear-gradient(300deg, rgba(255, 77, 109, .14), transparent 40%),
    var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(79, 227, 255, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 227, 255, .1) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(70% 120% at 100% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(70% 120% at 100% 0%, #000, transparent 70%);
  opacity: .5;
}
.hero > * { position: relative; }
.hero h1 { margin-bottom: .55rem; }
.hero h1 .accent { color: var(--cyan); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }

.hero__aside { display: grid; gap: .9rem; align-content: start; }
.hero__coins {
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(255, 200, 97, .28);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 200, 97, .13), rgba(255, 200, 97, .03));
}
.hero__coins span { display: block; color: #d9b878; font: 600 .66rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.hero__coins strong {
  display: block; margin-top: .4rem;
  color: var(--gold);
  font: 700 2.5rem/1 var(--mono);
  text-shadow: 0 0 26px rgba(255, 200, 97, .38);
}
.hero__coins small { display: block; margin-top: .25rem; color: var(--muted); font-size: .76rem; }

.hero__progress { padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(10, 17, 32, .7); }
.hero__progress-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .6rem; }
.hero__progress-top span { color: var(--muted); font: 600 .66rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.hero__progress-top strong { color: var(--cyan); font: 700 1.15rem/1 var(--mono); }
.hero__nodes { display: flex; gap: .35rem; margin-top: .7rem; }
.hero__nodes i {
  flex: 1; height: 4px; border-radius: 99px; background: rgba(136, 164, 196, .2);
}
.hero__nodes i.on { background: var(--green); box-shadow: 0 0 10px rgba(53, 224, 161, .7); }

/* ------------------------------------------------------------ 11. KPI grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}
.kpi {
  position: relative; overflow: hidden;
  padding: 1.15rem 1.2rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color .2s ease, transform .2s ease;
}
.kpi:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.kpi::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--cyan); box-shadow: 0 0 16px var(--cyan); opacity: .8;
}
.kpi--gold::before { background: var(--gold); box-shadow: 0 0 16px var(--gold); }
.kpi--red::before { background: var(--red); box-shadow: 0 0 16px var(--red); }
.kpi--green::before { background: var(--green); box-shadow: 0 0 16px var(--green); }

.kpi__label { display: flex; align-items: center; gap: .45rem; color: var(--muted); font: 600 .66rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.kpi__value { display: block; margin: .55rem 0 .3rem; font: 700 2.1rem/1 var(--mono); color: var(--text); }
.kpi--gold .kpi__value { color: var(--gold); }
.kpi--green .kpi__value { color: var(--green); }
.kpi--red .kpi__value { color: var(--red); }
.kpi__value small { font-size: .95rem; color: var(--muted); font-weight: 500; }
.kpi__foot { color: var(--muted-2); font-size: .76rem; }
.kpi .meter { margin-top: .75rem; }

/* ------------------------------------------------- 12. Mission (challenge) */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(292px, 1fr));
  gap: 1.1rem;
}
.mission-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: .7rem;
  min-height: 268px;
  padding: 1.3rem 1.25rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .22s cubic-bezier(.22, 1, .36, 1), border-color .22s ease, box-shadow .22s ease;
}
.mission-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.mission-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 60% at 100% 0%, rgba(79, 227, 255, .12), transparent 70%);
  opacity: 0; transition: opacity .25s ease;
}
.mission-card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow-cyan); }
.mission-card:hover::before { transform: scaleX(1); }
.mission-card:hover::after { opacity: 1; }
.mission-card:focus-within { border-color: var(--line-strong); }

.mission-card__index {
  position: absolute; top: .7rem; right: 1rem;
  font: 700 2.6rem/1 var(--mono);
  color: rgba(136, 164, 196, .1);
  letter-spacing: -.04em;
  pointer-events: none;
}
.mission-card__tags { display: flex; flex-wrap: wrap; gap: .4rem; position: relative; z-index: 1; }
.mission-card h3 { position: relative; z-index: 1; font-size: 1.12rem; padding-right: 2.6rem; }
.mission-card__desc { position: relative; z-index: 1; color: var(--muted); font-size: .88rem; margin: 0; flex: 1; }

.mission-card__foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.status-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .32rem .65rem; border-radius: 999px;
  font: 700 .66rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid rgba(136, 164, 196, .26); background: rgba(136, 164, 196, .08); color: var(--muted);
}
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.status-pill--solved { color: var(--green); border-color: rgba(53, 224, 161, .34); background: rgba(53, 224, 161, .1); }
.status-pill--open { color: var(--cyan); border-color: rgba(79, 227, 255, .3); background: rgba(79, 227, 255, .1); }

.mission-card__reward { color: var(--gold); font: 700 .82rem/1 var(--mono); }
.mission-card__reward i { font-style: normal; color: var(--muted-2); font-weight: 500; font-size: .72rem; }

.mission-card__cta {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  margin-top: .2rem; padding-top: .85rem;
  border-top: 1px solid var(--line-soft);
  color: var(--cyan);
  font: 600 .74rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
}
.mission-card__cta::after { content: "→"; transition: transform .22s ease; }
.mission-card:hover .mission-card__cta::after { transform: translateX(5px); }
.mission-card__cta::before { content: ""; position: absolute; inset: -100rem -100rem 0; }

.mission-card.is-solved { border-color: rgba(53, 224, 161, .26); }
.mission-card.is-solved::before { background: linear-gradient(90deg, var(--green), transparent); transform: scaleX(1); }

/* ------------------------------------------------------ 13. Reward callout */
.reward-callout {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: 1.6rem;
  margin-top: 1.4rem; padding: 1.7rem 1.9rem;
  border: 1px solid rgba(255, 200, 97, .26);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, rgba(255, 200, 97, .14), transparent 55%),
    linear-gradient(300deg, rgba(255, 77, 109, .12), transparent 45%),
    var(--surface);
}
.reward-callout::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  border-radius: 50%; background: rgba(255, 200, 97, .12); filter: blur(60px);
}
.reward-callout > * { position: relative; }
.reward-callout h2 { margin-bottom: .4rem; }
.reward-callout p { color: var(--muted); max-width: 60ch; }

/* ------------------------------------------------- 14. Reward terminal (wheel) */
.wheel-page { display: grid; gap: 1.3rem; }

.terminal-head {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  padding: .85rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(180deg, rgba(79, 227, 255, .08), transparent);
}
.terminal-head__dots { display: flex; gap: .35rem; }
.terminal-head__dots i { width: 9px; height: 9px; border-radius: 50%; background: #22364f; }
.terminal-head__dots i:nth-child(1) { background: #ff5f57; }
.terminal-head__dots i:nth-child(2) { background: #febc2e; }
.terminal-head__dots i:nth-child(3) { background: #28c840; }
.terminal-head__title { font: 600 .74rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.wheel-warning {
  display: flex; gap: .7rem; align-items: flex-start;
  margin: 0; padding: .9rem 1.1rem;
  border: 1px solid rgba(255, 200, 97, .28);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  background: rgba(255, 200, 97, .08);
  color: #ffe6b4; font-size: .92rem;
}
.wheel-warning::before { content: "⚠"; color: var(--gold); }

.wheel-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.3rem; align-items: start; }

.wheel-stage {
  position: relative;
  display: grid; place-items: center;
  padding: 2rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  border-top: 0;
  background:
    radial-gradient(60% 60% at 50% 45%, rgba(79, 227, 255, .1), transparent 70%),
    var(--surface);
}
.wheel-stage__inner { position: relative; width: min(100%, 520px); }
#wheel {
  display: block; width: 100%; height: auto; border-radius: 50%;
  box-shadow:
    0 0 0 8px rgba(9, 17, 30, .9),
    0 0 0 9px rgba(79, 227, 255, .3),
    0 0 70px rgba(79, 227, 255, .22),
    inset 0 0 60px rgba(0, 0, 0, .6);
}
.wheel-pointer {
  position: absolute; z-index: 3; left: 50%; top: -10px; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 15px solid transparent; border-right: 15px solid transparent;
  border-top: 32px solid var(--red);
  filter: drop-shadow(0 4px 10px rgba(255, 77, 109, .7));
}
.wheel-hub {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #16334f, #070d18);
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 26px rgba(79, 227, 255, .3), inset 0 0 18px rgba(0, 0, 0, .8);
  color: var(--cyan); font: 700 .58rem/1.3 var(--mono); letter-spacing: .12em; text-align: center;
  pointer-events: none;
}

.wheel-side { display: grid; gap: 1rem; align-content: start; }
.wheel-balance {
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(255, 200, 97, .26);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 200, 97, .12), rgba(255, 200, 97, .02));
}
.wheel-balance span { color: #d9b878; font: 600 .66rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.wheel-balance strong { display: block; margin-top: .35rem; color: var(--gold); font: 700 2.3rem/1 var(--mono); text-shadow: 0 0 24px rgba(255, 200, 97, .35); }

#prizes-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
#prizes-list li {
  display: grid; grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center; gap: .7rem;
  padding: .6rem .2rem;
  border-bottom: 1px dashed var(--line-soft);
  font-size: .9rem;
}
#prizes-list li:last-child { border-bottom: 0; }
#prizes-list li .swatch { width: 10px; height: 10px; border-radius: 3px; box-shadow: 0 0 8px currentColor; background: currentColor; }
#prizes-list li strong { color: var(--gold); font: 700 .95rem/1 var(--mono); }
#prizes-list li em { display: block; font-style: normal; color: var(--muted-2); font: 500 .62rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; }

.spin-dock { display: grid; gap: .8rem; }
#spin-status {
  min-height: 1.6rem; margin: 0;
  padding: .75rem .9rem;
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--cyan);
  font: 500 .84rem/1.5 var(--mono);
}
#spin-status:empty::before { content: "> awaiting operator input…"; color: var(--muted-2); }
.spin-result {
  display: none;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 200, 97, .4);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 200, 97, .18), rgba(255, 200, 97, .04));
  text-align: center;
}
.spin-result.is-visible { display: block; animation: popIn .45s cubic-bezier(.22, 1, .36, 1); }
.spin-result span { display: block; color: #d9b878; font: 600 .64rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.spin-result strong { display: block; margin-top: .4rem; color: var(--gold); font-size: 1.35rem; }
@keyframes popIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }

/* -------------------------------------------------------------- 21. Auth */
.auth-body { display: grid; min-height: 100vh; }
.auth-wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr;
  min-height: 100vh;
}
.auth-aside {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 3rem clamp(1.6rem, 4vw, 4rem);
  border-right: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(28, 111, 146, .18), transparent 50%), rgba(7, 12, 23, .7);
}
.auth-aside::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(79, 227, 255, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 227, 255, .1) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(90% 70% at 20% 20%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(90% 70% at 20% 20%, #000, transparent 75%);
}
.auth-aside > * { position: relative; }
.auth-aside h1 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); margin-bottom: .8rem; }
.auth-aside h1 .accent { color: var(--cyan); }
.auth-features { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: .8rem; }
.auth-features li { display: flex; gap: .7rem; align-items: flex-start; color: var(--muted); font-size: .92rem; }
.auth-features li::before {
  content: "◈"; color: var(--cyan); font-family: var(--mono); flex: 0 0 auto;
}
.auth-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }

.auth-main { display: grid; place-items: center; padding: 2.5rem 1.4rem; }
.auth-card {
  width: min(430px, 100%);
  padding: 2rem 1.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.auth-card h2 { margin-bottom: .35rem; }
.auth-card > p.muted { font-size: .9rem; margin-bottom: 1.3rem; }
.auth-card form { display: grid; gap: .95rem; }
.auth-card label { display: grid; gap: .4rem; color: var(--muted); font: 600 .64rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.auth-card button[type="submit"] { width: 100%; margin-top: .3rem; padding: .85rem 1.2rem; }
.auth-alt { margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--line-soft); text-align: center; color: var(--muted); font-size: .87rem; }
.auth-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.6rem; }

/* ------------------------------------------------------------- 22. Admin */
.admin-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.admin-tabs a {
  padding: .55rem .95rem;
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  color: var(--muted);
  font: 600 .72rem/1 var(--mono); letter-spacing: .13em; text-transform: uppercase;
}
.admin-tabs a:hover { color: var(--text); border-color: var(--line-strong); background: rgba(79, 227, 255, .08); }
.admin-tabs a.is-active { color: var(--cyan); border-color: var(--line-strong); background: rgba(79, 227, 255, .12); }

.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.admin-table th {
  padding: .7rem .9rem; text-align: left;
  border-bottom: 1px solid var(--line);
  color: var(--muted-2); font: 600 .62rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase;
  white-space: nowrap;
}
.admin-table td { padding: .75rem .9rem; border-bottom: 1px solid var(--line-soft); font-size: .9rem; vertical-align: middle; }
.admin-table tbody tr:hover { background: rgba(79, 227, 255, .04); }
.admin-table td.num { font-family: var(--mono); color: var(--gold); font-weight: 600; }
.admin-table form { display: flex; gap: .5rem; align-items: center; }
.admin-table form input { max-width: 110px; padding: .5rem .6rem; }
.admin-table form button { padding: .5rem .85rem; font-size: .68rem; }

.audit-log { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.audit-log li {
  display: grid; grid-template-columns: 168px 190px minmax(0, 1fr); gap: .8rem;
  padding: .6rem .8rem;
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  background: rgba(3, 6, 13, .6);
  font: 500 .78rem/1.5 var(--mono);
}
.audit-log li time { color: var(--muted-2); }
.audit-log li b { color: var(--cyan); font-weight: 600; }
.audit-log li span { color: var(--muted); word-break: break-all; }

.empty-state {
  padding: 2.6rem 1.2rem; text-align: center; color: var(--muted-2);
  border: 1px dashed var(--line-soft); border-radius: var(--radius);
  font: 500 .88rem/1.6 var(--mono);
}

/* -------------------------------------------------------- 23. Responsive */
@media (max-width: 1180px) {
  .wheel-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding: 1.7rem 1.5rem; }
  .reward-callout { grid-template-columns: minmax(0, 1fr); }
  .auth-wrap { grid-template-columns: minmax(0, 1fr); }
  .auth-aside { border-right: 0; border-bottom: 1px solid var(--line); padding: 2.4rem 1.6rem; }
  .auth-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .topnav__inner { flex-wrap: wrap; gap: .6rem 1rem; padding: .7rem 0; }
  .nav-toggle { display: grid; place-items: center; order: 3; margin-left: auto; }
  .topnav__right { order: 4; margin-left: 0; width: 100%; justify-content: space-between; }
  .topnav__links {
    order: 5; margin-left: 0; width: 100%;
    flex-direction: column; align-items: stretch; gap: .25rem;
    max-height: 0; overflow: hidden; transition: max-height .28s ease;
  }
  .topnav__links.is-open { max-height: 340px; }
  .topnav__links a { padding: .7rem .9rem; }
  .topnav__links a.is-active::after { display: none; }
  .sys-status { display: none; }
  .audit-log li { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
}

@media (max-width: 720px) {
  main.shell { width: calc(100% - 1.6rem); padding: 1.3rem 0 3rem; }
  .site-footer { width: calc(100% - 1.6rem); }
  .hero { padding: 1.4rem 1.2rem; border-radius: var(--radius); }
  .hero__coins strong { font-size: 2.1rem; }
  .kpi-grid { grid-template-columns: minmax(0, 1fr); }
  .mission-grid { grid-template-columns: minmax(0, 1fr); }
  .reward-callout { padding: 1.3rem 1.2rem; }
  .auth-features { grid-template-columns: minmax(0, 1fr); }
  .auth-card { padding: 1.5rem 1.25rem; }
  .wheel-hub { width: 58px; height: 58px; font-size: .5rem; }
}

@media (max-width: 420px) {
  .brand__text span { letter-spacing: .18em; font-size: .54rem; }
  .user-chip__meta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .bg-layer, .topnav, .site-footer { display: none; }
  body { background: #fff; color: #000; }
}

/* ------------------------------------------------------ 23b. Form controls */
.input,
.flag-submit input,
.auth-card input,
.admin-table input {
  width: 100%;
  padding: .68rem .8rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(3, 6, 13, .9);
  color: var(--text);
  font: 500 .9rem/1.3 var(--mono);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.input:focus,
.flag-submit input:focus,
.auth-card input:focus,
.admin-table input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(79, 227, 255, .14);
}

/* ================================================== 24. Submit board (portal) */
.submit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.1rem; }

.submit-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: .75rem;
  padding: 1.3rem 1.25rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s cubic-bezier(.22, 1, .36, 1);
}
.submit-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-cyan); }
.submit-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.submit-card:hover::before { transform: scaleX(1); }
.submit-card.is-solved { border-color: rgba(53, 224, 161, .3); }
.submit-card.is-solved::before { background: linear-gradient(90deg, var(--green), transparent); transform: scaleX(1); }

.submit-card__index {
  position: absolute; top: .6rem; right: .95rem;
  font: 700 2.6rem/1 var(--mono); color: rgba(136, 164, 196, .09); letter-spacing: -.04em; pointer-events: none;
}
.submit-card__tags { display: flex; flex-wrap: wrap; gap: .4rem; position: relative; }
.submit-card h3 { position: relative; font-size: 1.1rem; padding-right: 2.6rem; }
.submit-card__desc { color: var(--muted); font-size: .87rem; margin: 0; flex: 1; }

.submit-card__lab {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .8rem;
  padding: .75rem .85rem;
  border: 1px dashed var(--line-soft); border-radius: var(--radius-sm);
  background: rgba(3, 6, 13, .5);
}
.submit-card__lab small { display: block; color: var(--muted-2); font-size: .74rem; line-height: 1.45; }
.submit-card__lab .btn { flex: 0 0 auto; }

.submit-card__solved {
  display: flex; align-items: center; gap: .6rem;
  padding: .8rem .9rem;
  border: 1px solid rgba(53, 224, 161, .3); border-radius: var(--radius-sm);
  background: rgba(53, 224, 161, .09);
  color: var(--green); font: 600 .78rem/1.4 var(--mono);
}
.submit-card__solved::before { content: "✓"; font-size: 1rem; }
.submit-card__solved span { color: var(--muted); font-weight: 500; }

.flag-submit {
  display: grid; gap: .6rem;
  padding: .95rem 1rem;
  border: 1px solid rgba(255, 200, 97, .26);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255, 200, 97, .09), rgba(255, 200, 97, .02));
}
.flag-submit h4 {
  display: flex; align-items: center; gap: .45rem;
  font: 700 .68rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
}
.flag-submit h4::before { content: "⚑"; }
.flag-submit__row { display: flex; gap: .5rem; }
.flag-submit__row input { flex: 1; min-width: 0; }
.flag-submit__row button {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 224, 168, .65);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #ffd98d, #f2ad42);
  color: #1c1204; cursor: pointer;
  padding: .6rem 1rem;
  font: 700 .72rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
}
.flag-submit__row button:hover { background: linear-gradient(180deg, #ffe6ab, #ffbe57); }
.flag-submit__row button:disabled { opacity: .5; cursor: not-allowed; }
.flag-submit-status { min-height: 1.1rem; margin: 0; color: var(--gold); font: 500 .78rem/1.45 var(--mono); }
.flag-submit-status.is-error { color: var(--red); }
.flag-submit-status.is-ok { color: var(--green); }

/* ========================================================= 25. Leaderboard */
.rank-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.4rem; align-items: center;
  padding: 1.6rem 1.8rem; margin-bottom: 1.3rem;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(255, 200, 97, .12), transparent 55%), var(--surface);
}
.rank-hero__me { text-align: right; }
.rank-hero__me span { display: block; color: var(--muted); font: 600 .64rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.rank-hero__me strong { display: block; margin-top: .3rem; color: var(--gold); font: 700 2.6rem/1 var(--mono); }

.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.3rem; }
.podium__slot {
  position: relative; overflow: hidden;
  display: grid; gap: .35rem; justify-items: center; text-align: center;
  padding: 1.3rem 1rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
}
.podium__slot::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 0%, var(--tone, rgba(79,227,255,.16)), transparent 70%); }
.podium__slot > * { position: relative; }
.podium__medal { font-size: 1.9rem; line-height: 1; }
.podium__name { font: 600 1.02rem/1.3 var(--sans); word-break: break-word; }
.podium__score { color: var(--gold); font: 700 1.4rem/1 var(--mono); }
.podium__meta { color: var(--muted-2); font: 500 .68rem/1.4 var(--mono); }
.podium__slot--1 { --tone: rgba(255, 200, 97, .22); border-color: rgba(255, 200, 97, .34); }
.podium__slot--2 { --tone: rgba(190, 210, 230, .18); }
.podium__slot--3 { --tone: rgba(205, 127, 80, .18); }

.rank-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.rank-table th {
  padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--line);
  color: var(--muted-2); font: 600 .62rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
}
.rank-table td { padding: .75rem .9rem; border-bottom: 1px solid var(--line-soft); font-size: .92rem; vertical-align: middle; }
.rank-table tbody tr:hover { background: rgba(79, 227, 255, .04); }
.rank-table tr.is-me { background: rgba(79, 227, 255, .09); box-shadow: inset 3px 0 0 var(--cyan); }
.rank-table tr.is-me td:first-child { font-weight: 700; }
.rank-pos { display: inline-grid; place-items: center; min-width: 34px; height: 30px; padding: 0 .4rem; border-radius: 8px; background: rgba(136, 164, 196, .12); color: var(--muted); font: 700 .82rem/1 var(--mono); }
.rank-pos--1 { background: rgba(255, 200, 97, .18); color: var(--gold); }
.rank-pos--2 { background: rgba(190, 210, 230, .16); color: #cfe0f0; }
.rank-pos--3 { background: rgba(205, 127, 80, .18); color: #e0a077; }
.rank-player { display: flex; align-items: center; gap: .65rem; }
.rank-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(150deg, #1c6f92, #6e1f39); color: #fff; font: 700 .8rem/1 var(--mono); flex: 0 0 auto; }
.rank-bar { display: flex; gap: .22rem; }
.rank-bar i { width: 18px; height: 5px; border-radius: 99px; background: rgba(136, 164, 196, .2); }
.rank-bar i.on { background: var(--green); box-shadow: 0 0 8px rgba(53, 224, 161, .6); }

@media (max-width: 900px) {
  .rank-hero { grid-template-columns: minmax(0, 1fr); }
  .rank-hero__me { text-align: left; }
  .podium { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .submit-grid { grid-template-columns: minmax(0, 1fr); }
  .submit-card__lab { grid-template-columns: minmax(0, 1fr); }
  .submit-card__lab .btn { width: 100%; }
  .flag-submit__row { flex-direction: column; }
  .flag-submit__row button { width: 100%; }
}
