/* 8h0: 起動の画面。index.html に直書きすると Tauri が style-src に nonce を足し、style 属性（<html style>・Word のプレビューなど）が止められるので外に置く */
#boot-splash{position:fixed;inset:0;z-index:2147481000;display:grid;place-items:center;background:#181818;contain:strict}
#boot-splash[hidden]{display:none}
.boot-mark{position:relative;display:grid;justify-items:center;will-change:transform}
/* 8h1: アイコンはクローの絵だけ（枠・影・板を置かない）。背景は窓の地の色そのまま。16×14 の点を 4 倍で描いてにじませない */
.boot-icon{width:64px;height:56px}
.boot-icon svg{width:64px;height:56px;display:block}
.boot-status{position:absolute;top:calc(100% + 28px);display:grid;justify-items:center;gap:10px;width:max-content;max-width:80vw;opacity:0;transition:opacity .4s ease-out}
#boot-splash[data-slow] .boot-status{opacity:1}
.boot-note{margin:0;font:400 12px/1.5 system-ui,-apple-system,"Segoe UI","Hiragino Sans","Yu Gothic UI","Noto Sans JP",sans-serif;color:rgba(236,236,236,.56);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:80vw}
.boot-track{width:88px;height:2px;border-radius:1px;background:rgba(255,255,255,.08);overflow:hidden}
.boot-fill{height:100%;background:rgba(236,236,236,.5);transform-origin:0 50%;transform:scaleX(.08);transition:transform .6s cubic-bezier(.22,1,.36,1)}
@keyframes boot-breathe{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.035);opacity:.82}}
#boot-splash[data-slow] .boot-icon{animation:boot-breathe 2.6s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){#boot-splash[data-slow] .boot-icon{animation:none}.boot-fill{transition:none}}
/* app-open-a-1129（本人 11/29 04:41 w-2d82eaf2「HPの会社概要とかtitanについてひらいたときみたいに」・05:12 w-063c3176「Aでいいけど真昼設定時はまひるがこんにちはしてうごいて」）：
   案A＝HP「TITAN Gamingについて」の組み立て→吸い込み。準備の間（JS より前）は CSS で組み立てる：体が下から点く 420ms → 足 +260・目 +360・口 +460（各200ms）
   →「Clauw」が切り抜きの下から +520（520ms）。真昼（絵のペット）の時は体の代わりに真昼が下から出て、台帳の「手を振る」段（pets.ts の waving 140/140/140/280ms）を2回、
   台帳と同じ 1 倍（1コマ 192×208・縮めない＝ドット絵をにじませない）で、「こんにちは」は透明度だけで出す（日本語は動かさない）。真昼の絵・顔は index.html の台本がこの端末の覚え（engine/bootLook.ts）から入れる。開く（吸い込み）は splash.ts */
