/* Judas of the Table — gotik ortaçağ teması */
/* Kaisei Decol'un Kiril alt kümesi: orijinalde her harf 1em genişliğindeydi, burada harf aralığı
   orantılı hale getirildi (OFL 1.1, assets/fonts/OFL-Kaisei.txt). */
@font-face {
  font-family: 'JOTT Kaisei Cyrillic';
  src: url('../assets/fonts/jott-kaisei-cyrillic.otf') format('opentype');
  unicode-range: U+0400-052F, U+2116;
  font-display: swap;
}

:root {
  --ink: #0c0a08;
  --ink-2: #15110d;
  --ink-3: #1f1913;
  --gold: #c9a45c;
  --gold-hi: #e8cf8f;
  --gold-lo: #7d6233;
  --blood: #b3261e;
  --bone: #eadfc8;
  --bone-dim: #b9ab90;
  --parch: #2a2117;
  --line: rgba(201, 164, 92, .35);
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0, 0, 0, .55);
  /* Kiril harfler oyundaki gibi Kaisei Decol ile çizilir (Eagle Lake'te Kiril yok) */
  --font-display: 'Eagle Lake', 'JOTT Kaisei Cyrillic', 'Georgia', serif;
  --font-body: 'EB Garamond', 'Georgia', serif;
  --gutter: clamp(16px, 4vw, 40px);
  --mx: 50%;
  --my: 50%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: clamp(17px, 1.05vw + 12px, 20px);
  line-height: 1.6;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
