@import url("./fonts/fonts.css");
:root {
  --ink: #233d35;
  --green: #256b51;
  --muted: #7b8378;
  --cream: #f6f4ec;
  --line: #e3e5db;
  --orange: #eb793f;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font:
    14px "DM Sans",
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}
button {
  border: 0;
}
header {
  height: 88px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  gap: 25px;
  background: #faf9f3;
}
.brand {
  font: 800 30px Manrope;
  letter-spacing: -2px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand span {
  font-size: 30px;
  color: var(--green);
}
nav {
  display: flex;
  gap: 6px;
}
nav button {
  background: none;
  color: #7b8378;
  padding: 13px 18px;
  border-radius: 24px;
}
nav button.active {
  background: #e7eee3;
  color: var(--green);
  font-weight: 700;
}
.account {
  display: flex;
  align-items: center;
  gap: 18px;
}
.coin {
  background: #fff4d6;
  color: #96741d;
  border: 1px solid #ebdfb9;
  padding: 9px 14px;
  border-radius: 30px;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #d9e6cf;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.wrap {
  max-width: 1280px;
  margin: auto;
  padding: 38px 35px 50px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}
h1 {
  font: 800 clamp(30px, 4vw, 48px)/1.15 Manrope;
  letter-spacing: -1.8px;
  margin: 12px 0;
}
h2 {
  font: 800 23px Manrope;
  letter-spacing: -0.7px;
  margin: 0;
}
p {
  line-height: 1.6;
  color: var(--muted);
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sub {
  margin: 10px 0 25px;
}
.btn {
  padding: 13px 20px;
  border-radius: 10px;
  font-weight: 700;
  background: var(--green);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn.light {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}
.link {
  background: none;
  color: var(--green);
  font-weight: 700;
}
.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  margin: 26px 0 34px;
}
.feature {
  border-radius: 20px;
  background: #e7ecdc;
  padding: 34px;
  position: relative;
  overflow: hidden;
  min-height: 270px;
  display: flex;
  align-items: center;
}
.feature h2 {
  font-size: 31px;
  max-width: 250px;
}
.feature p {
  max-width: 235px;
  color: #65725e;
}
.feature-copy {
  position: relative;
  z-index: 2;
}
.pack {
  width: 143px;
  height: 205px;
  border: 1px solid #e3c484;
  background: linear-gradient(140deg, #f8e8ba, #dbc38b);
  border-radius: 10px;
  box-shadow: 5px 15px 25px #29453424;
  position: absolute;
  right: 42px;
  top: 35px;
  transform: rotate(12deg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  outline: 6px solid #ffffff60;
  outline-offset: -11px;
}
.pack:before,
.pack:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, #c4aa75 0 2px, transparent 2px 5px);
}
.pack:before {
  top: 0;
}
.pack:after {
  bottom: 0;
}
.pack b {
  font: 800 25px Manrope;
  letter-spacing: 4px;
}
.pack span {
  font-size: 10px;
  letter-spacing: 2px;
  margin-top: 13px;
}
.pack .globe {
  font-size: 65px;
  color: #546b4d;
  line-height: 1;
}
.community {
  background: #243f36;
  color: white;
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.community .eyebrow {
  color: #b5d0ac;
}
.community h2 {
  margin: 12px 0;
  font-size: 27px;
}
.community p {
  color: #b7c7b9;
  margin: 8px 0;
}
.progress {
  height: 6px;
  background: #ffffff25;
  border-radius: 9px;
  overflow: hidden;
  margin: 15px 0;
}
.progress i {
  height: 100%;
  display: block;
  background: #c5df9b;
  border-radius: 9px;
}
.tiny {
  font-size: 12px;
  color: var(--muted);
}
.white {
  color: #d4e4d2;
}
.section-title {
  margin: 28px 0 18px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  padding: 9px;
  background: #fff;
  border: 1px solid #e2e4da;
  border-radius: 15px;
  position: relative;
  text-align: left;
  transition: 0.2s;
  min-width: 0;
  box-shadow: 0 3px 0 #e6e7de;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 22px #253d3512;
}
.art {
  height: 170px;
  border-radius: 9px;
  overflow: hidden;
  position: relative;
}
.art svg {
  width: 100%;
  height: 100%;
  display: block;
}
.rarity {
  position: absolute;
  top: 11px;
  left: 11px;
  padding: 5px 9px;
  border-radius: 5px;
  background: #fffc;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
  z-index: 1;
}
.rarity.t-legendaire {
  color: #977020;
  background: #fff1c9;
}
.rarity.t-culte {
  color: #71528c;
  background: #f0e3ff;
}
.rarity.t-incontournable {
  color: #356a9c;
  background: #e2f1ff;
}
.card-copy {
  padding: 12px 7px 8px;
}
.card h3 {
  font: 800 16px Manrope;
  margin: 3px 0 5px;
}
.card .country {
  font-size: 11px;
  color: var(--muted);
}
.card .foot {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #eff0e8;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #899286;
}
.count {
  position: absolute;
  right: 16px;
  top: 17px;
  background: #254335;
  color: white;
  border-radius: 20px;
  padding: 4px 8px;
  font-size: 11px;
  z-index: 2;
}
.activity {
  border: 1px solid var(--line);
  border-radius: 13px;
  margin-top: 28px;
  padding: 16px 20px;
  background: #faf9f5;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #79a36b;
  flex-shrink: 0;
}
.badge {
  font-size: 10px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted);
}
.filters {
  display: flex;
  gap: 10px;
  margin: 25px 0;
  flex-wrap: wrap;
}
.filters input,
.filters select {
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px;
  border-radius: 9px;
  color: var(--ink);
}
.filters input {
  flex: 1;
  min-width: 180px;
}
.stats {
  display: flex;
  gap: 25px;
  margin: 20px 0;
  color: var(--muted);
}
.stats b {
  color: var(--green);
}
.offers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.offer {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 20px;
  background: #fff;
}
.offer .mini {
  display: grid;
  grid-template-columns: 1fr 25px 1fr;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
}
.mini .art {
  height: 110px;
}
.mini h4 {
  font-size: 11px;
  margin: 8px 0;
}
.mini .rarity {
  display: none;
}
.offer .btn {
  width: 100%;
}
.map {
  height: 460px;
  background: #e4ece4;
  border: 1px solid #d5dfd3;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(#ffffff50 1px, transparent 1px), linear-gradient(90deg, #ffffff50 1px, transparent 1px);
  background-size: 50px 50px;
}
.map > svg {
  width: 100%;
  height: 100%;
  opacity: 0.7;
}
.pin {
  position: absolute;
  background: var(--green);
  border: 3px solid #fff;
  border-radius: 50%;
  width: 21px;
  height: 21px;
  box-shadow: 0 2px 8px #0003;
  padding: 0;
}
.pin:hover {
  transform: scale(1.5);
}
.map-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: white;
  padding: 12px 17px;
  border-radius: 10px;
  font-size: 12px;
}
.modal {
  position: fixed;
  inset: 0;
  background: #172f29bd;
  backdrop-filter: blur(8px);
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 25px;
  overflow: auto;
}
.dialog {
  max-width: 960px;
  width: 100%;
  background: var(--cream);
  border-radius: 24px;
  padding: 30px;
  position: relative;
  text-align: center;
  max-height: 94vh;
  overflow: auto;
}
.close {
  position: absolute;
  right: 18px;
  top: 15px;
  background: #e8e9df;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: var(--ink);
  z-index: 5;
}
.dialog .grid {
  margin: 28px 0;
}
.dialog .card {
  cursor: pointer;
}
.flipped {
  min-height: 290px;
  background: var(--green);
  display: grid;
  place-items: center;
  color: #e8d6a8;
  font: 800 28px Manrope;
  letter-spacing: 4px;
  border: 8px double #b7c79e;
  animation: pop 0.3s ease;
}
.new {
  color: var(--orange);
  font-weight: 800;
  font-size: 11px;
  margin-top: 8px;
}
.detail {
  max-width: 440px;
}
.detail .art {
  height: 260px;
  margin-top: 15px;
}
.detail h2 {
  margin-top: 20px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 24px;
  color: white;
  background: #244d3d;
  border-radius: 12px;
  box-shadow: 0 5px 30px #0002;
  z-index: 40;
  font-size: 13px;
  max-width: 90vw;
  text-align: center;
}
.empty {
  padding: 60px;
  text-align: center;
  grid-column: 1/-1;
}
.event {
  max-width: 800px;
  margin: auto;
  background: white;
  padding: 35px;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.event .progress {
  background: #e6ecdf;
  height: 12px;
}
.event .progress i {
  background: var(--green);
}
.members {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 25px 0;
}
.member {
  padding: 15px;
  background: var(--cream);
  border-radius: 12px;
  flex: 1;
  min-width: 100px;
}
.member b {
  display: block;
  margin-bottom: 5px;
}
footer {
  text-align: center;
  font-size: 10px;
  color: #939a8b;
  padding: 20px;
  border-top: 1px solid var(--line);
}
@keyframes pop {
  from {
    transform: scale(0.85);
    opacity: 0.2;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@media (min-width: 1100px) {
  .art {
    height: 195px;
  }
}
@media (max-width: 850px) {
  header {
    padding: 0 20px;
    flex-wrap: wrap;
    height: auto;
    min-height: 85px;
    gap: 12px;
    padding-top: 15px;
  }
  nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
  nav button {
    padding: 11px 10px;
    font-size: 12px;
  }
  .wrap {
    padding: 25px 20px;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .offers {
    grid-template-columns: 1fr;
  }
  .account {
    gap: 8px;
  }
  .brand {
    font-size: 26px;
  }
  .hero .feature {
    min-height: 260px;
  }
  .community {
    min-height: 230px;
  }
  .dialog .grid {
    gap: 10px;
  }
  .dialog {
    padding: 26px 15px;
  }
  .art {
    height: 150px;
  }
  .pack {
    right: 30px;
  }
  .feature {
    padding: 25px;
  }
  .feature h2 {
    max-width: 180px;
    font-size: 27px;
  }
  .feature p {
    max-width: 170px;
  }
  .row {
    align-items: center;
  }
  h1 {
    letter-spacing: -1px;
  }
  .badge {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Phone-first app shell, also presented as a phone on larger screens. */
html {
  background: #dfe5dc;
}
body {
  max-width: 460px;
  margin: auto;
  min-height: 100dvh;
  position: relative;
  box-shadow: 0 0 65px #233d351a;
  padding-bottom: 82px;
}
header {
  height: 73px;
  min-height: 73px;
  padding: 0 20px;
  gap: 8px;
  flex-wrap: nowrap;
  position: sticky;
  top: 0;
  z-index: 8;
}
.brand {
  font-size: 26px;
}
.brand > span:last-child {
  display: none;
}
.account {
  gap: 9px;
}
.coin {
  font-size: 12px;
  padding: 8px 11px;
}
.avatar {
  width: 33px;
  height: 33px;
  font-size: 12px;
}
nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(460px, 100%);
  height: 76px;
  padding: 7px 10px max(8px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  gap: 0;
  background: #faf9f6f5;
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  z-index: 15;
}
nav button {
  border-radius: 12px;
  padding: 6px 5px;
  font-size: 10px;
  width: 25%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
nav button::before {
  content: "◎";
  font-size: 22px;
  line-height: 23px;
}
nav button:nth-child(2)::before {
  content: "▧";
}
nav button:nth-child(3)::before {
  content: "⇄";
}
nav button:nth-child(4)::before {
  content: "⚑";
}
.wrap {
  padding: 26px 19px 20px;
}
h1 {
  font-size: 33px;
  letter-spacing: -1.4px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.4px;
}
.sub {
  font-size: 12px;
  margin: 10px 0 20px;
}
.badge {
  display: none;
}
.hero {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 20px 0 28px;
}
.feature {
  min-height: 260px;
  padding: 23px;
  border-radius: 18px;
}
.feature h2 {
  font-size: 28px;
  max-width: 175px;
}
.feature p {
  max-width: 172px;
  font-size: 12px;
}
.pack {
  width: 125px;
  height: 180px;
  right: 25px;
  top: 43px;
}
.pack b {
  font-size: 22px;
}
.pack span {
  font-size: 8px;
}
.pack .globe {
  font-size: 54px;
}
.community {
  min-height: 210px;
  padding: 23px;
}
.community h2 {
  font-size: 24px;
}
.community p {
  font-size: 12px;
}
.grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.art {
  height: 145px;
}
.card {
  padding: 7px;
  border-radius: 12px;
}
.card-copy {
  padding: 10px 4px 4px;
}
.card h3 {
  font-size: 13px;
}
.card .country {
  font-size: 9px;
}
.card .foot {
  font-size: 9px;
  margin-top: 10px;
}
.rarity {
  font-size: 8px;
  padding: 5px 6px;
  left: 7px;
  top: 7px;
}
.count {
  right: 11px;
  top: 11px;
  font-size: 9px;
}
h2 {
  font-size: 19px;
}
.link {
  font-size: 11px;
}
.activity {
  padding: 13px;
  font-size: 11px;
  flex-wrap: wrap;
}
.activity .link {
  margin-left: 19px !important;
}
.offers {
  grid-template-columns: 1fr;
}
.offer .mini .art {
  height: 130px;
}
.offer .mini h4 {
  font-size: 12px;
}
.filters {
  gap: 8px;
  margin: 16px 0;
}
.filters input {
  width: 100%;
  flex-basis: 100%;
}
.filters select {
  flex: 1;
  max-width: 50%;
  font-size: 12px;
}
.stats {
  font-size: 11px;
  gap: 10px;
}
.row .btn.light {
  padding: 10px;
  font-size: 10px;
}
.event {
  padding: 21px;
}
.event p {
  font-size: 12px;
}
.member {
  min-width: 70px;
  padding: 12px;
  font-size: 11px;
}
.modal {
  padding: 12px;
  align-items: center;
}
.dialog {
  max-width: 436px;
  padding: 30px 16px 20px;
  max-height: 92dvh;
  border-radius: 22px;
}
.dialog h2 {
  font-size: 23px;
}
.dialog p {
  font-size: 12px;
}
.dialog .grid {
  gap: 10px;
  margin: 18px 0;
}
.dialog .art {
  height: 125px;
}
.dialog .card-copy {
  padding: 7px 3px 3px;
}
.dialog .card h3 {
  font-size: 12px;
}
.flipped {
  min-height: 225px;
  font-size: 23px;
}
.new {
  font-size: 9px;
}
.detail .art {
  height: 230px;
}
.map {
  height: 310px;
}
.map-label {
  font-size: 9px;
  bottom: 10px;
  left: 10px;
  padding: 8px;
}
.toast {
  bottom: 91px;
  width: calc(100% - 34px);
  max-width: 420px;
  font-size: 12px;
}
footer {
  font-size: 9px;
  padding: 15px 20px;
}
.btn {
  font-size: 12px;
  padding: 13px 17px;
}
@media (max-width: 360px) {
  .pack {
    right: 13px;
    width: 104px;
  }
  .feature {
    padding: 18px;
  }
  .feature p {
    max-width: 150px;
  }
  .feature h2 {
    font-size: 25px;
  }
  .art {
    height: 125px;
  }
}
.dialog .grid:has(> :nth-child(5)) > :last-child {
  grid-column: 1/-1;
  width: calc(50% - 5px);
  justify-self: center;
}
.feature {
  min-height: 285px;
}
.pack-home {
  text-align: center;
  min-height: calc(100dvh - 205px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 17px 0 15px;
}
.pack-home h1 {
  margin: 12px 0 0;
  font-size: 33px;
}
.pack-subtitle {
  font-size: 13px;
  margin: 12px 0 0;
}
.pack-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 300px;
  flex-shrink: 0;
  background: none;
  margin: 10px 0 15px;
  border-radius: 24px;
}
.pack-halo {
  position: absolute;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: radial-gradient(circle, #e4e8d4 0%, #ecebdb80 48%, transparent 70%);
}
.pack-stage .pack {
  position: relative;
  right: auto;
  top: auto;
  width: 161px;
  height: 227px;
  transform: rotate(-7deg);
  outline: 6px solid #fff5;
  box-shadow: 10px 20px 30px #29453422;
  transition: transform 0.25s;
}
.pack-stage:hover .pack {
  transform: rotate(-3deg) translateY(-5px);
}
.pack-stage .pack .globe {
  font-size: 70px;
}
.pack-stage .pack b {
  font-size: 29px;
}
.pack-stage .pack > span {
  font-size: 9px;
}
.pack-stage .pack .pack-edition {
  position: absolute;
  top: 20px;
  font-size: 6px;
  letter-spacing: 1.4px;
}
.pack-stage .pack .pack-bottom {
  position: absolute;
  bottom: 20px;
  font-size: 6px;
  letter-spacing: 1.5px;
}
.open-main {
  min-width: 225px;
  font-size: 14px;
  min-height: 49px;
  border-radius: 12px;
}
.reserve-box {
  margin: 21px 0 0;
  border: 1px solid #dce2d4;
  background: #eeefe4;
  border-radius: 16px;
  padding: 15px 20px;
  width: 100%;
  max-width: 290px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.reserve-box strong {
  font: 800 21px Manrope;
  color: var(--green);
  letter-spacing: -0.5px;
}
.reserve-box > span {
  font-size: 11px;
  color: #7b8378;
  line-height: 1.5;
}
body:has(.pack-home) footer {
  display: none;
}
.pack-stage:disabled {
  opacity: 0.5;
  cursor: default;
}
.pack-stage:disabled .pack {
  transform: rotate(-7deg);
}
@media (max-height: 760px) {
  .pack-home {
    padding-top: 3px;
  }
  .pack-stage {
    height: 240px;
    margin: 0 0 12px;
  }
  .pack-stage .pack {
    height: 195px;
    width: 138px;
  }
  .pack-stage .pack .globe {
    font-size: 60px;
  }
  .pack-stage .pack b {
    font-size: 25px;
  }
  .reserve-box {
    margin-top: 16px;
    padding: 12px 18px;
  }
  .pack-home h1 {
    font-size: 30px;
  }
}

nav button {
  width: 20%;
  font-size: 9px;
  padding: 5px 2px;
}
nav button:nth-child(3)::before {
  content: "▥";
}
nav button:nth-child(4)::before {
  content: "⇄";
}
nav button:nth-child(5)::before {
  content: "⚑";
}
nav .market-nav {
  position: relative;
  transform: translateY(-17px);
  background: var(--green);
  color: white !important;
  border: 5px solid var(--cream);
  border-radius: 23px;
  width: 74px;
  height: 76px;
  box-shadow: 0 4px 12px #244d3d25;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}
nav .market-nav::before {
  font-size: 28px;
  line-height: 30px;
}
nav .market-nav.active {
  background: #194f3b;
}
.market-intro {
  font-size: 13px;
}
.market-balance {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 19px;
  background: #e7ecdc;
  border: 1px solid #dce3d1;
  border-radius: 14px;
  margin: 20px 0;
  font-size: 12px;
}
.market-balance b {
  font: 800 22px Manrope;
  color: var(--green);
}
.market-tabs {
  display: flex;
  background: #e9eade;
  padding: 4px;
  border-radius: 11px;
  gap: 4px;
}
.market-tabs button {
  width: 50%;
  padding: 11px 5px;
  background: transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.market-tabs .selected {
  background: #fff;
  color: var(--green);
  box-shadow: 0 2px 5px #233d3510;
}
.market-item {
  min-width: 0;
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  overflow: hidden;
}
.market-item > .card {
  border: none;
  box-shadow: none;
  width: 100%;
  border-radius: 0;
}
.market-item > .card:hover {
  transform: none;
  box-shadow: none;
}
.market-item-info {
  padding: 4px 12px 12px;
}
.market-item-info > .tiny {
  font-size: 9px;
  margin: 8px 0 12px;
}
.market-item-info .btn {
  width: 100%;
  font-size: 11px;
  padding: 11px 6px;
}
.market-trend {
  font-size: 10px;
  color: var(--green);
  background: #eaf0e6;
  border-radius: 5px;
  padding: 4px;
}
.market-disclaimer {
  text-align: center;
  font-size: 10px;
  margin-top: 25px;
}
.market-confirm-art {
  margin-top: 20px;
}
.market-confirm-art .art {
  height: 200px;
}

.reveal-progress {
  display: flex;
  gap: 6px;
  max-width: 180px;
  margin: 20px auto 0;
}
.reveal-progress span {
  height: 4px;
  flex: 1;
  background: #dfe3d5;
  border-radius: 4px;
}
.reveal-progress .filled {
  background: var(--green);
}
.reveal-counter {
  font-size: 11px !important;
  margin: 12px 0;
}
.single-reveal {
  width: 245px;
  max-width: 90%;
  margin: 22px auto;
}
.single-face {
  border: 1px solid #dce0d2;
  background: #fff;
  padding: 10px;
  border-radius: 17px;
  box-shadow: 0 8px 22px #233d3510;
  animation: pop 0.3s ease;
}
.single-face .art {
  height: 225px !important;
  border-radius: 10px;
}
.single-copy {
  padding: 15px 5px 10px;
}
.single-copy h3 {
  font: 800 20px Manrope;
  margin: 8px 0;
}
.single-copy .country {
  font-size: 11px;
  color: var(--muted);
}
.single-back {
  width: 100%;
  height: 355px;
  min-height: 0;
  border-radius: 17px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
}
.reveal-action {
  min-width: 220px;
  min-height: 48px;
}
@media (max-height: 760px) {
  .single-face .art {
    height: 175px !important;
  }
  .single-back {
    height: 290px;
  }
  .single-reveal {
    margin: 15px auto;
  }
  .single-copy {
    padding: 11px 4px;
  }
  .single-copy h3 {
    font-size: 18px;
  }
}
.auction-tabs button {
  width: 33.333%;
  font-size: 11px;
}
.auction-clock {
  font-size: 11px;
  background: #eef0e4;
  padding: 5px 7px;
  border-radius: 6px;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.auction-clock.ending {
  color: #b45c33;
  background: #fff0dc;
}
.auction-status {
  font-size: 11px;
  background: #eaf0e4;
  color: var(--green);
  border-radius: 8px;
  padding: 11px 6px;
  text-align: center;
  font-weight: 700;
}
.auction-create {
  width: 100%;
  margin: 0 0 18px;
}
.auction-label {
  display: block;
  text-align: left;
  font-weight: 700;
  font-size: 12px;
  margin: 18px 0 8px;
}
.auction-input {
  display: block;
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.auction-history {
  padding: 10px 0 20px;
}
.auction-history-inline {
  margin-top: 10px;
}
.auction-history-inline summary {
  cursor: pointer;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  list-style: none;
}
.auction-history-inline summary::-webkit-details-marker {
  display: none;
}
.auction-history-inline summary::after {
  content: " ▾";
}
.auction-history-inline[open] summary::after {
  content: " ▴";
}
.auction-history-inline .auction-history {
  padding: 6px 0 0;
}
.auction-history-inline .auction-history .row {
  padding: 8px 4px;
}
.auction-history .row {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.rarity-card {
  --rarity-color: #a7b5a0;
  --rarity-bg: #f6f8f2;
  border: 1px solid var(--rarity-color) !important;
  background: linear-gradient(150deg, #fff 40%, var(--rarity-bg)) !important;
}
.rarity-card .card-copy h3 {
  color: var(--rarity-ink, #294437);
}
.rarity-incontournable {
  --rarity-color: #8cb7d0;
  --rarity-bg: #e8f3fa;
  --rarity-ink: #315e7b;
  box-shadow: 0 3px 0 #bfd5e3;
}
.rarity-culte {
  --rarity-color: #b79ace;
  --rarity-bg: #f1e9f9;
  --rarity-ink: #75508e;
  box-shadow: 0 3px 0 #d4bfe3;
}
.rarity-legendaire {
  --rarity-color: #d4b361;
  --rarity-bg: #fff0c7;
  --rarity-ink: #927027;
  box-shadow:
    0 3px 0 #e6cf90,
    0 0 15px #dfb84a15;
}
.rarity-legendaire:after {
  content: "✦";
  position: absolute;
  bottom: 12px;
  right: 12px;
  color: #c9a449;
  font-size: 12px;
  pointer-events: none;
}
.market-item:has(.rarity-incontournable) {
  border-color: #aac9de;
  background: #f4f9fc;
}
.market-item:has(.rarity-culte) {
  border-color: #c7aedc;
  background: #faf6fd;
}
.market-item:has(.rarity-legendaire) {
  border-color: #ddc27c;
  background: #fffbec;
}
.place-back {
  padding: 0;
  margin: 0 0 18px;
  font-size: 12px;
}
.place-photo {
  height: 245px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: #dce5d9;
}
.place-photo img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.place-photo:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55px;
  background: linear-gradient(transparent, #0007);
  pointer-events: none;
}
.photo-credit {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 8px;
  color: white;
  z-index: 2;
}
.place-location {
  font-size: 11px;
  color: var(--muted);
  margin: 20px 0 8px;
}
.place-title {
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 19px;
}
.place-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.place-price-row strong {
  font: 800 33px Manrope;
  color: var(--green);
  display: inline-block;
  margin-top: 4px;
  letter-spacing: -1px;
}
.place-change {
  font-size: 11px;
  color: var(--green);
  background: #e5eddc;
  padding: 5px 7px;
  border-radius: 6px;
  margin-left: 12px;
}
.place-wish {
  width: 43px;
  height: 43px;
  background: #e8ecdf;
  border-radius: 50%;
  color: var(--green);
  font-size: 25px;
}
.place-owned {
  font-size: 10px;
  color: var(--muted);
  margin: 9px 0 25px;
}
.place-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 18px;
  margin: 14px 0;
}
.place-panel h2 {
  font-size: 15px;
  letter-spacing: -0.3px;
}
.chart-ranges {
  display: flex;
  gap: 3px;
}
.chart-ranges button {
  background: none;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 10px;
  color: var(--muted);
}
.chart-ranges .selected {
  background: #eaf0e3;
  color: var(--green);
  font-weight: 700;
}
.price-chart {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 14px;
}
.demo-label {
  font-size: 9px;
  color: #929889;
  line-height: 1.6;
}
.place-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 22px 0 13px;
}
.place-metrics b {
  display: block;
  font: 800 17px Manrope;
}
.place-metrics span {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 6px;
}
.index-pill {
  background: #e8efdf;
  color: var(--green);
  padding: 6px 9px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
}
.place-panel p {
  font-size: 12px;
}
.place-panel p.tiny {
  font-size: 10px;
}
.index-explain {
  font-size: 10px;
  color: var(--green);
  margin: 13px 0;
}
.index-explain summary {
  cursor: pointer;
}
.trade-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #edf0e6;
  padding: 12px 0;
  font-size: 12px;
}
.trade-row:last-child {
  border: 0;
  padding-bottom: 0;
}
.trade-row span {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 5px;
}
.trade-row strong {
  color: var(--green);
}
.maps-link {
  color: var(--green);
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  display: inline-block;
  padding: 8px 0;
}
.place-market {
  width: 100%;
  margin: 8px 0 10px;
}
.photo-unavailable:before {
  content: "Photo indisponible";
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 12px;
  color: var(--green);
}
.collection-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
}
.collection-heading h1 {
  font-size: 29px;
  letter-spacing: -1px;
  margin: 0;
}
.collection-heading .btn {
  padding: 10px 13px;
  font-size: 11px;
  flex-shrink: 0;
}
.collection-heading + .filters {
  margin-top: 0;
}
nav button:nth-child(5)::before {
  content: "";
  width: 24px;
  height: 24px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm-7 8v-2a7 5 0 0 1 14 0v2H5Z' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E")
    center/contain no-repeat;
}
.profile-heading {
  display: flex;
  gap: 17px;
  align-items: center;
  margin: 5px 0 25px;
}
.profile-heading h1 {
  font-size: 29px;
  margin: 0 0 6px;
}
.profile-avatar {
  width: 67px;
  height: 67px;
  background: #e0e9d5;
  border: 1px solid #cfddc1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 800 27px Manrope;
  color: var(--green);
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  border: 1px solid var(--line);
  background: #eeefe5;
  border-radius: 14px;
  padding: 19px 8px;
  text-align: center;
}
.profile-stats > button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}
.profile-stats b {
  display: block;
  font: 800 23px Manrope;
  color: var(--green);
}
.profile-stats span {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 7px;
}
.profile-actions {
  border: 1px solid var(--line);
  background: white;
  border-radius: 13px;
  margin: 27px 0 18px;
  overflow: hidden;
}
.profile-actions button {
  display: flex;
  justify-content: space-between;
  padding: 17px;
  width: 100%;
  background: transparent;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  text-align: left;
  color: var(--ink);
}
.profile-actions button:last-child {
  border: 0;
}
.inline-map {
  height: calc(100dvh - 315px);
  min-height: 350px;
  width: 100%;
  border: 1px solid #d6dfd1;
  border-radius: 15px;
  overflow: hidden;
  z-index: 0;
  background: #dce8df;
}
.inline-map[hidden],
#collection[hidden],
.map-help[hidden] {
  display: none;
}
.map-help {
  font-size: 9px;
  color: var(--muted);
  padding: 11px 3px;
  line-height: 1.5;
}
.leaflet-container {
  font-family: "DM Sans", sans-serif;
}
.leaflet-control-attribution {
  font-size: 8px !important;
}
.leaflet-touch .leaflet-bar a {
  color: var(--green);
}
.leaflet-tooltip {
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 10px;
  color: var(--ink);
}
nav button:nth-child(4)::before {
  content: "⚑";
}
.challenge-intro {
  font-size: 12px;
  margin: 0 0 22px;
}
.challenge-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.challenge-tile {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: white;
  padding: 20px;
}
.challenge-top {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}
.challenge-top h2 {
  font-size: 17px;
  line-height: 1.3;
  margin: 0 0 8px;
}
.challenge-top p {
  font-size: 11px;
  line-height: 1.5;
  margin: 0 0 17px;
}
.challenge-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: #e8eedf;
  color: var(--green);
  font-size: 26px;
}
.challenge-progress {
  height: 5px;
  background: #e8ecdf;
  border-radius: 6px;
  margin: 10px 0 16px;
  overflow: hidden;
}
.challenge-progress i {
  display: block;
  height: 100%;
  background: #327957;
  border-radius: 6px;
}
.challenge-reward {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #f4f5ed;
  border: 1px solid var(--rarity-color, #dee3d4);
  background: var(--rarity-bg, #f4f5ed);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 15px;
}
.challenge-reward > span {
  font-size: 27px;
  color: var(--rarity-ink, var(--green));
}
.challenge-reward b {
  font-size: 12px;
}
.challenge-reward small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 5px;
}
.challenge-tile .btn {
  font-size: 11px;
  padding: 10px 13px;
}
.challenge-checklist button {
  display: flex;
  gap: 10px;
  align-items: center;
  background: white;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 14px 10px;
  color: var(--ink);
  font-size: 12px;
}
.challenge-checklist button > span:first-child {
  color: var(--green);
  font-size: 17px;
}
.challenge-checklist small {
  margin-left: auto;
  font-size: 9px;
  color: var(--muted);
}
.reward-bank {
  width: 100%;
  margin: 0 0 20px;
}
.bonus-button {
  margin-top: 16px;
  background: #f1e7d0;
  border: 1px solid #dfc995;
  color: #84652c;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}
.reward-packs {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.reward-choice {
  border: 1px solid var(--rarity-color, #dce1d0);
  background: var(--rarity-bg, #edf2e6);
  padding: 18px;
  border-radius: 12px;
  text-align: left;
  color: var(--ink);
}
.reward-choice b,
.reward-choice small,
.reward-choice > span {
  display: block;
}
.reward-choice b {
  font-size: 15px;
}
.reward-choice small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 7px;
}
.reward-choice > span {
  font-size: 12px;
  color: var(--green);
  margin-top: 14px;
  font-weight: 700;
}
.notification-bell {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 36px;
  background: transparent;
  color: var(--ink);
  padding: 0;
}
.notification-bell > span {
  position: absolute;
  top: 0;
  right: -3px;
  min-width: 15px;
  height: 15px;
  line-height: 15px;
  padding: 0 3px;
  border-radius: 10px;
  background: #d77b49;
  color: white;
  font-size: 9px;
  font-weight: 700;
}
.notification-bell > span[hidden] {
  display: none;
}
.place-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.place-actions .place-wish {
  width: 35px;
  height: 35px;
  font-size: 23px;
}
.place-alert {
  display: flex;
  gap: 5px;
  align-items: center;
  border: 1px solid #d5dec9;
  border-radius: 9px;
  background: #fff;
  color: var(--green);
  font-size: 10px;
  padding: 10px 8px;
  min-height: 36px;
}
.place-alert.enabled {
  background: #e1ecd6;
  border-color: #aac394;
  font-weight: 700;
}
.place-price-row strong {
  font-size: 30px;
}
.place-change {
  margin-left: 6px;
  font-size: 10px;
}
.notification-list {
  margin: 20px 0;
}
.notification-item {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 10px;
  background: white;
  border: 1px solid var(--line);
  padding: 15px 12px;
  border-radius: 10px;
  width: 100%;
  margin-bottom: 9px;
  color: var(--ink);
}
.notification-item > div {
  flex: 1;
}
.notification-item b,
.notification-item span,
.notification-item small {
  display: block;
}
.notification-item b {
  font-size: 12px;
}
.notification-item div > span {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.notification-item small {
  font-size: 10px;
  color: var(--green);
  margin-top: 7px;
}
.notification-dot {
  height: 7px;
  width: 7px;
  background: #d77b49;
  border-radius: 50%;
  flex-shrink: 0;
}
.notification-dot.read {
  background: #c9d4bf;
}
.notification-empty {
  font-size: 12px;
  color: var(--muted);
  padding: 30px 15px;
  background: #eeefe5;
  border-radius: 13px;
  line-height: 1.8;
}
.watchlist-title {
  text-align: left;
  font-size: 13px;
  margin-top: 25px;
}
.watchlist > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.watchlist .link {
  padding: 0;
  text-align: left;
}
.watch-remove {
  background: none;
  color: var(--muted);
  padding: 5px 9px;
}
.account {
  gap: 9px;
}
@media (max-width: 360px) {
  .place-price-row {
    align-items: flex-start;
  }
  .place-actions {
    flex-direction: column;
    gap: 5px;
  }
  .place-change {
    font-size: 9px;
    padding: 4px;
  }
}
.place-sell {
  width: 100%;
  margin: -8px 0 12px;
  font-size: 12px;
}
.place-auction-row {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.place-auction-row:last-child {
  border: 0;
}
.place-auction-row > .row + .row {
  margin-top: 12px;
}
.place-auction-row .tiny {
  display: block;
  margin-top: 5px;
  font-size: 9px;
}
.place-auction-row strong {
  display: block;
  color: var(--green);
  font-size: 18px;
}
.place-auction-row b {
  font-size: 12px;
}
.place-auction-row .btn {
  font-size: 10px;
  padding: 10px 11px;
}
.place-auction-row .auction-status {
  font-size: 10px;
}
.auction-group-count {
  font-size: 11px;
  color: var(--green);
  margin: 10px 0;
}
.sale-notice {
  background: #f1efe3;
  color: #8b7134;
  border-radius: 8px;
  padding: 11px;
  font-size: 10px;
  line-height: 1.6;
  margin-top: 10px;
}
header {
  height: 52px;
  min-height: 52px;
  padding: 0 18px;
  gap: 12px;
}
#header-back {
  flex: 1;
}
.header-back-button {
  display: inline-flex;
  align-items: center;
  background: none;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  padding: 10px 0;
}
.account .avatar {
  width: 29px;
  height: 29px;
  font-size: 11px;
}
.account .coin {
  padding: 6px 10px;
  font-size: 11px;
}
.notification-bell {
  height: 30px;
}
.inline-map {
  height: calc(100dvh - 294px);
}
.pack-home {
  min-height: calc(100dvh - 184px);
}
.challenge-how {
  padding: 16px;
  border-radius: 12px;
  background: #e9eedf;
  margin: 0 0 18px;
  line-height: 1.6;
}
.challenge-how b {
  font-size: 12px;
}
.challenge-how p {
  font-size: 10px;
  margin: 7px 0 0;
}
.goal-selected {
  border-color: #8eb078;
  box-shadow: 0 0 0 2px #dce9d0;
}
.goal-tag {
  font-size: 9px;
  color: var(--green);
}
.goal-section-label {
  font-size: 8px;
  letter-spacing: 1.5px;
  font-weight: 800;
  color: var(--muted);
  margin: 16px 0 7px;
}
.goal-objective {
  font-size: 12px;
  color: var(--ink);
  margin: 0 0 14px;
  line-height: 1.6;
}
.goal-conditions {
  font-size: 9px;
  line-height: 1.8;
  color: var(--muted);
}
.goal-list-link {
  padding: 14px 0;
  display: block;
  text-align: left;
}
.challenge-tile > .btn {
  width: 100%;
  font-size: 12px;
  min-height: 42px;
}
.goal-banner {
  background: #edf1e4;
  border: 1px solid #d2dfc2;
  border-radius: 12px;
  padding: 14px;
  text-align: left;
  margin: 15px 0;
  width: 100%;
  max-width: 100%;
}
.goal-banner strong {
  font-size: 13px;
  display: block;
  margin: 8px 0;
}
.goal-banner .tiny {
  font-size: 10px;
  line-height: 1.6;
}
.goal-banner .link {
  padding: 10px 0 0;
  font-size: 11px;
}
.goal-banner .row > b {
  font-size: 12px;
  color: var(--green);
}
.goal-detail-reward {
  padding: 15px;
  border-radius: 12px;
  background: #f1ead4;
  text-align: left;
  margin: 15px 0;
}
.goal-detail-reward b {
  display: block;
  font-size: 14px;
}
.goal-detail-reward span {
  display: block;
  font-size: 10px;
  line-height: 1.7;
  margin-top: 6px;
  color: #8a7135;
}
.goal-detail-conditions {
  text-align: left;
  font-size: 11px;
  margin: 20px 0;
  line-height: 1.7;
}
.goal-detail-conditions ul {
  padding-left: 17px;
  color: var(--muted);
  font-size: 10px;
}
.goal-detail-conditions li {
  margin: 6px 0;
}
.goal-check-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 7px;
}
.challenge-checklist .goal-place {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 8px;
  border: 0;
  padding: 12px 3px;
  min-width: 0;
}
.goal-place span:last-child {
  font-size: 11px;
}
.goal-place small {
  display: block !important;
  margin: 4px 0 0 !important;
  font-size: 9px;
}
.challenge-checklist .goal-hunt {
  width: auto;
  white-space: nowrap;
  font-size: 10px;
  border: 0;
  padding: 10px 0;
  color: var(--green);
  font-weight: 700;
}
.goal-play-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.goal-market-toggle {
  width: 100%;
  text-align: left;
  border: 1px solid #d4dfc8;
  background: #f1f4eb;
  padding: 12px;
  border-radius: 10px;
  font-size: 11px;
  color: var(--green);
  margin-bottom: 14px;
}
.goal-market-toggle.selected {
  background: #e0ecd4;
  border-color: #99b783;
  font-weight: 700;
}
.goal-card-hint {
  background: #e4efda;
  color: var(--green);
  padding: 8px;
  border-radius: 7px;
  font-size: 10px;
  line-height: 1.5;
  margin-top: 10px;
}
.pack-home > .goal-banner {
  max-width: 290px;
}
.sale-slots {
  background: #eaf0e2;
  border: 1px solid #d5e0ca;
  color: var(--green);
  border-radius: 10px;
  padding: 13px;
  font-size: 11px;
  margin: 0 0 17px;
  line-height: 1.7;
}
.sale-slots b {
  font-size: 16px;
  margin-right: 7px;
}
.sale-slots span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.pack-stage:not(:disabled) .pack {
  animation: pack-invitation 4.8s ease-in-out infinite;
  will-change: transform;
}
.pack-stage:not(:disabled) .pack-halo {
  animation: pack-glow 4.8s ease-in-out infinite;
}
.pack-stage:hover .pack,
.pack-stage:focus-visible .pack {
  animation-play-state: paused;
}
.pack-stage:active .pack {
  animation: none;
  transform: rotate(-3deg) scale(0.97);
}
@keyframes pack-invitation {
  0%,
  100% {
    transform: translateY(0) rotate(-7deg);
  }
  45% {
    transform: translateY(-6px) rotate(-4deg);
  }
  65% {
    transform: translateY(-4px) rotate(-5deg);
  }
}
@keyframes pack-glow {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pack-stage .pack,
  .pack-stage .pack-halo {
    animation: none !important;
    will-change: auto;
  }
}

/* Mobile app shell */
header {
  padding-top: env(safe-area-inset-top);
  box-sizing: content-box;
}
.toast a,
.photo-credit a {
  color: inherit;
}
body.logged-out header,
body.logged-out nav,
body.logged-out footer {
  display: none;
}
body.logged-out {
  padding-bottom: 0;
}

/* Auth */
.auth {
  max-width: 380px;
  margin: 6vh auto 0;
  text-align: center;
}
.auth-brand {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin-bottom: 28px;
}
.auth-brand .globe {
  font-size: 54px;
  color: var(--green);
  line-height: 1;
}
.auth-brand b {
  font: 800 34px Manrope;
  letter-spacing: 6px;
}
.auth-brand span:last-child {
  color: var(--muted);
}
.auth-mission {
  margin: 0 0 26px;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  text-align: left;
}
.auth-mission .eyebrow {
  color: var(--orange);
}
.auth-mission h1 {
  margin: 6px 0 8px;
  font-size: 26px;
  line-height: 1.15;
}
.auth-mission > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.auth-mission ol {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
}
.auth-mission li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.auth-mission li > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eef4ec;
  color: var(--green);
}
.auth-mission li b {
  display: block;
  color: var(--ink);
}
.auth-mission .tiny {
  margin: 14px 0 0;
}
.auth-notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff4e8;
  color: #8a4b17;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}
.auth-tabs {
  margin-bottom: 18px;
}
.auth-form {
  display: grid;
  text-align: left;
  gap: 2px;
}
.auth-form .btn {
  margin-top: 18px;
  width: 100%;
}
.auth .tiny {
  margin-top: 16px;
}

/* Profile */
.leaderboard {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.leaderboard li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.leaderboard li:last-child {
  border-bottom: 0;
}
.leaderboard li.me {
  background: #eef4ec;
}
.leaderboard li.gap {
  display: block;
  padding: 2px 14px;
  text-align: center;
  color: #939a8b;
}
.leaderboard .rank {
  font-weight: 800;
  color: var(--green);
}
.settings {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}
.setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: left;
}
.setting > div {
  display: grid;
  gap: 3px;
}
.setting .btn {
  flex-shrink: 0;
}
.push-cta {
  width: 100%;
  margin: 6px 0 12px;
}

/* Google Maps photos on cards */
.art-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.art-credit {
  position: absolute;
  right: 6px;
  bottom: 5px;
  max-width: calc(100% - 12px);
  padding: 2px 6px;
  border-radius: 6px;
  background: #0007;
  color: #fff;
  font-size: 8px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.art .rarity {
  z-index: 1;
}

/* Card art without photo */
.art-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 46px;
  color: #ffffffb0;
  background: linear-gradient(150deg, #8fae95, #4f7a63);
}
.art-incontournable .art-placeholder {
  background: linear-gradient(150deg, #8fb5cf, #3f6f95);
}
.art-culte .art-placeholder {
  background: linear-gradient(150deg, #b9a0cc, #6f4f8f);
}
.art-legendaire .art-placeholder {
  background: linear-gradient(150deg, #e3c77d, #a87a25);
}
.place-photo .art-placeholder {
  font-size: 70px;
}
.card.unowned .art {
  filter: grayscale(1) opacity(0.55);
}
.card.unowned h3 {
  color: var(--muted);
}
.place-change.down,
small.down {
  color: #a6493a;
  background: #f6e3de;
}
small.up {
  color: var(--green);
}
.chart-empty {
  padding: 30px 0;
  text-align: center;
}

/* Header search and market */
#header-back {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
#header-back-slot:empty {
  display: none;
}
.header-back-button {
  font-size: 20px;
  padding: 6px 4px;
}
.header-search {
  flex: 1;
  min-width: 0;
}
.header-search input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px 11px 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23879083' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") no-repeat 12px center;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
}
.header-search {
  position: relative;
}
.search-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  max-height: 70vh;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(35, 61, 53, 0.18);
}
.search-suggest .tiny {
  margin: 8px 10px;
}
.suggest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ink);
  text-align: left;
}
.suggest-item:hover,
.suggest-item:focus-visible {
  background: #f1f5ee;
}
.suggest-item > span:last-child {
  display: grid;
  min-width: 0;
}
.suggest-item b,
.suggest-item small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.suggest-item b {
  font-size: 14px;
}
.suggest-item small {
  color: var(--muted);
  font-size: 11px;
}
.suggest-dot {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #f6f4ec;
}
.suggest-all {
  width: 100%;
  margin-top: 4px;
  padding: 10px;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}
.header-search input:focus {
  outline: 2px solid #f0a040;
  border-color: #f0a040;
}
.market-tabs.four button {
  font-size: 12px;
  padding-left: 4px;
  padding-right: 4px;
}

/* All cards */
.map-search {
  display: flex;
  gap: 8px;
  margin: 16px 0 8px;
}
.map-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px;
  border-radius: 9px;
  color: var(--ink);
}
.map-results {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}
.map-results button {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  text-align: left;
}
.map-results span {
  font-size: 11px;
  color: var(--muted);
}
.map-focus {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: #e7eee3;
  font-size: 12px;
}
.catalog-item {
  display: grid;
  gap: 6px;
}
.catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}
.catalog-meta small {
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 5px;
}
.catalog-bell {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 15px;
}
.catalog-bell.enabled {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.catalog-distance {
  text-align: right;
}

/* Seven place tiers: Banal → Légendaire */
.rarity.t-banal {
  color: #6f766c;
  background: #eef0ea;
}
.rarity.t-coin {
  color: #3f6b48;
  background: #e3f0de;
}
.rarity.t-adresse {
  color: #1f6f66;
  background: #dcf1ec;
}
.rarity.t-mythique {
  color: #9b2f4b;
  background: #fbe2e8;
}
.rarity-coin {
  --rarity-color: #9cc39f;
  --rarity-bg: #eef6ea;
  --rarity-ink: #3f6b48;
}
.rarity-adresse {
  --rarity-color: #82c2b8;
  --rarity-bg: #e6f5f1;
  --rarity-ink: #1f6f66;
  box-shadow: 0 3px 0 #bfe0d9;
}
.rarity-mythique {
  --rarity-color: #d98ea2;
  --rarity-bg: #fcebef;
  --rarity-ink: #9b2f4b;
  box-shadow:
    0 3px 0 #ebbdc9,
    0 0 12px #d9708d18;
}
.market-item:has(.rarity-mythique) {
  border-color: #e2a9b8;
  background: #fef6f8;
}
.art-coin .art-placeholder {
  background: linear-gradient(150deg, #a9c9a2, #5b8a5f);
}
.art-adresse .art-placeholder {
  background: linear-gradient(150deg, #8fcfc3, #2f8f83);
}
.art-mythique .art-placeholder {
  background: linear-gradient(150deg, #e6a4b5, #b0405f);
}
.tier-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 4px;
}
.tier-counts .rarity {
  position: static;
}
.place-discard {
  display: block;
  margin: 8px auto 0;
  font-size: 12px;
  color: var(--muted);
}
.load-more {
  display: block;
  margin: 18px auto;
}

/* Map bottom sheet */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: #172f2930;
}
.sheet {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(460px, 100%);
  box-sizing: border-box;
  padding: 10px 16px calc(18px + env(safe-area-inset-bottom));
  background: var(--cream);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -8px 30px #0003;
  animation: sheet-in 0.22s ease-out;
}
@keyframes sheet-in {
  from {
    transform: translate(-50%, 100%);
  }
}
.sheet-handle {
  display: block;
  width: 44px;
  height: 5px;
  margin: 0 auto 14px;
  padding: 0;
  border-radius: 3px;
  background: #cfd5cb;
}
.sheet-top {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  align-items: start;
}
.sheet-art .art {
  height: 112px;
}
.sheet-info h2 {
  margin: 4px 0 6px;
  font: 800 19px/1.2 Manrope;
}
.sheet-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
}
.sheet-stats b {
  font-size: 16px;
}
.sheet-stats small {
  padding: 1px 5px;
  border-radius: 5px;
}
.sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.sheet-actions .btn {
  flex: 1 1 auto;
  text-decoration: none;
}
.sheet-actions .alert-on {
  background: var(--green);
  color: #fff;
}

/* Pills: the app-wide control for tabs and filters (one scrollable row) */
.pills {
  display: flex;
  gap: 8px;
  margin: 0 -19px 10px;
  padding: 4px 19px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.filter-bar {
  position: sticky;
  top: var(--header-h, 73px);
  z-index: 6;
  margin: 0 -19px 12px;
  padding: 8px 19px 2px;
  background: var(--cream);
  box-shadow: 0 8px 12px -12px rgba(35, 61, 53, 0.35);
  transition: transform 0.22s ease;
}
.filter-bar.tucked {
  transform: translateY(calc(-100% - 12px));
}
.filter-bar .pills {
  margin-bottom: 6px;
}
.list-sentinel {
  grid-column: 1 / -1;
  height: 1px;
}
.pills::-webkit-scrollbar {
  display: none;
}
.pills button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 1px 2px #233d3510;
  transition:
    background 0.15s,
    color 0.15s,
    transform 0.1s;
}
.pills button:active {
  transform: scale(0.97);
}
.pills .pill-icon {
  font-size: 13px;
  color: var(--green);
}
.pills .pill-count {
  min-width: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e7eee3;
  color: var(--green);
  font-size: 11px;
  text-align: center;
}
.pills button.selected {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 4px 12px #256b5133;
}
.pills button.selected .pill-icon {
  color: #fff;
}
.pills button.selected .pill-count {
  background: #ffffff2e;
  color: #fff;
}
.tier-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  background: #9aa39a;
}
.tier-dot.t-coin { background: #56805c; }
.tier-dot.t-adresse { background: #2f8f83; }
.tier-dot.t-incontournable { background: #4b8bb6; }
.tier-dot.t-culte { background: #9c6cb6; }
.tier-dot.t-mythique { background: #c0506a; }
.tier-dot.t-legendaire { background: #c29639; }
.pills button.selected .tier-dot {
  box-shadow: 0 0 0 2px #fff;
}
.auth .pills {
  justify-content: center;
  margin-bottom: 18px;
}
.place-panel .pills {
  margin: 0;
  padding: 0;
}
.place-panel .pills button {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
}
.catalog-meta span,
.catalog-meta .link {
  white-space: nowrap;
  font-size: 11px;
}
.catalog-meta > span:first-child {
  font-size: 13px;
}
.catalog-item {
  min-width: 0;
}
.catalog-meta {
  gap: 4px;
}
.catalog-meta .catalog-bell {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

/* Shared page header: section label + explicit List / Map switch */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  margin: 2px 0 14px;
}
.page-head .eyebrow {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.view-toggle {
  flex-shrink: 0;
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: #e9e7de;
}
.view-toggle button {
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.view-toggle button.selected {
  background: #f0983a;
  color: #fff;
  box-shadow: 0 3px 10px #f0983a44;
}

/* Players, friends and trades */
.player-avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e0e9d5;
  color: var(--green);
  font: 800 13px Manrope;
}
.player-results {
  margin: 4px 0 14px;
}
.player-results .eyebrow {
  margin-bottom: 8px;
}
.player-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.player-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  text-align: left;
}
.player-chip small {
  color: var(--muted);
  font-size: 11px;
}
.player-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 4px 0 18px;
}
.player-actions .btn {
  flex: 1 1 auto;
}
.friend-request {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #f3d3b4;
  border-radius: 14px;
  background: #fff8f0;
}
.friend-request .player-chip {
  flex: 1;
  border: 0;
  background: none;
}
.friend-request .btn {
  width: auto;
  padding: 9px 14px;
}
.leaderboard-name {
  justify-self: start;
  padding: 0;
  color: var(--ink);
  font-weight: 800;
  text-align: left;
}
.trade-card {
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.trade-card.pending {
  border-color: #f3d3b4;
}
.trade-card.declined,
.trade-card.cancelled {
  opacity: 0.6;
}
.trade-card p {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
}
.trade-with {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  color: var(--ink);
  font-weight: 800;
}
.trade-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}
.trade-actions .btn {
  width: auto;
  padding: 9px 18px;
}
.trade-history summary {
  cursor: pointer;
  margin: 6px 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}
.trade-side {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.trade-side h2 {
  margin: 0 0 10px;
  font-size: 18px;
}
.trade-filter {
  margin: 10px 0 6px;
}
.trade-pool {
  max-height: 320px;
  overflow-y: auto;
}
.swap-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 2px;
  border-bottom: 1px solid var(--line);
}
.swap-row.picked {
  margin-bottom: 4px;
  padding: 8px 10px;
  border: 1px solid #b9d3c4;
  border-radius: 12px;
  background: #eef4ec;
}
.trade-name {
  flex: 1;
  min-width: 0;
  display: grid;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  text-align: left;
}
.trade-name b,
.trade-name small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.trade-name small {
  color: var(--muted);
  font-size: 11px;
}
.trade-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
}
.trade-qty button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  font-size: 16px;
  font-weight: 800;
}
.trade-qty button:disabled {
  opacity: 0.35;
}
.trade-summary {
  position: sticky;
  bottom: 86px;
  margin: 10px 0 20px;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(35, 61, 53, 0.12);
}
.trade-summary .row {
  font-size: 14px;
}
.trade-summary .btn {
  width: 100%;
  margin-top: 8px;
}

/* Install */
.install-dialog {
  text-align: center;
}
.install-hero {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 6px auto 12px;
  border-radius: 20px;
  background: var(--green);
  color: #fff;
  font-size: 40px;
}
.install-dialog .btn {
  width: 100%;
  margin-top: 14px;
}
.install-steps {
  margin: 14px 0 0;
  padding-left: 22px;
  text-align: left;
  line-height: 1.9;
}
.install-later {
  display: block;
  margin: 12px auto 0;
}

.player-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--green);
  font: inherit;
  text-decoration: underline;
  text-decoration-color: #b9d3c4;
  text-underline-offset: 3px;
  cursor: pointer;
}
.player-link.strong {
  font-weight: 800;
}

/* Map views work like a maps app: the map fills the whole screen behind the header, the filters and the bottom bar, which float on top of it. */
body:has(.inline-map:not([hidden])) {
  height: 100dvh;
  overflow: hidden;
}
body:has(.inline-map:not([hidden])) > header {
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  backdrop-filter: none;
}
body:has(.inline-map:not([hidden])) .filter-bar {
  position: static;
  margin-bottom: 0;
  padding-top: 0;
  background: transparent;
  box-shadow: none;
}
body:has(.inline-map:not([hidden])) > main {
  padding-top: 6px;
}
body:has(.inline-map:not([hidden])) .page-head {
  margin-bottom: 6px;
}
body:has(.inline-map:not([hidden])) > main > :not(.inline-map) {
  position: relative;
  z-index: 2;
}
body:has(.inline-map:not([hidden])) .page-head .eyebrow {
  background: #faf9f6e6;
  padding: 6px 10px;
  border-radius: 999px;
}
body:has(.inline-map:not([hidden])) > footer,
body:has(.inline-map:not([hidden])) .map-help,
body:has(.inline-map:not([hidden])) .market-disclaimer,
body:has(.inline-map:not([hidden])) #all-more {
  display: none;
}
.inline-map:not([hidden]) {
  /* Google Maps sets an inline position: relative on its container. */
  position: fixed !important;
  top: 0;
  bottom: 76px;
  left: 50%;
  transform: translateX(-50%);
  width: min(460px, 100%);
  height: auto;
  min-height: 0;
  border: 0;
  border-radius: 0;
  z-index: 0;
}
