/* Runevorn tanıtım sitesi. Renkler oyunun arayüzünden: koyu petrol paneller, parşömen başlık, pirinç çerçeve. */
@property --accent { syntax: '<color>'; inherits: true; initial-value: #77ddd0; }

:root {
  --accent: #77ddd0;
  --bg: #0b131a;
  --panel: #101c25;
  --panel-2: #0c161d;
  --line: #34443f;
  --brass: #a18c5d;
  --parch: #f0deb0;
  --text: #c5d0c9;
  --muted: #8a9a93;
  --road: clamp(200px, 24vw, 340px);
  --display: 'Cinzel', Georgia, 'Times New Roman', serif;
  --pixel: 'Pixelify Sans', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --body: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  transition: --accent .9s ease;
}

* { box-sizing: border-box; }
html { --section-scroll-padding: 76px; scroll-behavior: smooth; scroll-padding-top: var(--section-scroll-padding); }
body { position: relative; margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ---------- Dünya zemini ve karakterin yol hizası ---------- */
#ground { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--bg); }
.road { position: absolute; top: 0; bottom: 0; left: 50%; width: var(--road); transform: translateX(-50%); }
#veil { position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(ellipse 30% 34% at 50% 64%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(ellipse 95% 80% at 50% 62%, transparent 30%, rgba(5, 9, 13, .58) 72%, rgba(5, 9, 13, .9) 100%),
    linear-gradient(color-mix(in srgb, var(--accent) 7%, transparent), color-mix(in srgb, var(--accent) 7%, transparent)); }
#sparks { position: fixed; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Yürüyen şövalye ---------- */
#walker { position: fixed; z-index: 3; pointer-events: none; filter: drop-shadow(0 0 12px rgba(0, 0, 0, .65)); }

/* ---------- Zindan zeminleri ve geçişler ---------- */
.floor { position: absolute; left: 0; right: 0; background: var(--tex) 50% 0 / var(--size, 420px); opacity: 0;
  -webkit-mask-image: linear-gradient(transparent, #000 var(--fade, 400px), #000 calc(100% - var(--out, 0px)), transparent); mask-image: linear-gradient(transparent, #000 var(--fade, 400px), #000 calc(100% - var(--out, 0px)), transparent); transition: opacity 1.1s; }
.floor.lit { opacity: 1; }
.floor::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 7, 10, .78), rgba(4, 7, 10, .5) 32%, rgba(4, 7, 10, .5) 68%, rgba(4, 7, 10, .78)); }
.floor::after { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: var(--road); transform: translateX(-50%); background: var(--tex) 50% 0 / var(--size, 420px);
  /* Yol kenarındaki renkli çizgi (2px) ve parıltı (26px) kaldırıldı; yalnızca içe doğru koyu gölge kalır. */
  box-shadow: inset 12px 0 16px -10px rgba(0, 0, 0, .8), inset -12px 0 16px -10px rgba(0, 0, 0, .8);
  /* Ayrı, açık renkli yol şeridi gösterilmez: zemin her yerde .floor::before ile aynı koyulukta kalır. */
  display: none; }

#wipe { position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 64%, transparent calc(var(--r, 0) * 1vmax - 9vmax), color-mix(in srgb, var(--c, #fff) 60%, transparent) calc(var(--r, 0) * 1vmax - 2vmax), color-mix(in srgb, var(--c, #fff) 85%, #fff) calc(var(--r, 0) * 1vmax), transparent calc(var(--r, 0) * 1vmax + 1vmax)); }
#wipe.go { animation: wipe 1s cubic-bezier(.2, .7, .3, 1) forwards; }
@property --r { syntax: '<number>'; inherits: false; initial-value: 0; }
@keyframes wipe { 0% { --r: 10; opacity: .8; } 70% { opacity: .55; } 100% { --r: 120; opacity: 0; } }
#veil.strike { animation: strike .5s steps(6); }
@keyframes strike { 0%, 40% { background-color: rgba(200, 228, 255, .32); } 20%, 100% { background-color: transparent; } }

