/* A small opt-in game: no movement before someone presses play. */
.receipt-game{padding-block:0 65px;scroll-margin-top:110px}
.receipt-game [hidden]{display:none!important}
.receipt-game-card{position:relative;overflow:hidden;max-width:880px;margin-inline:auto;padding:40px;border:1px solid #b4c5a41c;background:radial-gradient(ellipse at 100% 0%,#35402d80,transparent 70%),#1d231b;border-radius:40px 75px 40px 40px}
.receipt-game-intro{display:flex;align-items:center;justify-content:space-between;gap:35px}
.receipt-game-intro-copy{position:relative;min-width:0}
.receipt-game-title-row{display:flex;align-items:center;gap:15px;margin:13px 0 16px}
.receipt-game-intro h2{font-size:clamp(38px,4vw,56px);margin:0}
.receipt-game-die{display:block;width:68px;height:74px;flex:none;overflow:visible;transform:rotate(10deg);filter:drop-shadow(0 4px 5px #080d0640)}
.receipt-game-intro p:last-child{max-width:47ch;font-size:17px;line-height:1.65;color:var(--muted)}
.receipt-game-sketch{width:175px;height:155px;flex:none;transform:rotate(6deg)}
.receipt-game-entry{margin-top:25px;display:flex;flex-wrap:wrap;align-items:center;gap:14px 25px}
.receipt-game button{font-size:14px;line-height:1.25;min-height:46px;font-weight:600}
.receipt-game-start,.receipt-game-resume{border:0;border-radius:30px;background:var(--orange);color:#241d16;padding:14px 24px}
.receipt-game-start:hover,.receipt-game-resume:hover{background:var(--orange-light)}
.receipt-game-replay{border:1px solid #8da37559;border-radius:30px;background:transparent;color:#cbd9bb;padding:12px 22px}
.receipt-game-replay:hover{border-color:#adbd927d;background:#c8dfaa08}
.receipt-game-soft{background:transparent;color:#ccd5c2;border:1px solid #71816670;border-radius:30px;padding:12px 20px}
.receipt-game-soft:hover{background:#394431}
.receipt-game button:disabled{cursor:default;opacity:.5}
.receipt-game-note{font-size:12px;color:#a9b69d;flex-basis:100%;line-height:1.6}
.receipt-game-motion-note{margin-top:20px;color:#ffbd97}
.receipt-game-play{width:100%;max-width:600px;margin:28px auto 0}
.receipt-game-hud{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:13px}
.receipt-game-hud>span{display:flex;align-items:baseline;gap:9px;color:#aab79d;font-size:12px}
.receipt-game-hud strong{font-size:23px;color:#eff2e7;font-weight:650;letter-spacing:-.035em;font-variant-numeric:tabular-nums}
.receipt-game-commentator{display:flex;align-items:center;gap:16px;width:fit-content;max-width:100%;min-height:100px;margin:0 0 16px;padding:6px 3px}
.receipt-game-daniel{display:block;position:relative;isolation:isolate;width:76px;height:82px;flex:none;padding:4px;background:linear-gradient(135deg,#ffc59a,#dd7b49);border-radius:44% 56% 62% 38% / 51% 40% 60% 49%;box-shadow:0 7px 18px #070b0545;transform:translateY(0) rotate(-3deg);animation:receipt-daniel-drift 12s ease-in-out infinite;animation-play-state:paused}
.receipt-game-daniel img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit;filter:grayscale(1)}
.receipt-game-speech{position:relative;min-width:0;width:260px;max-width:calc(100% - 92px);padding:13px 17px;background:#e9edd9;border-radius:23px 26px 24px 9px;box-shadow:0 5px 15px #070b0526;transform:translateY(0) rotate(1deg);animation:receipt-speech-drift 14s ease-in-out infinite;animation-play-state:paused}
.receipt-game-speech::before{content:'';position:absolute;left:-9px;bottom:16px;width:17px;height:18px;background:#e9edd9;clip-path:polygon(100% 0,100% 100%,0 85%)}
.receipt-game-speech>span{display:block;color:#63714f;font-size:10px;line-height:1.3;font-weight:600;letter-spacing:.025em}
.receipt-game-speech p{font-size:14px;line-height:1.4;color:#283020;font-weight:550;margin-top:5px;min-height:2.8em}
.receipt-game[data-game-phase="running"] .receipt-game-daniel,.receipt-game[data-game-phase="running"] .receipt-game-speech{animation-play-state:running}
@keyframes receipt-daniel-drift{0%,100%{transform:translateY(0) rotate(-3deg);border-radius:44% 56% 62% 38% / 51% 40% 60% 49%}50%{transform:translateY(-5px) rotate(2deg);border-radius:58% 42% 43% 57% / 40% 57% 43% 60%}}
@keyframes receipt-speech-drift{0%,100%{transform:translateY(0) rotate(1deg)}50%{transform:translateY(-3px) rotate(-.5deg)}}
.receipt-game-board{height:340px;position:relative;overflow:hidden;border-radius:25px;background:radial-gradient(ellipse at 50% 110%,#3e4b2a90,transparent 70%),#12190f;box-shadow:inset 0 0 0 1px #dce8ce0a;scroll-margin-block:120px 20px;isolation:isolate;touch-action:pan-y}
.receipt-game[data-game-phase="running"][data-game-mode="timed"] .receipt-game-board{touch-action:none;user-select:none;-webkit-user-select:none;cursor:crosshair}
.receipt-game-board:focus-visible{outline:2px solid var(--orange-light);outline-offset:4px}
.receipt-game-board::before{content:'';position:absolute;left:8%;right:8%;bottom:23px;height:1px;background:linear-gradient(90deg,transparent,#a9be7e40,transparent);pointer-events:none}
.receipt-game-field{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.receipt-game-paper{--paper-color:#f3edda;--paper-fold:#c9bda0;position:absolute;left:0;top:0;width:64px;height:96px;background:var(--paper-color);color:#38402d;box-shadow:inset 0 0 0 1px #fdfbea65;clip-path:polygon(0 0,calc(100% - 11px) 0,100% 11px,100% 100%,87.5% calc(100% - 4px),75% 100%,62.5% calc(100% - 4px),50% 100%,37.5% calc(100% - 4px),25% 100%,12.5% calc(100% - 4px),0 100%);will-change:transform}
.receipt-game-paper[data-variant="1"]{--paper-color:#e8edd9;--paper-fold:#b8c1a3}
.receipt-game-paper[data-variant="2"]{--paper-color:#efddca;--paper-fold:#c9ab8e}
.receipt-game-paper::before{content:'';position:absolute;left:7px;right:7px;top:20px;border-top:1px dashed #7f8c6545}
.receipt-game-paper::after{content:'';position:absolute;right:0;top:0;width:11px;height:11px;background:var(--paper-fold);clip-path:polygon(0 0,100% 100%,0 100%);box-shadow:-1px 1px 2px #625d3926}
.receipt-paper-brand{position:absolute;left:8px;top:9px;right:13px;display:block;font-size:6.5px;font-weight:750;line-height:1;letter-spacing:.15em;color:#73805f}
.receipt-paper-caption{position:absolute;top:27px;left:8px;right:7px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;max-height:3.24em;font-size:10px;font-weight:650;line-height:1.08;letter-spacing:-.02em}
.receipt-game-paper[data-variant="0"] .receipt-paper-caption{top:24px}
.receipt-paper-lines{position:absolute;left:8px;right:8px;bottom:25px;display:block;height:6px;background:repeating-linear-gradient(to bottom,#83906c65 0 1px,transparent 1px 5px);opacity:.75}
.receipt-paper-lines::after{content:'';position:absolute;right:0;bottom:0;width:30%;height:2px;background:var(--paper-color)}
.receipt-paper-stamp{position:absolute;bottom:10px;right:8px;max-width:48px;padding:1px 3px;border:1px solid #9c644970;border-radius:2px;color:#986247;font-size:5.5px;font-style:normal;font-weight:750;line-height:1.2;letter-spacing:.06em;text-transform:uppercase;transform:rotate(-5deg)}
.receipt-game-folder{position:absolute;width:var(--folder-width,110px);height:58px;bottom:12px;left:50%;transform:translateX(-50%);filter:drop-shadow(0 6px 9px #0004)}
.receipt-game-folder-body{position:relative;isolation:isolate;width:100%;height:100%;transform-origin:50% 84%;transform:translateY(var(--catch-lift,0px)) rotate(var(--folder-lean,0deg)) scaleY(var(--catch-squash,1));will-change:transform}
.receipt-game-folder-body::before{content:'';position:absolute;z-index:0;inset:0 0 4px;background:linear-gradient(120deg,#bd7345,#99532e);border-radius:7px 12px 12px 12px;clip-path:polygon(0 0,41% 0,49% 12%,100% 12%,100% 100%,0 100%)}
.receipt-game-folder-body::after{content:'';position:absolute;z-index:2;inset:12px 0 0;background:linear-gradient(135deg,#f8b581,#ee915e 65%,#dc7548);border:1px solid #ffd5a975;border-radius:8px 8px 12px 12px;transform:skewX(-4deg);box-shadow:inset 0 2px #ffe5bc65,inset 0 -3px #bd62292b}
.receipt-game-folder-body>span{position:absolute;z-index:3;top:26px;left:50%;transform:translateX(-50%);display:grid;place-items:center;min-width:27px;height:20px;padding-inline:6px;border-radius:5px;background:#fff0d933;box-shadow:inset 0 0 0 1px #ffdcac55;color:#713f26;font-size:12px;line-height:1;font-weight:750;font-variant-numeric:tabular-nums}
.receipt-game-stack{position:absolute;z-index:1;left:10%;right:10%;bottom:21px;height:52px;pointer-events:none}
.receipt-game-stack>i{position:absolute;left:calc(6% + var(--sheet-index,0) * 2%);bottom:0;width:80%;height:41px;border-radius:3px 6px 2px 2px;background:#eef0d9;box-shadow:0 -1px 0 #fff9,0 0 4px #38381d35;transform:translateY(calc(var(--sheet-index,0) * -3px)) rotate(calc(-7deg + var(--sheet-index,0) * 3.5deg));z-index:var(--sheet-index,0)}
.receipt-game-stack>i:nth-child(even){background:#dfE6c9}
.receipt-game-stack>i::after{content:'';position:absolute;left:9px;right:10px;top:9px;height:7px;background:repeating-linear-gradient(to bottom,#8491665c 0 1px,transparent 1px 5px)}
.receipt-game-instructions{font-size:12px;color:#a8b79b;line-height:1.65;margin-top:14px;max-width:76ch}
.receipt-game-controls{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-top:18px}
.receipt-game-arrow-controls,.receipt-game-session-controls{display:flex;gap:9px}
.receipt-game-arrow{width:50px;border:1px solid #71816670;background:#2c3925;border-radius:17px;color:#e8efdd;display:grid;place-items:center;padding:10px}
.receipt-game-arrow svg{width:21px;height:21px}.receipt-game-arrow:hover{background:#455539}
.receipt-game-overlay{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:28px;background:#182113f0;backdrop-filter:blur(10px)}
.receipt-game-result-photo{display:block;width:72px;height:72px;flex:none;object-fit:cover;border:1px solid #dbe8c04d;border-radius:50%;margin:0 0 16px;box-shadow:0 0 0 5px #b6c7920d,0 5px 20px #080e0640}
.receipt-game-overlay h3{font-size:clamp(28px,3.5vw,40px);letter-spacing:-.04em;color:var(--orange-light)}
.receipt-game-overlay p{font-size:15px;color:#c4cfb8;max-width:36ch;line-height:1.6;margin:15px 0 20px}
.receipt-game-overlay .receipt-game-result-count{font-size:18px;font-weight:600;letter-spacing:-.025em;line-height:1.35;color:#f1ecda;margin:15px 0 0;max-width:26ch}
.receipt-game-overlay .receipt-game-result-count+p{margin-top:12px}
.receipt-game-overlay-actions{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}
.receipt-game-cta{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:14px 22px;border:1px solid transparent;border-radius:30px;background:var(--orange);color:#241d16;font-size:14px;font-weight:650;line-height:1.2;text-decoration:none;box-shadow:inset 0 1px #ffd4ab55}
.receipt-game-cta:hover{background:var(--orange-light)}
/* Once the round ends, its overlay becomes a real card that can grow with its copy. */
.receipt-game[data-game-phase="finished"] .receipt-game-board{height:auto;min-height:390px}
.receipt-game[data-game-phase="finished"] .receipt-game-overlay{position:relative;inset:auto;min-height:inherit;padding:28px;background:radial-gradient(ellipse at 50% 0%,#485b303b,transparent 60%),#182113}
.receipt-game[data-game-phase="finished"] .receipt-game-field{visibility:hidden}
.receipt-game[data-game-phase="finished"] .receipt-game-board::before,.receipt-game[data-game-phase="finished"] .receipt-game-hud,.receipt-game[data-game-phase="finished"] .receipt-game-instructions,.receipt-game[data-game-phase="finished"] [data-game-pause]{display:none}
.receipt-game[data-game-phase="finished"] .receipt-game-result-count{margin-top:12px}
.receipt-game[data-game-phase="finished"] .receipt-game-result-count+p{margin:10px 0 22px}
.receipt-game[data-game-phase="finished"] .receipt-game-controls{justify-content:flex-end;margin-top:10px}
.receipt-game[data-game-phase="finished"] [data-game-close]{min-height:44px;padding:10px 8px;border-color:transparent;background:transparent;color:#9cad90;font-size:12px}
.receipt-game[data-game-phase="finished"] [data-game-close]:hover{color:#d5e2c7;text-decoration:underline;text-underline-offset:4px}
@media(max-width:780px){
  .receipt-game-title-row{display:block}.receipt-game-die{position:absolute;right:0;top:-10px;width:43px;height:47px}.receipt-game-intro-copy>.eyebrow{padding-right:46px}
}
@media(max-width:650px){
  .receipt-game{padding-bottom:40px}.receipt-game-card{padding:26px 20px;border-radius:30px 55px 30px 30px}
  .receipt-game-intro{gap:12px;align-items:start}.receipt-game-intro h2{font-size:37px}.receipt-game-intro p:last-child{font-size:15px}.receipt-game-sketch{width:64px;height:90px;margin-right:-5px;opacity:.85}
  .receipt-game-entry{gap:12px}.receipt-game-entry button{padding-inline:18px}.receipt-game-board{height:340px;border-radius:20px}.receipt-game-hud{gap:12px}.receipt-game-hud>span{display:block;font-size:11px}.receipt-game-hud>span:last-child{text-align:right}.receipt-game-hud strong{display:block;margin-top:4px;font-size:18px;white-space:nowrap}
  .receipt-game-commentator{min-height:90px;gap:12px;margin-bottom:12px;padding-inline:2px}.receipt-game-daniel{width:58px;height:64px;padding:3px}.receipt-game-speech{width:230px;max-width:calc(100% - 70px);padding:11px 12px;border-radius:19px 23px 21px 7px}.receipt-game-speech p{font-size:12px;line-height:1.4;min-height:4.2em}.receipt-game-speech>span{font-size:9px;line-height:1.4;letter-spacing:.015em}
  .receipt-game-controls{gap:12px}.receipt-game-controls .receipt-game-soft{padding-inline:15px}.receipt-game-overlay{padding:22px 14px}.receipt-game-overlay p{font-size:14px}
  .receipt-game-overlay .receipt-game-result-count{font-size:16px;max-width:22ch;margin-top:13px}
  .receipt-game[data-game-phase="finished"] .receipt-game-board{min-height:400px}
  .receipt-game[data-game-phase="finished"] .receipt-game-overlay{padding:24px 18px}
  .receipt-game[data-game-phase="finished"] .receipt-game-overlay h3{font-size:28px;line-height:1.08}
  .receipt-game[data-game-phase="finished"] .receipt-game-result-count{font-size:15px;line-height:1.35;margin-top:12px;max-width:28ch}
  .receipt-game[data-game-phase="finished"] .receipt-game-result-count+p{font-size:13px;line-height:1.45;margin:10px 0 20px}
  .receipt-game[data-game-phase="finished"] .receipt-game-overlay-actions{flex-direction:column;gap:10px;width:min(100%,280px)}
  .receipt-game[data-game-phase="finished"] .receipt-game-overlay-actions>*{width:100%;min-height:44px}
  .receipt-game[data-game-phase="finished"] .receipt-game-overlay-actions .receipt-game-cta{min-height:48px}
}
@media(max-width:370px){
  .receipt-game-intro{display:block}.receipt-game-sketch{display:none}.receipt-game-session-controls{margin-left:auto}.receipt-game-controls .receipt-game-soft{padding-inline:12px}
  .receipt-game[data-game-phase="finished"] .receipt-game-board{min-height:420px}
  .receipt-game[data-game-phase="finished"] .receipt-game-overlay{padding:22px 14px}
  .receipt-game-result-photo{width:64px;height:64px;margin-bottom:16px}
  .receipt-game[data-game-phase="finished"] .receipt-game-overlay h3{font-size:26px}
  .receipt-game[data-game-phase="finished"] .receipt-game-result-count{font-size:14px;margin-top:10px}
  .receipt-game[data-game-phase="finished"] .receipt-game-result-count+p{font-size:13px;margin:10px 0 18px}
  .receipt-game[data-game-phase="finished"] .receipt-game-overlay-actions{gap:9px}
  .receipt-game[data-game-phase="finished"] .receipt-game-overlay-actions button{padding:11px 16px}
  .receipt-game[data-game-phase="finished"] .receipt-game-cta{padding-inline:16px}
}
@media(prefers-reduced-motion:reduce){.receipt-game *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.motion-paused .receipt-game *{scroll-behavior:auto!important;transition:none!important;animation:none!important}
