@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --void: #070a12;
  --night: #0b1020;
  --deep: #10172a;
  --panel: #121b31;
  --panel-bright: #16213a;
  --ink: #f5f2eb;
  --muted: #8f9bb7;
  --faint: #65718d;
  --line: rgba(164, 181, 216, .17);
  --line-bright: rgba(212, 225, 255, .27);
  --gold: #d9a250;
  --gold-bright: #f0c873;
  --orange: #da6a3d;
  --mint: #71d8c4;
  --purple: #7a6cf1;
  --rose: #e77d8a;
  --shadow: 0 28px 80px rgba(0, 0, 0, .34);
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--void); }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--void); font-family: Manrope, system-ui, sans-serif; }
body::before { content: ''; position: fixed; inset: 0; z-index: -5; pointer-events: none; background: radial-gradient(circle at 8% 28%, rgba(50, 104, 143, .12), transparent 28%), radial-gradient(circle at 90% 58%, rgba(91, 66, 176, .13), transparent 30%); }
body.modal-open { overflow: hidden; }
button, input, select { font: inherit; }
button, select, input { outline-color: var(--gold); }
a { color: inherit; }

.scroll-progress { position: fixed; inset: 0 0 auto; z-index: 30; height: 3px; pointer-events: none; background: rgba(0, 0, 0, .18); }
.scroll-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--mint), var(--gold), var(--orange)); box-shadow: 0 0 15px rgba(113, 216, 196, .65); transition: width .08s linear; }
.app-shell { min-height: 100vh; overflow: hidden; }

