*{box-sizing:border-box}
:root{font-family:"Avenir Next","Segoe UI",Arial,sans-serif;color:#102f41;--ink:#102f41;--glass:rgba(255,255,255,.47);--red:#e64a21}
body,h1,h2,p{margin:0}body{background:#fffdf6}button,input,a{font:inherit;color:inherit}button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button,nav a,.chip,.edge a,.logo{cursor:pointer;background:transparent;border:0;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;gap:.52rem;font-weight:600;transition:background .15s,transform .15s;padding:0}button:active,.chip:active{transform:scale(.97)}button:disabled{opacity:.55;cursor:default}:focus-visible{outline:3px solid #7f2e12;outline-offset:4px}svg{width:1.24em;height:1.24em;flex:none}#bay{position:relative;isolation:isolate;min-height:650px;height:100svh;background:#93d1e6 url(/bay.webp) center bottom/100% 100% no-repeat}header,.tools,.centre,nav,#options,#actions,.edge,.top,.row,.formrow{display:flex;align-items:center}header,.edge,.top{justify-content:space-between}header,.edge{position:absolute;width:100%;padding:clamp(20px,3.5vh,40px) clamp(24px,3.8vw,80px);z-index:1}header{top:0}.logo{font:bold clamp(1.55rem,2.3vw,2rem) Georgia,serif;letter-spacing:-.05em;gap:.32em}.logo img{width:1.25em}.tools{gap:10px}.tools button,.chip,#reset,nav{background:var(--glass);border:1px solid #ffffff61;border-radius:60px}.tools button,#close{width:44px;height:44px;font-size:1.04rem}#share{padding:0 17px;width:auto;font-size:.94rem}.centre{position:absolute;top:15%;width:100%;flex-direction:column}nav{padding:5px;gap:2px}.tab{border-radius:50px;padding:0 22px;height:42px;font-size:.97rem}.tab[aria-current],.chip.active{background:var(--ink);color:white;border-color:var(--ink)}#digits{font:550 min(16vw,22vh,14rem)/1 Arial,sans-serif;font-variant-numeric:tabular-nums;letter-spacing:-.065em;padding-right:.065em;white-space:nowrap}#digits.long{font-size:min(12vw,19vh,12rem)}#stage{height:clamp(34px,5vh,64px);padding-top:8px;font-weight:600;display:flex;align-items:center;max-width:95vw;overflow:hidden;white-space:nowrap;font-size:1.12rem}#options,#actions{justify-content:center;gap:8px}#options{margin-top:clamp(16px,3.2vh,40px)}.chip{height:40px;padding:0 17px;font-size:.95rem}#actions{margin-top:clamp(22px,3.8vh,48px);gap:13px}#start,#reset{height:60px;border-radius:60px;font-size:1.18rem}#start{min-width:180px;background:var(--red);color:white;padding:0 28px;gap:12px;box-shadow:0 4px 0 #a23413,0 6px 15px #75250b24}#reset{width:60px;background:#fff9e6d9;font-size:1.26rem;box-shadow:0 3px 0 #19394725}#note{margin-top:19px;font-weight:600;font-size:1rem;max-width:92vw;text-align:center}#note:not(:empty){background:#fff8e6e8;border-radius:24px;padding:7px 16px}.edge{bottom:0;color:white}.edge>*{padding:12px 17px;border-radius:42px;background:#092e42ce!important;font-size:.92rem;backdrop-filter:blur(12px)}#waves[aria-pressed=true]{background:#fff8e9!important;color:var(--ink)}#guide{background:#092e4299!important}#guide:hover,.edge button:hover{background:#092e42!important}.tools button:hover,.chip:not(.active):hover,.tab:not([aria-current]):hover,#reset:hover{background:#fffcf0}#start:hover{background:#d64119}#start:active{transform:translateY(3px);box-shadow:none}
article{max-width:800px;padding:70px 28px 32px;margin:auto}h1,article h2,dialog h2{font-family:Georgia,serif;letter-spacing:-.025em}h1{font-size:clamp(2.2rem,5vw,3.7rem)}article h2{font-size:1.65rem;margin:36px 0 12px}p{font-size:1.08rem;line-height:1.65;margin:12px 0 18px}.links{display:flex;gap:14px 24px;flex-wrap:wrap}article a{color:#085d77;text-underline-offset:4px}footer{border-top:1px solid #b9cdd2;margin-top:44px;padding-top:24px;line-height:2;font-size:.94rem}
dialog{border:0;border-radius:28px;background:#fffdf6;color:var(--ink);padding:24px 28px 30px;width:min(465px,94vw);max-height:88dvh;box-shadow:0 16px 90px #092f4240}dialog::backdrop{background:#08293d60;backdrop-filter:blur(6px)}dialog h2{font-size:1.8rem}.top{margin-bottom:16px}#close{background:#e8f2f4;border-radius:100%}dialog p{font-size:1rem}input{min-width:0;width:100%;padding:12px 10px;border-radius:12px;border:1px solid #b2cbd2;background:white;font-size:1rem}label{font-size:.9rem;font-weight:bold;display:block;flex:1}label input{margin-top:7px}.row,.formrow{gap:9px;margin:10px 0}.formrow input[type=number]{width:21%}.formrow button{min-width:25px;height:40px}.cta,.minor,.choice{padding:13px 16px;border-radius:15px;width:100%;margin-top:10px;text-decoration:none;font-weight:600;display:flex;justify-content:center;align-items:center}.cta{background:var(--ink);color:white}.minor,.choice{background:#e7f1f3}.choice{justify-content:space-between}.choice[aria-pressed=true]{background:#104257;color:white}.choice:hover,.minor:hover{box-shadow:inset 0 0 0 2px #3c6e76}table{width:100%;text-align:left;font-variant-numeric:tabular-nums}td,th{padding:8px 0;border-bottom:1px solid #d1e1e1}.error{color:#9a290f}.big #bay{position:fixed;inset:0;z-index:3;min-height:0;height:100dvh}.big article,.big nav,.big .edge,.big .logo,.big #share,.big #options{display:none}.big header{justify-content:flex-end}.big .centre{top:18%}.big #digits{font-size:min(31vw,38vh)}.big #digits.long{font-size:min(20vw,31vh)}.big #stage{font-size:1.35rem}.big #actions{margin-top:4vh}#digits.done{color:#9e3515}
@media(max-aspect-ratio:1/1){#bay{background-size:auto 100%,100% 100%;background-image:linear-gradient(180deg,#88cde400 40%,transparent 60%),url(/bay.webp);background-size:100% 100%,100% 79%;background-color:#80c5dc}#bay:before{content:"";position:absolute;inset:0 0 54%;background:linear-gradient(#83c9e2 0%,#83c9e2 48%,transparent);z-index:-1}.centre{top:17%}#digits{font-size:25vw}#digits.long{font-size:17vw}#stage{height:6vh}#options{gap:6px;flex-wrap:wrap;max-width:96vw}.chip{padding:0 13px}}
@media(max-width:640px){header,.edge{padding:22px 16px}.logo{font-size:1.42rem}.tools{gap:6px}.tools button,#share{width:39px;height:39px;padding:0}#share span{display:none}.centre{top:16%}.tab{font-size:.9rem;padding:0 13px;height:40px;gap:6px}#digits{font-size:30vw}#digits.long{font-size:18vw}#stage{font-size:1rem;height:clamp(38px,6.5vh,70px)}#options{max-width:350px;gap:6px;margin-top:25px}.chip{font-size:.9rem;height:39px;padding:0 14px}#actions{margin-top:30px}#start,#reset{height:55px}#reset{width:55px}#start{min-width:156px}.edge>*{font-size:.86rem;padding:12px}#bay{background-size:100% 100%,119% 62%;background-position:center bottom}#bay:before{bottom:40%;background:linear-gradient(#85cce4,#88cce3 64%,transparent)}#note{font-size:.9rem}dialog{padding:18px}.big #bay{background-size:100% 100%,119% 62%}.big .centre{top:25%}}
@media(max-width:365px){.tab{font-size:.85rem;padding:0 9px}.tools button,#share{width:34px;height:34px}.logo{font-size:1.2rem}.chip{padding:0 11px}}
@media(max-height:650px) and (orientation:landscape){#bay{min-height:420px}.centre{top:8%}.tab{height:34px;padding:0 13px}header{padding:12px 18px;pointer-events:none}header>*{pointer-events:auto}.logo{font-size:1.25rem}#share span,.tab svg{display:none}#share{width:40px;padding:0}#digits{font-size:22vh}#stage{height:35px}#options,#actions{margin-top:14px}.chip{height:35px}#start,#reset{height:46px}#reset{width:46px}.edge{padding:12px}.big .centre{top:8%}.big #digits{font-size:40vh}.big #note{margin-top:10px}}
#digits{letter-spacing:-.04em;padding-right:.04em}
#digits.extra,.big #digits.extra{font-size:min(15vw,18vh)}
@media(max-width:640px){#options{max-width:min(96vw,330px)}.chip{padding:0 13px}#stage{max-width:94vw;text-overflow:ellipsis;display:block;line-height:clamp(38px,6.5vh,70px)}}
@media(max-width:360px){.chip{padding:0 10px}.tab{padding:0 8px}}
@media(max-height:620px) and (orientation:landscape){.centre{top:15%}.edge{pointer-events:none}.edge>*{pointer-events:auto}.tab{height:30px}.tools{gap:4px}}
#upgrade{width:auto;padding:0 17px;background:#102f41;color:white;font-size:.94rem}#upgrade:hover{background:#225370}.offer{padding:15px;border-radius:16px;background:#eaf3f3;margin-bottom:12px}.offer p,.fine{font-size:.94rem;line-height:1.45;margin:8px 0}.offer b{font-size:1.12rem}.offer .cta{margin-top:12px}#legal,#policies{text-decoration:underline;display:inline}#saved a{overflow-wrap:anywhere;margin:0;min-width:0}#saved .row>button{font-size:.91rem}#brand:not([hidden]){position:absolute;bottom:3.5%;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:10px;font-weight:bold;background:#fffdf3ef;border-radius:14px;padding:8px 15px;max-width:42%;overflow-wrap:anywhere;z-index:2}#brand img{height:42px;max-width:120px;object-fit:contain}.big #brand:not([hidden]){max-width:90%;bottom:5%}.big #upgrade{display:none}body[data-theme=Sunset] #bay:after,body[data-theme=Lagoon] #bay:after{content:'';position:absolute;inset:0;pointer-events:none;z-index:-1}body[data-theme=Sunset] #bay:after{background:linear-gradient(165deg,#ffcca4e8,#ff857c99 56%,#76236755);mix-blend-mode:hard-light}body[data-theme=Lagoon] #bay:after{background:linear-gradient(165deg,#98f0d6bb,#5eddb66e 57%,#00604cb8);mix-blend-mode:color}body[data-theme=Lagoon] #start{background:#04665b;box-shadow:0 4px 0 #053b3a}body[data-theme=Sunset] #start{background:#9a2f45;box-shadow:0 4px 0 #68152d}
@media(max-width:640px){#upgrade{padding:0 11px;font-size:.83rem}.logo{font-size:1.27rem}.tools{gap:5px}#brand:not([hidden]){bottom:12%;max-width:90%;width:max-content}#brand img{height:31px;max-width:80px}.tools button,#share{width:36px;height:36px}}
@media(max-width:374px){.tools button,#share{width:32px;height:32px}header{padding:20px 9px}.logo{font-size:1.12rem}#upgrade{padding:0 8px}.tools{gap:3px}}
