/* ============================================================
   BRINEWAR - Ana sayfa (giriş öncesi). Oyun arayüzünden bağımsız; sadece #menu altını biçimler.
   Bölümler: üst çubuk · kahraman (görsel arka plan + giriş kartı) · hikâye · özellikler · nasıl oynanır · alt bilgi
   Davranış: js/landing.js
   ============================================================ */
#menu.lp { --lp-gold: #f2c14e; --lp-gold2: #ffdf8e; --lp-ember: #e0672a; --lp-ink: #05090d; --lp-panel: rgba(10, 15, 20, .72); --lp-line: rgba(255, 255, 255, .09);
  --lp-text: #dfe8ee; --lp-dim: #93a4b0; --lp-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  display: block; overflow-x: hidden; overflow-y: auto; padding: 0; gap: 0; background: var(--lp-ink); color: var(--lp-text); font-family: var(--lp-sans); scroll-behavior: smooth; }
#menu.lp * { box-sizing: border-box; }
#menu.lp ::selection { background: var(--lp-gold); color: #1a1206; }

/* ---- üst çubuk ---- */
.lp-nav { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 28px; height: 64px; padding: 0 clamp(18px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(5, 9, 13, .92), rgba(5, 9, 13, .55) 70%, transparent); backdrop-filter: blur(6px); margin-bottom: -64px; }
.lp-logo { font: 400 30px/1 'Pirata One', cursive; letter-spacing: 3px; color: var(--lp-gold); text-shadow: 0 2px 12px #000; text-decoration: none; }
.lp-logo i { color: var(--lp-ember); font-style: normal; }
.lp-logo { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.lp-logo img { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 2px 6px #000); }
.lp-foot .lp-logo img { width: 30px; height: 30px; }
/* kahraman: oyunun logosu (başlık) */
#menu.lp .lp-brand { margin: 10px 0 0 -3%; font-size: 0; line-height: 0; }
.lp-brand img { display: block; width: min(100%, 900px); height: auto; filter: drop-shadow(0 14px 34px rgba(0, 0, 0, .8)); }
.lp-final-logo { display: block; width: min(70%, 520px); height: auto; margin: 0 auto 26px; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .8)); }
.lp-links { display: flex; gap: 26px; margin-left: 14px; }
.lp-links a { font: 600 13px/1 var(--lp-sans); letter-spacing: 1.6px; text-transform: uppercase; color: #c3d0d9; text-decoration: none; cursor: pointer; transition: color .15s; }
.lp-links a:hover { color: var(--lp-gold2); }
.lp-nav .lp-btn { margin-left: auto; }

/* ---- düğmeler ---- */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; padding: 0 22px; border-radius: 4px; border: 1px solid transparent; cursor: pointer; user-select: none;
  font: 700 13px/1 var(--lp-sans); letter-spacing: 1.8px; text-transform: uppercase; text-decoration: none; transition: transform .12s, filter .15s, background .15s, border-color .15s; }
.lp-btn:active { transform: translateY(1px); }
.lp-btn.gold { color: #1d1304; background: linear-gradient(180deg, #ffd978, #e0a52f); box-shadow: 0 8px 26px -8px #e0a52fcc, inset 0 1px 0 #fff6; }
.lp-btn.gold:hover { filter: brightness(1.08); }
.lp-btn.ghost { color: #fff; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(4px); }
.lp-btn.ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.lp-btn.big { height: 54px; padding: 0 30px; font-size: 14px; }
.lp-play { width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }

/* ---- kahraman ---- */
.lp-hero { position: relative; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) 380px; align-items: center; gap: clamp(24px, 5vw, 80px);
  padding: 110px clamp(18px, 6vw, 96px) 90px; overflow: hidden; }
.lp-hero-bg { position: absolute; inset: 0; z-index: 0; background: #061420 url('assets/ui/hero.png') center/cover no-repeat; }
.lp-hero-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s; }
.lp-hero-bg video.on { opacity: 1; }
.lp-hero-bg::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5, 9, 13, .9) 0%, rgba(5, 9, 13, .55) 42%, rgba(5, 9, 13, .35) 70%, rgba(5, 9, 13, .7) 100%), linear-gradient(180deg, rgba(5, 9, 13, .35) 0%, transparent 30%, rgba(5, 9, 13, .2) 62%, var(--lp-ink) 100%); }
.lp-hero > *:not(.lp-hero-bg):not(.lp-scroll) { position: relative; z-index: 1; }
.lp-kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 12px/1 var(--lp-sans); letter-spacing: 3px; text-transform: uppercase; color: var(--lp-gold2); }
.lp-kicker::before { content: ''; width: 34px; height: 1px; background: var(--lp-gold); }
#menu.lp .lp-title { margin: 18px 0 0; font: 400 clamp(64px, 11vw, 168px)/.86 'Pirata One', cursive; letter-spacing: clamp(2px, .5vw, 8px); color: #fff;
  background: linear-gradient(180deg, #fff 0%, #ffe9b0 38%, #e0a52f 78%, #8a5a14 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: none; filter: drop-shadow(0 6px 26px rgba(0, 0, 0, .75)); }
.lp-tag { margin: 8px 0 0; max-width: 640px; font: 400 clamp(17px, 1.6vw, 22px)/1.5 'IM Fell English', serif; color: #e9f0f4; text-shadow: 0 2px 10px #000; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.lp-stats { display: flex; gap: clamp(18px, 3vw, 44px); margin-top: 44px; }
.lp-stats div { font: 600 12px/1.3 var(--lp-sans); letter-spacing: 1.4px; text-transform: uppercase; color: var(--lp-dim); }
.lp-stats b { display: block; margin-bottom: 4px; font: 400 34px/1 'Pirata One', cursive; letter-spacing: 1px; color: var(--lp-gold2); }
.lp-scroll { position: absolute; left: 50%; bottom: 22px; z-index: 1; width: 22px; height: 36px; margin-left: -11px; border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 12px; }
.lp-scroll::after { content: ''; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: lpScroll 1.6s ease-in-out infinite; }
@keyframes lpScroll { 0% { transform: none; opacity: 1; } 70%, 100% { transform: translateY(12px); opacity: 0; } }

/* ---- giriş kartı (id'ler main.js ile aynı) ---- */
#menu.lp .authcard { width: 100%; padding: 26px 24px 22px; border: 1px solid var(--lp-line); border-radius: 10px; background: var(--lp-panel); backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -20px #000, inset 0 1px 0 rgba(255, 255, 255, .08); }
.lp-card-h { margin: 0 0 4px; font: 400 30px/1 'Pirata One', cursive; letter-spacing: 1.5px; color: #fff; }
.lp-card-s { margin: 0 0 18px; font: 400 13.5px/1.4 var(--lp-sans); color: var(--lp-dim); }
#menu.lp .authtabs { gap: 0; margin-bottom: 18px; border-bottom: 1px solid var(--lp-line); }
#menu.lp .authtab { padding: 0 0 11px; border: 0; border-radius: 0; background: none; box-shadow: none; font: 700 12.5px/1 var(--lp-sans); letter-spacing: 1.8px; text-transform: uppercase; color: var(--lp-dim); position: relative; }
#menu.lp .authtab.on { color: var(--lp-gold2); background: none; box-shadow: none; }
#menu.lp .authtab.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--lp-gold); }
#menu.lp .authcard input:not([type="checkbox"]), #menu.lp .phonerow #regCC { height: 46px; padding: 0 14px; margin-bottom: 10px; border: 1px solid var(--lp-line); border-radius: 5px; background: rgba(0, 0, 0, .45);
  color: #fff; font: 400 15px/1 var(--lp-sans); transition: border-color .15s, box-shadow .15s; }
#menu.lp .authcard input::placeholder { color: #6f808c; }
#menu.lp .authcard input:not([type="checkbox"]):focus, #menu.lp .phonerow #regCC:focus { border-color: var(--lp-gold); box-shadow: 0 0 0 3px rgba(242, 193, 78, .18); }
#menu.lp .chk { color: #a9b8c2; font-size: 12.5px; } #menu.lp .chk i { color: #73838e; } #menu.lp .chk a { color: var(--lp-gold2); }
#menu.lp #authBtn { height: 50px; margin-top: 6px; padding: 0; border-radius: 5px; font: 700 13.5px/1 var(--lp-sans); letter-spacing: 2px; text-transform: uppercase; color: #1d1304;
  background: linear-gradient(180deg, #ffd978, #e0a52f); box-shadow: 0 10px 28px -10px #e0a52fcc, inset 0 1px 0 #fff6; }
#menu.lp #authBtn:disabled { filter: grayscale(.6) brightness(.8); cursor: default; }
#menu.lp #authErr { color: #ff9c8c; font: 600 13px/1.3 var(--lp-sans); }

/* ---- bölümler ---- */
.lp-sec { position: relative; padding: clamp(70px, 9vw, 130px) clamp(18px, 6vw, 96px); }
.lp-wrap { max-width: 1240px; margin: 0 auto; }
.lp-h2 { margin: 14px 0 0; font: 400 clamp(38px, 5vw, 68px)/1 'Pirata One', cursive; letter-spacing: 2px; color: #fff; }
.lp-lead { margin: 18px 0 0; max-width: 640px; font: 400 17px/1.65 var(--lp-sans); color: var(--lp-dim); }

/* hikâye */
.lp-story { background: linear-gradient(180deg, var(--lp-ink), #08111a 50%, var(--lp-ink)); }
.lp-story-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.lp-story-txt p { margin: 22px 0 0; font: 400 clamp(18px, 1.55vw, 22px)/1.7 'IM Fell English', serif; color: #d6e0e6; }
.lp-story-txt p:first-of-type { margin-top: 30px; }
.lp-story-txt p b { color: var(--lp-gold2); font-weight: 400; }
.lp-story-txt p.big { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.3; color: #fff; }
.lp-story-art { position: relative; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: #0a1620 url('assets/ui/story.jpg') center/cover no-repeat; box-shadow: 0 40px 90px -30px #000, 0 0 0 1px var(--lp-line); }
.lp-story-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(5, 9, 13, .85)); }
.lp-story-art span { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; font: 400 22px/1.25 'Pirata One', cursive; letter-spacing: 1px; color: #fff; text-shadow: 0 2px 10px #000; }

/* özellikler */
.lp-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 46px; }
.lp-feat { position: relative; padding: 26px 24px 28px; border: 1px solid var(--lp-line); border-radius: 10px; overflow: hidden; background: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .012));
  transition: transform .2s, border-color .2s, background .2s; }
.lp-feat:hover { transform: translateY(-4px); border-color: rgba(242, 193, 78, .5); background: linear-gradient(160deg, rgba(242, 193, 78, .1), rgba(255, 255, 255, .015)); }
.lp-feat img { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .7)); }
.lp-feat h3 { margin: 16px 0 0; font: 400 27px/1 'Pirata One', cursive; letter-spacing: 1px; color: #fff; }
.lp-feat p { margin: 10px 0 0; font: 400 15px/1.6 var(--lp-sans); color: var(--lp-dim); }
.lp-feat em { position: absolute; right: 18px; top: 14px; font: 400 54px/1 'Pirata One', cursive; font-style: normal; color: rgba(255, 255, 255, .06); }

/* nasıl oynanır */
.lp-how { background: #070d13; border-top: 1px solid var(--lp-line); border-bottom: 1px solid var(--lp-line); }
.lp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; margin-top: 44px; counter-reset: st; }
.lp-step { counter-increment: st; padding-top: 18px; border-top: 2px solid rgba(242, 193, 78, .35); }
.lp-step::before { content: '0' counter(st); display: block; font: 400 40px/1 'Pirata One', cursive; color: var(--lp-gold); }
.lp-step h4 { margin: 10px 0 0; font: 700 14px/1.3 var(--lp-sans); letter-spacing: 1.4px; text-transform: uppercase; color: #fff; }
.lp-step p { margin: 8px 0 0; font: 400 14.5px/1.6 var(--lp-sans); color: var(--lp-dim); }
.lp-keys { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 40px; font: 400 14px/1 var(--lp-sans); color: var(--lp-dim); }
.lp-keys kbd { display: inline-block; min-width: 28px; margin-right: 7px; padding: 6px 8px; border: 1px solid rgba(255, 255, 255, .22); border-bottom-width: 3px; border-radius: 5px; background: rgba(255, 255, 255, .06);
  font: 700 12px/1 var(--lp-sans); text-align: center; color: #fff; }

/* son çağrı + alt bilgi */
.lp-final { text-align: center; background: radial-gradient(ellipse at 50% 120%, rgba(224, 103, 42, .28), transparent 62%), var(--lp-ink); }
.lp-final .lp-h2 { font-size: clamp(44px, 7vw, 96px); }
.lp-final .lp-cta { justify-content: center; }
.lp-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 26px clamp(18px, 6vw, 96px); border-top: 1px solid var(--lp-line); font: 400 13px/1.4 var(--lp-sans); color: #6c7c87; }
.lp-foot .lp-logo { font-size: 22px; } .lp-foot a { color: #93a4b0; cursor: pointer; text-decoration: none; } .lp-foot a:hover { color: var(--lp-gold2); } .lp-foot span:last-child { margin-left: auto; }

/* kaydırınca beliren öğeler */
.lp-rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.lp-rv.in { opacity: 1; transform: none; }

/* ---- çok geniş ekran: içerik küçük kalmasın ---- */
@media (min-width: 2000px) { .lp-sec .lp-wrap { zoom: 1.3; } .lp-nav { height: 76px; margin-bottom: -76px; } .lp-logo { font-size: 38px; } .lp-links a { font-size: 15px; } .lp-hero { grid-template-columns: minmax(0, 1fr) 470px; } .lp-hero .authcard { zoom: 1.2; } .lp-btn.big { height: 62px; padding: 0 38px; font-size: 16px; } .lp-stats b { font-size: 44px; } .lp-stats div { font-size: 14px; } .lp-kicker { font-size: 14px; } }

/* ---- dar ekran ---- */
@media (max-width: 1080px) {
  .lp-hero { grid-template-columns: minmax(0, 1fr); padding-top: 96px; } .lp-hero .authcard { max-width: 420px; }
  .lp-story-grid { grid-template-columns: minmax(0, 1fr); } .lp-story-art { aspect-ratio: 16 / 9; }
  .lp-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) { .lp-links { display: none; } .lp-feats, .lp-steps { grid-template-columns: minmax(0, 1fr); } .lp-stats { flex-wrap: wrap; } .lp-foot span:last-child { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .lp-rv { opacity: 1; transform: none; transition: none; } .tr-stage .tr-still.on { animation: none; } }