#zoneCard { position: fixed; left: 50%; top: 21vh; z-index: 7; transform: translateX(-50%); display: grid; justify-items: center; gap: 4px; text-align: center; pointer-events: none; opacity: 0; white-space: nowrap; }
#zoneCard small { font: 13px var(--pixel); letter-spacing: .34em; text-transform: uppercase; color: var(--c); }
#zoneCard b { font: 900 clamp(30px, 5vw, 66px)/1.05 var(--display); letter-spacing: .04em; color: var(--parch); text-shadow: 0 0 34px var(--c), 0 4px 0 #05080b, 0 0 60px #000; }
#zoneCard i { width: min(46vw, 420px); height: 2px; background: linear-gradient(90deg, transparent, var(--c), transparent); }
#zoneCard.go { animation: zone 2.6s ease forwards; }
@keyframes zone { 0% { opacity: 0; letter-spacing: .3em; translate: 0 14px; } 14%, 68% { opacity: 1; letter-spacing: 0; translate: 0 0; } 100% { opacity: 0; translate: 0 -10px; } }

/* ---------- Üst menü, HUD, mühür rayı ---------- */
#nav { --nav-control-height: 40px; --nav-control-gap: 10px;
  position: fixed; inset: 0 0 auto 0; z-index: 9; height: 60px; padding: 0 22px; display: flex; align-items: center; gap: var(--nav-control-gap);
  background: linear-gradient(rgba(8, 14, 19, .96), rgba(8, 14, 19, .82)); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 17px var(--display); letter-spacing: .08em; color: var(--parch); }
.brand svg { font-size: 26px; color: var(--accent); }
#nav-panel { display: flex; flex: 1; min-width: 0; align-items: center; gap: 22px; }
#nav nav { display: flex; flex: 1; align-items: center; justify-content: center; gap: 4px; }
#nav nav a { display: flex; align-items: center; justify-content: center; min-height: var(--nav-control-height); padding: 0 10px; white-space: nowrap;
  text-decoration: none; font: 12px var(--pixel); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
#nav nav a:hover, #nav nav a.on { color: var(--accent); }
.nav-tools, .nav-actions { display: flex; flex-shrink: 0; align-items: center; gap: var(--nav-control-gap); }
#nav .nav-actions .btn { min-height: var(--nav-control-height); box-shadow: inset 0 -2px 0 #6d5324; }
#nav .nav-actions .btn:active { translate: none; box-shadow: inset 0 -1px 0 #6d5324; }
.nav-toggle { display: none; }
.icon-btn { width: var(--nav-control-height); height: var(--nav-control-height); display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 15px; }
.icon-btn:not([href]) { opacity: .45; }
.lang { display: flex; height: var(--nav-control-height); border: 1px solid var(--line); }
.lang button { display: grid; place-items: center; width: 38px; border: 0; background: var(--panel); color: var(--muted); font: 12px var(--pixel); cursor: pointer; }
.lang button.on { background: var(--brass); color: #14110a; }

#hud { position: fixed; top: 72px; left: 50%; z-index: 8; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; white-space: nowrap;
  padding: 7px 14px; background: rgba(12, 22, 29, .92); border: 1px solid var(--line); box-shadow: 0 0 0 1px #070c10, 0 8px 24px rgba(0, 0, 0, .5);
  font: 12px var(--pixel); letter-spacing: .12em; text-transform: uppercase; }
#hud b { font: 700 16px var(--display); letter-spacing: .04em; color: var(--parch); }
#hud span { color: var(--accent); }
#hud i { font-style: normal; color: var(--muted); }

#seals { position: fixed; right: 18px; top: 50%; z-index: 8; transform: translateY(-50%); display: flex; flex-direction: column; gap: 12px; padding: 14px 8px;
  background: rgba(12, 22, 29, .78); border: 1px solid var(--line); }
#seals a { position: relative; width: 16px; height: 16px; display: block; rotate: 45deg; border: 2px solid #46534f; background: #0b1218; transition: .4s; }
#seals a.broken { background: var(--c); border-color: var(--c); box-shadow: 0 0 12px var(--c); }
#seals a.on { scale: 1.35; border-color: var(--parch); }
#seals a span { position: absolute; right: 26px; top: -4px; rotate: -45deg; transform-origin: right center; translate: 8px 14px; white-space: nowrap; padding: 3px 8px;
  background: var(--panel); border: 1px solid var(--line); font: 11px var(--pixel); letter-spacing: .08em; color: var(--parch); opacity: 0; pointer-events: none; transition: opacity .2s; }
#seals a:hover span, #seals a:focus-visible span { opacity: 1; }

