:root{--game-blue:#2563eb;--game-ink:#17243b;--game-muted:#64748b;--game-line:#d7e3f3;--game-soft:#eef5ff;--game-good:#0c9a6b;--game-bad:#d84b5f;--game-warn:#c97705}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#eef5ff;color:var(--game-ink);font-family:system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif}button,a{-webkit-tap-highlight-color:transparent}body.interactive-game{min-height:100dvh;background:radial-gradient(circle at 12% 0,#dcecff 0,transparent 34%),linear-gradient(145deg,#f9fcff,#edf4ff);overscroll-behavior:none}.game-shell{width:min(1180px,calc(100% - 28px));height:100dvh;margin:auto;padding:14px 0 16px;display:grid;grid-template-rows:auto minmax(0,1fr);gap:12px}.game-top{min-height:70px;padding:10px 14px;border:1px solid rgba(148,163,184,.3);border-radius:21px;background:rgba(255,255,255,.94);box-shadow:0 12px 32px rgba(36,76,130,.1);display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px}.game-back,.game-top-btn{min-height:44px;padding:0 15px;border:1px solid #cbd8ea;border-radius:14px;background:#fff;color:#304667;text-decoration:none;font-weight:850;font-size:15px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.game-top-btn[hidden]{display:none}.game-top-actions{display:flex;gap:8px}.game-top-btn.primary{background:#e8f1ff;color:#1f5db9;border-color:#bcd2f2}.game-title{min-width:0;display:flex;align-items:center;gap:12px}.game-title-icon{width:49px;height:49px;border-radius:15px;background:#e6efff;display:grid;place-items:center;font-size:28px}.game-title h1{margin:0;font-size:clamp(21px,2.5vw,30px);line-height:1.1}.game-title p{margin:5px 0 0;color:var(--game-muted);font-size:14px}.game-card{min-height:0;padding:14px;border:1px solid rgba(148,163,184,.3);border-radius:24px;background:rgba(255,255,255,.97);box-shadow:0 18px 45px rgba(36,76,130,.12);display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:12px;overflow:hidden}.game-status{display:grid;grid-template-columns:auto minmax(130px,1fr) auto;align-items:center;gap:12px}.game-progress{font-weight:950;color:#29466f;white-space:nowrap}.game-meter{height:10px;border-radius:99px;background:#e7eef8;overflow:hidden}.game-meter>i{display:block;height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,#3b82f6,#20bea0);transition:width .25s}.game-score{color:var(--game-muted);font-weight:850;white-space:nowrap}.game-main{min-height:0;border:1px solid var(--game-line);border-radius:20px;background:linear-gradient(155deg,#fbfdff,#f1f6ff);padding:14px;display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,310px);gap:14px;overflow:hidden}.game-board-wrap{min-height:0;display:grid;place-items:center;overflow:auto;border-radius:17px;background:#fff;border:1px solid #dce6f5;padding:12px}.game-side{min-height:0;border:1px solid #dce6f5;border-radius:17px;background:#fff;padding:16px;display:flex;flex-direction:column;gap:12px;overflow:auto}.game-side h2{margin:0;font-size:20px}.game-side p{margin:0;color:var(--game-muted);line-height:1.6;font-size:14px}.game-stats{display:grid;grid-template-columns:1fr;gap:8px}.game-stats span{padding:9px 11px;border-radius:12px;background:#f2f6fb;color:#415874;font-size:13px;font-weight:800}.game-actions{margin-top:auto;display:grid;gap:8px}.game-btn{min-height:46px;padding:0 16px;border:1px solid #cbd8ea;border-radius:14px;background:#f8fbff;color:#294361;font-size:15px;font-weight:900;cursor:pointer;touch-action:manipulation}.game-btn.primary{background:linear-gradient(135deg,#2563eb,#147acb);border-color:transparent;color:#fff;box-shadow:0 8px 18px rgba(37,99,235,.2)}.game-btn.warn{background:#fff8e7;border-color:#eed18a;color:#8c5b00}.game-btn:disabled{opacity:.45;cursor:not-allowed}.game-feedback{min-height:50px;border-radius:15px;background:#f2f6fb;color:#475569;padding:11px 14px;display:flex;align-items:center;font-weight:800}.game-feedback.good{background:#e5f8f1;color:#08785a}.game-feedback.bad{background:#fff0f1;color:#b3293c}.game-feedback.info{background:#edf4ff;color:#2458a6}.game-completion-dialog{position:fixed;inset:0;z-index:80;background:rgba(15,31,55,.58);padding:18px;display:grid;place-items:center}.game-completion-dialog[hidden]{display:none}.game-completion-card{width:min(530px,100%);border-radius:27px;background:#fff;padding:28px;box-shadow:0 28px 80px rgba(9,28,56,.32);text-align:center}.game-completion-icon{font-size:56px}.game-completion-card h2{margin:7px 0;font-size:30px}.game-completion-card p{margin:8px 0;color:#5e708a;line-height:1.65}.game-reward{margin:15px 0;padding:12px;border-radius:14px;background:#ecf5ff;color:#245999;font-weight:900}.game-completion-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.game-completion-actions .primary{grid-column:1/-1}.game-completion-actions a{text-decoration:none;display:flex;align-items:center;justify-content:center}.game-grid{display:grid;gap:5px;width:min(100%,520px);aspect-ratio:1}.game-grid.g7x6{grid-template-columns:repeat(7,1fr);aspect-ratio:7/6}.game-cell{min-width:0;aspect-ratio:1;border:1px solid #cbd8ea;border-radius:9px;background:#f8fbff;color:#24415f;font-size:clamp(15px,2.5vw,27px);font-weight:950;display:grid;place-items:center;cursor:pointer;touch-action:manipulation}.game-cell:disabled{cursor:default}.game-cell.black{background:#243449;color:#fff}.game-cell.white{background:#fff;border:2px solid #7d8ca1}.game-cell.red{background:#ed5364;color:#fff}.game-cell.yellow{background:#ffd95c;color:#5c4500}.game-cell.good{outline:3px solid rgba(12,154,107,.34);background:#dff8ee}.game-cell.bad{animation:game-shake .25s;background:#fff0f1;border-color:#e45a6d}.game-board-wood{padding:12px;border-radius:18px;background:#deb873}.game-board-wood .game-cell{border-radius:50%;background:rgba(255,255,255,.18);border-color:rgba(83,55,19,.38)}.game-board-wood .game-cell.black{background:#20242b}.game-board-wood .game-cell.white{background:#fff}.game-connect{padding:10px;border-radius:18px;background:#3678d7}.game-connect .game-cell{border:0;border-radius:50%;background:#d7e7ff}.game-connect .game-cell.red{background:#ed5364}.game-connect .game-cell.yellow{background:#ffd95c}.game-dot{width:14px;height:14px;border-radius:50%;background:#263b59}.game-edge{border:0;border-radius:9px;background:#dbe5f3;cursor:pointer}.game-box{width:68px;height:68px;border-radius:14px;display:grid;place-items:center;font-weight:950;color:#fff}.game-tile-grid{display:grid;gap:7px;width:min(100%,480px)}.game-tile{aspect-ratio:1;border:1px solid #cedaea;border-radius:12px;background:#fff;font-size:clamp(18px,3.1vw,30px);font-weight:950;display:grid;place-items:center;cursor:pointer;touch-action:manipulation}.game-tile.wall{background:#8191a6;border-color:#76869b;cursor:default}.game-tile.goal{background:#dcf7eb}.game-tile.player{background:#dcecff}.game-tile.box{background:#f6c779}.game-tile.box.goal{background:#54bd88}.game-tile.path-ok{background:#dff8ee;border-color:#3cb383}.game-tile.pipe{font-size:clamp(30px,4.5vw,48px);color:#2f79d6}.game-tile.pipe.source{background:#e0f8eb}.game-tile.pipe.sink{background:#fff1d5}.game-command-strip{min-height:54px;padding:9px;border-radius:14px;background:#eef4fb;display:flex;gap:7px;align-items:center;flex-wrap:wrap}.game-command{width:38px;height:38px;border-radius:10px;background:#fff;border:1px solid #cbd8ea;display:grid;place-items:center;font-weight:950}.game-word-layout{width:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr);gap:15px}.game-question,.game-answers{border:1px solid #dce6f5;border-radius:18px;background:#fff;padding:20px;display:flex;flex-direction:column;justify-content:center}.game-kicker{color:#2563eb;font-size:14px;font-weight:950}.game-question h2{margin:10px 0;font-size:clamp(25px,3.8vw,42px);line-height:1.35}.game-question p{margin:0;color:#64748b;line-height:1.6}.game-choice-list{display:grid;gap:10px}.game-choice{min-height:54px;padding:10px 14px;border:1px solid #cedaea;border-radius:15px;background:#f9fbff;text-align:left;color:#1f3553;font-size:17px;font-weight:850;cursor:pointer}.game-choice.right{background:#e5f8f1;border-color:#2daf80}.game-choice.wrong{background:#fff0f1;border-color:#e45a6d}.game-levels{display:flex;gap:7px;flex-wrap:wrap;margin-top:15px}.game-levels button{min-height:38px;padding:0 13px;border:1px solid #cbd8ea;border-radius:12px;background:#fff;color:#405676;font-weight:850;cursor:pointer}.game-levels button.active{background:#2563eb;color:#fff;border-color:#2563eb}@keyframes game-shake{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}@media(max-width:900px),(orientation:portrait){body.interactive-game{overscroll-behavior:auto}.game-shell{width:min(100% - 18px,780px);height:auto;min-height:100dvh;padding:9px 0 88px}.game-top{grid-template-columns:auto minmax(0,1fr)}.game-top-actions{grid-column:1/-1;justify-content:flex-end}.game-card{overflow:visible}.game-main{grid-template-columns:1fr;overflow:visible}.game-board-wrap{min-height:390px;overflow:visible}.game-side{overflow:visible}.game-actions{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:0}.game-word-layout{grid-template-columns:1fr}.game-status{grid-template-columns:auto 1fr}.game-score{display:none}}@media(max-width:560px){.game-shell{width:calc(100% - 12px)}.game-top{padding:8px 10px;gap:9px}.game-back{padding:0 10px}.game-title-icon{width:42px;height:42px}.game-title p{display:none}.game-card,.game-main{padding:9px}.game-board-wrap{padding:8px;min-height:330px}.game-side{padding:12px}.game-actions{grid-template-columns:1fr}.game-completion-actions{grid-template-columns:1fr}.game-completion-actions .primary{grid-column:auto}.game-word-layout{gap:9px}.game-question,.game-answers{padding:14px}}:root{
  --catalog-ink:#14233d;--catalog-muted:#60708a;--catalog-line:#d8e4f2;
  --catalog-blue:#2563eb;--catalog-blue2:#0f74d8;--catalog-cyan:#14b8a6;
  --catalog-soft:#f3f7fd;--catalog-card:#ffffff;--catalog-good:#0d9468;
  --catalog-warn:#c97808;--catalog-bad:#c93f52;
}body[data-game-shell="thinking-hub"] .parent-group{margin:0;padding:18px;border:1px solid var(--catalog-line);border-radius:24px;background:rgba(255,255,255,.92);box-shadow:0 16px 38px rgba(33,70,120,.08)}body[data-game-shell="thinking-hub"] .parent-group[hidden]{display:none!important}body[data-game-shell="thinking-hub"] .catalog-group-name{display:flex;justify-content:space-between;align-items:end;gap:18px;margin:0 0 14px;font-size:24px}body[data-game-shell="thinking-hub"] .catalog-group-name small{max-width:420px;text-align:right;font-size:14px;line-height:1.5}body[data-game-shell="game"]{--game-accent:#2563eb;--game-accent-2:#0f74d8;background:radial-gradient(circle at 15% -10%,#d9eaff 0,transparent 38%),linear-gradient(150deg,#f8fbff 0,#edf4ff 100%);color:var(--catalog-ink)}body[data-game-kind="observe"]{--game-accent:#0f83b8;--game-accent-2:#14a3a0}body[data-game-kind="memory"]{--game-accent:#7357d9;--game-accent-2:#4d75df}body[data-game-kind="logic"]{--game-accent:#315fd4;--game-accent-2:#1686c7}body[data-game-kind="strategy"]{--game-accent:#5b55c5;--game-accent-2:#2d72c8}body[data-game-kind="route"]{--game-accent:#16847c;--game-accent-2:#279c70}body[data-game-kind="words"]{--game-accent:#b45b17;--game-accent-2:#d27b1f}body[data-game-kind="focus"]{--game-accent:#248455;--game-accent-2:#50a646}body[data-game-shell="game"] :is(button,a){-webkit-tap-highlight-color:transparent}body[data-game-shell="game"] :is(button,a):focus-visible{outline:4px solid color-mix(in srgb,var(--game-accent) 28%,transparent);outline-offset:2px}body[data-game-shell="game"] :is(button,.quiz-choice,.game-choice,.quiz-cell,.game-cell,.game-tile){touch-action:manipulation}.catalog-title-tags{display:flex;gap:7px;flex-wrap:wrap;margin-top:7px}.catalog-title-tags span{min-height:26px;padding:0 9px;border:1px solid color-mix(in srgb,var(--game-accent) 24%,#d9e4f2);border-radius:999px;background:color-mix(in srgb,var(--game-accent) 8%,#fff);color:color-mix(in srgb,var(--game-accent) 78%,#243b5b);font-size:12px;font-weight:850;display:inline-flex;align-items:center}.catalog-title-tags span:last-child{background:#f6f8fc;border-color:#dce5f0;color:#65758d}body[data-game-shell="game"] .quiz-choice{min-height:58px;border-radius:16px;background:#fbfcff;font-size:17px;transition:transform .12s ease,border-color .12s ease,background .12s ease}body[data-game-shell="game"] .quiz-choice:active{transform:scale(.985)}body[data-game-shell="game"] .quiz-btn{min-height:52px;border-radius:16px}body[data-game-shell="game"] .quiz-btn.primary{background:linear-gradient(135deg,var(--game-accent),var(--game-accent-2));box-shadow:0 9px 20px color-mix(in srgb,var(--game-accent) 22%,transparent)}body[data-game-shell="game"] .quiz-feedback{min-height:50px;border-radius:16px;font-size:15px}body[data-game-shell="game"] .quiz-cell{border-radius:13px;border-color:#ccd9e8;box-shadow:inset 0 -2px 0 rgba(31,64,102,.05)}body[data-game-shell="game"] .game-shell{width:min(1240px,calc(100% - 28px));height:100dvh;padding:12px 0;gap:10px}body[data-game-shell="game"] .game-top{min-height:72px;padding:9px 13px;border-color:rgba(137,159,190,.32);border-radius:22px;background:rgba(255,255,255,.94);box-shadow:0 10px 26px rgba(25,62,112,.08)}body[data-game-shell="game"] .game-back,body[data-game-shell="game"] .game-top-btn{min-height:48px;border-radius:15px;border-color:#d2deec;background:#f9fbfe;color:#314965}body[data-game-shell="game"] .game-top-btn.primary{background:linear-gradient(135deg,var(--game-accent),var(--game-accent-2));color:#fff;border-color:transparent}body[data-game-shell="game"] .game-title-icon{width:52px;height:52px;border-radius:17px;background:color-mix(in srgb,var(--game-accent) 12%,#fff)}body[data-game-shell="game"] .game-title h1{font-size:clamp(22px,2.35vw,31px)}body[data-game-shell="game"] .game-title p{margin-top:3px}body[data-game-shell="game"] .game-card{padding:12px;border-radius:26px;border-color:rgba(132,156,190,.28);box-shadow:0 18px 42px rgba(28,68,122,.1);gap:10px}body[data-game-shell="game"] .game-status{min-height:42px;padding:0 4px}body[data-game-shell="game"] .game-meter{height:8px}body[data-game-shell="game"] .game-meter>i{background:linear-gradient(90deg,var(--game-accent),var(--game-accent-2))}body[data-game-shell="game"] .game-main{grid-template-columns:minmax(0,1fr) minmax(240px,286px);gap:12px;padding:12px;border-radius:21px;background:linear-gradient(150deg,#ffffff,#f3f7fd)}body[data-game-shell="game"] .game-board-wrap{padding:10px;border-radius:18px;border-color:#dbe5f1;background:#fff;overflow:auto}body[data-game-shell="game"] .game-side{padding:15px;border-radius:18px;border-color:#dbe5f1;box-shadow:0 8px 22px rgba(41,72,112,.045)}body[data-game-shell="game"] .game-side h2{font-size:18px;color:#223b59}body[data-game-shell="game"] .game-side p{font-size:14px;line-height:1.55}body[data-game-shell="game"] .game-stats span{padding:9px 10px;border-radius:12px;background:#f3f7fc}body[data-game-shell="game"] .game-btn{min-height:50px;border-radius:15px}body[data-game-shell="game"] .game-btn.primary{background:linear-gradient(135deg,var(--game-accent),var(--game-accent-2));box-shadow:0 9px 20px color-mix(in srgb,var(--game-accent) 22%,transparent)}body[data-game-shell="game"] .game-feedback{min-height:50px;border-radius:16px;font-size:15px}body[data-game-shell="game"] .game-grid{place-self:center;max-height:min(59vh,520px);max-width:min(59vh,520px)}body[data-game-shell="game"] .game-cell{border-radius:10px;transition:transform .1s ease,background .12s ease}body[data-game-shell="game"] .game-cell:active:not(:disabled),body[data-game-shell="game"] .game-tile:active:not(.wall){transform:scale(.94)}body[data-game-shell="game"] .game-choice{min-height:58px;border-radius:16px;transition:transform .12s ease}body[data-game-shell="game"] .game-choice:active{transform:scale(.985)}body[data-game-shell="game"] .game-levels button.active{background:var(--game-accent);border-color:var(--game-accent)}body[data-game-shell="game"] :is(.quiz-completion-dialog,.game-completion-dialog){background:rgba(13,28,49,.62);backdrop-filter:blur(8px)}body[data-game-shell="game"] :is(.quiz-completion-actions,.game-completion-actions){gap:9px}body[data-game-shell="game"] :is(.quiz-completion-actions,.game-completion-actions) .primary{min-height:56px;font-size:17px;background:linear-gradient(135deg,var(--game-accent),var(--game-accent-2));color:#fff}body[data-game-shell="game"] :is(.quiz-completion-actions,.game-completion-actions) a{background:#f6f8fb;color:#53647b;border-color:#dce4ee}@media (max-width:900px),(orientation:portrait){body[data-game-shell="game"] .game-shell{width:min(100% - 18px,800px);height:auto;min-height:100dvh;padding:9px 0 calc(22px + env(safe-area-inset-bottom))}body[data-game-shell="game"] .game-top{position:relative;grid-template-columns:auto minmax(0,1fr);min-height:66px}body[data-game-shell="game"] .game-top-actions{grid-column:1/-1;justify-content:flex-end}body[data-game-shell="game"] .game-card{overflow:visible}body[data-game-shell="game"] .game-main{grid-template-columns:1fr;overflow:visible}body[data-game-shell="game"] .game-board-wrap{min-height:380px;overflow:visible}body[data-game-shell="game"] .game-side{overflow:visible}body[data-game-shell="game"] .game-actions{margin-top:0;grid-template-columns:repeat(2,minmax(0,1fr))}body[data-game-shell="game"] .game-grid{max-height:none;max-width:min(100%,520px)}}@media (max-width:620px){body[data-game-shell="thinking-hub"] .catalog-group-name{display:block}body[data-game-shell="thinking-hub"] .catalog-group-name small{display:block;text-align:left;margin-top:4px}body[data-game-shell="game"] .game-top{padding:8px 9px;gap:8px}body[data-game-shell="game"] .game-back{width:46px;padding:0;font-size:0}body[data-game-shell="game"] .game-back::after{content:"←";font-size:23px}body[data-game-shell="game"] .game-title-icon{width:45px;height:45px;font-size:25px}body[data-game-shell="game"] .game-title h1{font-size:21px}body[data-game-shell="game"] .game-title p{display:none}.catalog-title-tags{margin-top:4px;gap:5px}.catalog-title-tags span{min-height:23px;padding:0 7px;font-size:11px}body[data-game-shell="game"] .game-card{padding:9px}body[data-game-shell="game"] .game-main{padding:9px}body[data-game-shell="game"] .game-question,body[data-game-shell="game"] .game-answers{padding:14px}body[data-game-shell="game"] .game-word-layout{gap:9px}body[data-game-shell="game"] .quiz-completion-actions,body[data-game-shell="game"] .game-completion-actions{grid-template-columns:1fr}body[data-game-shell="game"] :is(.quiz-completion-actions,.game-completion-actions) .primary{grid-column:auto}}@media (prefers-reduced-motion:reduce){body[data-game-shell="game"] *,body[data-game-shell="thinking-hub"] *{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* v432 normal strategy games */
.game-btn.active{border-color:#2563eb;background:#e8f1ff;color:#174eaa;box-shadow:inset 0 0 0 1px rgba(37,99,235,.12)}
.game-intersection-board{width:min(100%,540px);aspect-ratio:1;display:grid;gap:0;padding:18px;border:2px solid #b78644;border-radius:18px;background:#d9ac67;box-shadow:inset 0 0 0 1px rgba(255,255,255,.38),0 12px 25px rgba(84,54,20,.14)}
.game-intersection-board .game-cell{position:relative;min-width:0;aspect-ratio:1;border:0!important;border-radius:0!important;background:
linear-gradient(#765326,#765326) center/100% 1px no-repeat,
linear-gradient(90deg,#765326,#765326) center/1px 100% no-repeat!important;color:transparent!important;overflow:visible}
.game-intersection-board .game-cell::after{content:"";position:absolute;inset:10%;border-radius:50%;opacity:0;transform:scale(.72);transition:transform .16s ease,opacity .16s ease;box-shadow:0 3px 7px rgba(28,35,43,.28)}
.game-intersection-board .game-cell.black::after{opacity:1;transform:scale(1);background:radial-gradient(circle at 32% 25%,#58616c 0,#171b20 58%,#050607 100%)}
.game-intersection-board .game-cell.white::after{opacity:1;transform:scale(1);background:radial-gradient(circle at 32% 25%,#fff 0,#f7f8f8 58%,#c9ced3 100%);box-shadow:0 3px 8px rgba(28,35,43,.32),inset 0 0 0 1px rgba(48,58,69,.22)}
.game-intersection-board .game-cell.star::before{content:"";position:absolute;left:50%;top:50%;width:5px;height:5px;border-radius:50%;background:#66461f;transform:translate(-50%,-50%);z-index:0}
.game-intersection-board .game-cell.last::before{content:"";position:absolute;left:50%;top:50%;width:8px;height:8px;border-radius:50%;background:#e33c4c;transform:translate(-50%,-50%);z-index:3;box-shadow:0 0 0 2px rgba(255,255,255,.72)}
.game-intersection-board .game-cell.hint{z-index:2;box-shadow:inset 0 0 0 3px #20a878!important;border-radius:8px!important}
.game-intersection-board .game-cell:disabled{opacity:1}
.game-gomoku-board{grid-template-columns:repeat(11,1fr)}
.game-go-board{grid-template-columns:repeat(9,1fr);width:min(100%,530px)}
.game-connect-normal{width:min(100%,590px)}
.game-connect-normal .game-cell.last{outline:4px solid rgba(255,255,255,.92);outline-offset:-6px;box-shadow:inset 0 0 0 3px rgba(25,53,96,.22)}
.game-connect-normal .game-cell.hint{box-shadow:inset 0 0 0 4px #20a878!important}











@media(max-width:900px),(orientation:portrait){
  .game-intersection-board{width:min(100%,620px)}
  .game-go-board{width:min(100%,590px)}
  
}
@media(max-width:560px){
  .game-intersection-board{padding:11px;border-radius:14px}
  .game-intersection-board .game-cell::after{inset:8%}
  
}

/* Strategy games: unified child UA/UI, pause and guided learning */
.strategy-normal-game .game-top-actions{flex-wrap:nowrap}
.strategy-normal-game .game-top-btn.tutorial{background:#fff7d9;border-color:#efd27d;color:#795205}
.strategy-normal-game .game-top-btn.primary{background:linear-gradient(135deg,#e9f2ff,#dceaff);border-color:#b9d0f0;color:#1f5db9}
.strategy-normal-game .game-side{gap:10px}
.strategy-normal-game .game-side>h2{font-size:18px}
.strategy-normal-game .game-side>p{padding:10px 12px;border-radius:14px;background:#f5f8fc;color:#536983}
.strategy-normal-game .game-stats{grid-template-columns:1fr;gap:6px}
.strategy-normal-game .game-stats span{padding:8px 10px}
.strategy-turn-card{min-height:68px;display:grid;grid-template-columns:48px minmax(0,1fr);gap:11px;align-items:center;padding:10px 12px;border:1px solid #d9e6f3;border-radius:17px;background:linear-gradient(145deg,#f8fbff,#edf5ff)}
.strategy-turn-card>i{width:46px;height:46px;display:grid;place-items:center;border-radius:15px;background:#e7f0ff;font-style:normal;font-size:25px}
.strategy-turn-card span{display:block;color:#6a7d94;font-size:11px;font-weight:850}
.strategy-turn-card strong{display:block;margin-top:1px;color:#173b68;font-size:17px;line-height:1.15}
.strategy-turn-card small{display:block;margin-top:3px;color:#64778f;font-size:11px;line-height:1.35;font-weight:700}
.strategy-turn-card.is-ai{background:#fff8e8;border-color:#efd9a4}.strategy-turn-card.is-ai>i{background:#fff0c7}.strategy-turn-card.is-ai strong{color:#855400}
.strategy-turn-card.is-paused{background:#f2f4f7}.strategy-turn-card.is-paused>i{background:#e4e8ee}.strategy-turn-card.is-paused strong{color:#4b5f76}
.strategy-turn-card.is-finished{background:#eaf8f2;border-color:#b9e1d1}.strategy-turn-card.is-finished>i{background:#d7f2e7}.strategy-turn-card.is-finished strong{color:#08745a}
.strategy-control-group{display:grid;gap:5px}
.strategy-control-group+.strategy-control-group{padding-top:7px;border-top:1px dashed #d7e2ee}
.strategy-control-label{display:block;color:#6b7d92;font-size:11px;font-weight:900;letter-spacing:.03em}
.strategy-control-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.strategy-difficulty-group .strategy-control-buttons{grid-template-columns:repeat(3,minmax(0,1fr))}
.strategy-game-action-group .strategy-control-buttons:has(>button:nth-child(3)){grid-template-columns:repeat(3,minmax(0,1fr))}
.strategy-normal-game .game-actions{display:grid;gap:7px;margin-top:auto}
.strategy-normal-game .game-actions .game-btn{min-width:0;min-height:40px;padding:0 7px;border-radius:12px;font-size:12px;line-height:1.15}
.strategy-normal-game .game-actions .game-btn.active{background:#2563eb;border-color:#2563eb;color:#fff;box-shadow:0 7px 15px rgba(37,99,235,.18)}
.strategy-normal-game .game-actions .game-btn.guide-target{outline:4px solid rgba(16,185,129,.25);border-color:#10a979;background:#e5f8f1;color:#08785a;animation:strategy-pulse 1s ease-in-out infinite}
.game-feedback{gap:9px}
.game-feedback>i{width:28px;height:28px;flex:0 0 28px;display:grid;place-items:center;border-radius:9px;background:rgba(255,255,255,.62);font-style:normal;font-size:16px}
.game-feedback>span{min-width:0;line-height:1.4}
.game-feedback.is-guide{border:1px solid #71c9ac;background:#e8faf4;color:#08745a;box-shadow:0 7px 18px rgba(16,150,105,.12)}
.strategy-pause-layer{position:absolute;inset:8px;z-index:20;display:grid;place-items:center;border-radius:18px;background:rgba(243,247,252,.92);backdrop-filter:blur(10px)}
.strategy-pause-layer[hidden]{display:none}
.strategy-pause-layer>div{text-align:center;padding:24px}
.strategy-pause-layer i{display:grid;place-items:center;width:68px;height:68px;margin:0 auto 10px;border-radius:22px;background:#e4ebf4;font-style:normal;font-size:34px}
.strategy-pause-layer h2{margin:0;color:#23415f;font-size:25px}
.strategy-pause-layer p{margin:7px 0 14px;color:#65788e;font-weight:750}
.strategy-pause-layer button{min-height:46px;padding:0 20px;border:0;border-radius:14px;background:#2563eb;color:#fff;font-weight:950;cursor:pointer}
.strategy-is-paused #gameBoard{filter:saturate(.65);opacity:.78}
.game-cell.hint,.game-edge.hint{animation:strategy-pulse 1s ease-in-out infinite}
@keyframes strategy-pulse{50%{box-shadow:0 0 0 6px rgba(16,185,129,.16)}}

.strategy-tutorial{position:fixed;inset:0;z-index:150;display:grid;place-items:center;padding:18px;background:rgba(13,28,49,.66);backdrop-filter:blur(8px)}
.strategy-tutorial[hidden]{display:none}
.strategy-tutorial-card{position:relative;width:min(760px,100%);max-height:calc(100dvh - 36px);overflow:auto;padding:24px;border:1px solid rgba(255,255,255,.8);border-radius:28px;background:#fff;box-shadow:0 30px 90px rgba(7,22,46,.35)}
.strategy-tutorial-close{position:absolute;right:14px;top:14px;width:42px;height:42px;border:0;border-radius:14px;background:#eef3f8;color:#435a74;font-size:28px;line-height:1;cursor:pointer}
.strategy-tutorial-head{display:grid;grid-template-columns:72px minmax(0,1fr);gap:16px;align-items:center;padding-right:44px}
.strategy-tutorial-head>i{width:72px;height:72px;display:grid;place-items:center;border-radius:22px;background:#eaf2ff;font-style:normal;font-size:40px}
.strategy-tutorial-head span{display:block;color:#2563eb;font-size:12px;font-weight:950;letter-spacing:.08em}
.strategy-tutorial-head h2{margin:4px 0 5px;font-size:30px;line-height:1.15;color:#173252}
.strategy-tutorial-head p{margin:0;color:#60748c;font-size:15px;line-height:1.55;font-weight:750}
.strategy-tutorial-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:18px;padding:5px;border:1px solid #dbe6f2;border-radius:16px;background:#f4f8fc}
.strategy-tutorial-tabs button{min-height:44px;border:0;border-radius:12px;background:transparent;color:#5c7088;font-size:14px;font-weight:900;cursor:pointer}
.strategy-tutorial-tabs button.is-active{background:#fff;color:#1e5bb4;box-shadow:0 5px 14px rgba(31,74,126,.1)}
.strategy-tutorial-panels{min-height:224px;margin-top:12px}
.strategy-tutorial-panels>section{height:100%}
.strategy-tutorial-panels>section[hidden]{display:none}
.strategy-tutorial-panels>section[data-tutorial-panel="quick"]{display:grid;grid-template-columns:.8fr 1.2fr;gap:12px}
.strategy-tutorial-panels article{min-width:0;padding:17px;border:1px solid #dbe6f2;border-radius:18px;background:#f8fbff}
.strategy-tutorial-panels strong{display:block;margin-bottom:8px;color:#193b64;font-size:16px}
.strategy-tutorial-panels p,.strategy-tutorial-panels ol,.strategy-tutorial-panels ul{margin:0;color:#566c85;font-size:14px;line-height:1.68;font-weight:720}
.strategy-tutorial-panels ol,.strategy-tutorial-panels ul{padding-left:21px}
.strategy-tutorial-panels li+li{margin-top:6px}
.strategy-tutorial-goal{display:flex;flex-direction:column;justify-content:center;background:linear-gradient(145deg,#fff9e6,#fffdf7)!important;border-color:#edd9a2!important}
.strategy-tutorial-guide{display:grid;grid-template-columns:76px minmax(0,1fr);gap:16px;align-items:center;min-height:148px}
.strategy-tutorial-guide>i{width:70px;height:70px;display:grid;place-items:center;border-radius:22px;background:#e7f7f1;font-style:normal;font-size:38px}
.strategy-tutorial-panels [data-tutorial-guide]{width:100%;min-height:52px;margin-top:10px}
.strategy-tutorial-actions{display:grid;grid-template-columns:auto 1fr;gap:10px;margin-top:14px}
.strategy-tutorial-actions .game-btn{min-height:50px}
.game-completion-card{border:1px solid #d9e5f1}
.game-completion-actions .primary{font-size:17px}

@media (min-width:700px) and (orientation:portrait){
  body.strategy-normal-game{overflow:hidden;overscroll-behavior:none}
  body.strategy-normal-game .game-shell{width:min(100% - 18px,820px);height:100dvh;min-height:0;padding:8px 0;grid-template-rows:74px minmax(0,1fr);gap:8px}
  body.strategy-normal-game .game-top{min-height:74px;height:74px;grid-template-columns:auto minmax(0,1fr) auto;padding:8px 10px;gap:10px}
  body.strategy-normal-game .game-top-actions{grid-column:auto;justify-content:flex-end;gap:7px}
  body.strategy-normal-game .game-back,body.strategy-normal-game .game-top-btn{min-height:44px;padding:0 11px;font-size:13px}
  body.strategy-normal-game .game-title-icon{width:46px;height:46px;font-size:25px}
  body.strategy-normal-game .game-title h1{font-size:23px}
  body.strategy-normal-game .game-title p{display:none}
  body.strategy-normal-game .catalog-title-tags{margin-top:3px}
  body.strategy-normal-game .catalog-title-tags span{min-height:22px;padding:0 7px;font-size:10px}
  body.strategy-normal-game .game-card{min-height:0;height:100%;padding:10px;grid-template-rows:38px minmax(0,1fr) 46px;gap:8px;overflow:hidden}
  body.strategy-normal-game .game-status{min-height:38px;padding:0 2px;gap:9px}
  body.strategy-normal-game .game-main{min-height:0;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) 258px;gap:9px;padding:9px;overflow:hidden}
  body.strategy-normal-game .game-board-wrap{min-height:0;height:100%;padding:8px;overflow:hidden;align-items:center}
  body.strategy-normal-game .game-side{min-height:0;height:100%;padding:10px;display:grid;grid-template-columns:minmax(0,.88fr) minmax(350px,1.12fr);grid-template-rows:64px auto minmax(0,1fr);column-gap:11px;row-gap:5px;align-content:stretch;overflow:hidden}
  body.strategy-normal-game .strategy-turn-card{grid-column:1;grid-row:1;min-height:64px;padding:7px 9px;grid-template-columns:43px 1fr}
  body.strategy-normal-game .strategy-turn-card>i{width:41px;height:41px;font-size:22px}
  body.strategy-normal-game .strategy-turn-card small{display:none}
  body.strategy-normal-game .game-side h2{display:none}
  body.strategy-normal-game .game-side>p{grid-column:1;grid-row:2;padding:7px 9px;font-size:11px;line-height:1.4}
  body.strategy-normal-game .game-stats{grid-column:1;grid-row:3;align-content:start;gap:5px}
  body.strategy-normal-game .game-stats span{padding:6px 8px;font-size:10px}
  body.strategy-normal-game .game-actions{grid-column:2;grid-row:1/4;align-content:center;margin:0;gap:5px}
  body.strategy-normal-game .strategy-control-group{gap:3px}
  body.strategy-normal-game .strategy-control-group+.strategy-control-group{padding-top:4px}
  body.strategy-normal-game .strategy-control-label{font-size:10px}
  body.strategy-normal-game .strategy-control-buttons{gap:5px}
  body.strategy-normal-game .game-actions .game-btn{min-height:36px;padding:0 5px;font-size:11px;border-radius:10px}
  body.strategy-normal-game .game-feedback{min-height:46px;height:46px;padding:8px 12px;font-size:13px}
  body.strategy-normal-game .game-grid,body.strategy-normal-game .game-intersection-board{width:min(100%,610px);max-width:min(100%,610px);max-height:min(100%,610px)}
  body.strategy-normal-game .game-go-board{width:min(100%,600px)}
  body.strategy-normal-game .game-connect-normal{width:min(100%,620px)}
  
  
  
  
  
}
@media(max-width:699px){
  .strategy-tutorial-card{padding:19px;border-radius:22px}
  .strategy-tutorial-head{grid-template-columns:56px 1fr;gap:12px}
  .strategy-tutorial-head>i{width:56px;height:56px;border-radius:18px;font-size:31px}
  .strategy-tutorial-head h2{font-size:24px}
  .strategy-tutorial-tabs{grid-template-columns:1fr}
  .strategy-tutorial-tabs button{min-height:40px}
  .strategy-tutorial-panels{min-height:0}
  .strategy-tutorial-panels>section[data-tutorial-panel="quick"]{grid-template-columns:1fr}
  .strategy-tutorial-guide{grid-template-columns:56px 1fr;min-height:120px}
  .strategy-tutorial-guide>i{width:54px;height:54px;font-size:30px}
  .strategy-tutorial-actions{grid-template-columns:1fr}
}

.strategy-tutorial-panels>section[hidden]{display:none!important}
.strategy-guide-toast{position:fixed;left:50%;top:max(18px,env(safe-area-inset-top));z-index:170;display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px;align-items:center;min-width:280px;max-width:calc(100vw - 32px);padding:11px 15px;border:1px solid #a8dfcb;border-radius:17px;background:rgba(244,255,251,.98);box-shadow:0 16px 38px rgba(12,91,69,.2);color:#0b6f55;opacity:0;transform:translate(-50%,-18px);pointer-events:none;transition:.2s ease}
.strategy-guide-toast.show{opacity:1;transform:translate(-50%,0)}
.strategy-guide-toast>i{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:#dff7ed;font-style:normal;font-size:23px}
.strategy-guide-toast strong,.strategy-guide-toast span{display:block}.strategy-guide-toast strong{font-size:15px}.strategy-guide-toast span{margin-top:2px;color:#4d7568;font-size:12px;font-weight:750}

/* Othello and jungle chess */
.game-othello-board{
  width:min(100%,590px);
  max-height:100%;
  grid-template-columns:repeat(8,minmax(0,1fr));
  gap:3px;
  padding:10px;
  border:8px solid #176743;
  border-radius:20px;
  background:#238a5c;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.18),0 12px 28px rgba(21,94,63,.18);
}
.game-othello-board .game-cell{
  position:relative;
  border:1px solid rgba(5,75,45,.72);
  border-radius:7px;
  background:#37a66f;
  box-shadow:none;
}
.game-othello-board .game-cell.black::before,.game-othello-board .game-cell.white::before{
  content:"";
  width:76%;
  aspect-ratio:1;
  border-radius:50%;
  box-shadow:0 4px 8px rgba(0,0,0,.2);
}
.game-othello-board .game-cell.black{background:#37a66f}
.game-othello-board .game-cell.black::before{background:radial-gradient(circle at 35% 25%,#5d6875,#10151c 68%)}
.game-othello-board .game-cell.white{border:1px solid rgba(5,75,45,.72);background:#37a66f}
.game-othello-board .game-cell.white::before{background:radial-gradient(circle at 35% 25%,#fff,#dce4ec 72%)}
.game-othello-board .game-cell.legal{cursor:pointer}
.othello-legal-dot{
  width:20%;
  aspect-ratio:1;
  border-radius:50%;
  background:#dff8b5;
  box-shadow:0 0 0 4px rgba(223,248,181,.24);
}
.game-othello-board .game-cell.last{outline:3px solid #ffe06d;outline-offset:-4px}

.game-jungle-board{
  width:min(100%,472px);
  max-height:100%;
  aspect-ratio:7/9;
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  grid-template-rows:repeat(9,minmax(0,1fr));
  gap:3px;
  padding:9px;
  border:7px solid #9a6a35;
  border-radius:20px;
  background:#d8b371;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.28),0 12px 28px rgba(92,61,29,.18);
}
.jungle-cell{
  position:relative;
  min-width:0;
  min-height:0;
  padding:0;
  overflow:hidden;
  border:1px solid rgba(82,91,47,.38);
  border-radius:8px;
  background:#b8d77a;
  color:#17344e;
  cursor:pointer;
  touch-action:manipulation;
}
.jungle-cell:disabled{cursor:default}
.jungle-cell.water{background:repeating-linear-gradient(135deg,#8fd8eb 0 8px,#74c8e0 8px 16px)}
.jungle-cell.trap{background:#f2c16d}
.jungle-cell.den{background:#d78b64;box-shadow:inset 0 0 0 3px rgba(125,49,32,.22)}
.jungle-cell>small{
  position:absolute;
  left:4px;
  top:2px;
  color:rgba(34,75,91,.6);
  font-size:10px;
  font-weight:950;
}
.jungle-cell.den>small,.jungle-cell.trap>small{color:rgba(104,52,28,.72)}
.jungle-piece{
  position:absolute;
  inset:5px;
  display:grid;
  grid-template-columns:1fr auto;
  grid-template-rows:1fr auto;
  align-items:center;
  padding:3px 5px;
  border:2px solid rgba(255,255,255,.84);
  border-radius:12px;
  box-shadow:0 4px 9px rgba(35,56,46,.2);
}
.side-1 .jungle-piece{background:linear-gradient(145deg,#fff4d4,#ffd46f);color:#6d4300}
.side-2 .jungle-piece{background:linear-gradient(145deg,#e6f0ff,#78a9ee);color:#123f7a}
.jungle-piece i{
  grid-column:1/3;
  align-self:end;
  font-style:normal;
  font-size:clamp(20px,3.2vw,32px);
  line-height:1;
  text-align:center;
}
.jungle-piece b{font-size:clamp(8px,1.2vw,11px);white-space:nowrap}
.jungle-piece em{font-style:normal;font-size:9px;font-weight:950;opacity:.72}
.jungle-cell.selected{outline:4px solid #ffd84f;outline-offset:-4px}
.jungle-cell.legal{outline:3px solid #17a474;outline-offset:-4px}
.jungle-target{
  position:absolute;
  left:50%;top:50%;
  width:24%;
  aspect-ratio:1;
  transform:translate(-50%,-50%);
  border-radius:50%;
  background:#0d9b6d;
  box-shadow:0 0 0 5px rgba(13,155,109,.2);
}
.jungle-cell.last{box-shadow:inset 0 0 0 3px #ffe36f}
.jungle-cell.guide-source{outline:4px solid #42c7a0;outline-offset:-4px}
.jungle-cell.hint{animation:strategy-pulse 1s ease-in-out infinite}

@media (min-width:700px) and (orientation:portrait){
  body.strategy-normal-game .game-othello-board{width:min(100%,600px);max-width:600px}
  body.strategy-normal-game .game-jungle-board{width:min(100%,470px);max-width:470px}
}
@media (max-width:699px){
  .game-othello-board{width:min(100%,520px);padding:7px;border-width:6px}
  .game-jungle-board{width:min(100%,420px);padding:7px;border-width:5px;gap:2px}
  .jungle-piece{inset:3px;padding:2px 3px;border-radius:9px}
  .jungle-piece b{font-size:8px}
}
@media (min-width:900px) and (orientation:landscape){
  .game-jungle-board{
    height:min(100%,500px);
    width:auto;
    max-width:100%;
  }
}

/* Chinese chess */
.game-xiangqi-board{
  position:relative;
  width:min(100%,522px);
  max-height:100%;
  aspect-ratio:9/10;
  display:grid;
  grid-template-columns:repeat(9,minmax(0,1fr));
  grid-template-rows:repeat(10,minmax(0,1fr));
  gap:0;
  padding:16px;
  border:8px solid #8c5528;
  border-radius:20px;
  overflow:hidden;
  background:
    linear-gradient(rgba(104,57,20,.46) 1px,transparent 1px) 16px 16px/calc((100% - 32px)/8) calc((100% - 32px)/9),
    linear-gradient(90deg,rgba(104,57,20,.46) 1px,transparent 1px) 16px 16px/calc((100% - 32px)/8) calc((100% - 32px)/9),
    linear-gradient(145deg,#f3d596,#ddb16b);
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.35),0 14px 30px rgba(95,55,20,.2);
}
.game-xiangqi-board::before,.game-xiangqi-board::after{
  content:"";
  position:absolute;
  z-index:0;
  width:calc((100% - 32px)/4);
  height:calc((100% - 32px)/9*2);
  left:calc(50% - (100% - 32px)/8);
  border-left:2px solid rgba(104,57,20,.45);
  border-right:2px solid rgba(104,57,20,.45);
  background:linear-gradient(45deg,transparent calc(50% - 1px),rgba(104,57,20,.5) 50%,transparent calc(50% + 1px)),linear-gradient(-45deg,transparent calc(50% - 1px),rgba(104,57,20,.5) 50%,transparent calc(50% + 1px));
  pointer-events:none;
}
.game-xiangqi-board::before{top:16px}
.game-xiangqi-board::after{bottom:16px}
.xiangqi-river{
  position:absolute;
  z-index:1;
  left:16px;right:16px;
  top:calc(50% - 4.6%);
  height:9.2%;
  display:flex;
  align-items:center;
  justify-content:space-around;
  border-top:2px solid rgba(104,57,20,.46);
  border-bottom:2px solid rgba(104,57,20,.46);
  background:linear-gradient(90deg,rgba(248,226,175,.96),rgba(236,199,128,.96));
  color:#875027;
  font-family:"STKaiti","KaiTi","楷体",serif;
  font-size:clamp(18px,2.4vw,28px);
  font-weight:900;
  letter-spacing:.22em;
  pointer-events:none;
}
.xiangqi-point{
  position:relative;
  z-index:3;
  min-width:0;
  min-height:0;
  margin:-1px;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  display:grid;
  place-items:center;
  cursor:pointer;
  touch-action:manipulation;
}
.xiangqi-point:disabled{cursor:default}
.xiangqi-point::after{
  content:"";
  width:7px;height:7px;
  border-radius:50%;
  background:rgba(104,57,20,.52);
}
.xiangqi-point.has-piece::after{display:none}
.xiangqi-piece{
  width:82%;
  aspect-ratio:1;
  display:grid;
  place-items:center;
  border:3px solid currentColor;
  border-radius:50%;
  background:radial-gradient(circle at 34% 26%,#fff9e8,#efcf91 72%);
  box-shadow:0 4px 9px rgba(76,43,16,.25),inset 0 0 0 3px rgba(255,255,255,.62);
  font-family:"STKaiti","KaiTi","楷体",serif;
}
.xiangqi-piece b{font-size:clamp(20px,3.4vw,34px);line-height:1;font-weight:950}
.xiangqi-piece small{display:none}
.xiangqi-point.side-1{color:#c5342d}
.xiangqi-point.side-2{color:#24374f}
.xiangqi-point.selected .xiangqi-piece{transform:translateY(-2px);box-shadow:0 0 0 5px rgba(255,216,79,.72),0 8px 15px rgba(76,43,16,.28)}
.xiangqi-point.legal{background:rgba(21,163,111,.16)}
.xiangqi-target{
  width:27%;
  aspect-ratio:1;
  border-radius:50%;
  background:#0d9b6d;
  box-shadow:0 0 0 6px rgba(13,155,109,.2);
}
.xiangqi-point.legal.has-piece .xiangqi-piece{box-shadow:0 0 0 5px rgba(13,155,109,.34),0 5px 10px rgba(76,43,16,.25)}
.xiangqi-point.last .xiangqi-piece{box-shadow:0 0 0 5px rgba(255,221,80,.72),0 5px 10px rgba(76,43,16,.25)}
.xiangqi-point.last-from{background:rgba(255,221,80,.2)}
.xiangqi-point.guide-source .xiangqi-piece{box-shadow:0 0 0 5px rgba(66,199,160,.66),0 5px 10px rgba(76,43,16,.25)}
.xiangqi-point.hint{animation:strategy-pulse 1s ease-in-out infinite;background:rgba(37,99,235,.2)}
@media (min-width:900px) and (orientation:landscape){
  .game-xiangqi-board{height:min(100%,580px);width:auto;max-width:100%}
}
@media (min-width:700px) and (orientation:portrait){
  body.strategy-normal-game .game-xiangqi-board{width:min(100%,540px);max-width:540px}
}
@media(max-width:699px){
  .game-xiangqi-board{width:min(100%,470px);padding:12px;border-width:6px}
  .game-xiangqi-board::before{top:12px}.game-xiangqi-board::after{bottom:12px}
  .xiangqi-river{left:12px;right:12px;font-size:17px}
  .xiangqi-piece{border-width:2px}
}

/* Complete strategy tutorial system */
.strategy-tutorial{padding:12px;background:rgba(10,24,45,.74);backdrop-filter:blur(10px)}
.strategy-tutorial-card{
  width:min(980px,100%);
  height:min(850px,calc(100dvh - 24px));
  max-height:calc(100dvh - 24px);
  overflow:hidden;
  padding:20px;
  display:grid;
  grid-template-rows:auto auto auto minmax(0,1fr) auto;
  gap:12px;
  border-radius:28px;
}
.strategy-tutorial-head{grid-template-columns:68px minmax(0,1fr);gap:15px;padding-right:48px}
.strategy-tutorial-head>i{width:68px;height:68px;border-radius:21px;font-size:38px}
.strategy-tutorial-head h2{font-size:29px}
.strategy-tutorial-head p{font-size:14px}
.strategy-tutorial-chapterbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 13px;border:1px solid #dce7f2;border-radius:14px;background:#f7faff;color:#516a85}
.strategy-tutorial-chapterbar strong{color:#1f5ba8;font-size:13px}
.strategy-tutorial-chapterbar small{font-size:12px;font-weight:750}
.strategy-tutorial-tabs{grid-template-columns:repeat(5,minmax(0,1fr));margin:0;padding:5px;gap:5px}
.strategy-tutorial-tabs button{min-height:42px;padding:5px 7px;font-size:12px;line-height:1.25}
.strategy-tutorial-panels{min-height:0;margin:0;padding-right:4px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.strategy-tutorial-panels>section{height:auto;min-height:100%}
.strategy-tutorial-goal{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:12px;padding:16px 18px;border:1px solid #efdca6;border-radius:18px;background:linear-gradient(145deg,#fff9e7,#fffdf8)}
.strategy-tutorial-goal strong{margin:0;white-space:nowrap;color:#775512}
.strategy-tutorial-goal p{margin:0;color:#5d5134;font-size:15px;line-height:1.65;font-weight:800}
.strategy-fact-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}
.strategy-fact-grid article{padding:14px 15px;border:1px solid #dce7f2;border-radius:17px;background:#f8fbff}
.strategy-fact-grid span{display:block;margin-bottom:6px;color:#235ca9;font-size:12px;font-weight:950}
.strategy-fact-grid p{margin:0;color:#526a84;font-size:13px;line-height:1.58;font-weight:740}
.strategy-end-card{margin-top:10px;padding:15px 17px!important;background:#f6fbf8!important;border-color:#cfe8dd!important}
.strategy-end-card>strong{color:#176d52!important}
.strategy-end-card ol{display:grid;gap:5px;margin:0;padding-left:22px;color:#506b60;font-size:13px;line-height:1.55;font-weight:760}
.strategy-rule-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.strategy-rule-card{padding:15px 16px!important;background:#f9fbfe!important}
.strategy-rule-card strong{margin-bottom:6px!important;color:#173e6d!important}
.strategy-rule-card p{margin:0;color:#546b84;font-size:13px;line-height:1.62;font-weight:740}
.strategy-tutorial-two{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.strategy-warning-card{background:#fff8f0!important;border-color:#f0d5b6!important}
.strategy-warning-card>strong{color:#9a5316!important}
.strategy-parent-card{background:#f2f8ff!important;border-color:#cfe1f4!important}
.strategy-parent-card>strong{color:#1e5e9d!important}
.strategy-warning-card ul,.strategy-parent-card ul,.strategy-tip-card ul{display:grid;gap:6px;margin:0;padding-left:21px;color:#566c83;font-size:13px;line-height:1.55;font-weight:740}
.strategy-example-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.strategy-example-grid:has(.strategy-example-card:only-child){grid-template-columns:1fr}
.strategy-example-card{padding:15px 16px!important;background:#f8fbff!important}
.strategy-example-card pre{margin:10px 0;padding:14px;border:1px dashed #bad0e6;border-radius:14px;background:#fff;color:#173b65;font:800 16px/1.65 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre-wrap;text-align:center}
.strategy-example-card p{margin:0;color:#596f86;font-size:13px;line-height:1.58;font-weight:740}
.strategy-tip-card{margin-top:10px;padding:16px 18px!important;background:#f7fbf1!important;border-color:#d6e8c4!important}
.strategy-tip-card>strong{color:#4b711c!important}
.strategy-tutorial-guide{min-height:142px;padding:18px!important;background:linear-gradient(145deg,#f5fbff,#f3fbf6)!important}
.strategy-tutorial-guide p{font-size:14px!important;line-height:1.65!important}
.strategy-guide-checklist{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0}
.strategy-guide-checklist span{min-height:48px;display:flex;align-items:center;padding:9px 12px;border:1px solid #d8e6f2;border-radius:14px;background:#fff;color:#49627e;font-size:12px;font-weight:850}
.strategy-tutorial-panels [data-tutorial-guide]{margin-top:0}
.strategy-tutorial-actions{grid-template-columns:160px minmax(0,1fr);margin:0;padding-top:2px}
.strategy-tutorial-actions .game-btn{min-height:48px}
.strategy-tutorial-actions .game-btn:disabled{opacity:.48;cursor:default}
@media(max-width:820px){
  .strategy-tutorial-card{padding:16px;border-radius:22px}
  .strategy-tutorial-tabs{display:flex;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity}
  .strategy-tutorial-tabs::-webkit-scrollbar{display:none}
  .strategy-tutorial-tabs button{flex:0 0 135px;scroll-snap-align:center}
  .strategy-fact-grid{grid-template-columns:1fr}
  .strategy-rule-grid{grid-template-columns:1fr}
  .strategy-tutorial-two{grid-template-columns:1fr}
  .strategy-example-grid{grid-template-columns:1fr}
}
@media(max-width:620px){
  .strategy-tutorial{padding:6px}
  .strategy-tutorial-card{height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);padding:13px;gap:9px;border-radius:18px}
  .strategy-tutorial-head{grid-template-columns:52px 1fr;gap:10px;padding-right:40px}
  .strategy-tutorial-head>i{width:52px;height:52px;border-radius:16px;font-size:29px}
  .strategy-tutorial-head h2{font-size:21px}
  .strategy-tutorial-head p{font-size:12px}
  .strategy-tutorial-chapterbar small{display:none}
  .strategy-tutorial-tabs button{flex-basis:126px;min-height:38px;font-size:11px}
  .strategy-tutorial-goal{grid-template-columns:1fr;gap:5px;padding:13px}
  .strategy-tutorial-goal strong{white-space:normal}
  .strategy-rule-card,.strategy-fact-grid article,.strategy-tutorial-panels article{padding:13px!important}
  .strategy-guide-checklist{grid-template-columns:1fr}
  .strategy-tutorial-actions{grid-template-columns:1fr 1.5fr;gap:7px}
  .strategy-tutorial-actions .game-btn{min-height:44px;font-size:12px}
}

/* Chinese checkers */
.game-chinese-checkers-board{
  position:relative;
  width:min(100%,530px);
  max-height:100%;
  aspect-ratio:24/27.7;
  overflow:hidden;
  border:8px solid #8d5a2d;
  border-radius:28px;
  background:
    radial-gradient(circle at 50% 13%,rgba(255,196,92,.24),transparent 22%),
    radial-gradient(circle at 50% 87%,rgba(58,130,246,.22),transparent 23%),
    linear-gradient(145deg,#f6ddb0,#ddb06d);
  box-shadow:inset 0 0 0 3px rgba(255,255,255,.34),0 16px 34px rgba(94,56,22,.2);
}
.game-chinese-checkers-board::before{
  content:"";
  position:absolute;
  inset:4.5%;
  clip-path:polygon(50% 0,61% 25%,100% 25%,69% 48%,81% 100%,50% 73%,19% 100%,31% 48%,0 25%,39% 25%);
  background:linear-gradient(145deg,rgba(255,255,255,.32),rgba(139,83,35,.08));
  border-radius:18px;
  pointer-events:none;
}
.checker-hole{
  position:absolute;
  z-index:2;
  left:calc(5.5% + var(--px)*89%);
  top:calc(5% + var(--py)*90%);
  width:clamp(21px,4.2vw,37px);
  aspect-ratio:1;
  transform:translate(-50%,-50%);
  padding:0;
  border:2px solid rgba(112,71,33,.48);
  border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#fff6df,#d7aa67 72%);
  box-shadow:inset 0 2px 3px rgba(255,255,255,.62),0 2px 5px rgba(81,48,19,.18);
  display:grid;
  place-items:center;
  cursor:pointer;
  touch-action:manipulation;
}
.checker-hole.camp-top{background:radial-gradient(circle at 35% 30%,#fff4d5,#e7b65d 72%)}
.checker-hole.camp-bottom{background:radial-gradient(circle at 35% 30%,#eaf3ff,#8bb9f2 72%)}
.checker-hole:disabled{cursor:default}
.checker-piece{
  width:84%;
  aspect-ratio:1;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:50%;
  color:transparent;
  box-shadow:0 4px 7px rgba(30,47,67,.26),inset 0 0 0 2px rgba(255,255,255,.56);
}
.checker-hole.side-1 .checker-piece{background:radial-gradient(circle at 34% 28%,#dff0ff,#2f7fe7 67%,#1852a9)}
.checker-hole.side-2 .checker-piece{background:radial-gradient(circle at 34% 28%,#fff1d8,#f3a53b 67%,#b95d0c)}
.checker-hole.selected{outline:4px solid #ffe36c;outline-offset:2px;z-index:5}
.checker-hole.legal{border-color:#0a8f68;box-shadow:0 0 0 5px rgba(16,164,118,.2),inset 0 2px 3px rgba(255,255,255,.62);z-index:4}
.checker-hole.legal.jump{box-shadow:0 0 0 6px rgba(37,99,235,.22),inset 0 2px 3px rgba(255,255,255,.62)}
.checker-target{width:34%;aspect-ratio:1;border-radius:50%;background:#0c9b70;box-shadow:0 0 0 4px rgba(12,155,112,.2)}
.checker-hole.jump .checker-target{background:#2563eb;box-shadow:0 0 0 4px rgba(37,99,235,.2)}
.checker-hole.path::after{
  content:"";
  position:absolute;
  width:20%;aspect-ratio:1;border-radius:50%;
  background:#ffe16a;
}
.checker-hole.last{outline:4px solid #ffe36c;outline-offset:2px;z-index:5}
.checker-hole.guide-source{outline:4px solid #42c7a0;outline-offset:2px;z-index:6}
.checker-hole.hint{animation:strategy-pulse 1s ease-in-out infinite;z-index:7}
@media (min-width:900px) and (orientation:landscape){
  .game-chinese-checkers-board{height:min(100%,590px);width:auto;max-width:100%}
}
@media (min-width:700px) and (orientation:portrait){
  body.strategy-normal-game .game-chinese-checkers-board{width:min(100%,525px);max-width:525px}
}
@media(max-width:699px){
  .game-chinese-checkers-board{width:min(100%,465px);border-width:6px;border-radius:22px}
  .checker-hole{width:clamp(18px,5.2vw,31px);border-width:1px}
}

/* v442 Chinese checkers visual clarity */
body[data-runtime-game="chinese-checkers"]{
  --checker-player:#2563eb;
  --checker-player-dark:#163f9f;
  --checker-fox:#ef5b5b;
  --checker-fox-dark:#a92f3b;
  --checker-legal:#12a66f;
  --checker-selected:#ffd21a;
}
body[data-runtime-game="chinese-checkers"] .game-chinese-checkers-board{
  border:7px solid #40536a;
  border-radius:26px;
  background:#edf2f7;
  box-shadow:inset 0 0 0 3px #fff,0 14px 28px rgba(38,58,82,.18);
}
body[data-runtime-game="chinese-checkers"] .game-chinese-checkers-board::before{
  inset:4.3%;
  background:#dde5ee;
  opacity:.72;
  border-radius:18px;
}
body[data-runtime-game="chinese-checkers"] .checker-hole{
  border:2px solid #9daec0;
  background:#fff;
  box-shadow:inset 0 0 0 2px #eef3f7,0 2px 5px rgba(47,67,91,.16);
}
body[data-runtime-game="chinese-checkers"] .checker-hole.camp-top{
  border-color:#eda2a7;
  background:#fff0f1;
  box-shadow:inset 0 0 0 2px #ffe2e4,0 2px 5px rgba(92,44,50,.13);
}
body[data-runtime-game="chinese-checkers"] .checker-hole.camp-bottom{
  border-color:#8eb5f5;
  background:#edf4ff;
  box-shadow:inset 0 0 0 2px #dbe9ff,0 2px 5px rgba(37,72,132,.14);
}
body[data-runtime-game="chinese-checkers"] .checker-piece{
  width:86%;
  border:2px solid rgba(255,255,255,.95);
  box-shadow:0 4px 8px rgba(27,45,68,.28),inset 0 2px 0 rgba(255,255,255,.34);
}
body[data-runtime-game="chinese-checkers"] .checker-hole.side-1 .checker-piece{
  background:var(--checker-player);
  outline:2px solid var(--checker-player-dark);
}
body[data-runtime-game="chinese-checkers"] .checker-hole.side-2 .checker-piece{
  background:var(--checker-fox);
  outline:2px solid var(--checker-fox-dark);
}
body[data-runtime-game="chinese-checkers"] .checker-hole.selected{
  outline:5px solid var(--checker-selected);
  outline-offset:3px;
  transform:translate(-50%,-50%) scale(1.08);
  box-shadow:0 0 0 8px rgba(255,210,26,.24),0 5px 12px rgba(45,57,73,.2);
}
body[data-runtime-game="chinese-checkers"] .checker-hole.legal{
  border-color:#078a59;
  background:#e7fff4;
  box-shadow:0 0 0 5px rgba(18,166,111,.3),inset 0 0 0 2px #fff;
  z-index:5;
}
body[data-runtime-game="chinese-checkers"] .checker-hole.legal.jump{
  border-color:#05734a;
  box-shadow:0 0 0 6px rgba(18,166,111,.36),inset 0 0 0 2px #fff;
}
body[data-runtime-game="chinese-checkers"] .checker-target{
  position:relative;
  width:64%;
  border:3px solid #fff;
  background:var(--checker-legal);
  box-shadow:0 0 0 3px #078a59;
}
body[data-runtime-game="chinese-checkers"] .checker-target::after{
  content:"";
  position:absolute;
  inset:29%;
  border-radius:50%;
  background:#fff;
}
body[data-runtime-game="chinese-checkers"] .checker-hole.jump .checker-target{
  background:#0b9d69;
  box-shadow:0 0 0 4px #05734a,0 0 0 8px rgba(18,166,111,.19);
}
body[data-runtime-game="chinese-checkers"] .checker-hole.path::after{
  width:28%;
  background:#ffd21a;
  box-shadow:0 0 0 3px rgba(255,255,255,.9);
}
body[data-runtime-game="chinese-checkers"] .checker-hole.last{
  outline:4px solid #8b5cf6;
  outline-offset:2px;
  box-shadow:0 0 0 7px rgba(139,92,246,.18);
}
body[data-runtime-game="chinese-checkers"] .checker-hole.guide-source{
  outline:5px solid #ffd21a;
  outline-offset:3px;
}
body[data-runtime-game="chinese-checkers"] .checker-hole.hint{
  outline:5px solid #ff8a1f;
  outline-offset:3px;
  animation:strategy-pulse 1s ease-in-out infinite;
}
body[data-runtime-game="chinese-checkers"] .checker-player-legend{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin:0 0 12px;
}
body[data-runtime-game="chinese-checkers"] .checker-player-legend span{
  min-height:42px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:8px 10px;
  border:1px solid #d6e2ee;
  border-radius:13px;
  background:#f8fbfe;
  color:#294866;
  font-size:12px;
  font-weight:900;
}
body[data-runtime-game="chinese-checkers"] .checker-player-legend i{
  width:20px;
  height:20px;
  flex:0 0 20px;
  border:2px solid #fff;
  border-radius:50%;
  box-shadow:0 0 0 2px currentColor;
}
body[data-runtime-game="chinese-checkers"] .checker-player-legend .is-player{
  color:var(--checker-player-dark);
  background:#edf4ff;
  border-color:#b9d0fa;
}
body[data-runtime-game="chinese-checkers"] .checker-player-legend .is-player i{background:var(--checker-player)}
body[data-runtime-game="chinese-checkers"] .checker-player-legend .is-fox{
  color:var(--checker-fox-dark);
  background:#fff0f1;
  border-color:#f2bdc1;
}
body[data-runtime-game="chinese-checkers"] .checker-player-legend .is-fox i{background:var(--checker-fox)}
body[data-runtime-game="chinese-checkers"] .strategy-turn-card{
  border-width:2px;
  box-shadow:0 7px 16px rgba(34,68,105,.08);
}
body[data-runtime-game="chinese-checkers"] .strategy-turn-card strong{
  font-size:19px;
}
body[data-runtime-game="chinese-checkers"] .strategy-turn-card.is-player{
  border-color:#8db4ff;
  background:#edf4ff;
}
body[data-runtime-game="chinese-checkers"] .strategy-turn-card.is-ai{
  border-color:#f0a6ab;
  background:#fff0f1;
}
body[data-runtime-game="chinese-checkers"] .strategy-turn-card.is-player [data-turn-icon],body[data-runtime-game="chinese-checkers"] .strategy-turn-card.is-ai [data-turn-icon]{
  position:relative;
  font-size:0;
  border:2px solid #fff;
  border-radius:50%;
  box-shadow:0 0 0 3px currentColor;
}
body[data-runtime-game="chinese-checkers"] .strategy-turn-card.is-player [data-turn-icon]{
  color:var(--checker-player-dark);
  background:var(--checker-player);
}
body[data-runtime-game="chinese-checkers"] .strategy-turn-card.is-ai [data-turn-icon]{
  color:var(--checker-fox-dark);
  background:var(--checker-fox);
}
@media(max-width:699px){
  body[data-runtime-game="chinese-checkers"] .game-chinese-checkers-board{border-width:6px;border-radius:22px}
  body[data-runtime-game="chinese-checkers"] .checker-hole{border-width:1.5px}
  body[data-runtime-game="chinese-checkers"] .checker-player-legend span{font-size:11px;padding:7px 8px}
}
@media (min-width:700px) and (orientation:portrait){
  body[data-runtime-game="chinese-checkers"] .checker-player-legend{display:none}
}

/* International chess */






















.chess-promotion-layer{
  position:absolute;
  inset:8px;
  z-index:30;
  display:grid;
  place-items:center;
  border-radius:18px;
  background:rgba(236,243,250,.94);
  backdrop-filter:blur(9px);
}
.chess-promotion-layer[hidden]{display:none}
.chess-promotion-layer>div{
  width:min(430px,calc(100% - 24px));
  padding:22px;
  border:1px solid #cad9e9;
  border-radius:22px;
  background:#fff;
  box-shadow:0 20px 48px rgba(23,48,78,.22);
  text-align:center;
}
.chess-promotion-layer strong{display:block;color:#17375e;font-size:22px}
.chess-promotion-layer p{margin:7px 0 15px;color:#60758e;font-size:13px;line-height:1.55;font-weight:750}
#promotionChoices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
#promotionChoices button{min-height:84px;border:1px solid #cbd9e8;border-radius:16px;background:#f7faff;color:#203b61;cursor:pointer}
#promotionChoices i,#promotionChoices span{display:block}#promotionChoices i{font-style:normal;font-size:38px}#promotionChoices span{margin-top:4px;font-size:12px;font-weight:900}
@keyframes chess-check-pulse{50%{box-shadow:inset 0 0 0 6px rgba(190,20,40,.45)}}


@media(max-width:699px){
  
  
  .chess-promotion-layer>div{padding:17px}.chess-promotion-layer strong{font-size:19px}
  #promotionChoices button{min-height:72px}#promotionChoices i{font-size:32px}
}

/* Military chess */






































/* v442 flight chess: real-board layout */





























































@keyframes flight-ready{50%{transform:scale(1.08)}}









