/* The homepage's physical materials, around the original games.
   No scene selectors or game logic: the illustration viewports keep their size. */
body.brand-snail,body.brand-pigeon{background:#f8f8f8 url('/assets/home/paper.webp') repeat;background-size:760px 760px;background-blend-mode:multiply}
body.brand-snail header,body.brand-pigeon header{background:none;border-bottom:1px solid #82765b6b}
.all-games-link{font-family:Georgia,'Times New Roman',serif;font-size:17px}
.all-games-icon{background:#25302d url('/assets/home/paper.webp') center/600px 600px;background-blend-mode:multiply;border-radius:1px 2px 2px 1px;box-shadow:1px 2px 0 #8c80624d;transform:rotate(-4deg)}
.topright button{background:#f5efdf url('/assets/home/paper.webp') center/760px 760px;border-color:#877b63;font-family:Georgia,'Times New Roman',serif;box-shadow:1px 2px 2px #4938202b;border-radius:1px 2px 1px 1px}
.game-brand-heading{isolation:isolate;position:relative}
.game-brand-heading:after{content:'';position:absolute;inset:-15px -16px -13px -16px;z-index:-3;pointer-events:none;background:url('/assets/home/sheet.webp') center/100% 100% no-repeat}
body .game-brand-heading:before{content:'';display:block;position:absolute;top:-22px;left:30px;width:100px;height:40px;background:url('/assets/home/tape.webp') center/100% 100% no-repeat;border:0;clip-path:none;transform:rotate(-4deg);z-index:3;pointer-events:none;filter:drop-shadow(0 1px 1px #64503024)}
.game-brand-heading h1{font-family:Georgia,'Times New Roman',serif;font-weight:700;letter-spacing:-1.2px}
.game-brand-heading h1:after{height:3px;clip-path:polygon(0 45%,7% 12%,29% 5%,48% 17%,70% 0,94% 19%,100% 46%,95% 70%,54% 87%,25% 77%,6% 91%)}
.game-brand-heading .subtitle,.game-brand-heading .dek{font-family:Georgia,'Times New Roman',serif;font-size:17px;line-height:1.35}
.brand-stamp,.appointment{mask-image:url('/assets/home/stamp-wear.svg');mask-size:100% 100%;mask-mode:luminance;background:none;color:#a9362d;border-color:#ad4033}
.brand-pigeon .titleline{padding:12px 15px 16px;margin-bottom:28px}
.brand-pigeon .titleline .brand-stamp{margin-top:15px;padding:6px 8px;font-size:12px;letter-spacing:.15px;transform:rotate(-2deg);border-width:2px}
.brand-snail .intro{padding:16px 16px 12px;min-height:156px;margin:3px 0 29px}
.brand-snail .intro h1{font-size:43px;max-width:100%}
.brand-snail .intro .subtitle{margin-top:10px}
.brand-snail .snail-stamp{width:170px;height:170px;right:8px;top:-32px;opacity:.38;gap:5px;font-size:20px;border-width:4px;box-shadow:inset 0 0 0 4px #a9362d18}
.brand-snail .snail-stamp b{font:700 40px/1 Georgia,'Times New Roman',serif}
.brand-snail .coffee-ring{left:44%;top:-3px;width:126px;height:120px;opacity:.8}
/* The frame is outside the original panel; it does not shrink the game. */
.game-mount{position:relative;isolation:isolate;max-width:800px;margin:0 auto 26px}
.game-mount:before{content:'';position:absolute;inset:-14px -15px -15px;z-index:-2;pointer-events:none;border:10px solid transparent;border-image-source:url('/assets/home/noticeboard.webp');border-image-slice:44;border-image-repeat:stretch;background:#c7aa7f url('/assets/cork.webp') center/540px 540px;box-shadow:1px 3px 4px #38270f3d,0 7px 14px #49382029}
.game-mount:after{content:'';position:absolute;bottom:-3px;right:0;width:19px;height:18px;background:linear-gradient(135deg,transparent 43%,#dad0b9 48%,#fcf6e9 69%,#a3967a 96%);pointer-events:none;z-index:2;border-radius:0 0 7px 0}
.game-mount>.race-card,.game-mount>.game{background:#fbf7ee url('/assets/home/paper.webp') center/760px 760px;border-color:#82765b88;box-shadow:1px 2px 2px #38270f26,3px 5px 6px #38270f29;border-radius:1px 2px 2px 1px}
.race-score,.controls-panel,.choices,.dialogue{background-image:url('/assets/home/paper.webp');background-size:760px 760px}
.race-score,.controls-panel,.choices,.dialogue{background-color:transparent}
.view-switch button,.controls-panel button,.race-share-row button,.choice,.race-share-options button,.new-race button:not(.text-button){background-image:url('/assets/home/paper.webp');background-size:760px 760px;background-blend-mode:multiply;border-color:#8d7e62;border-radius:1px 3px 1px 1px;box-shadow:1px 2px 0 #9f907144,1px 3px 3px #4938201c}
.view-switch button,.controls-panel button,.race-share-row button,.choice .word{font-family:'Courier New',Courier,monospace}
.controls-panel button.primary{background-color:#a9362d;color:#fffdf6;border-color:#80382d}
.view-switch button[aria-pressed=true],.choice.primary{background-color:#344b3c;border-color:#253d2e;color:#fffdf6}
.choice:hover{background-color:#e8e1ce}
.choice.primary:hover{background-color:#2c4233}
.controls-panel button.primary:hover{background-color:#8d2e26}
.choice:active,.controls-panel button:active,.race-share-row button:active{box-shadow:none}
.pre-race-name label,.live-stats label,.pace-line{font-family:Georgia,'Times New Roman',serif}
.pre-race-name input,.live-stats select{background:#f5eedc url('/assets/home/paper.webp') center/760px 760px;background-blend-mode:multiply;border-color:#9b8d72;border-radius:1px 3px 1px 1px;box-shadow:inset 0 1px 2px #65553715}
.live-stats{border-top-color:#c1b49b}
.live-stats>div+div{border-left-style:dashed;border-left-color:#c1b49b}
.race-share-row button{background-color:#eee4cb}
/* Race updates are a taped sheet; the reminder uses the same yellow memo. */
.brand-snail .race-commentary{position:relative;isolation:isolate;margin-top:34px;margin-bottom:29px;padding:20px 18px 15px;border:0}
.race-commentary:before{content:'';position:absolute;inset:-15px -15px -18px;background:url('/assets/home/sheet.webp') center/100% 100% no-repeat;z-index:-1;pointer-events:none}
.race-commentary:after{content:'';position:absolute;top:-20px;left:43%;width:95px;height:38px;background:url('/assets/home/tape.webp') center/100% 100% no-repeat;transform:rotate(3deg);pointer-events:none}
.race-commentary h2,.outcomes-heading h2{font:700 27px/1.1 Georgia,'Times New Roman',serif;letter-spacing:-.65px}
.race-commentary .log-caption{font:15px/1.4 Georgia,'Times New Roman',serif;color:#655e4d}
.race-log-entry{border-top-color:#b6a88d;border-top-style:dashed}
.race-log-entry p{font:16px/1.45 Georgia,'Times New Roman',serif;color:#3d4738}
.brand-snail .check-back{position:relative;padding:21px 22px 23px;background:#efd784 url('/assets/home/paper.webp') center/650px 650px;background-blend-mode:multiply;border:0;border-radius:0 1px 5px 0;transform:rotate(-.35deg);box-shadow:1px 2px 2px #49382025,3px 6px 8px #49382024;margin-bottom:26px}
.check-back:before{content:'';position:absolute;top:-19px;right:28px;width:77px;height:32px;background:url('/assets/home/tape.webp') center/100% 100% no-repeat;transform:rotate(6deg);pointer-events:none}
.check-back:after{content:'';position:absolute;right:0;bottom:0;width:18px;height:17px;background:linear-gradient(135deg,transparent 43%,#d1b264 49%,#f7df98 68%,#b69b55 96%);border-radius:0 0 5px 0;pointer-events:none}
.check-back strong{font:700 22px/1.18 Georgia,'Times New Roman',serif}
.check-back p{font:16px/1.4 Georgia,'Times New Roman',serif}
.new-race{border-top-style:dashed;border-top-color:#b8aa90;padding-top:9px}
.new-race .text-button,.brand-pigeon footer button{font-family:Georgia,'Times New Roman',serif;text-decoration:underline;text-decoration-style:dashed;text-underline-offset:4px}
body.brand-snail footer,body.brand-pigeon footer{border-top-color:#9f927966;font-family:'Courier New',Courier,monospace;color:#686451}
/* Interview paperwork surrounding the untouched room illustration. */
.brand-pigeon .dialogue>p{font-family:Georgia,'Times New Roman',serif;font-weight:700;line-height:1.35}
.brand-pigeon .speaker b,.brand-pigeon #question-count{font-family:'Courier New',Courier,monospace}
.brand-pigeon .avatar{border-radius:2px;border:1px solid #b2a58c;background:#eee4cf;font-family:Georgia,'Times New Roman',serif}
.brand-pigeon .under-game{position:relative;background:#f2ead5 url('/assets/home/paper.webp') center/760px 760px;background-blend-mode:multiply;padding:17px 18px 15px;margin-top:24px;border:1px solid #b0a08477;border-radius:1px 3px 1px 2px;box-shadow:1px 2px 2px #49382018,2px 4px 4px #49382018}
.brand-pigeon .meter-item>span{font-family:Georgia,'Times New Roman',serif;font-size:14px;color:#414b3a}
.brand-pigeon .meter-item b{font-family:'Courier New',Courier,monospace;font-weight:700}
.brand-pigeon .lunch{border-top:1px dashed #b4a58b;padding-top:11px}
.brand-pigeon .lunch>span{font-family:'Courier New',Courier,monospace;letter-spacing:0}
.brand-pigeon .tip{font-family:Georgia,'Times New Roman',serif;color:#625e48}
.brand-pigeon .outcomes-panel{position:relative;isolation:isolate;background:none;border-color:transparent;box-shadow:none;margin-top:9px;margin-bottom:29px;padding:20px 18px 21px}
.outcomes-panel:before{content:'';position:absolute;inset:-14px -14px -18px;background:url('/assets/home/sheet.webp') center/100% 100% no-repeat;z-index:-1;pointer-events:none}
.outcomes-panel:after{content:'';position:absolute;top:-18px;right:40px;width:13px;height:39px;border:2px solid #767a6e;border-radius:8px;transform:rotate(11deg);box-shadow:1px 1px 1px #635b4555,inset 1px 0 0 #fff7;pointer-events:none}
.outcome-card{background:#eee4ca url('/assets/home/paper.webp') center/650px 650px;background-blend-mode:multiply;border:1px dashed #ad9e82;color:#5d604e;border-radius:1px 3px 1px 1px;font-family:Georgia,'Times New Roman',serif}
.outcome-card.unlocked{background-color:#dce8cf;border:1px solid #879874;color:#315238}
.outcome-check{border-radius:1px 3px 1px 1px;border:1px solid #b3a88d;background:#f6efdb;color:#817b62}
.unlocked .outcome-check{background:#41573c;color:#fffdf0;border-color:#41573c}
#race-share-dialog{background:#fbf6ec url('/assets/home/paper.webp') center/760px 760px;border:1px solid #84745a;border-radius:1px 3px 2px 1px;box-shadow:2px 4px 0 #e9dfc9,5px 8px 20px #34291450}
#race-share-dialog h2{font-family:Georgia,'Times New Roman',serif}
.snail-share-card{background:#f1e7cc url('/assets/home/paper.webp') center/760px 760px;background-blend-mode:multiply;border-color:#a99b7d;box-shadow:1px 2px 2px #49382024,2px 4px 5px #49382020}
.snail-share-card h3{font-family:Georgia,'Times New Roman',serif}
@media(max-width:799px){
 body.brand-snail main,body.brand-pigeon main{padding-top:23px}
 .game-mount:before{inset:-8px -7px -10px;border-width:6px;border-image-width:6px}
 .brand-snail .intro{padding:15px 12px 12px;min-height:145px;margin-bottom:23px}
 .brand-snail .intro h1{font-size:34px}
 .brand-snail .snail-stamp{width:150px;height:150px;right:7px;top:-22px;font-size:17px;gap:4px;opacity:.3}
 .brand-snail .snail-stamp b{font-size:34px}
 .brand-snail .coffee-ring{left:37%;width:110px;height:105px;top:3px}
 .brand-pigeon .titleline{padding:12px 10px 15px;margin-bottom:23px}
 .game-brand-heading:after{inset:-12px -11px -11px}
 body .game-brand-heading:before{width:85px;height:34px;left:24px;top:-19px}
 .game-brand-heading .subtitle,.game-brand-heading .dek{font-size:16px}
 .brand-pigeon .titleline .brand-stamp{font-size:11px;margin-top:12px;padding:5px 6px}
 .brand-snail .race-commentary{padding:18px 12px 13px;margin-top:29px;margin-bottom:25px}
 .race-commentary:before{inset:-12px -11px -14px}
 .race-commentary:after{width:80px;height:32px;top:-17px;left:39%}
 .race-commentary h2,.outcomes-heading h2{font-size:26px}
 .race-log-entry{grid-template-columns:73px minmax(0,1fr);gap:10px}
 .race-log-entry p{font-size:16px}
 .brand-snail .check-back{padding:19px 16px 21px}
 .check-back strong{font-size:21px}
 .check-back:before{width:70px;height:29px;top:-16px;right:20px}
 .brand-pigeon .under-game{padding:14px 13px;margin-top:19px}
 .brand-pigeon .meter-item>span{font-size:14px}
 .brand-pigeon .outcomes-panel{padding:18px 13px;margin-top:8px}
 .outcomes-panel:before{inset:-12px -11px -15px}
 .outcomes-panel:after{right:25px;top:-16px;height:34px;width:12px}
}
@media(max-width:350px){
 .brand-snail .intro{min-height:133px}
 .brand-snail .intro h1{font-size:29px}
 .brand-snail .snail-stamp{width:132px;height:132px;font-size:15px;top:-20px}
 .brand-snail .snail-stamp b{font-size:30px}
 .brand-snail .coffee-ring{left:34%;width:98px;height:94px}
 .brand-pigeon .titleline h1{font-size:27px}
 .brand-pigeon .titleline .brand-stamp{font-size:10px;letter-spacing:0}
 .race-commentary h2,.outcomes-heading h2{font-size:24px}
 .brand-pigeon .under-game{padding-inline:10px}
 .brand-pigeon .meter-item>span{font-size:13px}
 .outcomes-heading{gap:7px}
 .outcomes-heading>span{font-size:12px}
}
body.brand-snail .game-brand-heading:before{display:block}
@media(max-width:350px){.brand-pigeon .game-brand-heading:after{left:-9px;right:-9px}.brand-pigeon .outcomes-panel:before{left:-9px;right:-9px}}
/* Preserve the scale of the paper fibres on long, shallow sheets. */
.game-brand-heading:after,.race-commentary:before,.outcomes-panel:before{
 background-color:#fbf7ee;
 background-image:linear-gradient(#fffdf63b,#fffdf63b),url('/assets/home/paper.webp');
 background-size:auto,760px 760px;
 background-repeat:repeat;
 background-clip:padding-box;
 border:20px solid transparent;
 border-image-source:url('/assets/home/sheet.webp');
 border-image-slice:130;
 border-image-width:20px;
 border-image-repeat:stretch;
}
@media(max-width:799px){.game-brand-heading:after,.race-commentary:before,.outcomes-panel:before{border-width:16px;border-image-width:16px}}

/* Match the homepage's quiet catalogue label. */
.game-brand-heading>.game-number{position:absolute;top:3px;right:9px;color:#817d70;font:12px/1.2 'Courier New',Courier,monospace;letter-spacing:.8px;pointer-events:none;z-index:3}
@media(max-width:799px){.game-brand-heading>.game-number{top:2px;right:7px;font-size:11px}}
