#arena {
  --board-width: min(90%, 660px);
  --board-top: 35%;
  --board-bottom: 12%;
  min-height: 590px;
}
.skyShade {background:linear-gradient(180deg,#100c2847,transparent 25%,transparent 84%,#100b3088)}
#hero,body:is([data-screen=flight],[data-screen=burst]) #hero {
  display:flex; flex-direction:column; align-items:center; gap:5px;
  top:8%; width:min(76%,475px); height:23%;
}
body[data-screen=result] #hero {display:none}
#hero h1 {flex:1;min-height:0;width:100%}
.yearMark {display:flex;align-items:center;gap:12px;color:#ffe1a2;font:bold italic clamp(16px,2.7vh,26px)/1.2 Georgia,serif;text-shadow:0 2px 4px #291329}
.yearMark:before,.yearMark:after {content:"✧";width:58px;color:#ffcd79;background:linear-gradient(90deg,transparent,#f5c66a) center / 65% 1px no-repeat;text-align:left}
.yearMark:after {transform:scaleX(-1)}
#storefront,#picker {
  width:var(--board-width);top:var(--board-top);bottom:var(--board-bottom);
  display:flex;justify-content:stretch;gap:clamp(12px,2.2vh,22px);
}
.goldFrame,#launchScene,.reward {
  border:2px solid #efc57b;border-radius:clamp(18px,3vw,32px);
  background:radial-gradient(ellipse at 48% 112%,#8949666b,transparent 55%),linear-gradient(145deg,#291835ec,#100e2beb 58%,#302044ed);
  box-shadow:0 0 0 2px #533250,inset 0 0 0 3px #583449,inset 0 0 22px #e7ae5029,0 0 13px #ffa34c68,0 12px 24px #120b286e;
}
.welcomeStage,.rack {position:relative;display:block;container-type:size;flex:1;min-height:0;width:100%;padding:0}
.stageRibbon,#chooseTitle {
  z-index:2;position:absolute;left:50%;top:0;transform:translate(-50%,-53%);width:max-content;max-width:86%;
  border:1px solid #dcb371;border-radius:5px 5px 12px 12px;background:linear-gradient(#633351,#331a3d);
  color:#ffdfa3;box-shadow:inset 0 0 0 2px #85496788,0 2px 4px #140c29aa;
  padding:6px clamp(12px,2vw,26px);font:700 clamp(14px,2vh,19px)/1.2 Georgia,serif;text-align:center;
}
.welcomeStage .homeShelf,.rack #choices {
  position:absolute;inset:11% 3% 6%;width:94%;height:83%;max-width:none;max-height:none;
  display:grid;grid-template-columns:repeat(var(--columns,4),minmax(0,1fr));grid-auto-rows:calc(100% / var(--rows,1));
  align-content:start;justify-content:stretch;align-items:stretch;justify-items:stretch;
  gap:0 1%;margin:0;padding:4px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c49968 #291731;
}
.welcomeStage .homeShelf.long-list,.rack #choices.long-list {grid-auto-rows:max(48px,calc(100% / var(--rows)))}
#homeShelf.dense .rocketTile,.rack #choices.dense .rocketTile {padding:1px 2px 3px}
#homeShelf.dense .rocketArt b,#choices.dense .rocketArt b {
  top:52%;font:800 clamp(11px,2.7cqh,16px)/1.2 Georgia,serif;letter-spacing:0;padding:0 3px;
  border:1px solid #f4ce83;border-radius:1em;background:#ffedc4;color:#3f2341;
}
@media(min-width:941px),(max-height:540px) and (min-aspect-ratio:1/1) and (min-width:701px){
 .welcomeStage .homeShelf.dense,.rack #choices.dense {grid-template-columns:repeat(var(--wide-columns),minmax(0,1fr));grid-auto-rows:max(32px,calc(100% / var(--wide-rows)))}
}
#homeShelf .rocketTile,.rack #choices .rocketTile {
 width:100%;height:100%;min-width:0;max-height:100%;padding:6px 3px 9px;
 align-items:center;justify-content:center;border-radius:18px;isolation:isolate;
}
.rocketTile:before {display:none}
#homeShelf .rocketArt,#choices .rocketArt {
  height:94%;width:auto;max-width:85%;aspect-ratio:204/678;
  filter:drop-shadow(0 0 7px #f6b15844) drop-shadow(0 5px 3px #0c0a20);
}
.rocketTile .rocketArt b {font-size:clamp(12px,min(4.6vw,7cqh),34px)}
.many .rocketTile .rocketArt b {font-size:clamp(11px,min(3.7vw,4.2cqh),20px)}
#homeShelf .rocketTile[aria-pressed=true],#choices .rocketTile[aria-pressed=true] {
  background:radial-gradient(ellipse,#db924d55 5%,#a75b5133 45%,transparent 72%);outline:1px solid #edbd6866;outline-offset:-2px;
}
#homeShelf .rocketTile[aria-pressed=true] .rocketArt,#choices .rocketTile[aria-pressed=true] .rocketArt {filter:drop-shadow(0 0 2px #fff4ac) drop-shadow(0 0 9px #ffba43)}
#homeShelf:has([aria-pressed=true]) .rocketTile[aria-pressed=false]{opacity:.62}
.rackNav {display:none}
.primary {
  color:#442230;border:1px solid #ffea9d;background:linear-gradient(#fff0a3,#ffcf5a 40%,#e99b3d 90%);
  box-shadow:inset 0 0 0 2px #f4b349,0 3px #85451f,0 0 15px #ffba4c58;
}
.secondary,.hintBar {color:#ffe2a0;border-color:#c29b65;background:linear-gradient(#422844eb,#24162ee8)}
#launchScene {inset:var(--board-top) auto var(--board-bottom) 50%;transform:translateX(-50%);width:var(--board-width);overflow:visible}
#launchUnit {height:58%;bottom:25%}
#launchUnit .rocketArt b {font-size:clamp(22px,4vh,39px)}
#launchControls {bottom:5%;gap:5px}
#fireworks {border-radius:inherit}
#spark {color:#fff5c0}
.reward {color:#ffe8b6;max-height:94svh;overflow:auto;padding:26px 22px 18px;width:min(88vw,390px)}
.reward .ribbon {top:auto;margin:0;color:#ffdf86;text-transform:none;background:linear-gradient(#683450,#351c3d);border-color:#c39159;transform:none;text-shadow:0 2px #66364a}
.reward .prizeDisplay {height:clamp(112px,24vh,195px);background:radial-gradient(ellipse,#ffc55d55,transparent 70%)}
.reward .prizeTitle {display:flex;align-items:center;justify-content:center;gap:8px;color:#ffdd92;font:bold clamp(20px,3.3vh,28px)/1.12 Georgia}
.reward .prizeTitle img {width:36px;height:36px;object-fit:contain}
.reward .textBtn,.reward .receipt {color:#f1d3b5}
.helpGuide {float:right;width:22%;max-height:110px;object-fit:contain}
@media(max-width:700px) {
 #arena {--board-width:min(92%,510px);--board-top:33%;--board-bottom:18%;min-height:560px}
 #hero {top:10%;height:18%;width:80%}
 body:is([data-screen=flight],[data-screen=burst]) #hero {top:10%;height:18%;width:80%}
 .stageRibbon,#chooseTitle {width:max-content;max-width:88%;font-size:14px}
 #homeShelf:not(.many):has(.rocketTile:nth-child(4)),#choices:not(.many):has(.rocketTile:nth-child(4)) {grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:50%}
 #homeShelf:not(.many):has(.rocketTile:nth-child(5)),#choices:not(.many):has(.rocketTile:nth-child(5)) {grid-template-columns:repeat(3,minmax(0,1fr))}
 .welcomeStage .homeShelf,.rack #choices {gap:0 1%;height:83%;width:94%}
 .rocketTile .rocketArt b {font-size:clamp(12px,4cqh,20px)}
}
@media(max-height:540px) and (min-aspect-ratio:1/1) {
 #arena{min-height:365px;--board-width:55%;--board-top:32%;--board-bottom:9%}
 #hero,body:is([data-screen=flight],[data-screen=burst]) #hero{top:8%;height:19%}
 .yearMark{display:none}
 .stageRibbon,#chooseTitle{padding:3px 12px;font-size:12px}
 #storefront,#picker{gap:7px}
 .reward .prizeDisplay{height:70px}
}
body.embeddedPreview #arena {min-height:350px;--board-top:32%;--board-bottom:4%}
body.embeddedPreview #hero {top:2%;height:22%}
body.embeddedPreview #storefront,body.embeddedPreview #picker {top:var(--board-top);bottom:var(--board-bottom)}

.ignitionHand {position:absolute;right:0;top:64%;width:40%;height:auto;pointer-events:none;transform-origin:100% 50%;filter:drop-shadow(0 3px 7px #140a2680)}
.liftoff .ignitionHand {opacity:0;transition:opacity .15s}
@media(max-width:700px) and (min-height:541px) {
 #hero,body:is([data-screen=flight],[data-screen=burst]) #hero {top:8%;height:21%}
}

.welcomeGuide {
  position:absolute;right:calc(100% + 10px);bottom:0;width:min(calc((100vw - 660px) / 2 - 18px),265px);
  height:min(125%,420px);pointer-events:none;
}
.welcomeGuide :is(img,canvas) {width:100%;height:100%;object-fit:contain;object-position:right bottom;display:block}
@media(max-width:940px) {
  #storefront .welcomeStage,#picker .rack {width:79%;align-self:flex-end}
  .welcomeGuide {
    left:auto;right:calc(100% + 2px);bottom:0;
    width:26%;height:82%;max-height:285px;
  }
  .welcomeGuide :is(img,canvas) {position:absolute;right:-3%;bottom:0;width:124%;height:auto;max-height:100%;object-position:right bottom}
}
@media(max-height:540px) and (min-aspect-ratio:1/1) {
  body[data-screen=home] #hero {width:min(65%,430px);left:50%}
  #storefront .welcomeStage,#picker .rack {width:100%}
  :is(#storefront,#picker) .welcomeGuide {
    right:calc(100% + 8px);bottom:0;left:auto;width:min(19vw,175px);height:100%;
    mask-image:none;
  }
  :is(#storefront,#picker) .welcomeGuide :is(img,canvas) {position:static;width:100%;height:100%;object-fit:contain;object-position:right bottom}
}
body.embeddedPreview .welcomeGuide {max-height:75%}
