/* LeznGrad — one-page site. Hand-written CSS, no frameworks. */

:root{
  --ink:#080605;
  --wood:#1c150e;
  --wood-2:#241a11;
  --wood-3:#2e2317;
  --gold:#e8c46a;
  --gold-dim:#b99347;
  --ember:#ff8a3d;
  --text:#ece3d4;
  --muted:#a89c8b;
  --line:#4a3a26;
  --line-soft:#33281b;
  --shadow:0 18px 40px rgba(0,0,0,.6);
  --radius:3px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--ink);
  color:var(--text);
  font-family:"Segoe UI",system-ui,-apple-system,sans-serif;
  font-size:16px;
  line-height:1.6;
  overflow-x:hidden;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  background:url("../assets/tex/deepslate.png");
  background-size:96px;
  opacity:.2;
  pointer-events:none;
  z-index:0;
}
img{max-width:100%;display:block}
a{color:var(--gold);text-decoration:none}
a:hover{text-decoration:underline}
button{font:inherit;color:inherit;cursor:pointer}
code{font-family:"Consolas","Courier New",monospace}
.px{image-rendering:pixelated;image-rendering:crisp-edges}

h1,h2,h3{font-family:"Consolas","Courier New",monospace;font-weight:700;letter-spacing:.06em;line-height:1.15}
h2{font-size:clamp(28px,4vw,44px);margin:0 0 14px;color:#f4e7c9;text-shadow:2px 2px 0 #120c07}
p{margin:0 0 1em}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px}

/* ---------------- embers canvas ---------------- */
#embers{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:1;opacity:.55}

