/* ════════════════════════════════════════════════════════════════
   LORIEN COFFEE — kâğıt, mürekkep, harita
   Tolkien'in kendi haritaları ve kitap kapakları gibi: düz renkler,
   mürekkep çizgiler, kırmızı baş harfler. Parlama, cam, degrade yok.
   Renkler ve yazı tipleri aşağıdaki :root bloğundan yönetilir.
   ════════════════════════════════════════════════════════════════ */

:root {
  --paper: #efe5cd;
  --paper-2: #e6d9bb;
  --paper-3: #d8c8a2;
  --card: #f7f0dc;
  --ink: #1c1812;
  --ink-2: #4a4034;
  --ink-3: #74664f;
  --red: #b3291c;
  --green: #2b563a;
  --green-dark: #1f3f2b;
  --ochre: #d49a2a;
  --blue: #2a5673;
  --wood: #a9773f;
  --board: #76512f;

  /* İkinci sıradaki yazı tipleri yalnızca Kiril harflerde (Rusça sayfa) devreye girer */
  --f-display: 'Uncial Antiqua', 'Ruslan Display', 'Alegreya', Georgia, serif;
  --f-text: 'Alegreya', Georgia, 'Times New Roman', serif;
  --f-sc: 'Alegreya SC', 'Alegreya', Georgia, serif;
  --f-hand: 'Fondamento', 'Marck Script', 'Alegreya', cursive;
  --f-type: 'Special Elite', 'PT Mono', 'Courier New', monospace;
  --f-poster: 'Abril Fatface', 'Playfair Display', 'Alegreya', serif;
  --f-cond: 'Stint Ultra Condensed', 'Oswald', 'Alegreya', serif;
  --f-rune: 'Noto Sans Runic', 'Segoe UI Historic', sans-serif;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --thunk: cubic-bezier(.3, 1.6, .5, 1);

  --gutter: clamp(1.1rem, 4vw, 3.5rem);
  --maxw: 76rem;
  --bar: 3.5rem;
  --intro-delay: .1s;
}
.js:not(.no-intro) { --intro-delay: 2.35s; }

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--paper);
  overflow-x: clip;
  scrollbar-color: var(--ink) var(--paper-2);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--f-text);
  font-size: 1.19rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
a:hover { color: var(--red); }
img, svg, canvas, iframe { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.defs { position: absolute; }
.defs symbol:not(#logo-mark) * { vector-effect: non-scaling-stroke; }
svg use { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }

::selection { background: var(--red); color: var(--paper); }
:focus-visible { outline: 2.5px solid var(--red); outline-offset: 3px; }

.skip {
  position: fixed; top: .5rem; left: .5rem; z-index: 200;
  padding: .6rem 1rem; background: var(--ink); color: var(--paper);
  font-family: var(--f-sc); text-decoration: none;
  transform: translateY(-200%); transition: transform .3s var(--ease);
}
.skip:focus-visible { transform: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; }
.section { position: relative; padding: clamp(4.5rem, 10vw, 8.5rem) var(--gutter); }

.loading { font-family: var(--f-hand); font-style: italic; color: var(--ink-3); }
.note { font-family: var(--f-hand); font-style: italic; font-size: 1.25rem; line-height: 1.35; color: var(--blue); }
.note b { font-style: normal; font-size: 1.3em; color: var(--red); }
.note--arrow::before { content: "☞"; margin-right: .5rem; font-style: normal; color: var(--red); }

/* Düğme: bilet gibi, köşeli */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.9rem; padding: .3rem 1.3rem;
  border: 1.5px solid var(--ink); border-radius: 2px;
  background: var(--paper); color: var(--ink);
  font-family: var(--f-sc); font-size: 1.08rem; letter-spacing: .1em; text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), translate .25s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); translate: 0 -2px; }
.btn:active { translate: 0 1px; }
.btn--red { background: var(--red); color: var(--paper); }

/* Lastik damga */
.stamp {
  display: inline-grid; justify-items: center; gap: .1rem;
  padding: .45rem .9rem .35rem;
  border: 3px double currentColor; border-radius: 4px;
  color: var(--red);
  font-family: var(--f-type); text-transform: uppercase; line-height: 1.1;
  rotate: -7deg;
}
.stamp b { font-family: var(--f-cond); font-weight: 400; font-size: 2.3rem; letter-spacing: .12em; line-height: .95; }
.stamp small { font-size: .72rem; letter-spacing: .08em; }
.stamp.is-closed { color: var(--ink-3); }