@keyframes boot-rise{from{opacity:0;clip-path:inset(100% 0 0 0)}to{opacity:1;clip-path:inset(0 0 0 0)}}
@keyframes boot-in{from{opacity:0}to{opacity:1}}
@keyframes boot-out{from{opacity:1}to{opacity:0}}
@keyframes boot-word-in{from{opacity:0;clip-path:inset(0 0 100% 0);transform:translateY(46%)}to{opacity:1;clip-path:inset(-25% -5% -25% -5%);transform:none}}
@keyframes boot-wave{0%{background-position:0 0}20%{background-position:-192px 0}40%{background-position:-384px 0}60%,100%{background-position:-576px 0}}
@keyframes boot-hello{0%,100%{transform:rotate(0deg)}30%{transform:rotate(-7deg)}70%{transform:rotate(7deg)}}
.boot-icon path{animation:boot-in .2s ease-out both}
.boot-icon path:nth-child(1){animation:boot-rise .42s cubic-bezier(.16,1,.3,1) both}
.boot-icon path:nth-child(2){animation-delay:.36s}
.boot-icon path:nth-child(3){animation-delay:.46s}
.boot-icon path:nth-child(4){animation-delay:.26s}
.boot-word{margin:14px 0 0;padding-left:.32em;font:600 15px/1 system-ui,-apple-system,"Segoe UI","Hiragino Sans","Yu Gothic UI","Noto Sans JP",sans-serif;letter-spacing:.32em;color:rgba(236,236,236,.86);white-space:nowrap;animation:boot-word-in .52s cubic-bezier(.16,1,.3,1) .52s both}
#boot-splash[data-light] .boot-word{color:rgba(13,13,13,.8)}
.boot-chara{display:none;width:192px;height:208px;background-repeat:no-repeat;background-position:0 0;background-size:768px 208px}
#boot-splash[data-char] .boot-icon{display:none}
#boot-splash[data-char] .boot-chara{display:block;animation:boot-rise .42s cubic-bezier(.16,1,.3,1) both}
#boot-splash[data-char=wave] .boot-chara{animation:boot-rise .42s cubic-bezier(.16,1,.3,1) both,boot-wave .7s steps(1,end) .26s 2 both}
#boot-splash[data-char=face] .boot-chara{width:96px;height:96px;background-size:96px 96px;transform-origin:50% 100%;animation:boot-rise .42s cubic-bezier(.16,1,.3,1) both,boot-hello .5s ease-in-out .3s 2 both}
#boot-splash[data-char] .boot-word{padding-left:0;letter-spacing:.08em;font-weight:500;animation:boot-in .3s ease-out .42s both}
/* 吸い込みが始まったら（splash.ts が data-leaving を付ける）文字と右下の署名は地と一緒に消す */
#boot-splash[data-leaving] .boot-word{animation:boot-out .16s ease-out both}
#boot-splash[data-leaving] .boot-credit{animation:boot-out .3s ease both}
/* app-bubble-1201（本人 12/01 03:39 w-748c830272d7468243f77b75ed44b3ef「まひるがこんにちはっていうのはいいけどUIこだわれよ…ふきだしとか」・
   04:29 w-e77bc6a4962586714c31475d430ca6ec「おすすめで」＝吹き出し案2）：絵のペットの時の「こんにちは」を、ゲームの会話窓（紺の窓・白い点の縁・しっぽ・▼・点の字）にする。
   字は DotGothic16（SIL OFL 1.1・THIRD_PARTY_NOTICES.md）から「こんにちは！♪」だけを切り出した 1KB をデータURIで持つ（別に読みに行かない＝最初の1コマから出る）。
   窓は頭の真上。340ms から 120ms で上下に3段で開き、480ms から 360ms で字を左から6段で送り、840ms に ▼（＝880ms で出きる）。
   手振り（260＋700×2＝1660ms）より前に終わる＝組み立ての待ちは増えない。地・まわりは暗く／薄くしない。動きを減らす設定では窓も字も最初から一度に出す（字送りなし） */
