/* Revision 02 — soft edges, close spacing, immediate interactions. */
:root{--bg:#13191c;--panel:#252e33;--edge:#425057;--white:#d7dedb;--muted:#8b999e}
body{background:radial-gradient(ellipse at 50% 38%,#253339 0,#141b1f 45%,#111619 100%)}
button{border-radius:10px;transition:background 60ms,border-color 60ms,box-shadow 60ms;touch-action:manipulation}
button:active{transform:translateY(1px);background:#37474e}
input{border-radius:10px;background:#1b2429;color:#d4e0da;font-size:19px;height:52px;padding:0 15px}
#app{min-height:100svh;padding: max(12px,env(safe-area-inset-top)) 22px max(12px,env(safe-area-inset-bottom));background:transparent;border:0;gap:0}
header button{min-height:38px;font-size:10px}#infoButton{border-color:#47565d;background:#26323870}
.brand{font-size:18px;letter-spacing:.29em;margin-top:18px;color:#c5d3ce;text-shadow:0 0 28px #adcbb51a}
#question{padding-top:18px;min-height:75px;font-size:17px;line-height:1.65}
#play{flex:0 0 auto;min-height:160px;padding:12px 0 14px}.singleButton{width:116px;height:116px;min-height:0;border-radius:18px;border-color:#58696f;background:linear-gradient(145deg,#3c4a51,#26333a);box-shadow:0 3px 0 #0b1115,0 14px 30px #0003,inset 0 1px 0 #b5c6c617;transition:background 80ms,box-shadow 80ms}
.singleButton:active{transform:translateY(2px);box-shadow:0 1px 0 #0b1115,inset 0 0 20px #d1e0de12}
.singleButton.lit{background:linear-gradient(135deg,color-mix(in srgb,var(--light) 60%,#36454c),color-mix(in srgb,var(--light) 34%,#24313a));border-color:color-mix(in srgb,var(--light) 70%,#50616a);box-shadow:0 3px 0 #0b1115,0 0 38px color-mix(in srgb,var(--light) 14%,transparent),inset 0 0 25px color-mix(in srgb,var(--light) 18%,transparent)}
#flash{background:radial-gradient(ellipse at 50% 45%,var(--halo,#b3c4c2),transparent 73%);opacity:0;z-index:0}#app{z-index:1}#flash.fire{animation:softLight 420ms ease-out}@keyframes softLight{0%{opacity:.14}100%{opacity:0}}
#status{min-height:25px;padding:5px 0;font-size:11px}#answerForm{gap:7px}#ok{height:52px;min-height:52px;background:#90a9a2;color:#172321;border-radius:10px;box-shadow:inset 0 1px 0 #dce9e333,0 2px 0 #0b1214}#ok:active{background:#a2b9b0}
footer{padding-top:15px;margin-top:auto;font-size:8px;opacity:.75}.formula{font-size:20px;line-height:1.8}.quietMark{margin:12px auto}
.overlay{background:#080e14ae;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.modal{border-radius:20px;background:linear-gradient(150deg,#29353c,#1d282f);border-color:#526169;padding:25px;box-shadow:0 24px 70px #0005}
#info .modal{position:relative;overflow:visible;margin-bottom:23px;padding-bottom:39px;max-height:calc(100svh - 110px)}
.modalHead>span{color:#9daeb4}.settings{margin-top:22px}.setting{padding:13px 0}.seg button:first-child{border-radius:7px 0 0 7px}.seg button:last-child{border-radius:0 7px 7px 0}.seg button.active{background:#93aaa3;color:#182522}
.share{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.share button{font-size:12px;min-height:44px;background:#34434a}.eyebrow{margin:19px 0 10px}.closeRow{position:absolute;left:50%;bottom:-22px;transform:translateX(-50%);display:block;width:116px;margin:0}.closeRow button{width:100%;min-height:44px;border-radius:11px;background:linear-gradient(#52666b,#3d5157);border:1px solid #7a9395;box-shadow:0 5px 0 #101b20,0 10px 22px #0004;color:#dae5df}.closeRow button:active{box-shadow:0 2px 0 #101b20;transform:translateY(3px)}
.board{gap:7px;display:block;position:relative;isolation:isolate}.board:before{content:'';position:absolute;width:calc((100% - 14px)/3);height:calc((100% - 14px)/3);left:calc((100% + 7px)/3);top:calc((100% + 7px)/3);border-radius:11px;background:#10181c;border:1px solid #29383e;box-sizing:border-box;z-index:-1}
.tile{position:absolute;left:0;top:0;width:calc((100% - 14px)/3);height:calc((100% - 14px)/3);border-radius:12px;background:linear-gradient(135deg,#35464f,#2a3942);border-color:#4c626c;box-shadow:0 2px 0 #0a1217,inset 0 1px 0 #adc8cd12;transition:transform 90ms cubic-bezier(.2,.7,.3,1),background 60ms;touch-action:none}
.tile.center{background:linear-gradient(135deg,#35464f,#2a3942)}.tile:active{background:#435b65}.tile.empty{border:0;background:transparent;box-shadow:none}.tile.memoEditing{border-color:#8faeac;background:#31484d}.tile span{color:#c9d9d4;font-size:25px}.tile.revealed span{color:#a8d0c3}.boardTools{margin-bottom:8px;align-items:center;gap:12px;min-height:32px}.boardTools .memoHelp{margin-right:auto;font-size:10px;color:#94a7ad;line-height:1.4}.boardTools button{border-radius:8px;min-height:32px;background:#24353c}.boardTools button.active{background:#7e9f98;color:#132824}
#wordResults{margin:0 0 8px;width:100%;border:1px solid #53676b;border-radius:14px;background:#24383e;padding:13px 14px;position:relative;font-size:12px;line-height:1.6;box-shadow:0 5px 16px #0002;color:#c6d7d1}
#wordResults:after{content:'';position:absolute;left:24px;bottom:-6px;width:10px;height:10px;background:#24383e;border-right:1px solid #53676b;border-bottom:1px solid #53676b;transform:rotate(45deg)}
.wordHeader{display:flex;align-items:center;justify-content:space-between;font-size:10px;letter-spacing:.08em;color:#98b6af;margin-bottom:7px}.wordHeader button{min-height:28px;min-width:32px;border:0;background:transparent}.wordMeanings{display:flex;gap:6px;flex-wrap:wrap}.wordMeanings span{padding:3px 8px;background:#344d53;border-radius:6px;font-size:11px}
.scene{height:270px}.cluebar{margin-bottom:0}.face{border-radius:5px;box-shadow:inset 0 0 0 1px #73868b40}.face.glow{background:color-mix(in srgb,var(--color) 45%,#38464a);box-shadow:inset 0 0 12px #ffffff0c}.scene.small .face{border-radius:2px}.interactionNote{margin-top:4px}.enter{animation:none!important}
#keyPanel{margin-top:10px;padding:9px 0 0;border-top:1px solid #3e50554d;touch-action:manipulation}
.keyHeader{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;color:#829c9e;font-size:9px;letter-spacing:.1em}.keyTabs{display:flex;gap:5px}.keyTabs button{min-height:28px;padding:0 10px;font-size:10px;border-radius:7px;background:#223139}.keyTabs button.active{background:#48625f;color:#d7e8df}
.keyRow{display:flex;justify-content:center;gap:4px;margin-bottom:5px}.keyRow button{padding:0;min-width:0;width:calc((100% - 36px)/10);height:40px;min-height:40px;font:13px ui-monospace,monospace;background:linear-gradient(#354750,#2d3e48);border-color:#475e67;border-radius:7px;box-shadow:0 2px 0 #0b141a}.keyRow button:active{background:#58766f;box-shadow:none}.keyRow button.wide{width:calc((100% - 36px)/10 * 1.5)}.keyRow.numeric button{width:calc((100% - 8px)/3);font-size:17px}.keyRow.numeric .zero{width:calc((100% - 8px)/3 * 2 + 4px)}
#fan{border-radius:140px 140px 14px 14px;background:radial-gradient(ellipse at bottom,#496369,#25363ff5 70%);box-shadow:0 14px 35px #0005;border-color:#698285}.clearTitle{color:#cad5d1}.red{color:#c27d79}.clearSub{margin:14px 0 30px}.clearShare{max-width:320px}.completed #play{min-height:310px}
.devLauncher{position:fixed;right:12px;bottom:max(12px,env(safe-area-inset-bottom));z-index:35;border-radius:9px;padding:0 12px;min-height:34px;font-size:10px;letter-spacing:.12em;background:#3d5a5a;color:#d1e5df;border-color:#7d9b93}
#developer .modal{max-width:390px;width:100%;overflow:auto}#developer h2{margin-bottom:12px}#developer .devStages{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}#developer .devStages button{min-height:40px;font-size:11px}#developer .devActions{display:grid;gap:7px;margin-top:14px}#developer .devActions button{font-size:12px}.devValue{font:12px ui-monospace,monospace;color:#a2c6bb;min-height:30px;padding:8px 0}
@media(min-width:700px){#app{width:420px;min-height:min(850px,100svh);padding:22px 28px}#play{min-height:180px}.brand{margin-top:18px}}
@media(max-height:740px){#app{padding-top:max(8px,env(safe-area-inset-top));padding-bottom:8px}.brand{margin-top:10px;font-size:16px}#question{min-height:62px;padding-top:12px;font-size:16px}#play{min-height:130px;padding:6px 0 10px}.scene{height:235px}.singleButton{width:102px;height:102px}footer{padding-top:9px}.keyRow button{height:35px;min-height:35px}input,#ok{height:48px;min-height:48px}}
