:root {
  --ink: #2b2226;
  --bg: #0f0a0e;
  --bg2: #17101a;
  --parch: #efe9dc;
  --parch2: #d6cdbb;
  --gold: #f2c86a;
  --gold2: #b07a2a;
  --ember: #ff8a3a;
  --text: #efe4d0;
  --muted: #b3a690;
  --line: rgba(242, 200, 106, .28);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 'Pixelify Sans', ui-monospace, monospace; overflow-x: hidden; }
img { image-rendering: pixelated; max-width: 100%; }
a { color: var(--gold); }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; border: 0; text-decoration: none;
  font: 800 16px 'Cinzel', serif; letter-spacing: 3px; color: var(--ink); padding: 14px 30px;
  background: linear-gradient(180deg, #fff6d8, var(--gold) 55%, #d89a3a);
  clip-path: polygon(0 10px, 10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px));
  transition: transform .15s, filter .15s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.1) drop-shadow(0 0 14px rgba(255, 200, 100, .6)); }
.btn-sm { font-size: 13px; padding: 9px 18px; }
.btn-xl { font-size: clamp(17px, 2vw, 22px); padding: 20px 40px; animation: pulse 2.2s infinite; }
.btn-xl span { font-size: .9em; }
.btn-ghost { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 2px var(--line); clip-path: none; }
@keyframes pulse { 0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 190, 90, 0)); } 50% { filter: drop-shadow(0 0 22px rgba(255, 190, 90, .55)); } }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 12px 24px; transition: background .3s, backdrop-filter .3s;
}
.nav.solid { background: rgba(15, 10, 14, .85); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font: 800 15px 'Cinzel', serif; letter-spacing: 2px; color: var(--text); text-decoration: none; }
.brand img { width: 34px; height: 34px; background: #3a2a2a; border: 2px solid var(--gold2); }
.brand span { color: var(--gold); }
.links { display: flex; gap: 22px; }
.links a { color: var(--text); text-decoration: none; font-size: 15px; opacity: .8; }
.links a:hover { opacity: 1; color: var(--gold); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; display: grid; place-items: center; overflow: hidden; text-align: center; }
.hero-bg, .hero-live, .hero-shade, .bokeh { position: absolute; inset: 0; }
.hero-bg { background-size: cover; background-position: center; transform: scale(1.05); filter: saturate(1.1); }
.hero-live iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; opacity: 0; transition: opacity 2s; }
.hero-live iframe.on { opacity: 1; }
.hero-shade { background:
  radial-gradient(ellipse at 50% 45%, rgba(15, 10, 14, .25), rgba(15, 10, 14, .82) 75%),
  linear-gradient(180deg, rgba(15, 10, 14, .55), rgba(15, 10, 14, 0) 30%, rgba(15, 10, 14, 0) 70%, var(--bg)); }
.bokeh { pointer-events: none; background-image:
  radial-gradient(circle at 12% 70%, rgba(255, 190, 100, .35) 0 14px, transparent 30px),
  radial-gradient(circle at 85% 25%, rgba(255, 170, 80, .25) 0 22px, transparent 46px),
  radial-gradient(circle at 70% 80%, rgba(255, 220, 140, .3) 0 10px, transparent 22px),
  radial-gradient(circle at 30% 20%, rgba(255, 200, 120, .2) 0 30px, transparent 60px);
  animation: drift 14s ease-in-out infinite alternate; filter: blur(2px); }
