/* War of Nations — the public website (server/site). One stylesheet for every page; the game's look: dark navy,
   gold, fire orange, steel; Chakra Petch for headings, Barlow for text. */
:root {
  --bg: #04070f;
  --bg2: #070e1c;
  --panel: rgba(10, 19, 36, 0.92);
  --panel2: rgba(14, 26, 48, 0.9);
  --line: #1c2b45;
  --line2: rgba(28, 43, 69, 0.65);
  --gold: #ffc22e;
  --gold2: #ffe07a;
  --fire: #ff6a12;
  --fire2: #ffb32e;
  --steel: #a9b7ca;
  --text: #dfe7f2;
  --muted: #8d9bb2;
  --green: #3ddc84;
  --red: #ff4a3a;
  --blue: #4aa8ff;
  --head: 'Chakra Petch', 'Barlow', system-ui, sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1280px;
  --gut: 32px;
  --radius: 16px;
  color-scheme: dark;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font: 16px/1.55 var(--body);
  background: linear-gradient(180deg, rgba(4, 7, 15, 0) 0, rgba(4, 7, 15, 0) 520px, var(--bg) 1000px), url(/ui/bg-texture.webp) top center / 1920px auto no-repeat, var(--bg);
  overflow-x: hidden;
}
main {
  flex: 1;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.ic {
  flex: none;
  display: inline-block;
  vertical-align: middle;
}
.sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--gold);
  color: #1d1300;
  font: 700 14px var(--head);
}
.skip:focus {
  top: 12px;
}
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gut));
  margin: 0 auto;
  padding: 0 var(--gut);
}
.wrap.narrow {
  max-width: calc(880px + 2 * var(--gut));
}
.center {
  text-align: center;
}
.grow {
  flex: 1;
}

/* ---------- buttons, pills, small labels ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 20px;
  border-radius: 11px;
  border: 0;
  font: 700 14px var(--head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
}
.btn.gold {
  color: #241600;
  background: linear-gradient(180deg, var(--gold2), var(--gold) 55%, #e59a0c);
  box-shadow: 0 6px 22px rgba(255, 170, 30, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.btn.gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(255, 150, 20, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn.ghost {
  color: #fff;
  background: rgba(8, 16, 30, 0.55);
  border: 1px solid rgba(169, 183, 202, 0.35);
}
.btn.ghost:hover {
  border-color: var(--gold);
  color: var(--gold2);
}
.btn.big {
  height: 56px;
  padding: 0 28px;
  font-size: 16px;
  border-radius: 13px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 40px;
  font: 700 13px var(--head);
  letter-spacing: 0.05em;
  color: var(--steel);
  background: rgba(6, 12, 24, 0.6);
  white-space: nowrap;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  flex: none;
}
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 700 13px var(--head);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.kicker i {
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--fire), var(--gold));
  flex: none;
}
.eyebrow {
  font: 700 13px var(--head);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.h2 {
  margin: 8px 0 28px;
  font: 700 clamp(28px, 3.2vw, 40px) / 1.1 var(--head);
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.01em;
}
.h2.small {
  margin: 44px 0 18px;
  font-size: clamp(22px, 2.2vw, 28px);
}
.lead {
  margin: 0 0 26px;
  color: #c9d5e4;
  font-size: 19px;
  line-height: 1.55;
}
.empty {
  margin: 0;
  padding: 18px 0 6px;
  color: var(--muted);
  font-size: 15px;
}
.empty.big {
  padding: 50px 20px;
  text-align: center;
  font-size: 17px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font: 700 13px var(--head);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.more-link:hover {
  color: var(--gold2);
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font: 700 12px var(--head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}
.back:hover {
  color: var(--gold);
}
/* a player's country: the game's little flag (public/site/flags), with the game's frame */
img.cflag,
.c-player img.cflag {
  display: inline-block;
  width: 20px;
  height: 13px;
  margin: 0 0 0 7px;
  border: 0;
  border-radius: 3px;
  object-fit: fill;
  box-shadow:
    0 0 0 1px #ffffff33,
    0 2px 4px #0008;
  vertical-align: -1px;
}
/* the rating list: the size of the game's own list */
.c-player img.cflag {
  width: 26px;
  height: 17px;
  margin-left: 9px;
  vertical-align: -2px;
}
.pcountry img.cflag {
  width: 26px;
  height: 17px;
  margin: 0 7px 0 0;
  vertical-align: -3px;
}
img.league {
  flex: none;
  object-fit: contain;
}

