/* ==========================================================
   HashCube Network — ana sayfa stilleri
   Renkler Minecraft malzemelerinden: deepslate, taş, çimen, toprak, altın, elmas
   ========================================================== */

:root {
  --deepslate: #18202b;
  --deepslate-2: #141a23;
  --stone: #222c38;
  --stone-hi: #2c3846;
  --stone-edge: #3a4859;
  --grass: #6abe30;
  --grass-dark: #4a8f22;
  --grass-ink: #10200a;
  --grass-hover: #7bd13c;
  --online: #6abe30;
  --line-dark: #0e131a;
  /* çimen bloğu kenarı */
  --edge-top: #6abe30;
  --edge-under: #4a8f22;
  --edge-body: #7a5233;
  --edge-dark: #5e3e26;
  --edge-light: #94683f;
  --dirt: #7a5233;
  --gold: #f2b631;
  --diamond: #5fd8e6;
  --redstone: #e0533d;
  --text: #eef1f5;
  --muted: #9aa7b6;

  --pixel: 'Pixelify Sans', 'Rubik', system-ui, sans-serif;
  --body: 'Rubik', system-ui, sans-serif;

  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--deepslate);
  color: var(--text);
  font: 400 1rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
code { font-family: var(--body); }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px;
  background: var(--grass); color: var(--grass-ink); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--diamond); outline-offset: 2px; }

/* ---------- Butonlar: oyun içi buton gibi, alt kenarı kalın ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px;
  border: 0; border-radius: 3px;
  font: 700 1.0625rem/1 var(--pixel); letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .28), inset 0 2px 0 rgba(255, 255, 255, .22);
}
.btn:active { box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .28), inset 0 2px 0 rgba(0, 0, 0, .15); transform: translateY(2px); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--grass { background: var(--grass); color: var(--grass-ink); }
.btn--grass:hover { background: var(--grass-hover); }
.btn--stone { background: var(--stone-hi); color: var(--text); }
.btn--stone:hover { background: var(--stone-edge); }

/* ---------- Üst bar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--deepslate-2);
  border-bottom: 2px solid var(--line-dark);
}
.topbar__inner { display: flex; align-items: center; gap: 32px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo { width: 44px; height: 44px; image-rendering: pixelated; }
.logo--img { width: auto; height: 48px; image-rendering: auto; filter: drop-shadow(0 2px 6px rgba(140, 70, 220, .35)); }
.brand__name { font: 600 1.1875rem/1 var(--body); letter-spacing: -.01em; }

.menu { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 24px; }
.menu__links { display: flex; gap: 4px; }
.menu__links a {
  display: block; padding: 8px 12px;
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: .9375rem;
  border-radius: 3px;
}
.menu__links a:hover { color: var(--text); background: var(--stone); }
.menu__links a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -3px 0 var(--grass); border-radius: 0; }

.menu__account { display: flex; align-items: center; gap: 18px; }
.link-quiet { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .9375rem; }
.link-quiet:hover { color: var(--text); }

.menu-btn {
  display: none; margin-left: auto; padding: 10px;
  background: var(--stone); color: var(--text); border: 0; border-radius: 3px; cursor: pointer;
}

.demo-note {
  margin-block: 0; padding: 8px 0; font-size: .875rem; color: var(--gold);
}

/* ---------- Hero ---------- */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(78vh, 680px);
  display: flex; flex-direction: column; justify-content: flex-end;
  background: #2b3a2a;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
/* Yazının okunması için sol taraf koyulaşır, sağdaki manzara açık kalır */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 17, 24, .82) 0%, rgba(12, 17, 24, .55) 45%, rgba(12, 17, 24, 0) 75%),
    linear-gradient(0deg, rgba(12, 17, 24, .35), rgba(12, 17, 24, 0) 40%);
}

/* Arkaplan resmi yoksa: gökyüzü ve piksel bulutlar */
.hero--sky { background: linear-gradient(180deg, #4f86cf 0%, #7fb0e6 60%, #a9cdf0 100%); }
.hero--sky::before { background: linear-gradient(90deg, rgba(12, 17, 24, .55), rgba(12, 17, 24, 0) 70%); }
.hero__clouds { position: absolute; inset: 0; z-index: -2; }
.hero__clouds span {
  position: absolute; height: 24px; background: #f4f8fc;
  box-shadow: 24px -16px 0 #f4f8fc, 64px -16px 0 #f4f8fc, 48px 0 0 #e3ecf5;
}
.hero__clouds span:nth-child(1) { top: 5%; left: 62%; width: 160px; animation: drift 90s linear infinite; }
.hero__clouds span:nth-child(2) { top: 7%; left: 84%; width: 112px; animation: drift 120s linear infinite -40s; }
.hero__clouds span:nth-child(3) { top: 6%; left: 24%; width: 96px; animation: drift 140s linear infinite -80s; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-120vw); } }

.hero__content { padding: 96px 0 72px; }

.hero__title {
  max-width: 19ch;
  font: 700 clamp(2.125rem, 4.6vw, 3.75rem)/1.08 var(--pixel);
  letter-spacing: -.005em;
  /* Minecraft yazılarındaki gibi sert, kaymış gölge */
  text-shadow: .08em .08em 0 rgba(0, 0, 0, .45);
  text-wrap: balance;
}
.hero__lead {
  max-width: 46ch; margin-top: 20px;
  font-size: 1.125rem; line-height: 1.65; color: #dde4ec;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Basamaklı çimen bloğu kenarı: hero ile sayfa arasındaki geçiş */
.grass-edge { display: block; width: 100%; height: 48px; margin-bottom: -1px; }

/* ---------- Oyuna katıl ---------- */

.join {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: 20px 40px;
  margin-top: 0; padding: 32px 0 40px;
  border-bottom: 2px solid var(--stone);
}
.join__text h2 { font: 700 1.75rem/1.2 var(--pixel); }
.join__text p { margin-top: 8px; color: var(--muted); max-width: 52ch; }
.join__text strong { color: var(--text); font-weight: 500; }

.join__address {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 10px 10px 20px;
  background: var(--deepslate-2); border: 2px solid var(--stone-edge); border-radius: 4px;
}
.join__fields { display: flex; gap: 24px; }
.join__label { display: block; font-size: .8125rem; color: var(--muted); }
.join__ip { font-size: 1.3125rem; font-weight: 600; color: var(--diamond); }
.join__port { font-size: 1.375rem; font-weight: 500; color: var(--text); }
.join__address.is-copied .btn { background: var(--diamond); color: #062126; }

.join__status { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9375rem; }
.join__status strong { color: var(--text); font-weight: 600; }
.status-dot { width: 10px; height: 10px; background: var(--online); box-shadow: 0 0 0 3px rgba(106, 190, 48, .25); }
.status-dot--off { background: var(--redstone); box-shadow: 0 0 0 3px rgba(224, 83, 61, .2); }

/* ---------- Haberler + yan sütun ---------- */

.board {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px; padding: 56px 0 88px;
}

.section-title { font: 700 1.75rem/1.2 var(--pixel); margin-bottom: 24px; }

.post {
  display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start;
  padding: 20px 0; border-top: 2px solid var(--stone);
}
.post__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 3px; background: var(--stone); }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post:hover .post__media img { transform: scale(1.04); }

.post__placeholder { display: block; width: 100%; height: 100%; background-size: 16px 16px; }
.post__placeholder--0 { background-color: var(--grass-dark); background-image: linear-gradient(45deg, rgba(0,0,0,.12) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.12) 75%); }
.post__placeholder--1 { background-color: #2fa3b3; background-image: linear-gradient(45deg, rgba(0,0,0,.12) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.12) 75%); }
.post__placeholder--2 { background-color: var(--dirt); background-image: linear-gradient(45deg, rgba(0,0,0,.14) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.14) 75%); }

.post__meta { display: flex; align-items: center; gap: 12px; font-size: .8125rem; color: var(--muted); }
.tag { padding: 2px 8px; background: var(--stone-hi); color: var(--text); border-radius: 2px; font-weight: 500; }
.post__title { margin-top: 8px; font: 600 1.25rem/1.3 var(--body); }
.post__title a { text-decoration: none; }
.post__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.post__summary { margin-top: 8px; color: var(--muted); max-width: 62ch; }

/* İlk haber büyük ve öne çıkan */
.post--lead { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; padding-top: 0; border-top: 0; margin-bottom: 8px; }
.post--lead .post__media { aspect-ratio: 4 / 3; }
.post--lead .post__body { padding-top: 4px; }
.post--lead .post__title { font: 700 1.625rem/1.2 var(--body); letter-spacing: -.01em; }
.post--lead .post__summary { font-size: 1.0625rem; }

.empty { padding: 24px; color: var(--muted); background: var(--deepslate-2); border: 2px dashed var(--stone-edge); border-radius: 4px; }
.empty--small { padding: 16px; font-size: .9375rem; }
.empty a { color: var(--grass); font-weight: 500; }

.side { display: grid; gap: 36px; align-content: start; }
.side__title { font: 700 1.125rem/1.3 var(--pixel); margin-bottom: 14px; color: var(--text); }

.leader__card {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 20px;
  background: linear-gradient(135deg, rgba(242, 182, 49, .16), rgba(242, 182, 49, .03) 60%), var(--stone);
  border: 2px solid rgba(242, 182, 49, .55); border-radius: 4px;
}
.leader__avatar { position: relative; padding-top: 14px; flex: none; }
.leader__crown { position: absolute; top: -4px; left: 50%; width: 36px; transform: translateX(-50%); }
.leader__avatar .pixel-avatar { outline: 3px solid var(--gold); }
.leader__name { font: 700 1.3125rem/1.2 var(--body); word-break: break-all; }
.leader__total { margin-top: 4px; font-size: .9375rem; color: var(--muted); }
.leader__total strong { color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }

.payments { margin-bottom: 16px; }
.payment {
  display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--stone);
}
.payment:first-child { padding-top: 0; }
.pixel-avatar { image-rendering: pixelated; border-radius: 2px; }
.payment__who { min-width: 0; display: grid; }
.payment__name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.payment__time { font-size: .8125rem; color: var(--muted); }
.payment__amount { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--grass); }

/* ---------- 404 ---------- */

.notfound { padding: 120px 0; }
.notfound h1 { font: 700 2.5rem/1.1 var(--pixel); }
.notfound p { margin: 12px 0 28px; color: var(--muted); }

/* ---------- Footer ---------- */

