/* Cutdle owns its palette. Site navigation and article typography stay outside. */
.game-shell{border-color:#d8d9df}.game-shell-stage{padding:0;background:#14151c}
.game-shell-icon{background:#eae5f2;color:#7052aa}.prototype{font-size:10px;letter-spacing:.12em;color:#8d8697}
button svg,.game-shell-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.cut-card{--cut-ink:#f3f1e9;--cut-muted:#aaa8b8;--purple:#b49bf6;position:relative;isolation:isolate;height:740px;color:var(--cut-ink);background:radial-gradient(#30313e .8px,transparent .9px) 0 0/25px 25px,#14151c;overflow:hidden}
.cut-card button:focus-visible,#dialog button:focus-visible,#dialog a:focus-visible{outline:2px solid #d9ef85;outline-offset:4px}
.cut-header{position:absolute;z-index:3;left:27px;right:27px;top:23px;height:45px;display:flex;align-items:center;justify-content:center;pointer-events:none}
.cut-wordmark{position:absolute;left:0;font:800 29px/1 'Inter Tight',Arial,sans-serif;letter-spacing:-1.3px;color:#d9ef85}
.cut-wordmark span{display:block;font:600 7px/1.2 Inter,Arial,sans-serif;letter-spacing:.21em;color:#77768a;margin-top:6px}
.mode-switch{display:flex;background:#242530;border:1px solid #393a48;border-radius:10px;padding:4px;gap:3px;pointer-events:auto}
.mode-switch button{border:0;border-radius:6px;background:transparent;color:#b1aec3;padding:6px 19px;font-size:13px;font-weight:600}
.mode-switch button[aria-pressed=true]{background:#d9ef85;color:#20241b;box-shadow:0 2px 8px #0003}
.tools{display:flex;gap:8px;position:absolute;right:0;pointer-events:auto}
.tools button{width:37px;height:37px;display:grid;place-items:center;border:1px solid #3c3c4d;border-radius:10px;background:#22232dd9;color:#c6c3d5}
.tools button:hover{background:#353444;color:#fff}
.puzzle-heading{position:absolute;z-index:2;top:85px;left:25px;right:25px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:6px;pointer-events:none}
.eyebrow{font-size:10px;line-height:1.4;letter-spacing:.17em;font-weight:600;color:#9992ac}
.puzzle-heading h2{font-size:31px;letter-spacing:-.7px;color:#f3f1e9}
#theme{font-size:12px;line-height:1.5;color:#a19cad}
.board-wrap{position:absolute;inset:0;z-index:0}
#board{width:100%;height:100%;display:block;touch-action:none;cursor:crosshair;user-select:none}
#shape-layer{filter:drop-shadow(0 10px 23px #0003)}
#shape-layer>path{stroke:#ffffff22;stroke-width:1.3;stroke-linejoin:round}
.board-label{position:absolute;top:178px;left:25px;right:25px;text-align:center;font-size:8px;letter-spacing:.14em;color:#787489;pointer-events:none}
.keyboard-toggle{position:absolute;right:24px;bottom:242px;border:1px solid #373744;padding:5px 9px;border-radius:6px;background:#1c1d27d9;color:#9e98ad;font-size:9px}
#guide{fill:none;stroke:#d9ef85;stroke-width:2;stroke-dasharray:7 6;pointer-events:none;vector-effect:non-scaling-stroke}
.piece{transition:transform .55s cubic-bezier(.2,.8,.2,1)}
.bottom-hud{position:absolute;z-index:2;bottom:18px;left:28px;right:28px;display:flex;flex-direction:column;gap:13px;pointer-events:none}
.bottom-hud button,.bottom-hud input,.bottom-hud label{pointer-events:auto}
.feedback{text-align:center}
.ratio-line{display:flex;align-items:center;justify-content:center;gap:13px;min-width:0}
.ratio-line button{font-family:'Inter Tight',Arial,sans-serif;font-size:57px;line-height:1.05;border:0;background:none;font-weight:800;color:#b49bf6;letter-spacing:-2px;padding:0}
.ratio-line button:disabled{opacity:1}
.ratio-line button span{color:#676075;margin:0 4px}
.ratio-line button .area-a{color:var(--shape-color);margin:0}
.ratio-line button .area-b{color:#b49bf6;margin:0}
.ratio-line>span{font-size:8px;font-weight:600;letter-spacing:.12em;color:#b4a4c9;border:1px solid #423a52;border-radius:5px;padding:4px 7px;line-height:1.3}
.feedback h3{font-size:19px;color:#ece7f3;margin-top:5px}
.feedback p{font-size:12px;line-height:1.5;color:#a39aad;margin-top:4px}
.footer-row{display:flex;align-items:center;gap:22px;padding-top:15px;border-top:1px solid #ffffff13}
.records{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));flex:1;min-width:0}
.records>div{text-align:center;display:flex;flex-direction:column;gap:3px;min-width:0}
.records>div+div{border-left:1px solid #ffffff15}
.records span{font-size:8px;color:#91899f;letter-spacing:.13em;line-height:1.4}
.records strong{font-size:14px;color:#ddd7e7;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap;line-height:1.5}
.actions{display:flex;justify-content:center;gap:8px;flex-shrink:0}
.actions button,#keyboard-cut,.share-actions button,.share-actions a{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #474050;border-radius:9px;padding:11px 14px;font-size:12px;font-weight:600;line-height:1.2;white-space:nowrap}
.primary{background:#d9ef85;color:#20241b;border-color:#d9ef85!important}
.secondary{background:#26232f;color:#c9bddb}
.actions button:disabled{opacity:.35}
#notice{font-size:10px;line-height:1.5;text-align:center;color:#878092}
#keyboard-controls{display:flex;align-items:center;justify-content:center;gap:15px;font-size:11px;padding:10px 14px;background:#22222df2;border:1px solid #41404f;border-radius:9px;align-self:center;max-width:100%}
#keyboard-controls input{max-width:110px;accent-color:#d9ef85;min-width:0}
#keyboard-controls label{display:flex;align-items:center;gap:5px;min-width:0}
#keyboard-cut{padding:8px 12px;background:#d9ef85;color:#20241b}
#target-panel{width:100%;max-width:430px;display:flex;flex-direction:column;align-items:center;gap:5px}
.target-title{display:flex;align-items:center;gap:12px}
.target-title>span{font-size:9px;letter-spacing:.15em;font-weight:600;background:#d9ef85;color:#20241b;padding:4px 7px;border-radius:4px}
.target-title strong{font-family:'Inter Tight',Arial,sans-serif;font-size:42px;line-height:1;letter-spacing:-1.5px;color:#f1eafa;font-variant-numeric:tabular-nums}
.target-bar{display:flex;width:210px;max-width:90%;height:7px;border-radius:4px;overflow:hidden;gap:3px}
.target-bar span:first-child{background:var(--shape-color);flex-shrink:0}
.target-bar span:last-child{background:#b49bf6;flex:1}
#target-panel p{font-size:12px;line-height:1.5;color:#a49aaf}
#target-panel p strong{color:#d9ef85}
/* Game overlays share the independent dark palette. */
#dialog{width:calc(100% - 32px);max-width:480px;max-height:85dvh;overflow:auto;border:1px solid #484152;border-radius:18px;background:#1b1c25;padding:25px;color:#f3eff7;color-scheme:dark;box-shadow:0 20px 70px #0007}
#dialog::backdrop{background:#090a11b3;backdrop-filter:blur(5px)}
#dialog h2{font-size:25px;padding-right:20px;color:#f3eff7}
#dialog p{font-size:13px;line-height:1.8;color:#b4aabd;margin-top:12px}
#dialog button svg,.share-actions a svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#close{position:absolute;right:9px;top:9px;display:grid;place-items:center;width:30px;height:30px;background:transparent;border:0;color:#bcb3c8}
.challenge-options{display:grid;gap:12px;margin-top:18px}
.challenge-options button{display:grid;grid-template-columns:1fr auto;gap:8px;text-align:left;padding:18px;border:1px solid #494052;background:#27232f;border-radius:12px;color:#f1eaf8}
.challenge-options strong{font-size:19px}.challenge-options b{font-size:21px;color:#d9ef85;font-variant-numeric:tabular-nums}
.challenge-options span,.challenge-options em{grid-column:1/-1;font-size:12px;color:#aca0b9;line-height:1.6}
.challenge-options em{font-style:normal;color:#e4c28f;font-weight:600}.challenge-options button:hover{background:#342b40;border-color:#8c78a3}
#share-preview{display:block;max-width:100%;width:auto;height:auto;max-height:43dvh;margin:17px auto 0;border-radius:12px}
.share-actions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:15px}
#copy-result{width:100%;height:130px;margin-top:15px;font-size:12px;background:#11121a;color:#ddd3e8;border:1px solid #484152;border-radius:7px;padding:10px}
.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px}.stats-grid div{background:#292431;border-radius:10px;padding:14px;text-align:center}.stats-grid strong{display:block;font-size:25px;color:#d9ef85}.stats-grid span{font-size:10px;color:#aaa0b5}
/* Host article remains regular site content. */
.breadcrumbs{display:flex;gap:9px;font-size:12px;color:#777;margin-bottom:15px}.game-page-heading{width:100%;max-width:none}.game-page-heading h1{color:#171717}
@media(max-width:800px){.footer-row{flex-direction:column;gap:12px}.records{width:100%;flex:auto}.records strong{font-size:13px}.bottom-hud{gap:10px}.keyboard-toggle{bottom:282px}}
@media(max-width:700px){.game-shell-stage{padding:0}.cut-card{height:740px}.cut-header{left:17px;right:17px;top:19px;height:66px;align-items:flex-end}.cut-wordmark{top:0;font-size:25px;left:0}.cut-wordmark span{display:none}.tools{top:0;gap:6px}.tools button{width:31px;height:31px;border-radius:8px}.tools button svg{width:17px;height:17px}.mode-switch{padding:3px;border-radius:8px}.mode-switch button{padding:5px 17px;font-size:12px}.puzzle-heading{top:105px;left:16px;right:16px;gap:5px}.puzzle-heading h2{font-size:26px}#theme{font-size:11px}.eyebrow{font-size:9px}.board-label{top:190px;left:14px;right:14px;font-size:7px}.bottom-hud{left:16px;right:16px;bottom:15px;gap:10px}.ratio-line{flex-wrap:wrap;gap:3px 8px}.ratio-line button{font-size:45px}.ratio-line button.is-precise{font-size:33px}.feedback h3{font-size:17px}.feedback p{font-size:11px}.records strong{font-size:12px;letter-spacing:-.02em}.records span{font-size:7px}.actions button{padding:10px 12px;font-size:11px;gap:6px}.actions button svg{width:17px;height:17px}#notice{font-size:9px}.keyboard-toggle{right:15px;bottom:278px;font-size:8px}.target-title strong{font-size:36px}#target-panel p{font-size:11px}}
@media(max-width:480px){#keyboard-controls{display:grid;grid-template-columns:minmax(0,1fr) 72px;grid-template-rows:1fr 1fr;gap:5px 9px;width:100%;padding:8px 10px}#keyboard-controls label{grid-column:1;min-width:0;font-size:10px;justify-content:space-between}#keyboard-controls input{width:80px;max-width:80px}#angle-value{display:none}#keyboard-cut{grid-column:2;grid-row:1/3;height:100%;padding:7px;font-size:11px}}
@media(max-width:380px){.ratio-line button{font-size:36px;letter-spacing:-1.5px}.ratio-line button.is-precise{font-size:26px}.ratio-line>span{font-size:7px;max-width:54px;padding:2px 4px}.records strong{font-size:11px}.feedback h3{font-size:16px}.feedback p{font-size:10px}.actions{gap:6px}.actions button{padding:9px 9px;font-size:10px;gap:5px}#next span{display:none}.bottom-hud{left:13px;right:13px}.target-title strong{font-size:34px}#target-panel p{font-size:10px}}
@media(prefers-reduced-motion:reduce){.piece{transition:none}}

@media(min-width:701px){.board-label{top:auto;bottom:245px;left:25px;right:auto;max-width:32%;text-align:left}}

/* Unlimited is an in-game entrance, with an explicit start action. */
.choosing-mode>.board-wrap,.choosing-mode>.puzzle-heading,.choosing-mode>.bottom-hud{display:none}
.unlimited-entry{position:absolute;z-index:2;inset:115px 40px 28px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;text-align:center}
.unlimited-entry h2{font-size:41px;color:#f3eff7;letter-spacing:-1px}
.entry-intro{color:#a9a1b6;font-size:14px}
.entry-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;width:100%;max-width:640px;margin:8px 0}
.entry-options button{position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:10px;background:#24212ddb;border:1px solid #494052;border-radius:15px;padding:23px;color:#eee6f8}
.entry-options button[aria-pressed=true]{border-color:#d9ef85;box-shadow:inset 0 0 0 1px #d9ef85;background:#293025}
.entry-options button[aria-pressed=true]::after{content:'';width:8px;height:8px;position:absolute;right:16px;top:16px;background:#d9ef85;border-radius:50%}
.entry-options strong{font-size:21px}.entry-options button>span:not(.entry-ratio){font-size:12px;color:#b4a9c0;line-height:1.5}.entry-options small{font-size:11px;color:#8f859b}
.entry-ratio{font-family:'Inter Tight',Arial,sans-serif;font-weight:800;font-size:40px;line-height:1.15;color:#c5aafa;letter-spacing:-1px}.entry-ratio i{font-style:normal;color:#65596f;margin-inline:3px}
#entry-description{font-size:12px;color:#c2b6ce;line-height:1.6;max-width:500px;min-height:20px}
#entry-shape{font-size:11px;color:#d9ef85}
#entry-start{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:10px;min-width:190px;padding:13px 25px;font-size:14px;font-weight:600;margin-top:5px}
#entry-back{background:none;border:0;color:#9c91aa;font-size:12px;padding:5px 10px}
.is-daily .records{grid-template-columns:repeat(2,minmax(0,1fr))}
.share-tabs{display:flex;background:#282331;padding:4px;border:1px solid #44384e;border-radius:9px;margin-top:18px;gap:4px}
.share-tabs button{flex:1;padding:8px 16px;border:0;border-radius:6px;background:transparent;color:#b6a9c1;font-size:13px;font-weight:600}
.share-tabs button[aria-selected=true]{background:#d9ef85;color:#20241b}
#share-text-panel #copy-result{height:160px;line-height:1.65;resize:vertical}
@media(max-width:700px){.unlimited-entry{inset:112px 22px 20px;gap:13px}.unlimited-entry h2{font-size:31px}.entry-intro{font-size:12px}.entry-options{gap:10px}.entry-options button{padding:17px 13px;gap:8px}.entry-ratio{font-size:30px}.entry-options strong{font-size:18px}.entry-options button>span:not(.entry-ratio){font-size:11px}.entry-options small{font-size:10px}#entry-description{font-size:11px}.is-daily .actions button{padding:10px 12px}}
@media(max-width:480px){.entry-options{grid-template-columns:1fr;max-width:340px;margin:0;gap:11px}.entry-options button{display:grid;grid-template-columns:1fr auto;gap:5px 12px;padding:16px 18px}.entry-ratio{grid-column:2;grid-row:1/3;align-self:center;font-size:30px}.entry-options strong{grid-column:1;grid-row:1}.entry-options button>span:not(.entry-ratio){grid-column:1;grid-row:2}.entry-options small{grid-column:1/-1;grid-row:3}.entry-options button[aria-pressed=true]::after{right:8px;top:8px;width:5px;height:5px}.unlimited-entry h2{font-size:29px}.unlimited-entry{inset:110px 18px 20px;gap:14px}#entry-start{padding:12px 24px}}

@media(max-width:380px){.entry-options button{padding:14px}.entry-ratio{font-size:25px}.entry-options strong{font-size:17px}.unlimited-entry h2{font-size:27px}}

/* Short, local feedback. No camera shake or layout movement. */
.piece{transition:none}
#effects-layer{pointer-events:none}.cut-streak{filter:drop-shadow(0 0 5px #d9ef8599)}
.cut-card.is-win .ratio-line>span{background:#d9ef8518;border-color:#d9ef8566;color:#d9ef85}
.cut-card button{transition:background-color .13s ease,border-color .13s ease,box-shadow .13s ease}
.cut-card button:not(:disabled):active{box-shadow:inset 0 2px 5px #0003}
#sound[aria-pressed=false]{color:#7f788c;background:#1b1b25}
@media(prefers-reduced-motion:reduce){.cut-card button{transition:none}.cut-streak{filter:none}}

/* Five-cut Unlimited sets use the same fixed game scene. */
.showing-results>.board-wrap,.showing-results>.puzzle-heading,.showing-results>.bottom-hud{display:none}
.run-summary{position:absolute;z-index:2;inset:91px 30px 23px;max-width:650px;margin:auto;display:flex;flex-direction:column;justify-content:center;text-align:center;gap:11px}
.set-heading{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap}.set-heading .eyebrow{margin:0}
#set-badge{font-size:9px;letter-spacing:1px;padding:5px 8px;background:#d9ef8516;color:#d9ef85;border:1px solid #d9ef8540;border-radius:5px}
.set-total{display:flex;justify-content:center;align-items:baseline;gap:10px;line-height:1}.set-total strong{font-size:88px;letter-spacing:-5px;color:#d9ef85}.set-total>span{font-size:25px;color:#878395}
.run-summary h2{font-size:30px;letter-spacing:-.7px;line-height:1.1;margin:0}.run-summary>p{font-size:13px;color:#aaa6b9;margin:0}
#set-rounds{display:grid;gap:6px;margin:9px 0 0}.set-round{display:grid;grid-template-columns:22px 45px 1fr 1.3fr 78px;align-items:center;gap:12px;padding:7px 15px;background:#20202b;border:1px solid #34313f;border-radius:10px;text-align:left;min-height:55px}
.set-number{color:#8b849d;font-size:11px}.set-round svg{width:42px;height:42px}.set-round small{display:block;color:#928b9f;font-size:8px;letter-spacing:.7px;margin-bottom:3px}.set-target,.set-actual{font-size:15px;font-weight:600;white-space:nowrap}.set-points{position:relative;font-size:22px;text-align:right;padding-bottom:6px;color:#d9ef85;white-space:nowrap}.set-points small{display:inline;font-size:10px;letter-spacing:0;margin-left:3px}.set-points:after{content:'';position:absolute;left:0;bottom:0;width:var(--earned);height:2px;background:#b49bf6;border-radius:2px}
.set-records{display:flex;justify-content:center;gap:35px;margin:4px 0;color:#928b9f;font-size:9px;letter-spacing:1px}.set-records strong{font-size:15px;letter-spacing:0;color:#eeeaf4;margin-left:8px;white-space:nowrap}
.set-actions{display:flex;justify-content:center;gap:10px;margin-top:3px}.set-actions button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 20px;border:1px solid #474050;border-radius:9px;font-size:13px;font-weight:600;white-space:nowrap}.set-actions svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#entry-fresh,#entry-last{font-size:12px;text-decoration:underline;text-underline-offset:4px;color:#b7accb}
@media(max-width:700px){.run-summary{inset:112px 17px 20px;gap:10px}.set-total strong{font-size:72px}.set-total>span{font-size:20px}.run-summary h2{font-size:25px}.run-summary>p{font-size:11px}.set-heading{gap:8px}.set-heading .eyebrow{font-size:9px}#set-badge{font-size:7px}.set-round{grid-template-columns:12px 30px 1fr 1.3fr 46px;padding:7px 9px;gap:7px;min-height:53px}.set-round svg{width:29px;height:31px}.set-target,.set-actual{font-size:12px}.set-round small{font-size:6px}.set-points{font-size:19px}.set-points small{font-size:8px}.set-records{gap:17px;font-size:7px}.set-records strong{font-size:12px;margin-left:5px}.set-actions{gap:8px}.set-actions button{font-size:11px;padding:11px 13px;gap:6px}.set-actions svg{width:16px;height:16px}#next span{display:inline}}
@media(max-width:360px){.set-round{grid-template-columns:10px 22px 1fr 1.3fr 41px;gap:5px;padding:7px}.set-round svg{width:22px}.set-target,.set-actual{font-size:10px}.set-points{font-size:16px}.run-summary{left:13px;right:13px}.set-actions button{font-size:10px;padding:11px}.set-records{gap:10px}}
/* Editorial content uses the full host container below the independent game. */
.article-section{width:100%;margin:30px 0 0;padding-top:28px;border-top:1px solid #dedbe3;color:#302b38}
.article-section h2{font-size:29px;line-height:1.25;color:#29252f}.article-section p{font-size:16px;line-height:1.9;color:#696473;margin-top:14px}
.article-section a{text-decoration:underline;text-underline-offset:3px}.article-section strong{color:#3d3747;font-weight:600}
.cut-rules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:20px}.cut-rules article{padding:20px;border-radius:14px;background:#f0ecf5}.cut-rules article>span{font-size:10px;color:#82718f;letter-spacing:.6px}.cut-rules h3{font-size:22px;color:#352b42;margin-top:10px}.cut-rules p{font-size:14px;line-height:1.8}
.cut-faq details{border-top:1px solid #dedbe3;padding:15px 0}.cut-faq details:first-of-type{margin-top:17px}.cut-faq summary{cursor:pointer;font-weight:600;font-size:17px;line-height:1.5;color:#3d3747}.cut-faq details p{margin-top:11px}
.inline-link{display:inline-block;margin:16px 24px 0 0;font-size:14px;font-weight:600}.more-games{padding-bottom:35px}
@media(max-width:760px){.article-section{margin-top:25px;padding-top:24px}.article-section h2{font-size:25px}.article-section p{font-size:15px;line-height:1.85}.cut-rules{grid-template-columns:1fr;gap:12px}.cut-rules article{padding:18px}.cut-rules h3{font-size:21px}.cut-rules p{font-size:14px}.cut-faq summary{font-size:16px}}
