/* Footer changes are mobile-only: desktop placement and styling stay intact. */
@media(max-width:700px){
 html body #sg-rainbow-footer{position:relative;display:flex;flex-direction:row;justify-content:center;align-items:center;min-height:calc(72px + env(safe-area-inset-bottom,0px));padding:24px 58px calc(24px + env(safe-area-inset-bottom,0px));gap:0}
 html body #sg-rainbow-footer>a{position:absolute;left:4px;bottom:calc(4px + env(safe-area-inset-bottom,0px));display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;border:0;background:transparent;box-shadow:none;animation:none;transform:none}
 html body #sg-rainbow-footer .sgFooterAnchor423{display:block;width:22px;height:22px;flex:0 0 22px;object-fit:contain;filter:none;animation:none}
 html body #sg-rainbow-footer .sgFooterLabel424{display:none}
 html body #sg-rainbow-footer small{display:block;width:100%;margin:0;text-align:center;font-size:11px!important;line-height:1.4!important}
 html body #sg-rainbow-footer>a:focus-visible{outline:2px solid #b68b2a;outline-offset:-3px}
}
/* Keep the approved compass image dimensions; add a label alongside it. */
html body[class*="sgHeader382-"] #sg-page-header-382 .sgHeaderHome387{width:auto!important;gap:5px!important;min-width:44px!important}
html body[class*="sgHeader382-"] #sg-page-header-382 .sgHeaderHome387 img{width:56px!important;height:56px!important;flex:0 0 56px!important}
html body[class*="sgHeader382-"] #sg-page-header-382 .sgHeaderHome387 .sgHomeLabel424{display:inline!important;font:inherit!important;letter-spacing:normal!important;color:#fff!important;text-shadow:0 1px 4px #00162b}
html body.sgHeader382-gallery #sg-page-header-382 .sgHeaderHome387 .sgHomeLabel424{color:#103d70!important;text-shadow:none}
@media(max-width:760px){html body[class*="sgHeader382-"] #sg-page-header-382 .sgHeaderHome387 img{width:44px!important;height:44px!important;flex:0 0 44px!important}}
/* Coastal Welcome composition, preserving existing character images and feature. */
html body.sgWelcome319 .sgWelcome.sgWelcome422.sgWelcome424{padding:0 clamp(12px,2.4vw,38px) 24px!important}
html body.sgHeader382-welcome #sg-page-header-382 .sgHeaderLogo382{top:54px!important;width:min(650px,50vw)!important}
.sg424Hero{position:relative;margin:0 calc(-1 * clamp(12px,2.4vw,38px));min-height:590px;padding:260px 28px 34px;background:linear-gradient(transparent 35%,#00172cdd),var(--sg424-hero) center 38%/cover no-repeat;text-align:center}
.sg424Subnav{position:absolute;top:196px;left:14px;right:14px;display:flex;flex-wrap:wrap;gap:22px;justify-content:center;z-index:2}.sg424Subnav a{font:400 14px/1.3 SGHeavy391,Impact,sans-serif;letter-spacing:.8px;text-shadow:0 1px 5px #001023;color:white!important}
html body.sgWelcome319 .sgWelcome.sgWelcome422.sgWelcome424 .sg422Intro{max-width:1300px;margin:auto;padding:0;min-height:0;display:block}
html body.sgWelcome319 .sgWelcome.sgWelcome422.sgWelcome424 .sg422Intro h1{font:400 clamp(38px,6.3vw,84px)/1.08 SGHeavy391,Impact,sans-serif!important;transform:none!important;text-transform:uppercase!important;background:linear-gradient(90deg,#ff00b7 3%,#fb13ad 18%,#ffb200 35%,#eaf718 46%,#00d6b3 61%,#00b9ff 80%,#283cff 98%);background-clip:text;-webkit-background-clip:text;color:transparent!important;-webkit-text-fill-color:transparent;text-shadow:none!important;filter:drop-shadow(0 2px 4px #00182a);margin:6px 0 12px!important;padding:0 4px 6px}
.sg424Eleven{font:400 clamp(26px,3.9vw,50px)/1.1 SGHeavy391,Impact,sans-serif!important;color:#fff!important;text-shadow:0 2px 8px #00142d}.sgWelcome424 .sg422IntroCopy{letter-spacing:3px;font-size:16px;margin:4px 0 14px!important}.sgWelcome424 .sg422Enter{max-width:320px;margin:16px auto 0;font-size:23px!important;padding:12px}
.sg424Story{position:relative;max-width:1480px;margin:-14px auto 20px;padding:18px;border:2px solid #e6ca6c;border-radius:24px;background:#00152cf2;color:white;box-shadow:0 0 14px #ddbd4955;scroll-margin-top:16px}.sg424Story[hidden]{display:none!important}.sg424Story>header{text-align:center;padding:0 34px 14px}.sg424Story h2{font:400 28px/1.2 SGHeavy391,Impact,sans-serif;color:#ffdf6b!important;letter-spacing:3px}.sg424Story header p{font:400 12px/1.5 Arial,sans-serif;letter-spacing:.5px;margin-top:5px}.sg424CloseStory{position:absolute;top:10px;right:12px;border:1px solid #ffdf6b;border-radius:50%;color:#fff;background:transparent;width:32px;height:32px;font:24px Arial;cursor:pointer}
.sg424Chapters{display:grid;grid-template-columns:1fr 1fr;gap:14px}.sg424Chapter{position:relative;min-height:260px;padding:22px;border:1px solid #e1c469;border-radius:16px;overflow:hidden;background:linear-gradient(90deg,#001426dd,#00142644),var(--chapter-image) center/cover no-repeat;display:flex;flex-direction:column;align-items:flex-start}.sg424Chapter>span{font:400 12px Arial;letter-spacing:1px}.sg424Chapter h3{font:400 clamp(28px,3.2vw,46px)/1.05 SGHeavy391,Impact,sans-serif;color:#fff!important;max-width:70%;margin:8px 0}.sg424Chapter p{font:400 14px/1.5 Arial,sans-serif;max-width:65%;margin-bottom:16px}.sg424Chapter button{margin-top:auto;border:2px solid #f2d179;border-radius:999px;background:#001b2edd;color:white;min-height:44px;padding:9px 20px;font:400 18px SGHeavy391,Impact,sans-serif;cursor:pointer}.sg424Progress,.sg424Then{display:block;text-align:center;font:700 12px/1.5 Arial,sans-serif;letter-spacing:1px;margin:12px 0 0!important}.sg424Progress{color:#ffe482}.sg424Then{color:#fff!important}
html body .sgWelcome424 .sg422Board{max-width:1480px;margin:20px auto 0;background:transparent;border:0;box-shadow:none;padding:0}.sgWelcome424 .sg422BoardHeading{display:block;text-align:center;margin-bottom:14px}.sgWelcome424 .sg422BoardHeading h2{font-style:normal;font-size:clamp(32px,4vw,50px)}.sgWelcome424 .sg422BoardHeading p{margin-top:6px;font-size:13px;letter-spacing:0}.sgWelcome424 .sg422BoardHeading .sg424UnlockStatus{color:#ffe526;font-size:15px}.sgWelcome424 .sg422Group h3{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);padding:0;margin:0}.sgWelcome424 .sg422Sailor{cursor:pointer;font:inherit;appearance:none}.sgWelcome424 .sg422Sailor .sg422Portrait{position:relative}.sg424ProfileLock{position:absolute;right:7px;top:7px;font-size:16px;line-height:1;filter:drop-shadow(0 1px 2px #000)}.sg424Unlocked .sg424ProfileLock{display:none}.sgWelcome424 .sg422SailorLabel small{display:block;font:400 10px/1.3 Arial,sans-serif;margin-top:5px;min-height:26px;text-transform:none}.sgWelcome424 .sg422Sailor.is-featured{box-shadow:0 0 0 2px white,0 0 16px #00d5ff!important}
#sg424-feature{max-width:1600px;margin:auto}#sg424-feature .sg422Featured{margin-top:20px}#sg424-feature .sg422ProfileButton[aria-disabled=true]{background:#001a2c;color:#ffdf6b!important;border-color:#e1c469}.sgWelcome424 .sg422Promos{margin-top:16px}
#sg424-reader{width:min(760px,calc(100% - 28px));max-height:calc(100dvh - 48px);padding:24px;border:2px solid #dec16a;border-radius:18px;background:#061e35;color:white;box-shadow:0 18px 80px #0008}#sg424-reader::backdrop{background:#001022cc}.sg424CloseReader{position:absolute;top:8px;right:12px;width:36px;height:36px;border:0;background:none;color:white;font:28px Arial;cursor:pointer}.sg424Reading{max-height:calc(100dvh - 210px);overflow:auto;overscroll-behavior:contain;margin:12px 0 20px;padding:0 12px 0 0;line-height:1.7;font:400 17px/1.7 Arial,sans-serif}.sg424Reading h2{font:400 32px SGHeavy391,Impact,sans-serif;color:#ffe185;margin:0 24px 16px 0}.sg424Reading p{margin:14px 0!important}.sg424Complete{display:block;min-height:44px;width:100%;padding:12px;background:#ffdc65;border:0;border-radius:10px;color:#081b2f;font:700 14px Arial;cursor:pointer}.sg424Complete:disabled{opacity:.5;cursor:default}
@media(max-width:760px){
 html body.sgHeader382-welcome #sg-page-header-382 .sgHeaderLogo382{top:62px!important;width:88vw!important}
 .sg424Hero{margin:0 -12px;min-height:max(100svh,760px);padding:70svh 20px 30px;background:linear-gradient(transparent 62%,#00172c99),var(--sg422-mobile) center top/cover no-repeat}.sg424Subnav{top:calc(76px + 29.4vw);gap:11px}.sg424Subnav a{font-size:10px;letter-spacing:0}
 html body.sgWelcome319 .sgWelcome.sgWelcome422.sgWelcome424 .sg422Intro h1{font-size:clamp(33px,8.7vw,54px)!important}.sg424Eleven{font-size:clamp(22px,5.6vw,32px)!important}.sgWelcome424 .sg422IntroCopy{font-size:12px;letter-spacing:1.5px}.sgWelcome424 .sg422Enter{max-width:500px;font-size:25px!important;margin-top:15px}
 .sg424Story{padding:14px 10px;border-radius:18px}.sg424Story h2{font-size:24px;letter-spacing:1.5px}.sg424Chapters{grid-template-columns:1fr}.sg424Chapter{min-height:240px;padding:18px}.sg424Chapter h3{font-size:34px}.sg424Chapter p{font-size:13px}.sg424Story header p{font-size:10px}.sgWelcome424 .sg422BoardHeading h2{font-size:36px}.sgWelcome424 .sg422SailorLabel small{font-size:10px;min-height:39px}
 .sgWelcome424 .sg422Group[data-sg-section=outer] .sg422SailorRail{width:100%}#sg424-reader{padding:18px}.sg424Reading{font-size:16px;max-height:calc(100dvh - 195px)}
}
