/* dark-pages.css — page-level styles for the dark theme */

/* ═════════════════════════════════════════════════════════════════
 * 2026-05-09: DashboardPage POLISH — modern card design.
 * Mevcut .dash-* class'larını korur, üstüne hover/gradient/animasyon
 * ekler. Yeni glass-effect + accent-glow + shadow-lift.
 * ═════════════════════════════════════════════════════════════════ */
.dash-card-h {
  font-family: var(--font-pixel, 'Press Start 2P', monospace);
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-card-h::before {
  content: '';
  width: 4px; height: 14px;
  background: linear-gradient(180deg, var(--accent), transparent);
  border-radius: 2px;
}

.dash-skin, .dash-rank, .dash-security {
  position: relative;
  padding: 20px;
  background: linear-gradient(180deg, var(--surface-1), var(--bg-2, var(--surface-1)));
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform .25s cubic-bezier(.2,.9,.3,1.1), border-color .25s, box-shadow .25s;
  overflow: hidden;
}
.dash-skin::before, .dash-rank::before, .dash-security::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
  pointer-events: none;
}
.dash-skin:hover, .dash-rank:hover, .dash-security:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  box-shadow: 0 12px 32px -12px rgba(76, 201, 240, 0.25);
}

.dash-skin-stage {
  display: grid;
  place-items: center;
  min-height: 200px;
  padding: 14px 0;
  background: radial-gradient(ellipse at center,
    rgba(76,201,240,.06), transparent 70%);
  border-radius: 8px;
}

/* Rank card refined */
.rank-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.rank-name {
  font-size: 22px;
  margin-bottom: 4px;
}
.rank-meta {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.rank-progress {
  margin-top: 8px;
}
.rank-bar {
  background: var(--line-strong, #2a2a35);
  height: 6px; border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}
.rank-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #ffffff));
  border-radius: 3px;
  transition: width .6s cubic-bezier(.5,0,.2,1);
  box-shadow: 0 0 10px var(--accent);
}
.rank-progress-meta {
  font-size: 11px;
  color: var(--ink-mute);
}

/* Stats grid mini-tiles */
.dash-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  border: 1px solid currentColor;
  border-radius: 4px;
  white-space: nowrap;
}

/* SkinCard polish */
.dash-skin .btn:hover {
  transform: translateY(-1px);
  transition: transform .15s;
}
.dash-skin label.btn--primary {
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 80%, #000));
  color: #0c0c10;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 12px;
}

/* Section enter */
@keyframes dashCardEnter {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
.dash-skin, .dash-rank, .dash-security {
  animation: dashCardEnter .5s cubic-bezier(.2,.9,.3,1) backwards;
}
.dash-skin   { animation-delay: 0.05s; }
.dash-rank   { animation-delay: 0.15s; }
.dash-security { animation-delay: 0.25s; }

/* ───── HERO ───── */
.hero-night {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 80px;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-stage {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
#hero-canvas {
  width: 100%; height: 100%;
  position: absolute; inset: 0;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px;
  align-items: center;
}
.hero-left { max-width: 640px; }
.hero-mega {
  font-size: clamp(56px, 9vw, 116px);
  line-height: 0.95;
  margin: 22px 0 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.hero-mega .block {
  display: inline-block;
  text-shadow:
    4px 4px 0 rgba(0,0,0,0.6),
    0 0 60px rgba(76,201,240,.2);
  animation: heroDrop 0.9s cubic-bezier(.3,1.6,.4,1) backwards;
}
.hero-mega .block:nth-child(1) { animation-delay: 0.15s; }
.hero-mega .block:nth-child(2) { animation-delay: 0.45s; }
@keyframes heroDrop {
  0%   { transform: translateY(-180%) rotate(-4deg); opacity: 0; }
  60%  { transform: translateY(8%)    rotate(0.5deg); opacity: 1; }
  80%  { transform: translateY(-3%)   rotate(0); }
  100% { transform: translateY(0)     rotate(0); }
}
body.daymode .hero-mega .block {
  /* keep dark theme color in daymode too */
}
body.daymode .hero-mega .block.accent {
  /* keep accent */
}
.hero-mega .block.accent {
  color: var(--accent);
  text-shadow:
    4px 4px 0 rgba(0,0,0,0.6),
    0 0 80px rgba(76,201,240,.6);
}
.hero-tag {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--ink-soft);
  margin: 0 0 28px;
  line-height: 1.5;
}
.hero-tag em { color: var(--accent-2); font-style: normal; }
.hero-ip-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-ip-btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--surface-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-3);
  color: var(--ink); cursor: pointer;
  transition: all .15s;
}
.hero-ip-btn:hover { border-color: var(--accent); box-shadow: var(--glow-diamond); }
.ip-label { font-size: 15px; color: var(--accent); font-weight: 600; }
.ip-copy { font-size: 12px; color: var(--ink-mute); padding-left: 12px; border-left: 1px solid var(--line); }
.hero-meta {
  display: flex; align-items: center; gap: 14px;
  color: var(--ink-mute); font-size: 13px; flex-wrap: wrap;
}
.hero-meta b { color: var(--ink); font-weight: 600; }
.dot-sep { color: var(--ink-mute); }