/* hidden özniteliği, display tanımlayan sınıflarca ezilmesin */
[hidden] { display: none !important; }
a { color: var(--gold-hi); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; color: var(--gold-hi); overflow-wrap: break-word; }
h2 { font-size: clamp(30px, 5vw, 52px); text-shadow: 0 2px 0 #000, 0 0 24px rgba(201, 164, 92, .25); }
h3 { font-size: clamp(21px, 2.2vw, 26px); }
p { margin: 0 0 1em; }
kbd {
  display: inline-block; min-width: 1.9em; padding: .05em .45em; text-align: center;
  font-family: var(--font-body); font-size: .85em; font-weight: 600; color: var(--gold-hi);
  border: 1px solid var(--gold-lo); border-bottom-width: 3px; border-radius: 6px; background: var(--ink-3);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .22em; font-size: 13px; color: var(--gold); margin-bottom: .6em; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .6em 1.6em; border-radius: 10px;
  font-family: var(--font-display); font-size: 17px; letter-spacing: .04em; text-decoration: none;
  border: 1px solid var(--gold); transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-gold {
  color: #1b130a; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #9c7a3d);
  box-shadow: 0 6px 22px rgba(201, 164, 92, .3), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn-gold:hover { box-shadow: 0 10px 30px rgba(201, 164, 92, .45), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-ghost { color: var(--gold-hi); background: rgba(12, 10, 8, .55); }
.btn-ghost:hover { background: rgba(201, 164, 92, .14); }
.btn-small { min-height: 42px; padding: .4em 1em; font-size: 15px; }

.chip {
  display: inline-flex; align-items: center; gap: .4em; min-height: 42px; padding: .35em 1.1em;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(12, 10, 8, .6);
  font-family: var(--font-display); font-size: 15px; color: var(--bone-dim); white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { color: var(--gold-hi); border-color: var(--gold); }
.chip.is-active { color: #1b130a; background: var(--gold); border-color: var(--gold); }

/* ---------- Üst bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter);
  background: linear-gradient(180deg, rgba(12, 10, 8, .85), rgba(12, 10, 8, 0));
  transition: background .3s, box-shadow .3s;
}
.topbar.is-solid { background: rgba(12, 10, 8, .94); box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(0, 0, 0, .5); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bone); font-family: var(--font-display); font-size: 19px; white-space: nowrap; }
.brand img { border-radius: 8px; border: 1px solid var(--gold-lo); }
.brand em { font-style: normal; font-size: .7em; color: var(--blood); filter: brightness(1.4); }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  position: relative; padding: 8px 12px; color: var(--bone-dim); text-decoration: none; white-space: nowrap;
  font-family: var(--font-display); font-size: 16px; transition: color .2s;
}
.nav a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px;
  background: var(--gold); transform: scaleX(0); transition: transform .25s;
}
.nav a:hover, .nav a.is-active { color: var(--gold-hi); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.topbar-end { display: flex; align-items: center; gap: 10px; order: 3; }
.lang { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(12, 10, 8, .7); }
.lang button {
  min-width: 42px; min-height: 36px; padding: 0 10px; border: 0; border-radius: 999px; background: none;
  font-family: var(--font-display); font-size: 14px; letter-spacing: .06em; color: var(--bone-dim); transition: background .2s, color .2s;
}
.lang button:hover { color: var(--gold-hi); }
.lang button[aria-pressed="true"] { background: var(--gold); color: #1b130a; }
.menu-btn { display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 10px; background: rgba(12, 10, 8, .7); position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--gold-hi); border-radius: 2px; transition: transform .25s, opacity .2s; }
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 23px; }
.menu-btn span:nth-child(3) { top: 30px; }
.menu-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { opacity: 0; }
.menu-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1200px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 64px 0 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 40px; background: rgba(12, 10, 8, .98);
    transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility 0s .3s; overflow-y: auto;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform .3s ease; }
  .nav a { font-size: 24px; padding: 16px 4px; border-bottom: 1px solid rgba(201, 164, 92, .15); }
  .nav a::after { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end; justify-content: center;
  padding: 0 var(--gutter) clamp(56px, 9vh, 96px); text-align: center; overflow: hidden;
}
.hero-art {
  position: absolute; inset: 0;
  background: url('../assets/ui/hero.jpg') center 18% / cover no-repeat;
  animation: drift 24s ease-in-out infinite alternate;
}
.hero-art::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, transparent 30%, rgba(12, 10, 8, .55) 75%),
    linear-gradient(180deg, rgba(12, 10, 8, .2) 0%, transparent 35%, rgba(12, 10, 8, .75) 68%, var(--ink) 100%);
}
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.09) translateY(-1%); } }
.hero-inner { position: relative; max-width: 760px; }
.hero-lead { font-size: clamp(21px, 2.6vw, 30px); line-height: 1.35; text-shadow: 0 2px 12px #000; }
.hero-lead strong { color: #ff6d5e; font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 22px 0 28px; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 28px; color: var(--bone-dim); font-size: 16px; }
.hero-facts b { font-family: var(--font-display); font-weight: 400; color: var(--gold-hi); font-size: 1.5em; margin-right: 4px; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 18px; width: 22px; height: 36px; margin-left: -11px;
  border: 2px solid var(--gold-lo); border-radius: 12px;
}
.scroll-hint::before {
  content: ''; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--gold); border-radius: 2px; animation: wheel 1.8s infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-width: 700px) {
  .hero { display: block; min-height: 0; padding: 64px 0 48px; }
  .hero-art { position: relative; inset: auto; aspect-ratio: 1 / .82; background-position: center top; animation: none; }
  .hero-art::after { background: linear-gradient(180deg, transparent 55%, rgba(12, 10, 8, .8) 85%, var(--ink) 100%); }
  .hero-inner { margin: -28px auto 0; padding: 0 var(--gutter); }
  .scroll-hint { display: none; }
}
@media (max-width: 480px) {
  .brand span { display: none; }
  .hero-cta .btn { flex: 1 1 100%; }
}

/* ---------- Bölümler ---------- */
.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
/* Dikişsiz (kenarları birbirine bağlanan, düz ışıklı) dokular; üstte mum ışığı vinyeti */
.section-leather {
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(201, 164, 92, .05), transparent 70%),
    linear-gradient(rgba(12, 10, 8, .8), rgba(12, 10, 8, .88)),
    url('../assets/ui/leather-seamless.jpg') 0 0 / 700px;
}
.section-parch {
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(232, 207, 143, .05), transparent 70%),
    linear-gradient(rgba(21, 17, 13, .8), rgba(21, 17, 13, .88)),
    url('../assets/ui/parchment-seamless.jpg') 0 0 / 700px;
}

/* ---------- Portreler (oyundaki tablolar: ceviz çerçeve + pirinç iç çerçeve) ---------- */
.portrait { margin: 0; text-align: center; }
.portrait-frame {
  position: relative; padding: 10px; border-radius: 4px;
  background: linear-gradient(145deg, #3a2412, #1c1008 45%, #2e1c0e);
  box-shadow: 0 0 0 1px #0a0604, 0 18px 36px rgba(0, 0, 0, .65), inset 0 0 0 1px rgba(232, 207, 143, .12);
}
.portrait-frame::before {
  content: ''; position: absolute; inset: 6px; border-radius: 2px; pointer-events: none;
  border: 2px solid var(--gold-lo); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6), 0 0 0 1px rgba(232, 207, 143, .15);
}
.portrait-frame img {
  display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover;
  filter: sepia(.12) contrast(1.04); transition: filter .4s, transform .6s;
}
.portrait-frame::after {
  content: ''; position: absolute; inset: 10px; pointer-events: none;
  background: radial-gradient(ellipse at 50% 35%, transparent 55%, rgba(0, 0, 0, .45) 100%);
}
.portrait:hover .portrait-frame img { filter: sepia(0) contrast(1.06) brightness(1.05); }
/* Dönüşen portre: üzerine gelince ikinci yüzü belirir */
.portrait-turns { cursor: pointer; outline: none; }
.portrait-turns .portrait-frame img.portrait-alt {
  position: absolute; left: 10px; top: 10px; width: calc(100% - 20px); height: calc(100% - 20px);
  opacity: 0; transform: scale(1.03); transition: opacity .35s ease, transform .5s ease;
}
.portrait-turns:hover .portrait-frame img.portrait-alt, .portrait-turns:focus .portrait-frame img.portrait-alt { opacity: 1; transform: scale(1); }
.portrait-turns:hover .portrait-frame, .portrait-turns:focus .portrait-frame { animation: portraitShudder .4s ease; }
@keyframes portraitShudder { 20% { transform: translateX(-2px) rotate(-.4deg); } 50% { transform: translateX(2px) rotate(.4deg); } 80% { transform: translateX(-1px); } }
.portrait figcaption {
  margin-top: 12px; font-family: var(--font-display); color: var(--gold-hi); font-size: 17px; letter-spacing: .03em;
}
.hall-gallery {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px);
  align-items: end; max-width: 980px; margin: clamp(40px, 6vw, 64px) auto clamp(48px, 7vw, 80px);
}
.hall-gallery .portrait-center { transform: translateY(-18px); }
@media (max-width: 700px) {
  .hall-gallery { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 18px 4px 8px; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); }
  .hall-gallery .portrait { scroll-snap-align: center; }
  .hall-gallery .portrait-center { transform: none; }
}
.section::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-lo), transparent);
}
.sec-head { text-align: center; max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); }
.sec-head h2 { margin-bottom: .1em; }
.divider { width: min(360px, 80%); margin: 0 auto 10px; opacity: .9; }
.sec-sub { color: var(--bone-dim); }

