@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: block;
  src: url(../assets/fonts/501f76ca195ed9.woff2) format('truetype');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url(../assets/fonts/d02cbe275f68b2.woff2) format('truetype');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: block;
  src: url(../assets/fonts/33f3233b5edd54.woff2) format('truetype');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(../assets/fonts/7114a75fe286fb.woff2) format('truetype');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url(../assets/fonts/3b0c5e09315c26.woff2) format('truetype');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: block;
  src: url(../assets/fonts/386f6ea0357d0d.woff2) format('truetype');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url(../assets/fonts/d43ca9d2b43c72.woff2) format('truetype');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: block;
  src: url(../assets/fonts/bccf817781978f.woff2) format('truetype');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url(../assets/fonts/4f6fb361835e2f.woff2) format('truetype');
}


:root{color-scheme:dark;--bg:#101310;--fg:#f4f6ee;--green:#16cf57;--muted:#96a091}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--fg);font-family:Nunito,system-ui,sans-serif;border-top:4px solid var(--green)}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer}a:focus-visible,button:focus-visible,canvas:focus-visible{outline:2px solid var(--green);outline-offset:4px}.site-header{max-width:1180px;margin:auto;padding:23px 28px;display:flex;align-items:center;justify-content:space-between;gap:16px}.back{font-size:12px;color:var(--muted)}.back:hover,footer a:hover{color:var(--green)}main{max-width:1060px;margin:auto;padding:5px 24px 35px}.intro{text-align:center;margin:16px 0 29px}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--green);font-weight:800}h1{font-family:'Barlow Condensed',sans-serif;font-size:64px;line-height:1.05;margin:9px 0 12px;letter-spacing:-1px}h1 span{color:var(--green)}.intro>p:last-child{font-size:15px;color:var(--muted);margin:0}.game-layout{display:grid;grid-template-columns:1fr 334px 1fr;gap:55px;align-items:center}.instructions{max-width:220px}.step{font-size:9px;letter-spacing:1.7px;color:var(--green);font-weight:800}.instructions h2{font-size:17px;font-weight:700;margin:8px 0}.instructions p{font-size:13px;color:var(--muted);line-height:1.7;margin:0 0 30px}.game-panel{padding:11px;background:#1b221b;border:1px solid #354033;border-radius:19px;box-shadow:0 15px 65px #0003}.scorebar{display:flex;gap:25px;align-items:center;padding:0 5px 10px;font-size:9px;letter-spacing:1px;color:var(--muted)}.scorebar strong{font-size:18px;letter-spacing:0;margin-left:6px;color:var(--fg);font-variant-numeric:tabular-nums}.scorebar button{margin-left:auto;color:var(--muted);font-size:23px;background:none;border:0}.board{position:relative;border-radius:9px;overflow:hidden;background:#141a15}canvas{display:block;width:100%;height:auto;touch-action:manipulation}.result{position:absolute;inset:0;background:#101310ed;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:25px;backdrop-filter:blur(5px)}[hidden]{display:none!important}.result h2{font-family:'Barlow Condensed',sans-serif;font-size:43px;margin:8px 0}.result p:not(.eyebrow){color:var(--muted);font-size:14px;line-height:1.7}.result button,.drop{border:0;border-radius:9px;background:var(--green);color:#0c3017;font-weight:800;padding:12px 20px}.result button{margin-top:15px}.drop{width:100%;margin-top:11px;display:flex;justify-content:space-between;align-items:center;font-size:14px}.drop:hover,.result button:hover{background:#45e77d}.drop:disabled{opacity:.45;cursor:default}.hint{text-align:center;color:#7b8976;font-size:9px;letter-spacing:2px;margin:12px 0 2px}.side-note .can-art{display:block;font-size:80px;color:var(--green);transform:rotate(14deg)}.side-note p{font-size:25px;line-height:1.5}.side-note em{color:#96b48e;font-style:normal}.tiny{font-size:11px;color:#758170}footer{max-width:1124px;margin:25px auto 0;padding:22px 28px;border-top:1px solid #ffffff10;display:flex;justify-content:space-between;gap:15px;font-size:11px;color:#899481}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:850px){.game-layout{grid-template-columns:1fr 334px;gap:30px;max-width:650px;margin:auto}.side-note{display:none}}@media(max-width:580px){.site-header{padding:18px 17px}.back{font-size:10px}main{padding:0 16px 20px}.intro{margin:16px 0 22px}h1{font-size:51px}.intro>p:last-child{font-size:13px}.game-layout{display:flex;flex-direction:column;gap:27px}.game-panel{width:100%;max-width:334px;order:0}.instructions{order:1;max-width:334px;display:block}.instructions h2{font-size:15px}.instructions p{font-size:12px;margin-bottom:18px}footer{margin-top:0;padding:20px 16px;font-size:10px}}

/* Coke Stacker header layout. */
.site-header{max-width:none;min-height:77px;padding:23px 24px;justify-content:flex-end}@media(max-width:639px){.site-header{min-height:68px;padding:18px 16px}.back{font-size:10px}}

/* Coke Stacker logo only. Edit freely without affecting other pages. */
a.site-logo{position:fixed;top:20px;left:24px;z-index:1000;display:block;width:max-content;margin:0;padding:0;border:0;font-family:'Barlow Condensed','Arial Narrow',sans-serif;font-size:26px;font-weight:800;font-style:normal;line-height:32px;letter-spacing:-.8px;text-transform:none;text-decoration:none;color:#f4f6ee;white-space:nowrap;background:#101310;box-shadow:0 0 0 6px #101310;border-radius:2px;transform:none}
a.site-logo span{color:#16cf57}
a.site-logo:focus-visible{outline:2px solid #16cf57;outline-offset:8px}
@media(max-width:639px){a.site-logo{top:16px;left:16px;font-size:24px;line-height:30px}}

/* Viewport layout: title / board / rules. Only this page is affected. */
html{height:100%;overflow:hidden}body{height:100vh;height:100dvh;overflow:hidden;display:flex;flex-direction:column}.site-header{flex:0 0 70px;min-height:0;padding:18px 24px}main{flex:1;min-height:0;width:100%;max-width:1180px;margin:0 auto;padding:8px 28px 12px;display:flex}.game-layout{--board-height:min(600px,calc(100dvh - 212px),calc((100vw - 600px)*600/350));width:100%;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:40px;align-items:center;max-width:none;margin:0}.intro{text-align:left;margin:0;align-self:center}.intro h1{font-size:clamp(44px,5vw,72px);margin:12px 0 16px}.intro h1 span{display:block}.intro>p:last-child{max-width:220px;font-size:14px;line-height:1.7}.game-panel{width:calc(var(--board-height)*350/600 + 24px);max-width:none;padding:11px;flex:none;order:initial}.board{height:var(--board-height);aspect-ratio:350/600;width:100%}canvas{width:100%;height:100%;object-fit:contain}.scorebar{gap:15px;height:36px;white-space:nowrap;font-size:8px;letter-spacing:.7px}.scorebar strong{font-size:17px;margin-left:4px}.scorebar button{padding:0 2px}.drop{height:40px;padding:8px 14px;font-size:13px;margin-top:10px}.hint{font-size:8px;letter-spacing:1.5px;margin:9px 0 1px}.instructions{max-width:235px;align-self:center;position:relative}.instructions summary{display:none}.instructions h2{font-size:16px}.instructions p{font-size:12px;margin-bottom:24px;line-height:1.65}.instructions p:last-child{margin-bottom:0}footer{flex:0 0 38px;min-height:0;width:calc(100% - 48px);max-width:1124px;margin:0 auto;padding:10px 0;font-size:10px}.result{padding:16px}.result h2{font-size:36px}.result p:not(.eyebrow){font-size:12px}.result button{font-size:12px;padding:10px 16px}
@media(max-width:900px){.site-header{flex-basis:64px}.game-layout{--board-height:min(600px,calc(100dvh - 280px),calc((100vw - 56px)*600/350));display:flex;flex-direction:column;justify-content:center;gap:12px;position:relative}.intro{text-align:center;align-self:center;margin:0;flex:none}.intro .eyebrow{display:none}.intro h1{font-size:36px;line-height:1;margin:0 0 5px}.intro h1 span{display:inline}.intro>p:last-child{font-size:11px;max-width:none;line-height:1.5}.game-panel{order:initial}.instructions{position:absolute;right:0;top:0;z-index:5;max-width:280px;align-self:auto}.instructions summary{display:block;cursor:pointer;list-style:none;font-size:11px;color:var(--muted);padding:7px 9px;border:1px solid #354033;border-radius:8px;background:var(--bg)}.instructions summary span{margin-left:8px;color:var(--green)}.instructions[open]{width:min(280px,calc(100vw - 40px));background:#1b221b;border:1px solid #354033;border-radius:10px;padding:10px;box-shadow:0 10px 40px #0008}.instructions[open] summary{border:0;padding:0 0 12px}.rules-content{max-height:calc(100dvh - 180px);overflow:auto}.instructions p{font-size:12px;margin-bottom:14px}.instructions h2{font-size:15px}.intro{padding:0 85px}main{padding:4px 16px 10px}footer{flex-basis:30px;padding:7px 0;font-size:9px}}
@media(max-width:639px){.site-header{padding:16px;flex-basis:62px}.game-layout{gap:10px}.intro{padding:0 0 0 0}.intro h1{font-size:31px}.intro>p:last-child{display:none}.instructions{top:0;right:0}.instructions summary{font-size:0;padding:5px 8px}.instructions summary span{font-size:16px;margin:0}.instructions[open] summary{font-size:12px}.game-layout{--board-height:min(600px,calc(100dvh - 245px),calc((100vw - 56px)*600/350))}.scorebar{gap:12px;font-size:7px}.scorebar strong{font-size:15px}.back{font-size:10px}footer{width:calc(100% - 32px)}}
@media(max-height:500px) and (min-width:640px){.site-header{flex-basis:56px}.game-layout{--board-height:calc(100dvh - 184px);display:grid;grid-template-columns:1fr auto 1fr;gap:22px}.intro{padding:0;text-align:left}.intro h1{font-size:32px}.intro h1 span{display:block}.intro>p:last-child{display:none}.instructions{position:relative;top:auto;right:auto}.instructions summary{font-size:12px}.instructions[open]{position:absolute;right:0;top:0}.hint{display:none}.scorebar{font-size:7px;gap:6px}.scorebar strong{font-size:13px}.game-panel{padding:7px;width:calc(var(--board-height)*350/600 + 16px)}.drop{font-size:11px;height:30px;margin-top:6px}.result h2{font-size:24px}.result p:not(.eyebrow){font-size:10px}.result button{margin-top:5px;padding:7px}.result .eyebrow{display:none}}
/* Reserve the complete control bar and footer height, not just the canvas. */
.site-header{width:100%;flex-shrink:0}footer{flex-shrink:0}.game-layout{--board-height:min(600px,calc(100dvh - 280px),calc((100vw - 600px)*600/350));height:100%}.game-panel{align-self:center}
@media(max-width:900px){.game-layout{--board-height:min(600px,calc(100dvh - 310px),calc((100vw - 56px)*600/350))}}
@media(max-width:639px){.game-layout{--board-height:min(600px,calc(100dvh - 280px),calc((100vw - 56px)*600/350))}}
@media(max-height:500px) and (min-width:640px){.game-layout{--board-height:calc(100dvh - 220px)}}

/* Edge-to-edge game panel, without page header/footer spacing. */
body{border-top:0}.site-header{position:absolute;inset:0 0 auto;min-height:0;height:0;padding:0;margin:0;flex:none}main{height:100dvh;flex:none;padding:0 28px;max-width:1280px}.game-layout{--board-height:calc(100dvh - 132px);height:100%;gap:40px}.game-panel{height:100dvh;width:calc(var(--board-height)*350/600 + 24px);display:flex;flex-direction:column;gap:0;padding:11px;margin:0;align-self:stretch;min-height:0}.scorebar{flex:0 0 36px;padding-bottom:10px}.board{flex:1;min-height:0;height:auto;aspect-ratio:350/600}.drop{flex:0 0 40px}.hint{flex:0 0 12px;line-height:12px}.intro{max-width:260px}.instructions{max-width:240px}
@media(max-width:900px){main{padding:0 16px}.game-layout{--board-height:calc(100dvh - 132px);display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:18px;justify-content:initial}.intro{padding:0;text-align:left}.intro h1{font-size:34px;line-height:1.05}.intro h1 span{display:block}.intro>p:last-child{display:none}.instructions{position:relative;right:auto;top:auto;align-self:center}.instructions[open]{position:absolute;right:0;top:65px}.game-panel{order:initial}.instructions summary{font-size:11px}}
@media(max-width:639px){main{padding:0}.game-layout{display:flex;flex-direction:column;gap:0;align-items:center;justify-content:center;--board-height:calc(100dvh - 206px)}.intro{display:none}.game-panel{height:calc(100dvh - 62px);margin-top:62px;width:min(calc(100vw - 16px),calc(var(--board-height)*350/600 + 24px));align-self:center}.instructions{position:absolute;right:16px;top:16px;align-self:auto}.instructions summary{font-size:11px}.instructions summary span{font-size:14px;margin-left:5px}.instructions[open]{right:16px;top:16px}.board{aspect-ratio:auto}}
@media(max-height:500px) and (min-width:640px){.game-layout{--board-height:calc(100dvh - 106px)}.game-panel{width:calc(var(--board-height)*350/600 + 16px);padding:7px}.drop{flex-basis:30px}.hint{display:none}.intro{display:block}.scorebar{flex-basis:34px}}
@media(max-width:639px){.game-panel{height:100dvh;margin-top:0;padding-top:62px}}
/* Signature green line stays at the top of the viewport. */
body{border-top:4px solid var(--green)}
main{height:calc(100dvh - 4px)}
.game-layout{--board-height:calc(100dvh - 136px)}
.game-panel{height:calc(100dvh - 4px)}
@media(max-width:900px){.game-layout{--board-height:calc(100dvh - 136px)}}
@media(max-width:639px){.game-layout{--board-height:calc(100dvh - 210px)}.game-panel{height:calc(100dvh - 4px)}}
@media(max-height:500px) and (min-width:640px){.game-layout{--board-height:calc(100dvh - 110px)}}

/* Title belongs above the instructions, with left-aligned text. */
.game-panel{grid-column:2}.instructions{grid-column:3;grid-row:1}.instructions .intro{display:block;text-align:left;padding:0;margin:0 0 27px;max-width:none}.instructions .intro .eyebrow{display:block;text-transform:none;letter-spacing:1px}.instructions .intro h1{font-size:44px;margin:8px 0 0}.instructions .intro h1 span{display:inline}@media(max-width:900px){.instructions .intro h1{font-size:32px}}@media(max-width:639px){.instructions .intro{margin-bottom:18px}.instructions .intro h1{font-size:30px}}
/* Transparent logo; compact screens get a balanced top control row. */
a.site-logo{background:transparent;box-shadow:none}
@media(max-width:900px){
 .instructions{position:fixed;top:16px;right:16px;z-index:1100;max-width:280px}
 .instructions summary{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--green);border:1px solid #16cf5766;background:transparent;border-radius:9px;padding:8px 10px;font-size:12px;line-height:18px;white-space:nowrap}
 .instructions summary:hover{background:#16cf5712;border-color:var(--green)}
 .instructions summary:focus-visible{outline:2px solid var(--green);outline-offset:3px}
 .instructions summary span{font-size:16px;line-height:18px;margin:0;color:var(--green)}
 .instructions[open]{position:fixed;top:16px;right:16px;padding:13px;width:min(280px,calc(100vw - 32px));background:#1b221b;border:1px solid #16cf5766;box-shadow:0 12px 40px #0008}
 .instructions[open] summary{border:0;background:none;padding:0 0 12px;font-size:12px;color:var(--green)}
 .instructions[open] summary span{transform:rotate(45deg)}
 .rules-content{max-height:calc(100dvh - 100px);overflow-y:auto}
}
@media(max-width:639px){
 a.site-logo{top:17px;left:16px;font-size:22px;line-height:28px;letter-spacing:-.65px}
 .instructions{top:14px;right:12px}
 .instructions summary{font-size:11px;padding:6px 8px;gap:7px;line-height:18px}
 .instructions[open]{top:14px;right:12px}
 .game-panel{padding-top:62px}
}

/* Result colors reflect the outcome. */
.result[data-outcome="loss"] .eyebrow,.result[data-outcome="loss"] h2{color:#ff7777}.result[data-outcome="loss"] button{background:#ef5350;color:#210b0b}.result[data-outcome="loss"] button:hover{background:#ff7777}.result[data-outcome="loss"] button:focus-visible{outline-color:#ff7777}.result[data-outcome="win"] .eyebrow,.result[data-outcome="win"] h2{color:var(--green)}.result[data-outcome="win"] button{background:var(--green);color:#0c3017}
/* Compact header sits outside the game frame, not inside its green padding. */
@media(max-width:900px){
 .game-layout{--board-height:calc(100dvh - 198px)}
 .game-panel{margin-top:62px;height:calc(100dvh - 66px);padding-top:11px}
}
@media(max-width:639px){
 .game-layout{--board-height:calc(100dvh - 198px)}
 .game-panel{margin-top:62px;height:calc(100dvh - 66px);padding-top:11px}
}
@media(max-height:500px) and (min-width:640px) and (max-width:900px){
 .game-layout{--board-height:calc(100dvh - 172px)}
 .game-panel{padding-top:7px}
}
/* Crisp disclosure icon with a generous click target. */
.instructions summary span{display:inline-block;position:relative;flex:0 0 30px;width:30px;height:30px;font-size:0!important;line-height:0!important;margin:0!important;border:1px solid #16cf5766;border-radius:7px;background:#16cf5710;transform:none!important}
.instructions summary span::before,.instructions summary span::after{content:'';position:absolute;left:6px;top:13px;width:16px;height:2px;background:var(--green);border-radius:2px}
.instructions summary span::after{transform:rotate(90deg)}
.instructions[open] summary span::before{transform:rotate(45deg)}
.instructions[open] summary span::after{transform:rotate(-45deg)}
.instructions[open] summary{min-height:36px;align-items:center}
.instructions summary:hover span{background:#16cf5726;border-color:var(--green)}

/* Compact, subtle help trigger. Keep the opened close control clear. */
@media(max-width:900px){
 .instructions:not([open]) summary{font-size:10px;line-height:16px;padding:4px 7px;gap:6px;border:1px dashed #16cf574d;border-radius:7px;color:#16cf57b3;background:transparent;min-height:26px}
 .instructions:not([open]) summary span{flex-basis:16px;width:16px;height:16px;border:0;background:none}
 .instructions:not([open]) summary span::before,.instructions:not([open]) summary span::after{width:10px;height:1.5px;left:3px;top:7px;background:#16cf57b3}
 .instructions:not([open]) summary:hover{border-color:#16cf5780;color:var(--green)}
 .instructions:not([open]) summary:hover span{background:none}
}
/* Align the compact header by its center; use tighter vertical spacing. */
@media(max-width:900px){
 a.site-logo{top:14px;line-height:28px}
 .instructions{top:15px}
 .instructions:not([open]) summary{height:26px;min-height:26px;padding:0 7px;align-items:center;line-height:16px}
 .instructions:not([open]) summary span{align-self:center}
 .game-layout{--board-height:calc(100dvh - 162px)}
 .game-panel{margin-top:50px;height:calc(100dvh - 54px);padding:7px;width:calc(var(--board-height)*350/600 + 16px)}
 .scorebar{flex-basis:30px;height:30px;padding-bottom:5px}
 .drop{margin-top:7px;flex-basis:36px;height:36px;padding:6px 12px}
 .hint{margin:6px 0 0;flex-basis:10px;line-height:10px;font-size:7px}
}
@media(max-width:639px){
 a.site-logo{top:14px;left:16px;line-height:28px}
 .instructions{top:15px;right:12px}
 .game-panel{width:min(calc(100vw - 16px),calc(var(--board-height)*350/600 + 16px));padding-top:7px}
}
@media(max-height:500px) and (min-width:640px) and (max-width:900px){
 .game-layout{--board-height:calc(100dvh - 142px)}
 .drop{flex-basis:30px;height:30px}
}
/* Keep the eyebrow close to the game title. */
.instructions .intro .eyebrow{margin:0 0 5px;line-height:1.3}
.instructions .intro h1{margin:0;line-height:1.05}

/* Compact result message with the replay action at the center of attention. */
.result{padding:20px;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:1fr auto auto auto auto 1fr;gap:0;align-content:stretch;justify-items:center;overflow:auto}
.result-symbol{grid-row:1;align-self:end;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;margin-bottom:12px;border:1px solid currentColor}
.result .eyebrow{grid-row:2;margin:0 0 7px;font-size:9px;line-height:1.3;letter-spacing:1.5px}
.result h2{grid-row:3;font-size:clamp(23px,3vw,30px);line-height:1.1;margin:0 0 17px;max-width:100%;text-wrap:balance}
.result button{grid-row:4;min-width:min(180px,100%);min-height:48px;padding:12px 25px;margin:0;font-size:16px;font-weight:800;box-shadow:0 6px 22px #0003}
.result p:not(.eyebrow){grid-row:5;max-width:250px;font-size:12px;line-height:1.65;margin:16px 0 0;color:#a9b4a3;text-wrap:balance}
.result[data-outcome="loss"] .result-symbol{color:#ff7777;background:#ef535014}.result[data-outcome="loss"] .result-symbol::after{content:'×';font:500 29px/1 system-ui}
.result[data-outcome="win"]{background:radial-gradient(ellipse at 50% 40%,#1b3d27f5,#101310fa 75%)}
.result[data-outcome="win"] .result-symbol{width:54px;height:54px;color:var(--green);background:#16cf571a;border-color:#16cf5770}
.result[data-outcome="win"] .result-symbol::after{content:'✓';font:700 29px/1 system-ui}
.result[data-outcome="win"] h2{font-size:34px}
@media(max-height:500px){.result{padding:10px}.result-symbol{width:25px;height:25px;margin-bottom:5px}.result[data-outcome="win"] .result-symbol{width:29px;height:29px}.result-symbol::after,.result[data-outcome="win"] .result-symbol::after{font-size:20px}.result h2,.result[data-outcome="win"] h2{font-size:21px;margin-bottom:10px}.result .eyebrow{font-size:8px;margin-bottom:4px}.result button{min-height:35px;font-size:12px;padding:7px 15px}.result p:not(.eyebrow){font-size:10px;line-height:1.4;margin-top:9px}}

/* Victory sharing belongs to this page only. */
.result .share-victory{grid-row:6;align-self:start;display:flex;align-items:center;justify-content:center;gap:8px;margin-top:16px;padding:9px 13px;min-height:38px;min-width:0;border:1px solid #16cf5780;background:#16cf5710;color:#a4efb9;font-size:12px;box-shadow:none}.share-victory svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8}.result .share-victory:hover{background:#16cf5726}
#victory-share{color-scheme:dark;width:min(450px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow-y:auto;padding:28px;border:1px solid #426347;border-radius:18px;background:#182219;color:#f4f6ee;box-sizing:border-box}
#victory-share::backdrop{background:#000b;backdrop-filter:blur(6px)}#victory-share h2{font-family:'Barlow Condensed',sans-serif;font-size:30px;margin:3px 30px 12px 0}#victory-share p{font-size:13px;line-height:1.65;color:#b1c2a9}#share-close{position:absolute;right:12px;top:10px;border:0;background:none;color:#d4e6cc;font-size:28px;padding:0 7px}#victory-name-form label{display:block;font-size:13px;margin:18px 0 8px}#winner-name{width:100%;box-sizing:border-box;border:1px solid #516b4d;border-radius:9px;padding:12px;background:#101810;color:#f4f6ee;font:inherit;font-size:16px}#victory-name-form button,.victory-actions>a,.victory-actions>button{display:flex;align-items:center;justify-content:center;border:1px solid #45633d;border-radius:9px;padding:10px 12px;font:700 12px Nunito,system-ui,sans-serif;color:#ecf4e8;background:#20331f;text-decoration:none;text-align:center;cursor:pointer}#victory-name-form button{width:100%;margin-top:14px;background:#16cf57;color:#10321a;border:0;font-size:14px}#victory-name-form button:disabled{opacity:.5}#victory-preview{display:block;width:auto;max-width:100%;height:min(39dvh,360px);object-fit:contain;margin:16px auto;border-radius:9px}.victory-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.victory-actions #download-victory{background:#16cf57;color:#10321a}.share-note{font-size:11px!important}#share-status{font-size:12px!important}#edit-winner{display:block;margin:13px auto 0;padding:4px;border:0;background:none;color:#b1c2a9;text-decoration:underline;font-size:12px}#victory-share :focus-visible{outline:2px solid #16cf57;outline-offset:3px}@media(max-height:500px){.result .share-victory{margin-top:7px;min-height:28px;padding:5px 10px;font-size:10px}}

/* Page-local language switch, matching the About page's round flag toggle. */
.scorebar .language-toggle{display:flex;align-items:center;gap:2px;padding:3px;border:1px solid #527b7e66;border-radius:24px;background:#0c2226;margin-left:auto;flex-shrink:0;height:33px;box-sizing:border-box}.scorebar .language-toggle button{display:flex;align-items:center;justify-content:center;width:25px;height:25px;min-width:25px;flex:none;margin:0;padding:0;line-height:0;border:0;border-radius:50%;background:transparent;cursor:pointer}.scorebar .language-toggle button[aria-pressed="true"]{background:#1b4448}.scorebar .language-toggle button:hover{background:#24535a}.scorebar .language-toggle svg{display:block;flex:none;width:18px;height:18px;border-radius:50%;overflow:hidden}.scorebar .language-toggle button:focus-visible{outline:2px solid var(--green);outline-offset:2px}.scorebar>span{white-space:nowrap}.instructions summary>span[data-i18n]{display:inline;position:static;flex:initial;width:auto;height:auto;font:inherit!important;line-height:inherit!important;margin:0!important;border:0;background:none;transform:none!important}.instructions summary>span[data-i18n]::before,.instructions summary>span[data-i18n]::after{display:none}.instructions:not([open]) summary>span[data-i18n]{font-size:10px!important;line-height:16px!important}.instructions[open] summary>span[data-i18n]{font-size:12px!important;line-height:18px!important}@media(max-width:639px){.scorebar{gap:9px}.scorebar .language-toggle{height:29px;padding:2px}.scorebar .language-toggle button{width:23px;height:23px;min-width:23px}.scorebar .language-toggle svg{width:17px;height:17px}}

/* Make the active language unmistakable without dimming the click target. */
.scorebar .language-toggle button svg{opacity:.35;filter:grayscale(.55);transition:opacity .15s,filter .15s}
.scorebar .language-toggle button[aria-pressed="true"] svg{opacity:1;filter:none}
.scorebar .language-toggle button[aria-pressed="true"]{box-shadow:inset 0 0 0 1px #8acdbb66}
.scorebar .language-toggle button:hover svg,.scorebar .language-toggle button:focus-visible svg{opacity:1;filter:none}
/* A loss needs no extra GAME OVER line; the cross sits above the message. */
.result[data-outcome="loss"]{grid-template-rows:1fr auto auto auto 1fr}
.result[data-outcome="loss"] .result-symbol{grid-row:1;margin-bottom:10px}
.result[data-outcome="loss"] h2{grid-row:2}
.result[data-outcome="loss"] #play-again{grid-row:3}
.result[data-outcome="loss"] #result-message{grid-row:4}

/* Stable single-column result layout; no implicit grid columns. */
.result{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;text-align:center;padding:20px}
.result>*{grid-area:auto!important;align-self:auto;max-width:100%;flex-shrink:0}
.result .result-symbol{order:0;margin:0 0 12px;align-self:center}
.result #result-label{order:1;margin:0 0 8px}
.result #result-title{order:2;width:100%;margin:0 0 20px;font-size:28px;line-height:1.15;overflow-wrap:anywhere}
.result #play-again{order:3;display:block;width:min(180px,100%);min-width:0;min-height:48px;margin:0;padding:12px 18px;white-space:nowrap}
.result #result-message{order:4;width:100%;max-width:250px;margin:16px 0 0;font-size:12px;line-height:1.65}
.result .share-victory{order:5;align-self:center;margin-top:16px}
.result[data-outcome="loss"] #result-label{display:none!important}
.result[data-outcome="loss"] .result-symbol{margin-bottom:12px}
.result[data-outcome="win"] #result-title{font-size:32px}
@media(max-height:500px){.result{padding:12px}.result #result-title,.result[data-outcome="win"] #result-title{font-size:21px;margin-bottom:12px}.result #play-again{min-height:35px;padding:7px 15px;font-size:12px}.result #result-message{font-size:10px;margin-top:10px}.result .result-symbol{margin-bottom:7px}.result .share-victory{margin-top:8px}}
/* Keep the language control in the game's green palette. */
.scorebar .language-toggle{background:#14291c;border-color:#16cf5740}
.scorebar .language-toggle button[aria-pressed="true"]{background:#245336;box-shadow:inset 0 0 0 1px #16cf5780}
.scorebar .language-toggle button:hover{background:#2a6040}
/* Match the surrounding dark frame rather than the bright accent. */
.scorebar .language-toggle{background:#1b221b;border-color:#354033}
.scorebar .language-toggle button[aria-pressed="true"]{background:#2b392b;box-shadow:inset 0 0 0 1px #52634c}
.scorebar .language-toggle button:hover{background:#344431}

/* The share dialog owns a matching language toggle. */
#victory-share .language-toggle{display:flex;align-items:center;gap:2px;padding:3px;border:1px solid #354033;border-radius:24px;background:#1b221b;width:max-content;height:33px;box-sizing:border-box;margin:0 36px 14px auto}
#victory-share .language-toggle button{display:flex;align-items:center;justify-content:center;width:25px;height:25px;min-width:25px;margin:0;padding:0;border:0;border-radius:50%;background:transparent;line-height:0;cursor:pointer}
#victory-share .language-toggle button[aria-pressed="true"]{background:#2b392b;box-shadow:inset 0 0 0 1px #52634c}
#victory-share .language-toggle button:hover{background:#344431}
#victory-share .language-toggle svg{display:block;flex:none;width:18px;height:18px;border-radius:50%;overflow:hidden;opacity:.35;filter:grayscale(.55)}
#victory-share .language-toggle button[aria-pressed="true"] svg,#victory-share .language-toggle button:hover svg,#victory-share .language-toggle button:focus-visible svg{opacity:1;filter:none}

/* Game surface: clicks on text or empty space also drop cans. */
body{-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
input,textarea,input::placeholder{-webkit-user-select:text;user-select:text}
a,img{-webkit-user-drag:none}

/* Fast game taps must not trigger the browser's double-tap zoom. Pinch zoom remains available. */
body { touch-action: manipulation; }
body.viewing-victory-image { touch-action:auto; -webkit-user-select:auto; user-select:auto; }
#victory-preview { cursor: zoom-in; }
#victory-image-viewer { position:fixed; inset:0; width:100vw; height:100vh; height:100dvh; max-width:none; max-height:none; margin:0; padding:0; border:0; border-radius:0; background:#090d09; overflow:hidden; touch-action:auto; }
#victory-image-viewer[open] { display:grid; place-items:center; }
#victory-image-viewer::backdrop { background:#090d09; }
#victory-full-image { display:block; width:100%; height:100%; max-width:100vw; max-height:100vh; max-height:100dvh; object-fit:contain; border:0; border-radius:0; -webkit-user-select:auto; user-select:auto; -webkit-touch-callout:default; touch-action:auto; }
#close-victory-image { position:absolute; z-index:1; top:max(12px,env(safe-area-inset-top)); right:max(12px,env(safe-area-inset-right)); display:grid; place-items:center; width:42px; height:42px; padding:9px; border:1px solid #ffffff40; border-radius:50%; background:#090d09b3; color:#f4f6ee; cursor:pointer; touch-action:manipulation; }
#close-victory-image svg { display:block; width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:2.5; stroke-linecap:round; }
#close-victory-image:focus-visible,#victory-preview:focus-visible { outline:2px solid #16cf57; outline-offset:3px; }

/* Explicit fast-tap regions also cover the controls and bottom hint/padding. */
main,.game-layout,.game-panel,.drop,.hint { touch-action:manipulation; }

/* A small inline lesson on compact screens; a video window on desktop. */
.howto-inline-video { display:none; }
.tutorial-trigger { display:inline-flex; align-items:center; gap:7px; margin:13px 0 0; padding:5px 0; background:none; color:var(--green); border:0; font:700 12px Nunito,system-ui,sans-serif; cursor:pointer; touch-action:manipulation; }
.tutorial-trigger:hover { color:#87e9a4; }
.tutorial-trigger svg { display:block; width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linejoin:round; }
#howto-video-dialog { width:min(760px,calc(100vw - 24px)); max-width:none; max-height:calc(100dvh - 24px); padding:0; border:1px solid #426347; border-radius:16px; background:#101810; color:var(--fg); overflow:auto; }
#howto-video-dialog::backdrop { background:#000c; backdrop-filter:blur(6px); }
.howto-dialog-header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 16px; }
.howto-dialog-header h2 { margin:0; font:700 18px Nunito,system-ui,sans-serif; }
#close-howto-video { display:grid; place-items:center; width:34px; height:34px; padding:5px; border:1px solid #426347; border-radius:8px; color:#f4f6ee; background:#1b221b; }
#close-howto-video svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:2.4; stroke-linecap:round; }
#howto-popup-video { display:block; width:100%; max-height:calc(100dvh - 100px); aspect-ratio:4/3; object-fit:contain; background:#101810; touch-action:manipulation; }
@media(max-width:900px),(max-height:500px){
 .tutorial-trigger { display:none; }
 .instructions[open] { width:min(360px,calc(100vw - 24px)); max-width:none; }
 .howto-inline-video { display:block; margin:0 0 17px; }
 #howto-inline-video { display:block; width:100%; max-height:240px; aspect-ratio:4/3; object-fit:contain; border:1px solid #354033; border-radius:9px; background:#101810; touch-action:manipulation; }
 .instructions .rules-content { max-height:calc(100dvh - 100px); overflow-y:auto; overscroll-behavior:contain; }
 .instructions .rules-content p { margin-bottom:17px; }
}

/* One framed video-help control and one shared lesson on every screen size. */
.game-guide { grid-column:3; grid-row:1; align-self:center; max-width:280px; }
.game-guide .intro { display:block; text-align:left; padding:0; margin:0 0 18px; max-width:none; }
.game-guide .intro .eyebrow { margin:0 0 5px; text-transform:none; letter-spacing:1px; line-height:1.3; }
.game-guide .intro h1 { margin:0; font-size:44px; line-height:1.05; }
.game-guide .intro h1 span { display:inline; }
.help-trigger { display:inline-flex; align-items:center; justify-content:center; gap:11px; min-height:58px; padding:10px 17px; border:1px dashed #16cf5780; border-radius:12px; background:#16cf5708; color:#a3deb0; font:700 14px Nunito,system-ui,sans-serif; line-height:1.2; white-space:nowrap; cursor:pointer; touch-action:manipulation; }
.help-trigger:hover { border-color:#16cf57; color:#dcf7e2; background:#16cf5712; }
.help-play { display:grid; place-items:center; flex:none; width:32px; height:32px; border:1.5px solid #16cf57b3; border-radius:50%; background:#16cf5710; color:#16cf57; }
.help-play svg { display:block; width:20px; height:20px; margin-left:1px; fill:currentColor; stroke:none; }
#howto-video-dialog { width:min(760px,calc(100vw - 28px)); max-height:calc(100dvh - 28px); border-radius:16px; overflow:auto; overscroll-behavior:contain; }
#howto-popup-video { max-height:340px; border-top:1px solid #354033; border-bottom:1px solid #354033; }
.tutorial-written-rules { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; padding:22px 24px 24px; }
.tutorial-written-rules .step { display:block; font-size:9px; color:var(--green); letter-spacing:1.5px; font-weight:800; }
.tutorial-written-rules h2 { margin:8px 0; font:800 15px Nunito,system-ui,sans-serif; line-height:1.3; }
.tutorial-written-rules p { margin:0; font:500 12px Nunito,system-ui,sans-serif; color:var(--muted); line-height:1.65; }
@media(max-width:900px),(max-height:500px){
 .game-guide { position:fixed; top:12px; right:12px; z-index:1100; max-width:none; }
 .game-guide .intro { display:none; }
 .help-trigger { min-height:34px; gap:7px; padding:5px 9px; border-radius:9px; font-size:11px; }
 .help-play { width:23px; height:23px; border-width:1.3px; }
 .help-play svg { width:15px; height:15px; }
 #howto-video-dialog { width:min(390px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); }
 #howto-popup-video { max-height:235px; }
 .howto-dialog-header { padding:9px 12px; }
 .howto-dialog-header h2 { font-size:14px; }
 .tutorial-written-rules { grid-template-columns:1fr; gap:17px; padding:17px; }
 .tutorial-written-rules h2 { margin:6px 0; font-size:14px; }
 .tutorial-written-rules p { font-size:11.5px; line-height:1.6; }
}
@media(max-width:360px){.help-trigger{padding:5px 7px;gap:6px;font-size:10.5px}.game-guide{right:10px}}
/* Align the desktop guide with the fixed logo at the top edge. */
@media(min-width:901px) and (min-height:501px){
 .game-guide{position:fixed;top:20px;right:24px;z-index:1000;display:flex;flex-direction:column;align-items:flex-end;text-align:right}
 .game-guide .intro{text-align:right;margin-bottom:14px}
}

/* Silent, non-interactive looping lesson, with no native player overlays. */
#howto-popup-video{pointer-events:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
#howto-popup-video::-webkit-media-controls{display:none!important}
#howto-popup-video::-webkit-media-controls-start-playback-button{display:none!important}

/* Paired 160×600 inventory previews. The game keeps its original dimensions. */
.game-panel{position:relative}
.game-ad-preview{display:none;pointer-events:none;user-select:none}
.game-panel.has-game-ad-space .game-ad-preview{display:flex;position:absolute;top:50%;transform:translateY(-50%);flex-direction:column;align-items:center;justify-content:center;gap:9px;width:160px;height:600px;border:1px dashed #91a48a40;border-radius:12px;background:#b5c8a803;color:#a7b69c80;text-align:center;font:600 12px/1.4 Nunito,system-ui,sans-serif;letter-spacing:.025em}
.game-ad-preview.ad-left{right:calc(100% + 32px)}
.game-ad-preview.ad-right{left:calc(100% + 32px)}
.game-ad-preview small{font-size:11px;font-weight:400;color:#a7b69c5e;letter-spacing:.04em}
@media(max-width:1023px),(max-height:647px){.game-panel.has-game-ad-space .game-ad-preview{display:none}}

/* The compact header and mobile banner share the exact side-slot fit decision. */
.compact-game-header,.game-bottom-ad{display:none}
body.compact-game main{height:calc(100dvh - 4px);min-height:0;max-width:none;padding:8px;display:flex;flex-direction:column;align-items:center;gap:8px}
body.compact-game .game-layout{height:100%;min-height:0;width:100%;display:flex;flex-direction:column;align-items:center;gap:8px;justify-content:flex-start}
body.compact-game .game-panel{flex:1 1 0;min-height:0;height:auto;margin:0;width:min(420px,100%);max-width:420px;align-self:center;padding:10px;display:flex;flex-direction:column}
body.compact-game .compact-game-header{display:flex;flex:0 0 36px;align-items:center;justify-content:space-between;gap:8px;min-width:0;margin:0 1px 6px;position:relative;z-index:5}
body.compact-game .compact-game-header a.site-logo{position:static;inset:auto;font-size:17px;line-height:22px;letter-spacing:-.6px;flex:none;width:auto;max-width:none;background:none}
body.compact-game .compact-game-header .game-guide{position:static;inset:auto;display:flex;flex-direction:row;align-items:center;justify-content:flex-end;gap:8px;max-width:none;width:auto;max-height:none;min-width:0;z-index:auto;text-align:right;align-self:auto}
body.compact-game .compact-game-header .intro{display:block!important;position:static;clip-path:none;width:auto;height:auto;overflow:visible;margin:0!important;padding:0;max-width:none;text-align:right;flex:none}
body.compact-game .compact-game-header .intro h1{font-size:18px!important;line-height:22px!important;letter-spacing:-.2px;margin:0;white-space:nowrap}
body.compact-game .compact-game-header .intro h1 span{display:inline}
body.compact-game .compact-game-header .intro>p{display:none}
body.compact-game .compact-game-header .help-trigger,body.compact-game .compact-game-header summary{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:30px;height:30px;min-height:30px;padding:0;margin:0;border:1px dashed #16cf5780;border-radius:50%;background:#16cf5708;color:var(--green);font-size:0;line-height:1;gap:0;flex:none}
body.compact-game .compact-game-header .help-trigger>span{display:none}
body.compact-game .compact-game-header .help-trigger::after{content:'?';font:800 18px/1 Nunito,system-ui,sans-serif}
body.compact-game .compact-game-header details{width:30px;min-width:30px}
body.compact-game .compact-game-header summary>svg,body.compact-game .compact-game-header summary>[data-text]{display:none}
body.compact-game .compact-game-header .guide-symbol{width:auto;height:auto;border:0;background:none;font-size:18px;line-height:1}
body.compact-game #guide-content{position:fixed;top:62px;right:max(12px,calc((100vw - 420px)/2));width:min(350px,calc(100vw - 24px));max-height:calc(100dvh - 84px);margin:0;z-index:1200}
body.compact-game .game-bottom-ad{box-sizing:content-box;display:flex;flex:0 0 48px;align-items:center;justify-content:center;gap:10px;width:318px;height:48px;border:1px dashed #91a48a40;border-radius:8px;background:#b5c8a803;color:#a7b69c80;font:600 10px/1.4 Nunito,system-ui,sans-serif;pointer-events:none;user-select:none}
body.compact-game .game-bottom-ad small{font:400 9px/1.4 Nunito,system-ui,sans-serif;color:#a7b69c5e}
body.compact-game .scorebar{flex:0 0 34px;height:34px;margin:0 2px 6px;padding-bottom:4px;min-height:0;gap:10px}
body.compact-game .board{flex:1 1 0;min-height:0;height:auto;aspect-ratio:auto}
body.compact-game .board canvas{height:100%;width:100%;object-fit:contain}
body.compact-game .drop{flex:0 0 36px;height:36px;margin-top:8px}
body.compact-game .hint{flex:0 0 10px;line-height:10px;margin:7px 0 0;font-size:8px}
body.compact-game .tray-label{display:none}
@media(max-width:360px){body.compact-game .compact-game-header a.site-logo{font-size:14px;letter-spacing:-.5px}body.compact-game .compact-game-header .intro h1{font-size:16px!important}body.compact-game .compact-game-header .game-guide{gap:5px}}
@media(max-width:335px){body.compact-game .game-bottom-ad{width:232px;height:58px;flex-basis:58px}}
@media(max-height:500px){body.compact-game main{padding:4px 8px;gap:4px}body.compact-game .game-layout{gap:4px}body.compact-game .game-panel{padding:6px 9px}body.compact-game .compact-game-header{flex-basis:30px;margin-bottom:3px}body.compact-game .scorebar{flex-basis:30px;height:30px;margin-bottom:3px}body.compact-game .hint{display:none}}

/* Compact games keep their language control in the top-right of help. */
.compact-help-language{display:none}
body.compact-game .compact-help-language{display:flex;justify-content:flex-end;align-items:center;flex:none;margin:0 0 12px auto}
body.compact-game .howto-dialog-header .compact-help-language{margin:0 0 0 auto}
body.compact-game .howto-dialog-header{gap:10px}
body.compact-game .compact-game-header .help-trigger,body.compact-game .compact-game-header summary{width:26px;height:26px;min-height:26px}
body.compact-game .compact-game-header details{width:26px;min-width:26px}
body.compact-game .compact-game-header .help-trigger::after,body.compact-game .compact-game-header .guide-symbol{font-size:15px}

.compact-help-language .language-toggle{display:flex;align-items:center;gap:2px;padding:3px;border:1px solid #354033;border-radius:24px;background:#1b221b;height:33px;box-sizing:border-box}
.compact-help-language .language-toggle button{display:flex;align-items:center;justify-content:center;width:25px;height:25px;min-width:25px;margin:0;padding:0;border:0;border-radius:50%;background:none;line-height:0}
.compact-help-language .language-toggle button[aria-pressed=true]{background:#2b392b;box-shadow:inset 0 0 0 1px #71836a}
.compact-help-language .language-toggle svg{display:block;width:18px;height:18px;border-radius:50%;opacity:.35;filter:grayscale(.55)}
.compact-help-language .language-toggle button[aria-pressed=true] svg{opacity:1;filter:none}

/* Compact scores sit within the drawn floor, leaving the header one row tall. */
.ground-scorebar{display:none;pointer-events:none;user-select:none}
body.compact-game .scorebar{display:none}
body.compact-game .ground-scorebar{position:absolute;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:18px;padding:0;z-index:1;color:#a9bca7;font:600 var(--score-label,8px)/1 Nunito,system-ui,sans-serif;letter-spacing:.5px;white-space:nowrap}
body.compact-game .ground-scorebar>span{display:inline-flex;align-items:center;gap:5px}
body.compact-game .ground-scorebar strong{font-size:var(--score-number,12px);font-weight:800;color:#e3edde;font-variant-numeric:tabular-nums;line-height:1}
/* Desktop uses the same quiet question control beside the game title. */
body:not(.compact-game) .game-guide{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;gap:10px}
body:not(.compact-game) .game-guide .intro{margin:0;text-align:right}
body:not(.compact-game) .help-trigger{width:26px;height:26px;min-height:26px;padding:0;gap:0;flex:none;border:1px dashed #16cf5780;border-radius:50%;background:#16cf5708;color:var(--green);font-size:0;line-height:1}
body:not(.compact-game) .help-trigger>span{display:none}
body:not(.compact-game) .help-trigger::after{content:'?';font:800 15px/1 Nunito,system-ui,sans-serif}

/* One in-frame header on every device; inventory changes independently. */
body.compact-game.has-side-game-ads .game-bottom-ad{display:none}

/* Readable wordmark in the shared game header. */
a.site-logo{font-weight:700}
body.compact-game .compact-game-header a.site-logo{font-weight:700;font-size:22px;line-height:28px;letter-spacing:-.35px}
@media(max-width:360px){body.compact-game .compact-game-header a.site-logo{font-size:20px;letter-spacing:-.3px}}

/* A tight shared header with equal line boxes and centered controls. */
body.compact-game .game-panel{padding-top:6px}
body.compact-game .compact-game-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;flex-basis:30px;min-height:30px;margin:0 1px 3px;gap:8px}
body.compact-game .compact-game-header a.site-logo{justify-self:start;align-self:center;line-height:24px}
body.compact-game .compact-game-header .game-guide{justify-self:end;align-self:center;align-items:center}
body.compact-game .compact-game-header .intro{display:flex!important;align-items:center;justify-content:flex-end}
body.compact-game .compact-game-header .intro h1{line-height:24px!important}
body.compact-game .compact-game-header .help-trigger,body.compact-game .compact-game-header summary{align-self:center}

/* Equal wordmark/title typography and a truly compact header on every screen. */
body.compact-game .game-panel{padding-top:4px}
body.compact-game .compact-game-header{flex:0 0 26px;min-height:26px;margin:0 1px 2px;align-items:center}
body.compact-game .compact-game-header a.site-logo,
body.compact-game .compact-game-header .intro h1{font-family:'Barlow Condensed','Arial Narrow',sans-serif;font-size:18px!important;font-weight:700!important;line-height:20px!important;letter-spacing:-.25px!important;margin:0;transform:none}
body.compact-game .compact-game-header .game-guide{gap:7px}
body.compact-game .compact-game-header .help-trigger,
body.compact-game .compact-game-header summary{width:24px;height:24px;min-height:24px}
body.compact-game .compact-game-header details{width:24px;min-width:24px}

/* Optical breathing room for the wordmark descenders and playfield alignment. */
body.compact-game .compact-game-header{box-sizing:border-box;flex:0 0 28px;min-height:28px;margin-bottom:4px}
body.compact-game .compact-game-header a.site-logo,
body.compact-game .compact-game-header .intro h1{transform:translateY(-2px)}

body.compact-game .compact-game-header{padding-inline:3px}

@media(max-width:600px){body.compact-game .compact-game-header a.site-logo,body.compact-game .compact-game-header .intro h1{font-size:17px!important}}
@media(max-width:360px){body.compact-game .compact-game-header a.site-logo,body.compact-game .compact-game-header .intro h1{font-size:16px!important}}

body.compact-game .compact-game-header{padding-inline:3px}
@media(max-width:335px){body.compact-game .game-bottom-ad small{font-size:0}body.compact-game .game-bottom-ad small::after{content:"234 × 60 px";font-size:9px}}

.brand-font-loading .home-logo,.brand-font-loading .policy-logo,.brand-font-loading .site-logo,.brand-font-loading .compact-game-header h1{visibility:hidden}

/* No browser focus or tap rings after interacting, on desktop or touch. */
*:focus,*:focus-visible{outline:none!important}*{-webkit-tap-highlight-color:transparent}

/* Help opens directly below the in-frame header, without a modal backdrop. */
#howto-video-dialog{position:fixed;inset:auto;top:var(--help-top,62px);right:var(--help-right,max(12px,calc((100vw - 420px)/2)));margin:0;width:min(350px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:var(--help-height,calc(100dvh - 84px));padding:0;box-sizing:border-box;z-index:1200;border:1px solid #354b36;border-radius:12px;background:#19221bf7;box-shadow:0 15px 40px #0004;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
#howto-video-dialog .howto-dialog-header{padding:9px 12px;gap:8px}
#howto-video-dialog .howto-dialog-header h2{font-size:14px}
#howto-video-dialog .tutorial-written-rules{grid-template-columns:1fr;gap:17px;padding:17px}
#howto-video-dialog .tutorial-written-rules h2{font-size:14px;margin:6px 0}
#howto-video-dialog .tutorial-written-rules p{font-size:12px;line-height:1.8}
#howto-popup-video{max-height:235px}

/* Header/title, question mark, outside click and Escape close the disclosure. */
#howto-video-dialog #close-howto-video{display:none!important}

/* Fine-pointer hover only; no layout shift, new focus ring or basket treatment. */
@media(hover:hover) and (pointer:fine){
 button:not(:disabled):not(:active):not(#open-tool-basket):not(.basket-launcher):hover{filter:brightness(1.09)}
 a:not(.basket-launcher):not(#open-tool-basket):hover{filter:brightness(1.1)}
 summary:hover{filter:brightness(1.14)}
 input:not([type=range]):not([type=checkbox]):hover,select:hover{border-color:#8caa9180}
}
