: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); } }

/* v19: карточка изображения карты + мини-знак заражения у счётчика */
.map-card { position: relative; width: 100%; margin: auto; border-radius: 18px; overflow: hidden; border: 1px solid rgba(184,239,75,.22); background: rgba(10,13,10,.55); box-shadow: 0 12px 30px rgba(0,0,0,.35); min-height: 96px; display: grid; place-items: center; }
.map-card__image { display: block; width: 100%; height: auto; }
.map-card__image[hidden] { display: none; }
.map-card.has-image { border-color: rgba(184,239,75,.34); }
.map-card .bio-core--fallback { width: min(70%, 175px); margin: 14px auto; }
.map-card.has-image .bio-core--fallback { display: none; }
.map-card__shine { position: absolute; inset: -2px; pointer-events: none; opacity: 0; background: linear-gradient(115deg, transparent 0 38%, rgba(255,255,255,.34) 50%, transparent 62% 100%); transform: translateX(-130%); }
.map-card.has-image .map-card__shine { animation: mapShine 5.6s ease-in-out infinite; }
@keyframes mapShine {
  0% { transform: translateX(-130%); opacity: 0; }
  6% { opacity: .95; }
  20% { transform: translateX(130%); opacity: 0; }
  100% { transform: translateX(130%); opacity: 0; }
}
.bio-mini { align-self: center; font-size: clamp(28px, 7vw, 54px); line-height: 1; color: var(--green); text-shadow: 0 0 14px rgba(184,239,75,.45); animation: bioPulse 3.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .map-card.has-image .map-card__shine { animation: none; opacity: 0; }
  .bio-mini { animation: none; }
}
.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); }
.bio-mini {
  color: #ff4349;
  text-shadow: -6px 0 18px rgba(255, 42, 48, .5), 6px 0 18px rgba(34, 128, 255, .3);
}
.map-card { border-color: rgba(43, 143, 255, .3); background: rgba(7, 10, 16, .55); }
.map-card.has-image { border-color: rgba(255, 58, 64, .38); box-shadow: 0 12px 30px rgba(0,0,0,.4), 0 0 22px rgba(42, 143, 255, .12); }
.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;
  }
}

/* ========================================================================== */
/* KONTRA SITE v22 — COMPACT HOME HEADER                                      */
/* ========================================================================== */
.mode-mark--header {
  flex: 0 0 auto;
  margin: 0 auto;
  display: grid;
  gap: 3px;
  width: fit-content;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  pointer-events: none;
}

.mode-mark--header .mode-mark__row {
  gap: 3px;
  margin: 0;
}

.mode-mark--header .mode-mark__row b {
  width: 23px;
  height: 23px;
  aspect-ratio: auto;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1;
  background: rgba(2, 6, 13, .9);
}

.mode-mark--header .mode-mark__row--lvl b {
  border-color: rgba(76, 168, 255, .72);
  box-shadow: 0 0 11px rgba(76,168,255,.44) inset, 0 0 11px rgba(76,168,255,.18);
}

.mode-mark--header .mode-mark__row--zombie b {
  border-color: rgba(255, 66, 71, .72);
  box-shadow: 0 0 11px rgba(255,66,71,.42) inset, 0 0 11px rgba(255,66,71,.18);
}

/* The big title was moved into the header, so the hero/server stack can rise. */
.home-visual {
  margin-bottom: -18px;
}

@media (max-width: 720px) {
  .topbar {
    min-height: 110px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "brand actions"
      "mode mode";
    align-items: center;
    row-gap: 4px;
    padding-top: max(10px, env(safe-area-inset-top));
    padding-bottom: 7px;
  }

  .brand { grid-area: brand; }
  .topbar-actions { grid-area: actions; justify-self: end; }
  .mode-mark--header { grid-area: mode; justify-self: center; margin-top: -2px; }

  .mode-mark--header .mode-mark__row { gap: 2px; }
  .mode-mark--header .mode-mark__row b {
    width: 19px;
    height: 19px;
    border-radius: 5px;
    font-size: 10px;
  }

  main { padding-top: 2px; }

  .home-visual {
    height: 210px;
    margin-top: -6px;
    margin-bottom: -9px;
  }

  .home-visual > img {
    width: 104%;
    object-position: 50% 22%;
  }

  .server-card__status {
    height: 64px;
    padding-inline: 20px;
  }

  .server-card__main {
    padding: 14px 18px 21px;
    gap: 12px;
  }

  .server-meter__value > strong { font-size: clamp(62px, 18vw, 86px); }
  .server-meter__value span { font-size: clamp(24px, 7vw, 38px); }
  .server-meter > p { margin: 8px 0 13px; }
}

@media (max-width: 430px) {
  .topbar { min-height: 104px; }
  .home-visual { height: 188px; margin-bottom: -6px; }
  .mode-mark--header .mode-mark__row b { width: 18px; height: 18px; font-size: 9px; }
  .server-card__status { height: 60px; }
}

@media (max-width: 370px) {
  .mode-mark--header .mode-mark__row b { width: 16px; height: 16px; font-size: 8px; }
  .home-visual { height: 176px; }
}

/* ========================================================================== */
/* KONTRA SITE v24 — TITLE ON HERO + CLEAN STATUS GAP                         */
/* ========================================================================== */
/* LVL MOD / SURVIVAL now lives inside the hero image rather than consuming a
   second header row. The server status card starts after the hero; no overlap. */
.mode-mark--hero {
  position: absolute;
  z-index: 6;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: fit-content;
  margin: 0;
  display: grid;
  gap: 3px;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  pointer-events: none;
  filter: drop-shadow(0 5px 18px rgba(0,0,0,.7));
}

.mode-mark--hero .mode-mark__row {
  gap: 3px;
  margin: 0;
}

.mode-mark--hero .mode-mark__row b {
  width: 23px;
  height: 23px;
  aspect-ratio: auto;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1;
  background: rgba(2, 6, 13, .82);
  backdrop-filter: blur(5px);
}

.mode-mark--hero .mode-mark__row--lvl b {
  border-color: rgba(76, 168, 255, .78);
  box-shadow: 0 0 11px rgba(76,168,255,.46) inset, 0 0 12px rgba(76,168,255,.24);
}

.mode-mark--hero .mode-mark__row--zombie b {
  border-color: rgba(255, 66, 71, .78);
  box-shadow: 0 0 11px rgba(255,66,71,.44) inset, 0 0 12px rgba(255,66,71,.23);
}

/* v23 used a negative bottom margin to pull the status card over the art.
   v24 deliberately removes that collision. */
.home-visual {
  margin-bottom: 8px;
}

@media (max-width: 720px) {
  .topbar {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: max(9px, env(safe-area-inset-top));
    padding-bottom: 9px;
  }

  .brand { flex: 0 0 auto; }
  .topbar-actions { flex: 0 0 auto; margin-left: auto; }

  main { padding-top: 0; }

  .home-visual {
    height: 224px;
    margin-top: 0;
    margin-bottom: 8px;
  }

  .home-visual > img {
    width: 104%;
    object-position: 50% 25%;
  }

  .mode-mark--hero {
    top: 8px;
  }

  .mode-mark--hero .mode-mark__row { gap: 2px; }
  .mode-mark--hero .mode-mark__row b {
    width: 19px;
    height: 19px;
    border-radius: 5px;
    font-size: 10px;
  }

  .server-card__status {
    height: 58px;
    padding-inline: 20px;
  }

  .server-card__main {
    padding-top: 12px;
  }
}

@media (max-width: 430px) {
  .topbar { min-height: 74px; }
  .home-visual { height: 214px; margin-bottom: 7px; }
  .mode-mark--hero { top: 7px; }
  .mode-mark--hero .mode-mark__row b { width: 18px; height: 18px; font-size: 9px; }
  .server-card__status { height: 56px; }
}

@media (max-width: 370px) {
  .home-visual { height: 204px; }
  .mode-mark--hero .mode-mark__row b { width: 16px; height: 16px; font-size: 8px; }
}