.hero-stat-stack {
  display: flex; flex-direction: column; gap: 14px;
}
.stat-tile {
  background: linear-gradient(135deg, var(--surface-1), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: 22px 24px;
  position: relative; overflow: hidden;
}
.stat-tile::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--tint, var(--accent));
  box-shadow: 0 0 18px var(--tint, var(--accent));
}
.stat-label {
  font-family: var(--font-pixel); font-size: 9px; letter-spacing: .2em;
  color: var(--ink-mute); margin-bottom: 8px;
}
.stat-value {
  font-size: 22px;
  color: var(--tint, var(--accent));
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ───── MODES ───── */
.section-alt { background: linear-gradient(180deg, transparent, rgba(76,201,240,.02), transparent); }
.modes-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.mode-card {
  background: linear-gradient(180deg, var(--surface-1), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: 28px;
  position: relative; overflow: hidden;
  transition: transform .25s, border-color .2s, box-shadow .25s;
}
.mode-card:hover {
  transform: translateY(-6px);
  border-color: var(--tint);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.7), 0 0 32px color-mix(in oklab, var(--tint) 25%, transparent);
}
.mode-card.is-featured { border-color: color-mix(in oklab, var(--tint) 50%, transparent); }
.mode-art {
  display: flex; align-items: center; justify-content: center;
  height: 160px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 12px, transparent 12px 24px),
    radial-gradient(circle at center, color-mix(in oklab, var(--tint) 18%, transparent), transparent 60%);
  border-radius: var(--r-3);
  margin-bottom: 22px;
  border: 1px solid var(--line);
}
.mode-players {
  font-family: var(--font-pixel); font-size: 9px; letter-spacing: .15em;
  color: var(--tint); margin-bottom: 8px;
}
.mode-name {
  font-size: 26px; margin: 0 0 8px;
}
.mode-tag { color: var(--ink-soft); font-size: 14px; margin: 0 0 18px; }
.mode-perks { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 8px; }
.mode-perks li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-soft); }
.bullet { width: 8px; height: 8px; background: var(--tint, var(--accent)); display: inline-block; box-shadow: 0 0 8px var(--tint, var(--accent)); }
.mode-link {
  font-family: var(--font-pixel); font-size: 10px; letter-spacing: .15em;
  color: var(--tint); text-transform: uppercase;
}
.mode-flag {
  position: absolute; top: 14px; right: 14px;
  font-family: var(--font-pixel); font-size: 8px; letter-spacing: .2em;
  background: var(--tint); color: #0a0d12;
  padding: 5px 9px; border-radius: var(--r-1);
  box-shadow: 0 4px 0 rgba(0,0,0,.4);
}
@media (max-width: 920px) { .modes-grid { grid-template-columns: 1fr; } }

/* ───── FEATURE GRID ───── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.feat-card {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: 26px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .2s, border-color .2s;
}
.feat-card:hover { transform: translateY(-2px); border-color: var(--tint); }
.feat-card h4 { margin: 4px 0 0; font-size: 17px; }
.feat-card p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
@media (max-width: 880px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }

/* ───── CTA card ───── */
.cta-card {
  background: linear-gradient(135deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-4);
  padding: 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-card::before {
  content: ""; position: absolute; right: -100px; top: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(76,201,240,.2), transparent 70%);
  pointer-events: none;
}
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ───── VIP ───── */
.vip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.vip-card {
  background: linear-gradient(180deg, var(--surface-1), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: 28px 22px 24px;
  position: relative; overflow: visible;
  transition: transform .2s, border-color .2s, box-shadow .25s;
}
.vip-card:hover { transform: translateY(-6px); border-color: var(--tint); box-shadow: 0 24px 60px -30px rgba(0,0,0,.8), 0 0 40px color-mix(in oklab, var(--tint) 25%, transparent); }
.vip-card.is-featured {
  border-color: var(--tint);
  background: linear-gradient(180deg, color-mix(in oklab, var(--tint) 8%, var(--surface-1)), var(--bg-2));
}
.vip-orb {
  display: flex; align-items: center; justify-content: center;
  margin: 6px 0 18px;
  height: 96px;
}
.vip-name { font-size: 18px; text-align: center; margin-bottom: 14px; color: var(--tint); }
.vip-price { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin-bottom: 10px; }
.price-cur { font-size: 18px; color: var(--ink-soft); }
.price-num { font-family: var(--font-pixel); font-size: 36px; color: var(--ink); }
.price-suffix { font-size: 11px; color: var(--ink-mute); margin-left: 4px; }
.vip-cta {
  text-align: center;
  font-family: var(--font-pixel); font-size: 9px; letter-spacing: .15em;
  color: var(--ink-mute); margin-bottom: 18px;
}
.vip-perks { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 9px; min-height: 180px; }
.vip-perks li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-soft); }
.vip-perks .check { color: var(--tint); font-weight: 700; }
.vip-flag {
  position: absolute; top: -10px; right: 14px;
  background: var(--tint); color: #0a0d12;
  font-family: var(--font-pixel); font-size: 9px; letter-spacing: .15em;
  padding: 5px 10px; border-radius: var(--r-2);
  box-shadow: 0 6px 14px -4px rgba(0,0,0,.5);
}
.vip-note {
  margin-top: 28px; padding: 18px 22px;
  background: rgba(76,201,240,.05); border: 1px solid rgba(76,201,240,.2);
  border-radius: var(--r-3); font-size: 14px; color: var(--ink-soft);
}
.vip-note strong { color: var(--ink); }
.vip-note a { color: var(--accent); }
@media (max-width: 1080px) { .vip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .vip-grid { grid-template-columns: 1fr; } }

