:root {
  --bg: #090d0f;
  --bg2: #11181d;
  --panel: rgba(17, 24, 29, .88);
  --line: rgba(238, 238, 230, .1);
  --line2: rgba(238, 238, 230, .18);
  --text: #f1f2ed;
  --muted: #9aa5aa;
  --red: #ef302b;
  --red2: #a31217;
  --ice: #86d8ff;
  --green: #62df89;
  --gold: #f4ae42;
  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-width: 320px; color: var(--text); background: var(--bg);
  font: 16px/1.65 var(--body); overflow-x: hidden;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(900px 520px at 80% -10%, rgba(127,212,255,.08), transparent 65%),
    radial-gradient(850px 620px at 10% 100%, rgba(239,48,43,.06), transparent 65%), var(--bg);
}
a { color: inherit; }
.site-topbar { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(8, 11, 13, .86); backdrop-filter: blur(18px); }
.topbar-inner { width: min(1240px, calc(100% - 36px)); min-height: 72px; margin: auto; display: flex; align-items: center; gap: 24px; }
.site-brand { display: inline-flex; align-items: center; text-decoration: none; }
.site-brand img { width: 130px; height: 54px; display: block; object-fit: contain; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.site-nav a { padding: 8px 11px; border-radius: 10px; color: var(--muted); font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: .2s; }
.site-nav a:hover, .site-nav a.active { color: var(--text); background: rgba(127,212,255,.1); }
.site-nav a.active { box-shadow: inset 0 0 0 1px rgba(127,212,255,.16); }
.site-nav .nav-cta { margin-left: 4px; color: #fff; background: linear-gradient(135deg, var(--red), var(--red2)); box-shadow: 0 5px 22px rgba(239,48,43,.26); }
.site-nav .nav-account { color: var(--ice); }
.page-wrap { width: min(1180px, calc(100% - 36px)); margin: auto; }
.page-hero { position: relative; min-height: 300px; display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--line); background: #0c1216 url('hero.png') center 42% / cover no-repeat; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,11,13,.94), rgba(7,11,13,.58) 55%, rgba(7,11,13,.88)), linear-gradient(0deg, rgba(7,11,13,.88), transparent 65%); }
.page-hero-inner { position: relative; z-index: 1; width: min(1180px, calc(100% - 36px)); margin: auto; padding: 62px 0 42px; }
.eyebrow { color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.page-hero h1 { max-width: 820px; margin: 12px 0 10px; font: 800 clamp(30px, 5vw, 58px)/1.12 var(--display); letter-spacing: .01em; }
.page-hero p { max-width: 680px; margin: 0; color: #c0cbd0; font-size: 15px; }
.breadcrumb { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: 12px; }
.breadcrumb a { color: var(--ice); text-decoration: none; }
.content { padding: 58px 0 90px; }
.content-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 34px; align-items: start; }
.side-nav { position: sticky; top: 96px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: rgba(17,24,29,.7); }
.side-nav strong { display: block; margin-bottom: 12px; color: var(--ice); font: 700 11px var(--display); letter-spacing: .14em; text-transform: uppercase; }
.side-nav a { display: block; padding: 8px 0; color: var(--muted); font-size: 13px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.06); }
.side-nav a:last-child { border-bottom: 0; }
.side-nav a:hover { color: var(--text); }
.section-title { margin: 0 0 10px; font: 800 clamp(24px, 3.4vw, 38px)/1.2 var(--display); }
.section-lead { margin: 0 0 26px; color: var(--muted); font-size: 14px; }
.panel { margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: var(--panel); }
.panel h2 { margin: 0 0 16px; font: 700 18px var(--display); }
.rule-list { display: grid; gap: 12px; }
.rule-card { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); transition: .2s; }
.rule-card:hover { border-color: rgba(239,48,43,.42); transform: translateY(-2px); }
.rule-number { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #fff; background: linear-gradient(145deg, var(--red), var(--red2)); font: 800 13px var(--display); }
.rule-card h3 { margin: 0 0 4px; font: 700 15px var(--display); }
.rule-card p { margin: 0; color: var(--muted); font-size: 13.5px; }
.warning { display: flex; gap: 14px; align-items: flex-start; margin-top: 20px; padding: 18px 20px; border: 1px solid rgba(244,174,66,.36); border-radius: 14px; background: rgba(244,174,66,.08); }
.warning strong { color: var(--gold); font-size: 13px; }
.warning p { margin: 4px 0 0; color: #c8c5b5; font-size: 13px; }
.craft-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 18px; }
.craft-filter { padding: 9px 13px; border: 1px solid var(--line2); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.025); cursor: pointer; font: 600 12px var(--body); }
.craft-filter.active, .craft-filter:hover { color: #fff; border-color: var(--red); background: rgba(239,48,43,.14); }
.craft-search { min-width: 220px; flex: 1; padding: 10px 13px; border: 1px solid var(--line2); border-radius: 10px; outline: 0; color: var(--text); background: rgba(0,0,0,.24); font: 13px var(--body); }
.craft-search:focus { border-color: var(--ice); }
.craft-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.recipe { position: relative; overflow: hidden; padding: 20px; min-height: 180px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg, rgba(127,212,255,.07), rgba(17,24,29,.92) 50%); }
.recipe::after { content: ''; position: absolute; right: -35px; bottom: -55px; width: 160px; height: 160px; border-radius: 50%; background: rgba(239,48,43,.08); filter: blur(2px); }
.recipe[data-category="base"] { background: linear-gradient(145deg, rgba(239,48,43,.1), rgba(17,24,29,.92) 56%); }
.recipe[data-category="food"] { background: linear-gradient(145deg, rgba(98,223,137,.08), rgba(17,24,29,.92) 56%); }
.recipe-image { position: relative; z-index: 1; height: 112px; margin: -20px -20px 16px; overflow: hidden; border-bottom: 1px solid var(--line); background: #0b1013; }
.recipe-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,13,15,.08), rgba(9,13,15,.58)), linear-gradient(0deg, rgba(9,13,15,.45), transparent 55%); pointer-events: none; }
.recipe-image img { width: 100%; height: 100%; display: block; object-fit: cover; opacity: .88; filter: saturate(.78) contrast(1.04); }
.recipe-top { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.recipe-icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line2); border-radius: 11px; background: rgba(0,0,0,.2); font-size: 20px; }
.recipe-tag { color: var(--ice); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.recipe h3 { position: relative; z-index: 1; margin: 15px 0 8px; font: 700 16px var(--display); }
.recipe p { position: relative; z-index: 1; margin: 0; color: var(--muted); font-size: 13px; }
.materials { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.materials span { padding: 4px 7px; border: 1px solid rgba(255,255,255,.1); border-radius: 6px; color: #dce4e6; background: rgba(0,0,0,.22); font-size: 11px; }
.recipe.hidden { display: none; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 17px; border-radius: 10px; color: #fff; font: 700 12px var(--display); text-decoration: none; transition: .2s; }
.btn-red { background: linear-gradient(135deg, var(--red), var(--red2)); box-shadow: 0 6px 24px rgba(239,48,43,.25); }
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(239,48,43,.35); }
.btn-ghost { border: 1px solid var(--line2); color: var(--text); }
.btn-ghost:hover { border-color: var(--ice); }
.site-footer { border-top: 1px solid var(--line); padding: 34px 0 50px; }
.footer-inner { width: min(1180px, calc(100% - 36px)); margin: auto; display: flex; justify-content: space-between; gap: 24px; align-items: center; flex-wrap: wrap; }
.footer-logo { width: 115px; height: 42px; object-fit: contain; }
.footer-copy { color: var(--muted); font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-links a { color: var(--muted); font-size: 12px; text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.account-hero h1 span { color: var(--red); }
.account-content { max-width: 980px; }
.account-panel { padding: 30px; border: 1px solid var(--line2); border-radius: 18px; background: linear-gradient(145deg, rgba(127,212,255,.06), rgba(17,24,29,.9) 58%); box-shadow: 0 20px 70px rgba(0,0,0,.18); }
.account-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 14px rgba(134,216,255,.8); animation: accountPulse 1.4s ease-in-out infinite; }
@keyframes accountPulse { 50% { opacity: .35; transform: scale(.8); } }
.account-logged-out { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 22px; align-items: start; }
.account-symbol { display: grid; place-items: center; width: 74px; height: 74px; border: 1px solid rgba(239,48,43,.55); border-radius: 19px; color: #fff; background: linear-gradient(145deg, var(--red), var(--red2)); font: 800 34px var(--display); box-shadow: 0 10px 30px rgba(239,48,43,.2); }
.account-logged-out h2, .account-heading h2 { margin: 5px 0 7px; font: 800 clamp(22px, 3vw, 32px)/1.2 var(--display); }
.account-logged-out p { max-width: 650px; margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.steam-login { width: max-content; }
.account-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.account-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.account-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.account-stat { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(0,0,0,.18); }
.account-stat span { display: block; color: var(--muted); font-size: 11px; }
.account-stat strong { display: block; margin-top: 5px; color: var(--text); font: 700 20px var(--display); }
.account-note { margin-top: 18px; padding: 13px 15px; border-left: 2px solid var(--green); color: var(--muted); background: rgba(98,223,137,.06); font-size: 12px; }
.account-note strong { color: var(--green); }
.account-error { margin-top: 16px; padding: 13px 15px; border: 1px solid rgba(239,48,43,.42); border-radius: 10px; color: #ffb5ae; background: rgba(239,48,43,.1); font-size: 13px; }
@media (max-width: 850px) {
  .content-grid { grid-template-columns: 1fr; }
  .side-nav { position: static; display: flex; gap: 12px; overflow-x: auto; align-items: center; }
  .side-nav strong { margin: 0 6px 0 0; white-space: nowrap; }
  .side-nav a { padding: 5px 0; border: 0; white-space: nowrap; }
  .craft-grid { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav { max-width: calc(100vw - 190px); overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a:nth-child(n+5):not(.nav-cta) { display: none; }
}
@media (max-width: 560px) {
  .topbar-inner, .page-wrap, .page-hero-inner, .footer-inner { width: calc(100% - 24px); }
  .site-brand img { width: 112px; height: 46px; }
  .site-nav { max-width: calc(100vw - 150px); }
  .site-nav a { padding: 8px 8px; font-size: 11px; }
  .site-nav a:nth-child(n+4):not(.nav-cta) { display: none; }
  .page-hero-inner { padding: 48px 0 32px; }
  .content { padding-top: 38px; }
  .panel { padding: 17px; }
  .account-panel { padding: 20px; }
  .account-logged-out { grid-template-columns: 1fr; }
  .account-heading { flex-direction: column; }
  .account-grid { grid-template-columns: 1fr 1fr; }
  .recipe-image { height: 96px; }
  .rule-card { grid-template-columns: 38px 1fr; gap: 11px; padding: 14px; }
  .rule-number { width: 36px; height: 36px; font-size: 11px; }
}