/* ---------- navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(4, 8, 16, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 106, 18, 0.55) 30%, rgba(255, 194, 46, 0.7) 50%, rgba(255, 106, 18, 0.55) 70%, transparent);
  opacity: 0.6;
}
.nav-in {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 74px;
  max-width: calc(var(--wrap) + 2 * var(--gut));
  margin: 0 auto;
  padding: 0 var(--gut);
}
.brand {
  display: flex;
  align-items: center;
  flex: none;
}
.brand-logo {
  display: block;
  width: auto;
  height: 42px;
}
.links {
  display: flex;
  align-items: center;
  gap: 2px;
  font: 700 14px var(--head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b9c7da;
}
.links > a {
  padding: 9px 13px;
  border-radius: 10px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.links > a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.links > a.on {
  color: var(--gold);
  background: rgba(255, 194, 46, 0.11);
  box-shadow: inset 0 -2px 0 var(--gold);
}
.menu-foot {
  display: none;
}
.nav-side {
  display: flex;
  align-items: center;
  gap: 12px;
}
.me {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 14px 0 5px;
  border: 1px solid var(--line);
  border-radius: 40px;
  font: 700 14px var(--head);
  color: #fff;
  max-width: 220px;
}
.me img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}
.me span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.me:hover {
  border-color: var(--gold);
}
.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 16, 30, 0.7);
  cursor: pointer;
  position: relative;
  flex: none;
}
.burger span,
.burger span::before,
.burger span::after {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.2s, top 0.2s, opacity 0.2s;
}
.burger span {
  top: 21px;
}
.burger span::before,
.burger span::after {
  content: '';
  left: 0;
}
.burger span::before {
  top: -7px;
}
.burger span::after {
  top: 7px;
}
.nav.open .burger span {
  background: transparent;
}
.nav.open .burger span::before {
  top: 0;
  transform: rotate(45deg);
}
.nav.open .burger span::after {
  top: 0;
  transform: rotate(-45deg);
}
/* the language menu: a flag and the code in the bar, the four languages below it */
.flag {
  display: block;
  flex: none;
  border-radius: 3px;
  box-shadow:
    0 0 0 1px #ffffff33,
    0 2px 4px #0008;
}
.langsw {
  position: relative;
  flex: none;
}
.langsw summary {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 11px 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(8, 16, 30, 0.55);
  font: 700 13px var(--head);
  letter-spacing: 0.08em;
  color: #dfe7f2;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: border-color 0.15s, color 0.15s;
}
.langsw summary::-webkit-details-marker {
  display: none;
}
.langsw summary:hover,
.langsw[open] summary {
  border-color: var(--gold);
  color: var(--gold2);
}
.langsw .caret {
  color: var(--steel);
  transition: transform 0.15s;
}
.langsw[open] .caret {
  transform: rotate(180deg);
}
.langlist {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  display: flex;
  flex-direction: column;
  min-width: 190px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #060a14;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6);
}
.langlist a,
.menu-langs a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 9px;
  font: 600 15px var(--body);
  color: #dfe7f2;
  white-space: nowrap;
}
.langlist a:hover,
.menu-langs a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.langlist a.on,
.menu-langs a.on {
  color: var(--gold);
  background: rgba(255, 194, 46, 0.1);
}
.menu-langs {
  display: none;
}

