/* Silhouette Play - Chever3d */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; color: #f3f1ec; overflow: hidden;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
body.idle { cursor: none; }
#stage { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }
#cam { position: fixed; right: 16px; top: 16px; width: 220px; border-radius: 10px; opacity: 0; pointer-events: none;
  transform: scaleX(-1); border: 1px solid #ffffff40; }
#cam.show { opacity: .9; }
#hud { position: fixed; top: 3vh; left: 0; right: 0; text-align: center; font-size: clamp(28px, 5vw, 72px); font-weight: 800;
  letter-spacing: .02em; text-shadow: 0 4px 24px #000a; pointer-events: none; display: none; }
#toast { position: fixed; left: 50%; bottom: 7vh; transform: translate(-50%, 20px); padding: 10px 22px; border-radius: 999px;
  background: #000a; backdrop-filter: blur(8px); font-size: 18px; opacity: 0; transition: .35s; pointer-events: none; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

button { font: inherit; color: inherit; cursor: pointer; border: 0; }
.primary { background: #f3f1ec; color: #111; padding: 16px 34px; border-radius: 999px; font-size: 20px; font-weight: 700; }
.primary:disabled { opacity: .6; }
.ghost { background: #ffffff14; padding: 12px 22px; border-radius: 999px; border: 1px solid #ffffff30; }
.ghost:hover, .mode-card:hover { background: #ffffff26; }
.sm { padding: 8px 16px; font-size: 14px; }
.fab { position: fixed; left: 18px; bottom: 18px; background: #000a; border: 1px solid #ffffff30; padding: 10px 18px;
  border-radius: 999px; transition: opacity .4s; backdrop-filter: blur(8px); }
body.idle .fab { opacity: 0; }

#start, #menu { position: fixed; inset: 0; display: grid; place-items: center; background: #05060cd9; backdrop-filter: blur(10px); z-index: 5; }
#start[hidden], #menu[hidden], #panel[hidden] { display: none; }
.card { text-align: center; max-width: 560px; padding: 24px; display: grid; gap: 14px; justify-items: center; }
.brand { margin: 0; letter-spacing: .35em; text-transform: uppercase; font-size: 13px; opacity: .7; }
h1 { margin: 0; font-size: clamp(40px, 7vw, 76px); line-height: 1; font-weight: 800; }
.lead { margin: 0 0 10px; font-size: 19px; opacity: .8; }
.err { color: #ffb4a2; min-height: 1.2em; margin: 0; }
.keys { font-size: 13px; opacity: .5; margin: 0; }

.sheet { width: min(1100px, 94vw); max-height: 90vh; overflow: auto; padding: 22px 26px; border-radius: 22px; background: #10131ff2; border: 1px solid #ffffff1f; }
header { display: flex; align-items: center; gap: 10px; }
header h2 { margin: 0; font-size: 22px; }
.sp { flex: 1; }
#modes h3 { margin: 22px 0 10px; font-size: 13px; letter-spacing: .25em; text-transform: uppercase; opacity: .6; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.mode-card { background: #ffffff12; border: 1px solid #ffffff1f; border-radius: 16px; padding: 16px 12px; display: grid; gap: 8px; justify-items: center; }
.mode-card.active { outline: 2px solid #f3f1ec; }
.mode-card .ico { font-size: 34px; line-height: 1; }
.mode-card .nm { font-size: 15px; }

#panel { position: fixed; right: 16px; bottom: 16px; width: 320px; padding: 18px; border-radius: 18px; background: #10131ff2;
  border: 1px solid #ffffff1f; z-index: 6; display: grid; gap: 12px; font-size: 14px; }
#panel header { justify-content: space-between; }
#panel label { display: grid; gap: 6px; }
#panel label.row { display: flex; align-items: center; gap: 8px; }
#panel input[type=range] { width: 100%; }
#panel select, #panel input[type=number] { background: #ffffff14; color: inherit; border: 1px solid #ffffff30; border-radius: 8px; padding: 6px 8px; }
#panel option { color: #111; }
#stat { margin: 0; font-size: 12px; opacity: .65; font-variant-numeric: tabular-nums; }
