@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;600;700;800&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --bg: #fffaf0;
  --bg-2: #fffdf7;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: rgba(255, 255, 255, 0.98);
  --panel-soft: rgba(255, 241, 184, 0.25);
  --border: rgba(163, 138, 72, 0.14);
  --text: #3c2d1c;
  --muted: #6f5a3f;
  --subtle: #8a6f3e;
  --primary: #f7d76a;
  --primary-strong: #d59b1d;
  --gold: #d79a1f;
  --green: #4d9c67;
  --red: #c76469;
  --purple: #8a74d4;
  --pink: #fce7f3;
  --sky: #dfe8ff;
  --shadow: rgba(154, 125, 68, 0.12);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 228, 126, 0.18), transparent 18%),
    radial-gradient(circle at top right, rgba(255, 187, 215, 0.11), transparent 22%),
    linear-gradient(180deg, #fffdf9 0%, #fffaf2 30%, #fff6e5 100%);
  color: var(--text);
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.8;
  pointer-events: none;
}

body::before {
  width: 260px;
  height: 260px;
  background: rgba(255, 214, 94, 0.18);
  bottom: 8%;
  left: 5%;
}

body::after {
  width: 300px;
  height: 300px;
  background: rgba(255, 194, 228, 0.14);
  top: 8%;
  right: 6%;
}

@keyframes floatGlow {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-18px) scale(1.06); }
}

@keyframes riseIn {
  0% { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}

button, input, select {
  font: inherit;
}

.brand-text,
.hero-copy h1,
.pet-name,
.stat-card strong,
.brand-mark,
.cta-btn,
.secondary-btn,
.hero-connect,
.modal-submit,
.filter,
.panel-header h2,
.calculator h3 {
  font-family: 'Baloo 2', 'Nunito', sans-serif;
}

.page-shell {
  width: min(1360px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 70px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(162, 134, 78, 0.12);
  box-shadow: 0 18px 32px rgba(162, 136, 84, 0.08);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  animation: riseIn 0.5s ease both;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fff9d9 0%, #ffe7a7 45%, #fff3cf 100%);
  color: #8f6320;
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.08em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.9), 0 10px 16px rgba(220, 185, 102, 0.2);
}

.brand-text {
  color: #544230;
  font-weight: 800;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.18s ease, transform 0.18s ease;
}

.main-nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cta-btn,
.secondary-btn,
.hero-connect,
.modal-submit {
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.cta-btn,
.hero-connect,
.modal-submit {
  background: linear-gradient(180deg, #fff6c8 0%, #f8d86d 44%, #fceab0 100%);
  color: #372a1f;
  box-shadow: 0 14px 22px rgba(206, 183, 90, 0.18), 0 0 0 1px rgba(255,255,255,0.2);
}

.secondary-btn {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  color: var(--muted);
}

.cta-btn {
  min-width: 118px;
  height: 42px;
  padding: 0 18px;
  font-size: 1rem;
  font-weight: 700;
}

.secondary-btn {
  height: 42px;
  padding: 0 16px;
  font-size: 0.9rem;
  font-weight: 700;
}

.cta-btn:hover,
.secondary-btn:hover,
.hero-connect:hover,
.modal-submit:hover,
.filter:hover {
  transform: translateY(-1px) scale(1.01);
  filter: brightness(1.06);
}

.app {
  margin-top: 22px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 22px;
  align-items: center;
  padding: 18px 0 0;
  animation: riseIn 0.7s ease both;
}

.hero-copy {
  padding: 18px 10px 4px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #f2ca4d;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
  color: #3c2d1c;
  text-shadow: none;
}

.subtext {
  margin: 16px 0 24px;
  color: var(--muted);
}

.hero-connect {
  height: 50px;
  padding: 0 24px;
  font-size: 1.06rem;
  font-weight: 800;
  border-radius: 14px;
}

.search-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,250,239,0.9));
  border: 1px solid var(--border);
  box-shadow: 0 20px 34px rgba(166, 142, 81, 0.08);
  animation: pulseGlow 3.4s ease-in-out infinite;
}

