/* Dawnlands: Đảo Lạc - site styles (no build step, no framework) */
:root {
  --bg: #120e0b;
  --bg-2: #1a140f;
  --panel: #221a13;
  --panel-2: #2b2118;
  --line: rgba(236, 200, 150, 0.14);
  --line-strong: rgba(236, 200, 150, 0.28);
  --text: #f1e8da;
  --muted: #bcae98;
  --faint: #8d806d;
  --orange: #e0782c;
  --orange-hi: #f39a4c;
  --orange-deep: #b4561a;
  --moss: #8a9a52;
  --moss-deep: #4f5b2c;
  --wood: #8a5a34;
  --stone: #8e8982;
  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1180px;
  --gutter: 16px;
  --head-h: 64px;
  --font-body: "Be Vietnam Pro", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Oswald", "Arial Narrow", "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font-body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--orange-hi); text-decoration: none; }
a:hover { color: #ffc28a; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: 0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--orange-hi); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--orange); color: #1a0f06; padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; color: #1a0f06; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 28px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1.2 var(--font-body); letter-spacing: 0.02em;
  cursor: pointer; transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
  text-align: center;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: linear-gradient(180deg, var(--orange-hi), var(--orange) 55%, var(--orange-deep)); color: #1d0f04; box-shadow: 0 8px 24px rgba(224, 120, 44, .28), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { color: #1d0f04; transform: translateY(-1px); background: linear-gradient(180deg, #ffb06a, var(--orange-hi) 55%, var(--orange)); }
.btn-ghost { background: rgba(18, 14, 11, .45); color: var(--text); border-color: var(--line-strong); backdrop-filter: blur(4px); }
.btn-ghost:hover { color: var(--text); border-color: var(--orange-hi); }
.btn[aria-disabled="true"], .btn:disabled { background: rgba(60, 50, 40, .55); color: var(--faint); border-color: var(--line); box-shadow: none; cursor: not-allowed; transform: none; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  font: 600 12px/1.4 var(--font-body); letter-spacing: .06em; text-transform: uppercase;
  background: rgba(138, 154, 82, .18); color: #c9d59a; border: 1px solid rgba(138, 154, 82, .4);
}
.badge-soon { background: rgba(224, 120, 44, .16); color: #ffbf86; border-color: rgba(224, 120, 44, .45); }

/* ---------- header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--head-h);
  transition: background-color .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(10, 7, 5, .7), rgba(10, 7, 5, 0));
}
.site-head.scrolled, .site-head.open { background: rgba(18, 14, 11, .94); border-bottom-color: var(--line); backdrop-filter: blur(8px); }
.head-row { height: var(--head-h); display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { width: 118px; height: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text); padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--orange-hi); background: rgba(255,255,255,.04); }
.lang { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; flex: none; }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 32px; padding: 0 10px; border-radius: 999px; font: 600 13px/1 var(--font-body); color: var(--muted); letter-spacing: .05em; }
.lang a[aria-current="true"] { background: var(--orange); color: #1d0f04; }
.lang a:not([aria-current="true"]):hover { color: var(--text); }
.head-cta { flex: none; }
.menu-btn { display: none; flex: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(18,14,11,.5); color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .head-cta { display: none; }
  .lang { margin-left: auto; }
  .nav {
    position: fixed; top: var(--head-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(18, 14, 11, .98); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    margin-left: 0;
  }
  .site-head.open .nav { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav a { padding: 14px 6px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 17px; }
  .nav .nav-cta { margin-top: 14px; border-bottom: 0; color: #1d0f04; border-radius: 999px; padding: 12px; }
}
@media (min-width: 961px) { .nav .nav-cta { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 60% 40%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 9, 6, .82) 0%, rgba(14, 9, 6, .45) 45%, rgba(14, 9, 6, 0) 75%),
    linear-gradient(0deg, var(--bg) 0%, rgba(18, 14, 11, .2) 38%, rgba(18, 14, 11, 0) 60%);
}
.hero-content { position: relative; z-index: 1; padding-top: calc(var(--head-h) + 48px); padding-bottom: clamp(56px, 10vh, 120px); }
.hero-logo { width: min(440px, 80vw); margin: 0 0 18px -6px; filter: drop-shadow(0 6px 18px rgba(0,0,0,.55)); }
.eyebrow { display: inline-block; font: 600 13px/1.4 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--orange-hi); margin-bottom: 14px; }
.hero-slogan { font-family: var(--font-head); font-weight: 500; font-size: clamp(26px, 4.2vw, 46px); line-height: 1.15; max-width: 16em; text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.hero-lead { color: #e6dac6; font-size: clamp(16px, 1.6vw, 19px); max-width: 34em; margin: 16px 0 28px; text-shadow: 0 1px 10px rgba(0,0,0,.7); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--moss); transform: rotate(45deg); }
@media (max-width: 600px) {
  .hero { min-height: min(92svh, 760px); }
  .hero-media img { object-position: 64% 50%; }
  .hero-media::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(14, 9, 6, .78) 45%, rgba(14, 9, 6, .25) 100%); }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 18%, var(--bg-2) 82%, var(--bg) 100%); }
.section-head { max-width: 760px; margin: 0 0 clamp(32px, 4vw, 48px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1.4 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--moss); margin-bottom: 12px; }
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head.center .kicker::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.h2 { font-size: clamp(30px, 4.4vw, 48px); text-transform: uppercase; letter-spacing: .02em; }
.section-head p { color: var(--muted); font-size: 17px; margin: 14px 0 0; }

/* world */
.world { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .world { grid-template-columns: 1.1fr 1fr; } }
.world-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.world-text p { color: #ddd1bd; font-size: 17px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 12px; }
.stat b { display: block; font: 600 clamp(24px, 3vw, 32px)/1.05 var(--font-head); color: var(--orange-hi); }
.stat span { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 6px; }
.climates { margin-top: 18px; color: var(--muted); font-size: 14px; }
.climates strong { color: var(--text); font-weight: 600; }

/* feature cards */
.cards { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; position: relative; background: #2a2018; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 23px; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 10px; }
.card p { color: #d6c9b4; font-size: 15.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 4px 0 0; list-style: none; }
.tags li { font-size: 12.5px; color: var(--muted); padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0,0,0,.18); }
.card-media .badge { position: absolute; top: 12px; left: 12px; background: rgba(26, 16, 8, .86); color: #ffc896; border-color: rgba(243, 154, 76, .7); box-shadow: 0 2px 10px rgba(0,0,0,.4); }

/* spotlight (wide image with text) */
.spot { position: relative; margin: 34px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 420px; display: flex; align-items: flex-end; isolation: isolate; }
.spot picture, .spot picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.spot picture img { object-fit: cover; }
.spot::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(14,9,6,.92) 0%, rgba(14,9,6,.72) 46%, rgba(14,9,6,0) 78%); }
.spot-body { position: relative; z-index: 1; padding: clamp(24px, 4vw, 48px); max-width: 560px; }
.spot h3 { font-size: clamp(26px, 3.2vw, 38px); text-transform: uppercase; margin: 10px 0 12px; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.spot p { color: #e3d7c3; font-size: 16.5px; text-shadow: 0 1px 8px rgba(0,0,0,.75); }
.spot.right { justify-content: flex-end; }
.spot.right::after { background: linear-gradient(270deg, rgba(14,9,6,.92) 0%, rgba(14,9,6,.72) 46%, rgba(14,9,6,0) 78%); }
@media (max-width: 760px) {
  .spot { min-height: 0; display: block; }
  .spot picture { position: relative; aspect-ratio: 16 / 9; }
  .spot::after { display: none; }
  .spot-body { max-width: none; background: var(--panel); }
  .spot h3, .spot p { text-shadow: none; }
}

/* icon strip */
.more { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 760px) { .more { grid-template-columns: repeat(4, 1fr); } }
.more-item { background: rgba(34, 26, 19, .7); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px 16px; text-align: center; }
.more-item img { width: 84px; height: 84px; margin: 0 auto 10px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); }
.more-item h3 { font-size: 18px; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }
.more-item p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.55; }
@media (max-width: 420px) { .more-item { padding: 14px 10px; } .more-item img { width: 64px; height: 64px; } .more-item h3 { font-size: 16px; } }

/* coming soon */
.soon-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .soon-grid { grid-template-columns: 1fr 1fr; } }
.soon-grid .card-media { aspect-ratio: 16 / 9; }
.soon-mini { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 18px; }
@media (min-width: 640px) { .soon-mini { grid-template-columns: 1fr 1fr; } }
.mini { display: flex; gap: 16px; align-items: flex-start; background: var(--panel); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 18px 20px; }
.mini img { width: 56px; height: 56px; flex: none; }
.mini h3 { font-size: 20px; text-transform: uppercase; margin: 6px 0 6px; }
.mini p { margin: 0; color: var(--muted); font-size: 15px; }

/* download */
.download { position: relative; overflow: hidden; isolation: isolate; }
.download > picture, .download > picture img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.download > picture img { object-fit: cover; object-position: 50% 60%; }
.download::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(18,14,11,.55) 22%, rgba(18,14,11,.55) 78%, var(--bg) 100%), radial-gradient(ellipse at center, rgba(18,14,11,.15), rgba(18,14,11,.65)); }
.dl-grid { display: grid; gap: 18px; grid-template-columns: 1fr; max-width: 920px; margin: 0 auto; }
@media (min-width: 760px) { .dl-grid { grid-template-columns: 1.25fr 1fr; } }
/* 15/10: PC card on the left spans two rows; Android + iOS stack on the right */
@media (min-width: 760px) { .dl-grid > .dl-card:first-child { grid-row: span 2; } }
.dl-card { background: rgba(22, 17, 12, .82); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 26px 24px; backdrop-filter: blur(6px); display: flex; flex-direction: column; gap: 12px; }
.dl-card.muted { border-style: dashed; }
.dl-card h3 { font-size: 26px; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.dl-card h3 svg { width: 28px; height: 28px; color: var(--orange-hi); flex: none; }
.dl-card.muted h3 svg { color: var(--faint); }
.dl-card p { margin: 0; color: #d9ccb7; font-size: 15px; }
.dl-card .btn { align-self: stretch; }
.dl-note { font-size: 13.5px !important; color: var(--muted) !important; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 28px auto 0; max-width: 920px; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; background: rgba(22,17,12,.75); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 14px 14px 52px; position: relative; font-size: 14.5px; color: #ddd0bb; backdrop-filter: blur(4px); }
.steps li::before { content: counter(step); position: absolute; left: 14px; top: 13px; width: 26px; height: 26px; border-radius: 50%; background: var(--moss-deep); color: #e7efc6; font: 600 14px/26px var(--font-head); text-align: center; }

/* news */
.news-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.news-item time { font-size: 13px; color: var(--moss); font-weight: 600; letter-spacing: .05em; }
.news-item h3 { font-size: 20px; text-transform: uppercase; letter-spacing: .02em; }
.news-item p { margin: 0; color: var(--muted); font-size: 15px; }
.news-item a.more-link { margin-top: auto; font-weight: 600; font-size: 14px; }
.news-foot { margin-top: 18px; color: var(--faint); font-size: 14px; }

/* community */
.comm { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .comm { grid-template-columns: repeat(3, 1fr); } }
.comm-item { display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
a.comm-item { color: inherit; transition: border-color .15s, transform .15s; }
a.comm-item:hover, a.comm-item:focus-visible { border-color: var(--orange-hi); transform: translateY(-2px); }
.comm-item svg { width: 34px; height: 34px; flex: none; color: var(--stone); }
.comm-item b { display: block; font-size: 16px; }
.comm-item span { font-size: 13.5px; color: var(--faint); }
.comm-note { margin-top: 22px; background: rgba(138,154,82,.1); border: 1px solid rgba(138,154,82,.3); border-radius: var(--radius); padding: 16px 18px; color: #d8dcc0; font-size: 15px; }
.comm-note strong { color: #e9efc9; }

/* footer */
.site-foot { border-top: 1px solid var(--line); background: #0d0a08; padding: 40px 0 32px; color: var(--faint); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.foot-row img { width: 130px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-nav a { color: var(--muted); }
.foot-legal { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); line-height: 1.6; }
.foot-legal p { margin: 0 0 4px; }

/* reveal on scroll (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .card-media img, .btn { transition: none; }
}

/* helpers (no inline styles: the site must work under a strict CSP) */
.world-body { margin-top: 18px; }
.mini-svg { color: var(--muted); flex: none; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--orange-hi); }

/* ---------- legal pages (privacy policy, terms of use) ---------- */
.page-legal .site-head { background: rgba(18, 14, 11, .94); border-bottom-color: var(--line); backdrop-filter: blur(8px); }
.legal-main { padding: calc(var(--head-h) + clamp(32px, 6vw, 64px)) 0 clamp(56px, 8vw, 96px); background: radial-gradient(ellipse at 50% 0%, rgba(224, 120, 44, .08), rgba(18, 14, 11, 0) 60%); }
.legal { max-width: 820px; margin: 0 auto; overflow-wrap: break-word; }
.legal h1 { font-size: clamp(34px, 5.4vw, 56px); text-transform: uppercase; letter-spacing: .02em; margin: 0 0 16px; }
.legal .updated { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(224, 120, 44, .45); background: rgba(224, 120, 44, .12); color: #f3d8bd; font-size: 14px; line-height: 1.5; }
.legal .updated strong { color: #ffc896; font-weight: 600; }
.legal .lang-note { color: var(--muted); font-size: 14px; font-style: italic; }
.legal .lead { font-size: clamp(16.5px, 1.6vw, 18px); color: #e3d7c3; }
.legal h2 { font-size: clamp(22px, 2.8vw, 28px); text-transform: uppercase; letter-spacing: .02em; margin: 0 0 14px; }
.legal-sec { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal h3 { font-size: 19px; letter-spacing: .02em; color: var(--orange-hi); margin: 26px 0 10px; }
.legal p, .legal li { color: #ddd1bd; font-size: 16px; }
.legal ul, .legal ol { margin: 0 0 1em; padding-left: 1.35em; }
.legal li { margin: 0 0 .5em; }
.legal li::marker { color: var(--moss); }
.legal strong { color: var(--text); font-weight: 600; }
.legal em { font-style: italic; color: var(--text); }
.legal a { text-decoration: underline; text-decoration-color: rgba(243, 154, 76, .45); text-underline-offset: 3px; }
.legal a:hover { text-decoration-color: currentColor; }
.legal code { font-size: .9em; background: rgba(0, 0, 0, .32); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: #f3d8bd; }
.legal-box { margin: 24px 0; padding: 18px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.legal-box h2 { font-size: 20px; margin-bottom: 10px; }
.legal-box ul { margin: 0; }
.legal-box p { margin: 0; }
.legal-notice { border-color: rgba(138, 154, 82, .45); background: rgba(138, 154, 82, .1); }
.legal-notice p { color: #dfe3c6; }
.legal-toc { margin: 24px 0 8px; padding: 18px 22px; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.legal-toc h2 { font-size: 18px; margin-bottom: 10px; color: var(--muted); }
.legal-toc ol { margin: 0; padding-left: 1.6em; }
.legal-toc li { font-size: 15px; margin: 0 0 .3em; }
@media (min-width: 720px) { .legal-toc ol { columns: 2; column-gap: 32px; } .legal-toc li { break-inside: avoid; } }
.legal table.data { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 15px; }
.legal table.data th, .legal table.data td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal table.data th { font: 600 13px/1.4 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--moss); background: rgba(0, 0, 0, .18); }
.legal table.data td { color: #ddd1bd; }
.legal table.data td:first-child { color: var(--text); }
@media (max-width: 640px) {
  .legal table.data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal table.data, .legal table.data tbody, .legal table.data tr, .legal table.data td { display: block; width: 100%; }
  .legal table.data tr { margin: 0 0 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); }
  .legal table.data td { border: 0; padding: 4px 0; }
  .legal table.data td::before { content: attr(data-label); display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--moss); }
}
.legal .see-also { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); }

/* 5/10 owner logo: emblem next to the wordmark */
.brand img.brand-emblem { width: 40px; height: 40px; border-radius: 10px; margin-right: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.45); }
.foot-row img.brand-emblem { width: 44px; height: 44px; margin-right: 10px; vertical-align: middle; }
.hero-emblem { display: block; width: 112px; height: 112px; border-radius: 24px; margin: 0 0 14px; box-shadow: 0 6px 24px rgba(0,0,0,.55); }
@media (max-width: 600px) { .hero-emblem { width: 92px; height: 92px; border-radius: 20px; } .brand img.brand-emblem { width: 34px; height: 34px; margin-right: 8px; } }

/* 5/10: first "coming soon" card spans the whole row (guild territory wars); news sits right under the hero */
@media (min-width: 860px) {
  .soon-grid .card.soon-lead { grid-column: 1 / -1; }
  .soon-grid .card.soon-lead .card-media { aspect-ratio: 21 / 9; }
}
.news-top { padding-top: 56px; }
.news-item .news-type { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--moss); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.news-item img.news-img { width: 100%; height: auto; border-radius: 8px; display: block; }

/* 5/10: news = list of titles, newest first; click a title to read the whole post */
.news-list { display: flex; flex-direction: column; gap: 10px; max-width: 900px; }
.news-row { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.news-row > summary { list-style: none; cursor: pointer; display: flex; gap: 16px; align-items: baseline; padding: 16px 20px; }
.news-row > summary::-webkit-details-marker { display: none; }
.news-row > summary::after { content: "+"; margin-left: auto; font-size: 22px; line-height: 1; color: var(--moss); transition: transform .2s; }
.news-row[open] > summary::after { transform: rotate(45deg); }
.news-row > summary:hover .news-title, .news-row > summary:focus-visible .news-title { color: var(--orange-hi); }
.news-row time { flex: none; min-width: 128px; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 13px; color: var(--moss); font-weight: 600; letter-spacing: .05em; }
.news-title { font-family: inherit; font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.news-row .news-type { flex: none; font-size: 12px; font-weight: 700; color: var(--moss); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.news-body { padding: 0 20px 18px; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.news-body p { margin: 0; }
.news-body img { display: block; width: 100%; max-width: 640px; height: auto; border-radius: 8px; margin: 0 0 12px; }
@media (max-width: 600px) { .news-row > summary { flex-wrap: wrap; gap: 4px 12px; } .news-row time { min-width: 0; } .news-title { flex-basis: 100%; font-size: 16px; } }

.dl-note { overflow-wrap: anywhere; }

/* 16/10 Android card open (build_pages.py --android open) */
.steps-h { max-width: 920px; margin: 30px auto 0; display: flex; align-items: center; gap: 10px; font-size: 19px; text-transform: uppercase; color: #f3d9b8; }
.steps-h svg { width: 22px; height: 22px; color: var(--orange-hi); flex: none; }
.steps-h + .steps { margin-top: 12px; }
.dl-card .badge { align-self: flex-start; }