/* ========================================================================== */
/* KONTRA SITE v25 — LVL HUB UI PREVIEW                                       */
/* ========================================================================== */
.control-grid .lvl-hub-tile {
  min-height: 174px;
  display: grid;
  grid-template-columns: 1fr 132px;
  grid-template-rows: 1fr;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  border-color: rgba(61, 146, 255, .24);
  background:
    radial-gradient(circle at 78% 45%, rgba(43, 129, 255, .13), transparent 32%),
    radial-gradient(circle at 90% 85%, rgba(255, 54, 64, .12), transparent 34%),
    linear-gradient(145deg, rgba(8, 16, 26, .98), rgba(4, 10, 16, .99));
}
.control-grid .lvl-hub-tile::after { right: 14px; z-index: 5; color: rgba(130, 202, 255, .82); }
.control-grid .lvl-hub-tile > .lvl-hub-tile__signal,
.control-grid .lvl-hub-tile > .lvl-hub-tile__copy,
.control-grid .lvl-hub-tile > .lvl-hub-tile__skin { margin-bottom: 0; color: inherit; font-size: inherit; }
.lvl-hub-tile__signal { position: absolute; left: 22px; top: 25px; z-index: 4; color: #39a8ff !important; font-size: 34px !important; text-shadow: 0 0 20px rgba(57,168,255,.55); }
.lvl-hub-tile__copy { position: relative; z-index: 4; display: grid; align-content: end; gap: 7px; min-width: 0; padding: 72px 10px 22px 22px; }
.lvl-hub-tile__copy strong { font-size: 20px; letter-spacing: .035em; }
.lvl-hub-tile__copy small { color: #7f8ba0; line-height: 1.35; }
.lvl-hub-tile__copy em { margin-top: 4px; color: #a4b0c0; font: 800 8px/1.3 ui-monospace, monospace; letter-spacing: .08em; font-style: normal; }
.lvl-hub-tile__copy em b { color: #56b8ff; }
.lvl-hub-tile__skin { position: relative; z-index: 3; display: grid; place-items: end center; overflow: hidden; min-width: 0; }
.lvl-hub-tile__skin::before { content:""; position:absolute; inset: 18px 7px 10px; border:1px solid rgba(67,156,255,.18); border-radius: 24px 24px 12px 12px; background:linear-gradient(180deg,rgba(26,76,124,.14),rgba(12,19,28,.42)); box-shadow:inset 0 0 28px rgba(46,145,255,.08); }
.lvl-hub-tile__skin img { position: relative; z-index: 2; width: 116px; height: 150px; object-fit: cover; object-position: center; border-radius: 44% 44% 18px 18px; filter: saturate(.82) contrast(1.08) drop-shadow(0 8px 19px rgba(0,0,0,.55)); transform-origin: 50% 92%; animation: lvlSkinIdle 3.6s ease-in-out infinite; }
.lvl-hub-tile__skin i { position:absolute; z-index:1; inset:auto 15px 8px; height:26px; border-radius:50%; background:radial-gradient(ellipse,rgba(51,151,255,.28),rgba(255,61,72,.08) 42%,transparent 72%); filter:blur(4px); }

.lvl-hub-view { padding-bottom: 14px; }
.lvl-hub-pagehead { display:grid; grid-template-columns: 44px 1fr auto; align-items:center; gap:12px; margin: 6px 0 16px; }
.lvl-hub-back { width:44px; height:44px; border:1px solid rgba(90,160,238,.25); border-radius:14px; background:linear-gradient(145deg,rgba(9,17,28,.96),rgba(4,8,14,.98)); color:#dcecff; font-size:29px; cursor:pointer; }
.lvl-hub-pagehead > div { min-width:0; }
.lvl-hub-pagehead small { display:block; color:#ff535a; font:800 8px/1 ui-monospace,monospace; letter-spacing:.18em; }
.lvl-hub-pagehead h1 { margin:5px 0 0; font-size:clamp(27px,8vw,43px); letter-spacing:.035em; }
.lvl-hub-preview-badge { justify-self:end; padding:7px 9px; border:1px solid rgba(77,175,255,.32); border-radius:999px; color:#67c1ff; background:rgba(19,74,122,.13); font:800 7px/1 ui-monospace,monospace; letter-spacing:.1em; white-space:nowrap; }

.lvl-hub-hero { position:relative; overflow:hidden; display:grid; grid-template-columns:minmax(0,1fr) minmax(245px,.95fr); gap:12px; padding:16px; background:linear-gradient(135deg,rgba(8,18,31,.97),rgba(4,9,16,.99)); }
.lvl-hub-hero::before { content:""; position:absolute; inset:0; background:radial-gradient(circle at 12% 12%,rgba(255,54,64,.12),transparent 29%),radial-gradient(circle at 84% 20%,rgba(45,146,255,.15),transparent 34%); pointer-events:none; }
.lvl-hub-identity { position:relative; z-index:1; display:flex; gap:13px; align-items:center; padding:8px; min-width:0; }
.lvl-hub-identity > img { width:68px; height:68px; object-fit:cover; border-radius:20px; border:1px solid rgba(255,71,81,.42); box-shadow:-6px 0 21px rgba(255,48,61,.12),6px 0 22px rgba(42,139,255,.13); }
.lvl-hub-identity > div { min-width:0; display:grid; gap:5px; }
.lvl-hub-identity small { color:#7d899d; font:800 8px/1 ui-monospace,monospace; letter-spacing:.14em; }
.lvl-hub-identity strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:22px; }
.lvl-hub-identity__meta { display:flex; flex-wrap:wrap; gap:7px; }
.lvl-hub-identity__meta span { padding:5px 8px; border:1px solid rgba(72,145,239,.2); border-radius:9px; color:#91a1b5; font:800 8px/1 ui-monospace,monospace; }
.lvl-hub-identity__meta i { font-style:normal; }
.lvl-hub-equipped { position:relative; z-index:1; min-height:125px; display:grid; grid-template-columns:1fr 108px; overflow:hidden; border:1px solid rgba(80,156,243,.19); border-radius:20px; background:linear-gradient(145deg,rgba(13,31,50,.72),rgba(5,11,18,.82)); }
.lvl-hub-equipped__copy { display:grid; align-content:center; gap:5px; padding:14px 4px 14px 16px; min-width:0; }
.lvl-hub-equipped__copy small { color:#5cbcff; font:800 7px/1 ui-monospace,monospace; letter-spacing:.13em; }
.lvl-hub-equipped__copy strong { font-size:19px; }
.lvl-hub-equipped__copy span { max-width:190px; color:#6f7c8f; font-size:9px; line-height:1.4; }
.lvl-hub-equipped__figure { position:relative; display:grid; place-items:end center; overflow:hidden; }
.lvl-hub-equipped__figure::after { content:""; position:absolute; inset:auto 9px 5px; height:32px; border-radius:50%; background:radial-gradient(ellipse,rgba(45,146,255,.24),rgba(255,51,65,.1) 42%,transparent 72%); filter:blur(5px); }
.lvl-hub-equipped__figure img { position:relative; z-index:1; width:101px; height:122px; object-fit:cover; border-radius:46% 46% 17px 17px; filter:saturate(.82) contrast(1.09); transform-origin:50% 92%; animation:lvlSkinIdle 3.6s ease-in-out infinite; }

.lvl-hub-tabs { display:flex; gap:7px; overflow-x:auto; scrollbar-width:none; margin:13px 0; padding:2px 1px 6px; scroll-snap-type:x proximity; }
.lvl-hub-tabs::-webkit-scrollbar { display:none; }
.lvl-hub-tabs button { flex:0 0 auto; min-width:88px; min-height:57px; padding:9px 10px; display:grid; place-items:center; gap:5px; scroll-snap-align:start; border:1px solid rgba(93,135,185,.15); border-radius:15px; background:rgba(6,12,20,.88); color:#647187; cursor:pointer; }
.lvl-hub-tabs button span { font-size:16px; line-height:1; }
.lvl-hub-tabs button b { font:800 7px/1 ui-monospace,monospace; letter-spacing:.06em; }
.lvl-hub-tabs button.is-active { color:#fff; border-color:rgba(75,159,255,.48); background:linear-gradient(145deg,rgba(11,38,67,.82),rgba(6,14,24,.96)); box-shadow:-4px 0 17px rgba(255,50,63,.08),4px 0 18px rgba(43,143,255,.15),inset 0 0 18px rgba(54,153,255,.06); }

.lvl-hub-panel { display:none; animation:viewIn .25s ease both; }
.lvl-hub-panel.is-active { display:block; }
.lvl-hub-overview-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.lvl-hub-feature { position:relative; min-height:126px; display:grid; grid-template-columns:42px 1fr 20px; align-items:center; gap:10px; padding:16px; overflow:hidden; border:1px solid rgba(85,132,185,.16); border-radius:20px; text-align:left; color:var(--text); background:linear-gradient(145deg,rgba(9,17,27,.96),rgba(4,9,15,.98)); cursor:pointer; }
.lvl-hub-feature > span { width:40px; height:40px; display:grid; place-items:center; border:1px solid rgba(74,157,255,.28); border-radius:13px; color:#4bb0ff; font-size:20px; }
.lvl-hub-feature > div { display:grid; gap:5px; min-width:0; }
.lvl-hub-feature small { color:#78879a; font:800 7px/1 ui-monospace,monospace; letter-spacing:.12em; }
.lvl-hub-feature strong { font-size:15px; }
.lvl-hub-feature p { margin:0; color:#6d7889; font-size:9px; line-height:1.45; }
.lvl-hub-feature > b { color:#4caeff; font-size:22px; }
.lvl-hub-feature--skin { border-color:rgba(50,144,255,.26); background:radial-gradient(circle at 95% 15%,rgba(50,144,255,.11),transparent 32%),linear-gradient(145deg,rgba(8,19,31,.97),rgba(4,9,15,.99)); }
.lvl-hub-feature--pass { border-color:rgba(255,204,77,.17); }
.lvl-hub-feature--pass > span,.lvl-hub-feature--pass > b { color:#ffd15b; border-color:rgba(255,209,91,.25); }

.lvl-hub-panelhead { display:flex; align-items:end; justify-content:space-between; gap:14px; margin:6px 0 4px; }
.lvl-hub-panelhead small { color:#ff555d; font:800 8px/1 ui-monospace,monospace; letter-spacing:.16em; }
.lvl-hub-panelhead h2 { margin:6px 0 0; font-size:24px; }
.lvl-hub-panelhead > span { padding:8px 10px; border:1px solid rgba(75,157,255,.2); border-radius:11px; color:#788da8; font:800 8px/1 ui-monospace,monospace; white-space:nowrap; }
.lvl-hub-panelhead > span b { color:#55b9ff; }
.lvl-hub-panelhead > span i { font-style:normal; }
.lvl-hub-panelnote { margin:9px 0 14px; color:#667386; font-size:9px; line-height:1.55; }
.skin-gallery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.skin-card { position:relative; min-width:0; padding:0; overflow:hidden; border:1px solid rgba(88,133,181,.16); border-radius:20px; text-align:left; color:var(--text); background:linear-gradient(155deg,rgba(8,15,25,.98),rgba(3,7,12,.99)); cursor:pointer; }
.skin-card.is-active { border-color:rgba(255,70,80,.55); box-shadow:-4px 0 19px rgba(255,52,65,.13),4px 0 20px rgba(42,143,255,.13),inset 0 0 22px rgba(255,62,72,.035); }
.skin-card__visual { position:relative; height:132px; display:grid; place-items:end center; overflow:hidden; background:radial-gradient(circle at 50% 80%,rgba(49,141,255,.17),transparent 43%),linear-gradient(180deg,rgba(13,28,44,.88),rgba(4,8,13,.98)); }
.skin-card__visual::after { content:""; position:absolute; inset:auto 18% 7px; height:25px; border-radius:50%; background:radial-gradient(ellipse,rgba(52,151,255,.25),rgba(255,55,68,.08),transparent 70%); filter:blur(4px); }
.skin-card__visual img { position:relative; z-index:1; width:112px; height:125px; object-fit:cover; border-radius:48% 48% 18px 18px; filter:saturate(.75) contrast(1.09); transform-origin:50% 92%; }
.skin-card:hover .skin-card__visual img,.skin-card:focus-visible .skin-card__visual img { animation:lvlSkinGesture .8s ease both; }
.skin-card__visual i { position:absolute; left:10px; top:9px; z-index:3; width:27px; height:27px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.08); border-radius:9px; color:#5d6b80; background:rgba(2,5,9,.68); font:800 8px/1 ui-monospace,monospace; font-style:normal; }
.skin-card__copy { display:grid; gap:5px; padding:12px 12px 9px; }
.skin-card__copy small { color:#6daedb; font:800 7px/1 ui-monospace,monospace; letter-spacing:.11em; }
.skin-card.is-active .skin-card__copy small { color:#ff5d64; }
.skin-card__copy strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; }
.skin-card__copy em { color:#667386; font:700 7px/1.35 ui-monospace,monospace; font-style:normal; }
.skin-card > b { display:block; margin:0 12px 12px; padding:8px 9px; border:1px solid rgba(73,154,245,.17); border-radius:10px; color:#67bfff; background:rgba(35,114,185,.06); text-align:center; font:800 7px/1 ui-monospace,monospace; letter-spacing:.09em; }
.skin-card.is-active > b { border-color:rgba(255,74,84,.25); color:#ff646b; background:rgba(255,59,72,.055); }

.lvl-hub-coming { min-height:300px; display:grid; place-items:center; align-content:center; gap:8px; padding:28px; text-align:center; border:1px solid rgba(88,132,180,.15); border-radius:22px; background:radial-gradient(circle at 50% 0,rgba(40,131,222,.09),transparent 37%),linear-gradient(145deg,rgba(8,15,24,.96),rgba(4,8,13,.98)); }
.lvl-hub-coming > span { width:58px; height:58px; display:grid; place-items:center; border:1px solid rgba(71,154,246,.25); border-radius:18px; color:#58b7ff; font-size:27px; }
.lvl-hub-coming small { margin-top:5px; color:#ff555d; font:800 8px/1 ui-monospace,monospace; letter-spacing:.15em; }
.lvl-hub-coming h2 { margin:1px 0 0; font-size:23px; }
.lvl-hub-coming p { max-width:420px; margin:0; color:#6c7889; font-size:10px; line-height:1.6; }
.lvl-hub-coming--settings .primary-button { margin-top:9px; width:min(100%,320px); }

@keyframes lvlSkinIdle {
  0%,100% { transform:translateY(0) rotate(-.4deg) scale(1); }
  45% { transform:translateY(-3px) rotate(.55deg) scale(1.012); }
  68% { transform:translateY(-1px) rotate(.15deg) scale(1.006); }
}
@keyframes lvlSkinGesture {
  0% { transform:translateY(0) rotate(0); }
  38% { transform:translateY(-4px) rotate(-1.6deg) scale(1.025); }
  70% { transform:translateY(-1px) rotate(1deg) scale(1.012); }
  100% { transform:translateY(0) rotate(0); }
}

body.theme-day .control-grid .lvl-hub-tile,
body.theme-day .lvl-hub-feature,
body.theme-day .skin-card,
body.theme-day .lvl-hub-coming,
body.theme-day .lvl-hub-hero { background-color:#f7faf6; color:#152333; }

@media (max-width: 700px) {
  .lvl-hub-hero { grid-template-columns:1fr; }
  .lvl-hub-equipped { min-height:112px; }
}
@media (max-width: 520px) {
  .control-grid .lvl-hub-tile { grid-template-columns:1fr 126px; min-height:166px; }
  .lvl-hub-tile__copy { padding-left:19px; }
  .lvl-hub-pagehead { grid-template-columns:42px 1fr auto; }
  .lvl-hub-preview-badge { font-size:6px; padding:6px 7px; }
  .lvl-hub-overview-grid { grid-template-columns:1fr; }
  .lvl-hub-feature { min-height:105px; }
  .skin-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 355px) {
  .skin-gallery { grid-template-columns:1fr; }
  .lvl-hub-pagehead { grid-template-columns:40px 1fr; }
  .lvl-hub-preview-badge { display:none; }
}
@media (prefers-reduced-motion: reduce) {
  .lvl-hub-tile__skin img,
  .lvl-hub-equipped__figure img,
  .skin-card__visual img { animation:none !important; }
}

/* v27 — LVL HUB read-only bootstrap */
.lvl-hub-refresh { appearance:none; cursor:pointer; transition:border-color .18s ease,color .18s ease,background .18s ease,opacity .18s ease; }
.lvl-hub-refresh:hover:not(:disabled) { border-color:rgba(86,187,255,.58); background:rgba(28,112,185,.18); }
.lvl-hub-refresh:disabled { cursor:wait; opacity:.72; }
.lvl-hub-refresh.is-loading { color:#ffd86c; border-color:rgba(255,211,91,.34); }
.lvl-hub-refresh.is-ready { color:#65e89d; border-color:rgba(72,230,143,.34); background:rgba(42,151,96,.08); }
.lvl-hub-refresh.is-error { color:#ff6f78; border-color:rgba(255,76,88,.4); background:rgba(174,36,47,.08); }

.lvl-hub-data { display:grid; gap:12px; min-width:0; padding:2px 0 7px; }
.lvl-data-head { display:flex; align-items:end; justify-content:space-between; gap:14px; padding:4px 2px 2px; }
.lvl-data-head > div { display:grid; gap:6px; min-width:0; }
.lvl-data-head small { color:#ff555d; font:800 8px/1 ui-monospace,monospace; letter-spacing:.14em; }
.lvl-data-head strong { font-size:24px; letter-spacing:.02em; }
.lvl-data-head > span { flex:0 0 auto; max-width:48%; padding:7px 9px; border:1px solid rgba(76,158,247,.2); border-radius:10px; color:#7e91a9; background:rgba(15,40,68,.12); font:800 7px/1.2 ui-monospace,monospace; text-align:right; }
.lvl-data-hint { margin:0; padding:12px 14px; border:1px solid rgba(75,151,237,.13); border-radius:14px; color:#758398; background:rgba(7,14,23,.7); font-size:9px; line-height:1.55; }
.lvl-data-empty { min-height:130px; display:grid; place-items:center; align-content:center; gap:7px; padding:22px; border:1px dashed rgba(85,143,209,.18); border-radius:18px; text-align:center; background:radial-gradient(circle at 50% 0,rgba(45,139,230,.08),transparent 46%),rgba(4,9,15,.66); }
.lvl-data-empty strong { color:#dce8f7; font-size:14px; letter-spacing:.04em; }
.lvl-data-empty p { max-width:420px; margin:0; color:#69778a; font-size:9px; line-height:1.55; }

.lvl-data-group { display:grid; gap:9px; padding:14px; border:1px solid rgba(85,133,188,.14); border-radius:18px; background:linear-gradient(145deg,rgba(8,16,26,.95),rgba(4,9,15,.98)); }
.lvl-data-group h3 { margin:0; color:#8999ae; font:800 8px/1 ui-monospace,monospace; letter-spacing:.1em; }
.lvl-data-group--boosts { border-color:rgba(255,205,78,.19); background:radial-gradient(circle at 92% 0,rgba(255,196,67,.07),transparent 34%),linear-gradient(145deg,rgba(10,17,25,.96),rgba(4,9,15,.98)); }
.lvl-data-chips { display:flex; flex-wrap:wrap; gap:7px; }
.lvl-data-chip { min-width:0; display:inline-flex; align-items:center; gap:6px; padding:8px 10px; border:1px solid rgba(74,155,244,.2); border-radius:11px; color:#d8e6f6; background:rgba(15,47,78,.16); }
.lvl-data-chip b { max-width:210px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font:800 8px/1 ui-monospace,monospace; }
.lvl-data-chip i { color:#65758a; font:700 7px/1 ui-monospace,monospace; font-style:normal; }

.skin-card.is-previewing { border-color:rgba(64,168,255,.58); box-shadow:0 0 0 1px rgba(57,159,255,.09),4px 0 20px rgba(42,143,255,.12); }
.skin-card.is-previewing .skin-card__copy small { color:#59baff; }

.lvl-store-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.lvl-store-item { min-width:0; display:grid; grid-template-columns:72px 1fr; align-items:center; gap:10px; overflow:hidden; min-height:88px; padding:8px 10px 8px 6px; border:1px solid rgba(83,130,183,.15); border-radius:17px; background:linear-gradient(145deg,rgba(8,16,26,.96),rgba(4,9,15,.99)); }
.lvl-store-item.is-owned { border-color:rgba(57,157,255,.3); background:radial-gradient(circle at 10% 50%,rgba(48,145,255,.1),transparent 34%),linear-gradient(145deg,rgba(8,18,30,.97),rgba(4,9,15,.99)); }
.lvl-store-item img { width:66px; height:72px; object-fit:cover; border-radius:14px; filter:saturate(.78) contrast(1.08); }
.lvl-store-item > div { min-width:0; display:grid; gap:5px; }
.lvl-store-item small { color:#73849a; font:800 7px/1 ui-monospace,monospace; letter-spacing:.08em; }
.lvl-store-item.is-owned small { color:#55b8ff; }
.lvl-store-item strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; }
.lvl-store-item span { color:#69778b; font:700 7px/1.25 ui-monospace,monospace; }

.lvl-social-stats { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:7px; }
.lvl-social-stats > div { min-width:0; display:grid; gap:5px; padding:11px 7px; border:1px solid rgba(73,146,231,.15); border-radius:14px; text-align:center; background:rgba(6,14,23,.82); }
.lvl-social-stats b { color:#dcecff; font-size:18px; }
.lvl-social-stats span { overflow:hidden; text-overflow:ellipsis; color:#69798d; font:700 6px/1.25 ui-monospace,monospace; letter-spacing:.05em; }
.lvl-message-list { display:grid; gap:7px; }
.lvl-message { display:grid; gap:6px; padding:11px 12px; border:1px solid rgba(82,132,189,.14); border-radius:13px; background:rgba(4,10,17,.75); }
.lvl-message.is-unread { border-color:rgba(255,77,88,.31); background:linear-gradient(90deg,rgba(255,55,69,.055),rgba(7,14,22,.8)); }
.lvl-message > div { display:flex; justify-content:space-between; gap:10px; }
.lvl-message strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#d9e7f7; font-size:10px; }
.lvl-message span { flex:0 0 auto; color:#617087; font:700 7px/1 ui-monospace,monospace; }
.lvl-message p { margin:0; color:#7e8b9e; font-size:9px; line-height:1.45; overflow-wrap:anywhere; }

.lvl-bp-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.lvl-bp-summary > div { min-height:90px; display:grid; align-content:center; gap:7px; padding:14px; border:1px solid rgba(255,205,76,.17); border-radius:17px; background:radial-gradient(circle at 100% 0,rgba(255,196,56,.08),transparent 42%),linear-gradient(145deg,rgba(12,17,23,.95),rgba(5,9,14,.99)); }
.lvl-bp-summary small { color:#c9a848; font:800 7px/1 ui-monospace,monospace; letter-spacing:.1em; }
.lvl-bp-summary strong { color:#f2f4f7; font-size:13px; line-height:1.4; }
.lvl-bp-tasks { display:grid; gap:8px; }
.lvl-bp-task { display:grid; gap:8px; padding:12px; border:1px solid rgba(91,135,184,.15); border-radius:14px; background:rgba(5,11,18,.79); }
.lvl-bp-task.is-claimed { opacity:.7; border-color:rgba(78,205,135,.18); }
.lvl-bp-task > div:first-child { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.lvl-bp-task strong { min-width:0; color:#dbe7f5; font-size:10px; line-height:1.35; }
.lvl-bp-task > div:first-child span { flex:0 0 auto; color:#ffd15b; font:800 7px/1.3 ui-monospace,monospace; text-align:right; }
.lvl-bp-task.is-claimed > div:first-child span { color:#63d99a; }
.lvl-bp-meter { overflow:hidden; height:5px; border-radius:999px; background:rgba(103,122,147,.16); }
.lvl-bp-meter i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#ff4d58,#43a6ff); box-shadow:0 0 11px rgba(63,156,255,.27); }
.lvl-bp-task > small { color:#66758a; font:700 7px/1 ui-monospace,monospace; }

.lvl-settings-list { display:grid; gap:7px; }
.lvl-settings-list article { min-width:0; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:10px; padding:11px 12px; border:1px solid rgba(83,133,190,.14); border-radius:13px; background:linear-gradient(145deg,rgba(7,15,24,.92),rgba(4,9,15,.97)); }
.lvl-settings-list article > div { min-width:0; display:grid; gap:4px; }
.lvl-settings-list small { color:#68788d; font:800 7px/1 ui-monospace,monospace; letter-spacing:.07em; }
.lvl-settings-list strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#dce9f8; font-size:11px; }
.lvl-settings-list article > span { max-width:175px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#5e7187; font:800 7px/1.3 ui-monospace,monospace; }
.lvl-settings-list article > span.is-pending { color:#ffd05c; }
.lvl-sync-box { display:flex; flex-wrap:wrap; gap:7px; }
.lvl-hub-settings-action { margin-top:12px; display:flex; justify-content:center; }
.lvl-hub-settings-action .primary-button { width:min(100%,360px); }

body.theme-day .lvl-data-group,
body.theme-day .lvl-store-item,
body.theme-day .lvl-message,
body.theme-day .lvl-bp-summary > div,
body.theme-day .lvl-bp-task,
body.theme-day .lvl-settings-list article,
body.theme-day .lvl-data-hint,
body.theme-day .lvl-data-empty,
body.theme-day .lvl-social-stats > div { background-color:#f7faf6; color:#152333; }
body.theme-day .lvl-data-head strong,
body.theme-day .lvl-data-empty strong,
body.theme-day .lvl-data-chip,
body.theme-day .lvl-store-item strong,
body.theme-day .lvl-social-stats b,
body.theme-day .lvl-message strong,
body.theme-day .lvl-bp-summary strong,
body.theme-day .lvl-bp-task strong,
body.theme-day .lvl-settings-list strong { color:#152333; }
body.theme-day .lvl-data-chip { background:rgba(255,255,255,.7); }

@media (max-width:520px) {
  .lvl-data-head strong { font-size:21px; }
  .lvl-store-grid { grid-template-columns:1fr; }
  .lvl-social-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .lvl-bp-summary { grid-template-columns:1fr; }
  .lvl-settings-list article { grid-template-columns:1fr; }
  .lvl-settings-list article > span { max-width:100%; }
}

/* v28 — individual skin artwork + lightweight looping motion (CSS only) */
.lvl-skin-art { will-change: transform, filter; backface-visibility:hidden; }
[data-skin-id="sas"] { animation:lvlSkinSas 4.2s ease-in-out infinite !important; }
[data-skin-id="gsg9"] { animation:lvlSkinGsg9 4.7s ease-in-out infinite !important; }
[data-skin-id="gsg9_admin"] { animation:lvlSkinAdmin 4.3s ease-in-out infinite !important; }
[data-skin-id="gign"] { animation:lvlSkinGign 3.9s ease-in-out infinite !important; }
[data-skin-id="sas_custom"] { animation:lvlSkinCustom 4.5s ease-in-out infinite !important; }
[data-skin-id="elite_arctic"] { animation:lvlSkinArctic 5.0s ease-in-out infinite !important; }
[data-skin-id="leet"] { animation:lvlSkinLeet 4.4s ease-in-out infinite !important; }
[data-skin-id="leet_pirate"] { animation:lvlSkinPirate 4.8s ease-in-out infinite !important; }
[data-skin-id="professional"] { animation:lvlSkinPro 4.1s ease-in-out infinite !important; }
[data-skin-id="survivor"] { animation:lvlSkinSurvivor 3.25s ease-in-out infinite !important; }

@keyframes lvlSkinSas { 0%,100%{transform:translateY(0) rotate(-.25deg) scale(1)} 48%{transform:translateY(-3px) rotate(.35deg) scale(1.012)} 72%{transform:translateY(-1px) scale(1.006)} }
@keyframes lvlSkinGsg9 { 0%,100%{transform:translate(0,0) rotate(0)} 42%{transform:translate(1px,-3px) rotate(.65deg) scale(1.01)} 72%{transform:translate(-1px,-1px) rotate(-.25deg)} }
@keyframes lvlSkinAdmin { 0%,100%{transform:translateY(0) scale(1);filter:saturate(.84) contrast(1.08)} 50%{transform:translateY(-2px) scale(1.014);filter:saturate(.96) contrast(1.1) brightness(1.04)} }
@keyframes lvlSkinGign { 0%,100%{transform:translateX(0) translateY(0) rotate(-.2deg)} 38%{transform:translateX(-1px) translateY(-3px) rotate(-.75deg) scale(1.012)} 68%{transform:translateX(1px) translateY(-1px) rotate(.55deg)} }
@keyframes lvlSkinCustom { 0%,100%{transform:translateY(0) scale(1)} 35%{transform:translateY(-2px) scale(1.008)} 58%{transform:translateY(-4px) scale(1.016)} 76%{transform:translateY(-1px) scale(1.006)} }
@keyframes lvlSkinArctic { 0%,100%{transform:translateY(0) rotate(0)} 45%{transform:translateY(-2px) rotate(.3deg) scale(1.009)} 65%{transform:translateY(-2px) rotate(-.3deg) scale(1.01)} }
@keyframes lvlSkinLeet { 0%,100%{transform:translate(0,0) rotate(-.25deg)} 48%{transform:translate(1px,-3px) rotate(.8deg) scale(1.012)} 70%{transform:translate(-1px,-1px) rotate(.15deg)} }
@keyframes lvlSkinPirate { 0%,100%{transform:translateY(0) rotate(.2deg)} 40%{transform:translateY(-3px) rotate(-.55deg) scale(1.011)} 67%{transform:translateY(-1px) rotate(.5deg)} }
@keyframes lvlSkinPro { 0%,100%{transform:translateY(0) scale(1)} 44%{transform:translateY(-3px) scale(1.014) rotate(.35deg)} 62%{transform:translateY(-2px) scale(1.01) rotate(-.2deg)} }
@keyframes lvlSkinSurvivor { 0%,100%{transform:translateY(0) scale(1);filter:saturate(.9) contrast(1.1) brightness(1)} 48%{transform:translateY(-4px) scale(1.018);filter:saturate(1.18) contrast(1.13) brightness(1.09) drop-shadow(0 0 8px rgba(42,157,255,.42))} 72%{transform:translateY(-1px) scale(1.008);filter:saturate(1.03) contrast(1.1) brightness(1.03)} }

@media (prefers-reduced-motion: reduce) {
  [data-skin-id] { animation:none !important; }
}


/* v29 — working owned-skin selection states */
.skin-card.is-pending {
  border-color: rgba(255, 196, 70, .48);
  box-shadow: 0 0 0 1px rgba(255, 196, 70, .07), 0 0 18px rgba(255, 190, 55, .08);
}
.skin-card.is-pending .skin-card__copy small,
.skin-card.is-pending > b { color: #ffc85c; }
.skin-card.is-applying {
  border-color: rgba(67, 174, 255, .66);
  box-shadow: 0 0 0 1px rgba(67, 174, 255, .08), 0 0 22px rgba(49, 151, 255, .13);
}
.skin-card.is-applying .skin-card__visual img { animation: lvlSkinGesture .8s ease-in-out infinite alternate; }
.skin-card:disabled { cursor: wait; }
.skin-card:disabled:not(.is-applying) { opacity: .72; }


/* v30 — functional skin shop */
.skin-card.is-buy-confirm {
  border-color: rgba(255,194,76,.62);
  box-shadow: 0 0 0 1px rgba(255,190,64,.08), 0 0 24px rgba(255,174,48,.08);
}
.skin-card.is-buy-confirm .skin-card__copy small,
.skin-card.is-buy-confirm > b { color:#ffd06a; }
.skin-card.is-buying {
  border-color:rgba(92,213,130,.55);
  box-shadow:0 0 0 1px rgba(76,211,125,.08),0 0 25px rgba(47,212,117,.09);
}
.skin-card.is-buying > b { color:#72e99b; border-color:rgba(80,220,135,.28); background:rgba(45,190,104,.06); }
.lvl-data-hint--safe-shop { border-color:rgba(71,190,126,.18); background:rgba(34,139,89,.045); }
.lvl-store-item { grid-template-columns:72px minmax(0,1fr) auto; }
.lvl-store-item.is-active { border-color:rgba(255,76,87,.34); }
.lvl-store-item.is-buy-confirm { border-color:rgba(255,194,76,.42); }
.lvl-store-buy {
  min-width:74px; min-height:34px; padding:8px 9px;
  border:1px solid rgba(75,158,246,.25); border-radius:11px;
  color:#68bfff; background:rgba(37,121,204,.07);
  font:800 7px/1.15 ui-monospace,monospace; letter-spacing:.06em;
  cursor:pointer;
}
.lvl-store-buy:hover,.lvl-store-buy:focus-visible { border-color:rgba(82,175,255,.5); background:rgba(45,137,226,.12); }
.lvl-store-buy.is-owned { color:#78c9ff; }
.lvl-store-buy.is-active { color:#ff6970; border-color:rgba(255,78,88,.28); background:rgba(255,61,72,.055); }
.lvl-store-buy:disabled { opacity:.62; cursor:default; }
body.theme-day .lvl-store-buy { color:#1b6da8; background:rgba(33,123,191,.06); }
@media (max-width:480px) {
  .lvl-store-item { grid-template-columns:66px minmax(0,1fr) auto; gap:8px; }
  .lvl-store-buy { min-width:66px; padding:8px 7px; }
}


/* ========================================================================== */
/* KONTRA SITE v31 — SOCIAL / MESSAGES / TOKEN TRANSFER                       */
/* ========================================================================== */
.lvl-social-compose {
  border-color: rgba(69, 156, 255, .22);
  background: radial-gradient(circle at 100% 0, rgba(48, 146, 255, .07), transparent 34%), rgba(4, 11, 18, .78);
}
.lvl-social-formrow, .lvl-social-tokenrow { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:center; }
.lvl-social-tokenrow { grid-template-columns:minmax(0,1fr) minmax(92px,130px) auto; }
.lvl-social-compose__grid { display:grid; gap:8px; }
.lvl-social-compose input, .lvl-social-compose select, .lvl-social-compose textarea {
  width:100%; min-width:0; border:1px solid rgba(82, 145, 218, .2); border-radius:12px; outline:none;
  color:#dcecff; background:rgba(2,8,14,.86); padding:11px 12px; font:700 10px/1.35 ui-monospace,monospace;
}
.lvl-social-compose textarea { resize:vertical; min-height:76px; }
.lvl-social-compose input:focus, .lvl-social-compose select:focus, .lvl-social-compose textarea:focus {
  border-color:rgba(69,166,255,.55); box-shadow:0 0 0 2px rgba(58,157,255,.08), 0 0 24px rgba(40,140,255,.08);
}
.lvl-social-note { margin:0 0 9px; color:#75859a; font:700 8px/1.55 ui-monospace,monospace; }
.lvl-social-people { display:grid; gap:7px; }
.lvl-social-person {
  display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:center; padding:10px 11px;
  border:1px solid rgba(77,134,197,.14); border-radius:14px; background:rgba(4,10,17,.72);
}
.lvl-social-person__identity { min-width:0; display:flex; gap:9px; align-items:center; }
.lvl-social-person__identity > div { min-width:0; display:grid; gap:4px; }
.lvl-social-person__identity strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#e7f2ff; font-size:11px; }
.lvl-social-person__identity small { color:#6c7c91; font:800 6px/1 ui-monospace,monospace; letter-spacing:.12em; }
.lvl-social-online { width:8px; height:8px; flex:0 0 auto; border-radius:50%; background:#465363; box-shadow:0 0 0 4px rgba(70,83,99,.08); }
.lvl-social-online.is-online { background:#38e883; box-shadow:0 0 12px rgba(56,232,131,.55),0 0 0 4px rgba(56,232,131,.08); }
.lvl-social-person__actions, .lvl-message__actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:5px; }
.lvl-social-btn {
  min-height:31px; padding:0 10px; border:1px solid rgba(61,153,255,.24); border-radius:10px; color:#70bcff;
  background:rgba(35,123,218,.07); font:900 7px/1 ui-monospace,monospace; letter-spacing:.06em; cursor:pointer;
}
.lvl-social-btn:hover { filter:brightness(1.16); }
.lvl-social-btn:disabled { opacity:.45; cursor:wait; }
.lvl-social-btn--ok { color:#64ef9a; border-color:rgba(65,229,136,.28); background:rgba(50,216,124,.06); }
.lvl-social-btn--gold { color:#ffd75c; border-color:rgba(255,200,62,.27); background:rgba(255,190,42,.055); }
.lvl-social-btn--danger { color:#ff6974; border-color:rgba(255,74,88,.28); background:rgba(255,50,67,.06); }
.lvl-social-btn--muted { color:#9aa9bb; border-color:rgba(145,164,186,.18); background:rgba(120,145,170,.05); }
.lvl-social-status { padding:9px 11px; border-radius:12px; font:800 8px/1.4 ui-monospace,monospace; }
.lvl-social-status.is-error { color:#ff7f87; border:1px solid rgba(255,72,84,.25); background:rgba(255,42,58,.055); }
.lvl-social-status.is-success { color:#76f5ad; border:1px solid rgba(67,235,145,.28); background:rgba(26,190,112,.08); box-shadow:0 0 20px rgba(26,190,112,.06) inset; }
.lvl-social-title-row { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.lvl-social-title-row h3 { margin:0; }
.lvl-message__actions { margin-top:2px; }
body.theme-day .lvl-social-compose input, body.theme-day .lvl-social-compose select, body.theme-day .lvl-social-compose textarea { color:#203044; background:rgba(255,255,255,.88); }
body.theme-day .lvl-social-person { background:rgba(255,255,255,.72); }
body.theme-day .lvl-social-person__identity strong { color:#1a293a; }
@media (max-width:560px) {
  .lvl-social-formrow, .lvl-social-tokenrow { grid-template-columns:1fr; }
  .lvl-social-person { grid-template-columns:1fr; }
  .lvl-social-person__actions { justify-content:flex-start; }
  .lvl-social-btn { min-height:34px; }
}

/* ========================================================================== */
/* KONTRA SITE v32 — PLAYER TRADING MARKET                                    */
/* ========================================================================== */
.lvl-market-safe {
  border-color:rgba(68,197,132,.22);
  background:linear-gradient(135deg,rgba(24,117,78,.07),rgba(21,79,130,.05));
}
.lvl-market-stats {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}
.lvl-market-stats > div {
  min-height:64px;
  display:grid;
  place-items:center;
  align-content:center;
  gap:6px;
  border:1px solid rgba(78,137,203,.16);
  border-radius:14px;
  background:rgba(4,10,17,.72);
}
.lvl-market-stats b {
  color:#eef7ff;
  font:800 17px/1 ui-monospace,monospace;
}
.lvl-market-stats span {
  color:#667990;
  font:800 6px/1 ui-monospace,monospace;
  letter-spacing:.12em;
}
.lvl-market-sell {
  border-color:rgba(70,176,247,.25);
  background:radial-gradient(circle at 100% 0,rgba(35,142,225,.08),transparent 38%),rgba(4,11,18,.82);
}
.lvl-market-title-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}
.lvl-market-title-row h3 { margin:0; }
.lvl-market-title-row > span {
  flex:0 0 auto;
  color:#71859c;
  font:800 6px/1 ui-monospace,monospace;
  letter-spacing:.11em;
}
.lvl-market-sell-form {
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(86px,.65fr) auto;
  gap:8px;
  align-items:center;
}
.lvl-market-sell-form select,
.lvl-market-sell-form input {
  width:100%;
  min-width:0;
  min-height:40px;
  border:1px solid rgba(82,145,218,.22);
  border-radius:12px;
  outline:none;
  color:#e4f0ff;
  background:rgba(2,8,14,.88);
  padding:10px 11px;
  font:700 9px/1.25 ui-monospace,monospace;
}
.lvl-market-sell-form select:focus,
.lvl-market-sell-form input:focus {
  border-color:rgba(66,167,255,.55);
  box-shadow:0 0 0 2px rgba(58,157,255,.08),0 0 24px rgba(40,140,255,.08);
}
.lvl-market-sell-note {
  margin:9px 0 0;
  color:#75879b;
  font:700 7px/1.55 ui-monospace,monospace;
}
.lvl-market-action {
  min-width:74px;
  min-height:36px;
  border:1px solid rgba(72,160,244,.28);
  border-radius:11px;
  color:#6fc3ff;
  background:linear-gradient(145deg,rgba(32,111,180,.08),rgba(7,17,28,.92));
  padding:8px 10px;
  font:800 7px/1.15 ui-monospace,monospace;
  letter-spacing:.06em;
  cursor:pointer;
}
.lvl-market-action:hover,.lvl-market-action:focus-visible {
  border-color:rgba(83,178,255,.52);
  background:rgba(38,126,204,.13);
}
.lvl-market-action:disabled { opacity:.55; cursor:default; }
.lvl-market-action--sell {
  color:#7ee4a2;
  border-color:rgba(64,205,123,.28);
  background:rgba(30,140,82,.07);
}
.lvl-market-action--danger {
  color:#ff7a82;
  border-color:rgba(255,74,86,.25);
  background:rgba(166,34,48,.06);
}
.lvl-market-list {
  display:grid;
  gap:8px;
}
.lvl-market-card {
  display:grid;
  grid-template-columns:64px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  min-height:82px;
  padding:9px 10px;
  border:1px solid rgba(75,135,198,.16);
  border-radius:15px;
  background:linear-gradient(135deg,rgba(5,13,22,.92),rgba(4,9,15,.8));
}
.lvl-market-card.is-mine {
  border-color:rgba(241,174,63,.22);
  background:linear-gradient(135deg,rgba(61,43,11,.10),rgba(4,9,15,.82));
}
.lvl-market-card__visual {
  width:64px;
  height:64px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border:1px solid rgba(78,149,218,.18);
  border-radius:13px;
  color:#62bcff;
  background:radial-gradient(circle at 35% 25%,rgba(41,138,218,.16),rgba(2,8,14,.9));
  font:800 11px/1 ui-monospace,monospace;
}
.lvl-market-card__visual img { width:100%; height:100%; object-fit:cover; object-position:center 16%; }
.lvl-market-swatch {
  width:28px;
  height:28px;
  border-radius:50%;
  box-shadow:0 0 0 5px rgba(255,255,255,.035),0 0 22px currentColor;
}
.lvl-market-card__copy {
  min-width:0;
  display:grid;
  gap:4px;
}
.lvl-market-card__copy small {
  color:#70869e;
  font:800 6px/1 ui-monospace,monospace;
  letter-spacing:.11em;
}
.lvl-market-card__copy strong {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#edf6ff;
  font-size:12px;
}
.lvl-market-card__copy span {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#6f7e90;
  font:700 7px/1.35 ui-monospace,monospace;
}
.lvl-market-card__side {
  min-width:98px;
  display:grid;
  justify-items:end;
  gap:8px;
}
.lvl-market-card__side > b {
  color:#ffd366;
  font:800 8px/1 ui-monospace,monospace;
  white-space:nowrap;
}
.lvl-market-listings--mine { border-color:rgba(228,171,61,.17); }

body.theme-day .lvl-market-stats > div,
body.theme-day .lvl-market-sell,
body.theme-day .lvl-market-card {
  background:rgba(247,251,255,.86);
  border-color:rgba(42,102,160,.16);
}
body.theme-day .lvl-market-stats b,
body.theme-day .lvl-market-card__copy strong,
body.theme-day .lvl-market-sell-form select,
body.theme-day .lvl-market-sell-form input { color:#15314a; }
body.theme-day .lvl-market-sell-form select,
body.theme-day .lvl-market-sell-form input { background:rgba(255,255,255,.92); }
body.theme-day .lvl-market-card__visual { background:rgba(231,242,252,.9); }

@media (max-width:620px) {
  .lvl-market-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .lvl-market-sell-form { grid-template-columns:minmax(0,1fr) 92px; }
  .lvl-market-sell-form .lvl-market-action { grid-column:1/-1; }
}
@media (max-width:430px) {
  .lvl-market-card { grid-template-columns:54px minmax(0,1fr); }
  .lvl-market-card__visual { width:54px; height:54px; }
  .lvl-market-card__side { grid-column:1/-1; grid-template-columns:1fr auto; align-items:center; justify-items:start; min-width:0; }
  .lvl-market-card__side .lvl-market-action { justify-self:end; }
}


/* ===== KONTRA LVL HUB v33: swipe shop categories ===== */
.lvl-shop-category-rail{display:flex;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:2px 2px 12px;margin:2px -2px 14px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.lvl-shop-category-rail::-webkit-scrollbar{display:none}
.lvl-shop-category{min-width:132px;scroll-snap-align:start;display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:9px;padding:12px 13px;border:1px solid rgba(73,126,182,.22);border-radius:18px;background:linear-gradient(145deg,rgba(5,14,25,.96),rgba(6,22,37,.88));color:#75859d;text-align:left;box-shadow:inset 0 0 22px rgba(30,104,175,.035);transition:.18s ease}
.lvl-shop-category>span{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;border:1px solid rgba(55,160,255,.28);color:#42b2ff;font-weight:900;font-size:14px}
.lvl-shop-category>b{font-size:11px;line-height:1.18;letter-spacing:.06em;text-transform:uppercase;color:#9eabc0}
.lvl-shop-category>small{font:700 10px/1 ui-monospace,SFMono-Regular,Menlo,monospace;color:#53647b}
.lvl-shop-category.is-active{border-color:rgba(51,167,255,.68);color:#fff;transform:translateY(-1px);box-shadow:0 0 26px rgba(40,137,255,.13),inset 0 0 30px rgba(27,120,220,.08)}
.lvl-shop-category.is-active>b{color:#fff}.lvl-shop-category.is-active>small{color:#55baff}
.lvl-shop-category-heading{display:flex;align-items:center;gap:12px;margin:4px 0 12px;padding:12px 14px;border:1px solid rgba(69,120,175,.18);border-radius:16px;background:rgba(4,13,23,.72)}
.lvl-shop-category-heading>span{display:grid;place-items:center;width:40px;height:40px;border:1px solid rgba(57,165,255,.3);border-radius:12px;color:#42b4ff;font-weight:900}.lvl-shop-category-heading>div{display:grid;gap:3px;flex:1}.lvl-shop-category-heading small{font:700 9px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.18em;color:#63758c}.lvl-shop-category-heading strong{font-size:15px}.lvl-shop-category-heading>b{font:700 11px/1 ui-monospace,SFMono-Regular,Menlo,monospace;color:#58b9ff}
.lvl-shop-grid-v33{display:grid;gap:12px}
.lvl-shop-item-v33{display:grid;grid-template-columns:104px minmax(0,1fr) auto;gap:14px;align-items:center;padding:13px;border:1px solid rgba(64,111,162,.18);border-radius:20px;background:linear-gradient(145deg,rgba(5,14,24,.96),rgba(5,18,31,.86));min-height:126px}
.lvl-shop-item-v33.is-owned{border-color:rgba(52,145,226,.28)}.lvl-shop-item-v33.is-active{border-color:rgba(255,70,91,.48);box-shadow:inset 0 0 28px rgba(255,55,80,.035)}
.lvl-shop-item__visual{width:104px;height:100px;border-radius:17px;display:grid;place-items:center;overflow:hidden;background:radial-gradient(circle at 35% 40%,rgba(33,137,222,.20),rgba(5,14,24,.82) 62%);border:1px solid rgba(56,133,197,.17);font:900 21px/1 ui-monospace,SFMono-Regular,Menlo,monospace;color:#47b7ff}
.lvl-shop-item__visual img{width:100%;height:100%;object-fit:cover;object-position:50% 16%}.lvl-shop-swatch{width:54px;height:54px;border-radius:50%;box-shadow:0 0 24px currentColor,inset 0 0 0 4px rgba(255,255,255,.12)}
.lvl-shop-item__copy{min-width:0;display:grid;gap:6px}.lvl-shop-item__copy small{font:700 9px/1.1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.14em;color:#6385a8}.lvl-shop-item-v33.is-active .lvl-shop-item__copy small{color:#ff6376}.lvl-shop-item__copy strong{font-size:17px;line-height:1.1;overflow-wrap:anywhere}.lvl-shop-item__copy span{font:700 10px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.08em;color:#65758a}
@media(max-width:520px){.lvl-shop-item-v33{grid-template-columns:82px minmax(0,1fr);gap:12px}.lvl-shop-item__visual{width:82px;height:86px}.lvl-shop-item-v33>.lvl-store-buy{grid-column:1/-1;width:100%}.lvl-shop-category{min-width:122px}.lvl-shop-category-rail{padding-bottom:10px}}


/* ========================================================================== */
/* KONTRA SITE v36 — EQUIPMENT ON/OFF MANAGEMENT                              */
/* ========================================================================== */
.lvl-equip-switch{min-width:92px;display:inline-flex;align-items:center;justify-content:flex-end;gap:8px;padding:5px 7px;border:1px solid rgba(118,139,164,.2);border-radius:14px;color:#8795a8;background:rgba(7,13,21,.88);cursor:pointer;transition:border-color .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease}
.lvl-equip-switch>span{position:relative;width:42px;height:23px;border-radius:999px;background:#343b46;box-shadow:inset 0 0 0 1px rgba(255,255,255,.05);transition:background .18s ease,box-shadow .18s ease}
.lvl-equip-switch>span>i{position:absolute;left:3px;top:3px;width:17px;height:17px;border-radius:50%;background:#f7f9fb;box-shadow:0 2px 7px rgba(0,0,0,.38);transition:transform .2s ease}
.lvl-equip-switch>b{min-width:29px;text-align:center;font:900 7px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.1em}
.lvl-equip-switch.is-on{color:#6ef39a;border-color:rgba(63,230,126,.34);background:rgba(28,175,92,.055);box-shadow:inset 0 0 18px rgba(42,220,108,.025)}
.lvl-equip-switch.is-on>span{background:#20c968;box-shadow:0 0 15px rgba(32,201,104,.17),inset 0 0 0 1px rgba(255,255,255,.08)}
.lvl-equip-switch.is-on>span>i{transform:translateX(19px)}
.lvl-equip-switch:disabled{opacity:.55;cursor:wait}.lvl-equip-switch.is-busy>b{color:#ffd565}
.lvl-inventory-manage-hint{margin:0 0 2px}
.lvl-inventory-manage__list{display:grid;gap:8px}
.lvl-inventory-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:11px 12px;border:1px solid rgba(80,125,172,.15);border-radius:15px;background:rgba(3,10,18,.52);transition:border-color .18s ease,background .18s ease}
.lvl-inventory-item.is-on{border-color:rgba(61,167,255,.3);background:linear-gradient(90deg,rgba(29,111,185,.07),rgba(11,20,31,.5))}
.lvl-inventory-item>div{min-width:0;display:grid;gap:5px}.lvl-inventory-item strong{font-size:13px;overflow-wrap:anywhere}.lvl-inventory-item small{color:#617186;font:800 7px/1.25 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.07em;overflow-wrap:anywhere}.lvl-inventory-item.is-on small{color:#56b8ff}
.lvl-shop-item-v33>.lvl-equip-switch{justify-self:end}
.lvl-hub-tile__skin.is-skin-off img,.lvl-hub-equipped__figure.is-skin-off img{opacity:.11;filter:grayscale(1) saturate(0) contrast(.85)!important}
.lvl-hub-tile__skin.is-skin-off::before,.lvl-hub-equipped__figure.is-skin-off::before{content:"OFF";position:absolute;z-index:6;left:50%;top:50%;transform:translate(-50%,-50%);padding:7px 10px;border:1px solid rgba(255,91,102,.32);border-radius:10px;color:#ff6975;background:rgba(6,10,15,.82);font:900 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.14em;box-shadow:0 0 22px rgba(255,56,76,.08)}
.lvl-hub-tile__skin.is-skin-off,.lvl-hub-equipped__figure.is-skin-off{position:relative}
body.theme-day .lvl-equip-switch{background:rgba(240,244,248,.96);color:#647386}body.theme-day .lvl-inventory-item{background:rgba(255,255,255,.72)}
@media(max-width:520px){.lvl-shop-item-v33>.lvl-equip-switch{grid-column:1/-1;width:100%;justify-content:center}.lvl-inventory-item{grid-template-columns:minmax(0,1fr) auto}.lvl-equip-switch{min-width:88px}}
@media(max-width:365px){.lvl-inventory-item{grid-template-columns:1fr}.lvl-inventory-item .lvl-equip-switch{width:100%;justify-content:center}}


/* ========================================================================== */
/* KONTRA SITE v37 — LVL HUB NAV AFFORDANCE + OVERVIEW DASHBOARD              */
/* ========================================================================== */
.lvl-hub-tabs-shell {
  position: relative;
  margin: 11px 0 14px;
  padding-top: 18px;
}
.lvl-hub-tabs-shell::before,
.lvl-hub-tabs-shell::after {
  content: "";
  position: absolute;
  z-index: 4;
  top: 18px;
  bottom: 6px;
  width: 24px;
  pointer-events: none;
}
.lvl-hub-tabs-shell::before { left: 0; background: linear-gradient(90deg,rgba(3,8,14,.92),rgba(3,8,14,0)); }
.lvl-hub-tabs-shell::after { right: 0; background: linear-gradient(270deg,rgba(3,8,14,.92),rgba(3,8,14,0)); }
.lvl-hub-swipe-hint {
  position: absolute;
  z-index: 7;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 92px;
  justify-content: center;
  color: #6f829a;
  pointer-events: none;
  font: 800 7px/1 ui-monospace,monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.lvl-hub-swipe-hint span {
  color: #43aaff;
  font-size: 15px;
  line-height: .6;
  animation: lvlHubSwipeArrow 1.45s ease-in-out infinite;
}
.lvl-hub-swipe-hint span:last-child { animation-delay: .15s; }
.lvl-hub-tabs { margin: 0; padding-inline: 14px; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
.lvl-hub-tabs button:first-child { margin-left: 2px; }
.lvl-hub-tabs button:last-child { margin-right: 2px; }
.lvl-hub-overview-head { margin-top: 2px; }
.lvl-hub-overview-head > span {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(75,159,255,.22);
  border-radius: 999px;
  color: #6caee6;
  font: 800 7px/1 ui-monospace,monospace;
  letter-spacing: .08em;
}
.lvl-hub-feature--shop { border-color: rgba(61,215,151,.22); }
.lvl-hub-feature--shop > span,.lvl-hub-feature--shop > b { color:#53d9a2; border-color:rgba(83,217,162,.25); }
.lvl-hub-feature--settings { border-color: rgba(171,126,255,.18); }
.lvl-hub-feature--settings > span,.lvl-hub-feature--settings > b { color:#ae8cff; border-color:rgba(174,140,255,.24); }
.lvl-shop-item-v33.is-repeatable .lvl-shop-item__visual { color:#62b9ff; }
.lvl-shop-item-v33.is-repeatable.is-active { border-color:rgba(71,201,143,.3); box-shadow:inset 0 0 22px rgba(62,195,139,.035); }
.lvl-shop-item-v33.is-repeatable.is-active .lvl-shop-item__copy > small { color:#62daa1; }
@keyframes lvlHubSwipeArrow {
  0%,100% { opacity:.42; transform:translateX(0); }
  50% { opacity:1; transform:translateX(3px); }
}
@media (max-width: 520px) {
  .lvl-hub-tabs-shell { margin-top: 9px; }
  .lvl-hub-overview-grid { gap: 9px; }
  .lvl-hub-feature { min-height: 102px; }
}
@media (prefers-reduced-motion: reduce) {
  .lvl-hub-swipe-hint span { animation:none; }
}


/* ========================================================================== */
/* KONTRA SITE v37.1 — FULL-BODY SKINS + EXPLICIT MUSIC PLAY/PAUSE             */
/* ========================================================================== */

/* The skin renders are 2:3 portraits. Previous `cover` rules cropped the
   helmet/head on wide cards. Keep the whole character visible everywhere. */
.lvl-hub-tile__skin img,
.lvl-hub-equipped__figure img,
.skin-card__visual img,
.lvl-store-item img,
.lvl-market-card__visual img,
.lvl-shop-item__visual img {
  object-fit: contain !important;
  object-position: 50% 100% !important;
}

.lvl-hub-tile__skin img {
  width: 118px;
  height: 166px;
  border-radius: 22px 22px 15px 15px;
}

.lvl-hub-equipped__figure img {
  width: 108px;
  height: 154px;
  border-radius: 22px 22px 15px 15px;
}

.skin-card__visual {
  height: 178px;
  padding: 4px 5px 0;
}
.skin-card__visual img {
  width: 100%;
  height: 100%;
  border-radius: 16px 16px 12px 12px;
}

.lvl-store-item img {
  width: 72px;
  height: 94px;
  border-radius: 13px;
}

.lvl-market-card__visual img,
.lvl-shop-item__visual img {
  padding: 2px;
  border-radius: 15px;
}

/* Dedicated red/blue music button on the home server card. */
.server-meter__value {
  flex-wrap: wrap;
  justify-content: center;
}
.ambient-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  margin-left: 8px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(67, 151, 255, .48);
  border-radius: 50%;
  color: #eef7ff;
  background:
    linear-gradient(135deg, rgba(255, 52, 64, .94) 0 47%, rgba(8, 13, 22, .97) 48% 52%, rgba(42, 143, 255, .94) 53% 100%);
  box-shadow:
    -7px 0 20px rgba(255, 49, 63, .22),
    7px 0 20px rgba(42, 143, 255, .24),
    inset 0 0 18px rgba(255,255,255,.035);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .16s ease, box-shadow .18s ease, border-color .18s ease;
}
.ambient-toggle:active { transform: scale(.94); }
.ambient-toggle:focus-visible { outline: 2px solid rgba(85, 177, 255, .8); outline-offset: 3px; }
.ambient-toggle__disc {
  position: absolute;
  inset: 7px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  background: rgba(4, 8, 15, .46);
  box-shadow: inset 0 0 17px rgba(0,0,0,.28);
}
.ambient-toggle__disc i {
  grid-area: 1 / 1;
  font-style: normal;
  font: 900 16px/1 system-ui, sans-serif;
  text-shadow: 0 0 12px rgba(255,255,255,.35);
  transition: opacity .16s ease, transform .16s ease;
}
.ambient-toggle__play { padding-left: 2px; opacity: 1; transform: scale(1); }
.ambient-toggle__pause { opacity: 0; transform: scale(.72); letter-spacing: -3px; padding-right: 3px; }
.ambient-toggle small {
  position: absolute;
  left: 50%;
  bottom: -17px;
  transform: translateX(-50%);
  color: #6f88a6;
  font: 900 6px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
  white-space: nowrap;
}
.ambient-toggle.is-playing {
  border-color: rgba(82, 231, 151, .56);
  box-shadow:
    -7px 0 22px rgba(255, 49, 63, .25),
    7px 0 24px rgba(42, 143, 255, .3),
    0 0 20px rgba(73, 225, 144, .12),
    inset 0 0 20px rgba(255,255,255,.045);
  animation: ambientPulse 1.8s ease-in-out infinite;
}
.ambient-toggle.is-playing .ambient-toggle__play { opacity: 0; transform: scale(.72); }
.ambient-toggle.is-playing .ambient-toggle__pause { opacity: 1; transform: scale(1); }
.ambient-toggle.is-playing small { color: #69e49a; }
@keyframes ambientPulse {
  0%,100% { filter: brightness(1); }
  50% { filter: brightness(1.13); }
}

body.theme-day .ambient-toggle {
  box-shadow: -5px 0 16px rgba(218, 48, 62, .18), 5px 0 16px rgba(42, 120, 205, .18);
}

@media (max-width: 520px) {
  .ambient-toggle { width: 52px; height: 52px; margin-left: 4px; }
  .ambient-toggle__disc { inset: 6px; }
  .skin-card__visual { height: 170px; }
  .lvl-hub-tile__skin img { width: 116px; height: 160px; }
  .lvl-hub-equipped__figure img { width: 104px; height: 148px; }
}

@media (max-width: 370px) {
  .ambient-toggle { width: 46px; height: 46px; }
  .ambient-toggle small { display: none; }
  .skin-card__visual { height: 158px; }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-toggle.is-playing { animation: none; }
}


.lvl-hub-token-dock {
  position: sticky;
  top: calc(10px + env(safe-area-inset-top));
  z-index: 18;
  margin: 8px 0 14px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 42px minmax(0,1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(91, 166, 255, .22);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(6,14,23,.94), rgba(6,12,20,.98));
  box-shadow: 0 10px 30px rgba(0,0,0,.24), inset 0 0 18px rgba(53,152,255,.05);
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.lvl-hub-token-dock::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 12% 50%, rgba(255,69,85,.12), transparent 26%), radial-gradient(circle at 88% 35%, rgba(82,200,255,.16), transparent 29%);
}
.lvl-hub-token-dock__icon {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(82,200,255,.28);
  background: linear-gradient(145deg, rgba(10,25,40,.96), rgba(4,9,16,.98));
  box-shadow: inset 0 0 18px rgba(82,200,255,.08);
}
.lvl-hub-token-dock__icon::before,
.lvl-hub-token-dock__icon::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
}
.lvl-hub-token-dock__icon::before {
  background: conic-gradient(from 180deg, #ff5b67, #ff5b67 42%, #5acfff 42%, #5acfff 100%);
  box-shadow: 0 0 16px rgba(82,200,255,.18);
}
.lvl-hub-token-dock__icon::after {
  inset: 15px;
  background: #09131d;
}
.lvl-hub-token-dock__copy { position: relative; z-index: 1; min-width: 0; display: grid; gap: 4px; }
.lvl-hub-token-line { display: flex; align-items: baseline; gap: 5px; min-width: 0; white-space: nowrap; }
.lvl-hub-token-line small { color: #62c7ff; font: 900 clamp(11px, 2.8vw, 13px)/1 ui-monospace, monospace; letter-spacing: .12em; }
.lvl-hub-token-line em { color: #62c7ff; font-style: normal; font-weight: 900; }
.lvl-hub-token-line b { color: #ffe06f; font-size: clamp(22px, 5.8vw, 30px); line-height: 1; letter-spacing: .03em; text-shadow: 0 0 16px rgba(255,224,111,.15); }
.lvl-hub-token-line i { color: #d6e7f4; font: 800 clamp(10px, 2.7vw, 12px)/1 ui-monospace, monospace; letter-spacing: .05em; font-style: normal; }
.lvl-hub-token-dock__copy span { color: #7f90a3; font-size: 9px; line-height: 1.45; }
.lvl-hub-token-dock.is-empty .lvl-hub-token-dock__copy b { color: #9cb1c2; text-shadow: none; }
#lvlHubTokens.is-flash, #lvlHubTokensSticky.is-flash { animation: lvlTokenFlash .72s ease; }
.lvl-hub-token-dock.is-flash { animation: lvlTokenDockFlash .8s ease; }
@keyframes lvlTokenFlash { 0% { transform: scale(1); color: #ffe06f; } 35% { transform: scale(1.1); color: #ffffff; text-shadow: 0 0 18px rgba(255,255,255,.45); } 100% { transform: scale(1); color: #ffe06f; } }
@keyframes lvlTokenDockFlash { 0% { border-color: rgba(91,166,255,.22); box-shadow: 0 10px 30px rgba(0,0,0,.24), inset 0 0 18px rgba(53,152,255,.05); } 32% { border-color: rgba(255,219,95,.55); box-shadow: 0 12px 34px rgba(0,0,0,.28), 0 0 0 1px rgba(255,219,95,.15), inset 0 0 28px rgba(255,219,95,.07); } 100% { border-color: rgba(91,166,255,.22); box-shadow: 0 10px 30px rgba(0,0,0,.24), inset 0 0 18px rgba(53,152,255,.05); } }
@media (max-width: 640px) {
  .lvl-hub-token-dock { top: calc(8px + env(safe-area-inset-top)); padding: 11px 12px; grid-template-columns: 40px minmax(0,1fr); }
  .lvl-hub-token-dock__copy b { font-size: clamp(22px, 7vw, 28px); }
}

/* v39 — CT knives */
.lvl-shop-item__visual .lvl-knife-art{width:100%;height:100%;object-fit:cover!important;object-position:50% 50%!important;filter:saturate(1.06) contrast(1.05);}
.lvl-shop-item-v33:has(.lvl-knife-art){border-color:rgba(76,170,255,.18);}


/* ========================================================================== */
/* KONTRA SITE v38 — DEDICATED CT KNIVES GALLERY                              */
/* ========================================================================== */
.lvl-hub-feature--knife {
  border-color: rgba(255,91,105,.25);
  background: radial-gradient(circle at 92% 15%,rgba(255,62,78,.10),transparent 34%),linear-gradient(145deg,rgba(12,17,28,.97),rgba(4,9,15,.99));
}
.lvl-hub-feature--knife > span,.lvl-hub-feature--knife > b { color:#ff6675; border-color:rgba(255,102,117,.28); }
.lvl-hub-feature--knife > span { font:900 10px/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.05em; }
.lvl-hub-tabs button[data-lvl-tab="knives"] span { font:900 9px/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.05em; }
.lvl-hub-tabs button[data-lvl-tab="knives"].is-active { border-color:rgba(255,77,97,.50); box-shadow:-5px 0 18px rgba(255,51,70,.13),5px 0 18px rgba(48,144,255,.11),inset 0 0 18px rgba(255,55,75,.045); }

.lvl-hub-equipped__knife {
  margin-top:6px;
  min-width:0;
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  align-items:center;
  gap:8px;
  padding:6px 8px 6px 6px;
  border:1px solid rgba(255,81,99,.18);
  border-radius:12px;
  background:linear-gradient(90deg,rgba(255,55,76,.05),rgba(31,127,224,.04));
}
.lvl-hub-equipped__knife img { width:38px; height:34px; object-fit:contain; filter:drop-shadow(0 0 8px rgba(58,157,255,.22)); }
.lvl-hub-equipped__knife > div { min-width:0; display:grid; gap:3px; }
.lvl-hub-equipped__copy .lvl-hub-equipped__knife small { color:#ff6877; font:800 6px/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.13em; }
.lvl-hub-equipped__knife b { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font:900 9px/1.15 ui-monospace,SFMono-Regular,Menlo,monospace; color:#eef7ff; }
.lvl-hub-equipped__knife.is-off { opacity:.52; filter:saturate(.45); }
.lvl-hub-equipped__knife.is-off img { filter:grayscale(1) opacity(.42); }

.lvl-hub-panelhead--knives > span { border-color:rgba(255,78,98,.22); }
.lvl-hub-panelhead--knives > span b { color:#ff6171; }
.knife-gallery {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:13px;
}
.knife-card {
  position:relative;
  min-width:0;
  display:grid;
  grid-template-rows:168px auto auto;
  gap:11px;
  padding:12px;
  overflow:hidden;
  border:1px solid rgba(73,126,182,.20);
  border-radius:21px;
  background:linear-gradient(145deg,rgba(5,14,25,.97),rgba(5,17,29,.90));
  box-shadow:inset 0 0 28px rgba(34,112,188,.035);
  transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease;
}
.knife-card.is-owned { border-color:rgba(54,149,233,.32); }
.knife-card.is-active { border-color:rgba(255,72,91,.60); box-shadow:0 0 28px rgba(255,48,69,.09),inset 0 0 32px rgba(255,50,71,.055); }
.knife-card.is-admin { background:radial-gradient(circle at 86% 13%,rgba(255,197,66,.09),transparent 35%),linear-gradient(145deg,rgba(8,16,27,.98),rgba(5,13,23,.94)); }
.knife-card.is-busy { opacity:.76; }
.knife-card__visual {
  position:relative;
  overflow:hidden;
  display:grid;
  place-items:center;
  min-height:0;
  border:1px solid rgba(58,151,228,.17);
  border-radius:17px;
  background:radial-gradient(circle at 50% 48%,rgba(43,142,229,.16),rgba(5,12,21,.86) 67%);
}
.knife-card.is-active .knife-card__visual { background:radial-gradient(circle at 50% 48%,rgba(255,58,78,.14),rgba(5,12,21,.88) 68%); }
.knife-card__visual::after { content:""; position:absolute; inset:auto 17% 12px; height:16px; border-radius:50%; background:radial-gradient(ellipse,rgba(65,167,255,.25),rgba(255,63,82,.09) 47%,transparent 75%); filter:blur(5px); }
.knife-card__visual img { position:relative; z-index:1; width:94%; height:94%; object-fit:contain; object-position:center; filter:drop-shadow(0 11px 12px rgba(0,0,0,.45)) saturate(1.03) contrast(1.05); transition:transform .2s ease,filter .2s ease; }
.knife-card:hover .knife-card__visual img { transform:scale(1.025) translateY(-1px); filter:drop-shadow(0 11px 15px rgba(0,0,0,.48)) saturate(1.09) contrast(1.06); }
.knife-card__visual > span { position:absolute; z-index:3; top:8px; right:8px; padding:5px 7px; border:1px solid rgba(255,205,82,.34); border-radius:8px; background:rgba(21,16,6,.76); color:#ffd363; font:900 7px/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.11em; }
.knife-card__copy { min-width:0; display:grid; gap:5px; }
.knife-card__copy small { color:#6f88a5; font:800 7px/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.13em; }
.knife-card.is-active .knife-card__copy small { color:#ff6575; }
.knife-card__copy strong { min-width:0; overflow-wrap:anywhere; font-size:16px; line-height:1.12; }
.knife-card__copy span { color:#64758a; font:800 8px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.06em; }
.knife-card > .lvl-equip-switch,.knife-card > .lvl-store-buy { width:100%; justify-content:center; }
.knife-card > .lvl-store-buy { min-height:39px; }

.lvl-inventory-item--knife { grid-template-columns:62px minmax(0,1fr) auto; }
.lvl-inventory-knife-thumb { width:62px; height:48px; object-fit:contain; border:1px solid rgba(63,147,218,.16); border-radius:11px; background:radial-gradient(circle,rgba(42,136,218,.12),rgba(5,13,22,.70) 68%); padding:3px; filter:drop-shadow(0 5px 7px rgba(0,0,0,.35)); }
.lvl-inventory-item--knife.is-on .lvl-inventory-knife-thumb { border-color:rgba(255,76,95,.36); box-shadow:0 0 16px rgba(255,55,76,.06); }

body.theme-day .knife-card { background:linear-gradient(145deg,rgba(255,255,255,.95),rgba(242,247,251,.94)); }
body.theme-day .knife-card__visual { background:radial-gradient(circle at 50% 50%,rgba(70,151,222,.14),rgba(239,245,249,.90) 70%); }
body.theme-day .lvl-hub-equipped__knife { background:rgba(247,250,252,.78); }
body.theme-day .lvl-hub-equipped__knife b { color:#243545; }

@media(max-width:620px){
  .knife-gallery { grid-template-columns:1fr 1fr; gap:10px; }
  .knife-card { grid-template-rows:138px auto auto; padding:10px; border-radius:18px; }
  .knife-card__copy strong { font-size:14px; }
}
@media(max-width:430px){
  .knife-gallery { grid-template-columns:1fr; }
  .knife-card { grid-template-columns:112px minmax(0,1fr); grid-template-rows:auto auto; align-items:center; }
  .knife-card__visual { grid-row:1 / span 2; min-height:112px; }
  .knife-card__copy { align-self:end; }
  .knife-card > .lvl-equip-switch,.knife-card > .lvl-store-buy { grid-column:2; align-self:start; }
  .lvl-inventory-item--knife { grid-template-columns:52px minmax(0,1fr) auto; }
  .lvl-inventory-knife-thumb { width:52px; height:44px; }
}
@media(max-width:355px){
  .knife-card { grid-template-columns:92px minmax(0,1fr); }
  .knife-card__visual { min-height:100px; }
  .lvl-inventory-item--knife { grid-template-columns:1fr; }
  .lvl-inventory-knife-thumb { width:100%; height:72px; }
  .lvl-inventory-item--knife .lvl-equip-switch { width:100%; justify-content:center; }
}
@media(prefers-reduced-motion:reduce){
  .knife-card,.knife-card__visual img { transition:none; }
}


/* ===== v89: expanded LVL MOD web control ===== */
.settings-group-title {
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(80,201,255,.18);
  border-radius: 15px;
  background: linear-gradient(145deg,rgba(8,18,29,.96),rgba(5,11,19,.98));
}
.settings-group-title strong {
  color: #68d7ff;
  font: 900 11px/1.1 ui-monospace,monospace;
  letter-spacing: .11em;
}
.settings-group-title small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}
.settings-toggle {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(168,255,62,.14);
  border-radius: 15px;
  background: rgba(8,16,25,.72);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}
.settings-toggle input {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  accent-color: var(--lime);
}
.settings-toggle.is-danger {
  border-color: rgba(255,76,86,.24);
  background: rgba(34,8,12,.58);
}
.settings-toggle.is-danger input { accent-color: #ff4c56; }
.settings-field--sound select { border-color: rgba(80,201,255,.22); }
.settings-checks--abilities { border-color: rgba(255,208,92,.2); }
body.theme-day .settings-group-title,
body.theme-day .settings-toggle {
  background: rgba(255,255,255,.76);
}
@media (min-width: 760px) {
  .settings-toggle { min-height: 54px; }
}


/* v40 — KONTRA ID email/Google security */
.auth-first-hint{margin:10px 0 16px;padding:12px 14px;border:1px solid rgba(92,197,255,.22);border-radius:14px;background:rgba(40,121,165,.10);font-size:12px;line-height:1.5;color:var(--muted,#aeb4c0)}
.password-field{display:flex;align-items:center;gap:8px;width:100%}.password-field input{flex:1;min-width:0}.password-eye{width:44px;height:44px;border-radius:12px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.05);font-size:18px;cursor:pointer}
.auth-mini-hint,.auth-alt-hint{display:block;margin-top:9px;color:var(--muted,#aeb4c0);font-size:11px;line-height:1.45}.auth-alt-toggle{width:100%;margin-top:10px}.email-login-panel{margin-top:10px;padding:12px;border:1px solid rgba(255,255,255,.10);border-radius:14px;background:rgba(255,255,255,.025)}.email-login-panel label{display:grid;gap:6px;margin-bottom:8px}.email-login-panel input{width:100%}.email-login-verify{margin-top:10px}.auth-divider{display:flex;align-items:center;gap:10px;margin:16px 0 10px;color:var(--muted,#858b98);font-size:10px}.auth-divider:before,.auth-divider:after{content:"";height:1px;background:rgba(255,255,255,.10);flex:1}.google-signin-slot{min-height:44px;display:flex;justify-content:center;align-items:center}.google-signin-slot.is-config-missing{padding:10px;border:1px dashed rgba(255,255,255,.12);border-radius:12px;color:var(--muted,#9298a5);font-size:11px;text-align:center}
.account-security{margin-top:18px;padding-top:16px;border-top:1px solid rgba(255,255,255,.10)}.account-security>header{display:grid;gap:4px;margin-bottom:12px}.account-security>header strong{font-size:14px;letter-spacing:.04em}.account-security>header small{color:var(--muted,#9ca2ae);line-height:1.45}.account-security__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.security-method{padding:14px;border:1px solid rgba(255,255,255,.10);border-radius:16px;background:rgba(255,255,255,.025)}.security-method>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:10px}.security-state{font-size:10px;font-weight:800;color:#ff8383}.security-state.is-linked{color:#68e49c}.security-current{min-height:36px;margin:10px 0;color:var(--muted,#b2b7c1);font-size:12px;line-height:1.45;word-break:break-word}.security-email-form,.security-verify{display:flex;gap:8px;flex-wrap:wrap}.security-email-form input,.security-verify input{flex:1;min-width:150px}.security-hint{display:block;margin-top:9px;color:var(--muted,#8f96a3);font-size:10px;line-height:1.4}.text-action{margin-top:10px;border:0;background:transparent;padding:0;font:inherit;font-size:11px;cursor:pointer}.danger-text{color:#ff7777}
@media(max-width:680px){.account-security__grid{grid-template-columns:1fr}.security-email-form,.security-verify{display:grid;grid-template-columns:1fr}.security-email-form input,.security-verify input{min-width:0}.google-signin-slot--profile{justify-content:flex-start}}


/* ========================================================================== */
/* KONTRA SITE v41 — COMPACT KONTRA ID LOGIN                                  */
/* ========================================================================== */
#loginModal .auth-login-card{
  width:min(100%,410px);
  max-height:min(94dvh,780px);
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:20px 18px 18px;
  border-radius:24px;
  scrollbar-width:thin;
}
#loginModal .auth-login-card>.modal__close{top:12px;right:12px;width:34px;height:34px;font-size:22px}
#loginModal .auth-login-card>img{width:58px;height:58px;border-radius:16px}
#loginModal .auth-login-card>small{margin-top:6px;font-size:10px}
#loginModal .auth-login-card>h2{margin:6px 0 10px;font-size:clamp(24px,6.6vw,32px);line-height:1.05}
#loginModal .auth-login-card form{gap:9px}
#loginModal .auth-login-card label{gap:5px}
#loginModal .auth-login-card label>span{font-size:10px}
#loginModal .auth-login-card input{min-height:46px;border-radius:13px;padding:0 13px}
#loginModal .auth-login-card form .primary-button{min-height:44px;margin-top:2px}
#loginModal .password-eye{width:46px;height:46px;flex:0 0 46px}

.auth-disclosure{
  width:100%;min-height:38px;padding:7px 10px;border:1px solid rgba(88,171,255,.16);border-radius:12px;
  background:rgba(26,96,142,.06);color:var(--muted,#aeb4c0);display:flex;align-items:center;justify-content:center;gap:8px;
  cursor:pointer;font:inherit;font-size:11px;font-weight:700;letter-spacing:.04em
}
.auth-disclosure__icon{width:18px;height:18px;border:1px solid rgba(88,171,255,.34);border-radius:50%;display:grid;place-items:center;color:#48a9ff;font-size:11px;font-weight:900;font-family:serif}
.auth-disclosure b{margin-left:auto;font-size:16px;line-height:1;transition:transform .18s ease;color:#7f8792}
.auth-disclosure.is-open b{transform:rotate(180deg)}
.auth-info-toggle{margin:0 0 10px}
.auth-info-panel{margin:-2px 0 10px;padding:10px;border:1px solid rgba(88,171,255,.13);border-radius:12px;background:rgba(33,118,171,.055)}
.auth-info-panel[hidden],.auth-other-panel[hidden],.email-login-panel[hidden],.email-login-verify[hidden]{display:none!important}
#loginModal .auth-info-panel .auth-first-hint{margin:0;padding:0;border:0;background:none;font-size:11px;line-height:1.45;text-align:left}
#loginModal .auth-info-panel .login-help-button{margin-top:8px;min-height:30px}
#loginModal .auth-info-panel .login-help-button b{font-size:11px}

.auth-login-links{display:flex;justify-content:center;margin:7px 0 0}
.auth-text-link{border:0;background:transparent;color:#55aaff;padding:4px 8px;cursor:pointer;font:inherit;font-size:10.5px;font-weight:700;letter-spacing:.04em;text-decoration:underline;text-underline-offset:3px}
#loginModal .auth-login-status{margin:6px 0 0;padding:6px 8px;border-radius:10px;background:rgba(255,255,255,.035);font-size:10.5px}
#loginModal .auth-login-status.is-error{background:rgba(255,64,75,.07)}

.auth-other-toggle{margin-top:7px;border-color:rgba(184,239,75,.16);background:rgba(184,239,75,.035);color:#aab69a}
.auth-other-panel{margin-top:8px;padding:10px;border:1px solid rgba(184,239,75,.13);border-radius:13px;background:rgba(184,239,75,.025)}
#loginModal .auth-alt-toggle{margin:0;min-height:40px;border-radius:11px;font-size:10.5px}
#loginModal .email-login-panel{margin-top:8px;padding:9px;border-radius:11px}
#loginModal .email-login-panel label{margin-bottom:6px}
#loginModal .email-login-panel .secondary-button,#loginModal .email-login-panel .primary-button{min-height:40px}
#loginModal .email-login-verify{margin-top:8px}
#loginModal .auth-divider{margin:10px 0 8px;font-size:9px}
#loginModal .google-signin-slot{min-height:40px}
#loginModal .auth-alt-hint{margin-top:6px;font-size:9.5px;line-height:1.35}

@media(max-width:520px){
  #loginModal{padding:8px;align-items:center}
  #loginModal .auth-login-card{width:min(100%,390px);max-height:calc(100dvh - 16px);padding:17px 14px 14px;border-radius:21px}
  #loginModal .auth-login-card>img{width:52px;height:52px}
  #loginModal .auth-login-card>small{font-size:9px}
  #loginModal .auth-login-card>h2{font-size:clamp(23px,7vw,29px);margin-bottom:9px}
  #loginModal .auth-login-card input{min-height:44px}
  #loginModal .password-eye{width:44px;height:44px;flex-basis:44px}
}

/* ========================================================================== */
/* v42 — GOOGLE COMPACT PROFILE                                               */
/* ========================================================================== */
.security-method--google{
  position:relative;
  overflow:hidden;
}
.security-method--google.is-linked{
  padding-bottom:12px;
}
.security-method--google .security-current{
  min-height:0;
  margin:8px 0 0;
  font-size:12px;
  line-height:1.35;
}
.security-method--google.is-linked .security-current{
  color:rgba(207,220,232,.72);
}
.security-method--google .google-signin-slot--profile{
  min-height:36px;
  width:min(100%,260px);
  margin-top:10px;
  justify-content:flex-start;
  overflow:hidden;
  border-radius:999px;
}
.security-method--google .text-action{
  margin-top:12px;
  font-size:10px;
  letter-spacing:.04em;
}
@media(max-width:680px){
  .security-method--google .google-signin-slot--profile{width:min(100%,250px)}
}
body.theme-day .security-method--google.is-linked .security-current{
  color:rgba(35,48,63,.66);
}


/* ========================================================================== */
/* KONTRA SITE v42 — HOME DIRECT JOIN BUTTON                                  */
/* Only the requested home-card addition: existing PLAY music control stays.  */
/* ========================================================================== */

/* Pull only the server card/hero seam slightly upward, without moving the
   existing controls inside the card. */
.view[data-view="home"] .home-visual {
  margin-bottom: 0;
}

.server-join-button {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 58px;
  margin: 10px 0 0;
  padding: 0 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(71, 151, 255, .5);
  border-radius: 17px;
  color: #f5f8ff;
  background:
    linear-gradient(110deg, rgba(255, 51, 63, .15), rgba(9, 14, 26, .96) 42% 58%, rgba(42, 143, 255, .16)),
    rgba(5, 10, 18, .96);
  box-shadow:
    -10px 0 26px rgba(255, 47, 60, .10),
    10px 0 28px rgba(42, 143, 255, .12),
    inset 0 0 22px rgba(255, 255, 255, .025);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .18s ease, border-color .22s ease, box-shadow .22s ease, filter .22s ease;
}

.server-join-button::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -45%;
  bottom: -45%;
  left: -32%;
  width: 26%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-18deg);
  animation: kontraJoinSweep 3.1s ease-in-out infinite;
}

.server-join-button::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 1px;
  border-radius: 15px;
  background: linear-gradient(90deg, rgba(255,49,61,.055), transparent 42% 58%, rgba(42,143,255,.065));
  pointer-events: none;
}

.server-join-button strong {
  min-width: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .105em;
  text-transform: uppercase;
  text-shadow: -4px 0 14px rgba(255,50,62,.24), 4px 0 14px rgba(42,143,255,.25);
}

.server-join-button__signal {
  position: relative;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 73, 83, .46);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,52,64,.19), rgba(42,143,255,.13));
  box-shadow: 0 0 16px rgba(255, 52, 64, .11), inset 0 0 13px rgba(42,143,255,.09);
}

.server-join-button__signal::before,
.server-join-button__signal::after,
.server-join-button__signal i {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.server-join-button__signal::before {
  inset: 6px;
  border: 1px solid rgba(76, 166, 255, .58);
}

.server-join-button__signal::after {
  width: 6px;
  height: 6px;
  background: #6bff82;
  box-shadow: 0 0 11px rgba(107,255,130,.9);
  animation: kontraJoinPulse 1.45s ease-in-out infinite;
}

.server-join-button__signal i {
  inset: 2px;
  border: 1px solid rgba(107,255,130,.22);
  animation: kontraJoinRing 1.45s ease-out infinite;
}

.server-join-button__arrow {
  color: #6eb5ff;
  font-size: 29px;
  line-height: 1;
  transform: translateX(0);
  transition: transform .18s ease, color .18s ease;
}

.server-join-button:hover {
  border-color: rgba(91, 168, 255, .72);
  box-shadow:
    -12px 0 30px rgba(255, 47, 60, .14),
    12px 0 32px rgba(42, 143, 255, .18),
    inset 0 0 24px rgba(255,255,255,.035);
  filter: brightness(1.06);
}

.server-join-button:hover .server-join-button__arrow { transform: translateX(3px); color: #9dcdff; }
.server-join-button:active { transform: scale(.985); filter: brightness(.96); }
.server-join-button:focus-visible { outline: 2px solid #5babff; outline-offset: 3px; }

@keyframes kontraJoinSweep {
  0%, 52% { left: -32%; opacity: 0; }
  58% { opacity: .9; }
  76% { left: 116%; opacity: 0; }
  100% { left: 116%; opacity: 0; }
}

@keyframes kontraJoinPulse {
  0%, 100% { transform: scale(.86); opacity: .72; }
  50% { transform: scale(1.12); opacity: 1; }
}

@keyframes kontraJoinRing {
  0% { transform: scale(.72); opacity: .62; }
  100% { transform: scale(1.18); opacity: 0; }
}

@media (max-width: 720px) {
  .server-join-button {
    min-height: 54px;
    margin-top: 8px;
    padding-inline: 14px;
    grid-template-columns: 32px minmax(0, 1fr) 20px;
    border-radius: 16px;
  }
  .server-join-button strong { font-size: 11px; letter-spacing: .09em; }
  .server-join-button__signal { width: 28px; height: 28px; }
  .server-join-button__arrow { font-size: 26px; }
}

@media (max-width: 390px) {
  .server-join-button strong { font-size: 10px; letter-spacing: .075em; }
}

@media (prefers-reduced-motion: reduce) {
  .server-join-button::before,
  .server-join-button__signal::after,
  .server-join-button__signal i { animation: none; }
}

body.theme-day .server-join-button {
  color: #172235;
  border-color: rgba(43, 119, 214, .34);
  background:
    linear-gradient(110deg, rgba(255, 73, 82, .10), rgba(250, 252, 255, .94) 42% 58%, rgba(42, 143, 255, .10)),
    rgba(247, 250, 255, .96);
  box-shadow:
    -8px 0 22px rgba(224, 58, 69, .08),
    8px 0 22px rgba(42, 115, 199, .09),
    inset 0 0 18px rgba(255,255,255,.58);
}

body.theme-day .server-join-button__signal {
  background: linear-gradient(135deg, rgba(255,72,82,.12), rgba(42,143,255,.10));
}


/* ========================================================================== */
/* KONTRA SITE v43 — APK DOWNLOAD + HOME COPY-IP                              */
/* ========================================================================== */
.server-primary-actions {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px;
  gap: 8px;
  margin-top: 10px;
}

.server-primary-actions .server-join-button {
  margin-top: 0;
  min-width: 0;
}

.server-copy-ip-button {
  position: relative;
  min-width: 0;
  min-height: 58px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  border: 1px solid rgba(71, 151, 255, .45);
  border-radius: 17px;
  color: #eaf4ff;
  background:
    radial-gradient(circle at 30% 35%, rgba(255, 51, 63, .11), transparent 50%),
    radial-gradient(circle at 75% 70%, rgba(42, 143, 255, .16), transparent 55%),
    rgba(5, 10, 18, .96);
  box-shadow: inset 0 0 20px rgba(255,255,255,.02), 0 0 18px rgba(42,143,255,.08);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .18s ease, border-color .18s ease, filter .18s ease;
}

.server-copy-ip-button__icon {
  color: #70b7ff;
  font-size: 21px;
  line-height: 1;
  text-shadow: 0 0 12px rgba(62,157,255,.34);
}

.server-copy-ip-button strong {
  font: 900 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .14em;
}

.server-copy-ip-button:active { transform: scale(.96); filter: brightness(.94); }
.server-copy-ip-button:focus-visible { outline: 2px solid #5babff; outline-offset: 3px; }

.drawer-kontra-server-install {
  margin-top: 7px;
  border: 1px solid rgba(68, 150, 255, .24) !important;
  border-radius: 11px;
  background:
    linear-gradient(105deg, rgba(255, 50, 61, .075), transparent 42% 58%, rgba(39, 137, 255, .09)),
    rgba(4, 9, 16, .72) !important;
}

.drawer-kontra-server-install .drawer-action__copy strong {
  color: #f4f7ff;
}

.drawer-kontra-server-install .drawer-action__copy small {
  color: #73869e;
  letter-spacing: .09em;
}

body.theme-day .server-copy-ip-button {
  color: #172235;
  border-color: rgba(43,119,214,.32);
  background:
    radial-gradient(circle at 30% 35%, rgba(255,73,82,.08), transparent 50%),
    radial-gradient(circle at 75% 70%, rgba(42,143,255,.09), transparent 55%),
    rgba(247,250,255,.96);
}

body.theme-day .drawer-kontra-server-install {
  background:
    linear-gradient(105deg, rgba(255,73,82,.07), transparent 42% 58%, rgba(42,143,255,.08)),
    rgba(255,255,255,.72) !important;
}

body.theme-day .drawer-kontra-server-install .drawer-action__copy strong { color: #1b2735; }
body.theme-day .drawer-kontra-server-install .drawer-action__copy small { color: #667486; }

@media (max-width: 720px) {
  .server-primary-actions {
    grid-template-columns: minmax(0, 1fr) 64px;
    gap: 7px;
    margin-top: 8px;
  }
  .server-copy-ip-button {
    min-height: 54px;
    border-radius: 16px;
  }
  .server-copy-ip-button__icon { font-size: 20px; }
}

@media (max-width: 390px) {
  .server-primary-actions { grid-template-columns: minmax(0, 1fr) 60px; gap: 6px; }
  .server-copy-ip-button strong { font-size: 9px; }
}


/* ========================================================================== */
/* KONTRA SITE v44 — HOME PANEL UP                                            */
/* Mobile only: lift the complete server card into the lower part of the hero */
/* so MAP / MODE / UPDATED remain visible above the fixed bottom navigation.  */
/* Internal card layout, PLAY and JOIN controls are intentionally unchanged.  */
/* ========================================================================== */
@media (max-width: 720px) {
  .view[data-view="home"] .server-card {
    position: relative;
    z-index: 8;
    margin-top: -44px;
  }
}

@media (max-width: 430px) {
  .view[data-view="home"] .server-card {
    margin-top: -52px;
  }
}

@media (max-width: 370px) {
  .view[data-view="home"] .server-card {
    margin-top: -48px;
  }
}
