:root {
  color-scheme: dark;
  --bg: #050706;
  --panel: rgba(12, 16, 13, .88);
  --panel-2: rgba(18, 23, 18, .88);
  --line: rgba(210, 255, 111, .14);
  --line-strong: rgba(210, 255, 111, .34);
  --text: #f2f4ed;
  --muted: #7d847d;
  --green: #b8ef4b;
  --green-soft: #7faa32;
  --red: #ff4b42;
  --yellow: #ffd64a;
  --violet: #b46cff;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow: 0 22px 70px rgba(0, 0, 0, .46);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(166, 223, 60, .08), transparent 24rem),
    radial-gradient(circle at 100% 18%, rgba(255, 65, 54, .055), transparent 26rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  letter-spacing: .02em;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .24;
  background-image: linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.01) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: screen;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.ambient { position: fixed; width: 20rem; height: 20rem; border-radius: 50%; filter: blur(120px); opacity: .11; pointer-events: none; }
.ambient--one { top: -8rem; left: -9rem; background: var(--green); }
.ambient--two { right: -10rem; top: 32rem; background: var(--red); }

.app-shell { width: min(100%, 880px); min-height: 100vh; margin: 0 auto; position: relative; padding-bottom: 104px; }
.topbar {
  min-height: 112px;
  padding: max(18px, env(safe-area-inset-top)) 22px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(5, 7, 6, .78);
  border-bottom: 1px solid rgba(205, 255, 107, .1);
  backdrop-filter: blur(26px) saturate(130%);
}
.brand { min-width: 0; display: flex; align-items: center; gap: 14px; }
.brand img { width: 66px; height: 66px; filter: drop-shadow(0 0 15px rgba(191, 239, 75, .15)); }
.brand span { display: grid; gap: 4px; }
.brand strong { font-size: clamp(22px, 5vw, 34px); letter-spacing: .19em; white-space: nowrap; }
.brand small { color: #a8aaa4; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .37em; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.lang-switch { display: flex; border-radius: 999px; padding: 4px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); }
.lang-switch button { border: 0; background: transparent; padding: 10px 13px; border-radius: 999px; color: #707670; cursor: pointer; }
.lang-switch button.is-active { color: var(--green); background: rgba(175, 235, 73, .08); box-shadow: inset 0 0 0 1px rgba(184,239,75,.3), 0 0 18px rgba(184,239,75,.07); }
.icon-button, .menu-button { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.025); display: grid; place-items: center; cursor: pointer; }
.icon-button svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.menu-button { gap: 5px; align-content: center; }
.menu-button span { width: 21px; height: 2px; background: currentColor; border-radius: 99px; }

main { padding: 30px 20px 46px; }
.view { display: none; animation: viewIn .32s ease both; }
.view.is-active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }

.mode-mark { margin: 8px auto 30px; width: fit-content; text-align: center; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.mode-mark__row { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 7px 0; }
.mode-mark__row b { width: clamp(34px, 8vw, 48px); aspect-ratio: 1; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 7px; box-shadow: 0 0 18px currentColor inset, 0 0 18px color-mix(in srgb, currentColor 25%, transparent); font-size: clamp(18px, 4.5vw, 28px); }
.mode-mark__row--lvl { color: #d8ff6f; }
.mode-mark__row--zombie { color: var(--red); }
.mode-mark .rail { font-size: clamp(24px, 6vw, 42px); line-height: 1; }

.server-card, .panel {
  background: linear-gradient(145deg, rgba(18, 23, 18, .88), rgba(7, 10, 8, .94));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow), inset 0 0 40px rgba(178, 236, 70, .018);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.server-card { position: relative; }
.server-card::before { content: ""; position: absolute; inset: 9px; border-radius: 21px; border: 1px solid rgba(184,239,75,.09); pointer-events: none; }
.server-card__status { height: 74px; display: flex; align-items: center; gap: 13px; padding: 0 24px; border-bottom: 1px solid rgba(255,255,255,.06); color: var(--green); }
.status-light { width: 18px; height: 18px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 8px rgba(255,75,66,.06), 0 0 18px rgba(255,75,66,.6); }
.server-card.is-online .status-light { background: var(--green); box-shadow: 0 0 0 8px rgba(184,239,75,.06), 0 0 18px rgba(184,239,75,.75); }
.server-card__status strong { font-size: 15px; letter-spacing: .08em; }
.bulb { margin-left: auto; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(184,239,75,.04); font-size: 24px; }
.server-card__main { display: grid; grid-template-columns: 38% 62%; min-height: 300px; padding: 26px; gap: 20px; align-items: center; }
.bio-core { width: min(100%, 230px); aspect-ratio: 1; margin: auto; position: relative; display: grid; place-items: center; }
.bio-core strong { font-size: clamp(82px, 17vw, 136px); color: var(--green); text-shadow: 0 0 20px rgba(184,239,75,.45); animation: bioPulse 3.2s ease-in-out infinite; }
.bio-ring { position: absolute; border-radius: 50%; border: 2px solid rgba(184,239,75,.45); }
.bio-ring--1 { inset: 4%; border-style: dashed; animation: spin 11s linear infinite; }
.bio-ring--2 { inset: 13%; border-top-color: transparent; border-bottom-color: transparent; animation: spin 7s linear reverse infinite; }
.bio-ring--3 { inset: 25%; border-left-color: transparent; animation: spin 5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bioPulse { 50% { transform: scale(1.04); filter: brightness(1.2); } }
.server-meter__value { display: flex; align-items: baseline; gap: 12px; }
.server-meter__value > strong { font-size: clamp(74px, 16vw, 126px); line-height: .85; color: var(--green); text-shadow: 0 0 22px rgba(184,239,75,.3); font-weight: 500; }
.server-meter__value span { font-size: clamp(28px, 7vw, 54px); color: #737873; }
.server-meter > p { color: #9ba09a; letter-spacing: .12em; font-size: 13px; }
.progress { height: 10px; border-radius: 99px; overflow: hidden; margin: 24px 0; background: rgba(255,255,255,.07); }
.progress span { display: block; width: 0%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5a7c22, var(--green)); box-shadow: 0 0 16px rgba(184,239,75,.45); transition: width .55s ease; }
.server-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
.server-meta div { min-width: 0; }
.server-meta dt { color: #666d66; font-size: 10px; letter-spacing: .14em; }
.server-meta dd { margin: 6px 0 0; color: var(--green); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0; }
.quick-grid article { min-height: 84px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr 1fr; column-gap: 10px; align-items: center; padding: 14px; border-radius: 18px; border: 1px solid rgba(255,255,255,.06); background: rgba(16, 20, 17, .82); box-shadow: 0 10px 26px rgba(0,0,0,.22); }
.quick-icon { grid-row: 1 / 3; font-size: 25px; color: var(--green); }
.quick-icon--red { color: var(--red); }
.quick-icon--yellow { color: var(--yellow); }
.quick-icon--violet { color: var(--violet); }
.quick-grid strong { align-self: end; font-size: 22px; }
.quick-grid small { align-self: start; color: #707670; font-size: 9px; }

.panel { margin-top: 16px; border-radius: var(--radius-lg); }
.panel__header { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.055); }
.panel__header > div { display: flex; align-items: center; gap: 10px; }
.panel__header strong { font-size: 14px; letter-spacing: .08em; }
.panel-icon { color: var(--green); font-size: 24px; }
.panel__header > span { color: #8b918b; }
.empty-state, .locked-profile, .placeholder-panel { padding: 30px 22px; text-align: center; }
.empty-state strong, .placeholder-panel strong { display: block; margin-bottom: 8px; }
.empty-state p, .locked-profile p, .placeholder-panel p { color: var(--muted); line-height: 1.55; margin: 0; }
.panel-action { width: 100%; min-height: 58px; padding: 0 20px; display: flex; align-items: center; justify-content: center; gap: 14px; background: rgba(255,255,255,.02); border: 0; border-top: 1px solid rgba(255,255,255,.055); cursor: pointer; color: #aeb3ad; letter-spacing: .08em; }
.panel-action b { margin-left: auto; font-size: 28px; font-weight: 300; }
.locked-profile { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; text-align: left; }
.primary-button { border: 1px solid rgba(184,239,75,.35); background: linear-gradient(180deg, rgba(184,239,75,.15), rgba(184,239,75,.07)); color: var(--green); border-radius: 14px; min-height: 46px; padding: 0 20px; cursor: pointer; font-weight: 700; letter-spacing: .06em; }

.section-title { display: flex; align-items: center; gap: 16px; margin: 12px 0 26px; }
.section-title > span { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 14px; color: var(--green); font-family: ui-monospace, monospace; }
.section-title small { color: var(--green); letter-spacing: .16em; }
.section-title h1 { margin: 5px 0 0; font-size: clamp(24px, 7vw, 42px); }
.placeholder-panel { min-height: 180px; display: grid; place-items: center; align-content: center; gap: 18px; }
.control-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.control-grid button { min-height: 170px; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg, rgba(18,24,19,.92), rgba(8,11,9,.94)); text-align: left; display: grid; align-content: end; gap: 8px; cursor: pointer; }
.control-grid button > span { font-size: 38px; color: var(--green); margin-bottom: auto; }
.control-grid strong { font-size: 18px; }
.control-grid small { color: var(--muted); }
.control-grid .admin-tile { border-color: rgba(255,75,66,.3); }
.control-grid .admin-tile > span, .control-grid .admin-tile strong { color: var(--red); }

.bottom-nav { position: fixed; z-index: 25; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 880px); min-height: 90px; padding: 10px 14px max(10px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(7,9,8,.86); border-top: 1px solid rgba(255,255,255,.065); backdrop-filter: blur(24px) saturate(130%); }
.bottom-nav button { border: 0; background: none; color: #676d67; display: grid; place-items: center; align-content: center; gap: 4px; cursor: pointer; }
.bottom-nav button span { font-size: 25px; }
.bottom-nav button small { font-size: 10px; }
.bottom-nav button.is-active { color: var(--green); text-shadow: 0 0 14px rgba(184,239,75,.35); }

.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.62); backdrop-filter: blur(8px); }
.drawer { position: fixed; z-index: 70; left: 50%; bottom: 0; width: min(100%, 600px); max-height: min(90dvh, 760px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; transform: translate(-50%, 105%); background: rgba(18,22,19,.96); border: 1px solid rgba(255,255,255,.09); border-bottom: 0; border-radius: 28px 28px 0 0; padding: 8px 18px max(18px, env(safe-area-inset-bottom)); box-shadow: 0 -28px 80px rgba(0,0,0,.62); transition: transform .34s cubic-bezier(.2,.8,.2,1); }
.drawer.is-open { transform: translate(-50%, 0); }
.drawer__handle { width: 42px; height: 5px; border-radius: 99px; margin: 3px auto 12px; background: #4e534e; }
.drawer > header { display: flex; align-items: center; gap: 12px; padding: 7px 4px 15px; border-bottom: 1px solid rgba(255,255,255,.06); }
.drawer > header div { display: grid; }
.drawer > header small { color: var(--muted); }
.drawer > header button { margin-left: auto; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,.06); font-size: 26px; }
.drawer > button, .drawer > a { width: 100%; min-height: 66px; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; border: 0; border-bottom: 1px solid rgba(255,255,255,.055); background: none; text-align: left; cursor: pointer; }
.drawer > button > span, .drawer > a > span { font-size: 24px; color: var(--green); }
.drawer > button div, .drawer > a div { display: grid; gap: 3px; }
.drawer > button small, .drawer > a small { color: var(--muted); }
.drawer-downloads { padding: 14px 0 15px; border-bottom: 1px solid rgba(255,255,255,.065); }
.drawer-downloads__heading { display: flex; align-items: center; gap: 10px; padding: 0 4px 11px; }
.drawer-downloads__heading > span:last-child { min-width: 0; display: grid; gap: 3px; }
.drawer-downloads__heading strong { color: #e9f2ff; font-size: 10px; letter-spacing: .12em; }
.drawer-downloads__heading small { color: #687991; font-size: 9px; }
.drawer-downloads__mark { flex: 0 0 auto; width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid rgba(255,63,69,.34); border-radius: 9px; color: #ff5359; background: rgba(255,52,59,.07); font: 800 15px/1 ui-monospace, monospace; box-shadow: 0 0 14px rgba(255,48,55,.07); }
.store-badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.store-badge { min-width: 0; min-height: 58px; padding: 7px 10px; display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 9px; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; color: #fff; background: linear-gradient(180deg, #090b0f, #010204); box-shadow: inset 0 1px rgba(255,255,255,.055), 0 10px 24px rgba(0,0,0,.2); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.store-badge:hover { transform: translateY(-1px); border-color: rgba(73,151,255,.46); box-shadow: inset 0 1px rgba(255,255,255,.07), 0 12px 28px rgba(0,0,0,.28), 0 0 18px rgba(35,127,255,.08); }
.store-badge:focus-visible { outline: 2px solid #4ba3ff; outline-offset: 3px; }
.store-badge__icon { width: 36px; height: 36px; display: grid; place-items: center; }
.store-badge__icon svg { width: 100%; height: 100%; display: block; }
.store-badge__copy { min-width: 0; display: grid; gap: 2px; line-height: 1; }
.store-badge__copy small { overflow: hidden; color: #d2d7df; font-size: 6.5px; letter-spacing: .055em; white-space: nowrap; text-overflow: ellipsis; }
.store-badge__copy strong { overflow: hidden; color: #fff; font-size: clamp(10px, 3.1vw, 14px); letter-spacing: -.015em; white-space: nowrap; text-overflow: ellipsis; }
.drawer footer { display: flex; align-items: center; justify-content: space-between; padding: 18px 4px 2px; color: #818781; }
.drawer footer button { border: 0; background: none; color: var(--green); }

.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s; background: rgba(0,0,0,.65); backdrop-filter: blur(12px); }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__card { width: min(100%, 430px); position: relative; padding: 32px 26px 24px; border-radius: 28px; border: 1px solid rgba(255,255,255,.1); background: linear-gradient(145deg, rgba(25,30,26,.98), rgba(8,11,9,.99)); box-shadow: 0 32px 90px rgba(0,0,0,.7); text-align: center; }
.modal__close { position: absolute; top: 15px; right: 15px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,.06); color: #a3a8a2; font-size: 25px; }
.modal__card > small { display: block; color: var(--green); letter-spacing: .2em; margin-top: 8px; }
.modal__card h2 { margin: 9px 0 24px; }
.modal form { display: grid; gap: 13px; }
.modal label { text-align: left; display: grid; gap: 7px; }
.modal label span { color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.modal input { width: 100%; min-height: 52px; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: rgba(255,255,255,.04); color: var(--text); padding: 0 15px; outline: none; }
.modal input:focus { border-color: rgba(184,239,75,.42); box-shadow: 0 0 0 4px rgba(184,239,75,.06); }
.modal form .primary-button { margin-top: 5px; }
.modal__note { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 18px 0 0; }

.toast { position: fixed; z-index: 100; left: 50%; bottom: 110px; transform: translate(-50%, 18px); opacity: 0; pointer-events: none; max-width: calc(100% - 36px); padding: 12px 18px; border-radius: 999px; background: rgba(31,37,32,.96); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 18px 40px rgba(0,0,0,.4); transition: .25s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 720px) {
  .topbar { min-height: 92px; padding-inline: 15px; }
  .brand img { width: 54px; height: 54px; }
  .brand strong { font-size: 20px; }
  .brand small { font-size: 9px; }
  .icon-button { display: none; }
  .server-card__main { grid-template-columns: 1fr; text-align: center; padding: 22px 18px 26px; }
  .bio-core { width: 190px; }
  .server-meter__value { justify-content: center; }
  .server-meta dd { font-size: 11px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .locked-profile { grid-template-columns: auto 1fr; }
  .locked-profile .primary-button { grid-column: 1 / -1; }
}

@media (max-width: 390px) {
  main { padding-inline: 14px; }
  .topbar-actions { gap: 6px; }
  .lang-switch button { padding-inline: 9px; }
  .mode-mark__row { gap: 3px; }
  .mode-mark__row b { width: 31px; font-size: 17px; }
  .mode-mark .rail { font-size: 20px; }
  .server-meta { gap: 7px; }
  .quick-grid article { padding: 11px; }
  .control-grid { grid-template-columns: 1fr; }
}

/* ===== v2: live player list ===== */
.players-preview__body { min-height: 122px; }
.player-list-state { min-height: 150px; padding: 30px 22px; display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; }
.player-list-state strong { font-size: 15px; letter-spacing: .045em; }
.player-list-state p { max-width: 520px; margin: 0; color: var(--muted); line-height: 1.55; }
.player-list-state.is-offline strong { color: var(--red); }

.team-preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.team-preview { min-width: 0; padding: 16px 18px 18px; }
.team-preview + .team-preview { border-left: 1px solid rgba(255,255,255,.055); }
.team-preview:nth-child(n + 3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid rgba(255,255,255,.055); }
.team-preview header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.team-preview header strong { min-width: 0; font-size: 11px; letter-spacing: .1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-preview header span { flex: 0 0 auto; min-width: 25px; height: 25px; display: grid; place-items: center; border-radius: 9px; font: 700 11px/1 ui-monospace, monospace; background: rgba(255,255,255,.045); }
.team-preview--zombies header strong, .team-preview--zombies header span { color: var(--red); }
.team-preview--survivors header strong, .team-preview--survivors header span { color: var(--green); }
.team-preview--unknown header strong, .team-preview--unknown header span { color: var(--yellow); }
.team-preview__list { display: grid; gap: 7px; }
.team-preview__empty, .team-preview__more { margin: 9px 0 2px; color: #676d67; font-size: 10px; letter-spacing: .07em; text-align: center; }
.team-preview__more { color: #858b85; }
.mini-player { min-width: 0; display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 27px; }
.player-state-dot { width: 8px; height: 8px; display: block; border-radius: 50%; background: #535953; box-shadow: 0 0 0 4px rgba(255,255,255,.025); }
.is-alive > .player-state-dot, .is-alive .player-state-dot { background: var(--green); box-shadow: 0 0 10px rgba(184,239,75,.55); }
.is-dead > .player-state-dot, .is-dead .player-state-dot { background: var(--red); box-shadow: 0 0 9px rgba(255,75,66,.35); }
.mini-player__identity { min-width: 0; display: flex; align-items: center; gap: 5px; }
.mini-player__identity strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; }
.mini-player__score { color: #818781; font: 700 11px/1 ui-monospace, monospace; }
.player-badge { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 18px; padding: 0 6px; border: 1px solid rgba(255,255,255,.08); border-radius: 5px; color: #858b85; font-size: 8px; line-height: 1; letter-spacing: .06em; }
.player-badge.is-bot { color: var(--yellow); border-color: rgba(241,198,67,.22); background: rgba(241,198,67,.06); }
.player-badge.is-player { color: #9ba19b; }
.player-badge.is-alive { color: var(--green); border-color: rgba(184,239,75,.22); background: rgba(184,239,75,.055); }
.player-badge.is-dead { color: var(--red); border-color: rgba(255,75,66,.22); background: rgba(255,75,66,.055); }

.scoreboard-panel { overflow: hidden; }
.scoreboard-head { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.06); background: linear-gradient(90deg, rgba(184,239,75,.035), transparent 58%); }
.scoreboard-head__status { min-width: 0; display: flex; align-items: center; gap: 13px; }
.scoreboard-head__status .status-light { flex: 0 0 auto; }
.scoreboard-head__status > div { min-width: 0; display: grid; gap: 4px; }
.scoreboard-head__status strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--red); font-size: 15px; letter-spacing: .065em; }
.scoreboard-head__status small { color: #747a74; font-size: 10px; letter-spacing: .08em; }
.scoreboard-head__status.is-online strong { color: var(--green); }
.scoreboard-head__status.is-online .status-light { background: var(--green); box-shadow: 0 0 0 6px rgba(184,239,75,.08), 0 0 19px rgba(184,239,75,.55); }
.scoreboard-head__updated { flex: 0 0 auto; display: grid; gap: 5px; text-align: right; }
.scoreboard-head__updated span { color: #626862; font-size: 9px; letter-spacing: .13em; }
.scoreboard-head__updated strong { color: #9aa09a; font: 600 11px/1.3 ui-monospace, monospace; }
.scoreboard-body { display: grid; }
.scoreboard-team + .scoreboard-team { border-top: 1px solid rgba(255,255,255,.06); }
.scoreboard-team > header { min-height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; background: rgba(255,255,255,.018); }
.scoreboard-team > header > div { display: flex; align-items: center; gap: 9px; }
.scoreboard-team > header span { font-size: 21px; }
.scoreboard-team > header strong { font-size: 12px; letter-spacing: .12em; }
.scoreboard-team > header b { min-width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; font: 700 12px/1 ui-monospace, monospace; background: rgba(255,255,255,.045); }
.scoreboard-team--zombies > header span, .scoreboard-team--zombies > header strong, .scoreboard-team--zombies > header b { color: var(--red); }
.scoreboard-team--survivors > header span, .scoreboard-team--survivors > header strong, .scoreboard-team--survivors > header b { color: var(--green); }
.scoreboard-team--unknown > header span, .scoreboard-team--unknown > header strong, .scoreboard-team--unknown > header b { color: var(--yellow); }
.scoreboard-team__list { display: grid; }
.scoreboard-team__empty { margin: 0; padding: 24px 20px; color: #646a64; text-align: center; font-size: 11px; letter-spacing: .08em; }
.scoreboard-player { min-width: 0; display: grid; grid-template-columns: minmax(150px, 1.2fr) minmax(150px, .9fr) auto; align-items: center; gap: 18px; padding: 15px 20px; border-top: 1px solid rgba(255,255,255,.045); transition: background .2s; }
.scoreboard-player:first-child { border-top: 0; }
.scoreboard-player:hover { background: rgba(255,255,255,.02); }
.scoreboard-player__identity { min-width: 0; display: grid; grid-template-columns: 9px minmax(0, 1fr); align-items: center; gap: 11px; }
.scoreboard-player__identity > div { min-width: 0; display: grid; gap: 6px; }
.scoreboard-player__identity strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.player-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.scoreboard-player__vitals { display: grid; grid-template-columns: repeat(2, minmax(64px, 1fr)); gap: 8px; }
.player-vital { min-width: 0; display: grid; gap: 6px; }
.player-vital > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.player-vital span { color: #6c726c; font-size: 8px; letter-spacing: .08em; }
.player-vital strong { color: #aeb4ae; font: 700 10px/1 ui-monospace, monospace; }
.player-vital__bar { height: 4px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.055); }
.player-vital__bar i { height: 100%; display: block; border-radius: inherit; background: var(--green); }
.player-vital.is-armor .player-vital__bar i { background: var(--violet); }
.scoreboard-player__result { display: grid; grid-template-columns: repeat(2, minmax(42px, 1fr)); gap: 7px; }
.scoreboard-player__result > div { min-width: 52px; min-height: 45px; display: grid; place-items: center; align-content: center; gap: 3px; padding: 6px; border: 1px solid rgba(255,255,255,.055); border-radius: 11px; background: rgba(255,255,255,.018); }
.scoreboard-player__result small { color: #666c66; font-size: 7px; letter-spacing: .08em; }
.scoreboard-player__result strong { font: 700 13px/1 ui-monospace, monospace; }
.scoreboard-player.is-dead { opacity: .72; }

@media (max-width: 620px) {
  .scoreboard-player { grid-template-columns: minmax(0, 1fr) auto; gap: 13px; padding: 14px 16px; }
  .scoreboard-player__vitals { grid-column: 1 / -1; grid-row: 2; }
  .scoreboard-player__result { grid-column: 2; grid-row: 1; }
  .scoreboard-head { padding-inline: 16px; }
  .scoreboard-team > header { padding-inline: 16px; }
}

@media (max-width: 390px) {
  .team-preview { padding-inline: 12px; }
  .mini-player__identity strong { font-size: 10px; }
  .mini-player .player-badge { display: none; }
  .scoreboard-head__updated { display: none; }
  .scoreboard-player__result > div { min-width: 45px; }
}

/* ===== v3: authorization and LVL MOD profile ===== */
.modal__note.is-error { color: var(--red); }
button:disabled,
input:disabled { opacity: .55; cursor: not-allowed; }

.profile-login-card {
  min-height: 270px;
  padding: 34px 26px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 20px;
  text-align: center;
}
.profile-login-card > img { width: 88px; height: 88px; object-fit: contain; filter: drop-shadow(0 0 17px rgba(184,239,75,.12)); }
.profile-login-card > div { max-width: 420px; display: grid; gap: 7px; }
.profile-login-card h2 { margin: 0; font-size: clamp(19px, 4vw, 25px); letter-spacing: .025em; }
.profile-login-card p { margin: 0; color: #7b817b; font-size: 13px; line-height: 1.65; }
.profile-login-card .primary-button { min-width: 170px; }

.profile-compact { padding: 22px; display: grid; gap: 18px; }
.profile-identity { min-width: 0; display: flex; align-items: center; gap: 16px; }
.profile-identity > img { flex: 0 0 auto; width: 68px; height: 68px; object-fit: contain; filter: drop-shadow(0 0 15px rgba(184,239,75,.13)); }
.profile-identity > div { min-width: 0; display: grid; gap: 5px; }
.profile-identity small { color: #727872; font: 600 9px/1.2 ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; }
.profile-identity strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(21px, 5vw, 29px); }
.profile-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.account-role,
.account-level {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(184,239,75,.22);
  border-radius: 8px;
  color: var(--green);
  background: rgba(184,239,75,.055);
  font: 700 9px/1 ui-monospace, monospace;
  letter-spacing: .08em;
}
.account-role--admin { color: var(--red); border-color: rgba(255,75,66,.28); background: rgba(255,75,66,.065); }
.account-role--vip { color: var(--yellow); border-color: rgba(241,198,67,.28); background: rgba(241,198,67,.065); }
.account-role--player { color: var(--green); }

.profile-stats { display: grid; gap: 10px; }
.profile-stats--compact,
.profile-stats--full { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.profile-stat {
  min-width: 0;
  min-height: 78px;
  padding: 13px 12px;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 14px;
  background: rgba(255,255,255,.018);
}
.profile-stat small { color: #686e68; font-size: 8px; line-height: 1.25; letter-spacing: .09em; text-transform: uppercase; }
.profile-stat strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #d8ddd8; font: 700 17px/1 ui-monospace, monospace; }
.profile-stat--kills strong,
.profile-stat--level strong,
.profile-stat--kd strong { color: var(--green); }
.profile-stat--deaths strong { color: var(--red); }
.profile-stat--tokens strong,
.profile-stat--wins strong { color: var(--yellow); }
.profile-stat--time strong { color: var(--violet); }
.profile-open-button { width: 100%; }

.web-profile-card { overflow: hidden; }
.web-profile-card__hero {
  min-width: 0;
  padding: 26px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(115deg, rgba(184,239,75,.045), transparent 65%);
}
.web-profile-card__hero > img { flex: 0 0 auto; width: 94px; height: 94px; object-fit: contain; filter: drop-shadow(0 0 18px rgba(184,239,75,.14)); }
.web-profile-card__hero > div { min-width: 0; display: grid; gap: 8px; }
.web-profile-card__hero small { color: #717771; font: 600 9px/1.2 ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; }
.web-profile-card__hero h2 { min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(25px, 6vw, 38px); }
.web-profile-card .profile-stats { padding: 22px; }
.web-profile-card__footer {
  padding: 18px 22px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,.055);
}
.web-profile-card__footer small { color: #666c66; font-size: 9px; letter-spacing: .08em; }
.secondary-button,
.danger-button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(184,239,75,.24);
  border-radius: 13px;
  color: var(--green);
  background: rgba(184,239,75,.045);
  font: 700 10px/1 ui-monospace, monospace;
  letter-spacing: .09em;
}
.danger-button { color: var(--red); border-color: rgba(255,75,66,.25); background: rgba(255,75,66,.045); }

@media (max-width: 620px) {
  .profile-stats--compact,
  .profile-stats--full { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .web-profile-card__hero { padding: 22px 18px; gap: 15px; }
  .web-profile-card__hero > img { width: 76px; height: 76px; }
  .web-profile-card .profile-stats { padding: 18px; }
  .web-profile-card__footer { align-items: stretch; flex-direction: column; }
  .web-profile-card__footer button { width: 100%; }
}

@media (max-width: 390px) {
  .profile-compact { padding: 18px 15px; }
  .profile-identity > img { width: 58px; height: 58px; }
  .profile-stat { min-height: 72px; padding: 11px 10px; }
  .profile-stat strong { font-size: 15px; }
}


/* ===== v5: live player cards + global leaderboard ===== */
.is-player-open { cursor: pointer; outline: none; }
.is-player-open:focus-visible { box-shadow: inset 0 0 0 2px rgba(184,239,75,.55); }
.mini-player.is-player-open { border-radius: 8px; padding: 3px 4px; margin-inline: -4px; transition: background .18s, transform .18s; }
.mini-player.is-player-open:active { background: rgba(184,239,75,.07); transform: scale(.985); }
.scoreboard-player.is-player-open:active { background: rgba(184,239,75,.045); }

.leaderboard-tabs { margin: 0 0 14px; padding: 5px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; border: 1px solid rgba(255,255,255,.07); border-radius: 16px; background: rgba(11,15,12,.7); }
.leaderboard-tabs button { min-width: 0; min-height: 44px; padding: 7px 5px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: #757b75; font-size: 10px; font-weight: 700; letter-spacing: .04em; cursor: pointer; }
.leaderboard-tabs button.is-active { color: var(--green); border-color: rgba(184,239,75,.28); background: linear-gradient(180deg, rgba(184,239,75,.11), rgba(184,239,75,.035)); box-shadow: 0 0 18px rgba(184,239,75,.06); }
.leaderboard-panel { overflow: hidden; }
.leaderboard-head { min-height: 66px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgba(255,255,255,.055); }
.leaderboard-head > div { display: flex; align-items: center; gap: 11px; }
.leaderboard-head > small { color: #646a64; font-size: 8px; letter-spacing: .07em; text-align: right; }
.leaderboard-body { min-height: 220px; }
.leaderboard-state { min-height: 220px; padding: 30px 20px; display: grid; place-items: center; align-content: center; gap: 9px; text-align: center; }
.leaderboard-state strong { font-size: 15px; letter-spacing: .035em; }
.leaderboard-state p { margin: 0; color: var(--muted); line-height: 1.55; }
.leaderboard-state.is-error strong { color: var(--red); }
.leaderboard-list { display: grid; }
.leaderboard-player { min-width: 0; min-height: 96px; padding: 15px 18px; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-areas: "rank identity metric" "rank summary summary"; align-items: center; gap: 8px 14px; border-top: 1px solid rgba(255,255,255,.048); transition: background .18s, transform .18s; }
.leaderboard-player:first-child { border-top: 0; }
.leaderboard-player:active { background: rgba(184,239,75,.04); transform: scale(.995); }
.leaderboard-player__rank { grid-area: rank; align-self: stretch; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; background: rgba(255,255,255,.018); color: #737973; font: 700 16px/1 ui-monospace, monospace; }
.leaderboard-player.rank-1 .leaderboard-player__rank { color: #f3cf55; border-color: rgba(243,207,85,.35); background: rgba(243,207,85,.07); box-shadow: 0 0 20px rgba(243,207,85,.07); }
.leaderboard-player.rank-2 .leaderboard-player__rank { color: #cbd2d5; border-color: rgba(203,210,213,.24); }
.leaderboard-player.rank-3 .leaderboard-player__rank { color: #d48a55; border-color: rgba(212,138,85,.28); }
.leaderboard-player__identity { grid-area: identity; min-width: 0; display: grid; gap: 7px; }
.leaderboard-player__identity > strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.leaderboard-player__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.leaderboard-online { display: inline-flex; align-items: center; gap: 5px; color: #666c66; font: 700 8px/1 ui-monospace, monospace; letter-spacing: .08em; }
.leaderboard-online::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #4e544e; }
.leaderboard-online.is-online { color: var(--green); }
.leaderboard-online.is-online::before { background: var(--green); box-shadow: 0 0 10px rgba(184,239,75,.7); }
.leaderboard-player__metric { grid-area: metric; min-width: 82px; display: grid; justify-items: end; gap: 5px; }
.leaderboard-player__metric strong { color: var(--green); font: 800 18px/1 ui-monospace, monospace; }
.leaderboard-player__metric small { color: #666c66; font-size: 7px; letter-spacing: .08em; }
.leaderboard-player__summary { grid-area: summary; min-width: 0; display: flex; flex-wrap: wrap; gap: 11px; color: #747a74; font-size: 8px; letter-spacing: .04em; }
.leaderboard-player__summary b { color: #bdc3bd; font: 700 9px/1 ui-monospace, monospace; }

.player-modal { align-items: end; padding: 0; }
.player-modal__card { width: min(100%, 620px); max-height: min(88vh, 820px); overflow-y: auto; border-radius: 28px 28px 0 0; padding: 28px 22px max(28px, env(safe-area-inset-bottom)); text-align: left; }
.player-detail { display: grid; gap: 18px; }
.player-detail > header { padding: 7px 48px 18px 2px; display: grid; gap: 8px; border-bottom: 1px solid rgba(255,255,255,.06); }
.player-detail > header > small { color: var(--green); font: 600 9px/1.2 ui-monospace, monospace; letter-spacing: .16em; }
.player-detail > header h2 { margin: 0; min-width: 0; overflow-wrap: anywhere; font-size: clamp(24px, 7vw, 38px); }
.player-detail__section { display: grid; gap: 12px; }
.player-detail__section h3 { margin: 0; color: #7d837d; font-size: 10px; letter-spacing: .12em; }
.player-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.player-detail-stat { min-width: 0; min-height: 72px; padding: 12px 10px; display: grid; align-content: center; gap: 7px; border: 1px solid rgba(255,255,255,.06); border-radius: 14px; background: rgba(255,255,255,.018); }
.player-detail-stat small { color: #666c66; font-size: 7px; letter-spacing: .08em; }
.player-detail-stat strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #d9ded9; font: 700 14px/1.15 ui-monospace, monospace; }
.player-detail-stat.is-green strong { color: var(--green); }
.player-detail-stat.is-red strong { color: var(--red); }
.player-detail__missing { color: #aeb4ae; font-size: 14px; }
.player-detail__message { margin: 0; color: #727872; font-size: 12px; line-height: 1.6; }

@media (max-width: 520px) {
  .leaderboard-tabs button { min-height: 42px; font-size: 8px; }
  .leaderboard-player { grid-template-columns: 42px minmax(0, 1fr) auto; padding: 14px 13px; gap: 8px 10px; }
  .leaderboard-player__metric { min-width: 67px; }
  .leaderboard-player__metric strong { font-size: 15px; }
  .leaderboard-player__summary { gap: 8px; }
  .player-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ===== v6: live web control and authorization help ===== */
.control-grid button { position: relative; overflow: hidden; }
.control-grid button::after { content: "›"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: rgba(184,239,75,.55); font-size: 30px; }
.control-grid .admin-tile::after { color: rgba(255,75,66,.55); }
.control-grid button:active { transform: scale(.985); }
.control-status-panel { margin-top: 16px; display: flex; align-items: center; gap: 13px; padding: 18px 20px; }
.control-status-panel .status-light { width: 13px; height: 13px; flex: 0 0 auto; }
.control-status-panel > div { display: grid; gap: 4px; }
.control-status-panel strong { font-size: 13px; letter-spacing: .12em; color: var(--green); }
.control-status-panel small { color: var(--muted); line-height: 1.45; }
.control-modal__card { text-align: left; align-items: stretch; max-width: 520px; }
.control-modal__card > small { color: var(--green); letter-spacing: .25em; }
.control-modal__card h2 { margin: 3px 0 0; }
.control-modal__lead { margin: 0; color: var(--muted); line-height: 1.6; }
.control-actions { display: grid; gap: 12px; margin-top: 4px; }
.control-action { width: 100%; min-height: 78px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgba(25,34,22,.96), rgba(9,13,10,.97)); color: var(--text); padding: 16px 18px; display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 12px; text-align: left; cursor: pointer; }
.control-action > span { width: 42px; height: 42px; border: 1px solid rgba(184,239,75,.32); border-radius: 13px; display: grid; place-items: center; color: var(--green); font-size: 22px; }
.control-action > div { display: grid; gap: 4px; }
.control-action strong { font-size: 15px; letter-spacing: .045em; }
.control-action small { color: var(--muted); line-height: 1.35; }
.control-action > b { color: var(--green); font-size: 24px; }
.control-action.admin-action { border-color: rgba(255,75,66,.28); }
.control-action.admin-action > span, .control-action.admin-action > b { color: var(--red); border-color: rgba(255,75,66,.3); }
.control-action:disabled { opacity: .45; cursor: not-allowed; }
.control-command-status { min-height: 22px; }
.control-command-status.is-error { color: var(--red); }
.control-command-status.is-success { color: var(--green); }
.login-help-button { width: 100%; border: 0; background: transparent; color: var(--muted); display: flex; justify-content: center; align-items: center; gap: 9px; cursor: pointer; font: inherit; }
.login-help-button span { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--green); }
.login-help-button b { font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.auth-help-card { max-width: 620px; text-align: left; align-items: stretch; }
.auth-help-card > small { color: var(--green); letter-spacing: .25em; }
.auth-help-card h2 { margin: 3px 0 0; }
.auth-help-card p { margin: 0; color: #b0b6b0; line-height: 1.6; }
.auth-help-card img { width: 100%; max-height: 300px; object-fit: contain; border: 1px solid var(--line); border-radius: 16px; background: #080a09; }
@media (max-width: 520px) {
  .control-action { grid-template-columns: 40px 1fr auto; padding: 14px; }
  .control-action > span { width: 38px; height: 38px; }
  .auth-help-card img { max-height: 220px; }
}


/* v7 — persistent player settings */
.control-modal__card { max-height: min(88vh, 920px); overflow-y: auto; }
.settings-form { display: grid; gap: 14px; margin-top: 8px; text-align: left; }
.settings-field { display: grid; gap: 8px; }
.settings-field > span,
.settings-checks legend { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.settings-field select {
  width: 100%; min-height: 52px; border: 1px solid rgba(168,255,62,.22); border-radius: 16px;
  background: rgba(4,10,7,.72); color: var(--text); padding: 0 16px; font: inherit;
  outline: none;
}
.settings-field select:focus { border-color: rgba(168,255,62,.7); box-shadow: 0 0 0 3px rgba(168,255,62,.08); }
.settings-checks { border: 1px solid rgba(168,255,62,.16); border-radius: 18px; padding: 14px; display: grid; gap: 10px; }
.settings-check { display: flex; align-items: center; gap: 12px; min-height: 38px; color: var(--text); }
.settings-check input { width: 20px; height: 20px; accent-color: var(--lime); }
.settings-checks small { color: var(--muted); }
.settings-save { margin-top: 4px; width: 100%; }
.settings-empty { padding: 24px 14px; border: 1px dashed rgba(168,255,62,.25); border-radius: 18px; text-align: center; }
.settings-empty strong { display: block; color: var(--text); }
.settings-empty p { color: var(--muted); line-height: 1.55; margin: 10px 0 0; }
@media (min-width: 720px) {
  .control-modal__card { width: min(640px, calc(100vw - 40px)); }
  .settings-form { grid-template-columns: 1fr 1fr; }
  .settings-checks, .settings-save { grid-column: 1 / -1; }
}

/* ========================================================================== */
/* KONTRA SITE v8 — ANIMATED DAY / NIGHT LAMP                                 */
/* ========================================================================== */

body,
.topbar,
.server-card,
.panel,
.quick-grid article,
.control-grid button,
.bottom-nav,
.drawer,
.modal,
.modal__card,
.toast,
.leaderboard-tabs,
.control-action,
.scoreboard-head,
.scoreboard-team > header,
.scoreboard-player,
.player-detail-stat,
.modal input {
  transition:
    background-color .55s ease,
    background .55s ease,
    border-color .55s ease,
    color .42s ease,
    box-shadow .55s ease;
}

.theme-lamp {
  --lamp-glass: #1b211b;
  --lamp-rim: rgba(184, 239, 75, .34);
  --lamp-glow: rgba(184, 239, 75, 0);
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
  width: 52px;
  height: 54px;
  padding: 0;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(184, 239, 75, .035);
  cursor: pointer;
  isolation: isolate;
  touch-action: manipulation;
}

.theme-lamp:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.theme-lamp__cord,
.theme-lamp__cap,
.theme-lamp__glass {
  position: absolute;
  left: 50%;
  pointer-events: none;
}

.theme-lamp__cord {
  top: 3px;
  width: 2px;
  height: 15px;
  border-radius: 99px;
  background: linear-gradient(#7f8978, #3d453b);
  transform: translateX(-50%);
  transform-origin: 50% 0;
}

.theme-lamp__cap {
  top: 14px;
  width: 20px;
  height: 10px;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(90deg, #384036, #687661 48%, #30382f);
  box-shadow: inset 0 1px rgba(255,255,255,.18);
  transform: translateX(-50%);
  transform-origin: 50% -10px;
  z-index: 2;
}

.theme-lamp__glass {
  top: 20px;
  width: 25px;
  height: 27px;
  border: 1px solid var(--lamp-rim);
  border-radius: 50% 50% 46% 46%;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,.18), transparent 28%),
    var(--lamp-glass);
  box-shadow:
    0 0 0 3px rgba(184,239,75,.025),
    0 0 18px 5px var(--lamp-glow),
    inset 0 -5px 9px rgba(0,0,0,.24);
  transform: translateX(-50%);
  transform-origin: 50% -16px;
  z-index: 1;
}

.theme-lamp__glass::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 12px;
  height: 5px;
  border-radius: 0 0 5px 5px;
  background: #4c5748;
  transform: translateX(-50%);
}

.theme-lamp__glass i {
  position: absolute;
  left: 50%;
  top: 12px;
  width: 9px;
  height: 6px;
  border: 1px solid rgba(184,239,75,.32);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  transform: translateX(-50%);
}

body.theme-day .theme-lamp {
  --lamp-glass: #fffbd8;
  --lamp-rim: rgba(255, 214, 74, .88);
  --lamp-glow: rgba(255, 223, 91, .75);
  background: rgba(255, 221, 87, .12);
  border-color: rgba(210, 171, 28, .45);
  box-shadow: 0 0 26px rgba(255, 223, 91, .16);
}

body.theme-day .theme-lamp__glass {
  animation: lampGlow 2.2s ease-in-out infinite;
}

body.theme-day .theme-lamp__glass i {
  border-color: rgba(184, 119, 0, .7);
}

.theme-lamp.is-switching .theme-lamp__cord,
.theme-lamp.is-switching .theme-lamp__cap,
.theme-lamp.is-switching .theme-lamp__glass {
  animation: lampSwing .72s cubic-bezier(.2,.8,.2,1);
}

@keyframes lampSwing {
  0%   { transform: translateX(-50%) rotate(0deg); }
  22%  { transform: translateX(-50%) rotate(12deg); }
  48%  { transform: translateX(-50%) rotate(-9deg); }
  72%  { transform: translateX(-50%) rotate(5deg); }
  100% { transform: translateX(-50%) rotate(0deg); }
}

@keyframes lampGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}

body.theme-switching::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  background: rgba(255, 246, 190, .28);
  animation: roomFlash .7s ease-out both;
}

@keyframes roomFlash {
  0% { opacity: 0; }
  18% { opacity: 1; }
  100% { opacity: 0; }
}

/* Day palette: white background, readable dark typography, same KONTRA accents. */
body.theme-day {
  color-scheme: light;
  --bg: #f6f8f2;
  --panel: rgba(255, 255, 255, .93);
  --panel-2: rgba(247, 250, 242, .96);
  --line: rgba(83, 111, 29, .16);
  --line-strong: rgba(102, 139, 31, .34);
  --text: #12170f;
  --muted: #697064;
  --shadow: 0 22px 60px rgba(56, 71, 43, .14);
  background:
    radial-gradient(circle at 18% 0%, rgba(180, 231, 76, .19), transparent 23rem),
    radial-gradient(circle at 100% 20%, rgba(255, 87, 71, .085), transparent 25rem),
    #f6f8f2;
}

body.theme-day::before {
  opacity: .18;
  background-image:
    linear-gradient(rgba(54, 70, 45, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54, 70, 45, .028) 1px, transparent 1px);
  mix-blend-mode: multiply;
}

body.theme-day .ambient { opacity: .08; }
body.theme-day .topbar {
  background: rgba(250, 252, 247, .84);
  border-bottom-color: rgba(83, 111, 29, .13);
}
body.theme-day .brand small { color: #626b5d; }
body.theme-day .lang-switch {
  background: rgba(42, 53, 37, .04);
  border-color: rgba(42, 53, 37, .11);
}
body.theme-day .lang-switch button { color: #777e72; }
body.theme-day .icon-button,
body.theme-day .menu-button {
  background: rgba(255,255,255,.7);
  border-color: rgba(83,111,29,.18);
}
body.theme-day .server-card,
body.theme-day .panel {
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(244,248,239,.95));
  box-shadow: var(--shadow), inset 0 0 40px rgba(144, 192, 48, .035);
}
body.theme-day .server-card__status {
  border-bottom-color: rgba(42,53,37,.08);
}
body.theme-day .quick-grid article {
  background: rgba(255,255,255,.9);
  border-color: rgba(42,53,37,.09);
  box-shadow: 0 10px 25px rgba(56,71,43,.09);
}
body.theme-day .control-grid button,
body.theme-day .control-action {
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(241,246,236,.98));
}
body.theme-day .panel-action {
  background: rgba(48, 63, 42, .025);
  border-top-color: rgba(48,63,42,.08);
  color: #5b6456;
}
body.theme-day .progress,
body.theme-day .player-vital__bar {
  background: rgba(35,47,30,.09);
}
body.theme-day .bottom-nav {
  background: rgba(250,252,247,.91);
  border-top-color: rgba(42,53,37,.11);
}
body.theme-day .bottom-nav button { color: #7c8378; }
body.theme-day .drawer {
  background: rgba(250,252,247,.98);
  border-color: rgba(42,53,37,.12);
  box-shadow: 0 -28px 70px rgba(56,71,43,.2);
}
body.theme-day .drawer__handle { background: #b7bdb2; }
body.theme-day .drawer > header button,
body.theme-day .modal__close {
  background: rgba(42,53,37,.07);
  color: #5f675b;
}
body.theme-day .drawer > button,
body.theme-day .drawer > a {
  border-bottom-color: rgba(42,53,37,.08);
}
body.theme-day .drawer-downloads { border-bottom-color: rgba(42,53,37,.08); }
body.theme-day .drawer-downloads__heading strong { color: #283126; }
body.theme-day .drawer-downloads__heading small { color: #677064; }
body.theme-day .modal {
  background: rgba(229,234,223,.7);
}
body.theme-day .modal__card {
  background: linear-gradient(145deg, rgba(255,255,255,.99), rgba(243,247,239,.99));
  border-color: rgba(42,53,37,.12);
  box-shadow: 0 32px 85px rgba(56,71,43,.24);
}
body.theme-day .modal input {
  background: rgba(42,53,37,.035);
  border-color: rgba(42,53,37,.12);
}
body.theme-day .toast {
  background: rgba(250,252,247,.98);
  border-color: rgba(42,53,37,.13);
  box-shadow: 0 18px 40px rgba(56,71,43,.17);
}
body.theme-day .scoreboard-head {
  background: linear-gradient(90deg, rgba(155,204,58,.1), transparent 58%);
  border-bottom-color: rgba(42,53,37,.08);
}
body.theme-day .scoreboard-team > header {
  background: rgba(42,53,37,.025);
}
body.theme-day .scoreboard-team > header b,
body.theme-day .team-preview header span,
body.theme-day .scoreboard-player__result > div,
body.theme-day .player-detail-stat,
body.theme-day .leaderboard-player__rank {
  background: rgba(42,53,37,.035);
  border-color: rgba(42,53,37,.09);
}
body.theme-day .leaderboard-tabs {
  background: rgba(255,255,255,.72);
  border-color: rgba(42,53,37,.1);
}
body.theme-day .auth-help-card img { background: #eef2e9; }

@media (prefers-reduced-motion: reduce) {
  .theme-lamp.is-switching .theme-lamp__cord,
  .theme-lamp.is-switching .theme-lamp__cap,
  .theme-lamp.is-switching .theme-lamp__glass,
  body.theme-day .theme-lamp__glass,
  body.theme-switching::after {
    animation: none !important;
  }
}


/* ========================================================================== */
/* KONTRA SITE v9 — ORIGINAL RETRO PINBALL MINI-GAME                         */
/* ========================================================================== */
.control-grid .pinball-tile {
  grid-column: 1 / -1;
  min-height: 210px;
  grid-template-columns: minmax(125px, .8fr) minmax(0, 1.2fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  column-gap: 24px;
  padding: 22px 26px;
  border-color: rgba(80, 197, 255, .3);
  background:
    radial-gradient(circle at 22% 34%, rgba(75, 195, 255, .15), transparent 34%),
    radial-gradient(circle at 82% 78%, rgba(255, 65, 79, .15), transparent 38%),
    linear-gradient(145deg, rgba(10, 23, 34, .98), rgba(25, 8, 32, .98));
}
.control-grid .pinball-tile::before {
  content: "KONTRA ARCADE";
  position: absolute;
  top: 18px;
  right: 22px;
  color: rgba(255,255,255,.32);
  font: 700 8px/1 ui-monospace, monospace;
  letter-spacing: .2em;
}
.control-grid .pinball-tile::after { color: rgba(82, 200, 255, .8); }
.control-grid .pinball-tile > strong,
.control-grid .pinball-tile > small { grid-column: 2; }
.control-grid .pinball-tile > strong {
  align-self: end;
  color: #eafaff;
  font-size: clamp(22px, 6vw, 34px);
  text-shadow: 0 0 18px rgba(77, 201, 255, .34);
}
.control-grid .pinball-tile > small {
  align-self: start;
  max-width: 280px;
  color: #9fb0b8;
  line-height: 1.5;
}
.pinball-tile__machine {
  grid-column: 1;
  grid-row: 1 / 3;
  position: relative;
  width: 118px;
  height: 160px;
  margin: 0;
  border: 2px solid rgba(86, 203, 255, .76);
  border-radius: 28px 28px 18px 18px;
  background:
    linear-gradient(rgba(83, 201, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 201, 255, .08) 1px, transparent 1px),
    radial-gradient(circle at 50% 28%, rgba(255, 70, 83, .28), transparent 28%),
    #0b1020;
  background-size: 18px 18px, 18px 18px, auto, auto;
  box-shadow: 0 0 24px rgba(62, 190, 255, .18), inset 0 0 28px rgba(255, 64, 80, .09);
  transform: perspective(320px) rotateX(8deg);
}
.pinball-tile__ball {
  position: absolute;
  top: 28px;
  left: 50%;
  width: 13px;
  height: 13px;
  margin-left: -6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 13px #fff;
  animation: pinballPreviewBall 2.2s cubic-bezier(.45,.05,.55,.95) infinite;
}
.pinball-tile__bumper {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 4px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 15px currentColor;
  animation: pinballPreviewPulse 1.4s ease-in-out infinite alternate;
}
.pinball-tile__bumper--one { top: 55px; left: 20px; color: #ff4655; }
.pinball-tile__bumper--two { top: 65px; right: 18px; color: #52c8ff; animation-delay: -.7s; }
.pinball-tile__flipper {
  position: absolute;
  bottom: 25px;
  width: 42px;
  height: 8px;
  border-radius: 999px;
  transform-origin: 8px 50%;
  animation: pinballPreviewFlipper 1.2s ease-in-out infinite;
}
.pinball-tile__flipper--left { left: 19px; background: #ff4655; box-shadow: 0 0 12px #ff4655; transform: rotate(18deg); }
.pinball-tile__flipper--right { right: 19px; background: #52c8ff; box-shadow: 0 0 12px #52c8ff; transform-origin: calc(100% - 8px) 50%; animation-direction: reverse; }

.pinball-modal { z-index: 120; padding: 0; align-items: stretch; }
.pinball-modal__card {
  position: relative;
  width: min(100%, 560px);
  height: 100dvh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 10px;
  padding: max(16px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 57, 74, .16), transparent 31%),
    radial-gradient(circle at 89% 18%, rgba(67, 190, 255, .18), transparent 34%),
    linear-gradient(160deg, #050a10, #12091c 56%, #05070b);
  border: 0;
  border-radius: 0;
  box-shadow: 0 0 90px rgba(0,0,0,.95);
  text-align: left;
}
.pinball-modal__close { z-index: 5; top: max(15px, env(safe-area-inset-top)); right: 15px; }
.pinball-head { min-height: 58px; padding: 2px 54px 0 4px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pinball-head > div:first-child { display: grid; gap: 4px; }
.pinball-head small { color: #5bcaff; font: 800 8px/1 ui-monospace, monospace; letter-spacing: .22em; }
.pinball-head h2 { margin: 0; font-size: clamp(20px, 6vw, 30px); letter-spacing: .05em; }
.pinball-hud { margin: 0; display: flex; gap: 8px; }
.pinball-hud > div { min-width: 62px; padding: 8px 9px; border: 1px solid rgba(91,202,255,.23); border-radius: 12px; background: rgba(5,12,18,.62); text-align: right; }
.pinball-hud dt { color: #70828c; font: 700 7px/1 ui-monospace, monospace; letter-spacing: .1em; }
.pinball-hud dd { margin: 5px 0 0; color: #f5fbff; font: 900 14px/1 ui-monospace, monospace; }
.pinball-stage {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(91,202,255,.18);
  border-radius: 22px;
  overflow: hidden;
  background: #05070b;
  box-shadow: inset 0 0 50px rgba(59,184,255,.08), 0 18px 40px rgba(0,0,0,.4);
  touch-action: none;
}
#pinballCanvas { display: block; width: auto; height: 100%; max-width: 100%; max-height: 100%; aspect-ratio: 9 / 16; }
.pinball-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 32px;
  text-align: center;
  background: rgba(3,6,10,.72);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.pinball-overlay.is-visible { opacity: 1; visibility: visible; }
.pinball-overlay__logo {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 2px solid #b8ef4b;
  border-radius: 22px;
  color: #b8ef4b;
  background: rgba(184,239,75,.08);
  box-shadow: 0 0 34px rgba(184,239,75,.25);
  font: 900 42px/1 system-ui, sans-serif;
  transform: rotate(45deg);
}
.pinball-overlay__logo::first-letter { transform: rotate(-45deg); }
.pinball-overlay strong { margin-top: 8px; font-size: 25px; letter-spacing: .05em; }
.pinball-overlay small { max-width: 290px; color: #9caab2; line-height: 1.55; }
.pinball-overlay .primary-button { width: min(100%, 270px); margin-top: 6px; }
.pinball-controls { display: grid; grid-template-columns: 1fr .8fr 1fr; gap: 10px; }
.pinball-controls button {
  min-height: 58px;
  border: 1px solid rgba(91,202,255,.25);
  border-radius: 16px;
  color: #eefaff;
  background: linear-gradient(145deg, rgba(14,30,42,.96), rgba(11,10,25,.96));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.pinball-controls button:active { transform: translateY(1px) scale(.985); filter: brightness(1.28); }
.pinball-controls button span { color: #58caff; font-size: 25px; }
.pinball-controls button small { color: #dfeef5; font: 800 9px/1 ui-monospace, monospace; letter-spacing: .08em; }
.pinball-controls .pinball-launch-button { border-color: rgba(255,223,77,.3); }
.pinball-controls .pinball-launch-button span { color: #ffe04f; text-shadow: 0 0 13px #ffe04f; }
.pinball-tip { margin: 0; text-align: center; color: #64747d; font-size: 8px; letter-spacing: .05em; }
body.pinball-open { overflow: hidden; }
body.theme-day .control-grid .pinball-tile {
  background:
    radial-gradient(circle at 22% 34%, rgba(52, 172, 230, .18), transparent 34%),
    radial-gradient(circle at 82% 78%, rgba(239, 53, 72, .13), transparent 38%),
    linear-gradient(145deg, rgba(245,252,255,.98), rgba(245,239,252,.98));
}
body.theme-day .control-grid .pinball-tile > strong { color: #122838; }
body.theme-day .control-grid .pinball-tile > small { color: #64747d; }
body.theme-day .pinball-modal { background: rgba(1,4,8,.88); }
body.theme-day .pinball-modal__card { color: #f1f7fb; }

@keyframes pinballPreviewBall {
  0%, 100% { transform: translate(-30px, 6px); }
  35% { transform: translate(28px, 50px); }
  68% { transform: translate(-12px, 92px); }
}
@keyframes pinballPreviewPulse { from { transform: scale(.88); opacity: .72; } to { transform: scale(1.08); opacity: 1; } }
@keyframes pinballPreviewFlipper { 0%, 72%, 100% { rotate: 0deg; } 78%, 92% { rotate: -28deg; } }

@media (max-width: 520px) {
  .control-grid .pinball-tile {
    grid-template-columns: 105px minmax(0, 1fr);
    min-height: 185px;
    padding: 18px;
    column-gap: 18px;
  }
  .pinball-tile__machine { width: 96px; height: 138px; }
  .control-grid .pinball-tile > strong { font-size: 22px; }
  .pinball-modal__card { gap: 8px; padding-left: 9px; padding-right: 9px; }
  .pinball-head { padding-left: 5px; }
  .pinball-hud > div { min-width: 54px; padding: 7px; }
  .pinball-controls button { min-height: 54px; }
  .pinball-tip { display: none; }
}

@media (max-height: 700px) {
  .pinball-head { min-height: 48px; }
  .pinball-controls button { min-height: 48px; }
  .pinball-modal__card { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .pinball-tile__ball,
  .pinball-tile__bumper,
  .pinball-tile__flipper { animation: none !important; }
}

/* ========================================================================== */
/* KONTRA SITE v10 — MOBILE TOUCH SCROLL FIX                                  */
/* ========================================================================== */
html {
  overflow-x: hidden;
  overflow-y: auto;
  touch-action: pan-y pinch-zoom;
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
}

body {
  overflow-x: hidden;
  overflow-y: auto;
  touch-action: pan-y pinch-zoom;
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
}

.app-shell,
main,
.view,
.control-grid,
.control-grid button,
.control-grid .pinball-tile {
  touch-action: pan-y pinch-zoom;
}

/* A hidden full-screen game modal must never intercept page gestures. */
.pinball-modal:not(.is-open) {
  display: none;
  pointer-events: none;
}

.pinball-modal.is-open {
  display: grid;
  pointer-events: auto;
  touch-action: none;
}

body.pinball-open {
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
}

body.pinball-open .pinball-modal__card,
body.pinball-open .pinball-stage,
body.pinball-open .pinball-controls,
body.pinball-open .pinball-controls button {
  touch-action: none;
}

/* ========================================================================== */
/* KONTRA SITE v11 — RED / BLUE ZOMBIE PORTAL + PUBLIC AVATARS                */
/* ========================================================================== */

:root {
  --bg: #020408;
  --panel: rgba(5, 10, 18, .94);
  --panel-2: rgba(8, 14, 24, .94);
  --line: rgba(43, 143, 255, .18);
  --line-strong: rgba(43, 143, 255, .46);
  --text: #f3f7ff;
  --muted: #6e7e94;
  --green: #2b9dff;
  --green-soft: #1764ad;
  --red: #ff3c42;
  --yellow: #ffd04a;
  --violet: #8b69ff;
  --online: #66ff72;
  --shadow: 0 26px 80px rgba(0, 0, 0, .68);
}

body {
  color-scheme: dark;
  --bg: #020408;
  --panel: rgba(5, 10, 18, .94);
  --panel-2: rgba(8, 14, 24, .94);
  --line: rgba(43, 143, 255, .18);
  --line-strong: rgba(43, 143, 255, .46);
  --text: #f3f7ff;
  --muted: #6e7e94;
  --shadow: 0 26px 80px rgba(0, 0, 0, .68);
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 42, 49, .12), transparent 25rem),
    radial-gradient(circle at 96% 17%, rgba(32, 122, 255, .13), transparent 27rem),
    linear-gradient(180deg, #03060c, #010205 68%);
}

body::before {
  opacity: .34;
  background-image:
    linear-gradient(rgba(69, 120, 194, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 120, 194, .022) 1px, transparent 1px);
  background-size: 5px 5px;
  mix-blend-mode: screen;
}

.ambient--one { background: var(--red); }
.ambient--two { background: #187cff; }

.app-shell { width: min(100%, 820px); }

.topbar {
  min-height: 94px;
  background: linear-gradient(180deg, rgba(2, 5, 11, .98), rgba(2, 5, 11, .82));
  border-bottom-color: rgba(46, 129, 255, .17);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .34);
}

.brand img {
  filter:
    drop-shadow(-8px 0 14px rgba(255, 44, 51, .18))
    drop-shadow(8px 0 14px rgba(36, 122, 255, .2));
}

.brand strong {
  background: linear-gradient(90deg, #ff4b4f 0 42%, #edf2fb 50%, #459fff 58%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.brand small { color: #77869a; }

.lang-switch {
  background: rgba(3, 8, 15, .82);
  border-color: rgba(255, 255, 255, .09);
}

.lang-switch button.is-active {
  color: #ff555a;
  border: 1px solid rgba(255, 62, 68, .42);
  background: rgba(255, 43, 50, .08);
  box-shadow: 0 0 18px rgba(255, 48, 54, .1);
}

.icon-button,
.menu-button {
  background: rgba(4, 10, 18, .84);
  border-color: rgba(39, 135, 255, .26);
}

main { padding-top: 20px; }

.home-visual {
  position: relative;
  width: min(100%, 590px);
  height: clamp(250px, 45vw, 370px);
  margin: -4px auto -32px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
}

.home-visual::after {
  content: "";
  position: absolute;
  inset: auto 7% 0;
  height: 42%;
  z-index: 2;
  background: linear-gradient(transparent, #02050a 86%);
}

.home-visual > img {
  position: relative;
  z-index: 1;
  width: min(88%, 485px);
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  filter: contrast(1.08) saturate(1.08);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.home-visual__glow {
  position: absolute;
  top: 18%;
  width: 43%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(72px);
  opacity: .31;
}

.home-visual__glow--red { left: 3%; background: #ff2430; }
.home-visual__glow--blue { right: 3%; background: #187fff; }

.mode-mark {
  position: relative;
  z-index: 3;
  margin-top: 0;
}

.mode-mark__row--lvl { color: #4ca8ff; }
.mode-mark__row--zombie { color: #ff4247; }
.mode-mark__row b {
  background: rgba(2, 6, 13, .82);
  box-shadow: 0 0 15px currentColor inset, 0 0 16px color-mix(in srgb, currentColor 28%, transparent);
}

.server-card,
.panel {
  border-color: rgba(38, 130, 255, .34);
  background:
    radial-gradient(circle at 0 0, rgba(255, 43, 49, .055), transparent 42%),
    radial-gradient(circle at 100% 0, rgba(40, 128, 255, .075), transparent 45%),
    linear-gradient(145deg, rgba(7, 13, 23, .97), rgba(2, 5, 10, .98));
  box-shadow:
    0 26px 80px rgba(0, 0, 0, .58),
    -14px 0 38px rgba(255, 32, 39, .035),
    14px 0 38px rgba(31, 119, 255, .055),
    inset 0 0 34px rgba(40, 129, 255, .025);
}

.server-card::before { border-color: rgba(255, 62, 67, .11); }
.server-card__status { color: #eef7ff; }
.server-card.is-online .status-light,
.scoreboard-head__status.is-online .status-light {
  background: var(--online);
  box-shadow: 0 0 0 7px rgba(102, 255, 114, .06), 0 0 19px rgba(102, 255, 114, .7);
}

.theme-lamp {
  --lamp-glass: linear-gradient(135deg, #ff3b41 0 49%, #2a97ff 51%);
  --lamp-rim: rgba(90, 155, 255, .5);
  width: 50px;
  border-color: rgba(46, 138, 255, .34);
  background: rgba(5, 12, 22, .9);
}

.theme-lamp__glass {
  border-color: rgba(76, 149, 255, .55);
  background: linear-gradient(135deg, #ff3b41 0 48%, #07101d 49% 52%, #2a97ff 53%);
  box-shadow: -5px 0 16px rgba(255, 59, 65, .28), 5px 0 16px rgba(42, 151, 255, .3);
}

.bio-core strong {
  color: #ff4349;
  text-shadow: -8px 0 24px rgba(255, 42, 48, .52), 8px 0 25px rgba(34, 128, 255, .3);
}
.bio-ring { border-color: rgba(43, 143, 255, .48); }
.bio-ring--1 { border-color: rgba(255, 58, 64, .46); }
.server-meter__value > strong {
  color: #ff444a;
  text-shadow: -7px 0 22px rgba(255, 57, 63, .3), 8px 0 24px rgba(42, 143, 255, .18);
}
.progress span {
  background: linear-gradient(90deg, #ff3239, #81336e 48%, #258fff);
  box-shadow: 0 0 17px rgba(40, 143, 255, .42);
}
.server-meta dd { color: #57abff; }

.quick-grid article {
  background: linear-gradient(145deg, rgba(8, 14, 24, .96), rgba(3, 7, 13, .96));
  border-color: rgba(45, 133, 255, .16);
}
.quick-icon { color: #49a5ff; }
.quick-icon--red { color: #ff4147; }

.panel-icon,
.section-title small,
.section-title > span { color: #ff494f; }
.section-title > span { border-color: rgba(255, 61, 67, .38); }
.section-title h1 {
  background: linear-gradient(90deg, #f7f9ff, #8abfff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.primary-button {
  border-color: rgba(255, 61, 67, .46);
  color: #ff5a5f;
  background: linear-gradient(180deg, rgba(255, 51, 58, .13), rgba(255, 51, 58, .045));
  box-shadow: inset 0 0 20px rgba(255, 51, 58, .025);
}

.bottom-nav {
  background: rgba(2, 6, 12, .94);
  border-top-color: rgba(44, 133, 255, .19);
  box-shadow: 0 -15px 42px rgba(0, 0, 0, .48);
}
.bottom-nav button { color: #526178; }
.bottom-nav button.is-active {
  color: #ff4b51;
  text-shadow: 0 0 15px rgba(255, 58, 64, .42);
}

.leaderboard-tabs {
  background: rgba(3, 8, 15, .88);
  border-color: rgba(44, 133, 255, .17);
}
.leaderboard-tabs button.is-active {
  color: #ff555a;
  border-color: rgba(255, 61, 67, .37);
  background: linear-gradient(180deg, rgba(255, 47, 54, .12), rgba(255, 47, 54, .035));
}

.leaderboard-player {
  min-height: 108px;
  grid-template-columns: 52px 70px minmax(0, 1fr) auto;
  grid-template-areas:
    "rank avatar identity metric"
    "rank avatar summary summary";
  border-top-color: rgba(46, 129, 255, .11);
}
.leaderboard-player__rank { align-content: center; gap: 1px; border-color: rgba(255, 59, 65, .24); }
.leaderboard-player__rank-number { display: block; }
.leaderboard-player__crown {
  display: block;
  margin-bottom: 3px;
  font: 900 18px/1 Georgia, "Times New Roman", serif;
  transform-origin: 50% 80%;
  animation: leaderboardCrownFloat 2.4s ease-in-out infinite;
}
.leaderboard-player__crown--1 {
  color: #ffd75a;
  filter: drop-shadow(0 0 5px rgba(255, 206, 55, .78));
}
.leaderboard-player__crown--2 {
  color: #dbe7f2;
  filter: drop-shadow(0 0 5px rgba(190, 217, 239, .58));
  animation-delay: -.45s;
}
.leaderboard-player__crown--3 {
  color: #d68a52;
  filter: drop-shadow(0 0 5px rgba(205, 112, 53, .58));
  animation-delay: -.9s;
}
@keyframes leaderboardCrownFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); opacity: .9; }
  50% { transform: translateY(-2px) rotate(3deg); opacity: 1; }
}
.leaderboard-player__avatar {
  grid-area: avatar;
  align-self: stretch;
  width: 70px;
  height: 76px;
  object-fit: cover;
  border: 1px solid rgba(255, 63, 69, .48);
  border-radius: 12px;
  background: #050911;
  box-shadow: 0 0 18px rgba(255, 47, 54, .11);
}
.leaderboard-player:nth-child(even) .leaderboard-player__avatar {
  border-color: rgba(48, 145, 255, .5);
  box-shadow: 0 0 18px rgba(48, 145, 255, .12);
}
.leaderboard-player__metric strong { color: #ff4f55; }
.leaderboard-online.is-online { color: var(--online); }
.leaderboard-online.is-online::before {
  background: var(--online);
  box-shadow: 0 0 10px rgba(102, 255, 114, .68);
}

.profile-avatar,
.profile-identity > .profile-avatar,
.web-profile-card__hero > .profile-avatar {
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255, 62, 68, .62);
  border-radius: 15px;
  background: #050912;
  box-shadow: -7px 0 24px rgba(255, 51, 58, .13), 7px 0 24px rgba(42, 143, 255, .12);
  filter: none;
}
.web-profile-card__hero > .profile-avatar--large {
  width: clamp(106px, 23vw, 154px);
  height: clamp(128px, 29vw, 186px);
}
.web-profile-card__hero {
  background:
    radial-gradient(circle at 5% 30%, rgba(255, 45, 52, .12), transparent 42%),
    radial-gradient(circle at 90% 20%, rgba(36, 127, 255, .12), transparent 48%);
}
.account-role,
.account-level {
  color: #57adff;
  border-color: rgba(48, 145, 255, .3);
  background: rgba(48, 145, 255, .065);
}
.account-role--admin {
  color: #ff4d53;
  border-color: rgba(255, 62, 68, .36);
  background: rgba(255, 62, 68, .07);
}
.account-role--vip { color: #ffd04a; }

.avatar-picker {
  padding: 20px 22px 22px;
  border-bottom: 1px solid rgba(45, 133, 255, .12);
  background: linear-gradient(180deg, rgba(3, 8, 15, .4), rgba(2, 5, 10, .75));
}
.avatar-picker > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.avatar-picker > header > div { display: grid; gap: 5px; }
.avatar-picker > header strong {
  color: #e9f2ff;
  font-size: 11px;
  letter-spacing: .14em;
}
.avatar-picker > header small {
  max-width: 490px;
  color: #687991;
  font-size: 9px;
  line-height: 1.45;
}
.avatar-picker__public {
  flex: 0 0 auto;
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(102, 255, 114, .28);
  border-radius: 7px;
  color: var(--online);
  background: rgba(102, 255, 114, .045);
  font: 800 8px/1 ui-monospace, monospace;
  letter-spacing: .1em;
}

.avatar-picker__public.is-pending {
  color: #ffcc57;
  border-color: rgba(255, 204, 87, .45);
  background: rgba(255, 204, 87, .07);
}
.avatar-picker__grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
}
.avatar-option {
  position: relative;
  min-width: 0;
  aspect-ratio: .78;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(48, 145, 255, .3);
  border-radius: 10px;
  background: #030811;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.avatar-option:nth-child(3n + 1) { border-color: rgba(255, 62, 68, .36); }
.avatar-option:nth-child(4n) { border-color: rgba(112, 255, 73, .3); }
.avatar-option:hover { transform: translateY(-2px); }
.avatar-option:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.avatar-option.is-selected {
  border-color: #ff454b;
  box-shadow: 0 0 0 2px rgba(255, 69, 75, .18), 0 0 22px rgba(255, 45, 52, .26);
  transform: translateY(-2px);
}
.avatar-option.is-selected::after {
  content: "✓";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #ff343b;
  box-shadow: 0 0 13px rgba(255, 52, 59, .72);
  font: 900 10px/1 sans-serif;
}
.avatar-option img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.avatar-option > span {
  position: absolute;
  left: 5px;
  bottom: 4px;
  color: #f2f6ff;
  text-shadow: 0 1px 4px #000;
  font: 800 7px/1 ui-monospace, monospace;
}

.mini-player {
  grid-template-columns: 8px 28px minmax(0, 1fr) auto;
}
.mini-player__avatar {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(50, 145, 255, .3);
  border-radius: 7px;
  object-fit: cover;
}
.scoreboard-player__identity {
  grid-template-columns: 9px 44px minmax(0, 1fr);
}
.scoreboard-player__avatar {
  width: 44px;
  height: 48px;
  border: 1px solid rgba(49, 144, 255, .34);
  border-radius: 9px;
  object-fit: cover;
}

.player-detail > header { padding-right: 48px; }
.player-detail__hero {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}
.player-detail__hero > div { min-width: 0; display: grid; gap: 8px; }
.player-detail__hero > div > small {
  color: #ff5257;
  font: 700 9px/1.2 ui-monospace, monospace;
  letter-spacing: .16em;
}
.player-detail__hero h2 {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(24px, 7vw, 38px);
}
.player-detail__avatar {
  width: 112px;
  height: 132px;
  object-fit: cover;
  border: 1px solid rgba(255, 61, 67, .55);
  border-radius: 14px;
  background: #040812;
  box-shadow: -7px 0 23px rgba(255, 48, 55, .13), 7px 0 23px rgba(39, 133, 255, .13);
}

/* v12: restore strong contrast for components added by the red/blue redesign. */
body.theme-day .server-card__status {
  color: #17202d;
}

body.theme-day .section-title h1 {
  background: linear-gradient(90deg, #111722, #245d99);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.theme-day .profile-stat {
  border-color: rgba(42, 53, 37, .09);
  background: rgba(42, 53, 37, .035);
}

body.theme-day .profile-stat small,
body.theme-day .web-profile-card__footer small {
  color: #677064;
}

body.theme-day .profile-stat strong {
  color: #283126;
}

body.theme-day .profile-stat--kills strong,
body.theme-day .profile-stat--level strong,
body.theme-day .profile-stat--kd strong {
  color: #1972bd;
}

body.theme-day .profile-stat--deaths strong {
  color: #d92d36;
}

body.theme-day .profile-stat--tokens strong,
body.theme-day .profile-stat--wins strong {
  color: #9a6a00;
}

body.theme-day .profile-stat--time strong {
  color: #6546c7;
}

@media (prefers-reduced-motion: reduce) {
  .leaderboard-player__crown { animation: none; }
}

@media (max-width: 620px) {
  .home-visual {
    height: 285px;
    margin-top: -12px;
    margin-bottom: -24px;
  }
  .home-visual > img { width: 104%; object-position: 50% 24%; }
  .leaderboard-player {
    grid-template-columns: 40px 56px minmax(0, 1fr) auto;
    padding: 13px 11px;
    gap: 7px 9px;
  }
  .leaderboard-player__avatar { width: 56px; height: 64px; }
  .leaderboard-player__identity > strong { font-size: 13px; }
  .avatar-picker { padding-inline: 16px; }
  .avatar-picker__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .web-profile-card__hero { align-items: center; }
}

@media (max-width: 430px) {
  main { padding-top: 10px; }
  .home-visual { height: 245px; margin-bottom: -18px; }
  .brand span { display: none; }
  .topbar { min-height: 82px; }
  .leaderboard-player {
    grid-template-columns: 37px 50px minmax(0, 1fr) auto;
    grid-template-areas:
      "rank avatar identity metric"
      "rank avatar summary summary";
  }
  .leaderboard-player__avatar { width: 50px; height: 58px; }
  .leaderboard-player__metric { min-width: 58px; }
  .leaderboard-player__summary span:nth-child(2) { display: none; }
  .player-detail__hero { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; }
  .player-detail__avatar { width: 88px; height: 106px; }
  .scoreboard-player__identity { grid-template-columns: 8px 38px minmax(0, 1fr); gap: 8px; }
  .scoreboard-player__avatar { width: 38px; height: 42px; }
}

/* ========================================================================== */
/* KONTRA SITE v14 — PINBALL TOKEN RUN                                        */
/* ========================================================================== */
.control-grid .pinball-tile {
  min-height: 236px;
  grid-template-rows: auto auto auto;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(118deg, rgba(3, 8, 15, .08) 46%, rgba(255, 41, 58, .12)),
    radial-gradient(circle at 18% 24%, rgba(35, 153, 255, .22), transparent 34%),
    radial-gradient(circle at 82% 82%, rgba(255, 40, 66, .22), transparent 42%),
    linear-gradient(145deg, #050c16, #170718 62%, #08070e);
}
.control-grid .pinball-tile::before {
  content: "KONTRA ARCADE // TOKEN RUN";
  color: rgba(255, 255, 255, .42);
}
.control-grid .pinball-tile::after {
  z-index: 2;
  font-size: 28px;
  text-shadow: 0 0 18px rgba(79, 195, 255, .72);
}
.control-grid .pinball-tile > strong,
.control-grid .pinball-tile > small,
.control-grid .pinball-tile > .pinball-tile__eyebrow {
  position: relative;
  z-index: 2;
  grid-column: 2;
}
.control-grid .pinball-tile > .pinball-tile__eyebrow {
  align-self: end;
  width: max-content;
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid rgba(104, 255, 118, .28);
  border-radius: 999px;
  color: #7dff86;
  background: rgba(54, 255, 82, .06);
  font: 800 8px/1 ui-monospace, monospace;
  letter-spacing: .1em;
}
.control-grid .pinball-tile > strong { align-self: center; }
.control-grid .pinball-tile > small { align-self: start; }
.pinball-tile__machine {
  height: 176px;
  border-color: rgba(74, 188, 255, .9);
  background:
    linear-gradient(rgba(65, 176, 255, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65, 176, 255, .09) 1px, transparent 1px),
    radial-gradient(circle at 50% 24%, rgba(84, 255, 119, .18), transparent 18%),
    radial-gradient(circle at 48% 63%, rgba(255, 49, 73, .28), transparent 36%),
    #080d1b;
  background-size: 16px 16px, 16px 16px, auto, auto, auto;
  box-shadow:
    0 0 28px rgba(37, 158, 255, .24),
    inset 0 0 34px rgba(255, 44, 66, .14);
}
.pinball-tile__reward {
  position: absolute;
  z-index: 2;
  min-width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: #58cbff;
  background: #080b14;
  box-shadow: 0 0 13px currentColor;
  font: 900 8px/1 ui-monospace, monospace;
  animation: pinballPreviewPulse 1.5s ease-in-out infinite alternate;
}
.pinball-tile__reward--one { left: 13px; top: 94px; color: #5ad0ff; }
.pinball-tile__reward--five { right: 12px; top: 103px; color: #b27aff; animation-delay: -.5s; }
.pinball-tile__reward--ten { left: 45px; top: 48px; color: #ffd54e; animation-delay: -1s; }

.pinball-modal {
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 42, 61, .18), transparent 27rem),
    radial-gradient(circle at 88% 10%, rgba(42, 147, 255, .2), transparent 30rem),
    rgba(1, 3, 8, .96);
}
.pinball-modal__card {
  width: min(100%, 620px);
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: 8px;
  padding: max(10px, env(safe-area-inset-top)) 10px max(8px, env(safe-area-inset-bottom));
  background:
    linear-gradient(rgba(44, 133, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 133, 255, .025) 1px, transparent 1px),
    radial-gradient(circle at 10% 18%, rgba(255, 48, 63, .16), transparent 34%),
    radial-gradient(circle at 91% 20%, rgba(45, 154, 255, .18), transparent 36%),
    linear-gradient(160deg, #030711, #110715 58%, #03050a);
  background-size: 26px 26px, 26px 26px, auto, auto, auto;
}
.pinball-modal__card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 53, 66, .16), transparent 10%, transparent 90%, rgba(50, 159, 255, .18));
  opacity: .6;
}
.pinball-modal__close {
  top: max(10px, env(safe-area-inset-top));
  right: 10px;
  width: 38px;
  height: 38px;
  border-color: rgba(100, 144, 194, .28);
  background: rgba(9, 15, 25, .86);
}
.pinball-head {
  position: relative;
  z-index: 2;
  min-height: 55px;
  padding: 0 48px 0 4px;
}
.pinball-head__title { min-width: 0; }
.pinball-head__title h2 {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: clamp(18px, 5.5vw, 28px);
}
.pinball-session-reward {
  width: max-content;
  color: #ffe05a;
  font: 900 8px/1 ui-monospace, monospace;
  letter-spacing: .12em;
  text-shadow: 0 0 13px rgba(255, 216, 60, .5);
}
.pinball-hud { gap: 6px; }
.pinball-hud > div {
  min-width: 65px;
  padding: 7px 8px;
  border-color: rgba(61, 159, 255, .3);
  background: rgba(3, 9, 18, .78);
  box-shadow: inset 0 0 18px rgba(34, 133, 255, .045);
}
.pinball-hud > div:first-child {
  border-color: rgba(255, 207, 70, .3);
}
.pinball-hud > div:first-child dd { color: #ffe05a; }
.pinball-hud dd { font-size: 15px; }

.pinball-toolbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(135px, .72fr);
  gap: 8px;
}
.pinball-info-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.pinball-info-buttons button,
.pinball-buy {
  min-width: 0;
  min-height: 41px;
  border: 1px solid rgba(61, 151, 255, .22);
  border-radius: 11px;
  color: #dfeeff;
  background: rgba(5, 13, 24, .8);
  font: 800 8px/1 ui-monospace, monospace;
  letter-spacing: .08em;
}
.pinball-info-buttons button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pinball-info-buttons span {
  color: #5ccaff;
  font-size: 13px;
  text-shadow: 0 0 12px rgba(65, 183, 255, .7);
}
.pinball-buy {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  align-items: center;
  padding: 5px 8px;
  border-color: rgba(255, 209, 67, .34);
  text-align: left;
}
.pinball-buy > span {
  grid-row: 1 / 3;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #151000;
  background: #ffd447;
  box-shadow: 0 0 15px rgba(255, 208, 58, .42);
  font: 900 16px/1 system-ui, sans-serif;
}
.pinball-buy > b { align-self: end; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pinball-buy > small {
  align-self: start;
  color: #798a9f;
  font: 700 7px/1.2 ui-monospace, monospace;
  letter-spacing: .05em;
}
.pinball-buy > small strong { color: #ffd650; }
.pinball-buy > small i { font-style: normal; }
.pinball-buy:disabled { opacity: .45; filter: grayscale(.4); }

.pinball-stage {
  border-color: rgba(57, 161, 255, .3);
  border-radius: 19px;
  background:
    radial-gradient(circle at 50% 15%, rgba(75, 179, 255, .08), transparent 35%),
    #02050a;
  box-shadow:
    inset 0 0 70px rgba(44, 142, 255, .1),
    0 16px 42px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(255, 47, 65, .08);
}
#pinballCanvas {
  width: auto;
  height: 100%;
  aspect-ratio: 7 / 12;
  filter: saturate(1.08) contrast(1.03);
}
.pinball-float-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.pinball-float {
  position: absolute;
  translate: -50% -50%;
  color: var(--float-color, #fff);
  font: 900 15px/1 ui-monospace, monospace;
  letter-spacing: .04em;
  text-shadow: 0 0 12px currentColor, 0 2px 2px #000;
  animation: pinballFloatReward .78s cubic-bezier(.17, .67, .3, 1) forwards;
}
.pinball-overlay {
  background:
    radial-gradient(circle at 50% 38%, rgba(34, 142, 255, .14), transparent 34%),
    rgba(1, 4, 10, .82);
}
.pinball-overlay__logo {
  width: 66px;
  height: 66px;
  border-color: #58d3ff;
  color: #f6fbff;
  background:
    linear-gradient(135deg, rgba(255, 54, 67, .16), rgba(48, 158, 255, .16)),
    rgba(3, 8, 17, .9);
  box-shadow:
    -12px 0 30px rgba(255, 47, 62, .18),
    12px 0 30px rgba(47, 155, 255, .22);
  font-size: 37px;
}
.pinball-overlay strong { font-size: clamp(22px, 6vw, 27px); }
.pinball-overlay small { max-width: 320px; }
.pinball-overlay .primary-button { min-height: 47px; }
.pinball-overlay.is-processing .primary-button { pointer-events: none; opacity: .58; }
.pinball-controls { position: relative; z-index: 2; gap: 8px; }
.pinball-controls button {
  min-height: 52px;
  border-color: rgba(63, 163, 255, .3);
  border-radius: 14px;
  background:
    linear-gradient(150deg, rgba(11, 28, 47, .96), rgba(8, 7, 22, .96));
  box-shadow: inset 0 0 22px rgba(35, 145, 255, .04);
}
.pinball-controls button:first-child {
  border-color: rgba(255, 61, 74, .36);
}
.pinball-controls button:first-child span {
  color: #ff4b59;
  text-shadow: 0 0 13px rgba(255, 60, 73, .62);
}
.pinball-controls button:last-child span {
  color: #53caff;
  text-shadow: 0 0 13px rgba(58, 175, 255, .62);
}
.pinball-tip { position: relative; z-index: 2; }

.pinball-info-sheet {
  position: absolute;
  inset: 0;
  z-index: 15;
  display: grid;
  align-items: end;
  visibility: hidden;
  pointer-events: none;
}
.pinball-info-sheet.is-open {
  visibility: visible;
  pointer-events: auto;
}
.pinball-info-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 3, 9, .76);
  opacity: 0;
  backdrop-filter: blur(5px);
  transition: opacity .2s ease;
}
.pinball-info-sheet.is-open .pinball-info-sheet__backdrop { opacity: 1; }
.pinball-info-sheet__card {
  position: relative;
  width: 100%;
  max-height: min(82dvh, 680px);
  padding: 20px 16px max(18px, env(safe-area-inset-bottom));
  overflow: auto;
  border: 1px solid rgba(57, 158, 255, .28);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background:
    radial-gradient(circle at 4% 3%, rgba(255, 51, 68, .15), transparent 32%),
    radial-gradient(circle at 94% 7%, rgba(43, 151, 255, .18), transparent 36%),
    #060b14;
  box-shadow: 0 -28px 70px rgba(0, 0, 0, .72);
  transform: translateY(24px);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}
.pinball-info-sheet.is-open .pinball-info-sheet__card {
  transform: translateY(0);
  opacity: 1;
}
.pinball-info-sheet__card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.pinball-info-sheet__card > header small {
  color: #58c8ff;
  font: 800 8px/1 ui-monospace, monospace;
  letter-spacing: .18em;
}
.pinball-info-sheet__card h3 {
  margin: 5px 0 0;
  color: #f4f8ff;
  font-size: clamp(21px, 6vw, 29px);
}
.pinball-info-sheet__card > header button {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(91, 149, 205, .26);
  border-radius: 50%;
  color: #e7effb;
  background: rgba(10, 20, 33, .82);
  font-size: 23px;
}
.pinball-info-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 18px;
  padding: 4px;
  border: 1px solid rgba(66, 151, 240, .18);
  border-radius: 13px;
  background: rgba(1, 5, 12, .62);
}
.pinball-info-tabs button {
  min-height: 37px;
  border: 0;
  border-radius: 9px;
  color: #71839a;
  background: transparent;
  font: 800 9px/1 ui-monospace, monospace;
  letter-spacing: .1em;
}
.pinball-info-tabs button.is-active {
  color: #f2f8ff;
  background: linear-gradient(115deg, rgba(255, 53, 68, .18), rgba(44, 151, 255, .2));
  box-shadow: inset 0 0 0 1px rgba(72, 167, 255, .16);
}
.pinball-info-panel { display: none; padding-top: 16px; }
.pinball-info-panel.is-active { display: block; }
.pinball-info-panel > p {
  margin: 0 0 15px;
  color: #8c9caf;
  font-size: 11px;
  line-height: 1.55;
}
.pinball-info-panel ol {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  list-style: none;
}
.pinball-info-panel li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid rgba(55, 144, 233, .14);
  border-radius: 12px;
  background: rgba(10, 18, 31, .72);
}
.pinball-info-panel li > span {
  color: #4ec4ff;
  font: 900 11px/1 ui-monospace, monospace;
  letter-spacing: .08em;
}
.pinball-info-panel li p {
  margin: 0;
  color: #c5d0df;
  font-size: 10px;
  line-height: 1.45;
}
.pinball-reward-list { display: grid; gap: 8px; }
.pinball-reward-list > div {
  --reward-color: #56caff;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
  border: 1px solid color-mix(in srgb, var(--reward-color) 27%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--reward-color) 6%, rgba(5, 11, 21, .9));
}
.pinball-reward-list > div > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid var(--reward-color);
  border-radius: 50%;
  color: var(--reward-color);
  box-shadow: 0 0 15px color-mix(in srgb, var(--reward-color) 40%, transparent);
  font: 900 11px/1 ui-monospace, monospace;
}
.pinball-reward-list p { min-width: 0; margin: 0; display: grid; gap: 5px; }
.pinball-reward-list b {
  color: #eaf2fd;
  font: 900 9px/1 ui-monospace, monospace;
  letter-spacing: .08em;
}
.pinball-reward-list small { color: #75869c; font-size: 9px; }
.pinball-reward-list .is-violet { --reward-color: #b878ff; }
.pinball-reward-list .is-gold { --reward-color: #ffd64f; }
.pinball-reward-list .is-green { --reward-color: #6eff77; }
.pinball-reward-list .is-exit { --reward-color: #ff5360; }

body.theme-day .control-grid .pinball-tile {
  background:
    radial-gradient(circle at 18% 24%, rgba(35, 153, 255, .2), transparent 34%),
    radial-gradient(circle at 82% 82%, rgba(255, 40, 66, .18), transparent 42%),
    linear-gradient(145deg, #f6fbff, #f6eef8 62%, #eff6fa);
}
body.theme-day .control-grid .pinball-tile > .pinball-tile__eyebrow {
  color: #18872a;
  border-color: rgba(23, 133, 41, .25);
  background: rgba(23, 133, 41, .05);
}

@keyframes pinballFloatReward {
  0% { opacity: 0; transform: translateY(8px) scale(.72); }
  20% { opacity: 1; transform: translateY(0) scale(1.08); }
  100% { opacity: 0; transform: translateY(-42px) scale(.92); }
}

@media (max-width: 520px) {
  .control-grid .pinball-tile {
    min-height: 205px;
    grid-template-columns: 110px minmax(0, 1fr);
    padding: 17px;
  }
  .pinball-tile__machine { width: 100px; height: 154px; }
  .control-grid .pinball-tile > .pinball-tile__eyebrow { font-size: 7px; padding: 5px 7px; }
  .pinball-modal__card { padding-inline: 7px; }
  .pinball-head { padding-left: 3px; }
  .pinball-head__title h2 { max-width: 150px; }
  .pinball-hud > div { min-width: 57px; padding-inline: 6px; }
  .pinball-hud dt { font-size: 6px; }
  .pinball-hud dd { font-size: 13px; }
  .pinball-toolbar { grid-template-columns: minmax(0, 1fr) minmax(124px, .8fr); gap: 6px; }
  .pinball-info-buttons { gap: 5px; }
  .pinball-info-buttons button,
  .pinball-buy { min-height: 38px; }
  .pinball-info-buttons b { font-size: 7px; }
  .pinball-buy { grid-template-columns: 24px minmax(0, 1fr); padding-inline: 6px; }
  .pinball-buy > b { font-size: 7px; }
  .pinball-buy > small { font-size: 6px; }
  .pinball-controls button { min-height: 49px; }
}

@media (max-height: 760px) {
  .pinball-modal__card { gap: 5px; }
  .pinball-head { min-height: 48px; }
  .pinball-head small { font-size: 7px; }
  .pinball-session-reward { display: none; }
  .pinball-info-buttons button,
  .pinball-buy { min-height: 35px; }
  .pinball-controls button { min-height: 44px; }
  .pinball-tip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pinball-tile__reward,
  .pinball-float,
  .pinball-info-sheet__card,
  .pinball-info-sheet__backdrop { animation: none !important; transition: none !important; }
}

/* ========================================================================== */
/* KONTRA SITE v15 — OFFICIAL K MARK + ELECTRIC ACTIVE NAV                    */
/* ========================================================================== */
.brand img,
.drawer > header img,
#loginModal .modal__card > img {
  object-fit: cover;
  border-radius: 18px;
  background: #071008;
  box-shadow:
    -7px 0 20px rgba(255, 55, 63, .14),
    7px 0 20px rgba(41, 139, 255, .16);
}

.drawer-developer {
  position: relative;
  background:
    radial-gradient(circle at 0 50%, rgba(255, 52, 61, .08), transparent 34%),
    radial-gradient(circle at 100% 50%, rgba(39, 139, 255, .1), transparent 36%) !important;
}
.drawer-developer::after {
  content: "";
  position: absolute;
  inset: 10px 0;
  pointer-events: none;
  border-left: 1px solid rgba(255, 64, 72, .38);
  border-right: 1px solid rgba(61, 156, 255, .4);
}
.drawer-developer > .drawer-action__icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #f7fbff !important;
  background:
    linear-gradient(#07101c, #07101c) padding-box,
    linear-gradient(135deg, #ff434c, #4aa7ff) border-box;
  box-shadow: -5px 0 14px rgba(255, 57, 66, .15), 5px 0 14px rgba(52, 148, 255, .17);
  font-size: 19px !important;
}

.bottom-nav button {
  position: relative;
  isolation: isolate;
  min-width: 0;
  margin: 0 3px;
  padding: 6px 2px;
  border: 1px solid transparent;
  border-radius: 16px;
  transition: color .22s ease, background .22s ease, box-shadow .22s ease;
}
.bottom-nav button::before,
.bottom-nav button::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0;
}
.bottom-nav button.is-active {
  color: #f8fbff;
  border-color: transparent;
  background:
    linear-gradient(180deg, rgba(9, 15, 27, .98), rgba(3, 7, 14, .98)) padding-box,
    linear-gradient(112deg, #ff3541 0%, #ff6e77 31%, #f7fbff 47%, #65b8ff 56%, #2179ff 100%) border-box;
  box-shadow:
    -6px 0 19px rgba(255, 49, 60, .25),
    6px 0 20px rgba(38, 130, 255, .29),
    inset 0 0 18px rgba(70, 145, 255, .06);
  text-shadow:
    -3px 0 10px rgba(255, 49, 60, .5),
    3px 0 11px rgba(44, 143, 255, .58);
}
.bottom-nav button.is-active::before {
  inset: -4px;
  z-index: -1;
  border-radius: 19px;
  background: linear-gradient(105deg, #ff3541, transparent 38%, transparent 60%, #2687ff);
  filter: blur(7px);
  opacity: .58;
  animation: activeNavElectricPulse 1.45s steps(2, end) infinite;
}
.bottom-nav button.is-active::after {
  top: 3px;
  right: 13px;
  left: 13px;
  height: 1px;
  background: linear-gradient(90deg, #ff3541, #ffffff 48%, #318eff);
  box-shadow: 0 0 7px #fff, -8px 0 8px #ff3541, 8px 0 8px #318eff;
  opacity: .92;
  animation: activeNavArc 1.8s ease-in-out infinite;
}
.bottom-nav button.is-active span,
.bottom-nav button.is-active small {
  position: relative;
  z-index: 1;
}

.pinball-overlay__logo {
  display: block;
  width: 68px;
  height: 68px;
  padding: 0;
  border: 1px solid rgba(112, 200, 255, .58);
  border-radius: 19px;
  object-fit: cover;
  transform: none;
  background: #071008;
  box-shadow:
    -12px 0 30px rgba(255, 47, 62, .2),
    12px 0 30px rgba(47, 155, 255, .24);
}

body.theme-day .bottom-nav button.is-active {
  color: #101928;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(235, 242, 250, .98)) padding-box,
    linear-gradient(112deg, #e82f3a 0%, #ff6870 31%, #ffffff 47%, #64adf7 56%, #1d70dd 100%) border-box;
}
body.theme-day .drawer-developer {
  background:
    radial-gradient(circle at 0 50%, rgba(220, 47, 56, .06), transparent 34%),
    radial-gradient(circle at 100% 50%, rgba(35, 117, 219, .07), transparent 36%) !important;
}

@keyframes activeNavElectricPulse {
  0%, 100% { opacity: .42; transform: scale(.985); }
  42% { opacity: .76; transform: scale(1.025); }
  47% { opacity: .36; transform: scale(1.005); }
  58% { opacity: .72; transform: scale(1.018); }
}
@keyframes activeNavArc {
  0%, 100% { transform: scaleX(.74); opacity: .58; }
  48% { transform: scaleX(1.06); opacity: 1; }
  52% { transform: scaleX(.88); opacity: .68; }
}

@media (max-width: 390px) {
  .bottom-nav button { margin-inline: 1px; border-radius: 14px; }
  .bottom-nav button.is-active::before { inset: -2px; }
}

@media (prefers-reduced-motion: reduce) {
  .bottom-nav button.is-active::before,
  .bottom-nav button.is-active::after {
    animation: none !important;
  }
}

/* ========================================================================== */
/* KONTRA SITE v16 — COMPACT DRAWER + PLAYER AVATAR                           */
/* ========================================================================== */
.brand img,
.drawer-brand img,
#loginModal .modal__card > img,
.pinball-overlay__logo {
  object-position: 50% 38%;
}

.drawer {
  width: min(100%, 610px);
  max-height: min(94dvh, 860px);
  padding: 8px 14px max(14px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 2% 12%, rgba(255, 47, 58, .12), transparent 32%),
    radial-gradient(circle at 98% 20%, rgba(37, 139, 255, .14), transparent 34%),
    linear-gradient(165deg, rgba(7, 12, 21, .985), rgba(3, 7, 13, .99));
  border-color: rgba(57, 147, 255, .2);
}

.drawer-brand {
  min-height: 66px;
  padding: 5px 3px 12px !important;
}

.drawer-brand img {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 75, 83, .38);
  border-radius: 15px;
  box-shadow:
    -8px 0 22px rgba(255, 50, 59, .18),
    8px 0 22px rgba(43, 144, 255, .18);
}

.drawer-brand strong {
  color: #f4f8ff;
  letter-spacing: .05em;
}

.drawer-brand small {
  color: #77879b !important;
  font: 700 10px/1.2 ui-monospace, monospace;
  letter-spacing: .1em;
}

.drawer-stack {
  display: grid;
  gap: 9px;
  padding-top: 10px;
}

.drawer-section {
  overflow: hidden;
  border: 1px solid rgba(58, 143, 235, .13);
  border-radius: 17px;
  background:
    linear-gradient(115deg, rgba(255, 51, 62, .025), transparent 42%, rgba(44, 144, 255, .035)),
    rgba(5, 10, 18, .72);
}

.drawer-section__title {
  margin: 0;
  padding: 10px 13px 7px;
  color: #65778e;
  font: 800 8px/1 ui-monospace, monospace;
  letter-spacing: .16em;
}

.drawer-action {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 7px 12px;
  border: 0;
  border-top: 1px solid rgba(76, 137, 209, .085);
  color: #f2f6fc;
  background: transparent;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}

.drawer-section > .drawer-action:first-child,
.drawer-section__title + .drawer-action {
  border-top: 0;
}

.drawer-action:hover,
.drawer-action:focus-visible {
  background:
    linear-gradient(100deg, rgba(255, 49, 59, .065), transparent 42%, rgba(41, 141, 255, .075));
}

.drawer-action:focus-visible,
.drawer-server-copy:focus-visible,
.store-badge:focus-visible {
  outline: 2px solid #66b9ff;
  outline-offset: -2px;
}

.drawer-action__copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.drawer-action__copy strong {
  overflow-wrap: anywhere;
  color: #eff5ff;
  font-size: 11px;
  letter-spacing: .025em;
}

.drawer-action__copy small {
  overflow: hidden;
  color: #718197;
  font-size: 9px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.drawer-action > b {
  color: #91a3b9;
  font-size: 19px;
}

.drawer-action__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(77, 161, 255, .25);
  border-radius: 11px;
  color: #eef7ff;
  background: rgba(37, 130, 238, .07);
  box-shadow: 0 0 15px rgba(42, 144, 255, .07);
  font-size: 18px;
}

.drawer-action__icon--blue {
  color: #52baff;
  border-color: rgba(65, 169, 255, .28);
}

.drawer-action__icon--violet {
  color: #9d8bff;
  border-color: rgba(140, 110, 255, .28);
  background: rgba(124, 84, 255, .07);
}

.drawer-action__icon--red {
  color: #ff555f;
  border-color: rgba(255, 75, 85, .3);
  background: rgba(255, 53, 65, .065);
}

.drawer-account {
  min-height: 68px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
}

.drawer-account-avatar {
  width: 46px;
  height: 50px;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(75, 158, 255, .34);
  border-radius: 12px;
  background: #030711;
  box-shadow: 0 0 18px rgba(44, 142, 255, .1);
}

.drawer-account-avatar.is-authenticated {
  border-color: rgba(255, 69, 78, .52);
  box-shadow:
    -5px 0 16px rgba(255, 53, 63, .14),
    5px 0 16px rgba(46, 146, 255, .15);
}

.drawer-account-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.drawer-developer {
  background:
    radial-gradient(circle at 0 50%, rgba(255, 52, 61, .07), transparent 36%),
    radial-gradient(circle at 100% 50%, rgba(39, 139, 255, .09), transparent 38%) !important;
}

.drawer-developer::after {
  display: none;
}

.drawer-developer > .drawer-action__icon {
  font-size: 18px !important;
}

.drawer-downloads {
  padding: 11px 12px 12px;
  border-top: 1px solid rgba(76, 137, 209, .085);
  border-bottom: 0;
}

.drawer-downloads__heading {
  padding: 0 0 9px;
}

.drawer-downloads__heading strong {
  color: #eaf2ff;
}

.store-badges {
  gap: 8px;
}

.store-badge {
  min-height: 52px;
}

.drawer-server-copy {
  width: 100%;
  min-height: 67px;
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 17px;
  color: #f3f8ff;
  background:
    linear-gradient(160deg, rgba(7, 13, 23, .96), rgba(3, 7, 13, .98)) padding-box,
    linear-gradient(112deg, rgba(255, 61, 71, .52), rgba(255, 255, 255, .08) 48%, rgba(49, 149, 255, .57)) border-box;
  box-shadow:
    -7px 0 20px rgba(255, 49, 59, .1),
    7px 0 21px rgba(38, 137, 255, .12);
  text-align: left;
  cursor: pointer;
}

.drawer-server-copy:hover {
  filter: brightness(1.12);
}

.drawer-server-copy__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(78, 166, 255, .3);
  border-radius: 10px;
  color: #65baff;
  background: rgba(40, 137, 244, .08);
  font-size: 18px;
}

.drawer-server-copy__address {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.drawer-server-copy__address small {
  color: #71839a;
  font: 800 7px/1 ui-monospace, monospace;
  letter-spacing: .14em;
}

.drawer-server-copy__address strong {
  overflow: hidden;
  color: #eaf3ff;
  font: 800 12px/1 ui-monospace, monospace;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.drawer-server-copy > b {
  color: #53aaff;
  font: 900 9px/1.2 ui-monospace, monospace;
  letter-spacing: .04em;
}

body.theme-day .drawer {
  background:
    radial-gradient(circle at 2% 12%, rgba(221, 45, 55, .07), transparent 32%),
    radial-gradient(circle at 98% 20%, rgba(33, 119, 220, .08), transparent 34%),
    linear-gradient(165deg, rgba(250, 252, 249, .99), rgba(237, 242, 235, .99));
}

body.theme-day .drawer-section {
  border-color: rgba(39, 75, 113, .12);
  background: rgba(255, 255, 255, .58);
}

body.theme-day .drawer-action {
  border-top-color: rgba(39, 75, 113, .08);
}

body.theme-day .drawer-action__copy strong,
body.theme-day .drawer-brand strong,
body.theme-day .drawer-server-copy__address strong {
  color: #1b2735;
}

body.theme-day .drawer-action__copy small,
body.theme-day .drawer-section__title,
body.theme-day .drawer-server-copy__address small {
  color: #667486;
}

body.theme-day .drawer-server-copy {
  color: #172536;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .98), rgba(237, 243, 249, .98)) padding-box,
    linear-gradient(112deg, rgba(221, 47, 57, .55), rgba(255, 255, 255, .2) 48%, rgba(36, 120, 220, .58)) border-box;
}

@media (max-width: 420px) {
  .drawer {
    padding-inline: 10px;
  }

  .drawer-stack {
    gap: 7px;
  }

  .drawer-action {
    min-height: 54px;
    padding-inline: 10px;
  }

  .drawer-account {
    min-height: 64px;
  }

  .drawer-downloads {
    padding-inline: 10px;
  }

  .store-badge {
    padding-inline: 8px;
  }

  .drawer-server-copy {
    padding-inline: 10px;
  }
}

/* ========================================================================== */
/* KONTRA SITE v17 — ONE-ROW STORE BADGES + SHORT MOBILE DRAWER               */
/* ========================================================================== */
.drawer__handle {
  margin-bottom: 7px;
}

.drawer-brand {
  min-height: 58px;
  padding: 3px 3px 9px !important;
}

.drawer-brand img {
  width: 46px;
  height: 46px;
  border-radius: 13px;
}

.drawer-stack {
  gap: 6px;
  padding-top: 7px;
}

.drawer-section {
  border-radius: 15px;
}

.drawer-section__title {
  padding: 7px 11px 5px;
}

.drawer-action {
  min-height: 49px;
  grid-template-columns: 35px minmax(0, 1fr) auto;
  gap: 9px;
  padding: 5px 10px;
}

.drawer-action__icon {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  font-size: 16px;
}

.drawer-action__copy {
  gap: 2px;
}

.drawer-action__copy strong {
  font-size: 10.5px;
}

.drawer-action__copy small {
  font-size: 8.5px;
}

.drawer-account {
  min-height: 58px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
}

.drawer-account-avatar {
  width: 42px;
  height: 44px;
  border-radius: 11px;
}

.drawer-developer .drawer-action__copy strong {
  overflow: hidden;
  overflow-wrap: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.drawer-downloads--badges-only {
  padding: 7px 8px 8px;
}

.drawer-downloads--badges-only .store-badges {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.drawer-downloads--badges-only .store-badge {
  min-height: 44px;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 6px;
  padding: 5px 7px;
  border-radius: 10px;
}

.drawer-downloads--badges-only .store-badge__icon {
  width: 30px;
  height: 30px;
}

.drawer-downloads--badges-only .store-badge__copy {
  gap: 1px;
}

.drawer-downloads--badges-only .store-badge__copy small {
  font-size: 5.5px;
}

.drawer-downloads--badges-only .store-badge__copy strong {
  font-size: clamp(9px, 2.9vw, 12px);
}

.drawer-server-copy {
  min-height: 57px;
  padding-block: 7px;
  border-radius: 15px;
}

@media (max-width: 420px), (max-height: 820px) {
  .drawer {
    max-height: 96dvh;
    padding: 5px 10px max(10px, env(safe-area-inset-bottom));
  }

  .drawer__handle {
    margin: 2px auto 5px;
  }

  .drawer-brand {
    min-height: 54px;
    padding-bottom: 7px !important;
  }

  .drawer-brand img {
    width: 43px;
    height: 43px;
  }

  .drawer-stack {
    gap: 5px;
    padding-top: 5px;
  }

  .drawer-section__title {
    padding: 6px 10px 4px;
  }

  .drawer-action {
    min-height: 46px;
    padding-block: 4px;
  }

  .drawer-account {
    min-height: 54px;
  }

  .drawer-downloads--badges-only {
    padding-block: 6px 7px;
  }

  .drawer-server-copy {
    min-height: 53px;
    padding-block: 6px;
  }
}

/* ========================================================================== */
/* KONTRA SITE v18 — DRAWER ICON + PINBALL CARD MOBILE LAYOUT                 */
/* ========================================================================== */
.control-grid .pinball-tile {
  grid-template-rows: auto auto auto;
}

.control-grid .pinball-tile > .pinball-tile__machine {
  grid-row: 1 / 4;
}

/* ========================================================================== */
/* KONTRA SITE v19 — ZM / ZE BRIDGE + DUAL SERVER COPY                        */
/* ========================================================================== */
.server-bridge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border: 1px solid rgba(72, 145, 239, .18);
  border-radius: 16px;
  background: rgba(2, 7, 14, .82);
  box-shadow: inset 0 0 18px rgba(46, 134, 255, .035);
}

.server-bridge__link {
  position: relative;
  min-width: 54px;
  min-height: 43px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(105, 150, 204, .14);
  border-radius: 12px;
  color: #6f8198;
  background: linear-gradient(155deg, rgba(12, 20, 32, .92), rgba(3, 8, 15, .96));
  transition: color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.server-bridge__link::before {
  content: "";
  position: absolute;
  inset: -45%;
  opacity: 0;
  background: conic-gradient(from 0deg, transparent, #ff4c55, transparent 30%, #3b9dff, transparent 62%);
  animation: serverBridgeSpin 3.8s linear infinite;
  transition: opacity .2s ease;
}

.server-bridge__link::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 10px;
  background: linear-gradient(155deg, #0a111d, #03070d);
}

.server-bridge__link span,
.server-bridge__link small {
  position: relative;
  z-index: 1;
}

.server-bridge__link span {
  font: 900 13px/1 ui-monospace, monospace;
  letter-spacing: .08em;
}

.server-bridge__link small {
  font: 800 5.5px/1 ui-monospace, monospace;
  letter-spacing: .08em;
}

.server-bridge__link:hover,
.server-bridge__link:focus-visible {
  color: #eaf4ff;
  border-color: rgba(68, 157, 255, .55);
  transform: translateY(-1px);
}

.server-bridge__link.is-active {
  color: #fff;
  border-color: transparent;
  box-shadow: -5px 0 17px rgba(255, 54, 64, .18), 5px 0 17px rgba(45, 146, 255, .2);
}

.server-bridge__link.is-active::before { opacity: 1; }

.server-bridge__link.is-active span {
  text-shadow: -2px 0 8px rgba(255, 55, 64, .8), 2px 0 8px rgba(47, 149, 255, .9);
}

@keyframes serverBridgeSpin {
  to { transform: rotate(1turn); }
}

.mode-mark__row--zombie b {
  width: clamp(30px, 7vw, 44px);
}

.drawer-server-list {
  display: grid;
  gap: 6px;
}

.drawer-server-list .drawer-section__title {
  padding: 3px 4px 1px;
}

.drawer-server-copy--survival {
  box-shadow: -8px 0 20px rgba(255, 49, 59, .11), 8px 0 22px rgba(38, 137, 255, .14);
}

.drawer-server-copy--escape {
  background:
    linear-gradient(160deg, rgba(7, 13, 23, .96), rgba(3, 7, 13, .98)) padding-box,
    linear-gradient(112deg, rgba(49, 149, 255, .57), rgba(255, 255, 255, .08) 48%, rgba(255, 61, 71, .52)) border-box;
}

.drawer-server-copy__icon {
  font: 900 10px/1 ui-monospace, monospace;
}

body.theme-day .server-bridge {
  border-color: rgba(39, 75, 113, .14);
  background: rgba(244, 248, 243, .9);
}

body.theme-day .server-bridge__link::after {
  background: linear-gradient(155deg, #fff, #eaf0e8);
}

body.theme-day .server-bridge__link.is-active {
  color: #152333;
}

@media (max-width: 720px) {
  .topbar {
    padding-inline: 12px;
    gap: 8px;
  }

  .brand span { display: none; }
  .topbar-actions { gap: 6px; }
  .server-bridge { gap: 3px; padding: 3px; border-radius: 14px; }
  .server-bridge__link { min-width: 42px; min-height: 39px; border-radius: 10px; }
  .server-bridge__link::after { border-radius: 8px; }
  .server-bridge__link span { font-size: 12px; }
  .server-bridge__link small { display: none; }
  .lang-switch { padding: 3px; }
  .lang-switch button { padding: 9px 8px; }
  .menu-button { width: 46px; height: 46px; }
}

@media (max-width: 370px) {
  .topbar { padding-inline: 8px; }
  .brand img { width: 47px; height: 47px; }
  .server-bridge__link { min-width: 37px; }
  .lang-switch button { padding-inline: 6px; font-size: 13px; }
  .menu-button { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .server-bridge__link::before { animation: none; }
}

.control-grid .pinball-tile > .pinball-tile__eyebrow {
  grid-row: 1;
  align-self: end;
  justify-self: start;
  margin: 32px 0 0;
}

.control-grid .pinball-tile > strong {
  grid-row: 2;
}

.control-grid .pinball-tile > small {
  grid-row: 3;
}

@media (max-width: 520px) {
  .control-grid .pinball-tile > .pinball-tile__eyebrow {
    margin-top: 28px;
  }
}
