@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&family=Orbitron:wght@400;700;900&display=swap');
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --blue: #44aaff; --bg: #020212; --surface: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.10); --text: #c8d8ff; --muted: #8899cc;
}
body { background: var(--bg); color: var(--text); font-family: 'Orbitron', 'Noto Sans JP', 'Hiragino Sans', sans-serif; }
.wrap { max-width: 720px; margin: 0 auto; padding: 60px 22px 80px; }
h1 { font-size: clamp(22px, 5vw, 32px); font-weight: 900; color: #fff; letter-spacing: 0.08em; margin-bottom: 6px; }
.subtitle { font-size: 14px; color: var(--muted); letter-spacing: 0.1em; margin-bottom: 32px; }
h2 { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: 0.08em; margin: 40px 0 16px; border-left: 3px solid var(--blue); padding-left: 12px; }
p, li { font-size: 14px; color: var(--muted); line-height: 2.0; letter-spacing: 0.02em; }
ul { padding-left: 20px; margin-bottom: 12px; }
li { margin-bottom: 6px; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.constellation-svg { display: flex; justify-content: center; margin: 32px 0; }
.constellation-svg svg { max-width: 360px; width: 100%; height: auto; }

.star-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 13px; }
.star-table th { text-align: left; color: var(--blue); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--border); letter-spacing: 0.06em; font-size: 11px; }
.star-table td { padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,0.04); color: var(--muted); }
.star-table tr:hover td { background: rgba(255,255,255,0.02); }
.star-color { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; margin-right: 6px; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 24px; }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; text-align: center; }
.info-card .label { font-size: 10px; color: var(--blue); letter-spacing: 0.12em; margin-bottom: 6px; }
.info-card .value { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: 0.06em; }

.cta-box { margin-top: 48px; text-align: center; padding: 32px 20px; background: linear-gradient(135deg, rgba(68,170,255,0.06), rgba(68,170,255,0.02)); border: 1px solid rgba(68,170,255,0.15); border-radius: 16px; }
.cta-box p { margin-bottom: 16px; font-size: 15px; color: var(--text); }
.cta-btn { display: inline-block; padding: 12px 32px; background: var(--blue); color: #000; font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 0.1em; border-radius: 8px; text-decoration: none; transition: opacity 0.2s; }
.cta-btn:hover { opacity: 0.85; text-decoration: none; }

.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 24px; letter-spacing: 0.06em; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }

.footer { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border); text-align: center; font-size: 13px; color: var(--muted); letter-spacing: 0.1em; line-height: 2.0; }

.lang-toggle { position: fixed; top: 16px; right: 16px; z-index: 100; display: flex; background: rgba(10,10,30,0.85); border: 1px solid rgba(255,255,255,0.15); border-radius: 6px; overflow: hidden; backdrop-filter: blur(8px); }
.lang-toggle button { background: none; border: none; color: var(--muted); font-family: 'Orbitron', 'Noto Sans JP', 'Hiragino Sans', sans-serif; font-size: 12px; padding: 8px 14px; cursor: pointer; letter-spacing: 0.1em; transition: background 0.15s, color 0.15s; }
.lang-toggle button.active { background: rgba(255,255,255,0.12); color: #fff; }
.lang-toggle .divider { width: 1px; background: rgba(255,255,255,0.15); align-self: stretch; }
.lang-en { display: none; }

.nav-links { display: flex; justify-content: space-between; margin-top: 32px; font-size: 13px; }
.nav-links a { color: var(--muted); letter-spacing: 0.06em; }
.nav-links a:hover { color: var(--blue); }

/* Index page */
.cons-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin: 32px 0; }
.cons-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; text-align: center; text-decoration: none; transition: border-color 0.2s, transform 0.2s; display: block; }
.cons-card:hover { border-color: rgba(68,170,255,0.3); transform: translateY(-2px); text-decoration: none; }
.cons-card .cons-name { font-size: 14px; font-weight: 700; color: #fff; letter-spacing: 0.08em; margin-top: 12px; }
.cons-card .cons-name-ja { font-size: 12px; color: var(--muted); margin-top: 4px; }
.cons-card svg { max-width: 160px; height: 100px; }

/* Back to game button (shown when opened from game) */
.back-to-game {
  position: fixed; bottom: 20px; right: 20px; z-index: 200;
  display: none;
  padding: 10px 20px;
  background: rgba(68,170,255,0.15);
  border: 1px solid rgba(68,170,255,0.4);
  border-radius: 24px;
  color: var(--blue);
  font-family: 'Orbitron', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s, box-shadow 0.2s;
}
.back-to-game:hover { background: rgba(68,170,255,0.3); box-shadow: 0 0 16px rgba(68,170,255,0.3); }

@media (max-width: 480px) {
  .info-grid { grid-template-columns: 1fr; }
  .star-table { font-size: 12px; }
  .star-table th, .star-table td { padding: 6px 6px; }
  .cons-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
