/* =====================================================================
   Eternal 317 site theme
   One dark world: the painted banner, carved stone, gold lettering,
   purple crystals and parchment, on a coursed-stone wall.
   Every page loads only this stylesheet. Fonts are self-hosted so the
   site stays inside the production Content-Security-Policy.
   ===================================================================== */

@font-face {
  font-family: "Cinzel";
  src: url("assets/fonts/cinzel.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alegreya";
  src: url("assets/fonts/alegreya.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alegreya";
  src: url("assets/fonts/alegreya-italic.woff2") format("woff2");
  font-weight: 400 500;
  font-style: italic;
  font-display: swap;
}

:root {
  --void: #070605;          /* deepest wall shadow */
  --stone: #26221c;         /* carved stone surface */
  --stone-hi: #4d4537;      /* lit stone edge */
  --stone-lo: #100d0a;      /* stone in shadow */
  --recess: #120f0c;        /* inside a frame */
  --gold: #e2bf6e;          /* gold lettering */
  --gold-hi: #fbe7ae;
  --gold-deep: #9a6a28;
  --rune: #a259ec;          /* purple crystal */
  --rune-hi: #dcb0ff;
  --rune-deep: #3b1658;
  --parchment: #c3a473;
  --ink: #2a1b0d;           /* text on parchment */
  --ink-soft: #4a3720;
  --ink-rune: #5b2a88;      /* purple ink */
  --bone: #eadcc0;          /* text on stone */
  --mist: #b9aa8f;          /* quieter text on stone */
  --ok: #7fd17a;            /* world online */
  --bad: #e2725f;           /* world offline, errors */

  --display: "Cinzel", "Trajan Pro", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --body: "Alegreya", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;

  --max: 1320px;
  --gutter: clamp(16px, 3vw, 40px);
  --frame: 28px;

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .2 0 0 0 0 .07 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --stains: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .22 0 0 0 0 .08 0 0 0 1.1 -.45'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 4h13V0l5 5-5 5V6H0z'/%3E%3C/svg%3E");

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background: var(--void);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 16px;
}

body {
  position: relative;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  background-color: var(--void);
  background-image:
    radial-gradient(ellipse 75% 520px at 50% 420px, rgba(120, 55, 175, .2), transparent 70%),
    linear-gradient(180deg, rgba(7, 6, 5, .62), rgba(7, 6, 5, .86) 40%, rgba(7, 6, 5, .93)),
    url("assets/art/stone-wall.webp");
  background-size: auto, auto, 440px;
  overflow-x: hidden;
}
/* Edge vignette, like torchlight falling off into the dark */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, .7) 100%);
}
body > * { position: relative; z-index: 1; }
body.is-leaving { opacity: .01; transition: opacity .15s ease; }

img, svg { max-width: 100%; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-hi); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--rune-hi); outline-offset: 3px; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
code, .e-mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .88em; }

.e-skip {
  position: absolute !important;
  left: 12px;
  top: -60px;
  z-index: 50 !important;
  padding: 10px 16px;
  background: var(--stone);
  color: var(--gold);
  font-family: var(--display);
}
.e-skip:focus { top: 12px; }
.e-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Gold lettering */
.e-gold,
.e-h1,
.e-panel-title,
.e-play-title,
.e-paths h2 {
  color: var(--gold);
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.1;
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 42%, var(--gold-deep) 72%, #e9c97f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .9)) drop-shadow(0 0 12px rgba(0, 0, 0, .55));
}
.e-h1 { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: .05em; }
.e-panel-title { font-size: clamp(19px, 1.7vw, 24px); }
.e-center { text-align: center; }
.e-lede { max-width: 62ch; color: var(--bone); font-size: clamp(17px, 1.3vw, 19px); }
.e-eyebrow,
.eyebrow {
  margin: 0;
  color: var(--rune-hi);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.e-muted { color: var(--mist); }
.e-faint { color: #8f8470; font-size: 15px; }
.e-small { font-size: 15px; }
.e-label {
  color: var(--mist);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.e-link-plain { text-decoration: none; }
.e-link {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
}

/* ---------------------------------------------------------------------
   Stone buttons (e-btn; the older action-button / text-button share it)
   --------------------------------------------------------------------- */
.e-btn,
.action-button,
.site-auth-logout,
.site-auth-account {
  --cut: 9px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 44px;
  padding: 10px 22px;
  border: 0;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% 50%, calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 50%);
  background:
    linear-gradient(180deg, rgba(255, 240, 210, .10), transparent 45%, rgba(0, 0, 0, .35)),
    url("assets/art/stone-wall.webp") 0 0 / 260px,
    var(--stone);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 196, .22),
    inset 0 -2px 0 rgba(0, 0, 0, .55),
    inset 0 0 0 1px rgba(0, 0, 0, .65),
    inset 0 0 18px rgba(0, 0, 0, .6);
  color: var(--gold);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 0 1px 0 #000, 0 0 10px rgba(0, 0, 0, .8);
  white-space: nowrap;
  cursor: pointer;
  transition: color .15s ease, box-shadow .15s ease;
}
.e-btn:hover,
.e-btn:focus-visible,
.action-button:hover,
.action-button:focus-visible,
.site-auth-logout:hover,
.site-auth-account:hover {
  color: var(--gold-hi);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 196, .25),
    inset 0 -2px 0 rgba(0, 0, 0, .55),
    inset 0 0 0 1px rgba(162, 89, 236, .55),
    inset 0 0 22px rgba(162, 89, 236, .35);
}
.e-btn:active, .action-button:active { transform: translateY(1px); }
.e-btn:disabled,
.e-btn[aria-disabled="true"],
.action-button:disabled {
  color: #85796a;
  cursor: not-allowed;
  filter: saturate(.4);
}
.e-btn:disabled:hover,
.e-btn[aria-disabled="true"]:hover,
.action-button:disabled:hover {
  color: #85796a;
  box-shadow: inset 0 1px 0 rgba(255, 236, 196, .12), inset 0 0 0 1px rgba(0, 0, 0, .65), inset 0 0 18px rgba(0, 0, 0, .6);
}
.e-btn-small,
.site-auth-logout,
.site-auth-account {
  --cut: 7px;
  min-height: 36px;
  padding: 7px 16px;
  font-size: 12px;
}
.e-btn-rune,
.e-btn-primary,
.action-button.primary {
  background:
    linear-gradient(180deg, rgba(220, 176, 255, .18), transparent 50%, rgba(0, 0, 0, .4)),
    linear-gradient(180deg, #4a1f6b, #24102f);
  color: #f1dcff;
}
.e-btn-rune:hover,
.e-btn-primary:hover,
.action-button.primary:hover { color: #fff; }
.action-button.danger { color: #ffb4a6; }
.e-btn-wide { display: flex; width: min(100%, 340px); margin-inline: auto; }
.e-btn-arrow::after {
  content: "";
  width: 18px;
  height: 10px;
  background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat;
  mask: var(--arrow) center / contain no-repeat;
  transition: transform .15s ease;
}
.e-btn-arrow:hover::after { transform: translateX(3px); }

.text-button {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--gold);
  font-family: var(--body);
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.text-button:hover { color: var(--gold-hi); }

/* ---------------------------------------------------------------------
   Form controls
   --------------------------------------------------------------------- */
.e-input,
.e-select,
.search-row input,
.auth-form input:not([type="checkbox"]),
.auth-form select,
.auth-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid #4a3f2f;
  border-radius: 2px;
  background: linear-gradient(180deg, #0b0907, #15110d);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 232, 190, .06);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
}
.auth-form textarea { min-height: 140px; resize: vertical; line-height: 1.45; }
.e-select,
.auth-form select {
  appearance: none;
  padding-right: 38px;
  background:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%) calc(100% - 20px) 52% / 6px 6px no-repeat,
    linear-gradient(-45deg, transparent 50%, var(--gold) 50%) calc(100% - 14px) 52% / 6px 6px no-repeat,
    linear-gradient(180deg, #0b0907, #15110d);
}
.e-input::placeholder,
.search-row input::placeholder,
.auth-form input::placeholder,
.auth-form textarea::placeholder { color: #7a6f5d; }
.e-input:focus,
.e-select:focus,
.search-row input:focus,
.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  outline: none;
  border-color: var(--rune);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .7), 0 0 0 3px rgba(162, 89, 236, .28);
}
.e-field { display: grid; gap: 6px; min-width: 0; }
.e-field > label,
.player-search > label {
  color: var(--mist);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------------
   Top line: world status (left) and account buttons (right), over the
   page background and banner with no bar of their own
   --------------------------------------------------------------------- */
.e-topline {
  position: relative;
  z-index: 5;
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 0 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  pointer-events: none;
}
.e-topline > * { pointer-events: auto; }
.e-status-live {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  min-width: 0;
  color: #d6c8ad;
  font-size: 15px;
  text-shadow: 0 1px 2px #000, 0 0 8px #000, 0 0 14px rgba(0, 0, 0, .9);
}
.e-status-live > span + span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 11px 2px 0;
  transform: rotate(45deg);
  background: rgba(220, 176, 255, .7);
  box-shadow: 0 0 6px #000;
  vertical-align: middle;
}
.e-status-world { display: inline-flex; align-items: center; gap: 8px; color: var(--bone); font-weight: 700; }
.e-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6b6152;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .7);
}
.e-dot.is-online { background: var(--ok); box-shadow: 0 0 0 2px rgba(0, 0, 0, .7), 0 0 10px rgba(127, 209, 122, .8); }
.e-dot.is-offline { background: var(--bad); }
.e-status-state.is-online { color: #c8f0c4; }
.e-account.site-topbar {
  position: static;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  backdrop-filter: none;
}
.e-account nav { display: flex; align-items: center; gap: 10px; }
.e-account .e-btn,
.e-account .site-auth-logout,
.e-account .site-auth-account { box-shadow: inset 0 1px 0 rgba(255, 236, 196, .22), inset 0 -2px 0 rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(0, 0, 0, .65), inset 0 0 18px rgba(0, 0, 0, .6), 0 4px 14px rgba(0, 0, 0, .6); }
.site-auth-account { color: #f1dcff; }

/* ---------------------------------------------------------------------
   Header: painted banner and carved nav
   --------------------------------------------------------------------- */
/* The banner's height sets its width (the painting keeps its shape, and is
   cropped when the screen is narrower). The menu bar uses the same width,
   so the two always line up. */
.e-header {
  --banner-h: clamp(110px, calc((100vw - 2 * var(--gutter)) * .335), 244px);
  --banner-w: min(100%, calc(var(--banner-h) * 1536 / 244));
  position: relative;
  padding-inline: var(--gutter);
}
/* Inner pages use a shorter banner so the page content starts higher */
.e-header-compact { --banner-h: clamp(92px, calc((100vw - 2 * var(--gutter)) * .3), 186px); }
/* The wall darkens towards the banner, so the painting fades out of the
   shadows instead of sitting on the bricks as a box */
.e-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -20px 0 -70px;
  pointer-events: none;
  background: radial-gradient(ellipse 58% 58% at 50% 46%, rgba(3, 2, 2, .86) 0, rgba(3, 2, 2, .62) 50%, rgba(3, 2, 2, .25) 78%, transparent 100%);
}
/* The box is exactly as wide as the visible painting, so the fades always
   land on its own edges: soft sides, a soft top and a lighter fade along
   the bottom. */
.e-banner {
  --banner-fade:
    linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .45) 4%, #000 11%, #000 89%, rgba(0, 0, 0, .45) 96%, transparent 100%),
    linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .5) 12%, #000 32%, #000 86%, rgba(0, 0, 0, .55) 100%);
  display: flex;
  justify-content: center;
  margin: 0 auto;
  width: var(--banner-w);
  height: var(--banner-h);
  overflow: hidden;
  -webkit-mask-image: var(--banner-fade);
  -webkit-mask-composite: source-in;
  mask-image: var(--banner-fade);
  mask-composite: intersect;
}
.e-banner a { display: flex; justify-content: center; height: 100%; }
.e-banner img {
  display: block;
  width: auto;
  max-width: none;
  height: 100%;
}