/* Hikâye */
.story { max-width: 760px; margin: 0 auto 56px; font-size: 1.08em; }
.dropcap::first-letter {
  float: left; font-family: var(--font-display); font-size: 3.6em; line-height: .9;
  padding: .06em .12em 0 0; color: var(--blood); filter: brightness(1.35);
}
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  position: relative; padding: 26px 22px 20px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.pillar::before, .card-corners::before {
  content: ''; position: absolute; inset: 6px; border: 1px solid rgba(201, 164, 92, .15); border-radius: 10px; pointer-events: none;
}
.pillar-ico { font-size: 32px; display: block; margin-bottom: 8px; filter: drop-shadow(0 0 10px rgba(255, 180, 80, .35)); }
.pillar p { color: var(--bone-dim); margin: 0; }

/* ---------- Kalenin sırları ---------- */
.sub-title { margin: clamp(40px, 6vw, 64px) 0 20px; text-align: center; font-family: var(--font-display); color: var(--gold-hi); font-size: clamp(24px, 3.4vw, 32px); }
.secrets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.secret { position: relative; padding: 22px 20px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); box-shadow: var(--shadow); }
.secret h4 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 400; color: var(--gold-hi); font-size: 19px; }
.secret p { margin: 0; color: var(--bone-dim); font-size: 16.5px; }
.secret-pennant { float: right; width: 36px; height: auto; margin: -6px 0 6px 12px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); }
.secret-ico { display: block; font-size: 28px; margin-bottom: 6px; filter: drop-shadow(0 0 10px rgba(255, 180, 80, .3)); }
@media (max-width: 900px) { .secrets { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .secrets { grid-template-columns: 1fr; } }

/* ---------- Roller ---------- */
.role-filter { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
/* Eksik kalan son satır ortalansın diye flex: masaüstünde 4, tablette 3 sütun */
.roles { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.roles > .role { flex: 0 1 calc((100% - 54px) / 4); min-width: 0; }
@media (max-width: 900px) { .roles > .role { flex-basis: calc((100% - 36px) / 3); } }
.role {
  --rc: var(--gold);
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 24px 18px 20px; border-radius: var(--radius);
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--rc) 22%, transparent), transparent 62%), linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.role:hover, .role:focus-visible { transform: translateY(-6px); border-color: var(--rc); box-shadow: var(--shadow), 0 0 32px color-mix(in srgb, var(--rc) 35%, transparent); }
.role[hidden] { display: none; }
.role-icon { width: 128px; height: 128px; margin-bottom: 10px; transition: transform .4s; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .6)); }
.role:hover .role-icon { transform: scale(1.06) rotate(-3deg); }
.role-team { font-size: 12px; text-transform: uppercase; letter-spacing: .18em; color: var(--rc); filter: brightness(1.3); }
.role-name { font-family: var(--font-display); font-size: 25px; color: var(--gold-hi); margin: 2px 0 6px; overflow-wrap: break-word; }
@media (min-width: 521px) and (max-width: 1100px) { .role-name { font-size: 22px; } }
.role-quote { font-style: italic; color: var(--bone-dim); font-size: 16px; line-height: 1.4; flex: 1; }
.role-more { margin-top: 14px; font-family: var(--font-display); font-size: 13px; letter-spacing: .1em; color: var(--gold); border-bottom: 1px solid var(--gold-lo); }
@media (max-width: 520px) {
  .roles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .role { padding: 18px 10px 16px; min-width: 0; }
  .role-team { letter-spacing: .1em; overflow-wrap: anywhere; }
  .role-icon { width: 92px; height: 92px; }
  .role-name { font-size: 20px; }
  .role-quote { font-size: 14px; }
}

