/* Yoru — shared look "Sumi": ink black, paper white, one vermilion. Shippori Mincho B1 for words that matter,
   Zen Kaku Gothic New for everything read, M PLUS 1 Code for addresses only. */
:root {
  --bg: #0a0a0a; --bg2: #0f0f0f; --bg3: #151515;
  --ink: #efede8; --dim: rgba(239, 237, 232, .6); --faint: rgba(239, 237, 232, .38);
  --line: rgba(239, 237, 232, .1); --line2: rgba(239, 237, 232, .18);
  --red: #ff4a24; --red-deep: #c8341a; --on-red: #0a0a0a;
  --ok: #8fc79a; --warn: #f0b15a;
  --serif: 'Shippori Mincho B1', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --sans: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', system-ui, sans-serif;
  --mono: 'M PLUS 1 Code', ui-monospace, 'Cascadia Mono', monospace;
  --r: 6px; --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html[data-motion='off'] { scroll-behavior: auto; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--red); color: var(--on-red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 3px; }
.wrap { width: min(var(--wrap), 100% - 48px); margin: 0 auto; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none;
  font: 700 15px/1 var(--sans); padding: 15px 22px; border-radius: 4px; transition: transform .15s ease, background .15s ease, border-color .15s ease, opacity .15s; white-space: nowrap; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-red { background: var(--red); color: var(--on-red); }
.btn-red:hover { background: #ff6240; }
.btn-red:active { transform: translateY(1px); }
.btn-line { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); }
.btn-line:hover { box-shadow: inset 0 0 0 1px rgba(239, 237, 232, .4); }
.btn-sm { padding: 10px 15px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-off { opacity: .42; cursor: not-allowed; pointer-events: none; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(10, 10, 10, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img.seal { width: 34px; height: 34px; }
.brand .word { font: 800 21px/1 var(--serif); letter-spacing: .12em; }
.nav-links { display: flex; gap: 30px; font-size: 15px; color: var(--dim); }
.nav-links a { text-decoration: none; transition: color .15s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
.nav-r { display: flex; align-items: center; gap: 12px; }
.icon-link { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 4px; color: var(--dim); box-shadow: inset 0 0 0 1px var(--line); }
.icon-link:hover { color: var(--ink); }
.icon-link svg { width: 16px; height: 16px; }
.burger { display: none; width: 42px; height: 42px; border: 0; background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .2s; }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded='true'] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded='true'] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.menu { border-top: 1px solid var(--line); padding: 10px 0 22px; }
.menu a { display: block; padding: 12px 0; text-decoration: none; font-size: 18px; border-bottom: 1px solid var(--line); }
.menu .btn { margin-top: 18px; }

/* ---------- section heads: a kanji numeral, not an all-caps label ---------- */
.sec { padding: 110px 0 0; }
.sec-head { display: grid; grid-template-columns: 64px 1fr; gap: 0 18px; max-width: 760px; margin-bottom: 44px; }
.sec-head .num { font: 800 34px/1 var(--serif); color: var(--red); padding-top: 8px; }
.sec-head h2 { margin: 0; font: 700 clamp(32px, 4.2vw, 50px)/1.1 var(--serif); letter-spacing: -.01em; }
.sec-head p { grid-column: 2; margin: 16px 0 0; color: var(--dim); font-size: 18px; max-width: 620px; }

.card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); }

/* ---------- coin slot ---------- */
.coin { display: inline-flex; align-items: center; gap: 12px; padding: 8px 8px 8px 10px; border: 1px solid var(--line); border-radius: 4px; font-size: 14px; color: var(--dim); max-width: 100%; }
.coin img { width: 30px; height: 30px; flex: none; }
.coin b { color: var(--ink); font-weight: 700; }
.coin .ca { color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin .ca.mono { font-family: var(--mono); color: var(--ink); }
.coin .acts { display: flex; gap: 6px; flex: none; }

/* ---------- footer ---------- */
.foot { margin-top: 120px; border-top: 1px solid var(--line); padding: 54px 0 40px; color: var(--dim); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.foot-grid h3 { margin: 0 0 12px; font: 700 14px var(--sans); color: var(--ink); }
.foot-grid a { display: block; text-decoration: none; padding: 4px 0; }
.foot-grid a:hover { color: var(--ink); }
.foot-brand p { margin: 14px 0 0; max-width: 320px; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.link-plain { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: 60; right: 18px; bottom: 18px; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 36px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; background: #161616; border: 1px solid var(--line2); border-left: 3px solid var(--ok); padding: 13px 16px; border-radius: 4px; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); animation: tin .25s ease; }
.toast.warn { border-left-color: var(--red); }
.toast a { color: var(--ink); }
.toast.out { opacity: 0; transform: translateY(6px); transition: .3s; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }

/* ---------- reveal ---------- */
html[data-motion='on'] .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
html[data-motion='on'] .reveal.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .nav-r .btn.app-cta { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 36px); }
  .sec { padding-top: 84px; }
  .sec-head { grid-template-columns: 1fr; }
  .sec-head .num { font-size: 26px; padding: 0 0 8px; }
  .sec-head p { grid-column: 1; font-size: 16.5px; }
  .brand .word { font-size: 19px; }
  .coin { flex-wrap: wrap; }
}
