/* A sunlit porcelain conservatory. The SVG still draws the engine's exact pond. */
*{box-sizing:border-box}
body{margin:0;background:#3c203a;color:#47203e;font-family:system-ui,sans-serif}
body::before{content:"";position:fixed;inset:0;z-index:-1;background:linear-gradient(#38203388,#382033bb),url('../assets/play/lotustiles/conservatory.webp') center/cover;pointer-events:none}
main{max-width:none;margin:0;padding:0}
.lotus-scene{--u:min(.2564102564vw,.1184834123svh,1.2px);position:relative;isolation:isolate;width:calc(390 * var(--u));height:calc(844 * var(--u));margin:0 auto;background:url('../assets/play/lotustiles/conservatory.webp') center/100% 100% no-repeat;box-shadow:0 0 55px #1f0c2855}
h1{position:absolute;top:calc(4 * var(--u));left:calc(10 * var(--u));width:calc(370 * var(--u));height:calc(86 * var(--u));margin:0;line-height:1}
h1 img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 calc(3 * var(--u)) calc(3 * var(--u)) #38112c55)}
.hud{position:absolute;top:calc(94 * var(--u));left:calc(26 * var(--u));width:calc(338 * var(--u));height:calc(50 * var(--u));display:grid;grid-template-columns:1fr 1fr;grid-template-rows:31fr 19fr;gap:0;padding:calc(3 * var(--u)) calc(12 * var(--u));background:url('../assets/play/lotustiles/button-lilac.webp') center/100% 100%;filter:drop-shadow(0 3px 2px #4b24494d);border-radius:40px}
.hud div{display:flex;align-items:center;justify-content:center;gap:calc(5 * var(--u));font-size:calc(11.5 * var(--u));font-weight:600;white-space:nowrap}
.hud b{display:inline-flex;align-items:center;justify-content:center;min-width:calc(27 * var(--u));height:calc(27 * var(--u));padding:0 calc(3 * var(--u));border-radius:calc(6 * var(--u));background:#6b1c54;color:#fff4ee;box-shadow:inset 0 1px 2px #34102e88,0 1px 1px #fff8f8;font-family:Georgia,serif;font-size:calc(23 * var(--u));line-height:1;font-variant-numeric:tabular-nums}
.hud div:nth-child(n+3){font-size:calc(10 * var(--u))}.hud div:nth-child(n+3) b{min-width:0;height:auto;padding:0;border-radius:0;background:none;color:#641449;box-shadow:none;font:700 calc(11 * var(--u)) system-ui,sans-serif}
#lt-phase{position:absolute;top:calc(148 * var(--u));left:calc(23 * var(--u));width:calc(344 * var(--u));height:calc(42 * var(--u));display:flex;align-items:center;justify-content:center;margin:0;padding:calc(7 * var(--u)) calc(20 * var(--u));background:url('../assets/play/lotustiles/button-plum.webp') center/100% 100%;color:#fff7f0;text-align:center;font-size:calc(12 * var(--u));font-weight:650;line-height:1.2;text-shadow:0 1px 1px #2f092b;filter:drop-shadow(0 3px 3px #39132a55)}
#lt-phase[data-mode=ready]{left:calc(90 * var(--u));width:calc(210 * var(--u));font-family:Georgia,serif;font-size:calc(20 * var(--u));font-weight:700}
.stage{position:absolute;top:calc(196 * var(--u));left:0;width:100%;height:calc(588 * var(--u));touch-action:none}
.who{position:absolute;left:calc(28 * var(--u));width:calc(334 * var(--u));display:flex;align-items:center;gap:calc(5 * var(--u));height:calc(18 * var(--u));padding:0 calc(5 * var(--u));font-size:calc(10 * var(--u));line-height:1;color:#4b2044;background:#fbecf4df;border-radius:calc(8 * var(--u));white-space:nowrap;box-shadow:0 1px 4px #39132a33}
.who.cpu{top:0}.who.you{top:calc(406 * var(--u))}.who b{font-size:calc(11 * var(--u))}.who .note{margin-left:auto;font-weight:750}
.who .dot{flex:none;width:calc(10 * var(--u));height:calc(10 * var(--u));border-radius:50%;border:2px solid #e8b957;background:#fff2dc}
.who.cpu .dot{border-radius:2px;transform:rotate(45deg) scale(.85);background:#f0d7f8;border-color:#9c57bb}
#lt-board{position:absolute;top:calc(18 * var(--u));left:calc(2 * var(--u));width:calc(386 * var(--u));height:calc(386 * var(--u));margin:0;touch-action:none;-webkit-tap-highlight-color:transparent;filter:drop-shadow(0 calc(6 * var(--u)) calc(5 * var(--u)) #32102d66)}
#lt-board svg{display:block;width:100%;height:100%;touch-action:none;overflow:visible}
#lt-board .pond-art,#lt-board .flower-art{pointer-events:none}
#lt-board .ring{fill:none;stroke:#efd1ed;stroke-width:2;stroke-opacity:.95}
#lt-board .spoke{stroke:#e8c7e7;stroke-width:1.5;stroke-opacity:.85}
#lt-board .node{fill:url(#ltPearl);stroke:#fff4ff;stroke-width:.65}
#lt-board .hint.g{fill:#ffe084;stroke:#fff1bd;stroke-width:1.1}
#lt-board .hint.w{fill:none;stroke:#ff858b;stroke-width:2.2}
#lt-board .hl{fill:none;stroke-width:3;stroke-linecap:round;opacity:.95}
#lt-board .hl.you{stroke:#ffd27a;filter:drop-shadow(0 0 2px #ffbd53)}
#lt-board .hl.cpu{stroke:#cf9fff;stroke-dasharray:7 4;filter:drop-shadow(0 0 2px #e7baff)}
#lt-board .tile{transform-box:fill-box;transform-origin:center;pointer-events:none}
#lt-board .tile .body{fill:none;stroke-width:3;stroke:none}
#lt-board .tile.last .body{stroke:#fff8e8;stroke-width:6;filter:drop-shadow(0 0 3px #fff0ff)}
#lt-board .tile text{font:800 6.5px system-ui,sans-serif;fill:#4b153d;stroke:#fff9ee;stroke-width:2.5;paint-order:stroke;text-anchor:middle;pointer-events:none}
#lt-board .tile.wilt{opacity:.4}#lt-board .tile.ghost{opacity:.55}
#lt-board .cur{fill:none;stroke:#fff5df;stroke-width:2;stroke-dasharray:4 3;pointer-events:none}
#lt-board .pt{fill:transparent;pointer-events:all;cursor:pointer}
#lt-hand{position:absolute;top:calc(426 * var(--u));left:calc(24 * var(--u));width:calc(342 * var(--u));height:calc(100 * var(--u));display:flex;justify-content:center;gap:calc(3 * var(--u));margin:0;padding:calc(5 * var(--u)) calc(8 * var(--u));background:linear-gradient(140deg,#f5e3f7,#d8acd8 55%,#edd9ef);border:calc(3 * var(--u)) ridge #ffe8f4;border-radius:calc(24 * var(--u));box-shadow:inset 0 0 calc(8 * var(--u)) #b87db7,0 calc(5 * var(--u)) calc(8 * var(--u)) #50203c55}
button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
button[hidden]{display:none}
.htile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:calc(1 * var(--u));flex:1 1 0;min-width:0;padding:0;border:2px solid transparent;border-radius:calc(16 * var(--u));background:none;color:#4b153d;line-height:1}
.htile .sw{display:block;flex:none;width:calc(68 * var(--u));height:calc(68 * var(--u));background:center/contain no-repeat;filter:drop-shadow(0 2px 2px #51204766)}
.htile .nm{font-family:Georgia,serif;font-weight:700;font-size:calc(12 * var(--u));white-space:nowrap;line-height:1.2}
.htile .key{position:absolute;top:calc(3 * var(--u));right:calc(3 * var(--u));font:600 calc(9 * var(--u)) system-ui;color:#5b2454;background:#fff4e7cc;border-radius:3px;padding:1px 3px}
.htile.on{background:#fff7ee55;border-color:#fff8ec;box-shadow:0 0 calc(5 * var(--u)) #fff9ec}
.actions{position:absolute;top:calc(532 * var(--u));left:calc(40 * var(--u));width:calc(310 * var(--u));height:calc(56 * var(--u));margin:0}
.gold,.toolbar button{border:0;background:transparent url('../assets/play/lotustiles/button-plum.webp') center/100% 100% no-repeat;color:#fff5eb;font-family:Georgia,serif;font-weight:800;text-shadow:0 2px 2px #37112b;filter:drop-shadow(0 3px 2px #32132666)}
.actions button{width:100%;height:100%;padding:calc(8 * var(--u)) calc(12 * var(--u));font-size:calc(22 * var(--u));white-space:nowrap}
button:disabled{opacity:.6;cursor:default}
button:focus-visible,#lt-board:focus-visible{outline:3px solid #6f2d8e;outline-offset:3px;box-shadow:0 0 0 5px #fff5ee}
.toolbar{position:absolute;top:calc(792 * var(--u));left:calc(40 * var(--u));width:calc(310 * var(--u));height:calc(44 * var(--u));display:flex;gap:calc(10 * var(--u));margin:0}
.toolbar button{flex:1;min-width:0;height:100%;min-height:0!important;padding:calc(5 * var(--u)) calc(8 * var(--u))!important;background-image:url('../assets/play/lotustiles/button-lilac.webp');color:#571445;text-shadow:0 1px #fff4f2;font-size:calc(17 * var(--u))!important;border:0!important;border-radius:0!important}
#lt-over{position:absolute;inset:calc(20 * var(--u)) calc(24 * var(--u)) calc(64 * var(--u));z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:calc(18 * var(--u));padding:calc(24 * var(--u));border:calc(4 * var(--u)) ridge #efd2ed;border-radius:calc(35 * var(--u));background:linear-gradient(150deg,#f6e8f5f5,#dcc0e6f5);text-align:center;box-shadow:0 8px 35px #30122b99}
#lt-over[hidden]{display:none}
#lt-over p{font:bold calc(27 * var(--u))/1.2 Georgia,serif;color:#5b174e;margin:0}
#lt-over .sub{font-size:calc(15 * var(--u));line-height:1.5;color:#532147}
#lt-over button{width:100%;height:calc(58 * var(--u));font-size:calc(22 * var(--u));padding:10px}
.stage[data-result=loss] #lt-over{background:linear-gradient(150deg,#59274ff5,#30142ff5)}
.stage[data-result=loss] #lt-over p,.stage[data-result=loss] #lt-over .sub{color:#f7e9f9}
.stage[data-result=draw] #lt-over{background:linear-gradient(150deg,#e8dcefef,#c5b3d6f5)}
header,.lotus-help{width:min(800px,100%);margin:auto;padding:16px 22px;background:#f7edf7;color:#48243f}
header{font-size:14px;border-bottom:1px solid #d8b5d5}a{color:#7a236c}
.lotus-help h2{font:700 24px Georgia,serif;color:#662357;margin:24px 0 12px}
.lotus-help p,.legend li{font-size:15px;line-height:1.65;margin:10px 0}
.legend{padding-left:22px}.legend li{margin:12px 0}
#lt-status{padding:12px 16px;background:#ead8ec;border-left:4px solid #9b559c;border-radius:8px;font-weight:600}
.kind{display:inline-block;width:12px;height:12px;border-radius:50%;vertical-align:-1px;margin:0 3px 0 2px;border:1px solid #0006}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
