:root {
  --bg: #0d0907;
  --bg-2: #160e0b;
  --panel: rgba(255, 236, 200, 0.04);
  --line: rgba(255, 214, 140, 0.14);
  --red: hsl(354, 78%, 46%);
  --red-deep: hsl(354, 80%, 28%);
  --gold: hsl(43, 92%, 60%);
  --gold-soft: hsl(43, 80%, 75%);
  --cream: #f6ead2;
  --muted: #b8a68a;
  --radius: 18px;
  --font: "Zen Kaku Gothic New", system-ui, sans-serif;
  --display: "Dela Gothic One", var(--font);
  --mono: "JetBrains Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 80% -10%, hsla(354, 80%, 35%, .35), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, hsla(43, 90%, 50%, .08), transparent 60%),
    var(--bg);
  color: var(--cream);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
code {
  font-family: var(--mono);
  font-size: .88em;
  background: hsla(43, 90%, 60%, .1);
  color: var(--gold);
  border: 1px solid hsla(43, 90%, 60%, .25);
  padding: .1em .5em;
  border-radius: 6px;
}
.accent {
  background: linear-gradient(90deg, var(--gold), #ffcf6b 40%, var(--red) 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.red { color: #ff5a68; }

/* film grain */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .95em 1.6em; border-radius: 999px;
  font-weight: 700; font-size: 1rem; cursor: pointer; border: none;
  font-family: inherit;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s;
}
.btn .ico { width: 1.15em; height: 1.15em; fill: currentColor; }
.btn-gold {
  background: linear-gradient(135deg, #ffe08a, var(--gold) 45%, #d99a1e);
  color: #2a1203;
  box-shadow: 0 8px 30px -8px hsla(43, 92%, 55%, .6), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 14px 40px -8px hsla(43, 92%, 55%, .8), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-outline {
  background: rgba(255,255,255,.03); color: var(--cream);
  border: 1.5px solid var(--line);
  backdrop-filter: blur(8px);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.btn-sm { padding: .6em 1.2em; font-size: .88rem; }

/* ===== Header ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  transition: background .3s, padding .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.header.scrolled, .header.menu-open {
  background: rgba(13, 9, 7, .75);
  backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--line);
  padding-block: .7rem;
}
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-size: 1.1rem; }
.brand b { color: var(--gold); font-weight: 400; }
.brand-icon { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.nav { display: flex; gap: 2rem; margin-left: auto; }
.nav a { color: var(--muted); font-weight: 500; position: relative; transition: color .2s; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav a:hover { color: var(--cream); }
.nav a:hover::after { transform: scaleX(1); }
.menu-toggle { display: none; background: none; border: none; width: 32px; height: 32px; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; }
.menu-toggle span { display: block; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .3s; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 110px; overflow: hidden; }
.hero-rays {
  position: absolute; top: 45%; left: 70%; width: 1800px; height: 1800px; translate: -50% -50%;
  background: repeating-conic-gradient(from 0deg, hsla(354, 80%, 45%, .13) 0 6deg, transparent 6deg 12deg);
  mask: radial-gradient(circle, #000 0%, transparent 60%);
  -webkit-mask: radial-gradient(circle, #000 0%, transparent 60%);
  animation: spin 120s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { rotate: 360deg; } }
.hero-inner {
  position: relative; max-width: 1240px; margin: 0 auto; width: 100%;
  padding: 2rem clamp(1rem, 4vw, 3rem) 4rem;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center;
}
.eyebrow { font-family: var(--mono); font-size: .8rem; letter-spacing: .25em; color: var(--gold); margin-bottom: 1rem; }
.hero-title { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1.15; letter-spacing: -.01em; }
.hero-title .line { display: block; }
.hero-lead { margin-top: 1.5rem; color: var(--muted); font-size: 1.08rem; max-width: 36em; }
.hero-lead strong { color: var(--cream); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2rem; color: var(--muted); font-size: .9rem; }
.hero-badges li { display: flex; align-items: center; gap: .5rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.emblem-wrap { position: relative; width: min(380px, 80%); aspect-ratio: 1; animation: float 7s ease-in-out infinite; }
.emblem { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; box-shadow: 0 40px 80px -20px hsla(354, 80%, 30%, .8), 0 0 0 1px var(--line); rotate: -4deg; }
.emblem-ring {
  position: absolute; inset: -18px; border-radius: 40px; border: 1.5px dashed hsla(43, 92%, 60%, .35);
  rotate: 4deg; animation: pulse 4s ease-in-out infinite;
}
@keyframes float { 50% { translate: 0 -14px; } }
@keyframes pulse { 50% { opacity: .3; inset: -26px; } }

/* chat mock */
.chat {
  position: absolute; right: -10px; bottom: -40px; width: min(360px, 90%);
  background: rgba(30, 22, 18, .82); backdrop-filter: blur(18px);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
}
.chat-head { display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; font-weight: 700; font-size: .9rem; border-bottom: 1px solid var(--line); }
.hash { color: var(--muted); font-size: 1.2rem; }
.live { margin-left: auto; font-family: var(--mono); font-size: .7rem; color: #ff5a68; display: flex; align-items: center; gap: .35rem; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #ff5a68; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.chat-body { padding: .9rem 1rem 1rem; height: 220px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: .7rem; }
.msg { display: flex; gap: .6rem; animation: msgIn .45s cubic-bezier(.2,.8,.2,1) both; font-size: .86rem; line-height: 1.55; }
.msg .av { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .9rem; background: #3b2c24; }
.msg.bot .av { background: url(assets/emblem.jpg) center/cover; }
.msg .name { font-weight: 700; font-size: .78rem; color: var(--muted); }
.msg.bot .name { color: var(--gold); }
.msg .name .bot-tag { font-size: .6rem; background: #5865f2; color: #fff; padding: 0 .35em; border-radius: 3px; margin-left: .3em; vertical-align: 1px; }
.msg .cmdline { color: var(--gold-soft); font-family: var(--mono); font-size: .78rem; }
/* Discord markdown headings */
.msg .md-h1 { font-size: 1.6em; font-weight: 900; line-height: 1.3; color: #fff; margin: .1em 0; }
.msg .md-h2 { font-size: 1.3em; font-weight: 900; line-height: 1.3; color: #fff; }
.msg .md-h3 { font-size: 1.1em; font-weight: 700; color: #fff; }
.msg .md-sub { font-size: .8em; color: var(--muted); }
.typing { display: inline-flex; gap: 3px; padding-top: .3rem; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: bounce 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 50% { transform: translateY(-4px); opacity: .5; } }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } }

/* ticker */
.ticker { position: relative; background: var(--red); color: #fff3d6; overflow: hidden; padding: .8rem 0; rotate: -1.2deg; margin-top: 3rem; width: 104%; left: -2%; box-shadow: 0 10px 40px -10px hsla(354, 80%, 40%, .7); }
.ticker-track { display: flex; gap: 3rem; width: max-content; animation: marquee 40s linear infinite; font-family: var(--display); font-size: 1.05rem; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Stats ===== */
.stats { max-width: 1100px; margin: 5rem auto 0; padding: 0 1.5rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { text-align: center; padding: 1.6rem 1rem; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: 2.6rem; color: var(--gold); line-height: 1.2; }
.stat span { color: var(--muted); font-size: .9rem; }

/* ===== Section ===== */
.section { max-width: 1200px; margin: 0 auto; padding: 7rem clamp(1rem, 4vw, 3rem) 0; }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2, .dice-info h2, .law h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.3; }
.section-sub { color: var(--muted); margin-top: .8rem; }

/* features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.feature {
  position: relative; padding: 2rem 1.6rem; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,236,200,.05), rgba(255,236,200,.015));
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s;
}
.feature::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), hsla(43, 92%, 60%, .14), transparent 50%);
}
.feature:hover { transform: translateY(-6px); border-color: hsla(43, 92%, 60%, .4); }
.feature:hover::before { opacity: 1; }
.feature-icon { font-size: 2rem; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, var(--red), var(--red-deep)); box-shadow: 0 10px 25px -8px hsla(354, 80%, 40%, .8); margin-bottom: 1.3rem; }
.feature h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.feature p { color: var(--muted); font-size: .92rem; margin-bottom: 1.2rem; }

/* tabs */
.tabs { position: relative; display: flex; justify-content: center; gap: .3rem; padding: .4rem; margin: 0 auto 2rem; width: fit-content; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; }
.tab { position: relative; z-index: 1; background: none; border: none; color: var(--muted); font: inherit; font-weight: 700; padding: .75em 1.4em; border-radius: 999px; cursor: pointer; transition: color .3s; white-space: nowrap; }
.tab.active { color: #2a1203; }
.tab-indicator { position: absolute; top: .4rem; bottom: .4rem; left: 0; border-radius: 999px; background: linear-gradient(135deg, #ffe08a, var(--gold)); transition: left .4s cubic-bezier(.2,.8,.2,1), width .4s cubic-bezier(.2,.8,.2,1); }

.panel { display: none; }
.panel.active { display: block; animation: panelIn .5s cubic-bezier(.2,.8,.2,1); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }
.panel-note { text-align: center; color: var(--muted); font-size: .92rem; margin-bottom: 1.6rem; }
.cmd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.cmd {
  padding: 1.4rem 1.4rem 1.3rem; border-radius: 14px; background: var(--panel);
  border: 1px solid var(--line); border-left: 3px solid var(--gold);
  transition: background .25s, transform .25s;
}
.cmd:hover { background: rgba(255,236,200,.07); transform: translateX(4px); }
.cmd code { font-size: 1rem; }
.cmd p { margin-top: .7rem; color: var(--muted); font-size: .9rem; }
.cmd .tag { display: inline-block; margin-left: .5rem; font-size: .7rem; font-weight: 700; padding: .15em .6em; border-radius: 999px; background: hsla(354, 78%, 46%, .2); color: #ff8a94; border: 1px solid hsla(354, 78%, 46%, .4); vertical-align: 2px; }
.cmd.restricted { border-left-color: var(--red); }
.cmd-preview { margin-top: .9rem; padding: .7rem .9rem; border-radius: 8px; background: #313338; font-family: "gg sans", "Noto Sans JP", var(--font); }
.cmd-preview-label { display: block; font-size: .68rem; color: #949ba4; margin-bottom: .1rem; }
.cmd-preview .md-h1 { font-size: 1.5rem; font-weight: 800; line-height: 1.3; color: #f2f3f5; }
.cmd.context { border-left-color: #8c9bff; }
.cmd.context .tag { background: rgba(88,101,242,.18); color: #aab4ff; border-color: rgba(88,101,242,.4); }

/* dice */
.dice-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center;
  padding: clamp(1.8rem, 4vw, 3.2rem); border-radius: 28px;
  background: linear-gradient(135deg, hsla(354, 80%, 30%, .45), hsla(354, 80%, 15%, .3)), var(--bg-2);
  border: 1px solid hsla(354, 78%, 50%, .35);
  box-shadow: 0 30px 80px -30px hsla(354, 80%, 30%, .7);
}
.dice-info p { color: var(--muted); margin-top: .8rem; }
.dice-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; margin-top: 1.8rem; }
.dice-controls label { display: flex; flex-direction: column; font-size: .8rem; color: var(--muted); gap: .3rem; }
.dice-controls input { width: 90px; padding: .75em .9em; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.35); color: var(--cream); font: 700 1rem var(--mono); outline: none; transition: border-color .2s; }
.dice-controls input:focus { border-color: var(--gold); }
.dice-result { text-align: center; padding: 2rem 1rem; border-radius: 20px; background: rgba(0,0,0,.3); border: 1px solid var(--line); min-height: 260px; display: flex; flex-direction: column; justify-content: center; }
.dice-faces { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; min-height: 64px; }
.die { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; font: 700 1.4rem var(--mono); color: #2a1203; background: linear-gradient(135deg, #fff4d0, var(--gold)); box-shadow: 0 8px 20px -6px hsla(43, 92%, 55%, .7), inset 0 -3px 0 rgba(0,0,0,.15); animation: roll .6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes roll { from { transform: rotate(-200deg) scale(.3); opacity: 0; } }
.dice-total { margin-top: 1.4rem; color: var(--muted); }
.dice-total b { font-family: var(--display); font-weight: 400; font-size: 2.4rem; color: var(--gold); margin-left: .3rem; }
.dice-verdict { margin-top: .4rem; font-weight: 700; min-height: 1.6em; }

/* law */
.law {
  position: relative; text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
  border-radius: 28px; overflow: hidden;
  background:
    repeating-linear-gradient(-45deg, hsla(43, 92%, 60%, .05) 0 14px, transparent 14px 28px),
    var(--bg-2);
  border: 2px solid hsla(43, 92%, 60%, .3);
}
.law-stamp {
  position: absolute; top: 1.6rem; right: 1.8rem; width: 90px; height: 90px; border-radius: 50%;
  border: 4px double var(--red); color: var(--red); font-family: var(--display); font-size: 2.2rem;
  display: grid; place-items: center; rotate: 14deg; opacity: .8;
}
.law-lead { margin-top: 1.2rem; color: var(--muted); font-size: 1.05rem; }
.law-lead b { color: var(--cream); }
.law-dates { display: flex; justify-content: center; gap: 1.2rem; margin-top: 2.2rem; }
.date-card { font-family: var(--display); font-size: 2.6rem; padding: .6rem 1.6rem; border-radius: 16px; background: linear-gradient(180deg, var(--red), var(--red-deep)); box-shadow: 0 14px 30px -10px hsla(354, 80%, 40%, .8); }
.date-card .sep { color: var(--gold); margin: 0 .15em; }
.countdown { margin-top: 2.6rem; }
.countdown p { font-family: var(--mono); font-size: .8rem; letter-spacing: .2em; color: var(--gold); }
.cd-grid { display: inline-flex; gap: .8rem; margin-top: .8rem; }
.cd-grid div { min-width: 78px; padding: .8rem .6rem; border-radius: 14px; background: rgba(0,0,0,.35); border: 1px solid var(--line); }
.cd-grid b { display: block; font: 700 1.8rem var(--mono); color: var(--cream); }
.cd-grid span { font-size: .75rem; color: var(--muted); }

/* install */
.install { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.install-card { position: relative; padding: 2.4rem 2rem; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.install-card.featured { border-color: hsla(43, 92%, 60%, .45); background: linear-gradient(160deg, hsla(43, 92%, 60%, .09), transparent 60%); }
.install-num { position: absolute; top: .6rem; right: 1.2rem; font-family: var(--display); font-size: 5rem; color: hsla(43, 92%, 60%, .08); line-height: 1; }
.install-card h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.install-card > p { color: var(--muted); }
.install-card ol { margin: 1.4rem 0 2rem; padding-left: 0; list-style: none; counter-reset: s; display: grid; gap: .7rem; }
.install-card li { counter-increment: s; display: flex; gap: .8rem; align-items: center; font-size: .95rem; }
.install-card li::before { content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 .78rem var(--mono); background: var(--red); color: #fff; }
.install-card .btn { margin-top: auto; align-self: flex-start; }

/* footer */
.footer { margin-top: 8rem; padding: 3rem 1.5rem; text-align: center; border-top: 1px solid var(--line); background: rgba(0,0,0,.3); }
.footer-brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--display); font-size: 1.1rem; }
.footer-brand b { color: var(--gold); font-weight: 400; }
.disclaimer { margin: 1.2rem auto 0; max-width: 42em; color: var(--muted); font-size: .82rem; }
.footer-links { margin-top: 1rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; font-size: .88rem; color: var(--muted); }
.footer-links a:hover { color: var(--gold); }
#nav-hub { color: var(--gold-soft); }
.copy { margin-top: .6rem; color: #7a6a55; font-size: .78rem; font-family: var(--mono); }

/* reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* toast */
.toast { position: fixed; bottom: 2rem; left: 50%; translate: -50% 20px; opacity: 0; z-index: 200; padding: .9rem 1.4rem; border-radius: 12px; background: #2a1d17; border: 1px solid var(--gold); color: var(--cream); font-weight: 700; transition: .35s; pointer-events: none; }
.toast.show { opacity: 1; translate: -50% 0; }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-badges { justify-content: center; }
  .hero-visual { margin-top: 2rem; padding-bottom: 6rem; }
  .chat { right: 50%; translate: 50% 0; bottom: -10px; }
  .hero-rays { left: 50%; }

  /* ナビはハンバーガーに */
  .nav, #header-cta { display: none; }
  .menu-toggle { display: flex; margin-left: auto; }
  .nav.open {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(13,9,7,.97); backdrop-filter: blur(16px); padding: .4rem clamp(1rem, 4vw, 3rem) 1rem; border-bottom: 1px solid var(--line);
  }
  .nav.open a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; color: var(--cream); }
  .nav.open a:last-child { border-bottom: none; }
  .nav.open a::after { display: none; }
  .menu-toggle span { width: 24px; transform-origin: center; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 70px; }
  .header { padding: .8rem 1rem; }
  .header.scrolled { padding-block: .6rem; }
  .brand { font-size: 1rem; }
  .brand-icon { width: 32px; height: 32px; }

  /* hero: エンブレムとチャットを縦並びに */
  .hero { min-height: auto; padding-top: 90px; }
  .hero-inner { padding: 1rem 1rem 2rem; gap: 1.5rem; }
  .hero-title { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .hero-lead { font-size: .98rem; }
  .hero-lead br { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .hero-badges { gap: .6rem 1rem; font-size: .82rem; }
  .hero-visual { flex-direction: column; align-items: center; margin-top: .5rem; padding-bottom: 0; }
  .emblem-wrap { width: min(220px, 60vw); }
  .chat { position: relative; right: auto; bottom: auto; translate: none; width: 100%; margin-top: 2.2rem; text-align: left; }
  .chat-body { height: 260px; }
  .ticker { margin-top: 1.5rem; padding: .6rem 0; }
  .ticker-track { font-size: .9rem; gap: 2rem; }

  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 3rem; gap: .7rem; padding: 0 1rem; }
  .stat { padding: 1.1rem .6rem; }
  .stat b { font-size: 2rem; }
  .stat span { font-size: .8rem; }

  .section { padding: 4.5rem 1rem 0; }
  .section-head { margin-bottom: 2rem; }
  .features, .install, .dice-card { grid-template-columns: 1fr; }
  .feature { padding: 1.5rem 1.3rem; }

  .tabs { flex-direction: column; border-radius: 20px; width: 100%; }
  .tab { padding: .85em 1em; }
  .tab-indicator { display: none; }
  .tab.active { background: linear-gradient(135deg, #ffe08a, var(--gold)); }
  .cmd-grid { grid-template-columns: 1fr; }
  .cmd { padding: 1.1rem 1.1rem 1rem; }

  .dice-card { gap: 1.5rem; padding: 1.4rem; border-radius: 22px; }
  .dice-controls label { flex: 1; }
  .dice-controls input { width: 100%; }
  .dice-controls .btn { width: 100%; justify-content: center; }
  .dice-result { min-height: 200px; padding: 1.4rem .8rem; }
  .die { width: 48px; height: 48px; font-size: 1.15rem; border-radius: 12px; }

  .law { padding: 2.4rem 1rem; border-radius: 22px; }
  .law-lead { font-size: .95rem; }
  .law-lead br { display: none; }
  .law-stamp { width: 52px; height: 52px; font-size: 1.2rem; top: .8rem; right: .8rem; border-width: 3px; }
  .law-dates { gap: .7rem; }
  .date-card { font-size: 1.8rem; padding: .4rem 1rem; }
  .cd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; width: 100%; max-width: 340px; }
  .cd-grid div { min-width: 0; padding: .6rem .2rem; }
  .cd-grid div:only-child { grid-column: 1 / -1; padding: 1rem; }
  .cd-grid b { font-size: 1.35rem; }

  .install-card { padding: 1.8rem 1.3rem; }
  .install-card .btn { align-self: stretch; justify-content: center; }
  .install-num { font-size: 3.5rem; }

  .footer { margin-top: 5rem; padding: 2.4rem 1rem calc(2.4rem + env(safe-area-inset-bottom)); }
  .footer-links { gap: .3rem .6rem; }
  .toast { width: calc(100% - 2rem); text-align: center; bottom: calc(1rem + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