@keyframes drift { to { transform: translate(-30px, -20px); } }
.hero-inner { position: relative; z-index: 2; padding: 120px 20px 80px; }
.kicker { font: 600 13px 'Cinzel', serif; letter-spacing: .45em; color: #f3e2c0; text-shadow: 0 2px 0 #000; margin: 0 0 14px; }
.logo {
  margin: 0; font: 900 clamp(52px, 10vw, 132px)/0.9 'Cinzel', serif; letter-spacing: .04em;
  background: linear-gradient(180deg, #fff8e0 10%, var(--gold) 52%, var(--gold2) 92%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 5px 0 #3a2008) drop-shadow(0 0 40px rgba(255, 180, 80, .45));
}
.logo span { font-size: 1.12em; }
.tagline { font: 600 clamp(17px, 2vw, 22px)/1.5 'Cinzel', serif; color: #f6ead2; text-shadow: 0 2px 6px #000; margin: 24px auto 30px; }
.tagline em { color: var(--gold); }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.chips { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 42px; }
.chip { padding: 10px 18px; background: rgba(15, 10, 14, .65); border: 1px solid var(--line); backdrop-filter: blur(4px); min-width: 210px; }
.chip b { display: block; font: 800 22px 'Cinzel', serif; color: var(--gold); font-variant-numeric: tabular-nums; }
.chip.debt b { color: #ff8a7a; }
.chip span { font-size: 13px; color: var(--muted); }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: var(--gold); text-decoration: none; animation: bob 1s infinite alternate; z-index: 2; }
@keyframes bob { to { transform: translate(-50%, 8px); } }

/* ---------- sections ---------- */
.section { padding: 110px 0; position: relative; }
.title { font: 800 clamp(30px, 4.4vw, 52px)/1.1 'Cinzel', serif; text-align: center; margin: 0 0 16px; color: #fff3d8; text-shadow: 0 3px 0 #2a1608; }
.title.left, .sub.left { text-align: left; margin-left: 0; }
.title em { color: var(--gold); font-style: normal; }
.sub { text-align: center; max-width: 720px; margin: 0 auto 50px; color: var(--muted); font-size: 18px; }
.chapter { font: 700 13px 'Cinzel', serif; letter-spacing: .3em; color: var(--ember); margin-bottom: 8px; }

/* story */
.story { background: radial-gradient(ellipse at 30% 0%, #2a1a14, var(--bg) 60%); }
.scroll-card { position: relative; padding: 46px 40px 34px; color: var(--ink); background: linear-gradient(180deg, var(--parch), var(--parch2));
  clip-path: polygon(0 18px, 3% 0, 97% 0, 100% 18px, 100% calc(100% - 18px), 97% 100%, 3% 100%, 0 calc(100% - 18px)); box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.scroll-card p { font-family: 'Cinzel', serif; font-weight: 600; font-size: 17px; margin: 0 0 14px; }
.scroll-card .lead { font-size: 20px; }
.scroll-tag { position: absolute; top: 14px; left: 40px; font: 800 13px 'Cinzel', serif; letter-spacing: .3em; color: #8a2a20; }
.within { margin-top: 20px !important; font-weight: 800 !important; }
.decree { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.decree li { display: flex; align-items: center; gap: 14px; font-size: 16px; padding: 6px 10px; background: rgba(43, 34, 38, .07); border-left: 3px solid #8a2a20; }
.decree img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.story-art { position: relative; }
.shot { margin: 0; position: relative; overflow: hidden; border: 2px solid var(--line); box-shadow: 0 30px 60px rgba(0, 0, 0, .55), 0 0 0 6px rgba(15, 10, 14, .8); }
.shot img { display: block; width: 100%; image-rendering: auto; transition: transform 6s ease; }
.shot:hover img { transform: scale(1.06); }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 10px; font-size: 14px; color: #f3e2c0; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }
.tilt { transform: perspective(1000px) rotateY(-6deg) rotateX(2deg); }
.float-sprite { position: absolute; image-rendering: pixelated; }
.chicken { width: 120px; left: -40px; bottom: -40px; animation: hop 1.2s infinite; filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .5)); }
@keyframes hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px) rotate(-4deg); } }
.speech { position: absolute; right: -10px; top: -30px; max-width: 260px; padding: 12px 16px; color: var(--ink); font: 600 15px 'Cinzel', serif; background: var(--parch); border: 2px solid #2a2024; box-shadow: 0 6px 0 rgba(0, 0, 0, .35); }
.speech::after { content: ''; position: absolute; left: 30px; bottom: -12px; border: 7px solid transparent; border-top-color: #2a2024; }

/* gobbo band */
.gobbo-band { background: linear-gradient(90deg, #1a2414, #24301a 50%, #1a2414); border-block: 1px solid rgba(140, 200, 100, .25); padding: 34px 0; }
.gobbo { display: flex; align-items: center; gap: 26px; }
.gobbo-face { width: 96px; height: 96px; border: 3px solid #4a6a2a; background: #2a3a1a; flex: none; }
.gobbo-quote { flex: 1; }
.gobbo-quote .who { font: 700 12px 'Cinzel', serif; letter-spacing: .3em; color: #9ad86a; }
.gobbo-quote p { margin: 6px 0 0; font: 600 clamp(18px, 2.4vw, 26px)/1.3 'Cinzel', serif; color: #f0f6e4; transition: opacity .4s; }
.pie { width: 96px; height: 96px; border-radius: 50%; flex: none; display: grid; place-items: center; text-align: center; line-height: 1;
  background: conic-gradient(#9ad86a 0 40%, #3a2a1a 40% 100%); box-shadow: inset 0 0 0 8px rgba(0, 0, 0, .25), 0 0 24px rgba(150, 220, 100, .25); }
.pie span { font: 900 22px 'Cinzel', serif; color: #fff; text-shadow: 0 2px 0 #000; }
.pie small { display: block; font-size: 11px; color: #e8f0d8; }

/* features */
.features { background: var(--bg); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 26px; background: linear-gradient(180deg, #1d1420, #140e16); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.feature:hover { transform: translateY(-4px); border-color: var(--gold); }
.feature .ico { font-size: 28px; color: var(--gold); text-shadow: 0 0 18px rgba(255, 190, 90, .6); }
.feature h3 { font: 800 19px 'Cinzel', serif; margin: 8px 0 6px; color: #fff3d8; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* classes */
.classes { background: radial-gradient(ellipse at 50% 0%, #241830, var(--bg) 65%); }
.class-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.class-card { position: relative; padding: 18px 16px 20px; text-align: center; background: linear-gradient(180deg, #221824, #140e16); border: 1px solid var(--line); transition: transform .2s, border-color .2s, box-shadow .2s; }
.class-card:hover { transform: translateY(-8px); border-color: var(--gold); box-shadow: 0 18px 40px rgba(0, 0, 0, .5), 0 0 30px rgba(242, 200, 106, .15); }
.stage { height: 190px; display: grid; place-items: end center; background: radial-gradient(ellipse at 50% 92%, rgba(0, 0, 0, .55) 0 22%, transparent 40%), radial-gradient(circle at 50% 50%, rgba(242, 200, 106, .12), transparent 65%); }
.stage img { grid-area: 1 / 1; max-height: 170px; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .3)); }
.stage .atk { opacity: 0; }
.class-card:hover .idle { opacity: 0; }
.class-card:hover .atk { opacity: 1; }
.class-card h3 { font: 800 19px 'Cinzel', serif; margin: 12px 0 2px; color: var(--gold); }
.class-card .meta { font-size: 13px; color: var(--muted); }
.class-card .meta b { color: #fff3d8; }
.class-card p { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.class-card.secret { border-color: rgba(138, 240, 138, .35); }
.class-card.secret:not(:hover) .stage img { filter: brightness(0) drop-shadow(0 0 10px rgba(138, 240, 138, .7)); }
.class-card .badge { position: absolute; top: 10px; right: 10px; font-size: 10px; letter-spacing: 2px; color: #0f0a0e; background: #8af08a; padding: 2px 6px; }

/* world */
.world { padding-bottom: 40px; }
.region { padding: 50px 0; }
.region.flip .shot { order: 2; }
.region-text h3 { font: 800 clamp(28px, 3.4vw, 42px)/1.1 'Cinzel', serif; margin: 0 0 12px; color: #fff3d8; }
.region-text p { color: var(--muted); }
.hooks { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hooks li { padding: 4px 10px; font-size: 13px; border: 1px solid var(--line); background: rgba(242, 200, 106, .06); }
.foes { display: flex; gap: 16px; align-items: flex-end; margin-top: 18px; }
.foes img { height: 92px; filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .5)); transition: transform .2s; }
.foes img:hover { transform: translateY(-6px) scale(1.06); }
.foes img.mystery { filter: brightness(0) drop-shadow(0 0 8px #40ff80); }

/* casino */
.casino { background: radial-gradient(ellipse at 80% 50%, #3a1a0a, var(--bg) 60%); overflow: hidden; }
.cards-demo { display: flex; align-items: center; gap: 18px; margin: 24px 0 14px; }
.pcard { width: 84px; height: 116px; display: grid; place-items: center; font: 800 44px 'Cinzel', serif; color: var(--ink); background: linear-gradient(180deg, #fffaf0, #e8dcc4); border: 3px solid #ffc040; border-radius: 8px; box-shadow: 0 0 26px rgba(255, 190, 60, .35); transition: transform .4s; }
.pcard.back { color: #ffc040; background: repeating-linear-gradient(45deg, #6a1a1a 0 7px, #8a2a20 7px 14px); }
.pcard.flip { transform: rotateY(360deg); }
.arrow { font-size: 32px; color: #ffc040; }
.guess { display: flex; gap: 10px; }
.casino-line { font: 600 17px 'Cinzel', serif; color: #ffe2a0; min-height: 2.6em; }
.dragon-wrap { display: grid; place-items: center; }
.dragon { width: min(460px, 100%); filter: drop-shadow(0 0 40px rgba(255, 150, 50, .35)) drop-shadow(0 20px 10px rgba(0, 0, 0, .5)); animation: breathe 3s ease-in-out infinite; }
@keyframes breathe { 50% { transform: translateY(-8px) scale(1.01); } }

/* loot */
.loot { background: var(--bg); }
.loot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.loot-card { position: relative; overflow: hidden; padding: 24px 18px 20px; text-align: center; background: linear-gradient(180deg, #1c1420, #120c14); border: 1px solid color-mix(in srgb, var(--rar) 45%, transparent); transition: transform .2s, box-shadow .2s; }
.loot-card:hover { transform: translateY(-6px); box-shadow: 0 0 34px color-mix(in srgb, var(--rar) 35%, transparent); }
.loot-card .beam { position: absolute; left: 50%; top: -20px; width: 60px; height: 170px; transform: translateX(-50%); background: linear-gradient(180deg, color-mix(in srgb, var(--rar) 70%, transparent), transparent); filter: blur(10px); opacity: .5; }
.loot-card img { position: relative; width: 84px; height: 84px; filter: drop-shadow(0 0 12px color-mix(in srgb, var(--rar) 60%, transparent)); animation: float 3s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
.loot-card .rar { font-size: 11px; letter-spacing: .25em; color: var(--rar); margin-top: 8px; }
.loot-card h3 { font: 800 17px 'Cinzel', serif; color: var(--rar); margin: 4px 0; }
.loot-card p { margin: 0; font-size: 14px; color: var(--muted); }
.insult { position: absolute; left: 10px; right: 10px; top: 10px; padding: 8px 10px; font-size: 13px; color: #ffcf7a; background: #2a1830; border: 2px solid #ffa63a; opacity: 0; transform: translateY(-8px); transition: all .2s; }
.insult.show { opacity: 1; transform: none; }

/* wanted */
.wanted { background: radial-gradient(ellipse at 70% 50%, #2a1a10, var(--bg) 60%); }
.poster-form { display: grid; gap: 14px; max-width: 460px; }
.poster-form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.poster-form input, .poster-form select { font: 16px 'Pixelify Sans', monospace; color: var(--ink); padding: 11px 12px; border: 2px solid #2a2024; background: var(--parch); }
.poster-form .btn { justify-self: start; }
.poster {
  position: relative; width: min(420px, 100%); justify-self: center; padding: 30px 30px 26px; text-align: center; color: #3a2414;
  background: radial-gradient(ellipse at 50% 40%, #f0dcb0, #d6b47a 80%, #b8904e); box-shadow: 0 30px 60px rgba(0, 0, 0, .6), inset 0 0 60px rgba(90, 50, 10, .45);
  transform: rotate(-2deg); clip-path: polygon(2% 1%, 98% 0, 100% 97%, 96% 100%, 3% 99%, 0 3%);
}
.poster.fresh { animation: slam .6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes slam { from { transform: rotate(-12deg) scale(1.3); opacity: 0; } }
.poster-head { font: 900 64px/1 'Cinzel', serif; letter-spacing: .08em; color: #5a1a10; }
.poster-sub { font: 800 16px 'Cinzel', serif; letter-spacing: .2em; margin: 6px 0 14px; }
.poster-sub small { font-size: 12px; letter-spacing: .05em; font-weight: 600; }
.poster-portrait { width: 170px; height: 170px; margin: 0 auto; border: 4px solid #3a2414; background: #8a6a40; }
.poster-portrait img { width: 100%; height: 100%; filter: sepia(.6) contrast(1.1); }
.poster-name { font: 900 30px/1.1 'Cinzel', serif; margin-top: 14px; color: #2a1408; word-break: break-word; }
.poster-alias { font: 600 16px 'Cinzel', serif; font-style: italic; }
.poster-crime { font-size: 14px; margin: 10px 0; }
.poster-bounty { font: 900 40px 'Cinzel', serif; color: #7a1a10; }
.poster-bounty small { font-size: 16px; }
.poster-foot { font-size: 12px; margin-top: 8px; opacity: .8; }

/* bosses */
.bosses { background: linear-gradient(180deg, var(--bg), #1a1008); }
.boss-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.boss { text-align: center; padding: 20px; background: linear-gradient(180deg, rgba(255, 200, 100, .06), transparent); border-top: 2px solid var(--gold2); }
.boss img { height: 170px; filter: drop-shadow(0 0 22px rgba(255, 210, 120, .35)); }
.boss h3 { font: 800 20px 'Cinzel', serif; color: var(--gold); margin: 10px 0 4px; }
.boss p { margin: 0; color: var(--muted); font-style: italic; }
.mystery-boss img { filter: brightness(0) drop-shadow(0 0 14px #40ff80); }
.mystery-boss h3 { color: #60ff90; font-family: 'Pixelify Sans', monospace; }

/* endings */
.endings { background: radial-gradient(ellipse at 50% 100%, #3a1410, var(--bg) 60%); }
.ending-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ending { position: relative; padding: 26px 22px; background: linear-gradient(180deg, #221824, #140e16); border: 1px solid var(--line); }
.ending .num { font: 900 42px 'Cinzel', serif; color: rgba(242, 200, 106, .25); line-height: 1; }
.ending h3 { font: 800 19px 'Cinzel', serif; margin: 8px 0; color: #fff3d8; }
.ending p { margin: 0; font-size: 14px; color: var(--muted); }
.ending.glitch { border-color: #40ff80; }
.ending.glitch h3 { color: #60ff90; font-family: 'Pixelify Sans', monospace; animation: glitch 2.4s infinite steps(1); }
@keyframes glitch {
  0%, 92%, 100% { text-shadow: none; transform: none; }
  93% { text-shadow: 3px 0 #ff2a6a, -3px 0 #2affea; transform: translateX(2px); }
  95% { text-shadow: -3px 0 #ff2a6a, 3px 0 #2affea; transform: translateX(-3px) skewX(-8deg); }
  97% { text-shadow: 2px 0 #ff2a6a, -2px 0 #2affea; }
}
.endgame { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.endgame div { padding: 18px 22px; border: 1px dashed var(--line); color: var(--muted); }
.endgame b { display: block; font: 800 18px 'Cinzel', serif; color: var(--gold); }

/* leaderboard */
.board { margin-top: 26px; padding: 22px 26px; background: linear-gradient(180deg, #1d1420, #140e16); border: 1px solid var(--line); }
.board h3 { font: 800 20px 'Cinzel', serif; color: var(--gold); margin: 0 0 12px; }
.board ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.board li { display: grid; grid-template-columns: 50px 1fr auto auto; gap: 14px; padding: 8px 12px; background: rgba(255, 255, 255, .03); }
.board .rank { color: var(--gold); font-weight: 700; } .board .cls { color: var(--muted); } .board .fl { color: #ff8a7a; }
.board .empty { color: var(--muted); margin: 0; }

/* final */
.final { position: relative; padding: 150px 20px; text-align: center; overflow: hidden; }
.final-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: saturate(1.2) brightness(.55); transform: scale(1.06); }
.final::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(15, 10, 14, .2), var(--bg) 85%); }
.final-inner { position: relative; z-index: 2; }
.final h2 { font: 900 clamp(38px, 6vw, 76px)/1.05 'Cinzel', serif; margin: 0 0 30px; color: #fff3d8; text-shadow: 0 4px 0 #2a1608, 0 0 40px rgba(255, 140, 60, .4); }
.final h2 span { color: var(--gold); }
.controls { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; color: var(--muted); font-size: 14px; }
kbd { display: inline-block; min-width: 28px; padding: 2px 7px; margin-right: 4px; font: 700 13px 'Pixelify Sans', monospace; color: var(--ink); background: var(--parch); border-bottom: 3px solid #a89a80; }
.fine { color: var(--muted); font-size: 13px; margin-top: 18px; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 26px 24px; font-size: 13px; color: #7a6e60; border-top: 1px solid rgba(242, 200, 106, .12); }

/* hero entrance: pure CSS so the first screen never waits on JavaScript */
.rise { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* scroll reveal */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.js .tilt.reveal.in, .tilt { transform: perspective(1000px) rotateY(-6deg) rotateX(2deg); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* responsive */
@media (max-width: 1000px) {
  .two { grid-template-columns: 1fr; gap: 36px; }
  .region.flip .shot { order: 0; }
  .feature-grid, .loot-grid, .boss-row, .ending-grid { grid-template-columns: repeat(2, 1fr); }
  .class-grid { grid-template-columns: repeat(3, 1fr); }
  .links { display: none; }
  .speech { right: 0; top: -20px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 70px 0; }
  .feature-grid, .loot-grid, .ending-grid, .endgame { grid-template-columns: 1fr; }
  .class-grid, .boss-row { grid-template-columns: repeat(2, 1fr); }
  .gobbo { flex-direction: column; text-align: center; }
  .chicken { width: 80px; left: -6px; bottom: -30px; }
  .chip { min-width: 0; flex: 1 1 140px; }
  .brand { font-size: 12px; }
  .scroll-card { padding: 42px 20px 26px; }
}
