/* =======================================================
   American West Roleplay : Stylesheet
   styles.css   |   1902 Western RedM
   Sepia / gold engraving palette pulled from the brand art.
   ======================================================= */

:root {
  --bg:        #14100a;
  --bg2:       #1c150c;
  --panel:     #211910;
  --panel2:    #2a2013;
  --paper:     #f2e6cc;
  --paper2:    #e6d6b0;
  --ink:       #2a1c0d;
  --ink2:      #4a3318;
  --cream:     #f2e6cc;
  --cream-dim: #c9b88f;
  --gold:      #c9a23a;
  --gold2:     #e3c25a;
  --gold-deep: #8a6c1f;
  --rust:      #8b3a1a;
  --rust2:     #b8502a;
  --sepia:     #6b4f2a;
  --border:    #4a3818;
  --border-lt: #6b5226;
  --shadow:    rgba(0,0,0,0.5);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at top, rgba(60,42,18,0.55), transparent 60%),
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(0,0,0,0.18) 39px, rgba(0,0,0,0.18) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(0,0,0,0.10) 39px, rgba(0,0,0,0.10) 40px);
  color: var(--cream);
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold2); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }

/* SECTION FRAME */
.section { padding: 4.5rem 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg2), var(--bg)); }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-kicker {
  font-family: 'Special Elite', monospace;
  font-size: .72rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold); opacity: .85;
}
.section-title {
  font-family: 'Rye', 'Playfair Display', Georgia, serif;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  color: var(--cream); line-height: 1.1; margin-top: .5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,.6);
}
.section-sub {
  font-style: italic; color: var(--cream-dim);
  max-width: 620px; margin: .75rem auto 0;
}
.rule-orn {
  display: flex; align-items: center; gap: 1rem;
  max-width: 320px; margin: 1.1rem auto 0; color: var(--gold);
}
.rule-orn::before, .rule-orn::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* NAV */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1.5rem;
  background: linear-gradient(180deg, rgba(10,7,3,.95), rgba(10,7,3,.35));
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s, padding .25s;
}
.site-nav.scrolled {
  background: rgba(14,10,5,.97);
  border-bottom: 1px solid var(--border);
  padding: .5rem 1.5rem;
  box-shadow: 0 4px 20px var(--shadow);
}
.nav-brand {
  font-family: 'Rye', 'Playfair Display', serif;
  font-size: 1.05rem; color: var(--gold2); letter-spacing: .02em;
  display: flex; align-items: center; gap: .55rem;
}
.nav-brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a {
  font-family: 'Special Elite', monospace;
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cream-dim);
}
.nav-links a:hover { color: var(--gold2); }
.nav-cta {
  font-family: 'Special Elite', monospace;
  font-size: .74rem !important; letter-spacing: .1em;
  background: var(--rust); color: var(--cream) !important;
  padding: .5rem .95rem; border-radius: 4px;
  border: 1px solid var(--rust2);
}
.nav-cta:hover { background: var(--rust2); }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--gold2); font-size: 1.6rem; line-height: 1;
}

/* HERO */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 7rem 1.25rem 3rem; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(20,14,8,.25), rgba(14,10,5,.92) 78%),
    repeating-linear-gradient(45deg, transparent, transparent 9px, rgba(201,162,58,.025) 9px, rgba(201,162,58,.025) 10px);
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero-banner {
  width: min(620px, 90vw); margin: 0 auto 1.25rem;
  /* the banner art ships on a solid black plate; `screen` keys the
     black out so it sits cleanly on the dark theme. */
  mix-blend-mode: screen;
  filter: drop-shadow(0 8px 30px rgba(0,0,0,.5));
}
.hero-tagline {
  font-family: 'Special Elite', monospace;
  font-size: clamp(.8rem, 2.2vw, 1rem);
  letter-spacing: .35em; text-transform: uppercase; color: var(--gold2);
}
.hero-year { color: var(--rust2); }
.hero-blurb {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-style: italic; color: var(--cream); margin: 1.1rem auto 0; max-width: 560px;
  text-shadow: 0 2px 8px rgba(0,0,0,.7);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.8rem; }
