* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
:root {
  --bg: #0b1030; --panel: rgba(255,255,255,0.07); --line: rgba(255,255,255,0.16);
  --text: #ffffff; --muted: #aab4d6; --gold: #ffd84a; --accent: #ff7a59;
  --font: "Jua", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { min-height: 100vh; background: radial-gradient(ellipse at 50% 0%, #26338a 0%, var(--bg) 60%) fixed, var(--bg); color: var(--text); font-family: var(--font); line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.stars { position: fixed; inset: 0; pointer-events: none; z-index: -1; background-image:
  radial-gradient(2px 2px at 20% 30%, #fff8 50%, transparent 51%), radial-gradient(2px 2px at 70% 12%, #fffa 50%, transparent 51%),
  radial-gradient(1.5px 1.5px at 40% 70%, #fff7 50%, transparent 51%), radial-gradient(2px 2px at 85% 55%, #fff9 50%, transparent 51%),
  radial-gradient(1.5px 1.5px at 10% 85%, #fff6 50%, transparent 51%), radial-gradient(2px 2px at 55% 40%, #fff5 50%, transparent 51%),
  radial-gradient(1.5px 1.5px at 92% 90%, #fff8 50%, transparent 51%), radial-gradient(1.5px 1.5px at 30% 8%, #fff8 50%, transparent 51%); }

.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: max(40px, env(safe-area-inset-top)) 16px 32px; }
.moon { position: relative; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fffbe6, #f5df8f 60%, #d9b85a); box-shadow: 0 0 60px 18px rgba(255,226,140,0.3); animation: float 4s ease-in-out infinite; }
.moon i { position: absolute; border-radius: 50%; background: rgba(190,150,60,0.35); }
.moon .c1 { width: 24px; height: 24px; left: 24px; top: 56px; } .moon .c2 { width: 14px; height: 14px; left: 72px; top: 27px; } .moon .c3 { width: 18px; height: 18px; left: 76px; top: 76px; }
@keyframes float { 50% { transform: translateY(-8px); } }
h1 { font-size: clamp(40px, 11vw, 60px); font-weight: normal; color: var(--gold); text-shadow: 0 4px 0 #b8322e, 0 0 24px rgba(255,216,74,0.45); line-height: 1.15; }
.sub { color: var(--muted); letter-spacing: 3px; font-size: 15px; margin-top: -8px; }
.lineup { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 2px 4px; max-width: 420px; min-height: 100px; }
.lineup canvas { image-rendering: pixelated; width: 50px; height: auto; }

.btn { display: inline-block; font-family: var(--font); font-size: 24px; color: var(--text); text-decoration: none; text-align: center; background: var(--panel); border: 2px solid var(--line); border-radius: 18px; padding: 14px 20px; width: 100%; max-width: 320px; cursor: pointer; }
.btn.primary { background: linear-gradient(180deg, #ff8f6b, #e8573f); border-color: #ffb199; box-shadow: 0 5px 0 #a8321f; }
.btn.primary:active { transform: translateY(3px); box-shadow: none; }
.btn.disabled { opacity: 0.45; pointer-events: none; }

.tabs { position: sticky; top: 0; z-index: 5; display: flex; justify-content: center; gap: 4px; padding: 8px 16px; background: rgba(11,16,48,0.88); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.tabs a { flex: 1; max-width: 110px; text-align: center; color: var(--text); text-decoration: none; font-size: 19px; padding: 8px 0; border-radius: 12px; }
.tabs a:hover { background: var(--panel); }

main { max-width: 720px; margin: 0 auto; padding: 0 16px; }
section { padding: 32px 0 8px; display: flex; flex-direction: column; gap: 14px; }
section > .btn { align-self: center; }
h2 { font-size: 30px; font-weight: normal; color: var(--gold); }
p { font-size: 19px; color: #e4e8f8; }
.note { color: var(--muted); font-size: 17px; margin-top: -6px; }

.info { display: grid; gap: 8px; }
.info div { display: flex; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; font-size: 19px; }
.info dt { color: var(--muted); width: 84px; flex: none; }

.news { list-style: none; display: grid; gap: 8px; }
.news li { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.news li.new { border-color: rgba(255,216,74,0.5); }
.news .d { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.news .badge { font-size: 12px; background: var(--accent); color: #fff; padding: 0 7px; border-radius: 8px; }
.news .t { font-size: 20px; margin-top: 2px; }
.news .b { font-size: 17px; color: #d6dcf2; margin-top: 4px; white-space: pre-line; }
.news .empty { color: var(--muted); font-size: 17px; }
.more { align-self: center; font-family: var(--font); font-size: 18px; color: var(--text); background: var(--panel); border: 2px solid var(--line); border-radius: 14px; padding: 8px 22px; cursor: pointer; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.card { background: var(--panel); border: 2px solid var(--line); border-radius: 16px; padding: 8px 4px 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; font-family: var(--font); color: var(--text); }
.card:hover { border-color: var(--gold); }
.card canvas { image-rendering: pixelated; width: 64%; height: auto; }
.card .nm { font-size: 20px; }
.card .no { font-size: 12px; color: var(--muted); line-height: 1; }
.type { font-size: 13px; padding: 1px 8px; border-radius: 8px; color: #fff; white-space: nowrap; margin-top: 3px; }

.modal { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; background: rgba(5,8,25,0.7); }
.modal[hidden] { display: none; }
.sheet { position: relative; width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto; background: #121a48; border: 2px solid var(--line); border-bottom: none; border-radius: 24px 24px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); }
@media (min-width: 600px) { .modal { align-items: center; } .sheet { border-radius: 24px; border-bottom: 2px solid var(--line); } }
.close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 12px; border: 2px solid var(--line); background: var(--panel); color: #fff; font-size: 18px; cursor: pointer; }
.sh-top { display: flex; gap: 14px; align-items: center; }
.sh-top canvas { image-rendering: pixelated; width: 110px; height: auto; flex: none; }
.sh-name { font-size: 34px; line-height: 1.1; }
.sh-name small { font-size: 17px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { font-size: 15px; padding: 2px 10px; border-radius: 12px; background: rgba(255,255,255,0.12); white-space: nowrap; }
.bubble { position: relative; background: #fff; color: #1a1d3a; font-size: 19px; padding: 8px 14px; border-radius: 14px; margin: 14px 0 4px; }
.rows { margin: 10px 0 16px; display: grid; gap: 8px; font-size: 17px; color: var(--muted); }
.rows b { color: var(--gold); font-weight: normal; }
.rows span { color: #fff; }
.sheet .btn { display: block; max-width: none; }

footer { text-align: center; color: var(--muted); font-size: 15px; padding: 40px 16px calc(28px + env(safe-area-inset-bottom)); }
