/* v56.38 game skin for the other menus (the owner: "apply the same game skin to the pause, result, and 玩法/紀錄 menus"): 玩法/紀錄 (#menu),
   pause and result sit in the fal-made gold panel (public/ui/panel.webp, a nine-slice border image); buttons are the select screen's plates
   (jade, gold for the Enter button, navy for the rest). Same elements, words and touch targets. #room keeps its own look. */
:is(#menu,#pause-overlay,#result,#card-sheet,#shared-score) .menu-panel{box-sizing:border-box;padding:22px 22px 18px;border:28px solid transparent;border-image:url(ui/panel.webp) 16% fill/28px/0 stretch;border-image-source:image-set(url(ui/panel.avif) type("image/avif"),url(ui/panel.webp) type("image/webp"));filter:drop-shadow(0 12px 30px #000b)}
#pause-overlay,#result,#card-sheet,#shared-score{background:linear-gradient(160deg,#06151df0,#0c2a33d9),url(ui/bg.webp) center/cover no-repeat,#06151d;background:linear-gradient(160deg,#06151df0,#0c2a33d9),image-set(url(ui/bg.avif) type("image/avif"),url(ui/bg.webp) type("image/webp")) center/cover no-repeat,#06151d}
#menu h1{height:118px;margin:-6px auto 0;font-size:0;color:transparent;text-shadow:none;background:url(ui/logo.webp) center/contain no-repeat;background:image-set(url(ui/logo.avif) type("image/avif"),url(ui/logo.webp) type("image/webp")) center/contain no-repeat;filter:drop-shadow(0 4px 8px #0009)}
#menu h1 b{color:transparent}
#menu .edition{border-color:#e8c46a99;background:#0a1a2acc}
#menu .guide div{border-color:#e8c46a55;background:#0a1a2acc}
.pause-title,#result-title{font-style:italic;letter-spacing:.06em;color:#ffe9a8;text-shadow:0 3px 0 #6b3f00,0 0 3px #000,0 0 18px #ffcf5a66}
.pause-title{display:inline-block;padding:10px 54px 12px 66px;background:url(ui/banner.webp) center/100% 100% no-repeat;background:image-set(url(ui/banner.avif) type("image/avif"),url(ui/banner.webp) type("image/webp")) center/100% 100% no-repeat;filter:drop-shadow(0 3px 6px #0008)}
#result-grade{border-color:#e8c46a;color:#ffe9a8;background:radial-gradient(circle at 35% 30%,#3a2a0a,#0a1a2a 70%);box-shadow:0 0 0 3px #0a1a2a,0 6px 18px #000a;text-shadow:0 3px 0 #6b3f00}
#result.team #result-title{text-shadow:0 3px 0 #0b4a44,0 0 3px #000,0 0 18px #78eee066}
#result.team.lost #result-title{text-shadow:0 3px 0 #5a1d10,0 0 3px #000,0 0 18px #ffab9366}
:is(#menu,#pause-overlay,#result,#card-sheet,#shared-score) .primary{border:0;border-radius:0;padding-inline:12%;background:url(ui/btn-jade.webp) center/100% 100% no-repeat;color:#0c1f33;font-style:italic;text-shadow:0 1px 0 #ffffff99;box-shadow:none;white-space:nowrap;filter:drop-shadow(0 5px 8px #020f19aa)}
#resume,#restart,#room-menu{background-image:url(ui/btn-gold.webp)!important}
:is(#menu,#pause-overlay,#result,#card-sheet,#shared-score) .primary:active{transform:translateY(3px) scale(.98);box-shadow:none}
:is(#menu,#pause-overlay,#result,#card-sheet,#shared-score,#room) .secondary{border:0;border-radius:0;padding-inline:26px;background:url(ui/btn-navy.webp) center/100% 100% no-repeat;color:#ffe9a8;font-weight:800;filter:drop-shadow(0 3px 6px #020f19aa)}
:is(#menu,#pause-overlay,#result,#card-sheet,#shared-score,#room) .secondary:active{transform:scale(.97)}
:is(#menu,#pause-overlay,#result,#card-sheet,#shared-score,#room) :is(.primary,.secondary):focus-visible{outline:2px solid #ffe9a8;outline-offset:3px}
:is(#menu,#pause-overlay,#result,#card-sheet,#shared-score) .audio-test{border-color:#e8c46a88;background:#0a1a2acc}
@media (max-height:500px) and (orientation:landscape){:is(#menu,#pause-overlay,#result,#card-sheet,#shared-score) .menu-panel{padding:14px 18px 12px;border-width:20px;border-image-width:20px}#menu h1{height:64px}}
/* phones: a thin frame, so the result card keeps its width (its award cards and REMATCH stay on one line) */
@media (max-width:480px){:is(#menu,#pause-overlay,#result,#card-sheet,#shared-score) .menu-panel{padding:8px 2px 6px;border-width:14px;border-image-width:14px}#menu h1{height:92px}:is(#menu,#pause-overlay,#result,#card-sheet,#shared-score) .primary{padding-inline:7%}}
/* the result card fits a phone with REMATCH on screen and nothing to scroll (recap-check.cjs) with only 25-45 px to spare: there the frame is a
   thin 8 px gold line with no padding */
@media (max-width:480px),(max-height:760px){#result .menu-panel{padding:0;border-width:8px;border-image-width:8px}#result .primary{padding-inline:7%}}
@media (max-height:500px) and (orientation:landscape){#result .primary{padding-inline:5%}#result .secondary{padding-inline:14px}}
/* 360 px phones: a 3-character name beside the 你 badge needs the award card's full width, so the frame keeps only its top and bottom */
@media (max-width:380px){#result .menu-panel{border-width:8px 0;border-image-width:8px 0}}
/* the owner: "just update those btns": the last web-style buttons. 玩法/紀錄 and 開啟/測試音效 are navy plates; 對戰設定 and its dropdowns are a
   gold-edged navy bar (CSS only, so no more art to load) */
#select .team-entry button,#select .team-entry a.secondary,#menu .audio-test{border:0;border-radius:0;padding-inline:22px;background:url(ui/btn-navy.webp) center/100% 100% no-repeat;color:#ffe9a8;font-weight:800;filter:drop-shadow(0 3px 6px #020f19aa)}
#select .team-entry button:active,#select .team-entry a.secondary:active,#menu .audio-test:active{transform:scale(.97)}
/* the 中文 / EN button (public/i18n.js): a small square, so the header keeps its room for the title in either language */
#select .team-entry button.lang-toggle{width:48px;min-width:48px;padding-inline:0;font-size:12px}
#select .select-more,#select .select-job select,#select .side-choice select{border:1px solid #e8c46a99;border-radius:6px;background:linear-gradient(180deg,#14304a,#0a1a2a);box-shadow:inset 0 1px 0 #ffe9a833,0 3px 8px #020f1966;color:#ffe9a8}
#select .select-more::after{color:#e8c46a}
/* v56.81 (the owner: the room's START in the game's own plates, as the select screen's buttons): 開始對戰 · START is the select screen's 線上對戰
   plate (btn-gold, masked to its shape, the same shine, select.css's select-shine); once a guest has said 準備 it is the jade plate, still;
   SHARE and the room's other buttons are the navy plate of every secondary button above. */
#room .room-bar #room-go{border:0;border-radius:0;padding:6px 12%;background-color:transparent;background-image:linear-gradient(105deg,transparent 42%,#ffffff8c 50%,transparent 58%),url(ui/btn-gold.webp);background-size:300% 100%,100% 100%;background-repeat:no-repeat;-webkit-mask:url(ui/btn-gold.webp) center/100% 100% no-repeat;mask:url(ui/btn-gold.webp) center/100% 100% no-repeat;box-shadow:none;color:#0c1f33;font-weight:900;font-style:italic;letter-spacing:.06em;text-shadow:0 1px 0 #ffffff99;animation:select-shine 3.2s ease-in-out infinite}
#room .room-bar #room-go.ready{background-image:url(ui/btn-jade.webp);background-size:100% 100%;-webkit-mask-image:url(ui/btn-jade.webp);mask-image:url(ui/btn-jade.webp);color:#0c1f33;animation:none}
#room .room-bar #room-go:active{transform:translateY(3px) scale(.98)}
/* the mask clips the ↵ cap, so on the plate it sits inside the right edge (as on 線上對戰) */
html.keys #room .room-bar #room-go::after{top:8px;right:15%}
@media (prefers-reduced-motion:reduce){#room .room-bar #room-go{animation:none;background-image:url(ui/btn-gold.webp);background-size:100% 100%}}
/* SHARE's nudge (invite.css) is a glow of the plate itself, not a rounded ring around it; copied, it is the gold plate */
#room .room-bar #room-share.nudge::after{display:none}
#room .room-bar #room-share.nudge{animation:room-share-glow 1.4s ease-in-out 4}
@keyframes room-share-glow{50%{filter:drop-shadow(0 0 8px #ffe397cc)}}
#room .room-bar #room-share.copied{background:url(ui/btn-gold.webp) center/100% 100% no-repeat;color:#07171f}
@media (prefers-reduced-motion:reduce){#room .room-bar #room-share.nudge{animation:none}}
/* v56.82 the header's ☰ (select.js): a square plate, as the language button was; inside the menu, items are full-width plates */
#select .team-entry button.select-menu-toggle{width:48px;min-width:48px;padding-inline:0;font-size:20px;line-height:1}
#select .select-menu-list button,#select .select-menu-list button.lang-toggle,#select .select-menu-list a{width:100%;min-width:0;min-height:46px;padding-inline:22px;font-size:14px}
/* v56.96: 聯絡 is a link among the menu's buttons: laid out as they are, the same face. */
#select .select-menu-list a{display:flex;align-items:center;justify-content:center;box-sizing:border-box;margin:0;text-decoration:none;-webkit-tap-highlight-color:transparent}
#select .select-menu-list a:focus-visible{outline:3px solid #fff;outline-offset:3px}

