/* Rally the Realm pages: the same dark, glowing look as the rest of the site (site.css),
   with the game's own art (logo, buildings, mascots, maps) shown inside it. */
body.rtr {
  --cream: #f6ead3;
  --gold: #ffc65c;
  --red: #ff5d4d;
}
body.rtr h1 { font-size: clamp(1.8rem, 4.6vw, 2.8rem); }

/* Header */
.rtr-header-inner { max-width: 1120px; margin: 0 auto; padding: 6px var(--gutter); display: flex; align-items: center; gap: 16px; }
.rtr-brand img { width: 104px; height: auto; filter: drop-shadow(0 0 14px rgba(255, 122, 77, .35)); }
.rtr-nav { flex: 1; }
.rtr-company {
  color: var(--faint) !important; text-decoration: none; white-space: nowrap;
  font-family: var(--mono); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.rtr-company:hover { color: #fff !important; }

/* Buttons: the store button is the orange-to-amber pill; the others are glass pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 14px;
  font-family: var(--mono); font-weight: 700; font-size: .86rem; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; transition: filter .2s, border-color .2s, box-shadow .2s;
}
body.rtr .btn-red {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink);
  box-shadow: 0 0 24px rgba(255, 122, 77, .45);
}
body.rtr .btn-red:hover { filter: brightness(1.08); color: var(--accent-ink); }
body.rtr .btn-wood {
  background: rgba(40, 24, 42, .7); color: #fff; border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
body.rtr .btn-wood:hover { border-color: var(--accent); box-shadow: 0 0 18px rgba(255, 122, 77, .3); color: #fff; }
.btn-large { min-height: 58px; padding: 0 28px; font-size: .92rem; }
.btn-soon { cursor: default; color: #ffd49a !important; }
.btn-soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); flex: none; }
.btn-soon:hover { border-color: var(--line-strong) !important; box-shadow: none !important; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Panels: glass cards with the orange accent line (from site.css) */
.panel { padding: clamp(20px, 3.5vw, 32px); margin: 0 0 24px; }
.panel h2 { font-size: clamp(1.15rem, 2.4vw, 1.45rem); margin-top: 1.4em; }
.panel > h2:first-child, .panel > :first-child h2:first-child { margin-top: 0; }
.panel h3 { color: #fff; }
.panel p:last-child, .panel ul:last-child { margin-bottom: 0; }
.panel .muted { color: var(--muted); }

/* Hero: the game's menu painting, fading into the night */
.rtr-hero {
  position: relative; min-height: min(78vh, 720px);
  display: flex; align-items: flex-end;
  background: url("../img/rtr/ui/menu_bg.jpg") 30% center / cover no-repeat;
}
.rtr-hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 100%, rgba(255, 122, 77, .22), transparent 60%),
    linear-gradient(180deg, rgba(18, 11, 22, .1) 30%, rgba(27, 18, 32, .85) 80%, var(--bg));
}
.rtr-hero-inner { position: relative; z-index: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter) 44px; display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 14px; }
.rtr-hero .logo { width: min(520px, 80vw); filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .55)) drop-shadow(0 0 30px rgba(255, 122, 77, .25)); }
.rtr-hero .tagline { font-family: var(--display); font-weight: 700; font-size: clamp(1.05rem, 2.4vw, 1.45rem); letter-spacing: .04em; max-width: 30em; margin: 0; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .8), 0 0 24px rgba(255, 122, 77, .4); }
.rtr-hero .sub { color: #efe2d6; margin: 0; font-family: var(--mono); font-size: .86rem; letter-spacing: .08em; text-shadow: 0 1px 6px #000; }

.rtr-wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.rtr-section { padding: 40px 0; }
.rtr-section > .rtr-wrap > h2 { text-align: center; margin-top: 0; }
.center { text-align: center; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 46em; margin-left: auto; margin-right: auto; }

/* Screenshots in thin glowing frames */
.frame { border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: var(--glow), 0 0 30px rgba(255, 122, 77, .12); overflow: hidden; background: #000; }
.frame img { width: 100%; }
figure { margin: 0; }
figcaption { color: var(--faint); font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; margin-top: 10px; text-align: center; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shots .wide { grid-column: span 2; }

/* Circular badges with glowing rings, like the dashboard's client badges */
.feature img, .guide-tile img {
  border-radius: 50%; padding: 12px; object-fit: contain;
  background: radial-gradient(circle at 50% 40%, rgba(80, 48, 70, .9), rgba(30, 18, 32, .95));
  box-shadow: 0 0 0 2px var(--ring, var(--accent)), 0 0 0 6px rgba(255, 255, 255, .03), 0 0 22px var(--ring-glow, rgba(255, 122, 77, .45));
}
.feature:nth-child(3n+2) img, .guide-tile:nth-child(3n+2) img { --ring: var(--green); --ring-glow: rgba(63, 214, 160, .4); }
.feature:nth-child(3n) img, .guide-tile:nth-child(3n) img { --ring: var(--amber); --ring-glow: rgba(255, 181, 71, .4); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 24px; }
.feature { text-align: center; padding: 8px 4px; }
.feature img { width: 96px; height: 96px; margin: 6px auto 14px; }
.feature h3 { margin: 0 0 .3em; font-family: var(--display); font-size: .98rem; letter-spacing: .04em; }
.feature p { color: var(--muted); }

/* Worlds strip */
.worlds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.world { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); aspect-ratio: 16 / 9; background: #000; box-shadow: var(--glow); }
.world img { width: 100%; height: 100%; object-fit: cover; }
.world span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 8px; color: #fff;
  background: linear-gradient(transparent, rgba(18, 11, 22, .85));
  font-family: var(--mono); font-weight: 600; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
}
.world.raid { border-color: #b98a2a; box-shadow: 0 0 0 2px #6b3fa0; }

/* Guide pages */
.guide-head { padding: 40px 0 16px; }
.guide-head > p:not(.crumbs) { color: var(--muted); }
.crumbs { font-size: .72rem; color: var(--faint); margin-bottom: 14px; }
.crumbs a { color: var(--accent); text-decoration: none; }
.crumbs a:hover { color: var(--accent-2); }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guide-tile {
  display: flex; gap: 16px; align-items: center; padding: 16px; text-decoration: none; color: var(--ink) !important;
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--glow);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.guide-tile:hover { border-color: var(--line-strong); box-shadow: var(--glow), 0 0 30px rgba(255, 122, 77, .18); transform: translateY(-2px); }
.guide-tile img { width: 64px; height: 64px; padding: 9px; flex: none; }
.guide-tile strong { display: block; color: #fff; font-size: 1.04rem; }
.guide-tile span { color: var(--muted); font-size: .92rem; line-height: 1.45; display: block; }
.guide-body { padding-bottom: 40px; }
.guide-next { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 8px 0 48px; }
.guide-next a { font-family: var(--mono); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }

.icon-list { list-style: none; padding: 0; margin: 0; }
.icon-list li { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.icon-list li:last-child { border-bottom: 0; }
.icon-list img { width: 72px; height: 72px; object-fit: contain; flex: none; }
.icon-list h3 { margin: 0 0 .2em; }
.icon-list p { margin: 0; color: var(--muted); }
.icon-list.maps img { width: 200px; height: 113px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line-strong); }

table.rtr-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.rtr-table th, .rtr-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rtr-table th { font-family: var(--mono); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.table-scroll { overflow-x: auto; }

.trophies { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 18px 10px; }
.trophy { text-align: center; }
.trophy img { width: 96px; height: 96px; margin: 0 auto 6px; filter: drop-shadow(0 0 12px rgba(255, 181, 71, .25)); }
.trophy strong { display: block; }
.trophy span { font-size: .86rem; color: var(--muted); line-height: 1.4; display: block; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.mascot { width: 180px; margin: 0 auto; filter: drop-shadow(0 0 30px rgba(255, 122, 77, .3)); }

/* Legal pages keep a plain, easy reading column */
.legal { padding: 24px var(--gutter) 56px; max-width: 900px; }
.legal .panel { font-size: 1rem; }
.legal h2 { font-size: 1.12rem; }

@media (max-width: 900px) {
  .shots { grid-template-columns: 1fr 1fr; }
  .worlds { grid-template-columns: repeat(2, 1fr); }
  .guide-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .rtr-header-inner { justify-content: space-between; }
  .rtr-hero { min-height: 72vh; background-position: 22% center; }
  .rtr-hero-inner { align-items: center; text-align: center; }
  .btn-row { justify-content: center; }
  .shots { grid-template-columns: 1fr; }
  .shots .wide { grid-column: auto; }
  .features { grid-template-columns: 1fr 1fr; gap: 8px 14px; }
  .feature img { width: 80px; height: 80px; padding: 10px; }
  .guide-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .btn { padding: 0 18px; font-size: .78rem; }
  .btn-large { min-height: 54px; }
  .rtr-brand img { width: 84px; }
  .rtr-nav { flex: none; }
  .icon-list img { width: 56px; height: 56px; }
  .icon-list.maps li { flex-direction: column; gap: 8px; }
  .icon-list.maps img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}

/* Raid Valhalla, sealed: the locked world page dimmed under a big padlock.
   On the game page it is one world tile wide, centered under the eight worlds. */
.raid-locked { position: relative; container-type: inline-size; border-color: #b98a2a; box-shadow: 0 0 0 2px #6b3fa0, 0 0 30px rgba(107, 63, 160, .45), var(--glow); }
.worlds + .raid-locked { width: calc((100% - 42px) / 4); margin: 14px auto 0; border-radius: 14px; }
.raid-locked img { display: block; filter: brightness(.5) saturate(.85); }
.raid-locked .seal {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: min(3cqw, 14px);
  background: radial-gradient(ellipse 36% 30% at 50% 52%, rgba(18, 11, 22, .82), rgba(18, 11, 22, .2));
  text-align: center; padding: 6cqw;
}
.raid-locked .seal img { filter: drop-shadow(0 0 18px rgba(255, 181, 71, .65)) drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); width: min(28cqw, 132px); height: auto; }
.raid-locked .seal strong { font-family: var(--display); font-size: min(7.5cqw, 1.9rem); letter-spacing: .08em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); line-height: 1.1; }
.raid-locked .seal span { font-family: var(--mono); font-size: max(9px, min(4.4cqw, .9rem)); letter-spacing: .04em; color: var(--accent-2); text-shadow: 0 1px 8px rgba(0, 0, 0, .9); line-height: 1.3; }
.guide-body .raid-locked { margin: 0 0 24px; }
@media (max-width: 900px) {
  .worlds + .raid-locked { width: calc((100% - 14px) / 2); }
}
