/* Phone controller: dark stage, cream instruments, thumb-sized targets. */

.controller {
  height: 100dvh;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

.ctl {
  position: relative;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom)
    env(safe-area-inset-left);
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 107, 53, 0.28), transparent 45%),
    radial-gradient(circle at 85% 100%, rgba(127, 227, 196, 0.18), transparent 50%),
    var(--ink);
}

.ctl__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: var(--paper);
  opacity: 0.05;
  background-image: radial-gradient(currentColor 1px, transparent 1.1px);
  background-size: 6px 6px;
}

.view {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  overflow: auto;
  scrollbar-width: none;
}

.view::-webkit-scrollbar {
  display: none;
}

/* ------------------------------------------------------------- join */

.view--join {
  justify-content: center;
  gap: 18px;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
}

.join-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.brand--stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.brand__mark {
  width: 54px;
  height: 54px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--paper);
}

.wordmark em {
  font-style: normal;
  color: var(--tangerine);
}

.join-head .tag {
  color: rgba(255, 243, 226, 0.55);
  font-size: 9px;
}

.join-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field label,
.field__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 243, 226, 0.62);
}

.input {
  width: 100%;
  padding: 13px 15px;
  border: 3px solid var(--ink);
  border-radius: 13px;
  background: var(--paper-card);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  outline: none;
  transition: box-shadow 140ms ease;
}

.input::placeholder {
  color: rgba(36, 24, 38, 0.32);
  font-weight: 500;
}

.input:focus {
  box-shadow: 0 0 0 3px var(--tangerine);
}

.input--code {
  font-family: var(--font-mono);
  font-size: 34px;
  letter-spacing: 0.3em;
  text-align: center;
  text-transform: uppercase;
  padding: 10px 8px 10px 18px;
}

.field__help {
  font-size: 10px;
  color: rgba(255, 243, 226, 0.42);
}

.cat-picker {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin-top: 2px;
}

.cat-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 3px;
  border: 2px solid rgba(255, 243, 226, 0.18);
  border-radius: 12px;
  background: rgba(255, 243, 226, 0.06);
  transition: transform 140ms var(--ease-pop), border-color 140ms ease, background 140ms ease;
}

.cat-option svg {
  width: 100%;
  height: 100%;
}

.cat-option[aria-checked='true'] {
  border-color: var(--tangerine);
  background: rgba(255, 107, 53, 0.18);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
}

.cat-option__name {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translate(-50%, 100%);
  font-size: 7px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  white-space: nowrap;
}

.join-submit {
  width: 100%;
  margin-top: 4px;
}

.join-error {
  min-height: 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--berry);
  text-align: center;
}

.join-foot {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 243, 226, 0.34);
}

.join-foot span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.join-foot span + span::before {
  content: '·';
  color: var(--tangerine);
}

/* ------------------------------------------------------------ shared */

.ctl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: none;
}

.pill {
  border-color: rgba(255, 243, 226, 0.28);
  background: rgba(255, 243, 226, 0.07);
  color: var(--paper);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.pill b {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--butter);
  letter-spacing: 0.1em;
}

.dot {
  background: #38c172;
}

/* ------------------------------------------------------------- lobby */

.view--lobby {
  justify-content: space-between;
  gap: 10px;
}

.lobby-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 10px 0;
}

.lobby-avatar {
  width: clamp(96px, 28vw, 132px);
  height: clamp(96px, 28vw, 132px);
  padding: 8px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: rgba(255, 243, 226, 0.08);
  box-shadow: 0 0 0 6px rgba(255, 107, 53, 0.18);
}

.lobby-avatar svg {
  width: 100%;
  height: 100%;
}

.lobby-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 8vw, 38px);
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lobby-note {
  font-size: 12px;
  color: rgba(255, 243, 226, 0.6);
  max-width: 30ch;
}

.lobby-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

.btn--ready {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 200px;
  justify-content: center;
  padding: 14px 24px;
  font-size: 13px;
  color: var(--ink);
}

.btn--ready[aria-pressed='true'] {
  background: var(--paper-card);
}

.ready-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: transparent;
}

.btn--ready[aria-pressed='true'] .ready-dot {
  background: #2fae74;
}

