/* Rimora Online sitesi: oyunun görünüşü (scripts/ui/ui_style.gd ve başlatıcı): koyu zemin, altın yazı, ince bronz
   kenarlı paneller, köşelerde elmaslar. Yazı tipleri oyunun kendi Cinzel ve Alegreya Sans'ı (SIL OFL, Latin alt kümesi). */
@font-face { font-family: "Cinzel"; src: url("fonts/Cinzel.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("fonts/AlegreyaSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("fonts/AlegreyaSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #0f0c0a; --wood: #15110d; --wood-2: #1d1712; --line: #33291c;
  --bronze: #c9a35c; --bronze-dark: #6b5531; --gold: #e3c27a; --gold-bright: #f0d79a;
  --text: #e9dcc3; --muted: #b3a68f;
  --title: "Cinzel", Georgia, "Times New Roman", serif;
  --body: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  /* Köşe elması: koyu kenarlı bronz elmas, üstünde ışık noktası (başlatıcıdaki stud) */
  --stud: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 0L14 7L7 14L0 7Z' fill='%230f0c0a'/%3E%3Cpath d='M7 2L12 7L7 12L2 7Z' fill='%23c9a35c'/%3E%3Cpath d='M7 4.4L8.8 6.2L7 8L5.2 6.2Z' fill='%23f0d79a'/%3E%3C/svg%3E");
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 1.125rem/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-bright); }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--title); font-weight: 400; color: var(--gold); line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); letter-spacing: .04em; }
h3 { font-size: 1.3rem; letter-spacing: .03em; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; padding: 8px 14px; background: var(--wood); border: 1px solid var(--gold); }
.skip:focus { top: 12px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Üst çubuk: kahraman görselinin üstünde saydam */
.nav { position: absolute; inset: 0 0 auto; z-index: 5; }
.nav .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold); text-decoration: none; font: 400 1.05rem var(--title); letter-spacing: .14em; text-shadow: 0 1px 3px #000; }
.brand img { width: 34px; height: 34px; }
.nav ul { display: flex; gap: 26px; list-style: none; padding: 0; align-items: center; }
.nav nav { margin-left: auto; }
.nav ul a { color: var(--text); text-decoration: none; font: 400 .95rem var(--title); letter-spacing: .1em; text-shadow: 0 1px 3px #000; }
.nav ul a:hover, .nav ul a[aria-current] { color: var(--gold-bright); }
.nav .btn { padding: 9px 18px; font-size: .9rem; }

/* Kahraman: anahtar görsel, gökyüzünde logo, altta çağrı */
.hero { position: relative; min-height: clamp(600px, 100svh, 1000px); display: grid; grid-template-rows: 1fr auto; isolation: isolate; }
.hero > picture, .band > picture, .download > picture { position: absolute; inset: 0; z-index: -2; }
.hero > picture img, .band > picture img, .download > picture img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 42% at 50% 24%, #0f0c0a8c, #0f0c0a00), linear-gradient(#0f0c0acc, #0f0c0a00 30%),
    linear-gradient(#0f0c0a00 50%, #0f0c0ad9 84%, var(--ink)); }
.logo { text-align: center; padding: clamp(84px, 13vh, 150px) 16px 0; text-shadow: 0 2px 4px #000, 0 0 24px #0009; }
.logo h1 { margin: 0; font-size: clamp(3.4rem, 1.6rem + 9vw, 8.5rem); letter-spacing: .09em; color: var(--gold); line-height: 1; padding-left: .09em; }
.logo .online { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: .35em;
  font: 400 clamp(1rem, .8rem + 1vw, 1.6rem) var(--title); letter-spacing: .45em; color: var(--gold-bright); padding-left: .45em; }
.logo .online::before, .logo .online::after { content: ""; width: clamp(48px, 12vw, 160px); height: 12px;
  background: var(--stud) right center / 12px no-repeat, linear-gradient(90deg, #e3c27a00, var(--gold)) left center / calc(100% - 14px) 1.5px no-repeat; }
.logo .online::after { transform: scaleX(-1); }
.tagline { margin: 18px auto 0; max-width: 42ch; font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); color: var(--text); }
.hero-cta { text-align: center; padding: 0 16px clamp(40px, 8vh, 80px); }
.hero-cta .buttons { justify-content: center; }
.hero-cta small { display: block; margin-top: 14px; color: var(--muted); font-size: 1rem; text-shadow: 0 1px 3px #000; }

/* Düğmeler: oyunun kabartma düğmesi (altın birincil, koyu ikincil), köşelerde elmas */
.buttons { display: flex; flex-wrap: wrap; gap: 18px; }
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 30px;
  font: 400 1.1rem var(--title); letter-spacing: .1em; text-decoration: none; text-shadow: 0 1px 2px #0009;
  color: #fff0cd; background: linear-gradient(#be8e40, #6c4a1e); border: 1px solid var(--gold); box-shadow: 0 0 0 1px var(--ink), 0 6px 18px #0008; }
.btn::before { content: ""; position: absolute; inset: -6px; pointer-events: none;
  background: var(--stud) left top / 11px no-repeat, var(--stud) right top / 11px no-repeat, var(--stud) left bottom / 11px no-repeat, var(--stud) right bottom / 11px no-repeat; }
.btn:hover { color: #fff7e2; background: linear-gradient(#deae5a, #845a24); border-color: var(--gold-bright); box-shadow: 0 0 0 1px var(--ink), 0 0 22px #e3c27a40; }
.btn:active { background: linear-gradient(#704e22, #966c32); }
.btn.big { min-height: 60px; padding: 14px 40px; font-size: 1.3rem; }
.btn.ghost { color: var(--gold); background: linear-gradient(#2c231a, #16120e); border-color: var(--bronze); }
.btn.ghost:hover { color: var(--gold-bright); background: linear-gradient(#403222, #201a13); }
.btn small { font: 400 .8rem var(--body); letter-spacing: 0; opacity: .85; }

/* Panel: koyu zemin, ince bronz kenar, içte soluk altın çizgi, köşelerde elmaslar */
.panel { position: relative; background: #0f0c0ae6; border: 1px solid var(--bronze-dark); padding: clamp(22px, 3vw, 36px); }
.panel::before { content: ""; position: absolute; inset: 3px; border: 1px solid #e3c27a38; pointer-events: none; }
.panel::after { content: ""; position: absolute; inset: -7px; pointer-events: none;
  background: var(--stud) left top / 14px no-repeat, var(--stud) right top / 14px no-repeat, var(--stud) left bottom / 14px no-repeat, var(--stud) right bottom / 14px no-repeat; }

section { padding: clamp(64px, 9vw, 120px) 0; }
.kicker { font: 400 .9rem var(--title); letter-spacing: .3em; color: var(--bronze); text-transform: uppercase; margin-bottom: .6em; }
.center { text-align: center; }
.intro { max-width: 760px; margin-inline: auto; font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); color: var(--text); }
.rule { display: block; width: 220px; height: 14px; margin: 0 auto 28px;
  background: var(--stud) center / 14px no-repeat, linear-gradient(90deg, #e3c27a00, var(--bronze) 40%, var(--bronze) 60%, #e3c27a00) center / 100% 1px no-repeat; }

/* Öne çıkanlar: görsel + yazı, sırayla sağa sola */
.showcase { display: grid; gap: clamp(56px, 8vw, 110px); margin-top: clamp(48px, 6vw, 80px); }
.feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.feature:nth-child(even) { grid-template-columns: 1fr 1.25fr; }
.feature:nth-child(even) > .frame { order: 2; }
.frame { position: relative; border: 1px solid var(--bronze-dark); box-shadow: 0 0 0 4px var(--ink), 0 0 0 5px #e3c27a2e, 0 24px 60px #000c; }
.frame::after { content: ""; position: absolute; inset: -12px; pointer-events: none;
  background: var(--stud) left top / 14px no-repeat, var(--stud) right top / 14px no-repeat, var(--stud) left bottom / 14px no-repeat, var(--stud) right bottom / 14px no-repeat; }
.frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature ul, .notes { list-style: none; padding: 0; margin: 0; }
.feature li, .notes li { position: relative; padding-left: 22px; margin: .45em 0; }
.feature li::before, .notes li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
.feature p { color: var(--text); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 30px; margin-top: clamp(64px, 8vw, 110px); }
.cards .panel h3 { margin-bottom: .4em; }
.cards .panel p { margin: 0; color: var(--text); font-size: 1.05rem; }

/* Galeri */
.gallery-section { background: linear-gradient(var(--ink), var(--wood) 30%, var(--wood) 70%, var(--ink)); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.gallery a { position: relative; display: block; border: 1px solid var(--bronze-dark); overflow: hidden; background: var(--wood-2); }
.gallery a:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s ease, filter .4s ease; filter: saturate(.92); }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.04); filter: none; }
.gallery a:hover, .gallery a:focus-visible { border-color: var(--gold); }

/* Yama notları */
.release { margin-top: 36px; }
.release header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 14px; }
.release h2, .release h3 { margin: 0; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); }
.release time { color: var(--muted); font-size: 1rem; }
.notes li { font-size: 1.07rem; }
.more { margin-top: 26px; }

/* İndirme */
.download { position: relative; isolation: isolate; overflow: hidden; }
.download > picture img { opacity: .7; }
.download::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, #0f0c0a99, var(--ink) 75%); }
.download .panel { max-width: 860px; margin-inline: auto; text-align: center; }
.download .buttons { justify-content: center; margin: 26px 0 8px; }
.download .note { color: var(--muted); font-size: 1rem; margin: 14px auto 0; max-width: 60ch; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: left; border-top: 1px solid var(--line); padding-top: 28px; }
.steps li { counter-increment: step; position: relative; padding-left: 50px; font-size: 1.02rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; display: grid; place-items: center;
  font: 400 1.15rem var(--title); color: var(--gold-bright); border: 1px solid var(--bronze); background: var(--wood-2); }
.steps b { display: block; color: var(--gold); font-weight: 700; }

/* Alt sayfa başlığı (yama notları) */
.band { position: relative; isolation: isolate; min-height: 380px; display: grid; align-items: end; padding: 120px 0 48px; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(#0f0c0ae0, #0f0c0a99 45%, var(--ink)); }
.band h1 { font-size: clamp(2.4rem, 1.6rem + 3.5vw, 4.2rem); letter-spacing: .06em; margin: 0; text-shadow: 0 2px 6px #000; }
.band p { margin: 10px 0 0; color: var(--text); text-shadow: 0 1px 3px #000; }
.history { max-width: 900px; margin-inline: auto; }
.history .release { margin-top: 0; }
.history > .panel + .panel { margin-top: 40px; }
.latest-tag { font: 400 .78rem var(--title); letter-spacing: .2em; color: var(--ink); background: var(--gold); padding: 3px 10px; margin-left: 12px; vertical-align: middle; }
.archive-note { color: var(--muted); margin-top: 48px; font-size: 1rem; }

footer { border-top: 1px solid var(--line); background: #0b0907; padding: 44px 0; color: var(--muted); font-size: 1rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
footer nav a { color: var(--text); text-decoration: none; }
footer nav a:hover { color: var(--gold-bright); }
footer .brand { font-size: .95rem; }

/* Büyük görüntü (galeri) */
.lightbox { border: 1px solid var(--bronze); background: var(--ink); padding: 0; max-width: min(1600px, 96vw); width: 100%; color: var(--text); }
.lightbox::backdrop { background: #000d; }
.lightbox img { width: 100%; height: auto; max-height: 82vh; object-fit: contain; background: #000; }
.lightbox .bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; }
.lightbox .bar p { margin: 0 auto 0 0; font-size: 1rem; }
.lightbox button { font: 400 1rem var(--title); color: var(--gold); background: var(--wood-2); border: 1px solid var(--bronze-dark); min-width: 44px; min-height: 40px; cursor: pointer; }
.lightbox button:hover { color: var(--gold-bright); border-color: var(--gold); }

@media (max-width: 1000px) {
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; }
  .feature:nth-child(even) > .frame { order: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 1.06rem; }
  .nav ul li:not(:last-child) { display: none; }
  .nav .brand span { display: none; }
  .hero { min-height: clamp(600px, 84svh, 760px); }
  .btn.big { width: 100%; max-width: 360px; font-size: 1.1rem; letter-spacing: .06em; padding-inline: 20px; }
  .hero-cta .buttons, .download .buttons { flex-direction: column; align-items: center; }
  .gallery { gap: 10px; }
  .gallery a:first-child { grid-row: auto; }
  .release header { display: block; }
  .latest-tag { margin-left: 8px; }
}