.e-nav {
  position: relative;
  width: var(--banner-w);
  margin: -4px auto 0;
  padding: 0 52px;
  border-block: 3px solid var(--stone-lo);
  background:
    linear-gradient(180deg, rgba(255, 232, 190, .10), transparent 30%, transparent 70%, rgba(0, 0, 0, .45)),
    url("assets/art/stone-wall.webp") 0 0 / 300px,
    var(--stone);
  box-shadow:
    inset 0 1px 0 rgba(255, 232, 190, .18),
    inset 0 0 0 1px rgba(0, 0, 0, .7),
    inset 0 0 26px rgba(0, 0, 0, .75),
    0 10px 26px rgba(0, 0, 0, .55);
}
.e-nav::before,
.e-nav::after {
  content: "";
  position: absolute;
  top: 31px;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--rune-hi), var(--rune) 45%, var(--rune-deep));
  box-shadow: 0 0 0 3px #15110c, 0 0 0 4px #5a4f3e, 0 0 16px rgba(162, 89, 236, .8);
}
.e-nav::before { left: 18px; }
.e-nav::after { right: 18px; }
.e-nav-list {
  display: flex;
  justify-content: space-between;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.e-nav-list a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 0 10px;
  color: var(--gold);
  font-family: var(--display);
  font-size: clamp(13px, 1.25vw, 17px);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 0 2px 0 #000, 0 0 12px rgba(0, 0, 0, .9);
  transition: color .15s ease, text-shadow .15s ease;
}
.e-nav-list a:hover,
.e-nav-list a:focus-visible {
  color: var(--gold-hi);
  text-shadow: 0 2px 0 #000, 0 0 14px rgba(162, 89, 236, .9);
}
.e-nav-list a[aria-current="page"] { color: var(--gold-hi); padding-inline: 16px; }
.e-nav-list a[aria-current="page"]::before,
.e-nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  transform: rotate(45deg);
  background: var(--rune-hi);
  box-shadow: 0 0 8px var(--rune);
}
.e-nav-list a[aria-current="page"]::before { left: 0; }
.e-nav-list a[aria-current="page"]::after { right: 0; }
.e-menu-toggle { display: none; }

/* ---------------------------------------------------------------------
   Page layout
   --------------------------------------------------------------------- */
.e-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px var(--gutter) 0;
  box-sizing: content-box;
  display: grid;
  gap: 40px;
}
.e-stack { display: grid; gap: 14px; align-content: start; min-width: 0; }
.e-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.e-row { display: grid; gap: 30px; align-items: stretch; }
.e-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.e-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.e-row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.e-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 28px;
}
.e-panel-head > * { min-width: 0; }
.e-page-head { display: grid; gap: 10px; }
.e-page-head .e-h1 { margin-bottom: 2px; }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.e-footer {
  max-width: var(--max);
  margin: 56px auto 0;
  padding: 26px var(--gutter) 40px;
  border-top: 1px solid rgba(226, 191, 110, .18);
  box-sizing: content-box;
  color: var(--mist);
  font-size: 14px;
  text-align: center;
}
.e-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  margin-bottom: 14px;
}
.e-footer-nav a {
  color: var(--gold);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
.e-footer-nav a:hover { color: var(--gold-hi); }
.e-footer p { margin: 4px auto; max-width: 70ch; }

/* ---------------------------------------------------------------------
   Framed panel: a ring of stone blocks around a dark recess
   --------------------------------------------------------------------- */
.e-stone {
  position: relative;
  min-width: 0;
  border: var(--frame) solid transparent;
  border-image: url("assets/art/stone-frame.webp") 56 / var(--frame) round;
  padding: 24px 22px 22px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(162, 89, 236, .10), transparent 60%),
    linear-gradient(180deg, #17130f, #0e0b09);
  background-clip: padding-box;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .9), inset 0 10px 24px rgba(0, 0, 0, .7);
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .65));
}
/* crystal set into the top of each frame */
.e-stone::before {
  content: "";
  position: absolute;
  top: calc(var(--frame) * -1 - 9px);
  left: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--rune-hi), var(--rune) 45%, var(--rune-deep));
  box-shadow: 0 0 0 4px #1a1510, 0 0 0 6px #5d5240, 0 0 18px rgba(162, 89, 236, .85);
}
.e-stone.e-stack { display: grid; }
.e-stone > .e-panel-title:first-child { margin-bottom: 4px; }

/* A carved band (page intros, feature strips) */
.e-slab {
  position: relative;
  min-width: 0;
  padding: 28px 32px;
  border-block: 3px solid var(--stone-lo);
  background:
    radial-gradient(ellipse 60% 120% at 0% 50%, rgba(162, 89, 236, .16), transparent 70%),
    linear-gradient(180deg, rgba(14, 11, 8, .55), rgba(6, 5, 4, .78)),
    url("assets/art/stone-wall.webp") 0 0 / 360px,
    var(--stone);
  box-shadow:
    inset 0 1px 0 rgba(255, 232, 190, .14),
    inset 0 0 0 1px rgba(0, 0, 0, .7),
    inset 0 0 40px rgba(0, 0, 0, .8),
    0 14px 30px rgba(0, 0, 0, .55);
}

/* A recessed card inside a panel */
.e-card {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid #3c3328;
  background: linear-gradient(180deg, rgba(8, 7, 5, .55), rgba(20, 16, 12, .55));
  box-shadow: inset 0 1px 0 rgba(255, 232, 190, .05), inset 0 0 22px rgba(0, 0, 0, .55), 0 1px 0 rgba(255, 232, 190, .05);
}
.e-card .e-panel-title { font-size: 18px; }