/* Hero / navigation */
.hero { min-height: 730px; position: relative; isolation: isolate; overflow: hidden; background: #0a0e1c; }
.hero-media { width: 104%; height: 104%; display: block; position: absolute; inset: -2%; z-index: 0; object-fit: cover; object-position: 74% center; filter: saturate(1.08) contrast(1.06); transform: scale(1.03); animation: hero-breathe 18s ease-in-out infinite alternate; }
.hero-vignette { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(5, 8, 17, .98) 0%, rgba(6, 10, 22, .88) 27%, rgba(8, 12, 26, .47) 59%, rgba(5, 6, 15, .35) 100%), linear-gradient(0deg, rgba(4, 6, 12, .94) 0%, rgba(4, 6, 12, .08) 34%, rgba(5, 7, 14, .58) 100%); }
.hero-vignette::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 70% 47%, rgba(102, 226, 190, .17), transparent 25%), radial-gradient(circle at 92% 12%, rgba(224, 148, 66, .15), transparent 22%); mix-blend-mode: screen; }
.hero-grid { position: absolute; inset: 0; z-index: 2; opacity: .22; pointer-events: none; background-image: linear-gradient(rgba(155, 184, 224, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(155, 184, 224, .14) 1px, transparent 1px); background-size: 76px 76px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 70%); }
.hero::after { content: ''; position: absolute; inset: auto 0 0; z-index: 1; height: 220px; background: linear-gradient(0deg, var(--void), transparent); pointer-events: none; }
.hero-particles { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero-particle { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 16px 3px rgba(113, 216, 196, .5); opacity: 0; animation: float-particle var(--particle-duration) ease-in-out var(--particle-delay) infinite; }

.topbar { width: min(1240px, calc(100% - 64px)); min-height: 78px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; z-index: 5; border-bottom: 1px solid rgba(227, 236, 255, .18); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 14px/1 'DM Mono', monospace; letter-spacing: .16em; }
.brand small { margin-left: 3px; padding-left: 12px; color: rgba(246, 243, 235, .45); border-left: 1px solid rgba(255,255,255,.24); font: 10px 'DM Mono', monospace; letter-spacing: .08em; }
.brand-mark { width: 31px; height: 31px; display: grid; place-items: center; color: var(--gold-bright); border: 1px solid rgba(217, 162, 80, .74); border-radius: 50%; box-shadow: inset 0 0 13px rgba(217,162,80,.11), 0 0 21px rgba(217,162,80,.17); font-size: 15px; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-link { position: relative; color: rgba(244, 242, 237, .66); text-decoration: none; font: 10px 'DM Mono', monospace; letter-spacing: .1em; text-transform: uppercase; transition: color .25s ease; }
.nav-link::after { content: ''; position: absolute; right: 0; bottom: -13px; left: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link.active::after, .nav-link:hover::after { transform: scaleX(1); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.nav-cta { min-height: 36px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; color: var(--void); border: 1px solid var(--gold-bright); border-radius: 1px; background: var(--gold-bright); box-shadow: 0 9px 28px rgba(217, 162, 80, .17); cursor: pointer; font: 600 10px 'DM Mono', monospace; letter-spacing: .06em; text-transform: uppercase; transition: transform .25s ease, background .25s ease, box-shadow .25s ease; }
.nav-cta:hover { background: #ffe1a0; box-shadow: 0 12px 32px rgba(217, 162, 80, .3); transform: translateY(-2px); }
.nav-cta-icon { font-size: 14px; }
.menu-toggle { display: none; width: 37px; height: 37px; padding: 8px; color: #fff; border: 1px solid rgba(255,255,255,.25); background: rgba(8, 11, 21, .46); cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 1px; margin: 4px auto; background: currentColor; transition: transform .25s ease; }

.hero-content { width: min(1240px, calc(100% - 64px)); min-height: 520px; margin: auto; padding: 112px 0 80px; position: relative; z-index: 4; }
.hero-copy-block { max-width: 720px; position: relative; z-index: 2; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font: 500 10px/1.4 'DM Mono', monospace; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow-rule { width: 26px; height: 1px; margin-right: 9px; display: inline-block; vertical-align: middle; background: currentColor; box-shadow: 0 0 10px currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 750px; margin-bottom: 24px; font: 600 clamp(48px, 7vw, 86px)/1.03 Cinzel, Georgia, serif; letter-spacing: -.055em; text-shadow: 0 8px 35px rgba(0,0,0,.23); }
h1 em, h2 em { color: var(--gold-bright); font-style: normal; text-shadow: 0 0 30px rgba(217, 162, 80, .16); }
.hero-copy { max-width: 500px; margin-bottom: 31px; color: rgba(243, 245, 252, .72); font-size: 14px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-bottom: 31px; }
.button { min-height: 45px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 17px; border: 1px solid transparent; border-radius: 1px; text-decoration: none; font: 600 10px 'DM Mono', monospace; letter-spacing: .09em; text-transform: uppercase; transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease; }
.button span { color: var(--gold-bright); font-size: 16px; line-height: 0; transition: transform .25s ease; }
.button:hover { transform: translateY(-3px); }
.button:hover span { transform: translateX(4px); }
.button-primary { color: var(--void); background: var(--gold-bright); box-shadow: 0 13px 30px rgba(217, 162, 80, .22); }
.button-primary:hover { background: #ffe2a0; box-shadow: 0 16px 36px rgba(217, 162, 80, .36); }
.button-ghost { color: var(--ink); border-color: rgba(238, 244, 255, .34); background: rgba(8, 11, 22, .24); backdrop-filter: blur(5px); }
.button-ghost:hover { border-color: rgba(240, 200, 115, .7); background: rgba(217, 162, 80, .1); }
.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: rgba(233, 238, 249, .55); font: 10px 'DM Mono', monospace; letter-spacing: .035em; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(113,216,196,.13), 0 0 16px rgba(113,216,196,.72); animation: pulse-dot 2.6s ease-in-out infinite; }
.meta-divider { color: var(--gold); }
.hero-orbit { width: 300px; height: 300px; position: absolute; right: 8%; bottom: 36px; display: grid; place-items: center; opacity: .67; pointer-events: none; }
.orbit-ring { width: 100%; height: 100%; position: absolute; border: 1px solid rgba(113, 216, 196, .29); border-radius: 50%; transform: rotate(-26deg) scaleX(.7); box-shadow: 0 0 35px rgba(113,216,196,.06); animation: orbit-spin 20s linear infinite; }
.orbit-ring::before, .orbit-ring::after { content: ''; width: 7px; height: 7px; position: absolute; border-radius: 50%; background: var(--mint); box-shadow: 0 0 18px 5px rgba(113,216,196,.72); }
.orbit-ring::before { top: 20px; left: 53%; }
.orbit-ring::after { right: 30px; bottom: 30px; background: var(--gold); box-shadow: 0 0 18px 5px rgba(217,162,80,.62); }
.orbit-core { width: 62px; height: 62px; display: grid; place-items: center; color: var(--gold-bright); border: 1px solid rgba(217,162,80,.5); border-radius: 50%; background: rgba(7, 10, 18, .36); box-shadow: 0 0 35px rgba(217,162,80,.14); font-size: 24px; animation: core-pulse 3.5s ease-in-out infinite; }
.hero-footer { width: min(1240px, calc(100% - 64px)); padding: 20px 0 25px; margin: auto; display: flex; align-items: end; justify-content: space-between; gap: 22px; position: relative; z-index: 4; border-top: 1px solid rgba(226, 235, 255, .16); }
.hero-footer-note { display: flex; flex-direction: column; gap: 8px; }
.hero-footer-kicker, .hero-footer-stats small { color: rgba(230, 236, 249, .48); font: 9px 'DM Mono', monospace; letter-spacing: .13em; text-transform: uppercase; }
.hero-footer-note strong { color: rgba(249, 246, 239, .9); font: 600 13px Cinzel, Georgia, serif; letter-spacing: .015em; }
.hero-footer-stats { display: flex; gap: 26px; margin-left: auto; }
.hero-footer-stats span { min-width: 94px; display: flex; flex-direction: column; gap: 5px; }
.hero-footer-stats strong { color: var(--gold-bright); font: 600 24px Cinzel, Georgia, serif; }
.hero-scroll-hint { color: rgba(230, 236, 249, .48); font: 9px 'DM Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.hero-scroll-hint b { margin-left: 7px; color: var(--gold-bright); font-size: 16px; font-weight: 400; }

/* Main content */
main { width: min(1240px, calc(100% - 64px)); margin: auto; padding: 0 0 64px; }
.command-bar { min-height: 82px; padding: 16px 20px; margin-top: 22px; display: flex; align-items: center; gap: 24px; position: relative; z-index: 3; border: 1px solid rgba(217,162,80,.35); background: linear-gradient(100deg, rgba(20, 27, 49, .98), rgba(15, 24, 46, .96)); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.command-intro { min-width: 218px; display: flex; align-items: center; gap: 12px; }
.command-icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--gold-bright); border: 1px solid rgba(217,162,80,.42); border-radius: 50%; font-size: 20px; box-shadow: inset 0 0 18px rgba(217,162,80,.09); }
.command-intro div { display: flex; flex-direction: column; gap: 4px; }
.command-kicker { color: var(--gold); font: 9px 'DM Mono', monospace; letter-spacing: .15em; text-transform: uppercase; }
.command-intro strong { color: var(--ink); font: 600 12px Cinzel, Georgia, serif; letter-spacing: .015em; }
.command-items { display: flex; align-items: center; flex-wrap: wrap; gap: 17px; color: var(--muted); font-size: 11px; }
.command-items span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.command-items b { color: var(--ink); font-size: 13px; }
.command-dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; box-shadow: 0 0 11px currentColor; }
.command-dot.mint { color: var(--mint); background: var(--mint); }.command-dot.gold { color: var(--gold); background: var(--gold); }.command-dot.purple { color: var(--purple); background: var(--purple); }
.command-link { margin-left: auto; color: var(--gold-bright); text-decoration: none; font: 10px 'DM Mono', monospace; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.command-link span { margin-left: 6px; font-size: 15px; transition: margin .2s ease; }.command-link:hover span { margin-left: 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.stat-card { min-height: 182px; padding: 18px 20px 19px; display: flex; flex-direction: column; position: relative; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(20, 29, 52, .92), rgba(11, 16, 31, .95)); box-shadow: 0 16px 35px rgba(0,0,0,.18); transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; }
.stat-card:hover { border-color: rgba(217,162,80,.45); box-shadow: 0 20px 45px rgba(0,0,0,.3); transform: translateY(-6px); }
.stat-card-primary { border-color: rgba(113,216,196,.3); background: linear-gradient(145deg, rgba(19, 55, 66, .76), rgba(11, 20, 36, .96)); }
.stat-card-accent { border-color: rgba(217,162,80,.34); background: linear-gradient(145deg, rgba(70, 47, 32, .68), rgba(19, 17, 29, .96)); }
.stat-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.stat-icon { color: var(--gold-bright); font-size: 19px; text-shadow: 0 0 13px rgba(217,162,80,.47); }
.stat-card-primary .stat-icon { color: var(--mint); text-shadow: 0 0 13px rgba(113,216,196,.47); }
.stat-index { color: rgba(218, 226, 244, .36); font: 9px 'DM Mono', monospace; }
.stat-label { color: var(--muted); font: 10px 'DM Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.stat-card strong { margin: 9px 0 6px; color: var(--ink); font: 600 39px/1 Cinzel, Georgia, serif; letter-spacing: -.04em; }
.stat-foot { margin-top: auto; color: var(--faint); font-size: 10px; }
.stat-glow { width: 110px; height: 110px; position: absolute; right: -48px; bottom: -58px; border-radius: 50%; background: rgba(113,216,196,.2); filter: blur(22px); pointer-events: none; }
.stat-card-accent .stat-glow { background: rgba(217,162,80,.23); }

.panel { padding: 31px; margin-top: 27px; position: relative; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(17, 25, 46, .96), rgba(9, 13, 25, .98)); box-shadow: 0 22px 55px rgba(0,0,0,.2); }
.panel::before { content: ''; width: 100%; height: 1px; position: absolute; top: 0; left: 0; background: linear-gradient(90deg, transparent, rgba(217,162,80,.58), transparent); opacity: .65; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 25px; }
.section-heading .eyebrow { margin-bottom: 10px; color: var(--gold); }
h2 { margin-bottom: 0; font: 600 clamp(26px, 4vw, 37px)/1.15 Cinzel, Georgia, serif; letter-spacing: -.035em; }
.section-subtitle { max-width: 560px; margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.section-count { color: var(--gold); font: 10px 'DM Mono', monospace; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

.featured-recipe { min-height: 105px; padding: 16px 19px; margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; overflow: hidden; border: 1px solid rgba(113,216,196,.27); background: linear-gradient(100deg, rgba(25, 66, 70, .62), rgba(21, 31, 51, .62)); }
.featured-recipe::before { content: ''; width: 170px; height: 170px; position: absolute; right: -60px; top: -88px; border: 1px solid rgba(113,216,196,.2); border-radius: 50%; box-shadow: 0 0 0 17px rgba(113,216,196,.04), 0 0 0 35px rgba(113,216,196,.03); }
.featured-copy { min-width: 0; position: relative; z-index: 1; }.featured-copy p { margin: 0 0 6px; color: var(--mint); font: 9px 'DM Mono', monospace; letter-spacing: .12em; text-transform: uppercase; }.featured-copy h3 { margin: 0 0 5px; color: var(--ink); font: 600 17px Cinzel, Georgia, serif; }.featured-copy small { color: var(--muted); font-size: 10px; }
.featured-status { display: flex; flex-direction: column; align-items: end; gap: 6px; position: relative; z-index: 1; white-space: nowrap; }.featured-status strong { color: var(--mint); font: 600 24px Cinzel, Georgia, serif; }.featured-status span { color: var(--faint); font: 9px 'DM Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }.featured-action { padding: 0; color: var(--gold-bright); border: 0; border-bottom: 1px solid rgba(217,162,80,.4); background: transparent; cursor: pointer; font: 9px 'DM Mono', monospace; letter-spacing: .04em; text-transform: uppercase; transition: color .2s ease, border-color .2s ease; }.featured-action:hover { color: #fff1c9; border-color: var(--gold-bright); }
.inventory-layout, .recipe-layout { display: grid; grid-template-columns: 1.28fr .72fr; gap: 26px; align-items: stretch; }
.inventory-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; align-content: start; }
.inventory-row { min-height: 69px; padding: 11px 0 10px; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; position: relative; border-bottom: 1px solid var(--line); transition: background .25s ease, padding .25s ease, border-color .25s ease; }
.inventory-row:hover { padding-right: 9px; padding-left: 9px; background: rgba(113,216,196,.045); border-color: rgba(113,216,196,.28); }
.inventory-name { min-width: 0; display: flex; flex-direction: column; gap: 5px; }.inventory-name strong { overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; }.inventory-name small { overflow: hidden; color: var(--faint); text-overflow: ellipsis; white-space: nowrap; font: 9px 'DM Mono', monospace; }
.inventory-quantity { text-align: right; }.inventory-quantity strong { display: block; color: var(--gold-bright); font: 600 19px Cinzel, Georgia, serif; }.inventory-quantity small { color: var(--faint); font: 9px 'DM Mono', monospace; text-transform: uppercase; }
.quantity-track { grid-column: 1 / -1; height: 3px; overflow: hidden; background: rgba(166,184,224,.13); border-radius: 5px; }.quantity-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), var(--purple), var(--gold)); border-radius: inherit; transform-origin: left; animation: track-in .9s cubic-bezier(.2,.8,.2,1) both; }
.chart-card { min-height: 278px; padding: 19px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(19, 29, 53, .94), rgba(10, 15, 28, .92)); }
.chart-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; color: var(--ink); font-size: 12px; font-weight: 700; }.chart-title small { color: var(--gold); font: 9px 'DM Mono', monospace; letter-spacing: .1em; text-transform: uppercase; }
canvas { display: block; width: 100%; height: 230px; }
.chart-note { display: flex; align-items: center; gap: 8px; margin-top: 3px; color: var(--faint); font: 9px/1.5 'DM Mono', monospace; }.chart-note-mark { width: 6px; height: 6px; display: inline-block; flex: 0 0 auto; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }

.recipes-panel { background: linear-gradient(145deg, rgba(10, 15, 28, .96), rgba(16, 25, 43, .94)), url('assets/herbalist-table.png') center / cover; background-blend-mode: normal, soft-light; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 15px 0 20px; margin-bottom: 25px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.search-field { flex: 1 1 245px; min-height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid var(--line); background: rgba(7, 11, 22, .66); transition: border-color .25s ease, box-shadow .25s ease; }.search-field:focus-within { border-color: rgba(113,216,196,.57); box-shadow: 0 0 0 3px rgba(113,216,196,.08); }.search-field > span { color: var(--mint); font-size: 21px; line-height: 0; }.search-field input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }.search-field input::placeholder { color: var(--faint); }
.select-field { min-height: 42px; padding: 5px 11px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); background: rgba(7, 11, 22, .66); }.select-field span { color: var(--faint); font: 8px 'DM Mono', monospace; letter-spacing: .1em; text-transform: uppercase; }.select-field select { min-width: 145px; padding: 2px 18px 0 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }.select-field option { color: var(--ink); background: var(--deep); }
.toggle-field { min-height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 10px; color: var(--muted); font-size: 11px; cursor: pointer; }.toggle-field input { position: absolute; opacity: 0; pointer-events: none; }.toggle-ui { width: 29px; height: 17px; padding: 2px; display: inline-flex; align-items: center; background: rgba(166,184,224,.2); border-radius: 20px; transition: .25s ease; }.toggle-ui::after { content: ''; width: 13px; height: 13px; border-radius: 50%; background: var(--faint); transition: .25s ease; box-shadow: 0 1px 5px rgba(0,0,0,.45); }.toggle-field input:checked + .toggle-ui { background: var(--mint); box-shadow: 0 0 14px rgba(113,216,196,.24); }.toggle-field input:checked + .toggle-ui::after { background: var(--void); transform: translateX(12px); }
.ghost-button { min-height: 42px; padding: 0 13px; color: var(--muted); border: 1px solid var(--line); background: transparent; cursor: pointer; font: 10px 'DM Mono', monospace; transition: color .25s ease, border-color .25s ease, background .25s ease; }.ghost-button:hover { color: var(--gold-bright); border-color: rgba(217,162,80,.52); background: rgba(217,162,80,.08); }
.recipe-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; align-content: start; }
.recipe-card { min-height: 202px; padding: 17px 17px 15px 20px; position: relative; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(150deg, rgba(25, 35, 61, .88), rgba(12, 18, 33, .96)); cursor: pointer; transition: transform .32s ease, border-color .32s ease, background .32s ease, box-shadow .32s ease; }.recipe-card::before { content: ''; width: 3px; position: absolute; inset: 0 auto 0 0; background: var(--rose); }.recipe-card::after { content: ''; width: 110px; height: 110px; position: absolute; right: -55px; top: -55px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; transition: transform .4s ease; }.recipe-card:hover { border-color: rgba(217,162,80,.52); background: linear-gradient(150deg, rgba(35, 46, 78, .94), rgba(14, 21, 38, .98)); box-shadow: 0 15px 35px rgba(0,0,0,.25); transform: translateY(-5px); }.recipe-card:hover::after { transform: scale(1.3); }.recipe-card.ready::before { background: var(--mint); }.recipe-card.no-formula::before { background: var(--gold); }
.recipe-topline { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 13px; }.recipe-category { color: var(--gold); font: 9px 'DM Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }.recipe-status { padding: 4px 7px; color: var(--rose); background: rgba(231,125,138,.1); font: 8px 'DM Mono', monospace; white-space: nowrap; }.recipe-card.ready .recipe-status { color: var(--mint); background: rgba(113,216,196,.1); }.recipe-card.no-formula .recipe-status { color: var(--gold); background: rgba(217,162,80,.1); }
.recipe-card h3 { max-width: 88%; margin-bottom: 7px; color: var(--ink); font: 600 15px/1.32 Cinzel, Georgia, serif; letter-spacing: -.02em; }.recipe-effect { min-height: 31px; margin-bottom: 15px; color: var(--muted); font-size: 10px; line-height: 1.5; }.ingredients { display: flex; flex-wrap: wrap; gap: 5px; }.ingredient { padding: 5px 7px; color: var(--muted); background: rgba(166,184,224,.1); font: 9px 'DM Mono', monospace; }.ingredient.missing { color: var(--rose); background: rgba(231,125,138,.11); }.ingredient strong { color: var(--ink); font-weight: 500; }.recipe-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-top: 12px; margin-top: 15px; border-top: 1px solid var(--line); }.recipe-foot span { overflow: hidden; color: var(--faint); text-overflow: ellipsis; white-space: nowrap; font: 9px 'DM Mono', monospace; }.recipe-foot strong { color: var(--gold-bright); font: 600 15px Cinzel, Georgia, serif; white-space: nowrap; }.recipe-card.ready .recipe-foot strong { color: var(--mint); }.empty-state { grid-column: 1 / -1; padding: 38px 18px; color: var(--muted); border: 1px dashed rgba(164,181,216,.28); text-align: center; font-size: 12px; }
.recipe-chart-card { min-height: 390px; }.recipe-chart-card canvas { height: 210px; }.chart-legend { display: grid; gap: 8px; margin-top: 4px; }.legend-row { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font: 9px 'DM Mono', monospace; }.legend-key { display: inline-flex; align-items: center; gap: 7px; }.legend-swatch { width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }.legend-row strong { color: var(--ink); font-weight: 500; }.aside-tip { display: flex; gap: 8px; padding-top: 15px; margin-top: 17px; border-top: 1px solid var(--line); }.aside-tip > span { width: 15px; height: 15px; display: grid; place-items: center; flex: 0 0 auto; color: var(--gold-bright); border: 1px solid rgba(217,162,80,.42); border-radius: 50%; font: 9px 'DM Mono', monospace; }.aside-tip p { margin: 0; color: var(--faint); font: 9px/1.5 'DM Mono', monospace; }

.bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 27px; }.note-card { min-height: 174px; padding: 23px; display: flex; gap: 16px; position: relative; overflow: hidden; border: 1px solid rgba(113,216,196,.23); background: linear-gradient(135deg, rgba(19, 53, 57, .9), rgba(12, 21, 35, .96)), url('assets/hero-forest.png') 78% center / cover; background-blend-mode: normal, soft-light; }.note-card-dark { border-color: rgba(217,162,80,.23); background: linear-gradient(135deg, rgba(53, 38, 35, .7), rgba(11, 15, 28, .97)); }.note-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; color: var(--mint); border: 1px solid currentColor; border-radius: 50%; font-size: 15px; }.note-card-dark .note-icon { color: var(--gold-bright); }.note-card .eyebrow { margin-bottom: 9px; color: var(--mint); }.note-card-dark .eyebrow { color: var(--gold); }.note-card h3 { margin-bottom: 8px; color: var(--ink); font: 600 18px/1.2 Cinzel, Georgia, serif; }.note-card p:last-child { max-width: 470px; margin-bottom: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }.note-rune { position: absolute; right: 20px; bottom: -23px; color: rgba(113,216,196,.12); font-size: 118px; line-height: 1; transform: rotate(12deg); }.note-card-dark .note-rune { color: rgba(217,162,80,.1); }
footer { width: min(1240px, calc(100% - 64px)); padding: 23px 0 32px; margin: auto; display: flex; justify-content: space-between; color: var(--faint); font: 9px 'DM Mono', monospace; letter-spacing: .1em; text-transform: uppercase; } footer strong { color: var(--gold); }

