/* Ephemeral economy effects live above the interface and never intercept input. */
.economy-effects{position:fixed;inset:0;z-index:180;pointer-events:none;overflow:hidden;isolation:isolate;font-family:Manrope,'DM Sans',sans-serif}
.economy-effects *{pointer-events:none;box-sizing:border-box}
.economy-bill{position:absolute;width:58px;height:29px;display:grid;place-items:center;border:2px solid #d7bf76;border-radius:4px;background:linear-gradient(135deg,#b5ddbd 0%,#e0ebbf 47%,#8abf9c 100%);box-shadow:0 2px 0 #4b865c,0 7px 18px #163e2d66,inset 0 0 0 2px #3f795357;opacity:0;will-change:transform,opacity}
.economy-bill:before,.economy-bill:after{content:'';position:absolute;width:7px;height:7px;border:1px solid #36745187;border-radius:50%;top:4px}.economy-bill:before{left:5px}.economy-bill:after{right:5px}
.economy-bill-mark{display:grid;place-items:center;width:19px;height:19px;border:1px solid #36745190;border-radius:50%;font-size:14px;font-weight:900;line-height:1;color:#286643;text-shadow:0 1px #fff8}
.economy-badge{position:absolute;white-space:nowrap;padding:7px 12px;border:1px solid #d6bd78;border-radius:999px;background:#222c29;color:#e4cf8a;font-size:12px;font-weight:850;letter-spacing:.02em;box-shadow:0 7px 22px #09271c70;transform:translate(-50%,-35px);opacity:1;will-change:transform,opacity}
.economy-badge--credit{background:#183b2b;border-color:#82bd96;color:#d9f2dc}.economy-badge--debit{background:#382a25;border-color:#d8aa75;color:#f9d7a8}
.economy-arrival,.economy-build-ring{position:absolute;width:48px;height:48px;border:2px solid #cfae64;border-radius:50%;box-shadow:0 0 18px #e3c17c88;opacity:0;will-change:transform,opacity}
.economy-build-ring{width:72px;height:72px;border-color:#7bc79c;box-shadow:0 0 22px #6cb99099,inset 0 0 16px #6cb99077}
.economy-stamp{position:absolute;min-width:94px;padding:8px 11px;border:3px double #eed79a;border-radius:3px;background:#25362fe8;color:#f3dc9e;text-align:center;font-size:12px;font-weight:900;line-height:1;letter-spacing:1.1px;text-shadow:0 1px 1px #173626;box-shadow:0 5px 19px #16292188;transform:translate(-50%,-50%) rotate(-12deg);opacity:1;will-change:transform,opacity}
.economy-victory{position:absolute;max-width:calc(100vw - 32px);padding:15px 22px;border:1px solid #e5cb87;border-radius:8px;background:linear-gradient(145deg,#233a2f,#14251f);color:#f4dfaa;font-size:clamp(13px,2.3vw,21px);font-weight:900;letter-spacing:2px;text-align:center;box-shadow:0 15px 42px #14251f9c,0 0 0 5px #d5b96e33;transform:translate(-50%,-50%);opacity:1;will-change:transform,opacity}
.economy-confetti{position:absolute;width:8px;height:15px;background:var(--confetti-color,#dcb45e);border-radius:1px;box-shadow:0 1px 3px #21402b77;opacity:0;will-change:transform,opacity}
.economy-turn{position:absolute;top:19%;left:50%;width:min(340px,calc(100vw - 40px));padding:17px 24px;border:1px solid #d4bd80;border-radius:12px;background:linear-gradient(140deg,#1a3128f5,#293d35f5);color:#f2e0b0;text-align:center;box-shadow:0 18px 44px #10251e70,inset 0 1px #ffffff20;transform:translate(-50%,0);opacity:1;will-change:transform,opacity}
.economy-turn span{display:block;margin-bottom:7px;color:#b3d9c1;font-size:9px;font-weight:800;letter-spacing:2.4px}.economy-turn strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(18px,3vw,28px);font-weight:850;line-height:1.2}
@media(max-width:740px){.economy-bill{width:46px;height:24px}.economy-bill-mark{width:16px;height:16px;font-size:12px}.economy-badge{font-size:10px;padding:5px 9px}.economy-stamp{font-size:10px;min-width:75px;padding:6px}.economy-turn{top:26%;padding:14px 18px}}
@media(prefers-reduced-motion:reduce){.economy-effects *{animation:none!important;transition:none!important}}

/* Board scenes sit above the board art while the surrounding controls remain usable. */
.board-scene{position:absolute;inset:0;z-index:25;display:grid;place-items:center;pointer-events:none;font-family:Manrope,'DM Sans',sans-serif}
.board-scene *{box-sizing:border-box}
.board-dice-scene,.board-landing-scene{pointer-events:auto;cursor:pointer;border:0;font:inherit;touch-action:manipulation}
.board-dice-scene{display:flex;align-items:center;justify-content:center;gap:clamp(14px,3vw,26px);padding:28px;background:transparent;filter:drop-shadow(0 20px 18px #081d1a85)}
.board-scene-die{width:clamp(76px,12vw,112px);aspect-ratio:1;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:6px;padding:17px;border:2px solid #e0d8c9;border-radius:19px;background:linear-gradient(145deg,#fffdf2,#eee8d8);box-shadow:inset -7px -9px 15px #b6a99766,inset 4px 4px 9px #fff,0 8px 0 #b8a78e,0 13px 24px #081d1a75;animation:board-die-drop var(--scene-duration) cubic-bezier(.18,.75,.25,1) both}
.board-scene-die:nth-child(2){animation-name:board-die-drop-two}
.board-scene-die i{align-self:center;justify-self:center;width:clamp(9px,1.7vw,15px);aspect-ratio:1;border-radius:50%;background:#244b3c;box-shadow:inset 1px 2px 2px #0c2b25aa,1px 1px #fff8}
.board-scene-die i.empty{visibility:hidden}
@keyframes board-die-drop{0%{opacity:0;transform:translate(-34px,-230px) rotate(-115deg) scale(.65)}35%{opacity:1;transform:translate(8px,26px) rotate(16deg) scale(1.08)}55%{transform:translate(0,-47px) rotate(-9deg)}76%{transform:translate(0,8px) rotate(3deg)}90%{transform:translate(0,-12px) rotate(-2deg)}100%{transform:translate(0,0) rotate(0)}}
@keyframes board-die-drop-two{0%{opacity:0;transform:translate(40px,-270px) rotate(130deg) scale(.65)}35%{opacity:1;transform:translate(-10px,32px) rotate(-18deg) scale(1.08)}57%{transform:translate(0,-56px) rotate(11deg)}77%{transform:translate(0,10px) rotate(-4deg)}91%{transform:translate(0,-14px) rotate(2deg)}100%{transform:translate(0,0) rotate(0)}}
.board-scene--still .board-scene-die{animation:none}
.board-landing-scene{display:block;width:min(360px,calc(100% - 32px));max-height:calc(100% - 32px);overflow:hidden;padding:0;border:1px solid #d8bb73;border-radius:16px;background:#182b27;color:#f8edcf;text-align:left;box-shadow:0 18px 54px #071a19af,0 0 0 5px #d2b9692b;animation:board-card-in var(--scene-duration) ease both}
.board-landing-scene--observer{width:min(280px,calc(100% - 32px))}
.board-landing-photo{display:block;width:100%;height:clamp(95px,22vh,155px);object-fit:cover}
.board-landing-scene--observer .board-landing-photo{height:90px}
.board-landing-body{display:block;padding:15px 19px 18px}
.board-landing-kicker{display:block;margin-bottom:5px;color:#b4d5c1;font-size:10px;font-weight:700;letter-spacing:.06em}
.board-landing-title{display:block;font-size:clamp(18px,3vw,25px);font-weight:850;line-height:1.2}
.board-landing-balance{display:block;margin-top:11px;padding:7px 10px;border-radius:7px;background:#324c3c;color:#d2f1d5;font-size:12px;font-weight:800}
.board-landing-balance.negative{background:#503b30;color:#f3d9bd}
.board-landing-message{display:block;margin-top:7px;color:#e7dfcd;font-size:11px;line-height:1.3}
.board-landing-scene--observer .board-landing-body{padding:10px 14px 12px}
.board-landing-scene--observer .board-landing-title{font-size:18px}
@keyframes board-card-in{0%{opacity:0;transform:translateY(35px) scale(.9)}15%{opacity:1;transform:translateY(-7px) scale(1.02)}25%,88%{opacity:1;transform:translateY(0) scale(1)}100%{opacity:0;transform:translateY(-13px) scale(.98)}}
.board-scene--still.board-landing-scene{animation:none}
@media(max-width:740px){.board-scene-die{padding:13px;gap:4px}.board-landing-photo{height:105px}.board-landing-body{padding:12px 15px}.board-landing-message{font-size:10px}}
@media(prefers-reduced-motion:reduce){.board-scene *{animation:none!important;transition:none!important}}
