@font-face {
  font-display: swap;
  font-family: "Mr_dodo";
  font-style: normal;
  font-weight: 400;
  src: url("./mrdodo-regular.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Mr_dodo";
  font-style: normal;
  font-weight: 500;
  src: url("./mrdodo-medium.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Avenir";
  font-style: normal;
  font-weight: 400;
  src: url("./avenir-roman.woff2") format("woff2");
}

:root {
  --cream: #fff5da;
  --paper: #fffdf8;
  --paper-strong: #fff7e7;
  --forest: #57b947;
  --forest-deep: #472e19;
  --leaf: #8cc83c;
  --leaf-soft: #d9efb9;
  --melon: #ffb532;
  --berry: #f0645a;
  --berry-deep: #cf4d44;
  --sun: #ffdd35;
  --teal: #7fd08b;
  --sky: #8fd5ff;
  --ink: #472e19;
  --ink-soft: #7a614b;
  --line: rgba(71, 46, 25, 0.12);
  --shadow: 0 20px 40px rgba(71, 46, 25, 0.14);
  --shadow-soft: 0 12px 24px rgba(71, 46, 25, 0.09);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at top left, rgba(255, 221, 53, 0.22), transparent 30%),
    radial-gradient(circle at right 15% top 10%, rgba(87, 185, 71, 0.16), transparent 25%),
    linear-gradient(180deg, #fffaf0 0%, #fff3d3 100%);
  color: var(--ink);
  font-family: "Avenir", "Trebuchet MS", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  min-height: 100vh;
  overflow: hidden;
  padding: 32px 18px 40px;
  position: relative;
}

.ambient {
  border-radius: 999px;
  filter: blur(8px);
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

.ambient-one {
  background: rgba(255, 143, 77, 0.2);
  height: 220px;
  left: -40px;
  top: 120px;
  width: 220px;
}

.ambient-two {
  background: rgba(142, 179, 92, 0.22);
  bottom: 40px;
  height: 260px;
  right: -60px;
  width: 260px;
}

.app-shell {
  margin: 0 auto;
  max-width: 1280px;
  position: relative;
  z-index: 1;
}

.hero {
  background:
    linear-gradient(180deg, rgba(240, 100, 90, 0.98) 0%, rgba(240, 100, 90, 0.98) 34%, rgba(255, 181, 50, 0.98) 34%, rgba(255, 181, 50, 0.98) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent);
  border: 4px solid rgba(255, 255, 255, 0.55);
  border-radius: 38px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 30px;
  position: relative;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
}

.hero::before {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 52% 48% 0 0;
  height: 84px;
  inset: auto -10% 58% -10%;
  top: auto;
  width: auto;
}

.hero::after {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.46) 18%, transparent 20%) 0 0 / 18px 18px;
  height: 116px;
  opacity: 0.24;
  right: 30px;
  top: 34px;
  width: 160px;
}

.hero-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.9fr);
  position: relative;
}

.hero-grid--solo {
  grid-template-columns: minmax(0, 1fr);
}

.hero-copy {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  align-items: center;
  color: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 700;
  gap: 8px;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.eyebrow::before {
  background: var(--leaf);
  border-radius: 999px;
  content: "";
  display: block;
  height: 10px;
  width: 10px;
}

.hero h1 {
  color: white;
  font-family: "Mr_dodo", "Trebuchet MS", sans-serif;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 0.92;
  margin: 0 0 14px;
}

.hero p {
  color: rgba(255, 255, 255, 0.96);
  font-size: 1.03rem;
  line-height: 1.55;
  margin: 0;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.primary-btn,
.secondary-btn,
.danger-btn,
.mini-btn,
.pill-btn,
.stepper button,
.trade-stepper button {
  border: 0;
  border-radius: 14px;
  font-family: "Mr_dodo", "Trebuchet MS", sans-serif;
  letter-spacing: 0.01em;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    background 120ms ease;
}

.primary-btn:hover,
.secondary-btn:hover,
.danger-btn:hover,
.mini-btn:hover,
.pill-btn:hover,
.stepper button:hover,
.trade-stepper button:hover,
.collection-card:hover {
  transform: translateY(-2px);
}

.primary-btn {
  background: var(--forest);
  box-shadow: 0 10px 0 rgba(71, 46, 25, 0.18);
  color: white;
  padding: 12px 18px;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.82);
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: var(--forest-deep);
  padding: 11px 17px;
}

.secondary-btn.is-soft {
  background: var(--paper);
  border: 1px solid var(--line);
}

.danger-btn {
  background: #cf4d44;
  box-shadow: 0 10px 0 rgba(109, 33, 26, 0.18);
  color: white;
  padding: 12px 18px;
}

.hero-note {
  align-self: start;
  background: rgba(255, 250, 239, 0.92);
  border: 3px solid rgba(255, 255, 255, 0.52);
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
  padding: 22px;
  position: relative;
  z-index: 1;
}

.hero-note h2,
.section-card h2,
.section-card h3,
.card-modal h2 {
  font-family: "Mr_dodo", "Trebuchet MS", sans-serif;
  letter-spacing: 0.01em;
}

.hero-note h2 {
  font-size: 1.5rem;
  line-height: 1;
  margin: 0 0 10px;
}

.hero-note p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin: 0 0 16px;
}

