/*
 * TUTURIGACHI 2026 / 両生類渉外部
 * Copyright (C) 2026 Tuturigachi Language Solutions Corp. All Rights Reserved.
 * 蛙の遊び場：部屋の頁の枠（部屋そのものの装いは room.css）
 */
html.asb-page, html.asb-page body { height: auto; min-height: 100%; overflow-x: hidden; overflow-y: auto; background: #1d1f1e; }
.asb-shell { position: relative; height: 100vh; height: 100svh; min-height: 360px; overflow: hidden; transform: translateZ(0); }
/* 部屋は窓の高さいっぱい。このサイトについての帯は、その下に、たたんだまま。下へスクロールすると出てきます */
.asb-shell #stage { position: absolute; inset: 0; }
/* 指を縦に動かせば頁が動き、横に動かせば部屋の中を歩きます */
.asb-shell canvas { touch-action: pan-y; }
#frame a { display: flex; flex-direction: column; align-items: flex-start; border: 1px solid rgba(30, 42, 44, .25); border-radius: 4px;
  background: rgba(250, 247, 238, .95); color: #1e2a2c; padding: 6px 12px; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); text-decoration: none; }
#frame a [lang=ja] { font: 600 14px/1.3 "Shippori Mincho B1", serif; }
#frame a [lang=en] { font: 600 14px/1.3 "Hanken Grotesk", sans-serif; }
#frame #b-lang { justify-content: center; }
#frame a:focus-visible { outline: 2px solid #cf3f2b; outline-offset: 2px; }
/* 待つあいだの幕（書体は端末のものだけ。待つあいだに文字を取りに行かない）：和紙の札に、五匹の確認欄。部屋の支度が進むたびに、一匹ずつ手形を押します。部屋が描けたら、暖簾のように上へ退く */
@property --asb-load { syntax: '<number>'; inherits: true; initial-value: 0; }
.asb-wait { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; padding: 24px; pointer-events: none;
  background: radial-gradient(ellipse 90% 75% at 26% 20%, #36352f 0%, #282825 46%, #1d1f1e 82%); box-shadow: 0 8px 22px rgba(0, 0, 0, .4);
  transition: --asb-load .6s ease-out, transform 1s cubic-bezier(.65, 0, .3, 1), visibility 0s linear 1s; }
.asb-wait__card { position: relative; width: min(440px, 100%); box-sizing: border-box; padding: 34px 40px 26px; color: #2b3433;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .36 0 0 0 0 .26 0 0 0 .5 -.2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23f)'/%3E%3C/svg%3E"),
    linear-gradient(140deg, #fdfaf2 0%, #f5f0e3 55%, #e9e2d0 100%);
  border-radius: 2px; box-shadow: 0 1px 1px rgba(0, 0, 0, .25), 7px 12px 26px rgba(0, 0, 0, .42), 2px 4px 7px rgba(0, 0, 0, .22); }
.asb-wait__name { display: block; font: 500 12px/1.4 "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; letter-spacing: .32em; color: #1d5a66; opacity: .78; }
.asb-wait__lead { margin: 14px 0 0; font: 500 clamp(16px, 4.4vw, 20px)/1.7 "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; letter-spacing: .1em; color: #24302f; text-wrap: balance; }
.asb-wait__lead span { display: inline-block; }
  clip-path: inset(-4px calc((1 - var(--asb-load)) * 100%) -4px 0); }
@property --asb-breath { syntax: '<number>'; inherits: false; initial-value: .35; }
/* 確認欄：回覧票の升目のように。上に名前、下に手形の欄。次に押す蛙の欄だけ、縁が会社の青緑でそっと息をする */
.asb-wait__row { display: grid; grid-template-columns: repeat(5, 1fr); margin: 20px 0 16px; border: 1px solid #5b6463; border-right: 0; background: rgba(255, 255, 255, .35); }
.asb-wait__box { --at: calc(var(--i) * .2 + .1); --pressed: clamp(0, (var(--asb-load) - var(--at)) * 30, 1);
  --cur: calc(clamp(0, (var(--asb-load) - var(--at) + .2) * 30, 1) * (1 - var(--pressed))); display: grid; grid-template-rows: auto 1fr; border-right: 1px solid #5b6463; min-width: 0; }
.asb-wait__box b { display: block; padding: 3px 0 2px; border-bottom: 1px solid #5b6463; background: rgba(233, 237, 238, .7); text-align: center;
  font: 500 10.5px/1.3 "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; letter-spacing: .06em; color: #3d4645; white-space: nowrap; overflow: hidden; }
.asb-wait__cell { position: relative; aspect-ratio: 1 / .82; }
.asb-wait__cell::before { content: ""; position: absolute; inset: 9% 12%; background: url("/common/img/asobiba/tegata5.webp") no-repeat; background-size: 500% 100%;
  background-position: calc(var(--i) * 25%) 0; opacity: calc(var(--pressed) * .62); transform: rotate(var(--tilt)); }
.asb-wait__cell::after { content: ""; position: absolute; inset: 2px; border: 1.5px solid #1d5a66; opacity: calc(var(--cur) * var(--asb-breath));
  animation: asb-breath 2.4s ease-in-out infinite alternate; }
@keyframes asb-breath { from { --asb-breath: .25; } to { --asb-breath: .75; } }
.asb-wait[lang=en] .asb-wait__box b { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .02em; font-size: 10.5px; }
.asb-wait__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 4px 12px; }
.asb-wait__please { font: 400 13px/1.6 "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; letter-spacing: .12em; color: #4a5352; white-space: nowrap; }
.asb-wait__sign { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1.4 "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; letter-spacing: .18em; color: #4a5352; white-space: nowrap; margin-left: auto; }
.asb-wait[lang=en] .asb-wait__name, .asb-wait[lang=en] .asb-wait__please, .asb-wait[lang=en] .asb-wait__sign { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.asb-wait[lang=en] .asb-wait__name { letter-spacing: .08em; }
.asb-wait[lang=en] .asb-wait__lead { font: 500 clamp(17px, 4.6vw, 21px)/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .005em; }
.asb-wait[lang=en] .asb-wait__please, .asb-wait[lang=en] .asb-wait__sign { letter-spacing: .03em; }
@media (max-width: 420px) { .asb-wait__card { padding: 28px 24px 22px; } }
.asb-ready .asb-wait, .asb-slow .asb-wait { transform: translateY(-100%); visibility: hidden; }
/* 部屋が描けたら、五匹目も手形を押してから、半拍おいて幕が上がる（五匹目が押されないまま上がっていた） */
.asb-ready .asb-wait { --asb-load: 1; transition: --asb-load .4s ease-out, transform 1s cubic-bezier(.65, 0, .3, 1) .5s, visibility 0s linear 1.5s; }
@media (prefers-reduced-motion: reduce) {
  .asb-wait { transition: opacity .3s ease, visibility 0s linear .3s; }
  .asb-wait__cell::after { animation: none; }
  .asb-ready .asb-wait, .asb-slow .asb-wait { transform: none; opacity: 0; }
}
.asb-manual #stage { display: none; }
.asb-noscript { position: absolute; inset: 0; overflow: auto; padding: 32px 20px; background: #fbf8ef; color: #1e2a2c; font: 15px/1.7 "Hanken Grotesk", "Shippori Mincho B1", sans-serif; }
.asb-noscript h1 { font: 700 24px/1.3 "Shippori Mincho B1", serif; margin: 0 0 8px; }
.asb-noscript li { margin-bottom: 8px; }
/* 携帯：枠のボタンは小さく、部屋の床をふさがないように */
@media (max-width: 600px) {
  .asb-shell #frame { left: 8px; right: 8px; bottom: 8px; gap: 5px; flex-wrap: wrap; }
  .asb-shell #frame button, .asb-shell #frame a { padding: 4px 8px; border-radius: 3px; }
  .asb-shell #frame [lang=ja] { font-size: 12.5px !important; }
  .asb-shell #frame [lang=en] { font-size: 12px !important; }
}
