/* Small screens must grow with their content instead of squeezing number fields. */
.supply-face{display:none}
@media(max-width:899px){
 .playing main#app{height:auto;min-height:0;overflow:visible;padding-bottom:max(16px,env(safe-area-inset-bottom))}
 .playing .game-layout,.game-center,.game-sidebar{height:auto;min-width:0}
 .game-layout .thinking-board{height:auto;max-height:none;overflow:visible;flex:none}
 .game-layout .thinking-board .note-grid{flex:none;grid-template-rows:none;grid-auto-rows:auto;min-height:auto}
 .game-layout .thinking-board .note-grid .tile{height:auto;width:100%;aspect-ratio:1/1.04;min-height:0;max-height:none;align-self:start}
 .game-layout .own-rack{height:auto;max-height:none;overflow:visible}
 .playing .game-layout>.pile-panel{height:auto;min-height:65px;max-height:none;overflow:visible}
 .game-layout .pile-panel .supply{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin-top:7px}
 .game-layout .pile-panel .supply-pick,.game-layout .pile-panel .supply-pick:last-child{display:flex;position:relative;grid-column:auto;min-width:0;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:62px;padding:6px 2px;font-size:10px;border-radius:12px;touch-action:manipulation}
 .game-layout .pile-panel .supply-face{display:inline-block;width:34px;height:auto;aspect-ratio:1/1.04;flex:none;pointer-events:none;animation:none}
 .game-layout .pile-panel .supply-pick>b{position:absolute;top:2px;right:2px;min-width:17px;padding:2px;border-radius:8px;background:#20152e;color:#f8f3ff;font-size:10px;line-height:1.2;pointer-events:none}
 .game-layout .pile-panel .supply-label{line-height:1;pointer-events:none}
 .game-layout .pile-panel .supply-pick:disabled{opacity:.5}
 .game-layout .pile-panel .supply-pick:active:enabled{transform:scale(.94)}
 .double-rack-mode .game-center>.restored-clues{max-height:none;overflow:visible}
 .double-rack-mode .restored-clues .clue-scroll{height:auto;max-height:none;overflow:visible;flex:none}
 .double-rack-mode .restored-clues .clue-lane.ten-clue-lane,.double-rack-mode .public-clue-board .clue-lane.ten-clue-lane{grid-template-columns:repeat(11,minmax(0,1fr));min-width:0;width:100%;gap:6px 1px;align-items:center}
 .double-rack-mode .clue-lane.ten-clue-lane:before{content:'↳';grid-row:2;grid-column:1;color:var(--accent);font-size:20px;text-align:center}
 .double-rack-mode .clue-lane.ten-clue-lane>.clue-colour:nth-child(12){grid-row:2;grid-column:2}
 .double-rack-mode .clue-lane.ten-clue-lane .clue-face,.double-rack-mode .clue-lane.ten-clue-lane .saved-number{max-width:27px}
 .double-rack-mode .clue-lane.ten-clue-lane .tile{width:100%;height:auto;aspect-ratio:1/1.04}
 .double-rack-mode .clue-lane.ten-clue-lane .saved-gap{min-width:0;min-height:27px}
}
@media(max-width:620px){
 .game-layout .own-rack .secret-entries{width:100%;max-width:none;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
 .game-layout .own-rack .secret-entry{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;min-width:0}
 .game-layout .own-rack .secret-face{line-height:0;flex:none}
 .game-layout .own-rack .secret-face .tile{width:32px;height:auto;aspect-ratio:1/1.04}
 .game-layout .own-rack .secret-entry input,.double-rack-mode .ten-entries .secret-entry input{width:100%;min-width:0;max-width:64px;min-height:36px;padding:4px 2px;margin:0;font-size:18px;line-height:1.2;flex:none;text-align:center}
 .game-layout .own-rack .not-dots{white-space:normal;overflow-wrap:anywhere;font-size:9px;margin:0}
 .game-layout .own-rack .revealed-value{margin:0;font-size:18px}
 .game-layout .own-rack .old-guess{font-size:10px;flex-basis:auto;overflow-wrap:anywhere}
 .game-layout .own-rack #guess{min-height:36px;margin-top:7px;font-size:13px}
 .game-layout .thinking-board .notes-head{gap:7px;flex-wrap:wrap}
 .game-layout .thinking-board .notes-head h2{font-size:16px}
 .game-layout .thinking-board #clear-notes{min-height:32px;font-size:11px}
 .game-layout .thinking-board .legend{display:flex;flex-wrap:wrap;gap:5px;font-size:10px}
 .playing .game-layout>.pile-panel{height:auto;min-height:65px}
 .double-rack-mode .game-layout .player>.rack{grid-template-columns:repeat(5,minmax(0,1fr));max-width:260px;gap:5px;margin:5px auto}
 .double-rack-mode .game-layout .player>.rack>.tile{width:32px;height:auto;aspect-ratio:1/1.04;justify-self:center}
}
@media(max-width:620px) and (orientation:portrait){
 .game-layout .thinking-board .note-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin-top:9px}
 .game-layout .thinking-board .note-grid .tile{max-width:64px;border-radius:9px 9px 4px 4px;touch-action:manipulation}
 .game-layout .thinking-board .note-grid .tile[data-mark='1']:after{font-size:clamp(30px,10vw,46px)}
 .game-layout .thinking-board{padding:10px}
}

