/* =========================================================================
   VPD — black + one signal yellow. Flat panels, hairline borders,
   no tape, no stripes. Loaded last; overrides tokens + vpd.css.
   ========================================================================= */

:root {
  --ink-0: #0a0a0a;
  --ink-1: #111111;
  --ink-2: #161616;
  --ink-3: #1c1c1c;
  --ink-4: #262626;
  --bone: #f2f2ee;
  --bone-2: #c4c4be;
  --muted: #94948e;
  --dim: #66665f;
  --line: rgba(242, 242, 238, 0.08);
  --line-2: rgba(242, 242, 238, 0.14);

  /* single accent; legacy names all point at it */
  --accent: #ffd200;
  --accent-hi: #ffe14d;
  --accent-soft: rgba(255, 210, 0, 0.1);
  --accent-text: #ffd200;
  --on-accent: #0a0a0a;
  --tape: var(--accent);
  --tape-hi: var(--accent-hi);
  --brass: var(--accent);
  --brass-hi: var(--accent-hi);
  --brass-lo: #b89600;
  --accent-gold: var(--accent);
  --siren-red: #ff3b30;
  --siren-blue: #2f6bff;
  --steel: #4f7dff;

  --font-main: 'Public Sans', system-ui, 'Segoe UI', sans-serif;
  --font-heading: 'Archivo', 'Public Sans', sans-serif;
  --font-cond: 'Archivo', 'Public Sans', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;

  --r: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

body {
  font-family: var(--font-main);
  font-weight: 400; font-size: 15.5px; line-height: 1.6;
  background: var(--ink-0);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--on-accent); }

h1, h2, .vpd-display {
  font-family: var(--font-heading) !important;
  font-weight: 800 !important;
  font-stretch: 108%;
  letter-spacing: -0.015em !important;
  line-height: 1.05 !important;
}
h3, h4 {
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  letter-spacing: -0.005em !important;
}
.vpd-kicker, .vpd-btn, .vpd-nav > a, .vpd-nav > .vpd-nav-group > button, .vpd-stat-label,
.vpd-link, .vpd-module .code, .vpd-module .go, .vpd-bulletin-cat, .tk-hud-cell span, .tk-hud-label {
  font-stretch: 88%;
}

/* ---------- kicker: quiet label with a status dot ---------- */
.vpd-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--bone-2) !important;
  background: none;
  padding: 0;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.vpd-kicker::before { display: none !important; }
.vpd-beacon b { box-shadow: none; }

