.ark-tabs{display:flex;gap:8px;overflow-x:auto;padding:8px 2px 14px;max-width:600px;margin:0 auto;scrollbar-width:thin;scrollbar-color:#d8b067 transparent;scroll-snap-type:x proximity}.ark-tabs button{flex:0 0 auto;min-width:101px;padding:11px 12px;border:2px solid #93713d;border-radius:14px;background:linear-gradient(#446244,#25472f);color:#e9dfbb;font-weight:900;box-shadow:0 3px 0 #162c20;scroll-snap-align:start}.ark-tabs button>span{margin-right:5px;color:#f7d77f}.ark-tabs button small{display:block;font-size:10px;margin-top:5px;opacity:.85}.ark-tabs button.selected{background:linear-gradient(#ffe09a,#d8a345);color:#583717;border-color:#ffe3a2;box-shadow:0 3px 0 #85591c}.rarity-guide{max-width:600px;margin:2px auto 18px;color:#dfdeb7;font-size:12px;line-height:1.6}.rarity-guide summary{padding:10px 2px;cursor:pointer}.rarity-guide p{margin:5px 2px}.rarity-common{--rarity:#7b8f97;--rarity-light:#e1ebec;--rarity-dark:#344c58}.rarity-uncommon{--rarity:#4f9157;--rarity-light:#d4f0c8;--rarity-dark:#295331}.rarity-rare{--rarity:#378dc3;--rarity-light:#c6eeff;--rarity-dark:#225279}.rarity-epic{--rarity:#9860c4;--rarity-light:#eed9ff;--rarity-dark:#60357f}.rarity-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px 4px 5px;border:1px solid var(--rarity);border-radius:30px;background:var(--rarity-light);color:var(--rarity-dark);font-size:11px;font-weight:900;letter-spacing:.2px;line-height:23px;white-space:nowrap}.rarity-badge b{display:grid;place-items:center;width:24px;height:24px;border-radius:8px;background:linear-gradient(145deg,var(--rarity-light),var(--rarity));border:1px solid var(--rarity);box-shadow:inset 0 1px 1px #fff,0 2px 1px #0002;font-size:18px}.species.rarity-card{border-color:var(--rarity);box-shadow:inset 0 0 0 2px var(--rarity-light),0 5px 0 var(--rarity-dark),0 9px 14px #12291d66;position:relative}.card-count{display:grid;place-items:center;min-width:40px;min-height:40px;border:2px solid #f8eac4;border-radius:50%;background:linear-gradient(#d9b675,#977040);color:#fff8dd;box-shadow:0 2px 0 #664822;font-size:13px}.card-count.badge-complete{background:linear-gradient(#82b542,#3f772c)}.card-progress{height:7px;border:1px solid #c3aa7b;border-radius:9px;background:#daceac;margin:12px 0}.card-progress span{display:block;height:100%;background:var(--rarity);border-radius:8px}.rarity-card .species-bottom{border:0;padding-top:0}.rarity-card .specimen{background:transparent;border-color:#d9bd85;box-shadow:none}.ark-empty{padding:40px 20px;text-align:center;background:#f6e8c5;border:3px solid #bb944e;border-radius:20px;color:#614323}.ark-empty>span{font-size:40px;color:#a88545}.ark-empty h2{line-height:1.2}.ark-empty p{line-height:1.6}
/* Light follows transparent animal pixels rather than a rectangular backdrop. */
.modalbox .encounter{background:transparent;overflow:visible;isolation:isolate;margin:16px 0}.encounter::before,.encounter::after{display:none}.encounter img{position:relative;z-index:2;max-width:85%;object-fit:contain;will-change:filter,transform}.encounter .protection-sparks{position:absolute;inset:0;display:grid;place-items:center;font-size:34px;color:#fff6bc;opacity:0;pointer-events:none;z-index:1;text-shadow:75px 0 #f8ce70,-75px 0 #ffeebe,0 -75px #ffd877,0 75px #fff0b6}.encounter.protecting .reveal-front img{animation:animalProtect 950ms ease-in-out both}.encounter.protecting .protection-sparks{animation:animalSparks 950ms ease-out both}.protected-glow{animation:protectedArrival 800ms ease-out both}.modalbox .rarity-badge{margin-top:10px}.modalbox .encounter img{height:100%;width:230px;max-height:220px}.modalbox .encounter{height:230px}
@keyframes animalProtect{0%{transform:scale(1);filter:drop-shadow(0 0 4px #ffed9f)}50%{transform:scale(1.045);filter:drop-shadow(0 0 5px #fff) drop-shadow(0 0 15px #ffda68) drop-shadow(0 0 24px #e9af32)}100%{transform:scale(.97);filter:drop-shadow(0 0 12px #fff6c7)}}
@keyframes animalSparks{0%{opacity:0;transform:scale(.6) rotate(0)}45%{opacity:.9}100%{opacity:0;transform:scale(1.4) rotate(30deg)}}
@keyframes protectedArrival{from{filter:drop-shadow(0 0 20px #ffdf7a);transform:scale(.94)}to{filter:drop-shadow(0 0 5px #ffe598);transform:scale(1)}}
@media(max-width:360px){.ark-tabs button{min-width:94px;padding:10px}.rarity-card{padding:17px}.rarity-card h2{font-size:24px}}
@media(max-height:650px){.modalbox .encounter{height:170px}.modalbox .encounter img{max-height:160px}}
@media(prefers-reduced-motion:reduce){.encounter.protecting .reveal-front img,.encounter.protecting .protection-sparks,.protected-glow{animation:none}.encounter.protecting .reveal-front img{filter:drop-shadow(0 0 9px #ffdc6a)}}

/* Enlarge the visible lion while keeping the specimen slot and label aligned. */
.rarity-card .specimen img[src="assets/leao.webp"] {
  padding-block: 16px;
  scale: 1.35;
}

.ark-filter {
  max-width: 600px;
  margin: 0 auto 10px;
}
.ark-filter button {
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid #c39955;
  border-radius: 10px;
  background: #f8e9c4;
  color: #4f3320;
  font: inherit;
  font-weight: 800;
}
#arkFilterToggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
#arkFilterToggle.has-filter {
  background: #dbe9b9;
  border-color: #8ea45d;
  color: #2d4526;
}
.ark-filter-panel {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid #c39955;
  border-radius: 12px;
  background: #fff2d5;
  color: #4f3320;
}
.ark-filter-panel label { font-weight: 800; }
.ark-filter-panel input, .ark-filter-panel select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px;
  border: 1px solid #a78251;
  border-radius: 8px;
  background: #fffbef;
  color: #402718;
  font: inherit;
  font-size: 16px;
}
.ark-filter-panel button { justify-self: start; }
.ark-filter-panel.hidden, .ark-tabs.hidden { display: none; }
.ark-filter-status { margin: 6px 0 0; color: #ffedc6; }
.ark-filter-status:empty { margin: 0; }

.noe-avatar {
  position: relative;
  display: block;
  width: 86px;
  height: 86px;
  overflow: hidden;
  border: 2px solid #d0a45a;
  border-radius: 50%;
  background: radial-gradient(#f3da9d, #8a6333);
}
.noe-avatar img,
.mobile-nav button .noe-avatar img {
  position: absolute;
  top: 1%;
  left: -74%;
  display: block;
  width: 300%;
  max-width: none;
  height: auto;
  margin: 0;
  border-radius: 0;
  filter: none;
}
.mobile-nav button .noe-avatar {
  width: 52px;
  height: 52px;
  margin: 3px 0;
}
.player-profile {
  width: min(100%, 500px);
  margin: 12px auto 24px;
  padding: 18px;
  border: 2px solid #bc924d;
  border-radius: 18px;
  background: #fff1d1;
  color: #51371f;
}
.player-profile-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.player-profile h2 { font-size: 1.25rem; margin: 0; }
.player-profile form { display: grid; gap: 8px; }
.player-profile label { font-weight: 800; }
.player-profile input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #a78251;
  border-radius: 8px;
  background: #fffaf0;
  color: #402718;
  font: inherit;
  font-size: 16px;
}
.player-profile .primary { min-height: 44px; }
#playerProfileStatus { margin: 0; }
#playerProfileStatus:empty { display: none; }
.player-profile-note { font-size: .9rem; }
.player-profile-stats { display: grid; gap: 8px; margin: 0; }
.player-profile-stats div { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid #dfc391; }
.player-profile-stats dd { margin: 0; font-weight: 800; white-space: nowrap; }
.mobile-nav button.active .noe-avatar img { transform: none; }

header .player-hud {
  display: grid;
  gap: 5px;
  flex: 0 1 auto;
  min-width: 0;
  padding: 5px 8px 7px;
  border: 1px solid #b98f50;
  border-radius: 9px;
  background: linear-gradient(#26180855, #26180872), url('assets/barra-progresso.webp') center / cover, #55391e;
  color: #fff0c8;
  font-size: 11px;
  box-shadow: 0 2px 0 #301b0f70;
}
.hud-balances, .hud-level, .hud-balance {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.hud-balances, .hud-level { justify-content: space-between; gap: 8px; }
.hud-balance { gap: 3px; font-weight: 700; }
.hud-balance .drawn-icon, .hud-balance img { width: 18px; height: 18px; object-fit: contain; }
.hud-meter { min-width: 50px; width: 78px; position: relative; }
.hud-meter span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 3px #2e1b06, 1px 0 2px #2e1b06;
}
.hud-meter progress {
  display: block;
  height: 13px;
  width: 100%;
  appearance: none;
  accent-color: #eab34c;
  background: #342315;
  border: 1px solid #d8aa60;
  border-radius: 8px;
  overflow: hidden;
}
.hud-meter progress::-webkit-progress-bar { background: #342315; }
.hud-meter progress::-webkit-progress-value { background: linear-gradient(#ffe688, #de9421); }
.hud-meter progress::-moz-progress-bar { background: linear-gradient(#ffe688, #de9421); }
header:has(.player-hud) { gap: 8px; }
header:has(.player-hud) > div:first-child { min-width: 0; }
header:has(.player-hud) h1 { font-size: clamp(20px, 5.4vw, 29px); }

.profile-medals { margin-top: 16px; border-top: 1px solid #dfc391; }
.profile-medals h3 { margin-bottom: 7px; }
.profile-medals p { margin: 0 0 8px; }
.profile-medal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.profile-medal-list li {
  display: grid;
  gap: 4px;
  place-items: center;
  padding: 8px 12px;
  background: #f6e2b5;
  border-radius: 10px;
}
.profile-medal-list img { object-fit: contain; }
@media (max-width: 375px) {
  main > header:has(.player-hud) { padding-inline: 10px; gap: 5px; }
  header .player-hud { padding-inline: 5px; font-size: 10px; }
  .hud-balances, .hud-level { gap: 5px; }
  .hud-meter { width: 56px; }
}

:root { --status-height:calc(46px + env(safe-area-inset-top,0px)); }
body > .player-hud {
 position:fixed; inset:0 0 auto; height:var(--status-height); box-sizing:border-box;
 padding:calc(5px + env(safe-area-inset-top,0px)) max(10px,env(safe-area-inset-right)) 5px max(10px,env(safe-area-inset-left));
 z-index:100000; display:flex; align-items:center; justify-content:center; gap:8px;
 background:linear-gradient(#321c0b55,#28170799),url('assets/ark-wood.png') center / 480px;
 border-bottom:2px solid #c09950; color:#fff7da; font-weight:800;
}
.player-hud .hud-level,.player-hud .hud-balance {
 background:#332112; border:1px solid #b08a4c; border-radius:9px;
 padding:3px 8px; height:30px; box-sizing:border-box; box-shadow:inset 0 2px 4px #1e120e;
}
.player-hud .hud-level {order:-1; gap:6px; font-size:13px;}
.player-hud .hud-meter {width:clamp(44px,16vw,90px);min-width:0}
.player-hud .hud-balance {min-width:48px;justify-content:center;font-variant-numeric:tabular-nums}
.player-hud .hud-balance .drawn-icon,.player-hud .hud-balance > img {width:22px;height:22px}
body main {top:var(--status-height)}
body main>header {height:64px;padding:6px 16px}
body main>.page:not(#mapPage) {top:64px}
body .modal {top:var(--status-height);height:calc(100dvh - var(--status-height));padding-top:8px}
body .modalbox {max-height:calc(100dvh - var(--status-height) - 24px - env(safe-area-inset-bottom))}

.ark-tools {display:flex;align-items:center;justify-content:space-between;gap:10px}
.ark-tools .total {white-space:nowrap;}
.player-profile-stats dt {display:flex;align-items:center;gap:9px}
.player-profile-stats dt>img,.player-profile-stats dt .drawn-icon {width:26px;height:26px;object-fit:contain}
.level-emblem {width:21px;height:24px;object-fit:contain}
@media(max-width:350px){.player-hud .hud-level{gap:3px;padding-inline:5px}.player-hud .hud-balances{gap:4px}}

:root { --status-height:calc(54px + env(safe-area-inset-top,0px)); }
.player-hud .hud-level,.player-hud .hud-balance {height:38px}
.player-hud .hud-meter {width:clamp(65px,23vw,130px)}
.player-hud .hud-meter progress {height:23px}
.player-hud .hud-meter span {font-size:13px;font-variant-numeric:tabular-nums}
#leafRedeem {position:relative;color:inherit;font:inherit;cursor:pointer;margin:0}
#leafRedeem.redemption-ready {border-color:#aff481;box-shadow:0 0 10px #82e557,inset 0 0 8px #82e55555}
#leafRedeem.redemption-ready .drawn-icon {animation:leafReady 1.65s ease-in-out infinite alternate}
@keyframes leafReady {
 from {filter:drop-shadow(0 0 2px #b8ff66)}
 to {filter:drop-shadow(0 0 7px #aaff55);transform:scale(1.18)}
}
@media(prefers-reduced-motion:reduce){#leafRedeem.redemption-ready .drawn-icon{animation:none}}
@media(max-width:360px){
 body > .player-hud{gap:4px;padding-inline:5px}
 .player-hud .hud-balance{padding-inline:4px;min-width:38px}
 .player-hud .hud-level{gap:4px;padding-inline:4px}
}

#arkSections{display:none}
body[data-page="collection"] main>header{height:74px;justify-content:center;padding:2px 8px}
body[data-page="collection"] main>header>:not(#arkSections){display:none}
body[data-page="collection"] #arkSections{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:min(100%,430px);gap:4px}
#arkSections button{display:grid;justify-items:center;gap:1px;background:transparent;color:#fcebc3;border:0;border-bottom:3px solid transparent;border-radius:7px;padding:2px;font:inherit;font-size:12px;font-weight:800}
#arkSections button[aria-pressed="true"]{background:#25120873;border-bottom-color:#e9bd60}
#arkSections img{width:46px;height:43px;object-fit:contain}
body[data-page="collection"] #collectionPage{top:74px}
#arkAchievements.hidden,#arkMissions.hidden,#arkAnimals.hidden{display:none}