/* Modal and utility controls */
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(3, 5, 11, .78); backdrop-filter: blur(10px); animation: fade-in .2s ease both; }.modal-backdrop[hidden] { display: none; }.recipe-dialog { width: min(530px, 100%); padding: 34px; position: relative; border: 1px solid rgba(217,162,80,.5); background: linear-gradient(145deg, #182442, #0b1121 78%); box-shadow: 0 30px 100px rgba(0,0,0,.55); animation: dialog-in .35s cubic-bezier(.2,.8,.2,1) both; }.recipe-dialog::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 90% 5%, rgba(113,216,196,.12), transparent 30%); }.modal-close { width: 34px; height: 34px; position: absolute; top: 17px; right: 17px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 24px; font-weight: 300; transition: color .2s ease, border-color .2s ease, transform .2s ease; }.modal-close:hover { color: var(--gold-bright); border-color: var(--gold); transform: rotate(90deg); }.dialog-mark { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 21px; color: var(--gold-bright); border: 1px solid rgba(217,162,80,.44); border-radius: 50%; box-shadow: 0 0 24px rgba(217,162,80,.14); font-size: 19px; }.recipe-dialog .eyebrow { margin-bottom: 10px; }.recipe-dialog h2 { max-width: 420px; margin-bottom: 8px; font-size: 30px; }.dialog-english { margin-bottom: 18px; color: var(--gold); font: 9px 'DM Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }.dialog-description { color: var(--muted); font-size: 12px; line-height: 1.65; }.dialog-status { display: inline-flex; padding: 6px 9px; margin: 8px 0 19px; color: var(--mint); background: rgba(113,216,196,.1); font: 9px 'DM Mono', monospace; }.dialog-status.missing { color: var(--rose); background: rgba(231,125,138,.1); }.dialog-status.no-formula { color: var(--gold); background: rgba(217,162,80,.1); }.dialog-ingredients { display: grid; gap: 8px; }.dialog-ingredient { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; border: 1px solid var(--line); background: rgba(5, 8, 17, .3); color: var(--muted); font: 10px 'DM Mono', monospace; }.dialog-ingredient strong { color: var(--ink); font-weight: 500; }.dialog-ingredient.missing { color: var(--rose); border-color: rgba(231,125,138,.26); }.dialog-footer { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding-top: 15px; margin-top: 20px; border-top: 1px solid var(--line); color: var(--faint); font: 10px 'DM Mono', monospace; }.dialog-footer strong { color: var(--mint); font: 600 22px Cinzel, Georgia, serif; }.back-to-top { width: 39px; height: 39px; position: fixed; right: 22px; bottom: 22px; z-index: 20; display: grid; place-items: center; color: var(--void); border: 1px solid var(--gold-bright); background: var(--gold-bright); box-shadow: 0 9px 28px rgba(0,0,0,.35); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease, background .2s ease; font-size: 19px; }.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }.back-to-top:hover { background: #ffe4a5; }.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; padding: 10px 15px; color: var(--ink); border: 1px solid var(--line-bright); background: rgba(15, 23, 43, .95); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .25s ease, transform .25s ease; font: 10px 'DM Mono', monospace; }.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* Reveal / motion */
.js .reveal, .js [data-reveal] { opacity: 0; transform: translateY(20px); }.js .reveal.is-visible, .js [data-reveal].is-visible { opacity: 1; transform: translateY(0); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
@keyframes hero-breathe { from { transform: scale(1.03) translate3d(0,0,0); } to { transform: scale(1.08) translate3d(-1%, -1%, 0); } }
@keyframes float-particle { 0%, 100% { opacity: 0; transform: translate3d(0, 14px, 0) scale(.7); } 30%, 70% { opacity: .8; } 50% { transform: translate3d(var(--particle-drift), -48px, 0) scale(1); } }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 5px rgba(113,216,196,.13), 0 0 12px rgba(113,216,196,.5); } 50% { box-shadow: 0 0 0 8px rgba(113,216,196,.05), 0 0 22px rgba(113,216,196,.9); } }
@keyframes orbit-spin { to { transform: rotate(334deg) scaleX(.7); } }
@keyframes core-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); box-shadow: 0 0 45px rgba(217,162,80,.25); } }
@keyframes track-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 980px) {
  .hero { min-height: 720px; }.hero-media { object-position: 66% center; }.hero-orbit { right: 1%; opacity: .4; }.command-items { gap: 10px; }.command-bar { flex-wrap: wrap; }.command-link { margin-left: 0; }.inventory-layout, .recipe-layout { grid-template-columns: 1fr; }.recipe-chart-card { min-height: auto; }.recipe-chart-card canvas { height: 180px; }.stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .topbar, .hero-content, .hero-footer, main, footer { width: calc(100% - 36px); }.topbar { min-height: 70px; }.brand { font-size: 12px; }.brand small, .nav-links { display: none; }.topbar-actions { margin-left: auto; }.nav-cta { min-height: 34px; padding: 0 10px; font-size: 8px; }.menu-toggle { display: block; }.nav-links.mobile-open { width: 100%; padding: 13px 0 15px; display: flex; position: absolute; top: 70px; left: 0; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); background: rgba(10, 15, 28, .97); backdrop-filter: blur(10px); }.nav-links.mobile-open .nav-link { padding: 13px 3px; }.nav-links.mobile-open .nav-link::after { bottom: 4px; }.hero { min-height: 760px; }.hero-media { object-position: 58% center; }.hero-vignette { background: linear-gradient(90deg, rgba(5, 8, 17, .96), rgba(6, 10, 22, .76) 65%, rgba(5, 6, 15, .6)), linear-gradient(0deg, rgba(4, 6, 12, .98), rgba(4, 6, 12, .08) 45%, rgba(5,7,14,.7)); }.hero-content { min-height: 580px; padding-top: 89px; }.hero-copy-block { max-width: 100%; }.hero-orbit { width: 180px; height: 180px; right: -20px; bottom: 25px; }.hero-copy { font-size: 13px; }.hero-actions { align-items: stretch; flex-direction: column; max-width: 230px; }.button { width: 100%; justify-content: space-between; }.hero-meta { line-height: 1.5; }.meta-divider { display: none; }.hero-footer { align-items: start; flex-direction: column; gap: 15px; }.hero-footer-stats { width: 100%; margin-left: 0; }.hero-scroll-hint { display: none; }.command-bar { align-items: flex-start; flex-direction: column; gap: 13px; padding: 17px; }.command-items { align-items: flex-start; flex-direction: column; gap: 8px; }.command-link { margin-left: 0; }.stats-grid { gap: 9px; }.stat-card { min-height: 147px; padding: 15px; }.stat-topline { margin-bottom: 15px; }.stat-card strong { font-size: 30px; }.stat-foot { font-size: 9px; }.panel { padding: 22px 16px; }.section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }.section-subtitle { font-size: 11px; }.inventory-list, .recipe-grid { grid-template-columns: 1fr; }.featured-recipe { align-items: flex-start; flex-direction: column; gap: 12px; }.featured-status { align-items: flex-start; flex-direction: row; gap: 10px; }.filters { align-items: stretch; flex-direction: column; }.search-field, .select-field, .toggle-field, .ghost-button { width: 100%; }.search-field { flex: 0 0 46px; min-height: 46px; }.select-field { flex: 0 0 42px; }.toggle-field, .ghost-button { flex: 0 0 42px; }.select-field select { width: 100%; }.bottom-grid { grid-template-columns: 1fr; }.note-card { min-height: auto; }.recipe-dialog { padding: 27px 22px; }.recipe-dialog h2 { font-size: 25px; }.back-to-top { right: 16px; bottom: 16px; }
}
@media (max-width: 700px) {
  .js [data-reveal] { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }.hero-media, .hero-particle, .status-dot, .orbit-ring, .orbit-core, .quantity-track span { animation: none !important; }.js .reveal, .js [data-reveal] { opacity: 1; transform: none; }.button, .stat-card, .recipe-card, .back-to-top, .toast { transition: none; }
}