/* Parchment */
.e-parch {
  position: relative;
  min-width: 0;
  color: var(--ink);
  background-color: var(--parchment);
  background-image:
    radial-gradient(ellipse at 18% 12%, rgba(255, 242, 205, .45), transparent 55%),
    radial-gradient(ellipse at 90% 95%, rgba(95, 58, 22, .35), transparent 55%),
    var(--stains),
    var(--noise);
  background-size: auto, auto, 600px, 220px;
  box-shadow:
    inset 0 0 0 1px rgba(70, 42, 14, .7),
    inset 0 0 34px rgba(88, 52, 18, .6),
    0 0 0 2px #0b0907,
    0 3px 0 2px rgba(0, 0, 0, .5);
}
.e-parch a { color: var(--ink); }
.e-parch a:hover { color: var(--ink-rune); }

/* Ledger tables on parchment */
.e-parch:has(> .e-table) { overflow-x: auto; }
.e-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.e-table th {
  padding: 12px 14px 8px;
  border-bottom: 1px solid rgba(74, 46, 16, .5);
  color: var(--ink);
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.e-table td {
  padding: 9px 14px;
  border-bottom: 1px solid rgba(74, 46, 16, .22);
  color: var(--ink);
  font-size: 16.5px;
}
.e-table tbody tr:last-child td { border-bottom: 0; }
.e-table .num { text-align: right; white-space: nowrap; }
.e-table td a { font-weight: 700; text-decoration: none; }
.e-table td a:hover { text-decoration: underline; }
.e-table tr.is-you td { background: rgba(91, 42, 136, .16); }
.e-table .rate { color: var(--ink-rune); font-weight: 700; }

/* Key / value lists */
.e-kv { display: grid; gap: 0; margin: 0; }
.e-kv > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(226, 191, 110, .12);
}
.e-kv > div:last-child { border-bottom: 0; }
.e-kv dt { color: var(--mist); }
.e-kv dd { margin: 0; color: var(--bone); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* Notes */
.e-notice {
  padding: 12px 16px;
  border-left: 3px solid var(--rune);
  background: linear-gradient(90deg, rgba(91, 42, 136, .28), rgba(91, 42, 136, .06));
  color: var(--bone);
}
.e-warning {
  padding: 12px 16px;
  border-left: 3px solid #d39a3b;
  background: linear-gradient(90deg, rgba(160, 102, 30, .22), rgba(160, 102, 30, .04));
  color: var(--bone);
  font-size: 15.5px;
}
.e-empty,
.ranking-empty {
  margin: 0;
  padding: 18px 20px;
  border: 1px dashed #4a3f2f;
  color: var(--mist);
  text-align: center;
}

/* Toggle buttons (filters and views) */
.e-tabbar,
.e-toggle-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.e-toggle,
.e-toggle-group a,
.news-filter,
.account-tab,
.guide-category {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 16px;
  border: 1px solid #4a3f2f;
  background: linear-gradient(180deg, #1d1813, #110e0b);
  box-shadow: inset 0 1px 0 rgba(255, 232, 190, .08);
  color: var(--mist);
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.e-toggle:hover,
.e-toggle-group a:hover,
.news-filter:hover,
.account-tab:hover,
.guide-category:hover { color: var(--gold-hi); border-color: #6c5a40; }
.e-toggle[aria-pressed="true"],
.news-filter.active,
.account-tab.active,
.guide-category.active {
  border-color: var(--rune);
  background: linear-gradient(180deg, #3a1a52, #1d0e29);
  color: #f1dcff;
  box-shadow: inset 0 1px 0 rgba(220, 176, 255, .2), 0 0 12px rgba(162, 89, 236, .3);
}

/* Pager */
.e-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

/* Stat tiles */
.e-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.e-stat {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid #3c3328;
  background: linear-gradient(180deg, rgba(8, 7, 5, .55), rgba(20, 16, 12, .55));
  box-shadow: inset 0 0 18px rgba(0, 0, 0, .5);
}
.e-stat > span {
  color: var(--mist);
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.e-stat strong {
  color: var(--gold-hi);
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  text-shadow: 0 2px 0 #000;
}
.e-stat small { color: var(--mist); font-size: 14.5px; }

/* Numbered steps (a real sequence) */
.e-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.e-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; }
.e-steps .n {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: 2px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: linear-gradient(135deg, #c88ef7, var(--rune) 50%, var(--rune-deep));
  color: #fff;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
}
.e-steps strong { display: block; color: var(--gold); font-family: var(--display); font-size: 15px; letter-spacing: .05em; text-transform: uppercase; }
.e-steps li > span:last-child > span { display: block; color: var(--mist); font-size: 16px; }

/* Code-ish read-outs */
.e-filename { color: var(--mist); font-size: 14.5px; word-break: break-all; }
.e-checksum {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #3c3328;
  background: rgba(0, 0, 0, .35);
}
.e-checksum code { color: var(--gold-hi); word-break: break-all; }
.e-download-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; }

/* Chips */
.e-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.e-chip {
  padding: 3px 10px;
  border: 1px solid #4a3f2f;
  background: rgba(0, 0, 0, .35);
  color: var(--mist);
  font-size: 14px;
}
.e-chip.is-good { border-color: #4d6d3c; color: #c7e6b2; }
.e-chip.is-rune { border-color: var(--rune); color: var(--rune-hi); }

/* Coming-soon pages */
.e-soon {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.e-soon img { width: 150px; height: auto; }

/* =====================================================================
   Homepage
   ===================================================================== */
.e-home-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 30px;
  align-items: stretch;
}
.e-home-grid > .e-stone,
.e-home-grid > .e-play { z-index: 1; display: flex; flex-direction: column; }
.e-home-grid > .e-stone > .e-panel-title { margin-bottom: 18px; text-align: center; }
.e-home-grid .e-parch { flex: 1; }
.e-home-grid .e-btn-wide { margin-top: 16px; }

/* Latest news */
.e-news { margin: 0; padding: 6px 16px; list-style: none; }
.e-news > li {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 0;
}
.e-news > li + li {
  border-top: 1px solid rgba(74, 46, 16, .32);
  box-shadow: inset 0 1px 0 rgba(255, 240, 205, .25);
}
.e-news > li.is-message { display: block; text-align: center; color: var(--ink-soft); }
.e-news img {
  display: block;
  width: 84px;
  height: auto;
  aspect-ratio: 111 / 95;
  object-fit: cover;
  border: 2px solid #2a2016;
  box-shadow: 0 0 0 1px rgba(255, 230, 180, .25), 0 3px 8px rgba(40, 22, 6, .55);
}
.e-news h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}
.e-news h3 a { color: var(--ink); text-decoration: none; }
.e-news h3 a:hover { color: var(--ink-rune); text-decoration: underline; }
.e-news p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.4;
}
.e-news-tag,
.e-news time {
  display: inline-block;
  margin-top: 6px;
  color: var(--ink-rune);
  font-size: 14px;
  font-style: italic;
}

/* Play Now: the arched centre panel */
.e-play { position: relative; min-width: 0; }
.e-play::before,
.e-play::after {
  content: "";
  position: absolute;
  top: 46%;
  width: 14px;
  height: 34px;
  clip-path: polygon(50% 0, 100% 38%, 50% 100%, 0 38%);
  background: linear-gradient(160deg, #f3dcff, var(--rune) 45%, var(--rune-deep));
  filter: drop-shadow(0 0 10px rgba(162, 89, 236, .95));
  animation: e-crystal 5s ease-in-out infinite;
}
.e-play::before { left: -22px; }
.e-play::after { right: -22px; animation-delay: -2.5s; }
.e-arch {
  --arch: 150px;
  position: relative;
  flex: 1;
  display: flex;
  padding: 24px;
  border-radius: 50% 50% 10px 10px / var(--arch) var(--arch) 10px 10px;
  background:
    linear-gradient(180deg, rgba(255, 232, 190, .12), rgba(0, 0, 0, .25)),
    url("assets/art/stone-wall.webp") 0 0 / 190px,
    var(--stone);
  box-shadow:
    inset 0 2px 0 rgba(255, 232, 190, .2),
    inset 0 0 0 2px rgba(0, 0, 0, .75),
    inset 0 0 30px rgba(0, 0, 0, .55),
    0 18px 36px rgba(0, 0, 0, .7);
}
.e-arch::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: var(--arch);
  border-radius: inherit;
  background: repeating-conic-gradient(from 270deg at 50% var(--arch), rgba(0, 0, 0, .75) 0 .7deg, transparent .7deg 11deg);
  -webkit-mask: radial-gradient(ellipse 50% var(--arch) at 50% var(--arch), transparent calc(100% - 26px), #000 calc(100% - 25px));
  mask: radial-gradient(ellipse 50% var(--arch) at 50% var(--arch), transparent calc(100% - 26px), #000 calc(100% - 25px));
  pointer-events: none;
}
.e-arch::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--rune-hi), var(--rune) 45%, var(--rune-deep));
  box-shadow: 0 0 0 4px #1a1510, 0 0 0 6px #5d5240, 0 0 20px rgba(162, 89, 236, .9);
}
.e-arch-window {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 58px 22px 24px;
  border-radius: 50% 50% 6px 6px / calc(var(--arch) - 24px) calc(var(--arch) - 24px) 6px 6px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(1px 1px at 18% 22%, rgba(255, 255, 255, .7), transparent),
    radial-gradient(1px 1px at 72% 14%, rgba(255, 255, 255, .55), transparent),
    radial-gradient(1.5px 1.5px at 84% 30%, rgba(230, 210, 255, .7), transparent),
    radial-gradient(1px 1px at 30% 36%, rgba(255, 255, 255, .45), transparent),
    radial-gradient(1px 1px at 58% 28%, rgba(255, 255, 255, .5), transparent),
    radial-gradient(ellipse 80% 50% at 50% 58%, rgba(112, 52, 170, .35), transparent 70%),
    linear-gradient(180deg, #0c0b14 0%, #0e0e17 45%, #0a0a10 100%);
  box-shadow:
    inset 0 0 0 2px #050404,
    inset 0 0 0 3px rgba(226, 191, 110, .14),
    inset 0 18px 40px rgba(0, 0, 0, .75);
}
.e-play-title { font-size: clamp(36px, 3.6vw, 54px); letter-spacing: .05em; }
.e-play-lede {
  margin: 10px auto 0;
  max-width: 24ch;
  color: #e6dccb;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.4;
  text-shadow: 0 2px 6px #000;
}
.e-tree {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% + 44px);
  margin: 18px -22px -8px;
}
.e-tree img { display: block; width: min(100%, 540px); height: auto; }
.e-rune-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90px;
  height: 120px;
  margin: -58px 0 0 -45px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(214, 160, 255, .55), rgba(162, 89, 236, .22) 40%, transparent 70%);
  mix-blend-mode: screen;
  animation: e-rune 4.8s ease-in-out infinite;
  pointer-events: none;
}
.e-btn-play {
  --cut: 18px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 330px);
  min-height: 78px;
  margin-top: 0;
  padding: 0 34px;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% 50%, calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 50%);
  background:
    linear-gradient(180deg, rgba(255, 238, 205, .16), transparent 40%, rgba(0, 0, 0, .45)),
    url("assets/art/stone-wall.webp") 0 0 / 220px,
    #2b2721;
  box-shadow:
    inset 0 2px 0 rgba(255, 236, 196, .25),
    inset 0 -3px 0 rgba(0, 0, 0, .6),
    inset 0 0 0 2px rgba(0, 0, 0, .7),
    inset 0 0 0 4px rgba(120, 104, 80, .35),
    inset 0 0 26px rgba(0, 0, 0, .65);
  color: var(--gold);
  font-family: var(--display);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 0 2px 0 #000, 0 0 14px rgba(0, 0, 0, .9);
  transition: color .2s ease, box-shadow .2s ease;
}
.e-btn-play:hover,
.e-btn-play:focus-visible {
  color: var(--gold-hi);
  box-shadow:
    inset 0 2px 0 rgba(255, 236, 196, .28),
    inset 0 -3px 0 rgba(0, 0, 0, .6),
    inset 0 0 0 2px rgba(0, 0, 0, .7),
    inset 0 0 0 4px rgba(162, 89, 236, .6),
    inset 0 0 34px rgba(162, 89, 236, .45);
  text-shadow: 0 2px 0 #000, 0 0 18px rgba(162, 89, 236, .9);
}
.e-btn-play:active { transform: translateY(1px); }
.e-play-client { margin-top: 10px; color: var(--mist); font-size: 14.5px; }

