/* The cards occupy a fixed shelf, so drafting never shifts the race or names. */
#app .game.field-game.expedition-game {
  --dock-height: clamp(230px, 31dvh, 325px);
  display: grid !important;
  grid-template: 54px minmax(0,1fr) var(--dock-height) / minmax(0,1fr) !important;
  gap: 8px !important;
  padding: 0 14px 12px !important;
  overflow: visible !important;
}
#app .expedition-game .fg-crew { min-width:0; gap:10px; }
#app .game.field-game.expedition-game .crew-ribbon {
  grid-template-columns: repeat(var(--crew-count), minmax(0,1fr)) !important;
  grid-template-rows: 52px !important;
  height:52px !important;
}
#app .game.field-game.expedition-game .ribbon-player { padding:4px 10px !important; }
#app .expedition-game .ribbon-player>span:last-of-type {min-width:0; flex:1;}
#app .expedition-game .ribbon-player b {white-space:nowrap !important; overflow:hidden; text-overflow:ellipsis;}
#app .game.field-game.expedition-game .side-tools {position:static !important; flex:0 0 auto; margin:0;}
#app .game.field-game.expedition-game .side-tools button {height:44px !important; width:44px !important; min-height:44px !important; min-width:44px !important;}
#app .game.field-game.expedition-game .side-tools .fg-tool-menu button {display:block !important; width:100% !important; height:auto !important; min-height:44px !important; padding:8px 12px !important; font:600 14px/1.3 system-ui !important; text-align:left; white-space:normal !important; overflow:visible !important;}
.expedition-stage {display:grid; grid-template-rows:minmax(0,1fr) 45px; gap:5px; min-height:0; min-width:0;}
#app .expedition-game .cinematic-stage {grid-area:auto !important; height:100% !important; overflow:visible !important; min-height:0 !important;}
#app .expedition-game .cinematic-stage>.section-head {height:25px !important; min-height:25px !important; margin:0 !important;}
#app .expedition-game .cinematic-stage .track {container-type:size; padding-top:4px !important;}
#app .expedition-game .cinematic-stage .runner {width:clamp(45px,14cqh,90px) !important; height:clamp(28px,9cqh,60px) !important;}
#app .expedition-game .cinematic-stage .lane-name {rotate:0deg; color:#173c32; text-shadow:none; border:2px solid #f7e3b3;}
body[data-scene="3"] #app .expedition-game .cinematic-stage .lane-name strong,body[data-scene="3"] #app .expedition-game .cinematic-stage .lane-name small {color:#fff4d4 !important; text-shadow:none !important;}
.expedition-recap {display:flex; align-items:center; gap:16px; background:#1b4135; color:#fff0d0; border-radius:9px; padding:4px 12px; min-width:0;}
.expedition-recap>span {font-size:12px; min-width:0; flex:1; overflow-wrap:anywhere;}
#app .expedition-game .fg-inspector {background:none; color:#fff0d0; padding:0; gap:10px; height:36px; flex:0 1 470px;}
#app .expedition-game .fg-inspector>img {width:40px; flex-basis:40px; height:36px;}
#app .expedition-game .fg-inspector b {font:700 13px system-ui; display:none;}
#app .expedition-game .fg-inspector span {font-size:11px; margin:0;}
#app .expedition-game .fg-inspector small {display:none;}
#app .expedition-game .fg-inspector button {min-height:36px; background:#f0e2c4; color:#173c32; padding:4px 9px; white-space:nowrap;}
.card-dock {min-width:0; min-height:0; display:grid; grid-template:62px minmax(0,1fr) / minmax(0,1fr); gap:8px; padding:5px 8px; background:transparent; border:0; border-radius:0; color:#173c32;}
.dock-heading {display:grid; grid-template-columns:minmax(0,1fr) minmax(250px,35%); grid-area:1 / 1; gap:12px; min-height:0;}
#app .game.field-game.expedition-game .dock-heading>.turn-banner {grid-area:1 / 1 !important;}
#app .game.field-game.expedition-game .dock-heading>.pocket-collection {grid-area:1 / 2 !important; margin:0 !important; height:62px !important;}
#app .game.field-game.expedition-game .card-dock>.market,#app .expedition-game .dock-results {grid-area:2 / 1 !important;}
#app .game.field-game.expedition-game .turn-copy>* {color:#173c32 !important; text-shadow:none !important;}
#app .game.field-game.expedition-game .market-guidance,#app .game.field-game.expedition-game .market .section-head>small {color:#173c32 !important;}
#app .game.field-game.expedition-game .pocket-collection h2,#app .game.field-game.expedition-game .pocket-collection b {color:#173c32 !important;}
#app .game.field-game.expedition-game .turn-banner {height:62px !important; min-height:62px !important; max-height:62px !important; padding:7px 12px !important; background:#e7d9b9 !important; color:#173c32 !important; border:2px solid #7b7858 !important; box-shadow:none !important; overflow:visible !important;}
#app .game.field-game.expedition-game .turn-banner.your-turn {border-color:#816018 !important; background:#f4d47f !important;}
#app .game.field-game.expedition-game .turn-label {display:block !important; color:#173c32 !important; font-size:10px !important;}
.action-wayfinder {color:#173c32; width:48px; height:44px; flex:0 0 48px; margin-left:auto; pointer-events:none; animation:paw-point 1.5s ease-in-out infinite;}
.action-wayfinder svg {width:100%; height:100%;}
.action-wayfinder[data-action=reveal] {rotate:-90deg;}
@keyframes paw-point {50% {translate:0 4px;}}
body.attention-needed #app .game.field-game.expedition-game .turn-banner.your-turn {outline:3px solid #173c32 !important; outline-offset:2px !important;}
#app .expedition-game .turn-copy>* {color:#173c32 !important;}
#app .expedition-game .turn-copy strong {font-size:19px !important;}
#app .expedition-game .turn-copy small {font-size:11px !important;}
#app .expedition-game .turn-avatar {display:block !important; width:34px; flex:0 0 34px; height:46px;}
#app .expedition-game .up-next {display:block !important; color:#173c32; white-space:nowrap; margin-left:auto;}
#app .expedition-game .up-next small {font-size:10px;}
#app .expedition-game .up-next b {font-size:12px;}
#app .game.field-game.expedition-game .pocket-collection {padding:3px 0 !important; background:none !important;}
#app .expedition-game .pocket-collection h2 {font:700 12px system-ui !important;}
#app .expedition-game .pocket-collection>small {display:none !important;}
#app .expedition-game .pocket-collection h2 button {min-width:44px !important; height:24px !important;}
#app .expedition-game .pocket-collection>div button {min-height:32px !important;}
#app .game.field-game.expedition-game .market {height:100% !important; min-height:0 !important; margin:0 !important; padding:0 !important; box-sizing:border-box; grid-template-rows:42px minmax(0,1fr) !important; gap:4px !important;}
#app .game.field-game.expedition-game .market>.section-head {height:42px !important; min-height:0 !important; padding:0 !important; margin:0 !important;}
#app .game.field-game.expedition-game .market-tray {height:100% !important; min-height:0 !important; padding:0 !important; margin:0 !important;}
#app .expedition-game .market-guidance,#app .expedition-game .market .section-head>small {color:#173c32 !important; font-size:12px !important;}
#app .game.field-game.expedition-game .market-cards {
  display:grid !important;
  grid-template-columns:repeat(var(--dock-columns,var(--card-count)),minmax(0,min(220px,var(--card-art-width,220px)))) !important;
  justify-content:center !important;
  align-items:center !important;
  grid-template-rows:repeat(var(--dock-rows,1),minmax(0,1fr)) !important;
  gap:10px !important;
  padding:0 !important;
  overflow:visible !important;
}
#app .game.field-game.expedition-game .race-card {justify-self:center !important; width:100% !important; max-width:100% !important; min-width:0 !important; height:auto !important; min-height:0 !important; max-height:100% !important; aspect-ratio:7/5 !important; display:block !important; padding:0 !important; background:transparent !important; border:0 !important; border-radius:8px !important; box-shadow:none !important; overflow:visible !important;}
#app .game.field-game.expedition-game .race-card img {display:block; width:100% !important; max-width:100% !important; height:100% !important; min-height:0 !important; object-fit:contain !important; filter:drop-shadow(0 3px 2px #173c3230);}
#app .game.field-game.expedition-game .race-card .card-name {display:none !important;}
#app .game.field-game.expedition-game .race-card {position:relative !important;}
.race-card .action-wayfinder {position:absolute; top:-50px; left:50%; margin:0; padding:0 !important; background:transparent !important; border:0 !important; box-shadow:none !important; translate:-50% 0; width:54px; height:48px; z-index:5; color:#fff4d4 !important; filter:drop-shadow(0 2px 1px #173c32);}
#app .game.field-game.expedition-game .card-dock .pocket-collection {background:#efe2c8 !important; border-radius:6px; padding:3px 8px !important;}
#app .game.field-game.expedition-game .market .section-head>small {color:#fff4d4 !important; text-shadow:0 1px 2px #173c32;}
#app .expedition-game .dock-results {background:#efe2c8; border-radius:8px; padding:8px;}
#app .game.field-game.expedition-game .market-guidance {visibility:hidden;}
#app .game.field-game.expedition-game .pocket-collection>div button {background:transparent !important; border:0 !important; box-shadow:none !important; padding:2px !important;}
body[data-playing=no] .plush-picker button {background:transparent !important; border:0 !important; box-shadow:none !important;}
body[data-playing=no] .plush-picker button[aria-pressed=true] {outline:3px solid #173c32; outline-offset:2px;}
body[data-playing=no] .plush-picker button small {display:none;}
body[data-playing=no] .lobby-card .crew-member {background:transparent !important; box-shadow:none !important; border:0 !important; border-bottom:1px solid #173c3230 !important; border-radius:0 !important;}
#app .game.field-game.expedition-game .fg-inspector>div {display:grid; grid-template-columns:auto minmax(0,1fr); gap:2px 8px;}
#app .game.field-game.expedition-game .fg-inspector b {display:block; font:700 12px system-ui;}
#app .game.field-game.expedition-game .fg-inspector small {display:block; grid-column:1/-1; font-size:10px; margin:0;}
#app .expedition-game .race-card .card-name small {display:none;}
#app .expedition-game .race-card.pickable:not(:disabled) {outline:2px solid #ffe8a1 !important; outline-offset:3px;}
#app .expedition-game .race-card.pickable:not(:disabled):hover,#app .expedition-game .race-card.pickable:not(:disabled):focus-visible {background:transparent !important; outline:3px solid #173c32 !important; outline-offset:3px; translate:none !important; transform:none !important;}
#app .expedition-game .race-card.chosen {opacity:.6;}
#app .expedition-game .empty-table {color:#fff4d4 !important; text-shadow:0 2px 3px #173c32; border:0 !important; background:transparent !important; grid-column:1/-1;}
#app .expedition-game .market .section-head h2 {color:#fff4d4 !important; text-shadow:0 2px 3px #173c32;}
#app .expedition-game .empty-table span {display:none;}
#app .expedition-game .life-character {transform-origin:50% 75%; animation:dino-breathe var(--breath-time,4s) ease-in-out var(--breath-offset,0s) infinite !important; rotate:var(--look,0deg); transition:rotate .18s;}
#app .expedition-game .runner.hopping .life-character {animation:cinematic-run .65s ease-in-out !important;}
#app .expedition-game .runner.pet .life-character {animation:cinematic-pet .5s ease-in-out !important;}
@keyframes dino-breathe {50% {scale:1.02 1.025;}}
#app .game.field-game.expedition-game .runner .racer-character.life-atlas {
  width:130% !important; height:auto !important; aspect-ratio:1/1 !important;
  left:-15% !important; bottom:-15% !important; background:none !important;
  clip-path:none !important; overflow:visible; transform-origin:50% 85%;
  animation:plush-ready var(--gait-time,.5s) ease-in-out var(--gait-offset,0s) infinite !important;
}
.life-step {position:absolute; inset:0; background-image:var(--pose-art); background-size:300% 200%; background-repeat:no-repeat; background-position:50% 0%; pointer-events:none; opacity:1;}
@keyframes plush-ready {0%,100%{rotate:-1.1deg}50%{rotate:1.1deg}}
#app .expedition-game .runner.hopping .life-atlas {--gait-time:.28s;}
body[data-calm=yes] #app .expedition-game .life-step-a {opacity:1; animation:none;}
body[data-dino-paused=yes] .life-atlas,body[data-dino-paused=yes] .life-step {animation-play-state:paused !important;}
@media(prefers-reduced-motion:reduce) {.life-step-a {opacity:1 !important; animation:none !important;}}
body[data-calm=yes] #app .game.field-game.expedition-game .runner .racer-character.life-atlas {animation:none !important; rotate:0deg !important; scale:1 !important;}
body[data-dino-paused=yes] #app .game.field-game.expedition-game .runner .racer-character.life-atlas {animation-play-state:paused !important;}
@media(prefers-reduced-motion:reduce) {#app .game.field-game.expedition-game .runner .racer-character.life-atlas {animation:none !important; rotate:0deg !important; scale:1 !important;}}
.dock-results {display:flex; align-items:start; gap:14px; min-height:0;}
#app .expedition-game .dock-results .results {flex:1; display:flex; align-items:center; gap:14px; height:100%; overflow:auto; background:transparent !important;}
#app .expedition-game .dock-results .results .podium {width:180px; flex:0 0 180px;}
#app .expedition-game .dock-results .results .score-summary {flex:1; min-width:0;}
#app .expedition-game .dock-results .results h2,#app .expedition-game .dock-results .results>.eyebrow {display:none;}
[data-score-review] {min-height:44px; background:#234b3b; color:#fff0d0; border:2px solid #173c32; border-radius:7px; padding:8px 12px;}
#help.expedition-review {width:min(1100px,calc(100vw - 24px)) !important; max-width:none !important; max-height:90dvh !important; padding:20px !important; background:#f4e8ce !important; color:#173c32 !important; border:2px solid #173c32; border-radius:16px;}
.review-heading {display:flex; align-items:center; justify-content:space-between; gap:12px;}
.review-heading h2 {margin:4px 0 16px;}
.review-heading button {min-width:44px; min-height:44px; background:#173c32; color:#fff0d0;}
.review-players {display:grid; grid-template-columns:repeat(auto-fit,minmax(290px,1fr)); gap:12px;}
.review-players section {padding:12px; border:1px solid #8c7957; border-radius:8px; background:#fff8e8;}
.review-players h3 {display:flex; justify-content:space-between; gap:8px; margin:0 0 10px; font-size:16px;}
.review-species {display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px;}
.review-species>div {display:grid; gap:4px; text-align:center; font-size:12px;}
.review-species img {width:100%; height:65px; object-fit:contain;}
.review-species b {font-size:20px;}
.review-species .tally-active {background:#f7df9e; border-radius:6px; outline:2px solid #8a6116;}
.review-meter {height:7px; background:#d3c3a2; margin-top:12px; border-radius:3px; overflow:hidden;}
.review-meter i {display:block; height:100%; width:0; background:#315e48;}
.review-controls {display:flex; gap:8px; margin-top:16px;}
.review-controls button {min-height:44px; padding:8px 14px; background:#234b3b; color:#fff0d0; border:2px solid #173c32; border-radius:7px;}
.review-players p {font-size:12px; line-height:1.5;}
.review-players p strong {display:block;}
.dino-greeting {position:absolute; bottom:115%; left:50%; translate:-50% 0; white-space:nowrap; background:#fff4d4; color:#173c32; border:2px solid #173c32; border-radius:10px 10px 10px 2px; padding:5px 8px; font:bold 12px system-ui; z-index:20; pointer-events:none;}
body[data-playing=no] #app .landing .hero-copy,body[data-playing=no] #app .landing h1,body[data-playing=no] #app .landing .lead,body[data-playing=no] #app .landing label {color:#173c32 !important;}
@media(max-width:1000px) {
  #app .game.field-game.expedition-game {--dock-height:245px; padding:0 8px 8px !important; gap:6px !important;}
  #app .expedition-game .fg-online {display:none;}
  #app .expedition-game .side-tools button:nth-child(2) {display:none;}
  #app .expedition-game .turn-avatar {display:none !important;}
  #app .expedition-game .up-next {display:none !important;}
  .expedition-recap {gap:8px; padding:4px 8px;}
  #app .expedition-game .fg-inspector {flex-basis:290px;}
  #app .expedition-game .fg-inspector span {display:none;}
  #app .expedition-game .dock-results .results .podium {display:none !important;}
}
@media(max-width:600px) {
  body[data-playing=yes] #app {grid-template-rows:58px minmax(0,1fr) !important;}
  #app>header {height:58px !important; padding:4px 6px !important;}
  #app>header .game-logo {width:70px !important;}
  #app>header nav {gap:3px !important;}
  #app>header nav .icon {width:44px !important; height:44px !important; min-width:44px !important; min-height:44px !important;}
  #app>header nav>[data-do=help],#app>header nav>[data-do=sfx],#app>header .direct-flags {display:none !important;}
  #app .game.field-game.expedition-game {--dock-height:278px; grid-template-rows:56px minmax(0,1fr) var(--dock-height) !important; padding:0 6px 6px !important;}
  #app .game.field-game.expedition-game .crew-ribbon {height:52px !important; grid-template-columns:repeat(var(--crew-count),minmax(0,1fr)) !important; grid-template-rows:52px !important; gap:3px !important;}
  #app .game.field-game.expedition-game .ribbon-player {padding:3px !important; gap:3px !important;}
  #app .game.field-game.expedition-game .ribbon-avatar {display:none !important;}
  #app .game.field-game.expedition-game .ribbon-player b {font-size:10px !important;}
  #app .expedition-game .fg-crew {gap:4px;}
  #app .expedition-game .side-tools {gap:3px;}
  #app .expedition-game .side-tools button {display:none !important;}
  #app .expedition-game .side-tools button:last-child {display:block !important;}
  #app .expedition-game .side-tools .fg-tool-menu button {display:block !important; width:100% !important; min-height:44px !important; height:auto !important; text-align:left;}
  .expedition-stage {grid-template-rows:minmax(0,1fr) 40px; gap:3px;}
  #app .expedition-game .cinematic-stage>.section-head h2 {font-size:13px !important;}
  #app .expedition-game .cinematic-stage .lane-name {font-size:11px !important; border-width:1px;}
  #app .expedition-game .cinematic-stage .runner {width:clamp(35px,16cqh,58px) !important; height:clamp(24px,9cqh,38px) !important;}
  .expedition-recap>span {font-size:10px;}
  #app .expedition-game .fg-inspector {flex:0 0 70px; height:40px; overflow:visible;}
  #app .expedition-game .fg-inspector img,#app .game.field-game.expedition-game .fg-inspector>div {display:none;}
  #app .expedition-game .fg-inspector button {font-size:10px; min-height:40px; width:70px; padding:3px; white-space:normal;}
  .card-dock {padding:6px; gap:5px; grid-template-rows:66px minmax(0,1fr); border-radius:10px;}
  .dock-heading {grid-template-columns:1fr; gap:0;}
  #app .game.field-game.expedition-game .turn-banner {height:66px !important; min-height:66px !important; max-height:66px !important; padding:6px 9px !important;}
  #app .expedition-game .turn-copy strong {font-size:17px !important;}
  #app .game.field-game.expedition-game .pocket-collection {display:none !important;}
  #app .game.field-game.expedition-game .market-cards {gap:5px !important;}
  #app .game.field-game.expedition-game .race-card {padding:0 !important; border:0 !important;}
  #app .expedition-game .race-card .card-name {font-size:10px !important;}
  #app .expedition-game .dock-results .results {flex-direction:column; gap:5px; align-items:stretch;}
  .dock-results {gap:5px;}
  [data-score-review] {max-width:100px; font-size:12px; padding:6px;}
  .review-players {grid-template-columns:1fr;}
}
@media(max-height:580px) {
  body[data-playing=yes] {overflow:auto !important;}
  body[data-playing=yes] #app {height:auto !important; min-height:100dvh;}
  #app .game.field-game.expedition-game {height:auto !important; min-height:590px !important; grid-template-rows:54px 290px 230px !important;}
}
@media(max-width:600px) and (max-height:740px) {#app .game.field-game.expedition-game {--dock-height:250px;}}
@media(prefers-reduced-motion:reduce) {#app .expedition-game .life-character {animation:none !important; rotate:0deg !important; transition:none !important;}}
body[data-calm=yes] #app .expedition-game .life-character {animation:none !important; rotate:0deg !important; transition:none !important;}
body[data-calm=yes] .action-wayfinder {animation:none !important;}
@media(prefers-reduced-motion:reduce) {.action-wayfinder {animation:none !important;}}

/* Shared reading bands replace individual frames around every player and thumbnail. */
#app .game.field-game.expedition-game .fg-crew {background:#173c32; padding:0 8px; border-radius:0;}
body[data-playing=yes][data-scene] #app .game.field-game.expedition-game .ribbon-player {background:transparent !important; border:0 !important; border-radius:0 !important; box-shadow:none !important;}
body[data-playing=yes][data-scene] #app .game.field-game.expedition-game .ribbon-player.active {background:#ffffff0b !important; box-shadow:inset 0 -3px #ffdc77 !important;}
#app .game.field-game.expedition-game .dock-heading {grid-template-columns:minmax(0,1fr);}
#app .game.field-game.expedition-game .turn-banner {border:0 !important; border-radius:0 !important; border-left:5px solid #7b7858 !important;}
#app .game.field-game.expedition-game .turn-banner.your-turn {border-left-color:#ffbd35 !important;}
#app .game.field-game.expedition-game .expedition-recap {border-radius:0;}
#app .game.field-game.expedition-game .expedition-recap .pocket-collection {background:transparent !important; padding:0 8px !important; height:38px !important; flex:0 0 260px; border-right:1px solid #fff4d440 !important; border-radius:0 !important;}
#app .game.field-game.expedition-game .expedition-recap .pocket-collection h2 {display:none !important;}
#app .game.field-game.expedition-game .expedition-recap .pocket-collection b {color:#fff4d4 !important;}
#app .game.field-game.expedition-game .expedition-recap .pocket-collection>div {height:38px !important; width:100%;}
#app .game.field-game.expedition-game .expedition-recap .pocket-collection button {height:38px !important; min-height:38px !important;}
#app .game.field-game.expedition-game .fg-inspector {flex-basis:410px;}
#app .game.field-game.expedition-game .race-card::before,#app .game.field-game.expedition-game .race-card::after {display:none !important;}
#app .game.field-game.expedition-game .race-card.pickable:not(:disabled) {outline:none !important;}
#app .game.field-game.expedition-game .race-card.pickable:not(:disabled):hover,#app .game.field-game.expedition-game .race-card.pickable:not(:disabled):focus-visible {outline:3px solid #ffdc77 !important;}
body[data-playing=yes][data-scene] #app header nav>.icon,body[data-playing=yes][data-scene] #app header nav>.utility-chat,#app .expedition-game .side-tools summary {background:transparent !important; border:0 !important; box-shadow:none !important; color:#fff4d4 !important;}
#app .expedition-game .side-tools summary {font-size:25px;}
#app .expedition-game .side-tools summary:hover,#app header nav>.icon:hover {background:#ffffff12 !important;}
#app .expedition-game .cinematic-stage .lane-name {background:transparent !important; border:0 !important; box-shadow:none !important; border-radius:0 !important;}
#app .expedition-game .cinematic-stage .lane-name strong,#app .expedition-game .cinematic-stage .lane-name small {color:#fff4d4 !important; text-shadow:0 1px 3px #061b14,0 0 5px #061b14 !important;}
#app .expedition-game .cinematic-stage .lane-name b {background:transparent !important; color:#ffdc77 !important; text-shadow:0 1px 3px #061b14;}
.review-players section {background:transparent; border:0; border-bottom:1px solid #8c7957; border-radius:0;}
#app .game.field-game.expedition-game:is([data-phase=raceover],[data-phase=over]) .card-dock {grid-template-rows:minmax(0,1fr);}
#app .game.field-game.expedition-game:is([data-phase=raceover],[data-phase=over]) .dock-heading {display:none;}
#app .game.field-game.expedition-game:is([data-phase=raceover],[data-phase=over]) .dock-results {grid-area:1 / 1 !important; background:linear-gradient(0deg,#173c32f5 45%,#173c32c9 100%); border-radius:0; padding:8px 12px; color:#fff4d4;}
.round-scores {width:100%; min-height:0; height:100%; display:grid; grid-template-rows:44px minmax(0,1fr); gap:4px;}
.payout-heading {display:flex; align-items:center; justify-content:space-between; gap:12px;}
.payout-heading h2 {font:700 16px system-ui; margin:0; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.payout-heading>div:first-child {min-width:0; flex:1;}
.payout-controls {display:flex; gap:6px; align-items:center;}
.payout-heading button {min-width:44px; min-height:44px; padding:4px 10px; font:600 21px system-ui; background:transparent; border:0; border-radius:50%; color:#fff4d4;}
.payout-heading button:hover,.payout-heading button:focus-visible {background:#ffffff18;}
.payout-heading .payout-next {background:#ffdc77; color:#173c32; border-radius:22px; font-size:13px; padding:6px 18px;}
.payout-caption {font-size:12px;}
.payout-caption[hidden] {display:none;}
.payout-players {display:grid; grid-template-columns:repeat(var(--payout-count),minmax(0,1fr)); gap:8px; min-width:0; align-items:center;}
.payout-player {display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px; min-width:0; border:0; padding:0;}
.payout-avatar {display:block; position:relative; width:clamp(50px,6.5vw,90px); aspect-ratio:1; flex:0 0 auto;}
.payout-avatar>i {display:block; position:absolute; inset:0; background-image:var(--pose-art); background-size:300% 200%; background-position:50% 0%; background-repeat:no-repeat;}
.payout-avatar {margin-top:24px;}
.payout-avatar>i {filter:hue-rotate(var(--player-hue,0deg));scale:var(--payout-growth,.58);transform-origin:center bottom;transition:scale .16s linear;}
body[data-calm=yes] .payout-avatar>i {transition:none;}
@media(prefers-reduced-motion:reduce) {.payout-avatar>i {transition:none;}}
.payout-crown {position:absolute; left:50%; right:auto; top:-26px; translate:-50% 0; font-size:24px; width:28px; height:24px; line-height:1; opacity:0;}
.round-champion .payout-crown {opacity:1;}
.payout-player b {font-size:13px; width:100%; text-align:center; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.payout-player output {font:800 29px system-ui; line-height:1.15; color:#ffdc77;}
.payout-player small {font-size:11px;}
.round-champion output {color:#fff4a0;}
.flying-points {position:fixed; top:0; left:0; z-index:45; pointer-events:none; min-width:32px; min-height:32px; border-radius:50%; background:#ffdc77; border:2px solid #a17525; color:#173c32; font:bold 14px system-ui; display:grid; place-items:center; box-shadow:0 2px 4px #061b1450;}
.finish-award {position:absolute; bottom:10%; right:70%; width:70px; text-align:center; pointer-events:none; color:#fff4d4; text-shadow:0 1px 3px #173c32; z-index:30;}
#app .game.field-game.expedition-game .cinematic-stage .runner>.finish-award {display:block !important; right:75% !important; left:auto !important; bottom:0 !important; width:80px !important; background:transparent !important; border:0 !important; border-radius:0 !important; padding:0 !important; box-shadow:none !important; z-index:1 !important;}
#app .game.field-game.expedition-game .cinematic-stage .runner>.finish-award.award-ahead {left:100% !important; right:auto !important;}
.finish-award .podium-rank {display:block; font:900 52px/1 system-ui; color:#fff4d4; -webkit-text-stroke:2px #173c32; text-shadow:0 2px 3px #061b14;}
.finish-award .podium-medal {position:absolute; left:0; top:0; font-size:28px; line-height:1;}
.finish-award small {display:block; font:bold 12px system-ui; white-space:nowrap; color:#fff4d4; text-shadow:0 1px 3px #061b14,0 0 5px #061b14;}
.finish-award small {background:#173c32ed; padding:1px 3px; border-radius:3px;}
#app .expedition-game .runner.payout-active .life-atlas {filter:drop-shadow(0 0 7px #ffdc77);}
#app .score-cinematic .score-race-track {container-type:size;}
#app .score-cinematic .score-runner {width:min(82px,calc(70cqh / var(--finale-count))) !important; height:auto !important; aspect-ratio:1 !important;}
#app .score-cinematic .score-runner .avatar-model {width:100% !important; height:100% !important; background-image:var(--pose-art) !important; background-size:300% 200% !important; background-position:50% 0% !important;}
#app .score-cinematic .score-runner .avatar-model {filter:hue-rotate(var(--player-hue,0deg));}
.avatar-model[data-player-hue="160"] {filter:hue-rotate(160deg) !important;}
.avatar-model[data-player-hue="270"] {filter:hue-rotate(270deg) !important;}
.avatar-model[data-player-hue="55"] {filter:hue-rotate(55deg) !important;}
.avatar-model[data-player-hue="315"] {filter:hue-rotate(315deg) !important;}
.avatar-model[data-player-hue="105"] {filter:hue-rotate(105deg) !important;}
#app .game.field-game.expedition-game .turn-banner.reveal-guidance {background:transparent !important; border:0 !important; padding:0 !important; gap:10px;}
#app .game.field-game.expedition-game .reveal-guidance .turn-copy {background:#173c32f2; border-left:4px solid #ffdc77; padding:6px 12px; flex:0 1 360px !important; width:auto !important; max-width:360px !important;}
#app .game.field-game.expedition-game .turn-banner.reveal-guidance {justify-content:flex-start !important;}
#app .game.field-game.expedition-game .reveal-guidance .up-next {display:flex !important; flex-direction:column; margin-left:auto; color:#fff4d4 !important; background:#173c32df; padding:5px 9px;}
#app .game.field-game.expedition-game .reveal-guidance .up-next small {color:#fff4d4 !important; opacity:1;}
#app .game.field-game.expedition-game .track-caption {font-size:11px !important; line-height:1.3 !important; min-height:18px;}
#app .game.field-game.expedition-game .reveal-guidance .turn-copy>* {color:#fff4d4 !important;}
.reveal-trigger {display:flex; align-items:center; gap:5px; flex:0 0 auto;}
.reveal-trigger .action-wayfinder {margin:0; flex-basis:42px; width:42px; height:42px;}
.reveal-egg {position:relative; display:flex; flex-direction:column; justify-content:center; align-items:center; width:94px; height:62px; min-height:62px; padding:4px 8px; border:2px solid #fff1b1; border-radius:48% 48% 35% 35%; background:linear-gradient(145deg,#fff3b6,#ffcf69); color:#173c32; box-shadow:0 3px 0 #996a20; cursor:pointer; transition:scale .15s,box-shadow .15s;}
.reveal-egg svg {width:28px;height:28px;fill:#173c32;rotate:-12deg;}
.reveal-egg b {font:700 11px/1.1 system-ui;}
.reveal-egg:hover:not(:disabled) {scale:1.04;}
.reveal-egg:active:not(:disabled) {scale:.97;box-shadow:0 1px 0 #996a20;}
.reveal-egg:disabled {opacity:.45;cursor:default;}
.reveal-egg:focus-visible {outline:3px solid #fff4d4;outline-offset:4px;}
#app .game.field-game.expedition-game .reveal-egg:not(:disabled) {animation:reveal-breath 1.9s ease-in-out infinite;transform-origin:center;}
@keyframes reveal-breath {0%,100%{scale:1;filter:drop-shadow(0 0 3px #ffdc7760)}45%{scale:1.045;filter:drop-shadow(0 0 11px #ffdc77c0)}60%{scale:1.015}75%{scale:1.025}}
body[data-calm=yes] #app .game.field-game.expedition-game .reveal-egg {animation:none!important;}
@media(prefers-reduced-motion:reduce) {#app .game.field-game.expedition-game .reveal-egg {animation:none!important;}}
#app .game.field-game.expedition-game[data-phase=draft] .dock-heading {display:none;}
#app .game.field-game.expedition-game[data-phase=draft] .card-dock {grid-template-rows:minmax(0,1fr);}
#app .game.field-game.expedition-game[data-phase=draft] .card-dock>.market {grid-area:1 / 1 !important;grid-template-rows:70px minmax(0,1fr) !important;}
#app .game.field-game.expedition-game[data-phase=draft] .market>.section-head {height:70px !important;}
#app .game.field-game.expedition-game[data-phase=draft] .market:not(.your-draft) .market-guidance {visibility:visible;display:block !important;background:#173c32e6;padding:5px 9px;color:#fff4d4 !important;}
#app .game.field-game.expedition-game .market-cards {position:relative;}
#app .game.field-game.expedition-game .card-wayfinder {position:absolute;inset:0;width:100%;height:100%;min-width:0;min-height:0;padding:0;background:transparent !important;border:0 !important;border-radius:0 !important;box-shadow:none !important;pointer-events:none;overflow:visible;z-index:6;}
.card-wayfinder .choose-guide-copy {position:absolute;top:-66px;left:50%;translate:-50% 0;white-space:nowrap;background:#173c32f2;color:#fff4d4;padding:5px 10px;border-radius:0;font:700 14px system-ui;pointer-events:auto;cursor:pointer;}
.card-wayfinder svg {position:absolute;left:var(--guide-x);top:var(--guide-y);translate:-50% 0;width:54px;height:48px;pointer-events:auto;cursor:pointer;transition:left .5s ease,top .5s ease;filter:drop-shadow(0 1px 1px #061b14);}
.card-wayfinder:focus-visible {outline:0;}
.card-wayfinder:focus-visible .choose-guide-copy {outline:3px solid #ffdc77;outline-offset:2px;}
@media(max-width:900px) {.card-wayfinder svg{width:32px;height:30px;}.card-wayfinder .choose-guide-copy {font-size:12px;}}
body[data-calm=yes] .card-wayfinder svg {transition:none;}
@media(prefers-reduced-motion:reduce) {.card-wayfinder svg {transition:none;}}
#app .game.field-game.expedition-game .reveal-trigger .reveal-egg {width:94px !important; height:62px !important; min-height:62px !important; background:linear-gradient(145deg,#fff3b6,#ffcf69) !important; color:#173c32 !important; border:2px solid #fff1b1 !important; border-radius:48% 48% 35% 35% !important; box-shadow:0 3px 0 #996a20 !important; outline:none !important;}
#app .game.field-game.expedition-game .reveal-trigger .reveal-egg::before,#app .game.field-game.expedition-game .reveal-trigger .reveal-egg::after {display:none !important;}
#app .game.field-game.expedition-game .reveal-trigger .reveal-egg b {color:#173c32 !important;}
#app .game.field-game.expedition-game .reveal-trigger .reveal-egg:focus-visible {outline:3px solid #fff4d4 !important;outline-offset:3px;}
body.attention-needed #app .game.field-game.expedition-game .turn-banner.reveal-guidance {outline:none !important;}
body.attention-needed #app .game.field-game.expedition-game .reveal-trigger .reveal-egg {filter:drop-shadow(0 0 7px #ffdc77);}
#app .game.field-game.expedition-game .cinematic-stage .road-bed {right:32px !important;}
#app .game.field-game.expedition-game .cinematic-stage {--badge-width:130px !important;}
#app .game.field-game.expedition-game .cinematic-stage>.section-head {background:#173c32f0 !important; color:#fff4d4 !important; padding:2px 8px !important;}
#app .game.field-game.expedition-game .cinematic-stage>.section-head h2 {color:#fff4d4 !important; text-shadow:none !important; font-size:14px !important;}
#app .game.field-game.expedition-game .track::before {content:''; position:absolute; inset:0 auto 54px 0; width:var(--badge-width); background:#173c32f0; pointer-events:none;}
#app .game.field-game.expedition-game .lane-name {width:124px !important; min-width:124px !important; padding:4px 6px !important;}
#app .game.field-game.expedition-game .lane-name strong {font-size:14px !important;}
#app .game.field-game.expedition-game .lane-name small {font-size:10px !important;}
#app .game.field-game.expedition-game .lane-name {grid-template-columns:1fr !important;}
#app .game.field-game.expedition-game .lane-name b {display:none !important;}
#app .game.field-game.expedition-game .lane-name strong,#app .game.field-game.expedition-game .lane-name small {grid-column:1 !important;}
#app .game.field-game.expedition-game .track-caption {background:#173c32f0; color:#fff4d4; padding:2px 8px;}
#app .game.field-game.expedition-game .race-space {color:#173c32 !important; text-shadow:none !important;}
body[data-scene="3"] #app .game.field-game.expedition-game .race-space {color:#fff4d4 !important; text-shadow:0 1px 2px #173c32 !important;}
#app .score-cinematic .score-race-lane>span {top:5px !important; max-width:150px; background:#173c32bb; padding:2px 4px;}
#app .score-cinematic .score-runner .racing-score {bottom:-10px;}
@media(max-width:1000px) {#app .game.field-game.expedition-game .expedition-recap .pocket-collection {display:none !important;}.payout-players {gap:8px;}}
@media(max-width:600px) {
  #app .game.field-game.expedition-game:is([data-phase=raceover],[data-phase=over]) {--dock-height:310px;}
  #app .game.field-game.expedition-game .expedition-recap .fg-inspector {flex:0 0 70px !important; width:70px !important; min-width:0 !important;}
  .payout-heading {align-items:flex-start; gap:5px;}
  .payout-heading {display:grid; grid-template-columns:1fr; grid-template-rows:24px 44px; gap:2px;}
  .payout-heading .payout-controls {justify-content:flex-end;}
  .payout-heading h2 {font-size:12px; flex:1;}
  .payout-heading button {font-size:20px; padding:2px 3px; min-height:44px; min-width:44px;}
  .payout-heading .payout-next {font-size:11px;padding:4px 9px;}
  .round-scores {grid-template-rows:72px minmax(0,1fr);}
  .payout-players {grid-template-columns:repeat(3,minmax(0,1fr));gap:3px 7px;}
  .payout-player {gap:0;padding:0;}
  .payout-avatar {width:38px;margin-top:20px;}
  .payout-crown {font-size:18px;top:-20px;width:22px;height:18px;}
  .payout-player b {font-size:10px;}
  .payout-player small {font-size:9px;}
  .payout-player output {font-size:20px;}
  #app .game.field-game.expedition-game .cinematic-stage .runner>.finish-award {width:45px !important;}
  .finish-award .podium-rank {font-size:28px;-webkit-text-stroke:1px #173c32;}
  .finish-award .podium-medal {font-size:18px;left:-3px;}
  .finish-award small {font-size:9px;}
}
@media(max-width:600px) {
  #app .game.field-game.expedition-game:is([data-phase=raceover],[data-phase=over]) {--dock-height:354px;}
  #app .game.field-game.expedition-game .cinematic-stage {--badge-width:78px !important;}
  #app .game.field-game.expedition-game .lane-name {width:74px !important; min-width:74px !important; padding:2px 3px !important;}
  #app .game.field-game.expedition-game .lane-name strong {font-size:10px !important;}
  #app .game.field-game.expedition-game .lane-name small {font-size:8px !important;}
  #app .game.field-game.expedition-game .reveal-guidance .turn-copy {padding:4px 7px;min-width:0;flex:1 !important;}
  #app .game.field-game.expedition-game .reveal-guidance .up-next {display:none !important;}
  #app .game.field-game.expedition-game .track-caption {font-size:9px !important;}
  #app .game.field-game.expedition-game .reveal-guidance .turn-copy strong {font-size:15px !important;}
  .reveal-trigger .action-wayfinder {width:34px;height:34px;flex-basis:34px;}
  #app .game.field-game.expedition-game .reveal-trigger .reveal-egg {width:78px !important;}
}
@media(max-width:600px) and (max-height:740px) {
  body:has(.expedition-game:is([data-phase=raceover],[data-phase=over])) {overflow:auto !important;}
  body:has(.expedition-game:is([data-phase=raceover],[data-phase=over])) #app {height:auto !important; min-height:100dvh; overflow:visible !important;}
  #app .game.field-game.expedition-game:is([data-phase=raceover],[data-phase=over]) {height:auto !important; min-height:694px !important; grid-template-rows:56px 284px 354px !important;}
}
#app .victory-screen .victory-card {width:min(960px,calc(100vw - 24px)) !important; max-height:85dvh !important; border-radius:14px; padding:18px !important;}
#app .victory-card .victory-standings {grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:12px !important;}
#app .victory-card .victory-standings>div {background:transparent; border:0; border-bottom:1px solid #fff1c830; border-radius:0; box-shadow:none; padding:8px 4px; gap:8px;}
#app .victory-card .victory-standings>div.champion {background:#45604a; border-bottom:2px solid #f3d16d; border-radius:6px;}
@media(max-width:600px) {
  #app .victory-card .victory-standings {grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:8px !important;}
  #app .victory-card .victory-standings>div {grid-template-columns:24px minmax(0,1fr) 32px; gap:4px; min-height:62px;}
  #app .victory-card .victory-standings>div>span {display:none;}
  #app .victory-card .victory-standings b {font-size:11px;}
  #app .victory-card .victory-standings strong {font-size:22px;}
  #app .victory-card .victory-standings .avatar-model {width:24px !important;}
  #app .victory-card .victory-rounds {grid-column:2; margin-top:0;}
}