.btn {
  font-family: 'Special Elite', monospace;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .85rem 1.6rem; border-radius: 5px; cursor: pointer;
  border: 1px solid var(--border-lt); transition: all .15s;
}
.btn-primary { background: var(--rust); color: var(--cream); border-color: var(--rust2); }
.btn-primary:hover { background: var(--rust2); color: var(--cream); transform: translateY(-1px); }
.btn-ghost { background: rgba(242,230,204,.04); color: var(--gold2); }
.btn-ghost:hover { background: rgba(201,162,58,.12); color: var(--gold2); border-color: var(--gold); }
.btn.is-placeholder { opacity: .6; }
.hero-scroll {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  z-index: 2; color: var(--gold); font-size: 1.4rem; opacity: .6; animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0);} 50% { transform: translateX(-50%) translateY(7px);} }

/* STAT STRIP */
.stat-strip {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  width: min(760px, 92vw); margin: 2.5rem auto 0;
}
.stat-card {
  background: rgba(33,25,16,.7); border: 1px solid var(--border);
  border-radius: 7px; padding: .9rem .5rem; text-align: center;
  backdrop-filter: blur(2px);
}
.stat-card .sn {
  font-family: 'Rye', 'Playfair Display', serif;
  font-size: clamp(1.2rem, 3vw, 1.7rem); color: var(--gold2); line-height: 1;
}
.stat-card .sl {
  font-family: 'Special Elite', monospace; font-size: .6rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--cream-dim); margin-top: 6px;
}

/* WORLD */
.world-copy { max-width: 760px; margin: 0 auto; }
.world-copy p { margin-bottom: 1.1rem; font-size: 1.12rem; }
.world-copy p:first-child::first-letter {
  font-family: 'Rye', serif; float: left; font-size: 3.4rem; line-height: .8;
  padding: .1em .12em 0 0; color: var(--gold2);
}

/* SYSTEMS */
.systems-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px;
}
.feature-card {
  display: flex; align-items: flex-start; gap: 14px; text-align: left;
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border: 1px solid var(--border); border-radius: 9px;
  padding: 1.1rem 1.2rem; cursor: pointer; color: inherit; font: inherit;
  position: relative; overflow: hidden; transition: border-color .15s, transform .12s, box-shadow .15s;
}
.feature-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold); opacity: 0; transition: opacity .15s;
}
.feature-card:hover { border-color: var(--gold-deep); transform: translateY(-2px); box-shadow: 0 8px 24px var(--shadow); }
.feature-card:hover::before { opacity: 1; }
.fc-icon {
  font-size: 1.7rem; flex-shrink: 0; width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(201,162,58,.1); border: 1px solid var(--border-lt); border-radius: 8px;
}
.fc-body { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.fc-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.15rem; color: var(--cream); }
.fc-short { font-size: .98rem; color: var(--cream-dim); line-height: 1.45; }
.fc-more {
  font-family: 'Special Elite', monospace; font-size: .62rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold); opacity: 0; transition: opacity .15s; align-self: flex-end;
}
.feature-card:hover .fc-more { opacity: 1; }

/* ROLES */
.roles-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px;
}
.role-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 7px;
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border: 1px solid var(--border); border-radius: 9px;
  padding: 1.4rem 1rem; cursor: pointer; color: inherit; font: inherit;
  transition: border-color .15s, transform .12s, box-shadow .15s;
}
.role-card:hover { border-color: var(--gold-deep); transform: translateY(-2px); box-shadow: 0 8px 24px var(--shadow); }
.rc-icon {
  font-size: 2rem; width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(201,162,58,.16), rgba(201,162,58,.03));
  border: 1px solid var(--border-lt); margin-bottom: .2rem;
}
.rc-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.1rem; color: var(--cream); }
.rc-short { font-size: .9rem; color: var(--cream-dim); line-height: 1.4; }

/* ACTIVITIES */
.activities-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; max-width: 920px; margin: 0 auto;
}
.activity-chip {
  display: flex; align-items: center; gap: 10px;
  background: rgba(33,25,16,.6); border: 1px solid var(--border);
  border-left: 3px solid var(--gold-deep); border-radius: 5px;
  padding: .7rem .9rem; font-size: 1rem; color: var(--paper2);
}
.activity-chip span { font-size: 1.25rem; }

/* TOWNS */
.towns-list {
  list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px; max-width: 820px; margin: 0 auto;
}
.towns-list li {
  display: flex; align-items: center; gap: 9px;
  font-family: 'Playfair Display', serif; font-size: 1.08rem; color: var(--cream);
  padding: .55rem .25rem; border-bottom: 1px dotted var(--border);
}
.town-star { color: var(--gold); font-size: .8rem; }

