/* Lane Legends site: the game's look (gold on dark panels, Fredoka headings) */
:root {
  --bg: #0f0d17; --bg2: #16141f; --panel: #1f1c2c; --panel2: #2a2640; --line: #3a3552;
  --gold: #ffc83c; --gold2: #ffdc7a; --text: #ecebf3; --muted: #a8a4bd; --red: #ff6b5e; --blue: #5aa0eb;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Nunito, system-ui, sans-serif; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold2); }
h1, h2, h3 { font-family: Fredoka, Nunito, sans-serif; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--gold); text-shadow: 0 3px 0 rgba(0,0,0,.4); }
h2 { font-size: 1.7rem; margin-top: 1.6em; }
h3 { font-size: 1.2rem; }
img { max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: #d8d6e4; max-width: 760px; }
kbd { background: var(--panel2); border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 6px; padding: 1px 7px;
  font: 700 .85rem Nunito, sans-serif; color: var(--text); white-space: nowrap; }

/* header */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 20px; padding: 10px 24px;
  background: rgba(15,13,23,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; font: 700 1.35rem Fredoka, sans-serif; color: var(--gold); }
.logo img { border-radius: 8px; }
.top nav { display: flex; gap: 4px; margin-left: auto; }
.top nav a { color: var(--text); padding: 7px 12px; border-radius: 9px; font-weight: 700; }
.top nav a:hover, .top nav a.on { background: var(--panel2); color: var(--gold); }
.menu { display: none; margin-left: auto; background: none; border: 0; color: var(--gold); font-size: 1.6rem; cursor: pointer; }
.btn { display: inline-block; padding: 9px 18px; border-radius: 11px; font: 600 1rem Fredoka, sans-serif; background: var(--panel2);
  color: var(--text); border: 2px solid var(--line); transition: transform .1s; }
.btn:hover { transform: translateY(-1px); color: var(--gold); }
.btn.play { background: var(--gold); color: #2a1a04; border-color: var(--gold); }
.btn.play:hover { background: var(--gold2); color: #2a1a04; }
.btn.ghost { background: rgba(255,255,255,.04); border-color: var(--gold); color: var(--gold); }
.btn.big { padding: 13px 26px; font-size: 1.15rem; }

/* home */
.hero-banner { padding: 56px 0 50px; border-bottom: 2px solid var(--gold);
  background: radial-gradient(ellipse at 80% 40%, rgba(150, 90, 220, .28), transparent 60%), linear-gradient(180deg, var(--bg2), var(--bg)); }
.banner-in { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; }
.banner-art { width: 100%; aspect-ratio: 16/8; object-fit: cover; border-radius: 18px; border: 2px solid var(--gold);
  box-shadow: 0 20px 50px rgba(0,0,0,.55), 0 0 0 6px rgba(255,200,60,.08); }
.hero-banner .lead { font-size: 1.3rem; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.news { display: block; margin: 26px 0 0; padding: 14px 18px; background: var(--panel); border: 1px solid var(--line);
  border-left: 4px solid var(--gold); border-radius: var(--radius); color: var(--text); }
.ver { background: var(--gold); color: #2a1a04; font: 600 .85rem Fredoka, sans-serif; padding: 2px 9px; border-radius: 7px; margin-right: 6px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 34px 0; }
.feat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feat img { display: block; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.feat h3 { color: var(--gold); margin: 14px 16px 4px; }
.feat p { margin: 0 16px 16px; color: #cfcde0; }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rolecard { display: flex; flex-direction: column; gap: 3px; padding: 16px 18px; border-radius: var(--radius); background: var(--panel);
  border: 1px solid var(--line); border-top: 4px solid var(--rc); color: var(--text); }
.rolecard b { font: 600 1.3rem Fredoka, sans-serif; color: var(--rc); }
.rolecard em { font-style: normal; color: var(--muted); font-size: .9rem; }
.startcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 40px 0 10px; }
.startcards a { padding: 18px 20px; border-radius: var(--radius); background: linear-gradient(135deg, var(--panel2), var(--panel));
  border: 1px solid var(--line); color: var(--text); display: flex; flex-direction: column; gap: 4px; }
.startcards b { font: 600 1.25rem Fredoka, sans-serif; color: var(--gold); }

/* hero cards */
.hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; margin: 20px 0 30px; }
.hcard { display: flex; flex-direction: column; align-items: center; padding: 12px 10px 14px; border-radius: var(--radius); color: var(--text);
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 22%, var(--panel)) 0%, var(--panel) 60%);
  border: 1px solid var(--line); transition: transform .15s, border-color .15s; }
.hcard:hover { transform: translateY(-4px); border-color: var(--rc); color: var(--text); }
.hart { height: 190px; display: flex; align-items: flex-end; justify-content: center; }
.hart img { max-height: 190px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.hname { font: 700 1.3rem Fredoka, sans-serif; margin-top: 6px; }
.htitle { color: var(--muted); font-size: .88rem; margin-bottom: 6px; text-align: center; }
.hmeta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.role { font: 600 .82rem Fredoka, sans-serif; padding: 2px 10px; border-radius: 20px; color: #120f1a; background: var(--rc); }
.diff { display: inline-flex; gap: 3px; }
.diff i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: inline-block; }
.diff i.on { background: var(--gold); }
.pagehead { padding: 46px 0 18px; background: linear-gradient(180deg, var(--bg2), var(--bg)); border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.filters button { font: 600 .95rem Fredoka, sans-serif; padding: 7px 16px; border-radius: 20px; background: var(--panel2); color: var(--text);
  border: 2px solid var(--rc, var(--line)); cursor: pointer; }
.filters button.on { background: var(--rc, var(--gold)); color: #120f1a; }

/* hero page */
.herohead { background: radial-gradient(ellipse at 75% 60%, color-mix(in srgb, var(--rc) 35%, transparent), transparent 60%),
  linear-gradient(180deg, var(--bg2), var(--bg)); border-bottom: 2px solid var(--rc); }
.hh-in { max-width: 1180px; margin: 0 auto; padding: 30px 20px 0; display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: end; }
.hh-text { padding-bottom: 30px; }
.hh-title { font: 600 1.3rem Fredoka, sans-serif; color: var(--muted); margin: -6px 0 12px; }
.hh-text .hmeta { justify-content: flex-start; }
.hh-art { text-align: center; }
.hh-art img { max-height: 400px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.6)); display: block; margin: 0 auto; }
.back { display: inline-block; margin-bottom: 10px; font-weight: 700; }
.tagline { color: var(--muted); font-weight: 700; }
.style { color: #d8d6e4; border-left: 3px solid var(--rc); padding-left: 12px; }
.herogrid { display: grid; grid-template-columns: 1fr 340px; gap: 30px; }
.ability { display: flex; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.ability .key { flex: 0 0 46px; height: 46px; border-radius: 11px; background: var(--panel2); border: 2px solid var(--gold);
  font: 700 1.4rem Fredoka, sans-serif; color: var(--gold); display: flex; align-items: center; justify-content: center; }
.ability.isult { border-color: #a0462c; background: linear-gradient(135deg, #2c1a1e, var(--panel)); }
.ability.isult .key { border-color: #ff7a3c; color: #ff7a3c; }
.ability.passive .key { border-color: var(--blue); color: var(--blue); }
.ability h3 { margin-bottom: 4px; }
.ability p { margin: 0 0 8px; }
.abbody { flex: 1; min-width: 0; }
.abline { font-size: .95rem; margin: 3px 0; }
.abline b { color: var(--gold2); margin-right: 4px; }
.abline.ult { color: #ff9a6a; font-weight: 700; }
.ulttag, .ptag { font: 600 .72rem Fredoka, sans-serif; padding: 2px 7px; border-radius: 6px; vertical-align: middle; margin-left: 6px; }
.ulttag { background: #ff7a3c; color: #1d0d04; }
.ptag { background: var(--blue); color: #061423; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font-size: .82rem; background: var(--panel2); border-radius: 7px; padding: 2px 8px; color: var(--muted); }
.chip b { color: var(--text); }
.howto { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.howto h3 { color: var(--gold); margin-top: 18px; }
.howto ul { padding-left: 20px; margin: 0; }
.howto li { margin: 5px 0; }
.weak li::marker { color: var(--red); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.facts div { background: var(--panel2); border-radius: 10px; padding: 10px 14px; }
.facts span { display: block; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.facts b { font-family: Fredoka, sans-serif; font-weight: 600; }
.col-side { padding-top: 20px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 30px 0 16px; }
.panel + .panel { margin-top: 0; }
.panel h3 { color: var(--gold); }
.stats { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 10px; }
.stats dt { color: var(--muted); }
.stats dd { margin: 0; font-weight: 700; text-align: right; }
.build { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.ichip { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 11px; border-radius: 9px;
  background: var(--panel2); border-left: 4px solid var(--cc); color: var(--text); font-weight: 700; font-size: .93rem; }
.ichip b { color: #8fd3ff; font-family: Fredoka, sans-serif; font-weight: 600; }
.mini { display: flex; flex-wrap: wrap; gap: 6px; }
.mini a { background: var(--panel2); padding: 4px 11px; border-radius: 8px; font-weight: 700; }
.pager { display: flex; justify-content: space-between; margin: 30px auto 40px; font: 600 1.1rem Fredoka, sans-serif; }

/* items */
.search { width: 100%; max-width: 520px; margin-top: 14px; padding: 12px 16px; border-radius: 11px; border: 2px solid var(--line);
  background: var(--panel); color: var(--text); font: 600 1rem Nunito, sans-serif; }
.search:focus { outline: none; border-color: var(--gold); }
.cathead { color: var(--cc); border-bottom: 2px solid var(--cc); padding-bottom: 6px; }
.igrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.icard { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--cc); border-radius: 12px; padding: 12px 14px; scroll-margin-top: 90px; }
.icard:target { outline: 2px solid var(--gold); }
.ihead { display: flex; justify-content: space-between; gap: 8px; }
.cost { color: #8fd3ff; font: 600 1rem Fredoka, sans-serif; white-space: nowrap; }
.icard p { margin: 6px 0; font-size: .93rem; color: #d8d6e4; }

/* guide / tips / patch notes */
.docs { display: grid; grid-template-columns: 230px 1fr; gap: 34px; margin-bottom: 50px; }
.toc { position: sticky; top: 80px; align-self: start; display: flex; flex-direction: column; gap: 2px; padding: 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.toc a { color: var(--text); padding: 5px 10px; border-radius: 8px; font-weight: 700; font-size: .93rem; }
.toc a:hover { background: var(--panel2); color: var(--gold); }
.docs section { scroll-margin-top: 80px; }
.docs h2 { color: var(--gold); margin-top: 1.2em; }
.docs section:first-child h2 { margin-top: 0; }
.docs li { margin: 6px 0; }
.tip { background: var(--panel); border-left: 4px solid var(--gold); padding: 10px 14px; border-radius: 8px; }
table.keys, table.objs { border-collapse: collapse; width: 100%; background: var(--panel); border-radius: var(--radius); overflow: hidden; }
table.keys td, table.objs td { padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.keys td:first-child { width: 200px; white-space: nowrap; }
table.objs td:first-child { width: 230px; }
.tips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 50px; }
.tipsec { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.tipsec h2 { margin-top: 0; color: var(--gold); font-size: 1.4rem; }
.tipsec li { margin: 8px 0; }
.patches { max-width: 860px; margin-bottom: 50px; }
.patch { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 24px; margin-bottom: 18px; }
.patch h2 { margin: 8px 0 6px; }
.patch li { margin: 6px 0; }

/* footer */
footer { border-top: 1px solid var(--line); background: var(--bg2); margin-top: 40px; }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 26px 20px; display: grid; gap: 10px; }
.foot-links { display: flex; gap: 10px; }

/* phones + tablets */
@media (max-width: 900px) {
  .menu { display: block; }
  .top nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 10px 16px;
    background: var(--bg2); border-bottom: 1px solid var(--line); }
  body.nav-open .top nav { display: flex; }
  .top .btn.play { display: none; }
  .features, .roles, .startcards, .tips { grid-template-columns: 1fr; }
  .herogrid, .docs { grid-template-columns: 1fr; }
  .hh-in { grid-template-columns: 1fr; }
  .hh-art { order: -1; }
  .hh-art img { max-height: 260px; }
  .toc { position: static; }
  .banner-in { grid-template-columns: 1fr; }
  .banner-art { order: -1; }
  table.keys td:first-child, table.objs td:first-child { width: auto; white-space: normal; }
}
@media (max-width: 520px) {
  .hgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hart { height: 140px; } .hart img { max-height: 140px; }
  .facts { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
}
