.llk-game{--llk-ink:var(--site-text,#eff5f6);--llk-muted:var(--site-muted,#9bafbd);--llk-table:var(--site-bg,#070e17);--llk-panel:var(--site-surface-solid,#10202eeb);--llk-line:#8daaff;--llk-selected:#8256e8;--llk-selected-glow:#a589ff70;--llk-hint:#3e8aff;--llk-path-shadow:#121832;--llk-path-color:#8ca5ff;--llk-path-core:#f3f8ff;--llk-nebula:url('/src/website/assets/nebula-desktop.webp');--llk-cell:clamp(44px,5.8vw,78px);color:var(--llk-ink);background:var(--llk-panel);border:1px solid var(--site-border-two,#334955);border-radius:14px;display:flex;flex-direction:column;min-width:0;min-height:0;flex:1;overflow:hidden;box-shadow:0 20px 60px #0002;font-family:inherit}
.llk-game svg{width:20px;height:20px;flex-shrink:0;pointer-events:none}.llk-toolbar{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:14px 20px;border-bottom:1px solid var(--site-section-line,#91b3c126);background:linear-gradient(110deg,#ffffff05,transparent)}
.llk-title{display:flex;gap:9px;align-items:center;white-space:nowrap}.llk-title>svg{color:var(--llk-line)}.llk-title strong{font-size:18px;letter-spacing:2px}.llk-modes{display:flex;gap:3px;overflow:auto;max-width:100%;flex-shrink:1}.llk-game button{font:inherit;color:inherit;cursor:pointer}.llk-modes button{border:1px solid transparent;background:transparent;border-radius:7px;padding:7px 13px;white-space:nowrap;color:var(--llk-muted)}.llk-modes button[aria-pressed=true]{background:#8c78ed24;border-color:#9b8afc66;color:var(--llk-ink)}
.llk-actions{display:flex;gap:6px;align-items:center;margin-left:auto}.llk-actions>button,.llk-assistance>button{display:inline-flex;gap:6px;align-items:center;justify-content:center;border:1px solid var(--site-border-two,#334955);border-radius:7px;background:#ffffff05;min-height:36px;padding:6px 9px;white-space:nowrap}.llk-game button:disabled{opacity:.4;cursor:default}.llk-game button:focus-visible,.llk-scroll:focus-visible{outline:2px solid var(--llk-line);outline-offset:3px}.llk-game button:not(.llk-tile):not(:disabled):hover{border-color:var(--llk-line)}
.llk-status{display:flex;align-items:center;gap:32px;padding:14px 22px;border-bottom:1px solid var(--site-section-line,#91b3c126)}.llk-status>div:not(.llk-assistance){display:flex;align-items:center;gap:10px}.llk-status span{font-size:12px;color:var(--llk-muted)}.llk-status strong{font-size:20px;font-weight:550;font-variant-numeric:tabular-nums}.llk-status .llk-best strong{font-size:14px}.llk-assistance{margin-left:auto;display:flex;gap:7px}.llk-assistance small{font-size:11px;color:var(--llk-muted)}.llk-status .is-urgent{color:#f0aa91}
.llk-stage{position:relative;display:flex;flex:1;min-height:160px;background:linear-gradient(135deg,#070e1766,#101328a6),var(--llk-nebula) center/cover no-repeat,var(--llk-table);isolation:isolate}.llk-stage::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.08;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none' stroke='%23c0b7ff'%3E%3Ccircle cx='200' cy='200' r='168'/%3E%3Ccircle cx='200' cy='200' r='148'/%3E%3Cpath d='M200 32 218 182 368 200 218 218 200 368 182 218 32 200 182 182Z'/%3E%3Cpath d='M80 80 320 320M320 80 80 320' stroke-dasharray='2 12'/%3E%3C/svg%3E") center/min(78%,620px) no-repeat}.llk-scroll{position:relative;width:100%;min-width:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#99a9d650 transparent;padding:14px;display:flex;align-items:flex-start;touch-action:pan-x pan-y}.llk-board{position:relative;flex-shrink:0;margin:auto;box-sizing:content-box;width:calc((var(--llk-cols) + 2)*var(--llk-cell));height:calc((var(--llk-rows) + 2)*var(--llk-cell));padding:0}
.llk-grid{position:absolute;inset:var(--llk-cell);display:grid;grid-template-columns:repeat(var(--llk-cols),1fr);grid-template-rows:repeat(var(--llk-rows),1fr);gap:0}.llk-tile{display:flex;align-items:center;justify-content:center;position:relative;min-width:0;min-height:0;margin:2.5px;padding:3px;border:1px solid #fffdf1;border-bottom:4px solid #b9b9a9;border-radius:8px;background:#f4f1ea;box-shadow:0 3px 5px #0002;touch-action:pan-x pan-y;transition:opacity .16s,box-shadow .14s;user-select:none;-webkit-tap-highlight-color:transparent}
.llk-game .llk-tile:disabled{opacity:1}.llk-game .llk-tile.is-gone{opacity:0;pointer-events:none}.llk-tile img{width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}.llk-tile img[hidden],.llk-art-fallback[hidden]{display:none!important}.llk-game .llk-art-fallback{width:70%;height:70%;color:#68608a}.llk-tile:not(.is-selected):not(.is-hinted):not(:disabled):hover{border-color:#b3a0ed}.llk-game .llk-grid .llk-tile:is(:hover,:focus-visible){background:#f4f1ea}.llk-game .llk-grid .llk-tile.is-selected{z-index:1;border-color:var(--llk-selected);border-bottom-color:#6339bd;box-shadow:0 0 0 3px var(--llk-selected),0 0 0 5px #f2edffb3,0 0 22px var(--llk-selected-glow)}.llk-game .llk-grid .llk-tile.is-hinted{z-index:1;border-color:var(--llk-hint);border-bottom-color:#3069bf;box-shadow:0 0 0 3px var(--llk-hint),0 0 18px #438fff66}
.llk-game .llk-path{position:absolute;inset:0;z-index:2;width:100%;height:100%;pointer-events:none;overflow:visible}.llk-path polyline{fill:none;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}.llk-path-shadow{stroke:var(--llk-path-shadow);stroke-width:8px;opacity:.88}.llk-path-color{stroke:var(--llk-path-color);stroke-width:5px;filter:drop-shadow(0 0 4px #8398ff80)}.llk-path-core{stroke:var(--llk-path-core);stroke-width:2px}.llk-path[data-kind=hint] .llk-path-color{stroke:var(--llk-hint)}
.llk-cover{display:none;position:absolute;inset:0;z-index:3;place-items:center;padding:20px;overflow:auto;background:radial-gradient(ellipse at center,#1c214460,#070e1720)}.llk-game:not([data-phase=playing]) .llk-cover,.llk-game.is-busy .llk-cover{display:grid}.llk-game:not([data-phase=playing]) .llk-grid,.llk-game:not([data-phase=playing]) .llk-path,.llk-game.is-busy .llk-grid,.llk-game.is-busy .llk-path{visibility:hidden}
.llk-game.is-busy[data-phase=playing] .llk-cover{background:var(--llk-table)}.llk-game.is-busy[data-phase=playing] .llk-cover-card{box-shadow:none;border-color:transparent;background:transparent}.llk-game.is-busy[data-phase=playing] [data-llk-action=start]{visibility:hidden}
.llk-cover-card{text-align:center;padding:32px 42px;max-width:100%;width:360px;border:1px solid #9e8ce866;border-radius:18px;background:var(--llk-panel);box-shadow:0 24px 80px #05091955;margin:auto}.llk-cover-symbol{display:grid;place-items:center;width:48px;height:48px;border:1px solid #9e8ce866;border-radius:50%;margin:0 auto 18px;color:var(--llk-line)}.llk-cover-symbol svg{width:24px;height:24px}.llk-cover h2{margin:0 0 12px;font-size:26px;letter-spacing:2px;font-weight:550}.llk-cover p{font-size:13px;color:var(--llk-muted);line-height:1.8;margin:0 0 24px}.llk-primary{border:1px solid #a496f1!important;background:#7460d5!important;color:#fff!important;border-radius:7px;padding:10px 24px;font-weight:650!important;min-height:40px}
.llk-cover dl{margin:0 0 22px;font-size:13px;line-height:1.8}.llk-cover dl>div{display:flex;justify-content:space-between;gap:16px}.llk-cover dt{color:var(--llk-muted)}.llk-cover dd{margin:0;font-variant-numeric:tabular-nums}.llk-cover dl>div:last-child{color:var(--llk-line);border-top:1px solid var(--site-border-two,#334955);margin-top:8px;padding-top:8px}
.llk-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;min-height:34px;padding:8px 20px;font-size:12px;color:var(--llk-muted)}.llk-footer [data-llk-penalty]{margin-left:auto;font-variant-numeric:tabular-nums}
.llk-dialog{color:var(--llk-ink);background:var(--llk-panel);border:1px solid #9e8ce866;border-radius:16px;padding:24px;width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);box-sizing:border-box;overflow:auto;box-shadow:0 20px 90px #0005}.llk-dialog::backdrop{background:#070d20b0}.llk-dialog h2{margin:0 0 16px;font-size:22px}.llk-dialog p{font-size:14px;line-height:1.8;color:var(--llk-muted)}.llk-dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}.llk-dialog-actions>button{border:1px solid var(--site-border-two,#334955);border-radius:7px;background:transparent;padding:8px 18px}
html[data-theme=sakura] .llk-game{--llk-ink:var(--site-text,#46262f);--llk-muted:var(--site-muted,#77515f);--llk-table:var(--site-bg,#fff5f8);--llk-panel:var(--site-surface-solid,#fff9fbf5);--llk-line:#6650ba;--llk-path-shadow:#403161;--llk-path-color:#6d76d9;--llk-path-core:#f8f6ff}html[data-theme=sakura] .llk-stage{background:linear-gradient(135deg,#fff5f8df,#fff5f8ed),var(--llk-nebula) center/cover no-repeat,var(--llk-table)}html[data-theme=sakura] .llk-stage::before{opacity:.16}html[data-theme=sakura] .llk-modes button[aria-pressed=true]{background:#8c6cd524;border-color:#8c6cd566}html[data-theme=sakura] .llk-cover{background:#fff5f840}html[data-theme=sakura] .llk-cover-card{box-shadow:0 20px 70px #6d42651a}html[data-theme=sakura] .llk-tile{border-color:#fffdf4;border-bottom-color:#bab3c0}html[data-theme=sakura] .llk-status .is-urgent{color:#a23b2c}
.game-page[data-game-layout=lianliankan]{min-height:0}.game-page[data-game-layout=lianliankan] .llk-game{height:max(340px,var(--game-surface-height,700px));min-height:340px;flex:none}.llk-game .game-page-tools{margin:0}.llk-game .game-leaderboard-button,.llk-game .game-fullscreen-button{font-size:12px;min-height:36px}
@media(max-width:900px){.llk-toolbar{gap:10px;padding:10px 14px}.llk-status{padding:12px 14px;gap:18px;flex-wrap:wrap}.llk-status .llk-best{display:none}.llk-game{--llk-cell:clamp(44px,6vw,60px)}.llk-status strong{font-size:18px}.llk-title strong{font-size:16px}.llk-actions{gap:4px}.llk-actions>button span{display:none}.llk-cover-card{padding:26px}.llk-cover h2{font-size:23px}}
@media(max-width:540px){.llk-toolbar{gap:9px}.llk-modes{order:3;width:100%;flex-basis:100%;justify-content:center}.llk-modes button{flex:1}.llk-actions{margin-left:auto}.llk-status{gap:14px}.llk-assistance{flex-basis:100%;margin:0;justify-content:space-between}.llk-assistance>button{flex:1}.llk-status strong{font-size:18px}.llk-scroll{padding:0}.llk-stage{min-height:180px}.llk-cover-card{padding:24px;width:290px}.llk-footer{padding:8px 12px}.llk-game{--llk-cell:44px}.llk-tile{margin:2px}}
@media(max-height:520px) and (min-width:541px){.llk-toolbar{padding:7px 12px;gap:8px}.llk-status{padding:6px 12px;gap:20px}.llk-title strong{font-size:15px}.llk-stage{min-height:140px}.llk-cover-card{padding:18px 28px}.llk-cover-symbol{display:none}.llk-cover h2{font-size:21px}.llk-cover p{margin-bottom:14px}.llk-game{--llk-cell:44px}}
@media(max-width:700px){.llk-game{--llk-nebula:url('/src/website/assets/nebula-mobile.webp')}}
@media(prefers-reduced-motion:reduce){.llk-tile{transition:none}.llk-path polyline{filter:none}}

.llk-game .llk-art-fallback>svg{width:100%;height:100%}
.llk-game .llk-modes{width:auto}
@media(max-width:540px){.llk-game .llk-modes{width:100%}}

@media(max-width:900px){.llk-game .llk-status .llk-best{display:none}}
@media(max-width:540px){.llk-game .llk-toolbar{padding:10px 12px}.llk-game .llk-title strong{font-size:14px;letter-spacing:1px}.llk-game .llk-actions>button:not(.game-fullscreen-button){min-width:30px;min-height:32px;padding:4px}.llk-game .llk-actions>button svg{width:17px;height:17px}.llk-game .llk-actions .game-leaderboard-button{font-size:11px;padding:6px;min-height:32px}.llk-game .llk-actions{gap:4px}}
