/* L2ZONE 02 — siege poster. Ink, bone, ember. Not the gold portrait layout. */
:root {
  --bg: #141c28;
  --ink: #f7f3ec;
  --muted: #d0dae4;
  --ember: #ff6a2c;
  --ember-2: #ffb088;
  --line: rgba(244, 239, 230, 0.2);
  --panel: rgba(22, 32, 46, 0.86);
  --nav: rgba(18, 26, 38, 0.78);
  --dock: rgba(18, 26, 38, 0.92);
}
html[data-theme="light"] {
  --bg: #efe4d4;
  --ink: #2c261f;
  --muted: #5e554a;
  --ember: #c45a22;
  --ember-2: #8a4518;
  --line: rgba(70, 48, 28, 0.16);
  --panel: rgba(255, 248, 240, 0.88);
  --nav: rgba(255, 244, 232, 0.78);
  --dock: rgba(255, 246, 236, 0.9);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.z2 {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: rgba(255, 106, 44, 0.35); }

.bar {
  position: fixed;
  z-index: 20;
  top: 0; left: 0; right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 22px;
  background: var(--nav);
  backdrop-filter: blur(10px);
}
.bar.is-scrolled { background: var(--bg); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; }
.brand__t {
  font-family: Oswald, sans-serif;
  font-size: 22px;
  letter-spacing: 0.16em;
}
.l2pick {
  position: fixed;
  z-index: 19;
  top: 70px;
  left: 22px;
  width: 150px;
  line-height: 0;
}
.l2pick img { width: 100%; height: auto; }
.links { display: flex; gap: 22px; }
.links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.links a.is-on,
.links a:hover { color: var(--ink); }
.side { display: flex; align-items: center; gap: 8px; }
.cab, .ghost {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tg, .theme, .lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
}
.tg { color: #7ec8f0; }
.tg:hover { color: #b9e4ff; border-color: rgba(126, 200, 240, 0.7); }
.tg svg, .theme svg { width: 18px; height: 18px; display: block; }
.lang {
  width: auto;
  min-width: 42px;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.theme { color: #f0c36a; }
.theme__sun { display: none; }
html[data-theme="light"] .theme__moon { display: none; }
html[data-theme="light"] .theme__sun { display: block; }
html[data-theme="light"] .tg,
html[data-theme="light"] .theme,
html[data-theme="light"] .lang { background: rgba(255, 255, 255, 0.45); }
.cab, .play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ember);
  color: #1a0d06;
  border: 0;
  font-family: Oswald, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cab { min-height: 34px; margin-left: 22px; padding: 0 14px; font-size: 14px; }
.burger { display: none; width: 40px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: transparent; }
.burger span { display: block; height: 2px; margin: 6px 8px; background: var(--ink); }

.gate {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  box-sizing: border-box;
  padding: 76px 0 112px;
  background: #141c28;
}
.gate__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 68% center;
  filter: brightness(1.16) contrast(1.04);
}
.gate__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 28, 40, 0.34) 0%, rgba(20, 28, 40, 0.08) 36%, transparent 58%),
    linear-gradient(180deg, rgba(20, 28, 40, 0.34) 0%, transparent 16%, transparent 68%, rgba(20, 28, 40, 0.4) 100%);
}
html[data-theme="light"] .gate__bg,
html[data-theme="light"] .about__hero img {
  filter: brightness(1.65) contrast(0.88) saturate(0.7);
}
html[data-theme="light"] .gate__shade {
  background:
    linear-gradient(90deg, rgba(255, 236, 214, 0.32) 0%, rgba(255, 228, 200, 0.08) 36%, transparent 60%),
    linear-gradient(180deg, rgba(255, 246, 236, 0.22) 0%, transparent 18%, transparent 68%, rgba(255, 236, 214, 0.3) 100%);
}
html[data-theme="light"] .gate__logo img {
  filter: brightness(1.22) saturate(1.08) drop-shadow(0 10px 18px rgba(90, 58, 24, 0.28));
}
.gate__copy {
  position: relative;
  width: min(680px, 54vw);
  margin: 0;
  padding: 0 0 8px 5vw;
}
.eye {
  margin: 0 0 8px;
  color: var(--ember);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.gate__logo { margin: 0; position: relative; top: -50px; }
.gate__logo img {
  width: min(460px, 40vw);
  height: auto;
  mix-blend-mode: screen;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
}
.plaque {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 6px 0 0 6px;
  padding: 16px 26px 14px;
  background:
    linear-gradient(180deg, rgba(42, 32, 22, 0.62), rgba(18, 16, 20, 0.82));
  border: 1px solid rgba(240, 195, 106, 0.72);
  box-shadow:
    0 0 0 5px rgba(8, 6, 8, 0.35),
    0 0 0 6px rgba(240, 195, 106, 0.28),
    inset 0 0 24px rgba(240, 195, 106, 0.08),
    0 18px 36px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}
.plaque::before,
.plaque::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid #f0c36a;
  pointer-events: none;
}
.plaque::before { top: -4px; left: -4px; border-right: 0; border-bottom: 0; }
.plaque::after { right: -4px; bottom: -4px; border-left: 0; border-top: 0; }
.plaque__mark { position: absolute; inset: 0; pointer-events: none; }
.plaque__mark::before,
.plaque__mark::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid #f0c36a;
}
.plaque__mark::before { top: -4px; right: -4px; border-left: 0; border-bottom: 0; }
.plaque__mark::after { bottom: -4px; left: -4px; border-right: 0; border-top: 0; }
html[data-theme="light"] .plaque {
  background: linear-gradient(180deg, rgba(255, 248, 238, 0.78), rgba(226, 214, 196, 0.88));
  border-color: rgba(138, 84, 28, 0.7);
  box-shadow:
    0 0 0 5px rgba(232, 224, 210, 0.45),
    0 0 0 6px rgba(138, 84, 28, 0.35),
    0 14px 28px rgba(74, 52, 32, 0.16);
}
html[data-theme="light"] .plaque::before,
html[data-theme="light"] .plaque::after,
html[data-theme="light"] .plaque__mark::before,
html[data-theme="light"] .plaque__mark::after { border-color: #8a541c; }
.rate {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: #f0c36a;
  font-family: Oswald, sans-serif;
  font-size: clamp(20px, 1.8vw, 28px);
  letter-spacing: 0.22em;
}
.rate::before,
.rate::after {
  content: "";
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #f0c36a);
}
.rate::after { background: linear-gradient(90deg, #f0c36a, transparent); }
html[data-theme="light"] .rate { color: #8a541c; }
html[data-theme="light"] .rate::before { background: linear-gradient(90deg, transparent, #8a541c); }
html[data-theme="light"] .rate::after { background: linear-gradient(90deg, #8a541c, transparent); }
.lead {
  max-width: 26em;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 17px;
}
.count {
  display: flex;
  align-items: flex-start;
  margin-top: 12px;
}
.count span {
  min-width: 84px;
  text-align: center;
}
.count b {
  display: block;
  font-family: Oswald, sans-serif;
  font-size: 54px;
  line-height: 1;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.count small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.count i {
  width: 18px;
  height: 54px;
  color: var(--ember);
  font-style: normal;
  font-family: Oswald, sans-serif;
  font-size: 40px;
  line-height: 48px;
  text-align: center;
}

.dock {
  position: absolute;
  z-index: 3;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: 0.8fr 0.9fr 1.3fr 0.8fr auto;
  background: var(--dock);
  border-top: 3px solid var(--ember);
  backdrop-filter: blur(12px);
}
.dock > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 86px;
  padding: 12px 22px;
  border-right: 1px solid var(--line);
}
.dock > div:first-child { padding-left: 48px; }
.dock small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.dock b {
  display: block;
  margin-top: 2px;
  font-family: Oswald, sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
}
.dock > div:nth-child(3) b { font-size: 20px; letter-spacing: 0.02em; }
.dock .is-soon { color: var(--ember); }
.dock .is-open { color: #7dcea0; }
html[data-theme="light"] .dock .is-open { color: #1e7a45; }
.dock .play {
  min-width: 196px;
  padding: 0 36px;
  font-size: 26px;
}

.sheet {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
  padding: 54px 0 8px;
}
.sec h2, .about h1, .block h2 {
  margin: 0;
  font-family: Oswald, sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 0.95;
}
.sec h2, .block h2 { font-size: 48px; }

.worlds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding-top: 0;
  border-bottom: 1px solid var(--line);
}
.worlds article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 18px 18px 16px;
  border-right: 1px solid var(--line);
}
.worlds b { font-family: Oswald, sans-serif; font-size: 24px; }
.worlds span { color: var(--muted); font-size: 13px; }
.worlds strong { font-family: Oswald, sans-serif; font-size: 28px; }
.worlds em { font-style: normal; color: var(--ember); letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; }

.line {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
  padding: 28px 0 8px;
  border-top: 2px solid var(--ember);
}
.line article { padding: 8px 28px 8px 0; }
.line b {
  display: block;
  margin: 0 0 4px;
  font-family: Oswald, sans-serif;
  font-size: 36px;
  font-weight: 600;
}
.line p, .empty { margin: 0; color: var(--muted); }

.streams { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; }
.stream { background: var(--panel); }
.stream iframe, .frame, .stream .lk-tiktok-live { display: block; width: 100%; aspect-ratio: 16/9; height: auto; border: 0; }
.stream p { margin: 0; padding: 10px 12px 12px; color: var(--muted); }
.ghost { margin-top: 12px; }

.board { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.board h3 {
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ember);
  font-family: Oswald, sans-serif;
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.board ol { margin: 0; padding: 0; list-style: none; }
.board li {
  display: grid;
  grid-template-columns: 36px 1fr auto auto;
  gap: 10px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.board li.pvp { grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; }
.board b.who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.board em { color: var(--ember); font-family: Oswald, sans-serif; font-style: normal; font-size: 18px; }
.board li span { color: var(--muted); font-size: 13px; }
.board .clan { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.board .crest {
  width: 16px;
  height: 12px;
  flex: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.board strong { font-family: Oswald, sans-serif; font-size: 20px; }

.downloads { display: flex; flex-direction: column; }
.dl {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.dl em {
  color: var(--ember);
  font-family: Oswald, sans-serif;
  font-style: normal;
  font-size: 32px;
}
.dl small { display: block; color: var(--muted); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.dl b { font-family: Oswald, sans-serif; font-size: 26px; font-weight: 600; }
.dl strong { color: var(--ember); letter-spacing: 0.12em; text-transform: uppercase; font-size: 13px; }
.dl:hover b { color: var(--ember-2); }

.about { width: min(1080px, calc(100% - 48px)); margin: 0 auto; padding: 88px 0 40px; }
.about__hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: 8px;
  background: #141c28;
}
.about__hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 70% center;
  filter: brightness(1.16) contrast(1.04);
}
.about__hero div {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  padding: 36px 28px 24px;
  background: linear-gradient(90deg, rgba(20, 28, 40, 0.88), rgba(20, 28, 40, 0.16));
}
html[data-theme="light"] .about__hero div {
  background: linear-gradient(90deg, rgba(255, 244, 230, 0.9), rgba(255, 236, 214, 0.12));
}
.about h1 { font-size: clamp(56px, 7vw, 92px); }
.about__hero p:last-child { max-width: 36em; margin: 8px 0 0; color: var(--muted); }
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
  border-top: 2px solid var(--ember);
  border-bottom: 1px solid var(--line);
}
.facts article { padding: 16px 16px 14px 0; }
.facts small { display: block; color: var(--muted); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.facts b { font-family: Oswald, sans-serif; font-size: 28px; font-weight: 600; }
.block { margin-top: 32px; }
.list { margin: 12px 0 0; padding: 0; list-style: none; }
.list li { padding: 10px 0 10px 14px; border-top: 1px solid var(--line); border-left: 3px solid var(--ember); }
.table { width: 100%; margin-top: 12px; border-collapse: collapse; }
.table th, .table td { padding: 10px 12px 10px 0; text-align: left; border-bottom: 1px solid var(--line); }
.table th { color: var(--ember); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.notes {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px 28px;
  margin-top: 28px;
}
.notes b { display: block; font-family: Oswald, sans-serif; font-size: 26px; }
.notes p { margin: 4px 0 0; color: var(--muted); }
.cta { display: flex; gap: 10px; margin-top: 28px; }
.cta .play { min-height: 52px; padding: 0 28px; font-size: 22px; }

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 64px));
  margin: 36px auto 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.foot b { display: block; font-family: Oswald, sans-serif; letter-spacing: 0.14em; color: var(--ink); }

@media (max-width: 980px) {
  .links { display: none; }
  .links.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    padding: 14px 20px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .burger { display: inline-block; }
  .gate { padding: 72px 0 16px; }
  .gate__copy { width: calc(100% - 24px); margin: 0; padding: 0 0 12px 12px; }
  .gate h1, .gate__logo img { width: min(520px, 92vw); }
  .dock { position: relative; grid-template-columns: 1fr 1fr; }
  .dock > div:first-child { padding-left: 16px; }
  .count span { min-width: 64px; }
  .count i { height: 42px; line-height: 36px; }
  .dock .play { grid-column: 1 / -1; min-height: 58px; }
  .line, .streams, .board, .facts, .notes, .worlds { grid-template-columns: 1fr 1fr; }
  .sheet, .line, .foot, .about { width: min(1120px, calc(100% - 28px)); }
}
@media (max-height: 820px) and (min-width: 981px) {
  .gate { padding: 68px 0 100px; }
  .gate__logo img { width: min(380px, 34vw); height: auto; }
  .plaque { margin-top: 0; padding: 10px 18px 10px; }
  .rate { font-size: 18px; }
  .rate::before, .rate::after { width: 28px; }
  .count { margin-top: 6px; }
  .count span { min-width: 62px; }
  .count b { font-size: 40px; }
  .count i { height: 40px; font-size: 28px; line-height: 34px; }
  .dock > div { min-height: 68px; padding: 8px 16px; }
  .dock b { font-size: 20px; }
  .dock .play { font-size: 22px; }
}
@media (max-width: 640px) {
  .gate__logo img { width: min(420px, 92vw); }
  .count b { font-size: 36px; }
  .count i { height: 36px; font-size: 28px; line-height: 32px; }
  .line, .streams, .board, .facts, .notes, .worlds { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 48px 1fr; }
  .dl strong { grid-column: 2; }
}
