/* Ninja King: Reborn - website (2026-10-17). Layout after ninjaworldwar2.com; dark ink + fire colours of the key art. */
:root {
  --bg: #0c0a0d;
  --panel: #17131a;
  --panel2: #211a24;
  --line: #34283a;
  --text: #f4efe9;
  --muted: #b3a9b6;
  --fire: #e8331f;
  --fire2: #ff9a22;
  --gold: #ffc94a;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { background: var(--bg); color: var(--text); font-family: Inter, Arial, sans-serif; line-height: 1.55; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }

/* header: logo | menu | social icons */
.top { position: sticky; top: 0; z-index: 10; background: rgba(12, 10, 13, .93); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-inner { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 9px 20px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text);
  font-family: Bangers, Impact, sans-serif; font-size: 27px; letter-spacing: 1px; white-space: nowrap; }
.brand img { border-radius: 10px; }
.brand b { color: var(--fire); font-weight: normal; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 800; font-size: 15px; text-transform: uppercase;
  letter-spacing: .8px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--gold); background: var(--panel2); }
.socials { display: flex; gap: 8px; }
.soc { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #fff; }
.soc svg { width: 20px; height: 20px; }
.soc-discord { background: #5865f2; }
.soc-discord:hover { filter: brightness(1.12); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text);
  font-size: 22px; border-radius: 8px; padding: 2px 10px; cursor: pointer; }

/* banner: full-width key art, no text */
.banner { position: relative; background: #000; }
.banner img { width: 100%; max-height: 86vh; object-fit: cover; object-position: center 30%; }
.banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background: linear-gradient(0deg, var(--bg), transparent); pointer-events: none; }
.banner-btn { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); z-index: 1; font-size: 22px; padding: 15px 34px; }
.banner-btn:hover { transform: translateX(-50%) translateY(-1px); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; font-weight: 800;
  font-size: 17px; padding: 13px 24px; border-radius: 12px; color: #fff; text-transform: uppercase; letter-spacing: .5px;
  transition: transform .1s, filter .2s; }
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn-fire { background: linear-gradient(135deg, var(--fire), var(--fire2)); box-shadow: 0 6px 24px rgba(232, 51, 31, .45); }
.btn-discord { background: #5865f2; box-shadow: 0 6px 22px rgba(88, 101, 242, .4); }
.btn-svg { width: 26px; height: 26px; }
.btn-big { font-size: 20px; padding: 16px 30px; }

/* sections */
.section { padding: 64px 20px; }
.band { background: linear-gradient(180deg, var(--bg), #160f12 50%, var(--bg)); }
.title { font-family: Bangers, Impact, sans-serif; font-weight: normal; font-size: 52px; letter-spacing: 2px; text-align: center;
  margin-bottom: 14px; text-shadow: 0 0 22px rgba(232, 51, 31, .35); }
.title::after { content: ""; display: block; width: 110px; height: 4px; margin: 4px auto 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--fire), var(--fire2)); }
.lead { max-width: 760px; margin: 0 auto 28px; text-align: center; color: #ddd4dc; font-size: 17px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* download: store-style buttons */
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.store { display: flex; align-items: center; gap: 12px; min-width: 250px; padding: 12px 22px; border-radius: 14px;
  text-decoration: none; color: #fff; border: 2px solid rgba(255,255,255,.18); }
.store svg { width: 38px; height: 38px; flex: none; }
.store span { display: flex; flex-direction: column; font-size: 22px; font-weight: 800; line-height: 1.15; }
.store small { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; opacity: .85; }
.store-apk { background: linear-gradient(135deg, #2a8f3e, #1d6a2d); box-shadow: 0 6px 22px rgba(42, 143, 62, .35); }
.store-apk:hover { filter: brightness(1.1); }
.store-soon { background: #1b1b22; color: #8f8a96; }
.howto { max-width: 520px; margin: 26px auto 0; padding-left: 22px; color: #d7cfd8; }
.howto li { margin-top: 4px; }

/* news */
.news { max-width: 1240px; margin: 30px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 14px 16px 18px; }
.tag { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--fire2); }
.card h3 { font-size: 19px; margin: 4px 0 6px; }
.card p { color: var(--muted); font-size: 15px; }

/* gallery */
.gallery { max-width: 1240px; margin: 30px auto 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gallery img { width: 100%; aspect-ratio: 2.17; object-fit: cover; border-radius: 12px; border: 2px solid var(--line); transition: border-color .2s; }
.gallery a:hover img { border-color: var(--fire2); }

/* about */
.about { max-width: 1100px; margin: 30px auto 0; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: center; }
.featured img { filter: drop-shadow(0 0 30px rgba(232, 51, 31, .45)); }
.about-text h3 { font-size: 26px; line-height: 1.3; margin-bottom: 12px; color: var(--gold); }
.about-text p { color: #ddd4dc; }
.points { list-style: none; margin: 16px 0 24px; }
.points li { padding-left: 26px; position: relative; margin-top: 8px; color: #ddd4dc; }
.points li::before { content: "\2726"; position: absolute; left: 0; color: var(--fire2); }

/* support + footer */
.support { text-align: center; }
.foot { text-align: center; padding: 36px 20px 44px; border-top: 1px solid var(--line); color: var(--muted); }
.foot img { margin: 0 auto 10px; border-radius: 10px; }
.foot p { margin-top: 4px; }

/* grid children may shrink below their content on small phones */
.news > *, .gallery > *, .about > * { min-width: 0; }

@media (max-width: 1050px) {
  .news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 6px 16px 12px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .featured { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .top-inner { padding: 8px 14px; gap: 10px; }
  .brand { font-size: 21px; }
  .brand img { width: 36px; height: 36px; }
  .banner img { max-height: none; }
  .banner-btn { position: static; transform: none; display: flex; margin: 14px 16px 0; }
  .banner-btn:hover { transform: none; }
  .banner::after { display: none; }
  .section { padding: 46px 16px; }
  .title { font-size: 40px; }
  .news, .gallery { grid-template-columns: minmax(0, 1fr); }
  .store { width: 100%; }
}

/* language picker: floating capsule under the header's right edge (fixed = stays while scrolling) */
.langpick { position: fixed; z-index: 20; top: 74px; right: max(16px, calc((100vw - 1240px) / 2 + 20px)); }
.lang-cur { display: flex; align-items: center; gap: 7px; cursor: pointer; color: #fff;
  font: 800 14px Inter, Arial, sans-serif; letter-spacing: 1px; padding: 8px 12px 8px 10px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(36, 22, 26, .92), rgba(16, 11, 14, .92)); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 154, 34, .55);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 6px 22px rgba(0, 0, 0, .55), 0 0 18px rgba(232, 51, 31, .35), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: box-shadow .2s, transform .1s; }
.lang-cur:hover { box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 6px 22px rgba(0, 0, 0, .55), 0 0 26px rgba(255, 120, 30, .6), inset 0 1px 0 rgba(255, 255, 255, .1); }
.lang-cur:active { transform: scale(.97); }
.lang-cur .globe { width: 20px; height: 20px; color: var(--fire2); filter: drop-shadow(0 0 4px rgba(255, 154, 34, .6)); }
.lang-cur .chev { width: 18px; height: 18px; opacity: .8; transition: transform .2s; }
.langpick.open .chev { transform: rotate(180deg); }
.lang-code { min-width: 26px; text-align: center; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 300px; padding: 10px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(34, 20, 24, .97), rgba(14, 10, 13, .97)); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 154, 34, .35); box-shadow: 0 18px 44px rgba(0, 0, 0, .7), 0 0 30px rgba(232, 51, 31, .2);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right;
  transition: opacity .16s, transform .16s, visibility .16s; }
.lang-menu::before { content: ""; position: absolute; top: -6px; right: 26px; width: 12px; height: 12px; transform: rotate(45deg);
  background: #22141a; border-left: 1px solid rgba(255, 154, 34, .35); border-top: 1px solid rgba(255, 154, 34, .35); }
.langpick.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer;
  padding: 9px 11px; border-radius: 10px; border: 1px solid transparent; background: rgba(255, 255, 255, .03);
  color: #eee7ee; font: 600 14px Inter, Arial, sans-serif; text-align: left; }
.lang-menu button small { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--muted); }
.lang-menu button:hover { border-color: rgba(255, 154, 34, .45); background: rgba(255, 154, 34, .08); }
.lang-menu button.on { background: linear-gradient(135deg, var(--fire), var(--fire2)); color: #fff; }
.lang-menu button.on small { color: #fff; }
@media (max-width: 600px) {
  .langpick { top: 66px; right: 12px; }
  .lang-cur { padding: 7px 10px 7px 9px; font-size: 13px; }
  .lang-menu { width: min(300px, calc(100vw - 24px)); }
}
