/* SENETY GAMES shared shell v1 — rules and storage remain game-specific. */
:root{color-scheme:light;--navy:#13243e;--blue:#2463eb;--bg:#f7f9fc;--ink:#13243e;--muted:#6c7890;--line:#d9e0eb;--paper:#fff;--teal:#13243e;--accent:#2463eb;--panel:#fff;--cell:#edf1f7}html,body{width:100%;height:auto;min-height:100svh;margin:0;overflow-x:clip;overflow-y:auto;background:#f7f9fc;color:#13243e;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;-webkit-text-size-adjust:100%;touch-action:pan-y}*{box-sizing:border-box}body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}input,select,textarea{-webkit-user-select:text;user-select:text;font-family:inherit}:where(main, dialog) button{font-family:inherit;cursor:pointer}:where(main, dialog) a{color:inherit}:where(main, dialog) button:focus-visible,:where(main, dialog) a:focus-visible,summary:focus-visible{outline:3px solid #8cb8ff;outline-offset:3px}main.sg-main{display:block;width:100%;max-width:480px;height:auto;min-height:0;margin:0 auto;padding:8px 10px max(16px,env(safe-area-inset-bottom));gap:0}.sg-panel{display:block;width:100%;background:#fff;border:1px solid #e0e5ee;border-radius:14px;padding:10px;box-shadow:0 5px 24px #16284a09}.sg-main .board,.sg-main .board-stage,.sg-main .board-shell,.sg-main .game:has(.inline-result:not([hidden])) .board-shell{width:min(100%,max(240px,calc(100svh - 280px)));min-width:0;max-width:100%;aspect-ratio:1;margin:0 auto}.sg-main .actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0 0;padding:0}.sg-main .actions button{height:48px;min-height:48px;padding:8px 3px;border:1px solid #cdd5e2;border-radius:10px;background:#fff;color:#13243e;font-size:13px;font-weight:700;letter-spacing:0;box-shadow:none;white-space:nowrap}.sg-main .actions button:last-child{background:#13243e;border-color:#13243e;color:white}.sg-main .actions button span{font-size:inherit;margin:0}.sg-main .actions button:disabled{opacity:.42;cursor:default}.sg-main details.sg-disclosure,.sg-main .sg-rank{position:static;width:100%;margin:12px 0 0;padding:0 12px;border:1px solid #e0e5ee;border-radius:12px;background:white;color:#13243e;box-shadow:none;font-size:13px;text-align:left}.sg-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;height:auto;padding:10px 0;list-style:none;font-family:inherit;font-size:13px!important;font-weight:700;letter-spacing:0;color:#13243e}.sg-disclosure>summary::-webkit-details-marker{display:none}.sg-disclosure>summary:after{content:'+';font-size:17px;color:#2463eb}.sg-disclosure[open]>summary:after{content:'−'}.sg-disclosure>summary span{color:#2463eb;margin-left:auto;font-size:12px;white-space:normal}.sg-disclosure p,.sg-disclosure .instructions{color:#516079;font-size:12px;line-height:1.8}.sg-main details[open] .instructions{position:static;max-height:none;padding:0 0 12px;background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible}.sg-main .instructions b{color:#13243e}.sg-records{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:12px 4px;font-size:11px;color:#6c7890}.sg-records small{font-size:10px;letter-spacing:1px}.sg-records .record{font-size:11px;line-height:1.6}.sg-sound{display:flex;align-items:center;justify-content:space-between;margin-top:12px;padding:0 12px;min-height:48px;background:#fff;border:1px solid #e0e5ee;border-radius:12px;color:#6c7890;font-size:12px}.sg-sound button{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:7px;min-width:90px;min-height:44px;width:auto;height:44px;padding:8px;border:0;background:transparent!important;color:#13243e!important;border-radius:8px;font-size:13px!important}.sg-sound button span,.sg-sound button small{font-size:11px!important;color:#13243e}.sg-sound button:before{content:none!important}footer.sg-footer{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:100%;max-width:none;margin:16px 0 0;padding:8px 0 0;border-top:1px solid #e0e5ee;color:#8690a0;font-family:inherit;font-size:10px;line-height:1.6;letter-spacing:.6px}footer.sg-footer a{display:flex;align-items:center;justify-content:center;min-height:44px;color:#52647d;text-decoration:none;font-size:10px;letter-spacing:1px}footer.sg-footer span{display:block!important}/* Shift Block adapter */
body.sg-block .board-stage{position:relative;padding:38px;align-self:auto}body.sg-block .board-wrap{padding:5px;border:2px solid #aab2c0;border-radius:12px;background:#fff;box-shadow:none}body.sg-block .cell{background:#edf1f7}body.sg-block .guide{box-shadow:inset 0 0 0 1px #b1c4e9}body.sg-block .edge-arrows button{display:flex;align-items:center;justify-content:center;background:#2463eb;color:#fff;border:1px solid #1c50c5;box-shadow:0 2px 4px #13243e18;border-radius:8px;width:28px;height:28px;min-height:28px;font-size:15px;line-height:1;padding:0}body.sg-block .edge-arrows button:after{inset:-8px}body.sg-block .edge-arrows button:disabled{background:#e7ecf3;color:#8490a3;border-color:#cdd5e2;box-shadow:none;opacity:1}body.sg-block .tray{gap:8px;margin:8px 0 0}body.sg-block .piece{height:58px;min-height:58px;background:#f3f6fb;border:1px solid #d9e0eb;box-shadow:none;border-radius:9px}body.sg-block .piece.selected{background:#eaf1ff;border-color:#2463eb}body.sg-block .piece.used{color:#8b98aa;background:#fafbfe;border:1px dashed #d9e0eb}body.sg-block .actions{grid-template-columns:1fr 1fr}body.sg-block .scores{display:flex;margin:12px 0 8px;padding:0 3px;min-height:28px;background:none;border:0;color:#13243e;box-shadow:none}body.sg-block .scores strong,body.sg-block .scores .best strong{font-size:20px;color:#13243e;text-shadow:none}body.sg-block .status{background:none;display:flex;align-items:center;justify-content:space-between;margin:8px 0;padding:0;font-size:9px;letter-spacing:.5px;color:#6c7890}body.sg-block #combo,body.sg-block #shiftStatus{color:#52647d}body.sg-block .shift-help{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;background:#eff4ff;border:0;border-radius:8px;box-shadow:none;color:#2c4770;font-size:10px;margin:8px 0 0}body.sg-block .shift-help span{background:none;color:#2c4770;padding:0;font-size:10px}body.sg-block .message{height:auto;min-height:30px;padding:8px 10px;margin:8px 0 0;background:#f0f5fd;color:#2c4770;border-radius:8px;font-size:11px;overflow:visible}body.sg-block .sg-rank{position:static;display:flex;justify-content:space-between;align-items:center;min-height:48px;height:auto;color:#13243e;font-weight:700;letter-spacing:0}body.sg-block .sg-rank span{color:#2463eb}body.sg-block dialog,body.sg-block #rankDialog{background:#fff;color:#13243e;border-color:#d9e0eb}body.sg-block .dialog-body p,body.sg-block .rank-note{color:#6c7890}body.sg-block .shift-btn{background:#13243e;color:white;border:0;box-shadow:none}body.sg-block .secondary,body.sg-block .rank-heading button{background:#f0f4fa;color:#13243e;border:1px solid #d9e0eb;box-shadow:none}body.sg-block #profileForm input:not([type=checkbox]),body.sg-block #profileForm select{background:white;color:#13243e;border-color:#cdd5e2}body.sg-block #profileForm small,body.sg-block #profileStatus,body.sg-block #rankGameStatus,body.sg-block #rankingStatus{color:#52647d}body.sg-block .rank-table th,body.sg-block .rank-table td{border-color:#d9e0eb}body.sg-block #rankDialog summary{color:#13243e}/* Color Matching adapter */
body.sg-color .board-shell{background:#fff;border:2px solid #aab2c0;border-radius:12px;box-shadow:none;overflow:hidden;padding:0}body.sg-color .board-row{display:grid;grid-template-columns:32px minmax(0,1fr) 32px;align-items:stretch}body.sg-color .row-controls button{width:32px;min-width:32px;height:100%;min-height:0;padding:0;color:#6c7890}body.sg-color .col-controls{margin:0 32px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}body.sg-color .col-controls button{height:32px;min-height:32px;color:#6c7890;padding:0}body.sg-color #board{width:100%;height:auto;display:block;background:#f7f9fc}body.sg-color .game-heading{margin:8px 0 0;padding:0;height:44px;min-height:44px;grid-template-columns:80px minmax(0,1fr) 84px}body.sg-color #stageLabel{color:#52647d;font-size:12px}body.sg-color #stages{color:#13243e;background:#f3f6fb;border:1px solid #e0e5ee;border-radius:8px;min-height:44px}body.sg-color .counters{margin:12px 0 0;display:flex;justify-content:space-between;gap:8px;color:#52647d}body.sg-color .counters b{font-size:20px;color:#13243e}body.sg-color .counters .distance{background:#f0f5fd;border-radius:8px;padding:4px 8px}body.sg-color .counters span{font-family:inherit;font-size:8px}body.sg-color .game-info{border:0;padding:0;margin:0;max-width:none}body.sg-color .game-info>small{display:none}body.sg-color #instructions #help{font-size:13px;letter-spacing:0;min-height:48px;color:#13243e}body.sg-color .game-bottom{display:none}body.sg-color .intro,body.sg-color aside{display:none!important}body.sg-color .instruction-content{padding-bottom:12px}body.sg-color .inline-result strong{color:#2463eb}body.sg-color dialog{background:#fff;color:#13243e}body.sg-color dialog h2{font-family:inherit}body.sg-color .modal-primary{background:#13243e;color:white}
@media(max-width:350px){main.sg-main{padding-inline:8px}.sg-panel{padding:8px}.sg-main .actions button{font-size:12px}.sg-main .board,.sg-main .board-stage,.sg-main .board-shell{min-width:0}body.sg-color .counters span{font-size:7px}}body.sg-block .actions button:first-child{background:white;color:#13243e;border:1px solid #cdd5e2}body.sg-block .scores .label{color:#6c7890}body.sg-color .row-controls button{position:relative}body.sg-color .row-controls button:after{content:"";position:absolute;inset:0 -6px}body.sg-color .col-controls button{position:relative}body.sg-color .col-controls button:after{content:"";position:absolute;inset:-6px 0}body.sg-block .score-rules{width:100%;border-collapse:collapse;margin:12px 0;font-size:12px;font-variant-numeric:tabular-nums}body.sg-block .score-rules caption{text-align:left;color:#52647d;font-size:11px;padding-bottom:8px}body.sg-block .score-rules th,body.sg-block .score-rules td{padding:9px 4px;border-bottom:1px solid #e0e5ee;text-align:right}body.sg-block .score-rules th:first-child,body.sg-block .score-rules td:first-child{text-align:left}body.sg-block .score-rules th{color:#13243e;font-size:11px}/* Shared brand colors for reset,practice and game-over alerts. */
body.sg-block #modal{background:#fff;color:#13243e;border:1px solid #d9e0eb;border-radius:20px;box-shadow:0 16px 48px #13243e26}body.sg-block #modal .dialog-body{background:#fff;color:#13243e;padding:24px}body.sg-block #modal .label{color:#2463eb;letter-spacing:1.8px;font-size:10px}body.sg-block #modal h2{color:#13243e;line-height:1.3;margin:18px 0 16px}body.sg-block #modal p{color:#52647d;line-height:1.8}body.sg-block #modal .dialog-actions button{min-height:48px;border-radius:10px;box-shadow:none;letter-spacing:0;font-weight:700}body.sg-block #modalYes{background:#13243e;color:#fff;border:1px solid #13243e}body.sg-block #modalNo{background:#f0f4fa;color:#13243e;border:1px solid #d9e0eb}body.sg-block dialog::backdrop{background:#13243e80;backdrop-filter:blur(4px)}/* Menu layout and sound switch. */body.sg-block dialog.sg-menu{padding:24px 20px;border:0;border-radius:24px;background:#f2f2f7;color:#13243e;box-shadow:-12px 0 60px #13243e18;}body.sg-block .sg-menu::backdrop{background:#13243e33;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}body.sg-block .sg-menu[open]{animation:menu-arrive .24s cubic-bezier(.2,.8,.2,1)}
@keyframes menu-arrive{from{opacity:0}to{opacity:1}}body.sg-block .sg-menu-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:4px 2px 26px;border:0}body.sg-block .sg-menu-title>span{display:block;color:#7b8494;font-size:9px;font-weight:600;letter-spacing:.15em;line-height:1.5}body.sg-block .sg-menu-heading h2{margin:5px 0 0;font-size:29px;line-height:1.15;font-weight:700;letter-spacing:-.8px}body.sg-block .sg-menu .game-info{display:block;margin:0;padding:0;border:0;border-radius:18px;background:#fff;box-shadow:0 1px 3px #13243e04;overflow:hidden}body.sg-block .sg-menu .sg-disclosure{display:block;border:0;border-radius:0;padding:0;background:transparent;margin:0}body.sg-block .sg-menu #help{display:flex;align-items:center;justify-content:flex-start;gap:12px;width:100%;min-height:68px;height:auto;padding:14px 16px;border:0;border-radius:0;list-style:none;cursor:pointer;font-size:15px!important;font-weight:500;line-height:1.4;letter-spacing:0;color:#13243e;background:transparent}body.sg-block .sg-menu summary::-webkit-details-marker{display:none}body.sg-block .sg-menu summary::after{display:none;content:none}body.sg-block .sg-menu .menu-row-label{margin:0;color:inherit;font-size:15px;flex:1;white-space:normal}body.sg-block .sg-menu .menu-icon{display:flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;border-radius:10px}body.sg-block .sg-menu .menu-icon-help{background:#eaf1ff;color:#3977df}body.sg-block .sg-menu .menu-icon-sound{background:#f0ebff;color:#8a65cf}body.sg-block .sg-menu .menu-disclosure-chevron{flex:0 0 17px;color:#a0a5b1;transition:transform .2s ease}body.sg-block .sg-menu details[open] .menu-disclosure-chevron{transform:rotate(90deg)}body.sg-block .sg-menu .instruction-content{padding:0 16px 16px;counter-reset:help-step}body.sg-block .sg-menu .instruction-content p{position:relative;margin:0;padding:10px 0 10px 28px;color:#637085;font-size:13px;line-height:1.7}body.sg-block .sg-menu .instruction-content p::before{counter-increment:help-step;content:counter(help-step,decimal-leading-zero);position:absolute;left:0;top:12px;color:#9da8b8;font-size:10px;font-weight:600;letter-spacing:.02em}body.sg-block .sg-menu .sg-sound{position:relative;display:flex;align-items:center;justify-content:flex-start;gap:12px;margin:0;padding:12px 16px;min-height:68px;border:0;border-radius:0;background:transparent}body.sg-block .sg-menu .sg-sound::before{content:'';position:absolute;left:60px;right:0;top:0;height:1px;background:#ececf2}body.sg-block .sg-menu .sound-label{flex:1;font-size:15px;font-weight:500;color:#13243e}body.sg-block .sg-menu #sound{display:inline-flex;align-items:center;justify-content:center;width:51px;min-width:51px;height:44px;min-height:44px;flex:0 0 51px;margin:0;padding:0;border:0;border-radius:12px;background:transparent;box-shadow:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}body.sg-block .sound-track{display:block;position:relative;width:51px;height:31px;border-radius:999px;background:#e5e5ea;box-shadow:inset 0 0 0 1px #00000004;transition:background-color .22s ease}body.sg-block .sound-thumb{position:absolute;left:2px;top:2px;width:27px;height:27px;border-radius:50%;background:#fff;box-shadow:0 2px 4px #00000026,0 1px 2px #00000012;transform:translateX(0);transition:transform .22s cubic-bezier(.22,.68,0,1.05)}body.sg-block #sound[aria-checked="true"] .sound-track{background:#34c759}body.sg-block #sound[aria-checked="true"] .sound-thumb{transform:translateX(20px)}
@media(prefers-reduced-motion:reduce){body.sg-block .sound-track,body.sg-block .sound-thumb,body.sg-block .sg-menu .menu-disclosure-chevron{transition:none}body.sg-block .sg-menu[open]{animation:none}}body.sg-block .sg-menu #stages{display:flex;align-items:center;gap:12px;width:100%;min-height:68px;margin:0;padding:14px 16px;border:0;border-radius:0;background:transparent;color:#13243e;text-align:left;font-size:15px;font-weight:500;white-space:normal}body.sg-block .sg-menu .menu-icon-stages{background:#e7f5f0;color:#398a72}body.sg-block .sg-menu #instructions{position:relative}body.sg-block .sg-menu #instructions::before{content:'';position:absolute;left:60px;right:0;top:0;height:1px;background:#ececf2}/* Simplified play surface,shared with the COLOR MATCHING visual language. */
body.sg-block .board-stage{width:min(100%,410px)!important;aspect-ratio:1;padding:28px;margin:0 auto}body.sg-block .board-wrap{border:2px solid #aab2c0;border-radius:13px;padding:5px}body.sg-block .edge-arrows button{display:flex;align-items:center;justify-content:center;padding:0;width:26px;height:26px;min-height:26px;border:0;border-radius:8px;background:transparent;color:#788498;box-shadow:none}body.sg-block .edge-arrows button:hover{background:#eff3f9;color:#2463eb}body.sg-block .edge-arrows button:disabled{opacity:.25}body.sg-block .edge-arrows svg{display:block;pointer-events:none}body.sg-block .tray{margin:8px 0 12px;gap:8px}body.sg-block .piece{height:64px;min-height:64px;border-radius:12px;background:#f5f7fb}body.sg-block .actions{display:flex;justify-content:flex-end;margin:0}body.sg-block .actions #newBtn{flex:1;min-height:44px;height:44px;background:#13243e;border:1px solid #13243e;border-radius:11px;color:#fff;font-size:13px;font-weight:600;box-shadow:none}body.sg-block .scores{display:grid;grid-template-columns:1fr 1fr;gap:0;margin:14px 0 0;padding:14px 0;border:1px solid #eef0f5;border-radius:14px;background:#f6f7fa}body.sg-block .scores>div{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;margin:0;padding:0 8px;min-width:0}body.sg-block .scores .best{margin:0;border-left:1px solid #e3e7ee}body.sg-block .scores strong{order:0;font-family:inherit;font-size:23px;font-weight:600;line-height:1.15;letter-spacing:-.025em;font-variant-numeric:tabular-nums;color:#172940}body.sg-block .scores .label{order:1;font-size:10px;line-height:1.3;letter-spacing:0;font-weight:500;color:#6c7889}body.sg-block .status{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:10px 2px 0;padding:2px 0;min-height:30px;color:#7c8797}body.sg-block .status span{font-family:inherit;font-size:9px;font-weight:500;letter-spacing:.025em;line-height:1.4}body.sg-block #shiftStatus{font-size:9px;padding:4px 7px;border-radius:7px;background:#eff4fc;color:#5273a7}body.sg-block .shift-help{display:none}body.sg-block .message{margin:8px 0 0;padding:9px 12px;border:0;border-radius:10px;background:#f1f5fb;color:#536b8b;font-size:11px;line-height:1.5;min-height:0}body.sg-block .message[hidden]{display:none}body.sg-block footer.sg-footer{margin-top:14px;padding-top:14px;font-size:10px;min-height:0}body.sg-block .sg-menu .menu-action{position:relative;display:flex;align-items:center;gap:12px;width:100%;min-height:64px;margin:0;padding:14px 16px;border:0;border-radius:0;background:transparent;color:#13243e;font:inherit;text-align:left;box-shadow:none}body.sg-block .sg-menu .menu-action+.menu-action::before{content:'';position:absolute;left:60px;right:0;top:0;height:1px;background:#ececf2}body.sg-block .sg-menu .menu-row-label{flex:1;font-family:inherit;font-size:15px!important;font-weight:500;letter-spacing:0;line-height:1.4;margin:0;color:#13243e}body.sg-block .sg-menu #playerBadge,body.sg-block #soundState{display:none}body.sg-block .sg-menu #instructions{position:relative;margin:0;padding:0}body.sg-block .sg-menu #instructions::before{content:'';position:absolute;left:60px;right:0;top:0;height:1px;background:#ececf2}body.sg-block .sg-menu #instructions .instructions{position:static;max-height:none;margin:0;padding:0 16px 16px;background:transparent;border:0;border-radius:0;box-shadow:none;color:#637085;font-size:12px;line-height:1.7;overflow:visible;touch-action:pan-y}body.sg-block .sg-menu .instructions p{font-size:12px;line-height:1.7;color:#637085}body.sg-block .sg-menu .instructions b{color:#42546d}body.sg-block .sg-menu .score-rules{width:100%;font-size:10px;border-collapse:collapse}body.sg-block .sg-menu .score-rules th,body.sg-block .sg-menu .score-rules td{padding:6px 2px;border-bottom:1px solid #e3e7ee;color:#637085}body.sg-block .sg-menu #lesson{width:100%;min-height:44px;border:0;border-radius:10px;background:#edf2fa;color:#315f9c;font:inherit;font-size:12px;box-shadow:none}body.sg-block #rankDialog{border:0;border-radius:20px;background:#f2f2f7;color:#13243e}body.sg-block .rank-scroll{padding:20px;max-height:85dvh;color:#13243e}body.sg-block #rankDialog .rank-heading h2{font:inherit;font-size:22px;font-weight:700;letter-spacing:-.5px}body.sg-block #rankClose{width:44px;height:44px;border-radius:50%;border:0;background:#e5e5eb;color:#747b88;box-shadow:none;font-size:24px}body.sg-block #rankDialog .rank-note,body.sg-block #rankDialog #profileForm small{color:#7c8797}body.sg-block #rankDialog #profileDetails{margin:16px 0;background:#fff;border:0;border-radius:14px;padding:0 14px}body.sg-block #rankDialog summary{font-size:12px;font-weight:600;color:#42546d;padding:12px 0}body.sg-block #profileForm input:not([type=checkbox]),body.sg-block #profileForm select{background:#f7f9fc;color:#13243e;border:1px solid #d9e0eb;border-radius:10px}body.sg-block #rankDialog button:not(#rankClose){border-radius:10px;box-shadow:none;background:#13243e;color:#fff;border:0;min-height:44px;font-size:11px}body.sg-block #profileStatus,body.sg-block #rankGameStatus,body.sg-block #rankingStatus{font-size:11px;color:#637085}body.sg-block .rank-table th,body.sg-block .rank-table td{border-bottom:1px solid #dfe4ed;color:#42546d}
@media(max-width:360px){body.sg-block .board-stage{padding:25px}body.sg-block .status span{font-size:8px}}/* Open disclosure content must never rotate its label or icon. */
body.sg-block #gameMenu #instructions[open]>#help>span,body.sg-block #gameMenu #instructions[open]>#help>.menu-icon{transform:none}body.sg-block #gameMenu #instructions[open]>#help>.menu-disclosure-chevron{transform:rotate(90deg)}body.sg-block #gameMenu #help{height:auto;min-height:68px;flex-wrap:nowrap}body.sg-block #gameMenu #help .menu-row-label{min-width:0;white-space:normal}body.sg-block .quick-rules{list-style:none;counter-reset:rules;margin:0;padding:0}body.sg-block .quick-rules li{position:relative;counter-increment:rules;padding:10px 0 10px 29px;margin:0}body.sg-block .quick-rules li::before{content:counter(rules,decimal-leading-zero);position:absolute;left:0;top:12px;color:#9aa6b7;font-size:10px;font-weight:600}body.sg-block .quick-rules b{font-size:12px;font-weight:600}body.sg-block .sg-menu .quick-rules p{margin:4px 0 0;font-size:12px;line-height:1.65}body.sg-block #profileDialog{width:min(430px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:0;border-radius:20px;background:#f2f2f7;color:#13243e;overflow-y:auto;overscroll-behavior:contain}body.sg-block .profile-scroll{padding:20px;touch-action:pan-y}body.sg-block #profileDialog .rank-heading h2{font:inherit;font-size:22px;font-weight:700;letter-spacing:-.5px}body.sg-block #profileClose{width:44px;height:44px;min-height:44px;border-radius:50%;border:0;background:#e5e5eb;color:#747b88;box-shadow:none;font-size:24px}body.sg-block #profileDialog .rank-note{color:#7c8797}body.sg-block #profileDialog #profileForm{margin:16px 0;padding:18px;gap:12px;background:#fff;border-radius:14px}body.sg-block #profileDialog #profileForm label{font-size:12px;font-weight:500;color:#42546d}body.sg-block #profileDialog #profileForm small{display:block;margin-top:4px;font-size:10px;font-weight:400;color:#7c8797}body.sg-block #profileDialog #profileForm input:not([type=checkbox]),body.sg-block #profileDialog #profileForm select{min-height:46px;background:#f7f9fc;color:#13243e;border:1px solid #d9e0eb;border-radius:10px;font-size:16px}body.sg-block #profileDialog #profileForm .rank-consent{font-size:11px;line-height:1.6;font-weight:400}body.sg-block #profileSave,body.sg-block #profileDialog #rankNew{width:100%;border:0;min-height:46px;border-radius:10px;background:#13243e;color:#fff;font-size:12px;font-weight:600;box-shadow:none}body.sg-block #profileDialog #rankNew{background:#e7edf7;color:#3c5b88}body.sg-block #profileDialog #rankNew:disabled{opacity:.4}body.sg-block #profileStatus:empty,body.sg-block #rankGameStatus:empty{display:none}body.sg-block .rank-tools{justify-content:flex-end}body.sg-block .rank-tools #rankRefresh{flex:0 0 auto;min-width:80px;background:#e7edf7;color:#3c5b88}body.sg-block .rank-scroll,body.sg-block .profile-scroll{overflow-x:hidden}body.sg-block .sg-menu .menu-icon-language{background:#edf1f8;color:#637a9b}body.sg-block .sg-menu .language-current{margin-left:auto;font-size:11px;color:#8a94a3;white-space:nowrap;letter-spacing:0}body.sg-block #languageOpen::before{content:'';position:absolute;left:60px;right:0;top:0;height:1px;background:#ececf2}body.sg-block .language-options{background:#fff;border-radius:16px;overflow:hidden}body.sg-block .language-choice{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:52px;padding:12px 16px;margin:0;border:0;border-radius:0;background:#fff;color:#13243e;font-size:14px;font-weight:500;text-align:left;box-shadow:none}body.sg-block .language-choice+.language-choice{border-top:1px solid #ececf2}body.sg-block .language-check{color:#3479df;opacity:0}body.sg-block .language-choice[aria-pressed="true"]{background:#f1f5fd}body.sg-block .language-choice[aria-pressed="true"] .language-check{opacity:1}body.sg-block #languageClose{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:50%;background:#e5e5eb;color:#747b88;font-size:25px;box-shadow:none}body.sg-block .menu-action .menu-row-label{min-width:0;white-space:normal}body.sg-block .scores{grid-template-columns:repeat(3,minmax(0,1fr))}body.sg-block .scores>div+div{border-left:1px solid #e3e7ee}body.sg-block #profileTitle:focus{outline:none}/* Language choices expand inside the menu,matching the game menu rows. */
body.sg-block #languageDetails{margin:0;padding:0;border:0;background:transparent}body.sg-block #languageOpen{list-style:none;cursor:pointer;min-height:64px;height:auto;flex-wrap:nowrap}body.sg-block #languageOpen::-webkit-details-marker{display:none}body.sg-block #languageDetails[open]>#languageOpen>span{transform:none}body.sg-block #languageDetails[open]>#languageOpen>.menu-disclosure-chevron{transform:rotate(90deg)}body.sg-block #languageDetails .language-options{padding:0 12px 12px;border-radius:0}body.sg-block #languageDetails .language-choice{min-height:48px;border:0;border-radius:10px;color:#526681;font:inherit;font-size:14px;font-weight:500}body.sg-block #languageDetails .language-choice[aria-pressed="true"]{background:#edf3ff;color:#2766dc}body.sg-block #languageOpen .language-current{flex:0 0 auto;font-size:12px}body.sg-block #languageOpen .menu-disclosure-chevron{flex-shrink:0}body.sg-block .message{white-space:pre-line}body.sg-block .sg-menu{scrollbar-width:thin}
@media(max-width:360px){body.sg-block #languageOpen{gap:8px}body.sg-block #languageOpen .language-current{font-size:10px}}/* A compact utility row: status,primary action,status. */
body.sg-block .actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) minmax(0,1fr);align-items:stretch;gap:8px;margin:0}body.sg-block .actions #newBtn{width:100%;height:auto;min-height:48px;margin:0;padding:8px 4px;border-radius:12px;font-size:12px;font-weight:600;line-height:1.3;white-space:normal}body.sg-block .action-indicator{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:48px;padding:7px 4px;border-radius:12px;background:#f6f7fa;text-align:center}body.sg-block .action-indicator .indicator-label{font-size:10px;font-weight:500;line-height:1.25;letter-spacing:0;color:#768194}body.sg-block .action-indicator strong{font-family:inherit;font-size:13px;font-weight:600;line-height:1.25;letter-spacing:-.01em;font-variant-numeric:tabular-nums;color:#526077}body.sg-block #combo{font-size:15px;color:#263850}body.sg-block #comboIndicator[data-active="true"]{background:#f2effb}body.sg-block #comboIndicator[data-active="true"] #combo{color:#7760ad}body.sg-block .actions #shiftStatus{display:flex;align-items:center;justify-content:center;gap:5px;margin:0;padding:0;background:none;border:0;border-radius:0;font-size:11px;white-space:normal;color:#718093}body.sg-block #shiftStatus::before{content:'';display:block;flex:0 0 5px;width:5px;height:5px;border-radius:50%;background:#a8b0bd}body.sg-block #shiftIndicator[data-state="ready"]{background:#edf6f2}body.sg-block #shiftIndicator[data-state="ready"] #shiftStatus{color:#377b65}body.sg-block #shiftIndicator[data-state="ready"] #shiftStatus::before{background:#4b9c7e}
@media(max-width:350px){body.sg-block .actions{gap:6px}body.sg-block .action-indicator .indicator-label{font-size:9px}body.sg-block .actions #newBtn{font-size:11px}body.sg-block .actions #shiftStatus{font-size:10px}}/* Placeholder only: match Google's responsive ad-size example without scaling.
   The ad is in normal flow,separated from play controls,never over the board. */
body.sg-block aside.sg-ad-placement{display:flex!important;position:relative;left:50%;transform:translateX(-50%);flex-direction:column;align-items:center;gap:7px;width:320px;max-width:none;margin:48px 0 0;padding:0;border:0;background:transparent;box-shadow:none}body.sg-block .sg-ad-label{font-size:9px;line-height:12px;font-weight:400;letter-spacing:.04em;color:#8b95a4}body.sg-block .sg-ad-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;box-sizing:border-box;width:320px;height:100px;margin:0;padding:0;border:1px dashed #d5dce7;border-radius:0;background:#f1f4f8;color:#929dad;pointer-events:none;user-select:none}body.sg-block .sg-ad-preview-caption{font-size:10px;font-weight:500;line-height:1.3;letter-spacing:.14em}body.sg-block .sg-ad-size{font-size:11px;font-weight:400;line-height:1.3;letter-spacing:.035em;font-variant-numeric:tabular-nums}body.sg-block .sg-ad-tablet,body.sg-block .sg-ad-desktop{display:none}
@media(min-width:500px){body.sg-block aside.sg-ad-placement,body.sg-block .sg-ad-placeholder{width:468px}body.sg-block .sg-ad-placeholder{height:60px}body.sg-block .sg-ad-mobile{display:none}body.sg-block .sg-ad-tablet{display:inline}}
@media(min-width:800px){body.sg-block aside.sg-ad-placement,body.sg-block .sg-ad-placeholder{width:728px}body.sg-block .sg-ad-placeholder{height:90px}body.sg-block .sg-ad-tablet{display:none}body.sg-block .sg-ad-desktop{display:inline}}
@media(max-width:319px){body.sg-block aside.sg-ad-placement{display:none!important}}/* Let the centered ad extend beyond the compact game column,as in COLOR MATCHING. */
body.sg-block main.game.sg-main{overflow:visible}