.role-modal {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px;
  background: rgba(5, 4, 3, .78); backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s;
}
.role-modal.is-open { opacity: 1; }
.role-modal-card {
  --rc: var(--gold);
  position: relative; width: min(560px, 100%); max-height: calc(100svh - 32px); overflow-y: auto;
  padding: 34px clamp(20px, 5vw, 40px) 28px; text-align: center; border-radius: 18px;
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--rc) 28%, transparent), transparent 55%), linear-gradient(180deg, #221a12, #120e0a);
  border: 1px solid var(--rc); box-shadow: 0 30px 80px rgba(0, 0, 0, .8);
  transform: translateY(16px) scale(.97); transition: transform .25s;
}
.role-modal.is-open .role-modal-card { transform: none; }
.role-modal-card img { width: 140px; margin: 0 auto 8px; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .6)); }
.rm-team { font-size: 13px; text-transform: uppercase; letter-spacing: .2em; color: var(--rc); filter: brightness(1.3); margin: 0; }
.rm-quote { font-style: italic; color: var(--bone-dim); }
.role-modal-card ul { text-align: left; padding-left: 0; list-style: none; margin: 0; border-top: 1px solid var(--line); padding-top: 14px; }
.role-modal-card li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.role-modal-card li::before { content: '✦'; position: absolute; left: 2px; color: var(--rc); filter: brightness(1.3); }
.rm-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(0, 0, 0, .4); font-size: 26px; line-height: 1; color: var(--gold-hi); }