@font-face{font-family:'ClauwHelloDot';src:url(data:font/woff2;base64,d09GMgABAAAAAAP4ABAAAAAACHgAAAOgAAEZmgAAAAAAAAAAAAAAAAAAAAAAAAAAGYFWG0gcIAZgAGQRCAqFBIQwATYCJAMSCxIABCAFg2AHIBckGBIb+wZRVDDWKb44sIlMfbAaDBGKiEstSvqifZH4H/GBwGKz1S9u8RoPX9P0/d29O1tSSmkNhdCbAOgJoB0gExRk6LDAVmTRXM4TC9mouEdVJkd8+QBvAI0rgawwrdCkdIwrEd7uR8piNVlgCFE8w9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53TBgyb8ABAAA=) format('woff2');font-display:block}
.boot-bubble{display:none;position:absolute;left:50%;bottom:calc(100% + 6px);margin-left:-66px;width:132px;box-sizing:border-box;padding:11px 0 10px 16px;background:#1b2550;box-shadow:0 -2px 0 #f4f1e8,0 2px 0 #f4f1e8,-2px 0 0 #f4f1e8,2px 0 0 #f4f1e8,inset 0 0 0 2px #1b2550,inset 0 0 0 4px rgba(244,241,232,.32);font:400 16px/1 'ClauwHelloDot',monospace;color:#fff;letter-spacing:0;white-space:nowrap;pointer-events:none;transform-origin:50% 100%;animation:boot-bubble-open .12s steps(3,end) .34s both}
.boot-bubble-text{display:block;width:96px;animation:boot-bubble-type .36s steps(6,end) .48s both}
.boot-bubble-more{position:absolute;right:9px;bottom:7px;width:6px;height:4px;animation:boot-in .01s linear .84s both}
.boot-bubble-tail{position:absolute;display:block;left:50%;margin-left:-4px;top:100%;width:10px;height:10px;shape-rendering:crispEdges}
#boot-splash[data-char] p.boot-word{display:none}
#boot-splash[data-char] .boot-bubble{display:block}
#boot-splash[data-char=face] .boot-bubble{bottom:calc(100% + 10px)}
#boot-splash[data-leaving] .boot-bubble{animation:boot-out .16s ease-out both}
@keyframes boot-bubble-open{0%{opacity:0;transform:scaleY(.2)}33%{opacity:1;transform:scaleY(.45)}66%{opacity:1;transform:scaleY(.75)}100%{opacity:1;transform:none}}
@keyframes boot-bubble-type{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
@media (prefers-reduced-motion:reduce){
  .boot-icon path,.boot-word,.boot-bubble,.boot-bubble-text,.boot-bubble-more,#boot-splash[data-leaving] .boot-bubble,.boot-chara,#boot-splash[data-char] .boot-chara,#boot-splash[data-char] .boot-word,#boot-splash[data-leaving] .boot-word,#boot-splash[data-leaving] .boot-credit{animation:none!important}
  #boot-splash[data-char=wave] .boot-chara{background-position:-192px 0}
}
/* ライトの時（index.html が前回の mado.theme を見て data-light を付ける）は、地の色も白にそろえる */
#boot-splash[data-light]{background:#fff}
#boot-splash[data-light] .boot-note{color:rgba(13,13,13,.56)}
#boot-splash[data-light] .boot-track{background:rgba(0,0,0,.08)}
#boot-splash[data-light] .boot-fill{background:rgba(13,13,13,.45)}

/* 署名（本人決定 2026-11-12・案1・ロゴB。1114：本人「ちょっと小さいし最初画像無いな」→大きく・濃く・ロゴは HTML に埋め込み）：右下に「Made by dorapon」＋公式ロゴ。#boot-splash の中に絶対配置で足すだけ＝中央のクローは動かさない。
   JS・待ち・動きは足さない（地と一緒に消える）。ロゴは index.html のデータURI（別に読みに行かない＝最初の1コマから出る）。暗い地は白・ライトは黒の1枚だけ表示。高さ 34px 未満にしない（線画がつぶれる） */
.boot-credit{position:absolute;right:24px;bottom:20px;display:flex;align-items:center;gap:14px;pointer-events:none}
.boot-credit-logo{display:block;flex:none;height:42px;width:auto}
.boot-credit-logo-black{display:none}
.boot-credit-text{font:400 15px/1 system-ui,-apple-system,"Segoe UI","Hiragino Sans","Yu Gothic UI","Noto Sans JP",sans-serif;letter-spacing:.04em;color:rgba(236,236,236,.78);white-space:nowrap}
@media (max-width:520px){
  .boot-credit{right:16px;bottom:max(16px,env(safe-area-inset-bottom));gap:10px}
  .boot-credit-text{font-size:13px}
  .boot-credit-logo{height:34px}
}
#boot-splash[data-light] .boot-credit-logo-white{display:none}
#boot-splash[data-light] .boot-credit-logo-black{display:block}
#boot-splash[data-light] .boot-credit-text{color:rgba(13,13,13,.74)}