/* GETTING STARTED */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.step-card {
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border: 1px solid var(--border); border-radius: 9px; padding: 1.4rem 1.3rem; position: relative;
}
.step-n {
  font-family: 'Rye', serif; font-size: 2rem; color: var(--gold2);
  line-height: 1; margin-bottom: .5rem;
}
.step-t { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.15rem; color: var(--cream); margin-bottom: .4rem; }
.step-d { font-size: .98rem; color: var(--cream-dim); line-height: 1.5; }
.start-note {
  text-align: center; margin-top: 2rem; font-style: italic; color: var(--cream-dim);
}
.start-note b { color: var(--gold2); font-style: normal; font-family: 'Special Elite', monospace; letter-spacing: .05em; }

/* MODAL */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(8,5,2,.88); align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal-box {
  position: relative; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
  background: linear-gradient(180deg, #241a0f, #1b140b);
  border: 2px solid var(--gold-deep); border-radius: 11px;
  padding: 1.9rem 1.8rem; box-shadow: 0 16px 60px rgba(0,0,0,.8);
}
.modal-box::before {
  content: ""; position: absolute; inset: 5px; border: 1px solid var(--border); border-radius: 8px; pointer-events: none;
}
.modal-close {
  position: absolute; top: .9rem; right: 1.1rem; background: none; border: none;
  font-size: 1.8rem; line-height: 1; color: var(--cream-dim); cursor: pointer; z-index: 1;
}
.modal-close:hover { color: var(--rust2); }
.modal-head { display: flex; align-items: center; gap: 14px; padding-right: 2rem; }
.modal-icon {
  font-size: 2rem; width: 56px; height: 56px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(201,162,58,.12); border: 1px solid var(--border-lt);
}
.modal-head h3 { font-family: 'Rye', 'Playfair Display', serif; font-size: 1.5rem; color: var(--cream); line-height: 1.15; }
.modal-rule { border: none; border-top: 1px solid var(--border); margin: 1rem 0; }
.modal-lead { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--gold2); margin-bottom: .7rem; }
.modal-detail { font-size: 1.05rem; color: var(--paper2); line-height: 1.6; }

/* FOOTER */
.site-footer {
  background: #0c0804; border-top: 2px solid var(--gold-deep);
  padding: 2.5rem 1.25rem; text-align: center;
}
.foot-brand { font-family: 'Rye', 'Playfair Display', serif; font-size: 1.4rem; color: var(--gold2); }
.foot-tag {
  font-family: 'Special Elite', monospace; font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--cream-dim); margin-top: .5rem;
}
.foot-links { display: flex; gap: 1.4rem; justify-content: center; margin: 1.2rem 0; flex-wrap: wrap; }
.foot-links a { font-family: 'Special Elite', monospace; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold2); }
.foot-fine { font-size: .85rem; color: var(--sepia); max-width: 560px; margin: 0 auto; line-height: 1.5; }

/* NAV STATUS PILL */
.nav-status {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Special Elite', monospace; font-size: .66rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--cream-dim);
  background: rgba(0,0,0,.35); border: 1px solid var(--border);
  border-radius: 999px; padding: .35rem .7rem;
}
.nav-status .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cream-dim);
  box-shadow: 0 0 0 0 rgba(0,0,0,0);
}
.nav-status.is-online  { color: #b9d99a; border-color: #3c5a2a; }
.nav-status.is-online  .dot { background: #6fbf3a; box-shadow: 0 0 8px rgba(111,191,58,.8); animation: pulse 2s infinite; }
.nav-status.is-offline { color: #d99a8a; border-color: #5a2f24; }
.nav-status.is-offline .dot { background: var(--rust2); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/*  LIVE WIDGET (hero)  */
.live-widget {
  position: relative; z-index: 2;
  width: min(380px, 92vw); margin: 1.8rem auto 0;
  background: linear-gradient(180deg, rgba(36,26,15,.92), rgba(20,15,9,.92));
  border: 1px solid var(--border-lt); border-radius: 12px;
  padding: 1.3rem 1.4rem; box-shadow: 0 10px 36px var(--shadow); backdrop-filter: blur(3px);
}
.lw-top { display: flex; align-items: center; justify-content: center; gap: 9px; }
.lw-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cream-dim); }
.lw-dot.on  { background: #6fbf3a; box-shadow: 0 0 10px rgba(111,191,58,.85); animation: pulse 2s infinite; }
.lw-dot.off { background: var(--rust2); }
.lw-state {
  font-family: 'Special Elite', monospace; font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cream-dim);
}
.lw-count {
  font-family: 'Rye', serif; font-size: 2.8rem; line-height: 1; color: var(--gold2);
  text-align: center; margin: .5rem 0 .1rem;
}
.lw-max { font-size: 1.1rem; color: var(--cream-dim); margin-left: .3rem; }
.lw-label {
  text-align: center; font-style: italic; color: var(--cream-dim); font-size: .92rem; margin-bottom: .8rem;
}
.lw-bar { height: 8px; background: rgba(0,0,0,.4); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lw-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold2)); transition: width .6s ease; }
.lw-cta { display: flex; gap: .6rem; margin-top: 1rem; }
.lw-cta .btn { flex: 1; text-align: center; padding: .7rem .5rem; }

