:root{--bg:#0c0c1e;--panel:#17162e;--edge:#61548b;--gold:#f8d98b;--mauve:#d9a3d2;--white:#f7f1ff}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% 0,#302045,#0c0c1e 70%);color:var(--white);font-family:ui-monospace,Consolas,monospace}header{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:1200px;margin:auto;padding:15px 16px}header strong{color:var(--gold);letter-spacing:1px}header small{display:block;color:#b6aacb;margin-top:5px;font-size:11px}nav{display:flex;flex-wrap:wrap;gap:6px}button,.btn{background:#30254d;color:#f6edff;border:2px solid #8c70a7;padding:9px 12px;font:700 12px ui-monospace,monospace;cursor:pointer;border-radius:4px}button:hover,.btn:hover,button:focus-visible{background:#63467c;outline:2px solid var(--gold)}main{max-width:1200px;margin:auto;padding:0 12px 30px}.gamewrap{border:3px solid #9578ac;background:#080918;box-shadow:0 15px 50px #0009}.hud{display:flex;justify-content:space-between;gap:8px;padding:10px 12px;color:var(--gold);font-size:12px;flex-wrap:wrap}canvas{width:100%;height:auto;display:block;image-rendering:pixelated;background:#101126;touch-action:none}.gamefoot{padding:9px 12px;display:flex;justify-content:space-between;gap:8px;align-items:center;color:#c8bad6;font-size:11px;min-height:55px}.gamefoot>div{display:flex;gap:5px}.gamefoot button{padding:6px 8px}.touch{display:flex;justify-content:space-between;padding:10px 0;gap:15px;user-select:none;touch-action:none}.touch>div{display:flex;gap:10px}.touch button{width:68px;height:52px;font-size:20px;touch-action:none}.info{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:12px}.info>div{background:#19152c;border:1px solid #594a70;padding:13px}.info b{display:block;color:var(--gold);font-size:12px}.info span{display:block;color:#c7bad6;font-size:11px;margin-top:6px;line-height:1.5}.overlay{position:fixed;inset:0;background:#04020bdc;display:flex;align-items:center;justify-content:center;padding:15px;z-index:20}.hidden{display:none}.panel{width:min(750px,100%);max-height:90vh;overflow:auto;border:3px solid #a988bc;background:#18152c;box-shadow:0 15px 80px #000;padding:25px;position:relative}.panel h2{color:var(--gold);margin-top:0}.panel h3{color:#e7b4dd}.panel p,.panel li{line-height:1.65;color:#e3d7ed}.panel a{color:#f8d98b}.close{position:absolute;right:10px;top:10px}.choices{display:grid;gap:10px;margin:18px 0}.choices button{text-align:left;line-height:1.5}.worldgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.worldcard{text-align:left;min-height:92px}.worldcard small{display:block;color:#cfc1e0;margin-top:8px}.muted{color:#b5a8c6}.tag{display:inline-block;background:#423359;border:1px solid #80688f;margin:4px;padding:6px 9px;font-size:12px}.progress{background:#352b49;height:14px;margin:8px 0}.progress>div{height:100%;background:#e4b3df}.actions{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}@media(max-width:760px){header{align-items:flex-start;flex-direction:column}nav button{font-size:10px;padding:8px}.hud{font-size:10px}.gamefoot{flex-direction:column;align-items:start}.info{grid-template-columns:1fr}.worldgrid{grid-template-columns:1fr}.panel{padding:20px 13px}.touch button{width:54px;height:54px}}

/* Celestial Archive exact logo-only hover: one 920ms tilt, no continuous spinning. */
.celestial-brand-icon{display:inline-block;width:25px;height:25px;object-fit:contain;vertical-align:middle;transform-origin:50% 50%;backface-visibility:hidden;filter:drop-shadow(0 0 5px rgba(158,130,156,.35));transition:transform 260ms cubic-bezier(.2,.75,.25,1),filter 260ms ease;}
header>div:first-child:hover .celestial-brand-icon,header>div:first-child:focus-within .celestial-brand-icon{filter:brightness(1.08) saturate(1.12) drop-shadow(0 0 2px rgba(255,255,255,.98)) drop-shadow(0 0 5px rgba(247,225,255,.95)) drop-shadow(0 0 10px rgba(205,160,218,.9)) drop-shadow(0 0 16px rgba(155,113,190,.62));animation:archiveCardExactGemTilt 920ms cubic-bezier(.22,.7,.25,1) both;}
@keyframes archiveCardExactGemTilt{
0%{transform:perspective(520px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateY(0) scale(1)}
18%{transform:perspective(520px) rotateX(5deg) rotateY(-8deg) rotateZ(-1.1deg) translateY(-1px) scale(1.035)}
36%{transform:perspective(520px) rotateX(-3deg) rotateY(6deg) rotateZ(1deg) translateY(0) scale(1.04)}
53%{transform:perspective(520px) rotateX(2deg) rotateY(-4deg) rotateZ(-.65deg) translateY(-.5px) scale(1.04)}
70%{transform:perspective(520px) rotateX(-1deg) rotateY(2.5deg) rotateZ(.35deg) translateY(0) scale(1.035)}
86%{transform:perspective(520px) rotateX(.5deg) rotateY(-1deg) rotateZ(-.15deg) translateY(0) scale(1.03)}
100%{transform:perspective(520px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateY(0) scale(1.03)}
}
@media(prefers-reduced-motion:reduce){header>div:first-child:hover .celestial-brand-icon,header>div:first-child:focus-within .celestial-brand-icon{animation:none;transform:none;}}

/* Scoped Celestial favicon sizing for map, skill tree, and overlay content. */
.panel .rune-icon, .worldcard .rune-icon, .tag .rune-icon {display:inline-block;width:1em;height:1em;max-width:1em;max-height:1em;object-fit:contain;vertical-align:-0.12em;flex:none;position:static;transform:none;animation:none;filter:drop-shadow(0 0 2px rgba(205,160,218,.35));}
.panel h2 .rune-icon{width:0.9em;height:0.9em;max-width:0.9em;max-height:0.9em;vertical-align:-0.08em;}
.worldcard .rune-icon{width:14px;height:14px;max-width:14px;max-height:14px;vertical-align:-2px;}
.tag .rune-icon{width:12px;height:12px;max-width:12px;max-height:12px;vertical-align:-1px;}

/* Global hard ceiling: prevents the Celestial favicon from expanding in any game panel, map, skill, or dynamically inserted content. */
img.rune-icon, img[src$="/Favicon.png"], img[src="assets/Favicon.png"] {
  display:inline-block !important; width:14px !important; height:14px !important;
  min-width:0 !important; min-height:0 !important; max-width:14px !important; max-height:14px !important;
  inline-size:14px !important; block-size:14px !important; max-inline-size:14px !important; max-block-size:14px !important;
  object-fit:contain !important; object-position:center !important; aspect-ratio:1/1;
  vertical-align:-2px; flex:0 0 14px !important; transform:none !important; animation:none !important;
}
.panel .tag img.rune-icon, .panel .tag img[src$="/Favicon.png"] {
  width:12px !important; height:12px !important; max-width:12px !important; max-height:12px !important;
  inline-size:12px !important; block-size:12px !important; max-inline-size:12px !important; max-block-size:12px !important; flex-basis:12px !important;
}