/* Getting started under the Play button */
.e-start {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid rgba(226, 191, 110, .16);
  list-style: none;
  counter-reset: e-start;
}
.e-start li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--mist);
  font-size: 15px;
  line-height: 1.25;
  text-wrap: balance;
  counter-increment: e-start;
}
.e-start li::before {
  content: counter(e-start);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: linear-gradient(135deg, #c88ef7, var(--rune) 50%, var(--rune-deep));
  color: #fff;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
}

/* Homepage hiscores */
.e-hs-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.e-hs-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--mist);
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.15;
  text-transform: uppercase;
  cursor: pointer;
}
.e-hs-tab img {
  display: block;
  width: min(100%, 64px);
  height: auto;
  filter: brightness(.78) saturate(.85);
  box-shadow: 0 0 0 2px #0b0907, 0 4px 10px rgba(0, 0, 0, .6);
  transition: filter .15s ease, box-shadow .15s ease;
}
.e-hs-tab span { text-wrap: balance; }
.e-hs-tab:hover img { filter: brightness(1) saturate(1); }
.e-hs-tab[aria-selected="true"] { color: var(--gold-hi); }
.e-hs-tab[aria-selected="true"] img {
  filter: brightness(1.08) saturate(1.05);
  box-shadow: 0 0 0 2px #0b0907, 0 0 0 4px var(--rune), 0 0 18px rgba(162, 89, 236, .75);
}
.e-hs-board { padding: 14px 16px 16px; overflow: hidden; }
.e-hs-info {
  min-height: 2.8em;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
  text-wrap: balance;
}
.e-ledger-wrap { position: relative; }
.e-ledger-head,
.e-ledger li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: baseline;
}
.e-ledger-head {
  padding: 0 4px 6px;
  border-bottom: 1px solid rgba(74, 46, 16, .45);
  color: var(--ink);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.e-ledger-head span:last-child { text-align: right; }
.e-ledger { margin: 0; padding: 0; list-style: none; font-variant-numeric: tabular-nums; }
.e-ledger li { padding: 8px 4px; border-bottom: 1px solid rgba(74, 46, 16, .25); font-size: 17px; }
.e-ledger.is-loading { opacity: .55; }
.e-rank { color: var(--ink-soft); }
.e-player { overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.e-player a { color: var(--ink); font-weight: 700; text-decoration: none; }
.e-player a:hover { color: var(--ink-rune); text-decoration: underline; }
.e-value { color: var(--ink); text-align: right; }
.e-player:empty::before {
  content: "";
  display: block;
  height: .9em;
  border-bottom: 1px dotted rgba(74, 46, 16, .45);
}
.e-value:empty::before { content: "\2014"; color: rgba(74, 46, 16, .5); }
.e-seal {
  position: absolute;
  left: 50%;
  top: 56%;
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  margin: -64px 0 0 -64px;
  border-radius: 48% 52% 50% 50% / 52% 48% 53% 47%;
  transform: rotate(-9deg);
  background:
    radial-gradient(circle at 35% 30%, rgba(240, 200, 255, .35), transparent 40%),
    radial-gradient(circle, #6a2c96 0 52%, #4c1d70 53% 60%, #5d2687 61% 100%);
  box-shadow:
    inset 0 0 0 5px rgba(40, 10, 60, .45),
    inset 0 0 0 8px rgba(190, 130, 235, .25),
    inset 0 -6px 12px rgba(20, 4, 32, .6),
    0 6px 14px rgba(40, 18, 4, .55);
  pointer-events: none;
}
.e-seal span {
  max-width: 78px;
  color: #f3e1ff;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(30, 6, 48, .9);
}
.e-hs-note {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 14px;
  font-style: italic;
  text-align: center;
  text-wrap: balance;
}
.is-live .e-seal,
.is-live .e-hs-note { display: none; }

/* Progression band */
.e-paths {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.e-paths h2 { font-size: clamp(22px, 2.1vw, 30px); letter-spacing: .04em; }
.e-paths-intro p { margin-top: 12px; max-width: 64ch; }
.e-path {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
}
.e-path img { width: 64px; height: auto; box-shadow: 0 0 0 2px #0b0907, 0 4px 12px rgba(0, 0, 0, .7); }
.e-path h3 {
  margin-bottom: 6px;
  color: var(--gold);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.25;
  text-transform: uppercase;
  text-shadow: 0 2px 0 #000;
}
.e-path p { color: var(--mist); font-size: 16px; line-height: 1.45; }

/* Search box with its button (Guides & Help item database) */
.e-search-row { display: flex; gap: 10px; }
.e-search-row .e-input { flex: 1; }

/* Feature plaques */
.e-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.e-feature {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 18px 18px 18px 12px;
  border: 20px solid transparent;
  border-image: url("assets/art/stone-frame.webp") 56 / 20px round;
  background: linear-gradient(180deg, #19150f, #0d0a08);
  background-clip: padding-box;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .9), inset 0 8px 20px rgba(0, 0, 0, .7);
  text-decoration: none;
}
.e-feature img { width: 96px; height: 80px; object-fit: contain; transition: transform .25s ease; }
.e-feature-text strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.25;
  text-transform: uppercase;
  text-shadow: 0 2px 0 #000;
}
.e-feature-text > span { display: block; color: var(--mist); font-size: 15px; line-height: 1.4; }
.e-feature:hover,
.e-feature:focus-visible {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(162, 89, 236, .2), transparent 70%),
    linear-gradient(180deg, #1d1812, #0f0c09);
  background-clip: padding-box;
}
.e-feature:hover img { transform: scale(1.05) rotate(-2deg); }
.e-feature:hover strong { color: var(--gold-hi); }

/* Wall torches on wide screens */
.e-torch {
  position: absolute;
  top: 120px;
  z-index: 0;
  display: none;
  width: 58px;
  height: auto;
  pointer-events: none;
}
.e-torch-left { left: -92px; transform: scaleX(-1); }
.e-torch-right { right: -92px; }
@media (min-width: 1500px) {
  .e-torch {
    display: block;
    filter: drop-shadow(0 0 22px rgba(242, 164, 70, .55));
    animation: e-flicker 3.2s steps(1) infinite;
  }
  .e-torch-right { animation-delay: -1.3s; }
}

/* =====================================================================
   Hiscores and player profiles
   ===================================================================== */
.e-skill-icon { width: 22px; height: 22px; flex: none; color: var(--gold); }

/* Board picker */
.e-hs-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.e-boards {
  display: grid;
  gap: 18px;
  padding: 16px 12px;
  border: 1px solid #3c3328;
  background: linear-gradient(180deg, rgba(8, 7, 5, .6), rgba(20, 16, 12, .55));
  box-shadow: inset 0 0 22px rgba(0, 0, 0, .55);
}
.e-boards h2 {
  padding: 0 8px;
  color: var(--mist);
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.e-board-list { display: grid; gap: 2px; margin: 6px 0 0; padding: 0; list-style: none; }
.e-board {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 5px 8px;
  border: 1px solid transparent;
  background: none;
  color: var(--bone);
  font-family: var(--body);
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}
.e-board img { width: 30px; height: auto; box-shadow: 0 0 0 1px #0b0907; }
.e-board .e-skill-icon { width: 20px; height: 20px; margin-inline: 5px; }
.e-board:hover { color: var(--gold-hi); background: rgba(226, 191, 110, .06); }
.e-board[aria-pressed="true"] {
  border-color: rgba(162, 89, 236, .7);
  background: linear-gradient(90deg, rgba(91, 42, 136, .45), rgba(91, 42, 136, .12));
  color: #fff;
}
.e-board[aria-pressed="true"] .e-skill-icon { color: var(--rune-hi); }

/* Skills / Bosses switch above the second board list */
.e-board-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 0 8px;
  border: 1px solid #4a3f2f;
  box-shadow: inset 0 1px 0 rgba(255, 232, 190, .06);
}
.e-board-switch button {
  min-height: 34px;
  padding: 4px 8px;
  border: 0;
  background: linear-gradient(180deg, #1d1813, #110e0b);
  color: var(--mist);
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.e-board-switch button + button { border-left: 1px solid #4a3f2f; }
.e-board-switch button:hover { color: var(--gold-hi); }
.e-board-switch button[aria-pressed="true"] {
  background: linear-gradient(180deg, rgba(91, 42, 136, .7), rgba(59, 22, 88, .7));
  color: #fff;
}

/* Board header */
.e-board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}
.e-board-title { display: flex; align-items: center; gap: 16px; min-width: 0; }
.e-board-title .e-board-art {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex: none;
  border: 1px solid #4a3f2f;
  background: radial-gradient(circle at 50% 40%, rgba(162, 89, 236, .25), transparent 70%), #120f0c;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, .7), 0 0 0 2px #0b0907;
}
.e-board-art img { width: 64px; height: auto; }
.e-board-art .e-skill-icon { width: 36px; height: 36px; color: var(--gold-hi); }
.e-board-title h2 { font-size: clamp(24px, 2.4vw, 32px); }
.e-board-title p { color: var(--mist); }

/* Podium for the top three */
.e-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.e-podium a {
  position: relative;
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 18px 12px 14px;
  border: 1px solid #4a3f2f;
  background: linear-gradient(180deg, rgba(20, 16, 12, .8), rgba(8, 7, 5, .7));
  box-shadow: inset 0 0 22px rgba(0, 0, 0, .6);
  color: var(--bone);
  text-align: center;
  text-decoration: none;
}
.e-podium a:hover { border-color: var(--rune); }
.e-podium .e-place {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 6px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  color: #1a1206;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
}
.e-podium .p1 .e-place { background: linear-gradient(135deg, #fff1bf, #e2bf6e 50%, #8f6421); }
.e-podium .p2 .e-place { background: linear-gradient(135deg, #ffffff, #c9ccd4 50%, #6f7480); }
.e-podium .p3 .e-place { background: linear-gradient(135deg, #ffd8b0, #c9864b 50%, #6e3f1a); }
.e-podium .p1 { border-color: rgba(226, 191, 110, .6); }
.e-podium strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--gold-hi);
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.e-podium span { color: var(--mist); font-size: 15px; font-variant-numeric: tabular-nums; }

/* Ranking table additions */
.e-rank-cell { width: 70px; }
.e-table .e-medal {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  color: #1a1206;
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 700;
}
.e-medal.m1 { background: linear-gradient(135deg, #fff1bf, #e2bf6e 50%, #8f6421); }
.e-medal.m2 { background: linear-gradient(135deg, #ffffff, #c9ccd4 50%, #6f7480); }
.e-medal.m3 { background: linear-gradient(135deg, #ffd8b0, #c9864b 50%, #6e3f1a); }
.e-level-99 { color: var(--ink-rune); font-weight: 700; }

/* Pager with page numbers */
.e-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.e-page-num {
  min-width: 38px;
  min-height: 38px;
  padding: 4px 8px;
  border: 1px solid #4a3f2f;
  background: linear-gradient(180deg, #1d1813, #110e0b);
  color: var(--mist);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.e-page-num:hover { color: var(--gold-hi); border-color: #6c5a40; }
.e-page-num[aria-current="page"] { border-color: var(--rune); background: linear-gradient(180deg, #3a1a52, #1d0e29); color: #fff; }
.e-page-gap { color: var(--mist); padding: 0 2px; }

/* Compare players */
.e-compare-form { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.e-compare-vs { color: var(--rune-hi); font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.e-compare-table td:first-child { display: flex; align-items: center; gap: 8px; }
.e-compare-table .e-skill-icon { width: 18px; height: 18px; color: var(--ink-soft); }
.e-compare-table .win { color: var(--ink-rune); font-weight: 700; }
.e-compare-table .diff { color: var(--ink-soft); font-size: 14.5px; }
.e-compare-table tfoot td { border-top: 1px solid rgba(74, 46, 16, .5); font-weight: 700; }

/* Profile */
.e-profile-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}
.e-profile-id { display: flex; align-items: center; gap: 18px; min-width: 0; }
.e-combat {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  flex: none;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, #5a2a80, #26102f);
  color: #fff;
  text-align: center;
}
.e-combat > div { display: grid; justify-items: center; gap: 3px; }
.e-combat strong { font-family: var(--display); font-size: 26px; line-height: 1; }
.e-combat span { font-family: var(--display); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--rune-hi); }
.e-skill-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.e-skill-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.e-skill {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  padding: 12px 14px 12px 12px;
  border: 1px solid #3c3328;
  background: linear-gradient(180deg, rgba(20, 16, 12, .75), rgba(8, 7, 5, .65));
  box-shadow: inset 0 0 18px rgba(0, 0, 0, .5);
  color: var(--bone);
  text-decoration: none;
}
.e-skill:hover { border-color: #6c5a40; }
.e-skill .e-skill-icon {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid #4a3f2f;
  background: #0d0b08;
  color: var(--gold);
}
.e-skill-name { font-weight: 700; }
.e-skill-level {
  grid-row: span 2;
  color: var(--gold-hi);
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 0 #000;
}
.e-skill.is-max .e-skill-level { color: var(--rune-hi); }
.e-skill-meta { color: var(--mist); font-size: 14px; font-variant-numeric: tabular-nums; }
.e-progress {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  margin-top: 4px;
}
.e-bar {
  height: 6px;
  border: 1px solid #2a231a;
  background: #0a0806;
  overflow: hidden;
}
.e-bar span {
  display: block;
  height: 100%;
  width: var(--pct, 0%);
  background: linear-gradient(90deg, #6d3a95, var(--rune), var(--rune-hi));
  box-shadow: 0 0 8px rgba(162, 89, 236, .6);
}
.e-skill.is-max .e-bar span { background: linear-gradient(90deg, #8f6421, var(--gold), var(--gold-hi)); box-shadow: 0 0 8px rgba(226, 191, 110, .5); }
.e-progress small { color: #8f8470; font-size: 13px; font-variant-numeric: tabular-nums; }

/* Launch notice shared by hiscores and profiles */
.e-closed { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 26px; align-items: center; }
.e-closed img { width: 110px; height: auto; box-shadow: 0 0 0 2px #0b0907, 0 6px 16px rgba(0, 0, 0, .7); }

/* Profile: boss kill counts */
.e-boss-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.e-boss {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #3c3328;
  background: linear-gradient(180deg, rgba(20, 16, 12, .75), rgba(8, 7, 5, .65));
  color: var(--bone);
  text-decoration: none;
}
.e-boss:hover { border-color: #6c5a40; }
.e-boss .e-skill-icon {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  padding: 6px;
  border: 1px solid #4a3f2f;
  background: #0d0b08;
}
.e-boss-name { font-weight: 700; line-height: 1.2; }
.e-boss-count {
  grid-row: span 2;
  color: var(--gold-hi);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 0 #000;
}
.e-boss-meta { color: var(--mist); font-size: 13.5px; }
.e-boss.is-none { opacity: .6; }
.e-boss.is-none .e-boss-count { color: var(--mist); }

/* =====================================================================
   Inner pages
   ===================================================================== */

/* Page intro inside the first panel */
.e-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 32px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(226, 191, 110, .14);
}
.e-intro > div:first-child { display: grid; gap: 10px; min-width: 0; max-width: 64ch; }
.e-intro form { width: min(100%, 380px); }
.e-two-col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.e-side { display: grid; gap: 18px; align-content: start; }

/* ---------- Play ---------- */
.e-play-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 30px; align-items: start; }
.e-side-art {
  width: 100%;
  height: auto;
  border: 2px solid #2a2016;
  box-shadow: 0 0 0 1px rgba(226, 191, 110, .2), 0 12px 30px rgba(0, 0, 0, .7);
}
.e-download { border-color: rgba(162, 89, 236, .45); }
.e-download .e-panel-title { font-size: 20px; }

/* ---------- Item & drop database ---------- */
.e-items-layout { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 26px; align-items: start; }
.e-results { display: grid; gap: 6px; max-height: 760px; margin: 0; padding: 0 6px 0 0; overflow-y: auto; list-style: none; }
.e-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #3c3328;
  background: linear-gradient(180deg, rgba(20, 16, 12, .75), rgba(8, 7, 5, .65));
  color: var(--bone);
  text-align: left;
  cursor: pointer;
}
.e-result:hover { border-color: #6c5a40; }
.e-result[aria-pressed="true"],
.e-result.is-active { border-color: var(--rune); background: linear-gradient(90deg, rgba(91, 42, 136, .4), rgba(20, 16, 12, .7)); }
.e-result > span:first-child { display: grid; gap: 2px; min-width: 0; }
.e-result strong { font-size: 16.5px; }
.e-result small { color: var(--mist); font-size: 13.5px; }
.e-result .rate { align-self: center; color: var(--rune-hi); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.e-item-name { color: var(--gold-hi); font-family: var(--display); font-size: clamp(22px, 2vw, 28px); letter-spacing: .03em; text-shadow: 0 2px 0 #000; }
.e-item-examine { color: var(--mist); font-style: italic; }
.e-bonus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.e-bonus-grid .e-table td { padding: 6px 12px; font-size: 15.5px; }
.e-calc-controls { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 12px; align-items: end; }
.e-calc-results { display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.e-drops .e-table td { font-size: 15.5px; }

/* ---------- News ---------- */
.news-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.news-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--mist);
}
.source-badge {
  padding: 3px 10px;
  border: 1px solid #4d6d3c;
  color: #c7e6b2;
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.source-badge.mock { border-color: #6c5a40; color: var(--mist); }
.news-feed { display: grid; gap: 16px; }
.news-article {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  scroll-margin-top: 20px;
  padding: 22px 24px;
  color: var(--ink);
  background-color: var(--parchment);
  background-image:
    radial-gradient(ellipse at 18% 12%, rgba(255, 242, 205, .45), transparent 55%),
    radial-gradient(ellipse at 90% 95%, rgba(95, 58, 22, .35), transparent 55%),
    var(--stains),
    var(--noise);
  background-size: auto, auto, 600px, 220px;
  box-shadow: inset 0 0 0 1px rgba(70, 42, 14, .7), inset 0 0 34px rgba(88, 52, 18, .6), 0 0 0 2px #0b0907, 0 3px 0 2px rgba(0, 0, 0, .5);
}
.news-article-text { display: grid; gap: 8px; min-width: 0; }
.news-picture {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 2px solid #2a2016;
  box-shadow: 0 0 0 1px rgba(255, 230, 180, .25), 0 3px 8px rgba(40, 22, 6, .55);
}
.news-article-topline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; }
.news-category {
  color: var(--ink-rune);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.news-article time { color: var(--ink-soft); font-style: italic; font-size: 15px; }
.news-article h2 { color: #22160a; font-family: var(--display); font-size: clamp(20px, 2vw, 26px); font-weight: 700; letter-spacing: .02em; }
.news-summary { color: var(--ink-soft); font-size: 17px; }
.news-article details summary {
  width: max-content;
  color: var(--ink-rune);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.news-body { display: grid; gap: 10px; margin-top: 10px; color: var(--ink); max-width: 72ch; }
.news-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 22px; color: var(--mist); }
.e-footnote,
.hiscores-footnote {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(226, 191, 110, .12);
  color: #8f8470;
  font-size: 15px;
}
.hiscores-footnote strong { color: var(--mist); }

/* ---------- Guides ---------- */
.guides-items {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px 34px;
  align-items: start;
  margin-bottom: 28px;
  padding: 20px 24px 22px;
  border: 1px solid rgba(162, 89, 236, .42);
  background: linear-gradient(180deg, rgba(36, 16, 47, .5), rgba(8, 7, 5, .55));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .55), 0 6px 18px rgba(0, 0, 0, .4);
}
.guides-items-search { display: grid; gap: 12px; min-width: 0; }
.guides-items-bosses { display: grid; gap: 10px; min-width: 0; padding-top: 6px; }
.guides-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.guides-sidebar { display: grid; gap: 8px; }
#guideCategoryList { display: grid; gap: 8px; }
.guide-category { width: 100%; justify-content: flex-start; }
.guides-help-box {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 16px;
  border: 1px solid #3c3328;
  background: rgba(0, 0, 0, .3);
  color: var(--mist);
  font-size: 15.5px;
}
.guide-index-topline { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px; margin-bottom: 18px; }
.guide-index-topline h2,
.faq-section h2,
.guide-article-heading h2 {
  color: var(--gold);
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-shadow: 0 2px 0 #000;
}
.guide-index-topline p { color: var(--mist); }
.featured-guides { display: grid; gap: 12px; margin-bottom: 22px; }
.featured-guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.featured-guide-card {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 16px;
  border: 1px solid rgba(162, 89, 236, .4);
  background: linear-gradient(180deg, rgba(58, 26, 82, .45), rgba(12, 9, 7, .7));
  color: var(--bone);
  text-align: left;
  cursor: pointer;
}
.featured-guide-card:hover { border-color: var(--rune-hi); }
.featured-guide-card span { color: var(--rune-hi); font-family: var(--display); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.featured-guide-card strong { color: var(--gold-hi); font-family: var(--display); font-size: 16px; letter-spacing: .03em; }
.featured-guide-card small { color: var(--mist); font-size: 15px; }
.guide-card-list { display: grid; gap: 10px; }
.guide-list-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  padding: 16px 18px;
  border: 1px solid #3c3328;
  background: linear-gradient(180deg, rgba(20, 16, 12, .75), rgba(8, 7, 5, .65));
}
.guide-card-copy { display: grid; gap: 4px; min-width: 0; flex: 1 1 320px; }
.guide-card-category { color: var(--rune-hi); font-family: var(--display); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.guide-card-copy h3 { color: var(--gold-hi); font-family: var(--display); font-size: 17px; letter-spacing: .03em; }
.guide-card-copy p { color: var(--mist); }
.guide-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.guide-tags span { padding: 1px 8px; border: 1px solid #4a3f2f; color: #8f8470; font-size: 13px; }
.faq-section { display: grid; gap: 12px; margin-top: 28px; }
.faq-list { display: grid; gap: 8px; }
.faq-item { border: 1px solid #3c3328; background: rgba(0, 0, 0, .3); }
.faq-item summary { padding: 12px 16px; color: var(--bone); font-weight: 700; cursor: pointer; }
.faq-item summary:hover { color: var(--gold-hi); }
.faq-item p { padding: 0 16px 14px; color: var(--mist); }
.guide-article-view { display: grid; gap: 16px; }
.guide-back-button { justify-self: start; }
.guide-article-heading { display: grid; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid rgba(226, 191, 110, .14); }
.guide-article-heading p:last-child { color: var(--mist); font-size: 18px; }
#guideArticleBody { display: grid; gap: 14px; max-width: 72ch; }
.guide-article-section { display: grid; gap: 8px; padding: 18px 20px; border: 1px solid #3c3328; background: rgba(0, 0, 0, .28); }
.guide-article-section h3 { color: var(--gold); font-family: var(--display); font-size: 17px; letter-spacing: .04em; text-transform: uppercase; }
.guide-article-section ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.guide-article-section li::marker { color: var(--rune-hi); }

/* ---------- Forums ---------- */
.forum-columns { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; align-items: start; }
.forum-section-title {
  margin-bottom: 12px;
  color: var(--gold);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-shadow: 0 2px 0 #000;
}
.forum-board-list, .forum-recent-list, .forum-post-list { display: grid; gap: 10px; }
.forum-board {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid #3c3328;
  background: linear-gradient(180deg, rgba(20, 16, 12, .75), rgba(8, 7, 5, .65));
}
.forum-gem {
  width: 14px;
  height: 14px;
  margin-top: 5px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--rune-hi), var(--rune) 45%, var(--rune-deep));
  box-shadow: 0 0 10px rgba(162, 89, 236, .7);
}
.forum-board h3 { color: var(--gold-hi); font-family: var(--display); font-size: 17px; letter-spacing: .03em; }
.forum-board p { color: var(--mist); }
.forum-board-counts { display: grid; gap: 2px; color: var(--mist); font-size: 14.5px; text-align: right; }
.forum-board-counts strong { color: var(--bone); }
.forum-last-topic { grid-column: 2 / -1; color: var(--mist); font-size: 15px; }
.forum-topic-link {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #3c3328;
  background: rgba(0, 0, 0, .3);
  color: var(--bone);
  text-align: left;
  cursor: pointer;
}
.forum-last-topic .forum-topic-link { padding: 6px 10px; }
.forum-topic-link:hover { border-color: #6c5a40; }
.forum-topic-link strong { color: var(--gold); }
.forum-topic-link span { color: var(--mist); font-size: 14px; }
.forum-empty { color: var(--mist); }
.forum-composer { margin-top: 22px; border: 1px solid rgba(162, 89, 236, .4); background: rgba(0, 0, 0, .3); }
.forum-composer summary {
  padding: 14px 18px;
  color: var(--gold);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.forum-composer form { padding: 0 18px 18px; }
.forum-topic { display: grid; gap: 14px; }
.forum-back { justify-self: start; }
.forum-topic-heading h2 { color: var(--gold); font-family: var(--display); font-size: clamp(20px, 2vw, 28px); letter-spacing: .03em; text-shadow: 0 2px 0 #000; }
.forum-post { display: grid; gap: 10px; padding: 16px 18px; border: 1px solid #3c3328; background: rgba(0, 0, 0, .3); }
.forum-post header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(226, 191, 110, .12); }
.forum-post header strong { color: var(--gold-hi); margin-right: 8px; }
.forum-post header small { color: var(--rune-hi); font-family: var(--display); font-size: 11px; letter-spacing: .1em; }
.forum-post header span { color: var(--mist); font-size: 14px; }
.forum-signin-notice { color: var(--mist); }

/* ---------- Account ---------- */
.account-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.account-panel { display: none; }
.account-panel.active { display: block; }
.account-message {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-left: 3px solid var(--rune);
  background: linear-gradient(90deg, rgba(91, 42, 136, .28), rgba(91, 42, 136, .06));
}
.account-message.error { border-left-color: var(--bad); background: linear-gradient(90deg, rgba(160, 50, 30, .3), rgba(160, 50, 30, .05)); }
.auth-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 28px;
  padding: 24px;
  border: 1px solid #3c3328;
  background: linear-gradient(180deg, rgba(20, 16, 12, .75), rgba(8, 7, 5, .65));
  box-shadow: inset 0 0 22px rgba(0, 0, 0, .5);
}
.auth-card + .auth-card { margin-top: 18px; }
.auth-copy { display: grid; gap: 10px; align-content: start; }
.auth-copy h2,
.dashboard-card h3,
.dashboard-hero h2 {
  color: var(--gold);
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-shadow: 0 2px 0 #000;
}
.auth-copy p { color: var(--mist); }
.auth-form { display: grid; gap: 14px; min-width: 0; }
.auth-form label {
  display: grid;
  gap: 6px;
  color: var(--mist);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.auth-form label small { color: #8f8470; font-family: var(--body); font-size: 14px; letter-spacing: 0; text-transform: none; }
.auth-form .agreement-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--bone);
  font-family: var(--body);
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
}
.agreement-row input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--rune); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 70px; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  padding: 4px 8px;
  border: 1px solid #4a3f2f;
  background: #1a1510;
  color: var(--gold);
  font-family: var(--body);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}
.auth-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.dashboard-content { display: grid; gap: 18px; }
.dashboard-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  border: 1px solid rgba(162, 89, 236, .45);
  background: linear-gradient(90deg, rgba(58, 26, 82, .5), rgba(12, 9, 7, .6));
}
.dashboard-hero p:last-child { color: var(--mist); }
.account-status {
  padding: 4px 12px;
  border: 1px solid #4d6d3c;
  color: #c7e6b2;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.account-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.account-stat { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid #3c3328; background: rgba(0, 0, 0, .3); }
.account-stat span { color: var(--mist); font-family: var(--display); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; }
.account-stat strong { color: var(--gold-hi); font-family: var(--display); font-size: 20px; }
.dashboard-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.dashboard-card { display: grid; gap: 14px; align-content: start; padding: 20px; border: 1px solid #3c3328; background: rgba(0, 0, 0, .3); }
.reset-panel { margin-top: 18px; }
.account-message[data-type="error"] { border-left-color: var(--bad); background: linear-gradient(90deg, rgba(160, 50, 30, .3), rgba(160, 50, 30, .05)); }
.account-message[data-type="success"] { border-left-color: var(--ok); background: linear-gradient(90deg, rgba(60, 120, 50, .3), rgba(60, 120, 50, .05)); }

/* Recovery email: reset by email or by recovery code, and the dashboard card */
.recovery-options { display: grid; gap: 18px; min-width: 0; }
.recovery-option-title {
  color: var(--gold);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.recovery-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--mist);
  font-family: var(--display);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.recovery-divider::before,
.recovery-divider::after { content: ""; flex: 1; height: 1px; background: rgba(226, 191, 110, .18); }
.recovery-email-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--bone); font-weight: 700; overflow-wrap: anywhere; }
.recovery-email-note { color: var(--mist); }
.email-status {
  padding: 1px 8px;
  border: 1px solid #6c5a40;
  color: var(--mist);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.email-status[data-state="confirmed"] { border-color: #4d6d3c; color: #c7e6b2; }
.email-status[data-state="pending"] { border-color: #8a5a17; color: #e8b866; }
#dashboardRecoveryEmail .text-button { justify-self: start; }
.turnstile-slot { min-height: 65px; }

/* =====================================================================
   News Desk (staff only): write posts, choose pictures, manage posts
   ===================================================================== */
.staff-gate {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 22px 0 6px;
  color: var(--bone);
  font-size: 18px;
}
.staff-desk {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 32px;
  align-items: start;
}
.staff-editor { display: grid; gap: 18px; min-width: 0; }
.staff-editor-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
}
.staff-editor textarea.e-input { min-height: 0; resize: vertical; line-height: 1.45; }
.staff-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.staff-hint { color: #9a8d75; font-size: 14.5px; line-height: 1.4; }
.staff-count {
  float: right;
  color: #8f8470;
  font-family: var(--body);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}
.staff-count.is-over { color: var(--bad); }
.staff-editor input[type="datetime-local"] { color-scheme: dark; }

.staff-pictures {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 16px 16px 18px;
  border: 1px solid #3c3328;
  background: linear-gradient(180deg, rgba(20, 16, 12, .6), rgba(8, 7, 5, .5));
}
.staff-pictures legend {
  padding: 0 8px;
  color: var(--mist);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.staff-picture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
  max-height: 384px;
  overflow-y: auto;
  padding: 2px 4px 2px 2px;
}
.staff-picture {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 5px;
  border: 1px solid #3c3328;
  background: rgba(8, 7, 5, .55);
  color: var(--mist);
  font-family: var(--body);
  font-size: 13.5px;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}
.staff-picture:hover { border-color: #6c5a40; color: var(--bone); }
.staff-picture[aria-checked="true"] {
  border-color: var(--rune);
  background: linear-gradient(180deg, rgba(91, 42, 136, .45), rgba(20, 16, 12, .7));
  box-shadow: 0 0 0 1px var(--rune), 0 0 14px rgba(162, 89, 236, .35);
  color: var(--bone);
}
.staff-picture img,
.staff-picture .staff-none {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0b0907;
}
.staff-picture .staff-none {
  display: grid;
  place-items: center;
  border: 1px dashed #4a3f2f;
  color: #7a6f5d;
  font-size: 12.5px;
}
.staff-picture small { color: #8f8470; font-size: 12px; }
.staff-picture-wrap { display: grid; align-content: start; gap: 4px; min-width: 0; }
.staff-picture-remove {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: #c98b7c;
  font-family: var(--body);
  font-size: 12.5px;
  text-decoration: underline;
  cursor: pointer;
}
.staff-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.staff-upload .e-btn { cursor: pointer; }
.staff-upload:focus-within .e-btn { outline: 2px solid var(--rune-hi); outline-offset: 3px; }
.staff-upload.is-busy .e-btn { opacity: .6; pointer-events: none; }

.staff-check { display: flex; align-items: center; gap: 10px; color: var(--bone); font-size: 17px; cursor: pointer; }
.staff-check input { width: 20px; height: 20px; accent-color: var(--rune); }
.staff-message { min-height: 1.4em; color: var(--mist); }
.staff-message.is-error { color: var(--bad); }
.staff-message.is-ok { color: var(--ok); }
.staff-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

.staff-preview { display: grid; gap: 10px; min-width: 0; position: sticky; top: 16px; }
.staff-preview-label {
  margin-top: 6px;
  color: var(--mist);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.staff-preview-home { max-width: 430px; }
.staff-preview .news-article { grid-template-columns: minmax(0, 1fr); }
.staff-preview .news-picture { max-width: 420px; }
.staff-preview a { pointer-events: none; }

.staff-posts { display: grid; gap: 12px; margin-top: 36px; padding-top: 26px; border-top: 1px solid rgba(226, 191, 110, .14); }
.staff-table img {
  display: block;
  width: 96px;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid #2a2016;
}
.staff-table td { vertical-align: top; }
.staff-table td:first-child { width: 112px; }
.staff-post-title { display: block; color: var(--ink); font-weight: 700; }
.staff-post-summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  color: var(--ink-soft);
  font-size: 15px;
}
.staff-status {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid rgba(42, 27, 13, .45);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.staff-status.is-live { border-color: #3f6b33; color: #2f5a25; }
.staff-status.is-hidden { color: #6b5a44; }
.staff-status.is-scheduled { border-color: var(--ink-rune); color: var(--ink-rune); }
.staff-status.is-home { margin-top: 4px; border-color: #8a5a17; color: #7a4c10; }
.staff-table .staff-date { white-space: nowrap; color: var(--ink-soft); font-size: 15px; }
.staff-row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 12px; }
.staff-row-actions button {
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--ink-rune);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.staff-row-actions button.is-danger { color: #8a2a1b; }
.staff-row-actions button.is-armed { color: #fff; background: #8a2a1b; padding: 2px 8px; text-decoration: none; }
.staff-table tr.is-editing td { background: rgba(91, 42, 136, .16); }

@media (max-width: 1080px) {
  .staff-desk { grid-template-columns: minmax(0, 1fr); }
  .staff-preview { position: static; }
}
@media (max-width: 720px) {
  .staff-row { grid-template-columns: minmax(0, 1fr); }
  .staff-table thead { display: none; }
  .staff-table tr { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 4px 12px; padding: 10px 8px; border-bottom: 1px solid rgba(74, 46, 16, .22); }
  .staff-table td { padding: 0; border: 0; }
  .staff-table td:first-child { grid-row: span 3; width: auto; }
  .staff-row-actions { justify-content: flex-start; }
}

/* =====================================================================
   Motion
   ===================================================================== */
@keyframes e-rune {
  0%, 100% { opacity: .55; transform: scale(.94); }
  50% { opacity: 1; transform: scale(1.06); }
}
@keyframes e-crystal {
  0%, 100% { filter: drop-shadow(0 0 7px rgba(162, 89, 236, .7)); }
  50% { filter: drop-shadow(0 0 14px rgba(200, 140, 255, 1)); }
}
@keyframes e-flicker {
  0% { filter: drop-shadow(0 0 22px rgba(242, 164, 70, .55)) brightness(1); }
  18% { filter: drop-shadow(0 0 26px rgba(242, 164, 70, .65)) brightness(1.06); }
  37% { filter: drop-shadow(0 0 18px rgba(242, 164, 70, .45)) brightness(.95); }
  61% { filter: drop-shadow(0 0 24px rgba(242, 164, 70, .6)) brightness(1.03); }
  83% { filter: drop-shadow(0 0 20px rgba(242, 164, 70, .5)) brightness(.98); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1180px) {
  .e-nav { padding: 0 50px; }
  .e-nav-list a { padding: 0 5px; letter-spacing: .04em; }
  .e-nav-list a[aria-current="page"] { padding-inline: 12px; }
  .e-paths { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .e-paths-intro { grid-column: 1 / -1; }
  .e-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .e-row-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .e-skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .e-bonus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  .e-home-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .e-home-grid > .e-play { grid-column: 1 / -1; order: -1; justify-self: center; width: min(100%, 560px); }
  .e-hs-layout { grid-template-columns: minmax(0, 1fr); }
  .e-boards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .e-board-list { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
  .e-board-list > li { flex: none; }
  .e-board { width: auto; border-color: #3c3328; white-space: nowrap; }
  .e-two-col, .forum-columns { grid-template-columns: minmax(0, 1fr); }
  .e-items-layout { grid-template-columns: minmax(0, 1fr); }
  .e-results { max-height: 420px; }
  .e-play-layout { grid-template-columns: minmax(0, 1fr); }
  .e-side-art { display: none; }
  .account-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .e-topline { padding: 12px 0 8px; }
  .e-status-live { font-size: 14px; gap: 2px 12px; }
  .e-nav { margin-top: 0; padding: 0; }
  .e-nav::before, .e-nav::after { display: none; }
  .e-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 0;
    background: none;
    color: var(--gold);
    font-family: var(--display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-shadow: 0 2px 0 #000;
    cursor: pointer;
  }
  .e-menu-toggle[hidden] { display: none !important; }
  .e-menu-toggle svg { width: 22px; height: 22px; }
  .e-nav-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 0 10px 10px; }
  .e-js .e-nav-list:not(.is-open) { display: none; }
  .e-nav-list a {
    justify-content: center;
    min-height: 48px;
    font-size: 15px;
    border-top: 1px solid rgba(0, 0, 0, .55);
    box-shadow: inset 0 1px 0 rgba(255, 232, 190, .06);
  }
  .e-nav-list a[aria-current="page"]::before { left: 16%; }
  .e-nav-list a[aria-current="page"]::after { right: 16%; }
  .e-main { padding-top: 26px; gap: 32px; }
  .e-slab { padding: 24px 20px; }
  .e-row-3, .e-row-2 { grid-template-columns: minmax(0, 1fr); }
  .featured-guide-grid { grid-template-columns: minmax(0, 1fr); }
  .guides-layout { grid-template-columns: minmax(0, 1fr); }
  .guides-sidebar { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  #guideCategoryList { display: contents; }
  .guides-help-box { grid-column: 1 / -1; }
  .guides-items { grid-template-columns: minmax(0, 1fr); padding: 16px 14px; }
  .auth-card { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 18px; }
  .dashboard-columns { grid-template-columns: minmax(0, 1fr); }
  .e-compare-form { grid-template-columns: minmax(0, 1fr); }
  .e-compare-vs { justify-self: center; }
}

@media (max-width: 720px) {
  :root { --frame: 20px; }
  .e-stone { padding: 18px 14px 16px; }
  .e-home-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .e-home-grid > .e-play { grid-column: auto; }
  .e-play::before, .e-play::after { display: none; }
  .e-arch { --arch: 110px; padding: 18px; }
  .e-arch-window { padding: 40px 16px 22px; }
  .e-tree { width: calc(100% + 32px); margin-inline: -16px; }
  .e-news { padding: 4px 12px; }
  .e-news > li { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
  .e-news img { width: 72px; }
  .news-article { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px 16px; }
  .e-paths { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .e-features, .e-row-4 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .e-feature { grid-template-columns: 76px minmax(0, 1fr); border-width: 16px; border-image-width: 16px; }
  .e-feature img { width: 76px; height: 64px; }
  .e-skill-grid { grid-template-columns: minmax(0, 1fr); }
  .e-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .e-stat { padding: 12px; }
  .e-stat strong { font-size: 20px; }
  .e-rank-cell { width: 40px; }
  .e-podium { gap: 8px; }
  .e-podium a { padding: 14px 6px 10px; }
  .e-podium strong { font-size: 14px; }
  .e-podium span { font-size: 13px; }
  .e-bonus-grid { grid-template-columns: minmax(0, 1fr); }
  .e-closed, .e-soon { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .e-closed img, .e-soon img { width: 90px; }
  .account-stat-grid { grid-template-columns: minmax(0, 1fr); }
  .e-table th, .e-table td { padding-inline: 10px; }
  .e-calc-controls { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .guides-items .e-toggle-group { gap: 6px; }
  .guides-items .e-toggle-group a { min-height: 34px; padding: 4px 10px; font-size: 11px; letter-spacing: .05em; }
  .e-table th, .e-table td { padding-inline: 6px; }
  .e-table td { font-size: 15px; }
  .e-table th { font-size: 10.5px; letter-spacing: .05em; }
}

@media (max-width: 420px) {
  .e-account .e-btn-small { padding-inline: 12px; letter-spacing: .06em; }
  .e-hs-tab { font-size: 9.5px; letter-spacing: .03em; }
  .e-seal { width: 112px; height: 112px; margin: -56px 0 0 -56px; }
  .e-seal span { font-size: 11px; }
  .e-start li { font-size: 14px; }
}
