/* Waystone — dark stone & gold, with a light touch of the 3.3.5 UI. All ornaments are original CSS/SVG. */
:root {
  --bg: #0b0a08;
  --panel: #16130e;
  --panel2: #1c1812;
  --line: rgba(255, 240, 210, .07);
  --line2: rgba(255, 240, 210, .12);
  --gold: #d9b45a;
  --gold-hi: #ecd08a;
  --gold-deep: #5e4a22;
  --gold-line: rgba(217, 180, 90, .3);
  --text: #ebe4d3;
  --muted: #a39b8a;
  --dim: #8f8778;
  --violet: #a58bff;
  --blue: #8fd0ff;
  --green: #86d98a;
  --red: #e0605a;
  --head: "Alegreya", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Alegreya Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 10px;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .92 0 0 0 0 .75 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --cTL: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cg fill='none' stroke='%23d9b45a' stroke-linecap='round'%3E%3Cpath d='M7 46V16Q7 7 16 7H46' stroke-width='1.6'/%3E%3Cpath d='M12 46V19Q12 12 19 12H46' stroke-width='1' stroke-opacity='.45'/%3E%3Cpath d='M18 25q0-7 7-7' stroke-width='1.2'/%3E%3Cpath d='M7 31q6-3 6-9M31 7q-3 6-9 6' stroke-width='1' stroke-opacity='.7'/%3E%3C/g%3E%3Cpath d='M7 0l5 7-5 7-5-7z' fill='%23d9b45a'/%3E%3Cpath d='M7 3.5l2.5 3.5-2.5 3.5-2.5-3.5z' fill='%23fff1c4'/%3E%3C/svg%3E");
  --cTR: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cg transform='translate(48 0) scale(-1 1)'%3E%3Cg fill='none' stroke='%23d9b45a' stroke-linecap='round'%3E%3Cpath d='M7 46V16Q7 7 16 7H46' stroke-width='1.6'/%3E%3Cpath d='M12 46V19Q12 12 19 12H46' stroke-width='1' stroke-opacity='.45'/%3E%3Cpath d='M18 25q0-7 7-7' stroke-width='1.2'/%3E%3Cpath d='M7 31q6-3 6-9M31 7q-3 6-9 6' stroke-width='1' stroke-opacity='.7'/%3E%3C/g%3E%3Cpath d='M7 0l5 7-5 7-5-7z' fill='%23d9b45a'/%3E%3Cpath d='M7 3.5l2.5 3.5-2.5 3.5-2.5-3.5z' fill='%23fff1c4'/%3E%3C/g%3E%3C/svg%3E");
  --cBL: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cg transform='translate(0 48) scale(1 -1)'%3E%3Cg fill='none' stroke='%23d9b45a' stroke-linecap='round'%3E%3Cpath d='M7 46V16Q7 7 16 7H46' stroke-width='1.6'/%3E%3Cpath d='M12 46V19Q12 12 19 12H46' stroke-width='1' stroke-opacity='.45'/%3E%3Cpath d='M18 25q0-7 7-7' stroke-width='1.2'/%3E%3Cpath d='M7 31q6-3 6-9M31 7q-3 6-9 6' stroke-width='1' stroke-opacity='.7'/%3E%3C/g%3E%3Cpath d='M7 0l5 7-5 7-5-7z' fill='%23d9b45a'/%3E%3Cpath d='M7 3.5l2.5 3.5-2.5 3.5-2.5-3.5z' fill='%23fff1c4'/%3E%3C/g%3E%3C/svg%3E");
  --cBR: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cg transform='translate(48 48) scale(-1 -1)'%3E%3Cg fill='none' stroke='%23d9b45a' stroke-linecap='round'%3E%3Cpath d='M7 46V16Q7 7 16 7H46' stroke-width='1.6'/%3E%3Cpath d='M12 46V19Q12 12 19 12H46' stroke-width='1' stroke-opacity='.45'/%3E%3Cpath d='M18 25q0-7 7-7' stroke-width='1.2'/%3E%3Cpath d='M7 31q6-3 6-9M31 7q-3 6-9 6' stroke-width='1' stroke-opacity='.7'/%3E%3C/g%3E%3Cpath d='M7 0l5 7-5 7-5-7z' fill='%23d9b45a'/%3E%3Cpath d='M7 3.5l2.5 3.5-2.5 3.5-2.5-3.5z' fill='%23fff1c4'/%3E%3C/g%3E%3C/svg%3E");
  --crest: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='20'%3E%3Cg fill='none' stroke='%23d9b45a' stroke-width='1.2'%3E%3Cpath d='M6 10h50M94 10h50' stroke-opacity='.8'/%3E%3Cpath d='M56 10q7-7 14-3M94 10q-7-7-14-3M56 10q7 7 14 3M94 10q-7 7-14 3'/%3E%3C/g%3E%3Cpath d='M75 1l9 9-9 9-9-9z' fill='%2316130e' stroke='%23d9b45a' stroke-width='1.4'/%3E%3Cpath d='M75 5.5l4.5 4.5-4.5 4.5-4.5-4.5z' fill='%23ecd08a'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; font-variant-numeric: lining-nums; }
