:root {
  color-scheme:light;
  --paper:#f8f6ee;
  --ink:#182c22;
  --muted:#52675b;
  --line:#e4e4d8;
  --green:#175538;
  --gold:#efce78;
  font-family:"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",system-ui,sans-serif;
  color:var(--ink);
  background:var(--paper);
  font-synthesis:none;
}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;min-width:290px}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
button{cursor:pointer}
button:disabled{opacity:.46;cursor:default}
:focus-visible{outline:3px solid #b37835;outline-offset:3px}
canvas{display:block;max-width:100%}
p,h1,h2,h3{margin:0}
.top{height:76px;padding:0 max(26px,calc((100% - 1240px)/2));display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #e9e7d9;background:#faf9f2}
.brand{display:flex;align-items:center;gap:10px;white-space:nowrap;font-size:18px;font-weight:900;letter-spacing:.055em;line-height:1.1}
.brand small{display:block;font-weight:650;font-size:9px;letter-spacing:.16em;color:var(--muted);margin-top:5px}
.brand-ball{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:radial-gradient(circle at 34% 28%,#597266 2%,#243c32 27%,#0c1a14 72%);color:#f5e2a4;font-size:19px;letter-spacing:0;border:1px solid #30493b;box-shadow:0 2px 4px #162f2229}
.top nav{display:flex;gap:6px;align-items:center}
.top nav a{padding:9px 16px;font-size:14px;font-weight:700;color:#4b6053;white-space:nowrap;border-radius:9px}
.top nav a:hover,.top nav a[aria-current]{color:#173e2b;background:#e8eddf}
.icon-button{display:grid;place-items:center;background:#fffdf6;color:#345344;border:1px solid #e2e5d8;width:35px;height:35px;border-radius:50%;flex:none;font-weight:800;font-size:16px}
main{max-width:1296px;padding:24px 28px 0;margin:auto}
.hero{isolation:isolate;position:relative;min-height:447px;overflow:hidden;border-radius:24px;background:radial-gradient(ellipse at 84% 36%,#2e6a4e 0%,#15442f 36%,#112f23 72%,#102b20 100%);color:#fff9e6;border:1px solid #284b37;box-shadow:0 10px 24px #273d2424}
.hero::after{content:"";z-index:-1;position:absolute;inset:0;opacity:.14;background:repeating-linear-gradient(128deg,transparent 0 5px,#d6e7aa24 6px 7px,transparent 8px 15px);mask-image:linear-gradient(90deg,#000,transparent 67%);}
.hero-copy{position:relative;z-index:2;width:48%;padding:59px 0 58px 55px}
.hero-kicker,.eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:800;letter-spacing:.1em}
.hero-kicker{color:#e5cb8b}
.hero-kicker span,.hero-index>span{width:7px;height:7px;display:inline-block;background:#e8c572;border-radius:50%;box-shadow:0 0 14px #f5cb65a3}
.hero h1{font-family:"Songti SC","Noto Serif CJK SC","STSong",serif;font-size:clamp(46px,5.7vw,82px);letter-spacing:-.06em;line-height:1.05;font-weight:900;margin:20px 0 17px;white-space:nowrap}
.hero h1 em{color:#f0d08a;font-style:normal}
.hero p{font-size:15px;color:#d2e2d3;line-height:1.8;max-width:320px}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:27px}
.button{display:inline-flex;align-items:center;justify-content:center;gap:15px;border:1px solid transparent;min-height:43px;padding:10px 16px;border-radius:9px;font-size:14px;font-weight:800;white-space:nowrap}
.button span{font-size:16px}
.primary{color:#172d20;background:#f0cc72;border-color:#f1d99e;box-shadow:inset 0 1px #fff2bd}
.primary:hover{background:#f9d98b}
.outline{color:#f9edce;background:#183b2eb0;border-color:#68816b}
.outline:hover{background:#2d5845}
.soft{color:#274938;background:#edf0e3;border-color:#dfe3d4}
.soft:hover{background:#e1e8d9}
.hero-visual{position:absolute;z-index:-1;width:69%;left:43%;top:1%;transform:rotate(-12deg);filter:drop-shadow(0 26px 28px #00130dd0);opacity:.98}
.hero-visual canvas{width:100%;height:auto}
.hero-index{position:absolute;right:22px;bottom:23px;display:grid;grid-template-columns:8px auto;gap:3px 9px;align-items:center;padding:12px 14px;border:1px solid #81a18a69;border-radius:9px;background:#163829e8;font-size:12px}
.hero-index small{grid-column:2;color:#d4e0cf}
.section{margin-top:32px}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:14px;margin-bottom:15px}
.section-head h2,.page h2{font-size:23px;letter-spacing:-.025em}
.section-head p{font-size:13px;color:var(--muted);margin-top:5px}
.text-link,.back{display:inline-flex;align-items:center;gap:7px;color:#2d6249;font-size:13px;font-weight:800;white-space:nowrap}
.text-link:hover,.back:hover{text-decoration:underline}
.mode-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.mode-card{min-height:148px;border-radius:14px;border:1px solid var(--card-border);background:var(--card);padding:13px 15px;box-shadow:0 3px 5px #2136290a;transition:transform .18s,box-shadow .18s}
.mode-card:hover,.level-card:hover,.strip:hover{transform:translateY(-3px);box-shadow:0 8px 15px #20362918}
.jade{--card:#e9f1e6;--card-border:#d7e6d8;--accent:#216d51;--icon-a:#7bc8a6;--icon-b:#287b57}
.amber{--card:#faf0dd;--card-border:#efe3ca;--accent:#805020;--icon-a:#637269;--icon-b:#152b23}
.blue{--card:#e9f0f3;--card-border:#dce6ed;--accent:#356078;--icon-a:#9ecae5;--icon-b:#3b7896}
.gold{--card:#faf2d8;--card-border:#eee5bf;--accent:#745111;--icon-a:#f8da88;--icon-b:#bf821d}
.violet{--card:#f0ebf4;--card-border:#e9deee;--accent:#63527b;--icon-a:#c7aedb;--icon-b:#8258a0}
.mode-top{display:flex;align-items:center;justify-content:space-between;color:var(--accent);font-size:16px}
.mode-icon{display:grid;place-items:center;width:37px;height:37px;border-radius:10px;color:#fffbed;background:linear-gradient(140deg,var(--icon-a),var(--icon-b));font-weight:900;font-size:25px;box-shadow:inset 0 1px #ffffffa0,0 3px 5px #2c30242c}
.mode-icon.number-icon{border-radius:50%;font-size:18px;background:radial-gradient(circle at 33% 27%,var(--icon-a),var(--icon-b) 72%)}
.mode-card h3{font-size:17px;margin:10px 0 4px}
.mode-card p,.mode-card small{font-size:11px;line-height:1.55;color:#4f6459}
.mode-card small{font-weight:750;color:var(--accent);display:block;margin-top:7px}
.home-lower{margin-top:19px;display:grid;grid-template-columns:1fr 1fr;gap:12px}
.strip{display:flex;align-items:center;gap:12px;min-height:68px;padding:10px 14px;border-radius:12px;border:1px solid #e4e6da;background:#fbfaf4;transition:transform .18s,box-shadow .18s}
.strip-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:#e7eee1;color:#28664d;font-weight:900;font-size:20px}
.daily-strip .strip-icon{background:#f5eacf;color:#946b20}
.strip b{font-size:14px}.strip p{font-size:11px;color:var(--muted);margin-top:4px}
.strip-arrow{margin-left:auto;color:#3d6f54}
footer{display:flex;justify-content:space-between;gap:15px;padding:24px 0 18px;color:#617268;font-size:11px}
.page{padding:8px 0 36px}
.page-head{margin:18px 0 20px}
.page-head h1,.play-head h1{font-weight:900;font-size:clamp(29px,4vw,48px);letter-spacing:-.06em}
.page-head p,.play-head p{margin-top:7px;color:var(--muted);font-size:14px}
.tabs,.filter{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:18px}
.tabs a,.filter a,.filter>span{display:inline-flex;align-items:center;padding:8px 12px;border-radius:9px;color:#43594b;background:#f0efe4;border:1px solid #e3e3d7;font-weight:700;font-size:13px}
.tabs a:hover,.tabs .active,.filter .active{background:#245440;color:#fff8e5;border-color:#245440}
.filter>span{background:transparent;border-color:transparent}
.level-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.level-card,.panel{background:#fffdf6;border:1px solid var(--line);border-radius:14px;box-shadow:0 3px 8px #18342806}
.level-card{overflow:hidden;transition:transform .18s,box-shadow .18s}
.level-card canvas{width:100%;height:auto;background:#203d30}
.level-copy{padding:14px}
.level-copy h3{font-size:18px;margin:7px 0 4px}
.level-copy p{font-size:13px;line-height:1.55;color:#43594d;min-height:42px;margin-bottom:9px}
.level-copy>span:last-of-type,.flag,.eyebrow{color:#2b674a}
.level-meta{display:flex;justify-content:space-between;align-items:center;gap:4px;color:#576d5e;font-size:11px;font-weight:750}
.flag{font-size:9px}
.stars{color:#9b6d12;letter-spacing:.07em;white-space:nowrap}
.stars span{color:#788377}
.daily-detail{display:grid;grid-template-columns:1fr 1fr;gap:25px;padding:20px;align-items:center}
.daily-detail canvas{width:100%}
.daily-detail h2{margin:6px 0 9px}
.daily-detail p,.stats p{font-size:14px;color:var(--muted);line-height:1.6}
.day-stats{display:flex;gap:25px;margin:20px 0;color:#5f7065;font-size:13px}
.day-stats b{color:#225643;font-size:19px;margin-left:4px}
.daily-detail .muted{font-size:12px;margin-top:9px}
.profile-summary,.profile-grid{display:grid;gap:14px;margin-top:14px;grid-template-columns:repeat(3,minmax(0,1fr))}
.profile-summary>div,.stats{padding:18px}
.profile-summary strong{display:block;font-size:32px;margin-top:6px;color:#19563b}
.profile-summary span,.profile-summary small{font-size:13px;color:var(--muted)}
.profile-grid{grid-template-columns:1fr 1fr}
.stats h2{margin-bottom:14px}
.stat-row{display:grid;grid-template-columns:85px 1fr 30px;align-items:center;gap:7px;font-size:13px;margin:9px 0}
progress{height:10px;width:100%;accent-color:#438363}
.history{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding:9px 0;font-size:14px}
.history small{display:block;font-size:11px;color:var(--muted);margin-top:4px}
.play-page{max-width:1000px;margin:auto}
.play-head{display:flex;justify-content:space-between;align-items:end;margin:0 0 14px;gap:10px}
.play-head h1{margin-top:5px}
.play-head p span{padding:0 2px}
.play-grid{display:grid;grid-template-columns:minmax(340px,1fr) minmax(290px,355px);gap:16px;align-items:start}
.play-stage{border-radius:19px;background:radial-gradient(ellipse at 50% 48%,#355848,#19392b 69%,#183127);border:1px solid #365a48;padding:13px 20px 16px;display:grid;justify-items:center}
.table-meta{display:flex;width:100%;justify-content:space-between;font-size:12px;font-weight:750;color:#e8ecd9;margin-bottom:9px}
#board{width:min(100%,max(310px,calc((100svh - 215px) * var(--board-aspect, .5461))));height:auto;touch-action:none;cursor:crosshair;filter:drop-shadow(0 9px 11px #00150c9e)}
.play-side{display:grid;gap:10px}
.play-side .panel{padding:14px}
.play-side h2{font-size:17px}
.objective h2{margin:5px 0}
.objective p,.feedback p{font-size:13px;color:#465d50;line-height:1.55}
.legal-row{display:flex;justify-content:space-between;gap:9px;color:#315d46;font-size:12px;margin-top:9px;padding:8px 9px;border-radius:8px;background:#eef2e6}
.legal-row span:last-child{font-weight:800;text-align:right}
.control-heading{display:flex;align-items:center;justify-content:space-between}
#power-label{color:#1b6848;font-weight:900;font-size:19px}
#power{margin:8px 0 0;width:100%;appearance:none;height:8px;border-radius:99px;background:linear-gradient(90deg,#3f956a var(--power,55%),#dce5d9 var(--power,55%))}
#power::-webkit-slider-thumb{appearance:none;width:18px;height:18px;border-radius:50%;background:#f7d889;border:1px solid #8e6b25;box-shadow:0 2px 4px #1a40283b}
#power::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:#f7d889;border:1px solid #8e6b25}
.ticks{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;margin:4px 0 8px}
.control-grid{display:grid;grid-template-columns:68px 1fr;gap:10px;align-items:center}
.spin{position:relative;width:62px;height:62px;border-radius:50%;border:1px solid #cfc8ad;background:linear-gradient(transparent 49%,#7d867866 49% 51%,transparent 51%),linear-gradient(90deg,transparent 49%,#7d867866 49% 51%,transparent 51%),radial-gradient(circle at 36% 31%,#fffef3,#efe9d7 68%,#c6b99b);box-shadow:0 3px 6px #26342732}
#spin-dot{position:absolute;transform:translate(-50%,-50%);width:9px;height:9px;border-radius:50%;background:#c54132;border:1px solid #8e3627;box-shadow:0 1px 2px #482c2682;pointer-events:none}
.spin-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;align-items:center;font-size:11px}
.spin-presets span{color:var(--muted);text-align:center}
.spin-presets button,.aim-controls button,.play-actions button,.feedback button{background:#f3f2e9;color:#2c5541;border:1px solid #e4e6d9;border-radius:6px;padding:4px 6px;font-weight:750}
.spin-presets button:hover,.aim-controls button:hover,.play-actions button:hover,.feedback button:hover{background:#e6eddf}
.aim-controls{display:grid;grid-template-columns:1fr 42px 42px;gap:5px;align-items:center;margin-top:9px;font-size:12px;color:var(--muted)}
.shoot{width:100%;font-size:16px;margin:8px 0 6px;min-height:38px;padding:6px 12px}
.play-actions,.feedback>div{display:flex;gap:5px;font-size:11px;flex-wrap:wrap}
.play-actions button{flex:1;white-space:nowrap}
.play-actions [aria-pressed=true]{background:#21573f;color:#fff6df}
.feedback p{margin:5px 0}
dialog{margin:auto;padding:0;width:min(500px,calc(100% - 28px));max-height:calc(100% - 28px);background:#fffdf6;color:var(--ink);border:1px solid #d4decb;border-radius:16px;box-shadow:0 20px 70px #071e15a3}
dialog::backdrop{background:#092318b5}
#dialog-body{padding:20px}
.modal-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
#dialog-body h2{font-size:28px;margin:7px 0}
#dialog-body p{color:var(--muted);line-height:1.66;font-size:14px;margin-bottom:12px}
.modal-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:14px}
.result-score{display:flex;align-items:baseline;gap:6px;color:#466758;margin-bottom:7px}
.result-score b{font-size:42px;color:#225d43;line-height:1}
.result-score .stars{margin-left:7px;font-size:20px}
.replay-list{display:grid;gap:5px}
.replay-list button{display:flex;justify-content:space-between;text-align:left;align-items:center;font-size:13px;color:#245540;background:#edf0e3;border:1px solid #dfe3d4;border-radius:8px;padding:8px}
.replay-list small{display:block;color:#52675b;margin-top:4px}

@media(max-width:900px){
  .hero{min-height:389px}
  .hero-copy{padding:43px 0 47px 33px}
  .hero-visual{width:76%;left:43%;top:11%}
  .mode-card{padding:11px}
  .level-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:690px){
  .top{height:auto;min-height:67px;padding:9px 13px;flex-wrap:wrap;gap:7px}
  .top nav{order:3;justify-content:space-between;gap:2px;flex-basis:100%}
  .top nav a{flex:1;text-align:center;padding:7px 4px;font-size:12px}
  .brand-ball{height:34px;width:34px}
  .brand{font-size:16px}
  main{padding:12px 13px 0}
  .hero{min-height:510px;border-radius:17px}
  .hero-copy{width:100%;padding:24px 18px 0}
  .hero h1{font-size:54px;margin:11px 0}
  .hero p{font-size:13px;max-width:285px}
  .hero-actions{margin-top:13px}
  .hero-visual{width:91%;top:auto;bottom:30px;left:13%;transform:rotate(-12deg)}
  .hero-index{bottom:11px;right:11px;padding:7px;gap:2px 5px;font-size:10px}
  .section{margin-top:23px}
  .section-head{align-items:start;gap:5px}
  .section-head h2{font-size:19px}
  .section-head p,.text-link{font-size:11px}
  .mode-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .mode-card{min-height:122px}
  .mode-card h3{font-size:16px;margin-top:6px}
  .mode-card small{margin-top:4px}
  .home-lower,.daily-detail,.profile-grid,.play-grid{grid-template-columns:1fr;gap:8px}
  .level-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .level-copy{padding:8px}
  .level-copy h3{font-size:15px}
  .level-copy p{font-size:11px}
  .daily-detail{padding:12px}
  .play-stage{padding:9px}
  #board{width:min(100%,max(200px,calc((100svh - 215px) * var(--board-aspect, .5461))))}
  .play-grid{display:grid}
  .profile-summary{gap:5px}
  .profile-summary>div{padding:9px}
  .profile-summary strong{font-size:24px}
  .profile-summary span,.profile-summary small{font-size:11px}
}
@media(max-width:370px){
  .hero{min-height:460px}
  .hero h1{font-size:45px}
  .hero-visual{width:96%}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media(min-width:691px){
  #board{width:min(100%,max(255px,calc((100svh - 302px) * var(--board-aspect, .5461))))}
}
@media(max-width:690px){
  #board{width:min(100%,max(190px,calc((100svh - 345px) * var(--board-aspect, .5461))))}
}
.editor-form{padding:16px;display:grid;gap:10px}
.editor-form label{display:grid;gap:4px;font-size:12px;font-weight:750;color:#43594b}
.editor-form fieldset{display:grid;gap:7px;border:1px solid var(--line);border-radius:8px;padding:8px;margin:0;min-width:0}
.editor-form legend{font-weight:800;font-size:13px}
.editor-form input,.editor-form select,.editor-form textarea{min-width:0;width:100%;border:1px solid #d9dfd0;border-radius:6px;padding:7px;background:#fcfcf7;color:var(--ink);font:inherit}
.editor-form textarea{resize:vertical;min-height:60px}
.editor-pair{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.editor-form .modal-actions{margin-top:0}
#editor-status{color:var(--muted);font-size:12px;line-height:1.55}

.table-spec{color:#d6ddc9;font-variant-numeric:tabular-nums}
