/* Rise of Kingdoms subpage — standalone sheet
   last pass 30.07.2026 @mike — webp swap + deslop cleanup
   NOTE: .hero-baner / .secton-dark / .pricin-card are legacy aliases, wired in HTML on purpose
   featureFlags: { newUI: true, commanderPanelV2: true, heatmapView: false }
*/

@font-face {
  font-family: "Rajdhani";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/rajdhani-500.woff2") format("woff2");
}
@font-face {
  font-family: "Rajdhani";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/rajdhani-600.woff2") format("woff2");
}
@font-face {
  font-family: "Rajdhani";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/rajdhani-700.woff2") format("woff2");
}
@font-face {
  font-family: "Orbitron";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/orbitron-700.woff2") format("woff2");
}

:root {
  --rok-bg: #070605;
  --rok-bg-2: #100e0b;
  --rok-panel: #16120e;
  --rok-border: rgba(232, 192, 74, 0.28);
  --rok-text: #f2ebe0;
  --rok-muted: #b8aa94;
  --rok-gold: #e8c04a;
  --rok-gold-2: #f0d06a;
  --rok-gold-deep: #b8891c;
  --rok-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  --rok-font: "Rajdhani", sans-serif;
  --rok-display: "Orbitron", sans-serif;
  --rok-header-h: 72px;
  --rok-max: 1180px;
  --rok-radius: 6px;
  --rok-t: 0.28s ease;
  --rok-focus: 0 0 0 3px rgba(232, 192, 74, 0.35), 0 0 0 1px var(--rok-gold);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--rok-header-h) + 12px);
}

body.rok-page {
  font-family: var(--rok-font);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--rok-text);
  background: var(--rok-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--rok-gold);
  text-decoration: none;
  transition: color var(--rok-t);
}

a:hover {
  color: var(--rok-gold-2);
}

a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: var(--rok-focus);
}

ul {
  list-style: none;
}

.rok-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: var(--rok-gold);
  color: #1a1404;
  font-weight: 700;
}

.rok-skip:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.rok-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--rok-header-h);
  background: var(--rok-bg);
  border-bottom: 1px solid rgba(232, 192, 74, 0.15);
}

.rok-header__inner {
  max-width: var(--rok-max);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.rok-logo img {
  width: auto;
  height: 40px;
  object-fit: contain;
}

.rok-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.rok-nav a {
  font-family: var(--rok-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rok-text);
}

.rok-nav a:hover {
  color: var(--rok-gold);
}

.rok-nav a:not(.rok-btn):focus-visible {
  border-radius: 2px;
}

.rok-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rok-border);
  border-radius: var(--rok-radius);
  background: transparent;
  color: var(--rok-text);
  cursor: pointer;
}

.rok-burger__close {
  display: none;
}

.rok-burger[aria-expanded="true"] .rok-burger__open {
  display: none;
}

.rok-burger[aria-expanded="true"] .rok-burger__close {
  display: block;
}

@media (min-width: 900px) {
  .rok-nav {
    display: flex;
  }
  .rok-burger {
    display: none;
  }
}

/* Mobile drawer */
.rok-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--rok-t);
}

.rok-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.rok-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1200;
  width: min(320px, 88vw);
  height: 100%;
  background: var(--rok-bg-2);
  border-left: 1px solid var(--rok-border);
  transform: translateX(100%);
  opacity: 0.96;
  transition:
    transform var(--rok-t),
    opacity var(--rok-t);
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

.rok-drawer.is-open {
  transform: translateX(0);
}

.rok-drawer[hidden],
.rok-overlay[hidden] {
  display: block;
}

.rok-drawer:not(.is-open)[hidden],
.rok-overlay:not(.is-open)[hidden] {
  visibility: hidden;
}

.rok-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.rok-drawer__label {
  font-family: var(--rok-display);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rok-gold);
}

.rok-drawer__close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--rok-border);
  border-radius: var(--rok-radius);
  background: transparent;
  color: var(--rok-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rok-drawer__links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rok-drawer__links a {
  display: block;
  padding: 0.9rem 0.75rem;
  font-family: var(--rok-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rok-text);
  border-bottom: 1px solid rgba(232, 192, 74, 0.1);
}

.rok-drawer__links a:hover {
  color: var(--rok-gold);
}

body.rok-nav-open {
  overflow: hidden;
}

/* Buttons */
.rok-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  font-family: var(--rok-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background var(--rok-t),
    color var(--rok-t),
    box-shadow var(--rok-t),
    transform var(--rok-t);
  text-decoration: none;
}

.rok-btn--primary {
  background: var(--rok-gold);
  color: #1a1404;
  border-color: #f3d98a;
}

.rok-btn--primary:hover {
  color: #1a1404;
  background: var(--rok-gold-2);
  border-color: #f6dc7a;
}

.rok-btn--nav {
  padding: 0.65rem 1.1rem;
  background: var(--rok-gold);
  color: #1a1404;
  border-color: #f3d98a;
}

.rok-btn--nav:hover {
  color: #1a1404 !important;
}

/* Hero */
.rok-hero {
  position: relative;
  min-height: calc(100vh - var(--rok-header-h));
  min-height: max(560px, calc(100vh - var(--rok-header-h)));
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.rok-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.rok-hero__poster,
.rok-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rok-hero__video {
  z-index: 1;
}

.rok-hero__gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(7, 6, 5, 0.94) 0%,
    rgba(7, 6, 5, 0.82) 28%,
    rgba(7, 6, 5, 0.45) 55%,
    rgba(7, 6, 5, 0.15) 78%,
    rgba(7, 6, 5, 0.35) 100%
  );
  pointer-events: none;
}

