/* 試合画面:統一の窓(10-07 作者「試合の中のUIは統一感があって動かさない」)。
   絵の窓は 1440×1080(4:3)を中央に固定。左右 240px の柱に欄を置く。立ち・ダウン・見上げ・技の動画、全部この窓の中。
   立ち=背景を窓の幅に切って選手は等倍/横長 4:3 の絵=窓にぴったり/見上げ=窓いっぱい。欄は場面で動かさない。
   札は、選んだ狙いの丸から扇状に開く(案3。proto/match-mock/3u_*.html)。 */
#stage.match-layout{background:#0b0f17}
#stage.match-layout:not(.advmode) #bg{inset:0 240px;overflow:hidden}
#stage.match-layout:not(.advmode) #bg>img.art{transform:none;object-fit:cover;object-position:50% 50%}
#stage.match-layout:not(.advmode) #bg[data-k=mat]>img.art{object-position:50% 100%;transform:scale(1.7);transform-origin:50% 100%}   /* 真上のマット:ロープが見えない所まで寄る */
#stage.match-layout:not(.advmode) #bg>svg{transform:scale(1.5);transform-origin:50% 58%}   /* 図解の背景は、窓に合わせて寄せる */
#stage.match-layout:not(.advmode) #char{clip-path:inset(0 240px)}
#stage.match-layout:not(.advmode) #vig{inset:0 240px;opacity:1;box-shadow:none;background:linear-gradient(180deg,#0a0e1600 72%,#0a0e16d9 100%)}   /* 窓の下端:実況・セリフの帯 */
#stage.match-layout:not(.advmode) #vig.go{animation:none}
#stage.match-layout:not(.advmode) #flash{inset:0 240px}
#stage.match-layout:not(.advmode) .standing-video{left:592px;top:40px;width:736px;height:992px;clip-path:none}
#stage:has(.standing-video.ready) #char{visibility:hidden!important}   /* 動画が映っている間、下の図解を出さない(再生直後に図解が一瞬見えていた) */
/* 欄(左右の柱) */
#stage.match-layout:not(.advmode) .panel{width:220px;padding:12px 12px 10px;background:none;border:0;border-radius:0;box-shadow:none}
#stage.match-layout:not(.advmode) #herpanel{top:14px;left:1690px;right:auto;border-top:3px solid #ed6486}
#stage.match-layout:not(.advmode) #mepanel{bottom:14px;left:10px;border-top:3px solid #daae54}
#stage.match-layout:not(.advmode) #herpanel::before,#stage.match-layout:not(.advmode) #mepanel::before{display:block;font-size:14px;letter-spacing:.16em;margin-bottom:4px;color:#a5b0c1}
#stage.match-layout:not(.advmode) #herpanel::before{content:'対戦相手'}
#stage.match-layout:not(.advmode) #mepanel::before{content:'あなた'}
#stage.match-layout:not(.advmode) .pname{font-size:25px;font-weight:700;letter-spacing:.01em;margin-bottom:8px;white-space:nowrap}
#stage.match-layout:not(.advmode) .bar{height:14px;border-radius:3px}
#stage.match-layout:not(.advmode) .bar em{top:-4px;font-size:16px;right:4px}
#stage.match-layout:not(.advmode) .bar.her i{background:linear-gradient(90deg,#973650,#ed6486)}
#stage.match-layout:not(.advmode) .bar.me i{background:linear-gradient(90deg,#8b682f,#e0bb71)}
#stage.match-layout:not(.advmode) .bodyrow{margin-top:10px}
#stage.match-layout:not(.advmode) .bodymap{display:none}
#stage.match-layout:not(.advmode) .limbs{width:100%;font-size:17px;line-height:1.45}
#stage.match-layout:not(.advmode) .limbs>div{gap:6px;min-height:26px}
#stage.match-layout:not(.advmode) .pbar{width:60px;height:6px;border-radius:2px}
#stage.match-layout:not(.advmode) .pnum{width:30px;font-size:16px}
#stage.match-layout:not(.advmode) .limbs .st{font-size:14px}
#stage.match-layout:not(.advmode) .shame{font-size:15px;height:auto;min-height:0;white-space:normal}
#stage.match-layout:not(.advmode) .shame:empty{display:none}
#stage.match-layout:not(.advmode) .fx{font-size:14px;white-space:normal;border-top:1px solid #ffffff18;padding-top:6px}
/* 流れ:窓の上端 */
#stage.match-layout:not(.advmode) #flow{width:640px;top:0;padding:4px 14px 10px;background:linear-gradient(180deg,#0a0e16d9,#0a0e1600);border-radius:0 0 10px 10px}
#stage.match-layout:not(.advmode) .fl-top{font-size:15px;margin-bottom:2px}
#stage.match-layout:not(.advmode) .fl-top b{font-size:21px}
/* 相手の一言・表情(右の柱、相手の欄の下) */
#stage.match-layout:not(.advmode) #cue{left:1690px;top:calc(var(--opponent-bottom,230px) + 150px);width:220px;transform:none;white-space:normal;text-align:left;font-size:19px;line-height:1.35;border:0;border-left:2px solid #daae54;border-radius:0;background:transparent;padding:4px 10px}
#stage.match-layout:not(.advmode):has(#wipe.show) #cue{display:none!important}
#stage.match-layout.expression-info-visible #cue.chance{animation:none;box-shadow:none}
/* 左の柱:体勢・ルール・演出・読み合いの図 */
#stage.match-layout:not(.advmode) #posture{left:10px;top:14px}
#stage.match-layout:not(.advmode) #helpBtn{left:10px;top:86px;font-size:18px;border-radius:5px;height:40px;padding:0 12px}
#stage.match-layout:not(.advmode) #speedBtn{left:120px;top:86px;border-radius:5px;font-size:16px;height:40px;padding:0 10px}
#stage.match-layout:not(.advmode) #rpsmap{left:10px;top:150px;transform:scale(.72);transform-origin:0 0}
#stage.match-layout:not(.advmode) #plabel{left:270px;bottom:94px!important;font-size:16px}
#stage.match-layout:not(.advmode) #video-preview{left:10px;top:330px;bottom:auto;width:220px;display:flex;flex-direction:column;align-items:stretch;font-size:15px;padding:8px;border:1px solid #37455c;border-radius:4px;background:#121b28}
#stage.match-layout.scening #video-preview{display:none}
/* 狙いの丸(立ちの位置は、待ちループ3本の体の位置の平均。ループの中で左右に 40px ほど揺れる) */
#stage.match-layout:not(.advmode) #hot .hot{width:124px;height:124px;border-width:2px;background:transparent}
#stage.match-layout:not(.advmode) #hot .hot[data-l=head]{width:110px;height:110px}
#stage.match-layout:not(.advmode) #hot .hot-label{font-size:27px}
#stage.match-layout:not(.advmode) #hot .hot{border:2px dashed #ffffff8c;color:#fff;font-size:27px;text-shadow:0 1px 4px #000}
#stage.match-layout:not(.advmode) #hot .hot.tgt{border:3px solid #ffd27a;background:#ffd27a1f;box-shadow:0 0 0 6px #ffd27a26,0 0 24px #ffd27a66;color:#fff}
#stage.match-layout:not(.advmode) #hot .hot.tgt::after{display:none}
#stage.match-layout:not(.advmode) #hot[data-pos=stand] .hot.tgt .hot-label{opacity:1;background:none;border:0;text-shadow:0 1px 4px #000}
#stage.match-layout[data-opp=arisa]:has(.standing-video.ready) #hot[data-pos=stand] .hot[data-l=head]{left:995px!important;top:215px!important}
#stage.match-layout[data-opp=arisa]:has(.standing-video.ready) #hot[data-pos=stand] .hot[data-l=arm]{left:1110px!important;top:360px!important}
#stage.match-layout[data-opp=arisa]:has(.standing-video.ready) #hot[data-pos=stand] .hot[data-l=body]{left:998px!important;top:470px!important}
#stage.match-layout[data-opp=arisa]:has(.standing-video.ready) #hot[data-pos=stand] .hot[data-l=leg]{left:885px!important;top:745px!important}
/* 札:選んだ丸から扇状に開く(位置は match-layout.js が計算。#ui の原点=丸の中心) */
#stage.match-layout:not(.advmode) #ui.near-target{position:absolute;width:0;height:0;overflow:visible;z-index:24;background:none;border:0;padding:0;box-shadow:none}
#stage.match-layout:not(.advmode) #ui.near-target::before{display:none}
#stage.match-layout:not(.advmode) #ui.near-target .band{position:absolute;left:0;top:0;width:0;height:0;display:block;padding:0;background:none;overflow:visible}
#stage.match-layout:not(.advmode) #ui.near-target .card{position:absolute;width:auto;height:auto;min-height:72px;display:grid;grid-template-columns:72px auto;grid-template-rows:auto auto;column-gap:14px;align-items:center;align-content:center;padding:6px 54px 6px 18px;border:1px solid #556379;border-radius:38px;background:#0f1724e6;box-shadow:0 8px 24px #0006;white-space:nowrap;transition:transform .12s,border-color .12s}
#stage.match-layout:not(.advmode) #ui.near-target .card:hover{transform:scale(1.03);border-color:#e4bc6b;background:#1a2535}
#stage.match-layout:not(.advmode) #ui.near-target .card.picked{transform:scale(1.03);border-color:#e4bc6b}
#stage.match-layout:not(.advmode) #ui.near-target .card.off{opacity:.45}
#stage.match-layout:not(.advmode) #ui.near-target .card.savor{border-color:#7a4d5e;background:#2b1d25e6}
#stage.match-layout:not(.advmode) #ui.near-target .card.savor .nm{color:#e3a2b7}
#stage.match-layout:not(.advmode) #ui.near-target .glyph{display:none}
#stage.match-layout:not(.advmode) #ui.near-target .nm{grid-row:1/3;grid-column:1;font-size:17px;line-height:1.1;color:#aab8cb;font-weight:500;white-space:normal}
#stage.match-layout:not(.advmode) #ui.near-target .sub{grid-row:1;grid-column:2;font-size:25px;line-height:1.2;font-weight:700;color:#fff;padding:0}
#stage.match-layout:not(.advmode) #ui.near-target .hint{grid-row:2;grid-column:2;font-size:15px;line-height:1.25;color:#8d9bb0;white-space:nowrap}
#stage.match-layout:not(.advmode) #ui.near-target .hint:empty{display:none}
#stage.match-layout:not(.advmode) #ui.near-target .card .dp{display:none}
#stage.match-layout:not(.advmode) #ui.near-target kbd{font-size:15px;top:50%;right:14px;transform:translateY(-50%)}
#stage.match-layout:not(.advmode) #ui.near-target .spoke{position:absolute;height:0;border-top:2px solid #ffd27a88;transform-origin:0 0;pointer-events:none}
/* 札の帯(扇にならない場面:あなたのダウン・とどめ・相手のペース) */
#stage.match-layout:not(.advmode) #ui:not(.near-target) .band{left:270px;right:270px;gap:12px;padding:12px 0;height:190px}
#stage.match-layout:not(.advmode) #ui:not(.near-target) .card{flex:1;min-width:0;width:auto;height:164px;padding:10px;grid-template-columns:48px 1fr;border-radius:5px}
#stage.match-layout:not(.advmode) #ui:not(.near-target) .glyph{font-size:45px}
#stage.match-layout:not(.advmode) #ui:not(.near-target) .nm{font-size:23px;white-space:normal}
#stage.match-layout:not(.advmode) #ui:not(.near-target) .sub{font-size:20px}
/* 実況・セリフ:窓の下端。枠は出さず、暗い帯の上に字だけ */
#stage.match-layout:not(.advmode) #jk{left:270px;right:270px;bottom:46px;font-size:25px;font-weight:700;padding:6px 16px 6px 86px;line-height:1.35;background:transparent;color:#eef2f8;border:0;border-radius:0;box-shadow:none;text-shadow:0 1px 3px #000}
#stage.match-layout:not(.advmode) #jk .lb{left:12px;top:50%;bottom:auto;transform:translateY(-50%);height:30px;width:58px;font-size:14px;letter-spacing:.14em;border-radius:2px;background:#ed6486;color:#fff;gap:0}
#stage.match-layout:not(.advmode) #jk .lb::before{display:none}
#stage.match-layout:not(.advmode) #say{left:270px;right:270px;top:auto;bottom:6px;width:auto;font-size:22px;padding:4px 16px;background:transparent;color:#eceef4;border:0;border-radius:0;box-shadow:none;line-height:1.3;text-shadow:0 1px 3px #000}
#stage.match-layout:not(.advmode) #say .tx b{display:inline;color:#ed96ab;font-size:17px;margin-right:14px}
#stage.match-layout:not(.advmode):has(#ui:not(.near-target) .card) #jk{bottom:236px}
#stage.match-layout:not(.advmode):has(#ui:not(.near-target) .card) #say{bottom:196px}
/* 極め中の表情:常設の表情の窓と同じ枠(位置・幅・顔の切り抜き)。名前と段階は顔の下 */
#stage.match-layout:not(.advmode) #wipe{left:1690px;right:auto;top:var(--opponent-bottom,230px);width:220px;padding:6px;background:#111925;border:1px solid #637088;border-radius:4px;z-index:26;flex-direction:column}
#stage.match-layout:not(.advmode) #wipe.show{display:flex}
#stage.match-layout:not(.advmode) #wipe .video-face,#stage.match-layout:not(.advmode) #wipe>svg{order:-1;display:block;width:208px!important;height:132px!important;border-radius:0!important;margin:0}
#stage.match-layout:not(.advmode) #wipe .video-face>video,#stage.match-layout:not(.advmode) #wipe .video-face>img{object-position:50% 58%}
#stage.match-layout:not(.advmode) #wipe .wp-nm{font-size:15px;margin:8px 0 0;text-align:left;white-space:normal}
#stage.match-layout:not(.advmode) #wipe .wp-lb{font-size:20px;margin-top:2px;text-align:left}
/* 技の動画(投げ):枠=窓 */
#stage.match-layout.video-scene #ui{visibility:hidden}
#stage.match-layout.video-scene #jk{bottom:46px;z-index:43;left:270px;right:270px;font-size:25px}
#stage.match-layout.video-scene #say{visibility:hidden}
#stage.match-layout.video-scene #scene .nm{top:auto;bottom:100px}
#stage.match-layout:not(.advmode) .throw-stage{display:block;padding:0;background:transparent}
#stage.match-layout:not(.advmode) .throw-arrival{position:absolute;left:240px;top:0;width:1440px;height:1080px}
#stage.match-layout:not(.advmode) .throw-frame{width:1440px!important;height:1080px!important;outline:0;box-shadow:none}
#stage.match-layout:not(.advmode) .throw-frame .throw-video{object-fit:cover}
/* 静止画(動画がない場面):立ちは動画と同じ置き場所、横長は窓にぴったり */
#stage.match-layout:not(.advmode) .pose-still{left:592px;top:40px;width:736px;height:992px}
#stage.match-layout:not(.advmode) .pose-still[data-view=down],#stage.match-layout:not(.advmode) .pose-still[data-view=lookup]{left:240px;top:0;width:1440px;height:1080px;object-fit:cover}
/* 常設の表情情報:右の柱、相手の欄の下。額〜顎の横長に切り、選ぶ間は静止画を保持。 */
#expression-info{display:none}
#stage.match-layout:not(.advmode) #expression-info:not([hidden]){display:block;position:absolute;left:1690px;top:var(--opponent-bottom,230px);width:220px;padding:6px;background:#111925;border:1px solid #637088;border-radius:4px;pointer-events:none;z-index:22}
#expression-info .expression-crop{height:132px;overflow:hidden}
#expression-info .video-face{display:block;top:-44px;border-radius:0!important}
#expression-info .expression-crop>svg{display:block;margin-top:-44px}
#expression-info[data-intent=counter]{border-left:3px solid #ed6486!important}
#stage.match-layout.scening #expression-info,#stage.match-layout:has(#wipe.show) #expression-info,#stage.match-layout:has(#cutin.show) #expression-info{visibility:hidden}
