:root{color-scheme:dark;font-family:"Nunito","Trebuchet MS",system-ui,sans-serif;color:#fff8dd;background:#143731;--sun:#ffcf58;--foam:#a7ead4;--ink:#122f2c}
.game-footer{display:none}
html[data-edition=web] body{display:grid;grid-template-rows:minmax(0,1fr) auto;height:100dvh}
html[data-edition=web] #game{height:100%;min-height:0}
html[data-edition=web] .game-footer{display:flex;justify-content:center;align-items:center;gap:clamp(10px,3vw,46px);flex-wrap:wrap;padding:0 max(6px,env(safe-area-inset-left)) env(safe-area-inset-bottom);background:#10312d;border-top:1px solid #6c9c84;color:#fff3d7;font-size:clamp(12px,1.4vw,15px);line-height:1.1}
.game-footer .roblox-links,.game-footer a{display:inline-flex;align-items:center}
.game-footer .roblox-links{gap:clamp(7px,1.4vw,19px)}
.game-footer b{color:#9edfc8}.game-footer a{min-height:39px;color:inherit;text-underline-offset:3px;text-decoration-color:#7d9d88}
.game-footer a:hover,.game-footer a:focus-visible{color:#ffdb77}.channel-link{gap:5px}.channel-link i{font-style:normal;font-size:.71em;background:#c44436;color:white;border-radius:4px;padding:3px 5px}
@media(max-width:355px){html[data-edition=web] .game-footer{font-size:11px;gap:9px}}
*{box-sizing:border-box}
html,body,#game{width:100%;height:100%;margin:0;overflow:hidden}
body{overscroll-behavior:none;-webkit-tap-highlight-color:transparent}
#game{position:relative;isolation:isolate;height:100dvh;min-height:100%;background:#246760}
#pond{position:absolute;inset:0;width:100%;height:100%;touch-action:none}
[hidden]{display:none!important}
button,a{font:inherit}
button{min-height:44px;border:0;cursor:pointer;color:inherit;-webkit-appearance:none;appearance:none}
button:disabled{opacity:.65;cursor:default}
button:focus-visible,a:focus-visible{outline:3px solid white;outline-offset:3px}
header{position:absolute;inset:0 0 auto;display:flex;align-items:flex-start;justify-content:space-between;padding:clamp(16px,3.6vh,36px) clamp(15px,3.6vw,60px) 55px;pointer-events:none;background:linear-gradient(180deg,#082929c4,#10333057 58%,transparent)}
.mast{filter:drop-shadow(0 2px 3px #152e2f52)}
.studio,.kicker,.location,.album-button,.hero-choice span{font-family:"Barlow","Trebuchet MS",system-ui,sans-serif;font-weight:800}
.studio{display:flex;align-items:center;gap:8px;color:#fff0bd;font-size:clamp(11px,1.05vw,15px);letter-spacing:.19em}
.studio i{position:relative;display:block;width:19px;height:13px;border-radius:60% 55% 40% 48%;background:#ffcf58;transform:rotate(-12deg)}
.studio i:after{content:"";position:absolute;left:6px;top:4px;width:2px;height:4px;border-radius:2px;background:#173737;box-shadow:5px 0 #173737}
h1{font-family:"Bricolage Grotesque","Arial Rounded MT Bold","Trebuchet MS",sans-serif;text-shadow:0 3px 0 #23423ce0;line-height:.99;letter-spacing:-.067em;font-size:clamp(38px,4.8vw,78px);margin:5px 0 8px;font-weight:1000}
h1 em{font-style:italic;color:#ffcf58}
.location{display:flex;align-items:center;gap:8px;font-size:clamp(13px,1.05vw,16px);letter-spacing:.065em;color:#fff7dc}
.location span{width:20px;height:1px;background:#ffeab0bb}
nav{display:flex;align-items:center;gap:7px;pointer-events:auto}
nav button{background:#153a34e8;border:1px solid #efe8bf79;border-radius:13px;box-shadow:0 3px 7px #15373133;padding:0 12px;font-size:14px}
#sound{font-size:20px;width:44px;padding:0}
.album-button{display:flex;gap:8px;align-items:center}
.album-button b{font-size:12px;letter-spacing:.04em;color:var(--sun);font-variant-numeric:tabular-nums}
.book{position:relative;width:16px;height:16px;background:#ffe8aa;border:2px solid #eab34c;border-radius:2px 4px 4px 2px;transform:rotate(-7deg)}
.book:before{content:"";position:absolute;inset:0 auto 0 2px;width:1px;background:#568775}
.book:after{content:"";position:absolute;width:4px;height:4px;top:4px;right:2px;background:#327b68;transform:rotate(45deg)}
#opening{position:absolute;left:50%;top:70%;transform:translate(-50%,-50%);padding:10px 18px;background:#133832ef;border-radius:30px;white-space:nowrap;font-weight:bold}
#hud{position:absolute;bottom:max(2.8vh,env(safe-area-inset-bottom),10px);left:0;right:0;display:flex;justify-content:center;pointer-events:none;padding-inline:max(12px,env(safe-area-inset-left))}
#control{pointer-events:auto;display:flex;align-items:center;gap:clamp(10px,1.6vw,26px);width:min(880px,100%);border:1px solid #a2ccb490;border-top-color:#eee0a78c;background:linear-gradient(112deg,#133d36f5,#133332f5 65%,#102f2df9);border-radius:19px;box-shadow:0 8px 26px #082c3255,inset 0 1px 0 #ffffff13;padding:13px 17px 14px 21px}
.copy{flex:1;min-width:0}
.kicker{text-transform:uppercase;letter-spacing:.14em;color:#a9e6cf;font-size:.69rem;line-height:1.3}
.copy h2,.postcard h2{font-family:"DM Serif Text","Georgia",serif;line-height:1.04;letter-spacing:-.035em;margin:3px 0 4px;font-weight:700}
.copy h2{font-size:clamp(22px,2.3vw,34px)}
.copy p{margin:0;color:#f3f2dd;font-size:clamp(13px,1vw,16px);line-height:1.28;max-width:49ch}
#crew{display:flex;align-items:center;gap:4px}
.hero-choice{display:grid;justify-items:center;align-content:center;background:#264d48;border:1px solid #b4d6be50;border-radius:11px;min-width:61px;min-height:49px;padding:2px 5px;color:#e6f2df}
.hero-choice canvas{width:34px;height:28px;display:block}
.hero-choice span{font-size:11px;line-height:1.1}
.hero-choice[aria-pressed=true]{border-color:#fed25c;background:#426358;color:#fff2be;box-shadow:inset 0 0 0 1px #efc865}
.action{display:inline-flex;gap:9px;align-items:center;justify-content:center;min-width:132px;padding:12px 18px;min-height:50px;font-weight:900;background:linear-gradient(165deg,#ffdf77,#ffc34b);border:1px solid #ffeb9e;border-bottom:3px solid #c98930;color:#233c32;border-radius:13px;box-shadow:0 2px 2px #0b252641}
.action:active,.hero-choice:active{transform:translateY(1px)}
#actIcon{color:#795315;font-size:1.05em}
dialog{width:min(470px,calc(100% - 26px));max-height:calc(100dvh - 24px);padding:0;border:0;border-radius:18px;background:#fff0c2;color:#173c35;box-shadow:0 18px 80px #081f24a6}
dialog::backdrop{background:#082e31bd}
.postcard{padding:20px clamp(18px,4vw,30px) 25px;background:radial-gradient(ellipse at 0 0,#fffcec,#fff2cd 52%,#f5db9d);position:relative;overflow:hidden}
.perforation{height:5px;background:repeating-linear-gradient(115deg,#237766 0 10px,transparent 10px 15px,#d57853 15px 24px,transparent 24px 30px);position:absolute;top:0;left:0;right:0}
.sheet-head{display:flex;align-items:center;justify-content:space-between}
.postcard .kicker{color:#396d59}
#albumClose{background:transparent;color:#264a40;font-size:28px;min-width:44px;line-height:1}
.postcard h2{font-size:clamp(36px,5vw,48px);margin:0 0 9px}
.postcard p{font-size:15px;line-height:1.45;margin:8px 0 16px}
#stamps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:19px 0}
.stamp{position:relative;text-align:center;background:#e2dcc3;border:1.5px dashed #879889;border-radius:11px;padding:7px 2px 9px}
.stamp canvas{width:min(100%,83px);height:auto;display:block;margin:auto;filter:grayscale(.95);opacity:.54}
.stamp strong,.stamp small{display:block}.stamp strong{font-size:14px}.stamp small{color:#50665c;font-size:11px}
.stamp.home{border:2px solid #287765;padding:6.5px 1.5px 8.5px;background:#d7ebca}.stamp.home canvas{filter:none;opacity:1}
#albumBack{width:100%;margin-top:4px}#roblox{display:block;text-align:center;color:#154e41;font-weight:800;margin:6px auto 15px}
#saveNote{font-size:13px}#deliveryNote{font-weight:600}
.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:620px) and (min-height:460px){
  header{padding: max(19px,env(safe-area-inset-top)) 15px 52px}h1{font-size:clamp(33px,8.5vw,49px)}
  nav{gap:5px}nav button{padding:0 8px}.album-button{gap:5px}#sound{width:36px;min-width:36px}
  #hud{bottom:max(12px,env(safe-area-inset-bottom))}#control{display:grid;grid-template-columns:auto 1fr;gap:9px 12px;padding:12px 14px;border-radius:16px}
  .copy{grid-column:1/-1}.copy h2{font-size:25px}.copy p{font-size:14px}#crew{gap:5px}.hero-choice{min-width:58px;min-height:44px}.hero-choice canvas{width:30px;height:24px}
  #action{justify-self:end;min-width:130px}.copy:has(~#crew[hidden]){grid-column:1/-1}
  #crew[hidden]+#action{grid-column:1/-1;width:100%}
}
@media(max-height:475px){
  header{padding:8px max(12px,env(safe-area-inset-right)) 25px max(12px,env(safe-area-inset-left))}h1{font-size:32px;margin:2px 0}.studio{font-size:10px;gap:5px}.studio i{width:16px;height:10px}.location{font-size:12px}
  #hud{bottom:max(4px,env(safe-area-inset-bottom))}#control{gap:8px;padding:5px 8px 6px 11px;border-radius:12px;width:min(750px,100%)}
  .kicker{font-size:9px}.copy h2{font-size:20px;margin:1px 0}.copy p{font-size:12px}.hero-choice{min-width:49px;min-height:40px}.hero-choice canvas{width:28px;height:22px}.action{padding:6px 10px;min-height:42px;min-width:105px}
  dialog{max-width:460px}.postcard{padding:6px 18px 10px}.postcard h2{font-size:28px}.postcard p{margin:3px 0 7px}#stamps{margin:7px 0}.stamp canvas{height:44px;width:auto}
}
@media(max-width:355px){h1{font-size:28px}.book{display:none}#sound{width:40px;min-width:40px}.album-button{font-size:12px}.action{min-width:116px}#hud{padding-inline:6px}}
@media(max-width:355px) and (min-height:460px){
  #control{padding:8px 10px;gap:6px 8px}.copy h2{font-size:22px}.copy p{font-size:13px}
  .hero-choice{min-width:51px}#action{font-size:14px;min-width:118px;padding:8px;white-space:nowrap}
}
