@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=Source+Sans+3:wght@300;400;600;700&display=swap');

/* ============================================================
   ROTA ANIMA — nuobem.css
   Namespace: ran | Asset dir: ulup
   Design System: deep_indigo_copper_aged_vellum
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --ran-primary: #C8883A;
  --ran-secondary: #7B5EA7;
  --ran-bg: #1A1728;
  --ran-bg-alt: #211d36;
  --ran-bg-card: #1e1b30;
  --ran-text: #E8DFC8;
  --ran-text-muted: #a89c82;
  --ran-text-faint: #6e6350;
  --ran-border: rgba(200, 136, 58, 0.22);
  --ran-border-soft: rgba(200, 136, 58, 0.10);
  --ran-glow-primary: rgba(200, 136, 58, 0.18);
  --ran-glow-secondary: rgba(123, 94, 167, 0.18);
  --ran-radius: 4px;
  --ran-radius-lg: 8px;
  --ran-header-height: 76px;
  --ran-transition: 0.28s ease;
  --ran-font-heading: 'Playfair Display', Georgia, serif;
  --ran-font-body: 'Source Sans 3', system-ui, sans-serif;
  --ran-shadow-card: 0 4px 32px rgba(0,0,0,0.48), 0 1px 4px rgba(0,0,0,0.32);
  --ran-shadow-btn: 0 2px 16px rgba(200,136,58,0.22);
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--ran-bg);
  color: var(--ran-text);
  font-family: var(--ran-font-body);
  font-weight: 400;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

img, picture, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ran-font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ran-text);
}

/* ── Typography Scale ───────────────────────────────────────── */
.ran-moef {
  font-family: var(--ran-font-heading);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.08;
  color: var(--ran-text);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6);
}

.ran-veviin {
  font-family: var(--ran-font-heading);
  font-size: clamp(1.2rem, 2.8vw, 1.9rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ran-primary);
  line-height: 1.35;
  margin-top: 0.5rem;
}

.ran-etif {
  font-size: clamp(0.95rem, 1.8vw, 1.125rem);
  color: var(--ran-text-muted);
  line-height: 1.7;
  max-width: 56ch;
  margin-top: 1rem;
}

.ran-vegeep {
  font-family: var(--ran-font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ran-primary);
  margin-bottom: 0.75rem;
  display: inline-block;
  opacity: 0.92;
}

.ran-zien {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  align-items: center;
}

/* Section typography */
.ran-usip {
  font-family: var(--ran-font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--ran-text);
  line-height: 1.18;
}

.ran-gaud {
  font-family: var(--ran-font-heading);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ran-primary);
  margin-top: 0.4rem;
  line-height: 1.4;
}

.ran-ozre {
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  color: var(--ran-text-muted);
  line-height: 1.7;
  max-width: 62ch;
  margin-top: 0.75rem;
}

.ran-olni {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ran-secondary);
  margin-bottom: 0.6rem;
  display: block;
  opacity: 0.9;
}

