:root { --bg: #0b090c; --panel: #141016; --edge: #5a4a38; --gold: #c8a868; --text: #d8d0c0; --muted: #807060; --red: #c04838; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: "Lucida Console", "Courier New", monospace; overflow: hidden; }
body { background: radial-gradient(ellipse at 50% 30%, #1c1418 0%, #0b090c 60%, #050407 100%); }
canvas.pix { image-rendering: pixelated; image-rendering: crisp-edges; display: block; }
#game { display: none; position: fixed; inset: 0; image-rendering: pixelated; image-rendering: crisp-edges; cursor: crosshair; }
#app { position: fixed; inset: 0; display: flex; justify-content: center; overflow-y: auto; }
.screen { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 28px 16px 60px; width: 100%; max-width: 980px; }
.logo { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 10px; filter: drop-shadow(0 0 18px rgba(255,160,80,0.18)); }
.logo canvas { max-width: 100%; height: auto; }
.panel { background: var(--panel); border: 2px solid var(--edge); box-shadow: inset 0 0 0 2px #1e1814, 0 8px 30px rgba(0,0,0,0.6); padding: 16px; width: 100%; max-width: 560px; position: relative; }
.panel::before, .panel::after { content: ""; position: absolute; width: 6px; height: 6px; background: var(--gold); top: -4px; left: -4px; box-shadow: calc(100% + 0px) 0 0 0 var(--gold); }
.auth { max-width: 420px; display: flex; flex-direction: column; gap: 12px; }
.tabs { display: flex; gap: 6px; }
.tab { flex: 1; background: #1a1418; border: 2px solid #2e241c; padding: 8px; cursor: pointer; display: flex; justify-content: center; }
.tab.on { border-color: var(--edge); background: #241c18; }
.form { display: flex; flex-direction: column; gap: 10px; }
input { background: #0c0a0e; border: 2px solid #3a2e24; color: #f0e4cc; padding: 10px 12px; font: inherit; font-size: 15px; outline: none; }
input:focus { border-color: var(--gold); }
.btn { background: #2a1e18; border: 2px solid var(--edge); padding: 9px 16px; cursor: pointer; display: inline-flex; justify-content: center; align-items: center; text-decoration: none; box-shadow: inset 0 -3px 0 #160f0c, inset 0 2px 0 #3e2c22; }
.btn:hover { background: #3a281e; border-color: var(--gold); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: #4a2418; border-color: #a06040; }
.btn.primary:hover { background: #5e2e1e; }
.btn.small { padding: 5px 10px; }
.btn.danger { border-color: #6a2a20; }
.btn.disabled { opacity: 0.45; cursor: not-allowed; }
.oauth { display: flex; flex-direction: column; gap: 8px; }
.oauth-btn { background: #1e1c22; }
.oauth-btn.discord { background: #22223a; }
.or { display: flex; justify-content: center; }
.error { color: #e06050; min-height: 16px; font-size: 13px; }
.warn { opacity: 0.9; }
.muted { color: var(--muted); font-size: 13px; padding: 6px 0; }
.muted.big { font-size: 15px; text-align: center; padding: 20px; }
.feed { max-width: 560px; }
.feedlist { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; font-size: 12px; color: #a89888; }
.feeditem { border-left: 2px solid #4a2a22; padding-left: 8px; }
.topbar { display: flex; align-items: center; width: 100%; max-width: 980px; gap: 10px; }
.spacer { flex: 1; }
.charlist { display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow-y: auto; }
.charcard { display: flex; align-items: center; gap: 14px; padding: 6px 10px; background: #100c10; border: 2px solid #2a2018; cursor: pointer; }
.charcard:hover { border-color: #5a4a38; }
.charcard.sel { border-color: var(--gold); background: #1e1612; }
.charinfo { display: flex; flex-direction: column; gap: 6px; }
.portrait { flex: none; }
.actions { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.row { display: flex; gap: 16px; width: 100%; justify-content: center; flex-wrap: wrap; align-items: flex-start; }
.row .panel { max-width: 460px; flex: 1 1 320px; }
.graveyard { display: flex; flex-direction: column; gap: 8px; }
.tomb { display: flex; gap: 10px; align-items: center; border-top: 1px solid #241c18; padding-top: 6px; }
.epitaph { font-size: 12px; color: #908070; margin-top: 4px; line-height: 1.4; }
.epitaph.big { font-size: 15px; color: #c0b098; text-align: center; }
.create { display: flex; flex-direction: column; gap: 12px; align-items: stretch; max-width: 640px; }
.classgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.classcard { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; background: #100c10; border: 2px solid #2a2018; cursor: pointer; }
.classcard:hover { border-color: #5a4a38; }
.classcard.sel { border-color: var(--gold); background: #1e1612; }
.classdesc { color: #b0a090; font-size: 14px; text-align: center; min-height: 36px; line-height: 1.4; }
.death { justify-content: center; min-height: 100%; }
.deathstone { background: linear-gradient(#4a4850, #2e2c34); border: 3px solid #1a181e; border-radius: 80px 80px 4px 4px; padding: 40px 50px 30px; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 520px; box-shadow: 0 20px 60px rgba(0,0,0,0.8); }
@media (max-width: 600px) { .classgrid { grid-template-columns: repeat(2, 1fr); } .logo canvas { width: 100%; } .deathstone { padding: 30px 20px; } }
.legal { font-size: 12px; color: #6a5a48; } .legal a { color: #8a7a68; }
