/* L2K9: inside the game panel, undo the site shell button style (browser defaults), then the private pages element baseline, then the panel rules */
:where(.swp) button{min-height:revert;padding:revert;border:revert;border-radius:revert;background:revert;color:revert;font-weight:revert;font-size:revert;text-decoration:revert;display:revert;align-items:revert;justify-content:revert;gap:revert;box-shadow:revert;position:revert;overflow:revert}
:where(.swp) *,:where(.swp) *::before,:where(.swp) *::after{box-sizing:border-box}
:where(.swp) a{color:var(--sky-blue-dark);text-decoration-thickness:.08em;text-underline-offset:.2em}
:where(.swp) button,:where(.swp) input{font:inherit}
:where(.swp) button,:where(.swp) a,:where(.swp) summary{touch-action:manipulation}
:where(.swp) button{cursor:pointer}
:where(.swp) button:disabled{cursor:not-allowed;opacity:.65}
:where(.swp) input{min-width:0}
:where(.swp) [hidden]{display:none!important}
:where(.swp) :focus-visible{outline:3px solid var(--sky-focus);outline-offset:3px}
:where(.swp) [id]{scroll-margin-top:20px}
@media(prefers-reduced-motion:reduce){:where(.swp) *,:where(.swp) *::before,:where(.swp) *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
:where(.swp) *{box-sizing:border-box}
:where(.swp) a{text-decoration:none;color:inherit}
:where(.swp) button{font:inherit;cursor:pointer;border:none;background:none}
:where(.swp) input{font:inherit}
:where(.swp) :focus-visible{outline:3px solid var(--gold);outline-offset:2px;border-radius:6px}
@media(prefers-reduced-motion:reduce){:where(.swp) *,:where(.swp) *::before,:where(.swp) *::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}
:where(.swp) a{color:#9ff0c9}
:where(.swp) [hidden]{display:none!important}
:where(.swp) button,:where(.swp) input{font-family:var(--font-b)}
:where(.swp) :focus-visible{outline:3px solid #f5c518;outline-offset:3px}
:where(.swp) [id]{scroll-margin-top:92px}
@media(max-width:700px){:where(.swp) [id]{scroll-margin-top:145px}}
@media(prefers-reduced-motion:reduce){:where(.swp) *,:where(.swp) *::before,:where(.swp) *::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}
:where(.swp) [id]{scroll-margin-top:var(--sky-anchor-offset)}
/* L2K9: Sky component rules used by the game panels (extracted from the Sky Words styles), then the game styles */
:root{--sky-ink:#18263d;--sky-muted:#46566e;--sky-navy:#122d52;--sky-blue:#225b96;--sky-blue-dark:#174675;--sky-aqua:#ccecf3;--sky-peach:#ffd69d;--sky-paper:#f4f7fa;--sky-white:#fff;--sky-line:#c8d5e3;--sky-focus:#9f3d08;--sky-shadow:0 18px 45px rgba(19,43,72,.11);--sky-radius:20px;--sky-max:1160px;--sky-header-height:72px;--sky-font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.sky-wrap{width:min(var(--sky-max),100%);margin-inline:auto;padding-inline:24px}
.sky-hero{position:relative;overflow:hidden;color:white;background:radial-gradient(ellipse at 82% 5%,rgba(245,174,92,.24),transparent 34%),linear-gradient(125deg,#0c294e 0%,#164b76 58%,#2e6f91 100%)}
.sky-hero::before,.sky-hero::after{content:"";position:absolute;border:1px solid rgba(255,255,255,.15);border-radius:50%;pointer-events:none}
.sky-hero::before{width:480px;height:480px;right:-110px;top:-290px}
.sky-hero::after{width:310px;height:310px;right:-25px;top:-203px}
.sky-hero-inner{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) minmax(350px,.9fr);gap:60px;align-items:start;padding-block:72px 68px}
.sky-overline{display:inline-flex;align-items:center;gap:9px;margin:0 0 18px;color:#d9f0f4;font-size:14px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.sky-overline::before{content:"";width:28px;height:3px;background:#f9bf6d;border-radius:9px}
.sky-hero h1{max-width:750px;margin:0;font-family:Georgia,"Times New Roman",serif;font-size:clamp(38px,5vw,64px);font-weight:700;letter-spacing:-.045em;line-height:1.08}
.sky-hero h1 em{font-style:normal;color:#ffd39a}
.sky-hero-lede{max-width:560px;margin:20px 0 0;font-size:18px;line-height:1.65;color:#f2f8fc}
.sky-search-panel{background:white;color:var(--sky-ink);border-radius:22px;padding:24px;box-shadow:0 20px 55px rgba(6,25,48,.24)}
.sky-search-panel h2{margin:0 0 4px;font-size:22px;line-height:1.25;letter-spacing:-.025em}
.sky-search-panel>p{margin:0 0 18px;color:var(--sky-muted);font-size:14px}
.sky-button{display:inline-flex;min-height:48px;align-items:center;justify-content:center;gap:8px;padding:10px 18px;border:1px solid var(--sky-blue-dark);border-radius:9px;background:var(--sky-blue-dark);color:white;font-weight:750;text-align:center;text-decoration:none;white-space:nowrap}
.sky-button:hover{background:#102f55}
.sky-button.secondary{background:white;color:var(--sky-blue-dark);border-color:#8aa2bc}
.sky-button.secondary:hover{background:#edf4fa}
.sky-hero noscript{display:block;margin-top:15px;color:#41546c;font-size:14px}
.sky-hero noscript a{color:#174675}
.sky-main{padding-block:52px 72px}
.sky-section{margin-top:56px}
.sky-section:first-child{margin-top:0}
.sky-section h2{margin:0;font-family:Georgia,"Times New Roman",serif;font-size:clamp(27px,3vw,38px);letter-spacing:-.03em;line-height:1.15}
@media(max-width:900px){.sky-hero-inner{gap:30px;grid-template-columns:minmax(0,1fr) minmax(320px,.95fr)}}
@media(max-width:700px){.sky-hero-inner{grid-template-columns:1fr;gap:26px;padding-block:42px}.sky-hero h1{font-size:42px}.sky-hero-lede{font-size:16px;margin-top:14px}.sky-main{padding-block:38px 55px}}
@media(max-width:370px){.sky-wrap{padding-inline:16px}.sky-hero h1{font-size:38px}.sky-search-panel{padding:18px}.sky-button{padding-inline:12px}}
@media(max-width:700px){.sky-hero-inner{gap:16px;padding-block:26px}.sky-overline{margin-bottom:8px}.sky-hero-lede{margin-top:10px}.sky-search-panel>p{margin-bottom:10px}}
:root{--bg:#1c1d1d;--bg2:#242626;--ink:#0c0d16;--ink2:#1a1b1b;--card:#232525;--card2:#2a2c2c;--text:#ffffff;--text-sub:rgba(255,255,255,.88);--text-sub2:rgba(255,255,255,.62);--sub-lt:rgba(255,255,255,.92);--grid-line:rgba(255,255,255,.075);--red:#ff4d5e;--red-d:#b4192e;--orange:#f59e0b;--orange-d:#c2650a;--blue:#3b82f6;--blue-d:#1d4fa8;--teal:#14b8a6;--teal-d:#0d8763;--purple:#a855f7;--purple-d:#5f32d6;--pink:#ec4899;--pink-d:#b61569;--gold:#f5c518;--gold-d:#a87a0a;--line:rgba(255,255,255,.1);--font-dh:"Bricolage Grotesque",sans-serif;--font-b:"Plus Jakarta Sans",sans-serif;--font-m:"Space Mono",monospace}
@keyframes gradientshift{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}
@keyframes floaty{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-14px) rotate(5deg)}}
:root{--sky-ink:#fff;--sky-muted:rgba(255,255,255,.88);--sky-focus:#f5c518;--sky-max:1180px;--sky-font:"Plus Jakarta Sans",sans-serif}
.sky-wrap{max-width:1180px;width:100%;padding-inline:28px}
.sky-hero{position:relative;overflow:hidden;background:radial-gradient(1000px 560px at 90% 0%,rgba(236,72,153,.4),transparent 60%),radial-gradient(800px 520px at 4% 100%,rgba(20,184,166,.24),transparent 60%),radial-gradient(650px 460px at 45% 40%,rgba(168,85,247,.26),transparent 65%),linear-gradient(160deg,#070710 0%,#130f24 55%,#1c1133 100%);color:#fff;border:0}
.sky-hero::before{content:"";position:absolute;top:20px;right:30px;width:90px;height:90px;background:linear-gradient(135deg,var(--gold),var(--orange));transform:rotate(45deg);border:0;border-radius:18px;opacity:.9;box-shadow:0 30px 70px -26px rgba(240,138,36,.6);animation:floaty 7s ease-in-out infinite;pointer-events:none}
.sky-hero::after{content:"";position:absolute;inset:0;width:auto;height:auto;border:0;border-radius:0;pointer-events:none;opacity:.55;background-image:radial-gradient(2px 2px at 4% 17%,#fff 99%,transparent),radial-gradient(2px 2px at 24% 72%,#fff 99%,transparent),radial-gradient(1px 1px at 44% 18%,#fff 99%,transparent),radial-gradient(2px 2px at 70% 62%,#fff 99%,transparent),radial-gradient(1px 1px at 91% 86%,#fff 99%,transparent);background-size:300px 200px}
.sky-hero-inner{position:relative;z-index:2;grid-template-columns:1.15fr .85fr;gap:40px;align-items:center;padding-block:56px 46px}
.sky-overline{font:800 12px var(--font-m);letter-spacing:.12em;color:#ffd1ea;background:rgba(236,72,153,.18);padding:7px 15px;border-radius:999px;border:1px solid rgba(255,179,198,.4);margin:0 0 16px}
.sky-overline::before{display:none}
.sky-hero h1{font-family:var(--font-dh);font-weight:900;font-size:40px;letter-spacing:-.02em;line-height:1.08;color:#fff;text-shadow:0 10px 40px rgba(168,85,247,.3)}
.sky-hero h1 em{background:linear-gradient(100deg,var(--gold),var(--pink) 50%,var(--teal));background-size:200% 200%;animation:gradientshift 6s ease infinite;background-clip:text;-webkit-background-clip:text;color:transparent}
.sky-hero-lede{font-weight:700;font-size:16px;line-height:1.7;color:rgba(255,255,255,.92);margin:12px 0 20px}
.sky-search-panel{position:relative;overflow:hidden;background:#0e0d18;color:#fff;border:4px solid transparent;border-radius:24px;padding:28px 26px;box-shadow:0 36px 70px -32px rgba(168,85,247,.5);background-image:linear-gradient(#0e0d18,#0e0d18),conic-gradient(from 120deg,var(--purple),var(--pink),var(--gold),var(--teal),var(--purple));background-origin:border-box;background-clip:padding-box,border-box}
.sky-search-panel h2{font-family:var(--font-dh);font-size:15px;font-weight:800;color:rgba(255,255,255,.75);margin:0 0 8px}
.sky-search-panel>p{font-weight:700;color:rgba(255,255,255,.65);font-size:12px;margin:0 0 16px}
.sky-button{border:0;border-radius:12px;background:linear-gradient(120deg,var(--purple-d),var(--purple));color:#fff;font-weight:800}
.sky-button:hover{background:#773cce}
.sky-button.secondary{background:#322348;color:#fff;border:1px solid #a855f7}
.sky-hero noscript{color:#fff}
.sky-hero noscript a{color:#9ff0c9}
.sky-main{padding-block:56px}
.sky-section{margin-top:56px}
.sky-section:first-child{margin-top:0}
.sky-section h2,.sky-main>h2{font:900 30px/1.18 var(--font-dh);letter-spacing:-.02em;color:#fff;text-shadow:0 2px 28px rgba(168,85,247,.25)}
.sky-section h2::before,.sky-main>h2::before{content:"";display:block;width:22px;height:3px;border-radius:2px;background:linear-gradient(90deg,var(--red),var(--orange),var(--teal),var(--purple));margin-bottom:12px}
.sky-howto .sky-tips{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:28px}
.sky-tips p,.sky-faq-card{--c1:#ff4d5e;margin:0;padding:24px 22px;border-radius:19px;background:repeating-linear-gradient(128deg,color-mix(in srgb,var(--c1) 14%,transparent) 0px,color-mix(in srgb,var(--c1) 14%,transparent) 2px,transparent 2px,transparent 14px),radial-gradient(150% 190% at 0% 0%,color-mix(in srgb,var(--c1) 26%,#232525) 0%,#232525 60%);border:2.5px solid color-mix(in srgb,var(--c1) 55%,transparent);color:rgba(255,255,255,.92);font-weight:600}
.sky-tips p:nth-child(2){--c1:#f59e0b}
.sky-tips p:nth-child(3){--c1:#14b8a6}
.sky-faq-card{--c1:#a855f7;margin-top:14px}
.sky-faq-card:nth-of-type(2){--c1:#ec4899}
.sky-faq-card:nth-of-type(3){--c1:#3b82f6}
.sky-faq-card:nth-of-type(4){--c1:#f5c518}
.sky-faq-card h3{margin:0 0 9px;font:800 16px var(--font-dh);color:#fff}
.sky-faq-card p{margin:0;color:rgba(255,255,255,.88);font-size:14px}
@media(max-width:900px){.sky-hero-inner{grid-template-columns:1fr}.sky-howto .sky-tips{grid-template-columns:1fr}}
@media(max-width:700px){.sky-hero-inner{gap:28px;padding-block:38px}.sky-main{padding-block:40px}.sky-hero h1{font-size:32px}.sky-section h2,.sky-main>h2{font-size:24px}}
@media(max-width:560px){.sky-wrap{padding-inline:20px}.sky-hero h1{font-size:28px}.sky-search-panel{padding:24px 20px}.sky-hero::before{width:60px;height:60px}}
.sky-tips p{font-size:13.5px}
.sky-tips strong{display:block;font:900 16.5px var(--font-dh);color:#fff;margin-bottom:9px}
@media(max-width:560px){.sky-hero-inner{gap:14px;padding-block:20px}.sky-overline{margin-bottom:8px}.sky-hero-lede{margin:8px 0 0}.sky-search-panel{padding:16px}.sky-search-panel>p{margin-bottom:8px}.sky-search-panel h2{margin-bottom:4px}}
:root{--sky-anchor-offset:84px}
@media(max-width:700px){:root{--sky-anchor-offset:190px}}
@media(min-width:901px){.sky-hero-inner{padding-block:46px 42px}.sky-search-panel{padding-block:20px}.sky-search-panel h2{margin-bottom:4px}.sky-search-panel>p{margin-bottom:10px}}
@media(max-width:560px){.sky-hero::before{display:none}}
.sky-search-panel>p{
  font-size:14px;
}
.sky-tips p{font-size:14px}
@media(max-width:370px){.sky-hero-lede{font-size:14px;line-height:1.4}}
/* GenieSolves Play (T6K4): only arranges existing Sky Words components; colours come from them */
.swp .sky-hero-inner{grid-template-columns:minmax(0,1fr)}
.swp .swp-hero-compact .sky-hero-inner{padding-block:28px 24px}
.swp .sky-search-panel{margin:0}
.swp p,.swp li,.swp td,.swp th,.swp label{font-size:16px;line-height:1.5}
.swp :focus-visible{outline:3px solid #f5c518;outline-offset:2px}
.swp .swp-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:14px}
.swp .sky-button{min-height:48px}
.swp .sky-button.swp-gold{background:linear-gradient(120deg,rgb(245,197,24),rgb(255,216,102));color:rgb(42,26,0);border-color:rgb(42,26,0);border-radius:15px;font-weight:900;box-shadow:rgba(245,197,24,.6) 0 16px 30px -14px}
.swp .sky-button.swp-gold:hover{filter:brightness(1.05)}
.swp .swp-textbtn{background:none;border:0;color:inherit;text-decoration:underline;text-underline-offset:3px;min-height:44px;padding:8px 0;font-size:16px;font-weight:700;cursor:pointer}
.swp .swp-status{font-weight:800;margin:0 0 12px}
.swp .swp-msg{min-height:24px;font-weight:800;margin:10px 0 0}
/* hub */
.swp .swp-panels{display:grid;grid-template-columns:1fr;gap:18px}
@media (min-width:768px){.swp .swp-panels{grid-template-columns:1fr 1fr}}
.swp .swp-panels h2{font-size:22px;margin:0 0 6px}
.swp .swp-streak{font-weight:800;margin:18px 0 0}
/* daily board */
.swp .swp-board{display:flex;flex-wrap:wrap;gap:10px 14px;margin:0}
.swp .swp-word{display:inline-flex;flex-wrap:nowrap;gap:2px}
.swp .swp-cell{display:inline-flex;flex-direction:column;align-items:center;width:34px}
.swp .swp-cell input{box-sizing:border-box;width:34px;height:44px;padding:0;text-align:center;font-size:20px;font-weight:800;text-transform:uppercase;border:2px solid rgba(255,255,255,.55);border-radius:8px;background:rgba(255,255,255,.06);color:#fff}
.swp .swp-cell input:focus{outline:3px solid #f5c518;outline-offset:1px}
.swp .swp-cell.swp-known input{background:linear-gradient(120deg,#f5c518,#ffd866);color:#2a1a00;border-color:#f5c518}
.swp .swp-cell.swp-wrong input{border-color:#ff3b3b}
.swp .swp-num{font-size:14px;line-height:14px;margin-top:2px;opacity:.85}
.swp .swp-sep{display:inline-flex;align-items:center;height:44px;font-size:20px;font-weight:800}
@media (max-width:479px){.swp .swp-cell,.swp .swp-cell input{width:28px}}
@media (max-width:339px){.swp .swp-cell,.swp .swp-cell input{width:26px}}
.swp .swp-bar{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
@media (max-width:560px){
 .swp .swp-bar{position:fixed;left:0;right:0;bottom:0;z-index:50;margin:0;padding:12px 12px calc(12px + env(safe-area-inset-bottom));background:#1c1d1d;border-top:1px solid rgba(255,255,255,.15);flex-wrap:nowrap}
 .swp .swp-bar .sky-button{flex:1 1 0;padding-inline:8px}
 .swp.swp-has-bar{padding-bottom:96px}
}
.swp .swp-bignum{font-size:48px;line-height:1.1;font-weight:900;margin:0 0 8px}
.swp .swp-answer{font-size:20px;font-weight:800;letter-spacing:.03em}
.swp .swp-nick{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:14px}
.swp .swp-nick input{min-height:48px;box-sizing:border-box;padding:8px 12px;font-size:16px;border-radius:9px;border:2px solid rgba(255,255,255,.4);background:rgba(255,255,255,.06);color:#fff;max-width:100%}
/* challenge */
.swp .swp-progress{font-weight:800;margin:0 0 8px}
.swp .swp-meter{position:relative;height:12px;border-radius:9px;background:rgba(255,255,255,.15);margin:6px 0 30px}
.swp .swp-meter-fill{position:absolute;left:0;top:0;bottom:0;border-radius:9px;background:linear-gradient(120deg,#f5c518,#ffd866);width:0}
.swp .swp-mark{position:absolute;top:-4px;width:2px;height:20px;background:rgba(255,255,255,.7)}
.swp .swp-mark span{position:absolute;top:22px;transform:translateX(-50%);font-size:14px;white-space:nowrap}
.swp .swp-mark:last-child span{transform:translateX(-100%)}
.swp .swp-need{margin:0 0 12px}
.swp .swp-current{font-size:24px;font-weight:900;letter-spacing:.08em;min-height:36px;text-align:center;margin:6px 0}
.swp .swp-current.empty{font-size:16px;font-weight:700;letter-spacing:0;opacity:.75}
.swp .swp-wheel{position:relative;width:236px;height:236px;margin:6px auto}
.swp .swp-tile{position:absolute;width:56px;height:56px;margin:-28px 0 0 -28px;border-radius:50%;border:2px solid rgba(255,255,255,.5);background:rgba(255,255,255,.08);color:#fff;font-size:22px;font-weight:900;cursor:pointer}
.swp .swp-tile.centre{background:linear-gradient(120deg,#f5c518,#ffd866);color:#2a1a00;border-color:#f5c518}
.swp .swp-tile.used{opacity:.35}
@media (max-width:359px){.swp .swp-wheel{width:204px;height:204px}.swp .swp-tile{width:48px;height:48px;margin:-24px 0 0 -24px;font-size:20px}}
.swp .swp-wbtns{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:8px}
.swp .swp-groups h3{font-size:16px;margin:14px 0 6px}
.swp .swp-groups p{margin:0}
.swp .swp-ywords{columns:2;margin:8px 0 0;padding-left:18px}
/* leaderboard */
.swp .swp-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}
.swp .swp-tabs .sky-button[aria-selected="true"]{outline:3px solid #f5c518}
.swp .swp-table{width:100%;border-collapse:collapse;margin-top:8px}
.swp .swp-table th,.swp .swp-table td{text-align:left;padding:10px 8px;border-bottom:1px solid rgba(255,255,255,.15)}
.swp .swp-top{color:#f5c518;font-weight:900}
.swp .swp-test{font-size:14px;margin-left:6px;padding:1px 6px;border-radius:6px;border:1px solid rgba(255,255,255,.45);opacity:.85}
.swp #swp-me a,.swp p a{display:inline-flex;align-items:center;min-height:44px}
/* C2R8: phone layout of the two game pages (up to 560 px); desktop unchanged */
.swp-h1-short,.swp-phone-lede{display:none}
@media (max-width:560px){
 body.swp-game .sky-header-inner{flex-direction:row;flex-wrap:nowrap;justify-content:space-between;align-items:center;min-height:56px;padding-block:6px;gap:12px}
 body.swp-game .sky-brand-sub{display:none}
 body.swp-game .sky-header nav{display:flex;flex-wrap:nowrap;gap:0;margin:0}
 body.swp-game .sky-header nav a{display:none}
 body.swp-game .sky-header nav a[href="/play/"]{display:inline-flex;align-items:center;min-height:44px;padding:0 6px}
 body.swp-game .s2-search{display:none}
 body.swp-game .sky-hero .sky-overline,body.swp-game .sky-hero .sky-hero-lede,body.swp-game .sky-hero .sky-decoration{display:none}
 body.swp-game .swp .swp-hero-compact .sky-hero-inner{padding-block:12px}
 body.swp-game .sky-hero h1{font-size:22px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body.swp-game .swp-h1-long{display:none}
 body.swp-game .swp-h1-short{display:inline}
 body.swp-game .swp-phone-lede{display:block;margin:0 0 12px}
 body.swp-game .swp .sky-main{padding-top:10px}
 body.swp-game .swp .sky-search-panel{padding:12px}
 body.swp-game .swp .swp-board{gap:6px 12px}
 body.swp-game .swp .swp-word{gap:2px}
 body.swp-game .swp .swp-cell,body.swp-game .swp .swp-cell input{width:24px}
 body.swp-game .swp .swp-cell input{height:44px;font-size:16px;font-weight:800}
 body.swp-game .swp .swp-num{font-size:14px;line-height:14px}
 body.swp-game .swp .swp-sep{height:44px}
 body.swp-game .swp .swp-status{font-size:14px;margin:0 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body.swp-game .swp .swp-current{min-height:32px;line-height:32px;margin:4px 0}
 body.swp-game .swp .swp-wheel{width:226px;height:226px;margin:4px auto 0}
 body.swp-game .swp .swp-wbtns{margin-top:10px}
}
@media (max-width:480px){
 body.swp-game .swp .swp-mark span{display:none}
 body.swp-game .swp .swp-meter{margin:6px 0 8px}
 body.swp-game .swp .swp-progress{margin:0 0 4px}
 body.swp-game .swp .swp-need{margin:0 0 8px}
}
@media (max-width:359px){body.swp-game .swp .swp-wheel{width:204px;height:204px}}
/* L9D5 + B1: tab row on every play page, clue line, Reveal a word */
.swp nav.swp-nav{display:flex;flex-wrap:nowrap;gap:6px;margin:10px 0}
.swp nav.swp-nav .sky-button{flex:1 1 0;min-width:0;min-height:44px;padding:0 6px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.swp nav.swp-nav .sky-button[aria-current="page"]{outline:3px solid #f5c518}
.swp nav.swp-nav .swp-ts{display:none}
@media (max-width:480px){.swp nav.swp-nav{margin-inline:-8px;gap:5px}.swp nav.swp-nav .sky-button{padding:0 3px;text-overflow:clip}}
@media (max-width:640px){.swp nav.swp-nav .swp-tl{display:none}.swp nav.swp-nav .swp-ts{display:inline}}   /* R5H7: six tabs need the short labels up to 640 px */
@media (max-width:767px){.swp nav.swp-nav .sky-button{flex:1 1 auto;text-overflow:clip}}
.swp .swp-clue{font-size:16px;margin:0 0 10px;font-weight:700}
.swp .swp-lbl-short{display:none}
@media (max-width:560px){
 .swp .swp-bar .swp-lbl-long{display:none}
 .swp .swp-bar .swp-lbl-short{display:inline}
 .swp .swp-bar .sky-button{min-width:0;padding-inline:4px;font-size:14px}
 body.swp-game .swp .sky-main{padding-top:0}
 body.swp-game .swp .swp-clue{margin:0 0 8px}
}
/* F7Q3: hub with three panels, rank line */
@media (min-width:768px) and (max-width:1023px){.swp .swp-panels>:nth-child(3){grid-column:1/-1}}
@media (min-width:1024px){.swp .swp-panels{grid-template-columns:1fr 1fr 1fr}}
.swp .swp-rank{margin-top:6px}
/* M8S4 + S1: Genie with the static scene (no animation; the SVG root carries the state class) */
.swp .swm-panel{position:relative}
.swp .swm-sound{position:absolute;top:10px;left:10px;z-index:2;min-height:44px;padding:0 12px;font-size:14px}
.swp .swm-bubble{position:absolute;left:46.76%;top:10%;width:36.76%;height:15.5%;margin:0;padding:0 6px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;text-align:center;font-size:16px;line-height:1.2;font-weight:700;color:#2a1a00;overflow:hidden}
.swp .swm-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 6px}
.swp .swm-cat{display:inline-block;font-size:14px;line-height:1.4;font-weight:800;padding:2px 10px;border-radius:999px;border:1px solid rgba(245,197,24,.75);color:#f5c518;margin:0}
.swp .swm-cat:empty{display:none}
.swp .swm-count{font-weight:800;font-size:16px}
.swm-q{border-radius:14px}
.swm-q.swm-certain{box-shadow:0 0 0 3px #f5c518;padding:8px}
.swp .swm-qtext{font-size:20px;line-height:1.3;font-weight:800;margin:0 0 10px}
.swp .swm-crowdline{font-size:14px;font-weight:800;margin:0 0 6px}
.swm-opts{display:flex;flex-direction:column;gap:8px}
.swp .swm-opt{position:relative;display:flex;align-items:center;gap:12px;width:100%;min-height:52px;box-sizing:border-box;padding:6px 12px;border-radius:12px;border:2px solid rgba(255,255,255,.45);background:rgba(255,255,255,.06);color:#fff;font-size:16px;font-weight:700;text-align:left;cursor:pointer;overflow:hidden}
.swp .swm-opt:hover:not(:disabled){border-color:#f5c518}
.swm-letter{flex:0 0 30px;height:30px;border-radius:50%;border:2px solid currentColor;display:inline-flex;align-items:center;justify-content:center;font-size:14px;font-weight:900}
.swp .swm-opt.swm-right{background:#1e7e34;border-color:#1e7e34;color:#fff}
.swp .swm-opt.swm-bad{background:#b3261e;border-color:#b3261e;color:#fff}
.swp .swm-opt.swm-correct{border-color:#f5c518;border-width:3px}
.swp .swm-opt.swm-dim{opacity:.55}
.swp .swm-opt:disabled{cursor:default}
.swp .swm-opt.swm-gone{display:none}
.swm-bar{position:absolute;left:0;bottom:0;height:4px;background:#f5c518}
.swp .swm-pct{margin-left:auto;font-size:14px;font-weight:800;padding-left:8px}
.swm-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
@media (max-width:479px){.swm-actions{flex-direction:column}.swm-actions .sky-button{width:100%}}
.swp .swm-keys{display:none;font-size:14px;margin:8px 0 0;opacity:.85}
@media (min-width:768px){.swp .swm-keys{display:block}}
.swp .swm-why{font-weight:700;margin:14px 0 0}
.swp .swm-rank{font-weight:800;margin:6px 0 0}
.swm-lanterns{display:inline-flex;gap:6px;align-items:center}
.swm-lanterns svg{width:28px;height:28px;display:block}
.swm-big svg{width:56px;height:56px}
.swm-big{gap:12px;margin:0 0 8px}
/* lantern path (Scroll page) */
.swp .swm-monthrow{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin:0 0 8px}
.swp .swm-month{font-size:18px;font-weight:800;margin:0}
.swm-monthbtns{display:flex;gap:8px}
.swm-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin:6px 0 10px}
.swp .swm-wd{font-size:14px;font-weight:800;text-align:center}
.swm-dcell{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:44px;border-radius:8px;background:rgba(255,255,255,.05)}
.swp .swm-dn{font-size:14px;line-height:1.2}
.swm-dots{display:flex;gap:2px}
.swm-dot{width:10px;height:10px;border-radius:50%;box-sizing:border-box;border:1px solid #c9c9c9}
.swm-dot.gold{background:#f5c518;border-color:#f5c518}
.swm-dot.half{background:linear-gradient(90deg,#f5c518 50%,#555 50%);border-color:#f5c518}
.swm-dot.dark{background:#555;border-color:#555}
/* The Scroll days */
.swp .swm-day h2{font-size:22px;margin:0 0 10px}
.swp .swm-day .swm-sq{margin:0 0 14px}
.swp .swm-day .swm-sq p{margin:0 0 4px}
.swp .swm-day .swm-sqt{font-weight:800}
/* phones: scene at panel width, height cap (M8S4 1.2), tight spacing on the Genie page */
@media (max-width:560px){
 .swp .swm-bubble{font-size:14px}
}
/* R5H7 W1.1: phones, the cropped scene (viewBox 110 24 470 180, max-height 110 px); the bubble overlay follows the bubble */
@media (max-width:767px){.swp .swm-bubble{font-size:14px;line-height:1.1}}
@media (max-width:560px){
 .swp .swm-meta{gap:8px;margin:6px 0}
 .swp .swm-meta .swm-cat,.swp .swm-meta .swm-count{font-size:14px}
 .swp .swm-qtext{font-size:18px}
 .swp .swm-opt{min-height:48px}
 .swm-opts{gap:4px}
}
/* R5H7 W1.1 a + W1.3: the hero is visually hidden on the three game pages up to 560 px (the h1 stays for screen readers) */
@media (max-width:560px){
 body.swp-game .sky-hero{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;margin:0;padding:0;border:0}
 body.swp-game .swp nav.swp-nav{margin-top:6px}
}
/* R5H7 PART 1: live Daily */
.swp .swp-cell.swp-bad input{border-color:#ff3b3b;color:#ff6b6b}
.swp .swp-cell.swp-shake{animation:swp-shake .3s linear 1}
@keyframes swp-shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
@media (prefers-reduced-motion:reduce){.swp .swp-cell.swp-shake{animation:none}}
.swp .swp-word.swp-wdone{box-shadow:0 2px 0 #f5c518}
.swp .swp-bank{display:flex;flex-direction:column;align-items:center;gap:2px;margin:12px 0 0}
.swp .swp-bankrow{display:flex;gap:2px;max-width:100%}
.swp .swp-bk{flex:0 1 24px;min-width:0;width:24px;height:44px;padding:0;border-radius:6px;border:1px solid rgba(255,255,255,.4);background:rgba(255,255,255,.06);color:#fff;font-size:14px;font-weight:800;cursor:pointer}
@media (min-width:560px){.swp .swp-bk{flex-basis:34px;width:34px}}
.swp .swp-bk.swp-bk-on{background:#f5c518;border-color:#f5c518;color:#2a1a00}
.swp .swp-meaning{font-weight:700}
/* R5H7 PART 2: countdown, practice note, badges, stats, archive */
.swp .swp-cd{font-weight:800;margin:14px 0 0}
.swp .swp-practice{border:2px solid #f5c518;border-radius:12px;padding:10px 14px;font-weight:800;margin:6px 0 10px}
.swp .swp-newbadge{font-weight:800;color:#f5c518;margin:6px 0 0}
.swp .swp-tiles{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (min-width:768px){.swp .swp-tiles{grid-template-columns:repeat(4,1fr)}}
.swp .swp-tile{border:1px solid rgba(255,255,255,.25);border-radius:14px;padding:12px;background:rgba(255,255,255,.04)}
.swp .swp-tile p{margin:0}
.swp .swp-tile-l{font-size:14px;opacity:.85}
.swp .swp-tile .swp-tile-v{font-size:24px;font-weight:900}
.swp .swp-strow{display:flex;flex-wrap:wrap;gap:6px 18px}
.swp .swp-strow p{margin:0}
.swp .swp-chart{display:grid;grid-template-columns:repeat(11,minmax(0,1fr));gap:4px;align-items:end;margin-top:14px}
.swp .swp-col{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;min-height:150px}
.swp .swp-colbar{width:100%;max-width:28px;background:#f5c518;border-radius:4px 4px 0 0;min-height:2px}
.swp .swp-colv,.swp .swp-coll{font-size:14px;line-height:1.3}
.swp .swp-badges{display:grid;grid-template-columns:1fr;gap:10px}
@media (min-width:768px){.swp .swp-badges{grid-template-columns:1fr 1fr}}
.swp .swp-badge{border-radius:12px;padding:10px 14px;border:1px solid rgba(255,255,255,.3)}
.swp .swp-badge p{margin:0}
.swp .swp-badge.on{border-color:#f5c518}
.swp .swp-badge.on .swp-badge-n{color:#f5c518}
.swp .swp-badge.off{opacity:.6}
.swp .swp-badge-n{font-weight:900}
.swp .swp-arlist{list-style:none;margin:0;padding:0}
.swp .swp-arrow{padding:10px 0;border-bottom:1px solid rgba(255,255,255,.15)}
.swp .swp-arrow .swp-row{margin-top:6px}
.swp .swp-ar-day{font-weight:800;margin:0}
/* six tabs: tighter up to 480 px */
@media (max-width:480px){.swp nav.swp-nav{gap:4px}.swp nav.swp-nav .sky-button{flex:1 1 auto;padding:0 2px}}
@media (max-width:767px){
 .swp[data-swp="wise"] .sky-section:has(.swm-panel){margin-top:8px}
 .swp[data-swp="wise"] nav.swp-nav{margin-block:6px}
 .swp[data-swp="wise"] .swp-hero-compact .sky-hero-inner{padding-block:8px}
 body.swp-game .swp .swm-panel{padding-top:8px}
 .swp .swm-qtext{line-height:1.25;margin:0 0 8px}
 .swm-opts{gap:4px}
 .swm-actions{margin-top:8px}
}
/* K3N7 round 4 */
.swp .swp-statusrow{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 8px}
.swp .swp-statusrow .swp-status{margin:0}
.swp .swp-status.swp-danger{color:#ff6b6b}
.swp .swp-left{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0 0 10px}
.swp .swp-left-l{font-size:14px;font-weight:800}
.swp .swp-chip{font-size:14px;padding:2px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.35)}
.swp .swp-chip.done{color:#f5c518;border-color:#f5c518;font-weight:800}
.swp .swp-msg.swp-goldmsg{color:#f5c518}
.swp .swp-tile.centre.swp-pulse{animation:swp-pulse .5s ease-in-out 2}
@keyframes swp-pulse{0%,100%{box-shadow:0 0 0 0 rgba(245,197,24,0)}50%{box-shadow:0 0 0 6px rgba(245,197,24,.9)}}
@media (prefers-reduced-motion:reduce){.swp .swp-tile.centre.swp-pulse{animation:none}}
.swp .swp-welcome{border:2px solid #f5c518;margin:0 0 12px}
.swp .swp-welcome ol{margin:0;padding-left:22px}
.swp .swp-welcome li{margin:0 0 4px}
.swp .swp-howto-row{display:flex;justify-content:flex-end}
.swp .swp-beat{border:2px solid #f5c518;border-radius:14px;padding:10px 14px;margin:0 0 14px;font-weight:800}
.swp .swp-beat p{margin:0}
.swp .swp-daystrip{margin:14px 0 0}
.swp .swp-daystrip p{margin:0;font-weight:800}
.swp .swp-house{margin:14px 0 0;border:2px solid #f5c518}
.swp .swp-house-line{margin:12px 0 0}
.swp .swp-house-line p{margin:0;font-weight:800}
.swp .swp-house-line .swp-row{margin-top:8px}
.swp .swp-week-line{font-weight:800;margin:6px 0}
.swp .swp-lastweek{margin-top:14px}.swp [hidden]{display:none!important}
/* D4J9 round 5: game first */
.swp .swm-bubble{font-size:14px;line-height:1.1}
.swp .swm-plain{font-size:14px;font-weight:700;text-align:center;margin:0 0 8px}
.swp .swp-dpanel .swp-clue{font-size:16px;margin:0 0 8px}
.swp .swp-welcome{border:2px solid #f5c518;border-radius:12px;padding:12px;margin:0 0 12px}
@media (min-width:561px){
 body.swp-game .sky-hero .sky-overline,body.swp-game .sky-hero .sky-hero-lede,body.swp-game .sky-hero .sky-decoration{display:none}
 body.swp-game .swp .swp-hero-compact .sky-hero-inner{padding-block:14px}
 body.swp-game .sky-hero h1{font-size:28px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
 body.swp-game .swp nav.swp-nav{margin-block:10px}
 body.swp-game .swp .sky-main .sky-section:first-of-type{margin-top:10px}
 body.swp-game .swp .sky-main{padding-top:0}
}
@media (max-width:560px){
 body.swp-compact .sky-header-inner{flex-direction:row;flex-wrap:nowrap;justify-content:space-between;align-items:center;min-height:56px;padding-block:6px;gap:12px}
 body.swp-compact .sky-brand-sub{display:none}
 body.swp-compact .sky-header nav{display:flex;flex-wrap:nowrap;gap:0;margin:0}
 body.swp-compact .sky-header nav a{display:none}
 body.swp-compact .sky-header nav a[href="/play/"]{display:inline-flex;align-items:center;min-height:44px;padding:0 6px}
 body.swp-compact .s2-search{display:none}
 body.swp-compact .sky-hero .sky-overline,body.swp-compact .sky-hero .sky-hero-lede,body.swp-compact .sky-hero .sky-decoration{display:none}
 body.swp-compact .swp .swp-hero-compact .sky-hero-inner{padding-block:10px}
 body.swp-compact .sky-hero h1{font-size:22px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
 body.swp-compact .swp-h1-long{display:none}
 body.swp-compact .swp-h1-short{display:inline}
 body.swp-compact .swp .sky-main{padding-top:0}
 body.swp-compact .swp nav.swp-nav{margin-block:6px}
 body.swp-compact .swp .sky-main .sky-section:first-of-type{margin-top:6px}
 body.swp-compact .swp[data-swp="hub"] .swp-panels{gap:8px}
 body.swp-compact .swp[data-swp="hub"] .swp-panels .sky-search-panel{padding:12px}
 body.swp-compact .swp[data-swp="hub"] .swp-panels h2{font-size:18px;margin:0 0 4px}
 body.swp-compact .swp[data-swp="hub"] .swp-panels p{margin:0 0 6px}
 body.swp-compact .swp[data-swp="hub"] .swp-panels .swp-status{margin:0 0 8px}
}
@media (max-width:560px){body.swp-game .swp .sky-main .sky-section:first-of-type{margin-top:6px}}
/* P2W6 round 6 */
.swp .swp-sound,.swp .swm-sound{position:static;margin-left:auto;min-height:44px;height:44px;padding:0 12px;font-size:14px;white-space:nowrap;flex:0 0 auto}
.swp .swm-meta{flex-wrap:nowrap}
.swp .swp-prow{display:flex;align-items:center;gap:8px;margin:0 0 6px}
.swp .swp-prow .swp-progress{margin:0}
.swp .swp-statusrow{flex-wrap:nowrap}
.swp .swp-statusrow .swp-status{min-width:0}
.swp .swp-codetext{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:20px;font-weight:800;letter-spacing:.06em;margin:10px 0}
.swp .swp-device{margin:6px 0 0}
.swp .swp-device a{display:inline-flex;align-items:center;min-height:44px;font-weight:700}
.swp .swp-devpanel input{min-height:44px;height:44px}
.swp .swp-dev-msg{font-weight:800;min-height:24px}
@media (max-width:560px){.swp .swm-meta{margin:4px 0}.swp .swp-statusrow{margin:0 0 4px}}
.swp .swp-bar .swp-sound{margin-left:0;flex:1 1 0;min-width:0;padding:0 4px}
/* P2W6 P-6: give back the height the 44 px toggle adds to its row */
.swp .swm-meta{margin:0}
.swp .swm-qtext{margin-bottom:6px}
.swp .swp-statusrow{margin:0 0 2px}
.swp .swp-dpanel .swp-clue{margin:0 0 2px}
.swp .swp-prow{margin:0}
.swp .swp-current{margin:0}
.swp .swp-wheel{margin:2px auto}
@media (max-width:560px){
 .swp .swm-meta{margin:0}
 .swp .swm-qtext{margin:2px 0 4px}
 body.swp-game .swp .swp-current{margin:0}
 body.swp-game .swp .swp-wheel{margin:0 auto}
 body.swp-game .swp .swp-meter{margin:4px 0 4px}
}
@media (max-width:339px){.swp .swp-bar .sky-button,.swp .swp-bar .swp-sound{flex:1 1 auto;padding:0 3px}}
@media (min-width:561px){.swp .swp-need{margin:0 0 4px}}
/* Y3S8 Genie painted stage */
.swm-frame{border-radius:22px;padding:5px;margin:12px 0 0;background:linear-gradient(135deg,#ffe08a,#b9741a 30%,#7d3fd0 60%,#ffd56a);box-shadow:0 0 28px rgba(138,77,255,.53),0 0 60px rgba(245,184,58,.2)}
.swm-stage{position:relative;border-radius:18px;overflow:hidden;aspect-ratio:2048/768;background:#150c2e url(/play/assets/wise-scene-800.webp) center/cover no-repeat}
@media(min-width:820px){.swm-stage{background-image:url(/play/assets/wise-scene-1600.webp)}}
.swm-frame ~ .swm-bubble,.swm-stage .swm-bubble{position:static;left:auto;top:auto;width:auto;height:auto;overflow:visible;display:block;box-sizing:border-box;background:#fff8e6;color:#2b1a05;border:2px solid #e9b84a;border-radius:16px;padding:10px 12px;font-weight:600;font-size:16px;line-height:1.3;margin:10px 0 0;box-shadow:0 6px 18px rgba(0,0,0,.6);cursor:default}
.swm-stage .swm-bubble{position:absolute;left:36.5%;top:7%;width:18.5%;min-height:22%;max-height:42%;margin:0;font-size:15px;display:flex;align-items:center;overflow:hidden}
.swm-stage .swm-bubble::after{content:"";position:absolute;left:-12px;bottom:14px;border:8px solid transparent;border-right-color:#e9b84a}
.swm-lamps{display:flex;gap:10px;justify-content:center;padding:12px 0 4px}
.swm-lamp{width:34px;height:42px;box-sizing:border-box;border-radius:9px 9px 12px 12px;border:2px solid #7a5a1c;background:#2a1c10}
.swm-lamp.is-now{border-color:#ffe08a;animation:swm-pulse 1.4s infinite}
.swm-lamp.is-right{background:radial-gradient(#fff3b0,#f5a71a);box-shadow:0 0 16px #f5b83a}
.swm-lamp.is-wrong{border-color:#ff9aa8;background:#3a1420}
@keyframes swm-pulse{50%{box-shadow:0 0 14px #ffe08a}}
.swm-panel .swm-qtext{margin:6px 0 14px;padding:16px 18px;min-height:74px;box-sizing:border-box;text-align:center;font-size:22px;line-height:1.3;font-weight:700;color:#f6ecd2;background:linear-gradient(#2a1a55,#1c1140);border:2px solid #e9b84a;border-radius:16px;box-shadow:inset 0 0 22px rgba(125,63,208,.33)}
@media(max-width:700px){.swm-panel .swm-qtext{font-size:19px}}
.swm-panel .swm-opt{min-height:52px;border:2px solid #5b46a3;border-radius:14px;background:linear-gradient(#2b1d5c,#20144a);color:#fff;font-size:17px;opacity:0;transform:translateY(14px);transition:opacity .35s,transform .35s}
.swm-panel .swm-opt.is-in{opacity:1;transform:none}
.swm-panel .swm-letter{background:linear-gradient(#ffd96b,#e9a520);color:#2a1700;font-weight:800;border-color:#ffe9a8}
.swm-panel .swm-opt.swm-correct{background:linear-gradient(#1f7a48,#12552f);border-color:#7df0a8;border-width:2px}
.swm-panel .swm-opt.swm-right{background:linear-gradient(#1f7a48,#12552f);border-color:#ffe08a;box-shadow:0 0 14px #f5b83a}
.swm-panel .swm-opt.swm-bad{background:linear-gradient(#8a2338,#5c1322);border-color:#ff9aa8;box-shadow:0 0 14px #f5b83a}
.swm-panel .swm-opt.swm-dim{opacity:.55}
.swm-panel .swm-opt.swm-gone{display:flex;opacity:.25}
@media(prefers-reduced-motion:reduce){.swm-panel .swm-opt{transform:none;transition:opacity .35s!important}.swm-stage::after{transition:none}.swm-lamp.is-now{animation:none}}
/* N7B4 painted stages for the Daily cipher and the Word Wheel */
.swd-stage{background-image:url(/play/assets/cipher-scene-800.webp)}
.swc-stage{background-image:url(/play/assets/wheel-scene-800.webp)}
@media(min-width:820px){.swd-stage{background-image:url(/play/assets/cipher-scene-1600.webp)}.swc-stage{background-image:url(/play/assets/wheel-scene-1600.webp)}}
.swd-stage .swm-bubble{left:34%;top:10%;width:30%;min-height:20%;max-height:50%}
.swc-stage .swm-bubble{left:50%;top:8%;width:26%;min-height:20%;max-height:42%}
.swp-dpanel .swp-cell input{border:2px solid #5b46a3;border-radius:10px;background:linear-gradient(#2b1d5c,#20144a);color:#fff}
.swp-dpanel .swp-cell.swp-known input{border-color:#ffe9a8;background:linear-gradient(#ffd96b,#e9a520);color:#2a1700}
.swc-stage ~ .swp-wheel .swp-tile,.swm-frame ~ .swp-wheel .swp-tile{border:2px solid #ffe9a8;background:linear-gradient(#3a2878,#22154d);color:#fff;font-weight:800;box-shadow:0 4px 0 #120a2b,0 0 10px rgba(125,63,208,.5)}
.swm-frame ~ .swp-wheel .swp-tile.centre{background:linear-gradient(#ffd96b,#e9a520);color:#2a1700;box-shadow:0 4px 0 #7a4a00,0 0 18px #f5b83a}
/* R6F2 Genie banner, pond and ornaments */
.swm-frame{position:relative;margin-top:40px}
.swm-orn{position:absolute;z-index:2;pointer-events:none;background:center/contain no-repeat}
.swm-orn-l{left:-10px;top:-22px;width:92px;height:46px;background-image:url(/play/assets/wise-orn-cloud.webp)}
.swm-orn-r{right:-10px;top:-22px;width:92px;height:46px;background-image:url(/play/assets/wise-orn-cloud.webp);transform:scaleX(-1)}
.swm-orn-top{left:50%;top:-34px;width:90px;height:50px;margin-left:-45px;background-image:url(/play/assets/wise-orn-lotus.webp)}
.swm-lamps{align-items:center}
.swm-swirl{width:74px;height:18px;background:url(/play/assets/wise-orn-swirl.webp) center/contain no-repeat}
.swm-swirl-r{transform:scaleX(-1)}
.swm-panel .swm-qtext{border:0;border-radius:0;box-shadow:none;color:#2a1650;display:flex;align-items:center;justify-content:center;min-height:150px;padding:48px 17% 40px;background:url(/play/assets/wise-banner-left.webp) left center/auto 100% no-repeat,url(/play/assets/wise-banner-right.webp) right center/auto 100% no-repeat,url(/play/assets/wise-banner-mid.webp) center/auto 100% no-repeat,url(/play/assets/wise-banner-fill.webp) center/auto 100% repeat-x}
@media(max-width:700px){.swm-panel .swm-qtext{min-height:124px;padding:40px 15% 33px;font-size:18px}.swm-orn-l,.swm-orn-r{width:64px;height:32px;top:-16px}.swm-swirl{width:50px;height:12px}}
.swm-panel .swm-opt{background:url(/play/assets/wise-orn-purple.webp) right 12px center/auto 70% no-repeat,linear-gradient(#2b1d5c,#20144a)}
.swm-pond{aspect-ratio:1600/290;margin:-36px -1px -1px;pointer-events:none;background:url(/play/assets/wise-pond.webp) bottom center/cover no-repeat}
.swm-actions{position:relative;z-index:1}
/* E5K1 ornaments, pond and wheel board for the Daily cipher and the Word Wheel */
@media(min-width:701px){.swp-dpanel #swp-clue{color:#2a1650;font-weight:700;font-size:20px;line-height:1.3;text-align:center;display:flex;align-items:center;justify-content:center;min-height:150px;padding:48px 17% 40px;background:url(/play/assets/wise-banner-left.webp) left center/auto 100% no-repeat,url(/play/assets/wise-banner-right.webp) right center/auto 100% no-repeat,url(/play/assets/wise-banner-mid.webp) center/auto 100% no-repeat,url(/play/assets/wise-banner-fill.webp) center/auto 100% repeat-x}}
.swp-dpanel #swp-clue:empty{display:none}
.swc-wheel#swp-wheel{position:relative;margin-top:62px;margin-bottom:62px}
.swc-wheel::before{content:"";position:absolute;left:50%;top:50%;width:360px;height:360px;margin:-180px 0 0 -180px;z-index:0;pointer-events:none;background:url(/play/assets/wheel-board.webp) center/contain no-repeat}
.swc-wheel .swp-tile{z-index:1}
@media(max-width:420px){.swc-wheel#swp-wheel{margin-top:47px;margin-bottom:47px}.swc-wheel::before{width:330px;height:330px;margin:-165px 0 0 -165px}}
.swm-frame ~ .swp-howto-row{position:relative;z-index:1}
/* H2V6 reacting scenes */
.swm-stage::after{content:"";position:absolute;inset:0;z-index:0;opacity:0;transition:opacity .4s;background:center/cover no-repeat;pointer-events:none}
.swm-stage .swm-bubble{z-index:1}
.swm-stage.is-pleased::after,.swm-stage.is-sad::after,.swm-stage.is-happy::after{opacity:1}
.swm-stage.is-pleased::after{background-image:url(/play/assets/wise-scene-pleased-800.webp)}
.swm-stage.is-sad::after{background-image:url(/play/assets/wise-scene-sad-800.webp)}
.swd-stage.is-happy::after{background-image:url(/play/assets/cipher-scene-happy-800.webp)}
.swc-stage.is-happy::after{background-image:url(/play/assets/wheel-scene-happy-800.webp)}
@media(min-width:820px){.swm-stage.is-pleased::after{background-image:url(/play/assets/wise-scene-pleased-1600.webp)}.swm-stage.is-sad::after{background-image:url(/play/assets/wise-scene-sad-1600.webp)}.swd-stage.is-happy::after{background-image:url(/play/assets/cipher-scene-happy-1600.webp)}.swc-stage.is-happy::after{background-image:url(/play/assets/wheel-scene-happy-1600.webp)}}
@media(prefers-reduced-motion:reduce){.swm-stage::after{transition:none}}
/* C8M3 polish pass */
@media(max-width:560px){.swm-panel .swm-qtext{min-height:0;padding:26px 16px 18px;border-radius:14px;background:#f7ecd4;border:2px solid #e9b84a;position:relative;overflow:visible}.swm-panel .swm-qtext::before{content:"";position:absolute;left:50%;top:-18px;width:62px;height:34px;margin-left:-31px;background:url(/play/assets/wise-orn-lotus.webp) center/contain no-repeat}}
@media(max-width:380px){.swm-panel .swm-meta{gap:6px}.swm-panel .swm-meta .swm-count{font-size:13px;white-space:nowrap}.swm-panel .swm-meta .swm-cat{font-size:12px;padding:2px 8px}}
.swm-frame ~ .swp-prow ~ #swp-need{color:#e8c76a;font-weight:600}
.swm-frame ~ .swp-meter{background:#2b1d5c;border-radius:6px}
.swm-frame ~ .swp-meter .swp-meter-fill{background:linear-gradient(90deg,#ffd96b,#e9a520);border-radius:6px}
.swm-frame ~ .swp-howto-row{margin-bottom:44px}
.swc-wheel .swp-tile{border-radius:50%;padding:0}
/* J4T8 concept round */
.swc-secret{margin:8px 0 0;font-size:14px;font-weight:600;color:#e8c76a}
.swc-secret:empty{display:none}
.swp-crown{display:inline-block;vertical-align:-1px;margin-left:6px}
/* G9R5 Play hub stage */
.swh-stage{background-image:url(/play/assets/hub-scene-800.webp)}
@media(min-width:820px){.swh-stage{background-image:url(/play/assets/hub-scene-1600.webp)}}
.swh-stage .swh-greet{position:absolute;left:50%;top:5%;transform:translateX(-50%);margin:0;z-index:1;font-weight:800;font-size:22px;letter-spacing:.02em;color:#ffe9a8;white-space:nowrap;text-shadow:0 2px 10px rgba(0,0,0,.85),0 0 24px rgba(0,0,0,.6)}
@media(max-width:1000px){.swh-stage .swh-greet{font-size:16px}}
@media(max-width:560px){.swh-stage .swh-greet{position:static;transform:none;white-space:normal;text-align:center;color:#f5c95a;padding:8px 12px 0}}
.swm-frame ~ .swp-row{position:relative;z-index:1;margin-bottom:44px}
/* T9X2 The Genie's Path */
.swm-stage.st-gate{background-image:url(/play/assets/gate-scene-800.webp)}
.swm-stage.st-trial{background-image:url(/play/assets/trial-scene-800.webp)}
.swm-stage.st-summit{background-image:url(/play/assets/summit-scene-800.webp)}
.swm-stage.st-finale{background-image:url(/play/assets/finale-scene-800.webp)}
@media(min-width:820px){.swm-stage.st-gate{background-image:url(/play/assets/gate-scene-1600.webp)}.swm-stage.st-trial{background-image:url(/play/assets/trial-scene-1600.webp)}.swm-stage.st-summit{background-image:url(/play/assets/summit-scene-1600.webp)}.swm-stage.st-finale{background-image:url(/play/assets/finale-scene-1600.webp)}}
.swm-path{display:flex;justify-content:center;gap:22px;margin:12px 0 0}
.swm-station{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:11px;line-height:1.2;color:#a99ad6;opacity:.6}
.swm-station i{display:block;width:14px;height:14px;box-sizing:border-box;border-radius:50%;border:2px solid #7d6bbf;background:#20144a}
.swm-station b{font-weight:700}
.swm-station.is-done{opacity:1;color:#f5c95a}
.swm-station.is-done i{background:#f5c518;border-color:#ffe08a}
.swm-station.is-now{opacity:1;color:#ffe9a8}
.swm-station.is-now i{border-color:#ffe08a;box-shadow:0 0 0 3px rgba(255,224,138,.35);animation:swm-ring 1.4s infinite}
@keyframes swm-ring{50%{box-shadow:0 0 0 6px rgba(255,224,138,.12)}}
@media(prefers-reduced-motion:reduce){.swm-station.is-now i{animation:none}}
.swm-fuse{height:6px;margin:-6px 0 12px;border-radius:3px;background:rgba(255,255,255,.12);overflow:hidden}
.swm-fuse span{display:block;height:100%;background:linear-gradient(90deg,#ffd96b,#e9a520);transform-origin:right center}
.swm-fuse.swm-fuse-text{height:auto;overflow:visible;background:none;text-align:center;font-weight:800;font-size:22px;color:#ffe9a8;margin:0 0 10px}
.swm-stage .swm-fin{position:absolute;left:50%;top:5%;transform:translateX(-50%);margin:0;z-index:1;font-weight:800;font-size:22px;letter-spacing:.02em;color:#ffe9a8;white-space:nowrap;text-shadow:0 2px 10px rgba(0,0,0,.85),0 0 24px rgba(0,0,0,.6)}
@media(max-width:1000px){.swm-stage .swm-fin{font-size:16px}}
.swm-panel .swm-lamps[hidden],.swm-panel .swm-path[hidden],.swm-panel .swm-bubble[hidden]{display:none}
/* G9R5 phone amendment: the greeting moved after the frame (below 560 px), styled as before: static, centred, gold on dark */
.swm-frame ~ .swh-greet{position:static;transform:none;margin:0;padding:8px 12px 0;font-weight:800;font-size:16px;letter-spacing:.02em;line-height:1.3;white-space:normal;text-align:center;color:#f5c95a;text-shadow:0 2px 10px rgba(0,0,0,.85),0 0 24px rgba(0,0,0,.6)}
/* P3F6 the night card, path seals, Daily [hidden] */
.swm-panel .swm-card{display:flex;flex-direction:column;align-items:center;gap:8px;margin:12px 0 0}
.swm-panel .swm-card[hidden],.swm-panel .swm-night-fb[hidden]{display:none}
.swm-panel .swm-night-fb{display:block;box-sizing:border-box;width:100%;max-width:420px;padding:8px 10px;border-radius:8px;border:1px solid #7d6bbf;background:#1a1240;color:#fff;font:inherit;font-size:14px;line-height:1.4;resize:none}
.swm-marks{display:flex;flex-wrap:wrap;gap:3px;align-items:center;justify-content:center;max-width:100%;min-height:14px}
@media(max-width:400px){.swm-marks{gap:1px}.swm-marks .swm-mk-gate{width:6px;height:6px}}
.swm-mk{display:inline-flex;align-items:center}
.swm-mk-gate{display:block;width:8px;height:8px;border-radius:50%;background:#f5c518}
.swp-dpanel .swm-bubble[hidden]{display:none}
/* T9X2-D1 */
.swm-panel #swm-sum[hidden],.swm-panel #swm-night[hidden]{display:none}
.swm-panel .swm-nightline{margin:4px 0 6px;font-weight:800;font-size:15px;color:#f5c95a}
.swm-panel .swm-nightline:empty{display:none}
/* L2K9: the Connect Word header shell carries a CONNECT WORD badge on the logo; not on the daily games */
html body.sa-skin header.top a.brand::after{content:none;display:none}
/* L2K9: Cipher and Wheel are a few px wider than the private Daily and Wise labels; below 340 px the tab text steps down 1 px */
@media(max-width:339px){.swp .swp-tabs a.sky-button{font-size:13px}}
/* L2K9: intro text under the stage / above How to play */
.swp .swp-intro{max-width:760px;margin:14px auto 0;font-size:16px;line-height:1.65;color:rgba(255,255,255,.88)}
.swp .swp-intro-sec .swp-intro{margin:0 auto}
/* M2H8: welcome box open by default; after Got it a "How it works" button holds its place (44 px), 8 px above the stage */
.swp .swp-wopen-row{display:flex;justify-content:center;margin:0 0 8px;padding:0 12px}
.swp .swp-wopen-row[hidden]{display:none}
html.swp-wh .swp #swp-welcome{display:none}
html.swp-wh .swp .swp-wopen-row[hidden]{display:flex}
html.swp-wd .swp #swp-welcome,html.swp-wd .swp .swp-wopen-row{display:none}
.swp .swp-wopen{background:none;border:0;min-height:44px;padding:8px 10px;font-size:15px;font-weight:800;color:#f5c518;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.pg-night .swp .swp-wopen-row.pg-parch .swp-wopen{color:#8a5a00}
/* M2H8 rule 7: collapsed, the stage frame keeps only room for its corner ornaments (22 px, 16 px on phones) + 8 px empty gap */
.swp .swp-wopen-row:not([hidden])+.swm-frame,html.swp-wh .swp .swp-wopen-row+.swm-frame{margin-top:30px}
@media(max-width:560px){.swp .swp-wopen-row:not([hidden])+.swm-frame,html.swp-wh .swp .swp-wopen-row+.swm-frame{margin-top:24px}}
/* S1M3: trophy shelf (hub) + rank chip (game pages); heights reserved in the HTML (no layout shift) */
.swp .swp-shelf-sec{margin-top:28px}
.swp .swp-shelf{padding:18px}
.swp .swp-shelf-art{position:relative;aspect-ratio:2/1;width:100%}
.swp .swp-shelf-clip{position:absolute;left:0;top:0;width:100%;height:100%;overflow:hidden;border-radius:12px}
.swp .swp-shelf-zoom{position:absolute;left:0;top:0;width:100%;height:100%}
.swp .swp-shelf-img{display:block;width:100%;height:100%;object-fit:cover}
.swp .swp-slot{position:absolute;width:8%;aspect-ratio:1/1;min-width:44px;min-height:44px;transform:translate(-50%,-100%);background:none;border:0;padding:0;margin:0;border-radius:50%;cursor:pointer;display:block}
.swp .swp-slot[data-k^="s2-"]{width:7.6%}
.swp .swp-slot img{display:block;width:100%;height:100%;object-fit:contain}
.swp .swp-slot:not(.is-earned) img{opacity:.28;filter:grayscale(1)}
.swp .swp-slot:focus-visible{outline:3px solid #f5c518;outline-offset:2px}
.swp .swp-slot-n{position:absolute;left:50%;top:100%;transform:translate(-50%,2px);background:#f5c518;color:#2a1650;border-radius:9px;padding:0 6px;font-size:12px;font-weight:800;line-height:18px;white-space:nowrap}
.swp .swp-slot.is-new img{animation:swpGlow .6s ease-out}
@keyframes swpGlow{0%{filter:drop-shadow(0 0 0 #f5c518)}50%{filter:drop-shadow(0 0 14px #f5c518)}100%{filter:drop-shadow(0 0 0 #f5c518)}}
@media (prefers-reduced-motion:reduce){.swp .swp-slot.is-new img{animation:none}}
.swp .swp-tip{position:absolute;z-index:5;max-width:240px;padding:8px 12px;font-size:14px;line-height:1.4;pointer-events:none}
.swp .swp-shelf-line{margin:14px auto 0;max-width:760px;padding:10px 16px;text-align:center;font-size:16px;font-weight:700;min-height:44px;box-sizing:border-box}
/* S1M3 CLS-FIX B: Cipher and Wheel on phones: the game area keeps its place but stays invisible until the first state has rendered (3 s fallback) */
@media(max-width:560px){html.swp-wait .swp .sky-main>:not(.swp-nav):not(.swp-chiprow){visibility:hidden}}
.swp .swp-chiprow{display:flex;justify-content:center;margin:10px 0 0;min-height:36px}
.swp .swp-chip{display:inline-flex;align-items:center;min-height:36px;padding:4px 14px;border-radius:18px;font-size:15px;font-weight:800;text-decoration:none;white-space:nowrap}
/* phones: a slimmer frame reaching 14 px into the page margin, and the art cropped to the cabinet (x 21.4-78.4 %, y 22-94 %) so the stands sit 44 px or more apart at 360 */
@media(max-width:600px){.pg-night .swp .swp-shelf{border-width:14px;padding:0;margin:0 -14px}.swp .swp-shelf-art{aspect-ratio:912/576}.swp .swp-shelf-zoom{left:-37.54%;top:-30.56%;width:175.44%;height:138.89%}}
@media(max-width:340px){.swp .swp-slot{min-width:0;min-height:0}}
/* S2E5 Season 2: the four new Genie scenes, the moonlit wheel scene, reactions without pleased/sad art, the 8-station path, the new-stop panel, the moonlit wheel panel */
.swm-stage.st-bridge{background-image:url(/play/assets/scene-bridge-800.webp)}
.swm-stage.st-pond{background-image:url(/play/assets/scene-pond-800.webp)}
.swm-stage.st-library{background-image:url(/play/assets/scene-library-800.webp)}
.swm-stage.st-moon{background-image:url(/play/assets/scene-moon-800.webp)}
.swc-stage.st-moonwheel{background-image:url(/play/assets/scene-moonwheel-800.webp)!important}
@media(min-width:820px){.swm-stage.st-bridge{background-image:url(/play/assets/scene-bridge-1600.webp)}.swm-stage.st-pond{background-image:url(/play/assets/scene-pond-1600.webp)}.swm-stage.st-library{background-image:url(/play/assets/scene-library-1600.webp)}.swm-stage.st-moon{background-image:url(/play/assets/scene-moon-1600.webp)}.swc-stage.st-moonwheel{background-image:url(/play/assets/scene-moonwheel-1600.webp)!important}}
.swm-stage.x-right::after,.swm-stage.x-wrong::after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;animation:swmX .5s ease-out forwards}
.swm-stage.x-right::after{box-shadow:inset 0 0 60px 18px rgba(245,197,24,.75)}
.swm-stage.x-wrong::after{box-shadow:inset 0 0 90px 30px rgba(110,40,20,.7)}
@keyframes swmX{0%{opacity:0}35%{opacity:1}100%{opacity:0}}
@media(prefers-reduced-motion:reduce){.swm-stage.x-right::after,.swm-stage.x-wrong::after{animation:none;opacity:1}}
.swm-path .swm-station[hidden]{display:none}
.swm-path .swm-station.is-locked{opacity:.45}
.swm-path .swm-station.is-locked i{border-style:dashed}
@media(max-width:560px){.swm-path.is-8 .swm-station b{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.swm-path.is-8{gap:6px}}
.swp .swm-x .swm-x-text{font-size:18px;line-height:1.45;font-weight:700;margin:6px 0 12px}
.swp .swm-x-tiles{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:4px 0 12px}
.swp .swm-x-tiles .swm-tile{min-width:44px;min-height:44px;padding:0 10px;border-radius:10px;border:2px solid #e9b84a;background:#f7ecd4;color:#2a1650;font-size:20px;font-weight:800;cursor:pointer}
.swp .swm-x-tiles .swm-tile:disabled{opacity:.35;cursor:default}
.swp .swm-x-form{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:0 0 10px}
.swp .swm-x-form .swp-in{min-height:44px;font-size:20px;letter-spacing:.12em;text-transform:uppercase;text-align:center;max-width:260px;width:100%;box-sizing:border-box}
.swp .swm-x-msg{min-height:24px;margin:8px 0 0;text-align:center}
.swp .swc-moon{margin:16px auto 0;max-width:640px;padding:16px;text-align:center;box-sizing:border-box}
.swp .swc-moon h3{margin:0 0 6px;font-size:20px}
.swp .swc-moon-ring{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:10px 0}
.swp .swc-moon-tile{min-width:44px;min-height:44px;border-radius:50%;border:2px solid #e9b84a;background:#2a1650;color:#fff;font-size:20px;font-weight:800;cursor:pointer}
.swp .swc-moon-tile.is-centre{background:#f5c518;color:#2a1650}
.swp #swc-moon-form{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.swp #swc-moon-form .swp-in{min-height:44px;font-size:18px;text-transform:uppercase;text-align:center;max-width:240px;width:100%;box-sizing:border-box}
/* the new scenes keep their upper-right quarter calm for the genie's bubble */
.swm-stage.st-bridge .swm-bubble,.swm-stage.st-pond .swm-bubble,.swm-stage.st-library .swm-bubble,.swm-stage.st-moon .swm-bubble{left:70%;top:6%;width:26%}
/* PART 4: the secret scroll board (one cell per letter, number under it; words wrap as whole units) */
.swd-stage.st-scroll{background-image:url(/play/assets/scene-scroll-800.webp)!important}
@media(min-width:820px){.swd-stage.st-scroll{background-image:url(/play/assets/scene-scroll-1600.webp)!important}}
.swp .swd-scroll-board{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 16px;margin:10px 0}
.swp .swd-sw{display:inline-flex;gap:3px;flex-wrap:nowrap}
.swp .swd-sc{display:inline-flex;flex-direction:column;align-items:center;justify-content:space-between;width:30px;min-height:44px;padding:2px 0;border:0;border-bottom:2px solid #e9b84a;background:none;color:#2a1650;cursor:pointer}
.swp .swd-sc.is-sel{background:#f5c518;border-radius:6px}
.swp .swd-sc.is-known{cursor:default}
.swp .swd-sl{font-size:18px;font-weight:800;min-height:22px;line-height:22px}
.swp .swd-sn{font-size:11px;opacity:.75}
.swp .swd-sp{font-size:18px;font-weight:800;align-self:flex-end}
.swp #swd-scroll-in{width:64px;min-height:44px;font-size:20px;text-align:center;text-transform:uppercase;margin:8px auto 0;display:block}
.swp .swd-scroll-status{font-weight:800;margin:4px 0}
.swp .swd-scroll-clue{font-style:italic;margin:4px 0 0}
@media(max-width:400px){.swp .swd-sc{width:26px}.swp .swd-scroll-board{gap:10px 12px}}
/* S2E5 PART 6: eight Genie step cards, 4 per row from 600 px, 2 below */
@media(min-width:600px){.pg-night main[data-swp="wise"] .pg-steps{grid-template-columns:repeat(4,1fr)}}
/* Y8D3 */
/* Y8D3 painted page skin (public daily-game pages only). Every rule is scoped by .pg-night (the body class) so it outranks the panel rules it replaces. */
/* 1.1 page background */
html body.pg-night{background:#140c2c url(/play/assets/page-bg.webp) center top/cover fixed no-repeat}
@media(max-width:700px){html body.pg-night{background-attachment:scroll;background-size:cover}}
/* 1.2 title banner (h1 + lede stay in the HTML; the lede is hidden on screen) */
.pg-night .pg-title{width:min(100%,760px);aspect-ratio:1600/533;margin:8px auto 0;display:flex;align-items:center;justify-content:center;background:url(/play/assets/title-banner.webp) center/contain no-repeat;padding:0;box-sizing:border-box}   /* the 16% side inset is applied to the h1 (68% of the banner): percentage padding here would be taken from the full-width hero */
.pg-night .sky-hero .pg-title h1{margin:0;text-align:center;font-weight:800;font-size:clamp(18px,3.2vw,34px);line-height:1.1;color:#2a1650;max-width:68%;white-space:normal;overflow:visible;text-overflow:clip;text-shadow:none;letter-spacing:normal}   /* outranks body.swp-game .sky-hero h1 (nowrap + ellipsis on game pages) */
.pg-night .sky-hero .pg-title h1 em{color:inherit;font-style:normal;background:none;-webkit-text-fill-color:currentColor}
.pg-night .pg-title .lede{display:none}
/* 1.3 painted frame on the main panels (replaces the rainbow border; the stage frame inside stays) */
.pg-night .pg-frame{border:58px solid transparent;border-image:url(/play/assets/frame-9.webp) 230 round;background:rgba(20,12,46,.92) padding-box;border-radius:0;position:relative;overflow-x:clip;overflow-y:visible;box-shadow:none;outline:0}   /* crest and bottom ornament overhang vertically; sideways stays clipped like the original panel (the wheel board's halo) */
@media(max-width:700px){.pg-night .pg-frame{border-width:34px}}
.pg-night .pg-frame::before{content:"";position:absolute;left:50%;top:-30px;width:90px;height:50px;transform:translateX(-50%);background:url(/play/assets/wise-orn-lotus.webp) center/contain no-repeat;z-index:3;pointer-events:none}
.pg-night .pg-frame::after{content:"";position:absolute;left:50%;bottom:-24px;width:116px;height:44px;transform:translateX(-50%);background:url(/play/assets/frame-bottom.webp) center/contain no-repeat;z-index:3;pointer-events:none}
/* 1.4 section ribbons (side inset = 14% of the ribbon itself; a plain 14% would be taken from the whole section) */
.pg-night h2.pg-ribbon{width:min(100%,460px);aspect-ratio:3/1;margin:28px auto 14px;display:flex;align-items:center;justify-content:center;background:url(/play/assets/section-ribbon.webp) center/contain no-repeat;color:#2a1650;font-size:clamp(18px,2.6vw,26px);padding:0 calc(min(100%,460px)*.14);text-align:center;line-height:1.1;box-sizing:border-box;border:0;box-shadow:none}
/* 1.5 points panel */
.pg-night .pg-points{width:100%;aspect-ratio:8/3;min-height:auto;padding:36px 20% 36px 9%;border:0;background:url(/play/assets/points-panel.webp) center/100% 100% no-repeat;box-shadow:none;border-radius:0;box-sizing:border-box}
.pg-night .pg-points ul{margin:0;padding:0}
.pg-night .pg-points li{list-style:none;position:relative;padding-left:22px;color:#f6ecd2}
.pg-night .pg-points li::before{content:"";position:absolute;left:0;top:.45em;width:10px;height:10px;transform:rotate(45deg);background:linear-gradient(#ffd96b,#e9a520)}
@media(max-width:700px){.pg-night .pg-points{background-size:cover;padding:28px 14px}}
@media(max-width:560px){.pg-night .pg-points{aspect-ratio:auto;min-height:260px}}   /* F3: 8:3 keeps the frame bands thick; on phones the box may grow taller */
/* 1.6 intro panels */
.pg-night .pg-intro-wise{width:100%;max-width:none;aspect-ratio:1600/533;display:flex;align-items:center;padding:6% 28% 6% 28%;margin:0;background:url(/play/assets/intro-panel.webp) center/100% 100% no-repeat;color:#2a1650;font-size:clamp(13px,1.25vw,16px);line-height:1.45;box-sizing:border-box}
@media(max-width:900px){.pg-night .pg-intro-wise{aspect-ratio:auto;background:#f7ecd4;border:2px solid #e9b84a;border-radius:14px;padding:16px}}
.pg-night .pg-intro-plain{width:100%;max-width:none;min-height:200px;display:flex;align-items:center;padding:36px 9%;margin:0;background:url(/play/assets/points-panel.webp) center/100% 100% no-repeat;color:#f6ecd2;box-sizing:border-box}
@media(max-width:700px){.pg-night .pg-intro-plain{background-size:cover;padding:28px 14px}}
/* 1.7 parchment boxes: welcome, name box, end summary, progress rows */
.pg-night .pg-parch{background:#f7ecd4;border:2px solid #e9b84a;border-radius:14px;color:#2a1650;box-shadow:none}
.pg-night .pg-parch input{background:#fff8e6;border:2px solid #e9b84a;color:#2a1650}
.pg-night #swm-sum.pg-parch .swm-nightline{color:#7a4a00;font-weight:800}
/* 2 Genie how-to cards */
.pg-night .pg-steps{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
@media(min-width:600px){.pg-night .pg-steps{grid-template-columns:repeat(3,1fr)}}
@media(min-width:900px){.pg-night .pg-steps{grid-template-columns:repeat(5,1fr)}}
.pg-night .pg-step{background:#f7ecd4;border:2px solid #e9b84a;border-radius:14px;padding:12px;text-align:center;color:#2a1650}
.pg-night .pg-step img{display:block;width:110px;height:110px;margin:0 auto;object-fit:contain}
.pg-night .pg-step h3{margin:8px 0 4px;font-size:16px;color:#2a1650}
.pg-night .pg-step p{margin:0;font-size:13px;line-height:1.35;color:#2a1650}
/* G4 narrow-screen fixes */
@media(max-width:560px){
 .pg-night.swp-game .sky-hero{position:relative!important;width:auto!important;height:auto!important;overflow:hidden!important;clip:auto!important;clip-path:none!important;white-space:normal!important;margin:0!important;padding:8px 12px 0!important}   /* the private rule it undoes is !important */   /* the private game pages hide the title strip on phones; the skin shows the banner there too */
 .pg-night h2.pg-ribbon{font-size:clamp(13px,4.2vw,18px)}   /* long ribbon titles stay on one line on phones */
}
.pg-night .pg-frame .swm-meta{flex-wrap:wrap}   /* inside the 34 px frame the Sound button wraps instead of pushing past the edge */
.pg-night .pg-frame .swp-table{display:block;max-width:100%;overflow-x:auto}   /* the leaderboard table scrolls inside the frame on narrow phones */
.pg-night .pg-step{min-width:0}
.pg-night .pg-step img{width:min(110px,100%);height:auto}   /* two columns fit at 305 px */
@media(max-width:420px){.pg-night h2.pg-ribbon{font-size:12px}}   /* the longest ribbon titles (Play on another device, Your lantern path) inside framed panels on the smallest phones */
/* ===== M4P7 + F1-F6 ===== */
/* F1 the old hero strip is transparent: the banner sits on the painted page; its diamond and stars are hidden */
.pg-night .sky-hero.swp-hero-compact{background:transparent;box-shadow:none;border:0}
.pg-night .sky-hero.swp-hero-compact::before,.pg-night .sky-hero.swp-hero-compact::after{display:none}
/* F2 one lotus per game panel: the frame crest stays, the stage frame's own top lotus goes */
.pg-night .pg-frame .swm-orn-top{display:none}
/* M4P7 1.6 own title banners */
.pg-night main[data-swp="daily"] .pg-title{background-image:url(/play/assets/cipher-title-banner.webp)}
.pg-night main[data-swp="challenge"] .pg-title{background-image:url(/play/assets/wheel-title-banner.webp)}
/* M4P7 1.3 own intro panels (below 900 px the text no longer fits the scroll, so the plain parchment box takes over): same sizing and parchment text rules as the Wise intro; text only inside the blank scroll on the right (insets measured on the art) */
.pg-night main[data-swp="daily"] .pg-intro-plain,.pg-night main[data-swp="challenge"] .pg-intro-plain{aspect-ratio:1600/533;min-height:0;color:#2a1650;font-size:clamp(13px,1.25vw,16px);line-height:1.45;background-size:100% 100%}
.pg-night main[data-swp="daily"] .pg-intro-plain{background-image:url(/play/assets/cipher-intro-panel.webp);padding:7% 14% 7% 40%}
.pg-night main[data-swp="challenge"] .pg-intro-plain{background-image:url(/play/assets/wheel-intro-panel.webp);padding:9% 16% 9% 37%}
@media(max-width:900px){.pg-night main[data-swp="daily"] .pg-intro-plain,.pg-night main[data-swp="challenge"] .pg-intro-plain{aspect-ratio:auto;background:#f7ecd4;border:2px solid #e9b84a;border-radius:14px;padding:16px}}
/* ===== K7V2 ===== */
/* defect 1: no stray gradient dash before ribbon headings */
.pg-night .pg-ribbon::before{content:none!important;display:none!important}
/* defect 2: the point lines sit on a parchment plate inside the painted points panel */
.pg-night .pg-points{display:flex;align-items:center;padding:6% 8%}
.pg-night .pg-points ul{background:#f7ecd4;color:#2a1650;border:2px solid #e9b84a;border-radius:14px;padding:18px 26px;font-size:16px;line-height:1.55;text-shadow:none;position:relative;z-index:1;max-width:58%;margin:0 0 0 14%;box-sizing:border-box}
.pg-night .pg-points li{color:#2a1650}
@media(max-width:900px){.pg-night .pg-points{padding:14% 7% 12%}.pg-night .pg-points ul{max-width:100%;margin-left:0}}
@media(max-width:320px){.pg-night .pg-points ul{font-size:15px}}
/* tweak 3: banner width per range */
.pg-night .pg-title{width:min(100%,760px)}
/* K7V2 gate fit: with 6%/8% padding + 14% margin the plate overlapped the left blossoms (art x 3-26%) and, at 1000/901, the crest (x 40-60%, y 0-16%). Above 900 px the plate fills the only clear band of the art: x 28-72% (2% clear of the blossoms and the scroll), below the crest. */
@media(min-width:901px){.pg-night .pg-points{justify-content:center;padding:10% 28% 7%}.pg-night .pg-points ul{max-width:100%;width:100%;margin:0}}
.pg-night .pg-points li{font-size:inherit;line-height:inherit}   /* the lines take the plate's 16 px (15 px at 305) */
/* B3N9 */
@media(min-width:1200px){.pg-night .pg-title{width:min(100%,900px)}}
@media(max-width:560px){.pg-night .swp-statusrow{flex-wrap:wrap}body.swp-game.pg-night .swp .swp-status{white-space:normal;overflow:visible;text-overflow:clip}}

@media (max-width: 700px) { .pg-night .swp-intro.pg-intro-plain { background: #f7ecd4; border: 2px solid #e9b84a; border-radius: 14px; color: #2a1650; min-height: 0; padding: 22px 16px; } .pg-night .swp-intro.pg-intro-plain a { color: #7a4a00; } }
#swp-bignum,#swp-cbig{color:#fff}
/* GAMES-UX-FIX-3 G: inner padding on the text cards whose text touched the border (scan at 390 and 1366) */
#swm-sum,.swp .swp-nick.pg-parch,.swp .swp-statusrow.pg-parch,.swp .swp-prow.pg-parch{box-sizing:border-box}
@media(min-width:601px){#swm-sum,.swp .swp-nick.pg-parch,.swp .swp-statusrow.pg-parch,.swp .swp-prow.pg-parch{padding:24px 28px}}
@media(max-width:600px){#swm-sum,.swp .swp-nick.pg-parch,.swp .swp-statusrow.pg-parch,.swp .swp-prow.pg-parch{padding:16px 16px}}
/* hub frame: the day strip and the streak, rank, device and countdown lines sat on the inner edge; left and right padding only, the scene keeps its width */
@media(min-width:601px){#swp-daystrip,section.sky-section.pg-frame>#swp-streak,section.sky-section.pg-frame>#swp-rank,section.sky-section.pg-frame>.swp-device,section.sky-section.pg-frame>.swp-countdown,section.sky-section.pg-frame>.swp-row{padding-left:28px;padding-right:28px;box-sizing:border-box}}
@media(max-width:600px){#swp-daystrip,section.sky-section.pg-frame>#swp-streak,section.sky-section.pg-frame>#swp-rank,section.sky-section.pg-frame>.swp-device,section.sky-section.pg-frame>.swp-countdown,section.sky-section.pg-frame>.swp-row{padding-left:16px;padding-right:16px;box-sizing:border-box}}
/* GAMES-UX-FIX-3 F: the Save button kept white text but got a light hover background (.sky-button.secondary:hover rgb(237,244,250)); it now keeps its own dark background */
.swp .swp-nick .sky-button.secondary:hover,.swp .swp-nick .sky-button.secondary:focus,.swp .swp-nick .sky-button.secondary:focus-visible,.swp .swp-nick .sky-button.secondary:active{background:rgb(50,35,72);color:#fff}
