/* M O R G A N A — herkese acik site. Genis ekranda cok sutunlu, telefonda alt gezinmeli tek sutun. */
:root {
  --bg: #060509;
  --surface: rgba(12, 10, 18, 0.8);
  --surface-2: #1b1629;
  --border: rgba(214, 196, 160, 0.13);
  --border-strong: rgba(214, 196, 160, 0.34);
  --text: #f1eefa;
  --text-2: #b6aecf;
  --text-3: #7d7599;
  --purple: #8b5cf6;
  --purple-2: #cdb98f;
  --pink: #d946ef;
  --green: #34d399;
  --gold: #f5c86b;
  --red: #fb7185;
  --accent: #c8a96a;
  --accent-2: #8b6fd6;
  --radius: 14px;
  --ivory: #ece5d3;
  --display: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --top: 68px;
}
/* Mevsim yalnizca sis ve isik rengini degistirir; sitenin ana renkleri sabit kalir */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 15px; line-height: 1.55; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; }
h1, .h, .sub-h { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; }
button, input, textarea { font: inherit; }
kbd { padding: 2px 7px; border-radius: 7px; border: 1px solid var(--border); background: rgba(8, 6, 14, 0.6); color: var(--text-3); font: 600 11px 'Plus Jakarta Sans', sans-serif; }
.hidden { display: none !important; }
.muted { color: var(--text-3); }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── Sahne ── */
.scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.scene-bg { position: absolute; inset: -6%; background: center / cover no-repeat; filter: blur(14px) saturate(1.25) brightness(0.55); transition: opacity 0.4s var(--ease); }
.scene-bg.swap { opacity: 0; }
.day .scene-bg { filter: blur(14px) saturate(1.2) brightness(0.62); }
.scene::after { content: ''; position: absolute; inset: 0; background: radial-gradient(1200px 700px at 50% -10%, transparent, rgba(6, 5, 9, 0.72) 70%), linear-gradient(180deg, rgba(6, 5, 9, 0.35), rgba(6, 5, 9, 0.9) 78%); }
.scene-mist { position: absolute; inset: 0; z-index: 1; background: radial-gradient(60% 40% at 20% 70%, rgba(180, 155, 255, 0.11), transparent 70%), radial-gradient(50% 35% at 80% 40%, rgba(217, 70, 239, 0.08), transparent 70%); animation: mist 26s ease-in-out infinite alternate; }
.season-cadilar .scene-mist { background: radial-gradient(60% 40% at 20% 70%, rgba(249, 115, 22, 0.13), transparent 70%), radial-gradient(50% 35% at 80% 40%, rgba(192, 38, 211, 0.1), transparent 70%); }
#scene-fx { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; }
@keyframes mist { from { transform: translate3d(-3%, 1%, 0) scale(1.05); } to { transform: translate3d(3%, -2%, 0) scale(1.15); } }

/* ── Dugmeler ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-weight: 700; cursor: pointer; white-space: nowrap; transition: transform 0.2s var(--ease), filter 0.2s, border-color 0.2s; }
.btn:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.btn-primary { border-color: transparent; background: var(--ivory); color: #15111d; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-glass { background: transparent; border-color: var(--border-strong); }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 12px; letter-spacing: 0.02em; }
.btn:disabled { opacity: 0.55; cursor: default; transform: none; }

/* ── Ust cubuk ── */
.top { position: sticky; top: 0; z-index: 30; height: var(--top); display: flex; align-items: center; gap: 16px; padding: 0 max(20px, calc((100vw - 1440px) / 2)); border-bottom: 1px solid transparent; transition: background 0.3s, border-color 0.3s; }
.top.scrolled { background: rgba(6, 5, 9, 0.82); backdrop-filter: blur(16px); border-color: var(--border); }
.top-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.08em; white-space: nowrap; min-width: 0; flex: 0 1 auto; max-width: 260px; }
/* Uzun sunucu adı ("M O R G A N A #YAKINDA") menünün altına girmesin: sığmayan kısım "…" olur */
.top-brand span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.top-brand img { flex: none; }
.top-brand img { width: 36px; height: 36px; border-radius: 11px; background: var(--surface-2); }
.top-nav { display: flex; gap: 2px; margin: 0 auto; }
.top-nav a { display: flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 10px; color: var(--text-2); font-weight: 600; white-space: nowrap; transition: color 0.2s, background 0.2s; }
.top-nav a:hover { color: var(--text); }
.top-nav a.active { color: var(--ivory); background: rgba(236, 229, 211, 0.08); }
.search-btn { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04); color: var(--text-2); cursor: pointer; }
.search-btn:hover { border-color: var(--border-strong); color: var(--text); }

/* ── Sayfa gecisi ── */
.page { min-height: 70vh; transition: opacity 0.16s ease, transform 0.16s ease; }
.page.leaving { opacity: 0; transform: translateY(8px); }
.page.entering { animation: enter 0.4s var(--ease); }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.sk { height: 120px; border-radius: var(--radius); background: linear-gradient(100deg, rgba(255, 255, 255, 0.04) 30%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.04) 70%) 0 0 / 300% 100%; animation: shimmer 1.3s linear infinite; }
.sk-band { height: 200px; margin: 28px 0 20px; }
.sk-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.sk-tall { height: 260px; }
@keyframes shimmer { to { background-position: -300% 0; } }

