:root{
  --tl:#2aa198;
  --ink:#0a0608;
}
*{box-sizing:border-box}
/* .err / .preview に display を指定しているので、これが無いとブラウザ標準の
   [hidden]{display:none} に勝ってしまい、隠したはずのオーバーレイが出続ける。 */
[hidden]{display:none !important}
html,body{margin:0;height:100%;background:var(--ink);overflow:hidden;
  font:15px/1.6 "Noto Sans JP",-apple-system,"Hiragino Kaku Gothic ProN",Meiryo,sans-serif;
  color:#fff;-webkit-tap-highlight-color:transparent;word-break:auto-phrase}

#gl{position:fixed;inset:0;width:100%;height:100%;display:block;touch-action:none}

/* ---- 案内 ---- */
.hint{position:fixed;inset:0;display:grid;place-items:center;pointer-events:none;
  background:radial-gradient(ellipse at center,rgba(0,0,0,.04),rgba(10,6,8,.52));
  transition:opacity .45s}
.hint.off{opacity:0}
.hint-in{text-align:center;padding:0 24px;text-shadow:0 2px 14px rgba(0,0,0,.7)}
.hint-ttl{font-size:21px;font-weight:800;letter-spacing:.06em}
.hint-sub{margin-top:9px;font-size:13.5px;opacity:.92;line-height:1.8}

/* ---- いまのモード ---- */
.mode{position:fixed;left:0;right:0;top:calc(16px + env(safe-area-inset-top));
  display:flex;justify-content:center;pointer-events:none}
.mode span{padding:6px 15px;border-radius:999px;font-size:12.5px;font-weight:700;letter-spacing:.08em;
  background:rgba(8,6,10,.48);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}

/* ---- 操作 ---- */
.ui{position:fixed;left:0;right:0;bottom:0;padding:0 24px calc(22px + env(safe-area-inset-bottom));
  display:flex;align-items:center;justify-content:space-between;gap:18px}
.icon{width:46px;height:46px;flex:none;border:0;border-radius:50%;background:rgba(10,8,12,.5);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);display:grid;place-items:center;cursor:pointer}
.icon svg{width:23px;height:23px;fill:#fff}
.icon:active{transform:scale(.93)}

.shutter{width:74px;height:74px;border-radius:50%;border:4px solid rgba(255,255,255,.92);
  background:transparent;display:grid;place-items:center;cursor:pointer;padding:0}
.shutter span{width:56px;height:56px;border-radius:50%;background:#fff;transition:all .18s}
.shutter.rec span{width:28px;height:28px;border-radius:8px;background:#e04444}
.shutter:active span{transform:scale(.92)}

/* ---- プレビュー ---- */
.preview{position:fixed;inset:0;background:rgba(8,5,7,.94);display:grid;place-items:center;z-index:30;padding:20px}
.preview-box{width:100%;max-width:440px;text-align:center}
.preview img,.preview video{width:100%;border-radius:12px;background:#000}
.preview-btns{margin-top:14px;display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.btn{display:inline-block;padding:11px 24px;border-radius:9px;border:0;cursor:pointer;
  background:var(--tl);color:#fff;font:inherit;font-weight:700;text-decoration:none}
.btn-ghost{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.4)}

.err{position:fixed;inset:0;display:grid;place-items:center;padding:30px;text-align:center;
  background:var(--ink);z-index:40;font-size:14.5px;line-height:1.9}

/* 輪郭／人のかたちの切り替えボタン。アイコンの代わりに1文字を入れている */
.icon-txt{font:700 17px/1 "Hiragino Kaku Gothic ProN","Yu Gothic UI",Meiryo,sans-serif;color:#fff}
.icon-txt.on{background:rgba(255,120,40,.85);border-color:rgba(255,190,140,.9)}
