/* blockforgeo.net — "forge at night" identity.
 * Layout: split hero (copy + composer) over an inventory strip, then
 * card grids on alternating bands. Dark is the default; light via toggle. */
:root {
  --bg: #0e1020;
  --bg-alt: #12152a;
  --card: #181c33;
  --card-2: #1f2441;
  --slot: #121629;
  --line: rgba(170, 180, 255, 0.12);
  --line-strong: rgba(170, 180, 255, 0.24);
  --text: #eef0fb;
  --muted: #a3a9c9;
  --ember: #ff6b3d;
  --ember-2: #ffa64d;
  --ember-ink: #1d0b04;
  --ember-shadow: #6e2309;
  --ember-text: #ff8d63;
  --steel: #7cd8ff;
  --accent-soft: rgba(255, 107, 61, 0.13);
  --steel-soft: rgba(124, 216, 255, 0.12);
  --shadow: 0 24px 60px rgba(3, 5, 18, 0.55);
  --radius: 16px;
  --font-display: "Unbounded", "Zen Kaku Gothic New", system-ui, sans-serif;
  --font-body: "Manrope", "Zen Kaku Gothic New", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ja: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f5f6fc;
  --bg-alt: #eceef9;
  --card: #ffffff;
  --card-2: #f1f3fb;
  --slot: #e7eaf6;
  --line: rgba(20, 24, 51, 0.1);
  --line-strong: rgba(20, 24, 51, 0.2);
  --text: #141833;
  --muted: #545b7c;
  --ember: #f05a28;
  --ember-2: #ff9a3d;
  --ember-shadow: #8f2f0c;
  --ember-text: #b23c10;
  --steel: #0b6f96;
  --accent-soft: rgba(240, 90, 40, 0.1);
  --steel-soft: rgba(11, 111, 150, 0.09);
  --shadow: 0 20px 50px rgba(20, 24, 51, 0.12);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.lang-ja { font-family: var(--font-ja); line-height: 1.8; line-break: strict; }
img, canvas, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--ember); color: var(--ember-ink); padding: 8px 12px; border-radius: 8px; }
.wrap { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.narrow-wide { width: min(980px, calc(100% - 32px)); margin: 0 auto; }
.left { text-align: left !important; }

/* ---------- type ---------- */
.kicker, .eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel);
}
.kicker::before, .eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--ember); box-shadow: 3px 3px 0 var(--ember-shadow); }
.lang-ja .kicker, .lang-ja .eyebrow { font-family: var(--font-ja); letter-spacing: 0.08em; font-size: 13px; }
.display, .h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
.display { font-size: clamp(40px, 6.4vw, 78px); line-height: 1.02; margin: 0 0 22px; }
.display span { display: block; }
.display em, .h2 em { font-style: normal; color: var(--ember-text); }
.display.sm { font-size: clamp(30px, 4.6vw, 54px); }
.h2 { font-size: clamp(28px, 3.8vw, 46px); line-height: 1.1; margin: 0 0 14px; }
.lang-ja .display, .lang-ja .h2 { font-family: var(--font-ja); font-weight: 900; letter-spacing: 0; line-height: 1.3; }
.lang-ja .display { font-size: clamp(30px, 4.3vw, 54px); }
.lang-ja .display, .lang-ja .h2, .lang-ja .composer-title, .lang-ja .prose h2 { word-break: auto-phrase; }
.lang-ja .h2 { font-size: clamp(26px, 3.3vw, 40px); }
.h3 { font-size: 18px; margin: 0 0 10px; font-weight: 800; }
.lead { color: var(--muted); font-size: 17px; max-width: 62ch; margin: 0; }
.fine { color: var(--muted); font-size: 12.5px; margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 10px; padding: 13px 20px;
  font-family: var(--font-body); font-weight: 800; font-size: 14.5px; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.lang-ja .btn { font-family: var(--font-ja); font-weight: 700; }
.btn-primary { background: linear-gradient(135deg, var(--ember-2), var(--ember)); color: var(--ember-ink); box-shadow: 4px 4px 0 var(--ember-shadow); }
.btn-primary:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ember-shadow); }
.btn-primary:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ember-shadow); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--steel); }
.btn-sm { padding: 9px 14px; font-size: 13px; }
.btn-lg { padding: 16px 26px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn.disabled { opacity: 0.4; pointer-events: none; }
.btn.disabled-look { filter: grayscale(0.85); opacity: 0.5; box-shadow: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ember-text); font-weight: 800; font-size: 14px; }
.link-btn:hover { text-decoration: underline; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--card-2); font-size: 18px; line-height: 1; }
.icon-btn:hover { border-color: var(--line-strong); }

