/* landing.css: the home page around the addon's own UI (addon.css). Modern and quiet: neutral dark,
   frosted panels, the in-game pieces doing the talking. No mouse-following, no scroll effects. */

.landing main { overflow-x: clip; }
.landing .flashes { position: relative; z-index: 2; }

/* ---------------------------------------------------------------- section heads */
.block { position: relative; padding: clamp(96px, 10vw, 160px) 0 0; }
.head { margin-bottom: clamp(32px, 4vw, 56px); }
.head h2 { font-size: clamp(2.15rem, 4.1vw, 3.75rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.02; margin: 0; max-width: 17ch; }
.head p { color: var(--text-2); font-size: clamp(1.02rem, 1.15vw, 1.16rem); line-height: 1.55; margin: 0; max-width: 48ch; }
.head.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px 48px; align-items: end; }
.head.split p { justify-self: end; }
.head.center { text-align: center; }
.head.center h2, .head.center p { margin-left: auto; margin-right: auto; }
.head.center p { margin-top: 18px; }
.fine { margin: 18px 0 0; font-size: .85rem; color: var(--text-3); max-width: 820px; }

/* ================================================================ hero */
.hero { position: relative; padding: clamp(32px, 4vw, 60px) 0 0; isolation: isolate; }
.hero-light { position: absolute; left: -10%; right: -10%; top: -160px; height: 1500px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 30% at 50% 22%, rgba(111, 207, 247, .12), transparent 70%),
    radial-gradient(40% 30% at 70% 62%, rgba(242, 170, 76, .07), transparent 70%),
    radial-gradient(30% 30% at 18% 60%, rgba(140, 190, 255, .06), transparent 70%); }
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.announce { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .035); color: var(--text-2); font-size: .9rem; font-weight: 500; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.announce:hover { color: var(--text); border-color: var(--line-3); background: rgba(255, 255, 255, .06); }
.announce-new { padding: 2px 10px; border-radius: 999px; background: var(--quest); color: #1c1300; font-size: .78rem; font-weight: 700; }
.announce .i { width: 15px; height: 15px; }
.hero h1 { font-size: clamp(2.7rem, 6vw, 6.4rem); font-weight: 700; line-height: .96; letter-spacing: -.055em; margin: 24px 0 22px; max-width: 13.5ch;
  background: linear-gradient(180deg, #ffffff 35%, #b9c6d2 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.lede { font-size: clamp(1.08rem, 1.4vw, 1.3rem); line-height: 1.55; color: var(--text-2); max-width: 54ch; margin: 0 0 32px; }
.lede b { color: var(--text); font-weight: 700; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta-row.center { justify-content: center; }
.hero-tags { margin-top: 22px; justify-content: center; }

/* the stage: a slice of the game with the addon's pieces where they sit */
.hero-stage { position: relative; height: 720px; margin-top: clamp(40px, 4vw, 56px); }
.stage-scene { position: absolute; inset: 0; border-radius: 32px; overflow: hidden; border: 1px solid var(--line-2);
  background: url("../img/addon/scene-duskwood.jpg") 50% 38% / cover no-repeat; box-shadow: var(--shadow-lg), 0 0 120px -40px rgba(111, 207, 247, .35); }
.stage-scene::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(9, 9, 11, .62) 0%, rgba(9, 9, 11, .15) 42%, rgba(9, 9, 11, .05) 70%, rgba(9, 9, 11, .3) 100%), linear-gradient(180deg, rgba(9, 9, 11, .35), transparent 30%, transparent 70%, rgba(9, 9, 11, .5)); }
.stage-window { position: absolute; left: clamp(20px, 4%, 64px); top: 52px; width: 500px; z-index: 2; }
.hero-window .w-inset { height: 540px; }
.stage-arrow { position: absolute; left: 55%; top: 64px; z-index: 3; transform: scale(1.18); transform-origin: left top; }
.stage-plate { position: absolute; z-index: 1; }
.stage-plate .w-plate { position: relative; }
.stage-plate.pa { left: 62%; top: 380px; }
.stage-plate.pb { left: 81%; top: 250px; transform: scale(.8); transform-origin: left top; opacity: .92; }
.stage-toast { position: absolute; right: clamp(20px, 3%, 48px); bottom: 40px; z-index: 3; opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s var(--ease); }
.stage-toast.show { opacity: 1; transform: none; }
.no-motion .stage-toast { opacity: 1; transform: none; }

.proof { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow); }
.proof li { display: grid; gap: 6px; align-content: start; padding: 26px 28px; border-left: 1px solid var(--line); }
.proof li:first-child { border-left: 0; }
.proof b { font-size: clamp(2.1rem, 3.2vw, 3rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff 20%, var(--wisp) 140%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.proof span { color: var(--text-3); font-size: .93rem; line-height: 1.35; }

/* ================================================================ how the plan is made */
.pipe { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pipe-step { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 20px; border-radius: 24px; border: 1px solid var(--line); overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012)); transition: border-color .5s ease, background .5s ease, box-shadow .5s ease; }
.pipe-step::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--wisp-3), var(--wisp)); box-shadow: 0 0 12px var(--wisp-glow); }
.pipe-step.on { border-color: rgba(168, 230, 255, .32); background: linear-gradient(180deg, rgba(168, 230, 255, .075), rgba(255, 255, 255, .015)); box-shadow: 0 40px 70px -40px rgba(111, 207, 247, .45); }
.pipe-step.on::before { animation: pipe-bar var(--pipe-ms, 3600ms) linear forwards; }
@keyframes pipe-bar { to { width: 100%; } }
.pipe-head { display: flex; align-items: center; gap: 12px; }
.pipe-head h3 { margin: 0; font-size: 1.1rem; letter-spacing: -.02em; }
.pipe-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .88rem; color: var(--text-2); border: 1px solid var(--line-2); background: var(--bg-2); transition: all .4s ease; }
.pipe-step.on .pipe-n { color: #04121b; background: var(--wisp); border-color: transparent; box-shadow: 0 0 22px var(--wisp-glow); }
.pipe-ui { height: 244px; overflow: hidden; }
.pipe-ui .scan { position: relative; border-radius: 2px; transition: background .3s ease, box-shadow .3s ease; }
.pipe-ui .scan.lit { background: rgba(255, 209, 0, .1); box-shadow: inset 2px 0 0 #ffd100; }
.pipe-ui .scan.lit .w-row-text { padding-left: 6px; }
.pipe-ui .scan .w-row-text { transition: padding .3s ease; }
.zone .w-row { padding-bottom: 2px; }
.zone .bar { display: block; height: 5px; margin: 2px 0 10px 35px; border-radius: 3px; background: #1b1712; box-shadow: inset 0 0 0 1px #000; overflow: hidden; }
.zone .bar i { display: block; height: 100%; width: var(--w); border-radius: 3px; background: linear-gradient(90deg, #7a5410, #f2cb4c); }
.pipe-step.on .zone .bar i { animation: bar-grow 1.3s cubic-bezier(.3, .7, .3, 1) both; }
@keyframes bar-grow { from { width: 0; } }
.zone.best .w-row-text b::after { content: "Best"; margin-left: 7px; padding: 0 5px; border-radius: 3px; font-size: 11px; color: #000; background: var(--w-gold); vertical-align: 1px; }
.zone-key { margin: 6px 0 0; color: var(--w-grey); font-size: 12.5px; font-weight: 400; }
.checks .ck-quest { margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid #303020; }
.checks .ck-quest b { color: #ffff00; font-size: 15px; transition: opacity .3s ease; }
.ck { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ck li { position: relative; padding-left: 28px; color: var(--w-gold); font-size: 14.5px; line-height: 20px; }
.ck li small { color: var(--w-grey); font-size: 12px; }
.ck li::before { content: ""; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 3px; background: linear-gradient(180deg, #1d1d1d, #050505); border: 1px solid #6b6b6b; box-shadow: inset 0 1px 2px #000; }
.ck li.ok::after { content: ""; position: absolute; left: 7px; top: 2px; width: 6px; height: 12px; border: solid #60d860; border-width: 0 3px 3px 0; transform: rotate(40deg); filter: drop-shadow(0 0 1px #000); }
.ck li.no::after { content: "×"; position: absolute; left: 0; top: -1px; width: 20px; text-align: center; color: #ff4a3a; font: 700 20px/20px Arial, sans-serif; }
.ck li.no { color: #ff8070; }
.ck-out { margin: 14px 0 0; padding-top: 8px; border-top: 1px solid #303020; font-size: 15px; color: #60d860; min-height: 30px; transition: opacity .3s ease; }
.ck-out.bad { color: #ff6a5a; }
.ck-out.wait { opacity: 0; }
.pipe-ui.paper { padding: 12px 14px; }
.w-plan.small { font-size: 14px; line-height: 1.25; }
.w-plan.small li { margin-bottom: 5px; }

.how-more { margin-top: 16px; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.cell { position: relative; grid-column: span 12; display: flex; flex-direction: column; gap: 24px; padding: 30px; border-radius: 26px; border: 1px solid var(--line); overflow: hidden; min-width: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .042), rgba(255, 255, 255, .012)); box-shadow: var(--shadow); }
.cell::after { content: ""; position: absolute; inset: auto -20% -60% 20%; height: 80%; z-index: -1; background: radial-gradient(closest-side, rgba(111, 207, 247, .07), transparent); pointer-events: none; }
.c-4 { grid-column: span 4; } .c-5 { grid-column: span 5; } .c-6 { grid-column: span 6; } .c-7 { grid-column: span 7; }
.r-2 { grid-row: span 2; }
.cell-text h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); letter-spacing: -.03em; margin: 0 0 8px; }
.cell-text p { color: var(--text-2); margin: 0; max-width: 46ch; }

.replan { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; margin-top: auto; }
.replan-events { display: grid; gap: 8px; padding-top: 4px; }
.ev { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-3); font-size: .9rem; font-weight: 500; white-space: nowrap; transition: all .35s ease; }
.ev .i { width: 16px; height: 16px; }
.ev.on { color: var(--text); border-color: rgba(168, 230, 255, .45); background: rgba(168, 230, 255, .1); box-shadow: 0 0 24px -6px var(--wisp-glow); }
.ev.on .i { color: var(--wisp); }
.replan-paper { min-height: 152px; }
.replan-paper .w-plan li { margin-bottom: 3px; }
.drop-paper { margin-top: auto; display: grid; gap: 8px; }
.drop-paper .w-a { margin: 0; }
.drop-paper .drop { padding: 6px 8px; margin: 0 -4px; border-radius: 3px; background: rgba(255, 220, 140, .55); box-shadow: inset 2px 0 0 #7a3a08; }

/* ================================================================ the arrow */
.arrow-panel { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); border-radius: 30px; border: 1px solid var(--line); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); }
.arrow-stage { position: relative; min-height: 540px; display: flex; align-items: center; justify-content: center; gap: clamp(24px, 3vw, 56px); padding: 48px; isolation: isolate; }
.arrow-bg { position: absolute; inset: 0; z-index: -1; background: url("../img/addon/scene-duskwood.jpg") 30% 62% / cover no-repeat; }
.arrow-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 80% at 40% 50%, rgba(9, 9, 11, .1), rgba(9, 9, 11, .75)); }
.route-tip { align-self: center; }
.route-tip li { transition: color .3s ease, opacity .3s ease; }
.route-tip li.past { opacity: .45; }
.route-tip li.on { color: #ffd100; }
.arrow-side { display: flex; flex-direction: column; gap: 16px; padding: clamp(28px, 3vw, 44px); border-left: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent); }
.side-title { margin: 0; font-size: 1rem; color: var(--text); letter-spacing: -.01em; }
.side-title + * { margin-bottom: 14px; }
.modes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.modes li { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .22); color: var(--text-2); font-weight: 500; font-size: .93rem; line-height: 1.25; transition: all .35s ease; }
.modes li .i { color: var(--text-3); transition: color .35s ease; }
.modes li.on { color: var(--text); border-color: rgba(168, 230, 255, .45); background: rgba(168, 230, 255, .09); box-shadow: 0 0 26px -8px var(--wisp-glow); }
.modes li.on .i { color: var(--wisp); }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--text-2); font-size: .93rem; }
.legend li { display: inline-flex; align-items: center; gap: 9px; }
.sw { width: 14px; height: 14px; border-radius: 4px; }
.sw.green { background: #2cff3c; box-shadow: 0 0 12px rgba(44, 255, 60, .5); }
.sw.yellow { background: #ffe33c; box-shadow: 0 0 12px rgba(255, 227, 60, .4); }
.sw.red { background: #ff3b2f; box-shadow: 0 0 12px rgba(255, 59, 47, .4); }

/* ================================================================ quest monsters */
.mob-stage { position: relative; height: clamp(440px, 40vw, 640px); border-radius: 30px; overflow: hidden; border: 1px solid var(--line); isolation: isolate; box-shadow: var(--shadow-lg); }
.mob-bg { position: absolute; inset: 0; z-index: -1; background: url("../img/addon/scene-rain.jpg") center 58% / cover no-repeat; }
.mob-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 90% at 50% 45%, transparent 40%, rgba(9, 9, 11, .7)), linear-gradient(180deg, transparent 65%, rgba(9, 9, 11, .55)); }
.mob-plates .w-plate { position: absolute; }
.mob-plates .w-plate { transform-origin: left top; }
.mp1 { left: 12%; top: 58%; transform: scale(1.3); }
.mp2 { left: 38%; top: 30%; transform: scale(1.02); }
.mp3 { left: 58%; top: 60%; transform: scale(1.22); }
.mp4 { left: 79%; top: 22%; transform: scale(.86); }
.mp1.dead { transform: scale(1.3) translateY(8px); }
.mp3.dead { transform: scale(1.22) translateY(8px); }
.mob-tags { position: absolute; left: 24px; right: 24px; bottom: 24px; }
.mob-tags .tag { background: rgba(9, 9, 11, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: var(--line-2); color: var(--text); }

/* ================================================================ dungeons */
.dg-browser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(24px, 3vw, 48px); align-items: start; }
.dg-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.seg-mini { display: inline-flex; gap: 3px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); }
.seg-mini button { padding: 7px 16px; border-radius: 999px; border: 0; background: transparent; color: var(--text-2); font: inherit; font-weight: 500; font-size: .92rem; cursor: pointer; transition: all .2s ease; }
.seg-mini button:hover { color: var(--text); }
.seg-mini button.on { color: #04121b; background: linear-gradient(180deg, #e2f7ff, #9fe0fb); }
.dg-group { margin: 22px 0 12px; font-size: 1rem; }
.dg-group:first-of-type { margin-top: 0; }
.dg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 8px; }
.dg { position: relative; text-align: left; display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); color: var(--text); font: inherit; cursor: pointer; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease; }
.dg b { font-weight: 700; font-size: .95rem; line-height: 1.25; letter-spacing: -.01em; }
.dg small { color: var(--text-3); font-size: .82rem; }
.dg:hover { border-color: var(--line-3); background: var(--surface-2); }
.dg.on { border-color: rgba(168, 230, 255, .5); background: linear-gradient(180deg, rgba(168, 230, 255, .12), rgba(168, 230, 255, .03)); box-shadow: 0 0 0 1px rgba(168, 230, 255, .18), 0 16px 40px -18px var(--wisp-glow); }
.dg.on small { color: var(--text-2); }
.dg-view { display: grid; gap: 14px; }
.dg-window .w-inset { height: 470px; }
.dg-grid.compact { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 6px; }
.dg-grid.compact .dg { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 13px; border-radius: 12px; }
.dg-grid.compact .dg b { font-size: .9rem; font-weight: 500; }
.dg-grid.compact .dg small { white-space: nowrap; }
.dg-grid.compact .dg.on b { font-weight: 700; }
.dg-key { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--text-3); font-size: .9rem; }
.dg-key b { color: var(--text); font-variant-numeric: tabular-nums; }

/* ================================================================ the window tour */
.tour { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: center; }
.tour-col { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tour-item { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 3px; text-align: left; padding: 18px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); color: var(--text-2); font: inherit; cursor: pointer; transition: all .25s ease; }
.tour-ic { grid-row: span 2; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); transition: all .25s ease; }
.tour-item b { color: var(--text); font-size: 1.06rem; font-weight: 700; letter-spacing: -.01em; }
.tour-item > span:last-child { font-size: .92rem; line-height: 1.45; }
.tour-item:hover { border-color: var(--line-2); background: var(--surface-2); }
.tour-item.on { border-color: rgba(168, 230, 255, .4); background: linear-gradient(180deg, rgba(168, 230, 255, .1), rgba(168, 230, 255, .02)); box-shadow: 0 20px 50px -26px var(--wisp-glow); }
.tour-item.on .tour-ic { color: #04121b; background: var(--wisp); border-color: transparent; box-shadow: 0 0 20px var(--wisp-glow); }
.tour-hint { display: flex; align-items: center; gap: 9px; padding: 6px 18px; color: var(--text-3); font-size: .88rem; }
.tour-ui { position: relative; padding-top: 18px; }
.tour-ui::before { content: ""; position: absolute; inset: 0 -14% 6%; z-index: -1; background: radial-gradient(closest-side, rgba(242, 170, 76, .1), transparent); filter: blur(10px); }

/* ================================================================ around it (bento cells) */
.toast-stack { position: relative; flex: 1; min-height: 360px; }
.toast-stack .w-toast { position: absolute; left: 0; top: 0; width: 100%; max-width: 380px; transition: transform .7s var(--ease), opacity .6s ease; }
.toast-stack .w-toast[data-pos="0"] { transform: translateY(0); opacity: 1; z-index: 4; }
.toast-stack .w-toast[data-pos="1"] { transform: translateY(100px); opacity: .7; z-index: 3; }
.toast-stack .w-toast[data-pos="2"] { transform: translateY(200px); opacity: .45; z-index: 2; }
.toast-stack .w-toast[data-pos="3"] { transform: translateY(290px) scale(.96); opacity: 0; z-index: 1; }
.toast-stack .w-toast[data-pos="in"] { transform: translateX(40px); opacity: 0; z-index: 5; transition: none; }

.chips-demo { display: grid; gap: 14px; margin-top: auto; }
.sit { display: flex; align-items: center; gap: 12px; }
.sit-k { padding: 4px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-3); font-size: .82rem; font-weight: 500; }
.sit b { font-weight: 700; color: var(--text); transition: opacity .3s ease; }
.chips-box { padding: 12px; }
.chips-box .w-chips .w-btn { transition: opacity .35s ease, transform .35s ease; }
.chips-box .w-chips .w-btn.new { animation: chip-in .5s var(--ease) both; }
@keyframes chip-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.chips-box .w-chips .w-btn.hot { color: #fff; box-shadow: inset 0 1px 0 rgba(255, 120, 90, .3), 0 0 0 1px var(--w-gold), 0 0 12px rgba(242, 203, 76, .35); }

.group-demo { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: end; margin-top: auto; padding: 20px; border-radius: 18px; isolation: isolate; overflow: hidden; }
.group-demo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/addon/scene-duskwood.jpg") 80% 70% / cover; opacity: .5; }
.group-demo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9, 9, 11, .2), rgba(9, 9, 11, .55)); }
.group-demo .w-toast { width: 100%; }

.path-demo { display: grid; gap: 12px; margin-top: auto; }
.path-scene { position: relative; height: 170px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: url("../img/addon/scene-rain.jpg") 50% 70% / cover; }
.path-scene::after { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 90% at 50% 50%, transparent 30%, rgba(9, 9, 11, .55)); }
.path-svg { position: absolute; inset: 14px 18px; width: calc(100% - 36px); height: calc(100% - 28px); display: block; overflow: visible; z-index: 1; }
.path-svg polyline { fill: none; stroke: #f2cb4c; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 9; filter: drop-shadow(0 0 6px rgba(242, 203, 76, .5)); }
.path-svg circle { fill: #ffd100; stroke: #000; stroke-width: 1.5; transition: opacity .3s ease; }
.path-box .w-row-btns .w-btn { min-width: 0; }

.quick-demo { display: grid; gap: 18px; margin-top: auto; }
.quick-demo .w-quick { width: 100%; max-width: 420px; }
.quick-row { display: flex; align-items: center; gap: 16px; }
.mini-wrap { flex: none; padding: 6px; }
.mini-tip { max-width: 260px; }

/* ================================================================ Dungeon Path */
.dp-panel { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); border-radius: 30px; border: 1px solid var(--line); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); }
.dp-stage { position: relative; min-height: 600px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 22px; padding: 56px 32px 48px; isolation: isolate; }
.dp-bg { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(55% 45% at 50% 42%, rgba(242, 170, 76, .10), transparent 70%), radial-gradient(90% 80% at 50% 50%, rgba(255, 255, 255, .025), transparent 70%), #0b0b0d; }
.dp-toast { width: 430px; max-width: 100%; opacity: 0; transform: translateY(6px); transition: opacity .45s ease, transform .45s ease; }
.dp-toast.show { opacity: 1; transform: none; }
.dp-toast .w-toast { width: 100%; }
.dp-side { display: flex; flex-direction: column; gap: 16px; padding: clamp(28px, 3vw, 44px); border-left: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent); }
.dp-events li { font-size: .9rem; }
.dp-fine { display: flex; align-items: flex-start; gap: 9px; margin: -6px 0 6px; color: var(--text-3); font-size: .9rem; line-height: 1.45; }
.dp-fine .i { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--wisp); }
.dp-before { width: auto; max-width: none; gap: 2px; margin-bottom: 6px; font-size: 13.5px; }
.dp-before > span { color: #fff; }
.dp-before .gold { color: #ffd100; }
.dp-before-bar { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.dp-before-bar > span:first-child { flex: 1; min-width: 0; }
.dp-know { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dp-know li { display: grid; gap: 4px; align-content: start; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .22); }
.dp-know b { font-size: 1.7rem; font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.dp-know span { color: var(--text-3); font-size: .84rem; line-height: 1.3; }

/* ================================================================ languages */
.lang-panel { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 4vw, 72px); align-items: center; padding: clamp(28px, 4.5vw, 72px); border-radius: 32px; border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  background: radial-gradient(60% 80% at 80% 50%, rgba(242, 170, 76, .07), transparent 70%), radial-gradient(50% 70% at 10% 10%, rgba(111, 207, 247, .08), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)); box-shadow: var(--shadow-lg); }
.lang-copy h2 { font-size: clamp(2.15rem, 4vw, 3.6rem); letter-spacing: -.045em; line-height: 1.02; margin: 0 0 16px; max-width: 13ch; }
.lang-copy p { color: var(--text-2); font-size: 1.1rem; margin: 0; max-width: 40ch; }
.lang-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 30px; max-width: 460px; }
.lang { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .22); color: var(--text-2); font: inherit; cursor: pointer; transition: all .25s ease; }
.lang b { font-weight: 700; color: var(--text); }
.lang small { color: var(--text-3); font-weight: 700; font-size: .78rem; letter-spacing: .04em; }
.lang:hover { border-color: var(--line-2); }
.lang.on { border-color: rgba(168, 230, 255, .5); background: linear-gradient(180deg, rgba(168, 230, 255, .14), rgba(168, 230, 255, .04)); }
.lang.on small { color: var(--wisp); }
.lang-ui { position: relative; min-height: 580px; }
.lang-window { position: relative; width: min(100%, 440px); }
.lang-window .w-inset { height: 360px; }
.lang-arrow { position: absolute; right: 0; top: 30px; z-index: 2; }
.lang-toast { position: absolute; right: 0; bottom: 0; z-index: 2; }
[data-l] { transition: opacity .25s ease; }
.lang-ui.swap [data-l] { opacity: 0; }

