* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0d0f12; font-family: Georgia, 'Times New Roman', serif; color: #eee; user-select: none; }
#game, #ink { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }
#game { cursor: none; }
#ink { pointer-events: none; }
#cross { position: fixed; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: 0 0 6px rgba(160,200,255,.9); pointer-events: none; }
#castname { position: fixed; left: 50%; top: 22%; transform: translate(-50%, -50%) scale(.9); font-size: 44px; font-style: italic; letter-spacing: 2px; text-shadow: 0 0 18px currentColor, 0 2px 4px #000; opacity: 0; transition: opacity .35s, transform .35s; pointer-events: none; white-space: nowrap; }
#castname.small { font-size: 26px; }
#castname.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
#info { position: fixed; left: 50%; top: 12px; transform: translateX(-50%); padding: 6px 14px; border-radius: 6px; background: rgba(0,0,0,.45); font-size: 15px; opacity: 0; transition: opacity .3s; pointer-events: none; }
#info.show { opacity: 1; }
#spells { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 12px; pointer-events: none; }
.card { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 10px; background: linear-gradient(180deg, rgba(20,22,30,.72), rgba(10,10,16,.72)); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 0 14px color-mix(in srgb, var(--c) 25%, transparent); }
.card svg { width: 46px; height: 46px; }
.card path { fill: none; stroke: var(--c); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 3px var(--c)); }
.card circle { fill: #fff; }
.card b { display: block; color: var(--c); font-size: 17px; font-style: italic; }
.card span { font-size: 12px; color: #c9cdd6; font-family: system-ui, sans-serif; }
#fps { position: fixed; right: 10px; bottom: 8px; font: 12px system-ui, sans-serif; color: rgba(255,255,255,.55); pointer-events: none; }
.float { position: fixed; left: 0; top: 0; font-size: 24px; font-style: italic; font-weight: bold; text-shadow: 0 0 10px currentColor, 0 2px 3px #000; pointer-events: none; white-space: nowrap; }
#help { position: fixed; left: 14px; top: 14px; padding: 12px 16px; border-radius: 8px; background: rgba(0,0,0,.55); font: 14px/1.7 system-ui, sans-serif; pointer-events: none; }
kbd { padding: 1px 6px; border-radius: 4px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); font: 12px system-ui, sans-serif; }
#intro { position: fixed; inset: 0; display: grid; place-items: center; background: radial-gradient(ellipse at center, rgba(8,10,20,.55), rgba(4,4,8,.85)); cursor: pointer; }
#intro .box { max-width: 560px; padding: 28px 34px; border-radius: 14px; background: rgba(14,14,22,.88); border: 1px solid rgba(200,170,110,.35); box-shadow: 0 10px 60px rgba(0,0,0,.6); text-align: center; }
#intro h1 { margin: 0 0 6px; font-size: 40px; color: #e8cf8f; letter-spacing: 1px; }
#intro h1 small { font-size: 15px; color: #b9a984; font-style: italic; letter-spacing: 0; }
#intro p { margin: 0 0 16px; color: #cfcfd8; }
#intro .how { text-align: left; font: 15px/1.6 system-ui, sans-serif; color: #ddd; }
#intro .how .g { margin: 6px 0 6px 10px; }
#intro .how .g span { font-family: Georgia, serif; font-style: italic; font-weight: bold; }
#intro .how .k { margin-top: 12px; font-size: 13px; color: #aab; }
#intro button { margin-top: 20px; padding: 10px 26px; border-radius: 8px; border: 1px solid #c8a85e; background: #2a2416; color: #f0dca8; font: italic 18px Georgia, serif; cursor: pointer; }
#loading { position: fixed; inset: 0; display: grid; place-items: center; background: #0d0f12; font-size: 20px; color: #cbb98a; font-style: italic; }
.hide { display: none !important; }
#back-sp { display: block; margin-top: 14px; color: #b9a984; font: 14px system-ui, sans-serif; text-decoration: none; } #back-sp:hover { color: #e8cf8f; text-decoration: underline; }
