/* DkBattle home page shell - "ABYSS" design (2026-11-30, mockup theme/mockups/abyss.html).
   Palette tokens below are shared with sub.css / acc.css (sub-pages use the same values).
   Previous design: theme.css.bak_abyss. Keep this file ASCII. */
:root {
  /* depths */
  --abyss: #04070c;
  --ink: #070d16;
  --ink-2: #0b1522;
  --line: rgba(140, 220, 255, .08);
  /* text */
  --text: #d6e6f0;
  --text-dim: #8098ab;
  --text-mute: #526577;
  --muted: #8098ab;
  /* bioluminescence */
  --teal: #3ef0d8;
  --teal-2: #19b8b0;
  --cyan: #6cc9ff;
  --violet: #a07cff;
  --violet-2: #6a48d8;
  --rust: #d0582f;
  /* races */
  --slayer: #6cc9ff;
  --vampire: #c77dff;
  --ouster: #45f0b0;
  /* surfaces */
  --glass: linear-gradient(165deg, rgba(22, 44, 66, .55) 0%, rgba(9, 17, 28, .78) 45%, rgba(6, 11, 19, .88) 100%);
  --glass-edge: inset 0 1px 0 rgba(200, 240, 255, .06), inset 0 0 50px rgba(62, 240, 216, .035), 0 24px 60px rgba(0, 0, 0, .35);
  --r: 18px;
  /* type */
  --display: "Oxanium", system-ui, sans-serif;
  --body: "Sora", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  /* legacy names (old theme) */
  --bg: #04070c;
  --serif: var(--display);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--abyss); color-scheme: dark; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font: 400 15px/1.55 var(--body);
  background:
    radial-gradient(1200px 700px at 50% -10%, #0c2236 0%, rgba(12, 34, 54, 0) 60%),
    radial-gradient(900px 600px at 100% 40%, rgba(70, 40, 140, .18), rgba(0, 0, 0, 0) 70%),
    radial-gradient(800px 600px at 0% 75%, rgba(20, 120, 130, .12), rgba(0, 0, 0, 0) 70%),
    linear-gradient(180deg, #06101a 0%, var(--abyss) 40%, #020408 100%);
  background-color: var(--abyss);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: rgba(62, 240, 216, .3); color: #fff; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ---------- ambient layers ---------- */
.caustics { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.caustics span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35; will-change: transform; }
.caustics .c1 { width: 46vw; height: 46vw; left: -10vw; top: 10vh; background: radial-gradient(circle, rgba(62, 240, 216, .22), transparent 65%); animation: drift1 26s ease-in-out infinite alternate; }
.caustics .c2 { width: 40vw; height: 40vw; right: -8vw; top: 40vh; background: radial-gradient(circle, rgba(160, 124, 255, .22), transparent 65%); animation: drift2 32s ease-in-out infinite alternate; }
.caustics .c3 { width: 30vw; height: 30vw; left: 35vw; top: -12vh; background: radial-gradient(circle, rgba(108, 201, 255, .18), transparent 65%); animation: drift3 22s ease-in-out infinite alternate; }
.shafts { position: fixed; inset: -20vh -20vw auto -20vw; height: 90vh; pointer-events: none; z-index: 0;
  background: repeating-linear-gradient(100deg, rgba(120, 220, 255, 0) 0 90px, rgba(120, 220, 255, .025) 90px 130px, rgba(120, 220, 255, 0) 130px 260px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 80%); mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
  animation: sway 18s ease-in-out infinite alternate; }
#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
@keyframes drift1 { to { transform: translate(18vw, 12vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-14vw, -10vh) scale(.9); } }
@keyframes drift3 { to { transform: translate(-10vw, 14vh) scale(1.2); } }
@keyframes sway { to { transform: translateX(6vw) skewX(-4deg); } }

.wrap { position: relative; z-index: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer;
  font: 700 12.5px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; border-radius: 999px; padding: 13px 20px;
  transition: box-shadow .3s, transform .3s, color .3s, background .3s; white-space: nowrap; }
.btn-ghost { color: var(--text); background: rgba(140, 220, 255, .05); box-shadow: inset 0 0 0 1px rgba(140, 220, 255, .12); }
.btn-ghost:hover, .drop.open > .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(62, 240, 216, .5), 0 0 22px rgba(62, 240, 216, .25); }
.btn-pri { color: #021512; background: linear-gradient(120deg, #5ff7e2 0%, #3ef0d8 40%, #7fb6ff 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .15) inset, 0 8px 28px rgba(62, 240, 216, .3); }
.btn-pri:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .3) inset, 0 0 36px rgba(62, 240, 216, .6), 0 0 80px rgba(108, 201, 255, .25); }
.ico { display: inline-grid; place-items: center; width: 24px; height: 24px; margin: -6px 0; border-radius: 50%;
  background: rgba(2, 17, 15, .8); box-shadow: inset 0 0 0 1px rgba(62, 240, 216, .3), 0 0 12px rgba(62, 240, 216, .2) inset; }
