/* Tiny Shrine — styles */
:root { --gold: #e8c46a; }
* { 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: #100c14;
    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; }

.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(16,12,20,.6); color: #d8d0e0;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; backdrop-filter: blur(6px);
    transition: background .2s, transform .15s;
}
.icon-btn:hover { background: rgba(50,40,60,.75); transform: scale(1.06); }
.icon-btn.sm { width: 28px; height: 28px; font-size: 17px; line-height: 1; }

#status {
    position: fixed; left: 12px; bottom: 12px; z-index: 8;
    font-size: 11.5px; letter-spacing: .04em; color: rgba(220,210,235,.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: #ffe9c8;
    background: rgba(20,14,24,.85); padding: 7px 14px; border-radius: 20px;
    border: 1px solid rgba(232,196,106,.28); 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(4,6,10,.55); backdrop-filter: blur(3px);
    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: 420px; max-height: 74vh; overflow-y: auto;
    background: #171220; border-radius: 18px 18px 0 0;
    border: 1px solid rgba(190,160,120,.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;
}
.grp { margin-bottom: 16px; }
.grp h4 {
    font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
    color: rgba(232,196,106,.7); margin-bottom: 8px;
}
.ogrid { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
    width: 52px; height: 52px; border-radius: 12px;
    border: 1.5px solid rgba(200,190,230,.16); background: #221a2e;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 22px; position: relative;
    transition: border-color .2s, transform .15s;
}
.opt:hover { border-color: rgba(232,196,106,.55); transform: scale(1.06); }
.opt.sel { border-color: var(--gold); background: #2c2238; }
.opt.sel::after {
    content: ''; position: absolute; top: 4px; right: 4px;
    width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
}
.opt canvas { pointer-events: none; }