.footer { background: var(--deepslate-2); border-top: 2px solid var(--line-dark); padding-top: 56px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__about p { margin-top: 14px; color: var(--muted); max-width: 32ch; }
.footer__col h2 { font: 700 1rem/1.3 var(--pixel); margin-bottom: 14px; }
.footer__col li + li { margin-top: 8px; }
.footer__col a { color: var(--muted); text-decoration: none; }
.footer__col a:hover { color: var(--text); }
.footer__ip { font: 600 1.0625rem/1.3 var(--body); color: var(--diamond); }
.footer__muted { color: var(--muted); font-size: .9375rem; }

.social { display: inline-flex; align-items: center; gap: 10px; }
.social__dot { width: 10px; height: 10px; }
.social--discord .social__dot { background: #5865f2; }
.social--instagram .social__dot { background: #e1306c; }
.social--youtube .social__dot { background: #ff0033; }
.social--tiktok .social__dot { background: #25f4ee; box-shadow: 3px 3px 0 #fe2c55; }

.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 48px; padding: 20px 0 28px; border-top: 1px solid var(--stone);
  font-size: .8125rem; color: var(--muted);
}

/* ---------- Duyarlı ---------- */

@media (max-width: 1240px) {
  .topbar__inner { gap: 20px; }
  .menu__links a { padding: 8px 8px; font-size: .875rem; }
}

/* Menü tek satıra sığmadığı genişlikte açılır menüye dönsün */
@media (max-width: 1180px) {
  .menu-btn { display: block; }
  .menu {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px 20px 20px; background: var(--deepslate-2); border-bottom: 2px solid var(--line-dark);
  }
  .menu.is-open { display: flex; }
  .menu__links { flex-direction: column; }
  .menu__links a { padding: 12px; font-size: 1rem; }
  .menu__links a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--grass); }
  .menu__account { justify-content: space-between; }
}

@media (max-width: 960px) {
  .join { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr; gap: 56px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero { min-height: 0; }
  .hero__content { padding: 64px 0 48px; }
  .hero__lead { font-size: 1rem; }
  .join__address { flex-direction: column; align-items: stretch; padding: 16px; }
  .join__fields { justify-content: space-between; }
  .post { grid-template-columns: 1fr; }
  .post__media { aspect-ratio: 16 / 9; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

@media (max-width: 600px) {
  .hero__clouds { display: none; }
  .post--lead .post__media { aspect-ratio: 16 / 9; }
}

/* Çimen kenarı renkleri temaya göre değişsin diye SVG parçaları sınıfla boyanır */
.ge-top { fill: var(--edge-top); }
.ge-under { fill: var(--edge-under); }
.ge-body { fill: var(--edge-body); }
.ge-dark { fill: var(--edge-dark); }
.ge-light { fill: var(--edge-light); }

/* ==========================================================
   AMETİST TEMASI — sitenin kullandığı tema, logodaki mor tonlara uyumlu.
   Bu blok olmadan yukarıdaki yeşil (çimen) renkler geçerli olur.
   ========================================================== */
:root[data-theme="amethyst"] {
  --deepslate: #1b1a27;
  --deepslate-2: #15141f;
  --stone: #252335;
  --stone-hi: #302d44;
  --stone-edge: #423e5c;
  --line-dark: #0f0e17;
  --muted: #a49fb8;

  --grass: #9d6fe0;        /* ametist bloğu */
  --grass-hover: #b088ec;
  --grass-dark: #6a46b0;
  --grass-ink: #170b2b;
  --dirt: #3b2a5c;

  /* Çimen yerine ametist kristali + obsidyen katmanı */
  --edge-top: #b088ec;
  --edge-under: #7a52c4;
  --edge-body: #2e2147;
  --edge-dark: #1f1633;
  --edge-light: #4a3672;
}

/* ==========================================================
   Bildirim, kullanıcı menüsü, kayıt/giriş
   ========================================================== */

.flash { margin: 0; padding: 12px 0; font-weight: 500; border-bottom: 2px solid var(--line-dark); }
.flash .wrap { display: block; }
.flash--success { background: rgba(106, 190, 48, .12); color: #a6e07e; }

.me { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.me__role { padding: 2px 7px; border-radius: 2px; background: var(--gold); color: #2a1d00; font-size: .75rem; font-weight: 600; }
.menu__account form { margin: 0; }
.link-quiet--btn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 500; font-size: .9375rem; }
.link-quiet[aria-current="page"] { color: var(--text); }

.auth {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 64px; align-items: center;
  padding: 64px 0 96px;
}
.auth__aside { text-align: center; justify-self: center; max-width: 380px; }
.auth__logo { width: min(290px, 70%); height: auto; margin: 0 auto 28px; filter: drop-shadow(0 18px 40px rgba(120, 60, 200, .35)); }
.auth__heading { font: 700 2rem/1.15 var(--pixel); text-shadow: .08em .08em 0 rgba(0, 0, 0, .45); }
.auth__text { margin-top: 12px; color: var(--muted); }

.auth__panel {
  padding: 36px;
  background: var(--stone);
  border: 2px solid var(--stone-edge);
  border-radius: 4px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .04), 0 24px 60px -30px rgba(0, 0, 0, .7);
}
.auth__title { font: 700 2rem/1.1 var(--pixel); }
.auth__switch { margin-top: 8px; color: var(--muted); }
.auth__switch a, .auth__note a, .check a { color: var(--grass-hover); font-weight: 500; }
.auth__note { margin-top: 20px; font-size: .8125rem; color: var(--muted); }

.form { display: grid; gap: 18px; margin-top: 28px; }
.field { display: grid; gap: 6px; align-content: start; } /* yan yana alanlarda giriş kutuları aynı hizada kalsın */
.field label { font-weight: 500; font-size: .9375rem; }
.field__msg { font-size: .8125rem; color: var(--muted); }
.field.has-error .field__msg { color: #ff8a78; }

/* Envanter kutusu gibi: içe gömük kenarlar */
.input {
  width: 100%; height: 48px; padding: 0 14px;
  background: var(--deepslate-2); color: var(--text);
  border: 2px solid var(--line-dark); border-radius: 3px;
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, .35), inset -2px -2px 0 rgba(255, 255, 255, .04);
  font: 400 1rem/1 var(--body);
}
.input:hover { border-color: var(--stone-edge); }
.input:focus { outline: none; border-color: var(--grass); }
.field.has-error .input { border-color: var(--redstone); }

.input-wrap { position: relative; }
.input-wrap .input { padding-right: 84px; }
.reveal {
  position: absolute; top: 7px; right: 7px; height: 34px; padding: 0 12px;
  background: var(--stone-hi); color: var(--muted); border: 0; border-radius: 2px;
  font: 500 .8125rem/1 var(--body); cursor: pointer;
}
.reveal:hover { color: var(--text); }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--grass); }
.check__hint { font-size: .8125rem; }

.btn--lg { min-height: 52px; font-size: 1.125rem; }

.alert {
  margin-top: 20px; padding: 12px 14px;
  background: rgba(224, 83, 61, .12); border: 2px solid rgba(224, 83, 61, .45); border-radius: 3px;
  color: #ffb0a3; font-size: .9375rem;
}

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; gap: 32px; padding: 40px 0 72px; }
  .auth__logo { width: 120px; margin-bottom: 16px; }
  .auth__heading { font-size: 1.5rem; }
  .auth__panel { padding: 24px 20px; }
}

/* ---------- Profil açılır menüsü ---------- */

.usermenu { position: relative; }
.usermenu summary { list-style: none; cursor: pointer; padding: 6px 10px; border-radius: 3px; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:hover, .usermenu[open] summary { background: var(--stone); }
.me__caret { color: var(--muted); transition: transform .15s ease; }
.usermenu[open] .me__caret { transform: rotate(180deg); }

.usermenu__panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50;
  min-width: 210px; padding: 6px;
  background: var(--stone); border: 2px solid var(--stone-edge); border-radius: 4px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6);
}
.usermenu__panel form { margin: 0; }
.usermenu__item {
  display: block; width: 100%; padding: 10px 12px;
  background: none; border: 0; border-radius: 2px; text-align: left;
  color: var(--text); text-decoration: none; font: 500 .9375rem/1.2 var(--body); cursor: pointer;
}
.usermenu__item:hover, .usermenu__item:focus-visible { background: var(--stone-hi); }
.usermenu__item--admin { color: var(--gold); }
.usermenu__item--danger { color: #ff9a8a; border-top: 1px solid var(--stone-edge); border-radius: 0 0 2px 2px; margin-top: 4px; }

@media (max-width: 960px) {
  .usermenu { width: 100%; }
  .usermenu__panel { position: static; margin-top: 8px; box-shadow: none; }
}

.usermenu__balance { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--stone-edge); color: var(--muted); font-size: .875rem; }
.usermenu__balance strong { color: var(--gold); font-variant-numeric: tabular-nums; }
.flash--error { background: rgba(224, 83, 61, .12); color: #ffb0a3; }

/* ==========================================================
   Mağaza
   ========================================================== */

/* Üst bant */
.shophead {
  background:
    linear-gradient(90deg, rgba(12, 17, 24, .9), rgba(12, 17, 24, .55)),
    repeating-linear-gradient(90deg, transparent 0 15px, rgba(255, 255, 255, .025) 15px 16px),
    repeating-linear-gradient(0deg, transparent 0 15px, rgba(255, 255, 255, .025) 15px 16px),
    var(--stone);
  border-bottom: 4px solid var(--grass-dark);
}
.shophead__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding: 44px 0 36px; }
.shophead__crumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; font-size: .875rem; color: var(--muted); }
.shophead__crumbs a { color: var(--muted); text-decoration: none; }
.shophead__crumbs a:hover { color: var(--text); }
.shophead__crumbs [aria-current] { color: var(--text); }
.shophead__title { font: 800 clamp(1.875rem, 3.6vw, 2.5rem)/1.15 var(--body); letter-spacing: -.015em; text-shadow: .06em .06em 0 rgba(0, 0, 0, .45); }
.shophead__sub { margin-top: 10px; max-width: 56ch; color: var(--muted); }

.balance {
  display: grid; grid-template-columns: auto auto; align-items: center; gap: 4px 16px;
  padding: 14px 16px; background: var(--deepslate-2); border: 2px solid var(--stone-edge); border-radius: 4px;
}
.balance__label { grid-column: 1; font-size: .8125rem; color: var(--muted); }
.balance__value { grid-column: 1; font: 700 1.375rem/1.1 var(--body); color: var(--gold); font-variant-numeric: tabular-nums; }
.balance .btn { grid-column: 2; grid-row: 1 / span 2; }