.search-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f0dfac;
  margin-bottom: 10px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: 58px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(158, 142, 104, 0.12);
  border-radius: 14px;
}

.search-icon {
  color: #f0dfac;
  font-size: 1.2rem;
}

.search-box input {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  outline: none;
  font-size: 1rem;
}

.search-box input::placeholder {
  color: #f0dfac;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter {
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 252, 245, 0.9);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.18s ease;
}

.filter.active {
  background: linear-gradient(180deg, #fff4bb 0%, #f9d866 100%);
  color: #342a20;
}

.sort-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.sort-wrap label {
  font-size: 0.88rem;
  font-weight: 700;
}

.sort-wrap select {
  min-width: 170px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.8);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.stat-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,250,235,0.9));
  border: 1px solid var(--border);
  box-shadow: 0 18px 26px rgba(164, 137, 80, 0.06);
}

.stat-label {
  display: block;
  color: var(--subtle);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.06em;
  color: #3c2d1c;
}

.pet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.pet-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,251,244,0.96));
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 28px rgba(158, 131, 73, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.pet-card:hover {
  border-color: rgba(214, 168, 59, 0.25);
  box-shadow: 0 18px 30px rgba(158, 131, 73, 0.08);
}

.pet-art {
  position: relative;
  height: 132px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 227, 117, 0.2), rgba(255, 211, 232, 0.2));
  border-bottom: 1px solid var(--border);
}

.pet-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pet-info {
  padding: 10px 12px 12px;
}

.pet-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pet-name {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.pet-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.pet-meta strong {
  color: var(--text);
}

body.modal-open {
  overflow: hidden;
}

.page-shell.is-locked {
  pointer-events: none;
  user-select: none;
}

.page-shell.is-locked::after {
  content: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200000; /* ensure topmost */
  display: flex;
  align-items: center; /* default center */
  justify-content: center;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 10px 18px;
  background: rgba(38, 30, 22, 0.52);
}

.modal.hidden {
  display: none;
}

/* Hard-force account modal to render as viewport overlay when open */
#robloxModal:not(.hidden) {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: 12px 10px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 2147483000 !important;
}

#robloxModal:not(.hidden) .modal-panel {
  position: relative !important;
  margin: 0 auto !important;
  z-index: 2147483001 !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 36, 25, 0.2);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 14px));
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,249,238,0.90));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(163, 138, 72, 0.2);
  box-shadow: 0 24px 40px rgba(110, 94, 52, 0.12);
  padding: 18px 14px 16px;
  margin: 0 auto;
  border-radius: 16px;
}

.modal-panel h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  letter-spacing: -0.06em;
}

.modal-subtitle {
  margin: 10px 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.modal-label {
  display: block;
  margin: 16px 0 8px;
  color: var(--muted);
  font-weight: 700;
}

#robloxUsername,
#robloxPassword,
#authCodeInput,
#petSelect {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.8);
  color: var(--text);
  padding: 0 14px;
  outline: none;
}

#robloxUsername:focus,
#robloxPassword:focus,
#authCodeInput:focus,
#petSelect:focus,
.search-box:focus-within,
.sort-wrap select:focus {
  border-color: rgba(216, 169, 52, 0.4);
  box-shadow: 0 0 0 3px rgba(246, 207, 89, 0.13);
}

.modal-submit {
  background: linear-gradient(180deg, #fff3c3 0%, #f6d870 44%, #ffe9a8 100%);
  color: #352d22;
}

.secondary-btn {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  color: var(--muted);
}

.cta-btn,
.hero-connect {
  background: linear-gradient(180deg, #fff6c8 0%, #f8d86d 44%, #fceab0 100%);
  color: #372a1f;
}

.trends-panel,
.featured-strip,
.calculator {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,249,235,0.92));
  border: 1px solid var(--border);
  box-shadow: 0 18px 30px rgba(160, 133, 74, 0.04);
}