/*  PAGE HERO (rules / lore)  */
.page-hero {
  position: relative; text-align: center; padding: 8rem 1.25rem 3rem;
  border-bottom: 2px solid var(--gold-deep);
  background:
    radial-gradient(ellipse at top, rgba(60,42,18,.5), transparent 65%),
    linear-gradient(180deg, #0e0a05, var(--bg));
}
.page-hero-mark { width: 92px; margin: 0 auto 1rem; opacity: .95; filter: drop-shadow(0 6px 18px rgba(0,0,0,.6)); }
.page-hero-title {
  font-family: 'Rye', 'Playfair Display', serif;
  font-size: clamp(2rem, 6vw, 3.2rem); color: var(--cream); line-height: 1.05;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.page-hero-sub { font-style: italic; color: var(--cream-dim); max-width: 560px; margin: .8rem auto 0; }

.wrap-narrow { max-width: 820px; }

/* RULES */
.rule-group {
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border: 1px solid var(--border); border-left: 3px solid var(--gold-deep);
  border-radius: 9px; padding: 1.3rem 1.5rem; margin-bottom: 1rem;
}
.rule-group-head {
  display: flex; align-items: center; gap: 11px;
  font-family: 'Rye', 'Playfair Display', serif; font-size: 1.3rem; color: var(--gold2);
  margin-bottom: .9rem;
}
.rule-group-head span { font-size: 1.3rem; }
.rule-items { margin: 0; padding-left: 1.3rem; }
.rule-items li { margin-bottom: .65rem; color: var(--paper2); line-height: 1.55; }
.rule-items li::marker { color: var(--gold); font-family: 'Special Elite', monospace; }

/* LORE */
.lore-block {
  border-bottom: 1px dotted var(--border); padding: 1.6rem 0;
}
.lore-block:first-child { padding-top: 0; }
.lore-block:last-child { border-bottom: none; }
.lore-head {
  display: flex; align-items: center; gap: 11px;
  font-family: 'Rye', 'Playfair Display', serif; font-size: 1.4rem; color: var(--cream); margin-bottom: .6rem;
}
.lore-head span { color: var(--gold2); }
.lore-block p { color: var(--paper2); font-size: 1.1rem; line-height: 1.7; }

/* CRAFTING : CONTROLS */
.controls-wrap {
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border: 1px solid var(--border); border-radius: 9px;
  padding: 1rem 1.1rem; margin: 1.25rem 0;
}
.controls-row { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.search-wrap {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 220px;
  background: rgba(0,0,0,.3); border: 1px solid var(--border); border-radius: 6px; padding: 0 10px;
}
.search-wrap svg { color: var(--cream-dim); flex-shrink: 0; }
.search-wrap input {
  border: none; background: transparent; color: var(--cream);
  font-family: 'Crimson Text', Georgia, serif; font-size: 1rem; padding: 9px 4px; width: 100%; outline: none;
}
.search-wrap input::placeholder { color: var(--cream-dim); font-style: italic; }
.ctrl-select {
  font-family: 'Crimson Text', Georgia, serif; font-size: .95rem; color: var(--cream);
  background: rgba(0,0,0,.3); border: 1px solid var(--border); border-radius: 6px;
  padding: 9px 10px; cursor: pointer; outline: none;
}
.ctrl-select:focus, .search-wrap:focus-within { border-color: var(--gold-deep); }
.ctrl-select option { background: var(--panel2); color: var(--cream); }

/* CRAFTING : TABS */
.tabs-wrap { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1.25rem; }
.tab {
  font-family: 'Special Elite', monospace; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 12px; background: rgba(33,25,16,.7); border: 1px solid var(--border);
  border-radius: 5px; cursor: pointer; color: var(--cream-dim); transition: all .15s;
}
.tab:hover { background: var(--panel2); color: var(--cream); border-color: var(--border-lt); }
.tab.active { background: var(--rust); border-color: var(--rust2); color: var(--cream); }

/* CRAFTING : GRID + CARDS */
.recipes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.recipe-card {
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border: 1px solid var(--border); border-radius: 9px; padding: 14px 16px;
  cursor: pointer; position: relative; overflow: hidden;
  transition: border-color .15s, transform .12s, box-shadow .15s;
}
.recipe-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold); opacity: 0; transition: opacity .15s;
}
.recipe-card:hover { border-color: var(--gold-deep); transform: translateY(-2px); box-shadow: 0 8px 24px var(--shadow); }
.recipe-card:hover::before { opacity: 1; }
.card-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 9px; }
.card-icon {
  width: 38px; height: 38px; border-radius: 7px; flex-shrink: 0; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.card-title-wrap { flex: 1; min-width: 0; }
.card-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.02rem; color: var(--cream); line-height: 1.2; }
.card-job { font-family: 'Special Elite', monospace; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--cream-dim); margin-top: 3px; }
.tier-badge {
  font-family: 'Special Elite', monospace; font-size: .6rem; letter-spacing: .07em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 3px; flex-shrink: 0; margin-top: 2px;
}
.card-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; margin-top: 6px; }
.chain-step {
  font-family: 'Crimson Text', Georgia, serif; font-size: .85rem; color: var(--paper2);
  background: rgba(0,0,0,.28); border: 1px solid var(--border); padding: 1px 7px; border-radius: 3px;
}
.chain-arr { color: var(--gold); font-size: .85rem; }
.card-note {
  font-family: 'Crimson Text', Georgia, serif; font-style: italic; font-size: .88rem; color: var(--cream-dim);
  margin-top: 8px; line-height: 1.45; border-top: 1px solid var(--border); padding-top: 8px;
}
.empty-state {
  text-align: center; padding: 4rem 2rem; color: var(--cream-dim);
  font-family: 'Crimson Text', Georgia, serif; font-style: italic; font-size: 1.2rem;
}
.empty-state::before { content: "✦"; display: block; font-size: 2rem; margin-bottom: .75rem; color: var(--gold); opacity: .5; }