body {
  margin: 0; color: var(--text); font: 17px/1.6 var(--body); background-color: var(--bg);
  background-image:
    var(--noise),
    radial-gradient(1100px 560px at 75% -10%, rgba(217, 150, 70, .13), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(120, 110, 220, .07), transparent 60%);
  background-repeat: repeat, no-repeat, no-repeat;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold-hi); }
svg { display: block; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #000; padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- type ---------- */
.gold, .h2, h1 .gold {
  background: linear-gradient(180deg, #fff0c2 0%, #e9c46e 45%, #b8862f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.h2 { font: 700 clamp(30px, 3.6vw, 44px)/1.12 var(--head); margin: 0 0 14px; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .9)); }
.h2.center, .center-head { text-align: center; }
.center-head { max-width: 760px; margin: 0 auto 34px; }
.center-head .sub { margin-bottom: 0; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--gold); font: 600 12.5px var(--body); letter-spacing: .18em; text-transform: uppercase; }
.kicker::before, .kicker::after { content: ""; width: 6px; height: 6px; transform: rotate(45deg); border: 1px solid currentColor; }
.kicker.violet { color: var(--violet); }
.lead { font-size: 19.5px; line-height: 1.55; color: var(--muted); margin: 0 0 28px; max-width: 580px; }
.sub { color: var(--muted); margin: 0 0 22px; }
.section { padding: 72px 0 0; scroll-margin-top: 72px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(11, 10, 8, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--gold-line); box-shadow: 0 1px 0 #000; }
.top-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold-hi); font: 700 21px var(--head); letter-spacing: .04em; }
.brand svg { width: 28px; height: 28px; }
nav { display: flex; gap: 22px; }
nav a { color: var(--muted); text-decoration: none; font: 15px var(--head); letter-spacing: .02em; transition: color .15s; }
nav a:hover { color: var(--gold-hi); }
.top-r { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.lang { background: none; border: 1px solid var(--line2); color: var(--muted); border-radius: 6px; padding: 6px 10px; font: 600 13px var(--body); cursor: pointer; }
.lang:hover { color: var(--gold-hi); border-color: var(--gold-line); }

/* ---------- buttons: beveled, like the 3.3.5 panel buttons but gold ---------- */
.btn {
  display: inline-flex; justify-content: center; align-items: center; text-decoration: none; cursor: pointer;
  font: 700 16.5px var(--head); letter-spacing: .03em; padding: 12px 26px; border-radius: 6px; border: 1px solid #000;
  transition: transform .15s, box-shadow .2s, filter .2s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn-gold {
  color: #2a1c06; text-shadow: 0 1px 0 rgba(255, 240, 200, .5);
  background: linear-gradient(180deg, #f6dc98 0%, #dcb055 48%, #b4842e 52%, #8f6522 100%);
  box-shadow: 0 0 0 1px #6b5022, inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(0, 0, 0, .25), 0 8px 24px rgba(0, 0, 0, .5), 0 0 24px rgba(217, 180, 90, .15);
}
.btn-ghost {
  color: var(--gold-hi); background: linear-gradient(180deg, #2a241a, #15120d);
  box-shadow: 0 0 0 1px var(--gold-deep), inset 0 1px 0 rgba(255, 240, 200, .08), 0 8px 24px rgba(0, 0, 0, .45);
}
.btn.sm { padding: 7px 14px; font-size: 14px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- frames ---------- */
.frame {
  position: relative; border-radius: var(--r);
  background: var(--noise), linear-gradient(180deg, var(--panel2), var(--panel) 60%, #100d09);
  border: 1px solid var(--gold-deep);
  box-shadow: 0 0 0 1px #000, inset 0 0 0 3px #0c0a07, inset 0 0 0 4px rgba(217, 180, 90, .18), 0 30px 80px rgba(0, 0, 0, .6);
}
.ornate::before {
  content: ""; position: absolute; inset: -6px; pointer-events: none; z-index: 4;
  background: var(--cTL) left top / 48px no-repeat, var(--cTR) right top / 48px no-repeat, var(--cBL) left bottom / 48px no-repeat, var(--cBR) right bottom / 48px no-repeat;
}
.ornate::after {
  content: ""; position: absolute; left: 50%; top: -10px; width: 150px; height: 20px; transform: translateX(-50%); pointer-events: none; z-index: 4;
  background: var(--crest) center / contain no-repeat;
}
.arcane { border-color: #3d3166; box-shadow: 0 0 0 1px #000, inset 0 0 0 3px #0c0a07, inset 0 0 0 4px rgba(165, 139, 255, .18), 0 30px 80px rgba(0, 0, 0, .6); }
.arcane::before, .arcane::after { filter: hue-rotate(210deg) saturate(1.4); }

/* ---------- divider ---------- */
.divider {
  height: 20px; margin-top: 72px;
  background: var(--crest) center / 150px 20px no-repeat, linear-gradient(90deg, transparent, rgba(217, 180, 90, .4) 50%, transparent) center / 100% 1px no-repeat;
}

/* ---------- action-bar style icon slots ---------- */
.slot {
  --c1: #3a2f1a; --c2: #120e07; --ic: var(--gold-hi);
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 6px; flex: none;
  background: radial-gradient(circle at 35% 30%, var(--c1), var(--c2) 75%);
  box-shadow: 0 0 0 1px #000, 0 0 0 3px var(--gold-deep), 0 0 0 4px #000, inset 0 0 14px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.slot svg { width: 24px; height: 24px; fill: none; stroke: var(--ic); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px var(--ic)); }
.s-red { --c1: #5a2018; --c2: #1a0806; --ic: #ffab8f; }
.s-gold { --c1: #5a4518; --c2: #1a1306; --ic: #ffdc8a; }
.s-green { --c1: #24481f; --c2: #091407; --ic: #a8f0a0; }
.s-blue { --c1: #1d3a5c; --c2: #060f1a; --ic: #a9dcff; }
.s-violet { --c1: #3a2a66; --c2: #0d081c; --ic: #c8b6ff; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; padding: 64px 0 0; }
.eyebrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.pill { color: #2a1c06; background: linear-gradient(180deg, #f2d690, #c9973c); padding: 3px 10px; border-radius: 4px; font: 700 13px var(--head); box-shadow: 0 0 0 1px #000; }
h1 { font: 800 clamp(40px, 5vw, 64px)/1.04 var(--head); margin: 0 0 20px; color: var(--text); text-shadow: 0 3px 0 #000; }
h1 .gold { text-shadow: none; filter: drop-shadow(0 3px 0 #000); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-facts { list-style: none; padding: 0; margin: 36px 0 0; display: flex; gap: 28px; }
.hero-facts b { display: block; font: 700 28px var(--head); color: var(--gold-hi); }
.hero-facts span { font-size: 14px; color: var(--muted); }

/* ---------- system flow diagram ---------- */
.flow { margin: 0; padding: 18px 18px 0; }
.flow-svg { width: 100%; height: auto; overflow: visible; }
.wires path { fill: none; stroke: rgba(217, 180, 90, .16); stroke-width: 2; }
.wires-hot use { fill: none; stroke-width: 2.4; stroke-dasharray: 7 7; opacity: 0; transition: opacity .3s; animation: dash .9s linear infinite; }
.wires-hot use.on { opacity: 1; }
.wires-hot [data-w="read"] { stroke: #ecd08a; }
.wires-hot [data-w="act"] { stroke: #ff9a78; }
.wires-hot [data-w="goal"], .wires-hot [data-w="status"] { stroke: #b9a2ff; }
.wires-hot [data-w="report"] { stroke: var(--blue); }
@keyframes dash { to { stroke-dashoffset: -14; } }
.node rect:first-child { fill: url(#nodeBg); stroke: rgba(217, 180, 90, .32); stroke-width: 1.2; transition: stroke .3s; }
.node { transition: filter .35s; }
.node.on { filter: drop-shadow(0 0 12px rgba(255, 205, 110, .28)); }
.node.on rect:first-child { stroke: var(--gold); }
.n-ai.on { filter: drop-shadow(0 0 12px rgba(165, 139, 255, .35)); }
.n-ai.on rect:first-child { stroke: var(--violet); }
.n-you.on { filter: drop-shadow(0 0 12px rgba(143, 208, 255, .3)); }
.n-you.on rect:first-child { stroke: var(--blue); }
.gem { fill: var(--gold-deep); transition: fill .3s; }
.node.on .gem { fill: #ffe39a; }
.n-ai.on .gem { fill: #cdbbff; } .n-you.on .gem { fill: #bfe6ff; }
.flow-svg text { font-family: var(--body); }
.flow-svg .nt { fill: var(--gold-hi); font: 600 15px var(--head); letter-spacing: .02em; }
.flow-svg .nv { fill: #d6cfbf; font-size: 13px; }
.flow-svg .nv.small { fill: var(--muted); font-size: 11.5px; }
.chip rect { fill: #100d09; stroke: rgba(255, 240, 210, .1); transition: all .25s; }
.chip text { fill: var(--muted); font-size: 12px; text-anchor: middle; transition: fill .25s; }
.chip.on rect { fill: rgba(217, 180, 90, .14); stroke: var(--gold); }
.chip.on text { fill: var(--gold-hi); }
.bar-bg { fill: rgba(255, 255, 255, .07); }
.flow-svg .bar { transition: width .6s ease; }
.flow-svg .bar.hp { fill: #45c24f; } .flow-svg .bar.thp { fill: #d9534a; } .flow-svg .bar.xp { fill: #9a62e0; }
.pkt-dot { filter: url(#soft); }
.pkt-label { font: 600 12px var(--body); paint-order: stroke; stroke: #0b0a08; stroke-width: 4px; stroke-linejoin: round; }
.steps { padding: 12px 6px 16px; border-top: 1px solid var(--line); margin-top: 6px; }
.steps ol { list-style: none; display: flex; gap: 6px; margin: 0 0 8px; padding: 0; flex-wrap: wrap; justify-content: center; }
.steps li { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; color: var(--dim); font-size: 13px; border: 1px solid transparent; transition: all .25s; }
.steps li b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 700 11px var(--body); background: rgba(255, 255, 255, .06); color: var(--muted); }
.steps li.on { color: var(--gold-hi); border-color: var(--gold-line); background: rgba(217, 180, 90, .07); }
.steps li.on b { background: var(--gold); color: #2a1c06; }
.steps p { margin: 0; text-align: center; color: var(--muted); font-size: 14px; min-height: 1.6em; }

.rune { transform: translate(300px, 225px); }
.rune circle { fill: none; stroke: rgba(217, 180, 90, .1); stroke-width: 1; }
.rune .thin { stroke: rgba(217, 180, 90, .06); }
.rune .dash { stroke: rgba(165, 139, 255, .14); stroke-dasharray: 2 10; stroke-width: 2; }
.rune .r3 path { fill: rgba(217, 180, 90, .16); }
.rune .r1, .rune .r3 { animation: spin 90s linear infinite; }
.rune .r2 { animation: spin 60s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- videos (real recordings) ---------- */
.vid { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; background: #0a0907; overflow: hidden; }
.vid video { display: block; width: 100%; height: 100%; object-fit: cover; }
.vid.missing {
  display: grid; place-items: center; text-align: center; color: var(--dim); font-size: 13px;
  background: var(--noise), radial-gradient(circle at 50% 40%, #241e14, #0c0a07 70%);
}
.vid.missing::before {
  content: ""; width: 44px; height: 44px; margin: 0 auto 8px; display: block; opacity: .6;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9b45a' stroke-width='1.4'%3E%3Crect x='2' y='5' width='15' height='14' rx='2'/%3E%3Cpath d='m17 10 5-3v10l-5-3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.vid.missing > span { display: block; }

/* ---------- cases (quest log + player) ---------- */
.cases { display: grid; grid-template-columns: 330px 1fr; gap: 24px; align-items: start; }
.questlog { list-style: none; margin: 0; padding: 8px; display: grid; gap: 4px; border-radius: var(--r); background: var(--noise), linear-gradient(180deg, #1a160f, #110e09); border: 1px solid var(--gold-deep); box-shadow: 0 0 0 1px #000, inset 0 0 0 3px #0c0a07; }
.questlog button {
  width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; cursor: pointer; padding: 10px 12px; border-radius: 6px;
  background: none; border: 1px solid transparent; color: var(--text); font: inherit; transition: background .2s, border-color .2s;
}
.questlog button:hover { background: rgba(255, 240, 210, .04); }
.questlog button[aria-pressed="true"] { background: linear-gradient(90deg, rgba(217, 180, 90, .2), rgba(217, 180, 90, .03)); border-color: var(--gold-line); }
.qi { flex: none; width: 22px; text-align: center; font: 900 22px/1 var(--head); font-style: normal; color: #ffd100; -webkit-text-stroke: 1px #3a2a00; text-shadow: 0 0 8px rgba(255, 209, 0, .35), 0 2px 0 #000; }
.questlog b { display: block; font: 600 15.5px var(--head); color: var(--gold-hi); }
.questlog small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.player { overflow: hidden; }
.player .vid { border-radius: var(--r) var(--r) 0 0; }
.progress { height: 3px; background: rgba(255, 255, 255, .06); }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-deep), var(--gold-hi)); }

/* ---------- made for lasthavens ---------- */
.lh-in { padding: 40px 36px 36px; }
.lh-in .h2 { margin-bottom: 30px; }
.lh-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.lh-grid .slot { margin-bottom: 16px; }
.lh-grid b { display: block; font: 700 17px var(--head); color: var(--gold-hi); margin-bottom: 6px; }
.lh-grid span:not(.slot) { color: var(--muted); font-size: 15px; }

/* ---------- feature categories ---------- */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.cat {
  position: relative; grid-column: span 2; padding: 26px; border-radius: var(--r);
  background: var(--noise), linear-gradient(180deg, #1b1711, #120f0a);
  border: 1px solid rgba(217, 180, 90, .16); box-shadow: 0 0 0 1px #000; transition: border-color .2s;
}
.cat::before { content: ""; position: absolute; left: 20px; right: 20px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .6; }
.cat:nth-child(4), .cat:nth-child(5) { grid-column: span 3; }
.cat:hover { border-color: var(--gold-line); }
.cat .slot { margin-bottom: 18px; }
.cat h3 { margin: 0 0 12px; font: 700 21px var(--head); color: var(--gold-hi); }
.cat ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.cat li { position: relative; padding-left: 20px; color: #d2cbbb; font-size: 15px; line-height: 1.5; }
.cat li::before { content: ""; position: absolute; left: 3px; top: .55em; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); opacity: .75; }

/* ---------- AI autopilot ---------- */
.ai { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; color: #d6d0c3; }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 4px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #3d3166; background: rgba(165, 139, 255, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9a2ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.feed-frame { padding: 0; }
.feed-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px 14px; border-bottom: 1px solid var(--line); font: 600 15px var(--head); color: #d4c6ff; }
.feed-head small { margin-left: auto; color: var(--muted); font: 500 13px var(--body); font-variant-numeric: lining-nums tabular-nums; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); animation: pul 2s infinite; }
@keyframes pul { 0% { box-shadow: 0 0 0 0 rgba(165, 139, 255, .6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(165, 139, 255, 0); } }
.feed { list-style: none; margin: 0; padding: 10px 18px 18px; height: 372px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  mask-image: linear-gradient(transparent, #000 22%); -webkit-mask-image: linear-gradient(transparent, #000 22%); }
.feed li { display: grid; grid-template-columns: 46px 1fr; gap: 12px; padding: 12px 14px; border-radius: 8px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); animation: fin .5s ease; }
.feed time { color: var(--dim); font: 500 12px/1.6 var(--body); font-variant-numeric: lining-nums tabular-nums; }
.feed .why { color: var(--muted); font-size: 13.5px; }
.feed .act { display: block; margin-top: 3px; font-size: 14.5px; color: var(--text); }
.feed .act::before { content: "→ "; color: var(--violet); }
.feed .tag { display: inline-block; font: 600 10.5px var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 1px 6px; border-radius: 3px; margin-right: 6px; vertical-align: 1px; }
.tag.t-level { background: rgba(217, 180, 90, .16); color: var(--gold-hi); }
.tag.t-town { background: rgba(120, 220, 120, .12); color: #9be29b; }
.tag.t-zone { background: rgba(120, 190, 255, .13); color: var(--blue); }
.tag.t-pvp { background: rgba(224, 96, 90, .15); color: #ff9a92; }
.tag.t-you { background: rgba(165, 139, 255, .15); color: #c9b9ff; }
@keyframes fin { from { opacity: 0; transform: translateY(14px); } }
.typing::after { content: "▍"; color: var(--violet); animation: blink 1s infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- modes ---------- */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mode { display: flex; flex-direction: column; padding: 22px; border-radius: var(--r); background: var(--noise), linear-gradient(180deg, #1b1711, #120f0a); border: 1px solid rgba(217, 180, 90, .16); box-shadow: 0 0 0 1px #000; }
.mode h3 { margin: auto 0 8px; padding-top: 22px; font: 700 23px var(--head); color: var(--gold-hi); }
.mode p { margin: 0; color: var(--muted); }
.browser { border-radius: 10px; overflow: hidden; border: 1px solid var(--line2); background: #0e0d0b; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.browser .bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; background: #1d1b18; border-bottom: 1px solid var(--line); }
.browser .bar > i { width: 10px; height: 10px; border-radius: 50%; background: #3a3733; }
.url { flex: 1; display: flex; align-items: center; gap: 6px; margin: 0 10px; height: 24px; padding: 0 10px; border-radius: 12px; background: #121110; color: #b9b2a4; font-size: 12px; }
.url svg { width: 12px; height: 12px; fill: none; stroke: #8a8378; stroke-width: 2; }
.extbtn { width: 22px; height: 22px; border-radius: 5px; display: grid; place-items: center; font: 800 12px var(--head); color: #2a1c06; background: linear-gradient(180deg, #f2d690, #c9973c); }
.view { position: relative; }
.popup { position: absolute; top: 8px; right: 10px; width: 200px; padding: 12px; border-radius: 8px; background: var(--noise), rgba(22, 19, 14, .96); border: 1px solid var(--gold-deep); box-shadow: 0 0 0 1px #000, 0 14px 40px rgba(0, 0, 0, .6); font-size: 12px; z-index: 2; }
.ph { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font: 700 14px var(--head); color: var(--gold-hi); }
.state { font: 600 11px var(--body); padding: 2px 8px; border-radius: 999px; color: #9be29b; background: rgba(120, 220, 120, .12); transition: all .2s; }
.state.paused { color: #ffcf7a; background: rgba(255, 190, 90, .14); }
.pr { display: flex; justify-content: space-between; color: var(--muted); padding: 3px 0; }
.pr b { color: var(--text); font-weight: 600; }
.pr b.on { color: var(--violet); }
.pk { max-height: 0; overflow: hidden; padding: 0 8px; border-radius: 6px; background: rgba(255, 190, 90, .1); color: #ffcf7a; font-size: 11.5px; opacity: 0; transition: all .25s; }
.pk.show { max-height: 60px; margin-top: 8px; padding: 6px 8px; opacity: 1; }

/* portal mock */
.portal { border-radius: 10px; overflow: hidden; border: 1px solid var(--line2); background: #0f0e0c; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); font-size: 13px; }
.p-top { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; background: #1d1b18; border-bottom: 1px solid var(--line); }
.p-logo { width: 20px; height: 20px; border-radius: 4px; display: grid; place-items: center; font: 800 11px var(--head); color: #2a1c06; background: linear-gradient(180deg, #f2d690, #c9973c); }
.p-top > b { font: 700 14px var(--head); color: var(--gold-hi); }
.p-status { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.p-status i { width: 7px; height: 7px; border-radius: 50%; background: #5fd56a; box-shadow: 0 0 8px #5fd56a; animation: blink 1.6s infinite; }
.p-status b { color: var(--text); font: 600 12px var(--body); font-variant-numeric: lining-nums tabular-nums; }
.p-body { padding: 14px; display: grid; gap: 12px; }
.p-char { display: grid; grid-template-columns: auto 1fr 1fr; gap: 12px; align-items: center; }
.pt { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 700 15px var(--head); color: #2a1c06; background: radial-gradient(circle at 40% 35%, #f6e6bd, #c9a254 60%, #6e5221); box-shadow: 0 0 0 2px #000, 0 0 0 3px var(--gold-deep); }
.p-name b { display: block; font: 700 15px var(--head); color: var(--text); }
.p-name small, .p-lvl small, .p-kpis small, .p-chart > small, .p-now small { color: var(--muted); font-size: 11.5px; }
.pbar { height: 7px; margin-top: 4px; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.pbar i { display: block; height: 100%; width: 62%; background: linear-gradient(90deg, #6a37b0, #a46ef0); transition: width 1s ease; }
.p-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.p-kpis div { padding: 8px 10px; border-radius: 6px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.p-kpis b { display: block; font: 700 17px var(--head); color: var(--gold-hi); }
.p-main { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; }
.p-chart { padding: 10px; border-radius: 6px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.p-chart svg { width: 100%; height: 64px; margin: 6px 0 8px; }
.p-chart .line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.in-view .p-chart .line { animation: draw 2.4s ease forwards; }
.p-chart .area { opacity: 0; transition: opacity 1.2s 1s; }
.in-view .p-chart .area { opacity: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.p-now { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.p-now li { display: flex; justify-content: space-between; gap: 8px; }
.p-now span { color: var(--text); text-align: right; }
.p-peek { position: relative; padding: 0; border: 1px solid var(--gold-deep); border-radius: 6px; overflow: hidden; cursor: zoom-in; background: #000; box-shadow: 0 0 0 1px #000; }
.p-peek .vid { height: 100%; aspect-ratio: auto; min-height: 140px; }
.rec { position: absolute; top: 6px; left: 6px; display: flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 3px; background: rgba(190, 30, 30, .9); color: #fff; font: 700 9.5px var(--body); letter-spacing: .08em; }
.rec i { width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
.peek-btn { position: absolute; right: 6px; bottom: 6px; padding: 3px 9px; border-radius: 4px; font: 600 11.5px var(--body); color: #2a1c06; background: linear-gradient(180deg, #f2d690, #c9973c); }
.full { margin-top: 22px; padding: 18px 22px; border-radius: var(--r); border: 1px solid var(--gold-line); background: linear-gradient(90deg, rgba(217, 180, 90, .1), rgba(165, 139, 255, .06)); display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; justify-content: center; text-align: center; }
.full b { color: var(--gold-hi); font: 700 18px var(--head); }
.full span { color: #d6d0c3; }

/* lightbox */
.lightbox { padding: 0; border: 0; background: none; width: min(1100px, 94vw); overflow: visible; }
.lightbox::backdrop { background: rgba(5, 4, 3, .82); backdrop-filter: blur(4px); }
.lightbox .frame { overflow: hidden; }
.lb-close { position: absolute; top: -44px; right: 0; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold-deep); background: #16130e; color: var(--gold-hi); font-size: 22px; line-height: 1; cursor: pointer; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; margin: 0 auto; }
.faq details { background: var(--noise), linear-gradient(180deg, #1a160f, #120f0a); border: 1px solid rgba(217, 180, 90, .14); border-radius: 8px; box-shadow: 0 0 0 1px #000; transition: border-color .2s; }
.faq details[open] { border-color: var(--gold-line); }
.faq summary { cursor: pointer; padding: 15px 18px; font: 600 17px var(--head); color: var(--gold-hi); list-style: none; display: flex; align-items: center; gap: 14px; }
.faq summary::before { content: "?"; flex: none; width: 18px; text-align: center; font: 900 22px/1 var(--head); color: #ffd100; -webkit-text-stroke: 1px #3a2a00; text-shadow: 0 0 8px rgba(255, 209, 0, .3), 0 2px 0 #000; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--gold); font: 400 22px/1 var(--body); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 0; padding: 0 18px 16px 50px; color: #d2cbbb; }

/* ---------- form ---------- */
.form-frame { max-width: 700px; margin-inline: auto; padding: 44px 38px 34px; }
.form-frame .center-head { margin-bottom: 26px; }
form { display: grid; gap: 16px; }
label { display: grid; gap: 7px; font-size: 14px; color: var(--muted); }
input, select, textarea {
  font: 15px var(--body); color: var(--text); background: #0c0a07; border: 1px solid #3b3122; border-radius: 6px; padding: 11px 13px; width: 100%;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .6);
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .6), 0 0 0 3px rgba(217, 180, 90, .14); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.seg { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg legend { color: var(--muted); font-size: 14px; padding: 0; margin-bottom: 7px; }
.seg.price { grid-template-columns: repeat(5, 1fr); }
.seg label { display: block; position: relative; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: grid; gap: 1px; text-align: center; padding: 10px 6px; border-radius: 6px; border: 1px solid #3b3122; background: #0f0d09; cursor: pointer; transition: all .15s; }
.seg span b { color: var(--text); font: 600 15px var(--head); }
.seg span small { color: var(--dim); font-size: 12px; }
.seg input:checked + span { border-color: var(--gold); background: linear-gradient(180deg, rgba(217, 180, 90, .16), rgba(217, 180, 90, .05)); box-shadow: inset 0 0 12px rgba(217, 180, 90, .12); }
.seg input:checked + span b { color: var(--gold-hi); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; color: #d6d0c3; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--gold); box-shadow: none; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.msg { min-height: 1.4em; margin: 0; text-align: center; }
.msg.ok { color: var(--green); } .msg.err { color: var(--red); }

/* ---------- footer ---------- */
.foot { margin-top: 90px; padding: 0 0 44px; color: var(--dim); font-size: 13px; text-align: center; }
.foot .divider { margin: 0 0 26px; }
.foot a { color: var(--muted); }

/* ---------- privacy page ---------- */
.doc { max-width: 820px; padding: 40px 0; }
.doc h1 { font-size: 36px; }
.doc h2 { font: 700 22px var(--head); margin-top: 32px; }
.doc li { margin-bottom: 6px; }
.doc p, .doc li { color: #d6d0c3; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero, .ai { grid-template-columns: 1fr; gap: 36px; }
  .cases { grid-template-columns: 1fr; }
  .lh-grid { grid-template-columns: 1fr 1fr; }
  .cats { grid-template-columns: 1fr 1fr; }
  .cat, .cat:nth-child(4), .cat:nth-child(5) { grid-column: span 1; }
  .modes { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  nav { display: none; }
  .lang, .btn.sm { min-height: 44px; min-width: 44px; }
  .flow { overflow-x: auto; overscroll-behavior-x: contain; }
  .flow-svg { min-width: 520px; }
  .lh-grid, .cats { grid-template-columns: 1fr; }
  .lh-in { padding: 30px 20px 22px; }
  .row { grid-template-columns: 1fr; }
  .seg { grid-template-columns: 1fr; }
  .seg.price { grid-template-columns: repeat(3, 1fr); }
  .form-frame { padding: 34px 20px 22px; }
  .p-kpis { grid-template-columns: 1fr 1fr; }
  .p-main, .p-char { grid-template-columns: 1fr; }
  .popup { width: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
