*{box-sizing:border-box}html{background:#101b25;color:#f1f5f7;font-family:system-ui,sans-serif}body{margin:0;padding:16px 12px 32px}main{width:min(100%,480px);margin:auto}header{display:flex;justify-content:space-between;align-items:center;gap:8px}.eyebrow{color:#79d7c5;letter-spacing:.12em;font-size:12px}h1{font-size:clamp(24px,7vw,34px);line-height:1.1;margin:12px 0}p{line-height:1.5}#stats{background:#1d3040;padding:14px;border-radius:14px;font-size:14px;line-height:1.6}#status{min-height:48px;padding:12px 0;font-weight:700;color:#f7d68c}#status[data-state=won]{color:#8defb0}#status[data-state=lost]{color:#ffadad}#board{display:grid;gap:6px;padding:8px;background:#243547;border-radius:16px;touch-action:pan-y}button{font:inherit;font-weight:700;min-height:44px;min-width:44px;border:1px solid #527089;border-radius:10px;background:#294758;color:#fff;padding:10px;cursor:pointer;touch-action:manipulation}button:focus-visible{outline:3px solid #fff;outline-offset:2px}button:disabled{cursor:default;opacity:.55}.tile{width:100%;aspect-ratio:1;min-width:0;padding:3px;font-size:clamp(12px,4vw,20px);color:#10212a;position:relative;border:0;box-shadow:inset 0 -4px #0002}.tile:disabled{opacity:1}.rank1{background:#b0e2da}.rank2{background:#77cbb8}.rank3{background:#e9d298}.rank4{background:#f0af76}.rank5{background:#f48d85}.rank6{background:#c0a6ef}.empty{background:#172736;color:#577084;box-shadow:none}.wall{background:#475163;color:#e8edf0;font-size:12px}.selected{outline:3px solid #fff;outline-offset:-4px}#controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0}.toolbar{display:flex;gap:8px;margin:18px 0}.toolbar button{flex:1}small,footer{color:#a7bdcd;font-size:12px;line-height:1.6}a{color:#8ce5d3}details{margin-top:20px}summary{cursor:pointer;min-height:44px;padding:12px 0}#rules{font-size:14px}svg{width:48px;height:48px;flex-shrink:0}@media(prefers-reduced-motion:no-preference){.tile{transition:background .15s}}
a{display:inline-flex;align-items:center;min-width:44px;min-height:44px;padding:4px 2px;overflow-wrap:anywhere}

.eyebrow{color:#a7d9c7}h1{font-size:27px}#rules{margin:8px 0}#stats{padding:10px}#status{min-height:40px;padding:8px 0}footer{margin-top:16px;padding:12px;border-left:3px solid #a7d9c7;background:#1d3040}#controls button{border-color:#a7d9c7}#stats[data-danger="yes"]{background:#633445;border:2px solid #efa8c5}.dew{background:#a1dbc4}.glass{background:#c3b3e5}.tile{white-space:pre-line}
.tile{font-size:13px;line-height:1.3}