.ran-asusba {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

/* Card typography */
.ran-nius {
  font-family: var(--ran-font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ran-text);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.ran-ututez {
  font-size: 0.9rem;
  color: var(--ran-text-muted);
  line-height: 1.65;
}

.ran-oftaak {
  font-size: 1.5rem;
  color: var(--ran-primary);
  display: block;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.ran-imra {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ran-bg);
  background: var(--ran-primary);
  padding: 0.2em 0.65em;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 0.6rem;
}

.ran-uvim {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ran-secondary);
  border: 1px solid rgba(123,94,167,0.4);
  padding: 0.18em 0.6em;
  border-radius: 2px;
  display: inline-block;
  margin-top: 0.5rem;
}

/* ── Container & Grid ───────────────────────────────────────── */
.ran-arfoku {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.ran-umbaun {
  display: grid;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.ran-umbaun--two {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.ran-umbaun--three {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.ran-umbaun--four {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

/* ── Header / Nav ───────────────────────────────────────────── */
.ran-ponodu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(26, 23, 40, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ran-border-soft);
  height: var(--ran-header-height);
  transition: background var(--ran-transition), box-shadow var(--ran-transition);
}

.ran-ponodu__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.ran-nupa {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--ran-font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ran-text);
  letter-spacing: 0.02em;
  text-decoration: none;
  flex-shrink: 0;
}

.ran-nupa img {
  height: 38px;
  width: auto;
}

.ran-medabu {
  display: flex;
  align-items: center;
}

.ran-medabu__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.ran-medabu__item { display: flex; }

.ran-medabu__link {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ran-text-muted);
  padding: 0.45rem 0.85rem;
  border-radius: var(--ran-radius);
  transition: color var(--ran-transition), background var(--ran-transition);
  white-space: nowrap;
}

.ran-medabu__link:hover,
.ran-medabu__link:focus {
  color: var(--ran-text);
  background: rgba(200,136,58,0.1);
  outline: none;
}

.ran-medabu__link:focus-visible {
  outline: 2px solid var(--ran-primary);
  outline-offset: 2px;
}

/* Hamburger */
.ran-teto {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: var(--ran-radius);
  background: none;
  border: 1px solid var(--ran-border);
  transition: border-color var(--ran-transition);
  flex-shrink: 0;
}

.ran-teto:hover { border-color: var(--ran-primary); }

.ran-teto__line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ran-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Scrolled state */
.ran-medabu--scrolled {
  background: rgba(26, 23, 40, 0.99);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

/* ── Hero ───────────────────────────────────────────────────── */
.ran-ifeb {
  position: relative;
  overflow: hidden;
  min-height: clamp(560px, 90vh, 900px);
  display: flex;
  align-items: flex-end;
  padding-top: var(--ran-header-height);
}

.ran-ifeb--map-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 10 L32 28 L50 30 L32 32 L30 50 L28 32 L10 30 L28 28 Z' fill='none' stroke='rgba(200,136,58,0.06)' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  z-index: 1;
  pointer-events: none;
}

.ran-luub {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.ran-neesuv {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.ran-fuerik {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(26, 23, 40, 0.55) 0%,
    rgba(26, 23, 40, 0.35) 40%,
    rgba(26, 23, 40, 0.62) 100%
  );
  pointer-events: none;
}

.ran-apva {
  position: relative;
  z-index: 2;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
  padding-block: clamp(3rem, 8vh, 6rem);
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
}

/* ── Media Backgrounds ──────────────────────────────────────── */
.ran-media {
  position: relative;
  overflow: hidden;
  min-height: clamp(220px, 40vh, 520px);
}

/* Hero image */
.ran-media--agunin {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: unset;
  z-index: 0;
  pointer-events: none;
}

.ran-media--agunin::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,23,40,0.45), rgba(26,23,40,0.6)),
    url('../assets/images/ran-agunin.webp'),
    linear-gradient(135deg, #1A1728, #2a2245);
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Logo (img_tag_usage: true — NO ::before background-image) */
/* ran-asapuf is rendered as <img>, no CSS background needed */
.ran-media--asapuf {
  display: inline-flex;
  align-items: center;
}

/* Mechanics visual */
.ran-media--luaftu {
  position: relative;
  overflow: hidden;
  min-height: clamp(220px, 40vh, 520px);
}

.ran-media--luaftu::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,23,40,0.35), rgba(26,23,40,0.55)),
    url('../assets/images/ran-luaftu.webp'),
    linear-gradient(135deg, #1A1728, #2a2245);
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Codex scroll */
.ran-media--goun {
  position: relative;
  overflow: hidden;
  min-height: clamp(220px, 40vh, 520px);
}

.ran-media--goun::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,23,40,0.4), rgba(26,23,40,0.62)),
    url('../assets/images/ran-goun.webp'),
    linear-gradient(135deg, #1A1728, #1e1b30);
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Route zone alpha */
.ran-media--toumta {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  min-height: 180px;
}

.ran-media--toumta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,23,40,0.3), rgba(26,23,40,0.55)),
    url('../assets/images/ran-toumta.webp'),
    linear-gradient(135deg, #1a2840, #0d1e2e);
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Route zone beta */
.ran-media--izla {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  min-height: 180px;
}

.ran-media--izla::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,23,40,0.3), rgba(26,23,40,0.55)),
    url('../assets/images/ran-izla.webp'),
    linear-gradient(135deg, #1a2e1a, #0d200d);
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Route zone gamma */
.ran-media--liga {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  min-height: 180px;
}

.ran-media--liga::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,23,40,0.3), rgba(26,23,40,0.55)),
    url('../assets/images/ran-liga.webp'),
    linear-gradient(135deg, #2e1a0d, #1e0d00);
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Route zone delta */
.ran-media--kaep {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  min-height: 180px;
}

.ran-media--kaep::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,23,40,0.3), rgba(26,23,40,0.55)),
    url('../assets/images/ran-kaep.webp'),
    linear-gradient(135deg, #0d0d2e, #12082e);
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Voice card one */
.ran-media--uvrera {
  position: relative;
  overflow: hidden;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ran-media--uvrera::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url('../assets/images/ran-uvrera.webp'),
    linear-gradient(135deg, #2a2245, #1A1728);
  background-size: cover;
  background-position: center top;
  z-index: 0;
}

/* Voice card two */
.ran-media--etduuv {
  position: relative;
  overflow: hidden;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ran-media--etduuv::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url('../assets/images/ran-etduuv.webp'),
    linear-gradient(135deg, #2a2245, #1A1728);
  background-size: cover;
  background-position: center top;
  z-index: 0;
}

/* Voice card three */
.ran-media--naiv {
  position: relative;
  overflow: hidden;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ran-media--naiv::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url('../assets/images/ran-naiv.webp'),
    linear-gradient(135deg, #2a2245, #1A1728);
  background-size: cover;
  background-position: center top;
  z-index: 0;
}

/* Demo preview */
.ran-media--atef {
  position: relative;
  overflow: hidden;
  min-height: clamp(220px, 40vh, 480px);
}

.ran-media--atef::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,23,40,0.38), rgba(26,23,40,0.6)),
    url('../assets/images/ran-atef.webp'),
    linear-gradient(135deg, #1A1728, #2a2245);
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* ── Buttons ────────────────────────────────────────────────── */
.ran-kili {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--ran-radius);
  font-family: var(--ran-font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background var(--ran-transition),
    color var(--ran-transition),
    border-color var(--ran-transition),
    box-shadow var(--ran-transition),
    transform var(--ran-transition);
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
}

.ran-kili:focus-visible {
  outline: 2px solid var(--ran-primary);
  outline-offset: 3px;
}

.ran-kili--primary {
  background: var(--ran-primary);
  color: #1A1728;
  border-color: var(--ran-primary);
  box-shadow: var(--ran-shadow-btn);
}

.ran-kili--primary:hover,
.ran-kili--primary:focus {
  background: #d99a4a;
  border-color: #d99a4a;
  box-shadow: 0 4px 24px rgba(200,136,58,0.38);
  transform: translateY(-1px);
}

.ran-kili--secondary {
  background: transparent;
  color: var(--ran-secondary);
  border-color: var(--ran-secondary);
}

.ran-kili--secondary:hover,
.ran-kili--secondary:focus {
  background: rgba(123,94,167,0.15);
  border-color: #9070c8;
  color: #b090e0;
  transform: translateY(-1px);
}

.ran-kili--ghost {
  background: transparent;
  color: var(--ran-text-muted);
  border-color: var(--ran-border);
}

.ran-kili--ghost:hover,
.ran-kili--ghost:focus {
  background: rgba(232,223,200,0.08);
  border-color: rgba(232,223,200,0.3);
  color: var(--ran-text);
  transform: translateY(-1px);
}

.ran-nazeor {
  display: inline;
}

.ran-sabe {
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
}

/* ── Sections Base ──────────────────────────────────────────── */
.ran-gadaso {
  padding-block: clamp(3rem, 6vw, 5.5rem);
  position: relative;
  overflow: hidden;
}

.ran-gadaso--alt {
  background: var(--ran-bg-alt);
}

/* ── World Premise ──────────────────────────────────────────── */
.ran-gadaso--world-premise {
  background: var(--ran-bg);
  border-top: 1px solid var(--ran-border-soft);
}

/* ── Route Atlas ────────────────────────────────────────────── */
.ran-gadaso--route-atlas {
  background: var(--ran-bg-alt);
  border-top: 1px solid var(--ran-border-soft);
}

/* ── Journey Mechanics ──────────────────────────────────────── */
.ran-gadaso--journey-mechanics {
  background: var(--ran-bg);
  border-top: 1px solid var(--ran-border-soft);
}

/* ── Expedition Codex ───────────────────────────────────────── */
.ran-gadaso--expedition-codex {
  background: var(--ran-bg-alt);
  border-top: 1px solid var(--ran-border-soft);
  position: relative;
}

/* ── Cartographer Voices ────────────────────────────────────── */
.ran-gadaso--cartographer-voices {
  background: var(--ran-bg);
  border-top: 1px solid var(--ran-border-soft);
}

/* ── Danger Bestiary ────────────────────────────────────────── */
.ran-gadaso--danger-bestiary {
  background: var(--ran-bg-alt);
  border-top: 1px solid var(--ran-border-soft);
}

/* ── Final CTA ──────────────────────────────────────────────── */
.ran-gadaso--final-cta {
  background: var(--ran-bg);
  border-top: 1px solid var(--ran-border-soft);
  position: relative;
  overflow: hidden;
}

.ran-afnuak {
  text-align: center;
}

.ran-afnuak .ran-asusba {
  max-width: 660px;
  margin-inline: auto;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.ran-afnuak .ran-zien,
.ran-afnuak .ran-umbaun--two {
  justify-content: center;
}

/* ── Cards ──────────────────────────────────────────────────── */
.ran-dibu {
  position: relative;
  overflow: hidden;
  background: var(--ran-bg-card);
  border: 1px solid var(--ran-border);
  border-radius: var(--ran-radius-lg);
  box-shadow: var(--ran-shadow-card);
  transition: transform var(--ran-transition), box-shadow var(--ran-transition), border-color var(--ran-transition);
}

.ran-dibu:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.56), 0 2px 8px rgba(200,136,58,0.1);
  border-color: rgba(200,136,58,0.4);
}

.ran-eppa {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(26,23,40,0.7) 100%);
}

.ran-nekogu {
  position: relative;
  z-index: 1;
  padding: clamp(1rem, 2.5vw, 1.5rem);
}

/* Zone cards */
.ran-dibu--zone {
  display: flex;
  flex-direction: column;
}

.ran-dibu--zone .ran-nekogu {
  flex: 1;
}

/* Mechanic cards */
.ran-dibu--mechanic {
  border-left: 3px solid var(--ran-primary);
}

.ran-dibu--mechanic:hover {
  border-left-color: #d99a4a;
}

/* Voice cards */
.ran-dibu--voice {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  border-radius: var(--ran-radius-lg);
  padding: 1.25rem;
}

.ran-dibu--voice .ran-nekogu {
  padding: 0;
  flex: 1;
}

/* Beast cards */
.ran-dibu--beast {
  border-top: 2px solid rgba(200,136,58,0.35);
}

.ran-dibu--beast:hover {
  border-top-color: var(--ran-primary);
}

/* ── Panel ──────────────────────────────────────────────────── */
.ran-putu {
  position: relative;
  overflow: hidden;
  border-radius: var(--ran-radius-lg);
}

.ran-putu--lore {
  background: linear-gradient(135deg, rgba(123,94,167,0.1), rgba(26,23,40,0.5));
  border: 1px solid rgba(123,94,167,0.25);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.ran-omeg {
  position: relative;
  z-index: 1;
}

.ran-emla {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(123,94,167,0.12), transparent 65%);
}

/* ── Stat Block ─────────────────────────────────────────────── */
.ran-dolu {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ran-border-soft);
}