/* ───── LEADERBOARD ───── */
.lb-tabs { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.lb-tab {
  padding: 10px 18px; border-radius: var(--r-3);
  background: var(--surface-1);
  border: 1px solid var(--line);
  color: var(--ink-soft); cursor: pointer;
  font-size: 13px; font-weight: 600;
  transition: all .15s;
}
.lb-tab:hover { color: var(--ink); border-color: var(--line-strong); }
.lb-tab.is-active {
  background: var(--accent); color: #051218; border-color: var(--accent);
  box-shadow: 0 0 18px color-mix(in oklab, var(--accent) 40%, transparent);
}

.lb-podium {
  display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 18px;
  align-items: end; max-width: 760px; margin: 0 auto 50px;
}
.podium { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.podium-crown { font-size: 24px; height: 28px; }
.podium-name { font-size: 14px; }
.podium-clan { font-size: 11px; color: var(--ink-mute); }
.podium-stat {
  font-size: 12px; color: var(--tint); font-weight: 600;
}
.podium-block {
  width: 100%;
  background: linear-gradient(180deg, color-mix(in oklab, var(--tint) 25%, var(--surface-2)), var(--surface-2));
  border: 2px solid var(--tint);
  border-radius: var(--r-2) var(--r-2) 0 0;
  display: flex; align-items: center; justify-content: center;
  position: relative; margin-top: 6px;
  box-shadow: 0 -8px 24px -8px color-mix(in oklab, var(--tint) 60%, transparent);
}
.podium-place { font-size: 28px; color: var(--tint); }

.lb-table {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  overflow: hidden;
}
.lb-row {
  display: grid; grid-template-columns: 60px 36px 1fr auto;
  align-items: center; gap: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.lb-row:last-child { border-bottom: none; }
.lb-row:hover { background: rgba(255,255,255,.02); }
.lb-rank { font-size: 14px; color: var(--ink-mute); }
.lb-name { font-weight: 600; font-size: 14px; }
.lb-clan { font-size: 12px; color: var(--accent-3); margin-left: 6px; }
.lb-sub { font-size: 12px; color: var(--ink-mute); margin-top: 2px; }
.lb-stat { font-size: 14px; color: var(--accent); font-weight: 700; }
@media (max-width: 720px) {
  .lb-podium { grid-template-columns: 1fr; }
  .lb-row { grid-template-columns: 40px 1fr auto; }
  .lb-row .avatar-canvas { display: none; }
}

/* ───── SHOP ───── */
.shop-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px;
}
.shop-card {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .2s, border-color .2s;
}
.shop-card:hover { transform: translateY(-4px); border-color: var(--tint); }
.shop-art {
  display: flex; align-items: center; justify-content: center;
  height: 100px;
  background: radial-gradient(circle, color-mix(in oklab, var(--tint) 14%, transparent), transparent 70%);
  border-radius: var(--r-3);
  margin-bottom: 4px;
}
.shop-name { font-weight: 700; font-size: 15px; }
.shop-body { color: var(--ink-soft); font-size: 13px; flex: 1; }
.shop-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.shop-price { font-size: 16px; color: var(--tint); }

/* ───── WIKI ───── */
.wiki-layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 32px;
  align-items: start;
}
.wiki-side {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: 18px; position: sticky; top: 100px;
}
.wiki-side-h {
  font-size: 10px; letter-spacing: .2em; color: var(--ink-mute); margin-bottom: 12px;
}
.wiki-side ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.wiki-side button {
  width: 100%; text-align: left;
  padding: 9px 12px; border-radius: var(--r-2);
  background: transparent; border: none;
  color: var(--ink-soft); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all .12s;
}
.wiki-side button:hover { color: var(--ink); background: rgba(255,255,255,.03); }
.wiki-side button.is-active {
  background: rgba(76,201,240,.1); color: var(--accent);
  box-shadow: inset 2px 0 0 var(--accent);
}
.wiki-content {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: 40px 44px;
  line-height: 1.7;
  color: var(--ink-soft);
  font-size: 15px;
}
.wiki-bread { font-size: 12px; color: var(--ink-mute); margin-bottom: 4px; }
.wiki-bread span { color: var(--accent); }

/* SITE-AUDIT-FIX (2026-05-18): Wiki markdown rendering iyilestirildi.
 * marked() ham HTML basiyor, eskiden hicbir tipografi yoktu — h1/h2/h3,
 * paragraf, liste, blockquote, kod blok, tablo hepsi default browser
 * stilinde calismastandi. Simdi proper prose styling. */
.wiki-content h1 {
  font-family: var(--font-pixel);
  font-size: 26px;
  color: var(--ink);
  margin: 36px 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
  letter-spacing: -0.02em;
}
.wiki-content h1:first-child { margin-top: 0; }
.wiki-content h2 {
  font-family: var(--font-pixel);
  font-size: 18px;
  color: var(--accent);
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}
.wiki-content h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 24px 0 10px;
  letter-spacing: -0.01em;
}
.wiki-content h4, .wiki-content h5 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 20px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.wiki-content p { margin: 12px 0; }
.wiki-content ul, .wiki-content ol {
  margin: 14px 0;
  padding-left: 24px;
}
.wiki-content li { margin: 6px 0; }
.wiki-content ul li::marker { color: var(--accent); }
.wiki-content ol li::marker { color: var(--accent); font-weight: 600; }
.wiki-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed color-mix(in oklab, var(--accent) 50%, transparent);
  transition: border-color 0.18s, color 0.18s;
}
.wiki-content a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.wiki-content strong { color: var(--ink); font-weight: 700; }
.wiki-content em { color: var(--ink); font-style: italic; }
.wiki-content blockquote {
  margin: 18px 0;
  padding: 12px 18px;
  background: color-mix(in oklab, var(--accent) 6%, transparent);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-3) var(--r-3) 0;
  color: var(--ink-soft);
  font-style: italic;
}
.wiki-content blockquote p { margin: 4px 0; }
.wiki-content hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}
.wiki-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
}
.wiki-content table th {
  background: var(--bg-2);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 2px solid var(--line);
}
.wiki-content table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.wiki-content table tr:hover td { background: var(--bg-2); }
.wiki-content pre {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 14px 18px;
  margin: 14px 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.wiki-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.wiki-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-3);
  border: 1px solid var(--line);
  margin: 14px 0;
}