/* ---------- footer ---------- */
.foot {
  margin-top: 90px;
  padding: 44px 0 34px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(6, 11, 22, 0.6), rgba(3, 5, 10, 0.95));
  color: var(--muted);
  font-size: 15px;
}
.foot-in {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
}
.foot-logo {
  display: block;
  width: auto;
  height: 128px;
  margin: -10px 0 12px;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.6));
}
.foot-brand p {
  margin: 0 0 6px;
  max-width: 340px;
}
.foot .copy {
  margin-top: 14px;
  font-size: 13px;
  color: #69778f;
}
.foot h2 {
  margin: 4px 0 12px;
  font: 700 13px var(--head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}
.foot a:not(.foot-brand a) {
  display: block;
  padding: 3px 0;
}
.foot a:hover {
  color: var(--gold);
}

/* ---------- home: hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url(/ui/bg-battle.webp) 72% 40% / cover no-repeat;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 7, 15, 0.97) 0%, rgba(4, 7, 15, 0.86) 34%, rgba(4, 7, 15, 0.28) 62%, rgba(4, 7, 15, 0.05) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(4, 7, 15, 0) 32%),
    linear-gradient(180deg, rgba(4, 7, 15, 0.55) 0%, rgba(4, 7, 15, 0) 22%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 194, 46, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 194, 46, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 55%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 55%);
}
.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 40px;
  align-items: center;
  min-height: 600px;
  padding-top: 64px;
  padding-bottom: 110px;
}
.hero h1 {
  margin: 18px 0 18px;
  font: 700 clamp(40px, 5vw, 66px) / 1.02 var(--head);
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(180deg, var(--gold2), var(--gold) 45%, var(--fire));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  max-width: 560px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.mini {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  margin: 30px 0 0;
}
.mini div {
  display: flex;
  flex-direction: column;
}
.mini dd {
  margin: 0;
  font: 700 26px/1.1 var(--head);
  color: #fff;
}
.mini dt {
  color: var(--muted);
  font-size: 14px;
}
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-art::before {
  content: '';
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 140, 30, 0.35), rgba(255, 106, 18, 0.12) 55%, transparent 75%);
  filter: blur(6px);
}
.emblem {
  position: relative;
  width: min(100%, 500px);
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 30px rgba(255, 150, 40, 0.25));
  animation: rise 0.9s ease-out both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
}
.badge {
  position: absolute;
  right: 4%;
  bottom: -6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 40px;
  border: 1px solid var(--line);
  background: rgba(4, 8, 16, 0.88);
  font: 700 12px var(--head);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}
.badge .ic {
  color: var(--gold);
}

/* ---------- home: the live dashboard ---------- */
.dash {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 20px;
  margin-top: -64px;
}
.panel {
  min-width: 0;
  padding: 18px 20px 12px;
  /* the three live panels keep one size; longer lists scroll inside (.plist) */
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(170deg, rgba(14, 25, 46, 0.97), rgba(7, 13, 26, 0.97));
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}
.ph {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font: 700 16px var(--head);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}
.ph .ic {
  color: var(--gold);
}
.ph .r {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gold);
  white-space: nowrap;
}
.ph .r:hover {
  color: var(--gold2);
}
.live-tag {
  padding: 2px 8px;
  border-radius: 5px;
  font: 700 11px var(--head);
  letter-spacing: 0.12em;
  color: #fff;
  background: var(--red);
  box-shadow: 0 0 14px rgba(255, 74, 58, 0.5);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  50% {
    opacity: 0.65;
  }
}
.game {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line2);
}
.game .mp {
  width: 72px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0b1628;
}
.gi b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 700 15px var(--head);
  color: #fff;
}
.gi span {
  font-size: 13px;
  color: var(--muted);
}
.gi em {
  font-style: normal;
  color: var(--fire2);
}
.watch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font: 700 12px var(--head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d4e0ee;
}
.watch:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.pl {
  display: grid;
  grid-template-columns: 30px 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--line2);
}
.pl:hover .pn b {
  color: var(--gold);
}
.medal {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.placeno {
  font: 700 15px var(--head);
  color: var(--muted);
  text-align: center;
}
.pl .av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #2a3c5c;
  background: #0b1628;
}
.pn {
  min-width: 0;
}
.pn b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
}
.pn small {
  color: var(--muted);
  font-size: 12px;
}
.rt {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 700 17px var(--head);
  color: var(--gold);
}
.nw {
  display: block;
  padding: 10px 0;
  border-top: 1px solid var(--line2);
}
.nw .d {
  font: 700 11px var(--head);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.nw b {
  display: block;
  margin: 2px 0;
  font: 700 16px/1.3 var(--head);
  color: #fff;
}
.nw:hover b {
  color: var(--gold2);
}
.nw span:last-child {
  display: block;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- home: sections ---------- */
.sec {
  padding-top: 90px;
}
.feats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.ft {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(16, 29, 54, 0.9), rgba(7, 14, 27, 0.9));
  transition: border-color 0.2s, transform 0.2s;
}
.ft:hover {
  border-color: rgba(255, 194, 46, 0.45);
  transform: translateY(-2px);
}
.ft .ic {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--gold);
  background: radial-gradient(circle at 50% 30%, rgba(255, 170, 40, 0.22), rgba(255, 106, 18, 0.06));
  border: 1px solid rgba(255, 194, 46, 0.35);
}
.ft .ic svg {
  width: 26px;
  height: 26px;
}
.ft h3 {
  margin: 2px 0 4px;
  font: 700 18px var(--head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}
.ft p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.season {
  position: relative;
  margin-top: 90px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  padding: 42px 48px;
  border: 1px solid #4a3812;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(100deg, rgba(40, 22, 2, 0.94), rgba(16, 14, 22, 0.94) 55%, rgba(8, 14, 28, 0.9)), url(/ui/bg-battle.webp) 80% 50% / cover;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}
.season .h2 {
  margin: 8px 0 10px;
}
.season p {
  max-width: 560px;
  margin: 0 0 22px;
  color: #dccba2;
  font-size: 17px;
}
.leagues {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.leagues li {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 78px;
  text-align: center;
}
.leagues img {
  width: 70px;
  height: 70px;
  margin-bottom: 6px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6));
}
.leagues b {
  font: 700 12px var(--head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f1dfb0;
}
.leagues small {
  font: 600 12px var(--head);
  color: #a99c7a;
}
.two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}
.gl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.gtile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 160px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  isolation: isolate;
  transition: border-color 0.2s, transform 0.2s;
}
.gtile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(4, 8, 16, 0.97) 12%, rgba(4, 8, 16, 0.55) 55%, rgba(4, 8, 16, 0.1));
}
.gtile b {
  font: 700 17px var(--head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}
.gtile span {
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.4;
  color: #b4c1d3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gtile:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.gl.big {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}
.gl.big .gtile {
  grid-column: span 2;
}
/* five guides: three on the first row, two wider ones on the second */
.gl.big .gtile:nth-child(4):nth-last-child(2),
.gl.big .gtile:nth-child(5):last-child {
  grid-column: span 3;
}
.gl.big .gtile {
  min-height: 240px;
  padding: 22px;
}
.gl.big .gtile b {
  font-size: 21px;
}
.gl.big .gtile span {
  font-size: 15px;
  -webkit-line-clamp: 3;
}

/* the FAQ accordion (also on the FAQ page) */
.faq {
  display: grid;
  gap: 10px;
  align-content: start;
}
.qa {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(10, 19, 36, 0.85);
  transition: border-color 0.2s;
}
.qa[open] {
  border-color: rgba(255, 194, 46, 0.4);
}
.qa summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  font: 700 16px/1.35 var(--head);
  color: #fff;
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa summary::after {
  content: '+';
  margin-left: auto;
  font: 700 22px/1 var(--head);
  color: var(--gold);
  transition: transform 0.2s;
}
.qa[open] summary::after {
  content: '–';
}
.ans {
  padding: 0 18px 14px;
  color: #b7c4d6;
  font-size: 15px;
}
.ans p {
  margin: 0 0 8px;
}
.ans a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* the final call */
.cta {
  position: relative;
  margin-top: 100px;
  padding: 70px 0;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
  background: linear-gradient(180deg, rgba(4, 7, 15, 0.82), rgba(4, 7, 15, 0.92)), url(/ui/bg-battle.webp) 70% 55% / cover;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(50% 90% at 50% 100%, rgba(255, 106, 18, 0.28), transparent 70%);
}
.cta .h2 {
  margin: 8px 0 26px;
}
.home .foot {
  margin-top: 0;
}

/* ---------- page heading band ---------- */
.phead {
  position: relative;
  padding: 58px 0 46px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(90deg, rgba(4, 7, 15, 0.97) 30%, rgba(4, 7, 15, 0.7) 70%, rgba(4, 7, 15, 0.45)), url(/ui/bg-battle.webp) 80% 45% / cover;
}
.phead::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  z-index: -1;
  background: linear-gradient(0deg, rgba(4, 7, 15, 0.9), transparent);
}
.phead h1 {
  margin: 14px 0 10px;
  font: 700 clamp(34px, 4.2vw, 54px) / 1.05 var(--head);
  text-transform: uppercase;
  color: #fff;
}
.phead .lead {
  max-width: 720px;
  margin: 0;
}
.phead .rss {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font: 700 12px var(--head);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fire2);
}
.phead.guide {
  background: linear-gradient(90deg, rgba(4, 7, 15, 0.97) 35%, rgba(4, 7, 15, 0.75) 70%, rgba(4, 7, 15, 0.5)), var(--art) 80% 40% / cover;
}
.pagebody {
  padding-top: 36px;
}