.emote-row {
  display: flex;
  gap: 6px;
}

.emote {
  padding: 7px 12px;
  border: 2px solid rgba(255, 243, 226, 0.26);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  transition: transform 120ms var(--ease-pop), background 120ms ease;
}

.emote:active {
  transform: scale(0.92);
  background: rgba(255, 107, 53, 0.35);
}

.link-btn {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 243, 226, 0.4);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* -------------------------------------------------------------- play */

.view--play {
  gap: 6px;
  padding: 12px 14px calc(10px + env(safe-area-inset-bottom));
  overflow: hidden;
}

.play-identity {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.play-avatar {
  width: 34px;
  height: 34px;
  flex: none;
}

.play-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1;
  max-width: 34vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.play-sub {
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 243, 226, 0.5);
  margin-top: 2px;
}

.play-stats {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 2px solid rgba(255, 243, 226, 0.22);
  border-radius: 8px;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 243, 226, 0.62);
}

.stat b {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--paper);
}

.stat--damage b {
  color: var(--butter);
}

.stat--danger b {
  color: var(--berry);
}

.life-row {
  display: flex;
  gap: 3px;
}

.life {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tangerine);
  border: 1px solid rgba(255, 243, 226, 0.5);
}

.life--lost {
  background: transparent;
  opacity: 0.3;
}

.play-status {
  text-align: center;
  padding: 4px 0 2px;
  flex: none;
}

.status-line {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(15px, 4.6vw, 21px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.1;
}

.status-meta {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255, 243, 226, 0.5);
  margin-top: 2px;
}

.play-panel {
  flex: none;
  margin-top: auto;
  margin-bottom: 5vh;
  border: 2px dashed rgba(255, 243, 226, 0.22);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 243, 226, 0.04);
}

.panel-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.panel-sub {
  font-size: 10px;
  color: rgba(255, 243, 226, 0.55);
}

.panel-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.panel-actions--single {
  grid-template-columns: 1fr;
}

.panel-btn {
  padding: 14px 10px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: var(--butter);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45);
}

.panel-btn--alt {
  background: var(--mint);
}

.panel-btn small {
  display: block;
  font-family: var(--font-body);
  font-size: 8px;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin-top: 2px;
}

.panel-btn:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.roll-btn {
  padding: 20px;
  font-size: 22px;
  letter-spacing: 0.06em;
  background: var(--tangerine);
  color: #fff8ee;
}

.dice-result {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.dice-face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: var(--paper-card);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
}

/* ----------------------------------------------------------- controls */

.controls {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 2px 8px;
  touch-action: none;
  flex: none;
}

.stick-zone {
  position: relative;
  width: min(42vw, 158px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid rgba(255, 243, 226, 0.24);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 243, 226, 0.1), transparent 70%),
    rgba(255, 243, 226, 0.04);
  touch-action: none;
  flex: none;
}

.stick-ring {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 2px dashed rgba(255, 243, 226, 0.16);
}

.stick-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 38%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--tangerine);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(36, 24, 38, 0.55);
  will-change: transform;
}

.stick-knob svg {
  width: 45%;
  height: 45%;
}

.pad {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.pad-btn {
  width: min(23vw, 86px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(9px, 2.4vw, 12px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.4);
  transition: transform 80ms ease, box-shadow 80ms ease;
  touch-action: none;
  flex: none;
}

.pad-btn--jump {
  background: var(--mint);
  color: var(--ink);
}

.pad-btn--attack {
  background: var(--tangerine);
  color: #fff8ee;
  width: min(25vw, 96px);
}

.pad-btn.is-pressed {
  transform: translateY(4px) scale(0.97);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

.haptic-note {
  text-align: center;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 243, 226, 0.3);
  padding-bottom: 2px;
  flex: none;
}

/* ------------------------------------------------------------ results */

.view--results {
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.result-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.result-rank {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 18vw, 92px);
  line-height: 0.85;
  color: var(--butter);
  letter-spacing: -0.06em;
}

.result-avatar {
  width: 76px;
  height: 76px;
}

.result-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 7vw, 32px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.result-sub {
  font-size: 11px;
  color: rgba(255, 243, 226, 0.6);
}

.result-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.result-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 2px solid rgba(255, 243, 226, 0.16);
  border-radius: 9px;
  font-size: 11px;
}

.result-row--you {
  border-color: var(--tangerine);
  background: rgba(255, 107, 53, 0.14);
}

.result-row__rank {
  font-family: var(--font-mono);
  font-size: 10px;
  width: 18px;
  color: var(--butter);
}

.result-row__name {
  flex: 1;
  text-align: left;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-row__score {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 243, 226, 0.6);
}

.result-note {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 243, 226, 0.32);
}