/* ── Acilis ── */
.hero { position: relative; min-height: min(92vh, 860px); margin-top: calc(var(--top) * -1); display: grid; place-items: center; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(75% 65% at 50% 40%, transparent 30%, rgba(6, 5, 9, 0.6) 100%), linear-gradient(180deg, rgba(6, 5, 9, 0.45), transparent 26%, transparent 72%, var(--bg) 100%); pointer-events: none; }
/* Acilis sahnesi: katmanlar arkadan one dogru dizilir, fareyle farkli hizlarda kayar */
.hero-scene { position: absolute; inset: 0; overflow: hidden; }
.sky { position: absolute; inset: 0; background: linear-gradient(180deg, #06050d 0%, #110e24 42%, #231733 70%, #3b2130 100%); }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.moon { position: absolute; top: 16%; right: 17%; width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle at 38% 36%, #fffaf0, #e6dcc4 60%, #c5b999); box-shadow: 0 0 60px 18px rgba(236, 229, 211, 0.16), 0 0 180px 70px rgba(236, 229, 211, 0.07); }
.forest { position: absolute; left: -4%; bottom: 0; width: 108%; height: 100%; will-change: transform; }
.ember { position: absolute; left: 50%; bottom: 9%; width: 620px; height: 300px; margin-left: -310px; background: radial-gradient(closest-side, rgba(255, 158, 84, 0.46), rgba(255, 110, 50, 0.13) 55%, transparent); filter: blur(8px); animation: flicker 4.5s ease-in-out infinite; }
.fogband { position: absolute; left: -10%; right: -10%; bottom: 6%; height: 34%; background: radial-gradient(60% 100% at 28% 60%, rgba(205, 195, 235, 0.15), transparent 70%), radial-gradient(50% 90% at 76% 50%, rgba(205, 195, 235, 0.11), transparent 70%); filter: blur(12px); animation: mist 24s ease-in-out infinite alternate; }
@keyframes flicker { 0%, 100% { opacity: 0.85; transform: scale(1); } 40% { opacity: 1; transform: scale(1.06); } 70% { opacity: 0.72; transform: scale(0.97); } }
.moon-o { display: inline-block; width: 0.74em; height: 0.74em; margin-right: 0.22em; border-radius: 50%; vertical-align: -0.015em; border: 1px solid rgba(236, 229, 211, 0.2); box-shadow: inset -0.16em 0.03em 0 0 var(--accent); }
.ornament b { width: 6px; height: 6px; transform: rotate(45deg); background: var(--accent); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }



@keyframes float { 50% { margin-bottom: 14px; } }
.hero-body { position: relative; z-index: 2; max-width: 900px; padding: calc(var(--top) + 40px) 20px 56px; display: grid; justify-items: center; gap: 20px; text-align: center; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.42em; text-transform: uppercase; }
.ornament { display: flex; align-items: center; gap: 14px; color: var(--accent); }
.ornament i { width: 84px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent)); }
.ornament i:last-child { transform: scaleX(-1); }

.hero h1 { white-space: nowrap; font-size: clamp(38px, 8vw, 100px); font-weight: 700; letter-spacing: 0.22em; margin-right: -0.22em; color: var(--ivory); text-shadow: 0 8px 50px rgba(0, 0, 0, 0.85); }
.hero-sub { max-width: 520px; color: var(--text-2); font-size: 17px; line-height: 1.7; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9); }
.counters { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--border); }
.counter { padding: 2px 34px; border-left: 1px solid var(--border); }
.counter:first-child { border-left: 0; }
.counter b { display: block; font-family: var(--display); font-size: 34px; font-weight: 600; line-height: 1.15; color: var(--ivory); font-variant-numeric: lining-nums tabular-nums; }
.counter span { color: var(--text-3); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.counter.live b::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--green); vertical-align: middle; animation: blink 2s ease-in-out infinite; }
.counter.pulse b { animation: pulse 1.2s var(--ease); }
@keyframes blink { 50% { opacity: 0.45; } }
@keyframes pulse { 30% { color: var(--green); } }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Serif yazi tipinin eski tip rakamlari sayilarda dalgali durur: duz rakam kullan */
.counter b, .record b, .story-clock, .season-clock span { font-variant-numeric: lining-nums tabular-nums; }

/* ── Duzen ── */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px 70px; display: grid; gap: 34px; }
.cols { max-width: 1480px; margin: 0 auto; padding: 10px 20px 70px; display: grid; grid-template-columns: 300px minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.col { display: grid; gap: 22px; }
.cols > aside { position: sticky; top: calc(var(--top) + 14px); }
.col-main { gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.stack { display: grid; gap: 22px; }
.panel { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(14px); }
.h { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 20px; }
.h .ic { color: var(--purple-2); }
.h em { margin-left: auto; color: var(--text-3); font: 600 13px 'Plus Jakarta Sans', sans-serif; }
.sub-h { margin: 22px 0 12px; font-size: 16px; color: var(--text-2); }
.empty { padding: 26px; border-radius: var(--radius); border: 1px dashed var(--border); color: var(--text-3); text-align: center; }
.empty.big { margin-top: 80px; display: grid; gap: 16px; justify-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(200, 169, 106, 0.1); color: var(--purple-2); border: 1px solid rgba(200, 169, 106, 0.28); white-space: nowrap; }
.chip-live { background: rgba(52, 211, 153, 0.12); color: #6ee7b7; border-color: rgba(52, 211, 153, 0.35); }
.chip-season { background: rgba(214, 120, 60, 0.12); color: #e0a36a; border-color: rgba(214, 120, 60, 0.34); }

/* ── Egilen kartlar ── */
.tilt { position: relative; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.35s var(--ease), border-color 0.25s, box-shadow 0.25s; }
.tilt.tilting { transition: transform 0.08s linear, border-color 0.25s, box-shadow 0.25s; border-color: var(--border-strong); box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.9); }
.tilt::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(236, 229, 211, 0.06), transparent 65%); transition: opacity 0.25s; }
.tilt.tilting::after { opacity: 1; }

/* ── Sayfa basi sahnesi ── */
.band { position: relative; max-width: 1240px; margin: 18px auto 34px; padding: 44px 40px; min-height: 210px; display: flex; align-items: center; border-radius: 26px; border: 1px solid var(--border); background: linear-gradient(110deg, rgba(10, 8, 16, 0.86) 30%, rgba(10, 8, 16, 0.25)); overflow: hidden; }
.band-text { position: relative; z-index: 2; max-width: 620px; display: grid; gap: 10px; }
.band h1 { font-size: clamp(32px, 4.4vw, 54px); color: var(--ivory); }
.band p { color: var(--text-2); font-size: 16px; }
.band-sprite { position: absolute; right: 4%; bottom: -8%; height: 124%; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.7)); pointer-events: none; }
@media (min-width: 1281px) { .band { margin-left: auto; margin-right: auto; } }