.ran-dolu__item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ran-dolu__value {
  font-family: var(--ran-font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--ran-primary);
  line-height: 1;
}

.ran-dolu__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ran-text-faint);
}

/* ── Codex Entries ──────────────────────────────────────────── */
.ran-suriga {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border: 1px solid var(--ran-border);
  border-radius: var(--ran-radius-lg);
  background: rgba(26,23,40,0.7);
  position: relative;
  overflow: hidden;
  margin-bottom: 1.25rem;
  transition: border-color var(--ran-transition);
}

.ran-suriga:hover {
  border-color: rgba(200,136,58,0.35);
}

.ran-suriga__title {
  font-family: var(--ran-font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ran-primary);
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.ran-suriga__body {
  font-size: 0.9rem;
  color: var(--ran-text-muted);
  line-height: 1.7;
  font-style: italic;
}

.ran-suriga__source {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ran-text-faint);
  margin-top: 0.75rem;
  display: block;
}

/* ── Zone Map ───────────────────────────────────────────────── */
.ran-dulo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.ran-dulo__node {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ran-primary);
  opacity: 0.7;
  flex-shrink: 0;
}

.ran-dulo__node:first-child { opacity: 1; width: 10px; height: 10px; }

/* ── Risk Badges ────────────────────────────────────────────── */
.ran-risk-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.22em 0.7em;
  border-radius: 2px;
  display: inline-block;
  border: 1px solid currentColor;
}

