@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');
:root{--ink:#283f38;--paper:#faf5e9;--orange:#f36949;--muted:#7a897e}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',sans-serif}button,a{-webkit-tap-highlight-color:transparent}button{color:inherit;font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #387ec2;outline-offset:4px}header{max-width:1280px;margin:auto;padding:0 40px;height:84px;border-bottom:1px solid #dddccd;display:flex;align-items:center;justify-content:space-between}.brand{text-decoration:none;color:var(--ink);font:800 15px Outfit,sans-serif;letter-spacing:1.4px;display:flex;align-items:center;gap:10px}.brand>span{color:var(--orange);font-size:37px}.brand sup{font-size:9px;align-self:flex-start;margin-top:11px}.header-actions{display:flex;align-items:center;gap:10px}.edition,.eyebrow,.mini-label,.menu-controls,footer,.heckler-credit,.field-note,.best small{font-size:9px;font-weight:700;letter-spacing:1.25px}.edition{margin-right:18px;font-size:8px}.icon{height:34px;width:34px;border:1px solid #ccd2c4;border-radius:50%;background:transparent;font-size:18px;position:relative}.icon i{color:var(--orange);position:absolute;left:10px;top:5px}.icon:disabled{opacity:.3;cursor:default}main{max-width:1050px;padding:33px 40px 0;margin:auto}.intro{margin-bottom:25px}.eyebrow{display:flex;align-items:center;gap:7px;color:#7c8978;font-size:8px}.eyebrow>span{background:var(--orange);width:6px;height:6px;border-radius:50%}h1{font:800 clamp(34px,4.2vw,53px)/1.1 Outfit,sans-serif;letter-spacing:-2px;margin:10px 0}h1 em{font-style:normal;color:var(--orange)}.star{display:inline-block;margin-left:20px;transform:rotate(14deg);font-size:42px;color:var(--orange)}.intro>p{font-size:12px;color:#7a857a;margin:0}.layout{display:grid;grid-template-columns:minmax(0,530px) 277px;justify-content:center;gap:32px}.arcade{border:1.5px solid var(--ink);border-radius:20px;overflow:hidden;box-shadow:0 5px 0 #283f3814;background:#fffcf3;align-self:start}.hud{display:flex;height:72px;padding:0 20px;align-items:center;justify-content:space-between;gap:12px}.hud small,.best small{display:block;font-size:7px;letter-spacing:1.1px;color:#8a9384;font-weight:700}.hud b{font:700 26px Outfit,sans-serif;letter-spacing:-1px}.hud em,.best em{font-style:normal;font-size:12px}.hud .health b{font-size:19px;color:var(--orange);letter-spacing:2px;line-height:32px}.viewport{position:relative;aspect-ratio:420/580;overflow:hidden;background:#e6efd9;touch-action:none}canvas{width:100%;height:100%;display:block}.altitude-tag{position:absolute;top:16px;left:0;right:0;text-align:center;pointer-events:none;color:#7c9789;font:600 8px 'DM Sans';letter-spacing:1.5px}.screen{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:20px;background:#e6efd9ed;z-index:10}.hero-stage{width:280px;height:205px;position:relative;margin:0 0 20px}.orbit{position:absolute;border:1px solid #bfceb1;border-radius:50%;width:270px;height:270px;top:-30px;left:5px}.orbit:after{content:'';position:absolute;width:220px;height:220px;top:24px;left:24px;border:1px dashed #c5d3b7;border-radius:50%}.main-dog{position:absolute;width:162px;height:174px;object-fit:contain;left:60px;top:7px;filter:drop-shadow(4px 6px 0 #42593e15);transform:rotate(-6deg);animation:hop 2.8s ease-in-out infinite}.hero-platform{position:absolute;left:82px;bottom:5px;width:116px;height:16px;background:#80ad73;border:2px solid #3d6c50;border-radius:8px;box-shadow:0 5px 0 #bccfa8;transform:rotate(-3deg)}.spark{position:absolute;color:var(--orange);font-size:35px}.one{left:19px;top:52px}.two{right:0;bottom:35px;font-size:49px;color:#6a9562}.dog-quote{position:absolute;right:-44px;top:5px;background:#fffaf0;border:1px solid #d6d9c4;border-radius:15px 15px 15px 0;padding:11px;font-size:10px;line-height:1.4;font-weight:700;transform:rotate(8deg)}.mission-badge{position:absolute;left:19px;top:23px;border:1px dashed #c3a44a;background:#ffe398;padding:17px 9px;border-radius:50%;font-size:7px;letter-spacing:1px;line-height:1.6;transform:rotate(-12deg);z-index:2}.mission-badge b{font-size:7px}.mini-label{color:#6a8866;font-size:7px}.screen h2{font:800 54px/.95 Outfit,sans-serif;letter-spacing:-2px;margin:12px 0 14px}.screen p{font-size:12px;line-height:1.65;color:#6c7e65;margin:0 0 23px}.primary{background:var(--orange);border:1.5px solid var(--ink);border-radius:10px;box-shadow:0 4px 0 var(--ink);min-height:51px;padding:0 23px;font-size:11px;font-weight:800;letter-spacing:1px;display:flex;align-items:center;justify-content:center;gap:35px}.primary:hover{background:#ff7c5e;transform:translateY(-1px)}.primary:active{transform:translateY(3px);box-shadow:0 1px 0 var(--ink)}.primary>span{font-size:24px;font-weight:400}.menu-controls{font-size:7px;color:#7e8f74;margin-top:20px}.controls{height:68px;display:flex;align-items:center;justify-content:space-between;padding:8px 12px;gap:10px}.controls>button{border:1px solid #d7d9ca;background:#f4f0e2;border-radius:11px;width:66px;height:48px;font-size:25px;line-height:22px;touch-action:none;user-select:none}.controls>button small{font-size:6px;letter-spacing:1px;display:block;line-height:12px}.controls>button:active,.controls>button.held{background:#ffe096;border-color:#bda15e}.controls>div{text-align:center;line-height:1.7}.controls b{display:block;font-size:7px;letter-spacing:.8px}.controls span{display:block;font-size:8px;color:#8a9384}.briefing{background:#fefbf2;border:1px solid #dadcca;border-radius:17px;padding:24px}.briefing h2{font:700 30px/1.1 Outfit;letter-spacing:-.9px;margin:16px 0 12px}.briefing>p{font-size:11px;line-height:1.8;color:#7e8876}.dashed{border-bottom:1px dashed #cfd3c0;margin:22px 0}.rule{display:flex;align-items:center;gap:13px;margin:18px 0}.rule>img,.tile{width:40px;height:43px;object-fit:contain;flex-shrink:0}.tile{display:grid;place-items:center;font-size:29px;background:#ffedbc;border-radius:11px;color:#d79245}.rule b{display:block;font-size:11px}.rule div>span{display:block;font-size:9px;color:#828b78;line-height:1.7;margin-top:4px}.platform-key{display:flex;gap:10px;border-top:1px dashed #d6d9c7;padding-top:16px;margin-top:22px;font-size:7px;color:#7d8973}.platform-key i{display:inline-block;width:16px;height:6px;border-radius:3px;vertical-align:middle;margin-right:3px}.green{background:#84b67d}.blue{background:#6eb7d5}.brown{background:#c89d75}.heckler{border:1px solid #dadcca;border-radius:14px;padding:19px;margin-top:16px}.heckler-row{display:flex;gap:13px;align-items:center;margin:12px 0}.heckler-row img{width:65px;height:80px;object-fit:contain;transform:rotate(-5deg)}.heckler-row p{font:600 16px/1.3 Outfit;letter-spacing:-.25px;margin:0}.heckler-credit{font-size:6px;color:#8c947e;line-height:1.5}.best{display:flex;justify-content:space-between;align-items:center;margin:23px 3px}.best b{font:700 33px Outfit;letter-spacing:-1px}.best>span{font-size:45px;color:var(--orange)}.field-note{font-size:7px;line-height:1.9;color:#9a9d8b;border-top:1px solid #dbdecc;padding:18px 3px}.field-note b{font-weight:400;font-size:9px;letter-spacing:0}footer{display:flex;justify-content:space-between;align-items:center;color:#929b89;font-size:7px;padding:25px 0;gap:20px}footer b{color:var(--orange);font-size:20px;vertical-align:middle;margin-left:5px}.hidden{display:none!important}.toast{position:absolute;left:50%;top:58px;transform:translateX(-50%) rotate(-3deg);max-width:90%;width:max-content;background:#ffe39b;border:1px solid #ac9860;color:#4e563a;padding:10px 14px;border-radius:10px;font:600 13px Outfit;z-index:5;opacity:0;transition:opacity .2s;text-align:center;pointer-events:none}.toast.show{opacity:1}.pause-cloud{font-size:100px;color:#fffcf1}.text-btn{background:none;border:none;text-decoration:underline;text-underline-offset:4px;font-size:11px;margin-top:24px}.result-dog{height:125px;max-width:150px;object-fit:contain;transform:rotate(-8deg);margin-bottom:17px}#results h2{font-size:43px}#results p{max-width:260px}.result-stats{display:flex;gap:25px;margin-bottom:30px}.result-stats b{font:700 31px Outfit;color:var(--orange);display:block}.result-stats span{font-size:7px;letter-spacing:1px;color:#798b6d}dialog{border:1.5px solid var(--ink);border-radius:20px;background:var(--paper);padding:32px;max-width:490px;width:calc(100% - 30px);color:var(--ink)}dialog::backdrop{background:#23392b99;backdrop-filter:blur(5px)}dialog h2{font:800 36px Outfit;letter-spacing:-1px}dialog p,dialog li{font-size:12px;line-height:1.8}dialog ul{padding-left:18px}dialog .close:not(.primary){position:absolute;top:9px;right:13px;background:none;border:none;font-size:29px}dialog .primary{width:100%;margin-top:20px;font-size:10px}@keyframes hop{50%{transform:translateY(-13px) rotate(3deg)}}@media(min-width:1000px){.viewport{aspect-ratio:420/560}.hero-stage{height:210px}}@media(max-width:760px){main{padding:25px 22px 0}.layout{gap:20px;grid-template-columns:minmax(0,1fr) 220px}.briefing{padding:19px}.briefing h2{font-size:27px}.hud{padding:0 13px;gap:8px}.hud small{font-size:6px}.hud b{font-size:22px}.hud .health b{font-size:16px}.screen h2{font-size:42px}.hero-stage{transform:scale(.8);margin:-15px 0 0}.dog-quote{right:-10px}.screen p{font-size:10px}.menu-controls{font-size:6px}.mission-badge{font-size:6px;padding:12px 8px}.screen .mini-label{font-size:6px}.heckler{padding:15px}.heckler-row p{font-size:14px}}@media(max-width:600px){header{height:60px;padding:0 18px}.brand{font-size:11px;letter-spacing:1px;gap:7px}.brand>span{font-size:29px}.brand sup{margin-top:4px}.edition{display:none}.icon{width:31px;height:31px;font-size:17px}.icon i{left:8px;top:5px}main{padding:19px 12px 0}.intro{margin:0 5px 18px}.eyebrow{font-size:6.5px;letter-spacing:1px}h1{font-size:clamp(26px,8vw,34px);letter-spacing:-1.5px;margin:9px 0}.star{font-size:23px;margin-left:6px}.intro>p{font-size:10px}.layout{display:block}.arcade{border-radius:17px}.hud{height:57px;padding:0 16px}.hud small{font-size:6px;letter-spacing:.8px}.hud b{font-size:23px}.hud .health b{font-size:16px;letter-spacing:1px}.hud .icon{width:28px;height:28px}.viewport{aspect-ratio:420/610;max-height:calc(100svh - 292px);min-height:380px}.screen{padding:14px}.hero-stage{transform:scale(.85);height:190px;margin:-18px 0 -7px}.screen h2{font-size:44px;margin:10px 0 12px}.screen p{font-size:11px;margin-bottom:18px}.mission-badge{left:14px;top:19px;padding:14px 9px;font-size:6px}.primary{min-height:48px;font-size:10px;padding:0 21px}.menu-controls{margin-top:17px;font-size:6px}.mini-label{font-size:6px}.controls{height:62px;padding:7px 10px}.controls>button{height:46px;width:64px}.controls b{font-size:6px}.controls span{font-size:7px}aside{display:flex;flex-wrap:wrap;gap:12px;margin-top:14px;align-items:center}.briefing,.field-note{display:none}.heckler{margin:0;padding:13px;flex:1;min-width:190px}.heckler .eyebrow{font-size:6px}.heckler-row{gap:10px;margin:6px 0}.heckler-row img{width:35px;height:44px}.heckler-row p{font-size:12px}.heckler-credit{font-size:5px}.best{margin:0 5px;min-width:90px}.best small{font-size:6px;max-width:80px;line-height:1.5}.best b{font-size:29px}.best>span{display:none}footer{padding:19px 4px;font-size:5px;letter-spacing:.7px}footer>span:last-child{text-align:right}.result-dog{height:90px;margin-bottom:10px}#results h2{font-size:34px}.result-stats{margin-bottom:24px}.toast{top:46px;font-size:11px}.screen .mini-label{font-size:6px}}@media(max-height:730px) and (max-width:600px){.hero-stage{height:144px;transform:scale(.7);margin:-32px 0 -20px}.screen h2{font-size:35px;margin:10px 0}.screen p{font-size:10px;margin-bottom:14px}.menu-controls{margin-top:14px}.mission-badge{padding:11px 7px}.result-dog{height:70px}#results h2{font-size:29px}.result-stats b{font-size:24px}.result-stats{margin-bottom:20px}.screen .mini-label{font-size:5.5px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* Explicit width prevents Safari's aspect-ratio/max-height sizing from
   narrowing the playfield while leaving a blank strip in the game card. */
.viewport{width:100%;min-width:0}
#game{position:absolute;inset:0;width:100%;height:100%}
.brand>span,.primary>span,.health b{font-variant-emoji:text}

/* A phone is a game screen: reserve space for controls first, then give
   every remaining pixel to the playfield. Browser bars are handled by dvh. */
@media(max-width:600px),(max-height:500px) and (pointer:coarse){
  html{height:100%;overflow:hidden}
  body{height:100vh;height:100dvh;min-height:0;overflow:hidden;overscroll-behavior:none;display:flex;flex-direction:column;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)}
  header{height:48px;min-height:48px;flex:0 0 48px;width:100%;padding:0 15px;margin:0;border:0}
  .brand{font-size:10px;letter-spacing:1px;gap:7px}
  .brand>span{font-size:25px;line-height:1}
  .brand sup{margin-top:0;font-size:7px}
  .header-actions{gap:8px}.header-actions .icon{width:34px;height:34px}
  .edition{display:none}
  main{width:100%;max-width:none;min-height:0;flex:1;margin:0;padding:0 8px 8px;display:flex;flex-direction:column;gap:7px}
  .intro{flex:0 0 auto;margin:0;padding:0 7px}
  .intro .eyebrow,.intro>p,.intro .star{display:none}
  h1{font-size:24px;line-height:1.1;letter-spacing:-.8px;margin:0 0 2px;white-space:nowrap}
  .layout{display:flex;flex-direction:column;flex:1;min-height:0;gap:0}
  .arcade{width:100%;height:100%;min-height:0;min-width:0;display:flex;flex-direction:column;align-self:stretch;border-radius:16px;box-shadow:none;overflow:hidden}
  .hud{height:52px;min-height:52px;flex:0 0 52px;padding:0 14px;gap:8px}
  .hud small{font-size:6px;letter-spacing:.65px;white-space:nowrap}
  .hud b{font-size:23px;line-height:1.15}.hud .health b{font-family:Arial,sans-serif;font-size:19px;letter-spacing:1px;line-height:26px}
  .hud .icon{width:30px;height:30px;flex-shrink:0}
  .viewport{width:100%;height:auto;min-width:0;min-height:0;max-height:none;aspect-ratio:auto;flex:1 1 0;align-self:stretch;container-type:size}
  .altitude-tag{top:10px;font-size:7px;letter-spacing:1px}
  .controls{height:66px;min-height:66px;flex:0 0 66px;padding:7px 10px;gap:9px}
  .controls>button{height:50px;width:76px;min-width:66px;flex-shrink:0;border-radius:12px;font-size:29px;line-height:26px}
  .controls>button small{font-size:7px;line-height:12px}
  .controls b{font-size:6px;letter-spacing:.4px}.controls span{font-size:8px;line-height:1.4}
  aside,footer{display:none}
  .screen{padding:14px 12px;overflow-y:auto;overflow-x:hidden;justify-content:center;gap:0}
  .screen>*{flex-shrink:0}
  .hero-stage{width:230px;height:148px;max-height:none;transform:none;margin:0 0 9px}
  .orbit{width:185px;height:185px;left:23px;top:-15px}
  .orbit:after{width:155px;height:155px;top:14px;left:14px}
  .main-dog{width:125px;height:133px;left:52px;top:0}
  .hero-platform{width:102px;height:13px;left:66px;bottom:1px}
  .dog-quote{right:-8px;top:4px;padding:8px;font-size:9px;line-height:1.3;max-width:95px}
  .spark.one{font-size:26px;left:10px;top:40px}.spark.two{font-size:33px;right:0;bottom:17px}
  .mission-badge{display:none}
  #menu>.mini-label{display:none}
  .screen h2{font-size:35px;line-height:1;letter-spacing:-1px;margin:10px 0 10px}
  #menu h2 br{display:none}#menu h2 br:after{content:' '}
  .screen p{font-size:11px;line-height:1.5;margin:0 0 17px}
  .screen .primary{min-height:49px;max-width:100%;font-size:11px;padding:0 22px;gap:27px}
  .menu-controls{font-size:7px;margin-top:15px;letter-spacing:.6px}
  .pause-cloud{font-size:70px;line-height:1.1}
  .result-dog{height:92px;margin-bottom:10px}
  #results h2{font-size:32px;margin:10px 0}#results p{margin-bottom:14px}
  .result-stats{gap:25px;margin-bottom:22px}.result-stats b{font-size:27px}
  .toast{top:35px;font-size:11px;max-width:90%}
  dialog{max-height:calc(100dvh - 32px);overflow:auto;padding:25px}
  @container(max-height:410px){
    .hero-stage{height:118px;width:210px;margin-bottom:4px}
    .main-dog{width:102px;height:108px;left:54px}
    .hero-platform{left:57px;width:100px}
    .orbit{width:150px;height:150px;left:29px;top:-12px}.orbit:after{width:124px;height:124px;left:12px;top:12px}
    .dog-quote{font-size:8px;padding:7px;right:-7px}.spark.two{font-size:27px}
    .screen h2{font-size:30px;margin:8px 0}
    .screen p{font-size:10px;margin-bottom:13px}
    .menu-controls{margin-top:11px;font-size:6px}
    .result-dog{height:65px}.result-stats{margin-bottom:15px}
    #results h2{font-size:27px}
  }
  @container(max-height:300px){
    #menu .hero-stage,.result-dog{display:none}
    .screen h2{font-size:29px;margin:5px 0 9px}
    .screen p{margin-bottom:12px}
    .pause-cloud{display:none}
  }
}
@media(max-height:500px) and (pointer:coarse){
  header{height:38px;min-height:38px;flex-basis:38px}
  .intro{display:none}
  .hud{height:42px;min-height:42px;flex-basis:42px}
  .controls{height:56px;min-height:56px;flex-basis:56px}
  .controls>button{height:44px}
}
@media(max-width:600px),(max-height:500px) and (pointer:coarse){
  .screen{touch-action:pan-y}
  @container(max-height:360px){
    #menu>p{display:none}
    #menu .hero-stage{height:96px;margin-bottom:0}
    #menu .main-dog{height:86px;width:82px;left:63px}
    #menu .orbit{display:none}
    #menu .dog-quote{top:0;font-size:8px}
  }
}

/* Keep the greeting snug and above the dog's head, clear of his eyes. */
#menu .dog-quote{
  width:max-content;
  max-width:none;
  left:calc(50% + 38px);
  right:auto;
  top:-30px;
  padding:5px 7px;
  border-radius:10px 10px 10px 2px;
  font-size:10px;
  line-height:1.25;
  white-space:nowrap;
  transform:rotate(5deg);
}
@media(max-width:600px),(max-height:500px) and (pointer:coarse){
  #menu .dog-quote{left:calc(50% + 32px);top:-28px;font-size:9px;padding:5px 7px}
}
