/* ギルドの研究室 — 来た人のページの見た目（DEC-WEB-012・案 11 を採用）。サムネイルと同じ「ギルドの掲示板」。木の板・貼り紙・赤いピン・判子。
   クリアコアに要素が取り込まれて、オリモンが生まれる場面つき（マスター 2026-11-19） */
:root { --ink:#2b170c; --paper:#2a160c; --card:#efdcb2; --line:#5a3418; --accent:#c8281e; --warn:#9c1c14; }
html { background:#1d0f08; }
body { min-height:100vh; background:transparent; color:#f6e7c6; padding-top:0;
  font-family:"Hiragino Sans","Yu Gothic UI","Meiryo",sans-serif; }
body::before { content:""; position:fixed; inset:0; z-index:-1;
  background:linear-gradient(#1d0f0855,#1d0f08cc),url(/art/guild_board.webp) center/cover no-repeat; }
main { max-width:40rem; overflow-x:clip; padding:0 .5rem; }

/* 見出し = 横長の貼り紙 */
.hero { margin:1.2rem -.4rem 1rem; padding:2.1rem 2rem 1.9rem; text-align:center; color:var(--ink); position:relative;
  background:url(/art/guild_paper_wide.webp) center/100% 100% no-repeat; filter:drop-shadow(0 10px 14px #000a); transform:rotate(-.8deg); }
.hero::before, .hero::after { content:""; position:absolute; top:1rem; width:22px; height:22px; border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#ff8d80 0 18%,#c8281e 40%,#6d0f0a 100%); box-shadow:2px 4px 4px #0008; }
.hero::before { left:1.5rem; } .hero::after { right:1.5rem; }
.kicker { color:#7a2a10; letter-spacing:.18em; }
h1 { font-size:2.5rem; font-weight:900; margin:.1rem 0; letter-spacing:.04em; color:#2b170c; }
.lead { color:#2b170c; font-weight:bold; }
.status { display:block; text-align:center; color:#ffe9a8; background:#1d0f08cc; border:2px solid #b98a3e; border-radius:8px; padding:.5rem .8rem; }
.status.bad { color:#ffc9b8; }

/* 本文 = 縦長の貼り紙（依頼書） */
.card { border:0; border-radius:0; color:var(--ink); padding:2.6rem 2rem 2.4rem; margin:1.2rem -.4rem 1.6rem; position:relative;
  background:url(/art/guild_paper.webp) center/100% 100% no-repeat; filter:drop-shadow(0 12px 16px #000b); }
.card::before { content:""; position:absolute; top:1rem; left:50%; margin-left:-11px; width:22px; height:22px; border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#ff8d80 0 18%,#c8281e 40%,#6d0f0a 100%); box-shadow:2px 4px 4px #0008; }
.form::after { content:"依頼書"; position:absolute; right:1.6rem; top:2.2rem; border:4px solid var(--accent); color:var(--accent); font-weight:900;
  font-size:1.2rem; letter-spacing:.2em; padding:.1rem .7rem .1rem .9rem; border-radius:8px; transform:rotate(8deg); }
.step { border-top:3px dashed #8a5a2c; padding-top:.8rem; margin-top:1.2rem; }
.step.pass { border-top:0; margin-top:0; padding-right:6.5rem; }
.step h2 { font-size:1.3rem; font-weight:900; color:#2b170c; }
.step[data-step] h2::before { content:counter(step); display:inline-block; min-width:1.9rem; height:1.9rem; line-height:1.9rem; text-align:center;
  background:var(--accent); color:#fff6e0; border-radius:6px; margin-right:.6rem; transform:rotate(-4deg); }
label { color:#2b170c; }
select, textarea, input[type=text] { background:#fff8e6; border:2px solid #5a3418; border-radius:6px; color:#2b170c; }
select:focus, textarea:focus, input[type=text]:focus { outline:3px solid #c8281e; outline-offset:1px; }
.notice { font-weight:bold; }
.send { text-align:center; }
button { background:var(--accent); border:3px solid #6d0f0a; border-radius:10px; font-size:1.2rem; font-weight:900; letter-spacing:.08em;
  padding:.6rem 2.2rem; box-shadow:0 6px 0 #6d0f0a,0 12px 14px #0006; }
button:hover:not(:disabled) { transform:translateY(2px); box-shadow:0 4px 0 #6d0f0a,0 8px 10px #0006; }
button:disabled { box-shadow:0 6px 0 #2b2a26; }
.card a { color:#8f1810; }
.mine, .note, .again { background:#1d0f08cc; border:2px solid #b98a3e; border-radius:8px; padding:.5rem 1rem; }
.mine h2 { margin-top:.2rem; color:#ffe9a8; }
.mine a, .again a { color:#ffd98a; }

/* 待つ・できたページ */
.result-card { padding-top:2.6rem; }
body:not(.born) .result-card { padding-bottom:1.6rem; }
body[data-status="done"] #state { font-size:1.5rem; font-weight:900; color:#ffe9a8; letter-spacing:.1em; }
#hint { text-align:center; font-weight:bold; margin:0; }
.report { text-align:center; font-size:1.3rem; font-weight:900; color:#2b170c; border-bottom:3px dashed #8a5a2c; padding-bottom:.4rem; }
.report::before { content:"報告"; display:inline-block; border:3px solid var(--accent); color:var(--accent); border-radius:6px; padding:0 .5rem; margin-right:.6rem; transform:rotate(-6deg); font-size:1rem; }
.oname { text-align:center; margin-top:1rem; }
.oname .olabel { display:inline-block; background:#2b170c; color:#ffe9a8; padding:0 .8rem; border-radius:999px; }
.oname b { display:block; font-size:2.3rem; font-weight:900; color:var(--accent); margin:.1rem 0; letter-spacing:.06em; }
.odesc { border-left:6px solid var(--accent); padding-left:.9rem; font-weight:bold; }
.ospec { border-top:3px dashed #8a5a2c; padding-top:.6rem; font-weight:bold; }
.save { text-align:center; }
.save a { border:3px solid #5a3418; border-radius:10px; background:#fff8e6; color:#2b170c; margin:.3rem; }
.replay { display:inline-block; background:#fff8e6; color:#2b170c; border:3px solid #5a3418; box-shadow:none; font-size:1rem; letter-spacing:0; padding:.3rem 1rem; margin:.3rem; }
.replay:hover:not(:disabled) { transform:none; box-shadow:none; }

/* ── オリモンが生まれる空間（ギルドの仕事場）──
   紙の上ではなく、仕事場の台座の上でクリアコアが素材を取り込み、オリモンが生まれる（マスター 2026-11-19）
   2026-11-24 演出の直し（回答 E-1 ①〜⑤・E-2 A）: ①言葉の札が光の粒にほどけてコアへ ②生まれる前の溜め ③光のシルエットから色がつく
   ④進み具合の判子 ⑤生まれた後の息づかい。コアは透明のまま・光の強さだけ変わる。画面ぜんたいは光らせない・放射の線は使わない */
.scene { position:relative; aspect-ratio:4/3; margin:1rem -.4rem 1.2rem; border-radius:14px; overflow:hidden; container-type:size;
  background:#120a06 url(/art/guild_hall.webp) center/cover no-repeat; box-shadow:0 0 0 4px #b98a3e,0 0 0 9px #2b170c,0 16px 22px #000c; }
.stage { display:block; position:absolute; inset:0; }
.stage .dim { position:absolute; inset:0; background:radial-gradient(circle at 50% 52%,transparent 0,transparent 14%,#0a0503 62%); opacity:0; }
.stage .ring { position:absolute; left:50%; top:80.7%; width:52cqw; height:7cqw; translate:-50% -50%; border-radius:50%;
  border:.5cqw solid #fff3c0; box-shadow:0 0 2cqw .6cqw #ffe27a,inset 0 0 1.6cqw #ffe27a; opacity:0; }
/* 2026-11-25 マスター「クリアコアは手に握れるおにぎりくらい … 少し小さく」「工房が狭い」— 広い工房の絵に替え、コアを半分にして台座の上に下げた */
.stage .core { position:absolute; left:50%; top:52%; width:12cqw; translate:-50% -50%; filter:drop-shadow(0 1.2cqw 1.6cqw #000a); animation:oc-float 3.2s ease-in-out infinite; }
.stage .glow { position:absolute; left:50%; top:52%; width:34cqw; aspect-ratio:1; translate:-50% -50%; border-radius:50%;
  background:radial-gradient(circle,#fffbe0 0,#ffe27acc 26%,#7fe8d655 50%,transparent 70%); opacity:0; }
.stage .mote { position:absolute; left:50%; top:52%; width:1.1cqw; height:1.1cqw; translate:-50% -50%; border-radius:50%;
  background:#fff6c9; box-shadow:0 0 1.2cqw .4cqw #ffe27a; opacity:0; }
/* テイマーのホロ（DEC-LORE-028）: 台座の左の床に立つ。札より後ろ。生まれた後は、手前の左下に小さく出る */
.stage .holo { position:absolute; left:3%; bottom:13%; height:38cqw; width:auto; filter:drop-shadow(0 0 .4cqw #fffc) drop-shadow(0 0 1.8cqw #fff8) drop-shadow(0 1cqw 1.2cqw #000a); }
.birth .stage .holo { left:1.5%; bottom:9%; height:29cqw; z-index:3; }
.birth.play .stage .holo { animation:oc-fadein .8s ease-out 6.6s both; }
.holo-sorry { display:block; height:11rem; width:auto; margin:.4rem auto 0; border:0; border-radius:0; box-shadow:none; background:none; }
/* 受付の場面（依頼書のページ）: 仕事場にホロが立ち、下に RPG の文の窓。話しかけると依頼書が出る */
.counter { display:flex; flex-direction:column; align-items:center; justify-content:flex-end; }
/* ホロは上半身だけを大きく見せる（マスター 2026-11-25「上半身くらいを見せる感じにして、そこにいる感じを出したい」）— 絵を枠の 1.9 倍の高さにして、下を枠で切る */
.counter .bust { flex:1 1 0; min-height:0; align-self:stretch; overflow:hidden; display:flex; justify-content:center; align-items:flex-start; padding-top:3%; }
/* 絵の所の高さは窓の高さで変えない（「つづきを聞く」のある最初の窓だけ高く、顔が小さくなっていた — 2026-11-28 bust_rules.py） */
@media (min-width:521px) { .counter .bust { flex:none; height:62cqh; } }
.counter .holo { flex:none; height:245%; width:auto; max-width:none; border:0; border-radius:0; box-shadow:none; background:none;
  filter:drop-shadow(0 0 .5cqw #fffc) drop-shadow(0 0 2.4cqw #fff9); }   /* まわりの白い光で背景から浮かせる（マスター 2026-11-25）。縦の揺れはやめた（マスター 2026-11-28「ヒバナは縦に揺れなくていい」） */
.talk { align-self:stretch; margin:.5rem; padding:.7rem 1rem .8rem; color:#fff8e6; background:#120a06e6; border:3px solid #b98a3e; border-radius:10px; box-shadow:0 0 0 2px #2b170c; text-align:left; }
.talk .who { display:inline-block; margin:0 0 .35rem; padding:.05rem .8rem; color:#1a0f08; background:#f0c46a; border-radius:6px; font-weight:900; font-size:1rem; letter-spacing:.08em; }
.talk .line { min-height:3.4em; cursor:pointer; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
/* 仕事場の場面の下のせりふの窓（マスター 2026-11-28「生きた人間が話している感じ」）。生まれる場面にはテイマーを出さない */
#talkbox .talk { margin:.5rem 0 0; }
.talk p { margin:0; font-weight:bold; font-size:1.05rem; line-height:1.7; }
.talk button { display:block; margin:.6rem 0 0 auto; }
.talk button::before { content:"▶ "; }
body[data-talk="give"] .talk #talk { display:none; }
/* 依頼書へは、自動で動かさず ボタンで（マスター 2026-11-28「自動でスクロールするのはびっくりするし、まだ読み切れていないかもしれない」） */
body[data-talk="meet"] .talk #toform { display:none; }
body[data-talk="meet"] #form { display:none; }
body[data-talk="give"] #form { animation:oc-info .7s ease-out both; }
.stage .chips { position:absolute; inset:0; }
/* 札 = 依頼書の切れはし。コアのまわりの円の上（角度 --a・半径 26cqw）に置き、字はまっすぐのまま */
.stage .chip { position:absolute; left:50%; top:52%; translate:-50% -50%; white-space:nowrap; font-weight:900; color:#2b170c; font-size:clamp(.8rem,3.2cqw,1.1rem);
  background:#fff8e6; border:.4cqw solid #5a3418; border-radius:.6cqw; padding:.12em .7em .12em 1.5em; box-shadow:0 .6cqw 0 #5a3418;
  transform:rotate(var(--a)) translateX(26cqw) rotate(calc(var(--a) * -1)); }
.stage .chip::before { content:""; position:absolute; left:.5em; top:50%; width:.5em; height:.5em; translate:0 -50%; border-radius:50%; background:#5a3418; }
.stage::after { position:absolute; left:0; right:0; bottom:0; text-align:center; font-weight:900; font-size:clamp(.8rem,3.4cqw,1rem); color:#ffe9a8; background:#120a06cc; padding:.3rem .5rem; }
@keyframes oc-float { 50% { transform:translateY(-1.6cqw); } }
@keyframes oc-orbit { 0% { transform:rotate(var(--a)) translateX(26cqw) rotate(calc(var(--a) * -1)); }
  100% { transform:rotate(calc(var(--a) + 360deg)) translateX(26cqw) rotate(calc(var(--a) * -1 - 360deg)); } }
/* 札がうずを巻いてコアへ。途中で紙が光の粒にほどける（紙の色・枠・字が消えて、光る丸になる） */
@keyframes oc-absorb {
  0% { transform:rotate(var(--a)) translateX(26cqw) rotate(calc(var(--a) * -1)) scale(1); opacity:1; background:#fff8e6; border-color:#5a3418; color:#2b170c; border-radius:.6cqw; box-shadow:0 .6cqw 0 #5a3418; }
  38% { transform:rotate(calc(var(--a) + 80deg)) translateX(21cqw) rotate(calc(var(--a) * -1 - 80deg)) scale(1); opacity:1; background:#fff8e6; border-color:#5a3418; color:#2b170c; border-radius:.6cqw; box-shadow:0 .6cqw 0 #5a3418; }
  58% { transform:rotate(calc(var(--a) + 150deg)) translateX(14cqw) rotate(calc(var(--a) * -1 - 150deg)) scale(.5); opacity:1; background:#fff6c9; border-color:transparent; color:transparent; border-radius:3cqw; box-shadow:0 0 2.4cqw 1cqw #ffe27a; }
  100% { transform:rotate(calc(var(--a) + 290deg)) translateX(0) rotate(calc(var(--a) * -1 - 290deg)) scale(.08); opacity:0; background:#fff6c9; border-color:transparent; color:transparent; border-radius:3cqw; box-shadow:0 0 2.4cqw 1cqw #ffe27a; } }
@keyframes oc-mote { 0% { transform:rotate(var(--a)) translateX(34cqw) scale(1); opacity:0; } 20% { opacity:1; } 80% { opacity:1; }
  100% { transform:rotate(calc(var(--a) + 200deg)) translateX(0) scale(.3); opacity:0; } }
@keyframes oc-pulse { 0%,100% { opacity:.3; transform:scale(.8); } 50% { opacity:.95; transform:scale(1.05); } }
@keyframes oc-take { 0%,100% { transform:translateY(0) scale(1); } 30% { transform:translateY(-1cqw) scale(1.07); } 60% { transform:translateY(-1.4cqw) scale(1); } }
@keyframes oc-shake { 0%,100% { transform:translate(0,0) rotate(0); } 20% { transform:translate(-.6cqw,.3cqw) rotate(-3deg); } 40% { transform:translate(.6cqw,-.3cqw) rotate(3deg); } 60% { transform:translate(-.5cqw,-.3cqw) rotate(-2deg); } 80% { transform:translate(.5cqw,.3cqw) rotate(2deg); } }
/* 順番待ち: 素材の札が、コアのまわりをゆっくり回っている */
body[data-status="queued"] .chip { animation:oc-orbit 60s linear infinite; }
/* 作っている: 札が 1 枚ずつ、光の粒にほどけてコアに吸い込まれる（くり返し）。吸い込むたびにコアが脈を打つ */
body[data-status="working"] .chip { animation:oc-absorb 3.2s ease-in infinite; animation-delay:calc(var(--i) * .46s); }
body[data-status="working"] .mote { animation:oc-mote 2.6s ease-in infinite; animation-delay:calc(var(--i) * .22s); }
body[data-status="working"] .glow { animation:oc-pulse 1.6s ease-in-out infinite; }
body[data-status="working"] .core { animation:oc-take 1.6s ease-in-out infinite; }
/* 確認中: 札はぜんぶ入って、コアが光ってふるえている（オリモンの姿は、テイマーの OK が出るまで見せない） */
body[data-status="review"] .chip { display:none; }
body[data-status="review"] .glow { animation:oc-pulse 1.8s ease-in-out infinite; }
body[data-status="review"] .core { animation:oc-shake 1.8s ease-in-out infinite; }

/* 完成（7 秒）: 札が光にほどけて吸い込まれる（〜2.4 秒）→ 溜め: 部屋が少し暗くなり、光の粒がコアへ集まり、ふるえが速くなる（〜4.0 秒）
   → ひと呼吸の静けさ（〜4.4 秒）→ 台座の輪が光って、やわらかい光の輪が 1 つ広がる → コアと入れ替わりに光のシルエットがふくらむ（〜5.2 秒）
   → 下から上へ色がつく（〜6.5 秒）→ 小さな光の粒がふわっと散る → ゆっくり息をする */
.birth { position:absolute; inset:0; }
.birth .body { position:absolute; left:9%; top:4%; width:82%; height:82%; transform-origin:50% 92%; }
.birth .body img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; border:0; border-radius:0; box-shadow:none; background:none; }
.birth img.result { mix-blend-mode:multiply; }
.birth img.sil { filter:brightness(0) invert(1) drop-shadow(0 0 1.6cqw #fff3c0); opacity:0; }
.birth .shadow { position:absolute; left:50%; top:83%; width:46cqw; height:5cqw; translate:-50% -50%; border-radius:50%;
  background:radial-gradient(ellipse,#2b170c66 0,#2b170c33 45%,transparent 70%); display:none; }
.birth.cut .shadow { display:block; }
.birth .spark { position:absolute; left:50%; top:50%; width:1.2cqw; height:1.2cqw; translate:-50% -50%; border-radius:50%;
  background:#fffdf0; box-shadow:0 0 1.4cqw .5cqw #ffe9a8; opacity:0; }
.birth .chip { opacity:0; }
.birth .glow { top:48%; width:104cqw; opacity:1; background:radial-gradient(circle,#fff 0,#fff 34%,#fffbe6e6 44%,#ffe9a866 56%,transparent 68%); }
.birth .core { top:52%; width:12cqw; opacity:0; animation:none; }
.birth.play .chip { animation:oc-absorb 1.3s ease-in both; animation-delay:calc(var(--i) * .18s); }
.birth.play .mote { animation:oc-mote 1.3s ease-in both; animation-delay:calc(2.4s + var(--i) * .1s); }
.birth.play .dim { animation:oc-dim 7s ease-in-out both; }
.birth.play .ring { animation:oc-ring 7s ease-out both; }
.birth.play .core { animation:oc-core 7s ease-in-out both; }
.birth.play .glow { animation:oc-light 7s ease-out both; }
.birth.play img.result { animation:oc-emerge 1.3s cubic-bezier(.2,1.3,.4,1) 4.4s both; }
.birth.play .spark { animation:oc-spark 1.3s ease-out both; animation-delay:calc(6.3s + var(--i) * .04s); }
/* 報告書（名前の案・説明文）は、生まれる演出が終わってから出す（マスター 2026-11-28「名前や図鑑説明は生まれたアニメーションがおわってから」— 火花が消えるのが 7.6 秒） */
body.born .info { animation:oc-info .8s ease-out 7.8s both; }
/* 生まれたら、進み具合の判子は 最後の判子を押した後に 自然に消える（マスター 2026-11-28） */
body.born #stamps { overflow:hidden; animation:oc-out .9s ease-in 7.6s both; }
@keyframes oc-out { 0% { opacity:1; max-height:12rem; } 100% { opacity:0; max-height:0; } }
/* PC で横に場所がある時: 生まれた後に場面を左へゆっくり寄せ、右に報告書（マスター 2026-11-28）。場面の幅は これまでと同じ */
@media (min-width:1240px) {
  body.born main { overflow-x:visible; }
  .bornrow { position:relative; width:1180px; left:50%; translate:-50% 0; display:grid; grid-template-columns:704px 1fr; gap:28px; align-items:start; }
  .bornrow #scene { margin:1rem 0 1.2rem; }
  .bornrow .info.side { margin:1rem 0 0; text-align:left; }
  .bornrow.play #scene { animation:oc-slide 1.3s cubic-bezier(.45,0,.2,1) 7.8s both; }
  .bornrow.play .info.side { animation:oc-info .9s ease-out 9.1s both; }
}
@keyframes oc-slide { 0% { transform:translateX(238px); } 100% { transform:none; } }
/* 地が透明の絵（切り抜けたとき）: かけ合わせをやめて、そのまま仕事場に立たせる。
   光は、オリモンが出た後も後ろに残す（マスター 2026-11-20「後ろに光があったほうが背景がじゃまにならないね」） */
.birth.cut img.result { mix-blend-mode:normal; filter:drop-shadow(0 1.6cqw 1.4cqw #000a); }
.birth.cut .glow { opacity:1; width:106cqw; background:radial-gradient(circle,#fff 0,#fffefa 22%,#fffbe8f2 36%,#fff3c8b3 50%,#ffe9a84d 60%,transparent 70%); }
.birth.cut.play img.sil { animation:oc-sil 7s ease-out both; }
.birth.cut.play img.result { animation:oc-color 7s linear both; }
.birth.cut.play .shadow { animation:oc-fadein 1s ease-out 5s both, oc-shadow 4s ease-in-out 7.2s infinite; }
.birth.cut.play .body { animation:oc-breathe 4s ease-in-out 7.2s infinite; }
@keyframes oc-dim { 0%,32% { opacity:0; } 54% { opacity:.72; } 63% { opacity:.72; } 76%,100% { opacity:0; } }
@keyframes oc-ring { 0%,58% { opacity:0; transform:scale(1); } 61% { opacity:1; transform:scale(1); } 64% { opacity:1; transform:scale(1.04); } 84% { opacity:0; transform:scale(2.7); } 100% { opacity:0; transform:scale(2.7); } }
@keyframes oc-core {
  0% { opacity:1; transform:scale(1); } 6% { opacity:1; transform:scale(1.07); } 12% { transform:scale(1); } 18% { transform:scale(1.07); } 24% { transform:scale(1); } 30% { transform:scale(1.07); } 34% { opacity:1; transform:scale(1); }
  38% { transform:translate(-.5cqw,.3cqw) rotate(-3deg); } 42% { transform:translate(.5cqw,-.3cqw) rotate(3deg); } 45% { transform:translate(-.6cqw,-.3cqw) rotate(-4deg); } 48% { transform:translate(.6cqw,.3cqw) rotate(4deg); }
  50% { transform:translate(-.7cqw,.3cqw) rotate(-5deg) scale(1.04); } 52% { transform:translate(.7cqw,-.3cqw) rotate(5deg) scale(1.06); } 54% { transform:translate(-.7cqw,-.3cqw) rotate(-5deg) scale(1.08); } 56% { transform:translate(.7cqw,.3cqw) rotate(5deg) scale(1.1); }
  /* ひと呼吸の静けさ（4.0〜4.4 秒）。その後、その場で透明になる（小さくしない・動かさない — マスター 2026-11-19） */
  57.5% { opacity:1; transform:scale(1.1); } 63% { opacity:1; transform:scale(1.1); } 68% { opacity:0; transform:scale(1.12); } 100% { opacity:0; transform:scale(1.12); } }
@keyframes oc-light { 0% { opacity:.3; transform:scale(.3); } 17% { opacity:.55; transform:scale(.34); } 34% { opacity:.4; transform:scale(.3); } 57% { opacity:1; transform:scale(.13); } 63% { opacity:1; transform:scale(.13); } 76% { opacity:1; transform:scale(1.06); } 100% { opacity:1; transform:scale(1); } }
@keyframes oc-sil { 0%,62.5% { opacity:0; transform:scale(.25); } 63.5% { opacity:1; transform:scale(.25); } 72% { opacity:1; transform:scale(1.05); } 75% { opacity:1; transform:scale(1); } 93% { opacity:1; transform:scale(1); } 100% { opacity:0; transform:scale(1); } }
@keyframes oc-color { 0%,75% { clip-path:inset(100% 0 0 0); } 93% { clip-path:inset(0 0 0 0); } 100% { clip-path:inset(0 0 0 0); } }
@keyframes oc-spark { 0% { transform:rotate(var(--a)) translateX(10cqw) scale(.4); opacity:0; } 18% { opacity:1; } 100% { transform:rotate(var(--a)) translateX(36cqw) scale(.2); opacity:0; } }
@keyframes oc-breathe { 0%,100% { transform:scale(1,1); } 50% { transform:scale(1.006,1.016); } }
@keyframes oc-shadow { 0%,100% { transform:scale(1); } 50% { transform:scale(1.04,1); } }
@keyframes oc-fadein { 0% { opacity:0; } 100% { opacity:1; } }
@keyframes oc-emerge { 0% { opacity:0; transform:scale(.2) translateY(-10cqh); } 100% { opacity:1; transform:none; } }
@keyframes oc-info { 0% { opacity:0; transform:translateY(12px); } 100% { opacity:1; transform:none; } }

/* 進み具合の判子: 受け取り → 取り込み → 誕生 → 確認。済んだ所に赤い判子・いまやっている所はふちが光る */
.stamps { list-style:none; display:flex; justify-content:space-between; gap:.4rem; margin:0 0 1.2rem; padding:.7rem .8rem .6rem; counter-reset:none;
  color:#ffe9a8; background:#1d0f08cc; border:2px solid #b98a3e; border-radius:8px; }
.stamps li { flex:1; display:flex; flex-direction:column; align-items:center; gap:.3rem; position:relative; font-size:1rem; }
.stamps li + li::before { content:""; position:absolute; right:calc(50% + 1.9rem); left:calc(-50% + 1.9rem); top:1.55rem; border-top:3px dashed #b98a3e; }
.stamps .seat { width:3.2rem; height:3.2rem; border-radius:50%; background:#fff8e6; border:3px solid #5a3418; display:grid; place-items:center; }
.stamps .ink { width:2.5rem; height:2.5rem; border-radius:50%; border:3px solid #b3201a; color:#b3201a; font-weight:900; font-size:1.2rem; line-height:1;
  display:grid; place-items:center; transform:rotate(-12deg); opacity:0; }
body[data-status="queued"] .stamps li:nth-child(-n+1) .ink,
body[data-status="working"] .stamps li:nth-child(-n+1) .ink,
body[data-status="review"] .stamps li:nth-child(-n+2) .ink,
body[data-status="done"] .stamps li .ink { opacity:1; }
body[data-status="working"] .stamps li:nth-child(2) .seat,
body[data-status="review"] .stamps li:nth-child(3) .seat { animation:oc-now 1.4s ease-in-out infinite; }
body[data-status="queued"] .stamps li:nth-child(1) .ink,
body[data-status="review"] .stamps li:nth-child(2) .ink { animation:oc-stamp .45s cubic-bezier(.2,1.6,.4,1) both; }
body[data-status="done"] .stamps li:nth-child(4) .ink { animation:oc-stamp .45s cubic-bezier(.2,1.6,.4,1) 6.6s both; }
@keyframes oc-now { 0%,100% { box-shadow:0 0 0 0 #ffe27a00; } 50% { box-shadow:0 0 0 .4rem #ffe27acc; } }
@keyframes oc-stamp { 0% { opacity:0; transform:rotate(-12deg) scale(2.2); } 100% { opacity:1; transform:rotate(-12deg) scale(1); } }
@media (prefers-reduced-motion:reduce) {
  .scene *, .stamps *, body.born .info, body[data-talk] #form, .bornrow #scene, body.born #stamps { animation:none !important; }
  .replay { display:none; }
}
@media (max-width:520px) {
  .hero { padding:2rem 1.3rem 1.6rem; margin:1rem -.2rem; } h1 { font-size:1.7rem; }
  .card { padding:2.4rem 1.3rem 2rem; margin:1rem -.2rem 1.4rem; }
  .form::after { right:1rem; top:2rem; font-size:1rem; } .step.pass { padding-right:5.2rem; }
  .oname b { font-size:1.9rem; } .scene { margin:1rem -.2rem; }
  /* スマホの受付（2026-11-28 マスター「スマホ版もうちょっとヒバナのサイズ感どうにかならないか？笑」— tools/bust_rules.py のルール R1〜R6）:
     場面を正方形にして窓を中に入れると、絵の所が細い帯になって顔が小さかった（顔の幅 = 画面の 3〜11%）。
     → 場面の高さは中身に合わせ、絵の所に縦長の高さ（画面の幅の 1.05 倍）を取って、窓はその下に置く。体の半分（頭から腰）を見せる */
  .counter { aspect-ratio:auto; container-type:inline-size; }
  .counter .bust { flex:none; height:min(92vw, 52vh); padding-top:5%; }   /* R7: 最初の画面で窓の 1 行目まで見えるように、画面の高さでもおさえる */
  .counter .holo { height:220%; }
  body[data-page="ask"] .hero { padding:2rem 1.1rem 1rem; } body[data-page="ask"] .hero h1 { font-size:1.45rem; }
  body[data-status="done"] #state { font-size:1.3rem; }
}
.demo-bar { color:#ffe9a8; background:#1d0f08cc; border:2px solid #b98a3e; border-radius:8px; padding:.4rem .8rem; margin-top:1rem; }
.demo-bar button { font-size:1rem; padding:.2rem .8rem; box-shadow:none; background:#fff8e6; color:#2b170c; border:2px solid #5a3418; letter-spacing:0; min-height:44px; }
.demo-bar button:hover:not(:disabled) { transform:none; box-shadow:none; }

.lucky button { font-size:1rem; padding:.3rem 1rem; box-shadow:none; background:#fff8e6; color:#2b170c; border:3px solid #5a3418; letter-spacing:0; }
.lucky button:hover:not(:disabled) { transform:none; box-shadow:none; }
.lucky span { color:#2b170c; }
/* 画面の品質の検査で出た注意の直し: 押せる所は 44px 以上・赤い字は濃い赤に */
.again a, .mine a { display:inline-block; min-height:44px; line-height:44px; }
.oname b { color:#a81e16; }
/* 利用の決まりと同意のチェック */
.terms { border-top:3px dashed #8a5a2c; padding-top:.8rem; color:#2b170c; }
.terms h2 { font-weight:900; color:#2b170c; }
.terms li { font-weight:bold; }
.agree { background:#fff8e6; border:3px solid #5a3418; border-radius:10px; padding:.3rem .8rem; font-weight:900; color:#2b170c; }
.agree input { accent-color:#c8281e; }
/* URL をコピー */
.urlbox { border-top:3px dashed #8a5a2c; padding-top:.6rem; text-align:left; }
.urlbox input { font-size:.95rem; }
.urlbox button, .mine li button.copy { font-size:1rem; padding:.3rem 1rem; box-shadow:none; background:#fff8e6; color:#2b170c; border:3px solid #5a3418; letter-spacing:0; }
.urlbox button:hover:not(:disabled), .mine li button.copy:hover:not(:disabled) { transform:none; box-shadow:none; }
.urlbox .msg { color:#2b170c; }
.mine .msg { color:#ffe9a8; }
/* SNS で共有する */
.share { text-align:center; border-top:3px dashed #8a5a2c; padding-top:.7rem; }
.share .sharelabel { display:block; font-weight:900; color:#2b170c; margin:0 0 .3rem; }
.share button, .share a.xpost { font-size:1rem; font-weight:900; padding:0 1.2rem; min-height:48px; line-height:42px; box-shadow:none; letter-spacing:0; border-radius:10px; margin:.3rem; }
.share button { background:#fff8e6; color:#2b170c; border:3px solid #5a3418; }
.share button:hover:not(:disabled) { transform:none; box-shadow:none; }
.share a.xpost { background:#14110f; color:#fff8e6; border:3px solid #14110f; }

/* hidden の印が付いた物は、見た目の決まりより先にかくす（受付の案内の欄が空の帯で残っていた — 2026-11-28） */
[hidden] { display:none !important; }

/* ── できた子の調整・見くらべ・代表（DEC-WEB-013）── */
.family { text-align:left; margin-top:1.4rem; }
.family h2 { font-size:1.3rem; font-weight:900; color:#2b170c; border-top:3px dashed #8a5a2c; padding-top:.8rem; margin:1.2rem 0 .4rem; }
.family h2:first-child { border-top:0; padding-top:0; margin-top:0; }
.fam { list-style:none; margin:.6rem 0; padding:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:.8rem; }
.fam li { min-width:0; border:3px solid #8a5a2c; border-radius:10px; background:#fff8e6; padding:.4rem; text-align:center; }
.fam li.isface { border-color:#c8281e; box-shadow:0 0 0 2px #c8281e; }
.fam a { display:block; }
.fam img { display:block; width:100%; height:auto; aspect-ratio:4 / 3; object-fit:contain; background:#fff; border-radius:6px; }
.fam p { margin:.2rem 0; overflow-wrap:anywhere; }
.famtag { display:inline-block; white-space:nowrap; border:2px solid #5a3418; border-radius:999px; padding:0 .6rem; margin:.1rem; font-weight:bold; background:#fff; color:#2b170c; }
.famtag.face { border-color:#c8281e; background:#c8281e; color:#fff6e0; }
.fam button { font-size:1rem; padding:.3rem .6rem; margin:.3rem 0 0; box-shadow:none; background:#fff8e6; color:#2b170c; border:3px solid #5a3418; }
.family .talk { margin:.4rem 0 .8rem; }

/* 系列（進化でつながったオリモン）の席 — DEC-WEB-015。3 つの席を段の順に並べる。まだいない段は、点線の空の席 */
.seats { list-style:none; margin:.6rem 0; padding:0; display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:.8rem; }
.seats li { min-width:0; border:3px solid #8a5a2c; border-radius:10px; background:#fff8e6; padding:.4rem; text-align:center; }
.seats li.isface { border-color:#c8281e; box-shadow:0 0 0 2px #c8281e; }
.seats li.empty { border-style:dashed; background:transparent; }
.seats a { display:block; }
.seats img, .seats .hole { display:block; width:100%; height:auto; aspect-ratio:4 / 3; object-fit:contain; background:#fff; border-radius:6px; }
.seats .hole { background:repeating-linear-gradient(45deg, #f1e3c0 0 10px, #fff8e6 10px 20px); }
.seats p { margin:.2rem 0; overflow-wrap:anywhere; }
.seats.big li { text-align:left; padding:.6rem; }
.seats.big .famlabel, .seats.big .oname { text-align:center; }
.seats.big .oname b { display:block; font-size:clamp(1rem, 1.7vw, 1.35rem); word-break:keep-all; overflow-wrap:anywhere; }
.line select, .line input[type=text] { width:100%; margin:.2rem 0 .6rem; }
.line .pair { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:.6rem; }
.linepage { text-align:left; }
@media (max-width:700px) { .seats.big { grid-template-columns:1fr; } }