.ran-risk-badge--low {
  color: #6ecb8a;
  border-color: rgba(110,203,138,0.4);
  background: rgba(110,203,138,0.1);
}

.ran-risk-badge--medium {
  color: #d4b84a;
  border-color: rgba(212,184,74,0.4);
  background: rgba(212,184,74,0.1);
}

.ran-risk-badge--high {
  color: #e07a40;
  border-color: rgba(224,122,64,0.4);
  background: rgba(224,122,64,0.1);
}

.ran-risk-badge--deadly {
  color: #c94050;
  border-color: rgba(201,64,80,0.4);
  background: rgba(201,64,80,0.1);
}

/* ── Fog Overlay ────────────────────────────────────────────── */
.ran-pufabi {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(123,94,167,0.08) 0%,
    transparent 60%
  );
}

/* ── Parchment Frame ────────────────────────────────────────── */
.ran-vema {
  position: relative;
  border: 1px solid var(--ran-border);
  border-radius: var(--ran-radius-lg);
  background: rgba(26,23,40,0.6);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
}

.ran-vema::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 30px,
    rgba(200,136,58,0.02) 30px,
    rgba(200,136,58,0.02) 31px
  );
  pointer-events: none;
  z-index: 0;
}

.ran-vema > * {
  position: relative;
  z-index: 1;
}

/* ── Compass Decor ──────────────────────────────────────────── */
.ran-compass-decor {
  position: absolute;
  pointer-events: none;
  opacity: 0.05;
  z-index: 0;
}

/* ── Ambient Media ──────────────────────────────────────────── */
.ran-ambient-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--ran-radius-lg);
  min-height: clamp(220px, 36vh, 440px);
}

.ran-ambient-media--right {
  margin-left: auto;
}

.ran-ambient-media--full {
  position: absolute;
  inset: 0;
  border-radius: 0;
  min-height: unset;
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}

