.toolbar{grid-template-columns:minmax(130px,1.25fr) minmax(130px,1.25fr) repeat(6,minmax(70px,1fr))!important;gap:8px!important}.toolbar button,.toolbar label{min-width:0}.cell{position:relative}.cage-sum{position:absolute;top:2px;left:3px;font-size:8px!important;line-height:1;color:#31586a;font-weight:900}.coral-mode .cell[data-cage-tone="0"]{background:linear-gradient(145deg,#ffe8df,#ffd0c3)}.coral-mode .cell[data-cage-tone="1"]{background:linear-gradient(145deg,#fff5c9,#ffe3a2)}.coral-mode .cell[data-cage-tone="2"]{background:linear-gradient(145deg,#ddf8f4,#bdebe6)}.coral-mode .cell[data-cage-tone="3"]{background:linear-gradient(145deg,#f1e8fb,#dfcff1)}.coral-mode .cell[data-cage-tone="4"]{background:linear-gradient(145deg,#edf7d3,#d7eaa7)}.coral-mode .cell{outline:1px solid #5a8c93;outline-offset:-3px}.coral-mode .cell.related{box-shadow:inset 0 0 0 999px #56c9dc24}.coral-mode .cell.same{box-shadow:inset 0 0 0 999px #1ba9c33d}.coral-mode .cell.selected{background:#d5ff5f!important;box-shadow:inset 0 0 0 3px #52731f,0 0 0 2px #fff!important;outline:0}.coral-mode .cell.given{color:#10283b}.cell.hinted{box-shadow:inset 0 0 0 4px #d5ff5f!important;animation:hintPulse 1.2s ease-in-out infinite}.cell.conflict{color:#a53f32!important;background:#ffe5df!important}.reef-progress{display:grid;grid-template-columns:repeat(9,1fr);gap:4px;margin:11px 0}.reef-progress i{display:block;height:13px;border-radius:4px 4px 8px 8px;background:#dbe5e2;transition:.25s}.reef-progress i.restored{background:linear-gradient(135deg,#ff8668 0 34%,#d5ff5f 35% 65%,#48c5d8 66%);transform:translateY(-2px)}@keyframes hintPulse{50%{box-shadow:inset 0 0 0 2px #67d6e7}}
@media(max-width:760px){.sudoku-sea{min-height:150px!important;padding:26px 18px!important}.sudoku-sea h1{font-size:clamp(34px,11vw,48px)!important}.sudoku-sea span{font-size:13px}.game-shell{padding:16px 12px!important}.sudoku-daily-set{display:block!important;padding:13px!important;margin-bottom:12px!important}.daily-set-head h2{font-size:17px!important}.daily-set-head>span{display:none}.daily-puzzle-list{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;gap:7px!important;margin-top:10px!important;scroll-snap-type:none}.daily-puzzle-list button{min-width:0;min-height:64px!important;padding:9px!important}.daily-puzzle-list button span{display:none}.daily-puzzle-list button b{margin-top:4px!important}.sudoku-daily-set>#sudokuDailyStatus{margin:7px 0 0!important;font-size:10px!important}.game-head{margin-bottom:10px!important}.game-head h2{font-size:21px!important}.toolbar{display:grid!important;grid-template-columns:1fr 1fr 1fr 1fr!important;gap:6px!important;margin-bottom:12px!important}.toolbar label{grid-column:span 2;padding:7px 9px!important}.toolbar button{min-height:38px!important;padding:6px!important;font-size:10px!important}.play-area{gap:8px!important}.play-area aside{position:relative!important;width:100%!important;padding:8px 0 calc(env(safe-area-inset-bottom) + 4px)!important}.shoal-meter{margin:0 0 6px!important}.reef-progress{margin:7px 0}.play-area aside #gameMessage{min-height:34px;margin:7px 0!important;font-size:12px!important}.number-pad{position:sticky;bottom:calc(env(safe-area-inset-bottom) + 4px);z-index:5;display:grid!important;grid-template-columns:repeat(9,1fr)!important;gap:3px!important;padding:5px;background:#f3f4ee;border:1px solid #d7dfdc;border-radius:12px}.number-pad button{min-height:42px!important;padding:0!important;font-size:18px!important;border-radius:8px!important}.erase{min-height:38px!important;margin-top:6px!important}.tip{display:none!important}.cage-sum{font-size:7px!important}}
@media(max-width:380px){.number-pad button{font-size:16px!important}.toolbar{grid-template-columns:repeat(3,1fr)!important}.toolbar label{grid-column:span 3}.sudoku-grid{width:min(100%,350px)!important;height:auto!important;aspect-ratio:1}}
@media(prefers-reduced-motion:reduce){.cell.hinted{animation:none}}
.sudoku-grid{border-width:4px;gap:1px}.cell:nth-child(3n){border-right-width:3px}.cell:nth-child(9n){border-right-width:0}.cell:nth-child(n+19):nth-child(-n+27),.cell:nth-child(n+46):nth-child(-n+54){border-bottom-width:3px}

/* Board-first Sudoku experience */
.game-shell{display:flex;flex-direction:column}.sudoku-daily-set{order:1}.game-head{order:2}.puzzle-settings{order:3}.play-area{order:4}
.puzzle-settings{margin:14px 0}.puzzle-settings summary{width:max-content;min-height:42px;padding:11px 14px;border:1px solid #cad5d2;border-radius:11px;background:#f7fbfa;color:#183847;font-size:11px;font-weight:800;cursor:pointer;list-style:none}.puzzle-settings summary::-webkit-details-marker{display:none}.puzzle-settings summary:focus-visible{outline:3px solid #ff9f3e;outline-offset:2px}.puzzle-settings[open] summary{background:#e8f6f5;border-color:#87bdc2}.puzzle-settings .toolbar{display:grid!important;grid-template-columns:minmax(160px,1fr) minmax(160px,1fr) repeat(3,minmax(96px,.7fr))!important;margin:9px 0 0!important}.puzzle-settings .toolbar label{padding:0}.puzzle-settings .toolbar select{width:100%}
.play-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:9px 0 18px}.play-actions button{min-width:0;min-height:44px;padding:7px;border:1px solid #cad5d2;border-radius:10px;background:#fff;color:#10283b;font-size:11px;font-weight:800;cursor:pointer}.play-actions button:hover,.play-actions button:focus-visible{border-color:#087f8c;background:#e8f6f5;outline:2px solid #69d2e766}.play-actions button[aria-pressed="true"]{border-color:#087f8c;background:#d9f2f5;color:#075e6a;box-shadow:inset 0 0 0 2px #69d2e766}.play-actions button:disabled{opacity:.42;cursor:not-allowed}
.cell{color:#075e6a}.coral-mode .cell[data-cage-tone="0"]{background:#fff0e8}.coral-mode .cell[data-cage-tone="1"]{background:#fff8dd}.coral-mode .cell{outline:0;color:#075e6a}.coral-mode .cell::after{content:"";position:absolute;z-index:1;inset:2px;pointer-events:none;border-color:#a94434;border-style:solid;border-width:0}.coral-mode .cell[data-cage-top="true"]::after{border-top-width:2px}.coral-mode .cell[data-cage-right="true"]::after{border-right-width:2px}.coral-mode .cell[data-cage-bottom="true"]::after{border-bottom-width:2px}.coral-mode .cell[data-cage-left="true"]::after{border-left-width:2px}.coral-mode .cell.related{box-shadow:inset 0 0 0 999px #56c9dc1f}.coral-mode .cell.same{box-shadow:inset 0 0 0 999px #1ba9c333}.coral-mode .cell.selected{background:#d5ff5f!important;box-shadow:inset 0 0 0 3px #52731f!important}.coral-mode .cell.selected::after{opacity:.28}.coral-mode .cell.given{color:#10283b}.cage-sum{z-index:2;color:#6b352c}.cell.conflict{color:#8f2f24!important;background:#fde7e4!important}.cell.hinted{box-shadow:inset 0 0 0 4px #54751c!important}

@media(max-width:760px){
  .sudoku-sea{min-height:118px!important;padding:20px 16px 34px!important}.sudoku-sea h1{margin:5px 0!important;font-size:34px!important;letter-spacing:-1.5px!important}.sudoku-sea span{font-size:11px!important}
  .game-shell{width:calc(100% - 12px)!important;padding:13px 8px!important;transform:translateY(-12px)!important}.game-head{order:1;padding:0 5px}.game-head h2{font-size:20px!important}.stats span{min-width:62px!important;padding:7px 8px!important}.stats small{font-size:7px!important}
  .play-area{order:2;gap:5px!important}.sudoku-grid{width:min(100%,382px)!important;margin:0 auto}.play-area aside{display:flex!important;flex-direction:column!important;padding:5px 2px calc(env(safe-area-inset-bottom) + 4px)!important}.play-area aside #gameMessage{order:1;min-height:30px!important;margin:5px 2px!important}.number-pad{order:2}.play-actions{order:3;margin:7px 0 11px}.shoal-meter{order:4;margin:3px 2px 5px!important}.reef-progress{order:5;margin:4px 2px 8px!important}.play-area aside>#shareSudoku{order:6}.tip{order:7}
  .puzzle-settings{order:3;margin:7px 4px 14px}.puzzle-settings summary{width:100%;min-height:42px;text-align:center}.puzzle-settings .toolbar{grid-template-columns:1fr 1fr!important;margin-top:7px!important}.puzzle-settings .toolbar label{grid-column:span 1!important;padding:7px 9px!important}.puzzle-settings .toolbar button{min-height:40px!important;font-size:10px!important}.puzzle-settings .toolbar #mistakeCheck{grid-column:1/-1}
  .sudoku-daily-set{order:4;margin:0 4px 5px!important;padding:12px!important}.daily-set-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.daily-set-head h2{margin:0!important;font-size:15px!important}.daily-set-head p{flex:0 0 auto}.daily-puzzle-list{padding-bottom:2px}.daily-puzzle-list button{width:100%;min-width:0}.sudoku-daily-set>#sudokuDailyStatus{margin-top:5px!important}
  .number-pad{bottom:calc(env(safe-area-inset-bottom) + 3px);padding:4px!important}.number-pad button{min-height:44px!important}.play-actions button{min-height:44px}.cage-sum{font-size:7px!important}
}

@media(min-width:761px) and (max-width:980px){
  .game-shell{width:min(700px,calc(100% - 36px))!important}.game-head{order:1}.play-area{order:2;grid-template-columns:1fr!important;gap:12px!important}.puzzle-settings{order:3}.sudoku-daily-set{order:4;margin-top:8px}.sudoku-grid{margin:0 auto}.play-area>aside{width:min(560px,100%);height:auto!important;margin:0 auto;display:flex;flex-direction:column}.play-area aside #gameMessage{order:1}.number-pad{order:2;grid-template-columns:repeat(9,minmax(0,1fr))!important}.number-pad button{min-height:48px!important;aspect-ratio:auto!important}.play-actions{order:3}.shoal-meter{order:4}.reef-progress{order:5}.play-area aside>#shareSudoku{order:6}.tip{order:7;margin-top:12px}.puzzle-settings .toolbar{grid-template-columns:1fr 1fr repeat(3,minmax(80px,.7fr))!important}
}
