/* Everfield orders, progression and recurring market routes. */

.meta-orders-v2,
.meta-events-v2 {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.meta-progression-grid {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.meta-progress-card {
  min-width: 0;
  padding: 8px 10px;
  border-radius: 13px;
  border: 1px solid rgba(111,65,35,.17);
  background: rgba(255,255,255,.58);
  display: grid;
  gap: 5px;
}

.meta-progress-card.is-complete {
  background: rgba(225,244,214,.64);
}

.meta-progress-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.meta-progress-heading strong {
  font-size: .78rem;
}

.meta-progress-heading span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .68rem;
  font-weight: 800;
  color: #705036;
}

.meta-progress-card small {
  font-size: .62rem;
  line-height: 1.18;
  color: #705b47;
}

.meta-bar {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(92,72,53,.15);
  box-shadow: inset 0 1px 2px rgba(50,35,22,.12);
}

.meta-bar > i {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #7bab54, #d6ae49);
  transition: width .18s ease;
}

.hat-goal-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.hat-goal-chip {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(116,91,67,.09);
  font-size: .58rem;
  font-weight: 800;
  white-space: nowrap;
}

.hat-goal-chip.is-done {
  background: rgba(86,145,60,.15);
  color: #496d34;
}

.meta-kpi-strip {
  margin-bottom: 0;
}

.meta-kpi-strip .kpi-card {
  padding-block: 6px;
}

.meta-kpi-strip .kpi-card small {
  line-height: 1.05;
}

.meta-order-grid {
  overflow: hidden;
}

.order-card-v2 {
  position: relative;
}

.order-card-v2.is-ready {
  border-color: rgba(73,128,51,.34);
  background: rgba(237,250,229,.75);
}

.order-card-v2 .order-source {
  display: block;
  margin-top: 4px;
  font-size: .67rem;
  line-height: 1.15;
  color: #715b47;
}

.order-card-v2.is-ready .order-source {
  color: #4e7436;
  font-weight: 800;
}

.orders-refresh-top:disabled,
.orders-refresh-inline:disabled {
  opacity: .45;
  cursor: default;
}

.event-route-count {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(109,145,68,.13);
  color: #506f38;
  font-size: .68rem;
  font-weight: 900;
}

.event-hero-v2 {
  flex: 0 0 auto;
  min-height: 112px;
  display: grid;
  grid-template-columns: 112px minmax(0,1fr);
  align-items: center;
  gap: 12px;
  padding: 7px 12px;
  border-radius: 15px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(111,65,35,.15);
}

.event-hero-v2 > img {
  width: 104px;
  height: 98px;
  object-fit: contain;
  align-self: end;
}

.event-hero-v2 h3 {
  margin: 1px 0 3px;
  font-size: 1rem;
}

.event-hero-v2 p {
  margin: 0;
  font-size: .76rem;
  line-height: 1.22;
}

.event-hero-v2 small {
  display: block;
  margin-top: 4px;
  font-size: .62rem;
  color: #725e4b;
}

.event-kicker {
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #6b843e;
}

.event-main-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(190px,.7fr);
  gap: 7px;
  overflow: hidden;
}

.event-goal-panel,
.event-reward-panel {
  min-height: 0;
  padding: 9px;
  border-radius: 14px;
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(111,65,35,.15);
}

.event-goal-panel h3,
.event-reward-panel h3 {
  margin: 0 0 6px;
  font-size: .78rem;
}

.event-goal-list {
  height: calc(100% - 22px);
  display: grid;
  grid-auto-rows: minmax(0,1fr);
  gap: 6px;
}

.event-goal {
  min-height: 0;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 7px 8px;
  border-radius: 11px;
  background: rgba(247,239,220,.8);
}

.event-goal.is-done {
  background: rgba(229,245,218,.84);
}

.event-goal > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.event-goal strong,
.event-goal span {
  font-size: .68rem;
}

.event-reward-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 4px;
}

.event-reward-values {
  display: grid;
  align-content: center;
  gap: 5px;
  text-align: center;
}

.event-reward-values strong {
  font-size: .82rem;
}

.event-reward-values span {
  font-size: .62rem;
  line-height: 1.15;
  color: #6d5945;
}

.event-reward-panel .ef-button {
  width: 100%;
  min-height: 37px;
}

.event-collection-strip {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.event-collection-strip > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 8px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 11px;
  background: rgba(88,117,153,.08);
}

.event-collection-strip strong,
.event-collection-strip span {
  font-size: .62rem;
}

.event-collection-strip .meta-bar {
  grid-column: 1 / -1;
  height: 6px;
}

.event-quiet-state {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(100px,220px) minmax(0,1fr);
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 18px;
  text-align: left;
}