/* ── Footer ─────────────────────────────────────────────────── */
.ran-firabe {
  background: rgba(16, 14, 26, 0.98);
  border-top: 1px solid var(--ran-border);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.ran-firabe__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.ran-femepe {
  font-family: var(--ran-font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ran-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ran-raerfe {
  font-size: 0.85rem;
  color: var(--ran-text-faint);
  font-style: italic;
  margin-top: 0.25rem;
}

.ran-vezemu {
  font-size: 0.8rem;
  color: var(--ran-text-faint);
  line-height: 1.6;
}

.ran-firabe__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.ran-firabe__nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.ran-firabe__nav-link {
  font-size: 0.8rem;
  color: var(--ran-text-faint);
  transition: color var(--ran-transition);
  text-decoration: none;
}

.ran-firabe__nav-link:hover {
  color: var(--ran-primary);
}

/* ── Cookie Banner ──────────────────────────────────────────── */
#ran-lula {
  display: none;
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1000;
}

#ran-lula.ran-zivefu {
  display: block;
}

.ran-lula__inner {
  background: rgba(26,23,40,0.97);
  border: 1px solid var(--ran-border);
  border-radius: var(--ran-radius-lg);
  padding: clamp(1rem, 2.5vw, 1.5rem) clamp(1rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  max-width: 860px;
  margin-inline: auto;
}

.ran-lula__text {
  font-size: 0.88rem;
  color: var(--ran-text-muted);
  line-height: 1.6;
}

.ran-lula__link {
  color: var(--ran-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--ran-transition);
}

.ran-lula__link:hover {
  color: #d99a4a;
}

.ran-lula__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

/* ── Scroll Reveal ──────────────────────────────────────────── */
[data-ran-dupa] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

[data-ran-dupa].ran-dupa--in {
  opacity: 1;
  transform: none;
}

/* ── Legal pages ────────────────────────────────────────────── */
.ran-legal-page {
  padding-top: calc(var(--ran-header-height) + 3rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  min-height: 100vh;
  background: var(--ran-bg);
}

.ran-legal-content {
  max-width: 820px;
  margin-inline: auto;
}

.ran-legal-content h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
  color: var(--ran-text);
}

.ran-legal-content h2 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--ran-primary);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--ran-border-soft);
}

