/* Approved A artwork is a texture atlas. Every control below is a native DOM
   button/link; the changing action, counts and save source are live text. */
.hall-a{position:fixed;inset:0;width:var(--arcade-frame-width);height:var(--arcade-frame-height);max-width:none;max-height:none;margin:auto;padding:env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px);border:0;border-radius:0;outline:0;background:#061622;color:#f9e7b7;overflow:auto;overscroll-behavior:contain;box-shadow:none;text-align:center;scrollbar-width:thin;container-type:normal}
.hall-a::backdrop{background:#061622}.hall-a[open]{display:flex;flex-direction:column;align-items:center}.hall-machine{position:relative;flex:none;width:var(--arcade-poster-width);max-width:100%;container-type:inline-size;margin:auto 0;isolation:isolate}.hall-hero{width:100%;aspect-ratio:948/870;background:url(./assets/release-v0.44.0/menu-a-v1/approved-a.png) 0 0/100% auto no-repeat}.hall-console{position:relative;width:100%;aspect-ratio:948/789;background:#063955}
.hall-audio-unlock{position:absolute;z-index:2;top:max(8px,calc((100% - var(--arcade-poster-width)*1659/948)/2 - 52px));right:16px;display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;margin:0;padding:7px 14px;border:1px solid #cfae68;border-radius:9px;background:linear-gradient(#fff0cd,#e3c995);box-shadow:inset 0 0 0 2px #fff6e0,0 3px 0 #123440;color:#103c4b;font-family:inherit;font-size:13px;font-weight:700;line-height:1.2;cursor:pointer;touch-action:manipulation}.hall-audio-unlock svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.hall-audio-unlock:focus-visible{outline:3px solid #ffe189;outline-offset:3px}.hall-audio-unlock:hover{filter:brightness(1.08)}.hall-audio-unlock:active{transform:translateY(1px)}
@media(max-height:440px){.hall-audio-unlock{position:relative;inset:auto;flex:none;align-self:flex-end;margin:6px 12px}}
.hall-console{background:#063955 url(./assets/release-v0.44.0/menu-a-v1/approved-a.png) center bottom/100% auto no-repeat}
.hall-art-button{position:absolute;left:calc(var(--x)/948*100%);top:calc((var(--y) - 870)/789*100%);width:calc(var(--w)/948*100%);height:calc(var(--h)/789*100%);margin:0;padding:0;border:0;border-radius:clamp(6px,2cqw,15px);background-image:url(./assets/release-v0.44.0/menu-a-v1/approved-a.png);background-repeat:no-repeat;background-size:calc(948/var(--w)*100%) calc(1659/var(--h)*100%);background-position:calc(var(--x)/(948 - var(--w))*100%) calc(var(--y)/(1659 - var(--h))*100%);color:#fff0c7;box-shadow:none;text-decoration:none;appearance:none;-webkit-appearance:none;touch-action:manipulation;transition:filter .12s,transform .12s;cursor:pointer}
.hall-art-button:hover{filter:brightness(1.09)}.hall-art-button:active{transform:translateY(2px);filter:brightness(.95)}.hall-art-button:focus-visible{outline:3px solid #ffe189;outline-offset:2px;filter:brightness(1.12)}.hall-art-button:disabled{filter:saturate(.45) brightness(.68);cursor:default}.hall-start{--x:78;--y:898;--w:814;--h:224}.hall-classic{--x:32;--y:1138;--w:437;--h:161}.hall-practice{--x:480;--y:1138;--w:437;--h:161}.hall-collection{--x:32;--y:1308;--w:886;--h:118}.hall-save{--x:225;--y:1431;--w:498;--h:65}.hall-records-art{--x:95;--y:1507;--w:224;--h:96}.hall-help{--x:334;--y:1507;--w:205;--h:96}.hall-settings{--x:540;--y:1507;--w:185;--h:96}.hall-newplayer{--x:770;--y:1534;--w:134;--h:47}
.hall-save::after,.hall-records-art::after,.hall-help::after,.hall-settings::after,.hall-newplayer::after{content:'';position:absolute;left:0;right:0;top:50%;height:max(100%,44px);transform:translateY(-50%)}
.hall-start-action{position:absolute;display:flex;align-items:center;justify-content:center;left:35%;top:58%;width:57%;height:18%;background:linear-gradient(100deg,#cf2718,#d82b1b 45%,#c62012);font-size:clamp(12px,3.35cqw,21px);font-weight:850;letter-spacing:.08em;color:#fff0c1;text-shadow:0 1px 1px #6c1a0a}.hall-start-best{position:absolute;left:34%;top:79%;width:59%;height:13%;background:linear-gradient(100deg,#ce2617,#d62b1c,#c72315);font-size:clamp(8px,2.15cqw,14px);font-style:normal;line-height:1.5;font-weight:700;color:#fce0a0}
.hall-count{position:absolute;top:49%;display:flex;align-items:center;justify-content:flex-start;width:9.4%;height:39%;background:#003238;font-size:clamp(10px,2.7cqw,17px);font-weight:750;font-variant-numeric:tabular-nums;line-height:1;white-space:nowrap}.ball-count{left:40.7%}.bat-count{left:62.3%}.uniform-count{left:89%}
#hall-save-label{position:absolute;left:30%;top:16%;width:65%;height:64%;display:flex;justify-content:center;align-items:center;color:#072e3d;font-size:clamp(9px,2.35cqw,15px);line-height:1.2;letter-spacing:.03em;font-weight:850;background:radial-gradient(#af8d4a19 .6px,transparent .8px),linear-gradient(110deg,#f9e9c8,#f3ddba);background-size:5px 5px,100% 100%}
.hall-start-action,.hall-start-best{background:transparent;isolation:isolate}.hall-start-action::before,.hall-start-best::before{content:'';position:absolute;inset:0 -2px;z-index:-1;background-image:url(./assets/release-v0.44.0/wear-detail-v0.2.png),linear-gradient(90deg,#ba2411,#c12a13 45%,#b71e0c);background-size:240px,100% 100%;background-blend-mode:soft-light;filter:blur(.65px)}.hall-start-best::before{background-color:#b72410}
.hall-machine{overflow:hidden}.hall-start-best{left:35%;width:55%;top:77%;height:10%;font-size:clamp(8px,2cqw,12px);line-height:1.2;white-space:nowrap}
.hall-a a[aria-disabled=true],.legacy-player-link[aria-disabled=true]{filter:grayscale(.85);opacity:.6;cursor:not-allowed}
.hall-return-origin{flex:none;display:block;margin:5px 0 max(12px,env(safe-area-inset-bottom));padding:10px 22px;min-height:44px;border:1px solid #bd9d60;border-radius:9px;color:#ffe3a6;font-size:13px;text-decoration:none;background:#113747}.legacy-player-link{display:block;color:#175d67;font-size:13px;margin:15px 0}
.menu-subdialog{border:2px solid #173f47;outline:2px solid #d6b76f;border-radius:17px;background:radial-gradient(#aa8c4b1c .7px,transparent .9px),linear-gradient(110deg,#fff5dd,#f2e4c6);background-size:6px 6px,100% 100%;box-shadow:0 14px 50px #0015238c,inset 0 0 0 3px #fff8e7}.menu-subdialog h2{font-size:25px}.pause-menu .primary-button{background:linear-gradient(#10a79b,#006d6e);border-color:#105354;box-shadow:0 0 0 2px #e8c371,0 4px 0 #063c47;color:#fff4cf}.back-menu-button{display:block;width:100%;margin:14px 0 17px;border:2px solid #b83224;box-shadow:inset 0 0 0 2px #fff8e6,0 3px 0 #b69b6c;color:#a7241a;font-size:17px}.pause-safety{font-size:12px;color:#4b665d;margin:15px 0 0;border-top:1px solid #c7b18a;padding-top:12px}.pause-more{margin-top:16px;text-align:left}.pause-more summary{font-size:12px;color:#6d6e5e;cursor:pointer}.pause-more>button{margin-top:10px;width:100%}.menu-settings-note{font-size:11px;line-height:1.7;color:#6c6d5b}.menu-subdialog .sound-settings{margin:14px 0;padding:8px 0 17px;background:none;border:0}.menu-subdialog .primary-button{margin-top:12px}.menu-subdialog .rules{font-size:12px;line-height:1.8}.menu-subdialog .rules summary{font-size:14px}
@media(prefers-reduced-motion:reduce){.hall-art-button{transition:none}}

/* Approved full-height A scene. Controls remain live DOM; only room/pedestal edges may crop. */
.hall-a{isolation:isolate;background:#082b3a;--hall-height:var(--arcade-frame-height);--hall-extra-space:0px;--hall-machine-width:min(100%,560px,calc((var(--hall-height) - var(--hall-extra-space) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))*842/1590));overflow:hidden;padding-bottom:calc(env(safe-area-inset-bottom,0px) + var(--hall-extra-space))}
.hall-a[open]{justify-content:center}
.hall-machine{width:var(--hall-machine-width);aspect-ratio:842/1869;margin:0;flex:none;background:url(./assets/release-v0.44.0/menu-a-full-v1/scene.png) center/100% 100% no-repeat;box-shadow:0 0 40px #00192388}
.hall-hero{position:absolute;inset:0 0 auto;height:calc(960/1869*100%);aspect-ratio:auto;background:none}
.hall-console{position:absolute;inset:0;aspect-ratio:auto;background:none;pointer-events:none}
.hall-art-button{pointer-events:auto;left:calc(var(--x)/842*100%);top:calc(var(--y)/1869*100%);width:calc(var(--w)/842*100%);height:calc(var(--h)/1869*100%);background-image:url(./assets/release-v0.44.0/menu-a-full-v1/scene.png);background-size:calc(842/var(--w)*100%) calc(1869/var(--h)*100%);background-position:calc(var(--x)/(842 - var(--w))*100%) calc(var(--y)/(1869 - var(--h))*100%)}
.hall-start{--x:70;--y:995;--w:710;--h:190}
.hall-classic{--x:34;--y:1212;--w:380;--h:134}
.hall-practice{--x:434;--y:1212;--w:380;--h:134}
.hall-collection{--x:32;--y:1360;--w:782;--h:100}
.hall-save{--x:205;--y:1470;--w:436;--h:52}
.hall-records-art{--x:88;--y:1534;--w:210;--h:88}
.hall-help{--x:300;--y:1534;--w:160;--h:88}
.hall-settings{--x:480;--y:1534;--w:150;--h:88}
.hall-newplayer{--x:682;--y:1553;--w:130;--h:50}
.hall-start-action{left:35%;top:63%;width:58%;height:17%;font-size:clamp(12px,3.35cqw,21px)}
.hall-start-best{left:35%;top:82%;width:58%;height:10%}
.hall-start-action::before,.hall-start-best::before{display:none}
.hall-classic::before{content:'三次出局，棒球进垒';position:absolute;left:37%;top:60%;font-size:clamp(9px,2.3cqw,14px);color:#153745;font-weight:700;white-space:nowrap}
.hall-count{top:55%;height:33%;background:transparent;width:10%;font-size:clamp(10px,2.7cqw,17px)}
.ball-count{left:40%}.bat-count{left:62.5%}.uniform-count{left:89%}
#hall-save-label{left:31%;top:16%;width:65%;height:64%;background:none}
.hall-hero .thanks-sticker{right:13%;bottom:6%;width:33%;transform:rotate(-11deg)}
.hall-audio-unlock{top:max(8px,env(safe-area-inset-top,0px));right:12px}
.hall-return-origin{position:absolute;bottom:max(8px,env(safe-area-inset-bottom,0px));margin:0;z-index:2}
.hall-a .panda-hall-entry{position:absolute;bottom:max(8px,env(safe-area-inset-bottom,0px));z-index:2}
.hall-a:has(.hall-return-origin:not([hidden])){--hall-extra-space:64px}
.hall-a:has(.panda-hall-entry:not([hidden])){--hall-extra-space:72px}
.hall-a:has(.hall-return-origin:not([hidden])):has(.panda-hall-entry:not([hidden])){--hall-extra-space:136px}
.hall-a:has(.hall-return-origin:not([hidden])) .panda-hall-entry{bottom:70px}
@media(max-width:600px){.hall-a{--hall-height:100vh;--hall-height:100dvh;width:100vw;height:var(--hall-height)}}

/* The newspaper sits on the inspection panel below the last row of controls.
   The full-height artwork is center-cropped; keep the pocket inside its visible portion. */
.hall-a {
  --hall-stage-height: calc(var(--hall-height) - var(--hall-extra-space) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));
  --hall-frame-limit: var(--arcade-frame-width);
  --hall-machine-width: min(var(--hall-frame-limit),560px,calc(var(--hall-stage-height)*842/1590));
}
.hall-stage {width:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;flex:1 1 auto;}
.hall-stage::-webkit-scrollbar {display:none;}
.hall-stage .hall-machine {margin:calc((var(--hall-stage-height) - var(--hall-machine-width)*1869/842)/2) auto 0;}
@media (max-width:600px) {.hall-a {--hall-frame-limit:100vw;}}
.hall-gazette {
  --pocket-bottom: max(1.35%,calc((100% - var(--hall-stage-height))/2 + 5px));
  position: absolute;
  left: 21.5%;
  width: 57%;
  bottom: var(--pocket-bottom);
  top: max(calc(1622/1869*100% + 4px),calc(1578/1869*100% + 26px),calc(100% - var(--pocket-bottom) - max(44px,7.65%)));
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  appearance: none;
  color: #302e24;
  background: transparent;
  pointer-events: auto;
  touch-action: manipulation;
  text-align: left;
}
.hall-gazette-paper {
  position: absolute;
  inset: 3% 4% 9% 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2% 7%;
  gap: 4%;
  overflow: hidden;
  border: 1px solid #aa9e80;
  background: linear-gradient(88deg,transparent 54%,#baae9055 56%,#fff7e077 58%,transparent 60%),linear-gradient(105deg,#ded8bc,#f4ebd3 39%,#e8e1c7 78%,#d3c8a7);
  box-shadow: 0 1px #8d8269,-1px 2px #e1d8ba,-2px 3px #a69c80,-2px 4px #d7ccab,0 3px 5px #060c0dba;
  transform: rotate(-3deg);
  transform-origin: 30% 95%;
}
.hall-gazette-copy {flex:none;line-height:1;}
.hall-gazette-copy strong {
  display: block;
  width: fit-content;
  padding: .02em 0 .08em;
  border-block: 1px solid #625c4a;
  font: 900 clamp(16px,5.6cqw,26px)/1 "Songti SC","Noto Serif CJK SC",SimSun,serif;
  letter-spacing: .03em;
  white-space: nowrap;
}
.hall-gazette-copy small {display:block;margin-top:2px;font-size:clamp(6px,1.75cqw,8px);letter-spacing:.04em;}
.hall-gazette-paper img {height:100%;width:28%;border-left:1px solid #877b65;object-fit:cover;object-position:26% center;mix-blend-mode:multiply;}
.hall-gazette-rail {
  position: absolute;
  inset: auto 0 0;
  height: 20%;
  min-height: 9px;
  padding-right: 7%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border: 1px solid #21302d;
  border-radius: 3px;
  background: linear-gradient(#decea0,#baa377 11%,#596b67 32%,#223c3c 66%,#132927 79%,#838161);
  box-shadow: 0 2px 2px #000a;
  color: #ece2c9;
  font: 600 clamp(6px,1.65cqw,8px)/1 system-ui,sans-serif;
}
.hall-gazette-rail::before,.hall-gazette-rail::after {
  content: "";
  position: absolute;
  height: 54%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg,#d6c49e,#827b63 44%,#30342b 45%,#30342b 55%,#ac9e7b 56%,#878168);
}
.hall-gazette-rail::before {left:3%;}
.hall-gazette-rail::after {right:3%;}
.hall-gazette:focus-visible {outline:2px solid #ffe189;outline-offset:2px;}
@media (hover:hover) {.hall-gazette:hover .hall-gazette-paper {transform:translateY(-5%) rotate(-2.5deg);}}
@media (prefers-reduced-motion:no-preference) {.hall-gazette-paper {transition:transform .18s ease-out;}}
@media (max-height:480px) {
  .hall-a[open] {justify-content:flex-start;overflow-y:auto;--hall-extra-space:0px;}
  .hall-stage {flex:none;overflow:visible;}
  .hall-stage .hall-machine {width:min(100%,280px);margin:0 auto;}
  .hall-gazette {--pocket-bottom:1.35%;}
  .hall-a .panda-hall-entry,.hall-a .hall-return-origin {position:static;}
}

#gazette-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) 0 env(safe-area-inset-left,0px);
  border: 0;
  border-radius: 0;
  background: #23312e;
  color: #eee4cb;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-user-select: text;
  user-select: text;
}
#gazette-dialog::backdrop {background:#23312e;}
#gazette-dialog [hidden] {display:none!important;}
.gazette-loading {min-height:100%;display:flex;flex-wrap:wrap;align-content:center;align-items:center;justify-content:center;gap:12px;padding:24px;text-align:center;}
.gazette-loading p {flex:0 0 100%;font:700 22px/1.6 "Songti SC","Noto Serif CJK SC",SimSun,serif;margin:0 0 12px;}
.gazette-loading button {min-height:44px;border:1px solid #c7baa0;padding:8px 20px;background:#eee6d2;color:#41372a;font-size:15px;touch-action:manipulation;}