/* ── Ana sayfa parcalari ── */
.room { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid rgba(139, 112, 220, 0.09); }
.room:last-child { border-bottom: 0; }
.room-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; }
.room b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.room span:last-child { color: var(--text-2); font-weight: 700; font-size: 14px; font-variant-numeric: lining-nums tabular-nums; }
.records { display: grid; gap: 12px; }
.record { display: flex; align-items: baseline; gap: 12px; }
.record b { min-width: 64px; font-family: var(--display); font-size: 26px; font-weight: 600; line-height: 1; color: var(--accent); font-variant-numeric: lining-nums tabular-nums; }
.record span { color: var(--text-2); }
.record small { display: block; color: var(--text-3); font-size: 12px; }
.link-panel { display: flex; align-items: center; gap: 14px; }
.link-panel > .ic:first-child { width: 26px; height: 26px; color: var(--purple-2); }
.link-panel div { flex: 1; display: grid; }
.link-panel span { color: var(--text-3); font-size: 13px; }
.link-panel > .ic:last-child { color: var(--text-3); transition: transform 0.25s var(--ease); }
.link-panel:hover > .ic:last-child { transform: translateX(4px); color: var(--text); }
.story-card { padding: 34px 38px; border-radius: var(--radius); border: 1px solid var(--border-strong); background: linear-gradient(180deg, rgba(20, 16, 30, 0.86), rgba(10, 8, 16, 0.86)); }

.story-card > div { display: grid; gap: 14px; min-width: 0; justify-items: start; }
.story-card p { color: var(--text-2); max-width: 560px; }
.story-clock { font-family: var(--display); font-size: clamp(40px, 5.4vw, 68px); font-weight: 600; line-height: 1; letter-spacing: 0.02em; color: var(--ivory); font-variant-numeric: lining-nums tabular-nums; }
.story-last { width: 100%; display: grid; gap: 4px; padding-top: 16px; border-top: 1px solid var(--border); transition: color 0.2s; }
.story-last:hover b { color: var(--accent); }
.story-last b { font-family: var(--display); font-size: 19px; font-weight: 600; transition: color 0.2s; }
.story-last small { color: var(--text-3); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.story-last span { color: var(--text-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.season { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 26px 30px; border-radius: var(--radius); border: 1px solid rgba(214, 120, 60, 0.26); background: linear-gradient(180deg, rgba(30, 16, 10, 0.82), rgba(12, 10, 16, 0.86)); }
.season h3 { margin: 12px 0; font-family: var(--display); font-size: 22px; font-weight: 600; }
.season-clock span { display: block; font-family: var(--display); font-size: 30px; font-weight: 600; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; color: #e0a36a; }
.season-clock small { color: var(--text-3); }
.season-top { display: grid; gap: 4px; align-content: center; }

/* ── Kartlar ── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.card { display: grid; gap: 8px; align-content: start; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(12px); }
.card-top { display: flex; justify-content: space-between; gap: 8px; }
.card h3 { font-family: var(--display); font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.card p { color: var(--text-2); font-size: 14px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.accent { color: var(--purple-2); font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }
.meta { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 13px; }

.rank { display: flex; align-items: center; gap: 12px; padding: 8px 2px; }
.rank b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-n { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 9px; background: var(--surface-2); color: var(--text-2); font-size: 13px; font-weight: 800; flex: none; }
.rank-n.n1 { background: linear-gradient(135deg, #f5c86b, #d97706); color: #1a1205; }
.rank-n.n2 { background: linear-gradient(135deg, #e5e7eb, #9ca3af); color: #14161a; }
.rank-n.n3 { background: linear-gradient(135deg, #f0a56b, #9a5522); color: #1a0e05; }
.rank-v { color: var(--purple-2); font-weight: 700; font-variant-numeric: lining-nums; white-space: nowrap; text-align: right; }
.rank-v small { display: block; color: var(--text-3); font-size: 11px; font-weight: 500; }
.av { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); flex: none; object-fit: cover; }
.av-xs { width: 22px; height: 22px; }

.chart { width: 100%; height: 240px; display: block; }
.ln { fill: none; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ln-a { stroke: #a78bfa; }
.ln-b { stroke: #f472b6; stroke-dasharray: 5 5; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 8px; color: var(--text-2); font-size: 14px; }
.lg::before { content: ''; display: inline-block; width: 18px; height: 3px; margin-right: 8px; border-radius: 2px; vertical-align: middle; }
.lg-a::before { background: #a78bfa; }
.lg-b::before { background: #f472b6; }
.chart-axis { display: flex; justify-content: space-between; color: var(--text-3); font-size: 12px; }

.staff-group { margin-bottom: 22px; }
.staff-group h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 15px; color: var(--text-2); }
.staff-group h3 i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.staff-group h3 span { color: var(--text-3); }
.staff-grid, .roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.person, .member { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--c, var(--border)); min-width: 0; backdrop-filter: blur(10px); }
.person div, .member div { flex: 1; min-width: 0; }
.person b, .person span, .member b, .member div span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person span, .member div span { color: var(--text-3); font-size: 12px; }
.chips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.loca { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(10px); }
.loca span { color: var(--text-3); font-size: 13px; }

/* ── Oyun kartlari ── */
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.gcard { display: grid; gap: 4px; justify-items: center; padding: 16px 14px 14px; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--c) 26%, transparent), transparent 70%), var(--surface); text-align: center; backdrop-filter: blur(12px); }
.gcard-lv { justify-self: start; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 22%, #0a0810); color: var(--c); font-size: 12px; font-weight: 800; }
.gcard-art { width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.gcard-art img { width: 92%; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.6)); transition: transform 0.4s var(--ease); }
.gcard.tilting .gcard-art img { transform: translateY(-6px) scale(1.06); }
.egg { width: 46%; aspect-ratio: 3 / 4; border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%; background: radial-gradient(circle at 35% 30%, #fff8, transparent 40%), linear-gradient(160deg, #d6c8ff, #7c5cc4); }
.gcard-name { font-weight: 800; font-size: 16px; overflow-wrap: anywhere; }
.gcard-sub { color: var(--text-3); font-size: 12px; }
.gcard-owner { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--text-2); font-size: 13px; max-width: 100%; }
.gcard-owner span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.lcard { display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(12px); }
.lcard-art { width: 92px; height: 92px; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.6)); }
.lcard-body { flex: 1; min-width: 0; display: grid; }
.lcard-body b { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard-body span { color: var(--text-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard-power { text-align: right; font-size: 22px; font-weight: 800; color: var(--gold); }
.lcard-power small { display: block; font-size: 11px; font-weight: 500; color: var(--text-3); }
.stages, .skins { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.stage, .skin { display: grid; justify-items: center; gap: 2px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); text-align: center; backdrop-filter: blur(10px); }
.stage img, .skin img { width: 86%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.6)); }
.stage span, .skin span { color: var(--text-3); font-size: 13px; }
.skin span { color: var(--gold); font-weight: 700; }

/* ── Lonca sayfasi ── */
/* Koy sahnesi: bolgenin arka plani, ortada loncanin yapisi, onunde uyelerin hayvanlari */
.village { position: relative; max-width: 1240px; height: 460px; margin: 18px auto 34px; border-radius: 26px; border: 1px solid var(--border); overflow: hidden; }
.village::before { content: ''; position: absolute; inset: -3%; background: url('/img/arkaplan/kir-gece.webp') center 60% / cover no-repeat; filter: blur(3px) brightness(0.8); }
.day .village::before { background-image: url('/img/arkaplan/kir-gunduz.webp'); }
.village::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 5, 9, 0.1) 40%, rgba(6, 5, 9, 0.92) 88%); }
.village-main { position: absolute; z-index: 1; left: 50%; bottom: 112px; height: 300px; margin-left: -150px; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.7)); }
.village-pets { position: absolute; z-index: 2; left: 0; right: 0; bottom: 92px; display: flex; justify-content: space-evenly; align-items: flex-end; padding: 0 5%; pointer-events: none; }
.village-pets img { width: 108px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.7)); animation: float 6s ease-in-out infinite; animation-delay: calc(var(--i) * -0.7s); }
.village-pets img:nth-child(odd) { margin-top: 26px; }
.village-text { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 18px 28px; display: grid; gap: 4px; }
.village-text h1 { font-size: clamp(26px, 4vw, 42px); font-weight: 800; }
.village-text p { color: var(--text-2); }
.backlink { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-weight: 600; }
.backlink:hover { color: var(--text); }