.saleband { margin: 0; padding: 12px 0; background: linear-gradient(90deg, rgba(242, 182, 49, .22), rgba(242, 182, 49, .06)); border-bottom: 2px solid rgba(242, 182, 49, .4); }
.saleband .wrap { display: block; color: #ffe1a1; }
.saleband strong { color: var(--gold); }

.shop { display: grid; gap: 48px; padding: 40px 0 88px; }

/* Sunucu (kategori) kartları */
.catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.catcard {
  display: grid; overflow: hidden; text-decoration: none;
  background: var(--stone); border: 2px solid var(--stone-edge); border-radius: 6px;
  transition: transform .15s ease, border-color .15s ease;
}
.catcard:hover, .catcard:focus-visible { transform: translateY(-3px); border-color: var(--grass); }
.catcard__media { display: block; aspect-ratio: 16 / 9; background: var(--deepslate-2); overflow: hidden; }
.catcard__media img { width: 100%; height: 100%; object-fit: cover; }
.catcard__body { display: grid; gap: 4px; padding: 14px 16px 16px; }
.catcard__name { font: 700 1.3125rem/1.2 var(--body); letter-spacing: -.01em; } /* adlarda rakam olabilir, piksel yazıda 2 ile 8 karışıyor */
.catcard__meta { font-size: .875rem; color: var(--grass-hover); font-weight: 500; }
.catcard__desc { font-size: .875rem; color: var(--muted); }

.catnav { display: flex; gap: 8px; flex-wrap: wrap; }
.catnav a { padding: 8px 16px; border-radius: 3px; background: var(--stone); color: var(--muted); text-decoration: none; font-weight: 500; border: 2px solid transparent; }
.catnav a:hover { color: var(--text); }
.catnav a[aria-current="page"] { background: var(--grass); color: var(--grass-ink); }

/* Ürün kartları */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.pcard {
  display: grid; grid-template-rows: auto 1fr; overflow: hidden;
  background: var(--stone); border: 2px solid var(--stone-edge); border-radius: 6px;
}
.pcard:hover { border-color: var(--grass-dark); }
.pcard--featured { border-color: rgba(242, 182, 49, .55); }
.pcard__media { position: relative; display: block; aspect-ratio: 5 / 3; background: var(--deepslate-2); overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__placeholder {
  display: block; width: 100%; height: 100%;
  background-color: var(--grass-dark);
  background-image: linear-gradient(45deg, rgba(0,0,0,.14) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.14) 75%), linear-gradient(45deg, rgba(0,0,0,.14) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.14) 75%);
  background-size: 24px 24px; background-position: 0 0, 12px 12px;
}
.pcard__badge {
  position: absolute; top: 10px; left: 10px; padding: 4px 8px; border-radius: 3px;
  background: var(--gold); color: #2a1d00; font: 700 .875rem/1 var(--body);
}
.pcard__badge--inline { position: static; display: inline-block; vertical-align: middle; }
.pcard__body { display: grid; gap: 6px; align-content: start; padding: 14px 16px 16px; }
.pcard__title { font: 600 1.0625rem/1.3 var(--body); }
.pcard__title a { text-decoration: none; }
.pcard__title a::after { content: ''; position: absolute; inset: 0; } /* kartın tamamı tıklanabilir */
.pcard { position: relative; }
.pcard__meta { font-size: .8125rem; color: var(--muted); }
.pcard__price { margin-top: 6px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pcard__price s { color: var(--muted); font-size: .875rem; }
.pcard__price strong { font: 700 1.25rem/1 var(--body); color: var(--gold); font-variant-numeric: tabular-nums; }
.pcard__price span { font-size: .8125rem; color: var(--muted); }

/* Ürün sayfası */
.product { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 40px; padding: 40px 0 88px; align-items: start; }
.product__media { aspect-ratio: 5 / 3; overflow: hidden; border-radius: 6px; border: 2px solid var(--stone-edge); background: var(--deepslate-2); }
.product__media img { width: 100%; height: 100%; object-fit: cover; }
.product__info { display: grid; gap: 22px; }
.pricebox { padding: 18px 20px; background: var(--stone); border: 2px solid var(--stone-edge); border-radius: 6px; }
.pricebox__old { color: var(--muted); }
.pricebox__now { margin-top: 4px; color: var(--muted); }
.pricebox__now strong { font: 700 2.25rem/1.1 var(--body); color: var(--gold); font-variant-numeric: tabular-nums; margin-right: 6px; }
.pricebox__note { margin-top: 6px; font-size: .875rem; color: #ffe1a1; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 0; }
.specs dt { font-size: .8125rem; color: var(--muted); }
.specs dd { margin: 2px 0 0; font-weight: 500; }
.product__info form { margin: 0; }
.product__hint { margin-top: -10px; font-size: .9375rem; color: var(--muted); }
.product__hint a { color: var(--grass-hover); font-weight: 500; }
.product__hint strong { color: var(--text); }
.product__desc { grid-column: 1 / -1; padding-top: 32px; border-top: 2px solid var(--stone); }
.prose { max-width: 72ch; line-height: 1.7; color: #d6dbe3; }
.prose > * + * { margin-top: .8em; }
.prose h2, .prose h3 { font-family: var(--body); color: var(--text); }
.prose h2 { font-size: 1.375rem; }
.prose h3 { font-size: 1.125rem; }
.prose ul, .prose ol { padding-left: 1.4em; list-style: revert; }
.prose blockquote { margin-left: 0; padding-left: 14px; border-left: 3px solid var(--stone-edge); color: var(--muted); }
.prose a { color: var(--diamond); }
.muted-text { color: var(--muted); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; gap: 28px; }
  .product__media { max-width: 420px; }
}
@media (max-width: 560px) {
  .shophead__inner { padding: 32px 0 28px; }
  .balance { width: 100%; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pcard__body { padding: 12px; }
  .specs { grid-template-columns: 1fr; }
}

/* ==========================================================
   Envanter
   ========================================================== */

.invbtn {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 3px;
  background: var(--stone); color: var(--text); text-decoration: none; font-weight: 500; font-size: .9375rem;
  border: 2px solid var(--stone-edge);
}
.invbtn:hover, .invbtn[aria-current="page"] { border-color: var(--grass); }
.invbtn svg { color: var(--gold); }

/* Envanter kutuları: oyundaki envanter slotu gibi içe gömük çerçeve */
.invgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.invslot {
  display: grid; grid-template-rows: auto 1fr; overflow: hidden;
  background: var(--stone); border: 2px solid var(--stone-edge); border-radius: 6px;
}
.invslot__media {
  position: relative; aspect-ratio: 5 / 3; margin: 10px 10px 0; overflow: hidden; border-radius: 3px;
  background: var(--deepslate-2);
  box-shadow: inset 3px 3px 0 rgba(0, 0, 0, .45), inset -3px -3px 0 rgba(255, 255, 255, .05);
}
.invslot__media img { width: 100%; height: 100%; object-fit: cover; }
.invslot__qty {
  position: absolute; right: 8px; bottom: 6px;
  font: 800 1.375rem/1 var(--body); color: #fff; text-shadow: 2px 2px 0 #3f3f3f; /* adet net okunmalı: piksel yazıda 2 ile 8 karışıyor */
}
.invslot__body { display: grid; gap: 6px; align-content: start; padding: 12px 12px 14px; }
.invslot__name { font: 600 1.0625rem/1.3 var(--body); }
.invslot__meta { font-size: .8125rem; color: var(--muted); }
.invslot form { margin: 6px 0 0; display: grid; gap: 8px; }
.invslot__noscript { display: grid; gap: 4px; font-size: .8125rem; color: var(--muted); }
.invslot__noscript[hidden] { display: none; }
.invslot__send summary { list-style: none; cursor: pointer; }
.invslot__send summary::-webkit-details-marker { display: none; }
.invslot__send[open] summary { margin-bottom: 2px; }
.invslot--missing { opacity: .6; }
.empty--center { display: grid; justify-items: center; gap: 10px; padding: 48px 24px; text-align: center; }

.history { display: grid; margin: 0; padding: 0; list-style: none; }
.history li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--stone); }
.history__time { display: block; font-size: .8125rem; color: var(--muted); }
.history__status { font-size: .875rem; font-weight: 600; white-space: nowrap; }
.history__status--success { color: #9fdc74; }
.history__status--partial { color: var(--gold); }
.history__status--error { color: #ff9585; }

/* Teslim et penceresi */
.modal {
  width: min(420px, calc(100% - 32px)); padding: 0; border: 2px solid var(--stone-edge); border-radius: 6px;
  background: var(--stone); color: var(--text); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
}
.modal::backdrop { background: rgba(8, 10, 14, .7); }
.modal__inner { display: grid; gap: 16px; padding: 24px; }
.modal__title { font: 700 1.5rem/1.2 var(--pixel); }
.modal__text { color: var(--muted); }
.modal__text strong { color: var(--text); }
.modal__hint { font-size: .8125rem; color: var(--muted); }
.modal__actions { display: flex; justify-content: flex-end; gap: 10px; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty[hidden] { display: none; }
.qty__btn {
  width: 44px; height: 44px; border: 0; border-radius: 3px; background: var(--stone-hi); color: var(--text);
  font: 700 1.25rem/1 var(--body); cursor: pointer;
}
.qty__btn:hover { background: var(--stone-edge); }
.qty__input { width: 90px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.qty__all { margin-left: auto; padding: 0 14px; height: 44px; border: 0; border-radius: 3px; background: none; color: var(--grass-hover); font: 600 .9375rem/1 var(--body); cursor: pointer; }
.qty__all:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .invbtn { justify-content: center; }
}
@media (max-width: 560px) {
  .invgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* Üst bar: giriş yapınca Envanter düğmesi ve rol rozeti eklendiği için menü taşmasın */
.menu__links a { white-space: nowrap; }
.me__name { white-space: nowrap; }
@media (max-width: 1440px) and (min-width: 1181px) {
  .topbar__inner { gap: 20px; }
  .menu { gap: 14px; }
  .menu__links a { padding: 8px 8px; }
  .invbtn { padding: 8px 10px; }
  .invbtn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .me__role { display: none; }
}
.menu__account { flex: none; }
.invbtn, .usermenu summary, .me .pixel-avatar, .invbtn svg { flex: none; }
.me__role { white-space: nowrap; }

/* ==========================================================
   Bakiye Gönder
   ========================================================== */
.page-narrow { display: grid; gap: 22px; padding: 32px 0 88px; }
.crumbbar {
  display: flex; align-items: center; gap: 12px; padding: 14px 20px;
  background: var(--stone); border: 2px solid var(--stone-edge); border-radius: 6px;
  font-size: .875rem; font-weight: 500; color: var(--text);
}
.crumbbar a { display: inline-flex; color: var(--text); }
.crumbbar a:hover { color: var(--grass-hover); }
.crumbbar__sep { color: var(--muted); font-size: 1.125rem; line-height: 1; }
.crumbbar [aria-current] { color: var(--muted); }
.page-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.page-title { font: 800 1.875rem/1.2 var(--body); letter-spacing: -.015em; }
.page-balance { color: var(--muted); }
.page-balance strong { color: var(--gold); font-variant-numeric: tabular-nums; }
.sendcard {
  display: grid; gap: 20px; padding: 28px 24px 20px;
  background: var(--deepslate-2); border: 2px solid var(--stone); border-radius: 8px;
}
.sendcard .alert { margin-top: 0; }
.sendcard__footer { display: flex; justify-content: flex-end; padding-top: 16px; border-top: 1px solid var(--stone-edge); }
.sendhistory { display: grid; gap: 4px; }
.paymethods { border: 0; padding: 0; margin: 0; min-width: 0; }
.paymethods legend { padding: 0; margin-bottom: 8px; font-weight: 500; }
.paymethod {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 20px; min-width: min(100%, 320px);
  background: var(--deepslate); border: 2px solid var(--stone); border-radius: 6px; cursor: pointer; font-weight: 500;
}
.paymethod input { accent-color: var(--grass); width: 16px; height: 16px; margin: 0; }
.paymethod:has(input:checked) { border-color: var(--grass); }
.paymethod:has(input:focus-visible) { outline: 2px solid var(--grass-hover); outline-offset: 2px; }
.topup__note { font-size: .875rem; }

/* ==========================================================
   Profil
   ========================================================== */

/* Üst bant: Minecraft manzarası yerine piksel bloklardan oluşan bir şerit */
.phead { position: relative; }
.phead__banner {
  height: 120px;
  background:
    linear-gradient(180deg, rgba(24, 32, 43, 0) 40%, rgba(24, 32, 43, .9)),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .18) 0 2px, transparent 2px 32px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 2px, transparent 2px 32px),
    linear-gradient(100deg, #3a2a63 0%, #5b3f99 35%, #2f5d7a 70%, #2b4a3a 100%);
}
.phead__bar { background: var(--deepslate-2); border-bottom: 2px solid var(--line-dark); }
.phead__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; min-height: 64px; }
.phead__who { display: flex; align-items: flex-end; gap: 16px; margin-top: -56px; padding-bottom: 12px; }
.phead__avatar .pixel-avatar { border-radius: 8px; outline: 4px solid var(--deepslate-2); box-shadow: 0 10px 24px rgba(0, 0, 0, .5); }
.phead__name { font: 800 1.375rem/1.2 var(--body); text-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.phead__email { font-size: .875rem; color: var(--muted); }
.phead__role {
  display: inline-block; margin-top: 6px; padding: 3px 14px; border-radius: 3px;
  background: var(--gold); color: #2a1d00; font-size: .8125rem; font-weight: 700;
}
.phead__role--player { background: var(--stone-hi); color: var(--text); }
.phead__tabs { display: flex; align-self: stretch; }
.phead__tabs a {
  display: flex; align-items: center; padding: 0 18px; color: var(--muted); text-decoration: none;
  font-size: .9375rem; font-weight: 500; border-bottom: 3px solid transparent;
}
.phead__tabs a:hover { color: var(--text); }
.phead__tabs a[aria-current="page"] { color: var(--grass-ink); background: var(--grass); border-bottom-color: var(--grass-dark); }

.pbody { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; padding: 36px 0 88px; align-items: start; }

/* Sol menü */
.pside { position: sticky; top: 92px; }
.pside__title { margin: 0 0 8px; font: 700 .9375rem/1 var(--pixel); color: var(--grass-hover); }
.pside ul { margin: 0 0 4px; padding: 0; list-style: none; }
.pside a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 3px;
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: .9375rem;
}
.pside a:hover { color: var(--text); background: var(--stone); }
.pside a[aria-current="page"] { color: var(--text); background: var(--stone); box-shadow: inset 3px 0 0 var(--grass); }
.pside hr { margin: 14px 0; border: 0; border-top: 1px solid var(--stone-edge); }

/* İçerik bölümleri */
.pmain { display: grid; gap: 32px; }
.psection { display: grid; gap: 12px; }
.psection__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.psection__title { display: flex; align-items: center; gap: 10px; font: 700 1.125rem/1.2 var(--body); }
.psection__title > span[aria-hidden] {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 3px;
  background: var(--stone); color: var(--grass-hover); font-size: 1rem;
}
.psection__count { padding: 2px 8px; border-radius: 3px; background: var(--stone); color: var(--muted); font-size: .8125rem; font-weight: 600; }
.psection__more { color: var(--grass-hover); font-size: .875rem; font-weight: 500; text-decoration: none; }
.psection__more:hover { text-decoration: underline; }

.pcard { padding: 20px 22px; background: var(--deepslate-2); border: 2px solid var(--stone); border-radius: 6px; }
.pdetails { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; margin: 0; }
.pdetails > div { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.pdetails dt { font-weight: 600; font-size: .875rem; }
.pdetails dt::after { content: ':'; }
.pdetails dd { margin: 0; color: var(--muted); font-size: .875rem; word-break: break-word; }
.gold { color: var(--gold); font-variant-numeric: tabular-nums; }
.pplus {
  display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 6px; border-radius: 3px;
  background: var(--grass); color: var(--grass-ink); text-decoration: none; font-weight: 800; line-height: 1; vertical-align: middle;
}

/* Tablolar */
.ptable-wrap { overflow-x: auto; border-radius: 6px; border: 2px solid var(--stone); }
.ptable { width: 100%; border-collapse: collapse; font-size: .875rem; min-width: 560px; }
.ptable th { padding: 12px 14px; text-align: left; font-weight: 600; background: var(--grass-dark); color: #f2fbea; }
.ptable td { padding: 12px 14px; border-top: 1px solid var(--stone); background: var(--deepslate-2); }
.ptable tr:hover td { background: #121820; }
.ptable .num { text-align: right; font-variant-numeric: tabular-nums; }
.ptable .muted { color: var(--muted); }
.ptable .act { width: 1%; text-align: right; }
.ptable .is-plus { color: #9fdc74; font-weight: 600; }
.ptable .is-minus { color: #ff9585; font-weight: 600; }
.pstatus { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: .75rem; font-weight: 600; }
.pstatus--success { background: rgba(106, 190, 48, .18); color: #9fdc74; }
.pstatus--error { background: rgba(224, 83, 61, .18); color: #ff9585; }
.pstatus--pending { background: var(--stone-hi); color: var(--muted); }
.peye {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: #2b5f9e; color: #eaf3ff;
}
.peye:hover { background: #3a74b8; }
.pempty { padding: 20px 22px; border: 2px dashed var(--stone-edge); border-radius: 6px; color: var(--muted); }
.pempty a { color: var(--grass-hover); font-weight: 500; }
.ppager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 8px; color: var(--muted); font-size: .875rem; }

.pform { display: grid; gap: 18px; max-width: 560px; }
.pform__actions { display: flex; justify-content: flex-end; }

@media (max-width: 900px) {
  .phead__inner { flex-direction: column; align-items: stretch; }
  .phead__tabs { overflow-x: auto; }
  .phead__tabs a { padding: 14px 14px; white-space: nowrap; }
  .pbody { grid-template-columns: 1fr; gap: 24px; }
  .pside { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .pside__title, .pside hr { display: none; }
  .pside ul { display: contents; }
  .pdetails { grid-template-columns: 1fr; }
}

/* ==========================================================
   Haberler ve sayfalar
   ========================================================== */
.newsgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.ncard { position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; background: var(--stone); border: 2px solid var(--stone-edge); border-radius: 6px; }
.ncard:hover { border-color: var(--grass-dark); }
.ncard__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--deepslate-2); }
.ncard__media img { width: 100%; height: 100%; object-fit: cover; }
.ncard__body { display: grid; gap: 8px; align-content: start; padding: 16px 18px 18px; }
.ncard__title { font: 700 1.1875rem/1.3 var(--body); }
.ncard__title a { text-decoration: none; }
.ncard__title a::after { content: ''; position: absolute; inset: 0; }
.ncard__summary { color: var(--muted); font-size: .9375rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.article { max-width: 820px; padding: 40px 0 88px; display: grid; gap: 24px; }
.article__head { display: grid; gap: 12px; }
.article__title { font: 800 clamp(1.75rem, 4vw, 2.5rem)/1.15 var(--body); letter-spacing: -.02em; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: var(--muted); font-size: .9375rem; }
.article__author { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; }
.article__cover { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 6px; border: 2px solid var(--stone-edge); }
.article__body { max-width: none; font-size: 1.0625rem; }
.prose hr { border: 0; border-top: 2px solid var(--stone); margin: 1.5em 0; }
.article__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.article__related { padding-top: 28px; border-top: 2px solid var(--stone); }
.related { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.related a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 4px; background: var(--stone); text-decoration: none; }
.related a:hover { background: var(--stone-hi); }
.related span { color: var(--muted); font-size: .875rem; white-space: nowrap; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 24px; } .section-head .section-title { margin-bottom: 0; } .section-more { color: var(--grass-hover); font-weight: 500; text-decoration: none; } .section-more:hover { text-decoration: underline; }

/* Kısa sayfalarda alt bilgi ekranın altında kalsın (yönetim paneli kendi ızgarasını kullanır) */
body:not(.admin) { min-height: 100vh; display: flex; flex-direction: column; }
body:not(.admin) > main { flex: 1 0 auto; }

/* ==========================================================
   Çarkıfelek
   ========================================================== */
.wheelgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.wheelcard {
  display: grid; grid-template-rows: auto 1fr; overflow: hidden;
  background: var(--stone); border: 2px solid var(--stone-edge); border-radius: 6px;
}
.wheelcard__stage {
  display: grid; place-items: center; padding: 26px 26px 18px;
  background: radial-gradient(circle at 50% 45%, rgba(168, 85, 247, .22), transparent 65%), var(--deepslate-2);
  border-bottom: 2px solid var(--stone-edge);
}
.wheel { width: min(100%, 290px); height: auto; overflow: visible; filter: drop-shadow(0 8px 0 rgba(0, 0, 0, .35)); }
.wheel__rotor { transform-box: view-box; transform-origin: 100px 100px; }
.wheel__label { font: 600 9px/1 var(--body); letter-spacing: .01em; pointer-events: none; }
.wheel__hub { fill: var(--gold); }
.wheel__pointer { fill: var(--gold); stroke: #0d0f14; stroke-width: 2.5; stroke-linejoin: round; }
.wheelcard__body { display: grid; align-content: start; gap: 12px; padding: 18px 20px 20px; }
.wheelcard__title { font: 700 1.3125rem/1.2 var(--body); letter-spacing: -.01em; }
.wheelcard__meta { color: var(--muted); font-size: .9375rem; }
.wheelcard__price { color: var(--gold); font-variant-numeric: tabular-nums; }
.wheelcard__free { color: var(--grass-hover); }
.wheelcard__awards { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .875rem; }
.wheelcard__awards li { display: inline-flex; align-items: center; gap: 6px; }
.wheelcard__awards svg { flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }
.wheelcard form, .wheelcard .btn { width: 100%; }
.wheelcard__btnprice { font: 600 1rem/1 var(--body); font-variant-numeric: tabular-nums; }
.wheelcard__result { padding: 10px 12px; border-radius: 3px; background: var(--deepslate-2); font-weight: 500; }
.wheelcard__result.is-win { background: rgba(106, 190, 48, .16); color: #b5ec8e; }
.wheelcard__result.is-error { background: rgba(224, 83, 61, .16); color: #ff9585; }
.spinlog { display: grid; gap: 8px; }
.spinlog li {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 16px;
  background: var(--stone); border: 2px solid var(--stone-edge); border-radius: 4px;
}
.spinlog__win { color: var(--grass-hover); font-weight: 600; }

/* Çarkıfelek: Envanter'in yanında yalnızca ikon (açılır menüde yazısıyla) */
.invbtn--icon { padding: 8px 10px; }
.invbtn__label { display: none; }
@media (max-width: 1180px) {
  .invbtn { justify-content: center; }
  .invbtn__label { display: inline; }
}
/* Üst bar hiçbir genişlikte sayfayı yana taşırmasın */
.menu { min-width: 0; }
.menu__account { gap: 10px; }
.usermenu { margin-left: 8px; }
/* Üst bar içeriği sayfa genişliğinden (1180px) geniş; bar kendi daha geniş kabını kullansın */
.topbar .wrap { width: min(100% - 40px, 1440px); }
@media (max-width: 1180px) {
  .menu__account { flex-wrap: wrap; justify-content: flex-start; }
  .menu__account .invbtn { flex: 1; }
  .usermenu { width: 100%; margin-left: 0; }
}

/* Hesap eşleme */
.linkcard { display: grid; gap: 14px; }
.linkcard__status { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #b5ec8e; }
.linkcard__status--warn { color: var(--gold); }
.linkcard__dot { width: 10px; height: 10px; border-radius: 2px; background: currentColor; }
.linkcard__steps { display: grid; gap: 6px; padding-left: 1.3em; list-style: decimal; color: var(--muted); }
.linkcard__cmd { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.linkcard__cmd code { padding: 10px 16px; font-size: 1.375rem; letter-spacing: .08em; background: var(--deepslate); border: 2px solid var(--stone-edge); border-radius: 4px; color: var(--gold); }
.linkcard__wait { color: var(--muted); }
.linkcard .pform__actions { gap: 10px; }
.linkcard form { margin: 0; }
.linkband { margin: 0; padding: 12px 0; background: rgba(242, 182, 49, .12); border-bottom: 2px solid rgba(242, 182, 49, .35); color: #ffe1a1; }
.linkband a { color: var(--gold); font-weight: 600; }
.linkband .wrap { display: block; }

/* ==========================================================
   SkyBlock profili (/profil/skyblock)
   Renkli çubuk ve noktalar SVG ile çiziliyor (CSP satır içi stile izin vermiyor)
   ========================================================== */
.pixel-avatar--skin { background: var(--stone); }

.sbbar { display: block; width: 100%; height: 8px; border-radius: 2px; overflow: hidden; }
.sbbar__track { fill: var(--deepslate); }
.sbdot { display: inline-block; flex: none; vertical-align: -1px; margin-right: 6px; border-radius: 1px; }

.sbchip {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 3px;
  background: var(--stone); color: var(--text); font-size: .8125rem; font-weight: 600; white-space: nowrap;
}
.sbchip--main { background: var(--stone-hi); box-shadow: inset 0 0 0 1px var(--stone-edge); }
.sbchip--gold { background: rgba(242, 182, 49, .14); color: var(--gold); }

/* Oyuncu kartı */
.sbhero {
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(200px, 260px); gap: 24px; align-items: center;
  padding: 24px; border: 2px solid var(--stone); border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .02) 0 2px, transparent 2px 24px),
    linear-gradient(120deg, var(--stone) 0%, var(--deepslate-2) 60%);
}
.sbhero__head .pixel-avatar { border-radius: 6px; box-shadow: 0 0 0 4px var(--deepslate), 0 12px 28px rgba(0, 0, 0, .5); }
.sbhero__body { display: grid; gap: 8px; min-width: 0; }
.sbhero__eyebrow { font: 600 .8125rem/1 var(--pixel); color: var(--grass-hover); letter-spacing: .04em; }
.sbhero__name { font: 800 clamp(1.5rem, 3vw, 2rem)/1.1 var(--body); overflow-wrap: anywhere; }
.sbhero__groups { display: flex; flex-wrap: wrap; gap: 6px; }
.sbhero__meta { color: var(--muted); font-size: .875rem; }

.sbvip {
  display: grid; gap: 4px; align-content: center; padding: 16px 18px; border-radius: 6px;
  background: #2a2418; border: 2px solid rgba(242, 182, 49, .55);
}
.sbvip__label { display: flex; align-items: center; font-size: .875rem; font-weight: 600; color: #e9dfc4; }
.sbvip__value { font: 800 1.5rem/1.2 var(--body); color: #ffc94a; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.sbvip__sub { font-size: .8125rem; color: #cfc6b0; }
.sbvip__link { justify-self: start; margin-top: 4px; color: var(--gold); font-size: .875rem; font-weight: 600; }
.sbvip--none { background: var(--deepslate-2); border-color: var(--stone-edge); }
.sbvip--none .sbvip__value { color: var(--muted); }
.sbvip--expired { background: #2c1a1a; border-color: rgba(224, 83, 61, .55); }
.sbvip--expired .sbvip__value { color: #ff9585; }

/* Ekonomi kutuları */
.sbstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.sbstat {
  display: grid; gap: 4px; align-content: start; padding: 16px 18px;
  background: var(--deepslate-2); border: 2px solid var(--stone); border-radius: 6px;
  box-shadow: inset 0 3px 0 var(--stone-edge);
}
.sbstat dt { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.sbstat dd { margin: 0; font: 700 1.375rem/1.2 var(--body); font-variant-numeric: tabular-nums; }
.sbstat dd.sbstat__long { font-size: 1.0625rem; } /* milyarlık bakiyeler kutudan taşmasın, rakamlar bölünmesin */
.sbstat dd small { font-size: .8125rem; color: var(--muted); font-weight: 600; }
.sbstat__text { font-size: 1.0625rem !important; }
.sbstat__sub { font-size: .8125rem; color: var(--muted); }
.sbstat--money { box-shadow: inset 0 3px 0 var(--gold); }
.sbstat--money dd { color: var(--gold); }
.sbstat--credit { box-shadow: inset 0 3px 0 var(--diamond); }
.sbstat--credit dd { color: var(--diamond); }
.sbstat--bank { box-shadow: inset 0 3px 0 #6abe30; }
.sbstat--streak { box-shadow: inset 0 3px 0 var(--redstone); }
.sbstat--vip { box-shadow: inset 0 3px 0 var(--gold); }
.sbstats--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sbstats--compact dd { font-size: 1.125rem; }

/* Ada */
.sbisland { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: start; }
.sbisland__level {
  display: grid; place-items: center; width: 96px; height: 96px; border-radius: 6px;
  background: linear-gradient(180deg, var(--grass) 0 22%, var(--dirt) 22% 100%);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .25);
  color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .45); align-content: center; gap: 2px;
}
.sbisland__lv { font: 600 .75rem/1 var(--pixel); opacity: .85; }
.sbisland__num { font: 700 2.125rem/1 var(--pixel); }
.sbisland__body { display: grid; gap: 10px; min-width: 0; }
.sbisland__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sbisland__name { font: 700 1.25rem/1.2 var(--body); margin-right: 4px; }
.sbisland__xp { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.sbisland__facts { margin-top: 6px; }

/* Yetenekler */
.sbskills { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.sbskill { display: grid; gap: 10px; padding: 16px; background: var(--deepslate-2); border: 2px solid var(--stone); border-radius: 6px; }
.sbskill--max { border-color: rgba(242, 182, 49, .55); }
.sbskill__top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.sbskill__icon { position: relative; display: grid; place-items: center; width: 40px; height: 40px; color: #fff; }
.sbskill__bg { position: absolute; inset: 0; border-radius: 4px; opacity: .28; }
.sbskill__icon .icon { position: relative; }
.sbskill__name { font-weight: 700; }
.sbskill__desc { font-size: .75rem; color: var(--muted); line-height: 1.35; }
.sbskill__lv { font: 700 1.5rem/1 var(--pixel); font-variant-numeric: tabular-nums; }
.sbskill__lv small { font-size: .8125rem; color: var(--muted); }
.sbskill__xp { font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.sbempty { display: grid; gap: 8px; justify-items: start; }
.sbempty a.btn { color: var(--grass-ink); }
.sbnote { font-size: .8125rem; color: var(--muted); }

@media (max-width: 1000px) {
  .sbhero { grid-template-columns: auto minmax(0, 1fr); }
  .sbvip { grid-column: 1 / -1; }
  .sbstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .sbhero { grid-template-columns: 1fr; justify-items: start; padding: 18px; }
  .sbhero__head .pixel-avatar { width: 80px; height: 80px; }
  .sbstats, .sbstats--compact { grid-template-columns: 1fr 1fr; }
  .sbisland { grid-template-columns: 1fr; }
  .sbisland__level { width: 72px; height: 72px; }
  .sbisland__num { font-size: 1.625rem; }
}

/* Banka ve yatırımlar */
.is-up { color: #7fe07f; }
.is-down { color: #ff8a78; }
.is-flat { color: var(--muted); }

.sbbank { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.sbbank__main { display: grid; gap: 8px; }
.sbbank__label { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.sbbank__value { font: 800 1.75rem/1.1 var(--body); font-variant-numeric: tabular-nums; }
.sbbank__value small { font-size: .875rem; color: var(--muted); font-weight: 600; }
.sbbank__cap { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.sbbank__facts { display: grid; gap: 10px; margin: 0; padding-left: 24px; border-left: 1px solid var(--stone-edge); }
.sbbank__facts div { display: flex; justify-content: space-between; gap: 12px; font-size: .875rem; }
.sbbank__facts dt { color: var(--muted); }
.sbbank__facts dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

.sbpf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; border: 2px solid var(--stone); border-radius: 6px; background: var(--stone); overflow: hidden; }
.sbpf--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sbpf > div { display: grid; gap: 2px; padding: 12px 16px; background: var(--deepslate-2); }
.sbpf dt { font-size: .75rem; font-weight: 600; color: var(--muted); }
.sbpf dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.sbpf dd small { font-weight: 600; }

.sbinv { display: grid; gap: 8px; }
.sbinv__row {
  display: grid; grid-template-columns: auto minmax(0, 1.3fr) 120px minmax(0, 1fr) minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 14px 16px; background: var(--deepslate-2); border: 2px solid var(--stone); border-radius: 6px;
  text-decoration: none; color: var(--text); transition: border-color .15s, background .15s;
}
.sbinv__row:hover { border-color: var(--grass-dark); background: #161c27; }
.sbinv__coin { position: relative; display: grid; place-items: center; width: 40px; height: 40px; color: #ffd76a; }
.sbinv__coin .icon { position: relative; }
.sbinv__coin--lg { width: 56px; height: 56px; }
.sbinv__name, .sbinv__price, .sbinv__value { display: grid; gap: 2px; min-width: 0; }
.sbinv__name small, .sbinv__price small, .sbinv__value small { font-size: .8125rem; color: var(--muted); }
.sbinv__price small.is-up, .sbinv__value small.is-up { color: #7fe07f; }
.sbinv__price small.is-down, .sbinv__value small.is-down { color: #ff8a78; }
.sbinv__price, .sbinv__value { text-align: right; font-variant-numeric: tabular-nums; }
.sbinv__spark { width: 120px; height: 32px; }
.sbinv__spark path { fill: none; stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sbinv__spark.is-up path { stroke: #6fdc6f; }
.sbinv__spark.is-down path { stroke: #ff7a66; }
.sbinv__go { font: 700 1.25rem/1 var(--body); color: var(--muted); }
.sbinv__row:hover .sbinv__go { color: var(--grass-hover); }

/* Hisse detay sayfası */
.sbcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .875rem; color: var(--muted); }
.sbcrumbs a { color: var(--muted); text-decoration: none; }
.sbcrumbs a:hover { color: var(--text); text-decoration: underline; }
.sbcrumbs [aria-current] { color: var(--text); }
.sbstock { display: grid; gap: 14px; }
.sbstock__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.sbstock__name { font: 800 1.75rem/1.15 var(--body); }
.sbstock__desc { color: var(--muted); font-size: .9375rem; }
.sbstock__price { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.sbstock__now { font: 800 2rem/1.1 var(--body); }
.sbstock__now small { font-size: 1rem; color: var(--muted); }

.sbchart { display: grid; gap: 14px; }
.sbchart__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.sbchart__title { font: 700 1.0625rem/1.3 var(--body); }
.sbchart__sum { font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.sbrange { display: flex; gap: 4px; padding: 3px; background: var(--deepslate); border: 1px solid var(--stone-edge); border-radius: 5px; }
.sbrange a, .sbrange span { padding: 6px 12px; border-radius: 3px; font-size: .8125rem; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
.sbrange a:hover { color: var(--text); background: var(--stone); }
.sbrange a[aria-current] { background: var(--grass); color: var(--grass-ink); }
.sbrange .is-off { opacity: .4; cursor: not-allowed; }
.sbchart__frame { position: relative; touch-action: pan-y; }
.sbchart__svg { display: block; width: 100%; height: auto; overflow: visible; }
.sbchart__grid line { stroke: var(--stone-hi); stroke-width: 1; stroke-dasharray: 4 5; }
.sbchart__ylabel, .sbchart__xlabel { fill: var(--muted); font: 400 15px var(--body); }
.sbchart__line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.sbchart__cursor { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.sbchart__dot { stroke: var(--deepslate-2); stroke-width: 3; }
.sbchart__avg { stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 8 6; opacity: .8; }
.sbchart__avglabel { fill: var(--gold); font: 600 14px var(--body); }
.sbchart__tip {
  position: absolute; transform: translateX(-50%); display: grid; gap: 2px; padding: 8px 12px; pointer-events: none;
  background: var(--deepslate); border: 1px solid var(--stone-edge); border-radius: 4px; box-shadow: 0 8px 20px rgba(0, 0, 0, .4);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.sbchart__tip[hidden] { display: none; }
.sbchart__tip-t { font-size: .75rem; color: var(--muted); }
.sbstat--up { box-shadow: inset 0 3px 0 #6fdc6f; }
.sbstat--down { box-shadow: inset 0 3px 0 #ff7a66; }

@media (max-width: 1000px) {
  .sbinv__row { grid-template-columns: auto minmax(0, 1fr) minmax(0, auto) auto; }
  .sbinv__spark, .sbinv__value { display: none; }
  .sbpf--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .sbbank { grid-template-columns: 1fr; gap: 16px; }
  .sbbank__facts { padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--stone-edge); }
  .sbpf { grid-template-columns: 1fr; }
  .sbpf--4 { grid-template-columns: 1fr 1fr; }
  .sbstock__head { grid-template-columns: auto minmax(0, 1fr); }
  .sbstock__price { grid-column: 1 / -1; text-align: left; }
  .sbrange { width: 100%; }
  .sbrange a, .sbrange span { flex: 1; text-align: center; padding: 6px 4px; }
  .sbinv__go { display: none; }
  /* Grafik ekrana küçülerek sığıyor: yazıları SVG biriminde büyüt ki telefonda okunsun */
  .sbchart__ylabel, .sbchart__xlabel { font-size: 26px; }
  .sbchart__avglabel { font-size: 24px; }
  .sbchart__line { stroke-width: 4; }
}

/* ==========================================================
   Oy Ver
   ========================================================== */
.votepage { display: grid; gap: 20px; padding: 36px 0 88px; }
.votebar {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 6px;
  background: var(--deepslate-2); border: 2px solid var(--stone); color: var(--muted); font-size: .9375rem;
}
.votebar a { color: var(--grass-hover); font-weight: 600; }
.votebar strong { color: var(--text); }
.votebar__dot { flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--gold); }
.votebar--ok .votebar__dot { background: var(--online); }
.votegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.votecard {
  position: relative; display: grid; grid-template-rows: 1fr auto; gap: 18px; padding: 22px 20px 20px;
  background: var(--deepslate-2); border: 2px solid var(--stone); border-radius: 8px;
  box-shadow: inset 0 4px 0 var(--grass-dark);
}
.votecard:hover { border-color: var(--stone-edge); }
.votecard__num {
  position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 4px;
  background: var(--stone); color: var(--muted); font: 700 .9375rem/1 var(--pixel);
}
.votecard__body { display: grid; gap: 4px; align-content: start; padding-right: 40px; }
.votecard__name { font: 700 1.25rem/1.25 var(--body); overflow-wrap: anywhere; }
.votecard__host { font-size: .8125rem; color: var(--grass-hover); overflow-wrap: anywhere; }
.votecard__desc { margin-top: 6px; font-size: .875rem; color: var(--muted); }
.votecard__foot { display: grid; gap: 8px; }
.votecard__as { font-size: .8125rem; color: var(--muted); }
.votecard__as strong { color: var(--text); }

/* ==========================================================
   Yardım
   ========================================================== */
.helphead {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(157, 111, 224, .28), transparent 60%),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(255, 255, 255, .03) 31px 32px),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(255, 255, 255, .03) 31px 32px),
    var(--deepslate-2);
  border-bottom: 2px solid var(--line-dark);
}
.helphead__inner { display: grid; gap: 14px; justify-items: center; padding: 56px 0 40px; text-align: center; }
.helphead__eyebrow { font: 700 .875rem/1 var(--pixel); color: var(--grass-hover); letter-spacing: .04em; }
.helphead__title { font: 800 clamp(1.75rem, 4vw, 2.625rem)/1.15 var(--body); letter-spacing: -.015em; text-shadow: .06em .06em 0 rgba(0, 0, 0, .45); }
.helphead__sub { max-width: 58ch; color: var(--muted); }
.helpsearch { position: relative; width: min(100%, 560px); margin-top: 8px; }
.helpsearch__icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.helpsearch__input {
  width: 100%; min-height: 54px; padding: 0 18px 0 46px; border: 2px solid var(--stone-edge); border-radius: 6px;
  background: var(--deepslate); color: var(--text); font: 400 1rem var(--body);
}
.helpsearch__input:focus { outline: none; border-color: var(--grass); box-shadow: 0 0 0 3px rgba(157, 111, 224, .25); }
.helptopics { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.helptopics a {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 4px;
  background: var(--stone); color: var(--text); font-size: .875rem; font-weight: 500; text-decoration: none;
}
.helptopics a:hover { background: var(--stone-hi); }
.helptopics .icon { color: var(--grass-hover); }

.helpbody { display: grid; gap: 40px; padding: 44px 0 88px; max-width: 920px; }
.helpsection { display: grid; gap: 14px; scroll-margin-top: 96px; }
.helpsection__title { display: flex; align-items: center; gap: 10px; font: 700 1.25rem/1.2 var(--body); }
.helpsection__icon { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 4px; background: var(--stone); color: var(--grass-hover); }

.helpstart { display: grid; gap: 16px; }
.helpsteps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.helpstep {
  display: grid; gap: 8px; align-content: start; padding: 18px; border-radius: 6px;
  background: var(--deepslate-2); border: 2px solid var(--stone); box-shadow: inset 0 3px 0 var(--grass-dark);
}
.helpstep h3 { font: 700 1.0625rem/1.25 var(--body); }
.helpstep p { font-size: .875rem; color: var(--muted); }
.helpstep code { color: var(--gold); }
.helpstep__num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 4px; background: var(--grass); color: var(--grass-ink); font: 700 1rem/1 var(--pixel); }
.helpstep__link { justify-self: start; color: var(--grass-hover); font-size: .875rem; font-weight: 600; text-decoration: none; }
.helpstep__link:hover { text-decoration: underline; }
.helpstep__done { font-size: .875rem; font-weight: 600; color: #9fdc74; }
.helpip { display: grid; gap: 6px; margin: 2px 0 0; }
.helpip div { display: grid; gap: 4px; }
.helpip dt { font-size: .8125rem; color: var(--muted); min-width: 40px; }
.helpip dd { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0; min-width: 0; }
.helpip code { padding: 3px 8px; border-radius: 3px; background: var(--deepslate); font-size: .875rem; white-space: nowrap; }
.helpip .btn--sm { min-height: 30px; padding: 0 10px; font-size: .875rem; }

.faq { display: grid; gap: 8px; }
.faq__item { border: 2px solid var(--stone); border-radius: 6px; background: var(--deepslate-2); }
.faq__item[open] { border-color: var(--stone-edge); }
.faq__item:target { border-color: var(--grass); }
.faq__q {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px;
  cursor: pointer; list-style: none; font-weight: 600;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--grass-hover); }
.faq__caret { flex: none; color: var(--muted); transition: transform .15s; }
.faq__item[open] .faq__caret { transform: rotate(180deg); }
.faq__a { padding: 0 18px 18px; color: #c9d1dc; font-size: .9375rem; }
.faq__a p + p, .faq__a p + ol, .faq__a p + ul, .faq__a ol + p, .faq__a ul + p { margin-top: 10px; }
.faq__a ol, .faq__a ul { display: grid; gap: 4px; padding-left: 1.4em; }
.faq__a ol { list-style: decimal; }
.faq__a ul { list-style: square; }
.faq__a a { color: var(--grass-hover); font-weight: 500; }
.faq__a code { padding: 1px 6px; border-radius: 3px; background: var(--deepslate); color: var(--gold); font-family: ui-monospace, Consolas, monospace; font-size: .875em; }
.faq__a mark, .faq__q mark { background: rgba(242, 182, 49, .3); color: inherit; border-radius: 2px; }

.helpempty { padding: 20px; border: 2px dashed var(--stone-edge); border-radius: 6px; color: var(--muted); text-align: center; }
.helpempty[hidden], .helpsection[hidden], .faq__item[hidden], .helpstart[hidden] { display: none; }

.helpcontact {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 24px; border-radius: 8px; border: 2px solid var(--grass-dark);
  background: linear-gradient(120deg, rgba(157, 111, 224, .16), var(--deepslate-2) 70%);
}
.helpcontact__title { font: 700 1.25rem/1.25 var(--body); margin-bottom: 4px; }
.helpcontact p { color: var(--muted); max-width: 56ch; }

@media (max-width: 900px) {
  .helpsteps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .helphead__inner { padding: 40px 0 28px; }
  .helpsteps { grid-template-columns: 1fr; }
  .faq__q { padding: 14px; }
  .faq__a { padding: 0 14px 14px; }
}

/* ==========================================================
   Başvurular (oyuncu tarafı)
   ========================================================== */
.applypage { padding: 48px 0 88px; }
.applycard {
  display: grid; gap: 24px; max-width: 1180px; margin-inline: auto; padding: 32px;
  background: var(--deepslate-2); border: 2px solid var(--stone); border-radius: 8px;
}
.applycard__head { display: grid; gap: 10px; }
.applycard__crumbs { font-size: .8125rem; color: var(--muted); }
.applycard__crumbs a { color: var(--muted); text-decoration: none; }
.applycard__crumbs a:hover { color: var(--text); text-decoration: underline; }
.applycard__title { font: 800 clamp(1.5rem, 3vw, 2rem)/1.2 var(--body); }
.applycard__desc { color: #c9d1dc; font-size: .9375rem; }

.applynote {
  display: grid; gap: 4px; padding: 14px 16px; border-radius: 6px; font-size: .9375rem;
  background: var(--deepslate); border: 2px solid var(--stone-edge); color: var(--muted);
}
.applynote strong { color: var(--text); }
.applynote a { color: var(--grass-hover); font-weight: 600; }
.applynote--wait { border-color: rgba(242, 182, 49, .5); }
.applynote--wait strong { color: var(--gold); }
.applynote--ok { border-color: rgba(106, 190, 48, .55); }
.applynote--ok strong { color: #9fdc74; }
.applynote--no { border-color: rgba(224, 83, 61, .55); }
.applynote--no strong { color: #ff9585; }

.applyform { display: grid; gap: 24px; }
.applyform__fields { display: grid; gap: 22px; margin: 0; padding: 0; border: 0; min-width: 0; }
.applyform__fields[disabled] { opacity: .55; }
.applyq { display: grid; gap: 8px; }
.applyq__group { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 10px; }
.applyq__label { padding: 0 4px; font-weight: 600; font-size: .9375rem; line-height: 1.45; }
.applyq__hint { color: var(--muted); font-weight: 400; font-size: .8125rem; }
.applyq__input {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 2px solid transparent; border-radius: 6px;
  background: #1d2430; color: var(--text); font: 400 .9375rem/1.5 var(--body);
}
.applyq__input--long { min-height: 96px; resize: vertical; }
.applyq__input:focus { outline: none; border-color: var(--grass); background: #202836; }
.has-error .applyq__input { border-color: rgba(224, 83, 61, .7); }
.applyq__err { padding: 0 4px; font-size: .8125rem; color: #ff9585; }
.applyq__choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.choice {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px; cursor: pointer;
  background: #1d2430; border: 2px solid transparent; font-size: .9375rem;
}
.choice:hover { border-color: var(--stone-edge); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__box { flex: none; width: 18px; height: 18px; border: 2px solid var(--stone-edge); border-radius: 3px; background: var(--deepslate); }
.choice input[type="radio"] + .choice__box { border-radius: 50%; }
.choice input:checked + .choice__box { border-color: var(--grass); background: var(--grass); box-shadow: inset 0 0 0 3px var(--deepslate); }
.choice:has(input:checked) { border-color: var(--grass-dark); }
.choice input:focus-visible + .choice__box { outline: 3px solid var(--diamond); outline-offset: 2px; }
.has-error .choice { border-color: rgba(224, 83, 61, .35); }
.applyform__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--stone); }
.applyform__as { color: var(--muted); font-size: .875rem; }
.applyform__as strong { color: var(--text); }

.applylist { padding: 36px 0 88px; }
.applygrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.applytile {
  display: grid; gap: 8px; height: 100%; padding: 22px; border-radius: 8px; text-decoration: none; color: var(--text);
  background: var(--deepslate-2); border: 2px solid var(--stone); box-shadow: inset 0 4px 0 var(--grass-dark);
  transition: border-color .15s;
}
.applytile:hover { border-color: var(--grass-dark); }
.applytile--closed { box-shadow: inset 0 4px 0 var(--stone-edge); opacity: .75; }
.applytile__state { justify-self: start; padding: 2px 8px; border-radius: 3px; background: rgba(106, 190, 48, .16); color: #9fdc74; font-size: .75rem; font-weight: 600; }
.applytile--closed .applytile__state { background: var(--stone); color: var(--muted); }
.applytile__title { font: 700 1.25rem/1.25 var(--body); }
.applytile__sum { color: var(--muted); font-size: .875rem; }
.applytile__meta { align-self: end; color: var(--grass-hover); font-size: .875rem; font-weight: 600; }

.myapps { display: grid; gap: 10px; }
.myapp { display: grid; gap: 10px; padding: 16px 18px; background: var(--deepslate-2); border: 2px solid var(--stone); border-radius: 6px; }
.myapp__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.myapp__title { font-weight: 700; }
.myapp__title span { color: var(--muted); font-weight: 500; font-size: .875rem; }
.myapp__date { color: var(--muted); font-size: .8125rem; }
.myapp__reason { padding: 10px 12px; border-radius: 4px; background: var(--deepslate); font-size: .875rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.myapp__link { justify-self: start; color: var(--grass-hover); font-size: .875rem; font-weight: 600; text-decoration: none; }
.myapp--pending .myapp__status { background: rgba(242, 182, 49, .18); color: var(--gold); }
.myapp--approved .myapp__status { background: rgba(106, 190, 48, .18); color: #9fdc74; }
.myapp--rejected .myapp__status { background: rgba(224, 83, 61, .18); color: #ff9585; }

@media (max-width: 560px) {
  .applypage { padding: 24px 0 64px; }
  .applycard { padding: 20px 16px; }
  .applyform__foot .btn { width: 100%; }
}

/* ==========================================================
   Şikayetler (oyuncu ve yetkili sayfaları ortak)
   ========================================================== */
.tintro { color: var(--muted); font-size: .9375rem; }
[hidden] { display: none !important; }

.tlist { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tlist__item {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 6px; text-decoration: none; color: inherit;
  background: var(--deepslate); border: 2px solid var(--stone); border-left-width: 4px; border-left-color: var(--gold);
}
.tlist__item--resolved { border-left-color: var(--grass); }
.tlist__item:hover { border-color: var(--stone-edge); }
.tlist__main { display: grid; gap: 3px; flex: 1; min-width: 0; }
.tlist__title { font-weight: 600; overflow-wrap: anywhere; }
.tlist__title span { color: var(--muted); font-weight: 500; }
.tlist__sub { color: var(--muted); font-size: .8125rem; }

.tbadge { flex: none; display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: .75rem; font-weight: 600; }
.tbadge--open { background: rgba(242, 182, 49, .18); color: var(--gold); }
.tbadge--resolved { background: rgba(106, 190, 48, .18); color: #9fdc74; }
.tbadge--new { background: var(--grass); color: var(--grass-ink); }

.tnew { display: grid; gap: 18px; padding: 22px; background: var(--deepslate); border: 2px solid var(--stone); border-radius: 6px; }
.tnew__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tnew__body { min-height: 150px; resize: vertical; }
.tnew__label { font-weight: 500; font-size: .9375rem; }
.tnew__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
@media (max-width: 640px) { .tnew__row { grid-template-columns: 1fr; } }

.tdrop {
  display: grid; gap: 4px; justify-items: center; padding: 22px 16px; text-align: center; cursor: pointer;
  border: 2px dashed var(--stone-edge); border-radius: 6px; background: var(--deepslate-2); color: var(--muted); font-size: .9375rem;
}
.tdrop strong { color: var(--grass-hover); }
.tdrop span { font-size: .8125rem; }
.tdrop:hover, .tdrop:focus-within, .tdrop.is-drag { border-color: var(--grass); }
.tcompose.is-drag { outline: 2px dashed var(--grass); outline-offset: 4px; }

.tview { display: grid; gap: 14px; }
.tview__seq { color: var(--muted); font-weight: 500; }
.tview__info { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--muted); font-size: .875rem; }
.tview__info strong { color: var(--text); }
.tview__state { margin-left: auto; }

.tchat {
  display: grid; gap: 14px; align-content: start; list-style: none; margin: 0; padding: 16px;
  max-height: min(65vh, 640px); min-height: 220px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--deepslate-2); border: 2px solid var(--stone); border-radius: 6px;
}
.tmsg { display: grid; gap: 4px; justify-items: start; max-width: min(560px, 88%); }
.tmsg--mine { justify-self: end; justify-items: end; }
.tmsg__meta { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--muted); }
.tmsg__who { font-weight: 600; color: var(--text); }
.tmsg__badge { padding: 1px 6px; border-radius: 3px; background: var(--grass); color: var(--grass-ink); font-weight: 700; font-size: .6875rem; }
.tmsg__bubble { display: grid; gap: 8px; padding: 10px 12px; border-radius: 8px 8px 8px 2px; background: var(--stone); max-width: 100%; }
.tmsg--mine .tmsg__bubble { border-radius: 8px 8px 2px 8px; background: var(--stone-hi); }
.tmsg--staff .tmsg__bubble { box-shadow: inset 3px 0 0 var(--grass); }
.tmsg--mine.tmsg--staff .tmsg__bubble { box-shadow: inset -3px 0 0 var(--grass); }
.tmsg__text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.tmsg--event { justify-self: center; justify-items: center; max-width: 100%; text-align: center; font-size: .8125rem; color: var(--muted); }
.tmsg--event > span { padding: 4px 10px; border-radius: 999px; background: var(--stone); }
.tmsg__ev--resolved { color: #9fdc74; }
.tmsg__ev--reopened { color: var(--gold); }

.tmsg__files { display: flex; flex-wrap: wrap; gap: 8px; }
.tfile { display: block; border-radius: 4px; overflow: hidden; background: var(--deepslate-2); }
.tfile--image img { display: block; width: 160px; height: 120px; object-fit: cover; }
.tfile--image:hover img { opacity: .9; }
.tfile--video { display: grid; gap: 4px; width: min(360px, 100%); }
.tfile--video video { display: block; width: 100%; max-height: 260px; background: #000; }
.tfile__dl { padding: 0 6px 6px; font-size: .75rem; color: var(--muted); }

.tcompose { display: grid; gap: 10px; }
.tcompose__text { min-height: 84px; resize: vertical; }
.tcompose__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tcompose__attach { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.tcompose__attach:focus-within { outline: 2px solid var(--grass); outline-offset: 2px; }
.tcompose__hint { color: var(--muted); font-size: .75rem; }
.tcompose__send { margin-left: auto; }
.tcompose__files { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tcompose__files:empty { display: none; }
.tcompose__progress { height: 6px; border-radius: 3px; background: var(--stone); overflow: hidden; }
.tcompose__progress span { display: block; height: 100%; width: 0; background: var(--grass); transition: width .15s; }
.tcompose__err { margin: 0; color: #ff9585; font-size: .875rem; }

.tpick { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 4px; border-radius: 4px; background: var(--stone); font-size: .8125rem; max-width: 100%; }
.tpick img, .tpick__video { width: 36px; height: 36px; flex: none; border-radius: 3px; object-fit: cover; }
.tpick__video { display: grid; place-items: center; background: #000; color: var(--text); }
.tpick__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.tpick__rm { width: 26px; height: 26px; flex: none; border: 0; border-radius: 3px; background: transparent; color: var(--muted); font-size: 1.125rem; cursor: pointer; }
.tpick__rm:hover { background: var(--stone-hi); color: var(--text); }

.tclosed { margin: 0; padding: 12px 14px; border-radius: 6px; border: 2px solid rgba(106, 190, 48, .45); color: var(--muted); font-size: .9375rem; }
.tclosed strong { color: var(--text); }
@media (max-width: 640px) {
  .tview__state { margin-left: 0; }
  .tmsg { max-width: 94%; }
  .tfile--image img { width: 120px; height: 90px; }
}

/* ==========================================================
   YILBAŞI TEMASI — <html data-winter> varken (config.isWinter).
   Kar piksel kare olarak yağar (js/winter.js, tek bir <canvas>).
   Butonların üstünde Minecraft kar katmanı gibi basamaklı kar birikir;
   --snow-h 0'dan 15px'e 3px'lik adımlarla büyür, tıklayınca kar fırlar ve sıfırlanır.
   Ziyaretçi sol alttaki düğmeyle karı kapatırsa <html data-snow="off"> olur.
   ========================================================== */
:root[data-winter] {
  --snow: #f3f5ff;
  --snow-shade: #c9cdee;
  --ice: #a9e4f2;
  /* 22×5 birimlik kar katmanı; her birim 3px. Alt satır gölge, üstte düzensiz tümsekler. */
  --snow-cap: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 5' width='66' height='15' shape-rendering='crispEdges'%3E%3Cpath fill='%23f3f5ff' d='M2 0h3v1H2zM12 0h2v1h-2zM18 0h1v1h-1zM1 1h6v1H1zM10 1h6v1h-6zM17 1h4v1h-4zM0 2h22v2H0z'/%3E%3Cpath fill='%23c9cdee' d='M0 4h22v1H0z'/%3E%3C/svg%3E");
  /* Üst barın altından sarkan kar saçağı ve buz sarkıtları (32×5 birim) */
  --snow-eave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 5' width='96' height='15' shape-rendering='crispEdges'%3E%3Cpath fill='%23f3f5ff' d='M0 0h32v1H0zM0 1h5v1H0zM8 1h9v1H8zM20 1h12v1H20zM10 2h4v1h-4zM24 2h5v1h-5z'/%3E%3Cpath fill='%23a9e4f2' d='M6 1h1v3H6zM18 1h1v2h-1zM11 3h1v2h-1zM26 3h1v1h-1z'/%3E%3C/svg%3E");
}

:root[data-winter]:not([data-snow="off"]) :is(.btn, .invbtn) { position: relative; }
:root[data-winter]:not([data-snow="off"]) :is(.btn, .invbtn)::before {
  content: ''; position: absolute; z-index: 1;
  left: -3px; right: -3px; bottom: calc(100% - 3px);
  height: var(--snow-h, 0px);
  background: var(--snow-cap) var(--snow-x, 0px) bottom / 66px 15px repeat-x; /* --snow-x: yan yana butonların deseni aynı olmasın */
  pointer-events: none;
}
/* Kenarlıklı butonlarda kar kenarlığın üstüne otursun */
:root[data-winter]:not([data-snow="off"]) .invbtn::before { left: -5px; right: -5px; bottom: calc(100% - 1px); }

:root[data-winter]:not([data-snow="off"]) .topbar::after {
  content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 15px;
  background: var(--snow-eave) 0 0 / 96px 15px repeat-x;
  pointer-events: none;
}

.snowfall { position: fixed; inset: 0; z-index: 45; width: 100%; height: 100%; pointer-events: none; }
:root[data-snow="off"] .snowfall { display: none; }

.snowtoggle {
  position: fixed; left: 16px; bottom: 16px; z-index: 46;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  background: var(--stone); color: var(--snow);
  border: 2px solid var(--stone-edge); border-radius: 3px; cursor: pointer;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .28);
}
.snowtoggle:hover { border-color: var(--grass); }
.snowtoggle[aria-pressed="false"] { color: var(--muted); }
.snowtoggle[aria-pressed="false"] svg { opacity: .45; }
@media print { .snowfall, .snowtoggle { display: none; } }

/* ---------- Yılbaşı: buz renkleri ----------
   Ametist vurgusu (--grass ailesi) kışın buz mavisine döner: butonlar, aktif menü çizgisi, bağlantılar.
   Zemin (--edge-*) ametist kalır; kardan adam üstünü karla kaplar. */
:root[data-winter] {
  --grass: #7cc8ec;
  --grass-hover: #a2dcf5;
  --grass-dark: #3f8fc0;
  --grass-ink: #082031;
}
/* Buz bloğundaki gibi sol üst köşede iki parlama çizgisi */
:root[data-winter] .btn--grass {
  background-image: linear-gradient(135deg, rgba(255, 255, 255, .5) 0 6px, transparent 6px 10px, rgba(255, 255, 255, .28) 10px 13px, transparent 13px);
}
:root[data-winter] .btn--stone { background-color: #2c3a5c; }
:root[data-winter] .btn--stone:hover { background-color: #3a4c74; }

/* ---------- Yılbaşı: ana sayfa sahnesi (partials/winterscape.ejs) ----------
   Kışın öğleden sonrası: kobalt gökyüzü pembe ufka iner, karlı dağların batı yamacı pembeleşir.
   Gölgeler mavi (#c4d6f5), ışıklar sıcak (pencere #ffd25e), süs ışıkları tek tek yanıp söner. */
:root[data-winter] .hero--sky { background: linear-gradient(180deg, #2c5cc5 0%, #5f9ae6 45%, #a9cdf3 72%, #f7d4dc 100%); }
:root[data-winter] .hero--sky::before { background: linear-gradient(90deg, rgba(14, 24, 58, .62), rgba(14, 24, 58, .2) 50%, rgba(14, 24, 58, 0) 72%); }
:root[data-winter] .hero__clouds span { background: #fff; box-shadow: 24px -16px 0 #fff, 64px -16px 0 #fff, 48px 0 0 #e1ebfb; }
:root[data-winter] .hero--sky .hero__content { padding-bottom: 150px; }

.winterscape { position: absolute; inset: 0 0 24px; z-index: -1; pointer-events: none; }
.winterscape__hills { position: absolute; left: 0; bottom: 0; }
.winterscape__build {
  position: absolute; bottom: 0; right: max(0px, calc((100% - var(--wrap)) / 2));
  width: min(1060px, 74vw); height: auto;
}
.winterscape__sun { position: absolute; top: 12%; right: max(24px, calc((100% - var(--wrap)) / 2 + 40px)); width: 88px; height: 88px; }
.ws-sun { fill: #ffe6a8; }
.ws-sun-light { fill: #fff8e3; }
.ws-sun-halo { fill: #ffe6a8; opacity: .25; }

.ws-rock { fill: #6f86cc; }
.ws-rock-lit { fill: #8f9fdc; }
.ws-peak { fill: #e3ecff; }
.ws-peak-lit { fill: #ffe0ea; }
.ws-hill { fill: #d5e3fa; }
.ws-hill-top { fill: #fff; }
.ws-hill-tree { fill: #3c7d78; }

.ws-snow { fill: #fff; }
.ws-shade { fill: #c4d6f5; }
.ws-ice { fill: #8fdcf2; }
.ws-ice-light { fill: #dcf7ff; }
.ws-needle { fill: #1f6f5b; }
.ws-needle-dark { fill: #154c41; }
.ws-trunk { fill: #5a3a22; }
.ws-plank { fill: #b07a48; }
.ws-plank-dark { fill: #8f5f35; }
.ws-log { fill: #6b4a2f; }
.ws-log-dark { fill: #4a311e; }
.ws-door { fill: #6b4a2f; }
.ws-knob { fill: #f2b631; }
.ws-stone { fill: #8a8d9e; }
.ws-stone-dark { fill: #666a7c; }
.ws-roof { fill: #b8403a; }
.ws-roof-eave { fill: #7c2924; }
.ws-fence { fill: #a07a4a; }
.ws-fence-dark { fill: #7a5a34; }
.ws-path { fill: #c4d6f5; }
.ws-window { fill: #ffd25e; }
.ws-window-light { fill: #fff3c4; }
.ws-glow { fill: #ffd25e; opacity: .3; }
.ws-lantern { fill: #ffd25e; }
.ws-lantern-glow { fill: #ffd25e; opacity: .35; }
.ws-wreath { fill: #2a8a4a; }
.ws-ribbon { fill: #e0453a; }
.ws-star { fill: #ffe14d; }
.ws-star-glow { fill: #ffe14d; opacity: .3; }
.ws-gift-red { fill: #e0453a; }
.ws-gift-blue { fill: #3f8fe0; }
.ws-gift-green { fill: #3fae5a; }
.ws-gift-ribbon { fill: #ffe14d; }

/* Süs ışıkları: dört renk, her renk kendi zamanında söner */
.ws-bulb { animation: ws-blink 2.4s steps(1) infinite; }
.ws-bulb--0 { fill: #ff4f5e; }
.ws-bulb--1 { fill: #ffd23d; animation-delay: -.6s; }
.ws-bulb--2 { fill: #4fd2ff; animation-delay: -1.2s; }
.ws-bulb--3 { fill: #7cf07a; animation-delay: -1.8s; }
@keyframes ws-blink { 75% { opacity: .3; } }

.ws-smoke { fill: #eef2fa; opacity: 0; transform-box: fill-box; animation: ws-smoke 4.5s linear infinite; }
.ws-smoke--2 { animation-delay: -1.5s; }
.ws-smoke--3 { animation-delay: -3s; }
@keyframes ws-smoke {
  0% { opacity: 0; transform: translate(0, 4px); }
  20% { opacity: .75; }
  100% { opacity: 0; transform: translate(2px, -10px); }
}

/* Kar izi çimen kenarının tam üstüne oturur; aynı desen başlangıcı, 8px yukarıda kar yığını payı */
.snowtrail { position: absolute; left: 0; bottom: -1px; z-index: 1; pointer-events: none; }

/* Kar golemi: Minecraft'taki gibi yürüdüğü yeri karla kaplar */
.snowman { position: absolute; left: 0; bottom: -1px; z-index: 2; width: 38px; pointer-events: none; will-change: transform; }
.snowman__body { display: block; overflow: visible; }
.snowman__hop { transition: transform .14s steps(2); }
.snowman.is-left .snowman__body { transform: scaleX(-1); }
.snowman.is-walking .snowman__body { animation: sm-waddle .6s steps(1) infinite; transform-origin: 50% 100%; }
.snowman.is-walking.is-left .snowman__body { animation-name: sm-waddle-left; }
@keyframes sm-waddle { 0% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) translateY(-2px); } }
@keyframes sm-waddle-left { 0% { transform: scaleX(-1) rotate(-4deg); } 50% { transform: scaleX(-1) rotate(4deg) translateY(-2px); } }
/* Atış: kol kartopuyla havaya kalkar (is-winding), sonra ileri savrulur (is-throwing) */
.sm-arm--wind, .sm-arm--throw { display: none; }
.snowman.is-winding .sm-arm--rest, .snowman.is-throwing .sm-arm--rest { display: none; }
.snowman.is-winding .sm-arm--wind, .snowman.is-throwing .sm-arm--throw { display: inline; }
.sm-snow { fill: #fff; }
.sm-shade { fill: #c4d6f5; }
.sm-fleck { fill: #e2eafa; }
.sm-pumpkin { fill: #e8891c; }
.sm-pumpkin-dark { fill: #c06a10; }
.sm-pumpkin-light { fill: #f6a43a; }
.sm-stem { fill: #5a4a1e; }
.sm-face { fill: #3a1f06; }
.sm-stick { fill: #6b4a2f; }
.sm-ball { fill: #fff; }
.sm-ball-shade { fill: #c4d6f5; }

@media (max-width: 760px) {
  .winterscape { bottom: 16px; }
  .winterscape__build { width: 92vw; }
  .winterscape__sun { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ws-smoke { animation: none; opacity: .5; }
  .ws-bulb { animation: none; }
  .snowman.is-walking .snowman__body { animation: none; }
}

/* ---------- Gündüz: ana sayfa sahnesi (partials/summerscape.ejs) ---------- */
.summerscape { position: absolute; inset: 0 0 24px; z-index: -1; pointer-events: none; }
.summerscape__hills { position: absolute; left: 0; bottom: 0; }
/* Sahne butonların arkasında kalmasın */
.hero--sky .hero__content { padding-bottom: 130px; }
.summerscape__build {
  position: absolute; bottom: 0; right: max(0px, calc((100% - var(--wrap)) / 2));
  width: min(1060px, 74vw); height: auto;
}
.summerscape__sun { position: absolute; top: 12%; right: max(24px, calc((100% - var(--wrap)) / 2 + 40px)); width: 88px; height: 88px; }
.ss-sun { fill: #fff3a8; }
.ss-sun-light { fill: #fffbe0; }
.ss-sun-halo { fill: #fff3a8; opacity: .22; }
.summerscape__birds { position: absolute; top: 22%; left: 100%; animation: ss-fly 38s linear infinite; }
.ss-bird { position: absolute; transform: translate(var(--dx), var(--dy)); animation: ss-flap .5s steps(1) infinite; }
.ss-bird--2 { animation-delay: -.2s; }
.ss-bird--3 { animation-delay: -.35s; }
.ss-bird-ink { fill: #2a3452; }
@keyframes ss-fly { from { transform: translateX(0); } to { transform: translateX(-115vw) translateY(-40px); } }
@keyframes ss-flap { 50% { transform: translate(var(--dx), calc(var(--dy) + 2px)) scaleY(-1); } }

.ss-hill-far { fill: #8eb0dc; }
.ss-hill-near { fill: #5d8a6c; }
.ss-hill-top { fill: #74a777; }
.ss-hill-tree { fill: #4b7558; }
.ss-log { fill: #6b4a2f; }
.ss-log-dark { fill: #4a311e; }
.ss-leaf { fill: #4f9a3c; }
.ss-leaf-dark { fill: #3a7a2e; }
.ss-leaf-light { fill: #74c055; }
.ss-apple { fill: #d9402e; }
.ss-birch { fill: #e9e4d6; }
.ss-birch-spot { fill: #3a3630; }
.ss-birch-leaf { fill: #7cb84a; }
.ss-birch-leaf-dark { fill: #5f9a38; }
.ss-fence { fill: #a07a4a; }
.ss-fence-dark { fill: #7a5a34; }
.ss-plank { fill: #b8915a; }
.ss-plank-dark { fill: #96733f; }
.ss-stone { fill: #8a8d96; }
.ss-stone-dark { fill: #666a74; }
.ss-glass { fill: #a8d8f0; }
.ss-glass-light { fill: #e6f6ff; }
.ss-pot { fill: #9a5236; }
.ss-door { fill: #6b4a2f; }
.ss-door-light { fill: #8a6240; }
.ss-knob { fill: #f2b631; }
.ss-lantern { fill: #ffcf5a; }
.ss-lantern-glow { fill: #ffcf5a; opacity: .25; }
.ss-roof { fill: #8a3b34; }
.ss-roof-dark { fill: #73302b; }
.ss-roof-eave { fill: #4f211d; }
.ss-water { fill: #3f7fd0; }
.ss-amethyst { fill: #9d6fe0; }
.ss-amethyst-light { fill: #c6a4f5; }
.ss-amethyst-dark { fill: #5d3f99; }
.ss-stem { fill: #3a7a2e; }
.ss-flower-red { fill: #e0453a; }
.ss-flower-yellow { fill: #f5d33b; }
.ss-flower-blue { fill: #6ab4f0; }
.ss-ground { fill: var(--edge-top); }
.ss-path { fill: #9a7b55; }
.ss-path-dark { fill: #7a5e3e; }
.ss-smoke { fill: #eef1f6; opacity: 0; transform-box: fill-box; animation: ws-smoke 4.5s linear infinite; }
.ss-smoke--2 { animation-delay: -1.5s; }
.ss-smoke--3 { animation-delay: -3s; }

@media (max-width: 760px) {
  .summerscape { bottom: 16px; }
  .summerscape__build { width: 92vw; }
  .summerscape__sun { display: none; }
  .hero--sky .hero__content { padding-bottom: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .ss-smoke { animation: none; opacity: .5; }
  .summerscape__birds { display: none; }
}

/* ---------- Şifremi unuttum / e-posta onayı ---------- */
.field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field__link { font-size: .875rem; color: var(--grass-hover); font-weight: 500; }
.field__link:hover { text-decoration: underline; }
.notice {
  margin-top: 20px; padding: 12px 14px;
  background: rgba(98, 196, 120, .12); border: 2px solid rgba(98, 196, 120, .45); border-radius: 3px;
  color: #bdf0c8; font-size: .9375rem;
}
.input--code { font: 700 1.75rem/1 var(--pixel); letter-spacing: .35em; text-align: center; }
.verify__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.verify__alt { margin-top: 24px; padding-top: 18px; border-top: 2px solid var(--stone-hi); }
.verify__alt summary { cursor: pointer; color: var(--muted); font-size: .9375rem; }
.verify__alt summary:hover { color: var(--text); }
.verify__alt .form { margin-top: 14px; }

/* ---------- Bakım modu sayfası (views/maintenance.ejs) ---------- */
.maintenance { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 48px 0; }
.maintenance h1 { margin-top: 24px; font: 700 2.5rem/1.1 var(--pixel); }
.maintenance p { max-width: 52ch; color: var(--muted); }
.maintenance__ip strong { color: var(--gold); }
.maintenance__login { margin-top: 12px; font-size: .9rem; }