/* ---------------- nav ---------------- */
.nav{
  position:fixed;top:0;left:0;right:0;z-index:50;
  display:flex;align-items:center;gap:22px;
  padding:12px 22px;
  background:linear-gradient(180deg,rgba(12,9,6,.96),rgba(12,9,6,.78));
  border-bottom:1px solid var(--line-soft);
  backdrop-filter:blur(8px);
}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none}
.brand-mark{
  width:38px;height:38px;display:grid;place-items:center;overflow:hidden;
  background:#2b2014;border:2px solid var(--line);
  box-shadow:inset 0 0 0 2px #120c07, inset 2px 2px 0 rgba(255,255,255,.12);
  color:var(--gold);font-family:Consolas,monospace;font-weight:700;font-size:14px;
}
.brand-mark img{width:100%;height:100%;object-fit:cover;display:block}
.brand-text{font-family:Consolas,monospace;font-weight:700;letter-spacing:.16em;color:#f4e7c9}
.nav-links{display:flex;gap:18px;margin-left:auto}
.nav-links a{color:var(--muted);font-size:14px;letter-spacing:.04em}
.nav-links a:hover{color:var(--gold);text-decoration:none}
.ip-chip{
  display:flex;align-items:center;gap:8px;
  background:#140f0a;border:1px solid var(--line);
  padding:7px 12px;font-family:Consolas,monospace;font-size:12.5px;color:var(--gold);
  box-shadow:inset 0 0 0 2px #0a0705;
  max-width:280px;overflow:hidden;white-space:nowrap;
}
.ip-chip span:last-child{overflow:hidden;text-overflow:ellipsis}
.ip-chip:hover{border-color:var(--gold-dim);background:#1a130c}
.ip-dot{width:7px;height:7px;border-radius:50%;background:#7fce4a;box-shadow:0 0 8px rgba(127,206,74,.8)}
.nav-toggle{display:none;background:none;border:1px solid var(--line);padding:6px 10px;color:var(--gold);font-size:16px}

/* ---------------- hero ---------------- */
.hero{
  position:relative;min-height:100svh;
  display:flex;flex-direction:column;justify-content:center;
  padding:110px 22px 34px;
  overflow:hidden;
}
.hero-bg{
  position:absolute;inset:0;
  background:url("../assets/tex/darkwood.png");
  background-size:96px;
  filter:brightness(.40) saturate(.8);
}
.hero-weave{
  position:absolute;inset:0;
  background:url("../assets/tex/woven.png");
  background-size:44px;
  opacity:.16;
  mix-blend-mode:overlay;
}
.hero-glow{
  position:absolute;inset:0;
  background:
    radial-gradient(circle at 68% 62%, rgba(255,150,60,.20), transparent 46%),
    radial-gradient(circle at 20% 30%, rgba(255,190,110,.10), transparent 40%),
    linear-gradient(180deg, rgba(6,4,2,.55) 0%, rgba(6,4,2,.35) 45%, rgba(6,4,2,.92) 100%);
}
.hero-beam{
  position:absolute;top:0;bottom:0;width:58px;
  background:url("../assets/tex/planks.png");
  background-size:32px;
  filter:brightness(.34);
  border-left:1px solid #0a0705;border-right:1px solid #0a0705;
  box-shadow:inset 0 0 40px rgba(0,0,0,.7);
}
.hero-beam.left{left:0}
.hero-beam.right{right:0}
.hero-inner{
  position:relative;z-index:3;
  width:min(1180px,100%);margin:0 auto;
  display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  gap:40px;align-items:center;
}
.banner{
  position:relative;
  padding:30px 30px 26px;
  background:
    linear-gradient(180deg, rgba(28,21,14,.96), rgba(16,12,8,.97)),
    url("../assets/tex/planks.png");
  background-size:auto, 64px;
  border:3px solid var(--line);
  box-shadow:inset 0 0 0 2px #0d0906, inset 0 0 60px rgba(0,0,0,.55), var(--shadow);
}
.banner::before,.banner::after{
  content:"";position:absolute;top:10px;bottom:10px;width:5px;
  background:url("../assets/tex/iron.png");background-size:20px;opacity:.85;
}
.banner::before{left:-14px}
.banner::after{right:-14px}
.banner-rope{
  position:absolute;left:-10px;right:-10px;top:-14px;height:9px;
  background:url("../assets/tex/rope.png");background-size:26px;opacity:.9;
}
.rune-row{
  font-family:Consolas,monospace;font-size:14px;letter-spacing:.5em;
  color:var(--gold-dim);margin-bottom:10px;
  text-shadow:0 0 12px rgba(232,196,106,.35);
  animation:runePulse 5s ease-in-out infinite;
}
@keyframes runePulse{0%,100%{opacity:.55}50%{opacity:.95}}
.hero-title{
  font-size:clamp(42px,7vw,78px);
  margin:0 0 12px;color:#f6ead0;
  letter-spacing:.10em;
  text-shadow:3px 3px 0 #120c07, 6px 6px 0 rgba(0,0,0,.35), 0 0 30px rgba(255,170,70,.22);
}
.hero-title span{color:var(--gold)}
.hero-sub{color:#d9c9ad;font-size:clamp(14px,1.5vw,17px);max-width:30ch;margin-bottom:22px}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px}

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:12px 20px;border:none;
  font-family:Consolas,monospace;font-weight:700;font-size:13px;letter-spacing:.08em;
  text-decoration:none;
  background:#5a4226;
  color:#f7e9cc;
  box-shadow:inset -3px -3px 0 #33230f, inset 3px 3px 0 #9a7748, 0 6px 16px rgba(0,0,0,.45);
  transition:filter .15s, transform .06s;
}
.btn:hover{filter:brightness(1.12);text-decoration:none}
.btn:active{transform:translateY(2px)}
.btn-primary{background:#6b4d29;color:#ffefd0}
.btn-ghost{background:#241a11;color:#e6d6b8;box-shadow:inset -3px -3px 0 #150f09, inset 3px 3px 0 #4a3a26, 0 6px 16px rgba(0,0,0,.4)}
.btn-twitch{background:#5b2a6b;color:#f4e6ff;box-shadow:inset -3px -3px 0 #33143d, inset 3px 3px 0 #9a63ad, 0 6px 16px rgba(0,0,0,.4);font-size:12px;padding:10px 16px}
.btn-twitch:hover{filter:brightness(1.15)}

.hero-ip{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  background:#100c08;border:1px solid var(--line-soft);
  padding:9px 12px;box-shadow:inset 0 0 0 2px #060403;
}
.hero-ip-label{font-size:10.5px;letter-spacing:.2em;text-transform:uppercase;color:var(--muted)}
.hero-ip code{color:var(--gold);font-size:14px;word-break:break-all}
.copy-mini{
  margin-left:auto;background:none;border:1px solid var(--line);
  color:var(--muted);font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;
  padding:4px 8px;
}
.copy-mini:hover{color:var(--gold);border-color:var(--gold-dim)}

.hero-art{position:relative;min-height:360px}
.shield{
  position:absolute;right:6%;top:50%;transform:translateY(-50%);
  width:min(230px,44vw);aspect-ratio:1;
  border-radius:50%;
  padding:6px;
  background:radial-gradient(circle at 35% 30%, #6a5638, #2a2116 70%);
  box-shadow:0 0 0 6px #3d3122, 0 0 0 8px #1b1610, 0 0 46px rgba(255,150,60,.20), var(--shadow);
  animation:shieldGlow 6s ease-in-out infinite;
}
.shield img{width:100%;height:100%;border-radius:50%;object-fit:cover}
@keyframes shieldGlow{0%,100%{box-shadow:0 0 0 6px #3d3122,0 0 0 8px #1b1610,0 0 30px rgba(255,150,60,.14),var(--shadow)}50%{box-shadow:0 0 0 6px #4a3b28,0 0 0 8px #241c13,0 0 58px rgba(255,170,80,.30),var(--shadow)}}

.torch{position:absolute;bottom:14%}
.torch.t1{left:4%}
.torch.t2{right:2%;bottom:8%}
.torch::before{
  content:"";position:absolute;left:50%;transform:translateX(-50%);
  bottom:-58px;width:8px;height:58px;background:#3b2a19;
  box-shadow:inset 2px 0 0 rgba(255,255,255,.1), inset -2px 0 0 rgba(0,0,0,.4);
}
.flame{
  position:relative;width:16px;height:26px;
  background:linear-gradient(#ffe9a3,#ff9d2e 55%,#e2531c);
  border-radius:50% 50% 40% 40%;
  filter:blur(.7px);
  animation:flick 1.4s infinite alternate;
}
.torch::after{
  content:"";position:absolute;left:50%;top:-42px;transform:translateX(-50%);
  width:150px;height:150px;border-radius:50%;
  background:radial-gradient(rgba(255,160,70,.35),transparent 70%);
  filter:blur(6px);animation:glowPulse 2.4s infinite alternate;
}
@keyframes flick{0%{transform:scaleY(.9) translateY(2px);opacity:.85}100%{transform:scaleY(1.1) translateY(-2px);opacity:1}}
@keyframes glowPulse{0%{opacity:.6;transform:translateX(-50%) scale(.9)}100%{opacity:1;transform:translateX(-50%) scale(1.1)}}

.float-item{position:absolute;filter:drop-shadow(0 8px 14px rgba(0,0,0,.7));animation:bob 5s ease-in-out infinite}
.float-item.i1{width:52px;right:44%;top:16%}
.float-item.i2{width:52px;right:26%;top:6%;animation-delay:-1.6s}
.float-item.i3{width:46px;right:52%;bottom:18%;animation-delay:-3s}
@keyframes bob{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-12px) rotate(2deg)}}

.hero-stats{
  position:relative;z-index:3;
  width:min(1180px,100%);margin:44px auto 0;
  display:grid;grid-template-columns:repeat(4,1fr);gap:14px;
}
.stat{
  display:flex;flex-direction:column;gap:4px;
  padding:12px 16px;
  background:rgba(14,10,7,.82);
  border:1px solid var(--line-soft);
  box-shadow:inset 0 0 0 2px #080503;
}
.stat-k{font-size:10px;letter-spacing:.22em;text-transform:uppercase;color:var(--muted)}
.stat-v{font-family:Consolas,monospace;color:#f4e7c9;font-size:15px}
.stat-v b{color:#8fd96a}
.scroll-cue{
  position:relative;z-index:3;text-align:center;color:var(--gold-dim);
  margin-top:26px;font-size:13px;animation:bounce 2.2s infinite;
}
@keyframes bounce{0%,100%{transform:translateY(0);opacity:.5}50%{transform:translateY(6px);opacity:1}}

/* ---------------- sections ---------------- */
.section{
  position:relative;z-index:2;
  width:min(1180px,100%);
  margin:0 auto;
  padding:96px 22px 30px;
}
.section-head{max-width:720px;margin-bottom:34px}
.kicker{
  display:inline-block;font-size:11px;letter-spacing:.28em;text-transform:uppercase;
  color:var(--gold-dim);margin-bottom:10px;
}
.section-lead{color:var(--muted);font-size:15.5px;max-width:62ch}
.sub-h{font-size:20px;margin:34px 0 16px;color:#e8d9bd}

/* ---------------- filters ---------------- */
.filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}
.filter{
  background:#1a130d;border:1px solid var(--line-soft);
  padding:7px 13px;font-size:12.5px;letter-spacing:.04em;color:var(--muted);
}
.filter:hover{color:var(--gold);border-color:var(--line)}
.filter.active{background:#3a2b1a;border-color:var(--gold-dim);color:#ffe9bf;box-shadow:inset -2px -2px 0 #22180e, inset 2px 2px 0 #6b5533}

/* ---------------- gallery ---------------- */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(232px,1fr));gap:18px}
.card{
  position:relative;
  background:linear-gradient(180deg, rgba(30,23,16,.92), rgba(17,13,9,.96));
  border:2px solid #3a2e1f;
  padding:12px;
  cursor:pointer;
  transition:transform .18s, border-color .18s, box-shadow .18s;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.03), 0 8px 18px rgba(0,0,0,.35);
}
.card:hover{
  transform:translateY(-5px);
  border-color:var(--gold-dim);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.05), 0 16px 30px rgba(0,0,0,.5), 0 0 26px rgba(232,196,106,.12);
}
.card-img{
  height:190px;display:grid;place-items:center;
  padding:16px;
  background:
    radial-gradient(circle at 50% 62%, rgba(255,160,80,.12), transparent 62%),
    linear-gradient(rgba(10,8,6,.62), rgba(10,8,6,.62)),
    url("../assets/tex/cutstone.png");
  background-size:auto, auto, 84px;
  border:1px solid #2a2116;
  margin-bottom:10px;
  overflow:hidden;
}
.card-img img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 10px 12px rgba(0,0,0,.55))}
.card-img img.icon{width:84%;height:84%}
.card-name{font-family:Consolas,monospace;font-size:13.5px;color:#f0e2c8;margin:0 0 2px}
.card-cat{font-size:10.5px;letter-spacing:.18em;text-transform:uppercase;color:var(--gold-dim)}

.card-tip{
  position:absolute;left:50%;bottom:calc(100% + 12px);transform:translateX(-50%) translateY(6px);
  width:min(280px,80vw);
  padding:9px 11px;
  background:rgba(12,9,7,.98);
  border:2px solid var(--gold-dim);
  box-shadow:0 10px 26px rgba(0,0,0,.7);
  opacity:0;visibility:hidden;transition:.16s;
  pointer-events:none;z-index:20;
}
.card:hover .card-tip{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0)}
.card-tip .tip-name{font-family:Consolas,monospace;color:var(--gold);font-size:13px;margin-bottom:4px}
.card-tip .tip-desc{color:#b9ad9a;font-size:12px;line-height:1.45;margin:0}
.empty-note{color:var(--muted);font-size:14px}

/* ---------------- gallery carousel ---------------- */
.gallery-top{padding-top:56px;padding-bottom:0}
.carousel{
  position:relative;overflow:hidden;
  border:3px solid var(--line);
  background:#0b0907;
  box-shadow:inset 0 0 0 2px #070504, 0 18px 36px rgba(0,0,0,.55);
}
.carousel-track{display:flex;transition:transform .55s ease}
.carousel-slide{
  min-width:100%;height:400px;position:relative;
  display:grid;place-items:center;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,160,80,.14), transparent 62%),
    linear-gradient(rgba(10,8,6,.55), rgba(10,8,6,.55)),
    url("../assets/tex/cutstone.png");
  background-size:auto, auto, 96px;
  cursor:pointer;
}
.carousel-slide img{max-height:300px;max-width:70%;filter:drop-shadow(0 18px 22px rgba(0,0,0,.65))}
.carousel-slide img.item{max-height:190px;image-rendering:pixelated}
.carousel-caption{
  position:absolute;left:0;right:0;bottom:0;
  padding:22px 24px 18px;
  background:linear-gradient(180deg, transparent, rgba(6,4,2,.94) 55%);
}
.carousel-caption .cc-cat{font-size:10px;letter-spacing:.24em;text-transform:uppercase;color:var(--gold-dim)}
.carousel-caption h3{margin:5px 0 6px;font-size:24px;color:#f4e7c9;text-shadow:2px 2px 0 #120c07}
.carousel-caption p{margin:0;color:#bfb09a;font-size:13px;max-width:70ch}
.carousel-nav{
  position:absolute;top:50%;transform:translateY(-50%);
  width:44px;height:56px;z-index:3;
  background:#241a11;border:2px solid var(--line);
  color:var(--gold);font-size:26px;line-height:1;
  box-shadow:inset -2px -2px 0 #150f09, inset 2px 2px 0 #4a3a26;
}
.carousel-nav:hover{filter:brightness(1.2)}
.carousel-nav.prev{left:12px}
.carousel-nav.next{right:12px}
.carousel-dots{position:absolute;right:16px;bottom:12px;display:flex;gap:6px;z-index:3}
.carousel-dots .dot{
  width:9px;height:9px;padding:0;border:1px solid #4a3a26;background:#1a130d;
}
.carousel-dots .dot.active{background:var(--gold);border-color:var(--gold-dim);box-shadow:0 0 8px rgba(232,196,106,.6)}
.gallery-prompt{color:var(--muted);font-size:14px;margin:0 0 18px}
.gallery-prompt[hidden]{display:none}

/* ---------------- server ---------------- */
.server-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:20px}
.owner-card{
  display:flex;gap:20px;align-items:flex-start;
  padding:22px;
  background:linear-gradient(180deg, rgba(30,23,16,.92), rgba(17,13,9,.96));
  border:2px solid #3a2e1f;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.03), var(--shadow);
}
.owner-emblem{
  flex:0 0 auto;width:92px;height:92px;display:grid;place-items:center;
  border-radius:50%;
  background:radial-gradient(circle at 35% 30%, #6a5638, #241a11 72%);
  box-shadow:0 0 0 4px #3d3122, 0 0 0 6px #1b1610, 0 0 30px rgba(255,150,60,.14);
  font-family:Consolas,monospace;font-weight:700;font-size:26px;color:var(--gold);
  text-shadow:2px 2px 0 #120c07;
}
.owner-emblem img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.owner-body h3{font-size:24px;margin:2px 0 6px;color:#f4e7c9}
.owner-body p{color:var(--muted);font-size:14px;margin-bottom:14px}
.role{display:inline-block;font-size:10px;letter-spacing:.24em;text-transform:uppercase;color:var(--gold-dim);margin-bottom:6px}

.ip-card{
  padding:22px;
  background:linear-gradient(180deg, rgba(24,19,13,.94), rgba(12,9,6,.97));
  border:2px solid var(--line);
  box-shadow:inset 0 0 0 2px #080503, var(--shadow);
}
.ip-big{
  background:#0a0705;border:1px solid var(--line-soft);
  padding:14px 16px;margin:8px 0 12px;
  box-shadow:inset 0 0 0 2px #050302;
}
.ip-big code{font-size:clamp(18px,2.4vw,24px);color:var(--gold);letter-spacing:.06em}
.ip-meta{display:flex;gap:18px;color:var(--muted);font-size:12.5px;margin-bottom:16px}
.ip-meta b{color:#e6d6b8;font-family:Consolas,monospace}
.hint{color:var(--muted);font-size:12.5px;margin:12px 0 0}

.admin-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.admin-card{
  display:flex;gap:14px;align-items:center;
  padding:16px;
  background:rgba(24,19,13,.85);
  border:1px solid var(--line-soft);
}
.admin-avatar{
  width:54px;height:54px;display:grid;place-items:center;
  background:#2b2014;border:2px solid var(--line);
  color:var(--gold-dim);font-family:Consolas,monospace;font-weight:700;font-size:15px;
}
.admin-card h4{
  margin:0;font-family:Consolas,monospace;font-size:21px;line-height:1.15;
  letter-spacing:.02em;color:#f0e2c8;
}
.admin-card span{display:block;font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:var(--gold-dim);margin-bottom:3px}
.admin-card p{margin:3px 0 0;font-size:12px;color:var(--muted)}

.plugin-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}
.plugin{
  position:relative;
  padding:16px 16px 14px;
  background:
    linear-gradient(180deg, rgba(36,27,18,.95), rgba(18,13,9,.97)),
    url("../assets/tex/planks.png");
  background-size:auto, 48px;
  border:2px solid var(--line);
  box-shadow:inset 0 0 0 2px #0d0906;
}
.plugin::before,.plugin::after{
  content:"";position:absolute;top:6px;width:6px;height:6px;border-radius:50%;
  background:#8c8577;box-shadow:inset -1px -1px 0 #3c3831;
}
.plugin::before{left:6px}
.plugin::after{right:6px}
.plugin h4{margin:0 0 4px;font-family:Consolas,monospace;font-size:14px;color:#f0e2c8;letter-spacing:.02em}
.plugin p{margin:0;font-size:12.5px;color:var(--muted)}

/* ---------------- recipes ---------------- */
.recipe-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:18px}
.recipe{
  padding:18px;
  background:linear-gradient(180deg, rgba(28,21,14,.94), rgba(16,12,8,.97));
  border:2px solid #3a2e1f;
}
.recipe-flow{display:flex;align-items:center;gap:14px;justify-content:center;flex-wrap:wrap}
.craft-grid{
  display:grid;grid-template-columns:repeat(3,44px);gap:4px;
  padding:8px;
  background:linear-gradient(180deg,#241a11,#160f0a);
  border:2px solid #3a2e1f;
  box-shadow:inset 0 0 0 2px #0a0705, inset -3px -3px 0 #150f09, inset 3px 3px 0 #4a3a26;
}
.slot{
  width:44px;height:44px;
  background:#100c08;
  box-shadow:inset -2px -2px 0 #050302, inset 2px 2px 0 #3a2e1f;
  display:grid;place-items:center;
}
.slot img{width:30px;height:30px}
.slot.empty{background:#0d0906}
.recipe-arrow{color:var(--gold-dim);font-size:22px}
.recipe-result{
  padding:8px;
  background:linear-gradient(180deg,#2e2317,#160f0a);
  border:2px solid var(--gold-dim);
  box-shadow:inset 0 0 0 2px #0a0705, inset -3px -3px 0 #150f09, inset 3px 3px 0 #6b5533, 0 0 22px rgba(232,196,106,.12);
}
.recipe-result .slot{width:56px;height:56px}
.recipe-result img{width:40px;height:40px}
.recipe-name{margin-top:14px;text-align:center;font-family:Consolas,monospace;font-size:14px;color:#f0e2c8}
.recipe-name small{display:block;color:var(--gold-dim);font-size:11px;letter-spacing:.16em;text-transform:uppercase}

/* recipe viewer + searchable list */
.recipe-top{padding-top:56px;padding-bottom:0}
.recipe-viewer{
  position:relative;min-height:300px;
  display:grid;place-items:center;
  padding:26px;
  border:3px solid var(--line);
  background:
    radial-gradient(circle at 50% 45%, rgba(255,160,80,.10), transparent 62%),
    linear-gradient(rgba(10,8,6,.6), rgba(10,8,6,.6)),
    url("../assets/tex/cutstone.png");
  background-size:auto, auto, 96px;
  box-shadow:inset 0 0 0 2px #070504, 0 18px 36px rgba(0,0,0,.55);
}
.viewer-empty{text-align:center;color:var(--muted)}
.viewer-empty p{margin:0;font-size:14px}
.viewer-icon{display:block;font-size:34px;color:var(--gold-dim);margin-bottom:8px}
.viewer-body{width:100%}
.viewer-flow{display:grid;grid-template-columns:auto minmax(0,1fr);gap:28px;align-items:start}
.viewer-craft{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.viewer-flow .craft-grid{grid-template-columns:repeat(3,56px)}
.viewer-flow .craft-grid .slot{width:56px;height:56px}
.viewer-flow .craft-grid img{width:40px;height:40px}
.viewer-flow .recipe-result .slot{width:70px;height:70px}
.viewer-flow .recipe-result img{width:52px;height:52px}
.viewer-info{min-width:0;max-width:440px}
.viewer-cat{font-size:10px;letter-spacing:.22em;text-transform:uppercase;color:var(--gold-dim)}
.viewer-info h2{font-size:23px;margin:5px 0 8px;color:#f4e7c9}
.viewer-effects{
  margin:12px 0;padding:12px 14px;
  background:rgba(10,8,6,.6);
  border:1px solid var(--line-soft);
  border-left:3px solid var(--gold-dim);
}
.effects-title{font-size:10px;letter-spacing:.22em;text-transform:uppercase;color:var(--gold-dim);margin-bottom:8px}
.effect{font-family:Consolas,monospace;font-size:13px;color:#d8cbb4;line-height:1.7}
.viewer-desc{color:var(--muted);font-size:13px;font-style:italic;margin:10px 0}
.viewer-meta{color:var(--muted);font-size:12.5px;margin:10px 0 0}
.viewer-close{margin-top:14px}

.search-row{display:flex;gap:12px;align-items:center;margin-bottom:14px;flex-wrap:wrap}
.search-input{
  flex:1;min-width:220px;
  background:#120d08;border:2px solid var(--line-soft);
  color:var(--text);padding:11px 14px;
  font-family:Consolas,monospace;font-size:13.5px;
}
.search-input::placeholder{color:#7c7264}
.search-input:focus{outline:none;border-color:var(--gold-dim);background:#160f0a}
.search-count{font-family:Consolas,monospace;font-size:12px;color:var(--gold-dim);white-space:nowrap}
.recipe-chips{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px}
.recipe-chip{
  display:block;padding:10px;text-align:left;
  background:linear-gradient(180deg, rgba(30,23,16,.92), rgba(17,13,9,.96));
  border:2px solid #3a2e1f;
  transition:transform .16s, border-color .16s, box-shadow .16s;
}
.recipe-chip:hover{transform:translateY(-3px);border-color:var(--gold-dim);box-shadow:0 14px 26px rgba(0,0,0,.45)}
.recipe-chip.active{border-color:var(--gold);box-shadow:0 0 24px rgba(232,196,106,.2)}
.chip-img{
  height:132px;display:grid;place-items:center;
  padding:14px;margin-bottom:9px;
  background:
    radial-gradient(circle at 50% 60%, rgba(255,160,80,.12), transparent 62%),
    linear-gradient(rgba(10,8,6,.62), rgba(10,8,6,.62)),
    url("../assets/tex/cutstone.png");
  background-size:auto, auto, 84px;
  border:1px solid #2a2116;
  overflow:hidden;
}
.chip-img img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 8px 10px rgba(0,0,0,.55))}
.chip-img img.icon{width:84%;height:84%}
.chip-name{
  display:block;
  font-family:Consolas,monospace;font-size:12.5px;color:#f0e2c8;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.chip-meta{display:block;font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:var(--gold-dim);margin-top:3px}

/* armor recipes grouped by piece */
.armor-group{margin-bottom:22px}
.armor-group-title{
  font-family:Consolas,monospace;font-size:13px;letter-spacing:.2em;text-transform:uppercase;
  color:var(--gold-dim);margin:0 0 10px;padding-left:10px;
  border-left:3px solid var(--gold-dim);
}
.armor-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.recipe-chips.armor-list{display:block}

/* ---------------- commands ---------------- */
.commands{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:10px}
.command{
  display:flex;align-items:center;gap:12px;
  padding:12px 14px;
  background:rgba(22,17,12,.85);
  border:1px solid var(--line-soft);
  text-align:left;width:100%;
}
.command:hover{border-color:var(--gold-dim);background:rgba(34,26,18,.9)}
.command code{color:var(--gold);font-size:13.5px;white-space:nowrap}
.command span{color:var(--muted);font-size:12.5px}

/* ---------------- addresses ---------------- */
.ip-list{display:grid;gap:8px;margin:8px 0 12px}
.ip-row{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  background:#0a0705;border:1px solid var(--line-soft);
  padding:10px 12px;
  box-shadow:inset 0 0 0 2px #050302;
}
.ip-row code{font-size:clamp(13px,1.7vw,17px);color:var(--gold);letter-spacing:.04em;word-break:break-all}
.ip-row .copy-mini{margin-left:auto}
.badge-row{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 0}
.badge-ok,.badge-info{
  font-size:11px;letter-spacing:.12em;text-transform:uppercase;
  padding:5px 9px;border:1px solid;
}
.badge-ok{color:#a8d98a;border-color:#3d5a2a;background:rgba(60,90,40,.18)}
.badge-info{color:var(--gold-dim);border-color:var(--line);background:rgba(40,30,20,.4)}

/* ---------------- rules ---------------- */
.rules-actions{display:flex;align-items:center;gap:14px;margin-bottom:18px}
.rules-count{color:var(--muted);font-size:12.5px}
.accordion{display:grid;gap:10px;margin-bottom:18px}
.acc-item{
  background:linear-gradient(180deg, rgba(30,23,16,.92), rgba(16,12,8,.96));
  border:2px solid #3a2e1f;
}
.acc-head{
  display:flex;align-items:center;gap:14px;width:100%;
  padding:14px 16px;background:none;border:none;text-align:left;
}
.acc-head:hover{background:rgba(255,220,150,.04)}
.acc-num{
  font-family:Consolas,monospace;color:var(--gold);font-size:13px;
  min-width:28px;height:28px;display:grid;place-items:center;
  border:1px solid var(--line);background:#120d08;
}
.acc-title{font-family:Consolas,monospace;font-size:15px;color:#f0e2c8;flex:1}
.acc-count{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--gold-dim)}
.acc-chevron{color:var(--gold-dim);transition:transform .2s}
.acc-item.open .acc-chevron{transform:rotate(90deg)}
.acc-panel{display:none;padding:0 16px 16px;border-top:1px solid var(--line-soft)}
.acc-item.open .acc-panel{display:block}
.rule{padding:14px 0;border-bottom:1px solid rgba(74,58,38,.35)}
.rule:last-child{border-bottom:none}
.rule-head{display:flex;gap:10px;align-items:baseline;margin-bottom:6px}
.rule-num{font-family:Consolas,monospace;color:var(--gold);font-size:12.5px;flex:0 0 auto}
.rule-text{color:#d8cbb4;font-size:14px;white-space:pre-line;margin:0}
.rule-punish{
  margin-top:8px;padding:9px 12px;
  background:rgba(120,40,25,.14);
  border-left:3px solid #b5543a;
  color:#efc3b1;font-size:13px;white-space:pre-line;
}
.rule-punish b{display:block;font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:#d98a6a;margin-bottom:4px}
.acc-defs{padding:14px 16px;color:#d8cbb4;font-size:13.5px;white-space:pre-line;line-height:1.7}

/* ---------------- multi-page: shared page header ---------------- */
.nav-links a.active{color:var(--gold)}
.nav-links a.active::after{content:"";display:block;height:2px;background:var(--gold-dim);margin-top:3px}

.page-hero{
  position:relative;overflow:hidden;
  padding:128px 22px 46px;
  border-bottom:1px solid var(--line-soft);
}
.page-hero-bg{
  position:absolute;inset:0;
  background:url("../assets/tex/darkwood.png");
  background-size:96px;
  filter:brightness(.36) saturate(.8);
}
.page-hero-weave{
  position:absolute;inset:0;
  background:url("../assets/tex/woven.png");
  background-size:44px;
  opacity:.14;
  mix-blend-mode:overlay;
}
.page-hero-glow{
  position:absolute;inset:0;
  background:
    radial-gradient(circle at 78% 40%, rgba(255,150,60,.16), transparent 48%),
    linear-gradient(180deg, rgba(6,4,2,.65), rgba(6,4,2,.95));
}
.page-hero-inner{position:relative;z-index:2;width:min(1180px,100%);margin:0 auto}
.page-hero h1{
  font-size:clamp(30px,5vw,52px);margin:6px 0 12px;color:#f4e7c9;
  text-shadow:2px 2px 0 #120c07, 0 0 26px rgba(255,170,70,.18);
}
.page-hero p{color:#c9bda9;max-width:60ch;margin:0}

/* ---------------- news ---------------- */
.news-list{display:grid;gap:16px;max-width:900px}
.news-item{
  padding:22px 24px;
  background:linear-gradient(180deg, rgba(30,23,16,.94), rgba(16,12,8,.97));
  border:2px solid #3a2e1f;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.03), 0 10px 22px rgba(0,0,0,.35);
}
.news-meta{display:flex;align-items:center;gap:12px;margin-bottom:8px}
.news-date{font-family:Consolas,monospace;font-size:12px;color:var(--gold-dim)}
.news-tag{
  font-size:10px;letter-spacing:.18em;text-transform:uppercase;
  color:#e0b070;border:1px solid var(--line);padding:2px 7px;background:#160f0a;
}
.news-item h2{font-size:21px;margin:0 0 10px;color:#f0e2c8}
.news-item p{color:#c6b8a1;font-size:14.5px;line-height:1.65;margin:0 0 10px}
.news-item p:last-child{margin-bottom:0}
.news-empty{color:var(--muted)}

/* ---------------- home teasers ---------------- */
.teaser-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}
.teaser{
  display:block;padding:20px;
  background:linear-gradient(180deg, rgba(30,23,16,.92), rgba(16,12,8,.96));
  border:2px solid #3a2e1f;
  text-decoration:none;
  transition:transform .18s, border-color .18s, box-shadow .18s;
}
.teaser:hover{transform:translateY(-4px);border-color:var(--gold-dim);box-shadow:0 14px 26px rgba(0,0,0,.45);text-decoration:none}
.teaser h3{font-size:16px;margin:0 0 6px;color:#f0e2c8}
.teaser p{font-size:13px;color:var(--muted);margin:0 0 12px}
.teaser .go{font-family:Consolas,monospace;font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--gold-dim)}
.teaser .tex{width:38px;height:38px;margin-bottom:12px;filter:drop-shadow(0 6px 10px rgba(0,0,0,.5))}

/* ---------------- steps ---------------- */
.steps{display:grid;gap:12px;counter-reset:step}
.step{
  display:flex;gap:14px;align-items:flex-start;
  padding:14px 16px;background:rgba(24,19,13,.85);border:1px solid var(--line-soft);
}
.step::before{
  counter-increment:step;content:counter(step);
  flex:0 0 auto;width:30px;height:30px;display:grid;place-items:center;
  background:#120d08;border:1px solid var(--line);
  font-family:Consolas,monospace;color:var(--gold);font-size:13px;
}
.step p{margin:0;color:#c6b8a1;font-size:14px}
.step p b{color:#f0e2c8}

/* ---------------- nick colours ---------------- */
.nick-tint,
.owner-body h3.nick-tint,
.admin-card h4.nick-tint{
  color:var(--nick-color);
  -webkit-text-fill-color:var(--nick-color);
}
.nick-shimmer{
  background-image:linear-gradient(100deg, var(--nick-color) 0%, #ffffff 35%, var(--nick-color) 55%, #ffe6f2 75%, var(--nick-color) 100%);
  background-size:250% 100%;
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  -webkit-text-fill-color:transparent;
  animation:nickShimmer 5s linear infinite;
}
@keyframes nickShimmer{
  0%{background-position:180% 0}
  100%{background-position:-80% 0}
}
@media (prefers-reduced-motion:reduce){
  .nick-shimmer{animation:none;background-position:50% 0}
}

/* ---------------- mods ---------------- */
.mod-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:16px}
.mod-card{
  display:flex;flex-direction:column;
  padding:20px;
  background:linear-gradient(180deg, rgba(30,23,16,.94), rgba(16,12,8,.97));
  border:2px solid #3a2e1f;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.03), 0 10px 22px rgba(0,0,0,.35);
}
.mod-head{display:flex;gap:14px;align-items:center;margin-bottom:12px}
.mod-icon{
  width:56px;height:56px;flex:0 0 auto;
  padding:7px;object-fit:contain;
  background:#0d0a07;border:1px solid #2a2116;
}
.mod-title h3{margin:0 0 6px;font-size:18px;color:#f0e2c8}
.mod-badge{
  display:inline-block;font-size:10px;letter-spacing:.16em;text-transform:uppercase;
  padding:3px 8px;border:1px solid;
}
.mod-badge.client{color:#9fe0ff;border-color:#2f5a70;background:rgba(40,90,110,.2)}
.mod-badge.server{color:#e0b070;border-color:#6a5230;background:rgba(110,85,40,.2)}
.mod-badge.both{color:#c9a6ff;border-color:#5a4a80;background:rgba(80,60,120,.25)}
.mod-badge.optional{color:#a8d98a;border-color:#3d5a2a;background:rgba(60,90,40,.18)}
.mod-badges{display:flex;gap:6px;flex-wrap:wrap}
.mods-notice{
  margin-bottom:24px;padding:18px 20px;
  background:rgba(60,90,40,.10);
  border:2px solid #3d5a2a;
  border-left:4px solid #7fce4a;
}
.mods-notice strong{display:block;color:#bfe6a0;font-family:Consolas,monospace;font-size:15px;margin-bottom:6px}
.mods-notice p{margin:0;color:#c6b8a1;font-size:13.5px;line-height:1.6}
.mod-desc{color:#c6b8a1;font-size:13.5px;line-height:1.6;margin:0 0 14px;flex:1}
.mod-meta{display:flex;gap:16px;color:var(--muted);font-size:12px;margin-bottom:14px}
.mod-download{width:100%;justify-content:center}
.mods-note{margin-top:36px}

/* ---------------- home: start tiles + twitch strip ---------------- */
.start-section{padding-top:56px}
.start-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.start-tile{
  display:flex;flex-direction:column;gap:8px;
  padding:16px;
  background:linear-gradient(180deg, rgba(30,23,16,.92), rgba(16,12,8,.96));
  border:2px solid #3a2e1f;
  text-decoration:none;
  transition:transform .16s, border-color .16s, box-shadow .16s;
}
.start-tile:hover{transform:translateY(-3px);border-color:var(--gold-dim);box-shadow:0 14px 26px rgba(0,0,0,.45);text-decoration:none}
.start-tile img{width:42px;height:42px;object-fit:contain;filter:drop-shadow(0 6px 10px rgba(0,0,0,.5))}
.start-tile h3{margin:0;font-size:15px;color:#f0e2c8}
.start-tile p{margin:0;font-size:12px;color:var(--muted)}
.start-tile .go{font-family:Consolas,monospace;font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--gold-dim);margin-top:2px}
.twitch-section{padding-top:18px}
.twitch-strip{
  position:relative;overflow:hidden;
  border:2px solid var(--line);
  background:url("../assets/brand/twitch-banner.jpg") center/cover no-repeat;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04), 0 14px 28px rgba(0,0,0,.4);
}
.twitch-strip::before{
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg, rgba(6,4,2,.94), rgba(6,4,2,.72));
}
.twitch-strip-inner{position:relative;display:flex;align-items:center;gap:16px;padding:16px 20px;flex-wrap:wrap}
.twitch-strip-avatar{width:54px;height:54px;border-radius:50%;object-fit:cover;border:2px solid var(--line);flex:0 0 auto}
.twitch-strip-text{flex:1;min-width:180px}
.twitch-strip-text p{margin:2px 0 0;color:#d8cbb4;font-size:13.5px}
.twitch-strip .btn{margin-left:auto}

/* ---------------- footer ---------------- */
.footer{
  position:relative;z-index:2;
  margin-top:90px;
  border-top:1px solid var(--line-soft);
  background:linear-gradient(180deg, rgba(10,7,5,.6), rgba(6,4,3,.95));
  padding:40px 22px 30px;
}
.footer-inner{width:min(1180px,100%);margin:0 auto;display:grid;gap:20px}
.footer-brand{display:flex;gap:14px;align-items:center}
.footer-brand strong{font-family:Consolas,monospace;letter-spacing:.14em;color:#f4e7c9}
.footer-brand p{margin:2px 0 0;color:var(--muted);font-size:13px}
.socials{display:flex;gap:10px;flex-wrap:wrap}
.social{
  display:inline-flex;align-items:center;gap:8px;
  padding:9px 14px;border:1px solid var(--line-soft);background:#160f0a;
  color:var(--muted);font-size:12.5px;letter-spacing:.04em;
}
.social:hover{border-color:var(--gold-dim);color:var(--gold);text-decoration:none}
.social svg{width:16px;height:16px;fill:currentColor}
.footer-note{color:#6f665a;font-size:12px;margin:0}

/* ---------------- lightbox ---------------- */
.lightbox{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px}
.lightbox[hidden]{display:none}
.lb-backdrop{position:absolute;inset:0;background:rgba(4,3,2,.82);backdrop-filter:blur(6px)}
.lb-panel{
  position:relative;width:min(760px,100%);max-height:90vh;overflow:auto;
  display:grid;grid-template-columns:1.1fr .9fr;
  background:linear-gradient(180deg, rgba(30,23,16,.98), rgba(14,10,7,.99));
  border:2px solid var(--line);
  box-shadow:inset 0 0 0 2px #0a0705, var(--shadow);
}
.lb-image{
  display:grid;place-items:center;padding:22px;
  background:radial-gradient(circle at 50% 55%, rgba(255,160,80,.12), transparent 65%), #0d0a07;
  border-right:1px solid var(--line-soft);
}
.lb-image img{width:100%;max-width:380px;max-height:380px;object-fit:contain;filter:drop-shadow(0 14px 18px rgba(0,0,0,.6))}
.lb-body{padding:22px}
.lb-cat{font-size:10px;letter-spacing:.24em;text-transform:uppercase;color:var(--gold-dim)}
.lb-body h3{margin:6px 0 10px;font-size:22px;color:#f4e7c9}
.lb-body p{color:var(--muted);font-size:14px}
.lb-id{display:inline-block;margin-top:8px;padding:4px 8px;background:#0a0705;border:1px solid var(--line-soft);color:#7fd4c1;font-size:11.5px}
.lb-close{position:absolute;top:10px;right:10px;background:#1a130d;border:1px solid var(--line);width:32px;height:32px;color:var(--gold);z-index:2}

/* ---------------- toast ---------------- */
.toast{
  position:fixed;left:50%;bottom:28px;transform:translate(-50%,20px);
  background:#1c150e;border:2px solid var(--gold-dim);
  color:#f4e7c9;font-family:Consolas,monospace;font-size:13px;
  padding:10px 16px;box-shadow:var(--shadow);
  opacity:0;pointer-events:none;transition:.2s;z-index:200;
}
.toast.show{opacity:1;transform:translate(-50%,0)}

/* ---------------- reveal ---------------- */
.reveal{opacity:0;transform:translateY(22px);transition:opacity .7s ease, transform .7s ease}
.reveal.in{opacity:1;transform:none}

/* ---------------- theme toggle ---------------- */
.theme-toggle{
  display:flex;align-items:center;gap:5px;
  background:#140f0a;border:1px solid var(--line);
  padding:7px 10px;margin-left:2px;
  font-family:Consolas,monospace;font-size:11.5px;letter-spacing:.06em;
  color:var(--gold-dim);white-space:nowrap;
}
.theme-toggle:hover{color:var(--gold);border-color:var(--gold-dim);background:#1a130c}
.theme-prefix{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.theme-name{color:var(--gold)}

/* ---------------- twitch theme ---------------- */
html[data-theme="twitch"]{
  --ink:#0a0713;
  --wood:#1a1230;
  --wood-2:#231840;
  --wood-3:#2d2052;
  --gold:#c9a6ff;
  --gold-dim:#9a78e0;
  --ember:#ff5cc8;
  --text:#efe8ff;
  --muted:#a99dc6;
  --line:#4a3670;
  --line-soft:#33254f;
}
html[data-theme="twitch"] body::before{opacity:.24;filter:hue-rotate(215deg) saturate(.75)}
html[data-theme="twitch"] .nav{background:linear-gradient(180deg,rgba(10,7,20,.97),rgba(14,9,26,.82));border-bottom-color:var(--line-soft)}
html[data-theme="twitch"] .theme-toggle{background:#120c22}
html[data-theme="twitch"] .hero-bg{filter:brightness(.34) saturate(.6) hue-rotate(220deg)}
html[data-theme="twitch"] .hero-beam{filter:brightness(.28) saturate(.5) hue-rotate(220deg)}
html[data-theme="twitch"] .hero-weave{opacity:.2}
html[data-theme="twitch"] .hero-glow{
  background:
    radial-gradient(circle at 68% 62%, rgba(160,90,255,.28), transparent 46%),
    radial-gradient(circle at 20% 30%, rgba(255,90,200,.14), transparent 42%),
    linear-gradient(180deg, rgba(5,3,12,.6) 0%, rgba(5,3,12,.4) 45%, rgba(5,3,12,.94) 100%);
}
html[data-theme="twitch"] .banner{
  background:
    linear-gradient(180deg, rgba(36,26,61,.97), rgba(14,9,26,.98)),
    url("../assets/tex/planks.png");
  background-size:auto, 64px;
  border-color:var(--line);
}
html[data-theme="twitch"] .banner::before,
html[data-theme="twitch"] .banner::after{filter:hue-rotate(220deg) brightness(.9)}
html[data-theme="twitch"] .banner-rope{filter:hue-rotate(220deg) brightness(.9)}
html[data-theme="twitch"] .page-hero-bg{filter:brightness(.4) saturate(.8) hue-rotate(215deg)}
html[data-theme="twitch"] .page-hero-glow{
  background:
    radial-gradient(circle at 78% 40%, rgba(160,90,255,.20), transparent 50%),
    linear-gradient(180deg, rgba(5,3,12,.55), rgba(5,3,12,.92));
}
html[data-theme="twitch"] .card-img,
html[data-theme="twitch"] .chip-img,
html[data-theme="twitch"] .carousel-slide,
html[data-theme="twitch"] .recipe-viewer{
  background-image:
    radial-gradient(circle at 50% 58%, rgba(160,90,255,.16), transparent 62%),
    linear-gradient(rgba(14,9,28,.7), rgba(14,9,28,.7)),
    url("../assets/tex/cutstone.png");
}
html[data-theme="twitch"] .btn-primary{
  background:#5a3fa0;color:#f2ecff;
  box-shadow:inset -3px -3px 0 #2e2058, inset 3px 3px 0 #8f6fe0, 0 6px 16px rgba(0,0,0,.45);
}
html[data-theme="twitch"] .btn-ghost{
  background:#241a3d;color:#e6dcff;
  box-shadow:inset -3px -3px 0 #150f28, inset 3px 3px 0 #4a3670, 0 6px 16px rgba(0,0,0,.4);
}
html[data-theme="twitch"] .btn-twitch{background:#4a2b8f;box-shadow:inset -3px -3px 0 #241448, inset 3px 3px 0 #8f6fe0, 0 6px 16px rgba(0,0,0,.4)}
html[data-theme="twitch"] .shield{
  background:radial-gradient(circle at 35% 30%, #7a5fae, #241a3d 72%);
  box-shadow:0 0 0 6px #3d2b5e, 0 0 0 8px #1b1430, 0 0 46px rgba(160,90,255,.28), var(--shadow);
}
html[data-theme="twitch"] .flame{
  background:linear-gradient(#ffe3ff,#ff5cc8 55%,#a13cff);
}
html[data-theme="twitch"] .torch::after{
  background:radial-gradient(rgba(190,110,255,.4), transparent 70%);
}
html[data-theme="twitch"] .footer{background:linear-gradient(180deg,rgba(10,7,20,.7),rgba(6,4,12,.97))}
html[data-theme="twitch"] .stat{border-color:var(--line-soft)}
html[data-theme="twitch"] .owner-emblem{
  background:radial-gradient(circle at 35% 30%, #7a5fae, #241a3d 72%);
  box-shadow:0 0 0 4px #3d2b5e, 0 0 0 6px #1b1430, 0 0 30px rgba(160,90,255,.22);
}
html[data-theme="twitch"] .plugin{background:linear-gradient(180deg, rgba(38,28,64,.95), rgba(16,10,28,.97)), url("../assets/tex/planks.png")}
html[data-theme="twitch"] .recipe-chip{background:linear-gradient(180deg, rgba(34,25,58,.92), rgba(14,9,26,.96))}
html[data-theme="twitch"] .news-item,
html[data-theme="twitch"] .teaser{background:linear-gradient(180deg, rgba(34,25,58,.94), rgba(14,9,26,.97))}

/* twitch theme: remaining surfaces */
html[data-theme="twitch"] .card{
  background:linear-gradient(180deg, rgba(34,25,58,.94), rgba(14,9,26,.97));
  border-color:#3d2b5e;
}
html[data-theme="twitch"] .owner-card{
  background:linear-gradient(180deg, rgba(34,25,58,.94), rgba(14,9,26,.97));
  border-color:#3d2b5e;
}
html[data-theme="twitch"] .ip-card{
  background:linear-gradient(180deg, rgba(30,22,52,.94), rgba(12,8,22,.97));
  border-color:#4a3670;
}
html[data-theme="twitch"] .admin-card,
html[data-theme="twitch"] .step,
html[data-theme="twitch"] .command,
html[data-theme="twitch"] .ip-row,
html[data-theme="twitch"] .hero-ip,
html[data-theme="twitch"] .stat,
html[data-theme="twitch"] .card-tip,
html[data-theme="twitch"] .search-input,
html[data-theme="twitch"] .social{
  background:rgba(26,18,45,.88);
  border-color:#3d2b5e;
}
html[data-theme="twitch"] .acc-item{
  background:linear-gradient(180deg, rgba(34,25,58,.94), rgba(14,9,26,.97));
  border-color:#3d2b5e;
}
html[data-theme="twitch"] .acc-num,
html[data-theme="twitch"] .admin-avatar,
html[data-theme="twitch"] .brand-mark{
  background:#241a3d;
  border-color:#4a3670;
}
html[data-theme="twitch"] .acc-panel{border-top-color:#3d2b5e}
html[data-theme="twitch"] .acc-head:hover{background:rgba(190,140,255,.06)}
html[data-theme="twitch"] .filters .filter{background:#1a1230;border-color:#33254f}
html[data-theme="twitch"] .filters .filter.active{
  background:#3a2a63;border-color:#9a78e0;color:#f0e6ff;
  box-shadow:inset -2px -2px 0 #241a3d, inset 2px 2px 0 #6b53a8;
}
html[data-theme="twitch"] .ip-row code,
html[data-theme="twitch"] .hero-ip code{color:var(--gold)}
html[data-theme="twitch"] .ip-big{background:#0d0918;border-color:#33254f}
html[data-theme="twitch"] .lb-panel{
  background:linear-gradient(180deg, rgba(34,25,58,.98), rgba(12,8,22,.99));
  border-color:#4a3670;
}
html[data-theme="twitch"] .lb-image{background:radial-gradient(circle at 50% 55%, rgba(160,90,255,.16), transparent 65%), #0d0918}
html[data-theme="twitch"] .lb-id{background:#0d0918;border-color:#33254f;color:#9fe0ff}
html[data-theme="twitch"] .toast{background:#241a3d;border-color:#9a78e0}
html[data-theme="twitch"] .recipe-viewer{border-color:#4a3670}
html[data-theme="twitch"] .craft-grid{background:linear-gradient(180deg,#2b2050,#150f28);border-color:#4a3670}
html[data-theme="twitch"] .slot{background:#120c22;box-shadow:inset -2px -2px 0 #07040e, inset 2px 2px 0 #4a3670}
html[data-theme="twitch"] .recipe-result{background:linear-gradient(180deg,#3a2a63,#150f28);border-color:#c9a6ff}
html[data-theme="twitch"] .viewer-effects{background:rgba(10,6,20,.6);border-left-color:#c9a6ff}
html[data-theme="twitch"] .plugin::before,
html[data-theme="twitch"] .plugin::after{background:#a99dc6}
html[data-theme="twitch"] .mod-card{
  background:linear-gradient(180deg, rgba(34,25,58,.94), rgba(14,9,26,.97));
  border-color:#3d2b5e;
}
html[data-theme="twitch"] .mod-icon{background:#120c22;border-color:#3a2a63}
html[data-theme="twitch"] .stream-card{
  background:linear-gradient(180deg, rgba(34,25,58,.94), rgba(14,9,26,.97));
  border-color:#3d2b5e;
}
html[data-theme="twitch"] .start-tile{
  background:linear-gradient(180deg, rgba(34,25,58,.94), rgba(14,9,26,.97));
  border-color:#3d2b5e;
}
html[data-theme="twitch"] .twitch-strip{border-color:#4a3670}

/* ---------------- responsive ---------------- */
@media (max-width:1000px){
  .ip-chip{display:none}
  .nav-links{gap:12px}
  .nav-links a{font-size:13px}
}
@media (max-width:900px){
  .hero-inner{grid-template-columns:1fr}
  .hero-art{min-height:280px;order:-1}
  .shield{width:160px;right:auto;left:50%;transform:translate(-50%,-50%)}
  .float-item.i1{right:18%;top:8%}
  .float-item.i2{right:8%;top:2%}
  .float-item.i3{right:auto;left:8%;bottom:8%}
  .torch.t1{left:6%;bottom:0}
  .torch.t2{right:6%;bottom:0}
  .server-grid{grid-template-columns:1fr}
  .hero-stats{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:760px){
  .nav{gap:10px;padding:10px 14px}
  .nav-links{
    display:none;position:absolute;top:100%;left:0;right:0;
    flex-direction:column;gap:0;background:rgba(10,7,5,.98);
    border-bottom:1px solid var(--line-soft);padding:8px 0;
  }
  .nav-links.open{display:flex}
  .nav-links a{padding:11px 18px;font-size:14px}
  .ip-chip{display:none}
  .theme-name{display:none}
  .nav-toggle{display:block;margin-left:auto}
  .banner{padding:22px}
  .hero-title{letter-spacing:.06em}
  .hero-art{min-height:220px}
  .hero-stats{grid-template-columns:1fr 1fr;gap:10px}
  .section{padding-top:70px}
  .card-img{height:150px}
  .start-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .twitch-strip-inner{padding:14px 16px}
  .twitch-strip .btn{margin-left:0;width:100%;justify-content:center}
  .carousel-slide{height:280px}
  .carousel-slide img{max-height:190px;max-width:78%}
  .carousel-caption{padding:16px 16px 14px}
  .carousel-caption h3{font-size:18px}
  .carousel-caption p{font-size:12px}
  .carousel-nav{width:34px;height:44px;font-size:20px}
  .recipe-viewer{padding:18px;min-height:240px}
  .viewer-flow{gap:16px;grid-template-columns:1fr}
  .viewer-info{min-width:0;max-width:100%}
  .recipe-chips{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
  .armor-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .lb-panel{grid-template-columns:1fr}
  .lb-image{border-right:none;border-bottom:1px solid var(--line-soft)}
  .lb-image img{max-height:240px}
}
@media (hover:none){
  .card-tip{display:none}
}
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
  .reveal{opacity:1;transform:none}
}
