:root{color-scheme:light;--ink:#19281d;--muted:#506054;--paper:#f7f8f1;--line:#d9dfd1;--lime:#d4f56b;--white:#fff;font-family:"Segoe UI",system-ui,sans-serif;color:var(--ink);background:var(--paper);font-size:100%}
*{box-sizing:border-box}
body{margin:0}
button,input,textarea{font:inherit}
button{cursor:pointer;color:inherit}
button:disabled{cursor:default}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #2c6151;outline-offset:4px}
main:focus{outline:none}
a{color:inherit}
[hidden]{display:none!important}
.shell{width:min(1120px,calc(100% - 56px));margin-inline:auto}
.top{border-bottom:1px solid var(--line)}
.bar{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:inline-flex;align-items:center;gap:9px;font-size:1.18rem;font-weight:800;letter-spacing:-.045em;text-decoration:none;white-space:nowrap}
.brand span{color:#598326;margin-left:-8px}
nav{display:flex;gap:10px}
nav button,.text-button{background:none;border:0;border-radius:8px;padding:9px 12px;font-weight:650}
nav button:hover,nav button[aria-current],.text-button:hover{background:#e8ecdf}
h1,h2,p{margin:0}
h1,h2{letter-spacing:-.055em;line-height:1.01}
p{line-height:1.55}
.hero{margin-top:31px;position:relative;overflow:hidden;display:grid;grid-template-columns:1.1fr 1fr;background:#e8eddc;border:1px solid #dce3d0;border-radius:25px;min-height:350px}
.hero-copy{padding:49px 0 48px 49px;z-index:1}
.eyebrow{font-family:Consolas,"Courier New",monospace;font-weight:700;line-height:1.35;font-size:.875rem;letter-spacing:.08em;text-transform:uppercase}
.hero .eyebrow{display:flex;align-items:center;gap:10px}
.hero .eyebrow span{width:10px;height:10px;background:#497448;border-radius:50%}
.hero h1{font-size:clamp(3.3rem,6.3vw,5.65rem);margin:18px 0 16px;font-weight:780}
.hero h1 em{font-family:Georgia,serif;font-weight:400}
.hero p{max-width:390px;color:#3e4e40;font-size:1.12rem}
.hero-art{display:grid;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr);gap:12px;aspect-ratio:1;align-self:center;justify-self:center;width:min(75%,315px);transform:rotate(-10deg);margin:19px 0}
.block{position:relative;border-radius:24px;display:grid;place-items:center;box-shadow:0 3px 0 #19281d28;overflow:hidden}
.block-one{background:#d4f56b;color:#222d20;font-size:clamp(3rem,8vw,7rem);line-height:1}
.block-two{background:#9eacfc}
.block-two span,.target .card-art i{position:absolute;inset:19%;border:2px solid #292d59;border-radius:50%}
.block-two span:nth-child(2){inset:30%}.block-two span:nth-child(3){inset:41%;background:#292d59}
.block-three{background:#ffad97;grid-template-columns:repeat(2,1fr);gap:6%;padding:18%}
.block-three i{width:100%;height:100%;background:#a63f3f;border-radius:25%}
.block-three i:nth-child(3){opacity:.49}
.block-four{background:#253629;color:#e4f5a4;font-size:clamp(3rem,9vw,8rem);font-weight:200;line-height:1}
.block-four:before,.block-four:after{content:"";width:72%;height:72%;border:1px solid #e4f5a47a;border-radius:50%;position:absolute}
.block-four:after{width:89%;height:89%;border-style:dashed}
.daily{display:flex;align-items:center;gap:20px;margin-top:22px;padding:24px 28px;border-radius:19px;background:#213327;color:#f8faed}
.daily-icon img{display:block}
.daily-copy{flex:1}
.daily h2{font-size:1.85rem;margin:4px 0 5px}
.daily p{color:#d6e3d1}
.daily .eyebrow{color:#d4f56b}
.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border-radius:9px;font-weight:750;text-decoration:none;padding:11px 18px}
.primary{border:1px solid #a1bd52;background:var(--lime);color:#19281d}
.primary:hover:not(:disabled){background:#bee64a}
.secondary{background:#fff;border:1px solid #b9c6b5}
.secondary:hover:not(:disabled){background:#edf1e6}
.primary:disabled,.secondary:disabled{opacity:.55}
.practice{margin:35px 0 48px}
.section-title{display:flex;justify-content:space-between;align-items:end;gap:12px;margin-bottom:17px}
.section-title h2{font-size:2.3rem;margin-bottom:5px}
.section-title p,.muted{color:var(--muted)}
.streak-chip{border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 13px;white-space:nowrap}
.streak-chip span{color:#647363;margin:0 4px}
.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.chromatic{--art:#ffd9cc;--accent:#932f33}
.target{--art:#e1e5ff;--accent:#343d75}
.sequence{--art:#eef3c5;--accent:#3d5126}
.circuit{--art:#d2eadd;--accent:#295844}
.game-card{display:flex;flex-direction:column;min-width:0;text-align:left;border:1px solid var(--line);border-radius:16px;padding:9px;background:#fff;transition:transform .16s,border-color .16s}
.game-card:hover{transform:translateY(-3px);border-color:var(--accent)}
.card-art{height:105px;width:100%;position:relative;display:flex;justify-content:center;align-items:center;gap:6px;background:var(--art);color:var(--accent);border-radius:10px;overflow:hidden}
.chromatic .card-art{display:grid;grid-template-columns:repeat(3,19px);grid-auto-rows:19px;align-content:center;gap:5px}
.chromatic .card-art i{background:#cb625e;border-radius:4px}
.chromatic .card-art i:nth-child(6){background:#ed9e85}
.target .card-art i{inset:auto;width:69px;height:69px}
.target .card-art i:nth-child(2){width:48px;height:48px}
.target .card-art i:nth-child(3){width:27px;height:27px}
.target .card-art b{font-size:1.15rem}
.sequence .card-art b{border:1px solid currentColor;border-radius:5px;padding:6px 8px}
.sequence .card-art b:last-child{background:var(--accent);color:var(--art)}
.circuit .card-art i{width:16px;height:16px;border:2px solid currentColor;border-radius:50%;background:var(--art);z-index:1}
.circuit .card-art:before{content:"";position:absolute;width:87px;border-top:2px solid currentColor}
.circuit .card-art i:nth-child(2n){transform:translateY(-12px);position:relative}
.circuit .card-art i:nth-child(2n):after{content:"";position:absolute;top:14px;left:5px;height:6px;border-left:2px solid currentColor}
.card-copy{display:flex;flex:1;flex-direction:column;padding:13px 9px 9px}
.card-copy small{font-size:.875rem;color:var(--accent);font-weight:600}
.card-copy strong{font-size:1.45rem;letter-spacing:-.04em;margin:3px 0 6px}
.card-copy span{color:var(--muted);line-height:1.4;margin-bottom:15px}
.card-action{font-size:.9rem;margin-top:auto}
.footer{border-top:1px solid var(--line);padding:20px 0 30px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px 24px;color:var(--muted);font-size:.875rem}
.footer summary{cursor:pointer}
.footer details{max-width:290px}
.stage{max-width:680px;margin:22px auto 50px}
.stage>.text-button{margin-bottom:12px}
.play-panel{background:#fff;border:1px solid var(--line);border-radius:22px;padding:clamp(16px,5vw,38px);text-align:center}
.play-panel h1{font-size:clamp(2.15rem,7vw,3.75rem);margin:7px 0 12px}
.play-panel h2{font-size:1.55rem;margin:18px 0 10px}
.play-panel .eyebrow{color:var(--accent,var(--muted))}
.play-panel p{margin-bottom:12px}
.play-meta,.round-tools,.actions{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
.play-meta{justify-content:space-between;font-size:.9rem;font-weight:650}
.timer{font-family:Consolas,monospace;font-variant-numeric:tabular-nums;border-radius:6px;background:#ebefe6;padding:5px 8px}
progress{width:100%;height:10px;margin:12px 0 19px;accent-color:#668a36}
.setup-art{margin-bottom:18px}
fieldset{border:0;padding:0;margin:20px auto}
legend{font-weight:750;margin:auto auto 9px}
.level-options{display:flex;justify-content:center;gap:7px;flex-wrap:wrap}
.level-options label{display:flex;align-items:center;gap:5px;padding:9px;border:1px solid var(--line);border-radius:8px;cursor:pointer}
.level-options label:has(:checked){border-color:#72953b;background:#edf6d9}
.assist{display:flex;justify-content:center;gap:7px;margin:12px auto;font-size:.9rem}
.board{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));gap:6px;width:min(100%,335px);margin:15px auto 20px}
.swatch,.wire-tile,.empty{aspect-ratio:1;border-radius:8px;border:1px solid transparent}
.swatch{background:var(--tile)}
.swatch.textured{background:repeating-linear-gradient(135deg,#ffffff40 0 3px,transparent 3px 8px),var(--tile)}
.swatch:hover:not(:disabled){border-color:#1b291e}
.number-board,.terms{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:15px auto 20px}
.number-board button,.terms span,.terms strong{min-width:50px;min-height:48px;display:grid;place-items:center;border-radius:8px;padding:6px 10px;font-size:1.24rem;font-weight:750;border:1px solid #a9b3a8;background:#f5f7f1}
.number-board button[aria-pressed=true],.terms strong{background:var(--art);border-color:var(--accent)}
.goal{display:grid;gap:3px}
.goal span,.circuit-key{font-size:.875rem;font-weight:750}
.goal strong{font-size:2.5rem;color:var(--accent)}
.circuit-key{display:flex;justify-content:center;gap:14px}
.wire-tile,.empty{position:relative;background:#edf3ed;border-color:#d5e3d8}
.wire-tile:hover:not(:disabled){border-color:var(--accent)}
.wire-tile.source{background:#f5e8a9}.wire-tile.receiver{background:#bcdcfc}
.wire,.wire-center{position:absolute;display:block;background:#30624b;pointer-events:none}
.wire-center{left:43%;top:43%;width:14%;height:14%;border-radius:100%}
.wire.north,.wire.south{width:10%;left:45%;height:50%}
.wire.north,.wire.east{top:0}.wire.south{bottom:0}
.wire.east,.wire.west{height:10%;top:45%;width:50%}
.wire.east{right:0}.wire.west{left:0}
.solved .wire,.solved .wire-center{background:#578001}
.highlight{outline:3px dashed #283d76;outline-offset:-4px}
.correct{outline:3px solid #51761e;outline-offset:-4px}
.wrong{box-shadow:inset 0 0 0 3px #691d29}
.round-tools{margin-top:18px}
.feedback{margin-top:12px;color:#305035;min-height:1.55em;font-weight:650}
.play-panel .feedback{margin-bottom:0}
.result img{margin-bottom:12px}
.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:20px 0}
.metrics div{border-radius:10px;background:#eef2e6;padding:10px 4px}
.metrics dt{font-size:.875rem}
.metrics dd{font-size:1.6rem;font-weight:750;margin:5px 0 0}
.history{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;list-style:none;padding:0}
textarea{width:100%;min-height:120px;margin-top:12px;padding:8px;resize:vertical}
@media(max-width:860px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-copy{padding-left:30px}.hero{min-height:300px}}
@media(max-width:620px){.shell{width:calc(100% - 28px)}.bar{min-height:62px}.brand{font-size:1rem;gap:6px}.brand span{margin-left:-5px}nav{gap:1px}nav button{padding-inline:8px}.hero{grid-template-columns:1fr;margin-top:15px}.hero-copy{padding:25px 22px 0}.hero h1{font-size:clamp(2.75rem,12vw,4.2rem);margin-top:13px}.hero-art{width:159px;gap:6px;margin:14px auto 22px}.block{border-radius:13px}.daily{padding:17px;display:grid;grid-template-columns:auto 1fr;gap:12px}.daily .primary{grid-column:1/-1}.section-title{align-items:start;flex-direction:column}.practice{margin-top:25px}.cards{gap:9px}.card-copy{padding-inline:4px}.card-art{height:85px}.sequence .card-art{gap:3px}.sequence .card-art b{padding:4px}.card-copy span{font-size:.94rem}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.top{background:#f1f3e8}
.hero{
  background:#172b24;
  background-image:radial-gradient(ellipse at 85% 45%,#335045 0,transparent 58%);
  border-color:#172b24;
  color:#f7f8f1;
  min-height:440px;
  isolation:isolate;
}
.hero-copy{padding:54px 0 54px 52px}
.hero .eyebrow{color:#d7eea8}
.hero .eyebrow span{background:#d4f56b;box-shadow:0 0 0 4px #d4f56b25}
.hero h1{font-size:clamp(3.25rem,6.15vw,5.45rem);line-height:.95;margin:24px 0}
.hero h1 em{color:#dcf49d}
.hero p{color:#dce7da}
.hero-actions{margin-top:25px;display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px}
.hero-actions .primary{border-color:#d4f56b}
.hero-link{padding:8px 0;text-underline-offset:5px;font-weight:650}
.hero-link:focus-visible{outline-color:var(--lime)}
.hero-art{
  width:min(100%,525px);
  height:100%;
  min-height:390px;
  margin:0;
  display:block;
  transform:none;
  aspect-ratio:auto;
  position:relative;
  background-image:radial-gradient(circle,#d4f56b45 1px,transparent 1.6px);
  background-size:16px 16px;
  background-position:center;
  -webkit-mask-image:radial-gradient(ellipse,#000 57%,#000b 78%,transparent 100%);
  mask-image:radial-gradient(ellipse,#000 57%,#000b 78%,transparent 100%);
}
.orbit{position:absolute;left:50%;top:50%;translate:-50% -50%;aspect-ratio:1;width:74%;border:1px solid #d4f56b42;border-radius:50%}
.orbit-inner{width:59%;border-style:dashed}
.hero-art .block{
  position:absolute;
  width:29%;
  aspect-ratio:1;
  border:1px solid #172b2477;
  border-radius:22%;
  box-shadow:inset 0 2px #ffffff65,0 8px 0 var(--edge),0 18px 30px #0c1c16a0;
}
.block-one{--edge:#779334;left:22%;top:18%;rotate:-14deg;z-index:3;background:linear-gradient(145deg,#efffa8,#bade56)}
.block-two{--edge:#50558c;left:53%;top:24%;rotate:13deg;z-index:2;background:linear-gradient(145deg,#d5d8ff,#a2a9f1)}
.block-three{--edge:#934c42;left:24%;top:51%;rotate:-10deg;z-index:2;padding:5%;background:linear-gradient(145deg,#ffd3bd,#f3a48b)}
.block-four{--edge:#2f644d;left:53%;top:56%;rotate:12deg;z-index:3;background:linear-gradient(145deg,#b7edbc,#81c79f)}
.block-four:before,.block-four:after{display:none}
.block-four span{width:46%;height:46%;border:solid #214536;border-width:0 0 4px 4px;position:relative}
.block-four span:before,.block-four span:after{content:"";position:absolute;background:#214536;width:20%;aspect-ratio:1;border-radius:50%}
.block-four span:before{top:0;left:-7%}.block-four span:after{bottom:-14%;right:0}
.art-spark{position:absolute;color:#d4f56b;font:300 2.8rem/1 system-ui}
.spark-one{top:15%;right:12%}.spark-two{bottom:16%;left:10%;font-size:1.8rem}
.daily{background:#e9eddf;color:var(--ink);border:1px solid #d7decb}
.daily h2{margin-block:5px}
.daily p,.daily .eyebrow{color:#405345}
.daily .primary{background:#213327;color:#f8faed;border-color:#213327}
.daily .primary:hover{background:#354d3e}
.section-title h2{font-size:clamp(2.2rem,4.8vw,3.25rem)}
.game-card{border-color:#dce1d5;box-shadow:0 3px 7px #25362909}
.game-card:hover,.game-card:focus-visible{box-shadow:0 6px 14px #25362916}
.card-art{
  height:128px;
  background-color:var(--art);
  background-image:radial-gradient(circle at 50% 50%,#ffffffa3,transparent 67%),radial-gradient(circle,#2536293c .75px,transparent 1.15px);
  background-size:auto,11px 11px;
}
.card-art>*{filter:drop-shadow(0 3px 1px #19281d23)}
.chromatic .card-art{grid-template-columns:repeat(3,23px);grid-auto-rows:23px}
.chromatic .card-art i{rotate:-9deg}
.target .card-art i{border-width:3px}
.sequence .card-art b{background:var(--art);rotate:-7deg}
.sequence .card-art b:nth-child(even){rotate:7deg}
.card-action{align-self:start;background:var(--art);border-radius:6px;padding:6px 10px;color:var(--accent)}
.play-panel{box-shadow:0 6px 24px #2536290d}
@media(max-width:860px){
  .hero-copy{padding-left:30px}
  .hero-art{min-height:350px}
}
@media(max-width:620px){
  .hero{min-height:0}
  .hero-copy{padding:29px 22px 0}
  .hero h1{font-size:clamp(2.35rem,11vw,4rem);margin-block:17px}
  .hero-art{width:min(100%,360px);height:218px;min-height:0}
  .hero-art .block{width:24%}
  .block-one{left:26%;top:12%}
  .block-two{left:52%;top:17%}
  .block-three{left:26%;top:49%;padding:4.6%}
  .block-four{left:52%;top:53%}
  .orbit{width:58%}.orbit-inner{width:49%}
  .card-art{height:99px}
}

