/* akanesway.com: dark only, phone first. */
:root {
  --bg: #0d0f12; --card: #171a20; --card2: #1e222a; --line: #2a2f38;
  --text: #ebe8e3; --muted: #9ba1aa; --accent: #d0573f; --accent2: #c8a27a; --ok: #4ad17f; --bad: #e0605e; --blue: #4f8cc9;
  --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 16px/1.55 system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", sans-serif; min-height: 100vh; }
a { color: var(--accent2); }
.wrap { max-width: 640px; margin: 0 auto; padding: 16px; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
header.top .brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .02em; }
header.top .brand img { width: 30px; height: 30px; border-radius: 8px; }
header.top nav { display: flex; gap: 14px; font-size: 15px; }
header.top nav a { color: var(--muted); text-decoration: none; }
header.top nav a:hover { color: var(--text); }
.kicker { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: var(--accent2); font-weight: 700; margin: 22px 0 4px; }
h1 { font-size: 30px; line-height: 1.2; margin: 0 0 10px; }
h2 { font-size: 21px; margin: 26px 0 10px; }
p.lead { color: var(--muted); font-size: 17px; margin-top: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 16px 0; }
.how { display: flex; gap: 10px; align-items: flex-start; background: #121a24; border: 1px solid #22344a; color: #cfe0f2; border-radius: var(--radius); padding: 12px 14px; margin: 14px 0; }
label { display: block; font-size: 14px; color: var(--muted); margin: 12px 0 6px; }
input[type=email], input[type=password], input[type=text], textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--card2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px;
}
input:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
textarea { min-height: 90px; resize: vertical; }
button, .button {
  display: inline-block; font: inherit; font-weight: 650; border: 0; border-radius: 999px; padding: 12px 22px; cursor: pointer;
  background: var(--text); color: #111; text-decoration: none; margin-top: 14px;
}
button.secondary, .button.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
button.small { padding: 7px 14px; font-size: 14px; margin-top: 0; }
button:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.msg { margin: 12px 0 0; font-size: 15px; min-height: 1.2em; }
.msg.ok { color: var(--ok); } .msg.bad { color: var(--bad); }
.muted { color: var(--muted); }
.hidden { display: none !important; }
ol.steps { padding-left: 0; list-style: none; counter-reset: s; }
ol.steps li { counter-increment: s; position: relative; padding: 4px 0 12px 44px; }
ol.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--card2); border: 1px solid var(--line); color: var(--accent2); font-weight: 700; text-align: center; line-height: 28px;
}
.card > .kicker:first-child, .card > h2:first-child { margin-top: 0; }
.table-wrap { overflow-x: auto; margin: 0 -6px; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list td:last-child { white-space: nowrap; text-align: right; }
table.list td:last-child button { margin: 2px 0 2px 4px; }
table.list td, table.list th { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { color: var(--muted); font-weight: 600; }
code, .link { font-family: ui-monospace, Consolas, monospace; font-size: 13px; word-break: break-all; background: var(--card2); padding: 2px 6px; border-radius: 6px; }
.hero { text-align: center; padding: 26px 0 6px; }
.hero .kanji { font-size: 76px; line-height: 1; color: var(--text); text-shadow: 0 0 0 transparent; }
.hero .kanji span { color: var(--accent); }
footer { color: var(--muted); font-size: 13px; text-align: center; padding: 30px 16px 40px; }
footer a { color: var(--muted); }
.small { font-size: 13px; }

/* the landing page */
body.landing { overflow-x: hidden; }
header.top.over { position: absolute; top: 0; left: 0; right: 0; z-index: 5; border-bottom: 0;
  background: linear-gradient(180deg, rgba(13,15,18,.75), rgba(13,15,18,0)); }
.hero-art { position: relative; z-index: 1; overflow: hidden; min-height: clamp(600px, 86vh, 900px);
  display: flex; align-items: center; justify-content: center; padding: 84px 16px 64px; text-align: center; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; z-index: -2; }
.hero-art::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 50% 46%, rgba(13,15,18,.55) 0%, rgba(13,15,18,.15) 45%, rgba(13,15,18,0) 70%),
              linear-gradient(180deg, rgba(13,15,18,0) 55%, rgba(13,15,18,.7) 85%, #0d0f12 100%); }
.hero-inner { max-width: 640px; }
.hero-inner h1 { text-shadow: 0 2px 18px #000c; font-size: clamp(30px, 6vw, 44px); }
.hero-inner .lead, .hero-inner .caption { text-shadow: 0 1px 10px #000; color: #d9d4cc; }
.hero-inner .kicker { text-shadow: 0 1px 8px #000; }
@media (max-width: 700px) { .hero-bg img { object-position: center top; } .hero-art { min-height: 0; padding-bottom: 56px; } }
main.wrap { position: relative; z-index: 2; margin-top: -40px; }
.signin-card { box-shadow: 0 16px 50px #0009; }
.invite { display: grid; grid-template-columns: 128px 1fr; gap: 16px; align-items: center; }
.invite img { width: 128px; height: 128px; border-radius: 12px; object-fit: cover; }
@media (max-width: 420px) { .invite { grid-template-columns: 1fr; } .invite img { width: 100%; height: auto; max-height: 220px; } }
.banner img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; object-position: center 40%; border-radius: var(--radius); margin-top: 12px; }
.feature img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px; margin-bottom: 12px; }
button.lang { margin: 0; padding: 5px 12px; font-size: 14px; background: transparent; color: var(--text); border: 1px solid var(--line); }
.stage { display: block; margin: 0 auto; padding: 0; background: rgba(13,15,18,.42); border: 1px solid rgba(255,255,255,.09);
  border-radius: 28px; width: min(240px, 62vw); aspect-ratio: 1; cursor: pointer; box-shadow: 0 20px 60px #0009;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.stage svg { width: 82%; height: 82%; margin-top: 9%; overflow: visible; }
.stage .ghost { fill: none; stroke: #2a2f38; stroke-width: 5.2; stroke-linecap: round; stroke-linejoin: round; }
.stage .ink { fill: none; stroke-width: 4.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 2px #0009); }
.caption { color: var(--muted); margin: 12px 0 0; min-height: 1.5em; font-size: 15px; }
.features { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 6px 0 10px; }
@media (min-width: 560px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.feature .glyph { font-size: 34px; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.invite { border-color: #4a3a2a; background: linear-gradient(180deg, #1c1813, var(--card)); }
.invite h2 { margin-top: 0; color: var(--accent2); }
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; max-width: 560px; margin: 0 auto; z-index: 20; background: #1b1f26;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: 0 10px 40px #000a; }
.consent p { margin: 0 0 4px; }
.consent .row button { margin-top: 8px; }
#leaves { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
header.top, main, footer { position: relative; z-index: 1; }
.leaf { position: absolute; top: -40px; width: 18px; height: 18px; opacity: .55; animation-name: fall; animation-timing-function: linear; animation-iteration-count: infinite;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23c8553d' d='M12 2l1.6 4.2 3.4-2-1 4.2 4-.6-2.6 3.2 3.6 1.6-4.2 1.2.8 3.2-3.8-1.6.3 5.6h-1.2l.3-5.6-3.8 1.6.8-3.2-4.2-1.2 3.6-1.6L4 7.8l4 .6-1-4.2 3.4 2z'/%3E%3C/svg%3E"); }
@keyframes fall {
  0% { transform: translate3d(0, -40px, 0) rotate(0deg); }
  50% { transform: translate3d(40px, 50vh, 0) rotate(180deg); }
  100% { transform: translate3d(-20px, 105vh, 0) rotate(360deg); }
}

/* the agreement */
.agreement h2 { font-size: 18px; margin: 20px 0 6px; }
.agreement ul { padding-left: 20px; margin: 6px 0; }
.agreement li { margin: 6px 0; }
.danger { border-color: #5a2b2b; }
button.warn { background: var(--bad); color: #fff; }
