.cx-intro{max-width:850px;margin:10px auto 22px}.cx-intro h1{font-size:clamp(30px,6vw,44px);line-height:1.15;margin:12px 0}.cx-intro p{line-height:1.65}.cx-tag{font-size:12px;letter-spacing:.12em;font-weight:800;text-transform:uppercase;color:#5342a4}.cx-shell{max-width:760px;margin:auto;background:white;border:1px solid #c8d1e9;border-radius:22px;overflow:hidden;box-shadow:0 8px 32px #1b1f3b0a}.cx-bar{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;padding:16px;background:#f5f6ff;font-weight:700;text-align:center}.cx-bar span{min-width:75px}.cx-board{padding:20px 12px;min-height:180px;overflow:hidden}.cx-grid{display:grid;gap:5px;max-width:520px;margin:auto}.cx-cell{font:800 clamp(12px,3.5vw,20px) system-ui;border:1px solid #aab8d7;min-width:0;aspect-ratio:1;background:#eef1ff;color:#1b1f3b;border-radius:8px;cursor:pointer;display:grid;place-items:center;padding:0}.cx-cell:disabled{cursor:default;opacity:1}.cx-cell.on{background:#ffd166;color:#1b1f3b}.cx-cell.mark{background:#4732a5;color:white}.cx-cell.good{background:#9ee0bd}.cx-cell.bad{background:#ffccd9}.cx-cell.selected{outline:3px solid #b44f00;outline-offset:0}.cx-cell.wall{background:#263354;color:#fff;border-color:#263354}.cx-cell.empty{background:transparent;border-color:transparent;pointer-events:none}.cx-cell:focus-visible,.cx-action:focus-visible,.cx-controls button:focus-visible{outline:3px solid #b44f00;outline-offset:2px}.cx-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;padding:12px}.cx-controls button,.cx-action{font:700 15px system-ui;min-height:44px;border:0;border-radius:10px;padding:10px 16px;background:#4732a5;color:white;cursor:pointer}.cx-controls button.secondary{background:#edf0fa;color:#1b1f3b;border:1px solid #b8c4de}.cx-controls button:disabled{opacity:.5;cursor:default}.cx-controls input:not([type=range]){box-sizing:border-box;max-width:180px;width:100%;font:700 18px system-ui;padding:10px;border:1px solid #8897bd;border-radius:8px}.cx-controls label{font:600 14px system-ui}.cx-controls select{font:inherit;min-height:44px;max-width:100%;border:1px solid #8897bd;border-radius:8px;background:white;color:#1b1f3b;padding:8px}.cx-controls input[type=range]{display:block;min-height:32px;max-width:150px;accent-color:#4732a5}.cx-status{font:16px/1.6 system-ui;margin:0;padding:8px 20px 20px;min-height:3.2em;text-align:center}.cx-note{font-size:13px;line-height:1.6;text-align:center;color:#515974;margin:16px auto;max-width:720px}.cx-rules{background:white;border-radius:18px;padding:24px;max-width:820px;margin:28px auto;line-height:1.75}.cx-rules li+li{margin-top:10px}.cx-rules h2{line-height:1.3}.cx-word{font:800 clamp(22px,6vw,40px) monospace;letter-spacing:.15em;text-align:center;overflow-wrap:anywhere}.cx-keyboard{display:flex;flex-wrap:wrap;gap:7px;justify-content:center;max-width:550px;margin:24px auto}.cx-keyboard button{width:40px;min-height:43px;border:1px solid #aab8d7;background:#eef1ff;border-radius:8px;color:#1b1f3b;font:800 17px system-ui}.cx-keyboard button:disabled{opacity:.55}.cx-table{width:100%;border-collapse:collapse;font-size:14px}.cx-table th,.cx-table td{border-bottom:1px solid #d2d9eb;padding:8px;text-align:center}.cx-stage{max-width:520px;margin:auto;position:relative;background:#111a36;border-radius:14px;overflow:hidden}.cx-stage canvas{width:100%;height:auto;display:block;touch-action:none;outline-offset:-3px}.cx-stage svg{display:block;width:100%;height:auto}.cx-mazecell{border-radius:0;border:0;background:#e6ebff;aspect-ratio:1;position:relative;min-width:0;display:grid;place-items:center;font-size:17px;font-weight:900;padding:0;color:#1b1f3b}.cx-nono{grid-template-columns:45px repeat(5,1fr);gap:3px}.cx-clue{font-size:14px;display:grid;place-items:center;white-space:pre-line;text-align:center;font-weight:700;line-height:1.2}.cx-clue.top{min-height:48px}.cx-dots{grid-template-columns:repeat(7,1fr);gap:0;max-width:360px}.cx-dot{border-radius:50%;background:#1b1f3b;width:12px;height:12px;place-self:center}.cx-edge{background:#dce3f4;border:0;border-radius:6px;padding:0;cursor:pointer;min-width:0;min-height:24px}.cx-edge.h{height:24px;align-self:center}.cx-edge.v{width:24px;justify-self:center;height:100%}.cx-box{aspect-ratio:1;display:grid;place-items:center;font-weight:800}.cx-disc{width:80%;height:80%;border-radius:50%;display:grid;place-items:center;font-size:14px}.cx-disc.p1{background:#ffd166;color:#1b1f3b;box-shadow:inset 0 -4px #0002}.cx-disc.p2{background:#4732a5;color:white;box-shadow:inset 0 -4px #0002}.cx-bridge{position:relative;max-width:420px;margin:auto;aspect-ratio:1}.cx-bridge svg{position:absolute;width:100%;height:100%;inset:0}.cx-island{position:absolute;transform:translate(-50%,-50%);width:42px;height:42px;border:2px solid #7c8db3;border-radius:50%;background:white;color:#1b1f3b;font:800 19px system-ui;cursor:pointer}.cx-island.selected{outline:4px solid #ffd166}.cx-pipe svg{width:100%;height:100%}.cx-fleet-label{font-size:15px;text-align:center;margin:12px 0}.cx-fleet-layout{display:grid;grid-template-columns:1fr 1fr;gap:20px}.cx-fleet-layout .cx-cell{font-size:14px;border-radius:4px}.cx-big-button{width:100%;min-height:190px;font:800 28px system-ui;border:0;border-radius:16px;cursor:pointer;background:#e8edff;color:#1b1f3b;touch-action:manipulation}.cx-big-button.ready{background:#c0f2d5}.cx-mancala{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}.cx-mancala .cx-cell{border-radius:50%;font-size:19px}.cx-track{display:grid;grid-template-columns:repeat(6,1fr);gap:5px}.cx-track .cx-cell{font-size:12px}.cx-meter{height:24px;border-radius:20px;background:#e2e8f6;overflow:hidden;margin:18px}.cx-meter span{height:100%;display:block;background:#5c4abb}.cx-game-main{max-width:1000px;margin:auto;padding:0 16px}.cx-legend{text-align:center;line-height:1.6;font-size:14px;margin:16px 0}.cx-choice{font-size:24px!important;min-width:60px}.cx-number{font-size:clamp(42px,10vw,70px);text-align:center;font-weight:900;color:#4732a5;margin:16px}.cx-scroll{overflow-x:auto}.cx-tube-note{font-size:14px;text-align:center}.cx-words{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;padding:12px;font-weight:800}.cx-words .found{text-decoration:line-through;color:#245f44}@media(max-width:420px){.cx-game-main{padding:0 10px}.cx-board{padding:16px 10px}.cx-rules{padding:18px}.cx-grid{gap:3px}.cx-cell{border-radius:5px}.cx-fleet-layout{gap:10px}.cx-fleet-layout .cx-cell{font-size:11px}.cx-controls{gap:8px}.cx-dots{gap:0}.cx-nono{grid-template-columns:35px repeat(5,1fr)}.cx-island{width:38px;height:38px}.cx-keyboard{gap:5px}.cx-keyboard button{width:34px}.cx-mancala{gap:5px}.cx-mancala .cx-cell{font-size:16px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

@media(max-width:600px){.cx-fleet-layout{grid-template-columns:1fr;gap:22px}.cx-fleet-layout .cx-cell{font-size:16px}}

.cx-grid input.cx-cell{font-size:24px;text-align:center;width:100%;box-sizing:border-box}.cx-meter span{color:#fff;font:700 13px/24px system-ui;text-align:center}.cx-meter:has(#cx-tension){background:linear-gradient(to right,#f1ccd4 0 25%,#c7e9d3 25% 80%,#f1ccd4 80%)}
