/* Saga Member V89 — Home Tier Journey */
.v89-tier-trigger {
  box-sizing: border-box;
  display: grid;
  min-width: 112px;
  min-height: 44px;
  padding: 2px 10px 2px 0;
  gap: 2px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 120ms ease-out, transform 120ms ease-out;
}

.v89-tier-trigger span { color: #34432a; font-size: 0.75rem; font-weight: 650; }
.v89-tier-trigger strong { display: inline-flex; align-items: center; gap: 4px; font-size: 1.06rem; font-variant-numeric: tabular-nums; }
.v89-tier-trigger i { display: inline-grid; place-items: center; font-style: normal; }
.v89-tier-trigger:hover { opacity: 0.86; }
.v89-tier-trigger:active { transform: translateY(1px); }
.v89-tier-trigger:focus-visible { outline: 3px solid #bff45f; outline-offset: 3px; }
.v89-tier-detail-trigger { display: inline-flex; min-height: 44px; align-items: center; gap: 3px; }

.v89-tier-dialog {
  width: min(420px, calc(100% - 16px));
  max-width: none;
  max-height: calc(100dvh - max(16px, env(safe-area-inset-top)) - max(8px, env(safe-area-inset-bottom)));
  margin: auto auto max(8px, env(safe-area-inset-bottom));
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 28px;
  background: transparent;
  color: #211915;
}

.v89-tier-dialog::backdrop { background: rgb(27 20 17 / 68%); }

.v89-tier-panel {
  position: relative;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-height: inherit;
  padding: 16px 18px calc(18px + env(safe-area-inset-bottom));
  overflow: auto;
  gap: 14px;
  border: 1px solid rgb(104 70 50 / 16%);
  border-radius: inherit;
  background: #fffaf1;
  box-shadow: 0 28px 72px rgb(26 18 15 / 34%);
  overscroll-behavior: contain;
}

.v89-tier-panel::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: radial-gradient(rgb(93 61 45 / 10%) 0.7px, transparent 0.8px);
  background-size: 9px 9px;
  content: "";
  opacity: 0.2;
  pointer-events: none;
}

.v89-tier-panel > * { position: relative; min-width: 0; }
.v89-tier-handle { width: 42px; height: 4px; margin: 0 auto 1px; border-radius: 999px; background: rgb(33 25 21 / 19%); }
.v89-tier-close { position: absolute; top: 13px; right: 13px; width: 44px; height: 44px; }
.v89-tier-heading { display: grid; padding-right: 50px; gap: 6px; }
.v89-tier-heading .eyebrow { margin: 0; color: #9f4e2b; }
.v89-tier-heading h2 { max-width: 12ch; margin: 0; font-size: clamp(1.65rem, 8vw, 2.05rem); line-height: 1.04; text-wrap: balance; }
.v89-tier-heading h2:focus { outline: none; }
.v89-tier-heading p { max-width: 31ch; margin: 0; color: #6d5f57; font-size: 0.82rem; line-height: 1.5; text-wrap: pretty; }

.v89-tier-ticket {
  container-type: inline-size;
  display: grid;
  min-height: 126px;
  padding: 17px;
  gap: 13px;
  overflow: hidden;
  border-radius: 22px;
  background: #2c1c17;
  color: #fffaf1;
  box-shadow: 0 14px 30px rgb(44 28 23 / 18%);
}

.v89-tier-ticket-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 12px; }
.v89-tier-ticket-head > div { min-width: 0; }
.v89-tier-ticket-head span { color: rgb(255 250 241 / 66%); font-size: 0.7rem; font-weight: 700; }
.v89-tier-ticket-head strong { display: block; margin-top: 2px; color: #f3a16d; font-size: clamp(1.55rem, 8vw, 1.9rem); line-height: 1; overflow-wrap: anywhere; }
.v89-tier-xp { min-width: 0; text-align: right; }
.v89-tier-xp strong { color: #fffaf1; font-size: 1.12rem; font-variant-numeric: tabular-nums; }
.v89-tier-target { display: grid; gap: 7px; }
.v89-tier-target-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); align-items: end; gap: 12px; }
.v89-tier-target-row span { color: rgb(255 250 241 / 72%); font-size: 0.72rem; }
.v89-tier-target-row strong { min-width: 0; font-size: 0.8rem; text-align: right; overflow-wrap: anywhere; }
.v89-tier-track { height: 8px; overflow: hidden; border: 1px solid rgb(255 250 241 / 15%); border-radius: 999px; background: rgb(255 250 241 / 12%); }
.v89-tier-track span { display: block; width: var(--tier-progress, 0%); height: 100%; border-radius: inherit; background: #f3a16d; transform-origin: left center; }

.v89-tier-clarifier { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; padding: 12px 13px; gap: 10px; border: 1px solid rgb(104 70 50 / 14%); border-radius: 17px; background: #fffdf8; }
.v89-tier-clarifier > i { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 14px; background: #f2ded0; color: #7f3e25; }
.v89-tier-clarifier strong { display: block; font-size: 0.86rem; }
.v89-tier-clarifier span { display: block; margin-top: 2px; color: #6d5f57; font-size: 0.72rem; line-height: 1.45; text-wrap: pretty; }

.v89-tier-benefit { display: grid; padding: 13px 14px; gap: 5px; border-left: 3px solid #e2784d; background: rgb(241 222 208 / 42%); }
.v89-tier-benefit span { color: #765d51; font-size: 0.68rem; font-weight: 750; }
.v89-tier-benefit p { margin: 0; font-size: 0.78rem; line-height: 1.48; text-wrap: pretty; }
.v89-tier-demo { margin: 0; color: #6d5f57; font-size: 0.7rem; line-height: 1.45; text-wrap: pretty; }
.v89-tier-actions .button { min-height: 48px; }

@container (width < 19em) {
  .v89-tier-ticket-head,
  .v89-tier-target-row { grid-template-columns: minmax(0, 1fr); }
  .v89-tier-xp,
  .v89-tier-target-row strong { text-align: left; }
}

@media (max-width: 340px), (max-height: 650px) {
  .v89-tier-panel { padding-inline: 15px; gap: 11px; }
  .v89-tier-ticket { min-height: 108px; }
}

@media (prefers-reduced-motion: reduce) {
  .v89-tier-trigger { transition: none; }
}

@media (forced-colors: active) {
  .v89-tier-trigger,
  .v89-tier-panel,
  .v89-tier-ticket,
  .v89-tier-clarifier,
  .v89-tier-benefit,
  .v89-tier-track {
    border: 1px solid CanvasText;
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
  }
  .v89-tier-track span { background: Highlight; }
  .v89-tier-dialog::backdrop { background: rgb(0 0 0 / 70%); }
}