.rok-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--rok-max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 2.5rem;
  display: flex;
  align-items: flex-end;
}

.rok-hero__copy {
  max-width: 540px;
}

.rok-hero h1 {
  font-family: var(--rok-display);
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 1rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.65);
}

.rok-hero__desc {
  color: var(--rok-text);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  margin-bottom: 1.5rem;
  max-width: 42ch;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}

.rok-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin: 1.25rem 0 2rem;
  color: var(--rok-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.rok-platforms li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.rok-hero__perks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(232, 192, 74, 0.22);
}

.rok-hero__perks li {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--rok-muted);
}

@media (min-width: 640px) {
  .rok-hero__perks {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 900px) {
  .rok-hero__inner {
    align-items: center;
    padding: 4.5rem 1.25rem 3.5rem;
  }
  .rok-hero__gradient {
    background: linear-gradient(
      90deg,
      rgba(7, 6, 5, 0.95) 0%,
      rgba(7, 6, 5, 0.78) 32%,
      rgba(7, 6, 5, 0.28) 58%,
      rgba(7, 6, 5, 0.08) 100%
    );
  }
}

/* Commanders */
.rok-commanders {
  position: relative;
  background: var(--rok-bg-2);
  border-top: 1px solid rgba(232, 192, 74, 0.12);
  border-bottom: 1px solid rgba(232, 192, 74, 0.12);
  padding: 4.5rem 0;
  overflow: hidden;
}

.rok-commanders__inner {
  max-width: var(--rok-max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
}

.rok-commanders__copy h2 {
  font-family: var(--rok-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.rok-commanders__copy > p {
  color: var(--rok-muted);
  margin-bottom: 1.25rem;
  max-width: 40ch;
}

.rok-commanders__accents {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--rok-muted);
}

.rok-commanders__stage {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 1rem;
  align-items: center;
  background: var(--rok-panel);
  border: 1px solid var(--rok-border);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: var(--rok-shadow);
}

.rok-commander-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  grid-row: 1 / span 2;
}

.rok-commander-thumb {
  position: relative;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid rgba(232, 192, 74, 0.35);
  border-radius: 8px;
  overflow: hidden;
  background: #1a140c;
  cursor: pointer;
  transition:
    border-color var(--rok-t),
    box-shadow var(--rok-t);
}

.rok-commander-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rok-commander-thumb__lvl {
  position: absolute;
  right: 2px;
  bottom: 2px;
  min-width: 1.4rem;
  padding: 0 0.2rem;
  background: rgba(0, 0, 0, 0.75);
  color: var(--rok-gold);
  font-size: 0.65rem;
  font-weight: 700;
  text-align: center;
  border-radius: 3px;
}

.rok-commander-thumb.is-active,
.rok-commander-thumb:hover {
  border-color: var(--rok-gold);
}

.rok-commander-hero {
  margin: 0;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.rok-commander-hero img {
  width: min(100%, 280px);
  height: auto;
  object-fit: cover;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
}

.rok-commander-panel {
  grid-column: 1 / -1;
  background: rgba(10, 8, 6, 0.85);
  border: 1px solid var(--rok-border);
  border-radius: 8px;
  padding: 1rem 1.1rem;
}

.rok-commander-panel h3 {
  font-family: var(--rok-display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.rok-commander-panel__origin {
  color: var(--rok-muted);
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
}

.rok-commander-panel__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.rok-commander-panel__tags li {
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(232, 192, 74, 0.3);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rok-gold);
}

.rok-commander-panel__stars {
  color: var(--rok-gold);
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.rok-commander-panel__stars .is-dim {
  color: #5a4e3a;
}

.rok-commander-panel__level-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.rok-xp {
  height: 8px;
  background: #2a2218;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.rok-xp__fill {
  display: block;
  height: 100%;
  background: var(--rok-gold);
}

.rok-commander-panel__troop {
  color: var(--rok-muted);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.rok-commander-panel__skills h4 {
  font-family: var(--rok-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rok-gold);
  margin-bottom: 0.55rem;
}

.rok-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.rok-skills li {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(232, 192, 74, 0.4);
  border-radius: 6px;
  background: #1a140c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--rok-gold);
}

@media (min-width: 768px) {
  .rok-commanders__stage {
    grid-template-columns: auto 1fr minmax(220px, 260px);
    align-items: stretch;
    padding: 1.25rem;
    gap: 1rem 1.25rem;
  }
  .rok-commander-list {
    grid-row: auto;
  }
  .rok-commander-panel {
    grid-column: auto;
    align-self: center;
  }
  .rok-commander-hero {
    min-height: 360px;
    display: flex;
    align-items: center;
  }
  .rok-commander-hero img {
    width: min(100%, 340px);
    transform: scale(1.3);
  }
}

@media (min-width: 1024px) {
  .rok-commanders__inner {
    grid-template-columns: 0.9fr 1.2fr;
    align-items: center;
    gap: 3rem;
  }
  .rok-commander-thumb {
    width: 72px;
    height: 72px;
  }
}

/* Features */
.rok-features {
  padding: 4.5rem 0;
  background: var(--rok-bg);
}

.rok-features__inner {
  max-width: var(--rok-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.rok-features__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.rok-commanders__stage.cmz-stage {
  border-color: rgba(232, 192, 74, 0.4);
  box-shadow:
    0 0 0 1px rgba(232, 192, 74, 0.12),
    0 8px 28px rgba(0, 0, 0, 0.3),
    0 0 32px rgba(232, 192, 74, 0.35),
    0 0 64px rgba(232, 192, 74, 0.18);
}

.rok-features__head h2 {
  font-family: var(--rok-display);
  font-size: clamp(1.5rem, 3.5vw, 2.3rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  color: var(--rok-gold);
}

.rok-features__head p {
  color: var(--rok-muted);
}

.rok-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.rok-feature-card {
  background: var(--rok-panel);
  border: 1px solid rgba(232, 192, 74, 0.18);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    border-color var(--rok-t),
    box-shadow var(--rok-t),
    transform var(--rok-t);
}

.rok-feature-card:hover {
  border-color: rgba(232, 192, 74, 0.45);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.rok-feature-card__media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.rok-feature-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rok-feature-card__body {
  padding: 1.15rem 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.rok-feature-card h3 {
  font-family: var(--rok-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rok-feature-card p {
  color: var(--rok-muted);
  font-size: 1rem;
}

.rok-features__cta {
  display: flex;
  justify-content: center;
  margin-top: 2.25rem;
}

@media (min-width: 640px) {
  .rok-feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .rok-feature-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.15rem;
  }
}

/* Final CTA */
.rok-final {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 5rem 1.25rem;
}

.rok-final__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.rok-final__media img {
  position: absolute;
  left: 0;
  top: -8%;
  width: 100%;
  height: 116%;
  object-fit: cover;
  will-change: transform;
  transform: translate3d(0, 0, 0) scale(1.12);
}

@media (prefers-reduced-motion: reduce) {
  .rok-final__media img {
    top: 0;
    height: 100%;
    transform: none;
    will-change: auto;
  }
}

.rok-final__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 6, 5, 0.55) 0%,
    rgba(7, 6, 5, 0.72) 45%,
    rgba(7, 6, 5, 0.88) 100%
  );
}

.rok-final__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.rok-final h2 {
  font-family: var(--rok-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rok-gold);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.rok-final__sub {
  font-family: var(--rok-display);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rok-text);
  margin-bottom: 1.75rem;
}

/* Footer */
.rok-footer {
  background: #050403;
  border-top: 1px solid rgba(232, 192, 74, 0.15);
  padding: 2.75rem 0 2rem;
}

.rok-footer__inner {
  max-width: var(--rok-max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  gap: 1.5rem;
}

.rok-footer__brand img {
  height: 34px;
  width: auto;
  margin-bottom: 0.75rem;
}

.rok-footer__brand p,
.rok-footer__legal {
  color: var(--rok-muted);
  font-size: 0.95rem;
  max-width: 52ch;
}

.rok-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.rok-footer__nav a {
  font-family: var(--rok-display);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rok-text);
}

.rok-footer__nav a:hover {
  color: var(--rok-gold);
}

.rok-footer__legal {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(232, 192, 74, 0.1);
  font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .rok-btn--primary,
  .rok-feature-card,
  .rok-overlay,
  .rok-drawer {
    transition: none;
  }
  .rok-btn--primary:hover,
  .rok-feature-card:hover {
    transform: none;
  }
  .rok-hero__video {
    display: none;
  }
}

/* --- legacy / messy aliases (don't delete � HTML still uses these) --- */
.hero-baner {
  /* typo kept from sprint 12 � same as .rok-hero */
}
.secton-dark {
  /* old section tint hook; bg handled by parent */
}
.pricin-card {
  /* was pricing card on home A/B, reused here */
}
.card-fix-2026 {
  border-color: rgba(232, 192, 74, 0.28);
}
.cmz-stage {
  /* commander stage alias from home naming */
}
.cmz-card {
  /* feature cards share home naming */
}
.main-header {
  /* dual class with .rok-header */
}
.headerInner {
  /* camelCase leftover from home sheet */
}
.mw-nav {
  /* short prefix used on home */
}
.app-burger {
  /* shared burger naming */
}
.card-btn {
  /* CTA alias */
}

/* perf: skip offscreen paint for below-fold blocks */
.rok-commanders,
.rok-features,
.rok-final {
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

/* @mike: logo aspect from webp export 353x160 */
.rok-logo img {
  width: auto;
  height: 48px;
  max-width: 180px;
  object-fit: contain;
}