.wiki-tip {
  margin-top: 24px; padding: 16px;
  background: rgba(255,195,64,.06); border: 1px solid rgba(255,195,64,.2);
  border-radius: var(--r-3); font-size: 13px; color: var(--ink-soft);
}
.wiki-tip strong { color: var(--gold); }
.wiki-content code, .wiki-tip code {
  background: var(--bg-1); padding: 2px 6px; border-radius: 3px;
  font-family: var(--font-mono); font-size: 12px; color: var(--accent);
  white-space: nowrap;
}
@media (max-width: 800px) {
  .wiki-layout { grid-template-columns: 1fr; }
  .wiki-side { position: static; }
}

/* ───── FAQ ───── */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item.is-open { border-color: var(--accent); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; gap: 18px;
  padding: 18px 22px;
  background: transparent; border: none;
  color: var(--ink); cursor: pointer;
  text-align: left;
}
.faq-q .pixel { font-size: 11px; color: var(--accent); min-width: 30px; }
.faq-q-text { flex: 1; font-weight: 600; font-size: 15px; }
.faq-arrow { font-size: 16px; color: var(--ink-mute); transition: transform .25s; }
.faq-item.is-open .faq-arrow { transform: rotate(180deg); color: var(--accent); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.faq-item.is-open .faq-a { max-height: 280px; }
.faq-a p { padding: 0 22px 22px 70px; margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.65; }

/* ───── LAUNCHER ───── */
.launcher-layout {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start;
}
.launcher-window {
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-deep), 0 0 80px -30px rgba(76,201,240,.3);
}
.lw-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.lw-dot { width: 12px; height: 12px; border-radius: 50%; }
.lw-title { margin-left: 12px; font-size: 12px; color: var(--ink-mute); }
.lw-body { display: grid; grid-template-columns: 180px 1fr; min-height: 380px; }
.lw-side {
  border-right: 1px solid var(--line);
  padding: 20px 14px;
  background: rgba(0,0,0,.2);
}
.lw-user { display: flex; gap: 10px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.lw-menu { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.lw-menu li {
  padding: 9px 12px; border-radius: var(--r-2);
  font-size: 13px; color: var(--ink-soft); cursor: pointer;
}
.lw-menu li.is-active { background: rgba(76,201,240,.1); color: var(--accent); }
.lw-main { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.lw-server-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px;
  align-items: center;
  padding: 18px; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-3);
}
.lw-srv-name { font-size: 18px; }
.lw-srv-meta { font-size: 12px; color: var(--ink-mute); margin: 4px 0 8px; }
.lw-bar-progress { height: 4px; background: var(--bg-3); border-radius: 2px; overflow: hidden; }
.lw-bar-progress div { height: 100%; width: 64%; background: linear-gradient(90deg, var(--accent), var(--emerald)); }
.lw-news { padding: 16px; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-3); }
.lw-news-h { font-family: var(--font-pixel); font-size: 9px; letter-spacing: .15em; color: var(--accent); margin-bottom: 6px; }
.lw-news-b { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }

.launcher-features { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 12px; }
.launcher-features li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-soft); }
.launcher-downloads { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 920px) {
  .launcher-layout { grid-template-columns: 1fr; }
  .lw-body { grid-template-columns: 1fr; }
  .lw-side { border-right: none; border-bottom: 1px solid var(--line); }
}

/* ───── DASHBOARD ───── */
.dash-layout {
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
.dash-card-h {
  font-family: var(--font-pixel); font-size: 10px; letter-spacing: .2em;
  color: var(--accent); margin-bottom: 16px;
}
.dash-top {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px;
}
.dash-account {
  background: linear-gradient(135deg, var(--surface-1), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: 28px;
  display: flex; gap: 24px; align-items: center;
}
.dash-avatar { position: relative; }
.dash-online { position: absolute; bottom: 4px; right: 4px; color: var(--emerald); font-size: 14px; text-shadow: 0 0 8px var(--emerald); }
.dash-pill {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-strong);
  font-size: 11px; font-weight: 600;
  color: var(--ink-soft);
}
.dash-skin {
  background: linear-gradient(135deg, var(--surface-1), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: 22px;
}
.dash-skin-stage {
  height: 200px;
  background:
    radial-gradient(ellipse 60% 30% at 50% 95%, rgba(76,201,240,.15), transparent 70%),
    var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.skin-figure {
  width: 80px; height: 160px; position: relative;
  animation: bobFigure 4s ease-in-out infinite;
}
@keyframes bobFigure { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.skin-head, .skin-body, .skin-arm, .skin-leg {
  position: absolute; image-rendering: pixelated;
  border: 1px solid rgba(0,0,0,.4);
}
.skin-head {
  width: 36px; height: 36px; left: 22px; top: 0;
  background: linear-gradient(180deg, #c89070 0%, #b67d5d 100%);
}
.skin-head::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 16px;
  background: #3a2818;
}
.skin-head::after {
  content: ""; position: absolute; left: 8px; top: 22px; width: 4px; height: 4px; background: #1a1a3a;
  box-shadow: 16px 0 0 #1a1a3a;
}
.skin-body {
  width: 36px; height: 50px; left: 22px; top: 38px;
  background: #4cc9f0;
}
.skin-arm {
  width: 12px; height: 50px; top: 38px;
  background: linear-gradient(180deg, #c89070, #b67d5d);
}
.skin-arm-l { left: 8px; }
.skin-arm-r { right: 8px; }
.skin-leg {
  width: 16px; height: 50px; top: 90px;
  background: #3a3a5a;
}
.skin-leg-l { left: 22px; }
.skin-leg-r { left: 42px; }

/* SITE-AUDIT-FIX (2026-05-18): dash-rank gorsel upgrade
 * - Sol border accent (4px diamond glow)
 * - Hover lift effect
 * - Aksanli icon container background */
.dash-rank {
  background: linear-gradient(135deg, var(--surface-1), color-mix(in oklab, var(--surface-1) 92%, var(--diamond) 8%));
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: 28px 28px 24px 32px;
  position: relative;
  overflow: hidden;
}
.dash-rank::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--diamond), color-mix(in oklab, var(--diamond) 50%, transparent));
  box-shadow: 0 0 12px color-mix(in oklab, var(--diamond) 50%, transparent);
}
.dash-rank::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, color-mix(in oklab, var(--diamond) 18%, transparent), transparent 65%);
  pointer-events: none;
}
.rank-row { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; position: relative; z-index: 1; }
.rank-name { font-size: 26px; color: var(--diamond); text-shadow: 0 0 18px color-mix(in oklab, var(--diamond) 40%, transparent); }
.rank-meta { font-size: 13px; color: var(--ink-mute); margin-top: 2px; }
.rank-meta strong { color: var(--ink); }
.rank-progress { margin-top: 12px; max-width: 320px; }
.rank-bar { height: 8px; background: var(--bg-2); border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.rank-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--diamond), var(--accent-3)); }
.rank-progress-meta { font-size: 12px; color: var(--ink-mute); margin-top: 6px; }