/* tabs and chips */
.tabs,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tab,
.chip {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: 700 13px var(--head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b9c7da;
  background: rgba(8, 15, 29, 0.7);
  white-space: nowrap;
}
.chip {
  height: 36px;
  border-radius: 30px;
}
.tab:hover,
.chip:hover {
  color: #fff;
  border-color: #33486b;
}
.tab.on,
.chip.on {
  color: #241600;
  border-color: transparent;
  background: linear-gradient(180deg, var(--gold2), var(--gold));
}
.chips {
  margin-bottom: 26px;
}

/* ---------- news ---------- */
.ngrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.ncard {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  transition: border-color 0.2s, transform 0.2s;
}
.ncard:hover {
  border-color: rgba(255, 194, 46, 0.5);
  transform: translateY(-2px);
}
.ncover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #0b1628 center / cover no-repeat;
}
.pin {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 3px 9px;
  border-radius: 6px;
  font: 700 11px var(--head);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #241600;
  background: var(--gold);
}
.nbody {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 20px 18px;
}
.nbody .d {
  font: 700 11px var(--head);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.nbody .d em {
  font-style: normal;
  color: var(--gold);
}
.nbody b {
  margin: 6px 0 6px;
  font: 700 20px/1.25 var(--head);
  color: #fff;
}
.nbody .sum {
  flex: 1;
  color: #aebbcd;
  font-size: 15px;
}
.nbody .more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font: 700 12px var(--head);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.ncard.big {
  grid-column: 1 / -1;
  flex-direction: row;
}
.ncard.big .ncover {
  flex: 0 0 58%;
  aspect-ratio: auto;
  min-height: 320px;
}
.ncard.big .nbody {
  justify-content: center;
  padding: 30px 34px;
}
.ncard.big b {
  font-size: 30px;
}
.ncard.big .sum {
  flex: none;
  font-size: 17px;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
  color: var(--muted);
  font: 600 14px var(--head);
}
.preview-bar {
  padding: 12px var(--gut);
  text-align: center;
  font: 700 14px var(--head);
  color: #241600;
  background: repeating-linear-gradient(135deg, var(--gold), var(--gold) 16px, #ffd35c 16px, #ffd35c 32px);
}
.ahead {
  position: relative;
  padding: 60px 0 46px;
  border-bottom: 1px solid var(--line);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.ahead::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, var(--bg) 0%, rgba(4, 7, 15, 0.86) 45%, rgba(4, 7, 15, 0.7));
}
.ahead .d {
  font: 700 13px var(--head);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.ahead .d em {
  font-style: normal;
  color: var(--gold);
}
.ahead h1 {
  margin: 10px 0 12px;
  font: 700 clamp(30px, 4vw, 48px) / 1.1 var(--head);
  color: #fff;
}
.ahead .lead {
  margin: 0;
}

/* long text: news bodies, guides, legal pages */
.prose {
  padding-top: 30px;
  font-size: 17px;
  line-height: 1.7;
  color: #cfd9e6;
}
.prose > :first-child {
  margin-top: 0;
}
.prose h2 {
  margin: 38px 0 12px;
  font: 700 26px/1.2 var(--head);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
}
.prose h3 {
  margin: 28px 0 10px;
  font: 700 20px/1.25 var(--head);
  color: #fff;
}
.prose p {
  margin: 0 0 16px;
}
.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 24px;
}
.prose li {
  margin-bottom: 7px;
}
.prose li::marker {
  color: var(--gold);
  font-weight: 700;
}
.prose strong {
  color: #fff;
}
.prose a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(255, 194, 46, 0.4);
  text-underline-offset: 3px;
}
.prose a:hover {
  text-decoration-color: var(--gold);
}
.prose figure {
  margin: 24px 0;
}
.prose figure img {
  display: block;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.prose figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}
