/* Sacred Dangle — styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #0c0b11;
    color: #e8ecf6;
    -webkit-user-select: none; user-select: none;
    -webkit-tap-highlight-color: transparent;
}
#app { position: relative; width: 100vw; height: 100vh; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; }

.topbtns { position: fixed; top: 12px; right: 12px; z-index: 10; display: flex; gap: 8px; }
.icon-btn {
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(14,12,18,.6); color: #d5cfe0;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; backdrop-filter: blur(6px);
    transition: background .2s, transform .15s;
}
.icon-btn:hover { background: rgba(52,44,70,.75); transform: scale(1.06); }
.icon-btn.sm { width: 28px; height: 28px; font-size: 17px; line-height: 1; }
#trad { color: #e8d8a0; }

#status {
    position: fixed; left: 12px; bottom: 12px; z-index: 8;
    font-size: 11.5px; letter-spacing: .04em; color: rgba(212,205,228,.55);
    text-shadow: 0 1px 3px rgba(0,0,0,.7); pointer-events: none;
}
#hint {
    position: fixed; top: 14px; left: 50%; transform: translate(-50%, -8px);
    z-index: 9; font-size: 12.5px; color: #e0d7f0;
    background: rgba(22,17,30,.85); padding: 7px 14px; border-radius: 20px;
    border: 1px solid rgba(200,170,240,.3); opacity: 0; pointer-events: none;
    transition: opacity .4s, transform .4s; max-width: 88vw; text-align: center;
}
#hint.show { opacity: 1; transform: translate(-50%, 0); }

#panel {
    position: fixed; inset: 0; z-index: 20;
    background: rgba(5,4,8,.65); backdrop-filter: blur(4px);
    display: flex; align-items: flex-end; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity .25s;
}
#panel.open { opacity: 1; pointer-events: auto; }
.sheet {
    width: 100%; max-width: 400px; max-height: 70vh; overflow-y: auto;
    background: #15101f; border-radius: 18px 18px 0 0;
    border: 1px solid rgba(200,170,240,.16); border-bottom: 0;
    padding: 14px 18px 26px;
    transform: translateY(30px); transition: transform .28s;
}
#panel.open .sheet { transform: translateY(0); }
.sheet-head {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 15px; font-weight: 600; margin-bottom: 12px;
}
.trad-row {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 10px 12px; margin-bottom: 4px; border-radius: 12px;
    background: rgba(200,170,240,.05); border: 1px solid transparent;
    color: #ddd4ec; cursor: pointer; text-align: left;
    font-size: 13.5px; transition: background .15s;
}
.trad-row:hover { background: rgba(200,170,240,.12); }
.trad-row.on { border-color: rgba(200,170,240,.5); background: rgba(200,170,240,.14); }
.trad-row .g { font-family: Georgia, serif; font-size: 19px; width: 28px; text-align: center; }
.trad-row .o { margin-left: auto; font-size: 11px; opacity: .55; }
