/* Halaman konten (about, how to play, privacy) — tema sama dengan game */
:root {
  --bg: #07040a;
  --panel: #0e070b;
  --line: #2a1218;
  --text: #ece2dc;
  --sub: #9c8a91;
  --accent: #ff1f3d;
  --gold: #ffb02e;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: radial-gradient(ellipse at 70% -10%, #3a0b18 0%, #12050c 40%, var(--bg) 75%) fixed;
  color: var(--text); font-family: var(--mono); line-height: 1.75; font-size: 15px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px); background: rgba(7, 4, 10, 0.86); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 20px; }
.logo:hover { text-decoration: none; }
.logo .mark { font-family: var(--serif); color: var(--accent); font-size: 26px; text-shadow: 0 0 12px rgba(255, 30, 60, 0.6); }
.logo b { color: var(--accent); }
.top nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 13px; }
.top nav a { color: var(--sub); }
.top nav a.on, .top nav a:hover { color: var(--text); text-decoration: none; }
.play {
  color: #fff !important; font-weight: 800; padding: 7px 14px; border-radius: 8px;
  background: linear-gradient(180deg, #ff2b45, #a5001a); box-shadow: 0 0 18px rgba(255, 20, 50, 0.35);
}
.play:hover { filter: brightness(1.15); text-decoration: none; }

main.page { max-width: 920px; margin: 0 auto; padding: 48px clamp(16px, 4vw, 40px) 80px; }
.hero { margin-bottom: 40px; }
.hero .kanji { font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--accent); text-shadow: 0 0 30px rgba(255, 0, 30, 0.55); }
h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(32px, 5vw, 48px); line-height: 1.15; letter-spacing: 0.02em; margin: 10px 0 14px; }
h2 { font-family: var(--serif); font-weight: 900; font-size: 26px; margin: 48px 0 14px; padding-top: 8px; border-top: 1px solid var(--line); }
h3 { font-size: 16px; margin: 22px 0 6px; color: #fff; }
p, ul, ol, table { margin-bottom: 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
.lead { font-size: 17px; color: #d8cbc5; }
.muted { color: var(--sub); font-size: 13px; }
strong { color: #fff; }
kbd {
  font-family: var(--mono); font-size: 0.85em; padding: 1px 7px; border-radius: 4px;
  background: #2a1a20; border: 1px solid #3a2830; color: #fff;
}
code { font-family: var(--mono); color: var(--gold); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--sub); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.toc { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 22px; margin-bottom: 30px; }
.toc ol { margin: 0; columns: 2; column-gap: 30px; }
.note { border-left: 3px solid var(--accent); background: rgba(255, 31, 61, 0.07); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 18px 0; }

/* potret musuh/boss yang digambar dengan kode game */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 18px 0 8px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.card canvas {
  display: block; width: 100%; aspect-ratio: 4 / 3;
  background: radial-gradient(ellipse at 50% 30%, #6b1424 0%, #2a0a15 55%, #0d0408 100%);
}
.card .body { padding: 12px 14px 14px; }
.card h3 { margin: 0 0 4px; font-size: 15px; }
.card p { margin: 0; font-size: 13px; color: var(--sub); line-height: 1.6; }
.tag { display: inline-block; font-size: 11px; padding: 0 7px; border-radius: 4px; margin-left: 6px; vertical-align: 2px; background: #2a1218; color: var(--sub); }
.tag.gold { background: #3a2a08; color: var(--gold); }
.tag.air { background: #10223a; color: #8cbcff; }
.boss-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0 6px; }
.boss-row .card canvas { aspect-ratio: 1 / 1; }
.boss-row .card .body { padding: 8px 10px 10px; }
.boss-row .card h3 { font-size: 13px; }

footer.foot {
  border-top: 1px solid var(--line); padding: 24px clamp(16px, 4vw, 40px); color: var(--sub); font-size: 12px;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
}
footer.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer.foot a { color: var(--sub); }

@media (max-width: 640px) {
  .top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .toc ol { columns: 1; }
  .boss-row { grid-template-columns: 1fr 1fr; }
}

/* kartu pembuat di halaman About */
.maker {
  display: flex; flex-direction: column; gap: 4px; margin: 36px 0 8px; padding: 20px 24px;
  border: 1px solid rgba(255, 31, 61, 0.45); border-left: 4px solid var(--accent); border-radius: 6px;
  background: linear-gradient(120deg, rgba(255, 31, 61, 0.12), rgba(255, 31, 61, 0.02));
  color: inherit; transition: transform 0.15s, border-color 0.15s;
}
.maker:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--accent); }
.maker-label { font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--sub); }
.maker-handle { font-family: var(--serif); font-weight: 900; font-size: 34px; color: var(--accent); text-shadow: 0 0 18px rgba(255, 31, 61, 0.5); }
.maker-sub { font-size: 13px; color: var(--sub); }
