/* Moon Ritual — 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: #070a14;
    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(10,14,22,.6); color: #ccd6ea;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; backdrop-filter: blur(6px);
    transition: background .2s, transform .15s;
}
.icon-btn:hover { background: rgba(32,42,60,.75); transform: scale(1.06); }

.go {
    position: fixed; left: 50%; bottom: 42px; transform: translateX(-50%);
    z-index: 12; padding: 13px 32px; border-radius: 24px; border: 0; cursor: pointer;
    background: linear-gradient(135deg, #c8d4f0, #8898c8); color: #0c1220;
    font-size: 14px; font-weight: 700; letter-spacing: .1em;
    box-shadow: 0 8px 24px rgba(140,160,220,.25);
    transition: transform .15s;
}
.go:hover { transform: translateX(-50%) translateY(-1px); }
.go.done { opacity: .35; cursor: default; }

#composer {
    position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%);
    z-index: 13; display: flex; gap: 8px; width: min(320px, 86vw);
}
#words {
    flex: 1; background: #0c101c; color: #e8ecf6;
    border: 1px solid rgba(160,180,230,.3); border-radius: 14px;
    padding: 11px 14px; font: 15px/1.3 Georgia, serif;
}
#words:focus { outline: none; border-color: rgba(200,215,255,.6); }
#seal {
    padding: 11px 16px; border-radius: 14px; border: 0; cursor: pointer;
    background: #c8d4f0; color: #0c1220; font-weight: 600;
}

#status {
    position: fixed; left: 12px; bottom: 12px; z-index: 8;
    font-size: 11.5px; letter-spacing: .04em; color: rgba(200,212,240,.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: #dce6ff;
    background: rgba(12,16,28,.85); padding: 7px 14px; border-radius: 20px;
    border: 1px solid rgba(160,185,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); }