/* ================================================================ compare */
.compare { border-radius: 26px; border: 1px solid var(--line); overflow: hidden; background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012)); box-shadow: var(--shadow); }
.cmp-row { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr) minmax(0, 1.25fr); }
.cmp-row > span { padding: 22px 28px; border-top: 1px solid var(--line); color: var(--text-2); line-height: 1.5; }
.cmp-row > span:first-child { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-weight: 500; }
.cmp-row > span:first-child .i { margin-top: 3px; color: var(--text-3); }
.cmp-row > .us { background: rgba(168, 230, 255, .055); color: var(--text); box-shadow: inset 1px 0 0 rgba(168, 230, 255, .2), inset -1px 0 0 rgba(168, 230, 255, .2); }
.cmp-head > span { border-top: 0; font-weight: 700; font-size: 1.12rem; color: var(--text); padding-top: 24px; padding-bottom: 20px; }
.cmp-head .us { display: flex; align-items: center; gap: 10px; }
.cmp-head .us img { filter: drop-shadow(0 0 8px var(--wisp-glow)); }

/* ================================================================ pricing */
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 1000px; margin: 0 auto; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 34px; border-radius: 28px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .042), rgba(255, 255, 255, .015)); box-shadow: var(--shadow); overflow: hidden; }
.pc-top { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.pc-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.price-card h3 { font-size: 1.05rem; color: var(--text-2); font-weight: 500; margin: 0; }
.price-card .amount { font-size: clamp(2.8rem, 4vw, 3.6rem); font-weight: 700; letter-spacing: -.055em; line-height: 1; margin: 18px 0 8px; }
.price-card .amount small { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--text-3); margin-left: 8px; }
.price-card .alt { margin: 0; color: var(--text-3); font-size: .95rem; min-height: 1.5em; }
.price-card ul { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 12px; color: var(--text-2); }
.price-card li { display: flex; gap: 11px; }
.price-card li .i { color: var(--wisp); margin-top: 3px; }
.price-card .btn { margin-top: auto; }
.price-card.pro { border-color: rgba(168, 230, 255, .38); background: radial-gradient(90% 60% at 80% 0%, rgba(111, 207, 247, .16), transparent 70%), linear-gradient(180deg, rgba(168, 230, 255, .07), rgba(255, 255, 255, .015)); box-shadow: var(--shadow), 0 40px 100px -40px rgba(111, 207, 247, .55); }
.price-notes { justify-content: center; margin-top: 24px; }

