:root {
  color-scheme: dark;
  --background: #0b0a12;
  --header: #0e0c16;
  --surface: #151220;
  --surface-hover: #1c162b;
  --line: #302740;
  --text: #f8f5fd;
  --muted: #b8afc8;
  --accent: #c2a2ff;
  --accent-strong: #a56af5;
  --accent-soft: #29203c;
  --hero: #19112b;
  --hero-glow: #6436a16b;
  --input: #151020;
  --gold: #f5cf85;
  --silver: #d6d9f1;
  --bronze: #edb291;
  --button: #cfb4ff;
  --button-text: #211033;
}

:root[data-bisor-theme="light"] {
  color-scheme: light;
  --background: #f7f4fa;
  --header: #fdfbff;
  --surface: #fff;
  --surface-hover: #f6effe;
  --line: #e5daef;
  --text: #20172c;
  --muted: #61546e;
  --accent: #6832a8;
  --accent-strong: #7836c0;
  --accent-soft: #f0e7fb;
  --hero: #f0e6fb;
  --hero-glow: #c2a0f780;
  --input: #fdfaff;
  --gold: #73521b;
  --silver: #4e557e;
  --bronze: #793f22;
  --button: #6b35a7;
  --button-text: #fff;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 15px/1.6 system-ui, sans-serif;
}

a { color: var(--accent); }
button, input { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; }

.shell {
  width: min(1100px, calc(100% - 48px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 3;
  top: 10px;
  left: 12px;
  padding: 8px 16px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--button);
  color: var(--button-text);
}

.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: var(--header);
}

.header-inner { display: flex; min-height: 66px; align-items: center; gap: 17px; }
.brand { display: flex; min-width: 124px; align-items: center; }
.brand img { display: block; width: 124px; height: auto; }
.header-section, .header-back { text-decoration: none; }
.header-section { padding-left: 17px; border-left: 1px solid var(--line); color: var(--text); font-weight: 670; }
.header-back { margin-left: auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; font-weight: 650; }
.header-back:hover, .header-back:focus-visible { background: var(--accent-soft); }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 32px;
  padding: 43px clamp(24px, 5vw, 60px) 47px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 91% 14%, var(--hero-glow), transparent 58%),
    linear-gradient(122deg, var(--surface) 5%, var(--hero) 100%);
}

.hero-content { position: relative; z-index: 1; max-width: 645px; }
.hero h1 { margin: 0; font-size: clamp(34px, 6.2vw, 62px); line-height: 1.05; letter-spacing: -.057em; }
.hero h1 span { color: var(--accent); }
.hero p { max-width: 530px; margin: 15px 0 23px; color: var(--muted); font-size: clamp(14px, 2vw, 17px); }

.orbit {
  position: absolute;
  right: -25px;
  top: -71px;
  display: grid;
  width: 378px;
  height: 378px;
  place-items: center;
  pointer-events: none;
  transform: rotate(-30deg);
  opacity: .52;
}

.orbit i { position: absolute; width: 88%; height: 43%; border: 1px solid var(--accent-strong); border-radius: 50%; }
.orbit i:nth-child(2) { width: 75%; height: 61%; opacity: .57; }
.orbit i:nth-child(3) { width: 65%; height: 83%; opacity: .36; }
.orbit::after {
  position: absolute;
  top: 34%;
  right: 13%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 23px var(--accent-strong);
  content: "";
}

.search-wrap {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 12px;
  padding-inline: 16px 8px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--input);
}

.search-wrap:focus-within { border-color: var(--accent-strong); }
.search-icon { position: relative; flex: 0 0 15px; height: 15px; border: 1.6px solid var(--muted); border-radius: 50%; }
.search-icon::after { position: absolute; right: -4px; bottom: -2px; width: 6px; height: 1.6px; transform: rotate(48deg); background: var(--muted); content: ""; }
.search-wrap input { min-width: 0; width: 100%; min-height: 51px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 16px; }
.search-wrap input::placeholder { color: var(--muted); opacity: 1; }
.search-wrap input::-webkit-search-cancel-button { display: none; }
.search-wrap button { flex: 0 0 36px; min-height: 36px; border: 0; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 24px; line-height: 1; cursor: pointer; }

