/* Pocket Moon — styles */
:root {
    --gold: #e8c46a;
    --ink: #e8ecf6;
    --card: #131a2c;
    --card2: #1c2540;
}
* { 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: #060810;
    color: var(--ink);
    -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; }
#fx { position: fixed; pointer-events: none; z-index: 5; }

#moonG { cursor: pointer; }
#glow { transition: opacity .8s; }

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

#phaseName {
    position: fixed; top: 430px; left: 50%; transform: translateX(-50%);
    z-index: 7; font-size: 15px; letter-spacing: .24em; font-weight: 600;
    color: #e8ecf6; text-shadow: 0 0 14px rgba(190,205,255,.35);
    text-transform: uppercase; pointer-events: none; text-align: center;
}
#status {
    position: fixed; left: 12px; bottom: 12px; z-index: 8;
    font-size: 11.5px; letter-spacing: .04em; color: rgba(205,215,240,.68);
    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: #e8ecf6;
    background: rgba(14,18,34,.82); padding: 7px 14px; border-radius: 20px;
    border: 1px solid rgba(160,180,235,.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); }

/* info card */
.icard {
    position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%);
    z-index: 12; width: min(310px, 88vw);
    background: rgba(15,21,38,.93); border: 1px solid rgba(160,180,235,.28);
    border-radius: 16px; padding: 16px 20px; text-align: center;
    backdrop-filter: blur(8px); box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.iphase { font-size: 16px; font-weight: 600; letter-spacing: .12em; color: #ffe9b0; margin-bottom: 8px; }
.idetail { font-size: 12.5px; color: rgba(215,225,248,.85); line-height: 1.55; }
.inext { margin-top: 8px; font-size: 11px; color: rgba(190,205,240,.6); }

/* panel */
#panel {
    position: fixed; inset: 0; z-index: 20;
    background: rgba(4,6,12,.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: var(--card); border-radius: 18px 18px 0 0;
    border: 1px solid rgba(160,180,235,.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;
}
.optCol { display: flex; flex-direction: column; gap: 7px; }
.opt {
    border: 1px solid rgba(160,180,235,.18); background: var(--card2);
    color: var(--ink); border-radius: 10px; padding: 10px 14px;
    font-size: 13px; cursor: pointer; transition: all .18s;
    display: flex; align-items: center; gap: 10px; text-align: left;
}
.opt:hover { border-color: rgba(180,200,255,.5); }
.opt.sel { border-color: var(--gold); background: rgba(232,196,106,.13); }
.opt .dot { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; }
.opt .d { font-size: 11px; color: rgba(200,210,240,.6); display: block; margin-top: 2px; }
