:root {
  --black: #050505;
  --black-2: #0a0a0a;
  --gray-1: #111111;
  --gray-2: #171717;
  --gray-3: #202020;
  --gray-4: #333333;
  --line: #3a3a3a;
  --soft-line: #262626;
  --white: #f5f5f2;
  --muted: #a7a7a2;
  --paper: #ecece8;
  --paper-line: #cecec8;
  --ink: #101010;
  --shell: min(1240px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body {
  margin: 0;
  min-width: 320px;
  background: var(--black);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
a { color: inherit; }
svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 999;
  background: #fff;
  color: #000;
  padding: 12px 18px;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }


.timebar {
  background: var(--gray-1);
  border-bottom: 1px solid var(--soft-line);
}
.timebar-grid {
  min-height: 154px;
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px .78fr;
  gap: 30px;
  align-items: center;
}
.time-divider { width: 1px; height: 72px; background: var(--line); }
.time-block { display: grid; align-content: center; }
.label,
.eyebrow,
.notice-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.label { color: var(--muted); }
.time-block strong {
  font-family: "Courier New", monospace;
  font-size: clamp(34px, 4.2vw, 62px);
  line-height: .98;
  letter-spacing: -.065em;
  margin: 10px 0 7px;
  white-space: nowrap;
}
.time-block.compact strong { font-size: clamp(26px, 3vw, 44px); }
.time-block small { color: var(--muted); font-size: 14px; }

.command-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 34px 0 42px;
  background: var(--black);
}
.command-button {
  min-height: 142px;
  border: 1px solid var(--line);
  padding: 22px 20px;
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 18px;
  align-items: center;
  background: #0b0b0b;
  text-decoration: none;
  opacity: 0;
  transform: translateY(18px);
  animation: navIn 520ms cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: var(--delay);
  transition: background-color 160ms ease, border-color 160ms ease, transform 120ms ease;
}
.command-button:hover { background: #151515; border-color: #727272; }
.command-button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.command-button.is-pressed { animation: navPress 220ms ease; }
.command-icon,
.quick-icon,
.event-icon,
.notice-icon,
.callout-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
}
.command-icon svg { width: 58px; height: 58px; }
.command-button strong { display: block; font-size: 18px; line-height: 1.1; letter-spacing: -.02em; }
.command-button small { display: block; color: var(--muted); margin-top: 8px; font-size: 13px; line-height: 1.25; }

@keyframes navIn { to { opacity: 1; transform: translateY(0); } }
@keyframes navPress { 50% { transform: scale(.965); } }

.icon-duel { color: #ffb000; }
.icon-code { color: #57d68d; }
.icon-rose { color: #f4d23c; }
.icon-policy { color: #63c5da; }
.icon-event { color: #ff7a18; }
.icon-research { color: #a68cff; }
.icon-svs { color: #5aa7ff; }
.icon-heli { color: #4cc9f0; }
.icon-chat { color: #8b8bff; }
.icon-zombie { color: #7ac943; }
.icon-frenzy { color: #ff7a18; }
.icon-tyrant { color: #d86cff; }
.icon-fury { color: #ff9d24; }
.icon-boomer { color: #3aa6e8; }
.icon-discord { color: #5865F2; }
.icon-windows { color: #0078D4; }

.section {
  padding: 92px 0;
  border-top: 1px solid var(--soft-line);
}
.section-1 { background: #0c0c0c; }
.section-2 { background: #151515; }
.section-3 { background: #090909; }
.section-5 { background: #111; }
.section-6 { background: #191919; }
.section-7 { background: #080808; }
.section-links { background: #121212; }

.section-head {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 44px;
}
.section-index {
  color: #707070;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .12em;
}
.eyebrow { color: #919191; display: block; margin-bottom: 12px; }
.section-head h1,
.section-head h2,
.section-copy h2,
.frenzy-first h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
  line-height: .96;
  letter-spacing: -.055em;
  max-width: 850px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 0;
  border-bottom: 1px solid #808080;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  white-space: nowrap;
}
.text-link:hover { border-color: #fff; }

.duel-tabs {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.duel-tab {
  min-height: 218px;
  padding: 22px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background-color 180ms ease, color 180ms ease;
}
.duel-tab small { display: block; color: #8e8e8e; font-weight: 800; letter-spacing: .15em; }
.duel-tab strong { display: block; margin-top: 34px; font-size: 20px; line-height: 1.05; }
.duel-tab p { color: #a4a4a4; font-size: 14px; line-height: 1.45; margin: 12px 0 0; }
.duel-tab.is-current { background: var(--paper); color: var(--ink); }
.duel-tab.is-current small,
.duel-tab.is-current p { color: #575753; }
.duel-tab.is-current::before {
  content: "TODAY";
  display: inline-block;
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .15em;
}
.duel-tab.is-current strong { margin-top: 12px; }
.plain-callout {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 22px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.callout-icon svg { width: 52px; height: 52px; }
.plain-callout strong { font-size: 16px; letter-spacing: .08em; }
.plain-callout p { margin: 5px 0 0; color: var(--muted); }

.split-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 84px;
  align-items: start;
}
.section-copy p { color: #b1b1ad; max-width: 690px; font-size: 19px; }
.section-copy .text-link { margin-top: 16px; }
.code-list { border-top: 1px solid #4a4a4a; }
.code-row {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid #3b3b3b;
}
.code-row code {
  font-family: "Courier New", monospace;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -.03em;
}
.copy-button {
  min-width: 100px;
  min-height: 44px;
  border: 1px solid #686868;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
}
.copy-button:hover { background: #fff; color: #000; }
.copy-button.copied { background: #fff; color: #000; }

.rose-layout {
  display: grid;
  grid-template-columns: 180px .72fr 1.1fr;
  gap: 40px;
  align-items: center;
}
.command-icon.giant { width: 160px; height: 160px; }
.command-icon.giant svg { width: 150px; height: 150px; }
.rose-number {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(150px, 18vw, 270px);
  font-weight: 900;
  line-height: .7;
  letter-spacing: -.09em;
  color: #f1f1ee;
}
.rose-copy .large-copy { font-size: 30px; line-height: 1.15; color: #fff; }

.section-notice {
  background: var(--paper);
  color: var(--ink);
  border-top-color: var(--paper-line);
}
.light-head { color: var(--ink); }
.light-head .eyebrow { color: #5a5a56; }
.light-head .section-index { color: #777772; }
.notice-list { border-top: 1px solid var(--paper-line); }
.notice-item {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 28px;
  padding: 42px 0;
  border-bottom: 1px solid var(--paper-line);
}
.notice-icon { width: 82px; height: 82px; }
.notice-icon svg { width: 72px; height: 72px; }
.notice-kicker { color: #66665f; }
.notice-item h3 {
  margin: 5px 0 18px;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1;
  letter-spacing: -.04em;
}
.notice-item ul,
.notice-item ol {
  margin: 0;
  padding-left: 23px;
  columns: 2;
  column-gap: 54px;
}
.notice-item li { margin: 0 0 10px; break-inside: avoid; font-size: 16px; }

.frenzy-first {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 28px;
  align-items: center;
  border-top: 1px solid #4a4a4a;
  border-bottom: 1px solid #4a4a4a;
  padding: 34px 0;
  margin-bottom: 64px;
}
.event-icon { width: 96px; height: 96px; }
.event-icon svg { width: 86px; height: 86px; }
.frenzy-first p { color: var(--muted); margin: 10px 0 0; }
.first-label {
  font-size: clamp(52px, 8vw, 110px);
  font-weight: 900;
  letter-spacing: -.07em;
  color: #3b3b3b;
}
.event-list { border-top: 1px solid var(--line); }
.event-row {
  display: grid;
  grid-template-columns: 110px .52fr 1.48fr;
  gap: 28px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.event-row .event-icon { grid-column: 1; }
.event-row > div { grid-column: 2 / 4; display: grid; grid-template-columns: .55fr 1.45fr; gap: 28px; align-items: start; }
.event-row .eyebrow { grid-column: 1; margin: 8px 0 0; }
.event-row h3 { grid-column: 1; margin: 30px 0 0; font-size: 33px; letter-spacing: -.04em; line-height: 1; }
.event-row p { grid-column: 2; grid-row: 1 / span 2; margin: 0; color: #b7b7b3; font-size: 18px; max-width: 720px; }

.research-grid { align-items: center; }
.priority-list { border-top: 1px solid #494949; }
.priority-list article {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid #3c3c3c;
}
.priority-list article > span { font-family: "Courier New", monospace; color: #777; font-weight: 700; }
.priority-list strong { font-size: 20px; }
.priority-list p { margin: 5px 0 0; color: #a7a7a2; font-size: 16px; }

.svs-grid {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 72px;
  align-items: center;
}
.svs-state {
  font-size: clamp(180px, 24vw, 380px);
  line-height: .66;
  font-weight: 900;
  letter-spacing: -.11em;
  color: #1c1c1c;
  user-select: none;
}
.svs-copy p { max-width: 820px; }
.svs-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-top: 34px;
}
.svs-steps div {
  min-height: 150px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.svs-steps span { font-family: "Courier New", monospace; color: #6a6a6a; }
.svs-steps strong { display: block; margin-top: 24px; font-size: 18px; }
.svs-steps small { display: block; margin-top: 8px; color: #999; }

.quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.quick-links a {
  min-height: 120px;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  background: transparent;
}
.quick-links a:hover { background: #1d1d1d; }
.quick-icon { width: 62px; height: 62px; }
.quick-icon svg { width: 54px; height: 54px; }
.quick-links strong { display: block; font-size: 19px; }
.quick-links small { display: block; color: #989893; margin-top: 5px; }
.quick-links b { font-size: 25px; font-weight: 400; }

.site-footer {
  background: #000;
  border-top: 1px solid var(--soft-line);
}
.footer-inner {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.footer-inner img {
  display: block;
  width: 170px;
  height: 150px;
  object-fit: contain;
  object-position: left center;
}
.footer-inner > div { text-align: left; }
.footer-inner strong { font-size: 20px; letter-spacing: .05em; }
.footer-inner p { margin: 8px 0 0; color: #7e7e7a; font-size: 14px; }

.copy-toast {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  background: #fff;
  color: #000;
  border: 1px solid #000;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  transition: opacity 150ms ease, transform 150ms ease;
}
.copy-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  .command-nav { grid-template-columns: repeat(2, 1fr); }
  .duel-tabs { grid-template-columns: repeat(4, 1fr); }
  .split-layout { gap: 50px; }
  .notice-item ul, .notice-item ol { columns: 1; }
  .svs-grid { grid-template-columns: 1fr; }
  .svs-state { font-size: 230px; margin-bottom: -20px; }
}

@media (max-width: 820px) {
  :root { --shell: min(100% - 32px, 1240px); }
  body { font-size: 17px; }
  .header-inner { min-height: 120px; }
  .brand img { width: 120px; height: 104px; }
  .header-state strong { font-size: 30px; }
  .timebar-grid { grid-template-columns: 1fr 1px 1fr; gap: 18px; padding-block: 24px; }
  .timebar-grid .time-divider:nth-of-type(2) { display: none; }
  .time-block.compact { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; }
  .command-button { min-height: 132px; }
  .section { padding: 72px 0; }
  .section-head { grid-template-columns: 54px 1fr; align-items: start; }
  .section-head .text-link { grid-column: 2; justify-self: start; }
  .duel-tabs { grid-template-columns: 1fr 1fr; }
  .duel-tab { min-height: 190px; }
  .split-layout { grid-template-columns: 1fr; gap: 42px; }
  .rose-layout { grid-template-columns: 120px 1fr; }
  .command-icon.giant { width: 110px; height: 110px; }
  .command-icon.giant svg { width: 100px; height: 100px; }
  .rose-copy { grid-column: 1 / -1; }
  .notice-item { grid-template-columns: 78px 1fr; }
  .notice-icon { width: 68px; height: 68px; }
  .notice-icon svg { width: 58px; height: 58px; }
  .frenzy-first { grid-template-columns: 90px 1fr; }
  .first-label { grid-column: 2; font-size: 68px; }
  .event-row { grid-template-columns: 90px 1fr; }
  .event-row > div { grid-column: 2; grid-template-columns: 1fr; gap: 0; }
  .event-row .eyebrow, .event-row h3, .event-row p { grid-column: 1; grid-row: auto; }
  .event-row h3 { margin-top: 8px; }
  .event-row p { margin-top: 14px; }
  .svs-steps { grid-template-columns: 1fr; }
  .quick-links { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  :root { --shell: min(100% - 22px, 1240px); }
  .header-inner { min-height: 100px; }
  .brand img { width: 94px; height: 82px; }
  .header-state span { font-size: 10px; }
  .header-state strong { font-size: 24px; }
  .timebar-grid { grid-template-columns: 1fr; gap: 0; }
  .time-divider { display: none; }
  .time-block { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .time-block.compact { grid-column: auto; border-top: 0; }
  .command-nav { grid-template-columns: 1fr; padding-top: 22px; }
  .command-button { min-height: 112px; grid-template-columns: 58px 1fr; padding: 18px; }
  .command-icon { width: 56px; height: 56px; }
  .command-icon svg { width: 48px; height: 48px; }
  .command-button strong { font-size: 20px; }
  .section { padding: 58px 0; }
  .section-head { grid-template-columns: 1fr; gap: 14px; }
  .section-head .text-link { grid-column: 1; }
  .section-head h1, .section-head h2, .section-copy h2, .frenzy-first h2 { font-size: 42px; }
  .duel-tabs { grid-template-columns: 1fr; }
  .duel-tab { min-height: 0; }
  .duel-tab strong { margin-top: 18px; }
  .plain-callout { grid-template-columns: 58px 1fr; }
  .code-row { min-height: 70px; }
  .code-row code { font-size: 18px; }
  .copy-button { min-width: 82px; }
  .rose-layout { grid-template-columns: 1fr; gap: 18px; }
  .rose-number { font-size: 150px; }
  .notice-item { grid-template-columns: 1fr; }
  .notice-item h3 { font-size: 36px; }
  .frenzy-first { grid-template-columns: 1fr; }
  .first-label { grid-column: 1; font-size: 56px; }
  .event-row { grid-template-columns: 1fr; }
  .event-row > div { grid-column: 1; }
  .event-icon { width: 78px; height: 78px; }
  .event-icon svg { width: 68px; height: 68px; }
  .svs-state { font-size: 160px; }
  .quick-links a { grid-template-columns: 58px 1fr auto; padding: 18px; }
  .quick-icon { width: 52px; height: 52px; }
  .quick-icon svg { width: 46px; height: 46px; }
  .footer-inner { min-height: 220px; flex-direction: column; justify-content: center; align-items: flex-start; }
  .footer-inner > div { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .command-button { opacity: 1; transform: none; }
}


/* v03: floating quick links, yellow rose, distinct duel days */
:root { --rose-yellow: #f4d23c; }

.utility-nav-marker { height: 1px; background: transparent; }

.utility-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(8,8,8,.97);
  border-top: 1px solid #242424;
  border-bottom: 1px solid #333;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 220ms ease, border-color 220ms ease;
}
.utility-nav-wrap.is-floating {
  box-shadow: 0 18px 38px rgba(0,0,0,.48);
  border-bottom-color: #555;
}
.utility-nav {
  display: grid;
  grid-template-columns: 150px repeat(3, minmax(0, 1fr));
  align-items: stretch;
  border-left: 1px solid #363636;
}
.utility-brand,
.utility-link {
  min-height: 104px;
  border-right: 1px solid #363636;
  text-decoration: none;
}
.utility-brand {
  display: grid;
  place-items: center;
  padding: 10px 16px;
  background: #090909;
}
.utility-brand img {
  display: block;
  width: 116px;
  height: 84px;
  object-fit: contain;
  object-position: center;
}
.utility-link {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  background: #0d0d0d;
}
.utility-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 440ms cubic-bezier(.22,.8,.24,1);
}
.utility-link:hover::before,
.utility-link:focus-visible::before,
.utility-link.is-pressed::before { transform: scaleX(1); }
.utility-link:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.utility-icon,
.utility-copy,
.utility-arrow { position: relative; z-index: 2; }
.utility-icon { width: 54px; height: 54px; display: grid; place-items: center; }
.utility-icon svg { width: 48px; height: 48px; }
.utility-copy,
.utility-arrow {
  color: #fff;
  mix-blend-mode: difference;
}
.utility-copy strong {
  display: block;
  font-size: 18px;
  line-height: 1.08;
  letter-spacing: -.02em;
}
.utility-copy small {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #d6d6d6;
}
.utility-arrow { font-size: 24px; }

.command-nav { padding-top: 28px; }
#duel .section-head { grid-template-columns: 90px 1fr; }
.section-intro {
  margin: 18px 0 0;
  max-width: 840px;
  color: #b8b8b3;
  font-size: 19px;
}

.duel-tabs {
  gap: 8px;
  border: 0;
}
.duel-tab {
  position: relative;
  border: 1px solid var(--day-accent, #555);
  border-top-width: 5px;
  background: var(--day-bg, #111);
  color: #fff;
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}
.duel-tab[data-at-day="1"] { --day-accent: #53c9bf; --day-bg: #17312f; }
.duel-tab[data-at-day="2"] { --day-accent: #7aa2ff; --day-bg: #1c2741; }
.duel-tab[data-at-day="3"] { --day-accent: #c58cff; --day-bg: #2c1e38; }
.duel-tab[data-at-day="4"] { --day-accent: #f2bd5a; --day-bg: #34291a; }
.duel-tab[data-at-day="5"] { --day-accent: #68d391; --day-bg: #1b3023; }
.duel-tab[data-at-day="6"] { --day-accent: #ff6b6b; --day-bg: #351d1d; }
.duel-tab[data-at-day="0"] { --day-accent: #b7b7b7; --day-bg: #262626; }
.duel-tab:hover { transform: translateY(-3px); border-color: #fff; }
.duel-tab small,
.duel-tab p { color: #d0d0cc; }
.duel-tab.is-current {
  background: var(--day-bg) !important;
  color: #fff !important;
  border-color: #fff;
  box-shadow: inset 0 0 0 2px #fff, 0 10px 26px rgba(0,0,0,.28);
}
.duel-tab.is-current small,
.duel-tab.is-current p { color: #f0f0eb !important; }
.duel-tab.is-current::before {
  color: #000;
  background: #fff;
  padding: 5px 8px;
  margin-bottom: 10px;
}

.next-day-callout {
  --next-accent: #fff;
  margin-top: 30px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: center;
  padding: 24px 26px;
  border: 1px solid #464646;
  border-left: 8px solid var(--next-accent);
  background: #050505;
}
.next-day-label {
  color: var(--next-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
}
.next-day-callout strong {
  display: block;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.05;
  letter-spacing: -.03em;
}
.next-day-callout p {
  margin: 8px 0 0;
  color: #b9b9b4;
  font-size: 17px;
}

.icon-rose,
.rose-number,
#rose-title,
#rose-buff,
#rose-activation { color: var(--rose-yellow) !important; }
.rose-copy .large-copy { color: var(--rose-yellow); }

@media (max-width: 980px) {
  .utility-nav {
    width: 100%;
    grid-template-columns: 120px repeat(3, minmax(210px, 1fr));
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .utility-brand,
  .utility-link { min-height: 92px; }
  .utility-brand img { width: 92px; height: 72px; }
  .utility-link { padding: 16px 18px; grid-template-columns: 48px 1fr auto; }
  .utility-icon { width: 44px; height: 44px; }
  .utility-icon svg { width: 40px; height: 40px; }
}
@media (max-width: 640px) {
  .utility-nav { grid-template-columns: 100px repeat(3, minmax(196px, 1fr)); }
  .utility-brand,
  .utility-link { min-height: 84px; }
  .utility-brand img { width: 78px; height: 62px; }
  .utility-copy strong { font-size: 16px; }
  .utility-copy small { font-size: 12px; }
  #duel .section-head { grid-template-columns: 1fr; }
  .next-day-callout { grid-template-columns: 1fr; gap: 8px; padding: 20px; }
}


/* v03r2: utility navigation is the first visible row; clocks follow it. */
body#top { scroll-padding-top: 112px; }

.utility-nav-marker {
  height: 1px;
  margin-bottom: -1px;
}

.utility-nav-wrap {
  border-top: 0;
}

.timebar {
  position: relative;
  z-index: 1;
  border-top: 0;
}

.code-empty {
  min-height: 74px;
  display: flex;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid #424242;
  color: #b9b9b5;
  background: #0b0b0b;
  font-size: 16px;
}

@media (max-width: 640px) {
  body#top { scroll-padding-top: 88px; }
}


/* v05 mobile refinement */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

img,
svg {
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

@media (hover: none), (pointer: coarse) {
  .utility-link:hover::before {
    transform: scaleX(0);
  }

  .utility-link:active::before,
  .utility-link.is-pressed::before {
    transform: scaleX(1);
  }

  .command-button:hover,
  .duel-tab:hover,
  .quick-links a:hover {
    transform: none;
  }

  .copy-button:hover {
    background: transparent;
    color: #fff;
  }

  .copy-button:active,
  .copy-button.copied {
    background: #fff;
    color: #000;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: min(100% - 28px, 1240px);
  }

  body {
    font-size: 16px;
  }

  /* Keep the floating navigation usable without horizontal scrolling. */
  .utility-nav {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    border-left: 0;
  }

  .utility-brand,
  .utility-link {
    min-width: 0;
    min-height: 78px;
    border-right: 1px solid #363636;
  }

  .utility-brand {
    padding: 7px;
  }

  .utility-brand img {
    width: 70px;
    height: 58px;
  }

  .utility-link {
    grid-template-columns: 1fr;
    gap: 5px;
    justify-items: center;
    align-content: center;
    padding: 8px 5px;
    text-align: center;
  }

  .utility-icon {
    width: 32px;
    height: 32px;
  }

  .utility-icon svg {
    width: 30px;
    height: 30px;
  }

  .utility-copy strong {
    font-size: 10px;
    line-height: 1.05;
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }

  .utility-copy small,
  .utility-arrow {
    display: none;
  }

  body#top {
    scroll-padding-top: 84px;
  }

  /* Clocks stay readable without taking over the phone screen. */
  .timebar-grid {
    grid-template-columns: 1fr 1px 1fr;
    gap: 14px;
    min-height: 0;
    padding-block: 18px 16px;
  }

  .time-divider {
    height: 64px;
  }

  .timebar-grid .time-divider:nth-of-type(2) {
    display: none;
  }

  .time-block {
    min-width: 0;
    padding: 0;
    border-bottom: 0;
  }

  .time-block strong {
    font-size: clamp(25px, 8vw, 36px);
    margin: 7px 0 5px;
    letter-spacing: -.06em;
  }

  .time-block small {
    font-size: 11px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .time-block.compact {
    grid-column: 1 / -1;
    padding-top: 14px;
    margin-top: 4px;
    border-top: 1px solid var(--line);
  }

  .time-block.compact strong {
    font-size: 24px;
    letter-spacing: -.04em;
  }

  .label,
  .eyebrow,
  .notice-kicker {
    font-size: 10px;
  }

  /* Main section navigation becomes a compact two-column touch grid. */
  .command-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 20px 0 28px;
  }

  .command-button {
    min-width: 0;
    min-height: 98px;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 11px;
  }

  .command-icon {
    width: 40px;
    height: 40px;
  }

  .command-icon svg {
    width: 36px;
    height: 36px;
  }

  .command-button strong {
    font-size: 14px;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .command-button small {
    margin-top: 5px;
    font-size: 11px;
  }

  .section {
    padding: 56px 0;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 28px;
  }

  .section-head .text-link {
    grid-column: 1;
    justify-self: stretch;
    white-space: normal;
  }

  .section-index {
    font-size: 13px;
  }

  .section-head h1,
  .section-head h2,
  .section-copy h2,
  .frenzy-first h2 {
    font-size: clamp(36px, 11vw, 50px);
    line-height: .98;
  }

  .section-intro,
  .section-copy p {
    font-size: 16px;
  }

  /* Resource days stay colorful and are easy to scan on a phone. */
  .duel-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .duel-tab {
    min-width: 0;
    min-height: 156px;
    padding: 16px 14px;
  }

  .duel-tab strong {
    margin-top: 18px;
    font-size: 17px;
    overflow-wrap: anywhere;
  }

  .duel-tab p {
    font-size: 12px;
    line-height: 1.38;
  }

  .duel-tab.is-current strong {
    margin-top: 8px;
  }

  .duel-tab:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .next-day-callout {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 18px;
    border-left-width: 6px;
  }

  .next-day-callout strong {
    font-size: 24px;
  }

  .next-day-callout p {
    font-size: 15px;
  }

  .plain-callout {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 0;
  }

  .callout-icon {
    width: 44px;
    height: 44px;
  }

  .callout-icon svg {
    width: 40px;
    height: 40px;
  }

  .plain-callout p {
    font-size: 14px;
  }

  .split-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .code-row {
    min-height: 68px;
    gap: 10px;
  }

  .code-row code {
    min-width: 0;
    font-size: 17px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .copy-button {
    min-width: 76px;
    min-height: 46px;
    padding-inline: 10px;
  }

  .rose-layout {
    grid-template-columns: 86px 1fr;
    gap: 18px;
  }

  .command-icon.giant {
    width: 80px;
    height: 80px;
  }

  .command-icon.giant svg {
    width: 74px;
    height: 74px;
  }

  .rose-number {
    font-size: clamp(94px, 30vw, 140px);
    line-height: .78;
  }

  .rose-copy {
    grid-column: 1 / -1;
  }

  .rose-copy .large-copy {
    font-size: 24px;
  }

  .notice-item {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
    padding: 30px 0;
  }

  .notice-icon {
    width: 52px;
    height: 52px;
  }

  .notice-icon svg {
    width: 46px;
    height: 46px;
  }

  .notice-item h3 {
    font-size: 30px;
    margin-bottom: 14px;
  }

  .notice-item ul,
  .notice-item ol {
    columns: 1;
    padding-left: 20px;
  }

  .notice-item li {
    font-size: 15px;
  }

  .frenzy-first {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
    padding: 26px 0;
    margin-bottom: 38px;
  }

  .frenzy-first .event-icon {
    width: 60px;
    height: 60px;
  }

  .frenzy-first .event-icon svg {
    width: 54px;
    height: 54px;
  }

  .first-label {
    grid-column: 2;
    font-size: 50px;
  }

  .event-row {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
    padding: 26px 0;
  }

  .event-row .event-icon {
    width: 60px;
    height: 60px;
  }

  .event-row .event-icon svg {
    width: 54px;
    height: 54px;
  }

  .event-row > div {
    grid-column: 2;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .event-row .eyebrow,
  .event-row h3,
  .event-row p {
    grid-column: 1;
    grid-row: auto;
  }

  .event-row h3 {
    margin: 5px 0 0;
    font-size: 27px;
  }

  .event-row p {
    margin-top: 12px;
    font-size: 15px;
  }

  .priority-list article {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 20px 0;
  }

  .priority-list strong {
    font-size: 17px;
  }

  .priority-list p {
    font-size: 14px;
  }

  .svs-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .svs-state {
    font-size: clamp(110px, 38vw, 170px);
    margin-bottom: 0;
  }

  .svs-steps {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .svs-steps div {
    min-height: 118px;
  }

  .quick-links {
    grid-template-columns: 1fr;
  }

  .quick-links a {
    min-height: 94px;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 16px;
  }

  .quick-icon {
    width: 42px;
    height: 42px;
  }

  .quick-icon svg {
    width: 38px;
    height: 38px;
  }

  .quick-links strong {
    font-size: 16px;
  }

  .quick-links small {
    font-size: 12px;
  }

  .footer-inner {
    min-height: 190px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    padding-block: 28px;
  }

  .footer-inner img {
    width: 125px;
    height: 105px;
  }

  .footer-inner > div {
    text-align: left;
  }
}

@media (max-width: 390px) {
  :root {
    --shell: min(100% - 20px, 1240px);
  }

  .utility-brand,
  .utility-link {
    min-height: 72px;
  }

  .utility-brand img {
    width: 62px;
    height: 50px;
  }

  .utility-icon {
    width: 28px;
    height: 28px;
  }

  .utility-icon svg {
    width: 26px;
    height: 26px;
  }

  .utility-copy strong {
    font-size: 9px;
  }

  body#top {
    scroll-padding-top: 76px;
  }

  .timebar-grid {
    gap: 10px;
  }

  .time-block strong {
    font-size: clamp(23px, 7.7vw, 30px);
  }

  .time-block small {
    font-size: 10px;
  }

  .command-button {
    min-height: 92px;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
    padding: 11px 9px;
  }

  .command-icon {
    width: 34px;
    height: 34px;
  }

  .command-icon svg {
    width: 31px;
    height: 31px;
  }

  .command-button strong {
    font-size: 12px;
  }

  .command-button small {
    font-size: 10px;
  }

  .duel-tab {
    min-height: 148px;
    padding: 14px 12px;
  }

  .duel-tab strong {
    font-size: 15px;
  }

  .duel-tab p {
    font-size: 11px;
  }

  .code-row code {
    font-size: 15px;
  }

  .copy-button {
    min-width: 70px;
  }
}

@media (max-width: 340px) {
  .utility-copy strong {
    font-size: 8px;
  }

  .utility-icon {
    width: 24px;
    height: 24px;
  }

  .utility-icon svg {
    width: 23px;
    height: 23px;
  }

  .command-nav {
    grid-template-columns: 1fr;
  }

  .duel-tabs {
    grid-template-columns: 1fr;
  }

  .duel-tab:last-child:nth-child(odd) {
    grid-column: auto;
  }
}


/* v06: Current Alliance Duel day expands and turns white.
   When the current day changes, the previous day automatically returns
   to its original color and normal size. */
.duel-tab {
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
  transform-origin: center;
}

.duel-tab.is-current {
  position: relative;
  z-index: 4;
  transform: scale(1.08);
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .42);
}

.duel-tab.is-current .day-name,
.duel-tab.is-current strong,
.duel-tab.is-current p,
.duel-tab.is-current span,
.duel-tab.is-current small {
  color: #000000 !important;
}

.duel-tab.is-current .today-badge,
.duel-tab.is-current [class*="today"] {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
}

@media (max-width: 760px) {
  .duel-tab.is-current {
    transform: scale(1.045);
    min-height: 174px;
  }
}

@media (max-width: 390px) {
  .duel-tab.is-current {
    transform: scale(1.035);
    min-height: 164px;
  }
}


/* v08: rose update week marker */
.rose-week {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a8a84;
}

/* v08: the current objective word keeps its original day color even
   when the current box turns white. */
.duel-tab.is-current strong {
  color: #000 !important;
}
.duel-tab.is-current[data-at-day="1"] strong { color: #67d7cf !important; }
.duel-tab.is-current[data-at-day="2"] strong { color: #89a4ff !important; }
.duel-tab.is-current[data-at-day="3"] strong { color: #bc8bff !important; }
.duel-tab.is-current[data-at-day="4"] strong { color: #e2b457 !important; }
.duel-tab.is-current[data-at-day="5"] strong { color: #6cb86f !important; }
.duel-tab.is-current[data-at-day="6"] strong { color: #ef6b6b !important; }
.duel-tab.is-current[data-at-day="0"] strong { color: #8f8f95 !important; }

@media (max-width: 760px) {
  .rose-week {
    font-size: 12px;
  }
}


/* v09 — shared abstract section pattern */
.section-2,
.section-5,
.section-6,
.section-notice {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.section-2::before,
.section-5::before,
.section-6::before,
.section-notice::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(135deg, transparent 0 44%, rgba(255,255,255,.028) 44% 45%, transparent 45% 100%),
    linear-gradient(45deg, transparent 0 46%, rgba(255,255,255,.022) 46% 47%, transparent 47% 100%),
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.035) 0 1px, transparent 1.5px),
    radial-gradient(circle at 76% 64%, rgba(255,255,255,.026) 0 1px, transparent 1.5px);
  background-size: 180px 180px, 240px 240px, 34px 34px, 52px 52px;
  opacity: .72;
}

.section-notice::before {
  background-image:
    linear-gradient(135deg, transparent 0 44%, rgba(0,0,0,.035) 44% 45%, transparent 45% 100%),
    linear-gradient(45deg, transparent 0 46%, rgba(0,0,0,.028) 46% 47%, transparent 47% 100%),
    radial-gradient(circle at 18% 22%, rgba(0,0,0,.04) 0 1px, transparent 1.5px),
    radial-gradient(circle at 76% 64%, rgba(0,0,0,.03) 0 1px, transparent 1.5px);
  opacity: .8;
}

/* VS icon requested from the supplied coral swatch (#ff6b6b). */
.icon-duel,
.vs-icon {
  color: #ff6b6b;
}

.vs-icon {
  border: 2px solid currentColor;
  border-radius: 10px;
  font-weight: 950;
  letter-spacing: -.08em;
  line-height: 1;
  font-size: 28px;
}

.vs-icon span {
  transform: translateX(-1px);
}

.small-vs {
  font-size: 20px;
  border-radius: 8px;
}

.icon-capital {
  color: #d6c88d;
}

/* v09 — code-built Capital Strategy */
.section-capital {
  background: #080909;
  padding-top: 72px;
  padding-bottom: 88px;
}

.capital-heading {
  padding-bottom: 30px;
  border-bottom: 1px solid #242624;
}

.capital-heading h1 {
  margin: 0;
  font-size: clamp(42px, 5.2vw, 74px);
  line-height: .96;
  letter-spacing: -.055em;
}

.capital-heading p {
  max-width: 860px;
  margin: 16px 0 0;
  color: #a6a69f;
  font-size: 17px;
  line-height: 1.55;
}

.capital-board {
  --north: #8fca7f;
  --left: #7da5d8;
  --right: #b28ad1;
  --south: #d8c56d;
  --mud: #7f8589;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10.7;
  min-height: 650px;
  margin-top: 32px;
  border: 1px solid #242624;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(255,255,255,.022), transparent 42%),
    #090a09;
}

.capital-grid-dots {
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image: radial-gradient(circle, #232623 1px, transparent 1.2px);
  background-size: 24px 24px;
}

.capital-board::before,
.capital-board::after {
  content: "";
  position: absolute;
  inset: 7% 10%;
  border: 1px solid rgba(255,255,255,.035);
  transform: rotate(45deg);
  pointer-events: none;
}

.capital-board::after {
  inset: 18% 20%;
  transform: rotate(-45deg);
}

.grass-zone,
.mud-zone {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  clip-path: polygon(50% 0, 91% 24%, 91% 76%, 50% 100%, 9% 76%, 9% 24%);
}

.grass-zone {
  width: 66%;
  height: 69%;
  background: rgba(35, 71, 34, .12);
  outline: 1px solid rgba(112, 165, 103, .2);
}

.mud-zone {
  width: 43%;
  height: 47%;
  background: rgba(99, 77, 60, .13);
  outline: 1px solid rgba(164, 137, 104, .26);
}

.capital-core {
  position: absolute;
  left: 50%;
  top: 51%;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 10px;
  color: #d8d6ca;
  z-index: 4;
}

.capital-core small,
.turret small,
.squad-card small {
  font-size: 10px;
  letter-spacing: .14em;
  font-weight: 800;
}

.capital-square {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 2px solid #d8d6ca;
}

.capital-square::before {
  content: "";
  width: 28px;
  height: 28px;
  border: 1px solid #88877f;
}

.capital-square i {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #d8d6ca;
}

.turret {
  position: absolute;
  z-index: 5;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #c9c5b4;
}

.turret > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid currentColor;
  font-size: 17px;
}

.turret-left { left: 33.1%; top: 48%; }
.turret-right { right: 33.1%; top: 48%; }
.turret-south { left: 50%; top: 70%; transform: translateX(-50%); }

.squad-card {
  position: absolute;
  z-index: 7;
  width: 23%;
  min-width: 190px;
  padding: 15px 16px;
  border: 1px solid #30322f;
  background: rgba(11, 12, 11, .96);
}

.squad-card strong {
  display: block;
  margin-top: 7px;
  font-size: 16px;
}

.squad-card p {
  margin: 7px 0 0;
  color: #8f908a;
  font-size: 12px;
  line-height: 1.4;
}

.squad-north { left: 50%; top: 3%; transform: translateX(-50%); text-align: center; border-color: rgba(143,202,127,.35); }
.squad-left { left: 2.3%; top: 42%; border-color: rgba(125,165,216,.35); }
.squad-right { right: 2.3%; top: 42%; text-align: right; border-color: rgba(178,138,209,.35); }
.squad-south { left: 50%; bottom: 3%; transform: translateX(-50%); text-align: center; border-color: rgba(216,197,109,.35); }

.squad-north small { color: var(--north); }
.squad-left small { color: var(--left); }
.squad-right small { color: var(--right); }
.squad-south small { color: var(--south); }

.squad-dots {
  position: absolute;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(6, 7px);
  gap: 10px 14px;
}

.squad-dots::before {
  content: "";
  width: 7px;
  height: 7px;
  background: currentColor;
  box-shadow:
    21px 0 currentColor, 42px 0 currentColor, 63px 0 currentColor, 84px 0 currentColor, 105px 0 currentColor,
    0 17px currentColor, 21px 17px currentColor, 42px 17px currentColor, 63px 17px currentColor, 84px 17px currentColor, 105px 17px currentColor,
    0 34px currentColor, 21px 34px currentColor, 42px 34px currentColor, 63px 34px currentColor, 84px 34px currentColor, 105px 34px currentColor;
}

.dots-north { color: var(--north); left: 50%; top: 23%; transform: translateX(-53px); }
.dots-left { color: var(--left); left: 20.5%; top: 48%; transform: translate(-53px, -17px); }
.dots-right { color: var(--right); right: 20.5%; top: 48%; transform: translate(53px, -17px); }
.dots-south { color: var(--south); left: 50%; bottom: 18%; transform: translateX(-53px); }

.lane {
  position: absolute;
  z-index: 2;
  border-color: currentColor;
  border-style: dashed;
  opacity: .8;
}

.lane-north { color: var(--north); left: 50%; top: 29%; height: 18%; border-left-width: 2px; }
.lane-south { color: var(--south); left: 50%; bottom: 22%; height: 15%; border-left-width: 2px; }
.lane-left { color: var(--left); left: 27%; top: 50%; width: 13%; border-top-width: 2px; }
.lane-right { color: var(--right); right: 27%; top: 50%; width: 13%; border-top-width: 2px; }

.capital-notes {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 18px;
  margin-top: 18px;
}

.capital-legend,
.standing-order {
  border: 1px solid #242624;
  background: #0b0c0b;
  padding: 22px;
}

.capital-legend > div {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
}

.capital-legend strong {
  font-size: 13px;
}

.capital-legend small {
  color: #86877f;
  font-size: 12px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  background: currentColor;
}

.legend-dot.north { color: #8fca7f; }
.legend-dot.left { color: #7da5d8; }
.legend-dot.right { color: #b28ad1; }
.legend-dot.south { color: #d8c56d; }
.legend-dot.mud { color: #7f8589; }

.standing-order ul {
  margin: 0;
  padding-left: 20px;
}

.standing-order li {
  margin: 0 0 11px;
  color: #c1c1bb;
  line-height: 1.5;
}

/* Keep the shared numbers file visibly current in the rose panel. */
.rose-week {
  margin: 12px 0 0;
  color: #999a94;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .capital-board {
    aspect-ratio: 4 / 5;
    min-height: 760px;
  }

  .grass-zone { width: 76%; height: 60%; }
  .mud-zone { width: 52%; height: 39%; }

  .squad-card { width: 31%; min-width: 0; }
  .squad-north { top: 2%; }
  .squad-left { left: 2%; top: 43%; }
  .squad-right { right: 2%; top: 43%; }
  .squad-south { bottom: 2%; }

  .dots-north { top: 25%; }
  .dots-left { left: 25%; }
  .dots-right { right: 25%; }
  .dots-south { bottom: 20%; }

  .turret-left { left: 29%; }
  .turret-right { right: 29%; }

  .capital-notes { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section-capital {
    padding-top: 52px;
    padding-bottom: 58px;
  }

  .capital-heading p {
    font-size: 15px;
  }

  .capital-board {
    min-height: 690px;
    aspect-ratio: auto;
  }

  .squad-card {
    width: 42%;
    padding: 10px 11px;
  }

  .squad-card strong { font-size: 13px; }
  .squad-card p { font-size: 10px; }
  .squad-card small { font-size: 8px; }

  .squad-north { width: 56%; }
  .squad-south { width: 56%; }

  .grass-zone { width: 82%; height: 53%; }
  .mud-zone { width: 59%; height: 35%; }

  .dots-north { top: 25%; transform: translateX(-44px) scale(.82); }
  .dots-left { left: 24%; transform: translate(-44px, -17px) scale(.82); }
  .dots-right { right: 24%; transform: translate(44px, -17px) scale(.82); }
  .dots-south { bottom: 20%; transform: translateX(-44px) scale(.82); }

  .turret small {
    display: none;
  }

  .turret-left { left: 27%; }
  .turret-right { right: 27%; }

  .capital-core {
    transform: translate(-50%, -50%) scale(.85);
  }

  .capital-legend,
  .standing-order {
    padding: 18px;
  }

  .capital-legend > div {
    grid-template-columns: 12px 1fr;
  }

  .capital-legend small {
    grid-column: 2;
  }
}


/* v10 category color system */
.section-capital { --category-color: #d6c88d; }
.section-1 { --category-color: #ff6b6b; }
.section-2 { --category-color: #57d68d; }
.section-3 { --category-color: #f8d83d; }
.section-notice { --category-color: #63c5da; }
.section-5 { --category-color: #ff7a18; }
.section-6 { --category-color: #a68cff; }
.section-7 { --category-color: #5aa7ff; }

.category-heading-row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.category-heading-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  color: var(--category-color);
}

.category-heading-icon svg {
  width: 54px;
  height: 54px;
  fill: currentColor;
}

.category-heading-row .category-lead {
  color: var(--category-color) !important;
}

.section-head .category-heading-row h1,
.section-head .category-heading-row h2,
.section-copy .category-heading-row h2,
.capital-heading .category-heading-row h1 {
  margin: 0;
}

/* Exact visual consistency for gift / promo-code icons */
.icon-code svg,
.utility-icon.icon-code svg {
  fill: currentColor;
}

/* More rose-like yellow icon everywhere */
.icon-rose {
  color: #f8d83d !important;
  --rose-hole: #090909;
}

.command-button .icon-rose { --rose-hole: #0b0b0b; }
.section-3 .icon-rose { --rose-hole: #090909; }

.rose-svg {
  overflow: visible;
}
.rose-svg .rose-fill {
  fill: currentColor;
}
.rose-svg .rose-cut {
  fill: var(--rose-hole);
}

/* Notices button/header icon from the supplied reference: plain cyan square */
.notice-square-wrap {
  display: grid;
  place-items: center;
}
.notice-square-icon {
  display: block;
  width: 46px;
  height: 46px;
  background: currentColor;
}
.category-heading-icon.notice-square-wrap .notice-square-icon {
  width: 48px;
  height: 48px;
}

/* Difference block no longer has a subtitle */
.time-block.compact {
  align-content: center;
}

/* Main category icon colors, matching the command buttons */
.icon-duel { color: #ff6b6b; }
.icon-code { color: #57d68d; }
.icon-rose { color: #f8d83d; }
.icon-policy { color: #63c5da; }
.icon-event { color: #ff7a18; }
.icon-research { color: #a68cff; }
.icon-svs { color: #5aa7ff; }
.icon-capital { color: #d6c88d; }

/* Events category header is separate from event detail */
.events-category-head {
  margin-bottom: 34px;
}

/* v10 brighter, more legible code-built capital map */
.section-capital {
  background: #060706;
}

.capital-heading .category-lead {
  color: #d6c88d !important;
}

.capital-board {
  --north: #89ff77;
  --left: #71baff;
  --right: #d696ff;
  --south: #ffe45c;
  --mud: #b9c1c9;
  position: relative;
  min-height: 820px;
  margin-top: 34px;
  border: 1px solid #3a403a;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.055), transparent 39%),
    linear-gradient(180deg, rgba(14,29,15,.65), rgba(7,9,7,.95));
}

.capital-grid-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(126,255,115,.16) 1px, transparent 1.35px);
  background-size: 28px 28px;
}

.grass-zone,
.mud-zone {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  clip-path: polygon(50% 0, 91% 24%, 91% 76%, 50% 100%, 9% 76%, 9% 24%);
}

.grass-zone {
  width: 72%;
  height: 68%;
  background: rgba(25, 85, 30, .18);
  box-shadow: inset 0 0 0 2px rgba(137,255,119,.22);
}

.mud-zone {
  width: 49%;
  height: 47%;
  background: rgba(109, 88, 68, .24);
  box-shadow: inset 0 0 0 2px rgba(255,228,92,.20);
}

.squad-card {
  position: absolute;
  z-index: 10;
  width: 23%;
  min-width: 210px;
  padding: 16px 18px;
  background: rgba(7, 8, 7, .96);
  border: 1px solid #4a504a;
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
}

.squad-card strong {
  display: block;
  margin-top: 7px;
  color: #fff;
  font-size: 18px;
  letter-spacing: .01em;
}

.squad-card p {
  margin: 7px 0 0;
  color: #d1d4cf;
  font-size: 13px;
  line-height: 1.45;
}

.squad-card small {
  font-weight: 900;
  letter-spacing: .14em;
}

.squad-north {
  left: 50%;
  top: 2.5%;
  transform: translateX(-50%);
  text-align: center;
  border-color: rgba(137,255,119,.65);
}
.squad-left {
  left: 2.2%;
  top: 42%;
  border-color: rgba(113,186,255,.65);
}
.squad-right {
  right: 2.2%;
  top: 42%;
  text-align: right;
  border-color: rgba(214,150,255,.65);
}
.squad-south {
  left: 50%;
  bottom: 2.5%;
  transform: translateX(-50%);
  text-align: center;
  border-color: rgba(255,228,92,.65);
}

.squad-north small { color: var(--north); }
.squad-left small { color: var(--left); }
.squad-right small { color: var(--right); }
.squad-south small { color: var(--south); }

.squad-cluster,
.mud-cluster {
  position: absolute;
  z-index: 6;
  display: grid;
}

.squad-cluster {
  grid-template-columns: repeat(6, 10px);
  gap: 10px 13px;
}

.squad-cluster i,
.mud-cluster i {
  display: block;
  width: 10px;
  height: 10px;
  background: currentColor;
  box-shadow: 0 0 10px color-mix(in srgb, currentColor 55%, transparent);
}

.cluster-north {
  color: var(--north);
  left: 50%;
  top: 23%;
  transform: translateX(-50%);
}
.cluster-left {
  color: var(--left);
  left: 19.5%;
  top: 49%;
  transform: translateY(-50%);
}
.cluster-right {
  color: var(--right);
  right: 19.5%;
  top: 49%;
  transform: translateY(-50%);
}
.cluster-south {
  color: var(--south);
  left: 50%;
  bottom: 17%;
  transform: translateX(-50%);
}

.mud-cluster {
  grid-template-columns: repeat(3, 9px);
  gap: 11px;
  color: var(--mud);
  opacity: .95;
}
.mud-left { left: 40%; top: 50%; transform: translate(-50%,-50%); }
.mud-right { left: 60%; top: 50%; transform: translate(-50%,-50%); }
.mud-bottom { left: 50%; top: 64%; transform: translate(-50%,-50%); }

.lane {
  position: absolute;
  z-index: 5;
  opacity: 1;
}
.lane::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
}

.lane-north {
  left: 50%;
  top: 30%;
  height: 16%;
  border-left: 3px dashed var(--north);
}
.lane-north::after {
  left: -6px;
  bottom: -1px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 9px solid var(--north);
}

.lane-left {
  left: 28%;
  top: 50%;
  width: 12%;
  border-top: 3px dashed var(--left);
}
.lane-left::after {
  right: -1px;
  top: -7px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid var(--left);
}

.lane-right {
  right: 28%;
  top: 50%;
  width: 12%;
  border-top: 3px dashed var(--right);
}
.lane-right::after {
  left: -1px;
  top: -7px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 9px solid var(--right);
}

.lane-south {
  left: 50%;
  bottom: 24%;
  height: 14%;
  border-left: 3px dashed var(--south);
}
.lane-south::after {
  left: -6px;
  top: -1px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 9px solid var(--south);
}

.turret {
  z-index: 8;
  color: #fff5c4;
}
.turret > span {
  width: 38px;
  height: 38px;
  border: 2px solid currentColor;
  background: rgba(0,0,0,.45);
  font-size: 20px;
}
.turret small {
  margin-top: 5px;
  color: #fff8d8;
  font-weight: 900;
  letter-spacing: .14em;
}
.turret-left { left: 33%; top: 47.5%; }
.turret-right { right: 33%; top: 47.5%; }
.turret-south { left: 50%; top: 70%; transform: translateX(-50%); }

.capital-core {
  z-index: 9;
  color: #fff;
}
.capital-core small {
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .16em;
}
.capital-square {
  width: 72px;
  height: 72px;
  border: 3px solid #fff;
  background: rgba(0,0,0,.35);
}
.capital-square::before {
  width: 38px;
  height: 38px;
  border: 2px solid #bfc6bc;
}
.capital-square i {
  width: 12px;
  height: 12px;
  background: #fff;
}

.map-label {
  position: absolute;
  z-index: 7;
  color: #dfe5dc;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .2em;
}
.north-label { top: 19%; left: 50%; transform: translateX(-50%); color: var(--north); }
.left-label { left: 11%; top: 49%; color: var(--left); }
.right-label { right: 11%; top: 49%; color: var(--right); }
.mud-label { left: 50%; top: 35.5%; transform: translateX(-50%); color: #ffe7ba; }

.capital-legend,
.standing-order {
  border-color: #343834;
  background: #0a0b0a;
}

.capital-legend strong,
.standing-order li {
  color: #f3f5f1;
}

.capital-legend small {
  color: #aeb2ab;
}

.legend-dot.north { color: #89ff77; }
.legend-dot.left { color: #71baff; }
.legend-dot.right { color: #d696ff; }
.legend-dot.south { color: #ffe45c; }
.legend-dot.mud { color: #b9c1c9; }

@media (max-width: 900px) {
  .category-heading-row {
    gap: 14px;
  }
  .category-heading-icon {
    width: 54px;
    height: 54px;
  }
  .category-heading-icon svg {
    width: 48px;
    height: 48px;
  }

  .capital-board {
    min-height: 780px;
  }
  .squad-card {
    width: 30%;
    min-width: 0;
  }
  .squad-left { left: 1.5%; }
  .squad-right { right: 1.5%; }

  .cluster-left { left: 24%; }
  .cluster-right { right: 24%; }
  .turret-left { left: 29%; }
  .turret-right { right: 29%; }
  .lane-left { left: 31%; width: 10%; }
  .lane-right { right: 31%; width: 10%; }
}

@media (max-width: 640px) {
  .category-heading-row {
    align-items: flex-start;
    gap: 12px;
  }
  .category-heading-icon {
    width: 44px;
    height: 44px;
    margin-top: 2px;
  }
  .category-heading-icon svg {
    width: 40px;
    height: 40px;
  }
  .category-heading-icon.vs-icon {
    font-size: 18px;
  }
  .category-heading-icon.notice-square-wrap .notice-square-icon {
    width: 36px;
    height: 36px;
  }

  .capital-board {
    min-height: 720px;
  }
  .squad-card {
    width: 43%;
    padding: 10px 11px;
  }
  .squad-card strong { font-size: 13px; }
  .squad-card p { font-size: 10px; }
  .squad-card small { font-size: 8px; }

  .squad-north,
  .squad-south {
    width: 58%;
  }

  .grass-zone { width: 92%; height: 51%; }
  .mud-zone { width: 68%; height: 33%; }

  .squad-cluster {
    grid-template-columns: repeat(6, 7px);
    gap: 7px 9px;
  }
  .squad-cluster i {
    width: 7px;
    height: 7px;
  }
  .cluster-north { top: 26%; }
  .cluster-south { bottom: 19%; }
  .cluster-left { left: 24%; }
  .cluster-right { right: 24%; }

  .turret-left { left: 27%; }
  .turret-right { right: 27%; }
  .turret small { display: none; }

  .lane-left { left: 30%; width: 13%; }
  .lane-right { right: 30%; width: 13%; }

  .map-label.left-label,
  .map-label.right-label {
    display: none;
  }

  .mud-cluster {
    transform: translate(-50%,-50%) scale(.78);
  }

  .capital-core {
    transform: translate(-50%, -50%) scale(.82);
  }
}


/* v11 — refined upright rose silhouette */
.rose-stem-svg {
  overflow: visible;
}

.rose-stem-svg .rose-fill {
  fill: currentColor;
}

.rose-stem-svg .rose-cut {
  fill: var(--rose-hole);
}

.rose-stem-svg .rose-line {
  fill: none;
  stroke: var(--rose-hole);
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.command-icon.icon-rose .rose-stem-svg,
.category-heading-icon.icon-rose .rose-stem-svg,
.command-icon.giant.icon-rose .rose-stem-svg {
  width: 54px;
  height: 72px;
}

.command-icon.giant.icon-rose .rose-stem-svg {
  width: 78px;
  height: 104px;
}

@media (max-width: 760px) {
  .command-icon.icon-rose .rose-stem-svg,
  .category-heading-icon.icon-rose .rose-stem-svg {
    width: 38px;
    height: 51px;
  }

  .command-icon.giant.icon-rose .rose-stem-svg {
    width: 68px;
    height: 90px;
  }
}


/* v12 — live numbers freshness */
.update-status {
  margin-top: 12px;
  color: #9fa19b;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.update-status.is-stale {
  color: #f8d83d;
}

@media (max-width: 760px) {
  .update-status {
    font-size: 12px;
  }
}


/* v13 — only the category icons are colored. Lead text returns to white. */
.section-capital { --category-color: #d6c88d; }
.section-1 { --category-color: #ff6b6b; }
.section-2 { --category-color: #57d68d; }
.section-3 { --category-color: #f8d83d; }
.section-notice { --category-color: #63c5da; }
.section-5 { --category-color: #ff7a18; }
.section-6 { --category-color: #a68cff; }
.section-7 { --category-color: #5aa7ff; }

.category-heading-row .category-lead {
  color: #f4f4ef !important;
}

.capital-heading .category-lead,
.section-head .category-heading-row h1,
.section-head .category-heading-row h2,
.section-copy .category-heading-row h2 {
  color: #f4f4ef !important;
}

/* v13 — fresh rose redesign */
.icon-rose {
  color: #f8d83d !important;
  --rose-hole: #090909;
}

.rose-bloom-svg {
  overflow: visible;
}
.rose-bloom-svg .rose-fill {
  fill: currentColor;
}
.rose-bloom-svg .rose-cut {
  fill: var(--rose-hole);
}
.rose-bloom-svg .rose-line {
  fill: none;
  stroke: var(--rose-hole);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.command-icon.icon-rose .rose-bloom-svg,
.category-heading-icon.icon-rose .rose-bloom-svg {
  width: 54px;
  height: 54px;
}

.command-icon.giant.icon-rose .rose-bloom-svg {
  width: 84px;
  height: 84px;
}

/* v13 — replace the old four-box SVS icon with 772 everywhere */
.state772-icon {
  display: grid;
  place-items: center;
  color: #5aa7ff;
  font-weight: 950;
  letter-spacing: -.08em;
  line-height: 1;
  border: 2px solid currentColor;
  border-radius: 12px;
  background: rgba(90, 167, 255, .06);
}
.state772-icon span {
  transform: translateY(-1px);
}
.command-icon.state772-icon {
  font-size: 24px;
}
.category-heading-icon.state772-icon {
  width: 66px;
  height: 54px;
  font-size: 24px;
}
.command-icon.state772-icon span,
.category-heading-icon.state772-icon span {
  color: currentColor;
}

/* Capital strategy orders block */
.capital-notes {
  display: grid;
  grid-template-columns: .88fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.capital-orders {
  grid-column: 1 / -1;
  border: 1px solid #343834;
  background: #0a0b0a;
  padding: 24px;
}
.capital-orders .eyebrow {
  display: inline-block;
  margin-bottom: 14px;
}
.tick-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tick-list li {
  position: relative;
  margin: 0 0 13px;
  padding-left: 30px;
  color: #f0f2ef;
  line-height: 1.55;
}
.tick-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #89ff77;
  font-weight: 900;
}

@media (max-width: 900px) {
  .capital-notes {
    grid-template-columns: 1fr;
  }
  .capital-orders {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .command-icon.icon-rose .rose-bloom-svg,
  .category-heading-icon.icon-rose .rose-bloom-svg {
    width: 42px;
    height: 42px;
  }
  .command-icon.giant.icon-rose .rose-bloom-svg {
    width: 72px;
    height: 72px;
  }
  .command-icon.state772-icon,
  .category-heading-icon.state772-icon {
    font-size: 18px;
    border-radius: 10px;
  }
}


/* v14 — exact rose reference image everywhere */
.rose-icon-image {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.rose-image-large {
  width: 88px;
  height: 88px;
}

.command-icon.icon-rose,
.category-heading-icon.icon-rose {
  width: auto;
  height: auto;
  color: inherit;
}

.command-icon.giant.icon-rose {
  width: auto;
  height: auto;
}

/* v14 — light notice section heading text should be black */
.section-notice .category-heading-row .category-lead,
.section-notice .category-heading-row h1,
.section-notice .category-heading-row h2,
.section-notice .section-head,
.section-notice .section-head .eyebrow,
.section-notice .section-head .section-index {
  color: #111111 !important;
}

.section-notice .category-heading-row .category-lead {
  text-shadow: none;
}

@media (max-width: 760px) {
  .rose-icon-image {
    width: 42px;
    height: 42px;
  }

  .rose-image-large {
    width: 72px;
    height: 72px;
  }
}


/* v15 — category lead text matches the icon color again and is slightly larger */
.section-capital { --category-color: #d6c88d; }
.section-1 { --category-color: #ff6b6b; }
.section-2 { --category-color: #57d68d; }
.section-3 { --category-color: #f8d83d; }
.section-notice { --category-color: #63c5da; }
.section-5 { --category-color: #ff7a18; }
.section-6 { --category-color: #a68cff; }
.section-7 { --category-color: #5aa7ff; }

.category-heading-row .category-lead,
.capital-heading .category-lead,
.section-head .category-heading-row h1,
.section-head .category-heading-row h2,
.section-copy .category-heading-row h2,
.section-notice .category-heading-row .category-lead,
.section-notice .category-heading-row h1,
.section-notice .category-heading-row h2 {
  color: var(--category-color) !important;
}

.category-heading-row .category-lead {
  font-size: clamp(2.55rem, 4.8vw, 5.25rem);
  line-height: .95;
}

.section-copy .category-heading-row h2,
.section-head .category-heading-row h2 {
  font-size: clamp(2.2rem, 4.1vw, 4.25rem);
  line-height: .95;
}

.section-notice .category-heading-row .category-lead,
.section-notice .category-heading-row h2 {
  color: #111111 !important;
}

.events-category-head {
  margin-bottom: 24px;
}

.events-category-head .eyebrow {
  display: inline-block;
}

.events-category-head .section-index {
  align-self: center;
}

/* v15 — transparent rose image with no white box */
.rose-icon-image {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: transparent !important;
  mix-blend-mode: normal;
  filter: drop-shadow(0 0 0 transparent);
}

.rose-image-large {
  width: 88px;
  height: 88px;
}

.command-icon.icon-rose,
.category-heading-icon.icon-rose,
.command-icon.giant.icon-rose {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* v15 — make the rose read more clearly as a rose in dark UI */
.section-3 .rose-icon-image,
.command-button .rose-icon-image {
  image-rendering: -webkit-optimize-contrast;
}

@media (max-width: 760px) {
  .category-heading-row .category-lead {
    font-size: clamp(2.1rem, 9vw, 3.4rem);
  }

  .section-copy .category-heading-row h2,
  .section-head .category-heading-row h2 {
    font-size: clamp(1.75rem, 7vw, 2.7rem);
  }

  .rose-icon-image {
    width: 42px;
    height: 42px;
  }

  .rose-image-large {
    width: 72px;
    height: 72px;
  }
}


/* v16 — creator credit and image modal */
.footer-inner {
  gap: 28px;
}

.footer-logo {
  flex: 0 0 auto;
}

.footer-credit {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  text-align: right;
}

.creator-photo-button {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 1px solid #4a4a4a;
  border-radius: 14px;
  overflow: hidden;
  background: #0a0a0a;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.creator-photo-button:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: #fff;
}

.creator-photo-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.creator-photo-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.creator-credit-copy strong {
  display: block;
  font-size: 15px;
  letter-spacing: .08em;
}

.creator-credit-copy p {
  margin: 7px 0 0;
  color: #8f8f8a;
  font-size: 12px;
}

.creator-modal[hidden] {
  display: none;
}

.creator-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
}

.creator-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}

.creator-modal-panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 760px);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid #454545;
  background: #070707;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .72);
}

.creator-modal-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 14px 12px 18px;
  border-bottom: 1px solid #333;
}

.creator-modal-head strong {
  font-size: 14px;
  letter-spacing: .08em;
}

.creator-modal-close {
  width: 38px;
  height: 38px;
  border: 1px solid #444;
  background: #111;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.creator-modal-close:hover {
  background: #fff;
  color: #000;
}

.creator-modal-panel > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(90vh - 59px);
  object-fit: contain;
  background: #050505;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .footer-credit {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    text-align: left;
  }

  .creator-photo-button {
    width: 64px;
    height: 64px;
  }

  .creator-credit-copy strong {
    font-size: 13px;
  }

  .creator-modal {
    padding: 12px;
  }

  .creator-modal-panel {
    width: 100%;
    max-height: 92vh;
  }
}


/* v17 — State #772 SvS Capital Invasion Strategy */
.section-capital {
  --capital-gold: #d6c88d;
  --roxy: #8dff78;
  --hvau: #5de2bb;
  --apx4: #64adff;
  --gurd: #ffe061;
  --icp2: #c98bff;
  --ua0: #54e0ff;
  --mud: #b6bec7;
  background:
    radial-gradient(circle at 50% 8%, rgba(214,200,141,.08), transparent 35%),
    #060706;
}

.invasion-heading p {
  max-width: 980px;
}

.invasion-priority {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin: 38px 0 76px;
  border: 1px solid #303230;
  background: #303230;
}

.invasion-priority > div {
  min-height: 142px;
  padding: 20px;
  background: #0c0d0c;
}

.invasion-priority span {
  display: block;
  color: #777b76;
  font-family: "Courier New", monospace;
  font-weight: 800;
}

.invasion-priority strong {
  display: block;
  margin-top: 18px;
  color: var(--capital-gold);
  font-size: 20px;
  letter-spacing: .04em;
}

.invasion-priority small {
  display: block;
  margin-top: 9px;
  color: #aeb1ac;
  line-height: 1.45;
}

.invasion-block-head {
  margin: 0 0 28px;
}

.invasion-block-head h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: .98;
  letter-spacing: -.045em;
}

.invasion-block-head p {
  max-width: 980px;
  color: #a8aaa5;
  font-size: 16px;
  line-height: 1.55;
}

.compact-head {
  margin-top: 74px;
}

/* code-built battlefield map */
.invasion-map {
  position: relative;
  min-height: 980px;
  overflow: hidden;
  border: 1px solid #303530;
  background:
    radial-gradient(circle at center, rgba(255,255,255,.045), transparent 33%),
    linear-gradient(180deg, #0b150c, #091009 47%, #0b0d0b 100%);
}

.invasion-map-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.08) 1px, transparent 1.2px),
    linear-gradient(45deg, transparent 49.7%, rgba(255,255,255,.025) 50%, transparent 50.3%),
    linear-gradient(-45deg, transparent 49.7%, rgba(255,255,255,.025) 50%, transparent 50.3%);
  background-size: 26px 26px, 240px 240px, 240px 240px;
  opacity: .72;
}

.invasion-grass-field,
.invasion-mud {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  clip-path: polygon(50% 0, 91% 24%, 91% 76%, 50% 100%, 9% 76%, 9% 24%);
}

.invasion-grass-field {
  width: 82%;
  height: 72%;
  background: rgba(38,105,40,.17);
  box-shadow: inset 0 0 0 2px rgba(123,255,117,.17);
}

.invasion-mud {
  width: 48%;
  height: 44%;
  background: rgba(120,89,58,.25);
  box-shadow: inset 0 0 0 2px rgba(255,220,145,.22);
  z-index: 2;
}

.sector {
  position: absolute;
  z-index: 8;
  width: 20%;
  min-width: 180px;
  padding: 14px 15px 15px;
  border: 1px solid currentColor;
  background: rgba(5,7,5,.94);
  box-shadow: 0 14px 36px rgba(0,0,0,.38);
}

.sector small {
  display: block;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .15em;
  color: currentColor;
}

.sector strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 22px;
}

.sector > span {
  display: block;
  margin-top: 3px;
  color: #c7cac5;
  font-size: 11px;
}

.sector-roxy { color: var(--roxy); left: 50%; top: 3%; transform: translateX(-50%); text-align: center; }
.sector-hvau { color: var(--hvau); left: 4%; top: 18%; }
.sector-apx4 { color: var(--apx4); left: 2%; top: 48%; }
.sector-gurd { color: var(--gurd); left: 19%; bottom: 3%; }
.sector-icp2 { color: var(--icp2); right: 4%; top: 18%; text-align: right; }
.sector-ua0 { color: var(--ua0); right: 2%; top: 48%; text-align: right; }

.sector-houses {
  display: grid;
  grid-template-columns: repeat(6, 8px);
  justify-content: center;
  gap: 7px 10px;
  margin-top: 11px;
}

.sector-houses i {
  width: 8px;
  height: 8px;
  display: block;
  background: currentColor;
  box-shadow: 0 0 10px color-mix(in srgb, currentColor 45%, transparent);
}

.map-capital {
  position: absolute;
  z-index: 9;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 10px;
}

.map-capital b {
  width: 76px;
  height: 76px;
  border: 3px solid #fff;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.42);
}

.map-capital b::before {
  content: "";
  width: 42px;
  height: 42px;
  border: 2px solid #bfc5bd;
}

.map-capital b i {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #fff;
}

.map-capital strong {
  color: #fff;
  letter-spacing: .14em;
}

.map-turret {
  position: absolute;
  z-index: 9;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #fff7d0;
}

.map-turret b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid currentColor;
  background: rgba(0,0,0,.44);
}

.map-turret span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.map-turret-2 { left: 31%; top: 48%; }
.map-turret-3 { right: 31%; top: 48%; }
.map-turret-1 { left: 50%; top: 70%; transform: translateX(-50%); }

.map-lane {
  position: absolute;
  z-index: 5;
  opacity: .9;
}

.map-lane-left {
  left: 21%;
  top: 51%;
  width: 18%;
  border-top: 3px dashed var(--apx4);
}

.map-lane-right {
  right: 21%;
  top: 51%;
  width: 18%;
  border-top: 3px dashed var(--icp2);
}

.map-lane-south {
  left: 50%;
  top: 65%;
  height: 17%;
  border-left: 3px dashed var(--gurd);
}

.map-label {
  position: absolute;
  z-index: 4;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .22em;
}

.map-label-grass {
  left: 50%;
  top: 31%;
  transform: translateX(-50%);
  color: #8dff78;
}

.map-label-mud {
  left: 50%;
  top: 39.5%;
  transform: translateX(-50%);
  color: #ffe0a0;
}

/* roles */
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.role-card {
  min-height: 220px;
  padding: 20px;
  border: 1px solid #353835;
  background: #0a0b0a;
}

.role-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #333633;
  padding-bottom: 14px;
}

.role-card-head strong {
  font-size: 26px;
}

.role-card-head span {
  color: #90938d;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.role-card ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.role-card li {
  margin-bottom: 10px;
  color: #d9dbd7;
  line-height: 1.45;
}

.role-card li b {
  color: #fff;
}

.role-ua0 { border-top: 4px solid var(--ua0); }
.role-gurd { border-top: 4px solid var(--gurd); }
.role-hvau { border-top: 4px solid var(--hvau); }
.role-apx4 { border-top: 4px solid var(--apx4); }
.role-roxy { border-top: 4px solid var(--roxy); }
.role-icp2 { border-top: 4px solid var(--icp2); }

.grass-rule {
  margin-top: 12px;
  padding: 22px 24px;
  border: 1px solid rgba(141,255,120,.48);
  background: rgba(141,255,120,.055);
}

.grass-rule strong {
  display: block;
  color: var(--roxy);
  font-size: 20px;
}

.grass-rule span {
  display: block;
  margin-top: 7px;
  color: #d8dbd6;
}

/* timeline */
.invasion-timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid #363936;
  border-left: 1px solid #363936;
}

.invasion-timeline article {
  min-height: 285px;
  padding: 24px;
  border-right: 1px solid #363936;
  border-bottom: 1px solid #363936;
  background: #0a0b0a;
}

.invasion-timeline time {
  display: inline-block;
  color: var(--capital-gold);
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
}

.invasion-timeline strong {
  display: block;
  margin-top: 13px;
  font-size: 23px;
}

.invasion-timeline ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.invasion-timeline li {
  margin-bottom: 9px;
  color: #c7cac5;
  line-height: 1.5;
}

.timeline-critical {
  border-top: 4px solid #ffe061 !important;
}

.timeline-open {
  border-top: 4px solid #ff6b6b !important;
}

/* targets */
.target-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid #363936;
  border-left: 1px solid #363936;
}

.target-grid > div {
  min-height: 94px;
  display: grid;
  grid-template-columns: 100px 28px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  border-right: 1px solid #363936;
  border-bottom: 1px solid #363936;
  background: #0a0b0a;
}

.target-grid strong {
  color: var(--capital-gold);
  font-size: 18px;
}

.target-grid > div > span {
  color: #727672;
  font-size: 22px;
}

.target-grid b {
  font-size: 18px;
}

.target-grid small {
  color: #959992;
  font-size: 10px;
  letter-spacing: .09em;
}

.target-ua0 {
  background: rgba(84,224,255,.04) !important;
}

/* critical orders */
.capital-critical {
  margin-top: 74px;
  border: 1px solid #484b48;
  background:
    linear-gradient(135deg, rgba(255,107,107,.035), transparent 35%),
    #090a09;
}

.critical-title {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid #484b48;
}

.critical-title span {
  color: #ff6b6b;
  font-size: 30px;
}

.critical-title strong {
  font-size: 20px;
  letter-spacing: .08em;
}

.critical-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.critical-grid p {
  margin: 0;
  padding: 20px 22px;
  border-right: 1px solid #333633;
  border-bottom: 1px solid #333633;
  color: #d5d8d3;
  line-height: 1.55;
}

.critical-grid p:nth-child(even) {
  border-right: 0;
}

.critical-grid b {
  color: #fff;
}

@media (max-width: 980px) {
  .invasion-priority {
    grid-template-columns: repeat(2, 1fr);
  }

  .invasion-priority > div:last-child {
    grid-column: 1 / -1;
  }

  .invasion-map {
    min-height: 940px;
  }

  .sector {
    width: 26%;
  }

  .sector-hvau { left: 2%; }
  .sector-apx4 { left: 1%; }
  .sector-icp2 { right: 2%; }
  .sector-ua0 { right: 1%; }

  .role-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .target-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .invasion-priority {
    grid-template-columns: 1fr;
  }

  .invasion-priority > div:last-child {
    grid-column: auto;
  }

  .invasion-map {
    min-height: 870px;
  }

  .invasion-grass-field {
    width: 98%;
    height: 55%;
  }

  .invasion-mud {
    width: 70%;
    height: 31%;
  }

  .sector {
    width: 43%;
    min-width: 0;
    padding: 10px 11px;
  }

  .sector strong {
    font-size: 16px;
  }

  .sector > span {
    font-size: 9px;
  }

  .sector-houses {
    grid-template-columns: repeat(6, 6px);
    gap: 5px 6px;
  }

  .sector-houses i {
    width: 6px;
    height: 6px;
  }

  .sector-roxy { width: 50%; top: 2%; }
  .sector-hvau { left: 1%; top: 18%; }
  .sector-icp2 { right: 1%; top: 18%; }
  .sector-apx4 { left: 1%; top: 52%; }
  .sector-ua0 { right: 1%; top: 52%; }
  .sector-gurd { width: 50%; left: 50%; bottom: 2%; transform: translateX(-50%); text-align: center; }

  .map-capital {
    top: 52%;
    transform: translate(-50%,-50%) scale(.75);
  }

  .map-turret-2 { left: 22%; top: 49%; transform: scale(.8); }
  .map-turret-3 { right: 22%; top: 49%; transform: scale(.8); }
  .map-turret-1 { top: 67%; transform: translateX(-50%) scale(.8); }

  .map-lane-left { left: 25%; width: 16%; }
  .map-lane-right { right: 25%; width: 16%; }
  .map-lane-south { top: 63%; height: 13%; }

  .map-label {
    font-size: 8px;
  }

  .role-grid,
  .invasion-timeline,
  .critical-grid {
    grid-template-columns: 1fr;
  }

  .critical-grid p {
    border-right: 0;
  }

  .target-grid > div {
    grid-template-columns: 76px 20px minmax(0,1fr);
  }

  .target-grid small {
    grid-column: 3;
  }
}


/* v19 — Capital map alignment correction
   All six sector cards now use the same anchor system so left/right pairs
   are symmetrical and GURD sits directly on the south centerline. */
.invasion-map {
  min-height: 1010px;
}

/* Use center-point anchoring for every alliance card. */
.invasion-map .sector {
  width: 21%;
  min-width: 190px;
  transform: translateX(-50%);
}

/* North center */
.invasion-map .sector-roxy {
  left: 50%;
  right: auto;
  top: 3%;
  bottom: auto;
  transform: translateX(-50%);
  text-align: center;
}

/* Upper pair */
.invasion-map .sector-hvau {
  left: 16%;
  right: auto;
  top: 18%;
  bottom: auto;
  transform: translateX(-50%);
  text-align: left;
}

.invasion-map .sector-icp2 {
  left: 84%;
  right: auto;
  top: 18%;
  bottom: auto;
  transform: translateX(-50%);
  text-align: right;
}

/* Mid pair */
.invasion-map .sector-apx4 {
  left: 13%;
  right: auto;
  top: 49%;
  bottom: auto;
  transform: translateX(-50%);
  text-align: left;
}

.invasion-map .sector-ua0 {
  left: 87%;
  right: auto;
  top: 49%;
  bottom: auto;
  transform: translateX(-50%);
  text-align: right;
}

/* South center */
.invasion-map .sector-gurd {
  left: 50%;
  right: auto;
  top: auto;
  bottom: 3%;
  transform: translateX(-50%);
  text-align: center;
}

/* Center the battlefield geometry on one shared axis. */
.invasion-grass-field,
.invasion-mud,
.map-capital,
.map-turret-1,
.map-label-grass,
.map-label-mud {
  left: 50%;
}

.invasion-grass-field,
.invasion-mud {
  top: 52%;
}

/* Turret 2 and 3 are mirrored around Capital. */
.map-turret-2 {
  left: 33%;
  right: auto;
  top: 49.2%;
}

.map-turret-3 {
  left: 67%;
  right: auto;
  top: 49.2%;
  transform: translateX(-100%);
}

.map-turret-1 {
  top: 70.5%;
  transform: translateX(-50%);
}

/* Horizontal lanes terminate symmetrically at the two side turrets. */
.map-lane-left {
  left: 21%;
  right: auto;
  top: 52%;
  width: 18%;
}

.map-lane-right {
  left: auto;
  right: 21%;
  top: 52%;
  width: 18%;
}

.map-lane-south {
  left: 50%;
  top: 65.5%;
  height: 17%;
}

/* Labels sit on the same centerline as Capital. */
.map-label-grass {
  left: 50%;
  top: 31%;
}

.map-label-mud {
  left: 50%;
  top: 39.5%;
}

@media (max-width: 980px) {
  .invasion-map {
    min-height: 960px;
  }

  .invasion-map .sector {
    width: 26%;
    min-width: 0;
  }

  .invasion-map .sector-hvau { left: 15%; }
  .invasion-map .sector-icp2 { left: 85%; }
  .invasion-map .sector-apx4 { left: 14%; }
  .invasion-map .sector-ua0 { left: 86%; }
}

@media (max-width: 700px) {
  .invasion-map {
    min-height: 900px;
  }

  .invasion-map .sector {
    width: 43%;
    min-width: 0;
  }

  .invasion-map .sector-roxy {
    width: 52%;
    left: 50%;
    top: 2%;
  }

  .invasion-map .sector-hvau {
    left: 23%;
    top: 18%;
  }

  .invasion-map .sector-icp2 {
    left: 77%;
    top: 18%;
  }

  .invasion-map .sector-apx4 {
    left: 23%;
    top: 53%;
  }

  .invasion-map .sector-ua0 {
    left: 77%;
    top: 53%;
  }

  .invasion-map .sector-gurd {
    width: 52%;
    left: 50%;
    bottom: 2%;
  }

  .map-turret-2 {
    left: 28%;
    top: 50%;
    transform: translateX(-50%) scale(.8);
  }

  .map-turret-3 {
    left: 72%;
    right: auto;
    top: 50%;
    transform: translateX(-50%) scale(.8);
  }

  .map-turret-1 {
    left: 50%;
    top: 68%;
    transform: translateX(-50%) scale(.8);
  }

  .map-lane-left {
    left: 25%;
    width: 16%;
    top: 52%;
  }

  .map-lane-right {
    right: 25%;
    width: 16%;
    top: 52%;
  }
}


/* v20 — Turret countdown block in Capital Strategy */
.turret-timer-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid #343734;
  background:
    linear-gradient(135deg, rgba(255,255,255,.03), transparent 38%),
    #090a09;
}

.turret-visual {
  margin: 0;
  display: block;
  min-width: 0;
}

.turret-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #313531;
  background: #0b0c0b;
}

.turret-timer-panel {
  min-width: 0;
  display: grid;
  gap: 8px;
  align-content: center;
}

.turret-timer-panel .label {
  color: var(--capital-gold);
}

.turret-timer-panel strong {
  font-family: "Courier New", monospace;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: .9;
  letter-spacing: -.04em;
  color: #ffffff;
}

.turret-timer-panel small {
  color: #a9ada8;
  font-size: 15px;
  line-height: 1.45;
}

.turret-arrival-note {
  margin: 4px 0 0;
  color: #ffe061;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .01em;
}

@media (max-width: 980px) {
  .turret-timer-hero {
    grid-template-columns: 1fr;
  }

  .turret-visual {
    max-width: 520px;
  }
}

@media (max-width: 700px) {
  .turret-timer-hero {
    padding: 14px;
    gap: 14px;
  }

  .turret-timer-panel strong {
    font-size: clamp(2.4rem, 12vw, 3.3rem);
  }

  .turret-timer-panel small {
    font-size: 13px;
  }

  .turret-arrival-note {
    font-size: 16px;
  }
}


/* v21 — Turret timer expanded with exact arrival times */
.turret-timer-panel {
  gap: 10px;
}

.turret-arrival-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.arrival-box {
  padding: 14px 14px 12px;
  border: 1px solid #343734;
  background:
    linear-gradient(135deg, rgba(255,255,255,.03), transparent 48%),
    #0c0d0c;
}

.arrival-label {
  display: block;
  color: var(--capital-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.arrival-box strong {
  display: block;
  margin-top: 8px;
  font-family: "Courier New", monospace;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: .95;
  color: #fff;
}

@media (max-width: 700px) {
  .turret-arrival-grid {
    grid-template-columns: 1fr;
  }

  .arrival-box strong {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
}


/* v22 — updated capital staging: HVAU between Turret 1 and Turret 3 */
.invasion-map .sector-hvau {
  left: 87%;
  top: 48%;
  transform: translateX(-50%);
  text-align: right;
}

.invasion-map .sector-ua0 {
  left: 16%;
  top: 18%;
  transform: translateX(-50%);
  text-align: left;
}

.capital-shift-note {
  margin-top: 12px;
  padding: 20px 22px;
  border: 1px solid rgba(93, 226, 187, .35);
  background: rgba(93, 226, 187, .06);
}

.capital-shift-note strong {
  display: block;
  color: var(--hvau);
  font-size: 19px;
  letter-spacing: .02em;
}

.capital-shift-note p {
  margin: 8px 0 0;
  color: #d6dbd7;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .invasion-map .sector-hvau { left: 86%; top: 48%; }
  .invasion-map .sector-ua0 { left: 15%; top: 18%; }
}

@media (max-width: 700px) {
  .invasion-map .sector-hvau {
    left: 77%;
    top: 53%;
  }

  .invasion-map .sector-ua0 {
    left: 23%;
    top: 18%;
  }
}


/* v23 — HVAU centered in the T1/T3 teleport pocket */
.invasion-map .sector-hvau {
  left: 72%;
  top: 64%;
  bottom: auto;
  right: auto;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 20%;
}

.invasion-map .sector-hvau .sector-houses {
  justify-content: center;
}

.invasion-map .sector-hvau small,
.invasion-map .sector-hvau strong,
.invasion-map .sector-hvau span {
  display: block;
  text-align: center;
}

.capital-shift-note {
  border-color: rgba(93, 226, 187, .5);
}

.capital-shift-note strong {
  color: var(--hvau);
}

@media (max-width: 980px) {
  .invasion-map .sector-hvau {
    left: 71%;
    top: 64%;
    width: 24%;
  }
}

@media (max-width: 700px) {
  .invasion-map .sector-hvau {
    left: 68%;
    top: 61%;
    width: 42%;
    transform: translate(-50%, -50%);
  }
}


/* v24 — HVAU closer to Turret 1 and lane switched to green */
.invasion-map .sector-hvau {
  left: 67%;
  top: 67%;
  width: 20%;
  transform: translate(-50%, -50%);
  text-align: center;
}

/* Make the right-side connection lane green instead of purple */
.map-lane-right {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(143, 255, 125, 0.95) 0 8px,
      transparent 8px 13px
    );
  box-shadow: 0 0 0 1px rgba(143, 255, 125, 0.18) inset;
}

/* Also switch the Turret 3 connector accent to the same green family */
.map-turret-3 .turret-track {
  background:
    repeating-linear-gradient(
      180deg,
      rgba(143, 255, 125, 0.95) 0 8px,
      transparent 8px 13px
    );
}

@media (max-width: 980px) {
  .invasion-map .sector-hvau {
    left: 66%;
    top: 67%;
    width: 24%;
  }
}

@media (max-width: 700px) {
  .invasion-map .sector-hvau {
    left: 64%;
    top: 64%;
    width: 42%;
  }

  .map-lane-right {
    right: 21%;
    width: 18%;
  }
}


/* v25 — requested nav/order merge updates */
.command-nav {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.duel-basics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 22px;
  background: var(--line);
}

.duel-basics-grid article,
.svs-inline-callout {
  background: #0b0b0b;
  border: 1px solid var(--line);
  padding: 20px 22px;
}

.duel-basics-grid article strong,
.svs-inline-callout strong {
  display: block;
  font-size: 15px;
  letter-spacing: .08em;
  color: #f2f2f2;
}

.duel-basics-grid article p,
.svs-inline-callout p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.svs-inline-callout {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 22px;
}

.promo-rose-wrap {
  display: grid;
  gap: 34px;
}

.promo-rose-top {
  align-items: start;
}

.promo-days {
  color: var(--muted);
}

.promo-rose-bottom {
  display: grid;
  grid-template-columns: 160px minmax(180px, 280px) 1fr;
  gap: 28px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

.merged-rose-copy {
  max-width: none;
}

.merged-rose-copy .rose-week {
  margin-top: 18px;
}

@media (max-width: 1100px) {
  .command-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .duel-basics-grid {
    grid-template-columns: 1fr;
  }

  .promo-rose-bottom {
    grid-template-columns: 120px 1fr;
  }

  .promo-rose-bottom .merged-rose-copy {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .svs-inline-callout {
    grid-template-columns: 64px 1fr;
  }
}

@media (max-width: 560px) {
  .command-nav {
    grid-template-columns: 1fr;
  }

  .promo-rose-bottom {
    grid-template-columns: 1fr;
  }

  .promo-rose-bottom .rose-visual,
  .promo-rose-bottom .rose-number {
    justify-self: start;
  }
}


/* v26 — file reorganization + merged rose layout correction */
.capital-section-index {
  margin-bottom: 14px;
}

.promo-rose-bottom {
  display: grid !important;
  grid-template-columns: minmax(340px, .8fr) minmax(0, 1.2fr) !important;
  gap: clamp(36px, 6vw, 84px) !important;
  align-items: center !important;
  border-top: 1px solid var(--line);
  padding-top: 42px;
}

.rose-stat-block {
  min-width: 0;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
}

.rose-stat-icon {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
}

.rose-stat-icon .rose-icon-image {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.promo-rose-bottom .rose-number {
  position: static !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  font-size: clamp(150px, 17vw, 270px) !important;
  line-height: .78 !important;
  letter-spacing: -.09em;
  text-align: left;
  white-space: nowrap;
}

.promo-rose-bottom .merged-rose-copy {
  min-width: 0;
  align-self: center;
}

.promo-rose-bottom .merged-rose-copy .category-heading-row {
  align-items: center;
}

.promo-rose-bottom .merged-rose-copy .category-lead {
  font-size: clamp(42px, 5vw, 74px);
  line-height: .98;
}

.promo-rose-bottom .merged-rose-copy .large-copy {
  margin-top: 24px;
}

@media (max-width: 1050px) {
  .promo-rose-bottom {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .rose-stat-block {
    grid-template-columns: 96px auto;
    justify-content: start;
  }

  .rose-stat-icon {
    width: 96px;
    height: 96px;
  }

  .rose-stat-icon .rose-icon-image {
    width: 86px;
    height: 86px;
  }

  .promo-rose-bottom .rose-number {
    font-size: clamp(130px, 24vw, 220px) !important;
  }
}

@media (max-width: 560px) {
  .rose-stat-block {
    grid-template-columns: 72px auto;
    gap: 14px;
  }

  .rose-stat-icon {
    width: 72px;
    height: 72px;
  }

  .rose-stat-icon .rose-icon-image {
    width: 66px;
    height: 66px;
  }

  .promo-rose-bottom .rose-number {
    font-size: clamp(100px, 34vw, 160px) !important;
  }

  .promo-rose-bottom .merged-rose-copy .category-lead {
    font-size: clamp(34px, 10vw, 48px);
  }
}


/* v27: trim capital strategy and tighten events spacing */
.section-capital {
  padding-top: 74px;
  padding-bottom: 74px;
}

.section-capital .capital-heading {
  margin-bottom: 26px;
}

.section-capital .capital-heading > p {
  max-width: 980px;
  font-size: 17px;
}

.section-capital .turret-timer-hero {
  margin-top: 22px;
}

.section-capital .invasion-priority {
  margin-top: 20px;
  margin-bottom: 28px;
}

.section-capital .invasion-block-head {
  margin-bottom: 18px;
}

.section-capital .invasion-block-head h2 {
  font-size: clamp(34px, 4.1vw, 52px);
}

.section-capital .invasion-block-head p {
  font-size: 15px;
  max-width: 880px;
}

.section-capital .invasion-map {
  margin-top: 20px;
}

/* Events section tighter */
#events.section {
  padding-top: 74px;
  padding-bottom: 74px;
}

#events .section-head {
  margin-bottom: 24px;
}

.frenzy-first {
  gap: 22px;
  padding: 20px 0;
  margin-bottom: 30px;
}

.frenzy-first h2 {
  font-size: clamp(38px, 4.9vw, 62px);
}

.frenzy-first p {
  margin-top: 8px;
  font-size: 16px;
}

.first-label {
  font-size: clamp(46px, 7vw, 84px);
}

.event-list {
  border-top: 1px solid var(--line);
}

.event-row {
  gap: 20px;
  padding: 20px 0;
}

.event-row > div {
  gap: 16px;
}

.event-row .eyebrow {
  margin: 4px 0 0;
}

.event-row h3 {
  margin: 14px 0 0;
  font-size: 28px;
}

.event-row p {
  font-size: 16px;
  line-height: 1.45;
}

.event-icon {
  width: 82px;
  height: 82px;
}

.event-icon svg {
  width: 72px;
  height: 72px;
}

@media (max-width: 820px) {
  .section-capital {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  #events.section {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .frenzy-first {
    margin-bottom: 22px;
    padding: 18px 0;
  }

  .event-row {
    padding: 16px 0;
  }

  .event-row h3 {
    margin-top: 6px;
  }

  .event-row p {
    margin-top: 10px;
  }
}

@media (max-width: 560px) {
  .section-capital {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  #events.section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .frenzy-first {
    gap: 14px;
    padding: 16px 0;
    margin-bottom: 20px;
  }

  .frenzy-first h2 {
    font-size: 42px;
  }

  .event-row {
    gap: 14px;
    padding: 14px 0;
  }

  .event-row h3 {
    font-size: 25px;
    margin-top: 4px;
  }

  .event-row p {
    font-size: 15px;
    margin-top: 8px;
  }
}


/* v28: capital section simplified and state ruler panel updated */
.section-capital {
  padding-top: 72px;
  padding-bottom: 64px;
}

.section-capital .capital-heading > p {
  max-width: 980px;
}

.section-capital .turret-timer-hero {
  margin-top: 22px;
}

.section-capital .turret-visual img {
  object-position: center 38%;
}

.section-capital .invasion-priority {
  margin-top: 22px;
  margin-bottom: 0;
}

@media (max-width: 820px) {
  .section-capital {
    padding-top: 60px;
    padding-bottom: 56px;
  }
}


/* v29 — preserve the full edited Capital image in the State Ruler panel */
.section-capital .turret-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}


/* v31: cleaner notice board with compact two-column note grids */
.section-notice .section-head {
  margin-bottom: 30px;
}
.notice-list {
  border-top: 1px solid var(--paper-line);
  display: grid;
  gap: 0;
}
.notice-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 22px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--paper-line);
}
.notice-icon {
  width: 64px;
  height: 64px;
}
.notice-icon svg {
  width: 54px;
  height: 54px;
}
.notice-item > div {
  min-width: 0;
}
.notice-kicker {
  display: block;
  margin-bottom: 6px;
}
.notice-item h3 {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.02;
}
.notice-item ul,
.notice-item ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 10px 34px;
  margin: 0;
  padding-left: 22px;
  columns: unset;
  column-gap: 0;
}
.notice-item li {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  break-inside: avoid;
}

@media (max-width: 980px) {
  .notice-item ul,
  .notice-item ol {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 700px) {
  .section-notice .section-head {
    margin-bottom: 22px;
  }
  .notice-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px 0;
  }
  .notice-icon {
    width: 56px;
    height: 56px;
  }
  .notice-icon svg {
    width: 48px;
    height: 48px;
  }
  .notice-item h3 {
    font-size: 28px;
  }
}


/* v32: add abstract pattern behind sections 01 and 04 */
.section-1,
.section-capital {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.section-1::before,
.section-capital::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(135deg, transparent 0 44%, rgba(255,255,255,.028) 44% 45%, transparent 45% 100%),
    linear-gradient(45deg, transparent 0 46%, rgba(255,255,255,.022) 46% 47%, transparent 47% 100%),
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.035) 0 1px, transparent 1.5px),
    radial-gradient(circle at 76% 64%, rgba(255,255,255,.026) 0 1px, transparent 1.5px);
  background-size: 180px 180px, 240px 240px, 34px 34px, 52px 52px;
  opacity: .72;
}

/* v32: orange FIRST callout matches the lightning accent */
.first-label {
  color: #ff7a18;
  opacity: 1;
}

/* v32: notices category icon becomes a cyan megaphone */
.icon-notice {
  color: #63c5da;
}
.icon-notice svg {
  width: 54px;
  height: 54px;
  fill: currentColor;
}
.command-icon.icon-notice {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
}
.category-heading-icon.icon-notice {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
}

/* v32: compact notice board uses vertical cards in a left-right grid */
.notice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  border-top: 0;
}
.notice-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--paper-line);
  background: rgba(255,255,255,.3);
}
.notice-item:last-child {
  grid-column: 1 / -1;
}
.notice-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
}
.notice-icon svg {
  width: 46px;
  height: 46px;
}
.notice-item h3 {
  margin: 0 0 10px;
}
.notice-item ul,
.notice-item ol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 26px;
  padding-left: 20px;
}
.notice-item li {
  line-height: 1.42;
}

@media (max-width: 1100px) {
  .notice-list {
    grid-template-columns: 1fr;
  }
  .notice-item:last-child {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .notice-item {
    padding: 20px;
  }
  .notice-item ul,
  .notice-item ol {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}


/* v34 — yellow rose block without the duplicate large-side rose icon */
.rose-stat-block {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
}
.rose-stat-icon {
  display: none !important;
}
.promo-rose-bottom .rose-number {
  justify-self: start;
}


/* v35 — two-row sticky navigation: utility links on top, section links directly underneath */
.command-subnav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  padding: 1px 0 0;
  background: transparent;
  border-top: 1px solid #363636;
}
.command-subnav .command-button {
  min-height: 98px;
  padding: 16px 14px;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  background: #0d0d0d;
  border: 1px solid #363636;
  animation: none;
  opacity: 1;
  transform: none;
}
.command-subnav .command-button:hover,
.command-subnav .command-button:focus-visible {
  background: #151515;
  border-color: #727272;
}
.command-subnav .command-icon {
  width: 42px;
  height: 42px;
}
.command-subnav .command-icon svg {
  width: 36px;
  height: 36px;
}
.command-subnav .command-button strong {
  font-size: 14px;
  line-height: 1.1;
}
.command-subnav .command-button small {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.25;
}
body#top { scroll-padding-top: 196px; }

/* v35 — notice board cards conserve space and list items flow vertically in columns */
.notice-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.notice-item:last-child {
  grid-column: auto;
}
.notice-item ul,
.notice-item ol {
  display: block;
  columns: 2;
  column-gap: 34px;
  padding-left: 20px;
}
.notice-item li {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 10px;
}

@media (max-width: 1100px) {
  .command-subnav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  body#top { scroll-padding-top: 224px; }
}

@media (max-width: 760px) {
  .command-subnav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 14px 0 18px;
    border-top: 1px solid #363636;
  }
  .command-subnav .command-button {
    min-height: 92px;
    padding: 13px 11px;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
  }
  .command-subnav .command-icon {
    width: 38px;
    height: 38px;
  }
  .command-subnav .command-icon svg {
    width: 32px;
    height: 32px;
  }
  .command-subnav .command-button strong {
    font-size: 13px;
  }
  .command-subnav .command-button small {
    font-size: 10px;
  }
  .notice-item ul,
  .notice-item ol {
    columns: 1;
  }
  body#top { scroll-padding-top: 272px; }
}


/* v37 — Apocalypse Time calculator + unified green clock styling */
:root {
  --clock-fill: #7bd35f;
  --clock-outline: #0f7d57;
  --clock-card: #173626;
  --clock-card-ink: #dff5d8;
}

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

#apocalypse-clock,
#device-clock,
#turret-countdown,
#turret-arrive-at,
#turret-arrive-local,
#at-local-result {
  color: var(--clock-fill) !important;
  text-shadow:
    -2px 0 0 var(--clock-outline),
    2px 0 0 var(--clock-outline),
    0 -2px 0 var(--clock-outline),
    0 2px 0 var(--clock-outline),
    -2px -2px 0 var(--clock-outline),
    2px -2px 0 var(--clock-outline),
    -2px 2px 0 var(--clock-outline),
    2px 2px 0 var(--clock-outline);
}

#turret-arrive-at,
#turret-arrive-local,
#at-local-result {
  letter-spacing: -.045em;
}

.calculator-block {
  align-content: start;
}

.at-calculator {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px 18px;
  align-items: center;
  margin-top: 8px;
}

.at-calculator-entry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

#at-hour-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-width: 94px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid var(--clock-fill);
  background: var(--clock-card);
  color: var(--clock-fill);
  font-family: "Courier New", monospace;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1;
  font-weight: 700;
  text-align: center;
  text-shadow:
    -1px 0 0 var(--clock-outline),
    1px 0 0 var(--clock-outline),
    0 -1px 0 var(--clock-outline),
    0 1px 0 var(--clock-outline);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

#at-hour-select:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.at-minute-fixed {
  font-family: "Courier New", monospace;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1;
  font-weight: 700;
  color: var(--clock-fill);
  text-shadow:
    -2px 0 0 var(--clock-outline),
    2px 0 0 var(--clock-outline),
    0 -2px 0 var(--clock-outline),
    0 2px 0 var(--clock-outline),
    -1px -1px 0 var(--clock-outline),
    1px -1px 0 var(--clock-outline),
    -1px 1px 0 var(--clock-outline),
    1px 1px 0 var(--clock-outline);
}

.at-calculator-output {
  min-width: 0;
}

.at-calculator-output strong {
  display: block;
  font-family: "Courier New", monospace;
  font-size: clamp(25px, 3.1vw, 42px);
  line-height: 1;
  margin: 0;
}

.at-calculator-output small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.35;
}

.duel-tab[data-at-day="5"] {
  background: var(--clock-card) !important;
  border-color: var(--clock-fill) !important;
}

.duel-tab[data-at-day="5"] small {
  color: var(--clock-fill) !important;
}

.duel-tab[data-at-day="5"] strong {
  color: #ffffff !important;
}

.duel-tab[data-at-day="5"] p {
  color: var(--clock-card-ink) !important;
}

.duel-tab[data-at-day="5"]:hover {
  border-color: var(--clock-fill) !important;
  box-shadow: 0 0 0 1px var(--clock-fill) inset;
}

.duel-tab.is-current[data-at-day="5"] {
  background: var(--clock-card) !important;
  color: #ffffff !important;
  border-color: var(--clock-fill) !important;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, .42),
    0 0 0 1px var(--clock-fill) inset !important;
}

.duel-tab.is-current[data-at-day="5"] small {
  color: var(--clock-fill) !important;
}

.duel-tab.is-current[data-at-day="5"] strong {
  color: #ffffff !important;
}

.duel-tab.is-current[data-at-day="5"] p,
.duel-tab.is-current[data-at-day="5"] span {
  color: var(--clock-card-ink) !important;
}

@media (max-width: 920px) {
  .at-calculator {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 760px) {
  .at-calculator-entry {
    gap: 6px;
  }

  #at-hour-select {
    min-width: 82px;
    font-size: 28px;
  }

  .at-minute-fixed {
    font-size: 30px;
  }

  .at-calculator-output strong {
    font-size: 28px;
  }
}


/* v38 — compact promo hub, five-link second nav row, corrected anchors, tighter clocks */
section[id] { scroll-margin-top: 238px; }
.command-subnav { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
.clock-label { color: #ffffff !important; }

.timebar-grid {
  grid-template-columns: .92fr 1px .92fr 1px 1.16fr !important;
  gap: 20px !important;
  min-height: 132px !important;
}
.time-block strong { font-size: clamp(32px, 3.8vw, 54px) !important; }
.calculator-block { min-width: 0; }
.calculator-hint {
  display: block;
  margin: 2px 0 4px;
  color: #c8c8c2 !important;
  font-size: 11px !important;
  line-height: 1.2;
}
.at-calculator {
  grid-template-columns: auto minmax(150px, 1fr) !important;
  gap: 10px 14px !important;
  margin-top: 3px !important;
}
#at-hour-select {
  min-width: 78px !important;
  padding: 7px 10px !important;
  border-radius: 10px !important;
  font-size: clamp(22px, 2vw, 30px) !important;
}
.at-minute-fixed { font-size: clamp(23px, 2.1vw, 31px) !important; }
.at-calculator-output strong {
  font-size: clamp(24px, 2.55vw, 35px) !important;
  white-space: nowrap;
}
.at-calculator-output small { margin-top: 5px !important; font-size: 11px !important; }

.promo-compact-section {
  padding: 36px 0 !important;
  background: #121412 !important;
}
.promo-compact-grid {
  display: grid;
  grid-template-columns: 1.08fr 1.25fr .82fr 1.05fr;
  gap: 18px;
  align-items: stretch;
}
.promo-compact-intro,
.promo-code-group,
.promo-rose-card {
  min-width: 0;
  border: 1px solid #343a35;
  background: rgba(5, 7, 5, .72);
  padding: 18px;
}
.promo-compact-intro .eyebrow,
.promo-group-head small,
.promo-rose-card .eyebrow { margin-bottom: 5px; }
.promo-title-row { gap: 10px !important; }
.promo-title-row .category-heading-icon { width: 42px !important; height: 42px !important; }
.promo-title-row .category-heading-icon svg { width: 38px !important; height: 38px !important; }
.promo-compact-intro .category-lead {
  font-size: clamp(28px, 2.5vw, 40px) !important;
  line-height: .95;
}
.promo-compact-intro p {
  margin: 10px 0 0;
  color: #b9bdb8;
  font-size: 14px;
  line-height: 1.42;
}
.promo-compact-intro .text-link {
  min-height: 38px;
  margin-top: 8px !important;
  padding: 7px 0;
  font-size: 11px;
}
.promo-group-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 8px;
}
.promo-group-head strong {
  font-size: 13px;
  letter-spacing: .1em;
  color: #f4f4ef;
}
.promo-group-head small { color: #8f948f; font-size: 10px; text-align: right; }
.compact-code-list { display: grid; gap: 5px; }
.welcome-code-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.compact-code-row {
  min-width: 0;
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  padding: 4px 5px 4px 8px;
  border: 1px solid #303530;
  background: #0c0f0c;
}
.compact-code-row code {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
}
.compact-code-row .copy-button {
  min-width: 54px;
  min-height: 30px;
  padding: 4px 7px;
  font-size: 9px;
}
.active-code-group { border-color: rgba(87, 214, 141, .45); }
.active-code-group .promo-group-head strong { color: #57d68d; }
.compact-code-empty { padding: 10px 0; color: #9ba09b; font-size: 12px; }
.promo-rose-card {
  display: grid;
  align-content: start;
  gap: 7px;
  border-color: rgba(248, 216, 61, .36);
}
.promo-rose-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
}
.promo-rose-head .rose-icon-image { width: 36px; height: 36px; object-fit: contain; }
.promo-rose-head > div > strong {
  display: block;
  color: #f8d83d;
  font-size: 15px;
  line-height: 1.1;
}
.promo-rose-number { color: #f8d83d; font-size: 34px; font-weight: 900; line-height: 1; }
.promo-rose-buff,
.promo-rose-guidance,
.promo-rose-card .rose-week {
  margin: 0 !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
}
.promo-rose-buff { color: #f8d83d; }
.promo-rose-guidance { color: #a9ada8; }
.utility-section-link { cursor: pointer; }

@media (max-width: 1180px) {
  .promo-compact-grid { grid-template-columns: 1fr 1fr; }
  .timebar-grid {
    grid-template-columns: 1fr 1px 1fr !important;
    gap: 18px !important;
  }
  .timebar-grid .time-divider:nth-of-type(2) { display: none; }
  .calculator-block {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    padding-top: 12px;
  }
  .at-calculator { grid-template-columns: auto 1fr !important; }
  section[id] { scroll-margin-top: 330px; }
}
@media (max-width: 760px) {
  .promo-compact-section { padding: 24px 0 !important; }
  .promo-compact-grid { grid-template-columns: 1fr; gap: 10px; }
  .welcome-code-list { grid-template-columns: 1fr; }
  .command-subnav { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .command-subnav .command-button:last-child { grid-column: 1 / -1; }
  .timebar-grid { grid-template-columns: 1fr !important; gap: 0 !important; }
  .timebar-grid .time-divider { display: none !important; }
  .calculator-block { grid-column: auto; }
  .at-calculator { grid-template-columns: 1fr !important; }
  section[id] { scroll-margin-top: 390px; }
}

/* v39 — promo & calculator alignment refinements */
.at-calculator {
  grid-template-columns: auto auto !important;
  justify-content: start;
  align-items: center;
}

.at-calculator-output {
  display: flex;
  align-items: center;
  min-height: 100%;
}

.at-calculator-output small {
  display: none !important;
}

.promo-compact-grid {
  grid-template-columns: 1.05fr 1fr 1.15fr 1.05fr;
}

.promo-compact-section,
.promo-compact-section .eyebrow,
.promo-compact-section .category-lead,
.promo-compact-section p,
.promo-compact-section strong,
.promo-compact-section small,
.promo-compact-section a,
.promo-compact-section button,
.promo-compact-section code {
  font-family: Arial, Helvetica, sans-serif;
}

.promo-compact-intro,
.promo-code-group,
.promo-rose-card {
  padding: 20px;
}

.promo-compact-intro .eyebrow,
.promo-rose-card .eyebrow {
  font-size: 14px;
  letter-spacing: .16em;
}

.promo-compact-intro .category-lead {
  font-size: clamp(32px, 2.8vw, 44px) !important;
}

.promo-compact-intro p {
  font-size: 16px;
  line-height: 1.45;
}

.promo-compact-intro .text-link {
  font-size: 13px;
}

.promo-group-head {
  margin-bottom: 10px;
}

.promo-group-head strong {
  font-size: 18px;
  letter-spacing: .08em;
}

.promo-group-head small {
  font-size: 12px;
}

.compact-code-list {
  gap: 8px;
}

.compact-code-row {
  min-height: 46px;
  padding: 6px 6px 6px 10px;
}

.compact-code-row code {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
}

.compact-code-row .copy-button {
  min-width: 58px;
  font-size: 10px;
}

.promo-rose-head > div > strong {
  font-size: 18px;
}

.promo-rose-number {
  font-size: 38px;
}

.promo-rose-buff,
.promo-rose-guidance,
.promo-rose-card .rose-week {
  font-size: 13px !important;
  line-height: 1.45 !important;
}

@media (max-width: 1180px) {
  .promo-compact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .at-calculator {
    grid-template-columns: 1fr !important;
  }
}


/* v40 promo/calc refinements */
.calculator-hint {
  display: block;
  margin-bottom: 8px;
}

.promo-compact-grid {
  grid-template-columns: 1.05fr 0.95fr 1.18fr 1.02fr;
  align-items: stretch;
}

.promo-compact-intro,
.promo-code-group,
.promo-rose-card {
  height: 100%;
}

.promo-compact-intro .text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  overflow-wrap: normal;
  word-break: normal;
}

.welcome-code-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-code-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.compact-code-row code {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  text-overflow: clip;
}

.welcome-code-group .compact-code-row {
  min-height: 54px;
  padding: 8px 8px 8px 14px;
}

.welcome-code-group .compact-code-row code {
  font-size: 16px;
  letter-spacing: .03em;
}

.active-code-group .compact-code-row code {
  font-size: 16px;
}

.promo-rose-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.promo-rose-showcase {
  margin-top: 4px;
  min-height: 160px;
  border-top: 1px solid rgba(248, 216, 61, .2);
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.promo-rose-showcase[hidden] {
  display: none !important;
}

.promo-rose-showcase-icon {
  width: 78px;
  height: 78px;
  object-fit: contain;
  flex: 0 0 auto;
}

.promo-rose-showcase-number {
  color: #f8d83d;
  font-size: clamp(88px, 8vw, 132px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.06em;
}

.promo-rose-guidance strong {
  color: #f8d83d;
}

@media (max-width: 1180px) {
  .promo-compact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .welcome-code-list {
    grid-template-columns: 1fr;
  }

  .promo-rose-showcase {
    min-height: 120px;
  }

  .promo-rose-showcase-icon {
    width: 58px;
    height: 58px;
  }
}


/* v41 — promo card fixes, rose cleanup, calculator divider, green harmonization */
.section-2 { --category-color: var(--clock-fill) !important; }
.icon-code,
.icon-code svg,
.utility-icon.icon-code,
.utility-icon.icon-code svg,
.active-code-group .promo-group-head strong,
.promo-compact-intro .category-heading-icon.icon-code,
.promo-compact-intro .category-heading-icon.icon-code svg {
  color: var(--clock-fill) !important;
}
.active-code-group { border-color: rgba(123, 211, 95, .42) !important; }

/* calculator alignment and smaller divider */
.at-calculator {
  grid-template-columns: auto auto !important;
  align-items: center !important;
  gap: 0 18px !important;
}
.at-calculator-entry {
  position: relative;
  padding-right: 18px;
  margin-right: 2px;
}
.at-calculator-entry::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 56px;
  background: rgba(150, 154, 160, .55);
}
.at-calculator-output {
  justify-content: flex-start;
  padding-left: 4px;
}

/* welcome codes: button below code */
.welcome-code-list {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}
.welcome-code-group .compact-code-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  min-height: 92px !important;
  padding: 14px 14px 12px !important;
}
.welcome-code-group .compact-code-row code {
  display: block;
  width: 100%;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.welcome-code-group .compact-code-row .copy-button {
  align-self: flex-start;
  min-width: 88px !important;
  width: 88px;
  min-height: 32px !important;
}

/* yellow roses header simplified; lower showcase kept */
.promo-rose-head {
  display: block !important;
}
.promo-rose-head .rose-icon-image,
.promo-rose-number {
  display: none !important;
}
.promo-rose-head > div > strong {
  display: block;
  margin-top: 4px;
}

/* make green accents match clock greens */
.promo-code-group,
.promo-compact-intro .icon-code,
.promo-compact-intro .icon-code svg,
.promo-code-group.active-code-group .copy-button,
.promo-code-group .copy-button:hover,
.promo-code-group .copy-button:focus-visible,
.text-link span {
  accent-color: var(--clock-fill);
}
.promo-title-row .icon-code svg,
.utility-icon.icon-code svg,
.icon-code svg {
  fill: currentColor;
}
.promo-compact-intro .text-link,
.active-code-group .promo-group-head strong,
.promo-compact-intro .category-lead {
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

@media (max-width: 980px) {
  .welcome-code-list {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 760px) {
  .at-calculator {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .at-calculator-entry {
    padding-right: 0;
    margin-right: 0;
  }
  .at-calculator-entry::after {
    display: none;
  }
}


/* v42 — rebuilt from the complete v41 baseline. Promo card order only. */
.promo-compact-grid {
  grid-template-columns: 1.05fr .95fr 1.05fr 1.05fr !important;
  align-items: stretch;
}
.promo-image-card {
  position: relative;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: #050505;
}
.promo-image-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
@media (max-width: 1180px) {
  .promo-compact-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .promo-image-card { min-height: 520px; }
}
@media (max-width: 760px) {
  .promo-compact-grid { grid-template-columns: 1fr !important; }
  .promo-image-card { min-height: 520px; }
}


/* v43 — active codes background image with dark CSS overlay, and renamed blank-girls asset */

.active-code-group {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.active-code-group::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../imgs/cod-girls.20260901v44.webp") center center / cover no-repeat;
  opacity: 0.52;
  z-index: -2;
}
.active-code-group::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 8, 5, 0.12) 0%, rgba(3, 8, 5, 0.32) 42%, rgba(2, 6, 4, 0.58) 100%),
    rgba(5, 9, 6, 0.36);
  z-index: -1;
}
.active-code-group > * {
  position: relative;
  z-index: 1;
}
.active-code-group .compact-code-row {
  background: rgba(5, 9, 6, 0.82);
  border-color: rgba(123, 211, 95, 0.28);
}
.active-code-group .promo-group-head small,
.active-code-group code {
  color: #f4f4ef;
}


/* v44 — supplied blank-girls artwork on the far-right promo card */
.blank-girls-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 43%;
}


/* v45 — centered rose header copy and desktop-matched blank-girls crop */
.promo-rose-head > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.promo-rose-card .eyebrow,
.promo-rose-head > div > strong,
.promo-rose-buff,
.promo-rose-card .rose-week {
  text-align: center;
}
.promo-rose-buff {
  justify-self: center;
}
.blank-girls-card img {
  object-position: 50% 44%;
  image-rendering: auto;
}


/* v46 — secondary nav gets the same left-to-right white sweep as the utility nav */
.command-subnav .command-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.command-subnav .command-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 440ms cubic-bezier(.22,.8,.24,1);
}
.command-subnav .command-button:hover::before,
.command-subnav .command-button:focus-visible::before,
.command-subnav .command-button.is-pressed::before {
  transform: scaleX(1);
}
.command-subnav .command-icon,
.command-subnav .command-button > span:last-child {
  position: relative;
  z-index: 2;
}
.command-subnav .command-button > span:last-child {
  color: #fff;
  mix-blend-mode: difference;
}
.command-subnav .command-button > span:last-child small {
  color: #d6d6d6;
}

/* v46 — show the selected Apocalypse Time explicitly as AT */
.at-calculator-entry {
  column-gap: 7px;
}
.at-suffix {
  display: inline-block;
  font-family: "Courier New", monospace;
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1;
  font-weight: 800;
  color: var(--clock-fill);
  text-shadow:
    -2px 0 0 var(--clock-outline),
    2px 0 0 var(--clock-outline),
    0 -2px 0 var(--clock-outline),
    0 2px 0 var(--clock-outline),
    -1px -1px 0 var(--clock-outline),
    1px -1px 0 var(--clock-outline),
    -1px 1px 0 var(--clock-outline),
    1px 1px 0 var(--clock-outline);
  white-space: nowrap;
}

@media (hover: none), (pointer: coarse) {
  .command-subnav .command-button:hover::before {
    transform: scaleX(0);
  }
  .command-subnav .command-button:active::before,
  .command-subnav .command-button.is-pressed::before {
    transform: scaleX(1);
  }
}

@media (max-width: 760px) {
  .at-suffix {
    font-size: 22px;
  }
}

/* v47 — tighter centered clocks + 12-hour/24-hour calculator output */
.timebar-grid {
  grid-template-columns: .88fr 1px .88fr 1px 1.12fr !important;
  gap: 16px !important;
}

.time-block {
  min-width: 0;
}

.calculator-block {
  justify-self: stretch;
}

.at-calculator {
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 0 12px !important;
  justify-content: center !important;
  align-items: center !important;
}

.at-calculator-entry {
  padding-right: 12px !important;
  margin-right: 0 !important;
}

.at-calculator-entry::after {
  height: 50px !important;
}

.at-calculator-output {
  display: grid !important;
  grid-template-columns: auto 1px auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-left: 0 !important;
}

.at-output-divider {
  display: block;
  width: 1px;
  height: 50px;
  background: rgba(150,154,160,.55);
}

#at-local-result,
#at-local-result-24 {
  display: block;
  white-space: nowrap;
  font-size: clamp(22px, 2.15vw, 31px) !important;
  letter-spacing: -.045em;
}

@media (max-width: 1180px) {
  .timebar-grid {
    grid-template-columns: 1fr 1px 1fr !important;
    gap: 16px !important;
  }
  .calculator-block {
    grid-column: 1 / -1;
    max-width: 720px;
    width: 100%;
    justify-self: center;
    border-top: 1px solid var(--line);
    padding-top: 12px;
  }
}

@media (max-width: 760px) {
  .at-calculator-output {
    grid-template-columns: auto 1px auto !important;
    gap: 8px;
  }
  .at-output-divider {
    height: 42px;
  }
  #at-local-result,
  #at-local-result-24 {
    font-size: 24px !important;
  }
}

/* v48 — 24-hour calculator result matches the AM/PM result exactly */
#at-local-result-24 {
  color: var(--clock-fill) !important;
  text-shadow:
    -2px 0 0 var(--clock-outline),
    2px 0 0 var(--clock-outline),
    0 -2px 0 var(--clock-outline),
    0 2px 0 var(--clock-outline),
    -2px -2px 0 var(--clock-outline),
    2px -2px 0 var(--clock-outline),
    -2px 2px 0 var(--clock-outline),
    2px 2px 0 var(--clock-outline);
  letter-spacing: -.045em;
}

/* v49 — identical centered calculator divider bars */
.at-calculator-entry::after,
.at-output-divider {
  width: 1px !important;
  height: 50px !important;
  background: rgba(150, 154, 160, .55) !important;
}

.at-calculator-output {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
}

.at-output-divider {
  flex: 0 0 1px;
  align-self: center;
  margin: 0 !important;
}

@media (max-width: 760px) {
  .at-calculator-entry::after,
  .at-output-divider {
    height: 42px !important;
  }

  .at-calculator-output {
    gap: 10px !important;
  }
}


/* v50 — align Apocalypse Time Calculator with the top/title line of the other clock blocks */
.timebar-grid {
  align-items: start !important;
}

.time-block,
.calculator-block {
  align-content: start !important;
  align-self: start !important;
}

.time-block {
  padding-top: 0 !important;
}

.calculator-block .clock-label,
.calculator-block .calculator-hint {
  margin-top: 0 !important;
}

.at-calculator {
  margin-top: 8px !important;
}


/* v51 — vertically center the clock cells while keeping all clock titles aligned */
@media (min-width: 1181px) {
  .timebar-grid {
    min-height: 154px !important;
    align-items: stretch !important;
  }

  .time-block,
  .calculator-block {
    align-self: stretch !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Same total content height in every clock cell = matching top/bottom breathing room. */
  .time-block:not(.calculator-block) {
    display: grid !important;
    grid-template-rows: 18px 62px 20px !important;
    row-gap: 6px !important;
    align-content: center !important;
  }

  .calculator-block {
    display: grid !important;
    grid-template-rows: 18px 20px 62px !important;
    row-gap: 6px !important;
    align-content: center !important;
  }

  .time-block .clock-label,
  .calculator-block .clock-label {
    margin: 0 !important;
    align-self: center !important;
  }

  .time-block:not(.calculator-block) > strong {
    margin: 0 !important;
    align-self: center !important;
  }

  .time-block:not(.calculator-block) > small {
    margin: 0 !important;
    align-self: start !important;
  }

  .calculator-block .calculator-hint {
    margin: 0 !important;
    align-self: center !important;
  }

  .calculator-block .at-calculator {
    margin: 0 !important;
    align-self: center !important;
  }
}


/* v52 — darkened banner image behind utility navigation and logo */
.utility-nav-wrap {
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(5, 6, 6, 0.74) 0%, rgba(5, 6, 6, 0.84) 54%, rgba(5, 6, 6, 0.90) 100%),
    url('../imgs/nav-bg.20260901v53.webp') center 34% / cover no-repeat !important;
  background-color: #050505 !important;
}

.utility-nav,
.command-subnav {
  position: relative;
  z-index: 1;
}

.utility-brand {
  background: rgba(7, 8, 8, 0.64) !important;
}

.utility-link {
  background: rgba(9, 10, 10, 0.60) !important;
}

.command-subnav {
  background: rgba(7, 8, 8, 0.28) !important;
}

.command-subnav .command-button {
  background: rgba(9, 10, 10, 0.64) !important;
}

.command-subnav .command-button:hover,
.command-subnav .command-button:focus-visible {
  background: rgba(16, 16, 16, 0.72) !important;
}

@media (max-width: 980px) {
  .utility-nav-wrap {
    background-position: center 40% !important;
  }
}


/* v53 — slightly lighter navigation background */
.utility-nav-wrap {
  background:
    linear-gradient(
      180deg,
      rgba(5, 6, 6, 0.38) 0%,
      rgba(5, 6, 6, 0.48) 54%,
      rgba(5, 6, 6, 0.58) 100%
    ),
    url('../imgs/nav-bg.20260901v53.webp') center 34% / cover no-repeat !important;
}

.utility-brand {
  background: rgba(7, 8, 8, 0.34) !important;
}

.utility-link {
  background: rgba(9, 10, 10, 0.30) !important;
}

.command-subnav {
  background: rgba(7, 8, 8, 0.12) !important;
}

.command-subnav .command-button {
  background: rgba(9, 10, 10, 0.34) !important;
}


/* v54 — slightly darker than v53 */
.utility-nav-wrap {
  background:
    linear-gradient(
      180deg,
      rgba(5, 6, 6, 0.41) 0%,
      rgba(5, 6, 6, 0.51) 54%,
      rgba(5, 6, 6, 0.61) 100%
    ),
    url('../imgs/nav-bg.20260901v53.webp') center 34% / cover no-repeat !important;
}

.utility-brand {
  background: rgba(7, 8, 8, 0.36) !important;
}

.utility-link {
  background: rgba(9, 10, 10, 0.33) !important;
}

.command-subnav {
  background: rgba(7, 8, 8, 0.13) !important;
}

.command-subnav .command-button {
  background: rgba(9, 10, 10, 0.36) !important;
}


/* v55 — darker navigation background */
.utility-nav-wrap {
  background:
    linear-gradient(
      180deg,
      rgba(5, 6, 6, 0.46) 0%,
      rgba(5, 6, 6, 0.56) 54%,
      rgba(5, 6, 6, 0.66) 100%
    ),
    url('../imgs/nav-bg.20260901v53.webp') center 34% / cover no-repeat !important;
}

.utility-brand {
  background: rgba(7, 8, 8, 0.40) !important;
}

.utility-link {
  background: rgba(9, 10, 10, 0.37) !important;
}

.command-subnav {
  background: rgba(7, 8, 8, 0.16) !important;
}

.command-subnav .command-button {
  background: rgba(9, 10, 10, 0.40) !important;
}


/* v53 — darker navigation background */
.utility-nav-wrap {
  background:
    linear-gradient(
      180deg,
      rgba(5, 6, 6, 0.50) 0%,
      rgba(5, 6, 6, 0.60) 54%,
      rgba(5, 6, 6, 0.70) 100%
    ),
    url('../imgs/nav-bg.20260901v53.webp') center 34% / cover no-repeat !important;
}

.utility-brand {
  background: rgba(7, 8, 8, 0.44) !important;
}

.utility-link {
  background: rgba(9, 10, 10, 0.41) !important;
}

.command-subnav {
  background: rgba(7, 8, 8, 0.18) !important;
}

.command-subnav .command-button {
  background: rgba(9, 10, 10, 0.44) !important;
}


/* v54 — rebuilt from v53; keep nav background and center only the two main clock divider lines */
@media (min-width: 1181px) {
  .timebar-grid {
    grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr) 56px minmax(0, 1.2fr) !important;
    column-gap: 0 !important;
    row-gap: 0 !important;
    align-items: center !important;
  }

  .timebar-grid > .time-divider {
    justify-self: center !important;
    align-self: center !important;
    width: 1px !important;
    height: 108px !important;
    margin: 0 !important;
    background: var(--line) !important;
  }
}


/* v55 - Lucky Rose details are populated from rose_count in numbers.txt */
.promo-rose-duration {
  margin: 0 !important;
  text-align: center;
  color: #8f948f;
  font-size: 10px !important;
  line-height: 1.35 !important;
  font-weight: 800;
  letter-spacing: .12em;
}

.promo-rose-duration strong {
  color: #bfc3bd;
  font-weight: 800;
}

#rose-title {
  color: #f8d83d !important;
}

#rose-buff {
  color: #f8d83d !important;
}


/* v56 - Section 07: The Good - The Bad - The Ugly video feature */
.betrayal-section {
  background: #080808;
}

.betrayal-grid {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: 64px;
  align-items: center;
}

.betrayal-copy {
  min-width: 0;
}

.betrayal-copy .section-index {
  margin-bottom: 18px;
}

.betrayal-copy h2 {
  margin: 0;
  max-width: 500px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: .96;
  letter-spacing: -.055em;
}

.betrayal-emoji {
  display: block;
  width: min(100%, 430px);
  height: auto;
  object-fit: contain;
}

.betrayal-video-frame {
  min-width: 0;
  padding: 8px;
  border: 1px solid #3a3a3a;
  background: #050505;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .34);
}

.betrayal-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2926 / 1648;
  object-fit: contain;
  background: #000;
}

@media (max-width: 900px) {
  .betrayal-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .betrayal-copy h2 {
    max-width: none;
  }
}


/* v60 - original browser-only text cleaner */
.text-cleaner-section {
  background: #0d0f10;
  border-top: 1px solid #262a2d;
}

.cleaner-heading {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 34px;
}

.cleaner-heading .section-index {
  padding-top: 5px;
}

.cleaner-heading .eyebrow {
  margin-bottom: 7px;
}

.cleaner-heading h2 {
  margin: 0;
  font-size: clamp(38px, 4.5vw, 64px);
  line-height: .96;
  letter-spacing: -.05em;
}

.cleaner-heading p {
  max-width: 760px;
  margin: 14px 0 0;
  color: #a9ada9;
  font-size: 16px;
  line-height: 1.5;
}

.cleaner-workspace {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cleaner-editor {
  min-width: 0;
  border: 1px solid #34393c;
  background: #090b0c;
}

.cleaner-editor-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px;
  border-bottom: 1px solid #2b3033;
}

.cleaner-editor-head label {
  color: #f5f5f2;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
}

.cleaner-small-button {
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #4a5054;
  background: transparent;
  color: #d7d9d7;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
}

.cleaner-small-button:hover,
.cleaner-small-button:focus-visible {
  background: #fff;
  color: #000;
}

.cleaner-textarea {
  display: block;
  width: 100%;
  min-height: 290px;
  resize: vertical;
  border: 0;
  outline: 0;
  padding: 18px;
  background: transparent;
  color: #f3f3ef;
  font: 15px/1.55 Arial, Helvetica, sans-serif;
  caret-color: #fff;
}

.cleaner-textarea::placeholder {
  color: #686d6a;
}

.cleaner-textarea[readonly] {
  background: rgba(255,255,255,.018);
}

.cleaner-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #2c3134;
}

.cleaner-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px 18px;
}

.cleaner-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: #c7cac7;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.25;
}

.cleaner-option input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: var(--clock-fill);
}

.cleaner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cleaner-status {
  min-width: 76px;
  color: #8d938f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-align: right;
}

.cleaner-status.is-ready {
  color: var(--clock-fill);
}

.cleaner-primary-button {
  min-width: 150px;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid var(--clock-fill);
  background: var(--clock-card);
  color: var(--clock-fill);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.cleaner-primary-button:hover,
.cleaner-primary-button:focus-visible {
  background: var(--clock-fill);
  color: #071006;
}

@media (max-width: 900px) {
  .cleaner-heading {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .cleaner-workspace {
    grid-template-columns: 1fr;
  }

  .cleaner-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cleaner-controls {
    grid-template-columns: 1fr;
  }

  .cleaner-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 560px) {
  .cleaner-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cleaner-options {
    grid-template-columns: 1fr;
  }

  .cleaner-textarea {
    min-height: 230px;
  }

  .cleaner-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cleaner-status {
    min-width: 0;
    text-align: left;
  }

  .cleaner-primary-button {
    width: 100%;
  }
}


/* v62 - Game Notes slider and fixed lower-section media */
.command-subnav {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.section-game-notes {
  background: #0b0d0c;
  border-top: 1px solid #2c3130;
}

.notes-heading {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 30px;
}

.notes-heading h2 {
  margin: 0;
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: .96;
  letter-spacing: -.05em;
}

.notes-heading p {
  max-width: 780px;
  margin: 12px 0 0;
  color: #a8ada9;
  font-size: 16px;
}

.notes-tabbar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 12px;
  scrollbar-width: thin;
}

.notes-tab {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #3a4140;
  background: #0d100f;
  color: #b8beb9;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
}

.notes-tab:hover,
.notes-tab:focus-visible {
  border-color: #737d78;
  color: #fff;
}

.notes-tab.is-active {
  border-color: var(--clock-fill);
  background: var(--clock-card);
  color: var(--clock-fill);
}

.notes-slider-shell {
  position: relative;
}

.notes-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  padding: 2px 2px 14px;
}

.game-note-card {
  flex: 0 0 calc((100% - 32px) / 3);
  min-width: 0;
  scroll-snap-align: start;
  border: 1px solid #343a38;
  background: #0d100f;
  display: flex;
  flex-direction: column;
}

.game-note-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #070909;
  border-bottom: 1px solid #343a38;
}

.game-note-body {
  padding: 20px;
}

.game-note-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--clock-fill);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
}

.game-note-card h3 {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.08;
}

.game-note-card ul,
.game-note-card ol {
  margin: 0;
  padding-left: 20px;
  color: #c4c8c5;
  font-size: 14px;
  line-height: 1.48;
}

.game-note-card li {
  margin-bottom: 10px;
}

.game-note-text-only {
  min-height: 100%;
  background:
    linear-gradient(135deg, rgba(123,211,95,.05), transparent 46%),
    #0d100f;
}

.game-note-text-only .game-note-body {
  padding-top: 34px;
}

.nap-list {
  columns: 2;
  column-gap: 28px;
}

.notes-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 38px;
  height: 66px;
  transform: translateY(-50%);
  border: 1px solid #4b5250;
  background: rgba(5, 7, 6, .92);
  color: #fff;
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

.notes-arrow:hover,
.notes-arrow:focus-visible {
  border-color: var(--clock-fill);
  color: var(--clock-fill);
}

.notes-arrow-prev { left: -18px; }
.notes-arrow-next { right: -18px; }

.betrayal-emoji {
  display: block !important;
  width: min(100%, 430px) !important;
  height: auto !important;
  object-fit: contain !important;
}

@media (max-width: 1180px) {
  .command-subnav {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .game-note-card {
    flex-basis: calc((100% - 16px) / 2);
  }
}

@media (max-width: 760px) {
  .command-subnav {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .notes-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .game-note-card {
    flex-basis: 100%;
  }

  .notes-arrow {
    display: none;
  }

  .nap-list {
    columns: 1;
  }
}


/* v63 - move Game Notes into section 03 and remove duplicate section */
.command-subnav { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
.section-notice-consolidated { background: #0b0d0c; border-top: 1px solid #2c3130; }
.section-notice-consolidated .notes-heading { margin-bottom: 30px; }
.section-notice-consolidated .notes-heading h2 { max-width: 1120px; }
@media (max-width: 1180px) {
  .command-subnav { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 760px) {
  .command-subnav { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .command-subnav .command-button:last-child { grid-column: auto !important; }
}


/* v64 - requested policy order, heading icons, and abstract pattern on every content section */

/* The same subtle abstract pattern now sits above every section background.
   The clock/timebar is not a .section, so it remains completely untouched. */
.section {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden;
}

.section::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  z-index: 0 !important;
  background-image:
    linear-gradient(135deg, transparent 0 44%, rgba(255,255,255,.028) 44% 45%, transparent 45% 100%),
    linear-gradient(45deg, transparent 0 46%, rgba(255,255,255,.022) 46% 47%, transparent 47% 100%),
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.035) 0 1px, transparent 1.5px),
    radial-gradient(circle at 76% 64%, rgba(255,255,255,.026) 0 1px, transparent 1.5px) !important;
  background-size: 180px 180px, 240px 240px, 34px 34px, 52px 52px !important;
  opacity: .72 !important;
}

.section > * {
  position: relative;
  z-index: 1;
}

/* Section 03 note icon restored to the left of the heading. */
.notes-heading {
  grid-template-columns: 90px 64px minmax(0, 1fr) !important;
  gap: 24px !important;
  align-items: start !important;
}

.notes-heading-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #63c5da;
  margin-top: 2px;
}

.notes-heading-icon svg {
  width: 54px;
  height: 54px;
  fill: currentColor;
}

.notes-heading-copy {
  min-width: 0;
}

/* Custom text input/output converter icon. */
.cleaner-heading {
  grid-template-columns: 90px 68px minmax(0, 1fr) !important;
  gap: 24px !important;
  align-items: start !important;
}

.cleaner-heading-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  color: var(--clock-fill);
}

.cleaner-heading-icon svg {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cleaner-heading-copy {
  min-width: 0;
}

@media (max-width: 900px) {
  .notes-heading,
  .cleaner-heading {
    grid-template-columns: 54px 52px minmax(0, 1fr) !important;
    gap: 16px !important;
  }

  .notes-heading-icon,
  .cleaner-heading-icon {
    width: 48px;
    height: 48px;
  }

  .notes-heading-icon svg,
  .cleaner-heading-icon svg {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 560px) {
  .notes-heading,
  .cleaner-heading {
    grid-template-columns: 44px minmax(0, 1fr) !important;
    gap: 10px 14px !important;
  }

  .notes-heading .section-index,
  .cleaner-heading .section-index {
    grid-column: 1;
  }

  .notes-heading-icon,
  .cleaner-heading-icon {
    grid-column: 1;
    grid-row: 2;
  }

  .notes-heading-copy,
  .cleaner-heading-copy {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}


/* v65 - mobile-only slide-out navigation. Desktop/tablet nav remains unchanged. */
.mobile-nav-bar,
.mobile-nav-overlay,
.mobile-nav-panel {
  display: none;
}

@media (max-width: 760px) {
  .utility-nav,
  .command-subnav {
    display: none !important;
  }

  .utility-nav-wrap {
    min-height: 74px;
  }

  .mobile-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    gap: 16px;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .mobile-nav-brand,
  .mobile-nav-panel-brand {
    display: inline-flex;
    align-items: center;
  }

  .mobile-nav-brand img {
    display: block;
    width: auto;
    height: 50px;
    object-fit: contain;
  }

  .mobile-nav-panel-brand img {
    display: block;
    width: auto;
    height: 58px;
    object-fit: contain;
  }

  .mobile-nav-toggle {
    appearance: none;
    min-height: 48px;
    padding: 9px 14px;
    border: 1px solid rgba(255,255,255,.24);
    background: rgba(5,5,5,.72);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .15em;
  }

  .mobile-nav-toggle-icon {
    width: 20px;
    display: inline-grid;
    gap: 4px;
  }

  .mobile-nav-toggle-icon span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
  }

  .mobile-nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(0,0,0,.62);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms ease, visibility 220ms ease;
  }

  .mobile-nav-panel {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: min(86vw, 360px);
    height: 100dvh;
    padding: 18px;
    overflow-y: auto;
    background:
      linear-gradient(rgba(5,6,6,.84), rgba(5,6,6,.94)),
      url('../imgs/nav-bg.20260901v53.webp') center / cover no-repeat;
    border-right: 1px solid rgba(255,255,255,.18);
    box-shadow: 20px 0 50px rgba(0,0,0,.5);
    transform: translateX(-104%);
    transition: transform 260ms cubic-bezier(.2,.8,.2,1);
  }

  .mobile-nav-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 15px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,.14);
  }

  .mobile-nav-close {
    appearance: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(0,0,0,.42);
    color: #fff;
    cursor: pointer;
    font-size: 29px;
    line-height: 1;
  }

  .mobile-nav-section + .mobile-nav-section {
    margin-top: 22px;
  }

  .mobile-nav-label {
    display: block;
    margin-bottom: 9px;
    color: #999f9b;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .18em;
  }

  .mobile-nav-link {
    display: block;
    padding: 12px 13px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(8,9,9,.66);
    color: #fff;
    text-decoration: none;
  }

  .mobile-nav-link + .mobile-nav-link {
    margin-top: 8px;
  }

  .mobile-nav-link strong {
    display: block;
    font-size: 14px;
    line-height: 1.15;
  }

  .mobile-nav-link small {
    display: block;
    margin-top: 4px;
    color: #aaa;
    font-size: 11px;
    line-height: 1.3;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

  body.mobile-menu-open .mobile-nav-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.mobile-menu-open .mobile-nav-panel {
    transform: translateX(0);
  }
}


/* v66 - State Ruler timing, note cleanup, and unified section-header alignment */

/* All major numbered section headers now follow the State Ruler left edge and vertical rhythm. */
.aligned-section-heading {
  display: block !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.aligned-section-heading > .section-index {
  display: block !important;
  margin: 0 0 10px !important;
}

.aligned-section-heading > .eyebrow {
  display: block !important;
  margin: 0 0 10px !important;
}

.aligned-section-heading > .category-heading-row {
  margin: 0 !important;
}

.aligned-section-heading > p,
.aligned-section-heading > .section-intro {
  margin-top: 14px !important;
}

#duel .section-head,
#events .section-head,
#notices .notes-heading,
#state-ruler .capital-heading,
#research .section-copy,
#text-cleaner .cleaner-heading {
  padding-left: 0 !important;
  transform: none !important;
}

#notices {
  --category-color: #63c5da;
}

#text-cleaner {
  --category-color: var(--clock-fill);
}

.notes-heading h2,
.cleaner-heading h2 {
  margin: 0 !important;
  font-size: clamp(38px, 4.4vw, 64px) !important;
  line-height: .96 !important;
  letter-spacing: -.05em !important;
}

.notes-heading > p,
.cleaner-heading > p {
  max-width: 880px;
  color: #a8ada9;
  font-size: 16px;
  line-height: 1.5;
}

.cleaner-heading-icon {
  color: var(--clock-fill) !important;
}

.cleaner-heading-icon svg {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 3 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

/* Notes are now intentionally text-only; remove space/design intended for the discarded screenshot crops. */
.game-note-image {
  display: none !important;
}

#note-trucks,
#note-switch,
#note-shop {
  background:
    linear-gradient(135deg, rgba(123,211,95,.05), transparent 46%),
    #0d100f !important;
}

#note-trucks .game-note-body,
#note-switch .game-note-body,
#note-shop .game-note-body {
  padding-top: 34px !important;
}

@media (max-width: 760px) {
  .aligned-section-heading > .section-index {
    margin-bottom: 8px !important;
  }
  .aligned-section-heading > .eyebrow {
    margin-bottom: 8px !important;
  }
}


/* v67 - blue Notes accents, Text Cleaner nav link, and wider Active Codes card */

/* Desktop section nav now has six items, including Text Cleaner. */
@media (min-width: 1181px) {
  .command-subnav {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}

/* Use the same input/output icon in navigation as the Text Cleaner section. */
.nav-cleaner-icon {
  color: var(--clock-fill);
}

.nav-cleaner-icon svg {
  width: 54px;
  height: 54px;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 3 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

/* Mobile Text Cleaner link uses the same icon. */
.mobile-nav-link-with-icon {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}

.mobile-nav-item-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
}

.mobile-nav-item-icon svg {
  width: 34px !important;
  height: 34px !important;
}

.mobile-nav-item-copy {
  min-width: 0;
}

/* Section 03 uses only the same cyan-blue as its title for accents. */
#notices {
  --notes-blue: #63c5da;
  --category-color: var(--notes-blue) !important;
}

#notices .notes-heading h2,
#notices .notes-heading-icon,
#notices .game-note-kicker {
  color: var(--notes-blue) !important;
}

#notices .notes-tab.is-active {
  border-color: var(--notes-blue) !important;
  background: rgba(99, 197, 218, .14) !important;
  color: var(--notes-blue) !important;
}

#notices .notes-tab:hover,
#notices .notes-tab:focus-visible {
  border-color: var(--notes-blue) !important;
  color: var(--notes-blue) !important;
}

#notices .notes-arrow:hover,
#notices .notes-arrow:focus-visible {
  border-color: var(--notes-blue) !important;
  color: var(--notes-blue) !important;
}

#notices .game-note-text-only,
#notices #note-trucks,
#notices #note-switch,
#notices #note-shop {
  background:
    linear-gradient(135deg, rgba(99, 197, 218, .055), transparent 46%),
    #0d100f !important;
}

/* Give Active Codes more room; take that width from the far-right artwork card. */
@media (min-width: 1181px) {
  .promo-compact-grid {
    grid-template-columns: 1.05fr 1.15fr 1.05fr .85fr !important;
  }
}


/* v68 - complete mobile icon set + right-side slide-out menu */
@media (max-width: 760px) {
  /* Keep the hamburger and logo above the drawer/overlay. */
  .utility-nav-wrap {
    z-index: 1000 !important;
  }

  .mobile-nav-bar {
    position: relative;
    z-index: 1002;
  }

  /* Overlay begins below the mobile nav bar. */
  .mobile-nav-overlay {
    inset: 74px 0 0 0 !important;
    z-index: 998 !important;
  }

  /* Drawer now lives on the right and slides right-to-left. */
  .mobile-nav-panel {
    top: 74px !important;
    right: 0 !important;
    left: auto !important;
    width: min(88vw, 380px) !important;
    height: calc(100dvh - 74px) !important;
    border-right: 0 !important;
    border-left: 1px solid rgba(255,255,255,.18) !important;
    box-shadow: -20px 0 50px rgba(0,0,0,.5) !important;
    transform: translateX(104%) !important;
  }

  body.mobile-menu-open .mobile-nav-panel {
    transform: translateX(0) !important;
  }

  /* Every menu row uses an icon + copy layout. */
  .mobile-nav-link-with-icon {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .mobile-nav-item-icon {
    width: 40px !important;
    height: 40px !important;
    display: grid !important;
    place-items: center !important;
  }

  .mobile-nav-item-icon svg {
    width: 34px !important;
    height: 34px !important;
    fill: currentColor;
  }

  .mobile-nav-item-copy {
    min-width: 0;
  }

  .mobile-vs-icon {
    border: 2px solid currentColor;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: -.04em;
  }

  .mobile-video-icon {
    color: #f0f0ed;
  }

  .mobile-video-icon svg {
    fill: currentColor !important;
  }
}


/* v69 - mobile Notes scroll cue + permanently visible mobile menu bar + hard page scroll lock */
.notes-mobile-scroll-hint {
  display: none;
}

@media (max-width: 760px) {
  /* Keep the mobile menu button visible at all times, regardless of page scroll. */
  .utility-nav-marker {
    height: 74px !important;
  }

  .utility-nav-wrap {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
  }

  .mobile-nav-bar {
    position: relative !important;
    z-index: 1002 !important;
  }

  /* Menu and overlay remain directly underneath the fixed mobile nav bar. */
  .mobile-nav-overlay {
    top: 74px !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
  }

  .mobile-nav-panel {
    top: 74px !important;
    right: 0 !important;
    left: auto !important;
    height: calc(100dvh - 74px) !important;
    max-height: calc(100dvh - 74px) !important;
    overscroll-behavior: contain;
  }

  /* Make the Notes horizontal movement unmistakable. */
  .notes-mobile-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: -2px 0 10px;
    color: #63c5da;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .13em;
    text-align: right;
  }

  .notes-mobile-scroll-arrow {
    display: inline-block;
    font-size: 20px;
    line-height: 1;
    animation: notesScrollCue 1.1s ease-in-out infinite alternate;
  }

  .notes-slider-shell {
    position: relative;
  }

  .notes-slider-shell::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    right: auto;
    bottom: 14px;
    width: 32px;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(11,13,12,.92), transparent);
  }

  .notes-track {
    padding-right: 26px !important;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  /* Leave a visible slice of the next note so users can see there is more content. */
  .game-note-card {
    flex-basis: 91% !important;
  }

  /* The page itself is locked by JS while the drawer remains independently scrollable. */
  body.mobile-menu-open {
    overflow: hidden !important;
    overscroll-behavior: none;
    touch-action: none;
  }

  body.mobile-menu-open .mobile-nav-panel {
    touch-action: pan-y;
  }
}

@keyframes notesScrollCue {
  from { transform: translateX(0); }
  to { transform: translateX(5px); }
}

@media (prefers-reduced-motion: reduce) {
  .notes-mobile-scroll-arrow {
    animation: none !important;
  }
}


/* v71 - clock spacing/alignment + full-height right mobile drawer */
@media (max-width: 760px) {
  .timebar {
    padding-top: 12px !important;
  }

  .timebar-grid {
    grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr) !important;
    column-gap: 0 !important;
    row-gap: 14px !important;
    align-items: center !important;
    padding-top: 10px !important;
    padding-bottom: 18px !important;
  }

  .timebar-grid > .time-block:not(.calculator-block) {
    grid-column: auto !important;
    align-self: center !important;
    min-width: 0 !important;
  }

  .timebar-grid > .time-divider:nth-of-type(2) {
    display: block !important;
    grid-column: 2 !important;
    justify-self: center !important;
    align-self: center !important;
    width: 1px !important;
    height: 74px !important;
    margin: 0 !important;
    background: var(--line) !important;
  }

  .timebar-grid > .time-divider:nth-of-type(4) {
    display: none !important;
  }

  .calculator-block {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: none !important;
    justify-self: stretch !important;
  }
}

@media (min-width: 761px) and (max-width: 1024px) and (max-height: 600px) {
  .timebar {
    padding-top: 18px !important;
  }

  .timebar-grid {
    grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr) !important;
    column-gap: 0 !important;
    row-gap: 14px !important;
    align-items: center !important;
    padding-top: 12px !important;
    padding-bottom: 18px !important;
  }

  .timebar-grid > .time-block:not(.calculator-block) {
    grid-column: auto !important;
    align-self: center !important;
    min-width: 0 !important;
  }

  .timebar-grid > .time-divider:nth-of-type(2) {
    display: block !important;
    grid-column: 2 !important;
    justify-self: center !important;
    align-self: center !important;
    width: 1px !important;
    height: 82px !important;
    margin: 0 !important;
    background: var(--line) !important;
  }

  .timebar-grid > .time-divider:nth-of-type(4) {
    display: none !important;
  }

  .calculator-block {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 720px !important;
    justify-self: center !important;
  }
}

@media (max-width: 760px),
       (min-width: 761px) and (max-width: 1024px) and (max-height: 600px) {
  .mobile-nav-overlay {
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 1003 !important;
  }

  .mobile-nav-panel {
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    z-index: 1004 !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    width: min(88vw, 380px) !important;
    transform: translateX(104%) !important;
    border-left: 1px solid rgba(255,255,255,.18) !important;
    border-right: 0 !important;
    box-shadow: -20px 0 50px rgba(0,0,0,.5) !important;
  }

  body.mobile-menu-open .mobile-nav-panel {
    transform: translateX(0) !important;
  }

  .notes-mobile-scroll-hint {
    justify-content: flex-start !important;
    text-align: left !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .notes-slider-shell::after {
    display: none !important;
    content: none !important;
  }
}


/* v73 - force the full mobile navigation on phone-sized landscape screens.
   This includes iPhone Pro Max-class landscape viewports. */
@media (orientation: landscape) and (max-width: 1100px) and (max-height: 650px) {
  /* Hide the desktop navigation entirely. */
  .utility-nav,
  .command-subnav {
    display: none !important;
  }

  /* Reserve space for the fixed mobile header. */
  .utility-nav-marker {
    display: block !important;
    height: 74px !important;
  }

  .utility-nav-wrap {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    min-height: 74px !important;
    z-index: 1000 !important;
  }

  /* Show the exact same mobile header/hamburger used in portrait. */
  .mobile-nav-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 74px !important;
    gap: 16px !important;
    padding-top: 9px !important;
    padding-bottom: 9px !important;
    position: relative !important;
    z-index: 1002 !important;
  }

  .mobile-nav-brand,
  .mobile-nav-panel-brand {
    display: inline-flex !important;
    align-items: center !important;
  }

  .mobile-nav-brand img {
    display: block !important;
    width: auto !important;
    height: 50px !important;
    object-fit: contain !important;
  }

  .mobile-nav-panel-brand img {
    display: block !important;
    width: auto !important;
    height: 58px !important;
    object-fit: contain !important;
  }

  .mobile-nav-toggle {
    appearance: none !important;
    min-height: 48px !important;
    padding: 9px 14px !important;
    border: 1px solid rgba(255,255,255,.24) !important;
    background: rgba(5,5,5,.72) !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: .15em !important;
  }

  .mobile-nav-toggle-icon {
    width: 20px !important;
    display: inline-grid !important;
    gap: 4px !important;
  }

  .mobile-nav-toggle-icon span {
    display: block !important;
    width: 20px !important;
    height: 2px !important;
    background: #fff !important;
  }

  /* Full-screen overlay + right-side drawer, matching portrait behavior. */
  .mobile-nav-overlay {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 1003 !important;
    background: rgba(0,0,0,.62) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 220ms ease, visibility 220ms ease !important;
  }

  .mobile-nav-panel {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    z-index: 1004 !important;
    width: min(88vw, 380px) !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding: 18px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    background:
      linear-gradient(rgba(5,6,6,.84), rgba(5,6,6,.94)),
      url('../imgs/nav-bg.20260901v53.webp') center / cover no-repeat !important;
    border-right: 0 !important;
    border-left: 1px solid rgba(255,255,255,.18) !important;
    box-shadow: -20px 0 50px rgba(0,0,0,.5) !important;
    transform: translateX(104%) !important;
    transition: transform 260ms cubic-bezier(.2,.8,.2,1) !important;
  }

  .mobile-nav-panel-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding-bottom: 15px !important;
    margin-bottom: 16px !important;
    border-bottom: 1px solid rgba(255,255,255,.14) !important;
  }

  .mobile-nav-close {
    appearance: none !important;
    width: 42px !important;
    height: 42px !important;
    border: 1px solid rgba(255,255,255,.22) !important;
    background: rgba(0,0,0,.42) !important;
    color: #fff !important;
    cursor: pointer !important;
    font-size: 29px !important;
    line-height: 1 !important;
  }

  .mobile-nav-section + .mobile-nav-section {
    margin-top: 22px !important;
  }

  .mobile-nav-label {
    display: block !important;
    margin-bottom: 9px !important;
    color: #999f9b !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: .18em !important;
  }

  .mobile-nav-link {
    padding: 12px 13px !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    background: rgba(8,9,9,.66) !important;
    color: #fff !important;
    text-decoration: none !important;
  }

  .mobile-nav-link + .mobile-nav-link {
    margin-top: 8px !important;
  }

  .mobile-nav-link-with-icon {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .mobile-nav-item-icon {
    width: 40px !important;
    height: 40px !important;
    display: grid !important;
    place-items: center !important;
  }

  .mobile-nav-item-icon svg {
    width: 34px !important;
    height: 34px !important;
  }

  body.mobile-menu-open .mobile-nav-overlay {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  body.mobile-menu-open .mobile-nav-panel {
    transform: translateX(0) !important;
    touch-action: pan-y !important;
  }

  body.mobile-menu-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
    touch-action: none !important;
  }
}


/* v78 - slimmer navigation, touch-state cleanup, promo card order refinement */

/* Touch devices should never retain the white hover/focus sweep after a tap. */
@media (hover: none), (pointer: coarse) {
  .utility-link:hover::before,
  .utility-link:focus::before,
  .utility-link:focus-visible::before,
  .utility-link.is-pressed::before,
  .command-subnav .command-button:hover::before,
  .command-subnav .command-button:focus::before,
  .command-subnav .command-button:focus-visible::before,
  .command-subnav .command-button.is-pressed::before {
    transform: scaleX(0) !important;
  }

  .utility-link:focus,
  .utility-link:focus-visible,
  .command-subnav .command-button:focus,
  .command-subnav .command-button:focus-visible,
  .mobile-nav-link:focus,
  .mobile-nav-link:focus-visible {
    outline: none !important;
  }

  .mobile-nav-link:hover,
  .mobile-nav-link:focus,
  .mobile-nav-link:focus-visible,
  .mobile-nav-link:active {
    background: rgba(8, 9, 9, .66) !important;
    color: #fff !important;
  }
}

/* Promo order is now: Active Codes, Copy/Redeem, Yellow Roses, Girls.
   Keep Active Codes the widest card and the artwork the narrowest. */
@media (min-width: 1181px) {
  .promo-compact-grid {
    grid-template-columns: 1.20fr 1.02fr 1.05fr .82fr !important;
  }
}

/* Match the girl's card outline to the Copy/Redeem card outline. */
.promo-image-card,
.blank-girls-card {
  border: 1px solid #343a35 !important;
}


/* v79 - compact nav spacing only.
   Text, icons, and logos use their original pre-v78 sizes. */
@media (min-width: 761px) {
  .utility-brand,
  .utility-link {
    min-height: 0 !important;
  }

  .utility-brand {
    padding: 4px 10px !important;
  }

  .utility-link {
    padding: 6px 12px !important;
  }

  .command-subnav .command-button {
    min-height: 0 !important;
    padding: 6px 10px !important;
  }
}

@media (max-width: 760px),
       (orientation: landscape) and (max-width: 1100px) and (max-height: 650px) {
  .mobile-nav-link {
    padding: 6px 10px !important;
  }

  .mobile-nav-link + .mobile-nav-link {
    margin-top: 6px !important;
  }
}


/* v80 - navigation titles only, corrected calculator divider alignment,
   and section numbers removed. */

/* Hide every secondary description in desktop/tablet navigation and mobile drawer. */
.utility-copy small,
.command-subnav .command-button small,
.mobile-nav-item-copy small {
  display: none !important;
}

/* Enlarge the actual nav titles now that the descriptions are gone.
   Keep v79's compact cell padding and original icon sizes. */
.utility-copy strong {
  font-size: 20px !important;
  line-height: 1.05 !important;
}

.command-subnav .command-button strong {
  font-size: 16px !important;
  line-height: 1.05 !important;
}

.command-subnav .command-button > span:last-child {
  display: flex !important;
  align-items: center !important;
  min-height: 42px !important;
}

@media (max-width: 760px),
       (orientation: landscape) and (max-width: 1100px) and (max-height: 650px) {
  .mobile-nav-item-copy strong {
    font-size: 15px !important;
    line-height: 1.05 !important;
  }

  .mobile-nav-item-copy {
    display: flex !important;
    align-items: center !important;
    min-height: 40px !important;
  }
}

/* Section numbers such as 01, 02, 03, etc. are no longer part of headings. */
.section-index,
.capital-section-index {
  display: none !important;
}

/* Build both calculator dividers as real centered elements instead of relying
   on the older pseudo-element, which was drifting vertically. */
.at-calculator-entry::after {
  display: none !important;
  content: none !important;
}

.at-calculator {
  display: grid !important;
  grid-template-columns: auto 1px auto !important;
  align-items: center !important;
  justify-content: center !important;
  column-gap: 12px !important;
}

.at-calculator-entry {
  padding-right: 0 !important;
  margin-right: 0 !important;
  align-self: center !important;
}

.at-calculator-divider,
.at-output-divider {
  display: block !important;
  width: 1px !important;
  height: 50px !important;
  align-self: center !important;
  justify-self: center !important;
  margin: 0 !important;
  background: rgba(150, 154, 160, .55) !important;
}

.at-calculator-output {
  display: grid !important;
  grid-template-columns: auto 1px auto !important;
  align-items: center !important;
  justify-content: center !important;
  column-gap: 12px !important;
  padding-left: 0 !important;
  min-height: 50px !important;
}

#at-local-result,
#at-local-result-24 {
  align-self: center !important;
}

@media (max-width: 760px) {
  .at-calculator {
    grid-template-columns: auto 1px auto !important;
    column-gap: 9px !important;
  }

  .at-calculator-divider,
  .at-output-divider {
    height: 42px !important;
  }

  .at-calculator-output {
    grid-template-columns: auto 1px auto !important;
    column-gap: 9px !important;
    min-height: 42px !important;
  }
}


/* v81 - stacked Section 08 videos and simplified Capital Clash */
.betrayal-video-stack {
  min-width: 0;
  display: grid;
  gap: 22px;
}

.betrayal-video-stack .betrayal-video-frame {
  width: 100%;
}

.betrayal-video-detestable {
  aspect-ratio: 3128 / 1788 !important;
}

.betrayal-video-original {
  aspect-ratio: 2926 / 1648 !important;
}

#state-ruler .capital-heading > p {
  max-width: 760px !important;
}

#state-ruler .turret-timer-hero {
  margin-bottom: 0 !important;
}