.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.share b {
  margin-right: 6px;
  font: 700 13px var(--head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.share a,
.share button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 30px;
  font: 600 14px var(--body);
  color: #c6d2e2;
  background: rgba(8, 15, 29, 0.7);
  cursor: pointer;
}
.share a:hover,
.share button:hover {
  border-color: var(--gold);
  color: var(--gold);
}
html:not(.js) .share .copy {
  display: none;
}
.ngrid.three .ncard .nbody b {
  font-size: 18px;
}

/* ---------- leaderboard and player ---------- */
.boardbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 4px 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 15, 29, 0.85);
  color: var(--muted);
}
.search:focus-within {
  border-color: var(--gold);
}
.search input {
  width: 210px;
  min-width: 0;
  height: 40px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: 500 15px var(--body);
}
.search input::placeholder {
  color: #6f7e96;
}
.search .btn {
  height: 36px;
  padding: 0 14px;
  font-size: 12px;
}
.search .clear {
  padding: 0 8px;
  font-size: 13px;
  color: var(--steel);
  text-decoration: underline;
}
.info {
  margin: 18px 0 14px;
  color: var(--muted);
  font-size: 15px;
}
.found {
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 194, 46, 0.35);
  border-radius: 12px;
  background: rgba(255, 194, 46, 0.07);
  color: #f3e3b8;
}
.found a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  font: 700 13px var(--head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}
.tablewrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
table {
  border-collapse: collapse;
}
.board {
  width: 100%;
  min-width: 640px;
  font-size: 15px;
}
.board th {
  padding: 13px 14px;
  text-align: left;
  font: 700 12px var(--head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: rgba(4, 8, 16, 0.5);
}
.board td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--line2);
  vertical-align: middle;
}
.board tbody tr:last-child td {
  border-bottom: 0;
}
.board tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}
.board .c-num {
  text-align: right;
  font: 600 15px var(--head);
  white-space: nowrap;
}
.board th.c-num {
  text-align: right;
  font: 700 12px var(--head);
}
.c-place {
  width: 60px;
  text-align: center !important;
}
.c-place .placeno {
  display: block;
}
.c-player a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.c-player img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #2a3c5c;
  flex: none;
}
.c-player b {
  color: #fff;
  font-weight: 700;
}
.c-player a:hover b {
  color: var(--gold);
}
.c-league {
  white-space: nowrap;
}
.c-league img,
.c-league span {
  vertical-align: middle;
}
.c-league span {
  margin-left: 6px;
  font: 600 14px var(--head);
  color: #c3cfde;
}
.c-rating b {
  font-size: 17px;
  color: var(--gold);
}
.c-rating small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.board tr.top1 td {
  background: rgba(255, 194, 46, 0.075);
}
.board tr.top2 td {
  background: rgba(200, 214, 230, 0.05);
}
.board tr.top3 td {
  background: rgba(208, 138, 82, 0.06);
}
.board tr.top1 td:first-child {
  box-shadow: inset 3px 0 0 var(--gold);
}
.board tr.top2 td:first-child {
  box-shadow: inset 3px 0 0 #c9d3df;
}
.board tr.top3 td:first-child {
  box-shadow: inset 3px 0 0 #d08a52;
}
.phead.player {
  padding: 48px 0 40px;
}
.pcard {
  display: flex;
  align-items: center;
  gap: 28px;
}
.pav {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(255, 194, 46, 0.12), 0 18px 40px rgba(0, 0, 0, 0.6);
  flex: none;
  background: #0b1628;
}
.pmain {
  min-width: 0;
}
.pmain h1 {
  margin: 8px 0 8px;
  overflow-wrap: anywhere;
  text-transform: none;
}
.pmeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
}
.pmeta b {
  color: #fff;
  font: 700 16px var(--head);
}
.stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}
.stats div {
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.stats dt {
  font: 700 12px var(--head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.stats dd {
  margin: 4px 0 0;
  font: 700 28px/1.1 var(--head);
  color: #fff;
}
.stats div:first-child dd {
  color: var(--gold);
}
.board.recent {
  min-width: 520px;
}
.won {
  color: var(--gold);
}
.up {
  color: var(--green);
}
.down {
  color: var(--red);
}
p.center {
  margin-top: 30px;
}

/* ---------- guides ---------- */
.callout {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 46px;
  padding: 20px 28px 20px 20px;
  border: 1px solid rgba(255, 140, 30, 0.35);
  border-radius: 20px;
  background: linear-gradient(100deg, rgba(48, 22, 4, 0.85), rgba(10, 18, 34, 0.92) 60%);
}
.callout img {
  width: 120px;
  height: 120px;
  flex: none;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.6));
}
.callout div {
  flex: 1;
}
.callout b {
  display: block;
  font: 700 22px var(--head);
  text-transform: uppercase;
  color: #fff;
}
.callout p {
  margin: 4px 0 0;
  color: #cdbf9c;
}
.guide-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.gnav {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 30px;
}
.gnav a {
  padding: 10px 14px;
  border-left: 2px solid var(--line);
  font: 600 15px/1.3 var(--head);
  color: #a9b6c9;
}
.gnav a:hover {
  color: #fff;
}
.gnav a.on {
  border-left-color: var(--gold);
  color: var(--gold);
  background: linear-gradient(90deg, rgba(255, 194, 46, 0.1), transparent);
}
.guide-body {
  max-width: 860px;
}
.nextg {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-top: 40px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  text-decoration: none !important;
}
.nextg small {
  grid-column: 1;
  font: 700 12px var(--head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.nextg b {
  grid-column: 1;
  font: 700 20px var(--head);
  color: #fff;
}
.nextg svg {
  grid-column: 2;
  grid-row: 1 / 3;
  color: var(--gold);
}
.nextg:hover {
  border-color: var(--gold);
}
.gtable {
  width: 100%;
  font-size: 15px;
  line-height: 1.4;
}
.gtable th,
.gtable td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line2);
  text-align: center;
}
.gtable thead th {
  font: 700 13px var(--head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(4, 8, 16, 0.5);
}
.gtable tbody th {
  text-align: left;
  font: 600 15px var(--head);
  color: #fff;
}
.gtable td {
  font: 700 17px var(--head);
  color: var(--gold);
}
.gtable tr:last-child th,
.gtable tr:last-child td {
  border-bottom: 0;
}
.prose .tablewrap {
  margin: 6px 0 12px;
}
.tablewrap:has(> .gtable.ranks) {
  max-width: 440px;
}
.prose .leagues {
  padding: 0;
}
.gtable.ranks td {
  text-align: right;
}
.prose + .note,
.note {
  margin: 4px 0 18px;
  font-size: 15px;
  color: var(--muted);
}
.tip {
  position: relative;
  margin: 22px 0;
  padding: 14px 18px 14px 50px;
  border: 1px solid rgba(255, 194, 46, 0.3);
  border-radius: 12px;
  background: rgba(255, 194, 46, 0.06);
  color: #efe0b6;
  font-size: 16px;
}
.tip::before {
  content: '★';
  position: absolute;
  left: 18px;
  top: 13px;
  color: var(--gold);
  font-size: 18px;
}
.phases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 22px !important;
  padding: 0 !important;
  list-style: none;
}
.phases li {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  line-height: 1.45;
}
.phases .n {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 50%;
  font: 700 17px var(--head);
  color: #241600;
  background: linear-gradient(180deg, var(--gold2), var(--gold));
}
.phases b {
  font: 700 18px var(--head);
  text-transform: uppercase;
  color: #fff;
}
.phases span:last-child {
  font-size: 15px;
  color: #aebbcd;
}
.dice {
  margin: 10px 0 22px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.drow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.who {
  width: 90px;
  font: 700 13px var(--head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.die {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font: 700 22px var(--head);
}
.die.a {
  color: #fff;
  background: linear-gradient(180deg, #ff5a3a, #c22a16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.die.d {
  color: #fff;
  background: linear-gradient(180deg, #4aa8ff, #1a5fc0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.die.dim {
  opacity: 0.35;
}
.dice p {
  margin: 8px 0 0;
  font-size: 15px;
  color: #aebbcd;
}
.sets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 8px !important;
  padding: 0 !important;
  list-style: none;
}
.sets li {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 62px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  line-height: 1.2;
}
.sets small {
  font: 600 12px var(--head);
  color: var(--muted);
}
.sets b {
  font: 700 22px var(--head);
  color: var(--gold);
}
.leagues.inline {
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 22px;
}
.leagues.inline li {
  min-width: 92px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  margin: 0;
  line-height: 1.3;
}
.leagues.inline img {
  width: 56px;
  height: 56px;
}
.leagues.inline b {
  color: #fff;
}
.leagues.inline small {
  color: var(--muted);
}
.regions-all {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 10px 0;
}
.rcard {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.rcard > a {
  display: block;
  text-decoration: none !important;
}
.rcard img {
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #0b1628;
  display: block;
  width: 100%;
  border-radius: 9px;
}
.rcard b {
  display: block;
  margin: 10px 0 4px;
  font: 700 18px var(--head);
  text-transform: uppercase;
  color: #fff;
}
.rtable {
  width: 100%;
  font-size: 15px;
  line-height: 1.35;
}
.rtable th {
  padding: 8px 6px;
  text-align: left;
  font: 700 12px var(--head);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.rtable td {
  padding: 7px 6px;
  border-bottom: 1px solid var(--line2);
  color: #d5deea;
}
.rtable tr:last-child td {
  border-bottom: 0;
}
.rtable .c-num {
  text-align: right;
  font-family: var(--head);
}
.rtable b {
  color: var(--gold);
}
.sw {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 9px;
  border-radius: 3px;
  vertical-align: -1px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3);
}

/* ---------- maps ---------- */
.mgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.mcard {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel);
  transition: border-color 0.2s, transform 0.2s;
}
.mcard:hover {
  border-color: rgba(255, 194, 46, 0.5);
  transform: translateY(-2px);
}
.mcard img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #071021;
  border-bottom: 1px solid var(--line);
}
.mbody {
  display: flex;
  flex-direction: column;
  padding: 18px 22px 20px;
}
.mbody b {
  font: 700 24px var(--head);
  text-transform: uppercase;
  color: #fff;
}
.mstats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 4px 0 8px;
  color: var(--muted);
  font: 600 14px var(--head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mstats em {
  font-style: normal;
  color: var(--gold);
  font-size: 1.15em;
}
.mstats.big {
  margin-top: 16px;
  font-size: 16px;
}
.mbody .sum {
  color: #aebbcd;
  font-size: 15px;
}
.mbody .more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font: 700 12px var(--head);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.mgrid.small {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.mgrid.small .mbody b {
  font-size: 19px;
}
.mgrid.small .sum {
  display: none;
}
.mapbig {
  margin: 0 0 30px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}
.mapbig img {
  display: block;
  width: 100%;
  border-radius: 12px;
}
.mapcols {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: start;
}
.mapcols > div:first-child .h2 {
  margin-top: 0;
}
.mapcols .rtable {
  padding: 4px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  border-collapse: separate;
  border-spacing: 0;
}
.mapcols .rtable th,
.mapcols .rtable td {
  padding-left: 14px;
  padding-right: 14px;
}
.mapcols .tip {
  margin: 18px 0;
}
.regions {
  display: grid;
  gap: 12px;
}
.region {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.region h3 {
  display: flex;
  align-items: center;
  margin: 0 0 6px;
  font: 700 17px var(--head);
  text-transform: uppercase;
  color: #fff;
}
.bonus {
  margin-left: auto;
  padding: 2px 10px;
  border-radius: 20px;
  font: 700 13px var(--head);
  color: #241600;
  background: var(--gold);
  white-space: nowrap;
}
.region p {
  margin: 0;
  font-size: 15px;
  color: #aebbcd;
}

/* ---------- FAQ, legal, 404 ---------- */
.faqlayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}
.contact {
  position: sticky;
  top: 96px;
  padding: 26px;
  border: 1px solid rgba(255, 194, 46, 0.35);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(40, 24, 4, 0.85), rgba(10, 19, 36, 0.92));
}
.contact .ic {
  color: var(--gold);
}
.contact h2 {
  margin: 10px 0 6px;
  font: 700 22px var(--head);
  text-transform: uppercase;
  color: #fff;
}
.contact p {
  margin: 0 0 18px;
  color: #cdbf9c;
}
.contact .btn {
  width: 100%;
  text-transform: none;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
}
.legal {
  padding-top: 24px;
}
.legal h2 {
  font-size: 21px;
}
.nf {
  padding: 120px 0 60px;
  text-align: center;
}
.nf .kicker {
  justify-content: center;
}
.nf h1 {
  margin: 16px 0 12px;
  font: 700 clamp(32px, 5vw, 56px) / 1.05 var(--head);
  text-transform: uppercase;
  color: #fff;
}
.nf .row {
  justify-content: center;
}
.nfpage main {
  background: radial-gradient(60% 60% at 50% 20%, rgba(255, 106, 18, 0.12), transparent 70%);
}

/* ---------- smaller screens ---------- */
@media (max-width: 1360px) {
  .nav-in {
    gap: 12px;
  }
  .links > a {
    padding: 9px 10px;
  }
  .nav-side .pill {
    display: none;
  }
}
@media (max-width: 1180px) {
  :root {
    --gut: 24px;
  }
  .dash {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dash .panel:first-child {
    grid-column: 1 / -1;
  }
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .mgrid.small {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mgrid.small .mcard:last-child {
    display: none;
  }
}
@media (max-width: 1060px) {
  .burger {
    display: block;
  }
  .nav-side .me,
  .nav-side .login {
    display: none;
  }
  .links {
    position: fixed;
    left: 0;
    right: 0;
    top: 74px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-height: calc(100vh - 74px);
    overflow-y: auto;
    padding: 12px var(--gut) 20px;
    background: #060a14;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    font-size: 16px;
  }
  .links > a {
    padding: 14px 14px;
  }
  .links > a.on {
    box-shadow: inset 3px 0 0 var(--gold);
  }
  .menu-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    text-transform: none;
    letter-spacing: 0;
  }
  html.js .nav:not(.open) .links {
    display: none;
  }
  /* the phone menu has the languages inside it; the bar keeps room for the logo, Play and the menu button */
  html.js .langsw {
    display: none;
  }
  html.js .menu-langs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    text-transform: none;
    letter-spacing: 0;
  }
  html:not(.js) .links {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    max-height: none;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    font-size: 13px;
  }
  html:not(.js) .nav-in {
    flex-wrap: wrap;
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  html:not(.js) .burger,
  html:not(.js) .menu-foot {
    display: none;
  }
  .hero-in {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-height: 0;
    padding-top: 30px;
    padding-bottom: 100px;
  }
  .hero-art {
    order: -1;
    margin-bottom: 4px;
  }
  .emblem {
    width: min(64vw, 340px);
  }
  .badge {
    display: none;
  }
  .hero-bg {
    background-position: 78% 50%;
  }
  .hero-bg::before {
    background:
      linear-gradient(180deg, rgba(4, 7, 15, 0.6) 0%, rgba(4, 7, 15, 0.75) 40%, rgba(4, 7, 15, 0.94) 64%, var(--bg) 100%);
  }
  .season {
    grid-template-columns: minmax(0, 1fr);
    padding: 34px 30px;
  }
  .leagues {
    flex-wrap: wrap;
  }
  .two,
  .faqlayout,
  .mapcols {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact {
    position: static;
  }
  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .gnav {
    position: static;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 4px;
    scrollbar-width: thin;
  }
  .gnav a {
    flex: none;
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 8px 14px;
    font-size: 14px;
    white-space: nowrap;
  }
  .gnav a.on {
    border-color: var(--gold);
    background: rgba(255, 194, 46, 0.1);
  }
  .ngrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ngrid.three .ncard:nth-child(3) {
    display: none;
  }
  .ncard.big {
    flex-direction: column;
  }
  .ncard.big .ncover {
    flex: none;
    min-height: 0;
    aspect-ratio: 16 / 8;
  }
  .ncard.big .nbody {
    padding: 22px 24px;
  }
  .ncard.big b {
    font-size: 26px;
  }
  .gl.big {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gl.big .gtile,
  .gl.big .gtile:nth-child(4):nth-last-child(2) {
    grid-column: auto;
  }
  .gl.big .gtile:nth-child(5):last-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 760px) {
  :root {
    --gut: 16px;
  }
  body {
    font-size: 16px;
    background-size: 1200px auto;
  }
  .nav-in {
    height: 62px;
    gap: 10px;
  }
  .links {
    top: 62px;
    max-height: calc(100vh - 62px);
  }
  .brand-logo {
    height: 30px;
  }
  .nav .play {
    height: 40px;
    padding: 0 14px;
    font-size: 13px;
  }
  .burger {
    width: 42px;
    height: 42px;
  }
  .burger span,
  .burger span::before,
  .burger span::after {
    left: 10px;
  }
  .burger span {
    top: 19px;
  }
  .burger span::before {
    left: 0;
  }
  .burger span::after {
    left: 0;
  }
  .lead {
    font-size: 17px;
  }
  .hero h1 {
    font-size: clamp(34px, 10vw, 46px);
  }
  .hero .row .btn {
    flex: 1 1 100%;
  }
  .mini {
    gap: 10px 22px;
  }
  .mini dd {
    font-size: 22px;
  }
  .dash {
    grid-template-columns: minmax(0, 1fr);
    margin-top: -70px;
    gap: 14px;
  }
  .panel {
    padding: 16px 16px 10px;
  }
  .ph {
    font-size: 14px;
    letter-spacing: 0.06em;
  }
  .ph .r {
    font-size: 11px;
  }
  .feats {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .ft {
    padding: 18px;
  }
  .sec {
    padding-top: 64px;
  }
  .season {
    margin-top: 64px;
    padding: 26px 20px;
  }
  .leagues {
    gap: 6px;
    justify-content: space-between;
  }
  .leagues li {
    min-width: 0;
    flex: 1 1 22%;
  }
  .leagues img {
    width: 54px;
    height: 54px;
  }
  .leagues b {
    font-size: 11px;
  }
  .gl,
  .gl.big {
    grid-template-columns: minmax(0, 1fr);
  }
  .gtile,
  .gl.big .gtile {
    min-height: 140px;
  }
  .cta {
    margin-top: 70px;
    padding: 54px 0;
  }
  .foot {
    margin-top: 64px;
  }
  .foot-in {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 20px;
  }
  .foot-brand {
    grid-column: 1 / -1;
  }
  .foot-logo {
    height: 96px;
  }
  .phead {
    padding: 38px 0 30px;
  }
  .phead h1 {
    font-size: clamp(30px, 9vw, 40px);
  }
  .ngrid {
    grid-template-columns: minmax(0, 1fr);
  }
  .ngrid.three .ncard:nth-child(3) {
    display: flex;
  }
  .ncard.big b {
    font-size: 22px;
  }
  .ncard.big .sum {
    font-size: 15px;
  }
  .pager {
    flex-wrap: wrap;
    justify-content: center;
  }
  .ahead {
    padding: 34px 0 28px;
  }
  .prose {
    font-size: 16px;
  }
  .prose h2 {
    font-size: 22px;
  }
  .boardbar {
    align-items: stretch;
  }
  .boardbar .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .tab {
    padding: 0 12px;
    font-size: 12px;
  }
  .search {
    width: 100%;
  }
  .search input {
    flex: 1;
    width: auto;
  }
  /* the leaderboard on a phone: place, player, rating (and wins) — the rest is on the player's page */
  .board:not(.recent) {
    min-width: 0;
  }
  .board:not(.recent) .c-league,
  .board:not(.recent) th:nth-child(5),
  .board:not(.recent) td:nth-child(5),
  .board:not(.recent) .c-rate {
    display: none;
  }
  .board th,
  .board td {
    padding: 8px 8px;
  }
  .c-place {
    width: 44px;
  }
  .c-player a {
    gap: 9px;
  }
  .c-player img {
    width: 32px;
    height: 32px;
  }
  .c-player img.cflag {
    width: 22px;
    height: 15px;
    margin-left: 7px;
  }
  .c-player span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .board.recent {
    min-width: 0;
    font-size: 14px;
  }
  .pcard {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .pav {
    width: 96px;
    height: 96px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .stats dd {
    font-size: 24px;
  }
  .callout {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
  }
  .callout img {
    width: 88px;
    height: 88px;
  }
  .phases {
    grid-template-columns: minmax(0, 1fr);
  }
  .regions-all,
  .mgrid,
  .mgrid.small {
    grid-template-columns: minmax(0, 1fr);
  }
  .mgrid.small .mcard:last-child {
    display: flex;
  }
  .gtable th,
  .gtable td {
    padding: 8px 8px;
  }
  .gtable {
    font-size: 14px;
  }
  .who {
    width: 74px;
    font-size: 11px;
  }
  .die {
    width: 38px;
    height: 38px;
    font-size: 19px;
  }
  .nf {
    padding: 70px 0 30px;
  }
  .nf .row .btn {
    flex: 1 1 100%;
  }
}
@media (max-width: 380px) {
  .nav .play span {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* a word longer than the line (a long German compound) breaks instead of running off a phone's screen; the long
   page titles carry a soft hyphen where they should break (server/site/texts.ts) */
h1,
h2,
h3 {
  overflow-wrap: break-word;
}

/* the live dashboard: every panel the same height, the list scrolls when it holds more */
.dash .panel {
  height: 415px;
}
.dash .plist {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-right: -10px;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 194, 46, 0.45) transparent;
}
.dash .plist::-webkit-scrollbar {
  width: 6px;
}
.dash .plist::-webkit-scrollbar-thumb {
  border-radius: 6px;
  background: rgba(255, 194, 46, 0.45);
}
.dash .plist::-webkit-scrollbar-track {
  background: transparent;
}
@media (max-width: 1180px) {
  .dash .panel {
    height: 400px;
  }
}
@media (max-width: 640px) {
  .dash .panel {
    height: 380px;
  }
}
