/* Warm paper, forest green and a little championship gold. */
.explore-animal,.exp-travel-button,.exp-cup-button { position:absolute; border:2px solid #e4d9b8; color:#284b3f; background:#fff9e9; box-shadow:0 4px 0 #839979,0 8px 22px #183e332c; cursor:pointer; font-weight:800; }
.explore-animal { bottom:30px; left:50%; transform:translateX(-50%); border-radius:24px; padding:12px 20px; display:grid; grid-template-columns:28px auto; column-gap:10px; text-align:left; white-space:nowrap; animation:explore-arrive .24s ease-out; }
.explore-animal .explore-paw { grid-row:span 2; align-self:center; font-size:25px; }
.explore-animal small { margin-top:3px; color:#6d846c; font-weight:normal; }
.exp-travel-button,.exp-cup-button { top:84px; border-radius:16px; padding:10px 15px; font-size:15px; }
.top-menu-button.exp-travel-button { right:16px; top:78px; animation:none; border-image:none; text-shadow:none; }
.focus-action-button { top:146px; }
.exp-cup-button { left:16px; top:140px; }
.exp-cup-button.has-cup { background:#fff0bd; border-color:#ebc963; }
.exp-has-modal > .explore-animal,.exp-has-modal > .exp-travel-button,.exp-has-modal > .exp-cup-button,.exp-has-modal > .focus-action-button,.exp-has-modal > .minigame-map-button { visibility:hidden; }
.exp-has-modal > .audio-controls,.exp-has-modal > .top-menu-button { visibility:hidden; }
.exp-overlay { position:absolute; inset:0; z-index:180; display:flex; align-items:center; justify-content:center; color:#284b3f; background:#173f34bd; padding:84px 0 20px; overflow:hidden; }
.exp-overlay button { cursor:pointer; font-family:inherit; }
.exp-overlay button:disabled { cursor:default; }
.exp-overlay h2,.exp-overlay p { margin:0; }
.exp-overlay .exp-heading { position:relative; text-align:center; padding:12px 25px; }
.exp-heading h2 { font-size:30px; line-height:1.12; margin:6px 0 9px; }
.exp-heading p { line-height:1.4; color:#75856e; font-size:14px; }
.exp-eyebrow { color:#65906a; text-transform:uppercase; font-size:10px; font-weight:800; letter-spacing:1.5px; }
.exp-close { position:absolute; right:12px; top:12px; z-index:6; width:35px; height:35px; display:grid; place-content:center; padding:0 0 3px; border:2px solid #dcd9be; border-radius:50%; background:#fff8e8; color:#688369; font-size:28px; box-shadow:0 3px 0 #829777; }
.exp-primary,.exp-secondary { display:block; border-radius:16px; border:2px solid #417852; padding:14px 22px; font-size:16px; font-weight:800; background:linear-gradient(#71b57e,#47895b); color:#fffceb; box-shadow:0 4px 0 #2d633f,inset 0 2px 0 #ffffff3b; }
.exp-secondary { margin-top:12px; background:#f4edda; color:#53765b; border-color:#c9cfad; box-shadow:0 3px 0 #a5b294; }
.exp-currency { display:inline-flex; gap:5px; align-items:center; white-space:nowrap; }
.exp-currency img { width:24px; height:24px; object-fit:contain; }
.exp-currency strong { font-variant-numeric:tabular-nums; }
.animal-study-card { position:relative; width:80%; max-height:100%; overflow:auto; border-radius:28px; background:#fff8e9; border:3px solid #e9dfbc; box-shadow:0 10px 0 #244f3b,0 24px 60px #0e2b334d; scrollbar-width:thin; }
.animal-study-scene { position:relative; height:360px; min-height:250px; background-size:cover; background-position:center; overflow:hidden; }
.animal-study-scene:after { content:""; position:absolute; inset:70% 0 0; background:linear-gradient(transparent,#fff8e9); pointer-events:none; }
.animal-study-scene .exp-heading { z-index:2; padding:22px 40px 10px; background:linear-gradient(#fff9e9f5,#fff9e9b5,transparent); }
.animal-study-scene .exp-heading h2 { font-size:32px; }
.animal-study-scene .exp-heading p { display:inline-block; color:#577056; font-size:13px; background:#fff9e9e8; border-radius:10px; padding:5px 9px; }
.exp-portrait { position:relative; pointer-events:none; }
.exp-portrait-fit { position:absolute; bottom:0; left:50%; transform-origin:50% 100%; }
.exp-portrait .animal-motion-group { pointer-events:none; cursor:default; }
.study-animal { position:absolute; bottom:10px; left:5%; width:90%; height:290px; }
.exp-portrait .animal-spotlight { display:none; }
.exp-portrait .animal-closed-eyes { animation:portrait-blink 6.1s step-end infinite; }
.animal-motion-group[data-profile="expedition"] .animal-head-motion { animation-name:expedition-head-look; }
.animal-training { position:relative; padding:0 22px 20px; }
.training-summary { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:3px 0 17px; font-size:13px; }
.animal-rating { display:inline-block; border:1px solid #e4cd83; background:#fff0bb; color:#8b6a28; border-radius:20px; padding:6px 11px; white-space:nowrap; font-size:16px; }
.training-rows { display:grid; gap:10px; }
.training-row { display:flex; align-items:center; gap:12px; background:#eff1de; border:1px solid #dfe1c8; border-radius:18px; padding:11px; }
.training-icon { width:43px; height:43px; object-fit:contain; }
.training-info { flex:1; min-width:0; display:grid; grid-template-columns:1fr auto; gap:5px; font-size:13px; }
.training-info > span { color:#779171; font-size:12px; }
.training-meter { grid-column:span 2; background:#d9e0c6; border-radius:5px; overflow:hidden; height:6px; }
.training-meter i { display:block; height:100%; border-radius:inherit; background:#70a976; transition:width .3s; }
.training-buy { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; min-width:88px; min-height:54px; padding:5px 9px; border:1px solid #e8bd57; border-radius:13px; background:linear-gradient(#ffe9a1,#f3ce69); box-shadow:0 3px 0 #c39e4e,inset 0 1px 0 #ffffffaa; color:#785b20; font-size:13px; font-weight:bold; }
.training-buy.diamonds { background:linear-gradient(#d6e8ff,#b0cff1); border-color:#91b5d7; box-shadow:0 3px 0 #739ac0,inset 0 1px 0 #ffffffaa; color:#3f6a90; }
.training-buy.unaffordable { filter:saturate(.55); }
.training-buy:disabled { opacity:.6; }
.training-buy > span:first-child { font-size:11px; }
.training-buy .exp-currency img { width:20px; height:20px; }
.training-feedback { color:#648068; font-size:12px; line-height:1.45; text-align:center; min-height:34px; margin:16px 0 5px !important; }
.training-note { display:block; font-size:10px; text-align:center; color:#9b9c82; }
.training-celebrate .study-animal { animation:training-hop .45s ease-in-out; }
.exp-travel-card { position:relative; width:90%; max-height:100%; overflow-y:auto; background:#fff8e9; border:3px solid #e9dfbc; border-radius:26px; padding:12px 20px 22px; scrollbar-width:thin; }
.exp-map-list { display:grid; gap:12px; margin:10px 0 20px; }
.exp-map-card { padding:9px; border:1px solid #d2dcc0; border-radius:18px; display:flex; gap:14px; align-items:center; text-align:left; color:#284b3f; background:#eef2df; }
.exp-map-card > img { width:84px; height:90px; border-radius:12px; object-fit:cover; }
.exp-map-card > div { display:grid; gap:6px; flex:1; }
.exp-map-card strong { font-size:21px; }
.exp-map-card small { color:#799072; font-size:12px; line-height:1.4; }
.exp-map-card:disabled { opacity:.63; }
.map-state { font-size:28px; }
.exp-cup-list { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.exp-cup-card { display:flex; align-items:center; gap:10px; padding:12px; border:1px solid #e2d3ab; border-radius:14px; text-align:left; background:#fff1cb; color:#806d36; }
.exp-cup-card:disabled { opacity:.45; }
.exp-cup-card.is-won { background:#e4efd6; border-color:#cbd9b7; color:#668057; }
.exp-cup-card > div { display:grid; gap:5px; }
.exp-cup-card strong { font-size:13px; }
.exp-cup-card small { font-size:10px; line-height:1.4; }
.cup-medal { font-size:26px; }
.exp-travel-note { font-size:12px; line-height:1.5; color:#879276; text-align:center; padding:18px 15px 0; }
.room-button:disabled { cursor:default; opacity:.65; }
.cup-intro-scene { position:relative; background:#fff8e9; border:3px solid #e9dfbc; border-radius:26px; width:85%; padding:28px; text-align:center; box-shadow:0 7px 0 #42684a; }
.exp-visitor { position:relative; pointer-events:none; }
.cup-host { width:180px; height:230px; margin:0 auto -10px; }
.cup-speech { position:relative; background:#fff9e9; }
.cup-speech h2 { font-size:30px; margin:6px 0 14px; }
.cup-speech p { line-height:1.5; font-size:16px; }
.cup-speech small { display:block; margin:14px 0; color:#7c8c74; font-size:12px; line-height:1.6; }
.cup-speech .exp-primary { margin:20px auto 0; }
.cup-prizes { display:flex; gap:18px; align-items:center; justify-content:center; padding:15px 0; color:#957330; }
.cup-prizes > span:first-child:not(.exp-currency) { font-size:11px; color:#849076; }
.exp-competition { flex-direction:column; justify-content:center; gap:8px; padding:76px 18px 16px; background:linear-gradient(#f8f0db,#e8e5ca); }
.exp-competition > .exp-heading { padding:0 25px; }
.exp-competition .exp-heading h2 { font-size:26px; margin:3px 0; }
.exp-competition .exp-close { top:80px; }
.cup-teams { display:flex; align-items:center; justify-content:center; width:100%; gap:18px; }
.cup-team { border:1px solid #b4c89f; background:#e3efd9; border-radius:16px; padding:9px 20px; display:flex; align-items:center; justify-content:space-between; gap:12px; flex:1; }
.cup-team.rivals { border-color:#debfaa; background:#f6e4d3; }
.cup-team > span { font-size:12px; font-weight:bold; }
.cup-total { font-size:25px; font-variant-numeric:tabular-nums; }
.cup-team.rivals .cup-total { color:#b67c50; }
.cup-versus { color:#b9a16f; font-size:13px; font-weight:900; }
.cup-round-label { color:#788569; font-size:13px; font-weight:bold; margin:5px 0 !important; }
.cup-arena { width:min(100%,490px); aspect-ratio:1; flex-shrink:1; min-height:0; max-height:48vh; border:3px solid #d4c99c; border-radius:28px; background-size:auto 100%; background-position:center; position:relative; overflow:hidden; box-shadow:0 5px 0 #b7b48e; }
.cup-spectators { position:absolute; inset:0; }
.cup-spectator { position:absolute; width:70px; height:130px; animation:cup-cheer 1.3s ease-in-out var(--cheer-delay) infinite; transform-origin:50% 100%; }
.spectator-0 { left:-5px; top:18%; }
.spectator-1 { right:-5px; top:18%; }
.spectator-2 { left:-10px; bottom:0; }
.spectator-3 { right:-10px; bottom:0; }
.cup-spectator .character-torso-motion { animation:cup-cheer-torso 1.1s ease-in-out var(--cheer-delay) infinite; }
.cup-field { position:absolute; inset:23% 12% 7%; display:grid; grid-template-columns:1fr 55px 1fr; align-items:end; }
.cup-contender { position:relative; min-width:0; text-align:center; padding-bottom:10px; }
.arena-animal { height:175px; }
.cup-contender.rivals .arena-animal { filter:hue-rotate(-8deg) saturate(.83); }
.contender-name { display:block; margin-top:9px; color:#3f6349; font-size:12px; padding:5px 6px; border-radius:12px; background:#fffae7e8; box-shadow:0 2px 0 #b6b487; }
.cup-contender.rivals .contender-name { color:#ad754d; }
.cup-bars { display:flex; gap:5px; align-self:end; justify-content:center; padding-bottom:48px; }
.cup-score-column { display:flex; align-items:center; flex-direction:column; gap:7px; }
.cup-round-score { font-size:14px; font-variant-numeric:tabular-nums; text-shadow:0 1px 0 #fff8dc; }
.cup-score-column.rivals { color:#af784d; }
.cup-score-track { height:110px; width:18px; border:2px solid #ffffffb8; border-radius:9px; background:#ffffff6b; display:flex; align-items:flex-end; overflow:hidden; box-shadow:0 2px 7px #495c472c; }
.cup-score-track i { width:100%; height:0; background:linear-gradient(#a1d87d,#519869); border-radius:5px; }
.rivals .cup-score-track i { background:linear-gradient(#ffc38a,#cd8456); }
.cup-rounds { display:flex; width:100%; gap:7px; margin-top:4px; }
.cup-round-slot { display:grid; gap:6px; flex:1; min-width:0; text-align:center; border:1px solid #d9d7b6; border-radius:12px; padding:9px 5px; background:#f9f3df; }
.cup-round-slot span { font-size:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#859078; }
.cup-round-slot strong { font-size:14px; }
.cup-round-slot.active { border-color:#91b47c; background:#e8f0d9; }
.cup-round-slot.won { color:#45845b; }
.cup-round-slot.lost { color:#b18367; }
.cup-help-area { width:100%; min-height:95px; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:8px; }
.cup-help-hint { font-size:11px; color:#7b8a6e; text-align:center; line-height:1.4; }
.cup-help { position:relative; isolation:isolate; width:min(100%,420px); height:54px; flex-shrink:0; overflow:hidden; border:2px solid #5c9865; border-radius:17px; background:#d4e5ba; box-shadow:0 4px 0 #4e8155; color:#244b36; display:flex; align-items:center; justify-content:center; gap:13px; font-size:15px; }
.cup-help-fill { position:absolute; z-index:-1; inset:0; background:linear-gradient(#a5d787,#73b478); transform-origin:left; }
.cup-help-seconds { font-size:12px; background:#ffffedc9; padding:5px 7px; border-radius:8px; font-variant-numeric:tabular-nums; }
.assisted .arena-animal { animation:training-hop .5s ease-in-out; }
.cup-result-card { position:relative; z-index:2; width:80%; padding:30px 24px; border:3px solid #e5d4a0; border-radius:28px; background:#fff8e9; text-align:center; box-shadow:0 8px 0 #6a8760; }
.cup-result-trophy { font-size:88px; filter:drop-shadow(0 5px 0 #bba16a33); }
.cup-result-card .exp-heading p { font-size:36px; font-weight:bold; color:#7b9b66; font-variant-numeric:tabular-nums; }
.cup-result-card > p { color:#7e8c72; font-size:14px; line-height:1.6; }
.cup-result-card .exp-primary,.cup-result-card .exp-secondary { margin:20px auto 0; }
.cup-confetti { pointer-events:none; position:absolute; width:9px; height:16px; top:-30px; left:var(--x); border-radius:2px; animation:cup-confetti 2.7s ease-in var(--delay) both; }
@keyframes portrait-blink { 0%,44%,47%,100% { opacity:0; } 45%,46% { opacity:1; } }
@keyframes expedition-head-look { 0%,12%,100% { transform:rotate(0); } 30%,42% { transform:rotate(-1.6deg); } 68%,82% { transform:rotate(1.3deg); } }
@keyframes explore-arrive { from { opacity:0; translate:0 14px; } to { opacity:1; translate:0 0; } }
@keyframes training-hop { 50% { translate:0 -12px; } }
@keyframes cup-cheer { 50% { translate:0 -5px; rotate:2deg; } }
@keyframes cup-cheer-torso { 50% { rotate:-4deg; } }
@keyframes cup-confetti { to { top:110%; rotate:500deg; translate:35px 0; } }
@media (max-width:480px) {
  .exp-overlay { padding-top:78px; padding-bottom:16px; }
  .exp-heading h2 { font-size:24px; }
  .animal-study-scene { height:290px; }
  .animal-study-scene .exp-heading { padding:18px 30px 0; }
  .animal-study-scene .exp-heading h2 { font-size:26px; }
  .animal-study-scene .exp-heading p { font-size:11px; }
  .study-animal { height:235px; bottom:5px; scale:.77; transform-origin:50% 100%; }
  .animal-training { padding:0 11px 15px; }
  .training-summary { font-size:10px; gap:4px; margin-bottom:11px; }
  .animal-rating { font-size:13px; padding:5px 7px; }
  .training-row { gap:7px; padding:8px; border-radius:14px; }
  .training-icon { width:29px; height:29px; }
  .training-info { font-size:11px; }
  .training-info > span { font-size:10px; }
  .training-buy { min-width:65px; padding:5px; font-size:12px; }
  .training-buy .exp-currency img { height:17px; width:17px; }
  .training-feedback { font-size:10px; }
  .training-note { font-size:9px; }
  .exp-travel-card { padding:12px; }
  .exp-map-card { gap:10px; }
  .exp-map-card > img { width:64px; height:78px; }
  .exp-map-card strong { font-size:17px; }
  .exp-map-card small { font-size:10px; }
  .exp-cup-card { padding:9px; gap:6px; }
  .exp-cup-card strong { font-size:11px; }
  .cup-medal { font-size:20px; }
  .cup-intro-scene { padding:20px 16px; }
  .cup-host { height:180px; width:140px; }
  .cup-speech h2 { font-size:25px; }
  .cup-speech p { font-size:14px; }
  .cup-prizes { gap:12px; font-size:13px; }
  .cup-prizes > span:first-child:not(.exp-currency) { font-size:10px; }
  .exp-competition { padding-left:12px; padding-right:12px; gap:7px; }
  .exp-competition .exp-heading h2 { font-size:22px; }
  .cup-team { padding:8px 10px; gap:7px; }
  .cup-team > span { font-size:10px; }
  .cup-total { font-size:21px; }
  .cup-teams { gap:9px; }
  .cup-field { inset:24% 10% 5%; grid-template-columns:1fr 40px 1fr; }
  .arena-animal { scale:.76; height:152px; transform-origin:50% 100%; }
  .contender-name { font-size:10px; margin-top:-5px; }
  .cup-score-track { width:14px; height:80px; }
  .cup-bars { padding-bottom:40px; }
  .cup-spectator { width:55px; height:100px; }
  .cup-result-card { padding:24px 16px; }
}
@media (max-height:740px) {
  .animal-study-scene { height:245px; min-height:220px; }
  .study-animal { scale:.66; bottom:0; transform-origin:50% 100%; }
  .training-row { min-height:60px; padding-top:6px; padding-bottom:6px; }
  .training-feedback { margin-top:10px !important; min-height:28px; }
  .cup-host { height:145px; width:115px; }
  .cup-intro-scene { max-height:100%; overflow-y:auto; }
  .cup-arena { max-height:42vh; }
  .cup-help-area { min-height:82px; }
  .cup-round-slot { padding:6px 5px; }
  .exp-competition { gap:5px; }
}
@media (prefers-reduced-motion:reduce) {
  .exp-overlay *,.explore-animal { animation:none !important; transition:none !important; }
  .exp-portrait .animal-closed-eyes { opacity:0 !important; }
}
