/* Give clue numbers their own readable space without hiding any saved evidence. */
.game-center>.restored-clues .saved-gap .saved-number{width:42px;max-width:100%}
.game-center>.restored-clues .clue-face{max-width:40px}
.game-center>.restored-clues .dot-clue>.tile{width:42px;max-width:42px}
.game-center>.restored-clues .clue-lane{gap:4px;padding:8px 0}
#categorise.illustrated-method,#compare.illustrated-method{grid-template-columns:1fr;grid-template-rows:42px auto auto;text-align:center;min-height:90px;gap:3px;padding:8px}
.game-layout .table .illustrated-method .method-picture{grid-column:1;grid-row:1;zoom:1;width:100%;height:40px;justify-content:center;gap:5px}
.game-layout .table .illustrated-method .method-name{grid-column:1;grid-row:2;font-size:15px;align-self:center}
.game-layout .table .illustrated-method>small{grid-column:1;grid-row:3;font-size:11px;text-align:center}
.illustrated-method .demo-face{width:25px;height:32px;border-radius:7px}
.illustrated-method .demo-face:before,.illustrated-method .demo-face:after{top:6px;width:8px;height:9px}
.illustrated-method .demo-gap,.illustrated-method .demo-number{width:32px;height:36px;font-size:20px;border-radius:7px}
.illustrated-method .demo-gap b{font-size:15px;top:-12px}
.illustrated-method .demo-number small,.illustrated-method .secret-demo small{font-size:9px}
.illustrated-method .secret-demo{width:32px;height:36px}.illustrated-method .secret-demo b{font-size:15px}
.illustrated-method .demo-match{font-size:16px}
#answer-dialog{width:min(1000px,calc(100vw - 28px));max-width:1000px;padding:30px;max-height:calc(100dvh - 28px);overflow:auto;border:2px solid #d7f28788;border-radius:24px;box-shadow:0 24px 100px #0009}
#answer-dialog::backdrop{background:#100b20b8;backdrop-filter:blur(7px)}
#answer-dialog[open]{animation:answer-appear .25s ease-out}
#answer-dialog .close{float:right;margin-bottom:12px}
#answer-dialog .visual-answer{clear:both}
#answer-dialog .answer-intro{gap:24px;margin:16px 0 30px}
#answer-dialog .answer-intro>.tile{width:100px;max-width:100px;flex:none}
#answer-dialog .answer-intro b{font-size:clamp(21px,3vw,30px)}
#answer-dialog .answer-intro p{font-size:16px;max-width:520px}
#answer-dialog .gap-rack{gap:10px;padding:20px 0}
#answer-dialog .gap-row{gap:10px}
#answer-dialog .gap-rack .tile{width:100%;max-width:90px}
#answer-dialog .gap{height:90px;border-radius:14px;min-width:0}
#answer-dialog .gap span{font-size:30px}
#answer-dialog .gap small{font-size:12px}
#answer-dialog .compare-answer{flex-wrap:wrap;gap:24px;padding:20px}
#answer-dialog .compare-answer>.tile{width:115px;max-width:115px}
#answer-dialog .compare-answer>button:not(.tile){min-height:64px;font-size:18px;padding:16px 24px}
#answer-error{padding:12px;background:#802f4766;border:1px solid #ff8799;border-radius:12px;color:#ffced6}
.answer-rack-phone{display:none}
@keyframes answer-appear{from{opacity:0;transform:translateY(15px) scale(.97)}to{opacity:1;transform:none}}
@media(min-width:1280px){.game-layout .thinking-board .note-grid{grid-template-columns:repeat(12,minmax(0,1fr))}}
@media(min-width:1400px) and (min-height:700px){
 .playing main#app{max-width:none;width:100%;margin:0}
 .playing .game-layout{grid-template-columns:120px minmax(0,1fr) 230px;gap:12px}
 .playing .game-center{grid-template-columns:minmax(580px,1fr) minmax(300px,.34fr);gap:12px}
 .game-center>.restored-clues .saved-gap .saved-number{width:52px}
 .game-center>.restored-clues .clue-face{max-width:48px}
 .game-layout .thinking-board .note-grid .tile{max-width:100px}
 .game-layout .table .revealed-rack>.tile{width:clamp(60px,4.5vw,85px)}
 .game-layout .opponents .player>.rack>.tile{width:48px;max-width:48px}
 .game-layout .own-rack .secret-face .tile{width:36px}
 .game-center>.table{padding:14px}
}
@media(max-width:660px){
 .game-center>.restored-clues .saved-gap .saved-number{width:32px}
 .game-center>.restored-clues .clue-face{max-width:32px}
 #answer-dialog{padding:14px;width:calc(100vw - 16px);border-radius:18px}
 #answer-dialog .answer-intro{gap:12px;margin:8px 0 20px}
 #answer-dialog .answer-intro>.tile{width:70px}
 #answer-dialog .answer-intro p{font-size:13px}
 #answer-dialog .gap-rack,#answer-dialog .gap-row{gap:3px}
 #answer-dialog .answer-rack-wide{display:none}
 #answer-dialog .answer-rack-phone{display:block}
 #answer-dialog .answer-rack-phone .gap-rack{display:flex;flex-direction:column;gap:15px;align-items:stretch}
 #answer-dialog .answer-rack-phone .gap-row{display:flex;justify-content:center;align-items:center;gap:5px}
 #answer-dialog .answer-rack-phone .gap-row>.tile{width:50px;max-width:50px;flex:none}
 #answer-dialog .answer-rack-phone .gap-row>.gap{flex:1;max-width:50px}
 #answer-dialog .gap{height:62px;border-radius:8px;padding:1px}
 #answer-dialog .gap span{font-size:21px}
 #answer-dialog .gap small{font-size:8px}
 #answer-dialog .compare-answer{gap:12px;padding:12px 0}
 #answer-dialog .compare-answer>button:not(.tile){font-size:15px;padding:12px;flex:1;min-width:110px}
}
@media(prefers-reduced-motion:reduce){#answer-dialog[open]{animation:none}}