/* ---------- Gece ---------- */
.night-section { background: radial-gradient(ellipse at 50% 0%, #1b2130 0%, var(--ink) 60%); }
.lever-box { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 48px; text-align: center; }
.lever {
  display: flex; align-items: center; gap: 14px; padding: 10px 22px 10px 12px; min-height: 64px;
  border-radius: 999px; border: 1px solid var(--gold); background: linear-gradient(180deg, #2a2016, #16110c);
  font-family: var(--font-display); font-size: 18px; color: var(--gold-hi); box-shadow: var(--shadow);
}
.lever-wheel {
  width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--gold); position: relative;
  background: repeating-conic-gradient(var(--gold-lo) 0 10deg, transparent 10deg 45deg); transition: transform .9s cubic-bezier(.5, 0, .2, 1);
}
.lever-wheel::after { content: ''; position: absolute; left: 50%; top: -12px; width: 4px; height: 16px; margin-left: -2px; background: var(--gold-hi); border-radius: 2px; }
.lever[aria-pressed="true"] .lever-wheel { transform: rotate(540deg); }
.lever-note { color: var(--bone-dim); max-width: 520px; margin: 0; min-height: 3.2em; }

.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--gold-lo), var(--blood), var(--gold-lo)); }
.timeline li { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; margin-bottom: 30px; }
.tl-step {
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%;
  font-family: var(--font-display); font-size: 20px; color: var(--gold-hi);
  background: radial-gradient(circle, #2c2218, #120e0a); border: 2px solid var(--gold); box-shadow: 0 0 18px rgba(201, 164, 92, .25);
  position: relative; z-index: 1;
}
.timeline h3 { margin: 10px 0 .3em; hyphens: auto; overflow-wrap: break-word; }
.timeline p { color: var(--bone-dim); margin: 0; }

/* Işıklar söndü modu */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0; transition: opacity 1.2s;
  background: radial-gradient(circle 220px at var(--mx) var(--my), rgba(255, 170, 70, .06), rgba(3, 3, 6, .55) 55%, rgba(3, 3, 8, .9) 100%);
}
body.lights-out::after { opacity: 1; }
body.lights-out .lever { position: relative; z-index: 61; box-shadow: 0 0 40px rgba(201, 164, 92, .35); }