.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-block {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 18px;
  display: flex; gap: 14px; align-items: center;
  position: relative; overflow: hidden;
}
.stat-block::after {
  content: ""; position: absolute; right: -20px; top: -20px;
  width: 80px; height: 80px;
  background: radial-gradient(circle, color-mix(in oklab, var(--tint) 30%, transparent), transparent 70%);
  pointer-events: none;
}
.stat-block-label { font-size: 11px; color: var(--ink-mute); letter-spacing: .05em; }
.stat-block-value { font-size: 18px; color: var(--tint); margin-top: 2px; }

/* SITE-AUDIT-FIX (2026-05-18): dash-purchases gorsel upgrade
 * - Sol border accent (4px lava/orange glow)
 * - Subtle radial corner */
.dash-purchases {
  background: linear-gradient(135deg, var(--surface-1), color-mix(in oklab, var(--surface-1) 95%, var(--lava, #ff7d3b) 5%));
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: 26px 28px 24px 32px;
  position: relative;
  overflow: hidden;
}
.dash-purchases::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--lava, #ff7d3b), color-mix(in oklab, var(--lava, #ff7d3b) 50%, transparent));
  box-shadow: 0 0 10px color-mix(in oklab, var(--lava, #ff7d3b) 40%, transparent);
}
.purchase-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.purchase-row {
  display: flex; gap: 14px; align-items: center;
  padding: 12px 14px; background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
}
.purchase-name { font-weight: 600; font-size: 14px; }
.purchase-date { font-size: 12px; color: var(--ink-mute); margin-top: 2px; }
.purchase-amount { font-size: 14px; color: var(--accent); }

.dash-security {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: 24px;
}
.security-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.security-form {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.form-h { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.security-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--ink-mute); }
.security-form input {
  padding: 10px 12px;
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2);
  color: var(--ink);
  font: inherit; font-size: 14px;
}
.security-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(76,201,240,.15); }
.form-note { font-size: 12px; color: var(--ink-mute); line-height: 1.5; }
.twofa-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.twofa-toggle {
  width: 48px; height: 26px; border-radius: 999px;
  background: var(--bg-3); border: 1px solid var(--line-strong);
  cursor: pointer; position: relative; transition: background .2s;
}
.twofa-toggle i {
  position: absolute; left: 3px; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink-mute); transition: all .2s;
}
.twofa-toggle.is-on { background: color-mix(in oklab, var(--emerald) 30%, transparent); border-color: var(--emerald); }
.twofa-toggle.is-on i { left: 24px; background: var(--emerald); box-shadow: 0 0 8px var(--emerald); }

@media (max-width: 980px) {
  .dash-top { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
 * MOBILE OVERHAUL — page-level (2026-05-21, T-11)
 * Tum sayfa-tipi grid'ler, hero, CTA, dash, profile, auth icin mobile
 * coverage. Tekrarli @media query'leri tek alana topla, breakpoint
 * tutarliligi: 1024 / 768 / 480.
 * ═══════════════════════════════════════════════════════════════════ */

/* HERO — fully stacked on mobile, smaller stats, centered actions.
 *
 * 2026-05-21 (T-11 follow-up): "MEZAR MC" mobile'da dev gibi gozukuyordu;
 * font-size'i daha agresif kucult, hero canvas (floating island) mobile'da
 * arkaya at (opacity dustur, scale azalt) — daha az dikkat dagiticı arkaplan. */
@media (max-width: 768px) {
  .hero-night {
    min-height: auto;
    padding: 100px 0 50px;
  }
  .hero-grid { gap: 24px; }
  .hero-left { max-width: 100%; }
  .hero-mega {
    /* desktop: clamp(56px, 9vw, 116px). Mobile: kucult.
     * Tablet (<=768): max 72px. */
    font-size: clamp(40px, 11vw, 72px);
    margin: 12px 0 14px;
    line-height: 0.95;
  }
  .hero-mega .block {
    /* daha kucuk text-shadow — yoksa kucuk yazida ezilmis gozukuyor */
    text-shadow: 2px 2px 0 rgba(0,0,0,0.6), 0 0 30px rgba(76,201,240,.18);
  }
  .hero-mega .block.accent {
    text-shadow: 2px 2px 0 rgba(0,0,0,0.6), 0 0 40px rgba(76,201,240,.5);
  }
  .hero-tag {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.5;
  }
  .hero-ip-row {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
  }
  .hero-ip-row > * { width: 100%; }
  .hero-ip-btn {
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
  }
  .ip-label { font-size: 13px; }
  .ip-copy { font-size: 10px; padding-left: 10px; }
  .hero-meta {
    gap: 8px;
    font-size: 12px;
  }
  .hero-stat-stack {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .hero-stat-stack .stat-tile {
    flex: 1 1 calc(50% - 4px);
    min-width: 130px;
    padding: 10px 12px;
    border-radius: 10px;
  }
  .stat-label { font-size: 8px; margin-bottom: 3px; letter-spacing: 0.12em; }
  .stat-value { font-size: 16px; text-shadow: none; }
  .scroll-cue { display: none; }

  /* Fix #2: floating-island canvas mobile'da arkaya at.
   * Three.js sahnesi tum hero'yu kapliyor — mobile'da yazinin arkasinda
   * daha az dikkat dagitsin: opacity dusur + alt yariya scale dustur.
   * Z-index degismedi (zaten 0, hero-grid 2) — sadece gorsel agirlik azalir. */
  .hero-stage {
    opacity: 0.35;
    transform: scale(0.75);
    transform-origin: 70% 50%;
  }
  /* Stage'in altina vignette ekle — yazi okunabilirligini koru */
  .hero-night::after {
    content: "";
    position: absolute; inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
      radial-gradient(ellipse 80% 50% at 30% 40%, rgba(7,9,13,0.55), transparent 70%);
  }
}
@media (max-width: 480px) {
  .hero-night { padding: 86px 0 36px; }
  .hero-mega {
    /* Cok kucuk ekran (414x896 viewport etc): max 56px.
     * !important ile clamp() reset olmasin diye desktop kuralini override. */
    font-size: clamp(34px, 11vw, 56px) !important;
    margin: 10px 0 12px;
  }
  .hero-tag { font-size: 13px; margin-bottom: 14px; }
  .hero-ip-btn { padding: 9px 11px; }
  .ip-label { font-size: 12.5px; }
  .ip-copy { font-size: 9.5px; }
  .hero-stat-stack {
    gap: 7px;
  }
  .hero-stat-stack .stat-tile {
    padding: 9px 10px;
    min-width: 120px;
    border-radius: 9px;
  }
  .stat-label { font-size: 7.5px; }
  .stat-value { font-size: 15px; }
  /* Floating island daha da geride */
  .hero-stage {
    opacity: 0.25;
    transform: scale(0.6);
  }
}
@media (max-width: 360px) {
  .hero-mega {
    font-size: clamp(28px, 10vw, 44px) !important;
  }
  .hero-stat-stack {
    flex-direction: column;
  }
  .hero-stat-stack .stat-tile {
    flex: 1 1 100%;
    min-width: 0;
  }
}

/* CTA card — full stack on mobile */
@media (max-width: 768px) {
  .cta-card {
    padding: 20px 16px;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 14px;
    border-radius: 14px;
  }
  .cta-card .section-title { font-size: clamp(22px, 5.5vw, 28px) !important; }
  .cta-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }
  .cta-actions > * { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .cta-card { padding: 16px 14px; gap: 12px; border-radius: 12px; }
  .cta-card .section-title { font-size: clamp(20px, 5.4vw, 24px) !important; }
}

/* MODES grid — single column on mobile, smaller padding.
 * 2026-05-21 micro-polish: kartlar hala buyuk duruyordu — padding sertce
 * kucult, border-radius da hafif kucul, mode-name 22→18, mode-art 130→100. */
@media (max-width: 768px) {
  .mode-card { padding: 14px; border-radius: 12px; }
  .mode-art { height: 100px; margin-bottom: 12px; border-radius: 10px; }
  .mode-name { font-size: 18px; margin-bottom: 4px; }
  .mode-card p, .mode-card .mode-desc { font-size: 13px; line-height: 1.5; }
  .modes-grid { gap: 12px; }
}
@media (max-width: 480px) {
  .mode-card { padding: 12px; border-radius: 10px; }
  .mode-art { height: 88px; margin-bottom: 10px; }
  .mode-name { font-size: 16px; }
  .mode-card p, .mode-card .mode-desc { font-size: 12.5px; }
  .modes-grid { gap: 10px; }
}

/* FEATURES grid — already good. just trim. */
@media (max-width: 768px) {
  .feat-card { padding: 14px; border-radius: 12px; }
  .feat-card h4 { font-size: 15px; margin-top: 2px; }
  .feat-card p { font-size: 13px; line-height: 1.5; }
  .features-grid { gap: 10px; }
}
@media (max-width: 480px) {
  .feat-card { padding: 12px; border-radius: 10px; }
  .feat-card h4 { font-size: 14px; }
  .feat-card p { font-size: 12.5px; }
  .features-grid { gap: 9px; }
}

/* VIP grid */
@media (max-width: 768px) {
  .vip-card { padding: 16px 14px 14px; border-radius: 12px; }
  .vip-name { font-size: 15px; }
  .price-num { font-size: 26px; }
  .vip-perks { min-height: 0; }
  .vip-perks li { font-size: 12.5px; }
}
@media (max-width: 480px) {
  .vip-card { padding: 14px 12px 12px; border-radius: 10px; }
  .vip-name { font-size: 14px; }
  .price-num { font-size: 24px; }
  .vip-perks li { font-size: 12px; }
}

/* LEADERBOARD — kart-vari satirlar, podyum daha kompakt */
@media (max-width: 768px) {
  .lb-podium {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 320px;
  }
  .lb-tabs { gap: 6px; }
  .lb-tab { padding: 8px 14px; font-size: 12px; min-height: 38px; }
  .lb-row {
    grid-template-columns: 36px 1fr auto;
    gap: 10px;
    padding: 12px 14px;
  }
  .lb-name { font-size: 13px; }
  .lb-clan { font-size: 11px; }
  .lb-stat { font-size: 13px; }
  .lb-row .avatar-canvas { display: none; }
}

/* SHOP grid — full-width cards on smallest, tighter on small */
@media (max-width: 480px) {
  .shop-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .shop-card { padding: 18px; }
  .shop-art { height: 84px; }
  .shop-foot { flex-wrap: wrap; gap: 8px; }
  .shop-foot .btn { width: 100%; }
}

/* WIKI: side stack — already covered, just tighten padding */
@media (max-width: 768px) {
  .wiki-content { padding: 24px 20px; font-size: 14px; }
  .wiki-content h1 { font-size: 22px; }
  .wiki-content h2 { font-size: 16px; }
  .wiki-side { padding: 14px; }
  /* Tables: scroll horizontally if needed */
  .wiki-content table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* FAQ */
@media (max-width: 768px) {
  .faq-q { padding: 14px 16px; gap: 12px; }
  .faq-q-text { font-size: 14px; }
  .faq-a p { padding: 0 16px 18px 56px; font-size: 13px; }
  .faq-item.is-open .faq-a { max-height: 480px; }
}

/* LAUNCHER */
@media (max-width: 920px) {
  .launcher-layout { gap: 24px; }
}
@media (max-width: 768px) {
  .lw-main { padding: 16px; }
  .lw-server-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }
  .lw-server-card .btn { width: 100%; }
}

/* DASHBOARD — tighter on small */
@media (max-width: 768px) {
  .dash-account {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px 18px;
    gap: 16px;
  }
  .dash-rank, .dash-skin, .dash-security, .dash-purchases {
    padding: 22px 18px;
  }
  .rank-row { justify-content: center; }
  .rank-progress { max-width: 100%; }
  .panel-head { flex-wrap: wrap; gap: 12px; }
  .panel-head .btn { margin-left: 0; width: 100%; }
}
@media (max-width: 480px) {
  .dash-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-block { padding: 14px; }
  .stat-block-value { font-size: 16px; }
}

/* AUTH form — full width on mobile */
@media (max-width: 768px) {
  .auth-form { padding: 22px 18px; }
  .auth-form input { padding: 14px 14px; font-size: 16px; /* >=16 prevents iOS auto-zoom */ }
}

/* Generic: forms inside `.wrap` with inline display:flex
 * (used in PlayerProfile search, Status etc) wrap on mobile */
@media (max-width: 560px) {
  form[onSubmit] input,
  form[onSubmit] button { width: 100%; }
}

/* Inputs: prevent iOS Safari auto-zoom by ensuring >=16px font on focus */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="number"],
  input[type="tel"],
  input[type="url"],
  textarea,
  select {
    font-size: 16px;
  }
}

/* Modals / floating panels — bottom sheet style on mobile.
 * Tweaks panel ozellikle masaüstü-tasarımı; mobile'da sag-alt fixed
 * kalir ama daha kompakt. */
@media (max-width: 768px) {
  .tweaks-panel,
  [class*="tweaks-panel"] {
    right: 8px !important;
    bottom: 8px !important;
    max-width: calc(100vw - 16px) !important;
    max-height: 70vh !important;
    overflow-y: auto;
  }
}

/* Nav account dropdown — right-align with viewport edge */
@media (max-width: 560px) {
  .nav-account > div[role="menu"] {
    right: -8px !important;
    min-width: 200px !important;
  }
}

/* PlayerProfilePage stat grid — already uses minmax(180px, 1fr) which
 * collapses naturally. Ensure stat icons don't overflow. */
@media (max-width: 480px) {
  /* Force inline-styled profile header into single column */
  main .reveal[style*="flex-start"][style*="20"] { gap: 16px !important; }
}

/* CookieBanner — full width on small */
@media (max-width: 560px) {
  [class*="cookie-banner"],
  div[role="dialog"][style*="bottom"] {
    left: 8px !important;
    right: 8px !important;
    max-width: calc(100vw - 16px) !important;
  }
}

/* TABLE / scrollable rows generic fallback */
@media (max-width: 768px) {
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
}

/* Toast and floating widgets — keep within viewport */
@media (max-width: 480px) {
  div[style*="position: fixed"][style*="bottom"] {
    max-width: calc(100vw - 24px);
  }
}