/* -------------------------------------------------------------- toast */

.ctl__toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms var(--ease-pop);
  z-index: 40;
  max-width: 88vw;
  text-align: center;
}

.ctl__toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* --------------------------------------------------------- responsive */

@media (orientation: landscape) and (max-height: 520px) {
  .view--play {
    padding: 8px 18px calc(6px + env(safe-area-inset-bottom));
  }
  .play-status {
    padding: 0;
  }
  .controls {
    padding: 0 4px;
  }
  .stick-zone {
    width: min(30vh, 132px);
  }
  .pad-btn {
    width: min(24vh, 78px);
  }
  .pad-btn--attack {
    width: min(26vh, 86px);
  }
  .haptic-note {
    display: none;
  }
  .play-panel {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-height: 620px) {
  .join-head {
    gap: 2px;
  }
  .brand__mark {
    width: 40px;
    height: 40px;
  }
  .wordmark {
    font-size: 22px;
  }
  .join-form {
    gap: 10px;
  }
  .input--code {
    font-size: 28px;
  }
}

/* ---------------------------------------------------------------- Adoptable Cats & Location */
.picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.picker-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 999px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.picker-tab {
  background: transparent;
  border: none;
  color: #a89bb7;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.picker-tab--active {
  background: #FF6B35;
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

.location-bar {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 8px;
}

.location-bar__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #d0c6de;
  gap: 6px;
}

.location-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-text b {
  color: #ffcf66;
}

.location-btn {
  border: none;
  background: rgba(255, 107, 53, 0.2);
  color: #ff9a6c;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.location-btn:hover {
  background: rgba(255, 107, 53, 0.35);
  color: #fff;
}

.location-form {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.location-input {
  flex: 1;
  background: #140d1a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 12px;
}

.location-btn--go {
  background: #FF6B35;
  color: #fff;
}

.location-btn--gps {
  background: rgba(127, 227, 196, 0.2);
  color: #7fe3c4;
}

.cat-option {
  position: relative;
}

.cat-option__badge {
  position: absolute;
  bottom: 2px;
  left: 2px;
  background: rgba(255, 107, 53, 0.9);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  border-radius: 3px;
  padding: 1px 3px;
  pointer-events: none;
}

.cat-option__info-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #ffcf66;
  border: 1px solid rgba(255, 207, 102, 0.4);
  font-size: 10px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.cat-option__info-btn:hover {
  background: #ffcf66;
  color: #1a0f22;
}

/* ---------------------------------------------------------------- Adoption Modal */
.adopt-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.adopt-modal[hidden] {
  display: none;
}

.adopt-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 6, 16, 0.85);
  backdrop-filter: blur(6px);
}

.adopt-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  background: #201529;
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 36px rgba(0, 0, 0, 0.7);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.adopt-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.adopt-modal__hero {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
}

.adopt-modal__photo-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  background: #140d1a;
}

.adopt-modal__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.adopt-modal__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 107, 53, 0.95);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.adopt-modal__avatar-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 54px;
  height: 54px;
  background: rgba(18, 11, 24, 0.85);
  border: 2px solid #FF6B35;
  border-radius: 12px;
  padding: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.adopt-modal__name {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  margin: 0;
}

.adopt-modal__title {
  font-size: 12px;
  color: #ffcf66;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.adopt-modal__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill--dist {
  background: rgba(127, 227, 196, 0.15);
  color: #7fe3c4;
}

.adopt-modal__shelter-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shelter-label {
  font-size: 10px;
  color: #a89bb7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.adopt-modal__quote {
  border-left: 3px solid #FF6B35;
  padding-left: 10px;
  margin: 0;
  font-style: italic;
  font-size: 12px;
  color: #e2d9ec;
}

