/* games.aoe2.io.vn - "war room" look: dark stone, parchment text, gold trim, age-coloured ranks. */
:root {
  --bg: #120f0b;
  --bg-2: #1b1610;
  --panel: #211a12;
  --panel-2: #2a2117;
  --line: #3d3122;
  --line-2: #5a4630;
  --text: #f1e7d3;
  --muted: #b8a88c;
  --gold: #e8b64c;
  --gold-2: #ffd57a;
  --gold-deep: #9c6a1a;
  --red: #c8432f;
  --green: #5fae5a;
  --radius: 14px;
  --display: 'Grenze Gotisch', 'Georgia', serif;
  --body: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* rank tiers = the game's ages */
  --t-dark: #7d7468; --t-feudal: #b07a45; --t-castle: #b9c3cf; --t-imperial: #e8b64c; --t-king: #6fc7e8; --t-legend: #e25b3c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(232, 182, 76, .10), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(200, 67, 47, .08), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-2); }
code { background: #0d0b08; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .9em; color: var(--gold-2); word-break: break-word; }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: .5px; line-height: 1.1; margin: 0; }
h2 { font-size: 30px; color: var(--gold-2); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--gold); color: #000; padding: 8px 12px; border-radius: 8px; }

/* --- top bar ------------------------------------------------------------------------------------ */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 10px max(16px, calc((100% - 1160px) / 2));
  background: rgba(18, 15, 11, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 800 24px var(--display); }
.brand img { border-radius: 8px; }
.topbar nav { display: flex; gap: 22px; margin-left: auto; }
.topbar nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.topbar nav a:hover { color: var(--gold-2); }

/* --- buttons ------------------------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 10px;
  font: 700 17px var(--body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-gold {
  color: #1a1206;
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, #c98f2b);
  border-color: #fff0c4 #b07a20 #7a5212;
  box-shadow: 0 4px 0 #6b4510, 0 10px 24px rgba(232, 182, 76, .25);
}
.btn-gold:hover { box-shadow: 0 6px 0 #6b4510, 0 14px 30px rgba(232, 182, 76, .35); }
.btn-stone {
  color: #fff;
  background: linear-gradient(180deg, #4a3c2b, #352a1d);
  border-color: #6d5a41 #2a2117 #1d170f;
  box-shadow: 0 4px 0 #15100a;
}
.btn-ghost { color: var(--gold-2); background: transparent; border-color: var(--line-2); }
.btn-sm { padding: 9px 16px; font-size: 15px; box-shadow: 0 3px 0 #6b4510; }

/* --- icons (inline SVG masks) -------------------------------------------------------------------- */
.ico { width: 20px; height: 20px; display: inline-block; background: currentColor; flex: none;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ico-down { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 3h2v10.2l3.6-3.6 1.4 1.4-6 6-6-6 1.4-1.4 3.6 3.6zM4 19h16v2H4z'/%3E%3C/svg%3E"); }
.ico-people { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Ccircle cx='17' cy='9' r='2.5'/%3E%3Cpath d='M2 20c0-3.9 3.1-6.5 7-6.5s7 2.6 7 6.5zM16.5 13.6c3 .2 5.5 2.4 5.5 5.4v1h-4.5c0-2.6-.4-4.6-1-6.4z'/%3E%3C/svg%3E"); }
.ico-swords { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h4l9 9-1.5 1.5-1 1L4.5 5.5zM21 3h-4l-5.3 5.3 4 4L21 7zM6.3 14.3l3.4 3.4-1.8 1.8L9 20.6 7.6 22l-2.1-2.1L3.4 22 2 20.6l2.1-2.1L2.9 17.3l1.4-1.4 1.1 1.1zM17.7 14.3l1.8 1.8 1.1-1.1 1.4 1.4-1.2 1.2 2.1 2.1L21.5 22l-2.1-2.1L17.3 22l-1.4-1.4 1.1-1.1-1.8-1.8z'/%3E%3C/svg%3E"); }
.ico-fire { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2s5 4.5 5 9.5c0 1.4-.4 2.6-1 3.6.1-.4.1-.7.1-1.1 0-2.5-2.1-4.5-2.1-4.5s-.6 3-2.6 4.5C9.8 15.4 9 16.6 9 18c0 1.8 1.3 3.4 3 3.9C7.9 21.6 5 18.4 5 14.5 5 9 12 2 12 2z'/%3E%3C/svg%3E"); }
.ico-dot { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3C/svg%3E"); }
.ico-crown { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 7l4.5 4L12 4l4.5 7L21 7l-2 11H5zM5 20h14v2H5z'/%3E%3C/svg%3E"); }

/* --- resource bar (the game's top HUD) ---------------------------------------------------------- */
.resbar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px;
  padding: 10px 16px;
  background: linear-gradient(180deg, #2c2318, #1d170f);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 -1px 0 rgba(255, 213, 122, .08);
}
.res { display: flex; align-items: baseline; gap: 7px; font-size: 15px; color: var(--muted); }
.res .ico { align-self: center; color: var(--gold); width: 18px; height: 18px; }
.res b { color: var(--text); font-size: 18px; font-variant-numeric: tabular-nums; }
.res .ico-dot { color: var(--green); width: 12px; height: 12px; filter: drop-shadow(0 0 6px var(--green)); }

/* --- layout ------------------------------------------------------------------------------------- */
main { max-width: 1160px; margin: 0 auto; padding: 0 16px 40px; }
.panel {
  margin-top: 28px; padding: 26px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255, 213, 122, .07) inset, 0 20px 40px rgba(0, 0, 0, .35);
  position: relative;
}
.panel::before { /* gold corner trim */
  content: ""; position: absolute; inset: 6px; border-radius: 10px; pointer-events: none;
  border: 1px solid rgba(232, 182, 76, .10);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.tag { font-size: 13px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); padding: 4px 10px; border-radius: 999px; }
.grid-2 { align-items: start; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; }
.grid-2 > .panel, .stack > .panel:first-child { margin-top: 28px; }
.stack { display: flex; flex-direction: column; }
.empty, .hint { color: var(--muted); font-size: 14px; margin: 10px 0 0; }

/* --- hero --------------------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  margin-top: 24px; padding: 64px 48px;
  border-radius: 20px; border: 1px solid var(--line-2);
  min-height: 420px; display: flex; align-items: center;
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(12, 9, 5, .94) 0%, rgba(12, 9, 5, .78) 45%, rgba(12, 9, 5, .25) 100%); }
.hero-inner { position: relative; z-index: 1; max-width: 620px; }
.eyebrow { margin: 0 0 10px; color: var(--gold); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-size: 14px; }
.hero h1 { font-size: clamp(48px, 8vw, 84px); color: #fff; text-shadow: 0 4px 24px rgba(0, 0, 0, .6); }
.season { display: block; font-size: .45em; color: var(--gold-2); letter-spacing: 3px; }
.lead { font-size: 18px; color: #e6dac2; margin: 18px 0 28px; max-width: 540px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.crest {
  position: absolute; z-index: 1; right: 48px; top: 50%; transform: translateY(-50%) rotate(-4deg);
  width: 150px; height: 150px; border-radius: 22px; object-fit: cover;
  border: 3px solid var(--gold); box-shadow: 0 0 0 6px rgba(232, 182, 76, .18), 0 20px 40px rgba(0, 0, 0, .5);
}

/* --- quests ------------------------------------------------------------------------------------- */
.xp { display: flex; align-items: center; gap: 12px; flex: 1; justify-content: flex-end; min-width: 260px; }
.lvl { font-weight: 700; color: var(--muted); white-space: nowrap; }
.lvl b { color: var(--gold-2); font-size: 20px; }
.xpbar { flex: 1; max-width: 280px; height: 14px; border-radius: 999px; background: #0f0c08; border: 1px solid var(--line-2); overflow: hidden; }
#xpfill { height: 100%; width: 0; background: linear-gradient(90deg, #8a5d14, var(--gold), var(--gold-2)); box-shadow: 0 0 12px rgba(255, 213, 122, .6); transition: width .6s cubic-bezier(.2, .9, .3, 1.2); }
.xpnum { font-size: 14px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.xpnum b { color: var(--text); }
.quest-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.quest a {
  display: grid; grid-template-columns: 26px minmax(0, 1fr); grid-template-areas: "check text" ". xp"; align-items: center; column-gap: 12px; row-gap: 6px; height: 100%;
  padding: 14px; border-radius: 12px; text-decoration: none; color: var(--text);
  background: #18130d; border: 1px solid var(--line);
  transition: border-color .15s, transform .15s, background .15s;
}
.quest a:hover { border-color: var(--gold); transform: translateY(-2px); }
.check { grid-area: check; width: 26px; height: 26px; flex: none; border-radius: 7px; border: 2px solid var(--line-2); display: grid; place-items: center; }
.q-text { grid-area: text; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.q-text b { font-size: 16px; }
.q-text small { color: var(--muted); font-size: 14px; line-height: 1.35; }
.q-xp { grid-area: xp; justify-self: start; padding: 1px 8px; border-radius: 6px; background: rgba(232, 182, 76, .12); font-weight: 800; color: var(--gold); font-size: 14px; white-space: nowrap; }
.quest.done a { background: linear-gradient(180deg, #1f2a17, #17200f); border-color: #3f6a2c; }
.quest.done .check { background: var(--green); border-color: var(--green); }
.quest.done .check::after { content: ""; width: 7px; height: 12px; border: solid #0d1a08; border-width: 0 3px 3px 0; transform: translateY(-1px) rotate(45deg); }
.quest.done .q-text b { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .35); }
.quest.done .q-xp { color: var(--green); }

/* --- leaderboard -------------------------------------------------------------------------------- */
.leaders { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.leader {
  display: grid; grid-template-columns: 34px 30px minmax(0, 1fr) 90px 60px; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 12px; background: #18130d; border: 1px solid var(--line);
}
.rank { font: 800 22px var(--display); color: var(--muted); text-align: center; }
.r1 { background: linear-gradient(90deg, rgba(232, 182, 76, .22), #18130d 70%); border-color: rgba(232, 182, 76, .55); }
.r2 { background: linear-gradient(90deg, rgba(185, 195, 207, .16), #18130d 70%); }
.r3 { background: linear-gradient(90deg, rgba(176, 122, 69, .18), #18130d 70%); }
.r1 .rank { color: var(--gold-2); font-size: 28px; }
.r2 .rank { color: #d9e1ea; font-size: 25px; }
.r3 .rank { color: #d39a62; font-size: 24px; }
.who { display: flex; flex-direction: column; min-width: 0; }
.who b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { color: var(--muted); font-size: 13px; }
.wr { height: 8px; border-radius: 999px; background: #0f0c08; overflow: hidden; border: 1px solid var(--line); }
.wr span { display: block; height: 100%; background: linear-gradient(90deg, #3f6a2c, var(--green)); }
.elo { font: 800 20px var(--body); text-align: right; font-variant-numeric: tabular-nums; color: var(--gold-2); }
.badge { /* a little heraldic shield coloured by age */
  --c: var(--t-dark);
  width: 26px; height: 30px; display: inline-block; flex: none;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 100%, #fff 25%), var(--c) 55%, color-mix(in srgb, var(--c) 70%, #000));
  clip-path: polygon(50% 0, 100% 14%, 100% 55%, 50% 100%, 0 55%, 0 14%);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5));
}
.tier-dark { --c: var(--t-dark); } .tier-feudal { --c: var(--t-feudal); } .tier-castle { --c: var(--t-castle); }
.tier-imperial { --c: var(--t-imperial); } .tier-king { --c: var(--t-king); } .tier-legend { --c: var(--t-legend); }
.tiers { list-style: none; padding: 16px 0 0; margin: 18px 0 0; border-top: 1px dashed var(--line-2); display: flex; flex-wrap: wrap; gap: 10px 18px; }
.tiers li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.tiers .badge { width: 16px; height: 19px; }
.tiers small { color: var(--muted); font-weight: 400; }

/* --- titles ------------------------------------------------------------------------------------- */
.titles { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.title { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: #18130d; border: 1px solid var(--line); }
.title > span:last-child { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; flex: 1; min-width: 0; }
.title small { grid-column: 1 / -1; color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: .5px; text-transform: uppercase; }
.title b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.title em { font-style: normal; color: var(--muted); font-size: 14px; align-self: center; }
.medal { width: 38px; height: 38px; flex: none; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 35% 30%, var(--gold-2), var(--gold) 45%, var(--gold-deep)); box-shadow: 0 0 0 3px #3b2c15, 0 4px 10px rgba(0, 0, 0, .5); }
.medal::after { content: "★"; position: absolute; inset: 0; display: grid; place-items: center; color: #4a300a; font-size: 18px; }
.t-grind .medal { background: radial-gradient(circle at 35% 30%, #ffb199, var(--red) 50%, #7a2416); }
.t-grind .medal::after { content: "⚔"; color: #3a0f08; }
.t-winrate .medal { background: radial-gradient(circle at 35% 30%, #b8f0b0, var(--green) 50%, #2d5a28); }
.t-winrate .medal::after { content: "✦"; color: #10260c; }

/* --- battles ------------------------------------------------------------------------------------ */
.battles { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.battle { padding: 12px 14px; border-radius: 12px; background: #18130d; border: 1px solid var(--line); }
.b-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.mvp { color: var(--gold); font-weight: 700; }
.b-sides { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; }
.vs { font: 800 18px var(--display); color: var(--red); }
.side { font-size: 14px; padding: 8px 10px; border-radius: 9px; background: #120e09; border: 1px solid var(--line); min-width: 0; }
.side .names { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side.won { border-color: rgba(95, 174, 90, .6); background: linear-gradient(180deg, #1b2614, #121a0d); }
.crown { display: inline-block; font-size: 12px; font-weight: 800; color: #0d1a08; background: var(--green); border-radius: 6px; padding: 0 7px; margin-bottom: 3px; letter-spacing: .4px; text-transform: uppercase; }

/* --- FAQ ---------------------------------------------------------------------------------------- */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 12px; background: #18130d; border: 1px solid var(--line); overflow: hidden; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 14px; padding: 15px 18px; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--gold); font-size: 24px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.num { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 8px; background: #2c2318; border: 1px solid var(--line-2); color: var(--gold-2); font: 800 16px var(--body); }
.answer { padding: 0 18px 18px 62px; color: #e3d7bf; }
.answer p { margin: 0 0 12px; }
.answer ul { margin: 0 0 12px; padding-left: 20px; }
.answer img { border-radius: 10px; border: 1px solid var(--line); margin: 4px 0 14px; max-height: 420px; width: auto; }

/* --- gallery ------------------------------------------------------------------------------------ */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.gallery a { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery a:hover img { transform: scale(1.06); }
.gallery span { position: absolute; inset: auto 0 0; padding: 18px 10px 8px; font-size: 13px; font-weight: 600; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quote { margin: 22px 0 0; text-align: center; font: 800 26px var(--display); color: var(--gold-2); }
.quote cite { display: block; font: 500 14px var(--body); color: var(--muted); margin-top: 4px; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(5, 4, 2, .92); }
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.lightbox img { max-height: 82vh; max-width: 100%; border-radius: 10px; }
.lightbox figcaption { color: var(--text); font-weight: 600; }
.lb-close, .lb-nav { background: rgba(0, 0, 0, .5); color: #fff; border: 1px solid var(--line-2); border-radius: 50%; width: 48px; height: 48px; font-size: 28px; cursor: pointer; justify-self: center; }
.lb-close { position: fixed; top: 16px; right: 16px; }

/* --- final call + footer ------------------------------------------------------------------------ */
.final { margin-top: 28px; padding: 44px 24px; text-align: center; border-radius: 20px; border: 1px solid var(--line-2);
  background: radial-gradient(600px 200px at 50% 0%, rgba(232, 182, 76, .18), transparent), var(--panel); }
.final h2 { font-size: 40px; margin-bottom: 22px; }
.final .cta { justify-content: center; }
.footer { border-top: 1px solid var(--line); padding: 26px 16px 34px; text-align: center; color: var(--muted); font-size: 14px; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 10px; }
.footer a { color: var(--text); text-decoration: none; font-weight: 600; }
.footer a:hover { color: var(--gold-2); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 50;
  padding: 12px 20px; border-radius: 12px; font-weight: 700; color: #1a1206;
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  visibility: hidden; transition: transform .35s cubic-bezier(.2, .9, .3, 1.3), visibility 0s .35s; }
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .35s cubic-bezier(.2, .9, .3, 1.3); }

:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }

/* --- responsive --------------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .crest { display: none; }
}
@media (max-width: 760px) {
  .topbar { gap: 12px; }
  .topbar nav { display: none; }
  .brand { margin-right: auto; font-size: 21px; }
  .resbar { gap: 4px 16px; }
  .res span { display: none; }
  .hero { padding: 40px 22px; min-height: 0; border-radius: 16px; }
  .hero::after { background: linear-gradient(180deg, rgba(12, 9, 5, .75), rgba(12, 9, 5, .95)); }
  .lead { font-size: 16px; }
  .btn { padding: 13px 18px; font-size: 16px; }
  .cta .btn { flex: 1 1 auto; justify-content: center; }
  .panel { padding: 18px 16px; }
  h2 { font-size: 26px; }
  .xp { min-width: 0; flex: 1 1 100%; justify-content: flex-start; }
  .xpbar { max-width: none; }
  .leader { grid-template-columns: 26px 24px minmax(0, 1fr) 52px; gap: 8px; padding: 10px; }
  .leader .wr { display: none; }
  .answer { padding: 0 16px 16px; }
  .faq summary { font-size: 16px; padding: 14px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lightbox[open] { grid-template-columns: 44px 1fr 44px; }
  .lb-nav { width: 38px; height: 38px; font-size: 22px; }
  .b-sides { grid-template-columns: minmax(0, 1fr); }
  .vs { text-align: center; font-size: 15px; }
  .final h2 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