/* ---------- Sahne ızgarası ---------- */
main { position: relative; z-index: 4; pointer-events: none; }
main > *, #journey > * { pointer-events: none; }
.panel, .prop, .top-inner, .scroll-hint, .wheel-wrap { pointer-events: auto; }
.stage { position: relative; min-height: 100vh; max-width: 1320px; margin: 0 auto; padding: 96px 28px 60px;
  display: grid; grid-template-columns: minmax(0, 1fr) var(--road) minmax(0, 1fr); column-gap: 30px; align-items: center; }
.stage > .panel { grid-column: 1; justify-self: end; }
.stage > .prop { grid-column: 3; justify-self: start; }
.stage.flip > .panel { grid-column: 3; justify-self: start; }
.stage.flip > .prop { grid-column: 1; justify-self: end; grid-row: 1; }
.stage.wide > .panel:nth-child(2) { grid-column: 3; justify-self: start; }

.panel {
  --card-hue: var(--panel-accent, #d7bd87);
  --card-divider: color-mix(in srgb, var(--card-hue) 17%, #17252b);
  --card-muted: #a7b5af;
  position: relative;
  min-width: 0;
  width: 100%;
  max-width: 440px;
  padding: 28px 30px 30px;
  border: 1px solid var(--card-divider);
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 2% 0%, color-mix(in srgb, var(--card-hue) 12%, transparent), transparent 58%),
    linear-gradient(155deg, #14222b 10%, #0c161e 74%);
  box-shadow: inset 0 1px #ffffff08, 0 12px 30px #03070b66, 0 2px 6px #03070b44;
  color: #d4ddd8;
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.panel::before {
  content: '';
  position: absolute;
  inset: -1px 22px auto;
  height: 1px;
  background: linear-gradient(90deg, var(--card-hue), transparent 78%);
  opacity: .7;
  pointer-events: none;
}
#bosslar { --panel-accent: #cbb4ec; }
#lig { --panel-accent: #85d6c9; }
.sword-panel { --panel-accent: var(--sword, #d0b6ff); }
.eyebrow { font: 12px var(--pixel); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
h2 { font: 700 clamp(25px, 2.7vw, 37px)/1.15 var(--display); color: var(--parch); margin-bottom: 14px; text-wrap: balance; }
h3 { font: 12px var(--pixel); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.panel p { text-wrap: pretty; }
.panel .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--card-hue);
  font: 650 11px/1.45 var(--body);
  letter-spacing: .14em;
}
.panel .eyebrow::before {
  content: '';
  width: 5px;
  height: 5px;
  flex: none;
  rotate: 45deg;
  background: currentColor;
}
.panel h2 { font-size: clamp(25px, 2.5vw, 35px); line-height: 1.18; letter-spacing: -.022em; }
.panel h3 { color: var(--card-muted); font: 650 11px/1.4 var(--body); letter-spacing: .12em; }
.panel .sub { font: italic 14px/1.45 var(--body); color: var(--card-muted); margin: -6px 0 12px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 20px;
  border: 1px solid var(--card-divider);
  border-radius: 10px;
  background: var(--card-divider);
  overflow: hidden;
}
#koy .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats li { padding: 11px 4px 10px; text-align: center; background: #0d1921; }
.stats b { display: block; font: 700 clamp(20px, 2vw, 27px)/1.1 var(--display); color: var(--parch); white-space: nowrap; }
.stats span {
  display: block;
  margin-top: 6px;
  font: 600 10px/1.3 var(--body);
  letter-spacing: .075em;
  text-transform: uppercase;
  color: var(--card-muted);
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chips li {
  padding: 4px 9px;
  border: 1px solid var(--card-divider);
  border-radius: 7px;
  background: #0b151d80;
  font-size: 12px;
}
.chips b { color: var(--parch); font-weight: 600; }
.rows { margin-top: 16px; }
.rows li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 9px 0;
  font-size: 14px;
}
.rows li + li { border-top: 1px solid var(--card-divider); }
.rows span { color: var(--card-muted); }
.rows b { min-width: 0; color: var(--parch); font-weight: 650; text-align: right; }
.ticks li { position: relative; padding: 6px 0 6px 24px; }
.ticks.rows li { padding: 9px 0 9px 24px; }
.ticks li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 1.05em;
  width: 6px;
  height: 6px;
  rotate: 45deg;
  background: var(--card-hue);
}
.ticks.rows li::before { top: 1.2em; }
.ticks.todo li::before { background: none; border: 1px solid var(--card-muted); }
#yol .ticks + h3 { padding-top: 16px; border-top: 1px solid var(--card-divider); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 20px; cursor: pointer; text-decoration: none;
  font: 600 14px var(--pixel); letter-spacing: .12em; text-transform: uppercase; color: var(--parch);
  background: linear-gradient(180deg, #1c2f3a, #14232c); border: 1px solid #50645f; box-shadow: 0 3px 0 #070c10; transition: translate .08s, box-shadow .08s, filter .15s; }
.btn:hover { filter: brightness(1.2); }
.btn:active { translate: 0 3px; box-shadow: 0 0 0 #070c10; }
.btn.gold { color: #17120a; background: linear-gradient(180deg, #f2d993, #c69f52); border-color: #f7e7b6; box-shadow: 0 3px 0 #6d5324; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 12px; }
.btn[aria-disabled='true'] { opacity: .5; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Açılış ---------- */
.stage.top { display: block; padding-top: 60px; text-align: center; }
.top-inner { padding-top: clamp(40px, 9vh, 96px); }
.top .eyebrow { display: inline-block; padding: 6px 14px; background: rgba(12, 22, 29, .9); border: 1px solid var(--line); }
h1 { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 .28em; margin: 6px 0 8px;
  font: 900 clamp(46px, min(11vw, 17vh), 150px)/.95 var(--display); letter-spacing: .03em;
  background: linear-gradient(180deg, #fff3cf 12%, #e9c877 48%, #9a6e2c 86%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 #2a1c08) drop-shadow(0 0 34px rgba(0, 0, 0, .8)); }
.tagline { font: 500 clamp(17px, 2.1vw, 25px) var(--display); color: var(--parch); text-shadow: 0 2px 14px #000; }
.cta-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.top-hero { display: none; height: min(30vh, 230px); width: auto; margin: 26px auto 0; filter: drop-shadow(0 0 16px rgba(0, 0, 0, .8)); }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; text-decoration: none;
  font: 12px var(--pixel); letter-spacing: .22em; text-transform: uppercase; color: var(--parch); text-shadow: 0 1px 6px #000; }
.scroll-hint i { width: 10px; height: 10px; border: solid var(--accent); border-width: 0 2px 2px 0; rotate: 45deg; animation: nudge 1.4s steps(4) infinite; }
@keyframes nudge { 50% { translate: 0 6px; } }

/* ---------- Geçitler ve dekor ---------- */
.prop { position: relative; display: grid; justify-items: center; }
.prop img { max-height: min(58vh, 520px); width: auto; }
.gate img { filter: grayscale(.75) brightness(.5); transition: filter 1s; }
.gate.broken img { filter: drop-shadow(0 0 34px color-mix(in srgb, var(--c) 55%, transparent)); }
.gate figcaption { margin-top: -6px; padding: 5px 12px; background: rgba(12, 22, 29, .92); border: 1px solid var(--line);
  font: 12px var(--pixel); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); transition: color .6s, border-color .6s; }
.gate.broken figcaption { color: var(--c); border-color: var(--c); }
figure { margin: 0; }
.scenery { filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .6)); }
.stage > .league-trophy {
  justify-self: center;
  width: min(100%, 340px, 46vh);
  pointer-events: none;
}
.league-trophy img {
  width: 100%;
  height: auto;
  max-height: none;
  filter: brightness(.9) saturate(.88) drop-shadow(0 8px 8px #0008);
}
@keyframes flame { 50% { scale: .86 1.14; background: #ffb347; } }

/* ---------- Kılıç çarkı ---------- */
.stage.armory { align-items: center; }
.wheel-wrap { grid-column: 2; grid-row: 1; justify-self: center; position: relative; width: clamp(300px, 36vw, 520px); aspect-ratio: 1; margin: 0 calc((var(--road) - clamp(300px, 36vw, 520px)) / 2); translate: 0 14vh; }
.stage.armory { padding-bottom: calc(60px + 22vh); }
.wheel-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--sword) 55%, transparent);
  box-shadow: inset 0 0 60px color-mix(in srgb, var(--sword) 14%, transparent), 0 0 0 10px rgba(8, 14, 19, .35); }
.wheel { position: absolute; inset: 0; transition: rotate .8s cubic-bezier(.2, .8, .2, 1); }
#armory-preview { display: none; }
.wheel button { position: absolute; left: 50%; top: 50%; width: 11%; height: 24%; margin: -12% 0 0 -5.5%; padding: 0; border: 0; background: none; cursor: pointer;
  transform: rotate(calc(var(--i) * 30deg)) translateY(-150%); transition: filter .3s, scale .3s; }
.wheel img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .8)); }
.wheel button:hover img { filter: drop-shadow(0 0 10px var(--c)) brightness(1.15); }
.wheel button.on img { filter: drop-shadow(0 0 16px var(--c)) brightness(1.15); scale: 1.2; }
/* Kılıç, fareyle üzerine gelindiğinde veya klavyeyle odaklandığında hafifçe kalkar ve parlar. */
.wheel button { overflow: visible; }
.wheel button::after { content: ''; position: absolute; inset: -10% -60%; z-index: -2; border-radius: 50%; opacity: 0; transition: opacity .35s;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 45%, transparent), transparent); }
.wheel .glint { position: absolute; inset: 0; pointer-events: none; opacity: 0;
  -webkit-mask: var(--img) center / contain no-repeat; mask: var(--img) center / contain no-repeat;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .95) 50%, transparent 62%) 150% 0 / 300% 100% no-repeat; }
.wheel button:is(:hover, :focus-visible)::after { opacity: 1; }
.wheel button:is(:hover, :focus-visible) img, .wheel button:is(:hover, :focus-visible) .glint { animation: heft .75s cubic-bezier(.3, .7, .3, 1) forwards; }
.wheel button:is(:hover, :focus-visible) .glint { animation: heft .75s cubic-bezier(.3, .7, .3, 1) forwards, glint .9s ease-in-out .12s forwards; }
@keyframes heft { 0% { translate: 0 0; rotate: 0deg; } 35% { translate: 0 -12%; rotate: -8deg; } 65% { translate: 0 -9%; rotate: 5deg; } 100% { translate: 0 -8%; rotate: 0deg; } }
@keyframes glint { 0% { opacity: 1; background-position: 150% 0; } 100% { opacity: 1; background-position: -60% 0; } }
/* Fare üstündeki kılıcın adı: çarkın hemen altındaki küçük levha. */
.wheel-peek { position: absolute; left: 50%; top: calc(100% + 12px); translate: -50% 6px; margin: 0; padding: 7px 16px 8px; white-space: nowrap; text-align: center; pointer-events: none;
  background: rgba(8, 12, 18, .9); border: 1px solid color-mix(in srgb, var(--c, #a18c5d) 70%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--c, #a18c5d) 30%, transparent);
  opacity: 0; transition: opacity .25s, translate .25s; }
.wheel-peek.on { opacity: 1; translate: -50% 0; }
.wheel-peek b { display: block; font: 700 17px var(--display); color: var(--c); }
.wheel-peek small { display: block; margin-top: 2px; font: 11px var(--pixel); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.wheel-arrows { position: absolute; left: 50%; bottom: -54px; transform: translateX(-50%); display: flex; gap: 10px; }
.wheel-arrows button { width: 44px; height: 40px; border: 1px solid var(--line); background: var(--panel); color: var(--parch); font: 18px var(--pixel); cursor: pointer; }
.sword-card { margin-top: 20px; padding: 16px; background: rgba(0, 0, 0, .3); border: 1px solid color-mix(in srgb, var(--sword) 60%, var(--line)); }
.sword-card b { display: block; font: 700 22px var(--display); color: var(--sword); }
.sword-card small { display: block; margin: 2px 0 8px; font: 12px var(--pixel); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Mega bosslar ---------- */
.boss-view { width: 100%; max-width: 440px; text-align: center; }
.boss-view img { margin: 0 auto; height: min(42vh, 380px); width: auto; object-fit: contain; filter: drop-shadow(0 0 40px color-mix(in srgb, var(--c) 50%, transparent)); animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 50% { translate: 0 -8px; } }
.boss-name { margin-top: 8px; font: 700 24px var(--display); color: var(--c); text-shadow: 0 2px 12px #000; }
.boss-meta { font: 12px var(--pixel); letter-spacing: .14em; text-transform: uppercase; color: var(--text); text-shadow: 0 1px 6px #000; }
.tabs { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.tabs button { width: 34px; height: 34px; rotate: 45deg; border: 2px solid var(--line); background: var(--panel); cursor: pointer; transition: .25s; }
.tabs button.on { background: var(--c); border-color: var(--parch); box-shadow: 0 0 14px var(--c); }

/* ---------- Yadigârlar, yol, liste ---------- */
.badge { position: absolute; right: 18px; top: -13px; padding: 3px 10px; background: var(--brass); color: #14110a; font: 600 11px var(--pixel); letter-spacing: .16em; text-transform: uppercase; }
.facts { display: grid; gap: 10px; margin-top: 18px; }
.facts li { padding: 12px 14px; background: rgba(0, 0, 0, .28); border-left: 3px solid var(--accent); }
.facts b { display: block; color: var(--parch); }
.facts span { font-size: 14px; color: var(--muted); }
.x-box { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.panel .btn {
  min-width: 0;
  max-width: 100%;
  padding: 0 13px;
  border-radius: 8px;
  font: 650 13px/1.2 var(--body);
  letter-spacing: .02em;
  text-transform: none;
  box-shadow: 0 2px 4px #03070b55;
}
.note { margin-top: 12px; font-size: 13px; color: var(--card-muted); min-height: 1.2em; }
.tasks {
  border: 1px solid var(--card-divider);
  border-radius: 9px;
  background: #0c171f;
}
.tasks li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  font-size: 13px;
}
.tasks li + li { border-top: 1px solid var(--card-divider); }
.tasks em {
  flex: none;
  padding: 4px 7px;
  border: 1px solid var(--card-divider);
  border-radius: 999px;
  color: var(--card-muted);
  font: 650 10px/1 var(--body);
  letter-spacing: .045em;
  text-transform: uppercase;
}
.tasks em.open { color: #9de4d6; background: #1b514d66; border-color: #5ea19577; }
.card-panel canvas {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--card-divider);
  border-radius: 8px;
  image-rendering: auto;
}
.field {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  font: 650 11px/1.4 var(--body);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--card-muted);
}
.field input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  background: #0a141c;
  border: 1px solid var(--card-divider);
  border-radius: 8px;
  color: var(--parch);
  font: 16px var(--body);
}
.field input::placeholder { color: var(--card-muted); opacity: 1; }

footer { position: relative; z-index: 4; display: grid; justify-items: center; gap: 8px; padding: 34px 20px 44px; text-align: center; font-size: 13px; color: var(--muted);
  background: linear-gradient(transparent, rgba(6, 10, 14, .92) 40%); }
footer svg { font-size: 30px; color: var(--brass); }

/* ---------- Dar ekran ---------- */
@media (max-width: 379px), (min-width: 901px) and (max-width: 1120px) {
  #koy .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 901px) and (max-width: 1060px) {
  #nav { padding-inline: 16px; }
  #nav-panel { gap: 12px; }
  #nav nav { gap: 2px; }
  #nav nav a { padding-inline: 5px; font-size: 11px; }
}
@media (max-width: 900px) {
  #seals, #walker { display: none; }
  #nav { --nav-control-height: 42px; --nav-control-gap: 8px; padding-inline: 12px; }
  #nav .brand { gap: 8px; min-width: 0; }
  #nav .brand img { width: 32px; height: 32px; }
  #nav .brand span { overflow: hidden; text-overflow: ellipsis; }
  .nav-actions { margin-left: auto; }
  #nav .nav-actions .btn { padding-inline: 12px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: var(--nav-control-height); padding: 0 10px;
    border: 1px solid var(--line); color: var(--parch); background: #111d25; font: 600 12px var(--pixel); cursor: pointer; }
  .nav-toggle[aria-expanded="true"] { border-color: var(--brass); }
  .nav-toggle-icon { width: 14px; height: 10px; border-block: 1px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat; }
  #nav-panel { display: none; position: absolute; top: calc(100% + 8px); right: 12px; left: 12px; max-width: 350px; margin-left: auto;
    max-height: calc(100dvh - 80px); overflow-y: auto; overscroll-behavior: contain; padding: 10px;
    flex-direction: column; align-items: stretch; gap: 8px; background: #111d25; border: 1px solid var(--line);
    border-radius: 10px; box-shadow: 0 12px 30px #0009; }
  #nav[data-menu-open] #nav-panel { display: flex; }
  #nav nav { flex-direction: column; align-items: stretch; gap: 2px; }
  #nav nav a { flex: 0 0 auto; justify-content: flex-start; border-radius: 6px; color: var(--parch); }
  #nav nav a:is(.on, :hover, :focus-visible) { background: #1a2931; }
  #nav-panel .nav-tools { justify-content: space-between; padding: 10px 8px 2px; border-top: 1px solid var(--line); }
  #nav-panel .lang button { width: 44px; }
  .stage { grid-template-columns: minmax(0, 1fr); row-gap: 18px; min-height: 0; padding: 70px 16px 46px; justify-items: center; }
  #journey > .dungeon + .dungeon { padding-top: clamp(98px, 14svh, 120px); }
  #journey > .dungeon:has(+ :is(#cephanelik, #bosslar, #lig)) { padding-bottom: 24px; }
  #journey > :is(#cephanelik, #bosslar, #lig) { padding-block: 38px 34px; }
  #journey > :is(#cephanelik, #bosslar, #lig) + .dungeon { padding-top: 48px; }
  .stage > .panel, .stage > .prop, .stage.flip > .panel, .stage.flip > .prop, .stage.wide > .panel:nth-child(2), .wheel-wrap { grid-column: 1; grid-row: auto; justify-self: center; }
  .stage > .prop { order: -1; }
  .prop img { max-height: 260px; }
  .stage > .league-trophy { width: min(65vw, 250px); }
  .panel { max-width: 520px; padding: 22px 20px 24px; }
  .stage.top { min-height: 100svh; }
  .wheel-wrap { order: -2; margin: 0; width: min(100%, 364px); translate: none; overflow: clip; isolation: isolate; }
  .wheel-ring { inset: 4px; border-color: color-mix(in srgb, var(--sword) 45%, var(--line));
    background: radial-gradient(closest-side, color-mix(in srgb, var(--sword) 14%, #121b21), #0a141ac9 58%, #0b131acc 60%, #10191ed9 98%, transparent 99%);
    box-shadow: inset 0 0 34px #05080ba6; }
  .wheel { z-index: 2; }
  .wheel button { width: 13%; height: 21%; margin: -10.5% 0 0 -6.5%; transform: rotate(calc(var(--i) * 30deg)) translateY(-172%); }
  .wheel-peek { display: none; }
  #armory-preview { display: block; position: absolute; z-index: 1; left: 50%; top: 50%; translate: -50% -50%;
    width: 57%; height: auto; pointer-events: none; filter: drop-shadow(0 5px 8px #0009); }
  .stage.armory { padding-bottom: 46px; }
  .stage.armory .sword-panel { order: -1; }
  .brand { font-size: 15px; white-space: nowrap; }
  .top-hero { display: block; }
  .boss-view img { height: 250px; }
  #hud { top: 68px; font-size: 11px; gap: 8px; padding: 6px 10px; }
  #zoneCard { width: max-content; max-width: calc(100% - 32px); }
  #zoneCard b { white-space: normal; text-wrap: balance; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Logo ---------- */
.brand img { width: 38px; height: 38px; border-radius: 8px; box-shadow: 0 0 0 1px var(--brass), 0 0 14px rgba(0, 0, 0, .6); }
.crest { height: clamp(72px, 11vh, 130px); width: auto; margin: 0 auto 8px; border-radius: 50%;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent); mask-image: radial-gradient(closest-side, #000 72%, transparent);
  filter: drop-shadow(0 0 22px rgba(233, 200, 119, .35)); }
.top-inner { padding-top: clamp(14px, 3vh, 40px); }
h1 { font-size: clamp(42px, min(10vw, 13vh), 132px); letter-spacing: .06em; }
footer img { width: 56px; height: 56px; border-radius: 12px; box-shadow: 0 0 0 1px var(--brass); }
#hud { transition: opacity .4s; }
#hud.away { opacity: 0; }
.crest { height: clamp(84px, 14vh, 150px); }

/* ---------- Cephanelik: şövalyeyi saran çark ve kılıç paneli ---------- */
.sword-panel #swordName { display: block; font: 700 25px/1.2 var(--display); color: var(--sword); }
.sword-panel small { display: block; margin: 5px 0 14px; font: 600 11px var(--body); letter-spacing: .1em; color: var(--card-muted); }
.sword-panel #swordText { margin-top: 14px; }
.bar {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  font: 650 11px/1.35 var(--body);
  color: var(--card-muted);
}
.bar i { height: 7px; background: #0a141b; border: 1px solid var(--card-divider); border-radius: 999px; }
.bar u { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--sword) 52%, #0b131a), var(--sword)); transition: width .55s cubic-bezier(.2, .8, .2, 1); }
.bar em { font-style: normal; color: var(--parch); text-align: right; }
.wheel-arrows { position: static; transform: none; margin-top: 16px; }
.panel .wheel-arrows button { border-radius: 8px; }
.sword-ghost { position: fixed; z-index: 20; object-fit: contain; pointer-events: none; filter: drop-shadow(0 0 14px var(--sword)); }
.wheel-mark { display: none; }

@media (min-width: 901px) {
  /* Leave room to walk between neighboring gates and keep the intermediate scenes close to their content. */
  #journey > .stage.dungeon {
    --dungeon-height: 144vh;
    min-height: var(--dungeon-height);
    /* Bring the gate and its card to the knight's line when a seal link is opened. */
    scroll-margin-top: calc(64vh - var(--dungeon-height) / 2 - var(--section-scroll-padding));
  }
  #journey > :is(#bosslar, #lig) { min-height: 76vh; padding-block: clamp(24px, 4vh, 56px); }
  .stage.armory { --wheel: min(59vh, 38vw); --gap: calc((var(--wheel) - var(--road)) / 2); min-height: 104vh; align-items: start; padding-bottom: 60px; }
  .stage.armory > .panel { position: sticky; top: 27vh; width: auto; max-width: 330px; justify-self: stretch; padding: 22px 24px 24px; }
  .stage.armory > .panel:nth-child(1) { grid-column: 1; margin: 0 var(--gap) 0 auto; }
  .stage.armory > .panel:nth-child(2) { grid-column: 3; grid-row: 1; margin: 0 auto 0 var(--gap); }
  /* Çark şövalyenin durduğu noktaya sabitlenir ve yalnızca cephanelikteyken görünür. */
  .wheel-wrap { position: fixed; left: 50%; top: 64vh; width: var(--wheel); margin: 0; translate: -50% -50%; opacity: 0; scale: .84; pointer-events: none; transition: opacity .45s, scale .45s cubic-bezier(.2, .8, .2, 1); }
  body.armory-on .wheel-wrap { opacity: 1; scale: 1; pointer-events: auto; }
  /* Kılıçların durduğu koyu halka; ortası açık kalır ve şövalyeyi çerçeveler. */
  .wheel-ring { border: 0; border-radius: 50%; box-shadow: none;
    background: radial-gradient(closest-side, transparent 60.5%, color-mix(in srgb, var(--sword) 60%, #000) 61%, rgba(6, 10, 14, .8) 62.5%, rgba(6, 10, 14, .74) 97%, #a18c5d 97.6%, #a18c5d 98.6%, transparent 99.2%); }
  .wheel-ring::before { content: ''; position: absolute; inset: 21%; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--sword) 55%, transparent);
    box-shadow: inset 0 0 50px color-mix(in srgb, var(--sword) 16%, transparent); animation: rune 90s linear infinite; }
  .wheel-ring::after { content: ''; position: absolute; inset: 2.6%; border-radius: 50%;
    background: repeating-conic-gradient(from -1deg, rgba(161, 140, 93, .75) 0 2deg, transparent 2deg 30deg);
    -webkit-mask-image: radial-gradient(closest-side, transparent 93%, #000 94%); mask-image: radial-gradient(closest-side, transparent 93%, #000 94%); }
  @keyframes rune { to { rotate: 360deg; } }
  .wheel button { width: 9%; height: 18.6%; margin: -9.3% 0 0 -4.5%; transform: rotate(calc(var(--i) * 30deg)) translateY(-218%); }
  .wheel button.on img { scale: 1.22; }
  /* Seçili kılıcın yuvası: çarkın tepesinde parlayan ok. */
  .wheel-mark { display: block; position: absolute; left: 50%; top: -1.2%; width: 0; height: 0; margin-left: -9px; border: 9px solid transparent; border-top: 13px solid var(--sword);
    filter: drop-shadow(0 0 8px var(--sword)); }
}