.guide { display: grid; grid-template-columns: 216px minmax(0, 1fr); align-items: start; gap: 32px; margin-block: 32px 64px; }
.toc { position: sticky; top: 91px; padding: 13px 11px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.toc h2 { margin: 4px 11px 7px; color: var(--muted); font-size: 13px; font-weight: 680; }
.toc ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.toc a { display: flex; min-height: 41px; align-items: center; padding: 7px 10px; border-radius: 9px; color: var(--text); font-size: 14px; text-decoration: none; }
.toc a:hover, .toc a[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); }
.guide-body { display: grid; min-width: 0; }
.guide-body:not([data-tabs-ready]) > [data-help-topic]:not(#soru-hakki):not(:target) { display: none; }
.guide-body:not([data-tabs-ready]):has(> [data-help-topic]:target:not(#soru-hakki)) > #soru-hakki { display: none; }
.topic { display: grid; gap: 8px; min-width: 0; }
.topic-head { margin-bottom: 8px; }
.topic h2, .contact h2, .search-results h2 { margin: 0; font-size: clamp(23px, 3vw, 31px); line-height: 1.2; letter-spacing: -.033em; }
.topic-head p, .contact p, .search-results p { margin: 8px 0 0; color: var(--muted); }
.topic-head strong { color: var(--text); }
.search-results ul { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.search-results ul:empty { display: none; }
.search-results a { display: grid; gap: 2px; padding: 9px 11px; border-radius: 9px; color: var(--text); font-weight: 650; text-decoration: none; }
.search-results a:hover { background: var(--surface-hover); color: var(--accent); }
.search-results a small { color: var(--muted); font-size: 12px; font-weight: 500; }

.panel, details { border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.panel { padding: 20px 22px; }
.panel h3 { margin: 0 0 10px; font-size: 17px; line-height: 1.35; }
.rank-panel { padding: 0; overflow: hidden; }
.rank-panel table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; font-variant-numeric: tabular-nums; }
.rank-panel caption:not(.sr-only) { padding: 13px clamp(8px, 2vw, 22px); text-align: left; font-size: 17px; font-weight: 670; }
.rank-panel th, .rank-panel td { padding: 10px clamp(8px, 2vw, 22px); }
.rank-panel thead { background: var(--accent-soft); color: var(--accent); }
.rank-panel thead th { font-size: 12px; font-weight: 670; }
.rank-panel tbody tr + tr { border-top: 1px solid var(--line); }
.rank-panel tbody td { color: var(--muted); }
.rank-panel tbody th { font-weight: 670; }
.quota { display: inline-grid; min-width: 34px; min-height: 27px; place-items: center; padding-inline: 6px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); }

summary {
  display: flex;
  min-height: 51px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 20px;
  border-radius: 14px;
  font-weight: 645;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker { display: none; }
summary:hover { background: var(--surface-hover); }
summary::after { flex: 0 0 8px; height: 8px; margin-right: 2px; margin-bottom: 4px; transform: rotate(45deg); border: solid var(--accent); border-width: 0 1.6px 1.6px 0; content: ""; }
details[open] summary::after { margin-top: 6px; transform: rotate(225deg); }
.answer { padding: 0 20px 15px; color: var(--muted); }
.answer p { margin: 0; }
.answer p + p { margin-top: 9px; }
.answer strong { color: var(--text); }

.muted { color: var(--muted); }
.xp-panel p { margin: 5px 0 0; }
.xp-panel .text-link { margin-top: 10px; }
.xp-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 18px; }
#xp-unvan { color: var(--accent); font-size: 20px; }
#xp-kalan { font-size: 13px; }
#xp-toplam { font-variant-numeric: tabular-nums; }
progress { display: block; width: 100%; height: 9px; margin: 10px 0 6px; overflow: hidden; border: 0; border-radius: 10px; background: var(--accent-soft); accent-color: var(--accent-strong); }
progress::-webkit-progress-bar { background: var(--accent-soft); border-radius: 10px; }
progress::-webkit-progress-value { background: var(--accent-strong); border-radius: 10px; }
progress::-moz-progress-bar { background: var(--accent-strong); border-radius: 10px; }
.earn-list { margin: 0; }
.earn-list div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 0; }
.earn-list div + div { border-top: 1px solid var(--line); }
.earn-list dt { color: var(--muted); }
.earn-list dd { margin: 0; color: var(--accent); font-weight: 720; white-space: nowrap; }
.text-link { display: inline-flex; align-items: baseline; gap: 5px; color: var(--accent); font-weight: 670; text-underline-offset: 3px; }
.earn-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; }
.quality-panel p { margin: 0; color: var(--muted); }
.quality-panel p + p { margin-top: 8px; }
.quality-panel strong { color: var(--text); }

.rewards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.rewards li { min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--header); color: var(--gold); }
.rewards li:nth-child(2) { color: var(--silver); }
.rewards li:nth-child(3) { color: var(--bronze); }
.rewards span, .rewards strong { display: block; }
.rewards span { font-size: 12px; }
.rewards strong { font-size: clamp(15px, 2.7vw, 22px); line-height: 1.4; letter-spacing: -.025em; white-space: nowrap; }
.reward-panel p { margin: 12px 0 8px; color: var(--muted); }
.rules-list { display: grid; gap: 6px; margin: 0 0 12px; padding-left: 20px; color: var(--muted); }
.rules-list li::marker { color: var(--accent); }
.contact { background: linear-gradient(145deg, var(--surface), var(--hero)); }
.contact-links { display: flex; align-items: center; flex-wrap: wrap; gap: 11px 18px; margin-top: 16px; }
.primary-link { display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 14px; border-radius: 10px; background: var(--button); color: var(--button-text); font-weight: 720; text-decoration: none; }
.primary-link:hover { filter: brightness(1.08); }
.site-footer { border-top: 1px solid var(--line); background: var(--header); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 13px; padding-block: 22px; }
.footer-brand { color: var(--text); font-size: 17px; font-weight: 780; text-decoration: none; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 7px 15px; }
.footer-inner nav a { color: var(--muted); font-size: 13px; text-decoration: none; }
.footer-inner nav a:hover { color: var(--accent); text-decoration: underline; }

@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .hero { margin-top: 19px; border-radius: 19px; }
  .orbit { right: -110px; top: -100px; opacity: .28; }
  .guide { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 18px; }
  .toc { position: static; }
  .toc ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc a { min-height: 42px; }
}

@media (max-width: 420px) {
  html { scroll-padding-top: 77px; }
  .header-inner { min-height: 60px; gap: 11px; }
  .brand { min-width: 96px; }
  .brand img { width: 96px; }
  .header-section { padding-left: 11px; font-size: 13px; }
  .header-back { padding: 7px 8px; }
  .hero { padding: 28px 17px; }
  .hero p { margin: 13px 0 18px; }
  .search-wrap { padding-left: 11px; gap: 9px; }
  .search-wrap input { font-size: 16px; }
  .panel { padding: 17px 14px; }
  .rank-panel { padding: 0; }
  .rank-panel table { font-size: 12px; }
  .rank-panel th, .rank-panel td { padding: 9px 7px; }
  .rank-panel thead th { font-size: 11px; }
  .quota { min-width: 28px; }
  summary { padding-inline: 14px; }
  .answer { padding-inline: 14px; }
  .rewards li { padding: 10px 7px; }
}