/* ── Oyuncu sayfasi ── */
.profile { grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); align-items: start; }
.gcard-hero { padding: 26px; border-radius: 28px; }
.gcard-hero .gcard-name { font-size: 26px; }
.gcard-hero .gcard-sub { font-size: 15px; }
.profile-info { display: grid; gap: 18px; justify-items: start; }
.profile-owner { display: flex; align-items: center; gap: 14px; }
.profile-owner .av { width: 60px; height: 60px; }
.profile-owner b { display: block; font-size: 22px; }
.profile-owner span { color: var(--gold); font-weight: 600; }
.profile-info dl { width: 100%; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.profile-info dl div { padding: 12px 14px; border-radius: 14px; background: rgba(8, 6, 14, 0.55); border: 1px solid var(--border); }
.profile-info dt { color: var(--text-3); font-size: 12px; }
.profile-info dd { margin: 0; font-weight: 700; font-size: 16px; }

/* ── Hikaye okuma ── */
.reader { max-width: 760px; gap: 18px; padding-top: 30px; justify-items: start; }
.reader h1 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; }
.reader p { font-family: 'Lora', Georgia, serif; font-size: 19px; line-height: 1.9; color: #e4dfd2; }

/* ── Rehber ve formlar ── */
.faq { display: grid; gap: 10px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::before { content: '+'; display: inline-block; width: 22px; color: var(--purple-2); font-weight: 800; }
.faq details[open] summary::before { content: '–'; }
.faq p { margin-top: 10px; padding-left: 22px; color: var(--text-2); }
.rules { margin: 0; padding-left: 40px; display: grid; gap: 10px; color: var(--text-2); }
.cmds { display: grid; gap: 2px; margin-top: 14px; }
.cmd { display: grid; grid-template-columns: minmax(180px, 280px) minmax(0, 1fr); gap: 16px; padding: 10px 6px; border-bottom: 1px solid rgba(139, 112, 220, 0.09); }
.cmd code { color: var(--purple-2); font: 600 14px ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.cmd span { color: var(--text-2); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.tab { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text-2); font-weight: 700; cursor: pointer; transition: color 0.2s, background 0.2s, border-color 0.2s; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--ivory); border-color: var(--border-strong); background: rgba(236, 229, 211, 0.08); }
.note { margin-bottom: 14px; color: var(--text-2); }
.hint { margin: -4px 0 0; color: var(--text-3); font-size: 13px; }
.form { display: grid; gap: 14px; }
.form .btn { justify-self: start; }
.form-row { display: flex; flex-wrap: wrap; gap: 10px; }
.form-row input { flex: 1; min-width: 200px; }
.field { display: grid; gap: 6px; }
.field span { color: var(--text-2); font-size: 13px; font-weight: 600; }
input, textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: rgba(8, 6, 14, 0.7); color: var(--text); resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.result { margin-top: 4px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: rgba(8, 6, 14, 0.6); overflow-wrap: anywhere; }
.result.ok { border-color: rgba(52, 211, 153, 0.4); }
.result.err { border-color: rgba(251, 113, 133, 0.45); color: #fda4af; }
.result code { display: inline-block; margin: 6px 0; padding: 6px 12px; border-radius: 10px; background: var(--surface-2); font-size: 20px; font-weight: 800; letter-spacing: 0.12em; user-select: all; }
.result a { color: var(--purple-2); text-decoration: underline; }
.lookup .gcards { margin-top: 16px; }
.lookup .gcards:empty { display: none; }

/* ── Giris ve kisisel sayfa ── */
.av-sm { width: 28px; height: 28px; }
.av-lg { width: 84px; height: 84px; border: 2px solid var(--border-strong); }
#top-me { display: flex; align-items: center; gap: 10px; }
.me-chip { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid var(--border); font-weight: 600; max-width: 190px; }
.me-chip:hover { border-color: var(--border-strong); }
.me-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-btn { padding: 8px 14px; border-color: var(--border-strong); color: var(--accent); }
.me-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.login-box { max-width: 620px; display: grid; gap: 18px; justify-items: start; color: var(--text-2); font-size: 16px; }
.me-band { justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.me-head { display: flex; grid-auto-flow: column; align-items: center; gap: 20px; max-width: none; }
.mstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.mstat { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(12px); }
.mstat b { display: block; font-family: var(--display); font-size: 28px; font-weight: 600; color: var(--ivory); font-variant-numeric: lining-nums tabular-nums; }
.mstat span { color: var(--text-3); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.me-pet { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 16px; align-items: start; }
.me-pet .panel { display: grid; gap: 16px; justify-items: start; }
.kv { width: 100%; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kv div { padding: 10px 12px; border-radius: 12px; background: rgba(8, 6, 14, 0.55); border: 1px solid var(--border); }
.kv dt { color: var(--text-3); font-size: 12px; }
.kv dd { margin: 0; font-weight: 700; }
.pens { display: grid; gap: 2px; padding: 8px 18px; }
.pen { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(214, 196, 160, 0.08); }
.pen:last-child { border-bottom: 0; }
.pen div { min-width: 0; display: grid; gap: 2px; }
.pen b { overflow-wrap: anywhere; font-weight: 600; }
.pen div span { color: var(--text-3); font-size: 13px; }
.signed { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(52, 211, 153, 0.3); background: rgba(52, 211, 153, 0.06); color: var(--text-2); }
.hint a { color: var(--purple-2); text-decoration: underline; }
.rules-note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--text-3); }

/* ── Uye islemleri ve ana sayfa ekleri ── */
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 10px; }
.btn.on { border-color: rgba(52, 211, 153, 0.4); color: #6ee7b7; background: rgba(52, 211, 153, 0.07); }
.join { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.act-err { color: #fda4af; font-size: 13px; }
.more { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font: 600 13px 'Plus Jakarta Sans', sans-serif; }
.more:hover { color: var(--ivory); }
.lore { display: grid; justify-items: center; gap: 22px; max-width: 760px; margin: 20px auto 10px; padding: 20px 0; text-align: center; }
.lore div { display: grid; gap: 14px; }
.lore p { color: var(--text-2); font-size: 18px; line-height: 1.75; }
.lore p:first-child { color: var(--ivory); font-family: var(--display); font-size: 26px; font-weight: 500; line-height: 1.4; }
.showcase { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sub-h.first { margin-top: 0; }
.story-list { display: grid; }
.story-list a { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid rgba(214, 196, 160, 0.08); }
.story-list a:last-child { border-bottom: 0; }
.story-list a:hover b { color: var(--accent); }
.story-list small { color: var(--text-3); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.story-list b { font-family: var(--display); font-size: 18px; font-weight: 600; transition: color 0.2s; }
.story-list span { color: var(--text-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.story-like { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.likes { display: inline-flex; align-items: center; gap: 4px; margin-right: auto; color: var(--accent); }
.skin { cursor: pointer; }
.skin.picked { border-color: var(--accent); }
.fitting { margin-top: 16px; display: grid; gap: 14px; }
.gcard-motto { margin-top: 8px; color: var(--text-2); font-style: italic; font-size: 14px; overflow-wrap: anywhere; }
.report { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 12px; }
.report div { display: grid; gap: 2px; padding: 14px 16px; border-radius: 12px; background: rgba(8, 6, 14, 0.55); border: 1px solid var(--border); }
.report b { font-family: var(--display); font-size: 26px; font-weight: 600; color: var(--ivory); font-variant-numeric: lining-nums tabular-nums; }
.report span { color: var(--text-2); }
.report small { color: var(--text-3); }
.up { color: #6ee7b7; font-weight: 700; }
.down { color: #fda4af; font-weight: 700; }
.check { display: flex; align-items: flex-start; gap: 10px; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.threads { display: grid; gap: 4px; padding: 8px 18px; }
.thread { display: grid; gap: 10px; padding: 14px 0; border-bottom: 1px solid rgba(214, 196, 160, 0.08); }
.thread:last-child { border-bottom: 0; }
.thread-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; background: rgba(8, 6, 14, 0.6); border: 1px solid var(--border); }
.msg.mine { justify-self: end; border-color: rgba(200, 169, 106, 0.3); }
.msg small { color: var(--text-3); font-size: 12px; }
.msg p { overflow-wrap: anywhere; white-space: pre-wrap; }

/* ── Tarihce, karsilastirma, okuma ── */
.band-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 6px; color: var(--text-3); }
.band-stats b { color: var(--accent); font-family: var(--display); font-size: 20px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; display: grid; gap: 26px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(180deg, var(--accent), rgba(200, 169, 106, 0.1)); }
.timeline li { position: relative; display: grid; gap: 2px; }
.timeline li::before { content: ''; position: absolute; left: -27px; top: 5px; width: 9px; height: 9px; transform: rotate(45deg); background: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.timeline time { color: var(--text-3); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.timeline b { font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--ivory); }
.timeline p { color: var(--text-2); }
.compare-form { width: 100%; }
.compare-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr) 220px; gap: 20px; align-items: center; }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 12px 10px; border-bottom: 1px solid rgba(214, 196, 160, 0.08); text-align: center; }
.compare thead th { font-family: var(--display); font-size: 17px; color: var(--ivory); }
.compare tbody th { color: var(--text-3); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.compare td { font-weight: 700; font-size: 17px; }
.compare td.win { color: var(--accent); }
.read-meta { color: var(--text-3); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.reading-bar { position: fixed; z-index: 50; left: 0; right: 0; top: 0; height: 3px; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--ivory)); }
.story-nav { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.story-nav a { display: grid; gap: 2px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.story-nav a:hover { border-color: var(--border-strong); }
.story-nav .next { text-align: right; }
.story-nav small { color: var(--text-3); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.story-nav b { font-family: var(--display); font-size: 18px; font-weight: 600; }

/* ── Lonca islemleri ── */
.lonca-cta, .lonca-manage { display: grid; gap: 14px; justify-items: start; }
.lonca-manage .mstats, .lonca-manage .form-row, .lonca-manage .pens, .lonca-manage .result { width: 100%; }
.up-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.up-grid small { color: var(--text-3); font-weight: 600; }
.row-actions { margin-left: auto; display: flex; gap: 8px; }

/* ── Arama ── */
.search { position: fixed; inset: 0; z-index: 60; display: grid; justify-items: center; align-content: start; padding: 12vh 16px 0; background: rgba(4, 3, 8, 0.72); backdrop-filter: blur(8px); }
.search-box { width: min(640px, 100%); border-radius: 20px; border: 1px solid var(--border-strong); background: #100c1b; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); overflow: hidden; animation: enter 0.25s var(--ease); }
.search-input { display: flex; align-items: center; gap: 12px; padding: 6px 16px; border-bottom: 1px solid var(--border); color: var(--text-3); }
.search-input input { border: 0; background: transparent; padding: 14px 0; font-size: 17px; box-shadow: none; }
.search-results { max-height: 56vh; overflow-y: auto; padding: 8px; }
.search-group { padding: 10px 12px 4px; color: var(--text-3); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.search-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text-2); }
.search-item .ic { color: var(--purple-2); }
.search-item div { min-width: 0; }
.search-item b { display: block; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-item span { display: block; font-size: 13px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-item.active, .search-item:hover { background: rgba(139, 92, 246, 0.16); }

/* ── Alt bilgi ve telefon gezinmesi ── */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 24px max(20px, calc((100vw - 1440px) / 2)); border-top: 1px solid var(--border); color: var(--text-3); font-size: 13px; background: rgba(6, 5, 9, 0.6); }
.foot-links { display: flex; gap: 20px; }
.foot a:hover { color: var(--text-2); }
.bottom-nav { display: none; }

/* Üst çubuk sığmıyorsa önce arama kutusu küçülür, sonra menü yalnızca simgelere iner */
@media (max-width: 1500px) {
  .top { gap: 12px; }
  .search-hint, .search-btn kbd { display: none; }
  .search-btn { padding: 9px; }
  .top-nav a { padding: 8px 10px; }
}
@media (max-width: 1380px) {
  .top-nav a span { display: none; }
  .top-nav a { padding: 9px 11px; }
}
@media (max-width: 1180px) {
  .cols { grid-template-columns: 280px minmax(0, 1fr); }
  .cols > aside:last-child { grid-column: 1 / -1; position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (max-width: 860px) {
  :root { --top: 58px; }
  body { padding-bottom: 68px; }
  .top { padding: 0 14px; gap: 10px; }
  .top-nav, .search-hint, .search-btn kbd, .me-chip span { display: none; }
  .me-chip { padding: 4px; }
  .showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lore p { font-size: 16px; }
  .lore p:first-child { font-size: 21px; }
  .report { grid-template-columns: minmax(0, 1fr); }
  .compare-grid { grid-template-columns: minmax(0, 1fr); }
  .compare-grid > .gcard { display: none; }
  .story-nav { grid-template-columns: minmax(0, 1fr); }
  .me-pet { grid-template-columns: minmax(0, 1fr); }
  #top-me .btn { padding: 8px 12px; }
  .panel-btn span { display: none; }
  .search-btn { margin-left: auto; padding: 9px; }
  #top-join { padding: 8px 14px; }
  /* Sunucu adi uzayinca ("M O R G A N A #YAKINDA") ust cubuk tasmasin: ad kisalir */
  .top-brand { min-width: 0; flex: 1 1 auto; letter-spacing: 0.04em; }
  .top-brand span { overflow: hidden; text-overflow: ellipsis; }
  .top-brand img, .search-btn, #top-me, #top-join { flex: none; }
  .bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(7, 1fr); padding: 6px 2px calc(6px + env(safe-area-inset-bottom)); background: rgba(8, 6, 14, 0.94); backdrop-filter: blur(16px); border-top: 1px solid var(--border); }
  .bottom-nav a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; border-radius: 12px; color: var(--text-3); font-size: 10.5px; font-weight: 600; }
  .bottom-nav a .ic { width: 22px; height: 22px; }
  .bottom-nav a.active { color: var(--ivory); background: rgba(236, 229, 211, 0.08); }
  .hero { min-height: auto; }


  .hero-body { padding-bottom: 30px; }
  .hero-sub { font-size: 15px; }
  .counter { padding: 2px 18px; }
  .counter b { font-size: 32px; }
  .hero h1 { letter-spacing: 0.1em; margin-right: -0.1em; }
  .ornament i { width: 48px; }
  .cols, .grid-2, .profile, .season { grid-template-columns: minmax(0, 1fr); }
  .cols { padding: 0 14px 40px; }
  .cols > aside { position: static; }
  .wrap { padding: 0 14px 40px; gap: 26px; }
  .band { margin: 10px 14px 24px; padding: 26px 20px; min-height: 150px; border-radius: 20px; }
  .band-sprite { height: 96%; right: -6%; opacity: 0.4; }
  .story-card { padding: 22px 20px; }

  .village { margin: 10px 14px 24px; height: 360px; }
  .village-main { height: 190px; margin-left: -95px; bottom: 124px; }
  .village-pets img { width: 62px; }
  .lcards { grid-template-columns: minmax(0, 1fr); }
  .gcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stages, .skins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmd { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .reader p { font-size: 17px; }
  .moon { width: 58px; height: 58px; right: 10%; top: 13%; }
  .ember { width: 340px; margin-left: -170px; }
  .foot { padding: 20px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── Canli Sehir (/sehir) ── */
.city { width: min(1400px, 100% - 32px); margin: 0 auto; padding: 96px 0 40px; }
.city-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.city-title { margin: 0 0 4px; font-family: var(--display); font-size: clamp(26px, 3.4vw, 40px); color: var(--ivory); }
.city-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.city-zoom { position: absolute; right: 14px; bottom: 14px; display: grid; gap: 6px; }
.city-zoom .btn { width: 42px; height: 42px; padding: 0; font-size: 20px; background: rgba(12, 10, 18, 0.88); }
.city-login { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 14px; }
.city-stage { position: relative; height: min(calc(100vh - 270px), 860px); min-height: 420px; border-radius: 22px; overflow: hidden; border: 1px solid var(--border); background: #0c110d; }
.city-stage canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.city-hint { position: absolute; left: 14px; top: 14px; max-width: 320px; padding: 10px 14px; border-radius: 12px; background: rgba(10, 8, 14, 0.82); color: var(--text-2); font-size: 13px; }
.city-card { position: absolute; left: 50%; bottom: 18px; z-index: 2; transform: translateX(-50%); display: flex; align-items: center; gap: 16px; width: max-content; max-width: calc(100% - 28px); padding: 12px 14px 12px 18px; border-radius: 16px; background: rgba(12, 10, 18, 0.94); border: 1px solid rgba(200, 169, 106, 0.4); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6); }
.city-card div { display: grid; gap: 2px; min-width: 0; }
.city-card b { color: var(--ivory); font-size: 16px; }
.city-card span { color: var(--text-2); font-size: 13px; }
.city-note { margin-top: 12px; font-size: 13px; }
.hidden { display: none !important; }
/* Cok dar ekran: hero'da zaten buyuk "Sunucuya katil" var, ustteki gizlenir */
@media (max-width: 480px) {
  #top-join { display: none; }
}
@media (max-width: 860px) {
  .city { width: calc(100% - 24px); padding-top: 78px; padding-bottom: 96px; }
  .city-login span { display: none; }
  .city-stage { height: 68vh; min-height: 360px; border-radius: 16px; }
  .city-card { flex-direction: column; align-items: stretch; text-align: center; width: calc(100% - 24px); }
  .city-hint { right: 118px; max-width: none; font-size: 12px; }
}

/* ── Sehir pencereleri: ev, Evim, kahvehane ── */
.cmodal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(4, 3, 8, 0.72); backdrop-filter: blur(6px); }
.cmodal-box { position: relative; width: min(760px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 26px 24px 22px; border-radius: 22px; background: #110e17; border: 1px solid rgba(200, 169, 106, 0.32); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); }
.cmodal-x { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--surface-2); color: var(--ivory); font-size: 22px; cursor: pointer; }
.cmodal-body h2 { margin: 0 0 6px; font-family: var(--display); color: var(--ivory); font-size: 24px; }
.cmodal-body h3 { margin: 18px 0 8px; font-size: 15px; color: var(--accent); }
.cmodal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.house-head { display: flex; align-items: center; gap: 14px; }
.house-head img { width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--accent); }
.house-head span { color: var(--text-2); font-size: 13px; }
.house-motto { margin: 12px 0 0; color: var(--ivory); font-style: italic; }
.house-room { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; padding: 18px; min-height: 120px; border-radius: 16px; background: linear-gradient(180deg, #2a2030 0, #1b1520 62%, #2b2118 62%, #241c16 100%); border: 1px solid var(--border); }
.house-room.roof-kizil { background: linear-gradient(180deg, #33201f 0, #1e1514 62%, #2b2118 62%, #241c16 100%); }
.house-room.roof-orman { background: linear-gradient(180deg, #1f2b22 0, #151d17 62%, #2b2118 62%, #241c16 100%); }
.house-room.roof-gece { background: linear-gradient(180deg, #1f2236 0, #14162a 62%, #2b2118 62%, #241c16 100%); }
.house-room.roof-altin { background: linear-gradient(180deg, #33291a 0, #1f1912 62%, #2b2118 62%, #241c16 100%); }
.house-item { padding: 10px 14px; border-radius: 12px; background: rgba(236, 229, 211, 0.08); border: 1px solid rgba(200, 169, 106, 0.3); color: var(--ivory); font-weight: 600; font-size: 13px; }
.house-panel { margin-top: 10px; }
.house-shop { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.house-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin-bottom: 8px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.house-row div { display: grid; gap: 2px; min-width: 0; }
.house-row b { color: var(--ivory); font-size: 14px; }
.house-row span { color: var(--text-2); font-size: 12.5px; }
.house-row input, .house-row select { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border); background: #0c0a10; color: var(--ivory); font: inherit; }
.kahve-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.kahve-seats, .pisti-others { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.seat { display: grid; justify-items: center; gap: 4px; min-width: 120px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); color: var(--ivory); font-size: 13px; }
.seat img { width: 44px; height: 44px; border-radius: 50%; }
.seat span { color: var(--text-2); font-size: 12px; }
.seat.turn { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.empty-seat { color: var(--text-3); border-style: dashed; place-content: center; }
.pisti-table { display: grid; justify-items: center; gap: 8px; padding: 22px; margin: 6px 0 14px; border-radius: 18px; background: radial-gradient(circle at 50% 40%, #1d3a28, #10241a); border: 1px solid #2c4a36; }
.pisti-pile { display: grid; justify-items: center; gap: 8px; color: #cfe0d0; font-size: 12.5px; }
.pisti-last { color: #e9f0e4; font-size: 13.5px; text-align: center; }
.pisti-hand { display: grid; gap: 10px; }
.pisti-hand > span { color: var(--text-2); font-size: 13px; }
.pisti-hand.my-turn > span { color: var(--accent); font-weight: 700; }
.pisti-hand > div { display: flex; flex-wrap: wrap; gap: 10px; }
.pisti-result { padding: 14px; border-radius: 14px; background: var(--surface-2); color: var(--ivory); display: grid; gap: 6px; }
.pcard { position: relative; display: grid; place-items: center; width: 64px; height: 92px; border-radius: 10px; background: #f4efe3; border: 1px solid #d8cfba; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); cursor: pointer; font-family: var(--display); transition: transform 0.15s; }
.pcard b { position: absolute; top: 6px; left: 8px; font-size: 18px; }
.pcard i { font-style: normal; font-size: 34px; }
.pcard.red { color: #b0283a; }
.pcard.black { color: #1a1620; }
.pcard:not(:disabled):hover { transform: translateY(-6px); }
.pcard:disabled { cursor: default; opacity: 0.85; }
.empty-card { background: rgba(255, 255, 255, 0.06); border-style: dashed; box-shadow: none; }
@media (max-width: 700px) {
  .kahve-grid, .house-shop { grid-template-columns: minmax(0, 1fr); }
  .cmodal-box { padding: 22px 16px 18px; border-radius: 18px; }
  .pcard { width: 54px; height: 78px; }
  .pcard i { font-size: 28px; }
  .seat { min-width: 0; flex: 1 1 40%; }
}

/* ── Tavla ── */
.tv-board { display: grid; gap: 8px; padding: 12px; border-radius: 16px; background: #3a2416; border: 6px solid #2a180e; box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5); }
.tv-row { display: grid; grid-template-columns: 1fr 14px 1fr; height: 190px; }
.tv-half { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.tv-bar { background: #2a180e; border-radius: 4px; }
.pt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 2px 0; border: 0; background: transparent; cursor: default; }
.pt::before { content: ''; position: absolute; inset: 0; z-index: 0; }
.pt-top::before { clip-path: polygon(0 0, 100% 0, 50% 88%); }
.pt-bottom { flex-direction: column-reverse; }
.pt-bottom::before { clip-path: polygon(50% 12%, 100% 100%, 0 100%); }
.pt-a::before { background: #c9a35c; }
.pt-b::before { background: #6e2d2d; }
.pt.can { cursor: pointer; }
.pt.can::before { filter: brightness(1.35); }
.pt.sel::before { background: #e8d7a8; }
.pt.target { cursor: pointer; }
.pt.target::before { background: #6fbf73; }
.ck { position: relative; z-index: 1; display: grid; place-items: center; width: min(26px, 90%); aspect-ratio: 1; border-radius: 50%; font-style: normal; font-size: 11px; font-weight: 800; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); }
.ck0 { background: #f2ead6; color: #2a180e; border: 2px solid #c9b88a; }
.ck1 { background: #1d1424; color: #e8d7a8; border: 2px solid #c9a35c; }
.tv-info .ck { display: inline-grid; width: 16px; vertical-align: -3px; }
.tv-info { margin: 8px 0; color: var(--text-2); font-size: 13px; }
.tv-mid { display: flex; align-items: center; justify-content: center; gap: 10px; color: #f2ead6; font-size: 13px; }
.die { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: #f4efe3; color: #1a1620; font-weight: 800; font-size: 18px; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4); }
@media (max-width: 700px) {
  .tv-row { height: 150px; grid-template-columns: 1fr 8px 1fr; }
  .tv-half { gap: 1px; }
  .tv-board { padding: 6px; border-width: 4px; }
}

/* ── Batak / King ── */
.trick-seats .seat { flex: 1 1 22%; min-width: 130px; }
.trick-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; min-height: 120px; align-items: center; }
.trick-card { display: grid; justify-items: center; gap: 6px; color: #e9f0e4; font-size: 12.5px; }
.pisti-hand .pcard:disabled { opacity: 0.45; }
.pisti-hand.my-turn .pcard:not(:disabled) { box-shadow: 0 0 0 2px var(--accent), 0 6px 16px rgba(0, 0, 0, 0.35); }
@media (max-width: 700px) {
  .trick-seats .seat { min-width: 0; flex: 1 1 45%; }
  .pisti-hand > div { gap: 6px; }
  .pisti-hand .pcard { width: 44px; height: 64px; }
  .pisti-hand .pcard b { font-size: 14px; top: 4px; left: 5px; }
  .pisti-hand .pcard i { font-size: 22px; }
}

/* ── Sehir oyunlari paneli ── */
.city-game { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; max-width: calc(100% - 200px); padding: 10px 14px; border-radius: 14px; background: rgba(12, 10, 18, 0.92); border: 1px solid rgba(200, 169, 106, 0.4); color: var(--ivory); font-size: 13.5px; text-align: center; }
.city-game select { padding: 7px 10px; border-radius: 10px; border: 1px solid var(--border); background: #0c0a10; color: var(--ivory); font: inherit; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 10px; }
@media (max-width: 860px) {
  .city-game { top: auto; bottom: 70px; max-width: calc(100% - 24px); width: calc(100% - 24px); font-size: 12.5px; }
}

/* ── Okey ── */
.okey-rack { display: flex; flex-wrap: wrap; gap: 5px; padding: 10px; border-radius: 12px; background: #5a3a22; border-bottom: 6px solid #3d2716; }
.otile { display: inline-grid; place-items: center; width: 40px; height: 54px; border-radius: 7px; border: 1px solid #d8cfba; background: #f6f1e4; font-family: var(--display); font-size: 20px; font-weight: 800; cursor: pointer; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.35); vertical-align: middle; transition: transform 0.12s; }
.otile.kirmizi { color: #c0283a; }
.otile.mavi { color: #1f5fbf; }
.otile.sari { color: #c48a00; }
.otile.siyah { color: #1a1620; }
.otile.fake { color: #6b3fa0; }
.otile.joker { box-shadow: 0 0 0 2px #c8a96a, 0 3px 6px rgba(0, 0, 0, 0.35); }
.otile.sel { transform: translateY(-8px); box-shadow: 0 0 0 3px var(--accent), 0 6px 12px rgba(0, 0, 0, 0.4); }
.otile:disabled { cursor: default; }
.muted .otile, .seat .otile, .btn .otile { width: 26px; height: 34px; font-size: 13px; border-radius: 5px; margin-left: 4px; }
.empty-tile { display: inline-block; width: 26px; height: 34px; border-radius: 5px; border: 1px dashed rgba(255, 255, 255, 0.25); vertical-align: middle; }
@media (max-width: 700px) {
  .otile { width: 32px; height: 44px; font-size: 16px; }
  .okey-rack { gap: 3px; padding: 6px; }
}
