@font-face {
  font-family: "RuneScape";
  src: url("/runescape_uf.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #100d0b;
  --night-2: #18130f;
  --ink: #26180d;
  --stone: #28221d;
  --stone-2: #3b3229;
  --stone-3: #56483a;
  --iron: #867663;
  --parchment: #e1c48d;
  --parchment-light: #f2dfb4;
  --parchment-dark: #a97b42;
  --brass: #bd7f25;
  --gold: #efbd55;
  --blood: #81281e;
  --blood-light: #c64a34;
  --ice: #72bcca;
  --ice-deep: #225469;
  --text: #ead9b8;
  --muted: #a99a83;
  --content: 1180px;
  --header-height: 82px;
  --shadow: 0 24px 65px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 30% 0, rgba(189, 127, 37, 0.08), transparent 26rem),
    repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 4px),
    var(--night);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-150%);
  color: var(--ink);
  background: var(--parchment-light);
  border: 2px solid var(--brass);
}
.skip-link:focus { transform: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px max(24px, calc((100vw - var(--content)) / 2));
  background:
    linear-gradient(180deg, rgba(20, 16, 13, .98), rgba(33, 27, 22, .96)),
    var(--stone);
  border-bottom: 1px solid #0a0807;
  box-shadow: 0 2px 0 #5c4932, 0 6px 22px rgba(0,0,0,.34);
  transition: background 180ms ease;
}
.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brass) 18%, #f1bd55 50%, var(--brass) 82%, transparent);
  opacity: .65;
}
.site-header.scrolled { background: rgba(18, 14, 11, .985); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--parchment-light);
  text-decoration: none;
}
.brand img { width: 61px; height: 61px; object-fit: contain; filter: drop-shadow(0 4px 7px #000); }
.brand strong { display: block; font: 27px/.9 "RuneScape", Georgia, serif; letter-spacing: .05em; text-shadow: 2px 2px #000; }
.brand small { display: block; margin-top: 6px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .14em; }

.site-nav { display: flex; align-items: center; gap: 7px; }
.site-nav a {
  position: relative;
  padding: 10px 11px;
  color: #cdbf9f;
  text-decoration: none;
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  text-shadow: 1px 1px #000;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); }
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 11px;
  bottom: 3px;
  left: 11px;
  height: 1px;
  background: var(--gold);
}
.site-nav .nav-join {
  margin-left: 7px;
  padding: 10px 15px;
  color: #fff0c7;
  background: linear-gradient(#a53928, #6d1d17);
  border: 1px solid #d26447;
  box-shadow: inset 0 1px #e58566, inset 0 -2px #3e0e0c, 0 2px 5px #000;
}
.site-nav .nav-join::after { display: none; }
.nav-toggle { display: none; }

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 345px;
  grid-template-rows: auto auto;
  align-items: end;
  column-gap: 65px;
  row-gap: 22px;
  padding: calc(var(--header-height) + 40px) max(24px, calc((100vw - var(--content)) / 2)) 26px;
  overflow: hidden;
  background: #111a21;
  border-bottom: 6px solid #241b14;
}
.hero-media, .lore-banner > picture {
  position: absolute;
  inset: 0;
  display: block;
}
.hero-media > img, .lore-banner > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-art { object-position: center; }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 10, 11, .93) 0%, rgba(8, 10, 11, .7) 31%, rgba(8, 10, 11, .08) 62%, rgba(8, 10, 11, .14) 100%),
    linear-gradient(0deg, rgba(9, 7, 6, .9) 0%, transparent 38%, rgba(3, 4, 5, .2) 70%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: var(--header-height) 12px 12px;
  pointer-events: none;
  border: 1px solid rgba(225, 196, 141, .28);
  box-shadow: inset 0 0 0 3px rgba(13, 10, 8, .58);
}
.hero-copy, .hero-hud { position: relative; z-index: 2; }
.hero-copy { max-width: 590px; align-self: end; }
.world-ribbon {
  width: max-content;
  max-width: 100%;
  padding: 7px 11px;
  color: #dac89c;
  background: rgba(15, 12, 10, .76);
  border: 1px solid rgba(239, 189, 85, .38);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .19em;
}
.status-gem {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 8px;
  background: var(--ice);
  border: 1px solid #c4f4ff;
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--ice);
}
.hero-crest { width: 112px; height: 112px; display: block; margin: 16px 0 11px -2px; object-fit: contain; filter: drop-shadow(0 10px 20px rgba(0,0,0,.75)); }
.hero h1 {
  margin: 0;
  color: var(--parchment-light);
  font: clamp(72px, 8vw, 112px)/.76 "RuneScape", Georgia, serif;
  letter-spacing: .02em;
  text-shadow: 4px 5px 0 #1c120a, 0 0 25px rgba(221, 157, 47, .24);
}
.hero-kicker { margin: 23px 0 0; color: var(--gold); font: clamp(22px, 3vw, 31px)/1.1 Georgia, serif; font-weight: 700; }
.hero-description { max-width: 560px; margin: 13px 0 0; color: #d3c8b5; font-size: 15px; line-height: 1.7; text-shadow: 1px 1px 2px #000; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.copy-status { min-height: 19px; margin: 10px 0 0; color: #8e8678; font-size: 10px; letter-spacing: .04em; }

.game-button {
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  color: var(--parchment-light);
  background: #17130f;
  border: 1px solid #705d46;
  box-shadow: inset 0 0 0 2px #30271f, inset 0 0 0 3px #0b0907, 0 3px 7px rgba(0,0,0,.55);
  cursor: pointer;
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  text-shadow: 1px 1px #000;
  transition: filter 120ms ease, transform 120ms ease;
}
.game-button span { display: block; padding: 10px 17px; background: linear-gradient(#4c4235, #2b241e); border: 1px solid #867057; }
.game-button:hover { filter: brightness(1.18); transform: translateY(-1px); }
.game-button-red { border-color: #a74231; }
.game-button-red span { background: linear-gradient(#ac3c2a, #6f1e18); border-color: #d86b4c; }

.hero-hud {
  width: 345px;
  margin-bottom: 2px;
  padding: 9px;
  background: #16120f;
  border: 1px solid #070605;
  box-shadow: inset 0 0 0 2px #4e4134, inset 0 0 0 4px #211a15, var(--shadow);
}
.hud-heading { display: flex; justify-content: space-between; gap: 10px; padding: 12px 13px 10px; color: #988872; font-size: 8px; font-weight: 900; letter-spacing: .16em; }
.hud-heading strong { color: var(--ice); }
.orb-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 11px; background: #0c0a08; border: 1px solid #33291f; }
.stat-orb {
  min-width: 0;
  min-height: 91px;
  display: grid;
  grid-template-rows: 31px auto minmax(19px, auto);
  place-items: center;
  align-content: center;
  gap: 3px;
  position: relative;
  padding: 8px 4px 7px;
  text-align: center;
  border: 3px ridge #665540;
  box-shadow: inset 0 0 15px rgba(0,0,0,.78), 0 3px 4px #000;
}
.stat-orb img { max-width: 34px; max-height: 31px; image-rendering: pixelated; filter: drop-shadow(2px 2px 1px #000); }
.stat-orb strong { font: 23px/.9 "RuneScape", Georgia, serif; text-shadow: 2px 2px #000; }
.stat-orb span { align-self: start; color: #c0b198; font-size: 6.5px; font-weight: 900; letter-spacing: .06em; line-height: 1.25; text-transform: uppercase; }
.orb-red { background: linear-gradient(#4a2b20, #241713); }
.orb-blue { background: linear-gradient(#243c43, #121f24); }
.orb-gold { background: linear-gradient(#4c3a1f, #251c10); }
.target-card { margin-top: 8px; padding: 14px 15px 11px; background: linear-gradient(135deg, #2d271f, #19140f); border: 1px solid #5b4b38; box-shadow: inset 0 0 0 2px #17120e; }
.target-card small { display: block; color: var(--blood-light); font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.target-list { display: grid; margin-top: 7px; }
.target-loading { padding: 8px 0 4px; color: var(--muted); font-size: 10px; }
.target-row { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 9px 0; color: inherit; border-top: 1px solid #44372a; text-decoration: none; }
.target-row:first-child { border-top: 0; }
.target-row:hover strong { color: var(--gold); }
.target-icon { width: 28px; height: 28px; display: grid; place-items: center; color: var(--gold); background: #17120e; border: 1px solid #65503a; font-family: Georgia, serif; }
.target-copy { min-width: 0; }
.target-copy strong { display: block; overflow: hidden; color: var(--parchment-light); font-family: Georgia, serif; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.target-copy span, .target-time { color: var(--muted); font-size: 8px; }
.target-time { text-align: right; white-space: nowrap; }

.weekly-gains {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(205px,1.25fr) repeat(4,minmax(135px,1fr));
  overflow: hidden;
  background: #0d0b09;
  border: 1px solid #080605;
  box-shadow: inset 0 0 0 3px #514334, inset 0 0 0 5px #1d1712, 0 12px 28px rgba(0,0,0,.45);
}
.gains-heading { display: grid; align-content: center; padding: 14px 20px; background: linear-gradient(135deg,#3b3025,#201913); border-right: 1px solid #5a4937; }
.gains-heading span { color: var(--blood-light); font-size: 7px; font-weight: 900; letter-spacing: .17em; }
.gains-heading strong { margin-top: 3px; color: var(--parchment-light); font: 21px/1 "RuneScape", Georgia,serif; }
.gains-heading small { margin-top: 5px; color: var(--muted); font-size: 7px; }
.gain-stat { min-height: 82px; display: grid; place-content: center; padding: 11px 14px; border-left: 1px solid #342a20; text-align: center; }
.gain-stat strong { color: var(--parchment-light); font: clamp(22px,2.3vw,31px)/1 "RuneScape", Georgia,serif; font-variant-numeric: tabular-nums; text-shadow: 2px 2px #000; }
.gain-stat span { margin-top: 6px; color: #988a75; font-size: 7px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.gain-xp strong { color: #f0c864; }
.gain-kc strong { color: #ef8063; }
.gain-hours strong { color: #80d5e5; }
.gain-tracked strong { color: #d9c7a7; }

.game-ticker {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  padding: 13px 24px;
  overflow: hidden;
  color: #261708;
  background:
    repeating-linear-gradient(90deg, rgba(75,42,9,.08) 0 2px, transparent 2px 7px),
    linear-gradient(#f0d49a, #c99549);
  border-top: 2px solid #f7dea9;
  border-bottom: 2px solid #5d3a14;
  font: 11px/1 Georgia, serif;
  font-weight: 900;
  letter-spacing: .11em;
  white-space: nowrap;
}
.game-ticker i { width: 6px; height: 6px; background: var(--blood); transform: rotate(45deg); }

.community-front {
  position: relative;
  padding: 84px max(24px, calc((100vw - var(--content)) / 2));
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 10%, rgba(76,149,166,.13), transparent 25rem),
    radial-gradient(circle at 8% 90%, rgba(201,141,47,.13), transparent 24rem),
    #100d0b;
  border-bottom: 1px solid #33271d;
}
.community-front::before { content: ""; position: absolute; inset: 13px; pointer-events: none; border: 1px solid rgba(219,177,101,.17); }
.community-heading { position: relative; display: grid; grid-template-columns: minmax(300px,1fr) minmax(300px,470px); align-items: end; gap: 30px; margin-bottom: 27px; }
.community-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.community-heading > div > p { color: var(--blood-light); font-size: 8px; font-weight: 900; letter-spacing: .18em; }
.community-heading h2 { margin: 5px 0 0; color: var(--parchment-light); font: clamp(46px,6vw,68px)/.9 "RuneScape", Georgia, serif; text-shadow: 3px 3px #241408; }
.community-grid { position: relative; display: grid; grid-template-columns: 1fr; align-items: start; gap: 18px; }
.community-panel { padding: 8px; background: #17130f; border: 1px solid #080605; box-shadow: inset 0 0 0 3px #4c4033, inset 0 0 0 5px #211a14, var(--shadow); }
.community-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 18px; background: linear-gradient(#3b3127,#272019); border: 1px solid #594a38; }
.community-panel-title span { color: var(--parchment-light); font: 18px/1 Georgia, serif; font-weight: 700; }
.community-panel-title strong { color: var(--ice); font-size: 7px; letter-spacing: .14em; }
.grinder-desktop { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; background: #0f0d0b; border: 1px solid #342a20; }
.grinder-desktop-card { min-width: 0; background: #15110e; border: 1px solid #34291f; }
.grinder-desktop-heading { min-height: 154px; display: grid; grid-template-columns: 126px minmax(0,1fr); align-items: center; gap: 20px; padding: 15px 20px; overflow: hidden; background: radial-gradient(circle at 13% 50%,rgba(218,151,45,.18),transparent 30%),linear-gradient(120deg,#182326,#12100e 68%); border-bottom: 1px solid #443526; }
.grinder-desktop-boss .grinder-desktop-heading { background: radial-gradient(circle at 13% 50%,rgba(169,48,29,.22),transparent 30%),linear-gradient(120deg,#261714,#111012 68%); }
.grinder-desktop-art { width: 116px; aspect-ratio: 1; overflow: hidden; border: 7px ridge #8a6a38; border-radius: 50%; box-shadow: inset 0 0 18px #000,0 10px 18px rgba(0,0,0,.55); }
.grinder-desktop-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.grinder-desktop-skill .grinder-desktop-art img { object-position: 53% center; }
.grinder-desktop-boss .grinder-desktop-art img { object-position: 64% center; }
.grinder-desktop-heading small,.grinder-desktop-heading strong,.grinder-desktop-heading em { display: block; }
.grinder-desktop-heading small { color: var(--gold); font-size: 7px; font-weight: 900; letter-spacing: .14em; }
.grinder-desktop-heading strong { margin: 8px 0 6px; color: var(--parchment-light); font: clamp(27px,3vw,38px)/.95 "RuneScape",Georgia,serif; text-shadow: 2px 2px #000; }
.grinder-desktop-heading em { color: #aa9d87; font-size: 9px; font-style: normal; line-height: 1.45; }
.grinder-desktop-boss .grinder-total strong { color: #ef8063; }
.grinder-showcase { position: relative; display: none; overflow: hidden; background: #0f0d0b; border: 1px solid #342a20; }
.grinder-scene { min-height: 222px; display: grid; grid-template-columns: 196px minmax(0,1fr); align-items: center; gap: 22px; position: relative; padding: 20px 22px; overflow: hidden; background: radial-gradient(circle at 24% 50%, rgba(218,151,45,.16), transparent 31%), linear-gradient(120deg,#182326,#12100e 68%); border-bottom: 1px solid #443526; transition: background 700ms ease; }
.grinder-showcase[data-mode="bosses"] .grinder-scene { background: radial-gradient(circle at 24% 50%, rgba(169,48,29,.2), transparent 31%), linear-gradient(120deg,#261714,#111012 68%); }
.grinder-scene::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg,transparent 58%,rgba(232,199,135,.04)); }
.grinder-wheel-stage { min-width: 0; display: grid; justify-items: center; position: relative; z-index: 1; }
.grinder-wheel { width: 188px; max-width: 100%; aspect-ratio: 1; position: relative; z-index: 1; justify-self: center; border-radius: 50%; perspective: 900px; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; filter: drop-shadow(0 12px 15px rgba(0,0,0,.62)); }
.grinder-wheel:active, .grinder-wheel.dragging { cursor: grabbing; }
.grinder-wheel::before { content: ""; position: absolute; z-index: 4; inset: -8px; pointer-events: none; border: 7px ridge #8a6a38; border-radius: 50%; box-shadow: inset 0 0 0 2px #24190d, 0 0 0 2px #171008, 0 0 21px rgba(221,157,50,.2); }
.grinder-wheel-rotor { --wheel-angle: 0deg; width: 100%; height: 100%; position: relative; border-radius: 50%; transform: rotateY(var(--wheel-angle)); transform-style: preserve-3d; transition: transform 850ms cubic-bezier(.2,.74,.18,1); will-change: transform; }
.grinder-wheel.dragging .grinder-wheel-rotor { transition: none; }
.grinder-wheel-face { position: absolute; inset: 0; overflow: hidden; border-radius: 50%; backface-visibility: hidden; background: #17120f; }
.grinder-wheel-face::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle,transparent 50%,rgba(5,4,3,.62) 100%); box-shadow: inset 0 0 24px #000; }
.grinder-wheel-face img { width: 100%; height: 100%; display: block; object-fit: cover; pointer-events: none; }
.grinder-wheel-skill img { object-position: 53% center; }
.grinder-wheel-boss { transform: rotateY(180deg); }
.grinder-wheel-boss img { object-position: 64% center; }
.grinder-wheel-runes { position: absolute; z-index: 5; inset: -2px; pointer-events: none; border: 2px dotted rgba(240,196,94,.72); border-radius: 50%; transition: transform 1s cubic-bezier(.2,.74,.18,1), border-color 500ms ease; }
.grinder-wheel-runes::before, .grinder-wheel-runes::after { position: absolute; top: 50%; width: 22px; height: 22px; display: grid; place-items: center; margin-top: -11px; color: #f0c45e; background: #25190c; border: 2px ridge #8a6a38; border-radius: 50%; font: 12px/1 Georgia,serif; box-shadow: 0 2px 6px #000; }
.grinder-wheel-runes::before { content: "✦"; left: -11px; }
.grinder-wheel-runes::after { content: "⚔"; right: -11px; transform: rotate(180deg); }
.grinder-showcase[data-mode="bosses"] .grinder-wheel-runes { transform: rotate(180deg); border-color: rgba(224,90,62,.76); }
.grinder-intro { min-width: 0; position: relative; z-index: 1; }
.grinder-intro > span { color: var(--gold); font-size: 7px; font-weight: 900; letter-spacing: .14em; }
.grinder-intro h3 { margin: 8px 0 7px; color: var(--parchment-light); font: clamp(27px,3vw,39px)/.95 "RuneScape",Georgia,serif; text-shadow: 2px 2px #000; }
.grinder-intro p { max-width: 310px; margin: 0; color: #aa9d87; font-size: 10px; line-height: 1.65; }
.grinder-list { display: grid; gap: 1px; padding: 1px; background: #34291f; }
.grinder-entry { min-height: 58px; display: grid; grid-template-columns: 31px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 9px 13px; color: inherit; background: #15110e; text-decoration: none; }
.grinder-entry:hover { background: #211a14; }
.grinder-place { width: 29px; height: 29px; display: grid; place-items: center; color: #e8c475; background: #281e14; border: 1px solid #5c4730; font: 12px/1 "RuneScape",Georgia,serif; }
.grinder-entry:first-child .grinder-place { color: #2d1b0a; background: linear-gradient(#f2d26f,#bd782b); border-color: #f5d77a; }
.grinder-name { min-width: 0; }
.grinder-name strong { display: block; overflow: hidden; color: var(--parchment-light); font: 12px/1.1 Georgia,serif; text-overflow: ellipsis; white-space: nowrap; }
.grinder-name small { display: block; overflow: hidden; margin-top: 4px; color: var(--muted); font-size: 7.5px; text-overflow: ellipsis; white-space: nowrap; }
.grinder-total { text-align: right; }
.grinder-total strong { display: block; color: var(--ice); font: 15px/1 "RuneScape",Georgia,serif; }
.grinder-showcase[data-mode="bosses"] .grinder-total strong { color: #ef8063; }
.grinder-total small { display: block; margin-top: 3px; color: #786d5d; font-size: 6px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.grinder-controls { display: grid; grid-template-columns: 1fr 42px 1fr; align-items: stretch; gap: 1px; background: #3b2f23; border-top: 1px solid #564430; }
.grinder-controls button { min-height: 46px; padding: 9px 10px; color: #8e806c; background: linear-gradient(#29221b,#191511); border: 0; font: 9px/1.15 Georgia,serif; font-weight: 700; cursor: pointer; }
.grinder-controls button span { margin-right: 4px; color: currentColor; }
.grinder-controls button[aria-selected="true"] { color: #f0d5a3; background: linear-gradient(#684a25,#302113); box-shadow: inset 0 0 0 1px #9b7137; }
.grinder-showcase[data-mode="bosses"] .grinder-controls button[aria-selected="true"] { background: linear-gradient(#733225,#351914); box-shadow: inset 0 0 0 1px #a84e39; }
.grinder-control-disc { display: grid; place-items: center; color: var(--gold); background: #120f0c; font-size: 19px; transition: transform 850ms cubic-bezier(.2,.74,.18,1), color 500ms ease; }
.grinder-showcase[data-mode="bosses"] .grinder-control-disc { color: var(--blood-light); transform: rotate(180deg); }
.grinder-swipe-hint { display: none; margin: 0; padding: 10px 12px; color: #776c5d; background: #0d0b09; font-size: 7px; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.community-event-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.community-event { min-height: 82px; display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 13px; padding: 13px 15px; border-top: 1px solid #33291f; }
.community-event:first-child { border-top: 0; }
.community-event:nth-child(-n+3) { border-top: 0; }
.community-event + .community-event { border-left: 1px solid #33291f; }
.event-stamp { display: grid; place-content: center; color: #2f1b0c; background: linear-gradient(#e3c78f,#bd8c4f); border: 1px solid #6e461e; text-align: center; box-shadow: inset 0 0 8px rgba(70,38,10,.27); }
.event-stamp strong { font: 20px/1 Georgia,serif; }
.event-stamp span { margin-top: 3px; font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.community-event-copy { min-width: 0; align-self: center; }
.community-event-copy h3 { margin: 0; overflow: hidden; color: var(--parchment-light); font: 14px/1.2 Georgia,serif; text-overflow: ellipsis; white-space: nowrap; }
.community-event-copy p { margin: 5px 0 0; color: var(--muted); display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 9px; line-height: 1.45; }
.panel-link { display: block; padding: 13px 17px; color: var(--gold); background: #0d0b09; border-top: 1px solid #342a20; font-size: 9px; font-weight: 900; text-align: right; text-decoration: none; }
.panel-link:hover { color: var(--parchment-light); }

.chapter { position: relative; padding: 105px max(24px, calc((100vw - var(--content)) / 2)); }
.chapter::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .28; background: radial-gradient(circle at 10% 20%, rgba(212,153,56,.15), transparent 26rem), repeating-linear-gradient(135deg, rgba(255,255,255,.016) 0 1px, transparent 1px 9px); }
.chapter-title { display: grid; grid-template-columns: 70px minmax(250px, 1fr) minmax(260px, 480px); align-items: end; gap: 18px; margin-bottom: 38px; }
.chapter-rune {
  width: 61px;
  height: 61px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: radial-gradient(circle, #463625, #19130f);
  border: 2px ridge #8a6a3d;
  box-shadow: inset 0 0 12px #000, 0 4px 10px #000;
  font: 30px/1 Georgia, serif;
}
.chapter-title p { margin: 0; color: var(--brass); font-size: 9px; font-weight: 900; letter-spacing: .19em; }
.chapter-title h2 { margin: 3px 0 0; color: var(--parchment-light); font: clamp(43px, 6vw, 68px)/.9 "RuneScape", Georgia, serif; letter-spacing: .02em; text-shadow: 3px 3px #241408; }
.chapter-title .chapter-intro { max-width: 460px; justify-self: end; padding-bottom: 5px; color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: 0; line-height: 1.7; }

.competition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; }
.battle-card {
  position: relative;
  overflow: hidden;
  background: #17130f;
  border: 1px solid #090706;
  box-shadow: inset 0 0 0 3px #44382c, inset 0 0 0 5px #17120e, var(--shadow);
}
.battle-top { min-height: 116px; display: flex; align-items: center; gap: 17px; padding: 22px 24px; background: radial-gradient(circle at 90% 0, rgba(194,125,29,.16), transparent 15rem), linear-gradient(135deg, #372e25, #211a15); border-bottom: 1px solid #594832; }
.battle-icon { width: 66px; height: 66px; display: grid; place-items: center; flex: 0 0 auto; color: var(--gold); background: radial-gradient(circle, #5b4227, #1b1510); border: 4px ridge #8a6b3e; font: 30px/1 Georgia, serif; box-shadow: inset 0 0 13px #000; }
.battle-type { display: block; color: var(--blood-light); font-size: 8px; font-weight: 900; letter-spacing: .16em; }
.battle-card h3 { margin: 4px 0; color: var(--parchment-light); font: 24px/1.1 Georgia, serif; }
.battle-timer { color: var(--muted); font-size: 10px; }
.battle-ranks { padding: 9px 20px 15px; }
.rank-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 44px; border-bottom: 1px solid #332a21; }
.rank-row:last-child { border-bottom: 0; }
.rank-medal { width: 25px; height: 25px; display: grid; place-items: center; color: #b7a88f; background: #272019; border: 1px solid #554532; font-size: 9px; font-weight: 900; }
.rank-row:first-child .rank-medal { color: #2b1806; background: var(--gold); border-color: #ffe19d; }
.rank-name { overflow: hidden; color: #e5d6b9; font-family: Georgia, serif; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.rank-gain { color: var(--ice); font-size: 11px; font-variant-numeric: tabular-nums; }
.battle-meta { display: flex; justify-content: space-between; gap: 15px; padding: 12px 21px; color: #837764; background: #0d0b09; border-top: 1px solid #342a20; font-size: 9px; }
.battle-meta a { color: var(--gold); text-decoration: none; }
.battle-meta a:hover { text-decoration: underline; }

.loading-panel { min-height: 400px; padding: 28px; }
.loading-panel span { height: 43px; display: block; margin-bottom: 15px; background: linear-gradient(90deg, #201a15, #403429, #201a15); background-size: 220% 100%; animation: shimmer 1.4s infinite; }
.loading-panel span:nth-child(2) { height: 180px; }
.loading-panel span:nth-child(3) { width: 60%; }

.ledger-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(330px, .82fr); gap: 19px; margin-top: 20px; }
.stone-window {
  padding: 8px;
  background: #17130f;
  border: 1px solid #080605;
  box-shadow: inset 0 0 0 3px #4c4033, inset 0 0 0 5px #211a14, var(--shadow);
}
.window-title { display: grid; grid-template-columns: 112px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 17px 18px; background: linear-gradient(#3b3127, #272019); border: 1px solid #594a38; }
.window-title span { color: var(--blood-light); font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.window-title strong { color: var(--parchment-light); font-family: Georgia, serif; }
.window-title i { color: var(--muted); font-size: 9px; font-style: normal; }
.ladder-head, .ladder-row { display: grid; grid-template-columns: 58px minmax(0,1fr) 62px; gap: 8px; align-items: center; }
.ladder-head { padding: 11px 16px 8px; color: #726756; background: #0d0b09; font-size: 7px; font-weight: 900; letter-spacing: .12em; }
.ladder-row { min-height: 42px; padding: 8px 16px; background: #16120f; border-top: 1px solid #31281f; font-size: 11px; }
.ladder-row:nth-child(odd) { background: #1b1612; }
.ladder-row .rank { color: var(--gold); font-family: Georgia, serif; }
.ladder-row strong { overflow: hidden; color: #e5d6b9; text-overflow: ellipsis; white-space: nowrap; }
.ladder-row span:not(.rank) { color: #9b8e79; text-align: right; }

.parchment {
  position: relative;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 20%, rgba(120,70,23,.11), transparent 16rem),
    repeating-linear-gradient(0deg, rgba(66,38,11,.035) 0 1px, transparent 1px 4px),
    linear-gradient(90deg, #c99e5e, #edd39c 7%, #e3c184 91%, #ba8444);
  border: 1px solid #6b431e;
  box-shadow: inset 0 0 28px rgba(87,48,13,.35), 0 20px 55px rgba(0,0,0,.38);
}
.rules-scroll { align-self: start; padding: 34px 33px 27px; }
.rules-scroll::before, .rules-scroll::after { content: ""; position: absolute; right: 12px; left: 12px; height: 8px; background: linear-gradient(90deg, transparent, rgba(101,59,19,.3), transparent); }
.rules-scroll::before { top: 9px; }
.rules-scroll::after { bottom: 9px; }
.wax-seal { position: absolute; top: 26px; right: 26px; width: 50px; height: 50px; display: grid; place-items: center; color: #e9b697; background: radial-gradient(circle, #a73c2d, #6d1714); border: 3px double #c76b4b; border-radius: 50%; box-shadow: 0 3px 5px rgba(66,20,10,.45); font: 17px/1 "RuneScape", serif; transform: rotate(7deg); }
.scroll-kicker { margin: 0; color: #8b271c; font-size: 8px; font-weight: 900; letter-spacing: .16em; }
.rules-scroll h3 { margin: 5px 65px 18px 0; font: 29px/1 Georgia, serif; }
.point-rewards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.point-rewards div { padding: 12px 6px; text-align: center; border: 1px solid rgba(85,48,15,.28); background: rgba(255,255,255,.14); }
.point-rewards b, .point-rewards span { display: block; color: #73401c; font-size: 8px; text-transform: uppercase; }
.point-rewards strong { display: block; font: 27px/1 Georgia, serif; }
.rules-scroll > p:not(.scroll-kicker) { font-family: Georgia, serif; font-size: 12px; line-height: 1.65; }
.upcoming { margin-top: 14px; }
.upcoming > .scroll-kicker { margin-bottom: 5px; }
.upcoming-item { display: flex; justify-content: space-between; gap: 13px; padding: 8px 0; border-top: 1px solid rgba(85,48,15,.22); font-size: 10px; }
.upcoming-item span { color: #7b512c; }

.lore-banner { position: relative; min-height: 560px; display: flex; align-items: center; padding: 80px max(24px, calc((100vw - var(--content)) / 2)); overflow: hidden; border-top: 5px solid #332318; border-bottom: 5px solid #332318; }
.lore-banner::after { content: ""; position: absolute; inset: 12px; pointer-events: none; border: 1px solid rgba(239,189,85,.28); box-shadow: inset 0 0 0 3px rgba(8,6,5,.55); }
.lore-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,7,6,.95), rgba(10,7,6,.75) 28%, rgba(10,7,6,.06) 62%); }
.lore-shade-right { background: linear-gradient(270deg, rgba(7,9,9,.95), rgba(7,9,9,.75) 30%, rgba(7,9,9,.04) 65%); }
.lore-copy { position: relative; z-index: 2; max-width: 500px; }
.lore-copy-right { margin-left: auto; text-align: right; }
.lore-label { margin: 0 0 9px; color: var(--gold); font-size: 9px; font-weight: 900; letter-spacing: .2em; }
.lore-copy h2 { margin: 0; color: var(--parchment-light); font: clamp(48px, 6vw, 76px)/.85 "RuneScape", Georgia, serif; text-shadow: 3px 4px #160b06; }
.lore-copy > p:not(.lore-label) { max-width: 470px; margin: 19px 0; color: #d1c5b4; font-family: Georgia, serif; font-size: 15px; line-height: 1.7; text-shadow: 1px 1px #000; }
.lore-copy-right > p:not(.lore-label) { margin-left: auto; }
.lore-copy-right .game-button { margin-left: auto; }
.lore-meta { width: max-content; min-width: 210px; display: flex; justify-content: space-between; gap: 20px; margin-top: 22px; padding: 11px 14px; color: #f1d8a6; background: rgba(15,10,8,.72); border: 1px solid rgba(239,189,85,.43); font-size: 9px; letter-spacing: .1em; }
.lore-meta strong { color: #f47d50; }
.lore-copy a.lore-meta { text-decoration: none; }
.lore-copy a.lore-meta:hover { color: #fff0cf; border-color: rgba(255,218,135,.82); }

.upcoming-carousel { padding: 0; }
.upcoming-slides { position: absolute; inset: 0; }
.upcoming-slide { position: absolute; inset: 0; display: flex; align-items: center; padding: 80px max(24px,calc((100vw - var(--content)) / 2)); opacity: 0; pointer-events: none; transform: scale(1.025); transition: opacity 750ms ease,transform 1200ms ease; }
.upcoming-slide.active { z-index: 1; opacity: 1; pointer-events: auto; transform: scale(1); }
.upcoming-slide > picture { position: absolute; inset: 0; display: block; }
.upcoming-slide > picture > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.upcoming-slide .lore-copy { transform: translateY(10px); transition: transform 850ms ease 120ms; }
.upcoming-slide.active .lore-copy { transform: none; }
.upcoming-carousel-controls { position: absolute; z-index: 4; right: max(24px,calc((100vw - var(--content)) / 2)); bottom: 24px; display: flex; align-items: center; gap: 10px; padding: 6px; background: rgba(11,8,6,.8); border: 1px solid rgba(239,189,85,.35); box-shadow: 0 8px 22px rgba(0,0,0,.48); }
.upcoming-carousel-controls > button { width: 35px; height: 35px; display: grid; place-items: center; padding: 0; color: #e9c878; background: #231a12; border: 1px solid #604827; font: 25px/1 Georgia,serif; cursor: pointer; }
.upcoming-carousel-controls > button:hover { color: #fff0c7; background: #3b2815; }
.upcoming-dots { display: flex; align-items: center; gap: 7px; }
.upcoming-dots button { width: 9px; height: 9px; padding: 0; background: #625343; border: 1px solid #17100b; border-radius: 50%; cursor: pointer; box-shadow: 0 0 0 1px #765e3d; }
.upcoming-dots button.active { background: var(--gold); box-shadow: 0 0 0 1px #f2d078,0 0 9px rgba(235,184,71,.6); }

.notice-chapter { background: #1c1611; }
.noticeboard { position: relative; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(310px,.75fr); gap: 40px; padding: 34px; background: linear-gradient(135deg, #593b22, #382416); border: 9px ridge #7b5431; box-shadow: inset 0 0 50px rgba(34,17,7,.75), var(--shadow); }
.noticeboard::before { content: ""; position: absolute; inset: 10px; pointer-events: none; border: 1px dashed rgba(232,190,121,.18); }
.notice-column { position: relative; z-index: 1; }
.board-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; margin-bottom: 14px; color: #f0d79f; font-family: Georgia, serif; }
.board-heading span { font-size: 19px; font-weight: 700; }
.board-heading small { color: #aa865c; font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.event-list, .announcement-list { display: grid; gap: 12px; }
.quest-note {
  position: relative;
  display: grid;
  grid-template-columns: 80px minmax(0,1fr);
  min-height: 126px;
  color: var(--ink);
  background:
    repeating-linear-gradient(0deg, rgba(92,50,12,.025) 0 1px, transparent 1px 4px),
    #dfbd7e;
  border: 1px solid #805525;
  box-shadow: 4px 5px 0 rgba(31,16,7,.3), inset 0 0 20px rgba(96,52,14,.15);
  transform: rotate(-.25deg);
}
.quest-note:nth-child(even) { transform: rotate(.25deg); background-color: #e8c98f; }
.quest-date { display: grid; place-content: center; text-align: center; border-right: 1px dashed rgba(79,43,13,.35); }
.quest-date strong { font: 28px/1 Georgia, serif; }
.quest-date span { margin-top: 4px; color: #81511f; font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.quest-body { padding: 17px 18px; }
.quest-body h4 { margin: 0 0 6px; font: 16px/1.2 Georgia, serif; }
.quest-body p { margin: 0; color: #5b4026; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; font-size: 11px; white-space: pre-line; }
.quest-body small { display: block; margin-top: 8px; color: #88613a; font-size: 8px; }
.town-message { padding: 16px 17px 15px; color: #dbcaa8; background: #1b1612; border: 1px solid #6b5033; box-shadow: inset 0 0 0 2px #2e241b, 3px 4px 0 rgba(23,12,6,.28); }
.town-message h4 { margin: 0 0 7px; color: var(--gold); font: 15px/1.25 Georgia, serif; }
.town-message p { margin: 0; color: #aa9c86; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 4; -webkit-box-orient: vertical; font-size: 10px; white-space: pre-line; }
.town-message time { display: block; margin-top: 9px; color: #716655; font-size: 8px; }

.roster-chapter { background: linear-gradient(#15110e, #0f0c0a); }
.roster-tools { display: flex; align-items: end; gap: 11px; margin-bottom: 13px; }
.game-input, .game-select { display: grid; gap: 5px; color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.game-input { flex: 1; }
.game-input input, .game-select select { min-height: 44px; padding: 9px 12px; color: #ead9b8; background: #0d0a08; border: 2px inset #5d4c39; outline: 0; }
.game-input input:focus, .game-select select:focus { border-color: var(--brass); }
.game-input input::placeholder { color: #675c4d; }
.game-select select { min-width: 190px; }
.game-select option { background: #18130f; }
.roster-count { min-width: 90px; padding-bottom: 12px; color: var(--gold); font: 18px/1 "RuneScape", serif; text-align: right; }
.roster-window { overflow: auto; }
.member-table { width: 100%; border-collapse: collapse; background: #14100d; font-size: 11px; }
.member-table th { padding: 14px 16px; color: #8c7e69; background: linear-gradient(#30271f,#211a15); border: 1px solid #493b2d; font-size: 7px; letter-spacing: .12em; text-align: left; text-transform: uppercase; }
.member-table td { padding: 12px 16px; border: 1px solid #30271f; font-variant-numeric: tabular-nums; }
.member-table tbody tr:nth-child(even) { background: #18130f; }
.member-table tbody tr:hover { background: #241c15; }
.member-table .member-type-heading th { padding: 11px 15px; color: #f0c96a; background: linear-gradient(90deg,#392412,#1b140e 68%,#15100d); border: 1px solid #74562d; box-shadow: inset 0 1px 0 rgba(255,220,130,.1); font: 700 14px/1.15 Georgia, serif; letter-spacing: .02em; text-transform: none; }
.member-type-heading-content, .member-type-heading-content > span { display: flex; align-items: center; gap: 8px; }
.member-type-heading-content > strong { margin-left: auto; min-width: 25px; padding: 4px 6px; color: #ffe4a0; background: #0b0806; border: 1px solid #665035; font: 800 9px/1 Arial, sans-serif; text-align: center; }
.member-type-heading .account-mode-icon { height: 18px; }
.member-table td:not(:first-child) { color: #968976; }
.member-name-line { min-height: 20px; display: inline-flex; align-items: center; gap: 7px; }
.member-table a { color: var(--parchment-light); font-family: Georgia, serif; font-weight: 700; text-decoration: none; }
.member-table a:hover { color: var(--gold); }
.account-mode-icon { width: auto; height: 19px; flex: 0 0 auto; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(1px 1px 0 #000); }
.rank-badge { color: #c6aa77; text-transform: capitalize; }

.streams-chapter { background: radial-gradient(circle at 50% 0, rgba(43,95,112,.24), transparent 32rem), #0b1113; border-top: 1px solid #24434c; border-bottom: 1px solid #24434c; }
.stream-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.scry-card { position: relative; min-height: 225px; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; overflow: hidden; color: #e4e6df; background: radial-gradient(circle at 50% 20%, rgba(77,167,192,.2), transparent 10rem), linear-gradient(145deg,#1d3034,#0e1719); border: 5px ridge #3d626a; box-shadow: inset 0 0 28px #000, 0 10px 30px rgba(0,0,0,.4); text-decoration: none; transition: filter 150ms ease, transform 150ms ease; }
.scry-card:hover { filter: brightness(1.16); transform: translateY(-2px); }
.scry-platform { width: max-content; margin-bottom: auto; padding: 4px 7px; color: #9fe4f2; background: rgba(0,0,0,.35); border: 1px solid #3b7785; font-size: 7px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.scry-card h3 { margin: 20px 0 6px; color: #f1e6cd; font: 18px/1.2 Georgia, serif; }
.scry-card p { margin: 0; color: #90a9ac; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 10px; }
.scry-watch { margin-top: 13px; color: var(--gold); font-size: 9px; font-weight: 900; }

.clan-chapter { background: #17120e; }
.custom-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.custom-card { min-height: 225px; padding: 23px; background: linear-gradient(145deg,#30271f,#1c1612); border: 1px solid #604c34; box-shadow: inset 0 0 0 2px #17120e; }
.custom-card > span { width: 34px; height: 34px; display: grid; place-items: center; color: var(--gold); background: #17120e; border: 1px solid #705638; font: 13px/1 Georgia, serif; }
.custom-card h3 { margin: 45px 0 8px; color: var(--parchment-light); font: 19px/1.1 Georgia, serif; }
.custom-card p { margin: 0; color: var(--muted); font-size: 11px; }
.join-hall { display: grid; grid-template-columns: 190px minmax(0,1fr) 210px; align-items: center; gap: 30px; margin-top: 45px; padding: 25px 35px; background: radial-gradient(circle at 15% 50%, rgba(199,125,29,.18), transparent 18rem), linear-gradient(135deg,#392d22,#211912); border: 1px solid #100b08; box-shadow: inset 0 0 0 3px #71583b, inset 0 0 0 5px #1b140f, var(--shadow); }
.join-hall > img { width: 180px; height: 180px; object-fit: contain; filter: drop-shadow(0 8px 10px #000); }
.join-hall > div > p { margin: 0; color: var(--blood-light); font-size: 8px; font-weight: 900; letter-spacing: .18em; }
.join-hall h2 { margin: 3px 0 8px; color: var(--parchment-light); font: 47px/.9 "RuneScape", Georgia, serif; }
.join-hall > div > span { display: block; max-width: 570px; color: var(--muted); font-family: Georgia, serif; font-size: 12px; }
.join-actions { display: grid; gap: 9px; }

.site-footer { width: min(var(--content), calc(100% - 48px)); display: grid; grid-template-columns: 75px 1fr auto; align-items: center; gap: 15px; margin: auto; padding: 38px 0; color: #7f7464; font-size: 9px; }
.site-footer img { width: 68px; height: 68px; object-fit: contain; }
.site-footer div strong { display: block; color: var(--parchment-light); font: 23px/1 "RuneScape", serif; }
.site-footer div span { display: block; margin-top: 5px; }
.site-footer p { margin: 0; text-align: right; }
.site-footer small { grid-column: 3; text-align: right; }
.empty-state { margin: 0; padding: 24px; color: var(--muted); text-align: center; }
.toast { position: fixed; z-index: 150; right: 22px; bottom: 22px; padding: 12px 17px; pointer-events: none; opacity: 0; transform: translateY(10px); color: var(--ink); background: var(--parchment-light); border: 3px ridge var(--parchment-dark); box-shadow: var(--shadow); font-family: Georgia, serif; font-size: 12px; font-weight: 700; transition: opacity 160ms ease, transform 160ms ease; }
.toast.visible { opacity: 1; transform: none; }
.noscript { position: fixed; z-index: 170; right: 0; bottom: 0; left: 0; padding: 12px; color: var(--ink); background: var(--parchment-light); text-align: center; }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.visible { opacity: 1; transform: none; }

@keyframes shimmer { to { background-position: -220% 0; } }
@keyframes swipeHand { 0%,100% { transform: translateX(-13px) rotate(-10deg); } 50% { transform: translateX(13px) rotate(10deg); } }

@media (max-width: 1020px) {
  :root { --header-height: 72px; }
  .site-header { padding-inline: 18px; }
  .brand img { width: 54px; height: 54px; }
  .brand small { display: none; }
  .nav-toggle { width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; color: var(--parchment-light); background: #17130f; border: 2px ridge #65533f; }
  .nav-toggle i { width: 19px; height: 2px; display: block; background: currentColor; }
  .site-nav { position: absolute; top: calc(100% + 4px); right: 0; left: 0; display: none; padding: 13px 18px 20px; background: #17120f; border-bottom: 3px solid var(--brass); box-shadow: 0 14px 25px #000; }
  .site-nav.open { display: grid; }
  .site-nav a { padding: 11px 8px; }
  .site-nav .nav-join { margin: 4px 0 0; text-align: center; }
  .hero { min-height: 920px; grid-template-columns: 1fr; grid-template-rows: auto; align-content: end; gap: 24px; padding-top: calc(var(--header-height) + 46px); }
  .hero-copy { align-self: end; }
  .hero-hud { width: min(100%, 510px); }
  .weekly-gains { grid-template-columns: minmax(190px,1.15fr) repeat(4,1fr); }
  .gains-heading { padding-inline: 15px; }
  .hero-shade { background: linear-gradient(90deg, rgba(8,10,11,.92), rgba(8,10,11,.62) 55%, rgba(8,10,11,.18)), linear-gradient(0deg, rgba(9,7,6,.88), transparent 48%); }
  .chapter-title { grid-template-columns: 60px 1fr; }
  .chapter-title .chapter-intro { grid-column: 2; justify-self: start; }
  .ledger-grid { grid-template-columns: 1fr; }
  .noticeboard { grid-template-columns: 1fr; }
  .stream-grid { grid-template-columns: repeat(2,1fr); }
  .custom-grid { grid-template-columns: repeat(2,1fr); }
  .join-hall { grid-template-columns: 145px 1fr; }
  .join-hall > img { width: 140px; height: 140px; }
  .join-actions { grid-column: 2; grid-template-columns: repeat(2,1fr); }
  .community-heading { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .brand strong { font-size: 23px; }
  .hero { min-height: 0; align-content: end; gap: 18px; padding: 315px 17px 32px; }
  .hero::after { right: 5px; left: 5px; }
  .hero-media { height: 430px; bottom: auto; -webkit-mask-image: linear-gradient(#000 0 76%, transparent 100%); mask-image: linear-gradient(#000 0 76%, transparent 100%); }
  .hero-media > img { object-position: center 31%; }
  .hero-shade { background: linear-gradient(0deg, rgba(8,8,8,.99) 0%, rgba(8,8,8,.98) 50%, rgba(8,8,8,.28) 75%, rgba(8,8,8,.06) 100%); }
  .hero-copy { padding-top: 0; }
  .hero-crest { width: 72px; height: 72px; margin: 0 0 9px; }
  .hero h1 { font-size: 62px; line-height: .84; }
  .hero-kicker { margin-top: 16px; font-size: 20px; }
  .hero-description { font-size: 13px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .game-button { width: 100%; }
  .hero-hud { padding: 7px; }
  .orb-row { gap: 6px; padding: 8px; }
  .stat-orb { min-height: 86px; border-width: 3px; }
  .stat-orb strong { font-size: 21px; }
  .target-row { grid-template-columns: 28px minmax(0,1fr); }
  .target-time { grid-column: 2; margin-top: -5px; text-align: left; }
  .weekly-gains { order: -1; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .gains-heading { grid-column: 1 / -1; padding: 12px 15px; border-right: 0; border-bottom: 1px solid #5a4937; }
  .gains-heading strong { font-size: 19px; }
  .gain-stat { min-height: 66px; padding: 8px 6px; }
  .gain-stat strong { font-size: 24px; }
  .gain-stat:nth-child(even) { border-left: 0; }
  .gain-stat:nth-child(n+4) { border-top: 1px solid #342a20; }
  .game-ticker { justify-content: flex-start; overflow-x: auto; }
  .community-front { padding: 68px 17px; }
  .community-heading { grid-template-columns: 1fr; gap: 14px; }
  .community-heading h2 { font-size: 46px; }
  .community-grid { grid-template-columns: 1fr; }
  .grinder-desktop { display: none; }
  .grinder-showcase { display: block; }
  .grinder-scene { grid-template-columns: 1fr; gap: 18px; padding: 24px 18px 21px; text-align: center; }
  .grinder-wheel { width: min(282px,82vw); }
  .grinder-intro p { margin-inline: auto; }
  .grinder-entry { grid-template-columns: 31px minmax(0,1fr) auto; padding-inline: 11px; }
  .grinder-controls { grid-template-columns: 1fr 36px 1fr; }
  .grinder-controls button { font-size: 8px; }
  .grinder-swipe-hint { width: min(282px,82vw); display: grid; grid-template-columns: 35px minmax(0,1fr); align-items: center; justify-content: center; column-gap: 7px; margin-top: 17px; padding: 11px 16px 12px; border: 1px solid #342a20; }
  .grinder-swipe-hint .swipe-hand { grid-row: 1 / 3; color: var(--gold); font-size: 23px; animation: swipeHand 1.5s ease-in-out infinite; }
  .grinder-swipe-hint strong,.grinder-swipe-hint span:last-child { text-align: left; }
  .grinder-swipe-hint strong { color: #d6bc89; font-size: 8px; }
  .grinder-swipe-hint span:last-child { margin-top: 3px; color: #756a5b; font-size: 6px; }
  .community-panel-title { padding-inline: 14px; }
  .community-event-list { grid-template-columns: 1fr; }
  .community-event { grid-template-columns: 56px minmax(0,1fr); padding-inline: 11px; }
  .community-event:nth-child(n) { border-top: 1px solid #33291f; border-left: 0; }
  .community-event:first-child { border-top: 0; }
  .chapter { padding: 74px 17px; }
  .chapter-title { grid-template-columns: 50px 1fr; gap: 12px; margin-bottom: 29px; }
  .chapter-rune { width: 47px; height: 47px; font-size: 23px; }
  .chapter-title h2 { font-size: 43px; }
  .chapter-title .chapter-intro { grid-column: 1 / -1; }
  .competition-grid, .stream-grid, .custom-grid { grid-template-columns: 1fr; }
  .battle-top { padding: 19px; }
  .ledger-grid { gap: 15px; }
  .window-title { grid-template-columns: 1fr auto; }
  .window-title span { grid-column: 1 / -1; }
  .ladder-head, .ladder-row { grid-template-columns: 48px minmax(0,1fr) 50px; }
  .rules-scroll { padding-inline: 22px; }
  .lore-banner { min-height: 870px; align-items: end; padding: 60px 20px; }
  .lore-banner > picture > img { object-position: center top; }
  .upcoming-carousel { padding: 0; }
  .upcoming-slide { align-items: end; padding: 60px 20px 102px; }
  .upcoming-slide > picture > img { object-position: center top; }
  .upcoming-carousel-controls { right: 50%; bottom: 24px; transform: translateX(50%); }
  .lore-shade, .lore-shade-right { background: linear-gradient(0deg, rgba(8,6,5,.97) 0%, rgba(8,6,5,.9) 29%, rgba(8,6,5,.2) 55%, rgba(8,6,5,.02) 80%); }
  .lore-copy-right { margin-left: 0; text-align: left; }
  .lore-copy-right > p:not(.lore-label), .lore-copy-right .game-button { margin-left: 0; }
  .lore-copy h2 { font-size: 48px; }
  .noticeboard { gap: 32px; padding: 23px 17px; border-width: 6px; }
  .board-heading { align-items: flex-start; flex-direction: column; gap: 2px; }
  .quest-note { grid-template-columns: 64px 1fr; }
  .quest-body { padding: 15px 13px; }
  .roster-tools { align-items: stretch; flex-wrap: wrap; }
  .game-input { flex-basis: 100%; }
  .game-select { flex: 1; }
  .game-select select { min-width: 0; width: 100%; }
  .member-table th:nth-child(3), .member-table td:nth-child(3), .member-table th:nth-child(5), .member-table td:nth-child(5) { display: none; }
  .member-table th, .member-table td { padding: 11px 9px; }
  .custom-card { min-height: 180px; }
  .custom-card h3 { margin-top: 32px; }
  .join-hall { grid-template-columns: 1fr; padding: 25px 20px; text-align: center; }
  .join-hall > img { margin: auto; }
  .join-actions { grid-column: auto; grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 58px 1fr; }
  .site-footer img { width: 56px; height: 56px; }
  .site-footer p, .site-footer small { grid-column: 1 / -1; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
