:root{--lc-table:#1b2827;--lc-deep:#111b1a;--lc-paper:#efe6d0;--lc-ink:#2a2118;--lc-red:#c8452d;--lc-brass:#d9a441;--lc-text:#e9e1cc;--lc-dim:#9fb0aa}
html,body{background:#141d1c;color:var(--lc-text);margin:0}
body{font-family:Georgia,"Times New Roman",serif;padding-bottom:env(safe-area-inset-bottom)}
.lc-top{display:flex;justify-content:space-between;align-items:center;padding:.5rem 1rem;padding-top:calc(.5rem + env(safe-area-inset-top));font-size:.95rem}
.lc-top a{color:var(--lc-brass);text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.lc-top span{color:var(--lc-dim);font-style:italic}
.lc-wrap h1{font-size:1.5rem;letter-spacing:.04em;margin:.2rem 0 .6rem;color:var(--lc-paper)}
.lc-wrap{padding-left:max(1rem,env(safe-area-inset-left))!important;padding-right:max(1rem,env(safe-area-inset-right))!important}
#lc-app{position:relative}
.lc-hud{flex-wrap:wrap;display:flex;justify-content:space-between;align-items:center;gap:.5rem;font-size:.95rem;padding:.35rem .1rem}
.lc-hud b{color:var(--lc-paper)}
.lc-hud .num{font-variant-numeric:tabular-nums}
.st{display:inline-block;width:14px;height:14px;margin-left:3px;background:#34504c;clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);vertical-align:-2px}
.st.on{background:var(--lc-brass)}
.lc-caption{min-height:2.7em;font-size:.95rem;line-height:1.35;color:var(--lc-dim);margin:.1rem 0 .4rem}
#lc-stage{position:relative;display:flex;justify-content:center;align-items:center;min-height:300px;background:var(--lc-table);border:2px solid #2a3a38;border-radius:14px;padding:6px;overflow:hidden}
#lc-board{display:block;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;cursor:pointer;border-radius:8px}
.lc-bar{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px}
.lc-btn{min-height:48px;min-width:44px;padding:.4rem .5rem;font:inherit;font-size:.92rem;color:var(--lc-text);background:#24352f;border:2px solid #3b5750;border-radius:12px;cursor:pointer;touch-action:manipulation}
.lc-btn:active{transform:translateY(1px)}
.lc-btn:disabled{opacity:.4;cursor:default}
.lc-btn:focus-visible{outline:3px solid var(--lc-brass);outline-offset:2px}
.lc-btn.main{background:var(--lc-brass);border-color:#f0c75e;color:#2a1c06;font-weight:700;font-size:1.1rem;min-height:54px}
.lc-btn.alt{background:#2c1a16;border-color:var(--lc-red)}
.lc-ov{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:10px;padding:18px;background:rgba(14,21,20,.88);text-align:center;overflow:auto}
.lc-ov[hidden]{display:none}
.lc-ov h2{margin:0;font-size:1.6rem;color:var(--lc-paper);letter-spacing:.03em}
.lc-ov p{margin:0;color:var(--lc-dim);line-height:1.4}
.lc-ov .st{width:26px;height:26px;margin:0 4px}
#lc-r-stars{display:flex;justify-content:center;min-height:30px}
#lc-r-stars[hidden]{display:none}
.lc-lv{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.lv{min-height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;font:inherit;color:var(--lc-ink);background:var(--lc-paper);border:2px solid #c9bb97;border-radius:10px;cursor:pointer;padding:2px 0;touch-action:manipulation}
.lv b{font-size:1.1rem}
.lv span{min-height:12px}
.lv .st{width:9px;height:9px;margin:0 1px;background:#b5a67f}
.lv .st.on{background:var(--lc-red)}
.lv.lock{background:#0e1514;color:#34504c;border-color:#2a3a38;cursor:default}
.lv.cur{outline:3px solid var(--lc-brass)}
.lc-how{margin-top:1.2rem;color:var(--lc-dim);font-size:.95rem;line-height:1.5}
.lc-how h2{font-size:1.1rem;color:var(--lc-paper);margin:0 0 .4rem}
.lc-how ul{padding-left:1.1rem;margin:.3rem 0}
@media (prefers-reduced-motion:reduce){.lc-btn{transition:none}.lc-btn:active{transform:none}}
@media (max-height:700px){.lc-wrap h1{display:none}}

.lc-bar2{grid-template-columns:1fr 2fr}
.lc-pb{color:var(--lc-dim);margin-left:.15rem}
#lc-stage{box-shadow:inset 0 0 40px rgba(0,0,0,.45),0 2px 0 #0b1110;transition:border-color .2s}
#lc-stage.dead{border-color:var(--lc-red)}
.lc-ov{backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);background:rgba(10,16,15,.9)}
#lc-title h2{font-size:2.3rem;letter-spacing:.08em;text-transform:uppercase;color:var(--lc-brass);text-shadow:0 2px 0 #000}
#lc-title h2::after{content:"";display:block;width:64px;height:3px;margin:.45rem auto 0;background:var(--lc-red)}
.lc-ov .st.on{animation:lc-pop .5s cubic-bezier(.2,1.6,.4,1) both}
.lc-ov .st.on:nth-child(2){animation-delay:.12s}
.lc-ov .st.on:nth-child(3){animation-delay:.24s}
@keyframes lc-pop{0%{transform:scale(0) rotate(-40deg)}100%{transform:scale(1) rotate(0)}}
@media (prefers-reduced-motion:reduce){.lc-ov .st.on{animation:none}#lc-stage{transition:none}}

/* Full screen: playfield fills the stage under the dock */
html.pip-immersive .lc-top,html.pip-immersive .ad-well,html.pip-immersive .lc-how,html.pip-immersive .lc-wrap h1,html.pip-immersive #similar-games,html.pip-immersive footer{display:none!important}
html.pip-immersive .lc-wrap{display:flex;flex-direction:column;box-sizing:border-box;height:100%;padding-top:6px!important;padding-bottom:max(6px,env(safe-area-inset-bottom))!important;margin:0!important;max-width:none!important}
html.pip-immersive #lc-app{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
html.pip-immersive .lc-hud{padding:.1rem .1rem .2rem;font-size:.9rem}
html.pip-immersive .lc-caption{min-height:0;height:2.7em;overflow:hidden;margin:0 0 .3rem;font-size:.88rem}
html.pip-immersive #lc-stage{flex:1 1 0;min-height:0;box-sizing:border-box}
html.pip-immersive .lc-bar{margin-top:6px;gap:6px}
html.pip-immersive .lc-btn{min-height:44px}
html.pip-immersive .lc-ov{padding:12px;gap:8px}
html.pip-immersive #lc-title h2{font-size:1.9rem}
@media (orientation:landscape) and (max-height:520px){
html.pip-immersive #lc-app{display:grid;grid-template-columns:minmax(0,1fr) 210px;grid-template-rows:auto auto auto auto minmax(0,1fr);column-gap:10px;height:100%}
html.pip-immersive #lc-stage{grid-column:1;grid-row:1/-1}
html.pip-immersive .lc-hud{grid-column:2;grid-row:1;flex-direction:column;align-items:flex-start;gap:.15rem}
html.pip-immersive .lc-caption{grid-column:2;grid-row:2;height:5.4em}
html.pip-immersive .lc-bar{grid-column:2;grid-row:3;grid-template-columns:1fr 1fr}
html.pip-immersive .lc-bar2{grid-column:2;grid-row:4;grid-template-columns:1fr}
html.pip-immersive .lc-ov{padding:8px;gap:6px}
html.pip-immersive .lc-ov h2{font-size:1.3rem}
html.pip-immersive #lc-title h2{font-size:1.5rem}
html.pip-immersive .lc-lv{grid-template-columns:repeat(8,1fr);gap:5px}
html.pip-immersive .lv{min-height:44px}
}
/* finish */
.lc-ov{background:radial-gradient(ellipse at 50% 35%,rgba(40,58,54,.92),rgba(8,13,12,.96))}
.lc-btn{background-image:linear-gradient(180deg,rgba(255,255,255,.07),rgba(0,0,0,.12));box-shadow:0 2px 0 rgba(0,0,0,.35)}
.lc-btn.main{background-image:linear-gradient(180deg,#f0c75e,#d9a441 60%,#b8862c);box-shadow:0 3px 0 #6e4d14,0 6px 14px rgba(0,0,0,.35)}
.lc-btn:active{box-shadow:0 0 0 rgba(0,0,0,0)}