/* ---------- nav ---------- */
.nav-wrap { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top, 0px); transition: background 0.2s, border-color 0.2s; border-bottom: 1px solid transparent; }
.nav-wrap.scrolled { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav { width: min(1200px, calc(100% - 32px)); margin: 0 auto; height: 70px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand b { color: var(--ember-text); font-weight: 700; }
.brand-mark { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0 auto 0 8px; padding: 0; }
.nav-link { display: inline-block; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--muted); }
.nav-link:hover, .nav-link:focus-visible { color: var(--text); background: var(--card-2); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line); }
.lang a { padding: 5px 10px; border-radius: 7px; font-size: 12.5px; font-weight: 700; color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--text); }
.lang a[aria-current="true"] { background: var(--text); color: var(--bg); }
.burger { display: none; }
.burger span { display: block; width: 16px; height: 2px; background: currentColor; margin: 2px 0; transition: 0.2s; }

/* ---------- hero ---------- */
.hero {
  position: relative; padding: 128px 0 64px; overflow: hidden;
  background:
    radial-gradient(700px 420px at 8% 100%, rgba(255, 107, 61, 0.16), transparent 70%),
    radial-gradient(640px 420px at 96% 0%, rgba(124, 216, 255, 0.12), transparent 70%),
    var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='32'%3E%3Cpath d='M0 16L28 0l28 16-28 16z' fill='none' stroke='%237c8cff' stroke-opacity='.10'/%3E%3C/svg%3E");
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; }
.hero-sub { color: var(--muted); font-size: 18px; max-width: 54ch; margin: 0 0 26px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 0; padding: 0; }
.facts li { font-size: 14.5px; color: var(--muted); }
.facts b { font-family: var(--font-display); font-size: 20px; color: var(--text); margin-right: 4px; }
.lang-ja .facts b { font-family: var(--font-ja); font-weight: 900; }

.composer { position: relative; padding: 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.composer::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 3px; background: linear-gradient(90deg, var(--ember), var(--ember-2), var(--steel)); border-radius: 0 0 3px 3px; }
.composer-title { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.01em; margin: 4px 0 16px; }
.lang-ja .composer-title { font-family: var(--font-ja); font-weight: 900; }
.slot-bar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 18px; }
.slot-bar button {
  display: grid; justify-items: center; gap: 4px; padding: 10px 2px 8px; border-radius: 10px;
  background: var(--slot); border: 1px solid var(--line); color: var(--muted); font-size: 11.5px; font-weight: 700;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25);
}
.slot-bar button:hover { color: var(--text); border-color: var(--line-strong); }
.slot-bar button[aria-selected="true"] { color: var(--text); background: var(--accent-soft); border-color: var(--ember); box-shadow: inset 0 -3px 0 var(--ember); }
.slot-bar button[aria-selected="true"] .glyph { stroke: var(--ember-text); }
.glyph { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.prompt-label { display: block; font-size: 13px; font-weight: 800; color: var(--muted); margin-bottom: 8px; }
.prompt-row { display: flex; gap: 10px; }
.prompt-row input {
  flex: 1; min-width: 0; padding: 14px 14px; border-radius: 10px; border: 1.5px solid var(--line-strong);
  background: var(--bg); color: var(--text); font: inherit; font-size: 15.5px;
}
.prompt-row input:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px var(--accent-soft); }
.prompt-row input::placeholder { color: var(--muted); opacity: 0.85; }
.examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--card-2); padding: 5px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--text); }
.chip:hover { border-color: var(--steel); color: var(--steel); }
.composer-note { margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed var(--line-strong); font-size: 13px; color: var(--muted); }

.board { margin-top: 56px; padding: 16px; border-radius: 20px; background: color-mix(in srgb, var(--card) 70%, transparent); border: 1px solid var(--line); }
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 4px 12px; }
.board-head span { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); }
.board-head small { color: var(--muted); font-size: 12.5px; }
.board-slots { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.board-slot { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--slot); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 -4px 0 rgba(0, 0, 0, 0.3); }
.board-slot .art { width: 100%; height: 100%; object-fit: cover; }
.board-icon .art, .board-clothing .art { object-fit: contain; padding: 10%; }
.board-icon, .board-clothing, .asset-art:has(.art-icon), .asset-art:has(.art-clothing) { background: repeating-conic-gradient(var(--slot) 0 25%, var(--card-2) 0 50%) 0 0/18px 18px; }
.art-sfx { width: 100%; height: 100%; display: grid; place-items: center; background: #121629; }
.art-sfx canvas { width: 100%; height: 100%; object-fit: fill; }
.slot-tag { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px 3px 5px; border-radius: 6px; background: rgba(8, 10, 22, 0.78); color: #eef0fb; font-size: 11px; font-weight: 700; backdrop-filter: blur(4px); }
.slot-tag .glyph { width: 14px; height: 14px; }