/* ---------- buttons ---------- */
.vpd-btn {
  position: relative;
  background: var(--btn-bg, transparent) !important;
  border: 1px solid var(--btn-line, var(--line-2)) !important;
  border-radius: var(--r) !important;
  box-shadow: none !important;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .03em;
  padding: 0 22px;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transition: background .15s, border-color .15s, color .15s, transform .2s var(--ease);
}
.vpd-btn::before { display: none !important; }
.vpd-btn:active { transform: translateY(1px); }
.vpd-btn-sm { padding: 0 14px; font-size: 13.5px; }
.vpd-btn-brass { color: var(--on-accent) !important; --btn-bg: var(--accent); --btn-line: var(--accent); }
.vpd-btn-brass:hover { --btn-bg: var(--accent-hi); --btn-line: var(--accent-hi); }
.vpd-btn-ghost { color: var(--bone) !important; --btn-bg: rgba(10,10,10,.55); }
.vpd-btn-ghost:hover { --btn-line: rgba(242,242,238,.45); --btn-bg: rgba(242,242,238,.06); }
.vpd-btn-discord { color: #fff !important; --btn-bg: #5865f2; --btn-line: #5865f2; }
.vpd-btn-discord:hover { --btn-bg: #4752c4; --btn-line: #4752c4; }

/* ---------- header ---------- */
.vpd-header { background: rgba(10,10,10,.92); border-bottom: 1px solid var(--line); }
.vpd-brand-text strong { font-family: var(--font-heading); font-weight: 800; font-size: 16px; letter-spacing: .01em; text-transform: uppercase; }
.vpd-brand-text small { color: var(--muted); opacity: 1; letter-spacing: .08em; }
.vpd-nav > a, .vpd-nav > .vpd-nav-group > button {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .02em;
  text-transform: none;
  white-space: nowrap;
  color: var(--bone-2);
}
.vpd-nav > a::after, .vpd-nav > .vpd-nav-group > button::after {
  height: 2px;
  bottom: 0;
  left: 12px; right: 12px;
  background: var(--accent);
  transform: scaleX(0);
}
.vpd-nav > a:hover::after, .vpd-nav > .vpd-nav-group:hover > button::after,
.vpd-nav > a.is-active::after, .vpd-nav > .vpd-nav-group > button.is-active::after { transform: scaleX(1); }
.vpd-nav > a:hover, .vpd-nav > a.is-active, .vpd-nav > .vpd-nav-group > button.is-active { color: #fff; }
.vpd-nav-menu { border-top: 2px solid var(--accent); border-radius: 0 0 var(--r) var(--r); }
.vpd-nav-count { background: var(--accent); color: var(--on-accent); font-style: normal; }

.vpd-play-mini { display: none !important; }
.vpd-icon-btn, .vpd-search-btn, .vpd-user, .vpd-points { border-radius: var(--r); }
.vpd-points { border-color: var(--line-2); color: var(--bone); }
.vpd-points i { color: var(--accent); }
.vpd-game-btn:hover, .vpd-game-btn.on { color: var(--accent); border-color: rgba(255,210,0,.5); }
/* chat dock (bottom right): one card; the "Mesajlar" header is its top, the list opens under it */
.dk { position: fixed; right: 20px; bottom: 0; z-index: 130; display: flex; align-items: flex-end; gap: 12px; font-size: 14px; color: var(--bone); pointer-events: none; }
.dk > * { pointer-events: auto; }
.dk-box { width: 328px; display: flex; flex-direction: column; background: #141414; border: 1px solid rgba(255,255,255,.12); border-bottom: 0;
  border-radius: 14px 14px 0 0; box-shadow: 0 -12px 40px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.4); overflow: hidden; }
.dk-bar { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 12px 0 10px; cursor: pointer; user-select: none; background: #141414; }
.dk-bar:hover { background: #191919; }
.dk-bar:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.dk-bar b { flex: 1; font-size: 14.5px; font-weight: 700; letter-spacing: .01em; }
.dk-me { position: relative; flex-shrink: 0; }
.dk-me img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; display: block; }
.dk-me i { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #141414; background: #5f5f5a; }
.dk-me i.on { background: #3ecf6e; }
.dk-badge { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #ff5a4f; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.dk-full, .dk-chev { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: #8a8a84; font-size: 12px; }
.dk-full:hover { color: var(--accent); background: rgba(255,255,255,.05); }
.dk-chev { transition: transform .18s; }
.dk.open .dk-chev { transform: rotate(180deg); }
.dk-full { display: none; }
.dk.open .dk-full { display: grid; }
.dk-panel { display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,.08); height: min(440px, calc(100vh - 170px)); }
.dk.short .dk-panel { height: auto; max-height: min(440px, calc(100vh - 170px)); }
.dk-panel[hidden], .dk-chat[hidden] { display: none; }
.dk-tools { padding: 10px 10px 6px; display: flex; flex-direction: column; gap: 8px; }
.dk-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 10px; background: #0b0b0b; border: 1px solid rgba(255,255,255,.07); }
.dk-tabs button { height: 30px; border: 0; border-radius: 8px; background: transparent; color: #9a9a94; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.dk-tabs button.on { background: #222; color: var(--bone); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset; }
.dk-tabs em { font-style: normal; color: #3ecf6e; font-size: 11px; margin-left: 4px; }
.dk-search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 10px; background: #0b0b0b; border: 1px solid rgba(255,255,255,.07); color: #6b6b66; font-size: 12px; }
.dk-search:focus-within { border-color: rgba(255,210,0,.45); }
.dk-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; font-size: 13px; }
.dk-list { list-style: none; margin: 0; padding: 2px 6px 10px; overflow-y: auto; flex: 1; scrollbar-width: thin; }
.dk-list button { width: 100%; display: flex; gap: 11px; align-items: center; padding: 8px; border: 0; border-radius: 10px; background: transparent; color: var(--bone); cursor: pointer; text-align: left; font: inherit; }
.dk-list button:hover { background: rgba(255,255,255,.05); }
.dk-list .t, .dk-chat header .t { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 1px; }
.dk-list b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-list small { font-size: 12px; color: #7d7d77; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-list button.new b { color: #fff; } .dk-list button.new small { color: #c4c4be; font-weight: 600; }
.dk-list em { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #ff5a4f; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.dk-list .ago { flex: 0 0 auto; font-size: 11px; }
.dk-send-ico { color: #5f5f5a; font-size: 13px; }
.dk-list button:hover .dk-send-ico { color: var(--accent); }
.dk .av { position: relative; flex-shrink: 0; }
.dk .av img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; display: block; background: #0a0a0a; }
.dk .av i { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #141414; }
.dk-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 18px 22px; color: #8a8a84; }
.dk-empty > i { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,210,0,.08); color: var(--accent); font-size: 18px; margin-bottom: 4px; }
.dk-empty b { color: var(--bone); font-size: 14px; }
.dk-empty span { font-size: 12.5px; line-height: 1.5; max-width: 230px; }
.dk-list .dk-go { width: auto; display: inline-flex; justify-content: center; margin-top: 8px; height: 32px; padding: 0 16px; border-radius: 9px; border: 0;
  background: var(--accent); color: #0a0a0a; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.dk-list .dk-go:hover { background: #ffe14d; }
.dk-none { color: #7d7d77; font-size: 13px; padding: 14px 10px; line-height: 1.5; text-align: center; }
.dk-chat { width: 328px; height: min(440px, calc(100vh - 130px)); display: flex; flex-direction: column; background: #141414; border: 1px solid rgba(255,255,255,.12); border-bottom: 0;
  border-radius: 14px 14px 0 0; box-shadow: 0 -12px 40px rgba(0,0,0,.55); overflow: hidden; }
.dk-chat header { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 8px 0 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.dk-chat header .t { text-decoration: none; color: var(--bone); }
.dk-chat header b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .dk-chat header small { font-size: 11.5px; color: #7d7d77; }
.dk-chat header a:not(.t), .dk-chat header .x { color: #8a8a84; background: none; border: 0; cursor: pointer; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; }
.dk-chat header a:not(.t):hover, .dk-chat header .x:hover { color: var(--accent); background: rgba(255,255,255,.05); }
.dk-msgs { flex: 1; overflow-y: auto; padding: 10px 12px 6px; display: flex; flex-direction: column; gap: 3px; scrollbar-width: thin; }
.dk-when { align-self: center; font-size: 10.5px; color: #6b6b66; margin: 10px 0 4px; }
.dk-m { max-width: 80%; padding: 7px 12px; border-radius: 18px; background: #262626; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.4; align-self: flex-start; font-size: 13.5px; }
.dk-m.me { align-self: flex-end; background: var(--accent); color: #0a0a0a; }
.dk-m.gone { background: transparent; border: 1px dashed rgba(255,255,255,.15); color: #6b6b66; font-style: italic; font-size: 12px; }
.dk-m.pending { opacity: .55; }
.dk-seen { align-self: flex-end; font-size: 10.5px; color: #6b6b66; margin-top: 2px; }
.dk-send { display: flex; gap: 8px; align-items: flex-end; padding: 10px; border-top: 1px solid rgba(255,255,255,.08); }
.dk-send textarea { flex: 1; resize: none; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; background: #0b0b0b; color: #fff; font: inherit; font-size: 13.5px; padding: 9px 14px; max-height: 110px; outline: 0; }
.dk-send textarea:focus { border-color: rgba(255,210,0,.45); }
.dk-send button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--accent); color: #0a0a0a; cursor: pointer; flex-shrink: 0; }
.dk-err { color: #ff8a80; font-size: 12px; padding: 0 12px 8px; }
@media (max-width: 640px) {
  .dk { right: 8px; left: 8px; justify-content: flex-end; }
  .dk-box { width: min(328px, calc(100vw - 16px)); }
  .dk-chat { position: fixed; left: 8px; right: 8px; width: auto; bottom: 50px; height: calc(100vh - 150px); border-radius: 14px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .dk.open.chatting .dk-panel { display: none; }
}
@media print { .dk { display: none; } }
body:has(.dk.open) .vpd-scrollcue, body:has(.dk.chatting) .vpd-scrollcue { opacity: 0; pointer-events: none; }  /* scroll pill never sits on the chat */
.vpd-dm-btn { position: relative; }
/* phones: only the essentials stay in the header (test, bell, profile picture, menu); the rest is in the menu */
.vpd-phone-only { display: none !important; }
@media (max-width: 640px) {
  .vpd-hide-phone { display: none !important; }
  .vpd-phone-only { display: flex !important; }
  .vpd-controls { gap: 6px !important; flex-shrink: 0; }
  .vpd-user .vpd-user-text { display: none !important; }
  .vpd-user { padding: 2px !important; }
  .vpd-header-inner { padding-left: 12px !important; padding-right: 12px !important; gap: 8px !important; }
  html, body { max-width: 100%; overflow-x: hidden; }
}
body:has(#vpd-drawer.open) .dk { display: none; }      /* the menu's last items never sit under the chat bar */
@media (max-width: 420px) {
  .vpd-brand-text { display: none !important; }      /* the badge logo alone; room for the buttons */
  .vpd-controls .vpd-icon-btn, .vpd-controls .vpd-role-btn { width: 34px; padding: 0 !important; justify-content: center; }
  .vpd-role-btn span, .vpd-role-btn .chev { display: none !important; }
}
@media (max-width: 640px) {
  .pn-kpis { flex: 1 1 100% !important; min-width: 0; grid-template-columns: 1fr 1fr !important; }
  .pd-head input { min-width: 0 !important; width: 100%; }
  .pd-head .ps-row { flex-wrap: wrap; width: 100%; }
  .km-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
.vpd-dm-btn:hover, .vpd-dm-btn.on { color: var(--accent); border-color: rgba(255,210,0,.5); }
.vpd-games { position: relative; display: inline-flex; }
.vpd-games .vpd-games-menu { left: auto; right: 0; width: 280px; }
.vpd-games-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }  /* hover bridge over the gap */
.vpd-games.open .vpd-games-menu, .vpd-games-menu:focus-within { opacity: 1; transform: none; pointer-events: auto; }
@media (hover: hover) { .vpd-games:hover .vpd-games-menu { opacity: 1; transform: none; pointer-events: auto; } }
.vpd-games.open .vpd-game-btn, .vpd-games:hover .vpd-game-btn { color: var(--accent); border-color: rgba(255,210,0,.5); }

/* ---------- hero ---------- */
.vpd-hero-bg picture { display: contents; }
.vpd-hero-bg img { filter: saturate(1.05) contrast(1.05) brightness(.82) !important; object-position: 60% 55% !important; }
.vpd-hero::before {
  background:
    linear-gradient(90deg, rgba(10,10,10,.96) 0%, rgba(10,10,10,.82) 40%, rgba(10,10,10,.25) 78%, rgba(10,10,10,.45) 100%),
    linear-gradient(0deg, var(--ink-0) 0%, transparent 40%) !important;
}
.vpd-hero h1 { font-size: clamp(42px, 6vw, 84px) !important; margin-top: 18px !important; text-transform: uppercase; }
.vpd-hero h1 .word {
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  color: #fff !important;
  animation: none !important;
  filter: none !important;
  text-shadow: none;
}
.vpd-hero h1 .thin {
  display: block !important;
  margin-top: 10px !important;
  padding: 0;
  background: none;
  color: var(--accent) !important;
  font-family: var(--font-heading) !important;
  font-weight: 600 !important;
  font-stretch: 100%;
  font-size: .32em !important;
  letter-spacing: .01em !important;
  text-transform: none;
}
.vpd-hero p.lead { font-size: 17px; color: var(--bone-2); font-weight: 400; max-width: 540px; }
.vpd-hero-inner { padding-bottom: 11rem; }
.vpd-scroll-cue { display: none !important; }
.vpd-hero-logo {
  display: block; width: 88px; height: 88px; margin-bottom: 18px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,210,0,.65);
  box-shadow: 0 0 0 6px rgba(10,10,10,.55), 0 12px 34px rgba(0,0,0,.6);
}
@media (max-width: 640px) { .vpd-hero-logo { width: 64px; height: 64px; margin-bottom: 12px; } }
/* hero lockup: badge centred over the VINEWOOD word, subtitle centred under it */
.vpd-hero-lockup { display: inline-flex; flex-direction: column; align-items: center; margin-top: 6px; }
.vpd-hero-lockup h1 { margin-top: 10px !important; text-align: center; }
.vpd-hero-lockup h1 .thin { text-align: center; }
.vpd-hero-logo.custom {
  width: clamp(150px, 15vw, 220px); height: auto; margin: 0;
  border: 0; border-radius: 0; object-fit: contain; box-shadow: none;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.75)) drop-shadow(0 0 30px rgba(255,210,0,.12));
  animation: vpd-badge-in .8s var(--ease) both;
}
@keyframes vpd-badge-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@media (max-width: 640px) { .vpd-hero-logo.custom { width: 128px; } }
@media (prefers-reduced-motion: reduce) { .vpd-hero-logo.custom { animation: none; } }
/* header mark: crisp badge + one-line wordmark */
.vpd-brand { gap: 10px; align-items: center; }
.vpd-brand img { width: 40px !important; height: 40px !important; border-radius: 0 !important; border: 0 !important; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,.7)) !important; transition: transform .25s var(--ease); }
.vpd-brand:hover img { transform: scale(1.06) rotate(-3deg); }
.vpd-brand-text { line-height: 1; }
.vpd-brand-text small { display: none !important; }
.vpd-brand-text strong {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-heading) !important; font-weight: 800 !important; font-stretch: 112%;
  font-size: 17px !important; letter-spacing: .04em !important; text-transform: uppercase; color: #fff;
}
.vpd-brand-text strong b {
  font-weight: 800; font-size: 12px; letter-spacing: .08em;
  padding: 3px 6px 2px; border-radius: 4px;
  background: var(--accent); color: var(--on-accent);
}

/* police tape: two real-looking bands crossing in an X, the back one out of focus */
.vpd-tapes { position: absolute; left: -6%; right: -6%; bottom: 40px; height: 150px; z-index: 3; pointer-events: none; }
.vpd-tape {
  position: absolute; left: 0; right: 0;
  height: 38px;
  display: flex; align-items: center;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, transparent 0 260px, rgba(0,0,0,.07) 260px 262px, rgba(255,255,255,.18) 262px 264px, transparent 264px 520px),
    linear-gradient(180deg, #ffe873 0%, #ffd400 38%, #f5c800 70%, #dcb100 100%);
  box-shadow: inset 0 2px 0 #111, inset 0 -2px 0 #111, 0 14px 26px -6px rgba(0,0,0,.75);
}
.vpd-tape.a { top: 70px; transform: rotate(-3deg); z-index: 2; }
.vpd-tape.b { top: 56px; transform: rotate(3.5deg); z-index: 1; filter: blur(1.2px) brightness(.62) saturate(.9); }
.vpd-tape-track {
  display: flex; white-space: nowrap;
  font-family: var(--font-cond);
  font-stretch: 85%;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .18em;
  color: #111;
  text-transform: uppercase;
  animation: vpd-tape 60s linear infinite;
}
.vpd-tape.b .vpd-tape-track { animation-direction: reverse; animation-duration: 90s; }
.vpd-tape-track span { padding: 0 34px; display: inline-flex; align-items: center; gap: 34px; }
.vpd-tape-track span::after { content: ''; width: 18px; height: 3px; background: #111; transform: skewX(-30deg); }
@keyframes vpd-tape { to { transform: translateX(-50%); } }
@media (max-width: 760px) {
  .vpd-tapes { bottom: 30px; }
  .vpd-tape { height: 30px; }
  .vpd-tape-track { font-size: 14px; letter-spacing: .14em; }
}
@media (prefers-reduced-motion: reduce) { .vpd-tape-track { animation: none !important; } }

/* ---------- panels ---------- */
.vpd-join { margin-top: -40px; }
.vpd-join-card, .vpd-stats, .vpd-modules, .vpd-game-teaser, .vpd-panel, .tk-stage, .tk-card, .vpd-center-card {
  clip-path: none !important;
  border-radius: var(--r) !important;
}
.vpd-join-card { background: rgba(17,17,17,.96); }
.vpd-join-card::after { display: none !important; }
.vpd-join-card .ic { border-radius: var(--r); width: 48px; }
.vpd-join-card .tx strong { font-family: var(--font-heading); font-weight: 800; font-size: 19px; }
.vpd-join-card .tx small { color: var(--accent); }

.vpd-stat-label { color: var(--muted); font-family: var(--font-cond); font-weight: 600; font-size: 12px; letter-spacing: .1em; }
.vpd-stat-value { font-family: var(--font-heading); font-weight: 800; }
.vpd-stat-sub { color: var(--muted); }

.vpd-section-head { border-bottom: 1px solid var(--line-2); padding-bottom: 14px; }
.vpd-section-head::after { display: none; }
.vpd-section-head h2 { font-size: clamp(24px, 2.6vw, 34px) !important; margin-top: 10px; }
.vpd-link { color: var(--accent); border-bottom-color: rgba(255,210,0,.35); font-family: var(--font-cond); font-weight: 600; font-size: 13.5px; }

.vpd-module h3 { font-family: var(--font-heading) !important; font-weight: 800 !important; font-size: 22px; }
.vpd-module .code { color: var(--accent); font-family: var(--font-mono); font-weight: 500; font-size: 11.5px; letter-spacing: .1em; }
.vpd-module .go { color: var(--accent); font-family: var(--font-cond); font-weight: 600; font-size: 13.5px; }
.vpd-corners::before, .vpd-corners::after { display: none; }

.vpd-bulletin-cat { color: var(--accent); background: var(--accent-soft); border: 0; border-radius: 4px; font-family: var(--font-cond); font-weight: 600; }
.vpd-bulletin-item h3 { font-family: var(--font-heading) !important; font-size: 19px; }
.vpd-gallery figure { border-radius: var(--r); }
.vpd-photo img { filter: saturate(.9) brightness(.85); }
.vpd-game-teaser h2 { font-size: clamp(34px, 4vw, 54px) !important; }

/* ---------- footer ---------- */
.vpd-footer { border-top: 1px solid var(--line); background: #080808; }
.vpd-footer::before { display: none; }
.vpd-footer .mark { font-family: var(--font-heading); font-weight: 800; font-size: 26px; text-transform: uppercase; }
.vpd-footer .motto { color: var(--muted); font-family: var(--font-main); font-weight: 400; letter-spacing: 0; text-transform: none; }
.vpd-footer h4 { color: var(--bone) !important; }

/* ---------- minigame ---------- */
#tk-canvas { image-rendering: pixelated; image-rendering: crisp-edges; }
.tk-head h1 { font-size: clamp(36px, 4.6vw, 60px) !important; text-transform: uppercase; }
.tk-stage { background: #0c0c0c; border-color: var(--line-2); }
.tk-hud { background: #0f0f0f; }
.tk-hud-cell span, .tk-hud-label { color: var(--muted); font-family: var(--font-cond); font-weight: 600; font-size: 11.5px; letter-spacing: .08em; }
.tk-hud-cell b { font-family: var(--font-heading); font-weight: 800; }
.tk-meter { background: #262626; height: 6px; border-radius: 3px; overflow: hidden; }
.tk-meter span { background: var(--accent); }
.tk-meter.nitro span { background: var(--siren-blue); box-shadow: none; }
.tk-dmg i { border-radius: 2px; }
.tk-dmg i.on { background: var(--accent); }

.tk-radio {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  max-width: 440px; margin: 0 auto;
  padding: 8px 12px;
  background: rgba(8,8,8,.88);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.45;
  color: #d9d9d4;
  pointer-events: none;
}
.tk-radio, .tk-radio:empty { display: none !important; }   /* radio subtitles removed on request */
.tk-radio .ln { opacity: .55; }
.tk-radio .ln.last { opacity: 1; }
.tk-radio b { font-weight: 600; margin-right: 4px; }
.tk-radio b.hq { color: var(--accent); }
.tk-radio b.me { color: #8fb0ff; }
.tk-radio b::after { content: ':'; }

.tk-overlay { background: rgba(5,5,5,.8); }
.tk-ov-box h2 { font-size: 48px !important; color: #fff; text-transform: uppercase; }
.tk-ov-stats { border: 0; gap: 6px; }
.tk-ov-stats div { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); }
.tk-ov-stats b { font-family: var(--font-heading); font-weight: 800; color: var(--accent); }
.tk-banner { border-left-color: var(--accent); }
.tk-banner strong { font-family: var(--font-heading); font-weight: 800; font-size: 20px; text-transform: uppercase; }
.tk-card h3 { font-family: var(--font-heading) !important; font-weight: 800 !important; font-size: 20px; }
.tk-board li.me { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); padding-left: 8px; }
.tk-board .pts { font-family: var(--font-mono); font-weight: 600; font-size: 14px; color: var(--accent); }
.tk-board img { border-radius: 50%; }
.tk-locked { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 10px; color: var(--muted); font-size: 14px; text-align: center; background: var(--ink-2); border-radius: var(--r); }
.tk-locked i { font-size: 20px; color: var(--accent); }
.tk-sound { border-radius: var(--r); }
.tk-sound.on { color: var(--accent); border-color: rgba(255,210,0,.5); }

/* ---------- legacy pages: one button language ---------- */
.btn-ui, .btn {
  border-radius: var(--r) !important;
  font-family: var(--font-cond) !important;
  font-stretch: 92%;
  font-weight: 700 !important;
  letter-spacing: .02em;
  background-image: none !important;
  box-shadow: none !important;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-ui.primary, .btn-primary, .btn-ui.gold, .btn-gold {
  background: var(--accent) !important; border-color: var(--accent) !important; color: var(--on-accent) !important;
}
.btn-ui.primary:hover, .btn-primary:hover, .btn-ui.gold:hover, .btn-gold:hover { background: var(--accent-hi) !important; border-color: var(--accent-hi) !important; }
.btn-ui.outline { background: transparent; border-color: var(--line-2); color: var(--bone); }
.btn-ui.outline:hover { border-color: var(--accent) !important; color: #fff !important; }
.btn-ui[disabled], .btn-ui:disabled { filter: grayscale(.6); }
.surface-card, .card, .modal-content, .review-modal-box { border-radius: var(--r) !important; }
main [style*="border-radius: 6px"], main [style*="border-radius: 8px"], main [style*="border-radius: 10px"],
main [style*="border-radius: 12px"], main [style*="border-radius: 14px"], main [style*="border-radius: 16px"],
main [style*="border-radius:8px"], main [style*="border-radius:10px"], main [style*="border-radius:12px"] {
  border-radius: var(--r) !important;
}
input, select, textarea { border-radius: var(--r); }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

.vpd-initials {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 2px solid var(--line-2);
  background: var(--ink-3); color: var(--bone);
  font-family: var(--font-heading); font-weight: 800; font-size: 15px;
}
/* copy everywhere (static/js/copy.js) */
.cp-bar { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin: 0 0 8px; font-size: 12px; color: var(--muted); }
.cp-bar > span { margin-right: 2px; }
.cp-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: transparent; color: var(--bone-2); font: inherit; font-size: 12.5px; cursor: pointer; }
.cp-btn:hover { color: var(--accent); border-color: var(--accent); }
.cp-cell { width: 34px; padding-left: 2px !important; padding-right: 6px !important; }
.cp-row { width: 28px; padding: 0; justify-content: center; opacity: .35; }
tr:hover .cp-row, .cp-row:focus-visible { opacity: 1; }
.cp-item { position: absolute; top: 8px; right: 8px; width: 28px; padding: 0; justify-content: center; opacity: 0;
  background: var(--ink-1); z-index: 2; transition: opacity .12s; }
[data-copy-text]:hover > .cp-item, .cp-item:focus-visible { opacity: 1; }
@media (hover: none) { .cp-row, .cp-item { opacity: .7; } }
#cp-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 9999;
  padding: 10px 16px; border-radius: var(--r); background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45); transition: opacity .15s, transform .15s; }
#cp-toast.on { opacity: 1; transform: translate(-50%, 0); }
main h1 { font-size: clamp(26px, 2.6vw, 36px) !important; }
main h2 { font-size: clamp(20px, 2vw, 26px); }
/* page titles read as sentences; the hero, section heads and game keep their caps via their own rules */
main h1, main h2, main h3, main h4 { text-transform: none; }

/* ---------- handbook: fit the sidebar and the reader ---------- */
.hb-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 18px 32px; align-items: center;
  padding: 22px 24px; margin-bottom: 18px;
  background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--r);
}
@media (max-width: 900px) { .hb-head { grid-template-columns: 1fr; } }
.hb-eyebrow { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.hb-head h1 { font-size: clamp(22px, 2.3vw, 30px) !important; margin: 4px 0 6px; color: #fff; }
.hb-head p { margin: 0; color: var(--muted); font-size: 14.5px; }
.hb-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 520px) { .hb-pills { grid-template-columns: 1fr; } }
.hb-pill {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  padding: 8px 10px; border-radius: var(--r);
  background: var(--ink-2); border: 1px solid var(--line); color: var(--bone-2);
  font-size: 13px; font-weight: 600; text-align: left; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.hb-pill i { color: var(--c); width: 14px; flex-shrink: 0; }
.hb-pill span { flex: 1; min-width: 0; line-height: 1.3; }
.hb-pill b { font-family: var(--font-mono); font-size: 11px; color: var(--muted); font-weight: 500; }
.hb-pill:hover { border-color: var(--c); color: #fff; }

.handbook-header-strip { padding: 22px 24px; background: var(--ink-1); border-color: var(--line); backdrop-filter: none; }
.handbook-header-strip h1 { font-size: clamp(24px, 2.4vw, 32px) !important; line-height: 1.15 !important; }
.handbook-header-strip h1 i, .handbook-header-strip h1 svg { font-size: .8em; color: var(--accent) !important; }
.cat-pill { font-size: 12px; font-weight: 600; padding: 4px 10px; }
.handbook-container { grid-template-columns: 330px minmax(0, 1fr); gap: 18px; }
@media (max-width: 992px) { .handbook-container { grid-template-columns: minmax(0, 1fr); } .handbook-sidebar { position: static; max-height: none; } }
.handbook-sidebar, .handbook-reader-pane {
  background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.handbook-search-input { border-radius: var(--r) !important; font-size: 14px; }
.handbook-search-input:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 2px rgba(255,210,0,.2) !important; }
.handbook-category-title {
  gap: 10px;
  padding: 10px 10px;
  font-family: var(--font-heading);
  font-size: 13.5px; font-weight: 600;
  text-transform: none; letter-spacing: 0;
  line-height: 1.3;
  color: var(--bone-2);
}
.handbook-category-title > :first-child { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.handbook-category-title > :last-child { flex-shrink: 0; display: flex; align-items: center; gap: 6px; }
.handbook-article-link { font-size: 13.5px; border-radius: 4px; padding: 7px 10px; }
.handbook-article-link:hover { background: var(--accent-soft); color: #fff; transform: none; }
.handbook-article-link.active { background: var(--accent-soft); color: #fff; border-left-color: var(--accent); }
.handbook-article-link.active .handbook-link-arrow { color: var(--accent); }
.handbook-reader-pane { padding: 28px 34px; min-height: 0; }
@media (max-width: 640px) { .handbook-reader-pane { padding: 20px 18px; } }
.handbook-article-title { font-size: clamp(22px, 2.3vw, 30px) !important; line-height: 1.2 !important; text-transform: none; margin-bottom: 14px; }
.handbook-article-body { font-size: 15.5px; line-height: 1.75; max-width: 78ch; }
.handbook-article-body .hb-h1 { font-size: 19px !important; text-transform: none; color: var(--accent) !important; margin: 1.6rem 0 .8rem; }
.handbook-article-body .hb-h2 { font-size: 17px !important; text-transform: none; margin: 1.4rem 0 .6rem; }

/* ---------- market: typographic unit headers instead of stock photos ---------- */
.market-card-banner.mk-plain {
  height: 118px; overflow: hidden; position: relative;
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--c) 28%, transparent) 0%, transparent 60%),
    linear-gradient(180deg, #181818, #121212);
  border-bottom: 1px solid var(--line);
}
.mk-code {
  position: absolute; left: 18px; bottom: 12px;
  font-family: var(--font-heading); font-weight: 800; font-stretch: 112%;
  font-size: 34px; line-height: 1; letter-spacing: -.01em; color: #fff;
}
.mk-icon { position: absolute; right: -6px; bottom: -14px; font-size: 92px; color: var(--c); opacity: .18; transform: rotate(-8deg); transition: transform .4s var(--ease), opacity .3s; }
.market-item-card:hover .mk-icon { transform: rotate(0deg) scale(1.05); opacity: .3; }
.mk-format { position: absolute; left: 18px; top: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.mk-thumb { width: 64px; height: 64px; border-radius: var(--r); display: grid; place-items: center; flex-shrink: 0; font-size: 26px; color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 16%, transparent); }

.mk-warn { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin-bottom: 1.1rem; border-radius: var(--r); background: rgba(255,59,48,.08); border: 1px solid rgba(255,59,48,.35); color: #f3c9c5; font-size: 13.5px; line-height: 1.5; }
.mk-warn i { color: #ff6b61; margin-top: 3px; }
.mk-warn p { margin: 0; }
.mk-warn b { color: #fff; }
.mk-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding: 16px 22px !important; background: var(--ink-1) !important; }
.mk-foot form { margin: 0; }
.mk-foot .vpd-btn { height: 44px; white-space: nowrap; }
.mk-foot .vpd-btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- test-role switcher (top bar) ---------- */
.vpd-role { position: relative; }
.vpd-role-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 11px;
  border-radius: var(--r); border: 1px dashed rgba(255,210,0,.45);
  background: rgba(255,210,0,.06); color: var(--accent);
  font-family: var(--font-cond); font-stretch: 90%; font-weight: 700; font-size: 13px; white-space: nowrap;
  cursor: pointer; transition: background .15s, border-color .15s;
}
.vpd-role-btn:hover, .vpd-role-btn.open { background: rgba(255,210,0,.14); border-color: var(--accent); }
.vpd-role-btn.is-switched { border-style: solid; background: var(--accent); color: var(--on-accent); }
.vpd-admin-sw { margin: 0; display: inline-flex; }
.vpd-admin-sw .vpd-role-btn { cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; }
.vpd-admin-sw .is-on { border-style: solid; border-color: rgba(106,167,122,.55); color: #8fd19e; background: rgba(106,167,122,.12); }
.vpd-admin-sw .is-off { border-style: solid; border-color: var(--border, #2a2a2a); color: var(--text-dim, #9a9a92); background: transparent; }
.vpd-role-btn .chev { font-size: 9px; transition: transform .2s; }
.vpd-role-btn.open .chev { transform: rotate(180deg); }
.vpd-role-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 80;
  width: 240px; padding: 6px;
  background: var(--ink-2); border: 1px solid var(--line-2); border-top: 2px solid var(--accent); border-radius: var(--r);
  box-shadow: 0 18px 40px -10px rgba(0,0,0,.8);
  opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .15s, transform .15s;
}
.vpd-role-menu.show { opacity: 1; transform: none; pointer-events: auto; }
.vpd-role-head { padding: 6px 8px 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.vpd-role-head em { font-style: normal; color: var(--accent); text-transform: none; letter-spacing: 0; }
.vpd-role-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 4px; color: var(--bone); text-decoration: none; }
.vpd-role-item:hover { background: rgba(255,255,255,.05); }
.vpd-role-item > i:first-child { width: 18px; text-align: center; color: var(--muted); }
.vpd-role-item span { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.vpd-role-item b { font-size: 13.5px; font-weight: 600; }
.vpd-role-item small { font-size: 11.5px; color: var(--muted); }
.vpd-role-item.on { background: var(--accent-soft); }
.vpd-role-item.on > i:first-child, .vpd-role-item .ok { color: var(--accent); }
.vpd-role-item.me { border-top: 1px solid var(--line); border-radius: 0 0 4px 4px; margin-top: 4px; }
.vpd-role-item.me > i:first-child { color: var(--accent); }
@media (max-width: 640px) { .vpd-role-btn span { display: none; } .vpd-role-menu { left: auto; right: -80px; } }

/* ---------- archive: masonry wall of Discord shots ---------- */
.ph-wall { columns: 3 320px; column-gap: 12px; }
.ph-item { position: relative; margin: 0 0 12px; break-inside: avoid; border-radius: var(--r); overflow: hidden; cursor: zoom-in; background: #000; border: 1px solid var(--line); }
.ph-item img { display: block; width: 100%; height: auto; transition: transform .5s var(--ease), filter .3s; filter: saturate(.95); }
.ph-item:hover img { transform: scale(1.03); filter: none; }
.ph-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 10px;
  padding: 26px 12px 10px; background: linear-gradient(0deg, rgba(0,0,0,.8), transparent);
  font-size: 12.5px; color: var(--bone-2); opacity: 0; transition: opacity .2s;
}
.ph-item:hover figcaption, .ph-item:focus-within figcaption { opacity: 1; }
.ph-item figcaption b { color: #fff; font-weight: 600; }
@media (hover: none) { .ph-item figcaption { opacity: 1; } }
.ph-tog { position: absolute; top: 8px; right: 8px; margin: 0; }
.ph-tog button { height: 30px; min-width: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(10,10,10,.7); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; }
.ph-tog button:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.ph-item:not(:hover) .ph-tog:not(.add) { opacity: 0; }
.ph-item.dim img { filter: grayscale(.6) brightness(.7); }
.ph-manage { margin-top: 8px; border: 1px dashed var(--line-2); border-radius: var(--r); padding: 12px 14px; }
.ph-manage summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.ph-manage[open] summary { margin-bottom: 12px; }
.ph-wall.small { columns: 4 220px; }
.ph-sub { font-size: 20px !important; text-transform: uppercase; color: #fff; margin: 8px 0 0; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }

/* ---------- scroll cue ---------- */
.vpd-scrollbar { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 120; pointer-events: none; }
.vpd-scrollbar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 8px rgba(255,210,0,.6); }
.vpd-scrollcue {
  position: fixed; left: 50%; bottom: 18px; z-index: 90;
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px;
  transform: translateX(-50%);
  border-radius: 999px; border: 1px solid rgba(255,210,0,.5);
  background: rgba(10,10,10,.82); color: var(--accent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-cond); font-stretch: 90%; font-weight: 700; font-size: 13px; letter-spacing: .03em;
  cursor: pointer; box-shadow: 0 10px 26px -10px rgba(0,0,0,.8);
  transition: background .2s, color .2s, padding .25s var(--ease), opacity .2s;
}
.vpd-scrollcue:hover { background: var(--accent); color: var(--on-accent); }
.vpd-scrollcue[data-mode="down"] i { animation: vpd-nudge 1.6s ease-in-out infinite; }
.vpd-scrollcue[data-mode="up"] i { animation: vpd-nudge-up 1.6s ease-in-out infinite; }
.vpd-scrollcue.compact { padding: 0; width: 40px; justify-content: center; }
.vpd-scrollcue.compact .txt { display: none; }
@keyframes vpd-nudge { 50% { transform: translateY(3px); } }
@keyframes vpd-nudge-up { 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .vpd-scrollcue i { animation: none !important; } }
/* the old back-to-top button is replaced by the cue */
.vpd-totop { display: none !important; }

/* market cards: the format label must not run under the price badge */
.mk-format { max-width: calc(100% - 150px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- misc ---------- */
.alert { border-left-color: var(--accent) !important; border-radius: var(--r) !important; }
.alert-danger { border-left-color: var(--siren-red) !important; }
.vpd-cmdk-box { border-top: 2px solid var(--accent); border-radius: var(--r); }
.vpd-cmdk-item .k { color: var(--accent); }
.vpd-totop { border-radius: var(--r); }
.vpd-totop:hover { color: var(--accent); border-color: var(--accent); }
.vpd-center-card { border-top-color: var(--accent); }
.vpd-backdrop { display: none; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 6px; border: 2px solid var(--ink-0); }
::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }
.ph-empty { padding: 48px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r); }
/* one-click Excel download */
.xl-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--r); border: 1px solid rgba(88,190,118,.45);
  background: rgba(88,190,118,.1); color: #8ad6a0 !important; font-size: 13px; font-weight: 600; text-decoration: none !important; white-space: nowrap; }
.xl-btn:hover { background: #58be76; color: #0a0a0a !important; border-color: #58be76; }

/* ---- grant form (templates/_grant.html): duty time / points ---- */
.gr { border: 1px solid var(--line-2); border-radius: 14px; background: rgba(255,255,255,.02); padding: 18px 20px; }
.gr-head h2 { margin: 0; font-size: 18px; font-weight: 700; display: flex; gap: 10px; align-items: center; color: #fff; }
.gr-head h2 i { color: var(--accent); }
.gr-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.gr-form { display: grid; gap: 16px; margin-top: 16px; }
.gr-row { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.gr-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent, #111); font-weight: 800; font-size: 13px; }
.gr-body { display: grid; gap: 8px; min-width: 0; }
.gr-label { font-weight: 700; color: #fff; font-size: 14px; }
.gr-search { position: relative; }
.gr-search > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; }
.gr-search input, .gr-input { width: 100%; height: 42px; padding: 0 12px 0 34px; border-radius: 10px; background: rgba(0,0,0,.35); border: 1px solid var(--line-2); color: #fff; font: inherit; font-size: 14px; }
.gr-input { padding-left: 12px; }
.gr-search input:focus, .gr-input:focus { outline: none; border-color: var(--accent); }
.gr-dd { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 4px); background: #121212; border: 1px solid var(--line-2); border-radius: 10px; padding: 4px; max-height: 300px; overflow-y: auto; box-shadow: 0 18px 40px rgba(0,0,0,.6); }
.gr-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; background: none; color: #fff; text-align: left; border-radius: 8px; cursor: pointer; font: inherit; }
.gr-opt:hover, .gr-opt.is-first { background: rgba(255,255,255,.06); }
.gr-opt img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.gr-opt span { display: grid; flex: 1; min-width: 0; }
.gr-opt b { font-size: 13.5px; } .gr-opt small { color: var(--muted); font-size: 12px; }
.gr-opt em { font-style: normal; font-size: 11px; color: var(--muted); }
.gr-opt em.gr-live { color: #8ad6a0; }
.gr-opt i { font-style: normal; font-weight: 800; color: var(--accent); width: 18px; text-align: center; }
.gr-opt.is-on { opacity: .55; }
.gr-none { padding: 10px; color: var(--muted); font-size: 13px; }
.gr-quick, .gr-pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gr-quick button, .gr-pills button { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: #ddd; font: inherit; font-size: 13px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.gr-quick button b { color: var(--accent); }
.gr-quick button:hover, .gr-pills button:hover { border-color: var(--accent); color: #fff; }
.gr-pills button.on { background: var(--accent); color: var(--on-accent, #111); border-color: var(--accent); font-weight: 700; }
.gr-pills button.neg { color: #ff8a80; }
.gr-pills button.neg.on { background: #ff5a4f; border-color: #ff5a4f; color: #fff; }
.gr-custom { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-left: 4px; }
.gr-custom input { width: 64px; height: 32px; border-radius: 8px; background: rgba(0,0,0,.35); border: 1px solid var(--line-2); color: #fff; text-align: center; font: inherit; }
.gr-kind label { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: #ccc; margin-right: 10px; cursor: pointer; }
.gr-kind input { accent-color: var(--accent); }
.gr-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 36px; align-items: center; }
.gr-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 4px; border-radius: 999px; background: rgba(255,210,0,.1); border: 1px solid rgba(255,210,0,.3); font-size: 13px; color: #fff; }
.gr-chip img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.gr-chip button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 2px; }
.gr-chip button:hover { color: #ff5a4f; }
.gr-empty { color: var(--muted); font-size: 13px; font-style: italic; }
.gr-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.gr-sum { color: var(--muted); font-size: 14px; }
.gr-foot .vpd-btn[disabled] { opacity: .45; cursor: not-allowed; }
.gr-log { margin-top: 14px; }
.gr-log summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.gr-log ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; max-height: 260px; overflow-y: auto; }
.gr-log li { display: grid; grid-template-columns: 120px 1fr auto; gap: 4px 12px; font-size: 13px; padding: 6px 8px; border-radius: 8px; background: rgba(255,255,255,.02); }
.gr-log li span { color: var(--muted); } .gr-log li em { color: var(--accent); font-style: normal; }
.gr-log li small { grid-column: 2 / -1; color: var(--muted); }
@media (max-width: 640px) { .gr-row { grid-template-columns: 1fr; } .gr-n { display: none; } .gr-log li { grid-template-columns: 1fr; } }

/* ---- application messages: Discord-style embed preview (review form + /basvurular/mesajlar) ---- */
.dc-embed { background: #2b2d31; border-left: 4px solid #c9a227; border-radius: 4px; padding: 10px 14px 10px 12px; color: #dbdee1; font-family: "gg sans", "Public Sans", system-ui, sans-serif; font-size: 14px; line-height: 1.4; max-width: 520px; }
.dc-embed-title { font-weight: 700; color: #f2f3f5; font-size: 15px; margin-bottom: 6px; }
.dc-embed-body { white-space: normal; word-break: break-word; }
.dc-embed-body:empty::before { content: "(boş mesaj)"; color: #80848e; font-style: italic; }
.dc-embed-foot { margin-top: 10px; font-size: 12px; color: #a3a6aa; }
.dc-mention { background: rgba(88,101,242,.3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; font-weight: 500; }
.rec-preview { margin: 4px 0 16px; padding: 12px; border: 1px dashed var(--line-2); border-radius: var(--r); background: rgba(255,255,255,.015); }
.rec-preview-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.rec-preview-head > span i { color: #8b9cf7; margin-right: 4px; }
.rec-notify { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--bone-2, #ddd); font-size: 13px; }
.rec-notify input { accent-color: var(--accent); width: 15px; height: 15px; }
.rec-preview-foot { margin-top: 8px; font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rec-preview-foot a { color: var(--accent); text-decoration: none; }
.rm-chans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rm-chan > label, .rm-edit > label { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.rm-chan .bs-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.rm-chan .bs-row > i { color: var(--muted); width: 16px; text-align: center; }
.rm-chan input, .rm-edit input, .rm-edit textarea { width: 100%; padding: 9px 12px; border-radius: var(--r); background: var(--ink-0); border: 1px solid var(--line-2); color: #fff; font: inherit; font-size: 14px; color-scheme: dark; }
.rm-edit input { margin-bottom: 12px; }
.rm-edit textarea { resize: vertical; min-height: 170px; line-height: 1.45; font-family: var(--font-mono); font-size: 13px; }
.rm-chan input:focus, .rm-edit input:focus, .rm-edit textarea:focus { outline: none; border-color: var(--accent); }
.rm-warn { color: #ffb3ad !important; }
.rm-msg { margin-top: 16px; border-top: 3px solid var(--rm-color, var(--line)); }
.rm-msg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.rm-msg-head h2 { margin: 0; } .rm-msg-head h2 i { color: var(--rm-color); margin-right: 6px; }
.rm-tag { font-family: var(--font-mono); font-size: 11px; padding: 3px 8px; border-radius: 4px; background: rgba(255,210,0,.12); color: var(--accent); }
.rm-tag.muted { background: rgba(255,255,255,.05); color: var(--muted); }
.rm-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.rm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rm-chip { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 5px 9px; border-radius: 6px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: #fff; font-family: var(--font-mono); font-size: 12.5px; cursor: pointer; }
.rm-chip small { font-family: inherit; font-size: 10.5px; color: var(--muted); }
.rm-chip:hover { border-color: var(--accent); }
.rm-side-label { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.rm-side-label i { color: #8b9cf7; }
.rm-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.rm-save { position: sticky; bottom: 12px; display: flex; justify-content: flex-end; margin-top: 16px; z-index: 5; }
.rm-save .vpd-btn { box-shadow: 0 6px 24px rgba(0,0,0,.5); }
.rm-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1000; padding: 10px 16px; border-radius: var(--r); background: #1d2b20; border: 1px solid rgba(106,167,122,.6); color: #cfe9d6; font-size: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.rm-toast.bad { background: #2b1d1d; border-color: rgba(255,90,79,.6); color: #ffcfca; }
@media (max-width: 820px) { .rm-grid, .rm-chans { grid-template-columns: 1fr; } }

/* ---------- notifications: delete one ---------- */
.notif-item { position: relative; }
.notif-item .notif-content { min-width: 0; flex: 1; padding-right: 22px; }
.notif-del { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 6px; border: 0; background: transparent;
  color: var(--muted); cursor: pointer; opacity: 0; transition: opacity .15s, background .15s, color .15s; }
.notif-item:hover .notif-del, .notif-del:focus-visible { opacity: 1; }
.notif-del:hover { background: rgba(255,90,79,.15); color: #ff8a80; }
@media (hover: none) { .notif-del { opacity: .7; } }

/* ---------- komuta: strike list ---------- */
.km-kpi-link { text-decoration: none; color: inherit; cursor: pointer; transition: border-color .15s; }
.km-kpi-link:hover { border-color: var(--accent) !important; }
.km-list .km-list-sep { display: block; padding: 10px 2px 4px; border: 0 !important; background: none !important; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.km-list li.past { opacity: .62; }
.km-list li.past:hover { opacity: 1; }
.km-left { color: #ff8a80; font-weight: 600; }
.km-pager { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 12px; }
.km-pager button { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line-2); background: transparent; color: var(--bone-2); cursor: pointer; font-family: var(--font-mono); font-size: 12px; }
.km-pager button:hover:not(:disabled) { border-color: var(--accent); color: var(--bone); }
.km-pager button.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
.km-pager button:disabled { opacity: .35; cursor: default; }
.km-pager .gap { color: var(--muted); padding: 0 4px; }

/* ---------- units: search + add ---------- */
.un-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 46px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--ink-1); }
.un-search i { color: var(--muted); }
.un-search input { flex: 1; background: none; border: 0; outline: 0; color: var(--bone); font-size: 15px; }
.un-search span { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.un-search:focus-within { border-color: var(--accent); }
.un-add { display: flex; gap: 6px; }
.un-add input, .un-add select { height: 32px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--ink-0); color: var(--bone); font-size: 12px; padding: 0 8px; min-width: 0; }
.un-add input { flex: 1; }
.un-add input.bad { border-color: #ff6b5f; }
.un-add button { width: 34px; height: 32px; border-radius: 6px; border: 1px solid rgba(255,210,0,.45); background: var(--accent-soft); color: var(--accent); cursor: pointer; flex-shrink: 0; }
.un-add button:hover { background: var(--accent); color: var(--on-accent); }
.un-empty { text-align: center; color: var(--muted); padding: 24px 0; }

/* ---------- header fit: wider bar; base.html adds .is-tight, then .is-collapsed, when it still does not fit ---------- */
.vpd-header-inner { max-width: 1680px; }
.vpd-role-btn span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.vpd-user { max-width: 200px; }
.vpd-header.is-tight .vpd-nav > a, .vpd-header.is-tight .vpd-nav > .vpd-nav-group > button { padding: 0 9px; }
.vpd-header.is-tight .vpd-nav > a::after, .vpd-header.is-tight .vpd-nav > .vpd-nav-group > button::after { left: 9px; right: 9px; }
.vpd-header.is-tight .vpd-search-btn { width: 34px; padding: 0; justify-content: center; }
.vpd-header.is-tight .vpd-search-btn span, .vpd-header.is-tight .vpd-search-btn kbd { display: none; }
.vpd-header.is-tight .vpd-user { padding: 0 3px; }
.vpd-header.is-tight .vpd-user-text { display: none; }
.vpd-header.is-tight .vpd-role-btn span { display: none; }
.vpd-header.is-collapsed .vpd-nav { display: none; }
.vpd-header.is-collapsed .vpd-burger { display: inline-flex; }
.vpd-header.is-collapsed .vpd-controls { margin-left: auto; }
.vpd-header.is-collapsed .vpd-drawer.open { display: block !important; }