.ico svg { width: 12px; height: 12px; fill: var(--teal); }
.lnk, .head-link { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--display); letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal); padding: 8px 0; white-space: nowrap; transition: text-shadow .25s, gap .25s; }
.lnk:hover, .head-link:hover { text-shadow: 0 0 14px rgba(62, 240, 216, .9); }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(4, 8, 14, .9), rgba(4, 8, 14, .66));
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 1px 0 rgba(108, 201, 255, .07), 0 10px 30px rgba(0, 0, 0, .35); }
.nav-in { display: flex; align-items: center; gap: 22px; height: 70px; }
.logo { display: inline-flex; line-height: 0; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; line-height: 1; }
.dkb-emblem { display: block; width: auto; height: 46px; filter: drop-shadow(0 0 12px rgba(62, 240, 216, .25)); transition: filter .3s; }
.brand:hover .dkb-emblem { filter: drop-shadow(0 0 16px rgba(62, 240, 216, .55)); }
.brand b { font: 700 17px/1 var(--display); letter-spacing: .14em; color: #eaf6ff; }
.brand b i { font-style: normal; color: var(--teal); }
.menu { display: contents; }
.mainnav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.mainnav > a, .mainnav .dtoggle { position: relative; display: inline-flex; align-items: center; font: 600 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-dim); padding: 10px 13px; border-radius: 10px; transition: color .25s, text-shadow .25s, background .25s; }
.mainnav > a::after, .mainnav .dtoggle::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 10px 2px var(--teal); transform: translateX(-50%) scale(0); transition: transform .25s; }
.mainnav > a:hover, .mainnav .dtoggle:hover, .mainnav .drop.open > .dtoggle { color: #eafffb; text-shadow: 0 0 14px rgba(62, 240, 216, .7); background: rgba(62, 240, 216, .05); }
.mainnav > a:hover::after, .mainnav .dtoggle:hover::after, .mainnav .drop.open > .dtoggle::after { transform: translateX(-50%) scale(1); }
.chev { display: inline-block; width: 8px; height: 8px; margin-left: 6px; flex: none; transition: transform .25s; }
.drop.open > .dtoggle .chev { transform: rotate(180deg); }
.drop { position: relative; }
.dmenu { display: none; position: absolute; top: calc(100% + 12px); left: 0; min-width: 220px; padding: 8px; z-index: 60;
  background: linear-gradient(165deg, rgba(14, 30, 46, .96), rgba(5, 10, 17, .97));
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(62, 240, 216, .14), 0 20px 50px rgba(0, 0, 0, .6), 0 0 40px rgba(62, 240, 216, .06); }
.dmenu.right { left: auto; right: 0; }
.drop.open .dmenu { display: block; animation: dropIn .2s ease-out; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-4px); } }
.dmenu a { display: block; padding: 10px 14px; border-radius: 9px; font: 500 13px/1.2 var(--display); letter-spacing: .08em; color: #bcd3e0; transition: background .2s, color .2s, box-shadow .2s; }
.dmenu a:hover { background: rgba(62, 240, 216, .08); color: #fff; box-shadow: inset 2px 0 0 var(--teal); }
.dmenu a.adm { color: var(--violet); }
.dmenu a.out { margin-top: 4px; color: var(--text-dim); box-shadow: 0 -1px 0 rgba(140, 220, 255, .08); border-radius: 0 0 9px 9px; }
.dmenu a.out:hover { color: #ffb59a; background: rgba(208, 88, 47, .1); box-shadow: inset 2px 0 0 var(--rust); }
.account { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.account .user { max-width: 230px; overflow: hidden; text-overflow: ellipsis; text-transform: none; letter-spacing: .08em; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; cursor: pointer;
  background: rgba(140, 220, 255, .06); box-shadow: inset 0 0 0 1px rgba(140, 220, 255, .12); }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: #cfe9f5; position: relative; content: ""; transition: transform .25s, background .25s; }
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }
#navtog { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
#navtog:checked + .burger span { background: transparent; }
#navtog:checked + .burger span::before { transform: translateY(6px) rotate(45deg); }
#navtog:checked + .burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; margin: 26px auto 0; max-width: 1320px; padding: 0 24px; z-index: 1; }
.hero-stage { position: relative; aspect-ratio: 1375 / 700; border-radius: 28px; overflow: hidden; isolation: isolate;
  background: #05090f; box-shadow: 0 40px 120px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(140, 220, 255, .05); }
.hero-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; display: block;
  filter: saturate(.95) contrast(1.1) brightness(.9); }
.hero-tint { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(60% 70% at 50% 48%, rgba(0, 0, 0, 0) 40%, rgba(4, 8, 14, .55) 75%, rgba(4, 8, 14, .95) 100%),
    radial-gradient(40% 50% at 8% 90%, rgba(62, 240, 216, .28), transparent 70%),
    radial-gradient(45% 55% at 95% 10%, rgba(160, 124, 255, .28), transparent 70%); }
.hero-cool { position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: color; opacity: .55;
  background: radial-gradient(70% 60% at 50% 50%, transparent 35%, #0f4f63 80%); }
/* bilde ar tēliem (bg-trio.jpg): visa bilde redzama (16:9), krāsas netiek pārtonētas, sonar apļi nav pāri sejām */
.hero-stage.art { aspect-ratio: 1344 / 756; }
.hero-stage.art img { object-position: 50% 50%; filter: none; }
/* kā dkreignited.com: pa visu platumu un visu ekrāna augstumu, sākas zem caurspīdīgās augšējās joslas (70 px) */
@media (min-width: 641px) {
  .hero:has(.hero-stage.art) { max-width: none; padding: 0; margin: -70px 0 0; }
  .hero-stage.art { aspect-ratio: auto; height: 100vh; min-height: 560px; border-radius: 0; box-shadow: none; }
  .hero-stage.art img { object-position: 50% 30%; }
  .hero:has(.hero-stage.art) .hero-dock { margin-top: -190px; }
}
.hero-stage.art .hero-cool, .hero-stage.art .sonar { display: none; }
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 40%; z-index: 2; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(4, 7, 12, .9)); }
.sonar { position: absolute; left: 50%; top: 47%; width: 62%; aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 2; pointer-events: none; mix-blend-mode: screen; }
.sonar svg { width: 100%; height: 100%; overflow: visible; }
.sonar .ring { fill: none; stroke: var(--teal); transform-origin: 200px 200px; opacity: 0; animation: ping 6s cubic-bezier(.2, .6, .3, 1) infinite; }
.sonar .ring:nth-child(2) { animation-delay: 2s; stroke: var(--cyan); }
.sonar .ring:nth-child(3) { animation-delay: 4s; stroke: var(--violet); }
.sonar .rune { fill: none; stroke: rgba(62, 240, 216, .35); stroke-width: .6; stroke-dasharray: 2 7; transform-origin: 200px 200px; animation: spin 80s linear infinite; }
.sonar .rune2 { fill: none; stroke: rgba(160, 124, 255, .3); stroke-width: .5; stroke-dasharray: 14 6 2 6; transform-origin: 200px 200px; animation: spin 120s linear infinite reverse; }
@keyframes ping { 0% { transform: scale(.35); opacity: 0; stroke-width: 2; } 12% { opacity: .75; } 100% { transform: scale(1.25); opacity: 0; stroke-width: .4; } }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-dock { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: -92px; padding: 0 16px; }
.status { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; font: 500 12.5px/1.2 var(--mono); color: #bfe8ee; letter-spacing: .04em;
  padding: 10px 18px; border-radius: 999px; background: rgba(6, 16, 24, .7); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(62, 240, 216, .18), 0 0 30px rgba(62, 240, 216, .08); }
.status b { color: #eafffb; font-weight: 500; }
.vsep { width: 1px; height: 14px; background: rgba(140, 220, 255, .2); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.on { background: var(--teal); box-shadow: 0 0 0 0 rgba(62, 240, 216, .6); animation: beat 2.2s ease-out infinite; }
.dot.off { background: var(--rust); box-shadow: 0 0 10px var(--rust); }
.srvclk { color: #eafffb; font-variant-numeric: tabular-nums; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgba(62, 240, 216, .6); } 70% { box-shadow: 0 0 0 10px rgba(62, 240, 216, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 240, 216, 0); } }
.dl { position: relative; display: inline-flex; align-items: center; gap: 18px; padding: 22px 40px 22px 26px; border-radius: 999px;
  font: 800 clamp(16px, 2.2vw, 22px)/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: #02110f;
  background: linear-gradient(110deg, #6ffbe7 0%, #3ef0d8 35%, #56c6ff 75%, #a28bff 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 18px 50px rgba(62, 240, 216, .35), 0 0 90px rgba(108, 201, 255, .2);
  transition: transform .35s, box-shadow .35s; }
.dl::before { content: ""; position: absolute; inset: -6px; border-radius: 999px; background: inherit; filter: blur(18px); opacity: .35; z-index: -1; transition: opacity .35s; }
.dl:hover { transform: translateY(-2px); }
.dl:hover::before { opacity: .75; }
.dl .ico { width: 42px; height: 42px; margin: 0; background: rgba(2, 17, 15, .85); box-shadow: 0 0 18px rgba(62, 240, 216, .5) inset; }
.dl .ico svg { width: 20px; height: 20px; }

/* ---------- sections ---------- */
.board { position: relative; z-index: 1; padding-bottom: 40px; }
.sec { margin-top: 72px; }
#frame, #news, #ranking, #guides, .sched-panel { scroll-margin-top: 90px; }
.sh { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; font: 700 clamp(22px, 2.6vw, 30px)/1 var(--display); letter-spacing: .08em; color: #eef8ff; text-transform: uppercase; }
.sh .glyph { width: 30px; height: 30px; flex: none; }
.sh .rule { flex: 1; height: 1px; min-width: 20px; background: linear-gradient(90deg, rgba(62, 240, 216, .45), rgba(160, 124, 255, .15) 50%, transparent); }
.sh .depth { font: 500 11px/1 var(--mono); letter-spacing: .12em; color: var(--text-mute); white-space: nowrap; }
.sh .more { font-size: 12px; padding: 8px 2px; }

.panel, .glass { position: relative; min-width: 0; border-radius: var(--r); overflow: hidden; background: var(--glass); box-shadow: var(--glass-edge); }
.glass::before { content: ""; position: absolute; width: 320px; height: 320px; right: -120px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 240, 216, .14), transparent 65%); pointer-events: none; }
.glass.v::before { background: radial-gradient(circle, rgba(160, 124, 255, .16), transparent 65%); left: -120px; right: auto; }
.glass > * { position: relative; }
.none { color: var(--text-mute); font: 400 13px/1.4 var(--mono); }

/* iframe sub-pages (#frame) */
#frame { margin-top: 40px; }
.framebar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px 14px 22px;
  background: linear-gradient(90deg, rgba(62, 240, 216, .08), rgba(160, 124, 255, .05) 60%, transparent); box-shadow: 0 1px 0 rgba(140, 220, 255, .08);
  font: 700 15px/1.2 var(--display); color: #eef8ff; text-transform: uppercase; letter-spacing: .14em; }
.framebar span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 12px 2px 0; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.framebar button, .modal .x { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; font-size: 24px; line-height: 1;
  color: var(--text-dim); background: rgba(140, 220, 255, .05); box-shadow: inset 0 0 0 1px rgba(140, 220, 255, .12); transition: color .25s, box-shadow .25s; }
.framebar button:hover, .modal .x:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(62, 240, 216, .5), 0 0 18px rgba(62, 240, 216, .25); }
#content { display: block; width: 100%; height: 600px; border: 0; background: var(--ink); }

/* row 1: news | hourly event */
.row-top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; }

/* news */
.tabs { display: flex; gap: 4px; padding: 6px; margin: 22px 22px 6px; border-radius: 14px; background: rgba(2, 6, 10, .5); box-shadow: inset 0 0 0 1px rgba(140, 220, 255, .06);
  width: max-content; max-width: calc(100% - 44px); overflow-x: auto; }
.tabs button { font: 600 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); background: none; border: 0; padding: 10px 16px; border-radius: 10px; cursor: pointer; transition: all .25s; white-space: nowrap; }
.tabs button:hover { color: #fff; }
.tabs button.active { color: #021512; background: var(--teal); box-shadow: 0 0 22px rgba(62, 240, 216, .45); }
.newslist { list-style: none; margin: 0; padding: 8px 10px 14px; }
.newslist li { --k: var(--teal); display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 14px; border-radius: 14px; transition: background .3s, box-shadow .3s; }
.newslist li + li { box-shadow: 0 -1px 0 rgba(140, 220, 255, .05); }
.newslist li:hover { background: radial-gradient(120% 140% at 0% 50%, rgba(62, 240, 216, .08), transparent 60%); box-shadow: inset 3px 0 0 var(--k); }
.newslist li.none { display: block; }
.chip { display: flex; align-items: center; gap: 9px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--k); }
.chip::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--k); box-shadow: 0 0 10px var(--k); }
.newslist li[data-cat="Events"] { --k: var(--violet); }
.newslist li[data-cat="Notice"] { --k: var(--rust); }
.t-updates { --k: var(--teal); } .t-events { --k: var(--violet); } .t-notice { --k: var(--rust); }
.newslist .title { min-width: 0; font: 500 16px/1.35 var(--body); color: #e6f2f8; transition: color .25s, text-shadow .25s; }
.newslist li:hover .title { color: #fff; text-shadow: 0 0 18px rgba(62, 240, 216, .35); }
.newslist .date { font: 400 12px/1 var(--mono); color: var(--text-mute); white-space: nowrap; }

/* hourly event (theme/events_lib.php) */
.hourly { padding: 26px 24px 22px; }
.ev-now { display: flex; gap: 20px; align-items: center; }
.gauge { width: 112px; height: 112px; flex: none; position: relative; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge .trk { fill: none; stroke: rgba(140, 220, 255, .08); stroke-width: 6; }
.gauge .val { fill: none; stroke: url(#gg); stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(62, 240, 216, .7)); transition: stroke-dashoffset .9s linear; }
.gauge .tick { fill: none; stroke: rgba(140, 220, 255, .25); stroke-width: 1; stroke-dasharray: 1 5.2; }
.gauge .mid { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.gauge .mid b { display: block; font: 700 22px/1 var(--display); color: #fff; letter-spacing: .04em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gauge .mid small { display: block; margin-top: 4px; font: 400 10px/1 var(--mono); color: var(--text-mute); letter-spacing: .12em; }
.ev-info { min-width: 0; flex: 1; }
.ev-lbl { display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-mute); }
.ev-now.live .ev-lbl { color: var(--teal); }
.ev-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: beat 2.2s ease-out infinite; }
.ev-name { margin: 10px 0 6px; font: 700 21px/1.15 var(--display); color: #f2fbff; letter-spacing: .02em; }
.ev-now.live .ev-name { text-shadow: 0 0 22px currentColor; }
.ev-desc { margin: 0; color: var(--text-dim); font-size: 13.5px; }
.ev-clock { margin-top: 10px; font: 400 12px/1 var(--mono); color: var(--text-mute); letter-spacing: .06em; }
.ev-clock time { color: #bcd7e3; }
.ev-prog { height: 2px; margin-top: 10px; border-radius: 2px; background: rgba(140, 220, 255, .08); overflow: hidden; }
.ev-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--violet)); box-shadow: 0 0 10px var(--teal); }
.ev-next { margin-top: 22px; }
.ev-next .nx { display: block; margin-bottom: 10px; font: 500 12px/1.4 var(--mono); color: #bcd7e3; letter-spacing: .06em; }
.ev-next b { color: #fff; font-weight: 500; }
.opts { display: flex; flex-direction: column; gap: 6px; }
.evchip { --k: var(--teal); color: var(--k); }
.evchip.c-exp { --k: var(--teal); } .evchip.c-mon { --k: #ff8f66; } .evchip.c-rank { --k: var(--violet); }
.evchip.c-luck { --k: var(--ouster); } .evchip.c-drop { --k: var(--cyan); }
.ev-name.c-exp { color: var(--teal); } .ev-name.c-mon { color: #ff8f66; } .ev-name.c-rank { color: #c4adff; }
.ev-name.c-luck { color: var(--ouster); } .ev-name.c-drop { color: var(--cyan); }
.opts .evchip { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px;
  font: 600 12.5px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #cfe3ee; background: rgba(140, 220, 255, .035);
  transition: background .25s, color .25s, box-shadow .25s; }
.opts .evchip::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--k);
  background: radial-gradient(circle, var(--k) 0 2px, transparent 3px); opacity: .85; }
.opts .evchip:hover { color: #fff; background: rgba(160, 124, 255, .1); box-shadow: 0 0 24px rgba(160, 124, 255, .15); }
.hist { margin-top: 22px; padding-top: 18px; box-shadow: 0 -1px 0 rgba(140, 220, 255, .07); }
.hist h4 { margin: 0 0 10px; font: 400 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-mute); }
.ev-list { list-style: none; margin: 0; padding: 0 0 0 6px; position: relative; }
.ev-list::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(180deg, var(--teal), rgba(160, 124, 255, .4) 60%, transparent); }
.ev-list li { position: relative; display: flex; gap: 16px; align-items: baseline; padding: 6px 0 6px 22px; font-size: 13px; color: #b8ccd8; }
.ev-list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: #071018; box-shadow: 0 0 0 1px rgba(62, 240, 216, .6); }
.ev-list li:first-child::before { background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.ev-list li.none::before { display: none; }
.ev-list .t { font: 400 12px/1 var(--mono); color: var(--text-mute); width: 42px; flex: none; }
.ev-list .evchip { font: 600 12px/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.ev-list .st { margin-left: auto; font: 500 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
.ev-list li.on .t { color: #eafffb; }
.panel-foot { display: flex; justify-content: flex-end; margin-top: 16px; }

/* event schedule (#schedUp is rewritten by schedule_view.php JS: li > .nm .wh .st) */
.sched { padding: 10px 10px 18px; }
.sched-list { list-style: none; margin: 0; padding: 0; }
.sched-list li { position: relative; display: grid; grid-template-columns: 56px 150px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px; border-radius: 14px; transition: background .3s; }
.sched-list li + li { box-shadow: 0 -1px 0 rgba(140, 220, 255, .05); }
.sched-list li:hover { background: rgba(108, 201, 255, .05); }
.sched-list li::before { content: ""; grid-column: 1; grid-row: 1; justify-self: center; width: 20px; height: 20px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(140, 220, 255, .3); }
.sched-list .wh { grid-column: 2; grid-row: 1; font: 500 13px/1.2 var(--mono); color: #bcd2de; white-space: nowrap; }
.sched-list .nm { grid-column: 3; grid-row: 1; min-width: 0; font: 600 18px/1.2 var(--display); color: #eef8ff; letter-spacing: .03em; }
.sched-list .st { grid-column: 4; grid-row: 1; font: 500 13px/1 var(--mono); color: var(--cyan); text-align: right; white-space: nowrap; }
.sched-list li:first-child, .sched-list li.on { background: linear-gradient(90deg, rgba(62, 240, 216, .1), rgba(62, 240, 216, 0) 70%); }
.sched-list li:first-child::before, .sched-list li.on::before { background: radial-gradient(circle, var(--teal) 0 4px, transparent 5px);
  box-shadow: inset 0 0 0 1px var(--teal), 0 0 0 5px rgba(62, 240, 216, .08), 0 0 14px rgba(62, 240, 216, .45); }
.sched-list li:first-child .st, .sched-list li.on .st { color: #fff; text-shadow: 0 0 14px rgba(62, 240, 216, .8); }
.sched-list li.on::before { animation: beat 2.2s ease-out infinite; }
.sched-list li.on .nm { color: #fff; }
.sched-foot { padding: 6px 18px 0; color: var(--text-mute); font-size: 12.5px; }
.sched-foot [data-zone] { font-family: var(--mono); color: var(--text-dim); }

/* top players per race */
.rank-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rank-col { --c: var(--slayer); --c-rgb: 108, 201, 255; display: flex; flex-direction: column; padding: 0 0 10px; }
.rank-col.c-vampire { --c: var(--vampire); --c-rgb: 199, 125, 255; }
.rank-col.c-ousters { --c: var(--ouster); --c-rgb: 69, 240, 176; }
.rank-col.glass::before { background: radial-gradient(circle, rgba(var(--c-rgb), .26), transparent 65%); right: -100px; top: -170px; }
.race-h { display: flex; align-items: center; gap: 14px; padding: 22px 22px 12px; }
.race-h svg { width: 38px; height: 38px; flex: none; color: var(--c); filter: drop-shadow(0 0 8px var(--c)); }
.race-h h3 { margin: 0; font: 700 18px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: #f2fbff; }
.rk { width: 100%; border-collapse: collapse; table-layout: auto; }
.rk th { font: 400 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-mute); text-align: right; padding: 10px 8px; }
.rk td { padding: 10px 8px; font-size: 14px; color: #cfdfe9; text-align: right; }
.rk .left { text-align: left; }
.rk th:first-child, .rk td:first-child { padding-left: 22px; width: 46px; text-align: left; }
.rk th:last-child, .rk td:last-child { padding-right: 22px; }
.rk td.n { font: 500 12px/1 var(--mono); color: var(--text-mute); }
.rk td.nm { font-weight: 500; color: #e8f3fa; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 0; width: 100%; }
.rk td.lv, .rk td.adv { font: 400 13px/1 var(--mono); color: #9fb5c3; }
.rk td.none { text-align: left; padding: 16px 22px; }
.rk tbody tr { transition: background .25s; }
.rk tbody tr:hover { background: rgba(var(--c-rgb), .08); }
.rk tbody tr:hover td.nm { color: #fff; text-shadow: 0 0 12px var(--c); }
.rk tr.p1 { background: linear-gradient(90deg, rgba(var(--c-rgb), .12), transparent 80%); }
.rk tr.p1 td { color: #fff; }
.rk tr.p1 td.n { color: var(--c); text-shadow: 0 0 10px var(--c); }
.rk tr.p1 td.adv { color: var(--c); }
.rk tr.p2 td.n, .rk tr.p3 td.n { color: #bcd2de; }
.rank-col .more { margin: auto 22px 0; padding-top: 14px; color: var(--c); }
.rank-col .more:hover { text-shadow: 0 0 14px var(--c); }

/* guides */
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.guide { display: flex; gap: 22px; align-items: center; padding: 26px; transition: box-shadow .35s, transform .35s; }
.guide:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(200, 240, 255, .08), inset 0 0 60px rgba(62, 240, 216, .08), 0 0 40px rgba(62, 240, 216, .12), 0 24px 60px rgba(0, 0, 0, .35); }
.guide .gi { width: 64px; height: 64px; flex: none; }
.guide .gbody { display: flex; flex-direction: column; min-width: 0; }
.guide .gc { margin-bottom: 6px; font: 500 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-mute); }
.guide .gt { margin: 0 0 6px; font: 700 20px/1.1 var(--display); color: #f2fbff; letter-spacing: .04em; }
.guide .gd { color: var(--text-dim); font-size: 14px; }
.guide .go { margin-left: auto; flex: none; }
.guide.v .go { color: #c4adff; }

/* login modal */
.modal { display: none; position: fixed; inset: 0; z-index: 100; padding: 16px; place-items: center;
  background: rgba(2, 5, 9, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal.open { display: grid; }
.modal .panel { width: min(380px, 100%); padding: 30px 28px 24px; box-shadow: var(--glass-edge), inset 0 0 0 1px rgba(62, 240, 216, .16), 0 0 80px rgba(62, 240, 216, .12); }
.modal .x { position: absolute; right: 14px; top: 14px; z-index: 2; }
.modal h3 { margin: 0 0 22px; font: 700 22px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: #eef8ff; text-align: center; }
.modal label { display: block; margin-bottom: 16px; font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); }
.modal input { display: block; width: 100%; margin-top: 8px; padding: 12px 14px; border: 0; border-radius: 12px; outline: none;
  background: rgba(2, 6, 10, .6); box-shadow: inset 0 0 0 1px rgba(140, 220, 255, .12); color: #eef8ff; font: 400 15px/1.2 var(--body); transition: box-shadow .25s; }
.modal input:focus { box-shadow: inset 0 0 0 1px rgba(62, 240, 216, .6), 0 0 18px rgba(62, 240, 216, .2); }
.modal .btn-pri { width: 100%; margin-top: 8px; padding: 15px 20px; }
.modal .small { margin: 18px 0 0; text-align: center; font-size: 13px; color: var(--text-dim); }
.modal .small a { color: var(--teal); }
.modal .small a:hover { text-shadow: 0 0 12px rgba(62, 240, 216, .8); }

/* footer */
.foot { position: relative; z-index: 1; margin-top: 80px; padding: 30px 20px 44px; display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center; font: 400 12px/1.5 var(--mono); color: var(--text-mute); letter-spacing: .08em; }
.foot::before { content: ""; display: block; width: min(560px, 80%); height: 1px; margin: 0 auto 16px;
  background: linear-gradient(90deg, transparent, rgba(62, 240, 216, .4), rgba(160, 124, 255, .3), transparent); }
.foot .dkb-emblem { height: 84px; opacity: .85; }
.foot p { margin: 0; }
.foot .copy { color: var(--text-dim); letter-spacing: .12em; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .mainnav > a, .mainnav .dtoggle { padding: 10px 9px; letter-spacing: .12em; }
  .brand b { display: none; }
}
@media (max-width: 960px) {
  .row-top { grid-template-columns: minmax(0, 1fr); }
  .rank-cols { grid-template-columns: minmax(0, 1fr); }
  .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .brand b { display: inline; }
  .burger { display: inline-flex; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 70px; flex-direction: column; gap: 14px; padding: 18px 20px 22px;
    max-height: calc(100vh - 70px); overflow-y: auto;
    background: rgba(4, 8, 14, .97); box-shadow: 0 20px 40px rgba(0, 0, 0, .5), 0 1px 0 rgba(108, 201, 255, .08) inset; }
  #navtog:checked ~ .menu { display: flex; }
  .mainnav { flex-direction: column; align-items: stretch; margin: 0; }
  .mainnav > a, .mainnav .dtoggle { width: 100%; padding: 14px 10px; font-size: 14px; }
  .mainnav > a::after, .mainnav .dtoggle::after { left: auto; right: 10px; bottom: 50%; transform: translateY(50%) scale(0); }
  .mainnav > a:hover::after, .mainnav .dtoggle:hover::after { transform: translateY(50%) scale(1); }
  .mainnav .drop.open > .dtoggle::after { transform: translateY(50%) scale(0); }
  .mainnav .dtoggle .chev { margin-left: auto; margin-right: 18px; }
  .dmenu, .dmenu.right { position: static; min-width: 0; margin: 4px 0 6px; box-shadow: inset 0 0 0 1px rgba(62, 240, 216, .1); background: rgba(10, 22, 34, .7); }
  .account { margin: 0; flex-wrap: wrap; }
  .account > .btn, .account > .drop { flex: 1 1 140px; }
  .account > .drop > .btn { width: 100%; justify-content: flex-start; }
  .account .user { max-width: none; }
  .account .user .chev { margin-left: auto; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 0; margin-top: 0; }
  .hero-stage { border-radius: 0; aspect-ratio: 1375 / 768; }
  .hero-stage img { object-fit: contain; }
  .hero-dock { margin-top: -24px; }
  .dl { padding: 16px 26px 16px 16px; gap: 14px; letter-spacing: .16em; }
  .dl .ico { width: 36px; height: 36px; }
  .status { font-size: 11.5px; gap: 8px; padding: 9px 14px; }
  .sec { margin-top: 52px; }
  .sh { gap: 10px; }
  .sh .depth { display: none; }
  .sh .glyph { width: 24px; height: 24px; }
  .sh .more { font-size: 11px; letter-spacing: .12em; }
  .tabs { margin: 16px 14px 4px; max-width: calc(100% - 28px); }
  .tabs button { padding: 9px 11px; letter-spacing: .12em; }
  .newslist { padding: 4px 4px 10px; }
  .newslist li { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 16px 12px; }
  .newslist .chip { grid-column: 1; }
  .newslist .date { grid-column: 2; grid-row: 1; align-self: center; }
  .newslist .title { grid-column: 1 / -1; font-size: 15px; }
  .hourly { padding: 22px 16px 18px; }
  .ev-now { gap: 14px; }
  .gauge { width: 92px; height: 92px; }
  .gauge .mid b { font-size: 18px; }
  .ev-name { font-size: 18px; }
  .sched { padding: 6px 4px 14px; }
  .sched-list li { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 4px 12px; padding: 16px 12px; }
  .sched-list li::before { grid-row: 1 / span 2; width: 18px; height: 18px; }
  .sched-list .nm { grid-column: 2; grid-row: 1; font-size: 16px; }
  .sched-list .wh { grid-column: 2; grid-row: 2; font-size: 12px; }
  .sched-list .st { grid-column: 3; grid-row: 1 / span 2; font-size: 12px; }
  .sched-foot { padding: 6px 12px 0; }
  .race-h { padding: 20px 16px 10px; }
  .rk th:first-child, .rk td:first-child { padding-left: 16px; }
  .rk th:last-child, .rk td:last-child { padding-right: 16px; }
  .rank-col .more { margin: auto 16px 0; }
  .guide { flex-wrap: wrap; padding: 22px 18px; gap: 16px; }
  .guide .gi { width: 52px; height: 52px; }
  .guide .gbody { flex: 1 1 200px; }
  .guide .go { margin-left: 68px; }
  .framebar { padding: 10px 12px 10px 16px; font-size: 13px; }
  .foot { margin-top: 56px; }
}
@media (max-width: 400px) {
  .brand b { font-size: 15px; }
  .sched-list .st { white-space: normal; max-width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .sonar .ring { opacity: .25; transform: scale(.8); }
}
