/* Home screen: Washed Ashore leads; The Social Contract sits under it. One button each, nothing else. */
@font-face{font-family:'WH Title';src:url('/assets/barlowcondensed-bold.woff') format('woff');font-weight:700;font-display:swap}
@font-face{font-family:'WH';src:url('/assets/barlow-regular.woff') format('woff');font-weight:400;font-display:swap}
@font-face{font-family:'WH';src:url('/assets/barlow-medium.woff') format('woff');font-weight:500;font-display:swap}
@font-face{font-family:'WH';src:url('/assets/barlow-semibold.woff') format('woff');font-weight:600 800;font-display:swap}
.wh{--bg:#0e1a20;--ink:#14232b;--edge:#27404c;--cloth:#efe4cc;--dim:#b3a98f;--ring:#ef6a32;--ring-dk:#a8401a;--brass:#d4a654;--f:'WH',system-ui,sans-serif;--t:'WH Title','WH',system-ui,sans-serif;
 max-width:520px;margin:0 auto;padding:max(10px,env(safe-area-inset-top)) 12px calc(env(safe-area-inset-bottom,0px) + 28px);background:var(--bg);color:var(--cloth);font:420 16px/1.45 var(--f);-webkit-font-smoothing:antialiased}
.wh *{box-sizing:border-box}
.wh [hidden]{display:none!important}
.wh-studio{margin:0;padding:4px 6px 12px;font:640 14px/1 var(--f);font-variation-settings:'CASL' 1;color:var(--brass)}
.wh-lead{position:relative;display:block;height:min(64svh,600px);min-height:400px;border-radius:10px;overflow:hidden;isolation:isolate;color:var(--cloth);text-decoration:none;background:#6fa9c9}
.wh-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.wh-lead::after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(14,26,32,0) 22%,rgba(14,26,32,.72) 50%,rgba(14,26,32,.96) 66%,#0e1a20 84%)}
.wh-lead-in{position:absolute;left:18px;right:18px;bottom:20px}
.wh-title{margin:0 0 10px;font:850 clamp(46px,14.5vw,72px)/.88 var(--f);font-variation-settings:'CASL' 1;letter-spacing:-.02em;color:var(--cloth)}
.wh-line{margin:0 0 16px;max-width:27ch;font-size:17px;line-height:1.4;text-shadow:0 2px 12px rgba(0,0,0,.6)}
.wh-play,.wh-go{display:inline-block;font:760 21px/1 var(--f);font-variation-settings:'CASL' 1;color:#2a1105;background:var(--ring);border:0;border-radius:6px 8px 7px 5px;padding:14px 28px 15px;box-shadow:0 4px 0 var(--ring-dk);cursor:pointer}
.wh-lead:active .wh-play,.wh-go:active{transform:translateY(3px);box-shadow:0 1px 0 var(--ring-dk)}
.wh-lead:focus-visible,.wh-go:focus-visible,.wh-ghost:focus-visible,.wh-foot button:focus-visible,.wh summary:focus-visible{outline:2px solid var(--brass);outline-offset:3px}
.wh-sc{margin-top:12px;padding:14px;background:var(--ink);border-radius:10px}
.wh-sc-head{display:grid;grid-template-columns:76px 1fr;gap:14px;align-items:center;margin-bottom:14px}
.wh-sc-head img{width:76px;height:76px;object-fit:cover;border-radius:6px;display:block}
.wh-h{margin:0 0 4px;font:800 23px/1.05 var(--f);font-variation-settings:'CASL' 1;color:var(--cloth)}
.wh-sub{margin:0;color:var(--dim);font-size:14.5px;line-height:1.35}
.wh-form{display:grid;gap:8px}
.wh-l{font:600 14px/1.2 var(--f);color:var(--cloth)}
.wh-name{display:grid;grid-template-columns:1fr 50px;gap:8px}
.wh input{width:100%;height:50px;padding:0 14px;border-radius:6px;border:1.5px solid var(--edge);background:#0b151a;color:var(--cloth);font:560 17px var(--f);outline:none}
.wh input::placeholder{color:#5f7480;font-weight:420}
.wh input:focus{border-color:var(--brass)}
.wh-dice{display:grid;place-items:center;height:50px;border-radius:6px;border:1.5px solid var(--edge);background:none;color:var(--dim);cursor:pointer}
.wh-dice svg{fill:currentColor}
.wh-dice.roll svg{animation:sxRoll .5s ease}
.wh-rule{margin:-2px 0 4px;font-size:13px;color:var(--dim)}
.wh-go{width:100%;font-size:19px;padding:14px 20px 15px;background:var(--brass);box-shadow:0 4px 0 #8f6c2a;color:#241703}
.wh-go:active{box-shadow:0 1px 0 #8f6c2a}
.wh-go:disabled{opacity:.6}
.wh-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.wh-ghost{height:46px;border-radius:6px;border:1.5px solid var(--edge);background:none;color:var(--cloth);font:600 15px var(--f);cursor:pointer;width:100%}
.wh details.wh-more{margin:12px 0 0;padding:12px 0 0;border:0;border-top:1px solid var(--edge);border-radius:0;background:none!important;box-shadow:none}
.wh details.wh-more summary{cursor:pointer;font:560 14.5px var(--f);color:var(--dim);list-style:none;display:flex;justify-content:space-between;align-items:center}
.wh details.wh-more summary::-webkit-details-marker{display:none}
.wh details.wh-more summary::after{content:'';width:8px;height:8px;border-right:2px solid var(--dim);border-bottom:2px solid var(--dim);transform:rotate(45deg);margin:0 4px 3px 0}
.wh details.wh-more[open] summary::after{transform:rotate(-135deg);margin-bottom:-3px}
.wh details.wh-more form{display:grid;gap:8px;margin-top:12px}
.wh .sx-gfx{display:block;margin:12px 0 0}.wh .sx-gfx .sx-l{display:none}
.wh .sx-gfx-btns{display:grid;grid-template-columns:1fr 1fr;gap:6px;background:none;border:0;padding:0}
.wh .sx-gfx-btns button{display:grid;gap:3px;text-align:left;padding:10px 12px;border:1.5px solid var(--edge);border-radius:6px;background:none;color:var(--cloth);font:650 15px/1.1 var(--f);cursor:pointer}
.wh .sx-gfx-btns button small{grid-column:auto;font:420 12px/1.25 var(--f);color:var(--dim)}
.wh .sx-gfx-btns button[aria-checked=true]{border-color:var(--brass);background:rgba(212,166,84,.1)}
.wh .sx-gfx-btns button:disabled{opacity:.4;cursor:not-allowed}
.wh #standaloneError{margin:10px 0 0;color:#ff9a8a;font-weight:600;text-align:left}
.wh-foot{display:flex;justify-content:space-between;align-items:center;padding:18px 6px 0;font-size:13.5px;color:var(--dim)}
.wh-foot button{padding:0;border:0;background:none;color:var(--cloth);font:inherit;text-decoration:underline;text-decoration-color:rgba(212,166,84,.6);text-underline-offset:3px;cursor:pointer}
.wh-fine{margin:10px 6px 0;font-size:12.5px;line-height:1.45;color:#8a8672}
@media(min-width:900px){.wh{max-width:1040px;display:grid;grid-template-columns:1.25fr 1fr;column-gap:20px;align-items:start;padding-top:28px}
 .wh-studio,.wh-foot,.wh-fine{grid-column:1/-1}.wh-lead{height:min(76vh,640px)}.wh-sc{margin-top:0}}
@media (prefers-reduced-motion:reduce){.wh-bg{display:none}.wh-dice.roll svg{animation:none}}
.wh .ngd-home{margin-top:8px;padding:10px 12px;border:1.5px solid var(--edge);border-radius:6px;color:var(--dim);font:420 14px var(--f)}.wh .ngd-home svg{stroke:var(--dim)}.wh .ngd-home b{color:var(--brass)}
/* the old game's page chrome and global text styles stay out of the home screen */
body.standalone-site:has(.wh)>header{display:none!important}
body.standalone-site:has(.wh){background:#0e1a20!important;background-image:none!important}
body.standalone-site main:has(.wh){padding:0!important;background:none!important;max-width:none!important}
body .wh{background:var(--bg)!important;color:var(--cloth)!important}
body .wh :is(h1,h2,p,span,label,small,b,summary,button,input,footer){font-family:var(--f)!important;letter-spacing:0!important;text-transform:none!important;text-shadow:none}
body .wh .wh-title{color:var(--cloth)!important;font-weight:850!important;letter-spacing:-.02em!important;font-size:clamp(46px,14.5vw,72px)!important;line-height:.88!important;text-shadow:0 2px 18px rgba(0,0,0,.45)!important}
body .wh .wh-line{color:var(--cloth)!important;text-shadow:0 2px 12px rgba(0,0,0,.6)!important}
body .wh .wh-play{color:#2a1105!important;-webkit-text-fill-color:#2a1105;background:var(--ring)!important}
body .wh .wh-sc{background:var(--ink)!important;border:0!important;box-shadow:none!important}
body .wh .wh-h{color:var(--cloth)!important;font-weight:800!important;font-size:23px!important}
body .wh .wh-sub,body .wh .wh-rule{color:var(--dim)!important}
body .wh .wh-l{color:var(--cloth)!important;font-weight:600!important;font-size:14px!important}
body .wh input{background:#0b151a!important;color:var(--cloth)!important;border:1.5px solid var(--edge)!important;border-radius:6px!important}
body .wh input:focus{border-color:var(--brass)!important}
body .wh .wh-go{color:#241703!important;-webkit-text-fill-color:#241703;background:var(--brass)!important;border-radius:6px 8px 7px 5px!important;clip-path:none!important}
body .wh :is(.wh-ghost,.wh-dice){background:none!important;color:var(--cloth)!important;border:1.5px solid var(--edge)!important;border-radius:6px!important;clip-path:none!important}
body .wh .wh-dice{color:var(--dim)!important}
body .wh details.wh-more{background:none!important;border:0!important;border-top:1px solid var(--edge)!important;border-radius:0!important;box-shadow:none!important;padding:12px 0 0!important}
body .wh details.wh-more summary{color:var(--dim)!important;font-weight:560!important}
body .wh .sx-gfx-btns button{background:none!important;color:var(--cloth)!important;border:1.5px solid var(--edge)!important;border-radius:6px!important;clip-path:none!important;box-shadow:none!important}
body .wh .sx-gfx-btns button b{color:var(--cloth)!important;font:650 15px/1.1 var(--f)!important}
body .wh .sx-gfx-btns button small{color:var(--dim)!important}
body .wh .sx-gfx-btns button[aria-checked=true]{border-color:var(--brass)!important;background:rgba(212,166,84,.1)!important}
body .wh .wh-foot button{color:var(--cloth)!important;background:none!important;border:0!important}
body .wh .ngd-home{background:none!important;clip-path:none!important}
body .wh .wh-title small{display:block;margin:0 0 10px;font:640 16px/1 var(--f)!important;font-variation-settings:'CASL' 1;letter-spacing:0!important;color:var(--brass)!important;text-shadow:0 1px 8px rgba(0,0,0,.6)!important}
body .wh .wh-foot{border:0!important;background:none!important}
/* one screen, one choice: Washed Ashore fills it; the original game is a single row beneath */
body .wh.wh-pick{display:flex;flex-direction:column;align-items:stretch;min-height:100svh;padding-bottom:calc(env(safe-area-inset-bottom,0px) + 14px)}
body .wh.wh-pick .wh-lead{flex:1;height:auto;min-height:420px}
body .wh .wh-other{display:grid;grid-template-columns:56px 1fr 14px;gap:14px;align-items:center;width:100%;margin-top:10px;padding:10px 14px 10px 10px;background:var(--ink)!important;border:0!important;border-radius:10px!important;clip-path:none!important;box-shadow:none!important;color:var(--cloth)!important;text-align:left;cursor:pointer}
body .wh .wh-other img{width:56px;height:56px;object-fit:cover;border-radius:6px;display:block}
body .wh .wh-other b{display:block;font:760 18px/1.15 var(--f)!important;font-variation-settings:'CASL' 1;color:var(--cloth)!important}
body .wh .wh-other small{display:block;margin-top:3px;font:420 14px/1.25 var(--f)!important;color:var(--dim)!important}
body .wh .wh-other::after{content:'';width:9px;height:9px;border-right:2px solid var(--dim);border-top:2px solid var(--dim);transform:rotate(45deg)}
body .wh .wh-back{display:inline-flex;align-items:center;gap:8px;margin:0 0 10px;padding:8px 6px;background:none!important;border:0!important;clip-path:none!important;box-shadow:none!important;color:var(--cloth)!important;font:600 15px var(--f)!important;cursor:pointer}
body .wh .wh-back::before{content:'';width:8px;height:8px;border-left:2px solid var(--cloth);border-bottom:2px solid var(--cloth);transform:rotate(45deg)}
body .wh.wh-sc{background:var(--bg)!important;padding:max(10px,env(safe-area-inset-top)) 12px 28px!important;margin:0 auto;border-radius:0}
body .wh.wh-sc>.wh-sc{margin-top:0}
@media(min-width:900px){body .wh.wh-pick{display:flex;align-items:stretch;max-width:1040px}body .wh.wh-pick .wh-lead{min-height:min(72vh,640px)}body .wh.wh-sc{display:block;max-width:520px}}
/* type: a condensed capital title, plain Barlow for everything else */
body .wh .wh-title{font-family:var(--t)!important;font-weight:700!important;text-transform:uppercase!important;letter-spacing:.01em!important;font-size:clamp(58px,19vw,104px)!important;line-height:.86!important;margin-bottom:12px}
body .wh .wh-studio{font:600 13px/1 var(--f)!important;letter-spacing:.04em!important}
body .wh .wh-h{font-family:var(--t)!important;font-weight:700!important;text-transform:uppercase!important;letter-spacing:.015em!important;font-size:30px!important;line-height:1!important}
body .wh :is(.wh-play,.wh-go){font:600 19px/1 var(--f)!important}
body .wh .wh-other b{font:600 17px/1.15 var(--f)!important}
body .wh .wh-bg{object-position:50% 38%}
body .wh .wh-lead::after{background:linear-gradient(180deg,rgba(14,26,32,.18) 0%,rgba(14,26,32,0) 20%,rgba(14,26,32,0) 42%,rgba(14,26,32,.8) 68%,#0e1a20 96%)}
body .wh .wh-sc{padding:0 0 14px!important;overflow:hidden}
body .wh .wh-sc-art{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
body .wh .wh-sc>:not(.wh-sc-art){margin-left:14px;margin-right:14px}
body .wh .wh-sc-head{display:block;margin-top:14px}
body .wh .wh-sc>:last-child{margin-bottom:14px}
body .wh .wh-sc #standaloneError:empty{display:none}

/* ---- Title screen (pick view): the shore at night fills the screen; a small wordmark; a plain menu ---- */
@font-face{font-family:'WH Mark';src:url('/assets/republic-text.woff') format('woff');font-display:swap}
body.standalone-site:has(.wh-pick){background:#0a0e1c!important}
body .wh.wh-pick{position:fixed;inset:0;display:block;max-width:none;min-height:0;margin:0;padding:0!important;background:#0a0e1c!important;overflow:hidden;color:#fff!important}
body .wh .wh-film{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 35%}
body .wh video.wh-film{opacity:0;transition:opacity .5s}
body .wh video.wh-film.on{opacity:1}
@media (min-aspect-ratio:1/1){body .wh .wh-film{object-position:50% 50%}body .wh .wh-mark{top:9vh}body .wh .wh-mark .wh-title{font-size:clamp(34px,4.4vw,64px)!important}body .wh .wh-mark .wh-title br{display:none}}
body .wh .wh-veil{position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,10,28,.42) 0%,rgba(8,10,28,0) 32%,rgba(8,10,28,0) 56%,rgba(6,8,20,.88) 100%)}
body .wh .wh-mark{position:absolute;left:0;right:0;top:max(11svh,calc(env(safe-area-inset-top,0px) + 56px));text-align:center}
body .wh .wh-mark small{display:block;margin:0 0 14px .42em;font:500 11px/1 var(--f)!important;letter-spacing:.42em!important;text-transform:uppercase!important;color:#fff!important;opacity:.85}
body .wh .wh-mark .wh-title{margin:0 0 0 .2em;font-family:'WH Mark',var(--f)!important;font-weight:400!important;font-size:clamp(34px,9.5vw,58px)!important;line-height:1.15!important;letter-spacing:.2em!important;text-transform:uppercase!important;color:#fff!important;text-shadow:0 2px 24px rgba(0,0,0,.35)!important}
body .wh .wh-mark i{display:block;width:44px;height:1px;margin:16px auto 0;background:#fff;opacity:.7}
body .wh .wh-menu{position:absolute;left:0;right:0;bottom:calc(env(safe-area-inset-bottom,0px) + 62px);display:grid;justify-items:center;gap:10px}
body .wh.wh-pick .wh-play{padding:12px 36px;background:none!important;box-shadow:none!important;border-radius:0!important;color:#fff!important;-webkit-text-fill-color:#fff;font:500 21px/1 var(--f)!important;letter-spacing:.06em!important;text-decoration:none}
/* the other game: its own strip along the foot of the screen, ruled off from Play, with a picture and a line saying what it is */
body .wh.wh-pick .wh-menu{bottom:calc(env(safe-area-inset-bottom,0px) + 132px)}
body .wh.wh-pick .wh-other{position:absolute;left:0;right:0;bottom:0;display:flex;justify-content:center;align-items:center;gap:14px;width:100%;margin:0;padding:16px 20px calc(env(safe-area-inset-bottom,0px) + 18px);background:rgba(6,12,18,.5)!important;border-top:1px solid rgba(255,255,255,.22)!important;border-radius:0!important;color:#fff!important;text-align:left;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
body .wh.wh-pick .wh-other img{width:52px;height:52px;border-radius:4px}
body .wh.wh-pick .wh-other span{display:block;min-width:0}
body .wh.wh-pick .wh-other small{margin:0 0 6px;font:400 11px/1 var(--f)!important;letter-spacing:.08em!important;color:#fff!important;opacity:.6}
body .wh.wh-pick .wh-other b{font:500 17px/1.1 var(--f)!important;letter-spacing:.03em!important;color:#fff!important}
body .wh.wh-pick .wh-other i{display:block;margin-top:5px;font:400 14px/1.1 var(--f)!important;font-style:normal!important;color:#fff!important;opacity:.78}
body .wh.wh-pick .wh-other::after{content:'';flex:none;width:8px;height:8px;margin-left:10px;border-right:1px solid #fff;border-top:1px solid #fff;transform:rotate(45deg);opacity:.6}
body .wh.wh-pick :is(.wh-play,.wh-other):focus-visible{outline:1px solid #fff;outline-offset:2px}
@media (hover:hover){body .wh.wh-pick .wh-play:hover{text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:1px}body .wh.wh-pick .wh-other:hover{background:rgba(6,12,18,.68)!important}}
body .wh .wh-surf{position:absolute;-webkit-mask-image:linear-gradient(180deg,transparent,#000 16%,#000 84%,transparent);mask-image:linear-gradient(180deg,transparent,#000 16%,#000 84%,transparent);pointer-events:none}
/* daylight shore: bright sea and sky; a blue haze behind the title and a dark foot behind the menu keep the words clear */
body .wh .wh-veil{background:linear-gradient(180deg,rgba(18,58,104,.5) 0%,rgba(18,58,104,.16) 24%,rgba(18,58,104,0) 40%,rgba(10,20,26,0) 58%,rgba(8,16,22,.62) 80%,rgba(8,16,22,.92) 100%)}
body .wh .wh-mark .wh-title{text-shadow:0 2px 22px rgba(10,40,80,.5)!important}
body .wh .wh-mark small{opacity:1;text-shadow:0 1px 10px rgba(10,40,80,.6)}
body.standalone-site:has(.wh-pick){background:#6fa9c9!important}
body .wh.wh-pick{background:#6fa9c9!important}