.ran-legal-content h3 {
  font-size: 1rem;
  color: var(--ran-text);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.ran-legal-content p {
  font-size: 0.93rem;
  color: var(--ran-text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.ran-legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.ran-legal-content ul li {
  font-size: 0.93rem;
  color: var(--ran-text-muted);
  line-height: 1.7;
  margin-bottom: 0.4rem;
}

.ran-legal-content a {
  color: var(--ran-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ran-bimu {
  font-size: 0.78rem;
  color: var(--ran-text-faint);
  margin-bottom: 2.5rem;
  font-style: italic;
}

/* ── Demo page ──────────────────────────────────────────────── */
.ran-demo-page {
  padding-top: calc(var(--ran-header-height) + 2rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  min-height: 100vh;
  background: var(--ran-bg);
}

.ran-demo-header {
  position: relative;
  overflow: hidden;
  min-height: clamp(220px, 36vh, 380px);
  border-radius: var(--ran-radius-lg);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: flex-end;
}

.ran-demo-header .ran-apva {
  padding: 2rem;
}

.ran-demo-arena {
  background: var(--ran-bg-card);
  border: 1px solid var(--ran-border);
  border-radius: var(--ran-radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
}

.ran-demo-arena__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ran-border-soft);
}

.ran-demo-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.ran-demo-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ran-demo-stat__val {
  font-family: var(--ran-font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--ran-primary);
  line-height: 1;
}

.ran-demo-stat__lbl {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ran-text-faint);
}

/* Route map grid */
.ran-route-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 1.5rem;
}

.ran-route-cell {
  aspect-ratio: 1;
  border-radius: var(--ran-radius);
  border: 1px solid var(--ran-border-soft);
  background: rgba(26,23,40,0.8);
  cursor: pointer;
  position: relative;
  transition: background var(--ran-transition), border-color var(--ran-transition), transform 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.ran-route-cell:hover:not(.ran-route-cell--revealed):not(.ran-route-cell--blocked) {
  background: rgba(200,136,58,0.15);
  border-color: rgba(200,136,58,0.5);
  transform: scale(1.05);
}

.ran-route-cell--fog {
  background: rgba(26,23,40,0.95);
  border-color: rgba(26,23,40,0.5);
}

.ran-route-cell--revealed {
  background: rgba(200,136,58,0.12);
  border-color: rgba(200,136,58,0.3);
  cursor: default;
}

.ran-route-cell--blocked {
  background: rgba(201,64,80,0.12);
  border-color: rgba(201,64,80,0.3);
  cursor: not-allowed;
}

.ran-route-cell--path {
  background: rgba(200,136,58,0.22);
  border-color: rgba(200,136,58,0.55);
}

.ran-route-cell--player {
  background: rgba(123,94,167,0.3);
  border-color: rgba(123,94,167,0.7);
  box-shadow: 0 0 12px rgba(123,94,167,0.4);
}

.ran-route-cell--goal {
  background: rgba(110,203,138,0.15);
  border-color: rgba(110,203,138,0.5);
  box-shadow: 0 0 10px rgba(110,203,138,0.25);
}

/* Hand of route cards */
.ran-card-hand {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.ran-route-card {
  flex: 1;
  min-width: 80px;
  max-width: 140px;
  padding: 0.65rem 0.75rem;
  border-radius: var(--ran-radius);
  border: 1px solid var(--ran-border);
  background: rgba(26,23,40,0.9);
  cursor: pointer;
  text-align: center;
  transition: background var(--ran-transition), border-color var(--ran-transition), transform 0.15s ease;
}

.ran-route-card:hover:not(.ran-route-card--used) {
  background: rgba(200,136,58,0.1);
  border-color: rgba(200,136,58,0.45);
  transform: translateY(-2px);
}

.ran-route-card--selected {
  background: rgba(200,136,58,0.2);
  border-color: var(--ran-primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(200,136,58,0.25);
}

.ran-route-card--used {
  opacity: 0.35;
  cursor: default;
}

.ran-route-card__icon {
  font-size: 1.25rem;
  display: block;
  margin-bottom: 0.25rem;
}

.ran-route-card__name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ran-text-muted);
  line-height: 1.2;
}

.ran-route-card__steps {
  font-family: var(--ran-font-heading);
  font-size: 1rem;
  font-weight: 900;
  color: var(--ran-primary);
  margin-top: 0.2rem;
}

/* Demo feedback */
.ran-demo-feedback {
  padding: 0.75rem 1rem;
  border-radius: var(--ran-radius);
  background: rgba(123,94,167,0.12);
  border: 1px solid rgba(123,94,167,0.25);
  font-size: 0.88rem;
  color: var(--ran-text-muted);
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-style: italic;
}

.ran-demo-feedback--success {
  background: rgba(110,203,138,0.1);
  border-color: rgba(110,203,138,0.3);
  color: #6ecb8a;
}

.ran-demo-feedback--danger {
  background: rgba(201,64,80,0.1);
  border-color: rgba(201,64,80,0.3);
  color: #e07090;
}

.ran-demo-feedback--win {
  background: rgba(200,136,58,0.15);
  border-color: rgba(200,136,58,0.45);
  color: var(--ran-primary);
  font-style: normal;
  font-weight: 700;
}

/* Progress bar */
.ran-demo-progress {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.ran-demo-progress__fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--ran-secondary), var(--ran-primary));
  transition: width 0.4s ease;
}

/* Rules page */
.ran-rules-page {
  padding-top: calc(var(--ran-header-height) + 2.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  min-height: 100vh;
  background: var(--ran-bg);
}

.ran-rules-section {
  margin-bottom: 2.5rem;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border: 1px solid var(--ran-border);
  border-radius: var(--ran-radius-lg);
  background: var(--ran-bg-card);
}

.ran-rules-section h2 {
  font-family: var(--ran-font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  color: var(--ran-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--ran-border-soft);
}

.ran-rules-section p {
  font-size: 0.93rem;
  color: var(--ran-text-muted);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.ran-rules-section ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0.75rem;
}

.ran-rules-section ul li {
  font-size: 0.93rem;
  color: var(--ran-text-muted);
  line-height: 1.7;
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.4rem;
}

.ran-rules-section ul li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--ran-primary);
  font-size: 0.55rem;
  top: 0.45em;
}

.ran-rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.ran-rules-item {
  padding: 1rem;
  border: 1px solid var(--ran-border-soft);
  border-radius: var(--ran-radius);
  background: rgba(26,23,40,0.5);
  text-align: center;
}

.ran-rules-item__icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.ran-rules-item__name {
  font-family: var(--ran-font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ran-text);
  margin-bottom: 0.3rem;
}

.ran-rules-item__desc {
  font-size: 0.8rem;
  color: var(--ran-text-faint);
  line-height: 1.5;
}

/* ── Utility ────────────────────────────────────────────────── */
.ran-page-top-pad {
  padding-top: var(--ran-header-height);
}

.ran-text-center { text-align: center; }
.ran-text-left { text-align: left; }
.ran-mt-sm { margin-top: 0.75rem; }
.ran-mt-md { margin-top: 1.5rem; }
.ran-mt-lg { margin-top: 2.5rem; }
.ran-mb-sm { margin-bottom: 0.75rem; }
.ran-mb-md { margin-bottom: 1.5rem; }

.ran-divider {
  height: 1px;
  background: var(--ran-border-soft);
  margin-block: clamp(1.5rem, 3vw, 2.5rem);
}

/* ── Mobile Menu ────────────────────────────────────────────── */
@media (max-width: 899px) {
  .ran-teto {
    display: flex;
  }

  .ran-medabu__list {
    display: none;
  }

  .ran-medabu--open .ran-medabu__list {
    position: fixed;
    left: max(0px, env(safe-area-inset-left));
    right: max(0px, env(safe-area-inset-right));
    top: var(--ran-header-height, 72px);
    width: auto;
    max-width: 100vw;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
    max-height: calc(100vh - var(--ran-header-height, 72px));
    max-height: calc(100dvh - var(--ran-header-height, 72px));
    background: rgba(22, 19, 36, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--ran-border);
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.25rem;
  }

  .ran-medabu--open .ran-medabu__item {
    width: 100%;
  }

  .ran-medabu--open .ran-medabu__link {
    padding: 0.8rem 1rem;
    width: 100%;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--ran-border-soft);
  }

  .ran-teto--open .ran-teto__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .ran-teto--open .ran-teto__line:nth-child(2) {
    opacity: 0;
  }

  .ran-teto--open .ran-teto__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .ran-apva {
    padding-inline: clamp(1rem, 4vw, 2rem);
  }

  .ran-moef {
    font-size: clamp(2rem, 8vw, 3.2rem);
  }

  .ran-dibu--voice {
    flex-direction: column;
  }

  .ran-route-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .ran-dolu {
    gap: 1rem 1.75rem;
  }

  .ran-firabe__inner {
    gap: 1.5rem;
  }
}

@media (max-width: 599px) {
  .ran-zien {
    flex-direction: column;
    align-items: flex-start;
  }

  .ran-kili {
    width: 100%;
    justify-content: center;
  }

  .ran-afnuak .ran-zien,
  .ran-afnuak .ran-umbaun--two {
    align-items: center;
  }

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

  .ran-route-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .ran-card-hand {
    gap: 0.5rem;
  }

  .ran-route-card {
    min-width: 60px;
    padding: 0.5rem;
  }

  .ran-lula__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ran-lula__actions .ran-kili {
    width: 100%;
    justify-content: center;
  }

  .ran-demo-stats {
    gap: 1rem;
  }

  .ran-demo-arena__header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Desktop enhancements ───────────────────────────────────── */
@media (min-width: 900px) {
  .ran-firabe__inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .ran-firabe__inner > * {
    flex: 1;
  }

  .ran-rules-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1100px) {
  .ran-umbaun--four {
    grid-template-columns: repeat(4, 1fr);
  }

  .ran-umbaun--three {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Hover states ───────────────────────────────────────────── */
.ran-suriga:focus-within {
  border-color: rgba(200,136,58,0.4);
  outline: none;
}

.ran-firabe__nav-link:focus-visible {
  outline: 2px solid var(--ran-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

.ran-medabu__link:focus-visible {
  outline: 2px solid var(--ran-primary);
  outline-offset: 2px;
}

.ran-route-card:focus-visible {
  outline: 2px solid var(--ran-primary);
  outline-offset: 2px;
}

.ran-route-cell:focus-visible {
  outline: 2px solid var(--ran-primary);
  outline-offset: 2px;
}

/* ── Selection ──────────────────────────────────────────────── */
::selection {
  background: rgba(200,136,58,0.3);
  color: var(--ran-text);
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--ran-bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(200,136,58,0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(200,136,58,0.55);
}

/* A+ CSS coverage repair (bounded) */
.ran-demo-header__kicker {
  display: inline-block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C8883A;
  background: rgba(200, 136, 58, 0.12);
  border: 1px solid rgba(200, 136, 58, 0.4);
  border-radius: 2px;
  padding: 0.3em 0.9em;
  margin-bottom: 1rem;
}
.ran-demo-header__h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: #E8DFC8;
  margin: 0 0 1rem;
  text-shadow: 0 2px 12px rgba(26, 23, 40, 0.8);
  letter-spacing: 0.02em;
}
.ran-demo-header__desc {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(232, 223, 200, 0.78);
  max-width: 56ch;
  margin: 0 0 1.5rem;
}
.ran-demo-media-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 260px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(200, 136, 58, 0.3);
  background: radial-gradient(ellipse at center, rgba(123, 94, 167, 0.18) 0%, rgba(26, 23, 40, 0.95) 70%);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(26, 23, 40, 0.5);
}
.ran-vebude {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: stretch;
  justify-content: flex-start;
  padding: 1.25rem 0;
}
.ran-nobute {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 1rem 1.25rem;
  background: rgba(200, 136, 58, 0.08);
  border: 1px solid rgba(200, 136, 58, 0.28);
  border-radius: 3px;
  position: relative;
  gap: 0.25rem;
}
.ran-nobute::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='4' height='4' viewBox='0 0 4 4' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 3L3 1' stroke='%23C8883A' stroke-width='0.3' stroke-opacity='0.15'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
  border-radius: 3px;
}
.ran-nobute__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}
.ran-nobute__val {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #C8883A;
  line-height: 1;
}
.ran-nobute__lbl {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 223, 200, 0.6);
  text-align: center;
}
.ran-nobute__round {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(200, 136, 58, 0.15);
  border: 1px solid rgba(200, 136, 58, 0.45);
  color: #C8883A;
  font-size: 0.85rem;
  font-family: 'Playfair Display', serif;
  flex-shrink: 0;
}
.ran-turegu {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  padding: 1rem 0;
}
.ran-tudibo {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(123, 94, 167, 0.1);
  border: 1px solid rgba(123, 94, 167, 0.25);
  border-radius: 3px;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.ran-tudibo:hover {
  background: rgba(123, 94, 167, 0.18);
  border-color: rgba(123, 94, 167, 0.5);
}
.ran-tudibo__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  color: rgba(232, 223, 200, 0.85);
}
.ran-tudibo__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(200, 136, 58, 0.18);
  border: 1px solid rgba(200, 136, 58, 0.35);
  color: #C8883A;
  font-size: 0.8rem;
}
.ran-tudibo__count {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #C8883A;
  margin-left: auto;
}
.ran-buekvu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem 0;
}
.ran-demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding: 1.25rem 0;
}
.ran-rimabu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(200, 136, 58, 0.1) 0%, rgba(26, 23, 40, 0.7) 100%);
  border: 1px solid rgba(200, 136, 58, 0.3);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.ran-rimabu::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(200, 136, 58, 0.2) 0%, transparent 70%);
  pointer-events: none;
}
.ran-rimabu__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #E8DFC8;
  margin: 0;
  letter-spacing: 0.02em;
}
.ran-rimabu__sub {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.875rem;
  color: rgba(232, 223, 200, 0.65);
  margin: 0;
  line-height: 1.5;
}
.ran-rimabu__stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 1rem;
  background: rgba(26, 23, 40, 0.5);
  border-left: 3px solid #C8883A;
  border-radius: 0 2px 2px 0;
}
.ran-rimabu__stat-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #C8883A;
  line-height: 1;
}
.ran-rimabu__stat-lbl {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232, 223, 200, 0.55);
}
.ran-kiveza {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  padding: 0.75rem 0;
}
.ran-demo-legend {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  background: rgba(26, 23, 40, 0.75);
  border: 1px solid rgba(232, 223, 200, 0.15);
  border-radius: 4px;
}
.ran-demo-legend__title {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #E8DFC8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(200, 136, 58, 0.3);
  padding-bottom: 0.5rem;
  margin: 0;
}
.ran-demo-legend__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem 1rem;
}
.ran-demo-legend__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem;
  color: rgba(232, 223, 200, 0.75);
}
.ran-demo-legend__item::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #C8883A;
  flex-shrink: 0;
}
.ran-demo-howto {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(160deg, rgba(123, 94, 167, 0.12) 0%, rgba(26, 23, 40, 0.8) 100%);
  border: 1px solid rgba(123, 94, 167, 0.3);
  border-radius: 4px;
}
.ran-demo-howto__inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.ran-demo-howto__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #E8DFC8;
  margin: 0;
  letter-spacing: 0.03em;
}
.ran-demo-howto__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.ran-demo-howto__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  color: rgba(232, 223, 200, 0.8);
  line-height: 1.5;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(232, 223, 200, 0.07);
}
.ran-demo-howto__list li::before {
  content: '→';
  color: #C8883A;
  flex-shrink: 0;
  font-size: 0.85rem;
  margin-top: 0.1em;
}
.ran-demo-save-notice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  background: rgba(200, 136, 58, 0.1);
  border: 1px solid rgba(200, 136, 58, 0.35);
  border-left-width: 4px;
  border-radius: 3px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.875rem;
  color: rgba(232, 223, 200, 0.85);
  line-height: 1.5;
}
.ran-demo-cta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(90deg, rgba(200, 136, 58, 0.18) 0%, rgba(123, 94, 167, 0.14) 100%);
  border: 1px solid rgba(200, 136, 58, 0.35);
  border-radius: 4px;
  margin-top: 1rem;
}
.ran-bugutu {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  background: rgba(26, 23, 40, 0.9);
  border: 1px solid rgba(232, 223, 200, 0.12);
  border-radius: 4px;
  max-width: 860px;
  margin: 0 auto;
}
.ran-vokodi {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(200, 136, 58, 0.25);
}
.ran-vedene {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #E8DFC8;
  margin: 0;
  letter-spacing: 0.02em;
}
.ran-duke {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(200, 136, 58, 0.8);
  margin: 0;
}
.ran-desero {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.ran-mivugo {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  background: rgba(232, 223, 200, 0.04);
  border-radius: 3px;
  border-left: 3px solid rgba(123, 94, 167, 0.5);
}
.ran-mivugo h3,
.ran-mivugo h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #E8DFC8;
  margin: 0 0 0.25rem;
}
.ran-mivugo p {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  color: rgba(232, 223, 200, 0.72);
  line-height: 1.65;
  margin: 0;
}
.ran-mivugo a {
  color: #C8883A;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}
.ran-mivugo a:hover {
  color: #e0a060;
}