.stat-list {
  display: grid;
  gap: 12px;
}

.stat-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.68);
  border-radius: 22px;
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
}

.stat-label {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.stat-value {
  color: var(--forest-deep);
  font-family: "Mr_dodo", "Trebuchet MS", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.content-grid {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
  margin-top: 24px;
}

.section-card {
  background: rgba(255, 253, 246, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

.collection-header,
.panel-header {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.collection-header h2,
.panel-header h3 {
  font-family: "Mr_dodo", "Trebuchet MS", sans-serif;
  font-size: 1.8rem;
  line-height: 0.95;
  margin: 0 0 8px;
}

.collection-header p,
.panel-header p,
.helper-copy {
  color: var(--ink-soft);
  line-height: 1.45;
  margin: 0;
}

.results-count {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  padding: 10px 14px;
  white-space: nowrap;
}

.filters {
  display: grid;
  gap: 12px;
  margin: 22px 0 20px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-btn {
  background: #f5ead2;
  color: var(--ink-soft);
  padding: 10px 14px;
}

.pill-btn.is-active {
  background: var(--forest);
  box-shadow: 0 8px 0 rgba(71, 46, 25, 0.14);
  color: white;
}

.filter-row {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 210px;
}

.search-input,
.select-input {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  min-height: 52px;
  outline: none;
  padding: 0 16px;
}

.search-input:focus,
.select-input:focus {
  border-color: rgba(29, 90, 69, 0.38);
  box-shadow: 0 0 0 4px rgba(105, 189, 178, 0.18);
}

.card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.collection-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 12px 24px rgba(71, 46, 25, 0.08);
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 14px;
  position: relative;
  text-align: left;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease;
}

.collection-card.is-missing {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(247, 240, 220, 0.68));
  border-style: dashed;
}

.collection-card.is-missing .collection-card__poster,
.collection-card.is-missing .collection-card__meta strong {
  opacity: 0.78;
}

.collection-card.is-collected {
  border-color: rgba(87, 185, 71, 0.26);
}

.collection-card__header {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-right: 48px;
}

.collection-card__number,
.rarity-pill,
.habitat-pill,
.spotlight-pill,
.match-pill,
.shelf-pill,
.status-chip {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  padding: 7px 10px;
}

.collection-card__number {
  background: #f4ecd6;
  color: var(--ink-soft);
}

.rarity-pill {
  background: rgba(29, 90, 69, 0.12);
  color: var(--forest);
}

.collection-card__poster {
  align-items: center;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.2) 42%, transparent 60%),
    linear-gradient(180deg, #fffaf0, #f7edd3);
  border-radius: 24px;
  display: grid;
  flex: 1;
  overflow: hidden;
  padding: 14px;
  position: relative;
}

.collection-card__poster::before {
  background: rgba(255, 214, 90, 0.2);
  border-radius: 50%;
  content: "";
  height: 120px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
}

.collection-card__poster::after {
  background:
    radial-gradient(circle, rgba(23, 53, 43, 0.08) 14%, transparent 16%) 0 0 / 14px 14px;
  content: "";
  inset: 0;
  opacity: 0.24;
  position: absolute;
}

.poster-stamp {
  align-self: start;
  background: rgba(29, 90, 69, 0.8);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.72rem;
  padding: 8px 10px;
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
}

.poster-card-img {
  display: block;
  filter: drop-shadow(0 14px 18px rgba(21, 58, 43, 0.2));
  height: auto;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  position: relative;
  width: 100%;
  z-index: 1;
}

.collection-card__meta {
  margin-top: 14px;
}

.collection-card__meta strong {
  display: block;
  font-family: "Mr_dodo", "Trebuchet MS", sans-serif;
  font-size: 1.08rem;
  line-height: 1.08;
}

.collection-card__meta span {
  color: var(--ink-soft);
  display: inline-block;
  font-size: 0.9rem;
  margin-top: 4px;
}

.count-badge,
.trade-chip {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 700;
  gap: 6px;
  left: 14px;
  position: absolute;
  z-index: 3;
}

.count-badge {
  background: var(--berry);
  color: white;
  padding: 9px 12px;
  top: 52px;
}

.trade-chip {
  background: var(--forest);
  bottom: 14px;
  color: white;
  padding: 8px 12px;
}

.quick-add-btn {
  align-items: center;
  background: var(--forest);
  border: 3px solid white;
  border-radius: 999px;
  box-shadow: 0 8px 0 rgba(71, 46, 25, 0.16);
  color: transparent;
  display: inline-flex;
  font-size: 0;
  height: 46px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 14px;
  bottom: 14px;
  top: auto;
  width: 46px;
  z-index: 4;
}

.quick-add-btn::before,
.quick-add-btn::after {
  background: white;
  border-radius: 999px;
  content: "";
  position: absolute;
}

.quick-add-btn::before {
  height: 4px;
  width: 18px;
}

.quick-add-btn::after {
  height: 18px;
  width: 4px;
}

.quick-add-btn:hover {
  background: var(--leaf);
}

.empty-state {
  background: linear-gradient(180deg, #fff9ec, #fcf3de);
  border: 1px dashed rgba(23, 53, 43, 0.18);
  border-radius: 24px;
  padding: 22px;
}

.empty-state h3 {
  font-family: "Mr_dodo", "Trebuchet MS", sans-serif;
  font-size: 1.5rem;
  line-height: 1;
  margin: 0 0 10px;
}

.sidebar-stack {
  align-content: start;
  align-self: start;
  display: grid;
  gap: 20px;
}

.profile-summary {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.profile-summary--account {
  margin-bottom: 0;
}

.profile-summary h3 {
  font-family: "Mr_dodo", "Trebuchet MS", sans-serif;
  font-size: 1.75rem;
  line-height: 0.95;
  margin: 0 0 6px;
}

.profile-summary p {
  color: var(--ink-soft);
  margin: 0;
  overflow-wrap: anywhere;
}

.progress-ring {
  align-items: center;
  background:
    radial-gradient(circle at center, var(--paper) 54%, transparent 55%),
    conic-gradient(var(--forest) calc(var(--progress) * 1%), rgba(29, 90, 69, 0.12) 0);
  border-radius: 50%;
  display: grid;
  height: 142px;
  place-items: center;
  width: 142px;
}

.progress-value {
  align-items: center;
  display: flex;
  flex-direction: column;
  font-weight: 700;
}

.progress-value strong {
  font-family: "Mr_dodo", "Trebuchet MS", sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.progress-value span {
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.progress-layout {
  align-items: center;
  display: grid;
  gap: 20px;
  grid-template-columns: auto minmax(0, 1fr);
  margin-top: 16px;
}

.metric-list {
  display: grid;
  gap: 12px;
}

.progress-actions {
  align-items: center;
  display: flex;
  gap: 16px;
  margin-top: 18px;
}

.progress-actions .helper-copy {
  flex: 1;
}

.metric-card {
  background: var(--paper-strong);
  border-radius: 20px;
  padding: 14px 16px;
}

.metric-card strong {
  display: block;
  font-family: "Mr_dodo", "Trebuchet MS", sans-serif;
  font-size: 1.2rem;
  line-height: 1;
}

.metric-card span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.shelf-list,
.offer-list,
.spotlight-list,
.extras-list,
.match-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.shelf-card,
.offer-card,
.spotlight-card,
.extra-card,
.match-card {
  background: var(--paper-strong);
  border: 1px solid rgba(23, 53, 43, 0.08);
  border-radius: 22px;
  padding: 14px 16px;
}

.shelf-head,
.offer-head,
.spotlight-head,
.modal-header,
.modal-meta-row {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.shelf-card strong,
.offer-card strong,
.spotlight-card strong,
.extra-card strong,
.match-card strong {
  display: block;
  font-family: "Mr_dodo", "Trebuchet MS", sans-serif;
  font-size: 1rem;
  line-height: 1.05;
}

.tiny-copy,
.offer-card p,
.spotlight-card p,
.extra-card p,
.match-card p,
.modal-support {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
}

.status-chip {
  background: rgba(217, 79, 61, 0.12);
  color: var(--berry-deep);
}

.shelf-pill {
  background: rgba(255, 214, 90, 0.22);
  color: #8a6500;
}

.spotlight-pill {
  background: rgba(105, 189, 178, 0.18);
  color: #0f665d;
}

.match-pill {
  background: rgba(29, 90, 69, 0.12);
  color: var(--forest);
}

.modal-shell {
  align-items: center;
  background: rgba(13, 36, 29, 0.42);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 12;
}

.modal-shell.is-visible {
  display: flex;
}

.card-modal {
  background: var(--paper);
  border-radius: 34px;
  box-shadow: 0 22px 60px rgba(11, 35, 26, 0.22);
  max-height: calc(100vh - 40px);
  max-width: 1040px;
  overflow: auto;
  padding: 26px;
  width: min(1040px, 100%);
}

.modal-header {
  margin-bottom: 20px;
}

.modal-header h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 0.95;
  margin: 0;
}

.modal-close {
  background: rgba(23, 53, 43, 0.08);
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  font-size: 1.5rem;
  height: 44px;
  width: 44px;
}

.modal-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1.08fr);
}

.account-modal {
  max-width: 980px;
  width: min(980px, 100%);
}

.contact-modal {
  max-width: 460px;
  width: min(460px, 100%);
}

.account-layout {
  display: grid;
  gap: 18px;
}

.account-static-field {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--forest-deep);
  display: flex;
  min-height: 52px;
  padding: 0 16px;
}

.contact-email {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.contact-copy-btn {
  min-width: 88px;
}

.modal-poster {
  align-items: center;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.18) 42%, transparent 60%),
    linear-gradient(180deg, #fff8e8, #f5e8c6);
  border-radius: 30px;
  color: var(--forest-deep);
  display: grid;
  min-height: 340px;
  overflow: hidden;
  padding: 22px;
  position: relative;
}

.modal-poster::before {
  background: rgba(255, 214, 90, 0.18);
  border-radius: 50%;
  content: "";
  height: 220px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
}

.modal-card-img {
  display: block;
  filter: drop-shadow(0 22px 28px rgba(21, 58, 43, 0.22));
  height: auto;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  position: relative;
  width: 82%;
  z-index: 1;
}

.modal-number {
  background: rgba(29, 90, 69, 0.9);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  left: 22px;
  padding: 9px 12px;
  position: absolute;
  top: 22px;
  z-index: 2;
}

.modal-poster .poster-stamp {
  font-size: 0.82rem;
  top: 22px;
}

.modal-card-name {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  bottom: 22px;
  box-shadow: 0 8px 16px rgba(21, 58, 43, 0.1);
  color: var(--forest-deep);
  font-family: "Mr_dodo", "Trebuchet MS", sans-serif;
  font-size: 1.5rem;
  left: 22px;
  line-height: 1;
  padding: 12px 16px;
  position: absolute;
  right: 22px;
  text-align: center;
  z-index: 2;
}

.modal-detail {
  display: grid;
  gap: 18px;
}

.detail-card {
  background: var(--paper-strong);
  border: 1px solid rgba(23, 53, 43, 0.08);
  border-radius: 24px;
  padding: 18px;
}

.detail-card h3 {
  font-family: "Mr_dodo", "Trebuchet MS", sans-serif;
  font-size: 1.35rem;
  line-height: 1;
  margin: 0 0 10px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.habitat-pill {
  background: rgba(255, 214, 90, 0.26);
  color: #896700;
}

.stepper,
.trade-stepper {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.stepper button,
.trade-stepper button {
  background: var(--forest);
  color: white;
  height: 42px;
  width: 42px;
}

.stepper button:disabled,
.trade-stepper button:disabled,
.mini-btn:disabled {
  background: rgba(23, 53, 43, 0.18);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.stepper-value,
.trade-stepper span {
  color: var(--forest-deep);
  font-size: 1.15rem;
  font-weight: 700;
  min-width: 110px;
}

.mini-btn {
  background: rgba(29, 90, 69, 0.12);
  color: var(--forest);
  padding: 10px 14px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.select-stack {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.select-stack label {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.trade-target-grid {
  display: grid;
  gap: 10px;
  max-height: 220px;
  overflow: auto;
  padding-right: 4px;
}

.trade-target-option {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 53, 43, 0.08);
  border-radius: 16px;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 10px 12px;
}

.trade-target-option input {
  accent-color: var(--forest);
  height: 18px;
  margin: 0;
  width: 18px;
}

.trade-target-option span {
  color: var(--forest-deep);
  line-height: 1.35;
}

.trade-target-option.is-selected {
  background: rgba(217, 239, 185, 0.72);
  border-color: rgba(87, 185, 71, 0.4);
}

.match-list {
  margin-top: 14px;
}

.match-card {
  display: grid;
  gap: 8px;
}

.match-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.match-meta span,
.offer-route span {
  background: rgba(23, 53, 43, 0.06);
  border-radius: 999px;
  color: var(--ink-soft);
  display: inline-flex;
  font-size: 0.8rem;
  padding: 7px 10px;
}

.collector-link {
  background: transparent;
  border: 0;
  color: var(--forest);
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  padding: 0;
  text-align: left;
  text-decoration: underline;
}

.collector-link:hover {
  transform: none;
}

.offer-route {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.helper-chip {
  background: rgba(255, 214, 90, 0.2);
  border-radius: 999px;
  color: #8d6a00;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 8px;
  padding: 8px 10px;
}

.session-pill {
  align-items: center;
  background: rgba(255, 255, 255, 0.48);
  border: 2px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  color: var(--forest-deep);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 14px;
}

.auth-shell {
  max-width: 1180px;
}

.auth-layout {
  display: grid;
  gap: 24px;
}

.auth-hero {
  margin-bottom: 0;
  min-height: clamp(540px, 84vh, 640px);
  padding: 24px;
}

.auth-card {
  background: rgba(255, 251, 242, 0.95);
  backdrop-filter: blur(8px);
  margin: 0;
  max-width: 420px;
  width: 100%;
}

.auth-hero > * {
  position: relative;
  z-index: 1;
}

.auth-hero-grid {
  align-items: end;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 420px);
  min-height: 100%;
}

.cover-stage {
  inset: 0;
  overflow: hidden;
  position: absolute;
  z-index: 0;
}

.cover-collage {
  background:
    radial-gradient(circle at 34% 42%, rgba(255, 255, 255, 0.92) 0 12%, rgba(255, 255, 255, 0.35) 24%, transparent 42%),
    radial-gradient(circle at 52% 58%, rgba(255, 211, 120, 0.34), transparent 30%),
    linear-gradient(180deg, rgba(240, 100, 90, 0.95) 0 13%, rgba(255, 248, 232, 0.3) 13% 100%),
    linear-gradient(180deg, #f7f0d9 0%, #fff8ea 100%);
  inset: 0;
  position: absolute;
}

.cover-card {
  border: 5px solid #f5df69;
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(71, 46, 25, 0.2);
  position: absolute;
  width: 166px;
}

.auth-copy {
  align-self: end;
  background: linear-gradient(180deg, rgba(255, 252, 245, 0.96), rgba(255, 244, 220, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 28px;
  box-shadow: 0 18px 32px rgba(71, 46, 25, 0.14);
  color: var(--forest-deep);
  max-width: 420px;
  padding: 20px 22px;
}

.auth-copy .eyebrow,
.auth-copy p,
.auth-copy h1 {
  color: var(--forest-deep);
}

.auth-copy .eyebrow {
  opacity: 0.9;
}

.auth-copy p {
  max-width: 22rem;
}

.hero--collage {
  min-height: 460px;
}

.hero--collage .hero-grid {
  position: relative;
  z-index: 1;
}

.dashboard-hero .hero-copy {
  background: rgba(71, 46, 25, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  box-shadow: 0 18px 32px rgba(71, 46, 25, 0.18);
  padding: 22px 24px;
}

.dashboard-hero .hero-note {
  background: rgba(255, 250, 239, 0.96);
}

.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form.is-hidden {
  display: none;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.auth-submit,
.auth-demo-btn {
  justify-content: center;
  margin-top: 6px;
}

.auth-form-title {
  color: var(--forest-deep);
  font-family: "Mr_dodo", "Trebuchet MS", sans-serif;
  font-size: 1.3rem;
  line-height: 1;
  margin-bottom: 2px;
}

.auth-link-btn {
  background: transparent;
  border: 0;
  color: var(--forest);
  justify-self: start;
  margin-top: 2px;
  padding: 0;
  text-decoration: underline;
}

.auth-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.auth-reset {
  margin-top: 14px;
}

.avatar-picker {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.avatar-picker > span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.avatar-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.avatar-picker--account .avatar-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-height: 360px;
  overflow: auto;
  padding-right: 6px;
}

.avatar-btn {
  background: var(--paper-strong);
  border: 2px solid rgba(71, 46, 25, 0.08);
  border-radius: 20px;
  box-shadow: 0 8px 16px rgba(71, 46, 25, 0.08);
  padding: 8px;
}

.avatar-btn img {
  aspect-ratio: 1;
  border-radius: 14px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.avatar-btn.is-selected {
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(87, 185, 71, 0.18);
}

.profile-avatar {
  border: 4px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 10px 18px rgba(71, 46, 25, 0.16);
  display: inline-flex;
  flex-shrink: 0;
  height: 88px;
  overflow: hidden;
  width: 88px;
}

.profile-avatar img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.profile-avatar--mini {
  border-width: 2px;
  height: 28px;
  width: 28px;
}

.profile-avatar--hero {
  margin-bottom: 12px;
}

.auth-alert {
  background: rgba(105, 189, 178, 0.14);
  border: 1px solid rgba(15, 102, 93, 0.16);
  border-radius: 18px;
  color: #0f665d;
  margin-bottom: 18px;
  padding: 14px 16px;
}

.auth-alert.is-error {
  background: rgba(217, 79, 61, 0.12);
  border-color: rgba(174, 52, 36, 0.18);
  color: var(--berry-deep);
}

.auth-demo-value {
  color: var(--forest-deep);
  font-size: 1rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

@media (max-width: 1080px) {
  .hero-grid,
  .content-grid,
  .modal-layout {
    grid-template-columns: 1fr;
  }

  .hero-note {
    max-width: 520px;
  }

  .auth-hero {
    min-height: 680px;
  }

  .auth-hero-grid {
    align-items: end;
    gap: 18px;
  }

  .auth-card {
    max-width: 560px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 18px 12px 30px;
  }

  .hero,
  .section-card,
  .card-modal {
    border-radius: 26px;
    padding: 18px;
  }

  .auth-hero {
    min-height: 560px;
    padding: 18px;
  }

  .progress-actions {
    align-items: start;
    flex-direction: column;
  }

  .cover-card {
    width: 116px;
  }

  .auth-copy {
    max-width: 100%;
    padding: 18px;
  }

  .auth-card {
    max-width: 100%;
  }

  .avatar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-row,
  .progress-layout {
    grid-template-columns: 1fr;
  }

  .collection-header,
  .panel-header,
  .modal-header,
  .shelf-head,
  .offer-head,
  .spotlight-head {
    align-items: start;
    flex-direction: column;
  }

  .results-count {
    width: fit-content;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .collection-card {
    min-height: 245px;
  }

  .modal-shell {
    padding: 12px;
  }
}