.trend-row,
.featured-item {
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--border);
}

.featured-value,
.trend-change.positive {
  color: var(--green);
}

.trend-change.negative {
  color: var(--red);
}

.calculator {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calc-search-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  position: sticky;
  top: 12px;
  z-index: 15;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 6px 0 0;
}

.calc-search-box label {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
}

.calc-search-box input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.8);
  color: var(--text);
  outline: none;
}

.pet-finder-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 6px;
  max-height: 280px;
  overflow-y: auto;
  position: relative;
  z-index: 10;
}

.pet-finder-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.82);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
}

.pet-finder-item img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(158, 130, 76, 0.12);
}

.pet-finder-item div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pet-finder-item strong {
  display: block;
  font-size: 0.96rem;
  line-height: 1.2;
}

.pet-finder-item span,
.pet-finder-item small {
  color: var(--muted);
  font-size: 0.75rem;
}

#selectedPets {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}

#selectedPets li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--border);
  margin-top: 8px;
}

#selectedPets li span {
  color: var(--text);
}

#selectedPets button {
  background: rgba(255, 236, 164, 0.7);
  border: 1px solid rgba(169, 138, 60, 0.12);
  color: var(--text);
  border-radius: 8px;
  padding: 5px 9px;
  cursor: pointer;
}

.calc-total {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
}

.empty-state {
  padding: 12px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.68);
  border: 1px dashed rgba(169, 138, 60, 0.18);
  color: var(--muted);
}

.top-actions a {
  text-decoration: none;
}

.primary-link-btn,
.hero-calc-btn,
.inline-link-btn,
.callout-connect-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.primary-link-btn,
.inline-link-btn,
.hero-calc-btn,
.callout-connect-btn {
  background: linear-gradient(180deg, #fff6c8 0%, #f8d86d 44%, #fceab0 100%);
  color: #372a1f;
  box-shadow: 0 14px 22px rgba(206, 183, 90, 0.18), 0 0 0 1px rgba(255,255,255,0.2);
}

.primary-link-btn,
.inline-link-btn {
  height: 42px;
  padding: 0 16px;
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-calc-btn {
  height: 50px;
  padding: 0 22px;
  font-size: 1rem;
  font-weight: 800;
}

.connect-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding: 20px 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,250,239,0.9));
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 30px rgba(166, 141, 82, 0.05);
}

.connect-callout h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.06em;
}

.callout-connect-btn {
  height: 48px;
  padding: 0 22px;
  font-size: 1rem;
  font-weight: 800;
}

.primary-link-btn:hover,
.hero-calc-btn:hover,
.inline-link-btn:hover,
.callout-connect-btn:hover {
  transform: translateY(-1px) scale(1.01);
  filter: brightness(1.06);
}

.calculator-page {
  padding-top: 20px;
}

.calculator-page-panel {
  padding: 22px 18px;
}