/* ================================================================ faq */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 32px clamp(32px, 6vw, 120px); }
.faq-head h2 { font-size: clamp(2.15rem, 4vw, 3.6rem); letter-spacing: -.045em; line-height: 1.02; margin: 0 0 16px; }
.faq-head p { color: var(--text-2); margin: 0; max-width: 34ch; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-weight: 500; font-size: 1.1rem; transition: color .2s ease; }
.faq summary:hover { color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 14px; height: 14px; flex: none; background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat; color: var(--text-3); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--text-2); max-width: 70ch; line-height: 1.65; }

/* ================================================================ end */
.end { padding-bottom: 8px; }
.end-card { position: relative; text-align: center; padding: clamp(64px, 8vw, 120px) 24px; border-radius: 34px; border: 1px solid var(--line); overflow: hidden; isolation: isolate; box-shadow: var(--shadow-lg); }
.end-bg { position: absolute; inset: 0; z-index: -1; background: url("../img/addon/scene-duskwood.jpg") 50% 45% / cover; opacity: .45; }
.end-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 90% at 50% 0%, rgba(111, 207, 247, .2), transparent 70%), radial-gradient(90% 90% at 50% 50%, rgba(9, 9, 11, .5), rgba(9, 9, 11, .92)); }
.end-card h2 { font-size: clamp(2.3rem, 5vw, 4.4rem); font-weight: 700; letter-spacing: -.05em; line-height: 1.02; margin: 22px 0 14px; }
.end-card p { color: var(--text-2); font-size: 1.1rem; margin: 0 0 32px; }
.end-wisp { width: 72px; height: 72px; border-radius: 50%; box-shadow: 0 0 0 4px #7a5530, 0 0 0 6px #1e1006, 0 0 60px rgba(120, 210, 255, .45); animation: glow 4s ease-in-out infinite; }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 4px #7a5530, 0 0 0 6px #1e1006, 0 0 40px rgba(120, 210, 255, .35); } 50% { box-shadow: 0 0 0 4px #7a5530, 0 0 0 6px #1e1006, 0 0 80px rgba(120, 210, 255, .6); } }

/* ================================================================ wide screens */
@media (min-width: 1680px) {
  .hero-stage { height: 780px; }
  .stage-window { width: 540px; top: 60px; }
  .hero-window .w-inset { height: 580px; }
  .stage-arrow { top: 80px; }
  .stage-plate.pa { top: 420px; }
  .tour { grid-template-columns: minmax(0, 1fr) 600px minmax(0, 1fr); }
}

/* ================================================================ smaller screens */
@media (max-width: 1240px) {
  .stage-arrow { left: auto; right: 6%; }
  .stage-plate.pa { left: auto; right: 12%; top: 400px; }
  .stage-plate.pb { display: none; }
  .proof { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .proof li:nth-child(4) { border-left: 0; }
  .proof li:nth-child(n+4) { border-top: 1px solid var(--line); }
  .pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tour { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); }
  .tour-col:first-child { grid-column: 1; grid-row: 1; align-self: end; }
  .tour-ui { grid-column: 2; grid-row: 1 / span 2; }
  .tour-col:last-child { grid-column: 1; grid-row: 2; align-self: start; }
  .arrow-panel { grid-template-columns: minmax(0, 1fr); }
  .arrow-side { border-left: 0; border-top: 1px solid var(--line); }
  .modes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dp-panel { grid-template-columns: minmax(0, 1fr); }
  .dp-side { border-left: 0; border-top: 1px solid var(--line); }
  .dp-events { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lang-panel { grid-template-columns: minmax(0, 1fr); }
  .lang-ui { width: 100%; max-width: 720px; }
}
@media (max-width: 1080px) {
  .stage-window { width: 420px; left: 20px; }
  .stage-arrow { transform: none; right: 20px; top: 40px; }
  .stage-plate.pa { right: 40px; top: 400px; }
  .stage-toast { display: none; }
  .c-4, .c-5, .c-6, .c-7 { grid-column: span 6; }
  .r-2 { grid-row: auto; }
  .dg-browser { grid-template-columns: minmax(0, 1fr); }
  .dg-view { max-width: 560px; width: 100%; margin: 0 auto; }
  .lang-panel { grid-template-columns: minmax(0, 1fr); }
  .lang-ui { max-width: 640px; }
  .faq-wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .lang-ui { min-height: 0; padding-top: 140px; }
  .lang-arrow { top: 0; right: 4px; transform: scale(.9); transform-origin: right top; }
  .lang-toast { position: relative; right: auto; bottom: auto; margin-top: 8px; }
  .lang-window { width: 100%; max-width: 520px; }
  .lang-window .w-inset { height: 380px; }
  .head.split { grid-template-columns: minmax(0, 1fr); }
  .head.split p { justify-self: start; }
  .tour { grid-template-columns: minmax(0, 1fr); }
  .tour-col { display: none; }
  .tour-ui { grid-column: 1; grid-row: auto; max-width: 560px; width: 100%; margin: 0 auto; }
  .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-4, .c-5, .c-6, .c-7 { grid-column: span 12; }
  .toast-stack { min-height: 330px; }
}
@media (max-width: 760px) {
  .hero-stage { height: auto; padding: 118px 8px 24px; }
  .stage-scene { inset: 56px 0 0; border-radius: 22px; }
  .stage-window { position: relative; left: auto; top: auto; width: 100%; }
  .hero-window .w-inset { height: 500px; }
  .stage-arrow { left: auto; right: 10px; top: 0; transform: scale(.86); transform-origin: right top; }
  .stage-plate, .stage-toast { display: none; }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof li { padding: 20px; }
  .proof li:nth-child(n) { border-left: 0; border-top: 1px solid var(--line); }
  .proof li:nth-child(1), .proof li:nth-child(2) { border-top: 0; }
  .proof li:nth-child(even) { border-left: 1px solid var(--line); }
  .proof li:last-child { grid-column: 1 / -1; border-left: 0; }
  .pipe { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scrollbar-width: none; }
  .pipe::-webkit-scrollbar { display: none; }
  .pipe-step { flex: 0 0 86%; scroll-snap-align: center; }
  .cell { padding: 22px; border-radius: 22px; }
  .replan { grid-template-columns: minmax(0, 1fr); }
  .replan-events { display: flex; flex-wrap: wrap; }
  .arrow-stage { flex-direction: column; min-height: 0; padding: 32px 16px; }
  .dp-panel { border-radius: 22px; }
  .dp-stage { min-height: 0; padding: 28px 12px; gap: 16px; }
  .dp-toast { display: none; }
  .dp-side { padding: 24px 18px; }
  .w-arrow.big { width: 270px; height: 150px; }
  .mob-stage { height: 460px; border-radius: 22px; }
  .mp1 { left: 6%; top: 52%; }
  .mp2 { left: 30%; top: 22%; }
  .mp3 { left: 42%; top: 70%; transform: scale(.86); transform-origin: left top; }
  .mp4 { display: none; }
  .mob-tags { left: 14px; right: 14px; bottom: 14px; }
  .dg-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
  .dg-grid::-webkit-scrollbar { display: none; }
  .dg { flex: 0 0 auto; min-width: 190px; scroll-snap-align: start; }
  .dg-window .w-inset { height: 470px; }
  .group-demo { grid-template-columns: minmax(0, 1fr); }
  .lang-panel { padding: 24px 16px; border-radius: 24px; }
  .cmp-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cmp-row > span { padding: 16px; }
  .cmp-row > span:first-child { grid-column: 1 / -1; padding-bottom: 4px; color: var(--text-3); font-size: .9rem; }
  .cmp-row > span:not(:first-child) { border-top: 0; padding-top: 8px; font-size: .94rem; }
  .cmp-head > span:first-child { display: none; }
  .cmp-head > span { padding-top: 18px !important; }
  .prices { grid-template-columns: minmax(0, 1fr); }
  .price-card { padding: 26px; }
  .end-card { padding: 56px 18px; border-radius: 26px; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 2.55rem; }
  .cta-row .btn { width: 100%; }
  .lang-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lang { padding: 12px; }
  .dp-events { grid-template-columns: minmax(0, 1fr); }
  .dp-know li { padding: 12px 10px; }
  .dp-know b { font-size: 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  .end-wisp { animation: none; }
  .pipe-step.on::before { animation: none; width: 100%; }
  .zone .bar i, .toast-stack .w-toast, .stage-toast, [data-l], .ev, .modes li, .dp-toast { transition: none; }
}
