/* The home screen holds setup; play shows only the current challenge. */
:root{--muted:#626e59;--line:#d8deca}
body{font-size:16px}
.page-shell{max-width:1200px;padding:0 32px}
.site-header{height:76px;gap:24px}
.brand{font-size:26px}.brand-mark{width:44px;height:44px;padding:9px}
.header-actions{gap:6px}.header-actions .icon-button{width:44px;height:44px;padding:10px}
.install-button{min-height:44px;font-size:14px;padding:10px 13px}
.install-button>span:first-child{width:22px;height:22px}
.treat-wallet{font-size:16px;color:#4e6044}.treat-wallet b{font-size:16px}
.home-hero{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr);gap:58px;align-items:center;padding:36px 0}
.home-intro h1{font-size:60px;line-height:1.03;letter-spacing:-2px;margin:0 0 18px;color:#34483e}
.home-intro h1 span{color:#db704f}
.home-description{font-size:18px;line-height:1.6;max-width:480px;margin:0 0 25px;color:#626e59}
.difficulty-setup{max-width:490px}.difficulty-heading{font-size:18px;letter-spacing:0;margin:0 0 12px;font-weight:900}
.difficulty-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.difficulty-button{min-height:110px;padding:14px;border:1px solid #ccd5bd;border-radius:14px;background:#edf0e2;text-align:left;position:relative;min-width:0}
.difficulty-level{display:flex;align-items:center;justify-content:center;width:28px;height:28px;font-size:18px;font-weight:900;color:#6b8553;margin-bottom:8px;letter-spacing:0}
.difficulty-level svg{width:26px;height:26px}
.difficulty-button>b{display:block;font-size:18px;font-weight:900;color:#3f5835}
.difficulty-status{display:block;margin-top:4px;font-size:13px;font-weight:700;color:#56694b}
.difficulty-button.active{border:2px solid #74924f;padding:13px;background:#e1ebce;box-shadow:0 3px 0 #c6d7af}
.difficulty-button:not(:disabled):hover{background:#dfe9cc}
.difficulty-button:disabled{opacity:1;cursor:not-allowed;background:#eceee5;border-color:#d5dbcc}
.difficulty-button:disabled>b,.difficulty-button:disabled .difficulty-status{color:#6b7562}
.difficulty-button:disabled .difficulty-level{color:#818b76}
.difficulty-button.completed .difficulty-level{background:#e1ebd6;border-radius:50%;padding:3px}
.home-challenge{font-size:18px;line-height:1.5;color:#526647;margin:23px 0 20px}
.home-challenge>b{display:block;font-size:15px;color:#5e7350;font-weight:900}
.home-challenge p{margin:3px 0 0}.home-challenge strong{font-size:22px;color:#344f2b;font-weight:900}
.home-start-row{display:flex;gap:12px;align-items:stretch}
.start-button{min-width:205px;min-height:54px;font-size:18px;padding:14px 22px;border-radius:13px}
.start-button>span:first-child{width:auto;height:auto}.start-button>span:last-child{width:24px;height:24px;margin-left:8px}
.home-help{min-height:54px;padding:13px 15px;font-size:14px;gap:7px;background:#eeeee0}
.home-help>span{width:22px;height:22px}
.home-view .dog-card{justify-self:center;width:100%;max-width:335px;background:#e6ecda;border:1px solid #cdd8bf;box-shadow:0 5px 0 #d5dfc8;padding:22px;border-radius:24px}
.home-view .portrait-scene{height:190px}.home-view .dog-portrait{width:185px;height:185px}
.home-view .portrait-halo{bottom:24px;background:#f8e7b9;width:156px;height:156px}
.home-view .dog-name-button h2{font-size:36px;margin:8px 0 0}
.home-view .dog-name-button>span{width:20px;height:20px}
.home-view .breed-label{color:#5d7150;font-size:15px;margin:5px 0 18px}
.home-view .upload-button{font-size:16px;min-height:48px;padding:12px;gap:9px}
.home-view .upload-button>span{width:22px;height:22px}
.home-view .record{border-top:1px solid #cdd7be;margin-top:20px;padding-top:17px;gap:12px}
.home-view .record small{font-size:11px;letter-spacing:.8px;color:#657652}.home-view .record strong{font-size:26px}.home-view .record strong>span:last-child{font-size:14px;color:#617354}
.home-settings{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:18px}
.home-settings .card{background:#fffdf4;padding:22px;border:1px solid #d5dcc6;border-radius:18px}
.shape-panel h2{font-size:20px;margin:0;font-weight:900;letter-spacing:-.3px}
.home-shapes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:18px}
.home-shape.shape-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;width:100%;height:86px;border:1px solid #d2ddc2;border-radius:12px;background:#edf1e2;padding:10px;color:#819c62;box-shadow:none}
.home-shape>span{height:35px;width:35px}.home-shape b{font-size:13px;color:#526c3d}
.home-shape.shape-button.active{background:#e0ebcc;border:2px solid #779651;padding:9px;color:#5a7b3c;box-shadow:0 2px 0 #c5d3b2}
.home-shape:hover{background:#e4ecd5}
.home-settings .collection-card{display:flex;flex-direction:column;align-items:center;justify-content:center}
.home-settings .mini-dogs{margin:0 0 18px}.home-settings .mini-dog{width:44px;height:44px}
.home-settings .text-button{font-size:16px;min-height:44px}.home-settings .text-button>span{width:21px;height:21px}
.home-settings .mission-heading .eyebrow{font-size:11px;letter-spacing:.8px;color:#667951}
.home-settings .mission-card h3{margin:12px 0 0;font-size:19px}
.home-settings .mission-pips{margin:20px 0 12px}.home-settings .mission-pips>span{height:8px}
.home-settings .mission-bottom{font-size:13px;color:#62764e;flex-wrap:wrap;gap:8px}.home-settings .mission-bottom b{font-size:14px;color:#9b782c}
.home-local-note{font-size:13px;color:#657357;display:flex;align-items:center;justify-content:center;gap:8px;line-height:1.6;margin:25px 10px 0}
.home-local-note>span{width:17px;height:17px;color:#859c69;flex-shrink:0}
body[data-view=home] .ad-section{margin-top:60px}

/* Larger symbols, numbers and touch targets, with one compact status row. */
body[data-view=play] .site-header{height:64px}
body[data-view=play] #install-button,body[data-view=play] .treat-wallet{display:none}
.play-view{padding-top:8px}
.game-toolbar{width:min(100%,540px);margin:0 auto 10px;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px}
.back-home{display:flex;align-items:center;gap:7px;padding:9px 0;background:transparent;color:#4e6940;font-weight:900;font-size:15px;border-radius:9px;min-height:44px}
.back-home>span{width:22px;height:22px;transform:rotate(180deg)}
.back-home:hover{color:#bd6243}
.game-toolbar h1{font-size:21px;line-height:1.2;letter-spacing:-.3px;margin:0;text-align:right;font-weight:900;color:#3f5834}
.game-layout{display:flex;flex-direction:column;align-items:center;gap:0}
.play-column{width:min(100%,540px,max(300px,calc(100dvh - 340px)))}
.scoreboard{border:1px solid #526e3f;border-bottom:3px solid #38522b;background:#4b643f;color:#fff9e8;border-radius:14px;padding:10px 0 8px;box-shadow:0 3px 0 #d3ddc5;grid-template-columns:1fr 1.15fr 1fr}
.scoreboard>div{gap:2px}.scoreboard>div+div{border-color:#829473}
.scoreboard span{font-size:12px;color:#e2eccf;letter-spacing:.8px}
.scoreboard strong{font-size:34px;letter-spacing:-.6px}.scoreboard .score-main strong{font-size:38px;color:#ffda91}
.scoreboard #time-left{font-variant-numeric:tabular-nums;letter-spacing:0}
.scoreboard #round-clock-stat.time-low{background:#805040;border-radius:8px}.scoreboard #round-clock-stat.time-low strong{color:#ffd09d}
.level-progress{height:6px;background:#d4ddc3;margin:10px 8px 12px}
.level-progress>div{background:#7e9b53}.progress-star{color:#829a64;font-size:17px;top:-7px}
.board-frame{padding:7px;border:3px solid #526b40;border-radius:16px;background:#839471;box-shadow:0 5px 0 #3c5430,0 10px 22px #3c543017}
.board{gap:3px}
.tile,.tile-hole{border-radius:8px}
.tile{padding:0;border:1px solid #8b9b78;background:#fffcf0;box-shadow:0 2px 0 #50633f;transition:transform .12s,background .12s;overflow:hidden}
.tile.gold{background:#fff1c6}.tile.blue{background:#e1f2f2}.tile.brown{background:#f7e8d5}.tile.purple{background:#f0e5f5}.tile.mint{background:#e7f0d6}.tile.pink{background:#fbe3e4}
.tile svg{width:100%;height:100%;transform:scale(1.13);filter:saturate(1.25) contrast(1.07) drop-shadow(0 1px 0 #3f4c3322)}
.tile:hover{background:#fffdf3;transform:translateY(-1px)}.tile:hover svg{transform:scale(1.13)}
.tile.selected{background:#ffdea2;box-shadow:0 2px 0 #50633f;outline:3px solid #e47b43;outline-offset:-3px!important;transform:translateY(-1px)}
.tile.joker{background:#ffd16b;border:1px solid #9a6d1d;box-shadow:0 2px 0 #936f29;overflow:hidden}
.tile.joker svg{color:#fff9de;filter:drop-shadow(0 1px 0 #99631b)}.tile.joker:after{inset:2px;border-color:#fff5ce;border-radius:6px}
.board-message{font-size:13px;min-height:36px;padding:10px 0 4px;line-height:1.4;color:#526d3e;font-weight:800}
.game-bottom{display:flex;align-items:stretch;gap:10px}
.zoom-meter{flex:1;min-width:0;border:1px solid #cbd0ad;background:#ecebd5;border-radius:10px;padding:9px 12px;gap:7px;align-items:center}
.zoom-symbol{width:24px;height:30px;margin:0;color:#a5832b}
.zoom-copy strong{font-size:14px;color:#5c683c}.zoom-copy>div>span{font-size:14px;color:#796927}
.charge-track{height:6px;margin:6px 0 0;background:#d2d2ad}.charge-track>div{background:#b79739}
.game-tool{display:flex;align-items:center;justify-content:center;gap:6px;background:#e3ebd6;border:1px solid #c6d5b4;border-radius:10px;padding:10px 12px;font-size:14px;font-weight:900;color:#4f6d38;min-height:52px}
.game-tool>span{width:22px;height:22px}.game-tool:hover{background:#d5e2c2}
.board-frame.chasing{background:#b9a5c8;border-color:#7a608d;box-shadow:0 5px 0 #6e5680,0 0 0 3px #e3d9eb}
.chasing .tile{opacity:.44}.chase-bar{top:6px;left:3%;right:3%;border-color:#ad8bbf;font-size:13px;padding:7px 9px;border-radius:9px;color:#684c76;gap:8px}
.chase-bar>strong{font-size:20px;color:#744789}.chase-bar>span:first-child{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.floating-layer{border-radius:13px}
.ad-label{font-size:11px;color:#768369}.ad-section{margin-top:150px}
footer{font-size:13px;color:#637351;padding:22px 0;justify-content:flex-end}footer>div{width:100%;display:flex;flex-direction:row;justify-content:space-between;align-items:center}
.footer-link{font-size:13px;color:#566d42;min-height:44px;padding:10px 0}.offline-status{font-size:12px;color:#637351}
/* Dialog copy remains readable at phone sizes. */
.modal{padding:30px;max-width:min(94vw,480px);width:480px}.modal-close{width:44px;height:44px;top:8px;right:8px;padding:11px}
.modal h2{font-size:29px;margin-top:15px}.modal>.eyebrow{font-size:11px;letter-spacing:.8px}
.modal-intro,.help-step p,.help-footnote,.result-modal>p:not(.eyebrow),.info-content{font-size:16px;line-height:1.6;color:#617153}
.help-step h3{font-size:18px}.help-step>b{font-size:15px;min-width:36px;height:36px}.help-footnote{padding:15px}
.full-button{font-size:17px;min-height:52px}.modal>.text-button{font-size:15px;min-height:44px;justify-content:center}
.field-label{font-size:15px}.photo-editor p,.crop-controls label{font-size:13px;color:#627353}.photo-upload-label{font-size:15px;min-height:44px}.profile-modal input[type=text]{font-size:18px}.breed-option strong{font-size:18px}.breed-option small{font-size:12px;color:#60734f}
.result-modal .eyebrow{font-size:11px}.result-stars{margin:10px 0}.result-dog{height:110px;width:110px}

@media(max-width:1000px){.home-hero{gap:30px}.home-intro h1{font-size:52px}.home-description{font-size:17px}.home-start-row{flex-wrap:wrap}.home-settings{grid-template-columns:1.2fr 1fr}.home-settings .mission-card{grid-column:1/-1}.home-settings .mission-pips{max-width:400px}.home-settings .mission-bottom{max-width:400px}}
@media(max-width:760px){.page-shell{padding:0 22px}.home-hero{grid-template-columns:minmax(0,1.2fr) minmax(225px,1fr);gap:24px}.home-intro h1{font-size:44px}.home-description{font-size:16px}.home-view .dog-card{padding:18px 14px}.home-view .portrait-scene{height:160px}.home-view .dog-portrait{width:158px;height:158px}.home-view .portrait-halo{width:132px;height:132px}.difficulty-picker{gap:8px}.difficulty-button{padding:12px 9px}.difficulty-button.active{padding:11px 8px}.difficulty-button>b{font-size:16px}.difficulty-status{font-size:12px}.home-challenge{font-size:16px}.home-challenge strong{font-size:20px}}
@media(max-width:600px){
  .page-shell{padding:0 12px;max-width:480px}.site-header{height:68px;gap:8px}.brand{font-size:23px;gap:8px}.brand-mark{width:38px;height:38px;padding:7px;border-radius:11px}
  .header-actions{gap:0}.header-actions .icon-button{width:44px;height:44px;padding:10px}.install-button{width:44px;height:44px;min-height:44px;padding:10px;margin-left:0;justify-content:center}.install-button>span:last-child{display:none}.install-button>span:first-child{width:22px;height:22px}
  .treat-wallet{padding:7px;gap:4px;margin-right:0}.treat-wallet span{width:20px;height:20px}.treat-wallet b{font-size:14px;min-width:12px}
  .home-hero{display:flex;flex-direction:column;gap:25px;padding:20px 0 26px;align-items:stretch}.home-intro{order:2}.home-intro h1{font-size:44px;letter-spacing:-1.5px;line-height:1.03;margin:0 0 16px}.home-intro h1 br{display:none}.home-intro h1 span{display:block}.home-description{font-size:16px;line-height:1.5;margin-bottom:23px}
  .difficulty-heading{font-size:18px;margin-bottom:12px}.difficulty-button{min-height:108px;padding:12px}.difficulty-button.active{padding:11px}.difficulty-button>b{font-size:17px}.difficulty-status{font-size:12px}.difficulty-level{width:26px;height:26px;font-size:18px;margin-bottom:7px}
  .home-challenge{margin:22px 0 20px;font-size:17px}.home-challenge>b{font-size:15px}.home-challenge strong{font-size:22px}
  .home-start-row{display:grid;grid-template-columns:1fr auto;gap:10px}.start-button{width:100%;min-width:0;font-size:18px;min-height:54px;padding:13px}.start-button>span:last-child{margin-left:3px;width:22px;height:22px}.home-help{font-size:14px;padding:12px 10px;min-height:54px}.home-help>span{width:20px;height:20px}
  .home-view .dog-card{order:1;max-width:none;padding:12px;border-radius:16px;box-shadow:0 3px 0 #d5dfc8;display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:0 10px;min-height:90px;align-items:center;text-align:left}
  .home-view .portrait-scene{height:62px;width:58px;grid-column:1;grid-row:1/3}.home-view .dog-portrait{width:70px;height:70px}.home-view .dog-portrait img{width:60px;height:60px;left:4px;top:4px;border:3px solid #fff5d8}
  .home-view .dog-name-button{margin:0;padding:0;grid-column:2;grid-row:1;align-self:end;justify-content:start;gap:4px;max-width:100%;overflow:hidden}.home-view .dog-name-button h2{font-size:25px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.home-view .dog-name-button>span{width:17px;height:17px;flex-shrink:0;margin:0}
  .home-view .breed-label{font-size:13px;margin:3px 0 0;grid-column:2;grid-row:2;align-self:start;line-height:1.3}.home-view .upload-button{grid-column:3;grid-row:1/3;width:auto;height:44px;min-height:44px;font-size:14px;padding:10px;gap:6px;box-shadow:0 2px 0 #ca6348;border-radius:9px}.home-view .upload-button>span{width:20px;height:20px;min-width:20px;min-height:20px}.home-view .record{display:none}
  .home-settings{grid-template-columns:1fr;gap:16px}.home-settings .card{padding:20px;border-radius:16px}.shape-panel h2{font-size:20px}.home-shapes{margin-top:18px;gap:10px}.home-shape.shape-button{height:86px}.home-shape>span{width:36px;height:36px}.home-shape b{font-size:13px}
  .home-settings .collection-card{display:flex}.home-settings .mini-dogs{margin:0 0 12px}.home-settings .mini-dog{width:48px;height:48px}.home-settings .text-button{font-size:17px}.home-settings .mission-card{display:block;grid-column:auto;padding:20px}.home-settings .mission-card h3{font-size:19px;margin:12px 0 0}.home-settings .mission-heading .eyebrow{font-size:11px}.home-settings .mission-bottom{font-size:14px}.home-local-note{font-size:13px;line-height:1.6;margin:22px 6px 0;align-items:start;text-align:left}
  .game-toolbar{margin-bottom:10px;min-height:44px;gap:10px}.back-home{font-size:15px}.game-toolbar h1{font-size:19px}.scoreboard span{font-size:12px}.scoreboard strong{font-size:32px}.scoreboard .score-main strong{font-size:35px}.board-frame{padding:5px;border-width:3px;border-radius:14px}.board{gap:3px}.tile,.tile-hole{border-radius:7px}.tile{padding:0}.board-message{font-size:12px;min-height:36px;padding:10px 0 4px}.game-tool{font-size:14px;padding:10px;min-height:52px}.game-tool>span{width:21px;height:21px}.zoom-meter{padding:9px 10px}.zoom-copy strong,.zoom-copy>div>span{font-size:14px}.chase-bar{font-size:12px;padding:7px;top:5px;gap:6px}.chase-bar>strong{font-size:18px}.board-frame.chasing{box-shadow:0 4px 0 #6e5680,0 0 0 2px #e3d9eb}
  .ad-section{margin-top:150px}.modal{padding:28px 22px}.modal h2{font-size:27px}.modal-intro,.help-step p,.help-footnote,.result-modal>p:not(.eyebrow),.info-content{font-size:15px}.help-step h3{font-size:17px}.breed-option small{font-size:11px}.modal>.text-button{font-size:15px}.footer-link{font-size:13px}.offline-status{font-size:12px}
}
@media(max-width:350px){.page-shell{padding:0 10px}.brand{font-size:20px;gap:6px}.brand-mark{width:33px;height:35px}.treat-wallet span{width:17px;height:17px}.treat-wallet b{font-size:13px}.home-view .dog-card{grid-template-columns:48px minmax(0,1fr) auto;gap:0 7px;padding:10px}.home-view .portrait-scene{width:48px}.home-view .dog-portrait{width:59px;height:59px}.home-view .dog-name-button h2{font-size:23px}.home-view .upload-button{font-size:12px;padding:9px;gap:4px}.home-view .upload-button>span{width:18px;height:18px;min-width:18px;min-height:18px}.home-view .breed-label{font-size:12px}.difficulty-button{padding:10px 8px}.difficulty-button.active{padding:9px 7px}.difficulty-button>b{font-size:16px}.difficulty-status{font-size:11px}.home-intro h1{font-size:40px}.home-help{font-size:12px;padding:10px}.home-help>span{display:none}.start-button{font-size:17px}.home-challenge{font-size:16px}.home-challenge strong{font-size:20px}.game-toolbar h1{font-size:17px}.scoreboard strong{font-size:29px}.scoreboard .score-main strong{font-size:32px}.scoreboard span{font-size:11px}.board-message{font-size:11px}.chase-bar{font-size:11px;gap:4px}.chase-bar>strong{font-size:16px}}

.header-actions [data-sound-toggle][aria-pressed=true]{background:#e1ebd3;color:#3d6b40}
