:root {
  --felt: #0e3b2e;
  --felt-dark: #0a2a20;
  --bg: #07120e;
  --bg-2: #0b1a14;
  --brass: #c9a24b;
  --brass-soft: #9c7e3a;
  --bone: #ece7d9;
  --bone-dim: #a9a593;
  --green: #5bbf7b;
  --red: #a41e22;
  --line: #1c3a30;
}

* { box-sizing: border-box; }

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--bone);
  background: radial-gradient(120% 70% at 50% -10%, #0f2a20 0%, var(--bg) 60%, #05100c 100%) fixed;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.guides-page {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 24px 18px 70px;
}

.topbar {
  position: relative;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--bone);
  font: 600 17px/1.2 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  letter-spacing: .01em;
  text-decoration: none;
}

.brand .dot {
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--brass);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #1bbf66, var(--felt) 70%);
}

.back-link {
  display: flex;
  align-items: center;
  min-height: 42px;
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--bone-dim);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: .15s;
}

.back-link:hover {
  border-color: var(--brass-soft);
  color: var(--bone);
  background: rgba(255, 255, 255, .04);
}

.nav-wrap { position: relative; z-index: 1001; flex-shrink: 0; }

.nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--bone);
  background: #0c1c16;
  font: 600 13px/1.2 inherit;
  letter-spacing: .02em;
  cursor: pointer;
}

.nav-btn:hover { border-color: var(--brass-soft); background: #102820; }
.nav-icon { display: flex; width: 16px; flex-direction: column; gap: 4px; }
.nav-icon span { display: block; height: 1.5px; border-radius: 2px; background: currentColor; transition: .2s; }
.nav-btn.open .nav-icon span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-btn.open .nav-icon span:nth-child(2) { opacity: 0; }
.nav-btn.open .nav-icon span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1002;
  display: none;
  min-width: 250px;
  padding: 8px;
  border: 1px solid var(--brass-soft);
  border-radius: 12px;
  background: linear-gradient(180deg, #0f2318, #07120e);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
}

.nav-dropdown.open { display: block; animation: dropIn .15s ease; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.nav-section { padding: 8px 10px 4px; color: var(--bone-dim); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--bone); font-size: 14px; font-weight: 600; text-decoration: none; }
.nav-link:hover { color: var(--brass); background: rgba(201, 162, 75, .1); }
.nav-link .nl-icon { width: 25px; flex-shrink: 0; text-align: center; }
.nav-link .nl-sub { display: block; margin-top: 1px; color: var(--bone-dim); font-size: 11px; font-weight: 500; }
.nav-divider { height: 1px; margin: 6px 0; background: var(--line); }

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 24px;
  color: var(--bone-dim);
  font-size: 12px;
}

.breadcrumb a { color: var(--bone-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--brass); }
.breadcrumb span[aria-hidden="true"] { color: var(--brass-soft); }

.guides-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
  gap: clamp(30px, 6vw, 72px);
  align-items: end;
  padding: 24px 0 52px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--brass);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .25em;
  text-transform: uppercase;
}

.eyebrow::before { width: 32px; height: 1px; background: var(--brass-soft); content: ""; }
.guides-hero h1 { max-width: 750px; margin: 0; font: 600 clamp(42px, 7vw, 72px)/1 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; letter-spacing: -.03em; }
.guides-intro { max-width: 720px; margin: 22px 0 0; color: #c5c0af; font-size: clamp(17px, 2vw, 20px); line-height: 1.65; }

.guide-values {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--line);
}

.guide-value { padding: 17px 19px; background: linear-gradient(145deg, #0d2118, #091711); }
.guide-value b { display: block; margin-bottom: 2px; color: var(--bone); font-size: 14px; }
.guide-value span { color: var(--bone-dim); font-size: 12px; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 21px;
}

.section-kicker { margin: 0 0 7px; color: var(--brass); font-size: 11px; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.section-heading h2 { margin: 0; font: 600 clamp(29px, 4vw, 40px)/1.1 "Iowan Old Style", Palatino, Georgia, serif; letter-spacing: -.015em; }
.section-heading > p { max-width: 430px; margin: 0; color: var(--bone-dim); font-size: 14px; }

.soro-section { padding: 54px 0 62px; border-top: 1px solid var(--line); }
.soro-shell {
  min-width: 0;
  padding: clamp(13px, 2.5vw, 24px);
  overflow-x: auto;
  border: 1px solid rgba(201, 162, 75, .32);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(201, 162, 75, .055), rgba(255, 255, 255, .018));
  box-shadow: 0 20px 55px rgba(0, 0, 0, .24);
}

#soro-blog {
  min-width: 0;
  min-height: 220px;
}

#soro-blog:empty {
  display: grid;
  place-items: center;
  padding: 42px 20px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--bone-dim);
  text-align: center;
}

#soro-blog:empty::before { max-width: 380px; content: "Articles published through Soro will appear here automatically."; }
.soro-fallback { margin: 14px 0 0; color: var(--bone-dim); font-size: 13px; }
.soro-fallback a { color: var(--brass); }

/* Soro injects its light-theme CSS after this stylesheet. The #soro-blog
   prefix gives these dark-page colours enough specificity to override it. */
