:root{font-family:Nunito,ui-rounded,"Arial Rounded MT Bold",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#243755;background:#d7e5ff;font-synthesis:none}
*{box-sizing:border-box}html{-webkit-text-size-adjust:100%;min-height:100%}body{margin:0;min-height:100vh;background:radial-gradient(ellipse 65% 20% at 5% 0%,#b4d1ff,transparent),radial-gradient(ellipse 80% 30% at 96% 18%,#c6cfff,transparent),linear-gradient(165deg,#c9e0ff 0%,#eaf1ff 49%,#d2defe 100%)}button,input{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:disabled{opacity:.44;cursor:not-allowed}button:focus-visible,input:focus-visible{outline:3px solid #ffb238;outline-offset:2px}.hidden{display:none!important}
.app-shell{width:min(100%,590px);min-height:100vh;margin:auto;padding:env(safe-area-inset-top) 14px calc(env(safe-area-inset-bottom) + 30px)}.app-header{display:flex;justify-content:space-between;align-items:center;padding:15px 3px 20px}.brand{display:flex;align-items:center;gap:11px;color:#24406d;text-decoration:none}.brand-mark{position:relative;width:51px;height:51px;display:grid;place-items:center;border-radius:15px;background:linear-gradient(135deg,#5e84ed,#2e57c6);color:white;font-size:36px;font-weight:900;box-shadow:0 6px 0 #244797,0 12px 16px #2858a434}.brand-mark>span{position:absolute;color:#ffd36d;right:-7px;top:-11px;font-size:26px}.brand strong{font-size:19px;font-weight:1000;line-height:1;letter-spacing:-1px}.brand-second{color:#5a81e0}.brand small{display:block;color:#667eaa;font-size:10px;font-weight:900;letter-spacing:1.5px;text-transform:uppercase;margin-top:5px}.round-icon{width:45px;height:45px;border:2px solid #ffffffaa;border-radius:50%;background:#ffffffb5;color:#5878bd;font-size:22px;font-weight:1000;box-shadow:0 5px 13px #3e62a51d}
.lobby{display:flex;flex-direction:column}.intro{text-align:center;padding:8px 10px 13px}.pill{display:inline-flex;align-items:center;gap:7px;border:1px solid #fff;background:#ffffffae;color:#5777b7;border-radius:30px;padding:7px 12px;font-size:11px;font-weight:900;letter-spacing:.6px;text-transform:uppercase}.live-dot{width:7px;height:7px;background:#39bf90;border-radius:50%;box-shadow:0 0 0 3px #39bf9030}.intro-symbol{height:125px;margin:12px auto 7px;position:relative;max-width:260px;display:flex;align-items:center;justify-content:center;gap:12px}.intro-symbol span:nth-child(1),.intro-symbol span:nth-child(3){color:#5d86dc;font-size:56px;font-weight:900;text-shadow:0 3px 0 #fff}.intro-symbol span:nth-child(1){transform:rotate(-35deg)}.intro-symbol span:nth-child(3){transform:rotate(-20deg)}.intro-symbol span:nth-child(2){width:96px;height:96px;border-radius:19px;display:grid;place-items:center;color:#a55b16;font-size:65px;font-weight:1000;background:linear-gradient(160deg,#ffeab0,#ffc86f);border:4px solid #fff;box-shadow:0 9px 0 #dda35a,0 13px 30px #9b703833;transform:rotate(7deg)}h1{font-size:clamp(34px,9vw,51px);letter-spacing:-2.8px;line-height:1.03;margin:8px 0 13px;font-weight:1000;color:#24416d}h1 em{font-style:normal;color:#4e77d5}.intro p{color:#657da7;line-height:1.55;font-size:14px;max-width:330px;margin:0 auto}.lobby-panel{background:#ffffffee;border:2px solid #fff;border-radius:24px;box-shadow:0 16px 40px #456baf1e;padding:22px;margin-top:19px}.lobby-panel label{display:block;color:#6077a1;font-size:11px;font-weight:1000;letter-spacing:1px;margin-bottom:8px}.lobby-panel input{width:100%;height:49px;border:2px solid #e1e9f7;background:#f6f9ff;color:#203f74;border-radius:12px;padding:0 14px;font-size:15px;font-weight:800}.big-button{min-height:54px;border:0;border-radius:13px;font-weight:950}.big-button.primary{width:100%;background:linear-gradient(135deg,#6185ec,#355ecb);color:white;font-size:16px;margin-top:13px;box-shadow:0 5px 0 #264ca7,0 10px 14px #304da431}.big-button.primary>span{display:block;color:#d8e7ff;font-weight:650;font-size:11px;line-height:1.4}.or-divider{text-align:center;margin:21px 0 15px;color:#8796b5;font-size:11px;font-weight:950;display:flex;align-items:center;gap:10px}.or-divider:before,.or-divider:after{content:"";height:1px;background:#e0e7f4;flex:1}.join-line{display:flex;gap:9px}.join-line input{letter-spacing:2px;font-size:14px;flex:1;min-width:0;text-transform:uppercase}.big-button.join{background:#e2ecff;border:1px solid #d5e2fa;color:#3764bd;padding:0 18px}.online-note{font-size:12px;color:#8c6188;background:#fff6fa;padding:10px 12px;border-radius:10px;margin-top:14px;line-height:1.35}.online-note.ready{color:#447364;background:#f0fff7}.local-panel{display:flex;gap:11px;align-items:center;padding:15px 13px;margin-top:15px;background:#ffffff78;border:1px solid #ffffffb0;border-radius:15px}.local-icon{font-size:26px}.local-panel div:nth-child(2){flex:1;min-width:0}.local-panel strong{display:block;color:#294c86;font-size:13px}.local-panel small{display:block;color:#7790b6;font-size:10px;margin-top:3px;line-height:1.4}.local-panel button{border:0;white-space:nowrap;background:#ffedc1;color:#9c6d22;border-radius:10px;padding:11px 9px;font-size:11px;font-weight:950}.tiny-credit{text-align:center;color:#8ba0c5;font-size:10px;margin-top:20px}
.game-topline{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:0 1px 10px}.back-button,.share-button{border:0;border-radius:12px;background:#ffffff88;color:#5275b5;font-size:12px;font-weight:950;padding:12px}.round-label{border-radius:9px;background:#8a6dcd;color:white;font-size:11px;font-weight:1000;letter-spacing:1.4px;padding:8px 12px;box-shadow:0 3px 0 #61469c}.scoreboard{display:flex;align-items:stretch;gap:8px}.player-score{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0;border:2px solid #ffffffdb;border-radius:17px;background:#ffffff95;padding:9px 10px 11px;box-shadow:0 4px 11px #4a71b31c}.player-score.turn{border-color:#f6b849;background:#fff6e4;box-shadow:0 5px 0 #d89d3a,0 7px 13px #ae873b20}.player-head{display:flex;align-items:center;gap:7px}.avatar{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:#617fd2;color:white;font-size:14px;font-weight:950}.player-score:nth-child(2) .avatar{background:#bd72be}.player-head span:last-child{font-size:11px;font-weight:950;color:#566e9b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.player-number{font-size:31px;line-height:1.1;font-weight:1000;text-align:center;color:#305cba;font-variant-numeric:tabular-nums}.player-score:nth-child(2) .player-number{color:#9a52aa}.versus{align-self:center;color:#8397bc;font-size:11px;font-weight:1000}.match-status{display:flex;justify-content:center;align-items:center;min-height:44px;text-align:center;color:#4c72b8;font-weight:900;font-size:13px}.turn-indicator{width:8px;height:8px;background:#ffbe4c;border-radius:50%;display:inline-block;margin-right:6px;box-shadow:0 0 0 3px #ffbe4c55}.puzzle-title-row{display:flex;justify-content:space-between;align-items:center;padding:8px 2px 11px}.puzzle-title-row strong{display:block;color:#294979;font-size:15px}.puzzle-title-row small{display:block;font-size:11px;color:#849bc0;margin-top:2px}.completion{background:#e7f0ff;color:#4776c7;border:1px solid #d5e4fa;border-radius:12px;padding:8px 11px;font-weight:950;font-size:11px}
.board{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));aspect-ratio:1;background:#486ca6;border:3px solid #3f64a5;border-radius:9px;overflow:hidden;box-shadow:0 9px 0 #345894,0 15px 25px #3961a43c;touch-action:manipulation}.sq{position:relative;display:flex;justify-content:center;align-items:center;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;background:#fbfcff;color:#283958;border:0;border-right:1px solid #b5c3d9;border-bottom:1px solid #b5c3d9;border-radius:0;padding:0}.sq.wall{background:repeating-linear-gradient(45deg,#87a5d3 0px,#87a5d3 7px,#7e9ccc 7px,#7e9ccc 14px)}.sq.clue{background:#fff7e5;color:#283348;padding:2px 1px;font-weight:1000;line-height:1.05;overflow-wrap:anywhere;word-break:normal;text-align:center;font-size:clamp(6px,1.75vw,10px)}.sq.clue strong{display:block;max-width:100%;max-height:85%;overflow:hidden;line-height:1.1}.sq.clue .arrow{position:absolute;right:1px;bottom:0;font-size:clamp(9px,2.3vw,15px);color:#6683b8;line-height:1}.sq.clue[data-dir=down] .arrow{bottom:0;left:50%;right:auto;transform:translateX(-50%)}.sq.clue[data-dir=down] strong{margin-bottom:5px}.sq.clue.active{background:#ffe29f;box-shadow:inset 0 0 0 2px #e6a038}.sq.letter{font-weight:1000;font-size:clamp(16px,5.1vw,31px)}.sq.letter.in-word{background:#e7efff}.sq.letter.selected{background:#ffc978;box-shadow:inset 0 0 0 3px #ef9a33;z-index:1}.sq.letter.solved{color:#365eb4}.sq.letter:not(.solved){color:#93a2bf}.sq.letter:not(.solved):after{content:"";width:4px;height:4px;background:#d4deec;border-radius:50%}.sq.letter.selected:not(.solved):after{background:#bc741a}.sq:focus-visible{z-index:2;outline-offset:-3px}
.clue-detail{margin:15px 0 11px;display:flex;gap:10px;align-items:center;padding:11px 14px;background:#ffffffde;border:1px solid #fff;border-radius:14px;min-height:69px;box-shadow:0 5px 12px #436cac10}.clue-arrow{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#dde9ff;color:#4274cb;flex-shrink:0;font-size:24px;font-weight:900}.clue-detail strong{display:block;color:#2c4d84;font-size:13px}.clue-detail small{display:block;color:#7991b8;font-size:11px;margin-top:4px}.rack-panel{background:#ffffffa8;border:1px solid white;padding:15px;border-radius:20px;box-shadow:0 8px 25px #446dac16}.rack-title{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;color:#5d78ad;letter-spacing:1px}.rack-title span{font-size:10px;letter-spacing:0;color:#8498ba}.rack{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin:12px 0 15px}.tile{border:2px solid #e1b270;border-radius:13px;background:linear-gradient(145deg,#fff1c7,#ffd996);box-shadow:0 5px 0 #cd9652,0 7px 10px #995c3126;color:#755022;aspect-ratio:1.15;font-weight:1000;font-size:clamp(24px,7vw,35px);min-width:0}.tile:active{transform:translateY(3px);box-shadow:0 2px 0 #cd9652}.tile:disabled{filter:grayscale(.65)}.actions{display:flex;gap:11px}.secondary-button{flex:1;min-height:44px;border:1px solid #d6e2f7;border-radius:11px;background:#f1f6ff;color:#4a72bb;font-size:13px;font-weight:950}.secondary-button span{font-size:11px;color:#8da0bc}.finished-panel{background:#fff9e6;text-align:center;border:1px solid #ffe3a0;border-radius:18px;padding:20px;margin-top:13px}.finished-panel h2{margin:5px 0;color:#365fb6}.finished-panel p{color:#7284a5;font-size:13px}.finished-panel .big-button{max-width:320px}.waiting-panel{padding:30px 22px;text-align:center;background:#ffffffca;border:1px solid white;border-radius:20px;margin-top:15px}.waiting-panel .spinner{font-size:43px;animation:float 2s infinite}.waiting-panel h2{margin:15px 0 8px;color:#345db2}.waiting-panel p{font-size:13px;line-height:1.5;color:#7890b7}.invite-code{font-size:35px;font-weight:1000;letter-spacing:7px;background:#ebf2ff;padding:18px;border-radius:14px;color:#325ab2;margin:17px 0}.waiting-panel button{width:100%;margin-top:9px}.toast{position:fixed;left:50%;bottom:calc(25px + env(safe-area-inset-bottom));max-width:min(90%,460px);transform:translate(-50%,15px);background:#283c67;color:#fff;border-radius:13px;padding:12px 16px;box-shadow:0 8px 30px #16274a4d;text-align:center;font-size:13px;font-weight:850;opacity:0;pointer-events:none;transition:all .2s;z-index:20}.toast.show{opacity:1;transform:translate(-50%,0)}.help-dialog{border:0;border-radius:25px;padding:26px;max-width:min(90vw,430px);box-shadow:0 35px 80px #162f7290;color:#385176}.help-dialog::backdrop{background:#1c3767a6}.help-dialog h2{color:#2954a1;font-size:26px;margin:6px 0 12px}.help-dialog p{font-size:14px;line-height:1.55}.dialog-close{float:right;border:0;background:#e8f0ff;color:#5476b7;border-radius:50%;width:32px;height:32px}.help-emblem{font-size:42px;color:#527ad3}
@keyframes float{50%{transform:translateY(-7px)}}@media(min-width:560px){.app-shell{padding-left:20px;padding-right:20px}.sq.clue{font-size:10px}.sq.letter{font-size:29px}}@media(max-width:370px){.app-shell{padding-left:8px;padding-right:8px}.sq.clue{font-size:6.5px}.intro-symbol{height:105px}.intro-symbol span:nth-child(2){width:82px;height:82px;font-size:58px}.lobby-panel{padding:17px}.local-panel{padding:9px}.local-panel small{max-width:145px}}
/* Email accounts and privacy-first local ad breaks */
.account-panel{background:#fffdf8;border:1px solid #f6e4b9;border-radius:19px;padding:18px;margin:18px 0 8px;box-shadow:0 6px 25px #4b69ae12}.account-panel h2{font-size:18px;color:#284d89;margin:0 0 5px}.account-panel p{font-size:12px;color:#647b9d;line-height:1.55;margin:7px 0 12px}.account-tabs{display:flex;gap:6px;background:#eaf0fa;border-radius:12px;padding:4px;margin-bottom:14px}.account-tabs button{border:0;border-radius:10px;background:none;padding:10px;flex:1;color:#58719f;font-weight:800;font-size:12px}.account-tabs button.active{background:#fff;color:#3863ad;box-shadow:0 2px 4px #365da022}.account-panel label:not(.check-label){display:block;margin:10px 0 5px;font-weight:850;font-size:11px;color:#58729d}.account-panel input[type=email],.account-panel input[type=password]{width:100%;border:1px solid #d3e0f2;background:white;padding:13px;border-radius:10px;min-height:44px;font-size:14px;color:#243e69}.account-panel .check-label{display:flex;align-items:start;gap:8px;line-height:1.4;margin:12px 0 3px;font-size:11px;color:#506b92}.check-label input{width:17px;height:17px;accent-color:#486fc8;flex-shrink:0}.account-panel .account-fineprint{font-size:10px}.account-panel a{color:#325eb5}.account-message{color:#8c5e34!important}.account-panel #accountSignedIn button{border:1px solid #b9ceec;background:#f0f6ff;color:#4269a8;border-radius:9px;padding:9px 11px;margin:5px 6px 0 0;font-size:11px;font-weight:850}.account-panel #accountSignedIn strong{color:#2f6593}.lobby-panel select{display:block;width:100%;background:#f7f9ff;border:2px solid #e1e9f7;color:#294d84;border-radius:11px;padding:12px;font-size:14px;margin:0 0 14px;font-weight:850}.sponsor-dialog{position:fixed;border:2px solid #f5dcac;border-radius:22px;max-width:min(92vw,430px);width:100%;padding:25px 23px 20px;text-align:center;color:#3c5276;background:#fffdf8;box-shadow:0 22px 65px #172a5c70}.sponsor-dialog::backdrop{background:#162b55b3}.sponsor-eyebrow{font-size:10px;font-weight:950;letter-spacing:2px;color:#a97829}.sponsor-art{font-size:51px;padding:23px 0;background:#fff2d7;border-radius:18px;margin:15px 0 16px}.sponsor-art span{color:#e7a43a}.sponsor-business{font-size:12px;color:#9b742e;font-weight:900;letter-spacing:.6px}.sponsor-dialog h2{font-size:23px;color:#294c87;line-height:1.15;margin:10px 0}.sponsor-dialog p:not(.sponsor-business){font-size:14px;line-height:1.55}.sponsor-dialog .secondary-button{width:100%;margin-top:13px}.sponsor-dialog a.big-button{display:grid;place-items:center;text-decoration:none;line-height:1.2}.sponsor-dialog a.big-button.hidden{display:none}.sponsor-dialog small{display:block;color:#8c9bb0;font-size:10px;margin-top:15px;line-height:1.4}

/* Blackpool logo clue presentation: small square indicator, large accessible artwork. */
.sq.picture-clue{background:#e9d9ff;color:#6b48a5}
.sq.picture-clue strong{display:flex;flex-direction:column;align-items:center;gap:1px;justify-content:center}
.picture-icon{font-size:clamp(15px,4.5vw,27px);line-height:1}
.picture-label{font-size:clamp(6px,1.55vw,9px);font-weight:1000;letter-spacing:.25px}
.clue-detail.with-logo{display:block;padding:12px 14px}
.clue-description{display:flex;align-items:center;gap:10px}
.logo-artwork{margin-bottom:10px;display:grid;justify-items:center;gap:3px;padding:12px;background:linear-gradient(145deg,#fff,#f6f7fe);border:1px solid #e1e8f3;border-radius:13px}
.logo-artwork img{height:118px;width:100%;max-width:330px;object-fit:contain}
.logo-artwork-caption{font-size:9px;color:#8b94ad;letter-spacing:.2px;text-align:center}

/* Mixed arrowword layout: two clues sharing a square show both arrows. */
.sq.dual-clue{background:#eef0d9;color:#37517e;padding:1px}
.sq.dual-clue strong{display:grid;place-content:center;gap:3px;width:100%;height:100%;max-height:100%;overflow:hidden}
.dual-head{font-size:clamp(5px,1.6vw,9px);line-height:1;letter-spacing:-.15px}
.dual-arrows{display:flex;justify-content:space-evenly;gap:2px;color:#5477ad;font-size:clamp(10px,2.6vw,16px);line-height:1}
.sq.dual-clue.active{background:#ffdc8a}


/* v0.2 · Original arrowword-inspired playful look, not an imitation of branded art. */
body:has(#gameScreen:not(.hidden)){
 background:radial-gradient(110% 38% at 50% 0%,#a9c5f3 0%,transparent 85%),linear-gradient(180deg,#789bdf 0%,#9cbaf0 49%,#cbdaf9 100%);
}
body:has(#gameScreen:not(.hidden)) .app-header{padding-bottom:8px}
body:has(#gameScreen:not(.hidden)) .brand{color:#153e7b}
.game-topline{padding-bottom:5px}
.round-label{font-weight:1000;letter-spacing:1px;color:#fff9eb;background:#8962b0;border:1px solid #654897;box-shadow:0 3px 0 #604583;padding:5px 12px;border-radius:10px}
.puzzle-title-row strong{font-size:17px;letter-spacing:-.45px;color:#1b3971}
.puzzle-title-row small{font-size:11px;color:#456da7}
.completion{background:#edf3ff!important;border:1px solid #ffffffa8!important;border-radius:14px!important;color:#2a5ea5!important;font-weight:1000}
.board{
 border:3px solid #315c9f;
 border-radius:7px;
 background:#f0f5ff;
 box-shadow:0 7px 0 #244c8a,0 12px 19px #1f478545;
 overflow:hidden;
 aspect-ratio:1;
}
.sq{border-right:1px solid #8ba2c2;border-bottom:1px solid #8ba2c2}
.sq.wall{background:repeating-linear-gradient(140deg,#c7d8f0 0,#c7d8f0 7px,#bbceeb 7px,#bbceeb 14px)}
.sq.letter{background:#fffefa;color:#2e4573;font-weight:950}
.sq.letter:not(.solved):after{display:none}
.sq.letter.in-word{background:#e9f3ff}
.sq.letter.selected{background:#ffd08b!important;box-shadow:inset 0 0 0 3px #df9732,0 0 0 1px #cd7c10;z-index:1}
.sq.letter.solved{background:#eaf8ef;color:#267249}
.sq.clue{
 background:#fff5d9;
 color:#202937;
 padding:3px 2px 10px;
 line-height:1.08;
 font-weight:950;
 font-size:clamp(7px,1.76vw,10.5px);
 hyphens:auto;
 overflow-wrap:normal;
 word-break:normal;
}
.sq.clue strong{max-height:100%;font-weight:950;line-height:1.1;overflow:hidden;display:block}
.sq.clue .arrow{color:#3d6196;font-size:clamp(10px,2.65vw,17px);right:2px;bottom:0}
.sq.clue[data-dir=down] .arrow{left:50%;right:auto;bottom:0}
.sq.clue.active{background:#ffe3a2;box-shadow:inset 0 0 0 2px #e6a037}
.sq.clue.picture-clue{background:#e8d5fa;color:#60439b}
.sq.clue.emoji-clue{background:#eff9e4;padding-top:2px}
.sq.clue .clue-emoji{display:block;font-size:clamp(12px,3.4vw,21px);line-height:1}
.sq.clue .emoji-caption{display:block;font-size:clamp(5px,1.4vw,9px);line-height:1.1;margin-top:1px}
.sq.clue .picture-icon{display:block;font-size:clamp(13px,3vw,22px);line-height:1;color:#9162c4}
.sq.clue .picture-label{display:block;font-size:clamp(5px,1.25vw,9px);letter-spacing:0;font-weight:1000}
.sq.clue.dual-clue{padding:1px;display:flex;flex-direction:column;justify-content:space-around;background:#f5eaf9}
.sq.clue .dual-head,.sq.clue .dual-foot{font-size:clamp(5px,1.22vw,8px);line-height:1.05;max-height:28%;overflow:hidden;display:block}
.sq.clue .dual-arrows{display:flex;gap:4px;justify-content:space-around;color:#654597;font-size:clamp(9px,2.2vw,14px);line-height:1}
.sq.letter.drop-target{background:#99f4b6!important;box-shadow:inset 0 0 0 3px #079859!important;z-index:2}
.board.drag-active .sq.letter:not(.solved){box-shadow:inset 0 0 0 1px #61bb95}
.tile{touch-action:none;user-select:none;-webkit-user-select:none;position:relative;transition:filter .12s,transform .12s}
.tile:not(:disabled):hover{filter:brightness(1.03)}
.tile.drag-source{opacity:.4;transform:scale(.95)}
.drag-ghost{pointer-events:none;position:fixed;transform:translate(-50%,-50%);width:65px;height:65px;display:grid;place-items:center;z-index:10000;border-radius:14px;border:3px solid #dca84f;background:linear-gradient(150deg,#fff5cb,#ffc970);box-shadow:0 11px 0 #b77e35,0 18px 22px #0005;color:#70502b;font-weight:1000;font-size:35px;user-select:none}
.rack-title strong{color:#395c9a;letter-spacing:.45px}
.rack-panel{margin-top:7px}
.clue-detail{margin:14px 0 10px;background:#fffaf0;box-shadow:0 4px 0 #c6d0e5;border:1px solid white}
@media(max-width:390px){
 .app-shell{padding-left:7px;padding-right:7px}
 .sq.clue{font-size:clamp(6px,1.9vw,8.5px)}
 .sq.clue .emoji-caption{font-size:clamp(5px,1.3vw,7px)}
 .puzzle-title-row small{font-size:10px}
 .rack-title strong{font-size:9px}
}
@media(prefers-reduced-motion:reduce){.tile{transition:none}}

.turn-alert-controls{display:grid;gap:6px;margin:14px 0 3px;text-align:left}
.turn-alert-toggle{min-height:42px;padding:10px 13px;border-radius:12px;border:1px solid #acc4e8;background:#edf4ff;color:#2c5598;font-size:13px;font-weight:850}
.turn-alert-toggle:disabled{opacity:.6}
.turn-alert-controls small{font-size:11px;line-height:1.4;color:#61799e}

/* Keep rack and grid close enough for one-gesture phone dragging. */
body:has(#gameScreen:not(.hidden)) .app-header{padding:6px 3px 7px}
body:has(#gameScreen:not(.hidden)) .brand-mark{width:33px;height:33px;border-radius:10px;font-size:22px;box-shadow:0 4px 0 #244797}
body:has(#gameScreen:not(.hidden)) .brand-mark>span{font-size:15px;top:-4px;right:-3px}
body:has(#gameScreen:not(.hidden)) .brand strong{font-size:15px}
body:has(#gameScreen:not(.hidden)) .brand small{font-size:7px;letter-spacing:1px;margin-top:2px}
body:has(#gameScreen:not(.hidden)) .round-icon{width:35px;height:35px;font-size:17px}
.game-topline{padding:1px 0 5px}
.game-topline .back-button,.game-topline .share-button{padding:7px 9px;border-radius:9px;font-size:10px}
.scoreboard{gap:5px}
.player-score{padding:5px 9px 4px;gap:1px;border-radius:12px;display:flex;flex-direction:row;align-items:center;justify-content:space-between}
.player-score .player-head{gap:5px;min-width:0}
.player-score .player-head span:last-child{font-size:10px}
.player-score .avatar{width:25px;height:25px;font-size:12px}
.player-score .player-number{font-size:26px;line-height:1}
.versus{font-size:10px}
.match-status{min-height:26px;font-size:11px}
.puzzle-title-row{padding:3px 0 7px}
.puzzle-title-row strong{font-size:15px}
.puzzle-title-row small{font-size:9px}
.completion{font-size:13px}
.clue-detail,.clue-detail.with-logo{display:flex;align-items:center;gap:9px;margin:11px 0 7px;padding:8px 9px;min-height:56px;box-shadow:0 3px 0 #c6d0e5}
.clue-description{min-width:0;flex:1;gap:8px}
.clue-description strong{font-size:12px;line-height:1.15}
.clue-description small{font-size:10px}
.clue-arrow{width:29px;height:29px;font-size:17px;border-radius:8px}
.logo-artwork{width:82px;min-width:82px;height:54px;display:grid;align-items:center;justify-items:center;margin:0;padding:3px;border:1px solid #cbb4ed;border-radius:8px;background:white;cursor:zoom-in;overflow:hidden}
.logo-artwork img{height:46px;width:76px;object-fit:contain}
.logo-artwork-caption{display:none}
.rack-panel{margin:6px 0;padding:9px 11px 10px;border-radius:16px}
.rack{gap:7px;margin:7px 0 10px}
.tile{font-size:28px;aspect-ratio:1.45;border-radius:10px}
.rack-title{font-size:9px}
.rack-title span{font-size:9px}
.actions{gap:7px}
.actions .secondary-button{padding:9px 6px;font-size:12px}
.sq.clue .dual-head,.sq.clue .dual-foot{font-size:clamp(6px,1.45vw,8px);line-height:1;white-space:nowrap;max-height:26%}
.sq.clue .dual-arrows{font-size:clamp(8px,2vw,12px)}
.logo-dialog{position:fixed;margin:auto;border:0;border-radius:18px;background:#fffaf0;box-shadow:0 12px 50px #13253b6e;text-align:center;padding:24px;max-width:min(92vw,390px);color:#284679}
.logo-dialog::backdrop{background:#07172aa6}
.logo-dialog img{display:block;width:100%;height:180px;object-fit:contain;margin:14px 0;background:#f7f8fd;border-radius:12px}
.logo-dialog small{font-size:11px;color:#6a7896;display:block}
.logo-close{position:absolute;right:12px;top:12px;border:0;background:#e8edff;border-radius:50%;width:28px;height:28px}
@media(max-width:390px){.clue-description small{font-size:9px}.rack-title span{font-size:8px}}

/* A hint is a temporary, static guide — it does not fill the grid or consume a turn. */
.sq.letter.hint-preview{background:#fff0c5;color:#885d25;box-shadow:inset 0 0 0 2px #e5be66}
.sq.letter.hint-preview::after{display:none}
/* Keep the sponsor immediately after the crossword; do not restore the old clue card. */
.clue-detail{display:none!important}
/* v0.3 — back to the clear, classic arrowword board in the reference image. */
body:has(#gameScreen:not(.hidden)){background:#7a9de1}
body:has(#gameScreen:not(.hidden)) .app-shell{padding-left:7px;padding-right:7px}
.board{
  background:#ffffff;
  border:3px solid #3d5b8c;
  border-radius:3px;
  box-shadow:0 4px 0 #2f568c;
}
.sq{border-color:#b0b5bf}
/* Unused template cells are now plain white — no blue, no stripes. */
.sq.wall{
  background:#fff;
  border-right:1px solid #b0b5bf;
  border-bottom:1px solid #b0b5bf;
}
.sq.letter{background:#fff}
.sq.letter.in-word{background:#e9f0fb}
.sq.letter.selected{background:#ffc66b!important}
.sq.clue{
  background:#fff7e6;
  color:#181c26;
  font-family:Arial,system-ui,sans-serif;
  font-weight:800;
  font-size:clamp(8px,2.25vw,12px);
  line-height:1.03;
  padding:2px 2px 11px;
  hyphens:auto;
  text-wrap:balance;
}
.sq.clue strong{font-weight:800;line-height:1.05}
.sq.clue .arrow{font-size:clamp(12px,3.1vw,17px);color:#6b7488}
.sq.clue.emoji-clue{background:#fff8e7}
.sq.clue.picture-clue{background:#f3e3fb}
.sq.clue.active{background:#ffcc7c;box-shadow:inset 0 0 0 2px #dc932b}
.sq.clue.dual-clue{background:#fff1e1}
.sq.clue .dual-head,.sq.clue .dual-foot{font-size:clamp(6.5px,1.65vw,10px)}
.clue-open-button{
  display:flex;align-items:center;gap:8px;width:100%;min-width:0;
  background:transparent;border:0;padding:2px;text-align:left;color:inherit;cursor:zoom-in;
}
.clue-open-icon{margin-left:auto;color:#4d79bd;font-size:21px;font-weight:900}
.clue-zoom-dialog{
  width:min(92vw,460px);max-height:min(85dvh,630px);
  position:fixed;inset:0;margin:auto;padding:30px 22px 20px;
  border:3px solid #edb95d;border-radius:19px;background:#fffdf7;
  color:#1b2c48;box-shadow:0 18px 65px #13294e77;text-align:center;
}
.clue-zoom-dialog::backdrop{background:#172747b8;backdrop-filter:blur(2px)}
.clue-zoom-x{position:absolute;right:11px;top:10px;background:#e6ecf9;color:#345389;border:0;border-radius:50%;width:35px;height:35px;font-size:18px;font-weight:800}
.clue-zoom-eyebrow{display:inline-block;padding:6px 14px;background:#dae6ff;color:#375fa4;border-radius:20px;font-weight:950;letter-spacing:.9px;font-size:12px}
.clue-zoom-dialog h2{margin:17px 0 7px;font-size:15px;color:#6b7c95;text-transform:uppercase;letter-spacing:1.2px}
.clue-zoom-text{font-family:Arial,system-ui,sans-serif;font-size:clamp(23px,6vw,30px);line-height:1.2;letter-spacing:-.3px;font-weight:850;margin:10px 0 18px;color:#1d2a3f}
.clue-zoom-pattern{font-size:18px;letter-spacing:2px;font-weight:800;color:#4f6da3;margin:6px 0 23px}
.clue-zoom-dialog .big-button.primary{margin:0 0 12px;box-shadow:0 4px 0 #244fa1}
.clue-zoom-dialog small{display:block;font-size:11px;color:#70809c;line-height:1.45}
.clue-zoom-art{margin:15px auto 0;min-height:65px;display:grid;place-items:center;color:#294e89;font-size:58px}
.clue-zoom-art img{width:min(100%,260px);height:130px;object-fit:contain;border-radius:10px;background:#fff}
.clue-zoom-art span{display:block;font-size:10px;letter-spacing:0;color:#78839c}
@media(max-width:390px){.sq.clue{font-size:clamp(7.6px,2.26vw,9px)}.sq.clue .emoji-caption{font-size:clamp(6px,1.6vw,9px)}}

/* v0.4: Each clue has its own unmistakable arrow. Double clues remain ONE button. */
.sq.clue.dual-clue{
  display:block;
  padding:0;
  background:#fff8e9;
  color:#1d2835;
}
.sq.clue.dual-clue strong{
  display:grid;
  grid-template-rows:1fr 1fr;
  gap:0;
  height:100%;
  width:100%;
  max-height:100%;
  padding:0;
}
.sq.clue .dual-entry{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:1px 10px 1px 1px;
  min-width:0;
  min-height:0;
  overflow:hidden;
  font-size:clamp(6.5px,1.66vw,9px);
  line-height:1.02;
  font-weight:850;
  text-align:center;
}
.sq.clue .dual-entry + .dual-entry{border-top:1px solid #a8acb4}
.sq.clue .dual-entry .dual-label{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  overflow-wrap:break-word;
  max-height:100%;
}
.sq.clue .dual-entry .dual-arrow{
  position:absolute;
  right:0;
  bottom:1px;
  display:grid;
  place-items:center;
  font-family:Arial,system-ui,sans-serif;
  color:#315f9a;
  font-size:clamp(11px,3vw,16px);
  font-weight:1000;
  line-height:1;
}
.sq.clue .dual-entry.dual-down .dual-arrow{right:0;bottom:1px}
.sq.clue.letter{background:#fff}
.sq.letter.in-word{background:#f2f6ff}
.sq.letter.selected{background:#ffce7e!important}
.clue-zoom-both{display:grid;gap:12px;margin:16px 0 21px;text-align:left}
.zoom-direction-row{display:flex;gap:13px;align-items:flex-start;padding:15px;border:1px solid #d9dfe9;background:#fff;border-radius:13px}
.zoom-direction-arrow{min-width:47px;height:47px;display:grid;place-items:center;border-radius:10px;background:#edf3fc;color:#285a9d;font-size:34px;font-family:Arial,sans-serif;font-weight:900}
.zoom-direction-row b{display:block;font-size:12px;letter-spacing:.08em;color:#55739e}
.zoom-direction-row p{font-size:21px;font-weight:850;line-height:1.2;margin:3px 0 7px;color:#1d2c44}
.zoom-direction-row small{font-size:12px;font-weight:700;color:#7386a2}
.clue-zoom-dialog{padding:27px 18px 18px}
.clue-zoom-dialog .big-button.primary{margin-top:5px}
@media(max-width:390px){.sq.clue .dual-entry{font-size:6.7px}.zoom-direction-row p{font-size:19px}}


/* v0.5: classic arrowword clue tiles — match the reference, no full-screen clue dialog. */
.board{overflow:visible;isolation:isolate;border-radius:2px;box-shadow:0 4px 0 #36598b}
.sq.clue,.sq.clue.dual-clue{
  overflow:visible;
  background:#fff8e8;
  padding:2px 2px 6px;
  color:#171a21;
  font-family:Arial,Helvetica,sans-serif;
  font-weight:850;
  font-size:clamp(7px,2.1vw,11px);
  line-height:1.02;
  text-transform:uppercase;
  text-align:center;
  transition:transform .14s ease, box-shadow .14s ease, background .14s ease;
  transform-origin:center center;
}
.sq.clue strong{overflow:hidden;max-height:100%;font-size:inherit;line-height:1.04}
.sq.clue.active,.sq.clue.dual-clue.active{background:#fff4d9;box-shadow:none}
.sq.clue.clue-peek,.sq.clue.dual-clue.clue-peek{
  transform:scale(1.12);
  z-index:4;
  background:#fff6e4;
  box-shadow:0 3px 11px #2b3d5c66,0 0 0 1px #75869f;
  border-radius:2px;
}
.sq.clue.clue-peek strong{font-size:inherit}
.sq.clue[data-col="0"].clue-peek{transform-origin:left center}
.sq.clue[data-col="8"].clue-peek{transform-origin:right center}
.sq.clue[data-row="0"].clue-peek{transform-origin:center top}
.sq.clue[data-row="8"].clue-peek{transform-origin:center bottom}
.sq.clue[data-row="0"][data-col="0"].clue-peek{transform-origin:left top}
.sq.clue[data-row="0"][data-col="8"].clue-peek{transform-origin:right top}
.sq.clue[data-row="8"][data-col="0"].clue-peek{transform-origin:left bottom}
.sq.clue[data-row="8"][data-col="8"].clue-peek{transform-origin:right bottom}
/* Picture clues remain inside their square even when selected, so neighbouring clues stay legible. */
.sq.clue.picture-clue.clue-peek{transform:none;z-index:2;box-shadow:inset 0 0 0 2px #315b9e}
/* Small triangle on the OUTSIDE edge of each clue, as in the supplied screenshot. */
.sq.clue .arrow{display:block;font-size:0!important;width:0;height:0;transform:none;z-index:2}
.sq.clue[data-dir="across"] .arrow{
  right:-7px;left:auto;top:50%;bottom:auto;transform:translateY(-50%);
  border-left:7px solid #8590a6;
  border-top:5px solid transparent;
  border-bottom:5px solid transparent;
}
.sq.clue[data-dir="down"] .arrow{
  left:50%;right:auto;top:auto;bottom:-7px;transform:translateX(-50%);
  border-top:7px solid #8590a6;
  border-left:5px solid transparent;
  border-right:5px solid transparent;
}
.sq.clue.dual-clue{display:block;padding:0}
.sq.clue.dual-clue strong{display:grid;grid-template-rows:1fr 1fr;height:100%;max-height:100%;overflow:visible}
.sq.clue .dual-entry{
  overflow:visible;min-width:0;min-height:0;
  display:flex;align-items:center;justify-content:center;
  padding:1px 2px 1px;
  font-family:Arial,Helvetica,sans-serif;
  font-size:clamp(6px,1.55vw,9px);
  font-weight:850;line-height:1.04;
}
.sq.clue .dual-entry + .dual-entry{border-top:1px solid #aeb4bc}
.sq.clue .dual-entry .dual-label{max-height:100%;line-height:1.04;overflow:hidden}
.sq.clue .dual-entry .dual-arrow{
  display:block;font-size:0!important;width:0;height:0;
  color:transparent;z-index:2;
}
.sq.clue .dual-entry.dual-across .dual-arrow{
  left:auto;right:-7px;top:50%;bottom:auto;transform:translateY(-50%);
  border-left:7px solid #8590a6;
  border-top:5px solid transparent;
  border-bottom:5px solid transparent;
}
.sq.clue .dual-entry.dual-down .dual-arrow{
  left:50%;right:auto;top:auto;bottom:-7px;transform:translateX(-50%);
  border-top:7px solid #8590a6;
  border-left:5px solid transparent;
  border-right:5px solid transparent;
}
/* No garish colour blocks: keep the puzzle clean, not a set of coloured buttons. */
.sq.clue.picture-clue{background:#fff3dc}
.sq.clue.emoji-clue{background:#fff8e8}
.sq.clue.dual-clue{background:#fff8e8}
.sq.letter.in-word{background:#f3f7ff}
@media (prefers-reduced-motion:reduce){.sq.clue{transition:none}}

.clue-detail .clue-description{display:flex;gap:10px;align-items:center;min-width:0}.clue-detail .clue-description>div:last-child{min-width:0}

/* The enlarged tile is visual-only outside its cell, so it never blocks adjoining letter squares. */
.sq.clue.clue-peek{pointer-events:none}

/* Turn-based rack submission: provisional tiles are never marked right/wrong until Submit. */
.sq.letter.pending{background:#fff0cf;color:#755025;box-shadow:inset 0 0 0 2px #dba951;z-index:1;touch-action:none}
.sq.letter.pending.selected{background:#ffd18b!important}
.sq.letter.pending::after{display:none!important}
.pending-marker{position:absolute;bottom:1px;right:3px;color:#bf822f;font-size:11px}
.sq.letter.last-wrong:not(.pending):not(.solved){background:#ffefee}
.sq.letter.last-wrong:not(.pending):not(.solved)::before{content:'×';position:absolute;font-size:16px;color:#d86c67;opacity:.66}
.sq.letter.last-correct.solved{background:#e6f9ed;color:#266e3f}
.tile.tile-used{opacity:.42;filter:grayscale(.5);box-shadow:0 2px 0 #c3a480;transform:translateY(3px)}
.tile-tick{position:absolute;top:2px;right:5px;font-size:11px;color:#37834b}
.submit-turn{width:100%;min-height:52px;display:block;border:0;border-radius:13px;font-size:17px;font-weight:950;color:#fff;background:linear-gradient(160deg,#36a76b,#168350);box-shadow:0 5px 0 #0a6240,0 9px 18px #2161442a}
.submit-turn:disabled{background:#b9c7d5;box-shadow:0 3px 0 #98a6b8;opacity:.75;color:#f6f8fb}
.draft-tools{display:flex;gap:8px;margin:12px 0 10px}
.draft-button{flex:1;border:1px solid #ccd7e8;border-radius:10px;min-height:36px;background:#fff;color:#526f9c;font-size:12px;font-weight:900}
.last-turn{padding:10px 12px;margin-bottom:10px;border:1px solid #cddcf0;border-radius:12px;background:#f8fbff}
.result-title{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;font-weight:950;color:#2d548e}
.result-title strong{font-size:15px;color:#18754f}
.result-summary{font-size:12px;margin-top:4px;color:#697d9f}
.result-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}
.result-chips span{font-size:11px;border-radius:9px;padding:5px 6px;color:#446185;background:#e9f0fb}
.result-chips b{color:#21496f}
.last-turn small{display:block;margin-top:7px;color:#7185a2;font-size:10px}
@media(max-width:390px){.rack-title{flex-wrap:wrap}.rack-title span{width:100%}}

/* Score cards stay readable for three seconds; rapid turns queue in order. */
.turn-celebration{position:fixed;inset:0;z-index:170;display:grid;place-items:center;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .14s ease,visibility .14s ease;background:radial-gradient(ellipse at center,#183e7a20,#17366c00 68%);padding:16px}
.turn-celebration.visible{opacity:1;visibility:visible}
.celebration-card{position:relative;width:min(86vw,340px);padding:20px 24px 17px;border-radius:24px;text-align:center;color:#214470;background:linear-gradient(164deg,#fffefa,#fff1ca);border:3px solid #fff9df;box-shadow:0 13px 0 #b1873e,0 22px 65px #203d7580;transform:scale(.86) translateY(14px);transition:transform .24s cubic-bezier(.2,1.55,.55,1)}
.turn-celebration.visible .celebration-card{transform:scale(1) translateY(0)}
.celebration-stars{height:40px;color:#e2a51f;letter-spacing:3px;font-size:32px;line-height:37px;font-weight:1000;text-shadow:0 2px 0 #fff7c9,0 3px 6px #a36a4380}
.celebration-heading{display:block;margin-top:2px;font-size:19px;font-weight:1000;letter-spacing:1px;color:#36599b}
.celebration-points{font-size:clamp(55px,15vw,76px);font-weight:1000;line-height:1.07;letter-spacing:-3px;font-variant-numeric:tabular-nums;color:#22945d;text-shadow:0 3px 0 #fff8ed}
.celebration-detail{font-size:12px;font-weight:900;color:#51709d;line-height:1.3}
.celebration-footnote{font-size:9px;color:#91a0b9;text-transform:uppercase;letter-spacing:1.4px;font-weight:900;margin-top:9px}
.turn-celebration.missed .celebration-card{background:linear-gradient(155deg,#fffefa,#fff4f0);box-shadow:0 8px 0 #d4a5a0,0 16px 36px #4d5e7d50}
.turn-celebration.missed .celebration-points{color:#bd6563}
.turn-celebration.perfect .celebration-card{background:linear-gradient(155deg,#fffdf1,#ffe6a3);border-color:#fff8c2;box-shadow:0 11px 0 #d69d28,0 25px 75px #936a1590}
.turn-celebration.perfect .celebration-heading{color:#9c6910}
.turn-celebration.perfect .celebration-points{color:#dc8b0f}
.celebration-sparkles{position:absolute;width:min(96vw,470px);height:320px;z-index:-1;left:50%;top:50%;transform:translate(-50%,-50%);font-size:28px;color:#f5be37;opacity:0}
.turn-celebration.strong .celebration-sparkles,.turn-celebration.perfect .celebration-sparkles{opacity:1}
.celebration-sparkles i{position:absolute;font-style:normal;animation:celebration-burst .7s ease-out both}
.celebration-sparkles i:nth-child(1){top:6%;left:9%;animation-delay:.07s}.celebration-sparkles i:nth-child(2){top:16%;right:8%;animation-delay:.11s}.celebration-sparkles i:nth-child(3){top:70%;left:0;animation-delay:.17s}.celebration-sparkles i:nth-child(4){top:79%;right:5%;animation-delay:.21s}.celebration-sparkles i:nth-child(5){top:3%;left:48%;animation-delay:.09s}.celebration-sparkles i:nth-child(6){bottom:-4%;left:51%;animation-delay:.18s}
@keyframes celebration-burst{0%{opacity:0;transform:scale(.25) rotate(-30deg)}40%{opacity:1;transform:scale(1.5) rotate(10deg)}100%{opacity:.86;transform:scale(1) rotate(0)}}
@media(prefers-reduced-motion:reduce){.turn-celebration,.celebration-card{transition:none}.celebration-sparkles i{animation:none}}

/* v0.4.1: No moving amber selection box while placing tiles.
   A square the player explicitly taps has a quiet stationary outline only until placement. */
.sq.letter.tap-target:not(.pending):not(.solved) {
  background:#f5f8ff;
  box-shadow:inset 0 0 0 2px #8699b9;
  z-index:1;
}
.sq.letter.pending {
  background:#fff6e8;
  box-shadow:inset 0 0 0 1px #decba6;
  color:#414d65;
}
.sq.letter.pending .pending-marker {display:none}

/* v0.5: compact permanent local advertising example and real image clues.
   Leave the crossword uncluttered: no large panels or extra moving focus. */
.sq.clue.picture-clue{padding:2px 2px 5px;background:#fff8e9}
.sq.clue.picture-clue strong{display:flex;align-items:center;justify-content:center;width:100%;height:100%;max-height:100%}
.sq.clue.picture-clue .in-grid-logo{display:block;max-width:100%;width:100%;max-height:83%;height:auto;object-fit:contain;pointer-events:none}
.featured-spot{display:flex;align-items:center;gap:9px;min-height:55px;margin:7px 1px;padding:7px 9px;border:1px solid #d5c4a2;border-radius:11px;background:#fff9ec;color:#273954;box-shadow:0 2px 0 #cdbf9d;position:relative}
.featured-spot-art{display:grid;place-items:center;flex:0 0 78px;width:78px;height:43px;border:1px solid #e2d8c7;border-radius:7px;background:#fff;overflow:hidden}
.featured-spot-art img{max-width:74px;width:100%;max-height:42px;object-fit:contain}
.featured-house-icon{font-size:26px;color:#c59a4c}
.featured-spot-copy{display:flex;flex-direction:column;justify-content:center;gap:1px;min-width:0;flex:1;line-height:1.16}
.featured-spot-copy small{font-size:9px;font-weight:900;letter-spacing:.65px;color:#91692c}
.featured-spot-copy strong{font-size:13px;line-height:1.18;color:#304b77;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.featured-spot-copy span{font-size:10px;color:#6f7b94;line-height:1.16}
@media(max-width:390px){.featured-spot{padding:6px 8px;gap:7px}.featured-spot-art{width:70px;flex-basis:70px}.featured-spot-copy strong{font-size:12px}.featured-spot-copy span{font-size:9px}}

/* Keep approved sponsored placements the same compact size as the house demo. */
.featured-spot-link{display:flex;align-items:center;gap:9px;color:inherit;text-decoration:none;width:100%}
.featured-spot-link:focus-visible{outline:3px solid #496dc2;outline-offset:3px;border-radius:10px}

.logo-mode-card{display:flex;align-items:center;gap:12px;margin:14px 0;padding:14px 16px;border:2px solid #b8c5eb;border-radius:17px;background:#fffaf0;color:#31558c;text-decoration:none;box-shadow:0 3px 0 #a7b7da}
.logo-mode-card strong,.logo-mode-card small{display:block}.logo-mode-card strong{font-size:15px}.logo-mode-card small{font-size:11px;line-height:1.4;color:#6a83ac}
.logo-mode-icon{width:44px;min-width:44px;height:44px;background:#e3b152;color:#fff;display:grid;place-items:center;border-radius:12px;font-size:24px}
.logo-mode-card:focus-visible{outline:3px solid #325ab3;outline-offset:4px}

/* Integrated four-picture surprise within the same room and scoreboard. */
.logo-bonus-panel{margin:12px 0 20px;border-radius:21px;background:linear-gradient(145deg,#fffdf5,#eaf0ff);border:2px solid #f4d188;box-shadow:0 9px 0 #dab96c,0 20px 40px #284f931f;padding:18px 15px;text-align:center;color:#284878}
.logo-bonus-panel.hidden{display:none}
.logo-bonus-eyebrow{font-weight:900;color:#a47727;letter-spacing:1.5px;font-size:12px}
.logo-bonus-title{font-size:clamp(24px,8vw,31px);line-height:1.13;color:#31549c;margin:6px 0 5px;letter-spacing:-.7px}
.logo-bonus-subtitle{font-size:12px;line-height:1.4;color:#607cab;margin:4px 0 12px}
.logo-bonus-visual{background:white;border:3px solid #dce6f8;border-radius:18px;height:173px;display:grid;place-items:center;position:relative;overflow:hidden;margin:12px 0}
.logo-bonus-visual img{max-width:94%;width:300px;max-height:149px;height:100%;object-fit:contain}
.logo-bonus-visual small{position:absolute;right:7px;bottom:5px;padding:3px 5px;color:#8ba0bd;background:#fffd;border-radius:5px;font-size:9px}
.logo-bonus-choices{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:11px}
.logo-bonus-choices button{min-height:53px;border-radius:12px;border:2px solid #bfceea;background:#fff;color:#2d568e;font-weight:900;padding:7px;box-shadow:0 3px 0 #b8c9e1}
.logo-bonus-choices button:focus-visible{outline:3px solid #d39e32;outline-offset:2px}
.logo-bonus-choices button:disabled{opacity:.5}
.logo-bonus-message{padding:10px;background:#e1ecff;color:#335c9c;border-radius:12px;font-size:12px;font-weight:800;margin-top:12px}
.logo-bonus-message strong{color:#366fa4}
.bonus-next{max-width:330px;margin:14px auto 0}
.logo-bonus-preview-note{font-size:11px;color:#8293ae;margin-top:10px}
.bonus-preview-btn{font-size:12px;border:1px solid #bbcae7;background:white;border-radius:9px;padding:8px 12px;color:#315b9a;font-weight:850;margin-left:auto;white-space:nowrap}
@media(max-width:390px){.logo-mode-card{gap:8px;padding:11px}.logo-mode-card small{font-size:10px}.logo-mode-icon{width:35px;min-width:35px;height:35px}}

/* One-player scoring: no pretend opponent in solo mode. */
.scoreboard.solo{justify-content:center;display:flex;}
.scoreboard.solo .player-score{width:min(100%,380px);flex:0 1 380px;}

/* Make solo play a real first-class mode, not a test shortcut. */
.local-panel{background:#fffaf0;border:2px solid #efcf84;box-shadow:0 4px 0 #d6a74a;gap:12px;padding:15px 14px;}
.local-panel strong{font-size:16px;color:#264a80}.local-panel small{font-size:11px;color:#6e7f9c}
.local-panel button{padding:13px 16px;font-size:13px;background:#f2bd56;color:#593d10;border:1px solid #c9923d;}
.multiplayer-controls{margin-top:12px;}

/* Compact, touch-friendly account recovery beneath the password field. */
#forgotPasswordBtn.password-reset {margin:6px 0 12px;display:inline-flex;min-height:36px;padding:7px 4px;background:none;border:0;color:#365da2;text-decoration:underline;font-size:13px;font-weight:800;}
#forgotPasswordBtn.password-reset.hidden {display:none!important;}

/* Phone game layout: keep the full-size 9x9 grid, reclaim space around it.
   The letter rack stays in normal flow (never covers or shrinks board cells).
   Sponsor placement follows the controls so the rack meets the crossword. */
@media (max-width: 600px) {
  body:has(#gameScreen:not(.hidden)) .app-shell {
    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: calc(env(safe-area-inset-bottom) + 16px);
  }
  body:has(#gameScreen:not(.hidden)) .app-header {
    padding: 3px 5px 5px;
    min-height: 39px;
  }
  body:has(#gameScreen:not(.hidden)) .brand { gap: 7px; }
  body:has(#gameScreen:not(.hidden)) .brand-mark {
    width: 30px; height: 30px; font-size: 21px; border-radius: 9px;
  }
  body:has(#gameScreen:not(.hidden)) .brand strong { font-size: 14px; }
  body:has(#gameScreen:not(.hidden)) .brand small { display: none; }
  body:has(#gameScreen:not(.hidden)) .round-icon {
    width: 34px; height: 34px; flex: 0 0 34px; font-size: 17px;
  }
  .game-topline { padding: 0 0 3px; min-height: 32px; }
  .game-topline .back-button, .game-topline .share-button {
    min-height: 30px; padding: 5px 9px;
  }
  .round-label { padding: 5px 10px; font-size: 10px; box-shadow: 0 2px 0 #604583; }
  .scoreboard { gap: 5px; }
  .player-score {
    padding: 4px 8px; min-height: 40px; border-radius: 10px;
    box-shadow: none;
  }
  .player-score.turn { box-shadow: 0 2px 0 #d89d3a; }
  .player-score .avatar { width: 23px; height: 23px; font-size: 11px; }
  .player-score .player-number { font-size: 24px; }
  .player-score .player-head span:last-child { font-size: 11px; }
  .match-status { min-height: 20px; line-height: 1.15; font-size: 11px; margin: 1px 0; }
  .puzzle-title-row { padding: 3px 2px 5px; gap: 6px; }
  .puzzle-title-row strong { font-size: 14px; line-height: 1.15; }
  .puzzle-title-row small { font-size: 10px; line-height: 1.15; margin-top: 1px; }
  .completion { padding: 6px 9px; border-radius: 10px; font-size: 12px; flex-shrink: 0; }
  /* Deliberately do not set a reduced width, zoom or transformed scale. */
  .board { width: 100%; aspect-ratio: 1 / 1; }
  .sq.clue { color: #152033; }
  .rack-panel { padding: 7px 9px 9px; margin: 6px 0 5px; border-radius: 13px; }
  .rack-title { gap: 5px; font-size: 10px; letter-spacing: .3px; }
  .rack-title strong { white-space: nowrap; }
  .rack-title span {
    font-size: 9px; line-height: 1.15; flex: 1; min-width: 0;
    text-align: right; letter-spacing: 0;
  }
  .rack { gap: 7px; margin: 7px 0 8px; }
  .tile { height: 48px; min-height: 48px; aspect-ratio: auto; font-size: 27px; }
  .submit-turn { min-height: 44px; font-size: 15px; border-radius: 10px; }
  .draft-tools { margin: 8px 0 7px; }
  .draft-button { min-height: 38px; }
  .actions .secondary-button { min-height: 42px; }
  .featured-spot {
    margin: 9px 1px 5px; padding: 5px 7px; min-height: 42px;
    border-radius: 10px;
  }
  .featured-spot-art {
    width: 60px; flex-basis: 60px; height: 35px;
  }
  .featured-spot-art img { max-width: 58px; max-height: 33px; }
  .featured-spot-copy small { font-size: 8px; }
  .featured-spot-copy strong { font-size: 12px; }
  .featured-spot-copy span { font-size: 9px; }
}
@media (max-width: 370px) {
  .rack-title { flex-wrap: nowrap; }
  .rack-title strong { font-size: 9px; }
  .rack-title span { font-size: 8px; }
  .player-score .player-number { font-size: 22px; }
}

/* End-of-crossword breakdown: visible immediately below the 9×9 board. */
.final-score-detail{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,225px),1fr));gap:12px;margin:16px 0}
.result-player{border:1px solid #f1dcaa;background:#fffefa;border-radius:14px;padding:12px;text-align:left;min-width:0}
.result-player h3{font-size:15px;color:#274776;margin:0 0 9px;text-align:center}
.result-table{border-collapse:collapse;width:100%;font-size:12px;font-variant-numeric:tabular-nums;color:#385273}
.result-table th{font-weight:700;text-align:left;padding:7px 4px;border-bottom:1px solid #e9dfc7}
.result-table td{text-align:right;font-weight:900;white-space:nowrap;padding:7px 4px;border-bottom:1px solid #e9dfc7}
.result-table tfoot th,.result-table tfoot td{font-weight:1000;font-size:14px;color:#284ca4;border-bottom:0;background:#f0f4ff}
.result-gold-stars{font-size:30px;letter-spacing:6px;color:#d99a1e;text-shadow:0 2px 0 #fff4b4;animation:score-starlight 1.6s ease-in-out 2}
@keyframes score-starlight{0%,100%{transform:scale(1);opacity:.92}40%{transform:scale(1.08);opacity:1}}
@media(prefers-reduced-motion:reduce){.result-gold-stars{animation:none}}

/* Real artwork area for reviewed restaurant sponsor logos, responsive without cropping. */
.sponsor-art{display:flex;align-items:center;justify-content:center;min-height:130px;padding:14px}
.sponsor-art img{display:block;max-width:100%;width:min(100%,360px);height:126px;object-fit:contain}
.sponsor-art img[hidden],.sponsor-art #sponsorLogoFallback[hidden]{display:none}
.sponsor-art #sponsorLogoFallback{font-size:47px;letter-spacing:.05em}
.featured-spot-art img{object-fit:contain;max-width:100%;height:auto;max-height:140px}

/* Keep phone gestures on draggable tiles; the rest of the page can still scroll. */
#rack .tile,#board .letter.pending{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