@media (max-width: 860px) {
  .topbar {
    flex-wrap: wrap;
    padding: 14px 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-copy {
    padding: 8px 0 0;
  }

  .main-nav {
    display: none;
  }

  .stats-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 12px, 1360px);
    padding-bottom: 42px;
  }

  .topbar {
    padding: 12px 10px;
    margin-top: 10px;
  }

  .brand-wrap {
    width: 100%;
  }

  .brand-text {
    font-size: 1.1rem;
  }

  .top-actions {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .secondary-btn,
  .cta-btn,
  .hero-connect {
    flex: 1;
    min-width: 0;
    padding: 0 10px;
    font-size: 0.8rem;
    height: 40px;
  }

  .hero-copy {
    padding: 6px 0 0;
  }

  .eyebrow {
    letter-spacing: 0.08em;
    font-size: 0.62rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.1rem, 9vw, 3rem);
    line-height: 1;
  }

  .subtext {
    font-size: 0.95rem;
    margin: 12px 0 16px;
  }

  .search-panel {
    padding: 12px;
  }

  .search-label {
    font-size: 0.72rem;
  }

  .search-box {
    height: 48px;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }

  .filter-group {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 8px;
    padding-bottom: 2px;
  }

  .filter {
    flex: 0 0 auto;
    height: 34px;
    padding: 0 12px;
    font-size: 0.8rem;
  }

  .sort-wrap {
    justify-content: space-between;
    width: 100%;
  }

  .sort-wrap select {
    flex: 1;
    min-width: 0;
    height: 38px;
  }

  .stats-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stat-card {
    padding: 14px 16px;
  }

  .stat-card strong {
    font-size: 1.8rem;
  }

  .pet-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .pet-card {
    min-width: 0;
  }

  .pet-art {
    height: 110px;
  }

  .pet-info {
    padding: 10px 10px 12px;
  }

  .pet-name {
    font-size: 1rem;
  }

  .pet-meta {
    font-size: 0.72rem;
    gap: 6px;
    flex-direction: column;
    align-items: flex-start;
  }

  .featured-row {
    grid-template-columns: 1fr 1fr;
  }

  .featured-item {
    padding: 10px 8px;
  }

  .featured-thumb {
    width: 42px;
    height: 42px;
  }

  .trend-list {
    grid-template-columns: 1fr;
  }

  .pet-finder-results {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .pet-finder-item {
    padding: 7px 8px;
    gap: 8px;
  }

  .pet-finder-item img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .pet-finder-item strong {
    font-size: 0.86rem;
  }

  .pet-finder-item span,
  .pet-finder-item small {
    font-size: 0.68rem;
  }

  #selectedPets li {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px;
    padding: 8px 10px;
  }

  /* Mobile-specific modal & touch improvements */
  .modal {
    /* anchor near top on mobile so the user sees it first */
    align-items: flex-start !important;
    padding: 8px 8px 20px !important;
  }

  .modal-panel {
    width: calc(100% - 18px);
    max-height: 84vh;
    margin: 6vh auto 0 !important; /* push panel down slightly from top edge */
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 30px 50px rgba(0,0,0,0.18);
  }

  .modal-panel h2 {
    text-align: center;
  }

  /* Ensure calculator search behaves better on small screens */
  .calc-search-box {
    position: static; /* avoid sticky inside scrollable containers */
    top: auto;
    z-index: 1;
    background: transparent;
    padding: 0;
  }

  .pet-finder-results {
    grid-template-columns: 1fr 1fr;
    max-height: 40vh;
    z-index: 9999; /* make sure search results float above other content */
    position: relative;
  }

  .pet-finder-item {
    padding: 10px;
  }

  .pet-finder-item img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  /* Larger tappable targets */
  .filter {
    height: 40px;
    padding: 0 14px;
  }

  input, button, select {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    touch-action: manipulation;
  }
}

/* ===== Modal overlay allows page content to show through ===== */
html.modal-is-open {
  overflow: hidden !important;
}

html.modal-is-open body {
  overflow: hidden !important;
}

/* Force modal to absolute viewport overlay */
#robloxModal,
.modal {
  display: flex !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 12px !important;
  background: rgba(255, 250, 240, 0.52) !important;
  backdrop-filter: blur(1px) brightness(1.02) !important;
  z-index: 999999999 !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: auto !important;
}

#robloxModal.hidden,
.modal.hidden {
  display: none !important;
}

#robloxModal .modal-backdrop,
.modal .modal-backdrop {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  background: rgba(16, 13, 11, 0.12) !important;
  z-index: 0 !important;
}

#robloxModal .modal-panel,
.modal .modal-panel {
  position: relative !important;
  z-index: 1 !important;
  width: min(430px, calc(100vw - 20px)) !important;
  max-height: 90vh !important;
  flex-shrink: 0 !important;
}

/* Force remove avatar preview from modal */
.avatar-row,
#robloxAvatar,
.avatar-thumb {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  width: 0 !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  overflow: hidden !important;
}

/* Hide avatar preview row and image */
.avatar-row {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

#robloxAvatar,
.avatar-thumb {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
}