.event-quiet-state img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.event-quiet-state h3 {
  margin: 0 0 6px;
}

.event-quiet-state p {
  margin: 0;
}

.meta-level-celebration {
  text-align: center;
  padding: 8px 4px;
}

.meta-level-badge {
  width: 72px;
  height: 72px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #e9c65c, #8aae55);
  border: 4px solid rgba(255,255,255,.8);
  box-shadow: 0 6px 18px rgba(68,50,28,.22);
  color: #fff;
  font-size: 1.7rem;
  font-weight: 900;
}

.meta-level-celebration h2 {
  margin: 4px 0;
}

.meta-level-celebration p {
  margin: 4px 0 8px;
}

.meta-level-celebration ul {
  display: inline-grid;
  gap: 4px;
  margin: 0;
  padding-left: 20px;
  text-align: left;
}

@media (max-width: 700px) {
  .meta-orders-v2,
  .meta-events-v2 { gap: 3px; }

  .meta-progression-grid { gap: 3px; }
  .meta-progress-card { padding: 4px 5px; gap: 2px; border-radius: 9px; }
  .meta-progress-heading { gap: 4px; }
  .meta-progress-heading strong { font-size: .56rem; }
  .meta-progress-heading span { font-size: .49rem; }
  .meta-progress-card small { font-size: .45rem; line-height: 1.05; }
  .meta-bar { height: 5px; }
  .hat-goal-lines { gap: 2px; }
  .hat-goal-chip { padding: 1px 3px; font-size: .43rem; }
  .meta-kpi-strip .kpi-card { padding: 3px; }

  .meta-order-grid { gap: 3px !important; }
  .order-card-v2 .order-source { margin-top: 0; font-size: .45rem; line-height: 1; grid-column: 2; }

  .event-route-count { padding: 2px 5px; font-size: .5rem; }
  .event-hero-v2 {
    min-height: 68px;
    grid-template-columns: 66px minmax(0,1fr);
    gap: 5px;
    padding: 3px 6px;
    border-radius: 9px;
  }
  .event-hero-v2 > img { width: 62px; height: 62px; }
  .event-hero-v2 h3 { margin: 0; font-size: .68rem; }
  .event-hero-v2 p { font-size: .51rem; line-height: 1.05; }
  .event-hero-v2 small { margin-top: 1px; font-size: .44rem; }
  .event-kicker { font-size: .42rem; }
  .event-main-grid { grid-template-columns: minmax(0,1.2fr) minmax(120px,.8fr); gap: 3px; }
  .event-goal-panel,
  .event-reward-panel { padding: 4px; border-radius: 9px; }
  .event-goal-panel h3,
  .event-reward-panel h3 { margin-bottom: 2px; font-size: .56rem; }
  .event-goal-list { height: calc(100% - 15px); gap: 3px; }
  .event-goal { gap: 2px; padding: 3px 4px; border-radius: 7px; }
  .event-goal strong,
  .event-goal span { font-size: .48rem; }
  .event-reward-values { gap: 2px; }
  .event-reward-values strong { font-size: .58rem; }
  .event-reward-values span { font-size: .44rem; }
  .event-reward-panel .ef-button { min-height: 28px; font-size: .5rem; padding-inline: 6px; }
  .event-collection-strip { gap: 3px; }
  .event-collection-strip > div { gap: 2px 4px; padding: 3px 4px; border-radius: 7px; }
  .event-collection-strip strong,
  .event-collection-strip span { font-size: .46rem; }
  .event-collection-strip .meta-bar { height: 4px; }
}

@media (max-width: 360px) {
  .meta-progress-card small { display: none; }
  .hat-goal-chip:nth-child(n+3) { display: none; }
  .order-card-v2 .order-source { display: none; }
  .event-hero-v2 small { display: none; }
}

@media (max-height: 650px) and (max-width: 700px) {
  .meta-progress-card small { display: none; }
  .meta-progression-grid { min-height: 38px; }
  .order-card-v2 .order-source { display: none; }
  .event-hero-v2 { min-height: 54px; grid-template-columns: 52px minmax(0,1fr); }
  .event-hero-v2 > img { width: 48px; height: 48px; }
  .event-hero-v2 small { display: none; }
}

@media (orientation: landscape) and (max-height: 520px) {
  .meta-progression-grid { grid-template-columns: 1fr 1fr; }
  .meta-progress-card { padding: 3px 5px; }
  .meta-progress-card small { display: none; }
  .hat-goal-lines { flex-wrap: nowrap; overflow: hidden; }
  .order-card-v2 .order-source { display: none; }
  .event-hero-v2 { display: none; }
  .event-main-grid { grid-template-columns: 1.4fr .6fr; }
  .event-collection-strip > div { padding-block: 2px; }
}