#soro-blog .soro-blog { color: var(--bone); }
#soro-blog .soro-blog-card {
  color: var(--bone);
  border-color: var(--line);
  background: rgba(7, 18, 14, .28);
}
#soro-blog .soro-blog-card:hover {
  border-color: var(--brass-soft);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
}
#soro-blog .soro-blog-card-title,
#soro-blog .soro-blog-article-title,
#soro-blog .soro-blog-article-content,
#soro-blog .soro-blog-article-content h1,
#soro-blog .soro-blog-article-content h2,
#soro-blog .soro-blog-article-content h3 { color: var(--bone); }
#soro-blog .soro-blog-card-excerpt,
#soro-blog .soro-blog-card-date,
#soro-blog .soro-blog-article-date,
#soro-blog .soro-blog-empty,
#soro-blog .soro-blog-loading { color: var(--bone-dim); }
#soro-blog .soro-blog-article-content a { color: var(--brass); text-decoration: underline; }
#soro-blog .soro-blog-back {
  color: var(--bone-dim);
  border-color: var(--line);
}
#soro-blog .soro-blog-back:hover {
  color: var(--bone);
  border-color: var(--brass-soft);
  background: rgba(201, 162, 75, .08);
}
#soro-blog .soro-blog-spinner {
  border-color: var(--line);
  border-top-color: var(--brass);
}
#soro-blog .soro-blog-error { color: #ff8585; }

.game-links-section { padding: 48px 0 54px; border-top: 1px solid var(--line); }
.game-button-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 11px; }
.game-button {
  display: flex;
  min-width: 0;
  min-height: 62px;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--bone);
  background: linear-gradient(145deg, #0d2118, #091711);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
  text-decoration: none;
  transition: transform .15s, border-color .15s, box-shadow .15s, background .15s;
}
.game-button-icon { width: 30px; height: 30px; flex: 0 0 auto; object-fit: contain; }
.game-button:hover {
  border-color: var(--brass-soft);
  background: linear-gradient(145deg, #113023, #0a1c15);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
  transform: translateY(-2px);
}
.game-button:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.library-section { padding: 55px 0 18px; border-top: 1px solid var(--line); }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.guide-card { display: flex; min-width: 0; min-height: 205px; flex-direction: column; padding: 21px; border: 1px solid var(--line); border-radius: 15px; color: var(--bone); background: linear-gradient(145deg, #0d2118, #091711); text-decoration: none; transition: transform .15s, border-color .15s, box-shadow .15s; }
.guide-card:hover { border-color: var(--brass-soft); transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0, 0, 0, .34); }
.guide-card-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 16px; border: 1px solid rgba(201, 162, 75, .22); border-radius: 11px; background: rgba(201, 162, 75, .07); font-size: 21px; }
.guide-card h3 { margin: 0 0 8px; font: 600 20px/1.25 "Iowan Old Style", Palatino, Georgia, serif; }
.guide-card p { flex: 1; margin: 0 0 17px; color: var(--bone-dim); font-size: 13px; line-height: 1.6; }
.guide-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--brass); font-size: 11px; font-weight: 800; letter-spacing: .03em; }

.site-footer-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; margin: 58px 0 26px; padding-top: 28px; border-top: 1px solid var(--line); }
.site-footer-nav .sfn-col { min-width: 0; }
.site-footer-nav .sfn-title { margin: 0 0 10px; color: var(--brass); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.site-footer-nav a { display: block; padding: 4px 0; color: var(--bone-dim); font-size: 13px; text-decoration: none; }
.site-footer-nav a:hover,
.site-footer-nav a.current { color: var(--bone); }
.site-footer-nav a.current { color: var(--brass); font-weight: 750; }
.rg-footer { margin-top: 20px; padding: 14px 0 4px; border-top: 1px solid var(--line); }
.rg-inner { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; color: var(--bone-dim); font-size: 11.5px; }
.rg-18 { flex-shrink: 0; padding: 3px 8px; border-radius: 5px; color: #fff; background: var(--red); font-size: 10px; font-weight: 900; letter-spacing: .05em; }
.rg-inner a { border-bottom: 1px solid rgba(169, 165, 147, .3); color: var(--bone-dim); text-decoration: none; }
.rg-inner a:hover { color: var(--bone); }
.site-footer { margin-top: 45px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--bone-dim); font-size: 12.5px; text-align: center; }

@media (max-width: 900px) {
  .guides-hero { grid-template-columns: 1fr; }
  .guide-values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game-button-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .section-heading { align-items: start; flex-direction: column; gap: 10px; }
  .site-footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
}

@media (max-width: 600px) {
  .guides-page { padding: 20px 16px 60px; }
  .topbar { gap: 12px; }
  .back-link { display: none; }
  .breadcrumb { margin-bottom: 14px; }
  .guides-hero { gap: 28px; padding: 18px 0 42px; }
  .guides-hero h1 { font-size: clamp(40px, 13vw, 58px); }
  .guide-values { grid-template-columns: 1fr; }
  .game-links-section { padding: 40px 0 46px; }
  .game-button-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .game-button { min-height: 58px; padding: 12px; font-size: 12px; }
  .guide-grid { grid-template-columns: 1fr; }
  .soro-section { padding: 44px 0 52px; }
  .soro-shell { margin-inline: -4px; padding: 10px; }
}

@media (max-width: 420px) {
  .site-footer-nav { grid-template-columns: 1fr; gap: 20px; }
  .rg-sep { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