/* CRAFTING : MODAL CONTENT */
.rc-sub { font-family: 'Special Elite', monospace; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--cream-dim); margin-top: 5px; }
.rc-label { font-family: 'Special Elite', monospace; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 7px; }
.rc-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.rc-chip { font-family: 'Crimson Text', serif; font-size: .9rem; background: rgba(0,0,0,.28); border: 1px solid var(--border); padding: 2px 9px; border-radius: 4px; color: var(--paper2); }
.rc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.rc-list { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; }
.rc-list li { background: rgba(0,0,0,.28); border: 1px solid var(--border); border-radius: 4px; font-size: .92rem; padding: 3px 9px; color: var(--paper2); }
.rc-out li { background: rgba(111,191,58,.12); border-color: #3c5a2a; color: #c4e0a6; font-weight: 600; }
.rc-none { font-style: italic; font-size: .9rem; color: var(--cream-dim); }
.rc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rc-meta-item { background: rgba(0,0,0,.28); border: 1px solid var(--border); border-radius: 6px; padding: .55rem .75rem; }
.rc-meta-k { font-family: 'Special Elite', monospace; font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cream-dim); }
.rc-meta-v { font-size: .95rem; color: var(--cream); margin-top: 2px; }
.rc-deps { display: flex; flex-wrap: wrap; gap: 5px; }
.rc-dep { font-family: 'Crimson Text', serif; font-size: .88rem; background: rgba(201,162,58,.1); border: 1px solid var(--border-lt); color: var(--gold2); border-radius: 4px; padding: 2px 10px; }
.rc-note { font-family: 'Crimson Text', serif; font-style: italic; font-size: .96rem; color: var(--paper2); background: rgba(0,0,0,.25); border-left: 3px solid var(--gold); border-radius: 0 5px 5px 0; padding: .6rem .85rem; line-height: 1.5; }

/* RESPONSIVE */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(14,10,5,.99); border-top: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .25s;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links a { padding: .9rem 1.5rem; border-bottom: 1px solid var(--border); }
  .nav-cta { margin: .8rem 1.5rem; text-align: center; }
}
@media (max-width: 560px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .rc-cols, .rc-meta { grid-template-columns: 1fr; }
  .recipes-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-links .nav-status { margin: .6rem 1.5rem; justify-content: center; }
}