/* ---------- Odalar ---------- */
/* Sekmeler: oyundaki kapı flamaları, ortak bir sırığa asılı */
.room-tabs {
  position: relative; display: flex; gap: clamp(6px, 1.6vw, 22px); overflow-x: auto; overflow-y: hidden;
  padding: 10px var(--gutter) 14px; margin: 0 calc(var(--gutter) * -1) 18px;
  scrollbar-width: thin; scroll-snap-type: x proximity;
}
@media (min-width: 900px) { .room-tabs { justify-content: center; } }
.pennant-tab {
  position: relative; flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: clamp(92px, 12vw, 128px); padding: 0; border: 0; background: none; cursor: pointer;
  scroll-snap-align: center; color: var(--bone-dim); font-family: var(--font-display); font-size: 15px; line-height: 1.2;
}
/* sırık */
.pennant-tab::before {
  content: ''; position: absolute; top: 0; left: -14px; right: -14px; height: 6px; border-radius: 3px; z-index: 1;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); box-shadow: 0 2px 6px rgba(0, 0, 0, .6);
}
.pennant-img {
  width: 62%; height: auto; margin-top: 3px; transform-origin: 50% 0;
  filter: brightness(.62) saturate(.8) drop-shadow(0 8px 12px rgba(0, 0, 0, .65));
  transition: filter .3s, transform .35s ease;
}
.pennant-name { text-align: center; transition: color .3s; }
.pennant-tab:hover .pennant-img { filter: brightness(.9) drop-shadow(0 8px 12px rgba(0, 0, 0, .65)); transform: rotate(-2deg); }
.pennant-tab:hover .pennant-name { color: var(--bone); }
.pennant-tab.is-active .pennant-img {
  filter: brightness(1.05) drop-shadow(0 0 14px rgba(255, 190, 90, .45)) drop-shadow(0 10px 14px rgba(0, 0, 0, .7));
  transform: translateY(6px); animation: sway 3.2s ease-in-out infinite;
}
.pennant-tab.is-active .pennant-name { color: var(--gold-hi); transform: translateY(6px); }
.pennant-tab:focus-visible { outline: none; }
.pennant-tab:focus-visible .pennant-name { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
@keyframes sway { 0%, 100% { rotate: -1.5deg; } 50% { rotate: 1.5deg; } }
@media (prefers-reduced-motion: reduce) { .pennant-tab.is-active .pennant-img { animation: none; } }
.room-panel {
  position: relative; padding: clamp(20px, 4vw, 36px); border-radius: 18px;
  background: linear-gradient(180deg, rgba(31, 25, 19, .95), rgba(18, 14, 10, .95));
  border: 1px solid var(--line); box-shadow: var(--shadow); animation: fadeUp .35s ease;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.room-head { display: flex; gap: 18px; align-items: center; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.room-head > div { min-width: 0; }
.room-head h3 { margin: 0 0 .2em; font-size: clamp(26px, 3vw, 34px); hyphens: auto; }
.room-head p { margin: 0; color: var(--bone-dim); font-style: italic; }
.room-pennant { flex: none; width: 64px; height: auto; align-self: flex-start; margin-top: -8px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .7)); }
.room-layout { display: grid; grid-template-columns: clamp(180px, 20vw, 240px) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); }
.room-main { min-width: 0; }
.room-portraits h4 { font-size: 15px; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 16px; text-align: center; }
.portrait-stack { display: grid; gap: 22px; }
.portrait-stack .portrait figcaption { font-size: 15px; }
@media (max-width: 960px) {
  .room-layout { grid-template-columns: 1fr; }
  .room-portraits { order: 2; border-top: 1px solid var(--line); padding-top: 22px; }
  .portrait-stack { grid-template-columns: repeat(2, minmax(0, 200px)); justify-content: center; }
}
.room-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(20px, 4vw, 44px); }
.room-cols h4 { font-size: 18px; color: var(--gold); letter-spacing: .06em; margin-bottom: 14px; }
.quests { list-style: none; margin: 0; padding: 0; }
.quests li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(201, 164, 92, .18); }
.quests li > span { font-size: 22px; line-height: 1.3; }
.quests b { display: block; font-weight: 600; color: var(--bone); }
.quests small { display: block; color: var(--bone-dim); font-size: 15.5px; line-height: 1.45; }
.ings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ing { margin: 0; text-align: center; padding: 10px 6px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid rgba(201, 164, 92, .15); transition: transform .2s, border-color .2s; }
.ing:hover { transform: translateY(-3px); border-color: var(--gold-lo); }
.ing img { width: 72px; height: 72px; margin: 0 auto 4px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); }
.ing figcaption { font-size: 14px; line-height: 1.25; color: var(--bone-dim); }
@media (max-width: 820px) {
  .room-cols { grid-template-columns: 1fr; }
  .room-head { align-items: flex-start; }
  .room-pennant { width: 48px; margin-top: -4px; }
}
@media (max-width: 380px) { .ings { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Kazan ---------- */
.cauldron {
  max-width: 820px; margin: 0 auto; padding: clamp(20px, 4vw, 40px); border-radius: 20px; scroll-margin-top: 80px;
  background: radial-gradient(circle at 50% 110%, rgba(66, 201, 138, .16), transparent 60%), linear-gradient(180deg, #1f1810, #100c08);
  border: 1px solid var(--gold-lo); box-shadow: var(--shadow), inset 0 0 60px rgba(0, 0, 0, .6); text-align: center;
}
.c-title { font-family: var(--font-display); font-size: clamp(22px, 3vw, 28px); color: var(--gold-hi); }
.recipe-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: left; }
.recipe-group { padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); }
.rg-head { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 20px; color: var(--gold-hi); }
.rg-list { display: flex; flex-direction: column; gap: 8px; }
.rg-list .btn { justify-content: flex-start; width: 100%; }
@media (max-width: 640px) { .recipe-groups { grid-template-columns: 1fr; } }

.c-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; text-align: left; }
.c-recipe { font-family: var(--font-display); font-size: 24px; color: var(--gold-hi); margin: 0; }
.c-progress { margin: 0; color: var(--bone-dim); font-size: 16px; }
.c-progress.is-bad { color: #ff7a6b; }
.steps { display: flex; justify-content: center; gap: 8px; margin: 18px 0; }
.steps span {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; font-size: 16px;
  border: 1px solid var(--gold-lo); background: rgba(0, 0, 0, .35); color: var(--gold-lo);
}
.steps span.now { border-color: var(--gold-hi); box-shadow: 0 0 14px rgba(232, 207, 143, .45); }
.steps span.done { border-color: #4fbf7f; }
.steps img { width: 34px; height: 34px; }
.riddle {
  margin: 0 auto 8px; max-width: 600px; padding: 18px 20px; border-radius: 12px;
  font-style: italic; font-size: clamp(20px, 2.4vw, 25px); line-height: 1.4; color: var(--bone);
  background: linear-gradient(rgba(42, 33, 23, .9), rgba(28, 22, 15, .9)), url('../assets/ui/parchment.jpg') center / cover;
  border: 1px solid var(--line);
}
.c-hint { color: var(--bone-dim); font-size: 16px; }
.choices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 8px; }
.choice {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, .35); transition: transform .15s, border-color .2s, background .2s;
}
.choice:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--gold); background: rgba(201, 164, 92, .08); }
.choice img { width: 76px; height: 76px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); }
.choice span { font-size: 15px; line-height: 1.25; color: var(--bone); }
.choice.is-right { border-color: #4fbf7f; background: rgba(79, 191, 127, .15); }
.choice.is-wrong { border-color: var(--blood); background: rgba(179, 38, 30, .18); opacity: .55; cursor: not-allowed; animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.c-msg { min-height: 1.6em; margin: 14px 0 0; color: #ff9a8c; }
@media (max-width: 560px) { .choices { grid-template-columns: 1fr 1fr; } }

.dial { display: block; width: min(260px, 70vw); margin: 10px auto; padding: 0; border: 0; background: none; border-radius: 50%; touch-action: manipulation; }
.dial svg { width: 100%; height: auto; display: block; }
.dial-track { fill: rgba(0, 0, 0, .45); stroke: var(--gold-lo); stroke-width: 10; }
.dial-arc { fill: none; stroke: #4fbf7f; stroke-width: 12; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(79, 191, 127, .7)); }
.dial-needle { stroke: var(--gold-hi); stroke-width: 5; stroke-linecap: round; }
.dial-hub { fill: var(--gold); }
#tMsg { color: #7fe0a6; }
.cauldron-end p:not(.c-title) { max-width: 560px; margin-left: auto; margin-right: auto; color: var(--bone-dim); }

/* ---------- Zafer ---------- */
.win-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.win { position: relative; padding: 30px 26px; border-radius: 18px; text-align: center; border: 1px solid var(--line); box-shadow: var(--shadow); }
.win img { width: 96px; margin: 0 auto 10px; }
.win p { color: var(--bone-dim); }
.win-village { background: radial-gradient(circle at 50% 0%, rgba(79, 180, 90, .2), transparent 60%), var(--ink-2); }
.win-toxic { background: radial-gradient(circle at 50% 0%, rgba(164, 217, 53, .2), transparent 60%), var(--ink-2); }
.win-solo { background: radial-gradient(circle at 50% 0%, rgba(235, 235, 235, .16), transparent 60%), var(--ink-2); }
.win-solo img { filter: grayscale(1) contrast(1.1); }
.win-dark { background: radial-gradient(circle at 50% 0%, rgba(210, 49, 43, .24), transparent 60%), var(--ink-2); }
.win-list { list-style: none; margin: 0 0 18px; padding: 0; text-align: left; color: var(--bone-dim); }
.win-list li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.win-list li::before { content: '✦'; position: absolute; left: 0; color: var(--gold); }
.win-list b { color: var(--bone); }
.win-quote { font-family: var(--font-display); color: var(--gold-hi) !important; margin: 0; font-size: 17px; }
@media (max-width: 720px) { .win-grid { grid-template-columns: 1fr; } }

/* ---------- Lobi ---------- */
.lobby { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(20px, 4vw, 44px); align-items: start; }
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li { position: relative; padding: 0 0 18px 34px; }
.feature-list li::before { content: '✦'; position: absolute; left: 4px; top: 0; color: var(--gold); }
.feature-list b { color: var(--gold-hi); font-weight: 600; }
.controls { padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: rgba(12, 10, 8, .7); box-shadow: var(--shadow); }
.controls dl { margin: 0; display: grid; gap: 10px; }
@media (min-width: 821px) and (max-width: 1100px) { .controls dl div { grid-template-columns: 64px 1fr; } }
.controls dl div { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 10px; }
.controls dt { margin: 0; }
.controls dd { margin: 0; color: var(--bone-dim); font-size: 16.5px; }
.controls-note { margin: 16px 0 0; font-size: 14.5px; color: var(--bone-dim); font-style: italic; }
@media (max-width: 820px) { .lobby { grid-template-columns: 1fr; } }

/* ---------- Credits ---------- */
.credits { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.credit {
  flex: 0 1 300px;
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 26px 20px 22px; border-radius: var(--radius);
  background: radial-gradient(circle at 50% 0%, rgba(201, 164, 92, .14), transparent 60%), linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s, border-color .25s;
}
.credit::before { content: ''; position: absolute; inset: 6px; border: 1px solid rgba(201, 164, 92, .15); border-radius: 10px; pointer-events: none; }
.credit:hover { transform: translateY(-5px); border-color: var(--gold); }
.credit-photo {
  width: 150px; height: 150px; flex: none; border-radius: 50%; padding: 5px; margin-bottom: 14px;
  background: conic-gradient(from 200deg, var(--gold-lo), var(--gold-hi), var(--gold), var(--gold-lo), var(--gold-hi), var(--gold-lo));
  box-shadow: 0 10px 26px rgba(0, 0, 0, .6), 0 0 22px rgba(201, 164, 92, .18);
}
.credit-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid var(--ink); }
.credit-logo .credit-photo { background: none; box-shadow: none; padding: 0; }
.credit-logo .credit-photo img { object-fit: contain; border: 0; border-radius: 0; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .6)); }
.credit h3 { margin: 0 0 .25em; font-size: 26px; }
.credit p { margin: 0; color: var(--bone-dim); font-size: 16.5px; line-height: 1.45; }
@media (max-width: 560px) {
  .credits { gap: 12px; }
  .credit { flex: 1 1 100%; flex-direction: row; text-align: left; gap: 16px; padding: 14px 16px; }
  .credit-photo { width: 84px; height: 84px; padding: 3px; margin: 0; }
  .credit-photo img { border-width: 2px; }
  .credit h3 { font-size: 22px; }
  .credit p { font-size: 15px; }
}

/* ---------- Final ve alt bilgi ---------- */
.finale {
  padding: clamp(80px, 12vw, 140px) 0; text-align: center;
  /* Lobideki on iki kişilik ziyafet tablosu: masa kuruldu, hain aralarında */
  background:
    radial-gradient(ellipse at 50% 55%, rgba(12, 10, 8, .35) 0%, rgba(12, 10, 8, .8) 70%),
    linear-gradient(180deg, var(--ink) 0%, rgba(12, 10, 8, .45) 30%, rgba(12, 10, 8, .55) 70%, var(--ink) 100%),
    url('../assets/portraits/feast.jpg') center 45% / cover;
  min-height: clamp(420px, 70vh, 680px); display: flex; align-items: center;
}
.finale > .wrap { width: 100%; text-shadow: 0 2px 14px #000, 0 0 30px rgba(0, 0, 0, .8); }
.finale-line { font-style: italic; color: var(--bone-dim); font-size: 1.15em; }
.finale h2 { color: #ff6d5e; margin-bottom: 28px; }
.footer { padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); text-align: center; border-top: 1px solid var(--line); background: #080706; color: var(--bone-dim); font-size: 15px; }
.footer-brand { font-family: var(--font-display); color: var(--gold); font-size: 20px; margin-bottom: 4px; }
.footer p:last-child { margin: 0; }

/* Görünürlük animasyonu */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
