@charset "UTF-8";
@font-face{font-family:Nunito;src:url('./assets/fonts/nunito-latin.woff2') format('woff2');font-style:normal;font-weight:400 900;font-display:swap}
:root{color-scheme:light;--paper:#faf8f4;--ink:#292728;--muted:#757171;--line:#e5ddd7;--accent:#d43f36;--accent-dark:#bc3029;--sage:#e9ecdf;--sans:Nunito,ui-rounded,"Hiragino Sans","Yu Gothic","Malgun Gothic","PingFang SC","Microsoft YaHei","Noto Sans Arabic",system-ui,sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.5 var(--sans);-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{color:inherit;border:0;background:none;cursor:pointer}button:disabled{opacity:.6;cursor:wait}a{color:inherit;text-decoration:none}svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,canvas:focus-visible,textarea:focus-visible{outline:3px solid var(--accent);outline-offset:4px}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:-80px;inset-inline-start:20px;padding:12px 20px;background:var(--ink);color:#fff;z-index:99;border-radius:12px}.skip-link:focus{top:10px}
.site-header{height:74px;max-width:1320px;margin:auto;padding-inline:40px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;font-size:25px;font-weight:900;letter-spacing:-.9px}.brand svg{width:28px;height:28px}.brand-dot{color:var(--accent)}.header-tools{display:flex;align-items:center;gap:30px}.all-games{font-size:13px;font-weight:800;min-height:44px;display:flex;align-items:center}.all-games:hover{color:var(--accent)}.language-select{display:flex;align-items:center;gap:9px;position:relative}.language-select select{appearance:none;background:transparent;border:0;max-width:160px;padding:12px 25px 12px 0;font-size:13px;font-weight:700;min-height:44px;color:var(--ink);cursor:pointer}.language-select .chevron{position:absolute;inset-inline-end:0;pointer-events:none}.language-select:dir(rtl) select{padding:12px 0 12px 25px}
.page{max-width:1180px;margin:auto;padding:34px 40px 0}.intro{margin-bottom:18px}.title-lockup h1{font-weight:900;font-size:56px;letter-spacing:-2.4px;line-height:1.05;margin:0 0 14px;text-wrap:balance;overflow-wrap:anywhere}.title-lockup p{margin:0;font-size:18px;font-weight:700;line-height:1.5}.edition{display:none}html[lang^=zh] h1{letter-spacing:-1px;font-size:52px}html[lang=ja] h1,html[lang=ko] h1{font-size:46px;letter-spacing:-1.8px}html[lang=ar] h1{font-size:46px;letter-spacing:0}.challenge-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:13px}.challenge-badge{font-size:12px;font-weight:900;line-height:1.6;display:flex;align-items:center;gap:7px;min-width:0}.challenge-badge svg{width:16px;height:16px;color:#68705b}.leaderboard-link{display:flex;align-items:center;justify-content:center;gap:10px;background:var(--accent);color:#fff;min-height:52px;padding:13px 22px;border-radius:14px;font-size:17px;font-weight:900;line-height:1.3;box-shadow:0 4px 0 #b9342b;transition:background .18s,transform .18s,box-shadow .18s;flex-shrink:0}.leaderboard-link svg{width:22px;height:22px;stroke-width:2}.leaderboard-link:hover{background:var(--accent-dark);transform:translateY(-2px);box-shadow:0 6px 0 #b9342b}.leaderboard-link:active{transform:translateY(3px);box-shadow:0 1px 0 #b9342b}.mode-note{font-size:12px;line-height:1.7;color:var(--muted);margin:16px 0 20px}
.game-workspace{overflow:hidden;border-radius:24px;border:1px solid #ead6cd;background:#fffaf5;isolation:isolate;animation:arrive .45s ease both}.game-topline{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 24px;min-height:74px;background:#fcf0e8;border-bottom:1px solid #f0dfd5}.round-meta{min-width:0;display:flex;flex-direction:column;gap:2px}.round-meta>span:first-child{font-size:12px;font-weight:900}.food-name{font-size:11px;color:var(--muted);font-weight:600}.total-score{text-align:end;flex-shrink:0}.total-score>span{display:none}.total-score strong{font-size:27px;font-weight:900;font-variant-numeric:tabular-nums;line-height:1}.total-score small{font-size:17px;font-weight:800;color:#92857e}.round-dots{display:flex;gap:10px;list-style:none;margin:0;padding:0;direction:ltr}.round-dots li{width:10px;height:10px;background:#e0ccc1;border-radius:50%;position:relative;transition:background .2s,transform .2s}.round-dots li.current{background:var(--accent);box-shadow:0 0 0 4px #df493f12}.round-dots li.done{background:#8b9e85}.round-dots li.done.high{background:var(--accent)}.round-dots:dir(rtl),.score-receipt:dir(rtl){direction:rtl}.board-wrap{position:relative;display:flex;justify-content:center;background:#fae9e1;overflow:hidden}.board-wrap canvas{display:block;width:100%;height:auto;aspect-ratio:600/470;touch-action:none;cursor:crosshair;user-select:none;-webkit-user-select:none;outline-offset:-6px}.board-stamp{display:none}.game-bottomline{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:82px;padding:16px 24px;background:#fffaf5}.cut-prompt{display:flex;align-items:center;gap:11px;min-width:0}.gesture{display:flex;align-items:center;justify-content:center;color:var(--accent);flex-shrink:0}.gesture svg{width:27px;height:27px}.cut-prompt strong{font-weight:900;font-size:17px;line-height:1.5}.cut-prompt p{margin:3px 0 0;font-size:11px;color:var(--muted)}.cut-prompt.invalid strong{color:var(--accent)}.cut-prompt.invalid .gesture{animation:shake .3s ease}.target{display:none}.primary-button,.secondary-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:12px;font-size:15px;font-weight:900;line-height:1.4;min-height:48px;padding:12px 23px;max-width:100%;text-align:center;transition:background .18s,transform .18s}.primary-button{color:#fff;background:var(--accent);box-shadow:0 3px 0 #b9342b}.primary-button:hover{background:var(--accent-dark);transform:translateY(-1px)}.primary-button:active{transform:translateY(2px);box-shadow:0 1px 0 #b9342b}.secondary-button{border:1px solid var(--line);background:#fffaf6}.secondary-button:hover{background:#f2e9e2}.next-button{max-width:48%;flex-shrink:0;animation:arrive .25s ease both}.next-button svg:dir(rtl){transform:scaleX(-1)}.slice-result{min-width:0;animation:arrive .25s ease both}.split-values{display:flex;align-items:baseline;gap:9px;font-variant-numeric:tabular-nums;font-weight:900;line-height:1.15}.split-values bdi{font-size:32px;letter-spacing:-1px}.split-values bdi:first-child{color:var(--accent)}.split-values>span{font-size:20px;color:#c9bdb5}.slice-result p{font-size:11px;color:var(--muted);margin:5px 0 0;font-weight:700}
.utility-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:16px;min-height:65px}.personal-best{display:flex;align-items:center;gap:9px;min-width:0}.personal-best svg{color:var(--accent);width:19px;height:19px}.personal-best>div{display:flex;gap:9px;align-items:baseline;flex-wrap:wrap}.personal-best span{font-size:11px;font-weight:700;color:var(--muted)}.personal-best strong{font-weight:900;font-size:15px;font-variant-numeric:tabular-nums}.personal-best strong.empty{font-size:11px}.utilities{display:flex;gap:7px}.icon-button,.help-button{width:44px;height:44px;min-height:44px;display:inline-flex;justify-content:center;align-items:center;border:1px solid var(--line);border-radius:12px;background:#fffaf6;transition:background .18s,transform .18s}.icon-button:hover,.help-button:hover{background:#efe7e0;transform:translateY(-1px)}.help-button>span:last-child{display:none}.help-mark{font-size:21px;font-weight:800}.keyboard-note{font-size:11px;color:var(--muted);display:flex;gap:8px}
#leaderboard-home{display:none}.leaderboard-section{margin:28px 0 0;padding:25px 0 0;border-top:1px solid var(--line);min-width:0;scroll-margin-top:24px}.leaderboard-heading{display:flex;gap:14px;align-items:center;justify-content:space-between}.leaderboard-heading h2{font-size:24px;font-weight:900;line-height:1.3;letter-spacing:-.7px;margin:0;overflow-wrap:anywhere}.leaderboard-heading p{font-size:11px;color:var(--muted);margin:7px 0 0}.leaderboard-heading .icon-button{width:38px;height:38px;min-height:38px;border:0;background:transparent;flex-shrink:0}.leaderboard-status{color:var(--muted);font-size:12px;line-height:1.8;margin:18px 0}.leaderboard-emblem{display:block;width:85px;height:85px;margin:24px auto 10px;color:#b39fc5}.leaderboard-section.is-empty .leaderboard-status{text-align:center;font-weight:700;max-width:260px;margin:14px auto 24px}.leaderboard-section table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px;margin-top:12px}.leaderboard-section th{font-size:10px;color:var(--muted);font-weight:700;padding:12px 5px;text-align:start;border-bottom:1px solid var(--line)}.leaderboard-section th:first-child{width:42px}.leaderboard-section th:last-child{width:88px;text-align:end}.leaderboard-section td{padding:15px 5px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.rank-number{font-weight:900;font-size:17px}.rank-points{text-align:end;white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:900}.your-entry{background:var(--sage)}.you-label{display:inline-block;font-size:9px;font-weight:800;padding:1px 4px;background:#f0ded7;color:#8e3c32;margin-inline-start:6px;border-radius:4px}.leaderboard-me{padding:12px;font-size:12px;line-height:1.7;background:var(--sage);border-radius:10px;font-weight:800;margin-top:18px}
.summary-panel{text-align:center;padding:30px 28px 35px;min-height:535px;animation:arrive .4s ease both}.summary-mode .board-wrap,.summary-mode .game-bottomline,.summary-mode .game-topline{display:none}.result-decoration{color:var(--accent);margin-bottom:6px}.result-eyebrow{font-size:12px;color:var(--muted);font-weight:800;margin:0 0 6px}.summary-panel h2{font-size:35px;font-weight:900;line-height:1.25;letter-spacing:-1px;margin:0}.final-score{display:flex;align-items:baseline;justify-content:center;gap:10px;direction:ltr;margin:15px 0 0;font-variant-numeric:tabular-nums}.final-score bdi{font-size:82px;line-height:1;font-weight:900;letter-spacing:-4px;color:var(--accent)}.final-score>span{font-size:28px;font-weight:900;color:#a89b91}.new-best{font-size:13px;font-weight:800;color:var(--accent);margin:12px 0 0}.score-receipt{display:flex;justify-content:center;gap:12px;list-style:none;margin:26px 0 20px;padding:0;direction:ltr}.score-receipt li{width:66px;display:flex;align-items:center;flex-direction:column;gap:5px}.score-receipt canvas{width:55px;height:55px}.score-receipt strong{font-size:18px;font-weight:900}.score-receipt small{font-size:9px;color:var(--muted)}.result-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:22px}.result-actions button{min-width:160px}.ranking-form{width:100%;max-width:425px;text-align:start;border-top:1px solid var(--line);padding-top:20px;margin:22px auto 15px}.ranking-form>label{display:block;font-size:12px;font-weight:900;margin-bottom:9px}.submission-fields{display:flex;gap:9px;align-items:stretch}.submission-fields input{flex:1;min-width:0;width:100%;min-height:48px;border:1px solid #cfc1b9;background:#fffdf9;border-radius:11px;padding:11px 13px;color:var(--ink);font-size:16px;font-weight:700}.submission-fields .primary-button{font-size:13px;padding:12px 16px;flex-shrink:0;max-width:55%}.ranking-form>p{font-size:10px;color:var(--muted);line-height:1.7;margin:10px 0 0}.ranking-form #submission-status{font-size:12px;color:var(--accent);font-weight:800}.ranking-form #submission-status:empty{display:none}.ranking-form #submission-status.success{color:#466244}
.about-game{margin-top:35px;padding-top:28px;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:64px}.section-number{display:block;font-size:10px;font-weight:900;letter-spacing:1px;color:#ad8b7c;margin-bottom:8px}.about-game h2{font-size:20px;font-weight:900;margin:0 0 9px;line-height:1.4;letter-spacing:-.4px}.about-game p{font-size:12px;line-height:1.9;color:var(--muted);margin:0}.game-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;min-height:85px;border-top:1px solid var(--line);margin-top:32px;font-size:10px;color:var(--muted)}.game-footer p{flex:1;margin:0;text-align:center}.text-button{font-size:11px;min-height:44px;text-decoration:underline;text-underline-offset:4px}.toast{position:fixed;z-index:90;bottom:28px;inset-inline-start:50%;transform:translate(-50%,12px);opacity:0;pointer-events:none;background:var(--ink);color:#fff;padding:13px 22px;border-radius:13px;max-width:calc(100% - 30px);font-size:13px;transition:opacity .18s,transform .18s}.toast:dir(rtl){transform:translate(50%,12px)}.toast.visible{opacity:1;transform:translate(-50%,0)}.toast.visible:dir(rtl){transform:translate(50%,0)}
dialog{width:calc(100% - 32px);max-width:480px;max-height:85svh;overflow-y:auto;background:var(--paper);color:var(--ink);border:1px solid #e0d5ce;border-radius:22px;padding:35px 30px;box-shadow:0 25px 90px #2b1f1926}dialog[open]{animation:arrive .2s ease both}dialog::backdrop{background:#29232670;backdrop-filter:blur(7px)}dialog h2{font-size:28px;line-height:1.3;font-weight:900;letter-spacing:-.7px;margin:0 0 16px}dialog p,dialog li{font-size:13px;line-height:1.9;color:var(--muted)}dialog ol{padding-inline-start:22px}dialog li{padding-inline-start:3px;margin:9px 0}dialog>.primary-button{margin-top:18px;width:100%}.dialog-x{position:absolute;inset-inline-end:10px;top:8px;font-size:28px;width:44px;height:44px;color:var(--muted)}.dialog-ornament{display:block;font-weight:900;font-size:30px;color:var(--accent);margin-bottom:15px;direction:ltr}.keyboard-help{padding-top:12px;border-top:1px solid var(--line)}.dialog-actions{display:flex;gap:10px;margin-top:22px}.dialog-actions>button{flex:1}.policy-link{color:var(--accent);font-size:12px;text-decoration:underline;text-underline-offset:3px}#share-text{width:100%;padding:12px;background:#fffaf6;border:1px solid var(--line);border-radius:10px;resize:vertical;color:var(--ink);line-height:1.7;font-size:13px}#leaderboard-dialog{max-width:520px;padding:52px 27px 25px}#leaderboard-dialog .leaderboard-section{margin:0;border:0;padding:0}#leaderboard-dialog .leaderboard-emblem{margin-top:32px}.noscript{text-align:center;padding:30px}
.page:fullscreen{display:block!important;max-width:none;width:100%;margin:0;overflow:auto;background:var(--paper);padding:20px max(20px,calc((100vw - 760px)/2))}.page:fullscreen .intro,.page:fullscreen .mode-note{display:none}.page:fullscreen .challenge-header{display:flex}.page:fullscreen .game-workspace{max-width:700px;margin:auto}.page:fullscreen .board-wrap canvas{width:min(100%,calc((100svh - 260px)*1.2766))}.page:fullscreen .utility-row{max-width:700px;margin:auto}
@media(min-width:1500px){.page{max-width:1330px;column-gap:50px}.site-header{max-width:1410px}.title-lockup h1{font-size:66px}}
@media(min-width:600px) and (max-width:999px){.page{max-width:760px}.intro{text-align:center}.challenge-header{margin-top:22px}.game-workspace{max-width:650px;margin:auto}.utility-row{max-width:650px;margin:auto}.title-lockup h1{font-size:52px}}
@media(max-width:599px){
.site-header{height:60px;padding-inline:20px}.brand{font-size:22px;gap:7px}.brand svg{width:24px;height:24px}.header-tools{gap:10px}.all-games{display:none}.language-select{gap:6px}.language-select select{font-size:11px;max-width:139px}.language-select>svg:first-child{width:15px}.page{padding:23px 16px 0}.intro{margin-bottom:20px}.title-lockup h1{font-size:39px;letter-spacing:-1.5px;margin-bottom:9px;line-height:1.1}.title-lockup p{font-size:14px;font-weight:700}html[lang^=zh] h1{font-size:39px;letter-spacing:0}html[lang=ja] h1,html[lang=ko] h1{font-size:34px;letter-spacing:-1px}html[lang=ar] h1{font-size:35px;letter-spacing:0}.challenge-header{gap:10px;margin-bottom:15px}.challenge-badge{font-size:11px;gap:5px;flex:1}.challenge-badge svg{width:15px;height:15px}.leaderboard-link{font-size:14px;min-height:46px;border-radius:12px;padding:11px 16px;gap:7px}.leaderboard-link svg{width:18px;height:18px}.mode-note{font-size:10px;margin:0 0 13px}.game-workspace{border-radius:19px}.game-topline{padding:13px 14px;gap:11px;min-height:65px}.round-meta>span:first-child{font-size:10px}.food-name{font-size:10px}.round-dots{gap:6px}.round-dots li{width:7px;height:7px}.total-score strong{font-size:21px}.total-score small{font-size:12px}.game-bottomline{padding:14px;gap:12px;min-height:77px}.cut-prompt{gap:8px}.gesture svg{width:22px;height:22px}.cut-prompt strong{font-size:13px}.cut-prompt p{font-size:10px;margin-top:4px}.split-values{gap:7px}.split-values bdi{font-size:26px;letter-spacing:-.7px}.split-values>span{font-size:17px}.slice-result p{font-size:10px;line-height:1.5}.next-button{font-size:13px;padding:11px 14px;gap:6px}.next-button svg{width:16px;height:16px}.utility-row{padding-top:15px;gap:8px;min-height:59px}.personal-best{gap:6px}.personal-best svg{width:16px;height:16px}.personal-best>div{gap:3px;flex-direction:column}.personal-best span{font-size:10px}.personal-best strong{font-size:13px}.personal-best strong.empty{font-size:10px}.utilities{gap:5px}.icon-button,.help-button{width:40px;height:40px;min-height:40px;border-radius:11px}#fullscreen-button{display:none}.utilities svg{width:17px;height:17px}.leaderboard-section{margin-top:25px;padding-top:23px}.leaderboard-heading h2{font-size:22px}.leaderboard-emblem{width:66px;height:66px;margin-top:20px}.leaderboard-section.is-empty .leaderboard-status{font-size:11px;max-width:290px;margin-bottom:15px}.about-game{margin-top:26px;padding-top:25px;gap:24px}.about-game h2{font-size:17px}.about-game p{font-size:10px;line-height:1.9}.section-number{font-size:9px}.game-footer{gap:10px;margin-top:25px;min-height:80px;padding-block:14px}.game-footer p{flex-basis:100%;order:3;text-align:start;font-size:9px}.game-footer .text-button{margin-inline-start:auto;font-size:10px}.summary-panel{padding:24px 15px 28px;min-height:480px}.summary-panel h2{font-size:28px}.final-score bdi{font-size:72px}.final-score>span{font-size:24px}.score-receipt{gap:7px;margin-block:22px 18px}.score-receipt li{width:52px}.score-receipt canvas{width:46px;height:46px}.score-receipt strong{font-size:16px}.score-receipt small{font-size:8px}.submission-fields{flex-direction:column}.submission-fields .primary-button{width:100%;max-width:100%;min-height:48px;font-size:14px}.ranking-form{margin-top:20px}.ranking-form>p{font-size:10px}.result-actions{gap:9px}.result-actions button{min-width:0;flex:1;padding-inline:12px;font-size:14px}.result-actions svg{width:16px;height:16px}dialog{padding:34px 22px;border-radius:20px}dialog h2{font-size:25px}#leaderboard-dialog{padding:50px 20px 24px}
}
@media(max-width:359px){.site-header{padding-inline:14px}.page{padding-inline:12px}.brand{font-size:20px}.language-select select{max-width:128px}.title-lockup h1{font-size:35px}html[lang=ja] h1,html[lang=ko] h1{font-size:31px}.round-dots{gap:4px}.round-dots li{width:6px;height:6px}.total-score strong{font-size:19px}.game-topline{padding-inline:11px;gap:7px}.game-bottomline{padding-inline:11px}.cut-prompt strong{font-size:12px}.cut-prompt p{font-size:9px}.split-values bdi{font-size:23px}.next-button{font-size:12px;padding-inline:11px}.leaderboard-link{font-size:13px;padding-inline:13px}.challenge-badge{font-size:10px}.score-receipt{gap:4px}.score-receipt li{width:47px}.score-receipt canvas{width:43px;height:43px}.personal-best strong{font-size:12px}.personal-best span{font-size:9px}.about-game{gap:20px}.about-game h2{font-size:16px}}
@keyframes arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes shake{25%,75%{transform:translateX(-3px)}50%{transform:translateX(3px)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

.page:fullscreen .game-section{display:block}.page:fullscreen>.leaderboard-section,.page:fullscreen>.about-game,.page:fullscreen>.game-footer{display:none}

/* The ranking is part of the play surface, with no separate open action. */
.game-sidebar{min-width:0;margin-top:24px}.game-sidebar .utility-row{padding-top:0}.game-sidebar .leaderboard-section{margin-top:20px}.leaderboard-list{min-width:0;overflow-x:hidden}.game-sidebar .leaderboard-section.is-empty .leaderboard-status{max-width:280px;margin-bottom:16px}
@media(min-width:760px){
 .page{display:grid;grid-template-columns:minmax(0,1fr) minmax(248px,.48fr);gap:28px;align-items:start;padding:20px 28px 0}
 .game-section{min-width:0}.game-section .intro{margin-bottom:12px}.title-lockup h1,html[lang^=zh] h1,html[lang=ja] h1,html[lang=ko] h1,html[lang=ar] h1{font-size:34px;line-height:1.15;letter-spacing:-.8px}.title-lockup p{font-size:14px}.challenge-header{margin-bottom:10px}.mode-note{margin:0 0 12px;font-size:11px}
 .game-workspace{width:100%;border-radius:20px}.board-wrap canvas{width:min(100%,calc((var(--play-height,100svh) - 390px)*600/470));height:auto}.game-topline{padding:14px 18px;min-height:66px}.game-bottomline{padding:13px 18px;min-height:78px}.cut-prompt strong{font-size:15px}
 .game-sidebar{display:flex;flex-direction:column;gap:20px;margin:0;max-height:calc(var(--play-height,100svh) - 116px);min-height:0;padding-inline-start:24px;border-inline-start:1px solid var(--line)}
 .game-sidebar .utility-row{display:flex;flex-direction:column;align-items:stretch;gap:12px;min-height:0;padding:0}.game-sidebar .personal-best{min-height:35px}.game-sidebar .personal-best>div{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}.game-sidebar .personal-best strong.empty{font-size:12px}.game-sidebar .utilities{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.game-sidebar .utilities button{width:100%;min-width:0;height:44px}.game-sidebar #fullscreen-button{display:inline-flex}
 .game-sidebar .leaderboard-section{display:flex;flex-direction:column;min-height:0;margin:0;padding:18px 0 0}.game-sidebar .leaderboard-heading h2{font-size:22px}.game-sidebar .leaderboard-emblem{width:66px;height:66px;margin-top:20px}.game-sidebar .leaderboard-status{font-size:12px;margin-block:12px}.game-sidebar .leaderboard-list{overflow-y:auto;overscroll-behavior:contain;max-height:calc(var(--play-height,100svh) - 370px);min-height:0}.leaderboard-list th{position:sticky;top:0;background:var(--paper);z-index:1}.game-sidebar .leaderboard-section td{padding-block:12px}
 .about-game,.game-footer{grid-column:1/-1}.about-game{margin-top:6px}.game-footer{margin-top:4px}
 .page:fullscreen{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(248px,.48fr);padding:16px 24px;width:100%;max-width:1180px;margin-inline:auto;gap:28px}.page:fullscreen .game-section{display:block}.page:fullscreen .game-workspace{max-width:none}.page:fullscreen .board-wrap canvas{width:min(100%,calc((var(--play-height,100svh) - 220px)*600/470))}.page:fullscreen .game-sidebar{max-height:calc(var(--play-height,100svh) - 32px)}
}
/* Embedded pages already provide the game's name and short introduction. */
@media(min-width:760px){html.game-embedded .page{padding-top:16px}html.game-embedded .board-wrap canvas{width:min(100%,calc((var(--play-height,100svh) - 285px)*600/470))}html.game-embedded .game-sidebar{max-height:calc(var(--play-height,100svh) - 108px)}}

@media(min-width:760px){html.game-embedded .site-header{height:50px!important}html.game-embedded .page{padding-top:12px}html.game-embedded .board-wrap canvas{width:min(100%,calc((var(--play-height,100svh) - 253px)*600/470))}html.game-embedded .game-sidebar{max-height:calc(var(--play-height,100svh) - 80px)}}

@media(min-width:760px){
 html.game-embedded .site-header,html.game-embedded .challenge-header{display:none!important}
 html.game-embedded .page{padding-top:12px}
 html.game-embedded .game-topline{min-height:58px;padding:10px 16px}
 html.game-embedded .game-bottomline{min-height:68px;padding:10px 16px}
 html.game-embedded .board-wrap canvas{width:min(100%,calc((var(--play-height,100svh) - 170px)*600/470))}
 html.game-embedded .game-sidebar{max-height:calc(var(--play-height,100svh) - 24px)}
 .sidebar-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
 .sidebar-meta .personal-best{min-width:0}.sidebar-meta .personal-best>div{flex-direction:column;align-items:flex-start;gap:2px}
 .sidebar-meta .language-select{flex-shrink:0;gap:4px}.sidebar-meta .language-select>svg:first-child{display:none}.sidebar-meta .language-select select{font-size:11px;max-width:106px;padding-inline-end:17px}
 .game-sidebar>.utility-row{flex-shrink:0}.game-sidebar .leaderboard-section{flex:1;min-height:0}.game-sidebar .leaderboard-heading,.game-sidebar .leaderboard-status,.game-sidebar .leaderboard-emblem,.game-sidebar .leaderboard-me{flex-shrink:0}.game-sidebar .leaderboard-list{flex:1;max-height:none;min-height:0}
}

/* A bounded, keyboard-scrollable full ranking on phones as well as tablets. */
@media(max-width:759px){.leaderboard-list{max-height:55svh;overflow-y:auto;overscroll-behavior:contain}}
.leaderboard-list:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}
