/* Artwork for characters only; all labels and controls stay live text. */
.art-sprite{background-repeat:no-repeat;border:0!important;border-image:none!important;border-radius:0;box-shadow:none;filter:none}.result-characters .portrait.art-sprite,.title-members .portrait.art-sprite{background-color:transparent;overflow:hidden}.art-sprite svg{opacity:0}.art-sprite:after{display:none!important}.result-characters .member-tile{transform:none!important}.title-members .portrait.art-sprite{aspect-ratio:1.3;clip-path:inset(6% 3% round 10px)}
.primary{border:2px solid #ffd5f7;border-image:none;background:linear-gradient(180deg,#ff45d9,#a50076);border-radius:28px;box-shadow:0 0 4px #fff,0 0 15px #ff29bc,inset 0 0 0 4px #b9008299,inset 0 0 15px #ffb0ef;padding:6px 18px;color:#fff;font-style:italic;text-shadow:0 0 4px #fff,0 0 8px #b30085;filter:none}.primary:hover{filter:brightness(1.15)}.title-actions .start-button,.difficulty-actions .start-button{border-radius:40px;min-height:60px;background:linear-gradient(180deg,#ff4de0,#d00093 55%,#930069);box-shadow:0 0 4px white,0 0 17px #ff27d0,inset 0 0 0 4px #ff7dde99,inset 0 0 14px #ff8de5}
.gameplay{--arena:min(58vw,calc(100dvh - 132px))}.level-hud{padding-right:0}.game-bottom #gimme-label{font:italic 950 clamp(22px,2.5vw,38px)/1 Arial,sans-serif;font-synthesis:style weight;width:auto;height:auto;flex:1;white-space:nowrap;color:#fff1fd;paint-order:stroke fill;-webkit-text-stroke:1px #ff4bd3;text-shadow:0 0 5px #ff27cd,0 0 12px #d0009f}.game-bottom>b{font-size:clamp(12px,1.3vw,22px)}.game-bottom .hint-button{font-size:12px;min-width:68px;min-height:29px;border:1px solid #a0eaff;border-image:none;border-radius:7px;background:#071c3d;color:#effcff;padding:3px 8px;box-shadow:0 0 7px #24bdff;white-space:nowrap}.pause-toggle{display:none!important}body[data-screen=game] .pause-toggle{display:grid!important;place-items:center}.pause-toggle span{display:block;width:15px;height:21px;border-left:5px solid currentColor;border-right:5px solid currentColor;filter:drop-shadow(0 0 4px #8eeaff)}.corner-controls .home-controls{gap:10px}
.modal-head h2{font:italic 900 clamp(30px,4vw,57px)/1.15 Arial,sans-serif;font-synthesis:style weight;color:#fff;height:auto!important;min-height:0;text-align:center;letter-spacing:.025em;paint-order:stroke fill;-webkit-text-stroke:1px #ed6eff;text-shadow:0 0 5px #e848ff,0 0 15px #bf1ce4}.pause-card{width:min(470px,calc(100vw - 24px));padding:65px 20px 15px;max-height:calc(100dvh - 24px)}.pause-card .modal-head h2{font-size:48px;margin:6px auto 10px}.pause-emblem{left:calc(50% - 24px);top:8px;width:48px;height:48px;font-size:0;display:grid;place-items:center}.pause-emblem:after{content:'';width:14px;height:23px;border-left:5px solid #fff;border-right:5px solid #fff;filter:drop-shadow(0 0 5px #ff5be2)}.pause-actions button{min-height:54px;font-size:26px}.pause-actions{gap:10px}.pause-summary{font-size:12px;margin:10px 0}.pause-help{margin-top:9px}.pause-note{margin-top:6px}.how-card .modal-head h2{width:85%;font-size:clamp(28px,4vw,54px);margin:0 auto 8px;color:#effcff;-webkit-text-stroke:1px #2ddaff;text-shadow:0 0 5px #33bfff,0 0 15px #663aff}.how-card .wide{font-size:27px}.close-button{right:10px;top:10px}
.difficulty-card .portrait{aspect-ratio:1;height:auto;max-height:none}.difficulty-card .difficulty-members .member-tile{width:min(calc((100% - 12px)/3),12dvh)}.difficulty-card.easy .difficulty-members .member-tile,.difficulty-card.normal .portrait-row:first-child .member-tile{width:min(calc((100% - 6px)/2),12dvh)}.difficulty-card.gimme .portrait-row:last-child .member-tile{width:min(calc((100% - 18px)/4),12dvh)}
@media(max-width:800px){.game-shell{width:min(100%,calc(100dvh - 132px))}.game-bottom #gimme-label{font-size:24px}.game-bottom>b{font-size:11px}.game-bottom .hint-button{font-size:11px;min-width:64px}.pause-card .modal-head h2{font-size:42px}.pause-card{padding:63px 14px 12px}.how-card .modal-head h2{width:78%;margin-left:0;font-size:27px}.difficulty-card .difficulty-members .member-tile{width:calc((100% - 12px)/3);max-width:65px}.difficulty-card.easy .difficulty-members .member-tile,.difficulty-card.normal .portrait-row:first-child .member-tile{width:calc((100% - 6px)/2);max-width:65px}.difficulty-card.gimme .portrait-row:last-child .member-tile{width:calc((100% - 18px)/4)}.difficulty-card .portrait{max-height:none}.difficulty-actions .start-button{font-size:24px;min-height:52px}.title-actions .start-button{min-height:55px;font-size:29px}}
.game-left{min-width:0;overflow:hidden}.game-left #game-logo,.game-left .image-logo{width:100%;min-width:0;max-width:100%}.game-left .image-logo img{width:100%;max-width:100%;height:auto}
/* Compact selection, a separate footer lane, and precisely centered pause bars. */
.pause-emblem{display:block;font-size:0;padding:0;position:absolute}.pause-emblem:after{content:'';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:16px;height:23px;box-sizing:border-box;border:0;background:linear-gradient(to right,#fff 0 5px,transparent 5px 11px,#fff 11px 16px);filter:drop-shadow(0 0 4px #ff7cef)}
body[data-screen=difficulty] #home-button{display:none}.difficulty-screen{grid-template-rows:minmax(130px,24dvh) minmax(0,1fr) 94px;height:min(100dvh,780px);min-height:0;align-self:center;padding:5px 24px 58px;gap:12px;align-content:center}.difficulty-grid{align-self:center;width:100%;height:min(48dvh,410px);gap:15px}.difficulty-card{height:100%;padding:4px 7px 6px;gap:3px}.difficulty-name{font-size:clamp(27px,3.1vw,48px)}.difficulty-members{gap:6px;padding:0;flex:1}.difficulty-stars{font-size:22px;line-height:1.1}.difficulty-spec>span{padding:4px 2px;font-size:16px}.difficulty-count{font-size:13px}.difficulty-actions{position:relative;height:94px;padding-top:24px;justify-content:center;gap:20px}.difficulty-actions .start-button{min-width:0;width:min(52vw,580px);height:62px;min-height:0}.difficulty-actions #difficulty-back{position:absolute;left:0;bottom:5px;min-height:40px;font-size:16px;padding:3px 14px}.difficulty-actions #selected-mode{position:absolute;top:0;left:50%;transform:translateX(-50%);font-size:12px;white-space:nowrap;text-align:center;margin:0}.difficulty-screen .screen-header>.image-logo{height:calc(100% - 42px)}
@media(max-width:800px){.difficulty-screen{display:flex;height:auto;min-height:100dvh;padding:8px 10px 64px;gap:10px}.difficulty-screen .screen-header{height:140px}.difficulty-grid{height:auto;gap:12px;align-self:stretch}.difficulty-card{height:235px;min-height:0}.difficulty-actions{width:100%;height:106px;padding:23px 0 0;flex-shrink:0}.difficulty-actions .start-button{width:74%;height:50px;margin-left:auto;font-size:22px}.difficulty-actions #difficulty-back{bottom:19px;font-size:13px;padding:3px 6px;min-height:37px}.difficulty-actions #selected-mode{font-size:11px}.difficulty-name{font-size:26px}.difficulty-stars{font-size:19px}.difficulty-spec>span{font-size:13px}.difficulty-count{font-size:11px}}
@media(min-width:801px){.difficulty-grid{height:min(50dvh,430px)}.difficulty-card .difficulty-members .member-tile{max-width:11dvh}.difficulty-count{line-height:1.2;flex-shrink:0}.difficulty-name{flex-shrink:0}.difficulty-members{margin:4px 0}}
@media(max-width:800px){.difficulty-actions{display:grid;grid-template-columns:78px minmax(0,1fr);align-items:center;height:95px;padding:24px 0 0;gap:8px}.difficulty-actions #difficulty-back{position:static;margin:0;width:100%;min-height:40px}.difficulty-actions .start-button{position:static;margin:0;width:100%;max-width:none;min-width:0;height:49px;font-size:20px;padding:4px 7px;letter-spacing:0}.difficulty-card{height:250px}.difficulty-card .difficulty-members .member-tile{max-width:48px!important}.difficulty-count{font-size:10px;line-height:1.3}.difficulty-members{margin:4px 0}.difficulty-name{font-size:24px}.difficulty-card .difficulty-members{flex:1}.difficulty-screen{padding-bottom:66px}}
/* 4.3 — stable header/footer lanes and full-height desktop arena. */
.pause-emblem{display:none!important}.pause-card{padding-top:22px}.pause-card .modal-head h2{margin:8px auto 16px;width:80%}
.gameplay{--arena:min(calc(100vw - 352px),calc(100dvh - 130px));grid-template-columns:minmax(150px,1fr) var(--arena) minmax(165px,.85fr);padding-top:0;padding-bottom:0}.game-shell{align-self:center}.game-left .image-logo{max-height:25dvh}.game-left .image-logo img{max-height:25dvh;object-fit:contain}
.difficulty-screen{height:100dvh;grid-template-rows:minmax(130px,23dvh) minmax(0,1fr) 108px;padding:8px 24px 60px;gap:20px;align-content:stretch}.difficulty-screen .screen-header{justify-content:flex-start;gap:5px}.difficulty-screen .screen-header>.image-logo{height:calc(100% - 63px);flex-shrink:0}.difficulty-screen .screen-header p{margin:7px 0 12px;line-height:1.4}.difficulty-grid{height:min(47dvh,420px)}.difficulty-actions{height:108px;padding-top:39px;align-items:flex-end;padding-bottom:2px}.difficulty-actions #selected-mode{top:15px;line-height:20px;background:#03102bd9;padding:2px 15px;border-radius:12px}.difficulty-actions .start-button{height:60px}.difficulty-actions #difficulty-back{position:fixed;left:22px;bottom:12px;z-index:21;min-height:42px}.difficulty-card{padding-top:7px}.difficulty-card .difficulty-members .member-tile{max-width:10dvh}
.result-screen{padding-bottom:78px}.result-characters .portrait.art-sprite{border:0!important;outline:0;box-shadow:none!important;filter:none!important;background-color:transparent!important}.result-characters .member-tile[data-member="1"] .portrait{clip-path:polygon(6% 1%,98% 15%,96% 98%,0 84%)}.result-characters .member-tile[data-member="2"] .portrait{clip-path:polygon(4% 1%,99% 10%,95% 99%,0 87%)}.result-characters .member-tile[data-member="3"] .portrait{clip-path:polygon(8% 0,99% 10%,97% 99%,0 95%)}.result-characters .member-tile[data-member="4"] .portrait{clip-path:polygon(3% 21%,89% 0,100% 81%,0 100%)}.result-characters .member-tile[data-member="5"] .portrait{clip-path:polygon(3% 10%,94% 0,100% 88%,0 100%)}.result-characters .member-tile[data-member="6"] .portrait{clip-path:polygon(0 9%,97% 0,100% 96%,1% 100%)}.result-characters .member-tile[data-member="7"] .portrait{clip-path:polygon(4% 1%,99% 0,100% 98%,0 100%)}
@media(max-width:800px){.gameplay{display:flex;padding:0 1px}.game-shell{width:min(100%,calc(100dvh - 132px))}.pause-card{padding-top:20px}.difficulty-screen{display:flex;height:auto;min-height:100dvh;padding:10px 10px 78px;gap:18px}.difficulty-screen .screen-header{height:159px}.difficulty-screen .screen-header>.image-logo{height:100px}.difficulty-grid{height:auto}.difficulty-card .difficulty-members .member-tile{max-width:48px!important}.difficulty-actions{display:flex;justify-content:center;height:102px;align-items:flex-end;padding-top:34px}.difficulty-actions .start-button{width:100%;height:51px}.difficulty-actions #selected-mode{top:7px}.difficulty-actions #difficulty-back{position:fixed;left:12px;bottom:10px;width:auto;font-size:13px;padding:4px 10px;min-height:39px}.result-screen{padding-bottom:80px}}
@media(max-height:500px) and (min-width:650px){.gameplay{display:flex}.game-shell{width:auto}}
/* Focus follows the existing button silhouette, without a rectangular outline. */
button:focus-visible,a:focus-visible,input:focus-visible,
button.pad-focus,a.pad-focus,input.pad-focus{outline:none!important;filter:brightness(1.22) drop-shadow(0 0 5px #67efff) drop-shadow(0 0 12px #e94dff)!important}
body[data-screen=game] #home-button{display:none!important}
body[data-screen=title] #home-button{display:none!important}
/* Individual clipped portraits: never crop characters from a complete screen. */
.title-members .member-tile .portrait,.result-characters .member-tile .portrait{clip-path:none!important;background:radial-gradient(ellipse at 50% 35%,var(--member-background),#071128 90%);border:2px solid var(--member-color)!important;border-radius:14px;box-shadow:0 0 10px var(--member-color),inset 0 0 18px var(--member-background)!important;overflow:hidden;position:relative}
.title-members .member-tile .portrait{aspect-ratio:1;height:auto}
.title-members .portrait svg,.result-characters .portrait svg{opacity:1;position:static;width:100%;height:100%;padding:5px;left:auto;top:auto;display:block}
.result-characters .member-tile{transform:rotate(-5deg)!important}
.result-characters.right .member-tile{transform:rotate(5deg)!important}
.result-characters .member-tile:nth-child(even){transform:rotate(4deg)!important}
.result-characters.right .member-tile:nth-child(even){transform:rotate(-4deg)!important}
.result-characters .portrait:after{display:none}
/* Neon lettering stays crisp; combo announcements have no backdrop plate. */
#board-message,#board-message.show{background:none;border:0;box-shadow:none;backdrop-filter:none;color:#fff1fc;font-family:'Arial Black','Yu Gothic UI',sans-serif;font-weight:900;paint-order:stroke fill;-webkit-text-stroke:2px #661056;text-shadow:0 0 2px #fff,0 0 6px #ff64e5,0 0 14px #fa20b8,0 2px 3px #08051c;line-height:1.22}
#board-message small{color:#f1fdff;-webkit-text-stroke:1px #083b69;text-shadow:0 0 3px #fff,0 0 7px #45e5ff,0 0 15px #098fff,0 2px 3px #050621;font-size:clamp(17px,2.2vw,29px);font-weight:900}
#board-overlay{background:transparent;backdrop-filter:none}
.ready-count{color:#fff1fc;-webkit-text-stroke:2px #7b175f;text-shadow:0 0 4px #fff,0 0 12px #ff4ada,0 0 26px #e319a9}
#board-overlay small{color:#dcfbff;text-shadow:0 0 4px #29e6ff,0 0 10px #1689ff,0 2px 3px #05061b}
.game-bottom #gimme-label{color:#fff1fb;-webkit-text-stroke:1px #b82791;text-shadow:0 0 3px #fff,0 0 7px #ff55d5,0 0 16px #e71bab}
.game-bottom #chain{color:#edfcff;font-family:'Arial Black',Arial,sans-serif;font-weight:900;paint-order:stroke fill;-webkit-text-stroke:1px #14668b;text-shadow:0 0 3px #fff,0 0 7px #35e6ff,0 0 15px #147dff}
.game-bottom .hint-button{color:#e8fcff;border-color:#6eeaff;background:linear-gradient(135deg,#092340,#120c30);text-shadow:0 0 4px #55eaff,0 0 9px #188eff;box-shadow:0 0 6px #38cfff88,inset 0 0 7px #35bfff33}
.operation-help{color:#bcf4ff;text-shadow:0 0 5px #159fdb,0 1px 2px #02071a}
/* Bound the result composition to the viewport, with a separate controls lane. */
.result-screen{width:100%;max-width:1280px;height:100dvh;min-height:0;margin:0 auto;padding:12px 24px 78px;grid-template-columns:minmax(90px,21%) minmax(0,1fr) minmax(90px,21%);grid-template-rows:minmax(90px,23%) minmax(0,1fr) 18px;gap:8px 20px;overflow:auto}
.result-screen>*{min-height:0;min-width:0}
.result-heading .screen-heading{height:clamp(35px,7dvh,65px);width:85%;margin:0 auto}
.result-heading{overflow:hidden}
.result-center{min-height:0;gap:6px}
.result-panel{min-height:0;padding:10px 12px;flex:1}
.result-score{font-size:clamp(36px,min(7vw,11dvh),100px);min-height:0}
.result-characters .member-tile,.result-characters.right .member-tile{min-height:0;min-width:0;max-width:230px;flex-shrink:1}
.result-screen .stats-grid{margin-top:6px;gap:5px}
.result-screen .stats-grid>div{padding:5px 2px;gap:3px}
.result-screen .stats-grid b{font-size:clamp(14px,2.8dvh,23px)}
.result-actions{margin-top:0;gap:8px;flex-shrink:0}
.result-actions .primary{min-height:42px;font-size:clamp(20px,3.5dvh,30px);padding:4px 10px}
.result-actions .secondary{min-height:38px;font-size:13px;padding:4px 8px}
.result-secondary{margin-top:0;flex-shrink:0;gap:8px}
.result-secondary .secondary{min-height:32px;padding:3px 8px}
.result-screen>.screen-motto{margin:0;font-size:10px}
@media(max-width:600px){.result-screen{padding:10px 10px 72px;grid-template-columns:48px minmax(0,1fr) 48px;grid-template-rows:100px minmax(0,1fr) 18px;gap:7px;max-width:600px}.result-heading{grid-column:1/-1}.result-characters.left,.result-characters.right{grid-row:2}.result-mini-logo{display:none}.result-panel{padding:8px 5px}.result-score{font-size:clamp(28px,9vw,48px)}.result-actions{gap:5px}.result-actions .primary{min-height:38px;font-size:21px}.result-actions .secondary{min-height:32px;font-size:11px}.result-secondary .secondary{font-size:10px;min-width:0}.result-screen .stats-grid{grid-template-columns:1fr 1fr}.result-screen .stats-grid span{font-size:8px}}
@media(max-height:540px){.result-screen{height:auto;min-height:100dvh;grid-template-rows:95px minmax(300px,1fr) 18px;overflow:visible}}
/* Posed neon cards, tilted as one piece so no second rectangular frame remains. */
.title-members .member-tile .portrait,.result-characters .member-tile .portrait{border:2px solid #fff4fc!important;border-radius:16px;background:radial-gradient(ellipse at 50% 75%,var(--member-color) 0%,var(--member-background) 53%,#080820 100%);box-shadow:0 0 3px #fff,0 0 8px var(--member-color),0 0 18px var(--member-color),inset 0 0 3px #fff,inset 0 0 15px var(--member-color)!important;isolation:isolate}
.title-members .portrait:before,.result-characters .portrait:before{content:'';position:absolute;inset:5px;border:1px solid var(--member-color);border-radius:10px;background:linear-gradient(125deg,#ffffff25,transparent 35%,transparent 65%,#ffffff16);pointer-events:none;z-index:0}
.title-members .portrait svg,.result-characters .portrait svg{position:relative;z-index:1;padding:2px;filter:drop-shadow(0 2px 4px #06062299)}
.title-members .portrait:after,.result-characters .portrait:after{content:'✧';display:block!important;position:absolute;right:5%;left:auto;top:5%;font-size:clamp(16px,2vw,30px);color:#fff;line-height:1;text-shadow:0 0 5px #fff,0 0 10px var(--member-color);z-index:2;pointer-events:none}
.title-members .member-tile:nth-child(odd){transform:rotate(-8deg)!important}.title-members .member-tile:nth-child(even){transform:rotate(8deg)!important}
.result-characters .member-tile{transform:rotate(-7deg)!important;width:90%}.result-characters.right .member-tile{transform:rotate(7deg)!important;width:90%}.result-characters .member-tile:nth-child(even){transform:rotate(6deg)!important}.result-characters.right .member-tile:nth-child(even){transform:rotate(-6deg)!important}
@media(max-width:600px){.title-members .member-tile .portrait,.result-characters .member-tile .portrait{border-radius:9px;box-shadow:0 0 3px #fff,0 0 8px var(--member-color),inset 0 0 8px var(--member-color)!important}.result-characters .member-tile,.result-characters.right .member-tile{width:94%;transform:rotate(-5deg)!important}.result-characters.right .member-tile{transform:rotate(5deg)!important}}
/* Wide slanted panels matching the original concept, rather than square cards. */
.title-members .member-tile .portrait{aspect-ratio:1.52;height:auto}
.title-members .member-tile .portrait,.result-characters .member-tile .portrait{border-radius:12px;transform:skewX(-7deg);background:radial-gradient(ellipse at 65% 65%,var(--member-color),var(--member-background) 62%,#070921);overflow:hidden}
.title-members .portrait svg,.result-characters .portrait svg{transform:skewX(7deg) scale(1.06);transform-origin:50% 70%;padding:0}
.title-members .member-tile:nth-child(odd){transform:rotate(-4deg)!important}.title-members .member-tile:nth-child(even){transform:rotate(4deg)!important}
.result-characters .member-tile,.result-characters.right .member-tile{width:94%;max-width:270px;max-height:160px;aspect-ratio:1.55;flex:0 1 auto}
.result-characters .member-tile .portrait{height:100%;aspect-ratio:auto}
.result-characters .member-tile{transform:rotate(4deg)!important}.result-characters.right .member-tile{transform:rotate(-4deg)!important}.result-characters .member-tile:nth-child(even){transform:rotate(2deg)!important}.result-characters.right .member-tile:nth-child(even){transform:rotate(-2deg)!important}
@media(max-width:600px){.result-screen{grid-template-columns:minmax(65px,22%) minmax(0,1fr) minmax(65px,22%);gap:7px}.result-characters .member-tile,.result-characters.right .member-tile{width:94%;height:auto;aspect-ratio:1.35;max-height:100px}.result-characters .member-tile .portrait{height:auto;aspect-ratio:1.35}.result-screen .result-score{font-size:clamp(25px,8vw,42px)}.result-screen .stats-grid b{font-size:14px}.result-screen .result-actions .primary{font-size:18px}.result-screen .result-actions .secondary{font-size:10px}}
/* Mobile touch: scroll menus, drag the board, never turn repeated taps into zoom. */
html,body{overscroll-behavior:none;touch-action:pan-y;-webkit-text-size-adjust:100%}
.screen,.modal-card{touch-action:pan-y;overscroll-behavior:contain}
button,a,input,select{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.screen,.corner-controls,.modal-card{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
#board-wrap,#board,#board canvas,#hint-button,#pause-button{touch-action:none}
img,svg{-webkit-user-drag:none}
@media(pointer:coarse){select,input{font-size:16px}.corner-controls{bottom:max(14px,env(safe-area-inset-bottom))}}

/* ===== v4.6.0 ===== */
/* Members not used by the current difficulty are dimmed in the roster. */
#member-strip .member-tile{transition:opacity .25s,filter .25s}
#member-strip .member-tile.is-out{opacity:.28;filter:grayscale(1) brightness(.75)}
/* TIME UP before the result screen. */
#board-overlay .ready-count.time-up{font-size:clamp(44px,12vw,104px);letter-spacing:.02em;white-space:nowrap;animation:time-up-pop .45s cubic-bezier(.2,1.6,.4,1) both}
@keyframes time-up-pop{from{transform:scale(.4);opacity:0}to{transform:none;opacity:1}}
#app[data-state="TIME_UP"] #board canvas{filter:saturate(.45) brightness(.7);transition:filter .4s}
/* Hint text sits in the bottom bar instead of covering the board. */
.game-bottom #chain.is-hint{color:#fff6a8;-webkit-text-stroke:0;text-shadow:0 0 4px #ffb300,0 0 10px #ff8a00;font-family:inherit;font-weight:800;letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.game-bottom .hint-button:disabled{opacity:.55;filter:grayscale(.6)}
.result-panel .hint-count{display:inline-block;margin-left:8px;font-size:12px;font-weight:800;color:#fff6a8;text-shadow:0 0 6px #ff9d00;vertical-align:middle}
.result-secondary .secondary{min-width:min(160px,40vw)}
/* Phone: BACK and GAME START share one row instead of overlapping. */
@media(max-width:800px){
 .difficulty-actions{display:grid!important;grid-template-columns:auto minmax(0,1fr);align-items:end;gap:10px}
 .difficulty-actions #difficulty-back{position:static!important;width:auto;margin:0;min-height:44px;align-self:end}
 .difficulty-actions .start-button{width:100%!important;margin:0}
 .game-bottom #chain.is-hint{font-size:11px}
 /* Settings/sound move to the top corners so they never cover GAME START. */
 body[data-screen="difficulty"] .corner-controls{top:max(10px,env(safe-area-inset-top));bottom:auto!important}
}
