@font-face{font-family:'Bath Maru';src:url('./fonts/bath-maru-bold.woff') format('woff');font-style:normal;font-weight:400 900;font-display:swap}
:root{font-family:'Bath Maru',ui-rounded,'Hiragino Maru Gothic ProN','Hiragino Sans',Meiryo,sans-serif;color:#503c2c;background:#e9ddc6;--ink:#425e58;--muted:#8c785f;--line:#c3a37c;--paper:#fcf3dc;--accent:#b95f3b;--teal:#5a8d89;--wood-light:#edce95;--wood:#b78453;--wood-dark:#8e613e}
button,input{font-family:inherit;letter-spacing:.035em}button{font-weight:700}h1,h2,h3,b,strong{font-weight:700}.eyebrow,.title-kicker,.tiny-brand{color:#896f50}.eyebrow{letter-spacing:.1em}body{background:#e9ddc6}
/* Carved wood, glazed tiles and fabric are shared with the bath itself. */
#play-screen .scene-wrap{background:radial-gradient(ellipse at 50% 48%,#faf0d6 10%,#e4d3b6 90%)}
.game-top{top:calc(9px + env(safe-area-inset-top));gap:8px;max-width:700px}
.game-top .game-header{padding:0;gap:12px;min-height:43px}
.game-header>div{display:flex;flex-direction:column;justify-content:center;position:relative;min-width:0;padding:7px 17px 8px;border:2px solid #b18251;border-bottom:4px solid #996b40;border-radius:8px;background:repeating-linear-gradient(1deg,transparent 0 9px,#fff1cb22 10px,#9b68331a 11px,transparent 12px 22px),linear-gradient(#edd2a1,#d7ad73);box-shadow:inset 0 1px #fff5d7,0 3px 0 #8c684322,0 5px 10px #70502b14}
.game-header>div:before,.game-header>div:after{content:'';position:absolute;top:50%;width:4px;height:4px;border-radius:50%;background:#a27c4c;box-shadow:inset 0 1px 1px #715336}.game-header>div:before{left:5px}.game-header>div:after{right:5px}
.game-top .game-header h2{font-size:17px;color:#65472e;text-shadow:0 1px #fff3cc;line-height:1.3}
.game-header .eyebrow{font-size:8px;color:#8c633e;margin-bottom:2px}
.game-top .pause-button{width:42px;height:42px;border-radius:50%;background:linear-gradient(#78a59c,#537e77);border:3px solid #e1c698;color:#fff6de;box-shadow:inset 0 2px #b6cfb4,0 3px 0 #8b704c,0 5px 7px #79562b23;flex-shrink:0}
.game-top .pause-button svg{width:17px;height:17px}
.game-top .live-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;border:0;border-radius:0;box-shadow:none;background:none;padding:0}
.game-top .live-stats>div{position:relative;display:flex;flex-direction:column;justify-content:center;min-height:57px;padding:7px 2px 8px;border:2px solid #b88e60;border-bottom:4px solid #a47a4d;border-radius:7px;background:linear-gradient(#fcf4dd,#efdfba);box-shadow:inset 0 0 0 2px #fff8e2,0 3px 0 #98704b15}
.game-top .live-stats>div:before{content:'';position:absolute;top:3px;left:50%;transform:translateX(-50%);width:14px;height:2px;border-radius:4px;background:#c4a37a;box-shadow:0 1px #fff9}
.game-top .live-stats span{font-size:10px;color:#8d7152;margin:3px 0 4px;line-height:1}
.game-top .live-stats strong{font-size:21px;color:#4f6253;text-shadow:0 1px #fff7e1;line-height:1.15;letter-spacing:0;font-variant-numeric:tabular-nums}
.game-top .live-stats strong.danger{color:#b65439}
.game-top .game-guide{font-size:10px;color:#897553;padding:0 3px;min-height:22px;gap:5px}
.game-top .game-guide .text-button{padding:4px 8px;border:1px solid #bf9d6e;border-bottom:2px solid #a98556;border-radius:6px;background:#f4e3bc;color:#6d6c4d;font-size:10px;box-shadow:inset 0 1px #fff4d9}
.game-bottom{left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));max-width:700px;gap:9px;background:none;border-radius:0;filter:drop-shadow(0 4px 4px #76552a10)}
.game-bottom .palette{gap:7px;padding:7px;border:2px solid #a77746;border-bottom:5px solid #8f613d;border-radius:12px;background:repeating-linear-gradient(0deg,transparent 0 12px,#93613522 13px,transparent 14px 21px),linear-gradient(#d0a270,#bc8c58);box-shadow:inset 0 1px #f5d5a0}
.game-bottom .panel-button{position:relative;flex-direction:column;gap:2px;padding:9px 2px 5px;border:2px solid #cfbd92;border-bottom:4px solid #aa9471;border-radius:8px;min-height:83px;background:linear-gradient(#fff9e9,#f0e4c4);box-shadow:inset 0 1px #fffefa,0 2px 0 #865e3e66;color:#5d5941}
.game-bottom .panel-button:before{top:3px;left:calc(50% - 11px);width:22px;height:4px;border-radius:3px;background:var(--type-color);box-shadow:0 1px #ffffffa6}
.game-bottom .panel-button svg{width:46px;height:33px;margin:0;filter:drop-shadow(0 2px 0 #98724822)}
.game-bottom .panel-button>span{flex-direction:column;gap:3px;align-items:center}
.game-bottom .panel-button b{font-size:10px;color:#5e604b;line-height:1}
.game-bottom .panel-button small{font-size:9px;color:#99805e;line-height:1.1;letter-spacing:0}
.game-bottom .panel-button.readonly{opacity:1;background:linear-gradient(#f7f0dd,#eaddbe);box-shadow:inset 0 1px #fff8e4,0 2px 0 #865e3e66;border-color:#c2b28f;border-bottom-color:#aa9471}
.game-bottom .panel-button[aria-disabled=false]:active{transform:translateY(2px);box-shadow:inset 0 1px #fff8}
.game-bottom .setup-actions{gap:8px;min-height:41px;padding:0 2px}
.game-bottom .setup-actions>div{gap:7px}
.game-bottom .setup-actions .text-button{display:flex;gap:4px;align-items:center;justify-content:center;min-height:36px;padding:6px 8px;border:1px solid #b18755;border-bottom:3px solid #996d43;border-radius:6px;background:linear-gradient(#ecd5a5,#ddbc85);box-shadow:inset 0 1px #fff2d1;color:#715b3e;font-size:10px}
.game-bottom .setup-actions .text-button svg{width:13px;height:13px}
.game-bottom .setup-actions .button{min-height:42px;padding:9px 16px;font-size:12px;border-radius:7px}
.button.primary,.menu-button.main{color:#fff5d9;border:2px solid #3b6864;border-bottom:5px solid #35534e;background:linear-gradient(90deg,#497c76,#62968a 49%,#578a81 50%,#54887f);box-shadow:inset 0 1px #a6c4aa,0 3px 0 #91704a33;text-shadow:0 1px #3a6256}
#start{background:linear-gradient(#ca8150,#b96a40);border-color:#a26039;border-bottom-color:#84492d;box-shadow:inset 0 1px #edb483,0 3px 0 #94704430;color:#fff2d7;text-shadow:0 1px #8a4d29;white-space:nowrap}
#start:disabled{opacity:.48}
.game-bottom .validation{font-size:9px;color:#98714c;line-height:1.5;min-height:13px;text-shadow:0 1px #fff6}
.game-bottom .live-footer{font-size:9px;color:#8b7958;padding:0 0 1px;gap:14px;text-shadow:0 1px #fff8}
.game-bottom .live-footer span:first-child{color:#688672}
.locker-sign{font-size:11px;color:#705638;text-shadow:0 1px #ffedc8;background:#e7c48c;border:1px solid #b58a54;box-shadow:0 2px #99744855;border-radius:3px;padding:2px 7px;line-height:1.2;letter-spacing:.04em}
#guest-huds .meter{background:#f8eacb;border-color:#b69b6d;box-shadow:0 1px #79613a44}
#guest-huds .next-badge{text-shadow:0 1px #fff6d8}
/* Menus use the same timber frames and ceramic surfaces. */
.screen:not(.play-screen){background:radial-gradient(ellipse at 50% 35%,#f8efd9,#e9ddc6)}
.title-heading h1{color:#4a766e;text-shadow:0 2px #fff5d8,0 3px #b5a68255}.title-heading h1>span{color:#bb764b}.title-heading h1>i{color:#6f9786}
.menu-button{background:linear-gradient(#fff7e2,#edddba);border:2px solid #c7aa7e;border-bottom:4px solid #a4865f;box-shadow:inset 0 1px #fffdf0,0 2px #a4896130;border-radius:11px}.menu-button small{color:#937c5b;opacity:1}.menu-button.main small{color:#d8e3c9}.menu-button>b{color:#9f855e}.menu-small{background:linear-gradient(#e5e8d2,#ced8b8);border:2px solid #abb990;border-bottom:4px solid #8b9f78;color:#546e58;box-shadow:inset 0 1px #faf6dc}
.edition{border-color:#b69a72;background:#f8e8c5;color:#8d7653}.title-kicker,.title-subtitle,.scene-caption,.title-footer,.screen-note,.screen-footer{color:#8b7555}
.icon-button,.button.secondary{border:2px solid #b99a6e;border-bottom:4px solid #9f8057;background:linear-gradient(#f9eccb,#e9cea0);box-shadow:inset 0 1px #fff8e3,0 2px #9c80552b;color:#795f3e}
.stage-card{background:linear-gradient(#faf2da,#ead7b2);border:2px solid #b89a6d;border-bottom:5px solid #99774b;box-shadow:inset 0 1px #fff9e5,0 3px #99774b20}.stage-card:disabled{filter:grayscale(.8);opacity:.48}.stage-card.cleared{background:linear-gradient(#ecedcf,#d8dfb7);border-color:#a8ad7f;border-bottom-color:#899267}.stage-no,.stage-details,.stage-name{color:#8b7451}.stage-number{color:#5a7561}
.rank-tabs{background:#dac49d;border:2px solid #b6976a}.rank-tabs button.active{background:#5d8377;color:#fff4d7}.rank-row{border-color:#d4bd98}.rank-row.mine{background:#e0e5c9}.my-record,.rank-description{color:#7f7153}
.full-dialog{background:radial-gradient(ellipse at 50% 38%,#f9efd6,#e5d3b1);color:#584832}.full-dialog::backdrop{background:#e9ddc6;opacity:1}.modal-heading{border-bottom:2px solid #c8aa7b;padding-bottom:14px}.modal-heading h2,.pause-card h2,.result-card h2{color:#586f57}.pause-mark{color:#72977e}.pause-card .eyebrow{color:#a38a63}.pause-card p,.modal-scroll p,.result-message,.small-note{color:#8b795a}.button.quiet{color:#8b7656}.stage-brief,.result-stats,.submit-score{border:2px solid #c1a173;border-bottom:4px solid #ad8a5c;background:linear-gradient(#fcf3d9,#f0dfb9);color:#766344}.result-stats strong{color:#60775c}.result-stats span{color:#8a7554}.submission-notice{background:#e2e5cb;color:#7b7854}.rule-step>b{background:#d6bc8b;color:#7c623f}.route-example{background:#e1e5c9}.guest-list-row,.complaint-row{border-color:#d0b88f}.guest-list-row small,.complaint-row small{color:#91805b}#player-name{background:#fff6df;border:2px solid #b99a71;color:#5f6248}.toast{background:#55776bf5;color:#fff2d5;border:2px solid #d6bd8c;box-shadow:0 4px 0 #7f654e33}.drag-ghost{background:#fcf1d7;border:3px solid #be975d;box-shadow:0 4px 0 #92734750}
@media(min-width:700px){.game-top .game-header h2{font-size:20px}.game-top .live-stats strong{font-size:24px}.game-top .live-stats span{font-size:11px}.game-bottom .panel-button{min-height:88px;flex-direction:row;gap:9px}.game-bottom .panel-button svg{width:55px;height:41px}.game-bottom .panel-button b{font-size:13px}.game-bottom .panel-button small{font-size:10px}}
@media(max-height:680px){.game-top{top:calc(6px + env(safe-area-inset-top));gap:5px}.game-top .game-header{min-height:37px}.game-header>div{padding:5px 14px;border-bottom-width:3px}.game-top .game-header h2{font-size:15px}.game-top .pause-button{width:36px;height:36px}.game-top .live-stats>div{min-height:50px;padding:5px 2px 6px}.game-top .live-stats strong{font-size:19px}.game-top .live-stats span{font-size:9px}.game-top .game-guide{font-size:9px;min-height:20px}.game-bottom{bottom:calc(7px + env(safe-area-inset-bottom));gap:6px}.game-bottom .palette{padding:5px;gap:5px;border-bottom-width:4px}.game-bottom .panel-button{min-height:71px;padding-top:8px;padding-bottom:4px}.game-bottom .panel-button svg{height:27px;width:39px}.game-bottom .panel-button b{font-size:9px}.game-bottom .panel-button small{font-size:8px}.game-bottom .setup-actions .button{min-height:37px;padding:8px 12px;font-size:11px}.game-bottom .setup-actions .text-button{min-height:33px;font-size:9px;padding:5px 6px}.game-bottom .setup-actions{min-height:37px}.game-bottom .live-footer{font-size:8px}.game-bottom .validation{font-size:8px}}
@media(max-width:350px){.game-top,.game-bottom{left:7px;right:7px}.game-top .live-stats{gap:5px}.game-top .live-stats strong{font-size:18px}.game-top .game-guide{font-size:8px}.game-top .game-guide .text-button{font-size:9px;padding:3px 6px}.game-bottom .palette{gap:4px;padding:5px}.game-bottom .panel-button>span{flex-direction:column;gap:3px}.game-bottom .panel-button b{font-size:8px}.game-bottom .panel-button small{font-size:8px}.game-bottom .setup-actions>div{gap:5px}.game-bottom .setup-actions .text-button{gap:3px;padding:5px;font-size:9px}.game-bottom .setup-actions .text-button svg{width:11px;height:11px}.game-bottom .setup-actions .button{font-size:10px;padding:8px 11px}.locker-sign{font-size:9px;padding:2px 5px}}
@media(orientation:landscape) and (max-height:520px){.game-top{top:5px;gap:3px}.game-top .game-header{min-height:32px}.game-header>div{padding:3px 14px}.game-top .game-header h2{font-size:13px}.game-header .eyebrow{font-size:7px}.game-top .pause-button{width:31px;height:31px;border-width:2px}.game-top .live-stats>div{min-height:37px;padding:3px 2px 4px;border-bottom-width:3px}.game-top .live-stats span{font-size:8px;margin:3px 0 2px}.game-top .live-stats strong{font-size:17px}.game-top .game-guide{font-size:8px;min-height:17px}.game-top .game-guide .text-button{padding:2px 6px;font-size:8px}.game-bottom{bottom:4px;gap:3px;grid-template-columns:1fr 211px;align-items:center}.game-bottom .palette{padding:4px;gap:5px;border-radius:8px}.game-bottom .panel-button{min-height:48px;flex-direction:row;padding:6px 2px 3px;gap:3px}.game-bottom .panel-button svg{width:30px;height:25px}.game-bottom .panel-button b{font-size:9px}.game-bottom .panel-button small{font-size:8px}.game-bottom .setup-actions{gap:5px;padding:0;min-height:36px}.game-bottom .setup-actions>div{flex-direction:column;gap:3px}.game-bottom .setup-actions .text-button{min-height:21px;font-size:8px;padding:2px 4px;border-bottom-width:2px}.game-bottom .setup-actions .text-button svg{width:10px;height:10px}.game-bottom .setup-actions .button{min-height:41px;padding:7px 9px;font-size:11px}.game-bottom .live-footer{font-size:8px}.game-bottom .validation{font-size:8px;min-height:10px}}
/* Twenty days remain visible in a single stage-selection screen. */
#stage-picker{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(5,minmax(0,1fr));gap:7px}
#stage-picker .stage-card{padding:7px 3px 5px;gap:2px;border-radius:8px}
#stage-picker .stage-number{font-size:28px;line-height:1.1}
#stage-picker .stage-no{font-size:7px}
#stage-picker .stage-name{font-size:9px;line-height:1.35;max-width:100%;text-align:center}
#stage-picker .stage-details{font-size:8px}
#stage-picker .stage-medal{font-size:17px;top:3px;right:3px}
.tiny-brand{text-decoration:none;display:inline-block;padding:6px 0}
.tiny-brand:hover,.tiny-brand:focus-visible{text-decoration:underline;text-underline-offset:3px}
.rules-destinations{display:grid;gap:8px;padding:13px 16px;background:#e1e5c9;border:1px solid #c1bb8f;border-radius:9px;font-size:14px;color:#60745a}
.rules-destinations span{display:block;white-space:nowrap}
@media(max-height:680px){#stage-picker{gap:5px}#stage-picker .stage-card{padding:4px 2px;border-bottom-width:3px}#stage-picker .stage-number{font-size:23px}#stage-picker .stage-name{font-size:8px}#stage-picker .stage-no{font-size:6px}#stage-picker .stage-details{display:none}.pause-card{gap:10px}.pause-card .button{min-height:43px}.pause-card p{margin-bottom:8px}}
@media(max-width:350px){#stage-picker{gap:4px}#stage-picker .stage-name{font-size:7px}#stage-picker .stage-number{font-size:22px}}
@media(orientation:landscape) and (max-height:520px){#stage-picker{grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:5px}#stage-picker .stage-number{font-size:23px}#stage-picker .stage-no,#stage-picker .stage-details{display:none}#stage-picker .stage-name{font-size:9px}.pause-card{gap:5px;padding:0}.pause-card .pause-mark{display:none}.pause-card h2{font-size:24px}.pause-card p{margin:0 0 3px}.pause-card .button{min-height:35px;padding:7px 10px}}

/* Small wooden sound switch, reachable on the title and while paused. */
.title-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.sound-toggle{flex-shrink:0;border:1px solid #bba783;border-radius:20px;background:#f4ead5;color:#66523c;font-family:inherit;font-size:12px;font-weight:700;padding:7px 11px;min-height:34px;cursor:pointer;box-shadow:0 2px 0 #b6a181}
.sound-toggle[aria-pressed="false"]{color:#8b8374;background:#e9e3d7}
.pause-sound{align-self:center;margin:0 auto 8px;display:block}
@media(max-height:600px){.pause-sound{padding:4px 10px;min-height:28px;margin-bottom:4px}}

.title-heading .title-genre{display:block;font-size:clamp(13px,2.4dvh,19px);font-weight:700;letter-spacing:.14em;line-height:1.5;margin-bottom:6px;color:#4a766e}
.title-heading h1>span{letter-spacing:.03em}

.share-x{text-decoration:none;justify-content:center}
