
.lx-app .lx-root { position: relative; }
.lx-app .lx-stage { position: relative; height: clamp(260px, 52vh, 470px); border-radius: 0; overflow: hidden;
    background: linear-gradient(180deg, #2f7fd0 0%, #9fd8ff 55%, #1d6fa8 56%, #0f4c7a 100%); border: 1px solid rgba(120, 200, 255, 0.25);
    box-shadow: none; touch-action: none; user-select: none; -webkit-user-select: none; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.lx-app .lx-stage.island { height: clamp(220px, 40vh, 420px); touch-action: pan-y; }  
.lx-app .lx-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.lx-app .lx-veil { position: absolute; inset: 0; background: radial-gradient(circle, rgba(10, 30, 60, 0.4), rgba(4, 10, 24, 0.95));
    opacity: 0; pointer-events: none; transition: opacity 0.35s ease; z-index: 6; }
.lx-app .lx-veil.on { opacity: 1; }
.lx-app .lx-road { position: relative; margin: 0 0 6px; z-index: 3; pointer-events: none; padding: 6px 10px 8px;   
    border-radius: 0; background: rgba(4, 16, 32, 0.72); color: #e8f4ff; font-size: 12px; line-height: 1.35; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.lx-app .lx-road b { color: #ffd34a; }
.lx-app .lx-road small { display: block; color: #9fc4e6; font-size: 11px; }
.lx-app .lx-road i { display: block; height: 4px; margin-top: 5px; border-radius: 0; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.lx-app .lx-road i em { display: block; height: 100%; background: linear-gradient(90deg, #ffd34a, #ffb340); }
.lx-app .lx-root.island .lx-road { display: none; }
.lx-app .lx-hint { position: absolute; left: 10px; bottom: 10px; z-index: 3; font-size: 12px; color: rgba(255, 255, 255, 0.85);
    background: rgba(4, 16, 32, 0.55); padding: 4px 10px; border-radius: 0; pointer-events: none; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.lx-app .lx-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #e0f2ff; font-weight: bold; z-index: 2; }
.lx-app .lx-mapcard { position: absolute; left: 50%; bottom: 12px; transform: translate(-50%, 20px); width: min(92%, 360px); z-index: 5;
    background: rgba(6, 18, 36, 0.9); border: 1px solid var(--acc, #7cd4ff); border-radius: 0; padding: 12px 14px; color: #e8f4ff;
    box-shadow: none;
    opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.lx-app .lx-mapcard.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.lx-app .lx-mc-top { display: flex; align-items: center; gap: 10px; }
.lx-app .lx-mc-icon { font-size: 30px; line-height: 1; }
.lx-app .lx-mc-name { font-size: 18px; font-weight: bold; color: #fff; }
.lx-app .lx-mc-topic { font-size: 12px; color: #9fc4e6; }
.lx-app .lx-mc-x { margin-left: auto; background: none; border: none; color: #9fc4e6; font-size: 18px; cursor: pointer; min-width: 36px; min-height: 36px; }
.lx-app .lx-mc-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; font-size: 13px; }
.lx-app .lx-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 0; background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14); color: #e8f4ff; font-size: 12px; font-weight: bold; white-space: nowrap; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.lx-app .lx-chip.band { color: #0b1020; border: none; }
.lx-app .lx-sail { width: 100%; min-height: 46px; border-radius: 0; border: none; cursor: pointer; font-size: 16px; font-weight: bold; color: #062033;
    background: linear-gradient(180deg, #ffe08a, #ffb340); box-shadow: inset 0 -3px 0 #a86a10; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.lx-app .lx-sail:active { transform: translateY(2px); box-shadow: 0 1px 0 #a86a10; }
.lx-app .lx-isles-head { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 2px 8px; color: #cfe6ff; font-weight: bold; }
.lx-app .lx-isles-head small { color: #8aa4c0; font-weight: normal; }
.lx-app .lx-isles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.lx-app .lx-isle { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 2px 8px; align-items: center; text-align: left; cursor: pointer;
    min-height: 58px; padding: 8px 10px; border-radius: 0; background: rgba(10, 20, 36, 0.85); border: 1px solid rgba(255, 255, 255, 0.1); color: #e2e8f0;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.lx-app .lx-isle.sel { border-color: var(--acc); box-shadow: 0 0 14px color-mix(in srgb, var(--acc) 40%, transparent); }
@media (hover: hover) { .lx-app .lx-isle:hover { border-color: var(--acc); box-shadow: 0 0 14px color-mix(in srgb, var(--acc) 40%, transparent); } }
.lx-app .lx-isle .ic { grid-row: 1 / span 2; font-size: 24px; text-align: center; }
.lx-app .lx-isle .nm { font-size: 13px; font-weight: bold; color: #fff; line-height: 1.15; }
.lx-app .lx-isle .st { font-size: 11px; color: #9fb4cc; display: flex; gap: 6px; align-items: center; }
.lx-app .lx-isle .open { position: absolute; top: 6px; right: 8px; font-size: 11px; }
.lx-app .lx-isle.locked { opacity: 0.5; filter: grayscale(0.7); }
.lx-app .lx-isle.cur { border-color: var(--acc); box-shadow: 0 0 16px color-mix(in srgb, var(--acc) 55%, transparent); }
.lx-app .lx-isle .no { position: absolute; top: 6px; right: 8px; font-size: 10px; color: #8aa4c0; }
.lx-app .lx-mc-msg { font-size: 13px; color: #cfe0f2; margin: 8px 0 10px; line-height: 1.4; }
.lx-app .lx-top { position: relative; margin: 0 0 6px; display: flex; gap: 6px; align-items: center; z-index: 4; pointer-events: none; }   
.lx-app .lx-top > * { pointer-events: auto; }
.lx-app .lx-back { min-height: 40px; padding: 0 12px; border-radius: 0; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(4, 16, 32, 0.7);
    color: #fff; font-weight: bold; cursor: pointer; font-size: 14px; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.lx-app .lx-iname { color: #fff; font-weight: bold; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-app .lx-beads { margin-left: auto; display: flex; gap: 5px; background: rgba(4, 16, 32, 0.6); padding: 6px 8px; border-radius: 0; }
.lx-app .lx-bead { width: 12px; height: 12px; border-radius: 50%; background: #2a3a4f; border: 1px solid rgba(255, 255, 255, 0.25); }
.lx-app .lx-bead.cur { border-color: #fff; box-shadow: 0 0 8px #fff; }
.lx-app .lx-bead.lit { background: var(--acc); box-shadow: 0 0 10px var(--acc); border-color: transparent; }
.lx-app .lx-bead.lost { background: #5a6270; }
.lx-app .lx-pop { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(0.7); z-index: 5; pointer-events: none;
    font-size: clamp(22px, 5vw, 34px); font-weight: 900; color: #fff; letter-spacing: 0.04em; text-shadow: 0 0 16px var(--acc), 0 3px 8px rgba(0, 0, 0, 0.8);
    opacity: 0; transition: opacity 0.25s, transform 0.35s cubic-bezier(.2, 1.6, .4, 1); white-space: nowrap; }
.lx-app .lx-pop.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.lx-app .lx-play { display: none; margin-top: 10px; }
.lx-app .lx-root.island .lx-play { display: block; }
.lx-app .lx-root.island .lx-mapzone { display: none; }
.lx-app .lx-quest { border-radius: 0; padding: 12px 14px; background: linear-gradient(180deg, rgba(14, 28, 50, 0.95), rgba(8, 16, 30, 0.95));
    border: 1px solid color-mix(in srgb, var(--acc, #7cd4ff) 45%, transparent); clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.lx-app .lx-q-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: #9fc4e6; margin-bottom: 6px; }
.lx-app .lx-tries { display: flex; gap: 4px; align-items: center; }
.lx-app .lx-try { width: 10px; height: 10px; border-radius: 50%; background: var(--acc, #7cd4ff); box-shadow: 0 0 6px var(--acc, #7cd4ff); }
.lx-app .lx-try.used { background: #3a4656; box-shadow: none; }
.lx-app .lx-clue { font-size: 16px; color: #fff; font-weight: bold; line-height: 1.35; }
.lx-app .lx-sent { font-size: 14px; color: #b9cde3; line-height: 1.45; margin-top: 6px; font-style: italic; }
.lx-app .lx-sent b { color: var(--acc, #7cd4ff); font-style: normal; letter-spacing: 0.08em; }
.lx-app .lx-slots { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 12px 0 6px; }
.lx-app .lx-slot { width: clamp(22px, 7.4vw, 34px); height: clamp(30px, 9vw, 42px); border-radius: 0; display: flex; align-items: center; justify-content: center;
    font: bold clamp(16px, 4.6vw, 22px) monospace; text-transform: uppercase; color: #fff; background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2); transition: transform 0.12s, background 0.2s; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.lx-app .lx-slot.given { color: var(--acc, #7cd4ff); border-color: color-mix(in srgb, var(--acc, #7cd4ff) 60%, transparent); }
.lx-app .lx-slot.next { border-color: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, 0.6); }
.lx-app .lx-slot.typed { background: rgba(255, 255, 255, 0.14); transform: translateY(-1px); }
.lx-app .lx-slots.shake { animation: lxShake 0.4s; }
.lx-app .lx-slots.win .lx-slot { background: var(--acc, #7cd4ff); color: #04111f; border-color: transparent; }
@keyframes lxShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
.lx-app .lx-tried { text-align: center; font-size: 12px; color: #8aa4c0; min-height: 16px; }
.lx-app .lx-tried s { color: #ff8a8a; margin: 0 4px; }
.lx-app .lx-fb { text-align: center; min-height: 20px; font-size: 14px; font-weight: bold; margin-top: 4px; color: #cfe6ff; }
.lx-app .lx-fb.ok { color: #7cfc8a; }
.lx-app .lx-fb.no { color: #ff8a8a; }
.lx-app .lx-actions { display: flex; gap: 8px; justify-content: center; margin-top: 8px; flex-wrap: wrap; }
.lx-app .lx-btn { min-height: 42px; padding: 0 16px; border-radius: 0; cursor: pointer; font-weight: bold; font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06); color: #e8f4ff; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.lx-app .lx-btn.go { border: none; color: #062033; background: linear-gradient(180deg, #ffe08a, #ffb340); }
.lx-app .lx-btn[disabled] { opacity: 0.45; cursor: default; }
.lx-app .lx-keys { display: none; flex-direction: column; gap: 5px; margin: 10px auto 0; max-width: 625px; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.lx-app .lx-keys.show { display: flex; }
.lx-app .lx-krow { display: flex; gap: 5px; }
.lx-app .lx-key { flex: 1 1 0; height: 46px; border-radius: 0; border: 1px solid color-mix(in srgb, var(--acc, #7cd4ff) 30%, transparent); padding: 0; cursor: pointer;
    background: linear-gradient(180deg, #16263f, #0b1626); color: #eaf6ff; font: bold 18px monospace; box-shadow: inset 0 -2px 0 #040a12; -webkit-tap-highlight-color: transparent; clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px); }
.lx-app .lx-key.wide { flex: 1.5 1 0; font-size: 18px; }
.lx-app .lx-key[data-k="enter"] { flex: 3.5 1 0; color: #062033; background: linear-gradient(180deg, #ffe08a, #ffb340); border: none; }
.lx-app .lx-key.down { transform: translateY(2px); box-shadow: none; }
.lx-app .lx-end { position: absolute; inset: 0; z-index: 8; display: none; align-items: flex-start; justify-content: center; padding: 14px 8px;
    background: rgba(3, 10, 22, 0.82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); border-radius: 0; overflow-y: auto; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.lx-app .lx-end.show { display: flex; }
.lx-app .lx-end-card { width: min(100%, 520px); background: linear-gradient(180deg, #10233f, #081426); border: 1px solid var(--acc, #7cd4ff);
    border-radius: 0; padding: 18px 16px; color: #e8f4ff; text-align: center; box-shadow: none; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.lx-app .lx-end-stars { font-size: 34px; letter-spacing: 6px; min-height: 40px; }
.lx-app .lx-end-stars .dim { opacity: 0.25; filter: grayscale(1); }
.lx-app .lx-end-title { font-size: 20px; font-weight: 900; color: #fff; margin: 4px 0; }
.lx-app .lx-end-sub { font-size: 13px; color: #a8c4e0; margin-bottom: 12px; }
.lx-app .lx-rev { text-align: left; display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.lx-app .lx-rev-row { padding: 8px 10px; border-radius: 0; background: rgba(255, 255, 255, 0.05); border-left: 3px solid var(--acc, #7cd4ff); }
.lx-app .lx-rev-row.lost { border-left-color: #6a7484; }
.lx-app .lx-rev-w { font-weight: bold; color: #fff; display: flex; justify-content: space-between; gap: 8px; }
.lx-app .lx-rev-c { font-size: 12px; color: #9fb4cc; margin-top: 2px; }
.lx-app .lx-end-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 640px) {
    .lx-app .lx-stage { height: clamp(230px, 46vh, 400px); }
    .lx-app .lx-stage.island { height: clamp(170px, 30vh, 260px); }
    .lx-app .lx-isles { grid-template-columns: repeat(2, 1fr); }
    .lx-app .lx-clue { font-size: 15px; }
    .lx-app .lx-key { height: 44px; font-size: 17px; }
    .lx-app .lx-quest { padding: 10px 10px; }
}
.lx-app { color: #e8f4ff; }
.lx-app .lx-body { flex: 1; min-height: 0; overflow-y: auto; padding: 8px; -webkit-overflow-scrolling: touch; }
.lx-app .lx-hud { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.lx-app .lx-hchip { flex: 1 1 0; min-width: 64px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); padding: 4px 8px; text-align: center; }
.lx-app .lx-hchip small { display: block; font: bold 9px monospace; letter-spacing: 2px; color: #8796ad; }
.lx-app .lx-hchip b { font: 800 16px/1.2 monospace; color: #fff; }
.lx-app .lx-hchip.gold b { color: #fbbf24; }
.lx-app .lx-stage { background: #040a18; border: 1px solid rgba(124, 212, 255, 0.25); }
