/* =========================================================
   Mestan2 Wiki — tema
   Gece zemini + parşömen sayfa + bordo başlık şeritleri + altın vurgu.
   ========================================================= */
:root {
  color-scheme: dark;
  --night: #0e0805;
  --gold: #e0b25a;
  --gold-hi: #f6d98f;
  --gold-lo: #8c6428;
  --maroon: #6c130e;
  --maroon-hi: #962015;
  --maroon-dk: #3e0906;
  --sheet: #efdab0;
  --sheet-2: #f7e9c9;
  --sheet-3: #e8cf9c;
  --line: #bf9657;
  --line-soft: #d8b77b;
  --ink: #2a180a;
  --ink-soft: #6a4a2a;
  --link: #7a1a10;
  --cream: #f3e6c8;
  --cream-dim: #c8b28a;
  --slot: radial-gradient(circle at 50% 45%, #3a2616, #140a05 80%);
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--night); scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--ink); font: 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.ico { width: 22px; height: 22px; flex: none; }
.ico.sm { width: 16px; height: 16px; }
.ico.xs { width: 14px; height: 14px; }
.ico.xl { width: 56px; height: 56px; }
.ico.ph { width: 26px; height: 26px; color: var(--gold); opacity: .85; }

/* ---------- Üst bar ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: linear-gradient(#211108, #140a04); border-bottom: 2px solid var(--gold-lo);
  box-shadow: 0 1px 0 rgba(246, 217, 143, .2), 0 6px 16px rgba(0, 0, 0, .55);
}
.topbar-in { max-width: 1240px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 18px; }
.top-brand { font: 700 20px/1 var(--display); color: var(--gold-hi); text-decoration: none; white-space: nowrap; letter-spacing: .02em; }
.top-brand b { color: #e2452f; }
.top-brand span { color: var(--cream-dim); font-weight: 600; }
.top-search { flex: 1; display: flex; max-width: 560px; min-width: 0; }
.top-search input {
  flex: 1; min-width: 0; padding: 8px 12px; font: 15px var(--body); color: var(--ink);
  background: #fbf3e0; border: 1px solid var(--gold-lo); border-right: 0; border-radius: 3px 0 0 3px;
}
.top-search input:focus { outline: none; background: #fff; }
.top-search button { width: 40px; display: grid; place-items: center; background: var(--maroon); color: var(--gold-hi); border: 1px solid var(--gold-lo); border-radius: 0 3px 3px 0; cursor: pointer; }
.top-search button svg { width: 17px; height: 17px; }
.top-search button:hover { background: var(--maroon-hi); }
.top-nav { display: flex; gap: 18px; margin-left: auto; }
.top-nav a { color: var(--cream-dim); text-decoration: none; font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.top-nav a:hover { color: var(--gold-hi); }
.top-nav a.cta { color: var(--gold-hi); }
.menu-btn { display: none; width: 38px; height: 34px; padding: 7px 8px; background: none; border: 1px solid var(--gold-lo); border-radius: 3px; cursor: pointer; flex-direction: column; justify-content: space-between; flex: none; }
.menu-btn span { display: block; height: 2px; background: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; display: grid; place-items: center; padding: 30px 16px 54px;
  background:
    radial-gradient(55% 80% at 50% 120%, rgba(150, 32, 21, .55), transparent 70%),
    radial-gradient(35% 60% at 50% 45%, rgba(224, 178, 90, .13), transparent 70%),
    radial-gradient(120% 100% at 50% 0%, #2a150a 0%, #0e0805 75%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 90' preserveAspectRatio='none'%3E%3Cpath fill='%230e0805' d='M0 90V55l90-25 70 18 100-38 120 42 60-14 55 12 40-24h8l-10 10h32l-10-10h8l38 24 80-30 100 34 80-18 60 9 18-14h6l-8 8h28l-8-8h6l22 16 80-26 110 32 70-14v48z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
#embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.brand { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 10px; text-decoration: none; }
.brand img { width: min(400px, 70vw); height: auto; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .75)); }
.brand .wiki-tag { font: 700 clamp(20px, 3.4vw, 34px)/1 var(--display); letter-spacing: .12em; color: var(--cream); opacity: .85; margin-bottom: 8%; text-shadow: 0 2px 0 #000, 0 0 16px rgba(0, 0, 0, .8); }

/* ---------- İskelet: kenar çubuğu + sayfa ---------- */
.shell { max-width: 1240px; margin: -26px auto 0; padding: 0 16px 40px; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 18px; align-items: start; position: relative; z-index: 2; }
.sidebar {
  position: sticky; top: 64px; display: grid; gap: 14px; padding: 14px 14px 16px;
  background: linear-gradient(#1f1108, #150b05); border: 1px solid var(--gold-lo); border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6), 0 10px 24px rgba(0, 0, 0, .5);
  max-height: calc(100vh - 80px); overflow: auto; scrollbar-width: thin;
}
.sb-sec h3 { margin: 0 0 6px; padding-bottom: 4px; font: 700 13px var(--display); letter-spacing: .06em; color: var(--gold-hi); border-bottom: 1px solid var(--gold-lo); }
.sb-sec ul { list-style: none; margin: 0; padding: 0; display: grid; }
.sb-sec a { display: block; padding: 3px 6px; margin: 0 -6px; font-size: 14px; color: var(--cream-dim); text-decoration: none; border-radius: 2px; }
.sb-sec a:hover { color: var(--gold-hi); background: rgba(224, 178, 90, .08); }
.sb-sec a.on { color: var(--gold-hi); background: rgba(150, 32, 21, .45); }

.sheet {
  min-width: 0; padding: clamp(16px, 2.6vw, 30px);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .25 0 0 0 0 .1 0 0 0 .14 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(var(--sheet), #ead2a2);
  border: 1px solid var(--gold-lo); border-radius: 4px;
  box-shadow: 0 0 0 3px #1a0e07, 0 0 0 4px var(--gold-lo), 0 18px 44px rgba(0, 0, 0, .65);
  scroll-margin-top: 60px;
}

/* ---------- Sayfa başlığı ---------- */
.page-head { margin-bottom: 18px; }
.page-title { margin: 0; padding-bottom: 6px; font: 700 clamp(24px, 3vw, 32px)/1.2 var(--display); color: var(--ink); border-bottom: 2px solid var(--maroon); text-wrap: balance; }
.page-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.btn-back { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 6px; font-size: 13.5px; font-weight: 700; color: var(--link); text-decoration: none; border: 1px solid var(--line); border-radius: 3px; background: var(--sheet-2); }
.btn-back:hover { background: #fff6e2; }
.page-sub { font-size: 14px; color: var(--ink-soft); }
.page-sub a { color: var(--link); font-weight: 700; }

/* ---------- Anasayfa ---------- */
.welcome {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; margin-bottom: 16px;
  padding: 14px 18px; background: var(--sheet-2); border: 1px solid var(--line); border-left: 4px solid var(--maroon); border-radius: 3px;
}
.welcome h2 { margin: 0 0 4px; font: 700 20px var(--display); color: var(--maroon); }
.welcome p { margin: 0; max-width: 62ch; color: var(--ink-soft); }
.stats { display: grid; grid-template-columns: repeat(4, auto); gap: 4px 18px; margin: 0; text-align: center; }
.stats dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.stats dd { margin: 0; font: 700 22px var(--display); color: var(--maroon); font-variant-numeric: tabular-nums; }

.portal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.pcol { display: grid; gap: 14px; min-width: 0; }
.pbox { background: var(--sheet-2); border: 1px solid var(--line); border-radius: 6px 6px 3px 3px; overflow: hidden; box-shadow: 0 2px 0 rgba(90, 50, 10, .12); }
.pbox-h, .panel-h, .info-name {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0;
  padding: 7px 12px; font: 700 15px/1.2 var(--display); letter-spacing: .04em; color: var(--gold-hi); text-align: center;
  background: linear-gradient(var(--maroon-hi), var(--maroon) 55%, var(--maroon-dk));
  border-bottom: 1px solid #2a0503; text-shadow: 0 1px 0 #000;
}
.orn { width: 9px; height: 9px; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 0 2px var(--maroon-dk), 0 0 0 3px var(--gold-lo); flex: none; }
.pbox-b { padding: 10px 12px 12px; }
.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.plist.two { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px 10px; }
.plist.mobs { max-height: 420px; overflow: auto; scrollbar-width: thin; }
.plist a { display: flex; align-items: center; gap: 8px; padding: 3px 4px; text-decoration: none; color: var(--link); font-weight: 700; font-size: 14.5px; border-radius: 2px; }
.plist a:hover { background: rgba(150, 32, 21, .08); }
.plist a:hover .pl-name { text-decoration: underline; }
.pl-ico { width: 32px; height: 32px; flex: none; display: grid; place-items: center; overflow: hidden; background: var(--slot); border: 1px solid #5c3f1f; border-radius: 3px; color: var(--gold); }
.pl-ico img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pl-ico img.px { width: 28px; height: auto; max-height: 30px; image-rendering: pixelated; }
.plist.mobs .pl-ico { width: 34px; height: 38px; }
.pl-name { flex: 1; min-width: 0; line-height: 1.25; }
.pl-meta { font-size: 12.5px; font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
.ctable { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ccol { display: grid; gap: 4px; align-content: start; }
.ccol-h { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 4px 2px; font: 700 12px var(--display); color: #fff3d6; background: linear-gradient(color-mix(in srgb, var(--tone) 80%, #fff 12%), var(--tone)); border-radius: 3px; }
.ccol a { display: grid; justify-items: center; gap: 2px; padding: 4px 2px; font-size: 12.5px; font-weight: 700; color: var(--link); text-decoration: none; border-radius: 2px; }
.ccol a:hover { background: rgba(150, 32, 21, .08); text-decoration: underline; }
.slot { width: 40px; height: 44px; display: grid; place-items: center; background: var(--slot); border: 1px solid #5c3f1f; border-radius: 3px; color: var(--gold); overflow: hidden; }
.slot img.px { width: 32px; height: auto; max-height: 42px; image-rendering: pixelated; object-fit: contain; }

/* ---------- Liste ---------- */
.list-tools { display: grid; gap: 10px; margin-bottom: 14px; }
.field { display: flex; align-items: center; gap: 8px; padding: 0 12px; background: #fbf3e0; border: 1px solid var(--line); border-radius: 3px; color: var(--ink-soft); }
.field input { flex: 1; min-width: 0; padding: 9px 0; background: none; border: 0; outline: none; color: var(--ink); font: 15px var(--body); }
.field:focus-within { border-color: var(--maroon); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 4px 12px; font-size: 13px; font-weight: 700; text-decoration: none; color: var(--link); border: 1px solid var(--line); border-radius: 99px; background: var(--sheet-2); }
.chip:hover { background: #fff6e2; }
.chip.on { background: var(--maroon); color: var(--gold-hi); border-color: var(--maroon-dk); }
.rows { display: grid; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: var(--sheet-2); }
.row { display: flex; align-items: center; gap: 12px; padding: 6px 12px; text-decoration: none; color: var(--ink); border-top: 1px solid var(--line-soft); }
.row:first-child { border-top: 0; }
.row:nth-child(even) { background: rgba(232, 207, 156, .45); }
.row:hover { background: #fff3d8; }
.row:hover .row-main b { color: var(--maroon-hi); text-decoration: underline; }
.row-ico { width: 40px; height: 40px; display: grid; place-items: center; flex: none; background: var(--slot); border: 1px solid #5c3f1f; border-radius: 3px; color: var(--gold); overflow: hidden; }
.row-ico.has-img { height: 48px; }
.row-ico.has-img img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 2px; }
.row-ico img.item-img { width: 32px !important; height: auto !important; max-height: 36px; object-fit: contain; image-rendering: pixelated; }
.row-main { flex: 1; min-width: 0; display: grid; }
.row-main b { font-size: 15.5px; color: var(--link); }
.row-main small { color: var(--ink-soft); font-size: 13px; }
.row-lv { font-size: 13px; color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.row-lv b { color: var(--maroon); font-size: 15px; }
.empty { text-align: center; color: var(--ink-soft); font-style: italic; padding: 22px; margin: 0; }
.empty.sm { padding: 10px; font-size: 14px; }
.more-btn { display: block; margin: 14px auto 0; padding: 8px 20px; font: 700 14px var(--body); color: var(--gold-hi); background: linear-gradient(var(--maroon-hi), var(--maroon)); border: 1px solid var(--maroon-dk); border-radius: 3px; cursor: pointer; }
.more-btn:hover { filter: brightness(1.12); }

/* ---------- Detay sayfaları ---------- */
.detail { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; }
.detail > *, .stack > *, .article-wrap > * { min-width: 0; }
.stack { display: grid; gap: 16px; min-width: 0; }
.panel { background: var(--sheet-2); border: 1px solid var(--line); border-radius: 6px 6px 3px 3px; overflow: hidden; padding: 0 14px 14px; box-shadow: 0 2px 0 rgba(90, 50, 10, .12); }
.panel-h, .info-name { margin: 0 -14px 10px; }
.panel-h { font-size: 16px; letter-spacing: .06em; }
.info-name span { color: #ffb08f; margin-left: 2px; }
.panel-sub { margin: -2px 0 12px; text-align: center; font-size: 13px; font-style: italic; color: var(--ink-soft); }
.info-ico { display: grid; place-items: center; min-height: 120px; margin: 4px 0 8px; padding: 10px 0; background: var(--slot); border: 1px solid #5c3f1f; border-radius: 3px; color: var(--gold); }
.info-ico.boss { color: #e2452f; }
.info-ico.has-img img { max-height: 200px; width: auto; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .7)); }
.info-ico.metin-ico.has-img img { animation: metin-float 5s ease-in-out infinite; }
@keyframes metin-float { 50% { transform: translateY(-6px); } }
.item-img.lg { width: 64px !important; height: auto !important; max-height: 192px; image-rendering: pixelated; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .7)); }
.item-img.sm { width: 22px; height: 22px; object-fit: contain; image-rendering: pixelated; flex: none; }
.kv { display: grid; grid-template-columns: auto 1fr; margin: 0; }
.kv dt, .kv dd { padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.pager { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: 13px; }
.pager a { color: var(--link); font-weight: 700; text-decoration: none; }
.pager a:hover { text-decoration: underline; }
.plus-chips { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin: 2px 0 10px; }
.pchip { min-width: 32px; padding: 3px 5px; text-align: center; font: 700 12px/1 var(--body); text-decoration: none; color: var(--link); border: 1px solid var(--line); border-radius: 3px; background: #fbf3e0; }
.pchip:hover { border-color: var(--maroon); }
.pchip.on { background: var(--maroon); color: var(--gold-hi); border-color: var(--maroon-dk); }
.pending { margin: 10px 0 0; font-size: 13px; color: var(--ink-soft); display: flex; gap: 8px; align-items: flex-start; }
.pending .ico { color: var(--maroon); margin-top: 3px; }
.pending b { color: var(--maroon); }

/* ---------- Tablolar ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 3px; }
.wtable { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; background: #fbf1da; }
.wtable th, .wtable td { padding: 8px 10px; border: 1px solid var(--line-soft); white-space: nowrap; }
.wtable thead th { background: linear-gradient(var(--maroon-hi), var(--maroon)); color: var(--gold-hi); font-weight: 700; border-color: var(--maroon-dk); }
.wtable th.cur { background: var(--gold) !important; color: var(--maroon-dk); }
.wtable.grid td { text-align: center; }
.wtable.grid thead th + th { text-align: center; }
.wtable tbody th { text-align: left; font-weight: 700; background: var(--sheet-3); color: var(--ink); }
.wtable tbody tr:nth-child(even) td { background: rgba(232, 207, 156, .35); }
.wtable td.yang { color: var(--maroon); font-weight: 700; }

/* ---------- Eşya kartları ---------- */
.igroup + .igroup { margin-top: 14px; }
.src-h { margin: 0 0 8px; font: 700 13.5px var(--display); letter-spacing: .05em; color: var(--maroon); }
.igroup .src-h { display: flex; justify-content: space-between; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.igroup .src-h span { font-family: var(--body); color: var(--ink-soft); font-size: 13px; }
.igrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 8px; }
.igrid.wide { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.icard {
  position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; padding: 8px 6px;
  text-decoration: none; color: var(--ink); text-align: center; background: #fbf1da; border: 1px solid var(--line-soft); border-radius: 3px;
  transition: border-color .15s, background .15s, transform .15s;
}
.icard:hover { border-color: var(--maroon); background: #fff6e2; transform: translateY(-1px); }
.icard-img { width: 76px; height: 84px; display: grid; place-items: center; background: var(--slot); border: 1px solid #5c3f1f; border-radius: 3px; color: var(--gold); }
.icard-img img.item-img { width: 64px !important; height: auto !important; max-height: 80px; object-fit: contain; image-rendering: pixelated; }
.icard-name { font-size: 12.5px; line-height: 1.25; font-weight: 700; color: var(--link); text-wrap: balance; }
.icard:hover .icard-name { text-decoration: underline; }
.icard-cost { font-size: 11.5px; line-height: 1.3; color: var(--ink-soft); }
.badge { position: absolute; top: 5px; right: 5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center; font: 700 11px/1 var(--body); font-variant-numeric: tabular-nums; color: var(--gold-hi); background: var(--maroon); border: 1px solid var(--maroon-dk); }

/* ---------- Kaynak listeleri ---------- */
.src-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.src-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.src-col { background: #fbf1da; border: 1px solid var(--line-soft); border-radius: 3px; padding: 10px; }
.src-col .src-h { text-align: center; padding-bottom: 6px; border-bottom: 1px solid var(--line-soft); }
.src { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.src li { padding: 6px 8px; background: var(--sheet-2); border-left: 3px solid var(--maroon); border-radius: 2px; font-size: 14px; }
.src li:not(.shop-li) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.src a { display: inline-flex; align-items: center; gap: 7px; min-width: 0; text-decoration: none; font-weight: 700; color: var(--link); }
.src a:hover { text-decoration: underline; }
.src .ico { color: var(--maroon); }
.src .meta { white-space: nowrap; color: var(--ink-soft); font-size: 12.5px; }
.qty { color: var(--maroon); font-weight: 700; }
.shop-li { display: grid; gap: 2px; }
.shop-li small { color: var(--ink-soft); font-size: 12.5px; line-height: 1.4; }
.shop-li small a { display: inline; }
.yang { color: var(--maroon); }
.mob-mini { width: 22px; height: 26px; object-fit: contain; flex: none; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .4)); }

/* ---------- Rehber / makale ---------- */
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 16px; align-items: start; }
.article { padding: 18px clamp(16px, 3vw, 28px) 22px; font-size: 16.5px; }
.article > * { max-width: 68ch; }
.article h2 { font: 700 20px/1.3 var(--display); margin: 26px 0 8px; color: var(--maroon); padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.article .lead { font-size: 18px; }
.article code { background: rgba(108, 19, 14, .08); padding: 1px 5px; border-radius: 3px; font-size: .9em; }
.article .table-wrap { max-width: none; }
.note { padding: 10px 14px; margin: 16px 0; border-left: 3px solid var(--gold-lo); background: rgba(224, 178, 90, .22); font-size: 15px; }
.note.warn { border-color: var(--maroon); background: rgba(150, 32, 21, .08); }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 8px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--maroon); color: var(--gold-hi); font: 700 13px var(--display); }
details { border-bottom: 1px solid var(--line); padding: 8px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 16.5px; color: var(--link); }
.side { padding-bottom: 10px; }
.side-h { margin: 0 -14px 8px; padding: 7px 12px; font: 700 14px var(--display); color: var(--gold-hi); text-align: center; background: linear-gradient(var(--maroon-hi), var(--maroon)); }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.side-list a { display: flex; align-items: center; gap: 8px; padding: 5px 4px; text-decoration: none; font-size: 14px; font-weight: 700; color: var(--link); }
.side-list a .ico { color: var(--maroon); }
.side-list a:hover { text-decoration: underline; }

/* ---------- Alt bilgi ---------- */
.footer { text-align: center; padding: 6px 16px 30px; color: #8a765a; font-size: 13px; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1100px) {
  .portal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal .pcol:last-child { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .src-grid.three { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; top: 52px; left: 0; bottom: 0; width: min(280px, 86vw); max-height: none; z-index: 40; border-radius: 0;
    transform: translateX(-105%); transition: transform .25s;
  }
  body.menu-open .sidebar { transform: none; }
  .menu-btn { display: flex; }
  .top-nav { display: none; }
  .detail, .article-wrap { grid-template-columns: 1fr; }
  .welcome { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .portal, .portal .pcol:last-child { grid-template-columns: 1fr; }
  .top-brand span { display: none; }
  .stats { grid-template-columns: repeat(2, auto); justify-content: start; }
  .src-grid { grid-template-columns: 1fr; }
  .igrid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .brand { flex-direction: column; align-items: center; gap: 0; }
  .brand .wiki-tag { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Anasayfa kutu düzeni (görünür kutu sayısına göre) */
.portal { display: grid; gap: 14px; align-items: start; }
.portal.cols-1 { grid-template-columns: 1fr; }
.portal.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.portal.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.portal .plist.mobs { max-height: 460px; }
@media (max-width: 760px) { .portal.cols-2, .portal.cols-3 { grid-template-columns: 1fr; } }

/* ---------- Duyuru + Discord ---------- */
.hero { padding-bottom: 60px; gap: 16px; }
.notice {
  position: relative; z-index: 1; max-width: 760px; display: flex; align-items: center; gap: 16px;
  padding: 12px 16px; background: rgba(20, 10, 4, .78); border: 1px solid var(--gold-lo); border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .5); backdrop-filter: blur(2px);
}
.notice:empty { display: none; }
.notice p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--cream); text-align: center; text-wrap: pretty; }
.dc-btn { display: inline-flex; align-items: center; gap: 6px; }
.dc-btn .dc { width: 18px; height: 18px; }
.top-nav a.dc-btn { color: #aab4ff; }
.top-nav a.dc-btn:hover { color: #d3d8ff; }
.dc-btn.big {
  flex: none; padding: 9px 14px; font: 700 14.5px var(--body); color: #fff; text-decoration: none; white-space: nowrap;
  background: #5865f2; border: 1px solid #3c45b5; border-radius: 4px; box-shadow: 0 2px 0 #2d3490;
}
.dc-btn.big:hover { background: #6974f5; }
@media (max-width: 640px) { .notice { flex-direction: column; } }