.adopt-modal__bio {
  font-size: 12px;
  line-height: 1.5;
  color: #c5b8d6;
  margin: 0;
}

.adopt-modal__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  padding: 8px;
}

.stat-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-lbl {
  font-size: 9px;
  font-weight: 800;
  color: #a89bb7;
  width: 44px;
}

.bar-wrap {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF6B35, #ffcf66);
  border-radius: 999px;
}

.btn--adopt {
  background: linear-gradient(135deg, #FF6B35 0%, #E83151 100%);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(232, 49, 81, 0.4);
  transition: transform 0.15s ease;
}

.btn--adopt:hover {
  transform: translateY(-1px);
}

/* ---------------------------------------------------------------- Results Discovery Card */
.results-adopt-card {
  margin: 14px 0;
  background: linear-gradient(180deg, rgba(255, 107, 53, 0.18) 0%, rgba(32, 21, 41, 0.95) 100%);
  border: 1px solid rgba(255, 107, 53, 0.4);
  border-radius: 14px;
  padding: 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.results-adopt-card__badge {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #ffcf66;
}

.results-adopt-card__body {
  display: flex;
  gap: 12px;
  align-items: center;
}

.results-adopt-card__photo {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid rgba(255, 107, 53, 0.5);
}

.results-adopt-card__info {
  flex: 1;
}

.results-adopt-card__name {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 2px 0;
}

.results-adopt-card__desc {
  font-size: 11px;
  color: #c9bed8;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.results-adopt-card__meta {
  display: flex;
  gap: 4px;
}

.pill--sm {
  font-size: 9px;
  padding: 2px 6px;
}


/* Purr-chase Inventory & Shop UI */
.inventory-strip {
  display: flex;
  flex: none;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 1px 5px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.inventory-strip::-webkit-scrollbar {
  display: none;
}

.inventory-item {
  flex: 0 0 min(46vw, 190px);
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 8px;
  padding: 8px;
  border: 2px solid rgba(255, 243, 226, 0.2);
  border-radius: 11px;
  background: rgba(255, 243, 226, 0.07);
}

.inventory-item__name {
  min-width: 0;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
}

.inventory-item__status {
  grid-column: 1 / -1;
  min-height: 12px;
  color: rgba(255, 243, 226, 0.58);
  font-size: 8px;
}

.inventory-use,
.shop-nav,
.shop-buy {
  min-height: 44px;
  border: 2px solid var(--ink);
  border-radius: 9px;
  background: var(--mint);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}

.inventory-use {
  padding: 0 10px;
}

.inventory-use:disabled,
.shop-buy:disabled {
  opacity: 0.42;
  box-shadow: none;
}

.shop-carousel {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: stretch;
  gap: 7px;
}

.shop-nav {
  align-self: center;
  padding: 0;
  font-size: 19px;
  background: var(--paper-card);
}

.shop-card {
  min-width: 0;
  min-height: 124px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 9px 10px;
  border: 2px solid rgba(255, 243, 226, 0.2);
  border-radius: 11px;
  background: rgba(255, 243, 226, 0.07);
  text-align: center;
}

.shop-card__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
}

.shop-card__price {
  color: var(--butter);
  font-family: var(--font-mono);
  font-size: 11px;
}

.shop-card__description {
  min-height: 28px;
  color: rgba(255, 243, 226, 0.68);
  font-size: 9px;
  line-height: 1.35;
}

.shop-count {
  color: rgba(255, 243, 226, 0.5);
  font-family: var(--font-mono);
  font-size: 9px;
  text-align: center;
}

.shop-buy {
  width: 100%;
  padding: 9px 12px;
  background: var(--tangerine);
  color: #fff8ee;
}

.shop-status {
  color: rgba(255, 243, 226, 0.7);
  font-size: 10px;
  line-height: 1.35;
  text-align: center;
}

.inventory-use:focus-visible,
.shop-nav:focus-visible,
.shop-buy:focus-visible {
  outline: 3px solid var(--butter);
  outline-offset: 2px;
}