/* Bölüm başlığı: kırmızı baş harfli el yazması */
.title { display: grid; justify-items: start; gap: .35rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.title__h {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(3.2rem, 11.5vw, 9.5rem); line-height: 1; letter-spacing: -.01em;
  padding-bottom: .08em;
}
.title__h::first-letter { color: var(--red); }
.title__sub { max-width: 34rem; font-family: var(--f-hand); font-style: italic; font-size: clamp(1.3rem, 2.3vw, 1.9rem); line-height: 1.25; color: var(--ink-2); }
.orn { width: min(16rem, 60%); height: 1.1rem; margin-top: .9rem; color: var(--ink); filter: url(#w1); }
.title--light { color: var(--paper); }
.title--light .title__h::first-letter { color: var(--ochre); }
.title--light .title__sub { color: var(--paper-2); }
.title--light .orn { color: var(--paper); }

/* Başlık, görününce soldan sağa "yazılır" */
.js .title[data-in] .title__h { clip-path: inset(-10% 100% -20% -2%); }
.js .title[data-in].is-in .title__h { clip-path: inset(-10% -4% -20% -2%); transition: clip-path 1.5s var(--ease-io); }
.js .title[data-in] .orn { opacity: 0; transform: scaleX(.2); transform-origin: left; }
.js .title[data-in].is-in .orn { opacity: 1; transform: none; transition: transform 1s var(--ease) .7s, opacity .4s .7s; }
.no-motion [data-in] *, .no-motion [data-in], .is-file [data-in] *, .is-file [data-in] { clip-path: none !important; opacity: 1 !important; transform: none !important; }

/* ════════════════ RÜN ŞERİDİ ════════════════ */
.runes {
  position: relative; z-index: 3;
  display: flex; justify-content: center; align-items: center;
  height: 2.6rem; overflow: hidden; white-space: nowrap;
  background: var(--ink); color: var(--paper);
  box-shadow: inset 0 4px 0 var(--ink), inset 0 5.5px 0 var(--paper), inset 0 -4px 0 var(--ink), inset 0 -5.5px 0 var(--paper);
  font-family: var(--f-rune); font-size: 1.12rem; line-height: 1;
  cursor: help; user-select: none;
}
.runes span { display: inline-block; flex: none; width: 1.42em; text-align: center; }
.runes .sep { color: var(--ochre); }
.runes .is-plain { font-family: var(--f-sc); font-size: 1.02em; color: var(--ochre); }

/* ════════════════ AÇILIŞ MEKTUBU ════════════════ */
.intro { display: none; }
.js:not(.no-intro) .intro {
  display: block; position: fixed; inset: 0; z-index: 100;
  perspective: 1600px; overflow: hidden;
  animation: intro-off 0s linear 3.4s forwards;
}
.intro__flap { position: absolute; left: 0; right: 0; height: 50.2%; background: var(--paper-2); backface-visibility: hidden; }
.intro__flap--t { top: 0; transform-origin: top; border-bottom: 1px solid rgba(28, 24, 18, .3); animation: flap-t 1.25s var(--ease-io) 2.05s forwards; }
.intro__flap--b { bottom: 0; transform-origin: bottom; animation: flap-b 1.25s var(--ease-io) 2.05s forwards; }
.intro__seal {
  position: absolute; left: 50%; top: 50%;
  width: 8.5rem; height: 8.5rem; margin: -4.25rem 0 0 -4.25rem;
  display: grid; place-items: center;
  border-radius: 50%; background: #141414; color: var(--paper);
  opacity: 0;
  animation: seal-in .38s var(--thunk) .35s forwards, seal-out .4s var(--ease) 1.95s forwards;
}
.intro__seal svg { width: 62%; height: 62%; translate: 4% -3%; }
.intro__riddle, .intro__answer { position: absolute; left: 0; right: 0; text-align: center; }
.intro__riddle {
  top: calc(50% - 9.5rem);
  font-family: var(--f-hand); font-style: italic; font-size: clamp(1.5rem, 3.4vw, 2.2rem); color: var(--ink);
  opacity: 0; animation: fade-in .6s var(--ease) .8s forwards, fade-out .3s 1.9s forwards;
}
.intro__answer {
  top: calc(50% + 6rem);
  display: flex; justify-content: center; gap: .55em;
  font-family: var(--f-type); font-size: 1.3rem; color: var(--red);
  animation: fade-out .3s 1.9s forwards;
}
.intro__answer span { opacity: 0; animation: fade-in .01s forwards; }
.intro__answer span:nth-child(1) { animation-delay: 1.25s; }
.intro__answer span:nth-child(2) { animation-delay: 1.35s; }
.intro__answer span:nth-child(3) { animation-delay: 1.45s; }
.intro__answer span:nth-child(4) { animation-delay: 1.55s; }
.intro__answer span:nth-child(5) { animation-delay: 1.65s; }
.intro__answer span:nth-child(6) { animation-delay: 1.75s; }

@keyframes intro-off { to { visibility: hidden; } }
@keyframes flap-t { 75% { opacity: 1; } to { transform: rotateX(-97deg); opacity: 0; } }
@keyframes flap-b { 75% { opacity: 1; } to { transform: rotateX(97deg); opacity: 0; } }
@keyframes seal-in { from { opacity: 0; transform: scale(2.4) rotate(-22deg); } to { opacity: 1; transform: scale(1) rotate(-8deg); } }
@keyframes seal-out { to { opacity: 0; transform: scale(1.25) rotate(-8deg); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(1.2rem); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

.filewarn { display: none; }
.is-file .filewarn {
  display: block; position: fixed; inset: auto 0 0 0; z-index: 200;
  padding: 1rem 1.25rem; background: var(--ink); color: var(--paper);
  font-size: 1rem; line-height: 1.45;
}
.filewarn code { font-family: var(--f-type); color: var(--ochre); }

/* ════════════════ ÜST ŞERİT ════════════════ */
.bar {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  height: var(--bar); padding-inline: var(--gutter);
  background: var(--paper);
  border-bottom: 1.5px solid var(--ink);
}
.bar__logo { justify-self: start; display: inline-flex; align-items: center; gap: .65rem; min-height: 2.75rem; color: var(--ink); text-decoration: none; }
.bar__logo svg { flex: none; width: 2.1rem; height: 2rem; }
.bar__logo span { font-family: var(--f-display); font-size: 1.12rem; white-space: nowrap; }
.bar__logo:hover { color: var(--ink); }
.bar__logo:hover svg { color: var(--red); }

.bar__nav { display: flex; gap: clamp(.9rem, 2.2vw, 2rem); }
.bar__nav a {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  font-family: var(--f-sc); font-size: 1.05rem; letter-spacing: .1em;
  text-decoration: none;
}
.bar__nav a.is-active { color: var(--red); text-decoration: underline wavy 1.5px; text-underline-offset: .32em; }
.bar__end { justify-self: end; display: inline-flex; align-items: center; gap: clamp(.6rem, 1.6vw, 1.4rem); }

/* Dil seçici: üst şeritte kısaltmalar, İçindekiler sayfasında ve künyede tam adlar */
.lang { display: inline-flex; align-items: center; font-family: var(--f-sc); font-size: .98rem; letter-spacing: .08em; }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 2.1rem; min-height: 2.75rem; padding: 0 .2rem; color: var(--ink-3); text-decoration: none; }
.lang a + a::before { content: "·"; display: inline-block; margin-right: .4rem; color: var(--ink-3); text-decoration: none; }
.lang a:hover { color: var(--red); }
.lang a[aria-current="page"] { color: var(--ink); text-decoration: underline wavy 1.5px var(--red); text-underline-offset: .32em; }
.lang--full { flex-wrap: wrap; justify-content: center; gap: 0 .5rem; font-size: 1.05rem; letter-spacing: .1em; }
.lang--full a + a::before { margin-right: .9rem; }
.toc .lang--full { justify-content: flex-start; margin-top: -1rem; }

/* Tarayıcı dili farklıysa çıkan küçük öneri */
.langhint {
  position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 44; /* İçindekiler ve oyun kartının altında */
  display: flex; align-items: center; gap: .3rem .9rem;
  width: max-content; max-width: calc(100vw - 2rem); padding: .55rem .6rem .55rem 1.1rem;
  background: var(--card); border: 1.5px solid var(--ink); border-radius: 2px; box-shadow: 4px 4px 0 var(--ink);
  font-size: 1.02rem; line-height: 1.3;
  transform: translate(-50%, 140%); transition: transform .5s var(--ease);
}
.langhint.is-on { transform: translate(-50%, 0); }
.langhint span { flex: 1 1 auto; min-width: 0; }
.langhint a { display: inline-flex; align-items: center; min-height: 2.75rem; white-space: nowrap; font-family: var(--f-sc); letter-spacing: .08em; color: var(--red); }
.langhint button { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; background: none; font-size: 1.5rem; line-height: 1; color: var(--ink-2); cursor: pointer; }

.bar__cta { justify-self: end; display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; min-height: 2.75rem; font-family: var(--f-sc); font-size: 1.05rem; letter-spacing: .1em; text-decoration: underline; }
.bar__toggle {
  display: none; justify-self: end;
  min-height: 2.5rem; padding: 0 .9rem;
  border: 1.5px solid var(--ink); border-radius: 2px; background: none;
  font-family: var(--f-sc); font-size: 1rem; letter-spacing: .1em;
  cursor: pointer;
}
.bar__toggle[aria-expanded="true"] { background: var(--ink); color: var(--paper); }

.toc {
  position: fixed; inset: var(--bar) 0 0 0; z-index: 45;
  display: grid; align-content: center; gap: 2rem;
  padding: 2rem var(--gutter) 3rem;
  background: var(--paper);
  transform: translateY(-104%); visibility: hidden;
  transition: transform .55s var(--ease-io), visibility 0s linear .55s;
}
.toc.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.toc__title { font-family: var(--f-display); font-size: clamp(2.6rem, 12vw, 4rem); line-height: 1; }
.toc__title::first-letter { color: var(--red); }
.toc__list { display: grid; }
.toc__list a {
  display: flex; align-items: baseline; gap: .6rem;
  min-height: 3.4rem; padding: .5rem 0;
  font-size: 1.7rem; text-decoration: none;
}
.toc__list i { flex: 1; border-bottom: 2px dotted var(--ink-3); translate: 0 -.25em; }
.toc__list b { font-family: var(--f-sc); font-weight: 400; color: var(--red); min-width: 2ch; text-align: right; }
.toc__foot { display: flex; gap: 1.5rem; padding-top: 1.25rem; border-top: 1.5px solid var(--ink); font-family: var(--f-sc); letter-spacing: .1em; }
.toc__foot a { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* ════════════════ KAPAK ════════════════ */
.cover {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto;
  height: calc(100vh - var(--bar)); height: calc(100svh - var(--bar)); min-height: 35rem;
  background: var(--paper);
}
.cover__art { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cover__art--front { z-index: 2; }
.cover__layer { position: absolute; left: -3%; top: 0; width: 106%; height: 100%; max-width: none; }
/* Güneş, başlığın tam arkasında durur (yeri scene.js'te başlığa göre ayarlanır) */
.sunbox { position: absolute; left: 50%; top: 34%; width: 144vw; aspect-ratio: 1; translate: -50% -50%; }
.sun { width: 100%; height: 100%; max-width: none; overflow: visible; }
.js .sun { animation: spin 300s steps(600) infinite; }

.cover__text {
  position: relative; z-index: 1; grid-row: 2; align-self: start;
  display: grid; justify-items: center;
  padding: clamp(1.25rem, 5.5vh, 3.75rem) var(--gutter) 0;
  text-align: center;
}
.js .in { opacity: 0; animation: rise .9s var(--ease) calc(var(--intro-delay) + var(--i, 0) * 70ms) forwards; }
.cover__title { margin-top: clamp(.25rem, 1.5vh, 1rem); line-height: 1; }
.cover__name {
  display: block;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(4.4rem, min(20vw, 30vh), 15.5rem); line-height: .95; letter-spacing: -.01em;
  white-space: nowrap;
}
.cover__name span { display: inline-block; }
.cover__name span:first-child { color: var(--red); }
.js .cover__name span { opacity: 0; animation: letter .7s var(--thunk) calc(var(--intro-delay) + var(--i) * 80ms) forwards; }
@keyframes letter { from { opacity: 0; transform: translateY(.18em) rotate(-4deg); } to { opacity: 1; transform: none; } }
.cover__coffee {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-top: .1em;
  font-family: var(--f-sc); font-size: clamp(1.05rem, 2.2vw, 1.7rem); letter-spacing: .75em; text-indent: .75em;
}
.cover__coffee::before, .cover__coffee::after { content: ""; width: clamp(1.5rem, 7vw, 5.5rem); height: 1.5px; background: var(--ink); }
.cover__tag { margin-top: clamp(.6rem, 2vh, 1.25rem); max-width: 30rem; font-family: var(--f-hand); font-style: italic; font-size: clamp(1.25rem, 2.3vw, 1.75rem); line-height: 1.25; text-wrap: balance; }
.cover__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: clamp(.9rem, 2.6vh, 1.75rem); }

.cover__stamp { position: absolute; z-index: 3; left: clamp(1rem, 5vw, 4.5rem); bottom: 4.2rem; background: rgba(239, 229, 205, .88); }
.cover__stamp[hidden] { display: none; }
.js .cover__stamp { animation: thunk .45s var(--thunk) calc(var(--intro-delay) + 1.4s) both; }
@keyframes thunk { from { opacity: 0; scale: 2; } to { opacity: 1; scale: 1; } }

/* ════════════════ YOLCULUK ROTASI ════════════════ */
main { position: relative; }
.route { display: none; position: absolute; left: 0; top: 0; z-index: 2; width: 7rem; overflow: visible; pointer-events: none; }
#route-line { fill: none; stroke: var(--red); stroke-width: 2.4; stroke-dasharray: 1 10; stroke-linecap: round; }
#route-dot { fill: var(--red); stroke: var(--paper); stroke-width: 2.5; }
#route-marks circle { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
#route-marks text { font-family: var(--f-sc); font-size: 11px; fill: var(--ink); text-anchor: middle; dominant-baseline: central; }

/* ════════════════ I · HİKÂYE ════════════════ */
.story__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.story__text { display: grid; gap: 1.4rem; }
.story__text p { max-width: 38rem; }
.dropcap { font-size: clamp(1.35rem, 2.1vw, 1.7rem); line-height: 1.42; }
.dropcap::first-letter {
  float: left; margin: .04em .12em 0 0;
  font-family: var(--f-display); font-size: 4.6em; line-height: .78;
  color: var(--red);
}
.story__text .note { margin-top: .5rem; }

.legend { padding: 1.5rem 1.6rem .6rem; border: 1.5px solid var(--ink); outline: 1.5px solid var(--ink); outline-offset: 5px; margin: 5px; }
.legend__head { display: flex; align-items: center; gap: .9rem; margin-bottom: .6rem; font-family: var(--f-sc); font-size: 1.1rem; letter-spacing: .32em; }
.legend__head::before, .legend__head::after { content: ""; flex: 1; height: 1.5px; background: var(--ink); }
.legend li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 1rem; align-items: center; padding: .85rem 0; border-top: 1.5px dashed rgba(28, 24, 18, .35); }
.legend li:first-child { border-top: 0; }
.legend svg { width: 2.4rem; height: 2.4rem; color: var(--ink); filter: url(#w2); }
.legend b { display: block; font-weight: 700; line-height: 1.2; }
.legend div > span { display: block; font-style: italic; font-size: 1.02rem; line-height: 1.3; color: var(--ink-2); }

/* ════════════════ II · MENÜ ════════════════ */
.wall {
  background-color: var(--green-dark);
  background-image: repeating-linear-gradient(90deg, transparent 0 8.4rem, rgba(0, 0, 0, .22) 8.4rem calc(8.4rem + 2px));
}
.tarife { position: relative; max-width: 68rem; margin-inline: auto; padding: .55rem; background: var(--paper); color: var(--ink); transform: rotate(-.45deg); }
.js .tarife[data-in] { opacity: 0; transform: rotate(-3.5deg) translateY(3.5rem); }
.js .tarife[data-in].is-in { opacity: 1; transform: rotate(-.45deg); transition: transform .9s var(--thunk), opacity .35s; }
.tack { position: absolute; top: -.5rem; left: 2.2rem; z-index: 1; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--red); border: 1.5px solid var(--ink); }
.tack--r { left: auto; right: 2.2rem; }
.tarife__inner { padding: clamp(1.75rem, 5vw, 4rem) clamp(1.1rem, 4.5vw, 4rem) clamp(1.5rem, 4vw, 3rem); border: 1.5px solid var(--ink); outline: 1.5px solid var(--ink); outline-offset: -7px; }
.tarife__head { display: grid; justify-items: center; gap: .3rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); text-align: center; }
.tarife__logo { width: 3.2rem; height: 3.05rem; }
.tarife__over { font-family: var(--f-sc); letter-spacing: .34em; font-size: 1rem; text-indent: .34em; }
.tarife__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.75rem, 4.6vw, 3.4rem); line-height: 1.05; text-wrap: balance; }
.tarife__title::first-letter { color: var(--red); }
.tarife__toc { display: flex; flex-wrap: wrap; justify-content: center; gap: .1rem .4rem; margin-top: .9rem; padding-block: .55rem; border-block: 1.5px solid var(--ink); font-family: var(--f-sc); font-size: 1rem; letter-spacing: .08em; }
.tarife__toc a { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 .55rem; text-decoration: none; }
.tarife__toc a:not(:last-child)::after { content: "✦"; margin-left: .95rem; font-size: .7em; color: var(--red); }

.tarife__cols { columns: 2; column-gap: clamp(2.5rem, 5vw, 4.5rem); column-rule: 1.5px solid rgba(28, 24, 18, .4); }
.cat { break-inside: avoid; margin-bottom: 2.75rem; scroll-margin-top: calc(var(--bar) + 1.5rem); }
.cat__h { break-after: avoid; text-align: center; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.1; }
.cat__h::first-letter { color: var(--red); }
.cat__sub { break-after: avoid; margin-top: .2rem; text-align: center; font-family: var(--f-hand); font-style: italic; font-size: 1.08rem; color: var(--ink-2); }
.cat__orn { width: 7rem; height: .9rem; margin: .55rem auto 1.1rem; filter: url(#w3); }
.dishes { display: grid; gap: .95rem; }
.dish { break-inside: avoid; }
.dish__row { display: flex; align-items: baseline; gap: .55rem; }
.dish__name { font-size: 1.22rem; font-weight: 700; line-height: 1.2; }
.dish__dots { flex: 1; min-width: 1rem; border-bottom: 2px dotted rgba(28, 24, 18, .5); translate: 0 -.24em; }
.dish__price { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 .8rem; font-size: 1.22rem; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.dish__price small { font-family: var(--f-sc); font-weight: 400; font-size: .8em; color: var(--ink-2); }
.dish__desc { margin-top: .05rem; font-style: italic; font-size: 1.02rem; line-height: 1.3; color: var(--ink-2); }
.badge {
  display: inline-block; vertical-align: .18em;
  margin-left: .5rem; padding: .12rem .38rem .02rem;
  border: 1.5px solid currentColor; border-radius: 2px;
  font-family: var(--f-type); font-size: .68rem; font-weight: 400; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase;
  color: var(--red); rotate: -3.5deg;
}
.badge--green { color: var(--green); rotate: 2.5deg; }
.tarife__note { margin-top: .5rem; padding-top: 1.1rem; border-top: 1.5px solid var(--ink); text-align: center; font-family: var(--f-hand); font-style: italic; font-size: 1.1rem; color: var(--ink-2); }

.dataerr { padding: 1rem 1.2rem; border: 1.5px dashed var(--red); font-family: var(--f-type); font-size: .95rem; line-height: 1.5; color: var(--ink); column-span: all; }
.dataerr strong { display: block; margin-bottom: .3rem; color: var(--red); }

/* ════════════════ III · OYUNLAR ════════════════ */
.slip {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem 2.5rem; align-items: end;
  margin-bottom: 2.25rem; padding: 1.4rem clamp(1rem, 2.5vw, 1.9rem) 1.5rem;
  background: var(--card); border: 1.5px dashed var(--ink);
}
.slip__head { grid-column: 1 / -1; margin-bottom: .5rem; padding-bottom: .5rem; border-bottom: 2px solid var(--red); font-family: var(--f-type); font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; }
.slip__row { grid-column: 1; display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); align-items: center; gap: .5rem 1rem; padding: .45rem 0; }
.slip__label { font-family: var(--f-type); font-size: .92rem; }
.slip__label::after { content: " :"; }
.slip input {
  width: 100%; max-width: 24rem; height: 2.75rem; padding: 0 .2rem;
  border: 0; border-bottom: 2px dotted var(--ink); border-radius: 0; background: none; outline: 0;
  font-family: var(--f-type); font-size: 1.05rem;
}
.slip input::placeholder { color: var(--ink-3); }
.slip input:focus { border-bottom: 2px solid var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  min-width: 2.75rem; min-height: 2.75rem; padding: .1rem .8rem 0;
  border: 1.5px solid var(--ink); border-radius: 2px; background: none;
  font-family: var(--f-type); font-size: .92rem; white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.chips--round .chip { border-radius: 999px; }
.chip:hover { background: var(--paper-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.dicebtn {
  grid-column: 2; grid-row: 2 / span 4; align-self: center;
  display: grid; justify-items: center; gap: .5rem;
  padding: 1.1rem 1.4rem 1rem;
  border: 1.5px solid var(--ink); border-radius: 2px; background: var(--red); color: var(--paper);
  text-align: center; cursor: pointer;
  transition: background-color .25s var(--ease), rotate .35s var(--thunk);
}
.dicebtn svg { width: 3rem; height: 3rem; }
.dicebtn span { font-family: var(--f-hand); font-style: italic; font-size: 1rem; line-height: 1.2; }
.dicebtn b { display: block; font-family: var(--f-sc); font-style: normal; font-weight: 400; font-size: 1.15rem; letter-spacing: .1em; }
.dicebtn:hover { background: var(--ink); rotate: -2deg; }
.dicebtn:disabled { opacity: .45; cursor: not-allowed; }
.dicebtn.is-rolling svg { animation: spin .45s linear infinite; }

.library__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(19rem, 23.5rem); gap: 1.75rem; align-items: start; }

.case { padding: 1.1rem 0 0; background: var(--paper-2); border: 2px solid var(--ink); }
.case__count { min-height: 1.5rem; padding: 0 1.1rem .9rem; font-family: var(--f-type); font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; }
.shelf {
  --row: 15.5rem; --plank: .95rem; --gap: 1.6rem;
  display: flex; flex-wrap: wrap; align-items: flex-end;
  column-gap: .22rem; row-gap: calc(var(--plank) + var(--gap));
  min-height: calc(var(--row) + var(--plank) + var(--gap));
  padding: 0 1rem calc(var(--plank) + var(--gap));
  background-image: linear-gradient(180deg,
    transparent var(--row),
    var(--ink) var(--row), var(--ink) calc(var(--row) + 2px),
    var(--wood) calc(var(--row) + 2px), var(--wood) calc(var(--row) + var(--plank) - 2px),
    var(--ink) calc(var(--row) + var(--plank) - 2px), var(--ink) calc(var(--row) + var(--plank)),
    transparent calc(var(--row) + var(--plank)));
  background-size: 100% calc(var(--row) + var(--plank) + var(--gap));
}
.shelf > .loading, .shelf > .dataerr, .shelf__empty { align-self: center; margin: auto; padding: 2rem 1rem; text-align: center; }
/* Düz oyun listesi: JS çalıştırmayan tarayıcılar ve botlar içindir (tools/guncelle.py yazar); raf dizilince yerini ona bırakır */
.shelf__plain { flex: 1 1 100%; columns: 17rem; column-gap: 2rem; padding: 1.25rem .5rem; background: var(--paper-2); font-size: 1rem; line-height: 1.4; }
.shelf__plain li { break-inside: avoid; margin-bottom: .7rem; }
.js .shelf__plain, html:not(.js) .shelf > .loading { display: none; }
.shelf__empty { display: grid; justify-items: center; gap: 1rem; font-family: var(--f-hand); font-style: italic; font-size: 1.3rem; }

.spine { display: flex; align-items: flex-end; height: var(--row); padding: 0; border: 0; background: none; cursor: pointer; }
.js .spine { animation: spine-in .45s var(--ease) both; animation-delay: calc(min(var(--i, 0), 40) * 14ms); }
@keyframes spine-in { from { opacity: 0; transform: translateY(1.2rem); } to { opacity: 1; transform: none; } }
.spine:focus-visible { outline: none; }
.spine__body {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  width: var(--w); min-height: var(--h); max-height: 14.6rem;
  padding: 1.75rem 0 .55rem;
  border: 1.5px solid var(--ink); border-bottom: 0; border-radius: 2px 2px 0 0;
  background: var(--c); color: var(--t, var(--paper));
  transition: transform .35s var(--thunk);
}
.spine.is-long .spine__body { height: 14.6rem; }
.spine__body::before, .spine__body::after { content: ""; position: absolute; left: 0; right: 0; height: .32rem; border-block: 1.5px solid currentColor; opacity: .85; }
.spine__body::before { top: .5rem; }
.spine__body::after { bottom: 2rem; }
.spine__title {
  flex: 0 1 auto; min-height: 0; margin: auto 0;
  writing-mode: vertical-rl; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  text-align: center; line-height: 1.05;
  font-family: var(--f-sc); font-weight: 700; font-size: var(--fs, 1rem); letter-spacing: .05em;
}
.spine.is-long .spine__title { white-space: normal; max-width: calc(var(--lines, 2) * 1.05em); }
.spine__meta { margin-top: 1.2rem; font-family: var(--f-type); font-size: .72rem; line-height: 1.4; white-space: nowrap; }
.spine__fav { position: absolute; top: -1.5px; right: .28rem; z-index: 1; width: .55rem; height: 1.5rem; background: var(--red); border: 1.5px solid var(--ink); border-top: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 74%, 0 100%); }
.spine:hover .spine__body, .spine:focus-visible .spine__body { transform: translateY(-.75rem); }
.spine:focus-visible .spine__body { outline: 2.5px solid var(--red); outline-offset: 2px; }
.spine.is-lit .spine__body { transform: translateY(-.75rem) rotate(-2deg); }
.spine.is-selected .spine__body { transform: translateY(-1.5rem); }
.spine.is-selected .spine__body::after { background: currentColor; }

/* Künye kartı: kütüphane fişi */
.tome { position: sticky; top: calc(var(--bar) + 1.25rem); }
.card {
  position: relative; min-height: 26rem;
  padding: 1.25rem 1.4rem 3.4rem;
  background-color: var(--card);
  background-image: linear-gradient(var(--red), var(--red)), repeating-linear-gradient(180deg, transparent 0 calc(1.85rem - 1px), rgba(42, 86, 115, .3) calc(1.85rem - 1px) 1.85rem);
  background-size: 100% 2px, 100% 100%; background-position: 0 3.1rem, 0 3.1rem; background-repeat: no-repeat, repeat;
  border: 1.5px solid var(--ink);
  transform: rotate(.6deg);
}
.card::after { content: ""; position: absolute; left: 50%; bottom: .9rem; width: 1.1rem; height: 1.1rem; margin-left: -.55rem; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); }
.card__body > * { animation: rise .45s var(--ease) both; }
.card__body > *:nth-child(2) { animation-delay: .04s; }
.card__body > *:nth-child(3) { animation-delay: .08s; }
.card__body > *:nth-child(4) { animation-delay: .12s; }
.card__body > *:nth-child(5) { animation-delay: .16s; }
.card__lib { display: flex; justify-content: space-between; gap: 1rem; height: 1.85rem; font-family: var(--f-type); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.card__lib > span { color: var(--red); white-space: nowrap; }
.card__lib b { font-weight: 400; }
.card__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-top: 1.1rem; border: 1.5px solid var(--ink); }
.card__title { margin: 1.35rem 0 .9rem; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.08; text-wrap: balance; }
.card__title::first-letter { color: var(--red); }
.card__rows div { display: flex; align-items: baseline; gap: .5rem; height: 1.85rem; font-family: var(--f-type); font-size: .98rem; }
.card__rows dt::after { content: ""; }
.card__rows i { flex: 1; border-bottom: 1.5px dotted var(--ink-3); translate: 0 -.3em; }
.card__rows dd { white-space: nowrap; }
.pips { letter-spacing: .12em; color: var(--red); }
.card__desc { margin-top: 1rem; font-family: var(--f-hand); font-style: italic; font-size: 1.16rem; line-height: 1.85rem; color: var(--blue); }
.card__tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .9rem; }
.card__tags span { padding: .1rem .5rem 0; border: 1.5px solid var(--ink); font-family: var(--f-type); font-size: .78rem; }
.card__stamp { position: absolute; right: 1rem; bottom: 1.6rem; background: rgba(247, 240, 220, .85); font-size: .8rem; letter-spacing: .1em; rotate: -9deg; animation: thunk .4s var(--thunk) .35s both; }
.card__empty { display: grid; justify-items: center; gap: 1.1rem; padding-top: 5.5rem; text-align: center; font-family: var(--f-type); font-size: 1rem; line-height: 1.85rem; color: var(--ink-3); }
.card__empty svg { width: 5rem; height: 4.8rem; opacity: .35; }
.card__close { display: none; position: absolute; top: .35rem; right: .35rem; z-index: 2; width: 2.75rem; height: 2.75rem; place-items: center; border: 0; background: none; cursor: pointer; }
.card__close svg { width: 1.4rem; height: 1.4rem; }
.backdrop { display: none; }

/* ════════════════ IV · BULUŞMALAR: ilan panosu ════════════════ */
.board {
  background-color: var(--board);
  background-image: repeating-linear-gradient(180deg, transparent 0 6.5rem, rgba(0, 0, 0, .28) 6.5rem calc(6.5rem + 2px));
}
.bills { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.75rem 2rem; align-items: start; }
.bill {
  position: relative; grid-column: span 4;
  padding: 2rem 1.6rem 1.6rem;
  background: var(--paper); color: var(--ink);
  text-align: center; line-height: 1.4;
  transform: rotate(var(--r, 0deg));
  box-shadow: 3px 4px 0 rgba(0, 0, 0, .28);
  transition: transform .45s var(--thunk);
}
.bill::before { content: ""; position: absolute; top: -.55rem; left: 50%; width: 1.1rem; height: 1.1rem; margin-left: -.55rem; border-radius: 50%; background: var(--red); border: 1.5px solid var(--ink); }
.bill:hover { transform: rotate(0deg) scale(1.025); z-index: 1; }
.js .bill[data-in] { opacity: 0; transform: translateY(2rem) rotate(0deg); }
.js .bill[data-in].is-in { opacity: 1; transform: rotate(var(--r, 0deg)); transition: transform .7s var(--thunk), opacity .3s; }
.js .bill[data-in].is-in:hover { transform: rotate(0deg) scale(1.025); }
.bill:nth-child(2) { margin-top: 2.5rem; }
.bill:nth-child(3) { margin-top: .75rem; }
.bill:nth-child(5) { margin-top: -1.5rem; }
.bill:nth-child(6) { margin-top: 1.25rem; }
.bill__top { font-family: var(--f-sc); font-size: .95rem; letter-spacing: .26em; }
.bill__foot { margin-top: .9rem; padding-top: .65rem; border-top: 1.5px solid currentColor; font-family: var(--f-sc); letter-spacing: .14em; }

.bill--wanted { background: var(--paper-3); outline: 1.5px solid var(--ink); outline-offset: -8px; }
.bill--wanted h3 { margin: .2rem 0; font-family: var(--f-cond); font-weight: 400; font-size: clamp(4rem, 7vw, 5.6rem); line-height: .95; letter-spacing: .05em; text-transform: uppercase; }
.bill__big { margin-bottom: .6rem; padding-block: .2rem; border-block: 3px double var(--ink); font-family: var(--f-poster); font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.15; }

.bill--magic { background: var(--ink); color: var(--paper); }
.bill--magic::before { background: var(--ochre); }
.bill--magic h3 { margin: .5rem 0 .7rem; font-family: var(--f-poster); font-weight: 400; font-size: clamp(3.2rem, 5.6vw, 4.6rem); line-height: .9; color: var(--ochre); }
.bill--magic h3 span { display: block; margin-top: 1rem; font-family: var(--f-sc); font-size: 1.05rem; letter-spacing: .34em; color: var(--paper); }
.bill--magic .bill__foot { color: var(--ochre); }

.bill--council { background: var(--card); }
.bill--council::before { background: var(--green); }
.bill--council h3 { margin-bottom: .7rem; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.8rem, 2.8vw, 2.4rem); line-height: 1.08; }
.bill--council h3::first-letter { color: var(--red); }
.bill--council p { font-style: italic; }
.bill--council .bill__foot { font-family: var(--f-hand); font-style: italic; letter-spacing: 0; font-size: 1.1rem; }

.bill--cup { background: var(--ochre); }
.bill--cup::before { background: var(--ink); }
.bill--cup h3 { margin: .3rem 0 .6rem; font-family: var(--f-poster); font-weight: 400; font-size: clamp(3rem, 5vw, 4.2rem); line-height: 1; rotate: -4deg; }

.bill--draw { background: #fbf7ea; text-align: left; }
.bill--draw::before { background: var(--blue); }
.bill--draw h3 { margin-bottom: .5rem; font-family: var(--f-hand); font-style: italic; font-weight: 400; font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1.1; color: var(--blue); text-decoration: underline wavy 1.5px var(--red); text-underline-offset: .22em; }
.bill--draw p { font-family: var(--f-hand); font-size: 1.15rem; }

.bill--note { background: #f3e3a0; text-align: left; font-family: var(--f-type); font-size: .98rem; }
.bill--note::before { background: var(--red); }
.bill--note h3 { margin-bottom: .6rem; font-family: var(--f-type); font-weight: 400; font-size: 1.25rem; line-height: 1.3; }
.bill--note a { font-size: 1.15rem; }

/* ════════════════ GALERİ ════════════════ */
.gallery[hidden] { display: none; }
.gallery__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.shot { grid-column: span 4; padding: .6rem .6rem .5rem; background: var(--card); border: 1.5px solid var(--ink); }
.shot:nth-child(6n + 1) { grid-column: span 7; }
.shot:nth-child(6n + 2) { grid-column: span 5; }
.shot:nth-child(odd) { rotate: -.7deg; }
.shot:nth-child(even) { rotate: .6deg; }
.shot img { width: 100%; height: 100%; min-height: 14rem; max-height: 32rem; object-fit: cover; border: 1.5px solid var(--ink); }
.shot figcaption { padding-top: .45rem; font-family: var(--f-hand); font-style: italic; font-size: 1.1rem; text-align: center; }

/* ════════════════ V · ZİYARET ════════════════ */
.visit__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.visit .title { margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.facts__row { display: grid; gap: .1rem; padding: 1.1rem 0; border-top: 1.5px dashed rgba(28, 24, 18, .4); }
.facts__row:first-child { border-top: 1.5px solid var(--ink); }
.facts__row[hidden] { display: none; }
.facts dt { font-family: var(--f-sc); font-size: 1rem; letter-spacing: .24em; color: var(--red); }
.facts dd { font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.25; white-space: pre-line; }
.facts__status { display: block; margin-top: .2rem; font-family: var(--f-type); font-size: .92rem; white-space: normal; color: var(--ink-3); }
.facts__status.is-open { color: var(--green); }
.facts__status::before { content: "● "; }
.facts__actions { display: flex; flex-wrap: wrap; gap: .7rem; padding-top: 1.6rem; border-top: 1.5px solid var(--ink); }
.facts__actions [hidden] { display: none; }

.chart { position: relative; margin-top: 3.25rem; }
.chart__map { position: relative; aspect-ratio: 4 / 3; min-height: 20rem; overflow: hidden; background: var(--paper-2); border: 2px solid var(--ink); outline: 1.5px solid var(--ink); outline-offset: 5px; }
.chart__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: sepia(.6) saturate(.95) contrast(1.12) brightness(.9); }
.chart__placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-sc); letter-spacing: .1em; }
.chart__compass { position: absolute; right: -1.6rem; top: -2.6rem; z-index: 2; width: 7.5rem; height: 7.5rem; padding: .35rem; border-radius: 50%; background: var(--paper); color: var(--ink); filter: url(#w1); }
.chart .note { margin-top: 1.5rem; }
.chart .note::before { content: "✕"; margin-right: .5rem; font-style: normal; font-weight: 700; color: var(--red); }

/* ════════════════ KÜNYE ════════════════ */
.colophon { background: var(--paper-2); text-align: center; }
.colophon .wrap { display: grid; justify-items: center; gap: .9rem; padding: clamp(3.5rem, 8vw, 6rem) var(--gutter) 2.5rem; }
.colophon__seal { width: 4.6rem; height: 4.4rem; color: var(--ink); }
.colophon__line { font-family: var(--f-display); font-size: clamp(1.9rem, 5.2vw, 3.8rem); line-height: 1.1; text-wrap: balance; }
.colophon__line::first-letter { color: var(--red); }
.colophon__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem 1.75rem; margin-top: .6rem; font-family: var(--f-sc); letter-spacing: .12em; }
.colophon__links a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.colophon__meta { margin-top: 1rem; padding-top: 1.1rem; border-top: 1.5px solid var(--ink); font-size: 1rem; width: min(100%, 34rem); }
.colophon__legal { max-width: 36rem; font-style: italic; font-size: .92rem; line-height: 1.4; color: var(--ink-2); }

/* Bildirim ve yaprak yağmuru ("mellon") */
.toast {
  position: fixed; left: 50%; bottom: 1.75rem; z-index: 120; translate: -50% 0;
  padding: .7rem 1.3rem .55rem; border: 1.5px solid var(--ink); background: var(--ochre); color: var(--ink);
  font-family: var(--f-hand); font-style: italic; font-size: 1.25rem; white-space: nowrap;
  opacity: 0; transform: translateY(1.2rem) rotate(-2deg); pointer-events: none;
  transition: opacity .3s, transform .45s var(--thunk);
}
.toast.is-on { opacity: 1; transform: rotate(-2deg); }
.shower { position: fixed; inset: 0; z-index: 110; pointer-events: none; overflow: hidden; }
.shower i { position: absolute; top: -2rem; left: var(--x); width: var(--s); height: calc(var(--s) * .52); border-radius: 100% 0; background: var(--c); border: 1.5px solid var(--ink); animation: shower var(--d) cubic-bezier(.45, 0, .55, 1) var(--t) forwards; }
@keyframes shower { to { transform: translate3d(var(--dx), 112vh, 0) rotate(var(--rot)); } }

/* ════════════════ DUYARLI DÜZEN ════════════════ */
@media (min-width: 1420px) { .route { display: block; } }
@media (min-width: 900px) { .sunbox { width: min(118vh, 72vw); } }

/* Üst şerit daralınca yer dil seçicinin: yol tarifi Ziyaret bölümünde ve İçindekiler'de de var */
@media (max-width: 1099px) { .bar__cta { display: none; } }

@media (max-width: 1023px) {
  .library__body { grid-template-columns: minmax(0, 1fr); }
  .tome {
    position: fixed; inset: auto 0 0 0; top: auto; z-index: 70;
    padding: 0 .6rem .6rem;
    transform: translateY(110%); visibility: hidden;
    transition: transform .5s var(--ease), visibility 0s linear .5s;
  }
  .tome.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .card { min-height: 0; max-height: 82svh; overflow-y: auto; transform: none; }
  .card__close { display: grid; }
  .card__lib { padding-right: 2.5rem; }
  .backdrop { display: block; position: fixed; inset: 0; z-index: 69; background: rgba(28, 24, 18, .55); opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s linear .4s; }
  .backdrop.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }

  .bill { grid-column: span 6; }
  .bill:nth-child(n) { margin-top: 0; }
  .visit__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 899px) {
  .cover__name span:first-child { color: #9a1d12; }
  .bar { grid-template-columns: 1fr auto; }
  /* Telefonda üst şeritte İçindekiler düğmesi yerine dil seçici durur */
  .bar__nav { display: none; }
  .bar .lang { font-size: 1.05rem; }
  .story__grid { grid-template-columns: minmax(0, 1fr); }
  .tarife__cols { columns: 1; }
  /* Dar ekranda tarife sekmeli: yalnızca seçilen kategori görünür */
  .cat { display: none; margin-bottom: 1.5rem; }
  .cat.is-active { display: block; }
  .tarife__toc a:not(:last-child)::after { display: none; }
  .tarife__toc a.is-active { background: var(--ink); color: var(--paper); }
  .slip { grid-template-columns: minmax(0, 1fr); }
  .dicebtn { grid-column: 1; grid-row: auto; display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: .9rem; text-align: left; }
  .dicebtn svg { width: 2.4rem; height: 2.4rem; }
}

/* Çok dar telefonlar (320 px): logo ve dil seçici yan yana sığsın */
@media (max-width: 359px) {
  .bar { gap: .5rem; }
  .bar__logo { gap: .45rem; }
  .bar__logo span { font-size: 1rem; }
  .bar .lang { font-size: .98rem; }
  .bar .lang a { min-width: 1.85rem; }
  .bar .lang a + a::before { margin-right: .25rem; }
}

@media (max-width: 639px) {
  body { font-size: 1.12rem; }
  .runes { font-size: .98rem; height: 2.3rem; }
  .cover__stamp { left: auto; right: .9rem; bottom: 3.3rem; }
  .stamp b { font-size: 1.9rem; }
  .slip__row { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * clamp(1rem, 2.5vw, 1.9rem)); padding-inline: clamp(1rem, 2.5vw, 1.9rem); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .shelf { --row: 14.4rem; padding-inline: .5rem; column-gap: .16rem; }
  .tarife { transform: none; }
  .js .tarife[data-in].is-in { transform: none; }
  .tarife__toc a { min-height: 2.75rem; }
  /* Tek sutun: 12 sutunlu izgaranin araliklari dar ekrana sigmaz */
  .bills, .gallery__grid { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .bill, .shot, .shot:nth-child(n) { grid-column: auto; }
  /* min-height en-boy oranı üzerinden genişliğe taşınıp haritayı ekrandan çıkarıyordu */
  .chart__map { aspect-ratio: 1 / 1; min-height: 0; }
  .chart__compass { right: -.4rem; top: -2.2rem; width: 5.5rem; height: 5.5rem; }
}

/* ════════════════ Hareketi azalt ════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
  .js .sun { animation: none !important; }
  .js [data-in], .js [data-in] * { clip-path: none !important; opacity: 1 !important; }
  .js .tarife[data-in] { transform: rotate(-.45deg); }
  .js .bill[data-in] { transform: rotate(var(--r, 0deg)); }
  .js .title[data-in] .orn { transform: none; }
}
