:root {
  --maroon: #8a1538;
  --off-white: #f3f3f3;
  --deep-blue: #0b3142;
  --vanilla: #fff8b2;
  --olive: #4e6423;
  --surface: #ffffff;
  --ink: #0b3142;
  --muted: rgba(11, 49, 66, 0.58);
  --hairline: rgba(11, 49, 66, 0.09);
  --shadow: 0 10px 28px rgba(11, 49, 66, 0.1);
  --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--off-white);
  color: var(--ink);
  font-family: var(--font-serif);
  letter-spacing: 0;
}

body {
  min-width: 320px;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

img {
  display: block;
  max-width: 100%;
}

.app-root {
  min-height: 100vh;
}

.boot {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--muted);
}

.wordmark {
  font-weight: 800;
  color: var(--off-white);
  white-space: nowrap;
  text-decoration: none;
}

.wordmark span {
  color: var(--vanilla);
}

.wordmark.dark {
  color: var(--deep-blue);
}

.wordmark.dark span {
  color: var(--maroon);
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 243, 243, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hairline);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
}

.topbar .wordmark {
  font-size: 28px;
}

.tagline {
  color: var(--maroon);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.circle-button {
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--deep-blue);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(11, 49, 66, 0.06);
}

.circle-button.dark {
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--deep-blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  border: 2px solid rgba(255, 255, 255, 0.78);
}

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

.layout {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  padding: 18px 18px 112px;
}

.side-nav {
  position: sticky;
  top: 88px;
  align-self: start;
  display: grid;
  gap: 8px;
}

.nav-button {
  border: 0;
  width: 100%;
  background: transparent;
  color: var(--muted);
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  text-align: left;
}

.nav-button strong {
  font-size: 20px;
  line-height: 1;
  color: currentColor;
}

.nav-button span {
  font-size: 12px;
  font-weight: 800;
}

.nav-button.active {
  background: rgba(11, 49, 66, 0.08);
  color: var(--deep-blue);
}

.quick-add-rail {
  border: 0;
  background: var(--maroon);
  color: #fff;
  height: 52px;
  border-radius: 999px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 18px rgba(138, 21, 56, 0.24);
}

.content {
  min-width: 0;
}

.page {
  display: grid;
  gap: 18px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-title,
.section-title {
  margin: 0;
  color: var(--deep-blue);
  font-weight: 900;
  letter-spacing: 0;
}

.page-title {
  font-size: clamp(28px, 4vw, 42px);
}

.section-title {
  font-size: 25px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search {
  position: relative;
}

.search input,
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink);
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
}

.search input {
  padding-left: 42px;
}

.search::before {
  content: "?";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 900;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}

.field textarea {
  min-height: 94px;
  resize: vertical;
}

.field input[type="file"] {
  padding: 12px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.card.pad {
  padding: 16px;
}

.subtle-card {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--hairline);
  border-radius: 14px;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  min-height: 44px;
  border-radius: 14px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
  text-decoration: none;
}

.primary-button {
  border: 0;
  background: var(--maroon);
  color: #fff;
}

.primary-button.big,
.secondary-button.big {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  font-size: 17px;
}

.secondary-button {
  border: 1px solid rgba(138, 21, 56, 0.18);
  background: rgba(255, 248, 178, 0.58);
  color: var(--maroon);
}

.ghost-button {
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--deep-blue);
}

.danger-button {
  border: 1px solid rgba(138, 21, 56, 0.28);
  background: var(--surface);
  color: var(--maroon);
}

.button-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.status {
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(138, 21, 56, 0.18);
  color: var(--maroon);
  background: rgba(138, 21, 56, 0.06);
  font-size: 14px;
  font-weight: 700;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

.empty {
  padding: 34px 22px;
  text-align: center;
  color: var(--muted);
}

.empty strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  margin-bottom: 5px;
}

.rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-snap-type: x proximity;
}

.trending-card {
  position: relative;
  flex: 0 0 230px;
  height: 330px;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: var(--deep-blue);
  color: #fff;
  text-align: left;
  padding: 0;
  box-shadow: 0 14px 30px rgba(11, 49, 66, 0.18);
  scroll-snap-align: start;
}

.media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--tile, var(--deep-blue)), rgba(11, 49, 66, 0.72));
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: 30px;
  font-weight: 900;
}

.media.has-image .media-fallback {
  display: none;
}

.trending-card .media {
  position: absolute;
  inset: 0;
}

.trending-copy {
  position: absolute;
  inset: auto 0 0;
  padding: 72px 16px 16px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.62) 30%, rgba(0, 0, 0, 0.95));
}

.trending-copy h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.05;
  color: #fff;
}

.trend-meta,
.top-pick {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.trend-delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--vanilla);
  background: rgba(78, 100, 35, 0.96);
  font-size: 12px;
  font-weight: 900;
}

.top-pick {
  color: #fff;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 800;
}

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

.category-row,
.item-row,
.notification-row {
  width: 100%;
  border: 0;
  background: var(--surface);
  color: inherit;
  text-align: left;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0;
  min-height: 104px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow);
}

.category-row .media {
  min-height: 104px;
}

.row-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px 14px;
}

.row-copy h3,
.row-copy h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.12;
}

.row-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.row-side {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 12px 0;
}

.plus-pill {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--maroon);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 5px;
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(11, 49, 66, 0.08);
  color: var(--deep-blue);
  font-size: 12px;
  font-weight: 900;
}

.badge.maroon {
  background: rgba(138, 21, 56, 0.1);
  color: var(--maroon);
}

.badge.olive {
  background: rgba(78, 100, 35, 0.12);
  color: var(--olive);
}

.badge.vanilla {
  background: rgba(255, 248, 178, 0.8);
  color: var(--deep-blue);
}

.score-badge {
  width: 48px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--maroon);
  font-size: 17px;
  font-weight: 900;
}

.score-badge.high {
  background: var(--olive);
}

.score-badge.low {
  background: rgba(11, 49, 66, 0.72);
}

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

.stat-card {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 12px;
}

.stat-card strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.stat-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.bottom-tabs {
  display: none;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
}

.auth-art {
  min-height: 100vh;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(135deg, var(--maroon), var(--deep-blue));
  color: var(--off-white);
}

.auth-art .wordmark {
  font-size: 48px;
}

.auth-art h1 {
  max-width: 560px;
  margin: 18px 0 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.95;
  color: #fff;
}

.auth-art p {
  max-width: 460px;
  margin: 14px 0 0;
  font-size: 18px;
  color: rgba(243, 243, 243, 0.82);
}

.auth-panel {
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 30px;
  background: var(--off-white);
}

.back-home {
  justify-self: start;
}

.auth-card {
  padding: 22px;
}

.auth-card h2 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 30px;
}

.auth-card > p {
  margin: 0 0 18px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 12px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  background: rgba(11, 49, 66, 0.06);
  border-radius: 14px;
  padding: 4px;
  border: 1px solid var(--hairline);
}

.segmented button,
.segmented a {
  border: 0;
  border-radius: 11px;
  min-height: 38px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  display: grid;
  place-items: center;
  text-decoration: none;
}

.segmented button.active,
.segmented a.active {
  background: var(--surface);
  color: var(--deep-blue);
  box-shadow: 0 3px 10px rgba(11, 49, 66, 0.07);
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: end center;
  background: rgba(11, 49, 66, 0.32);
  padding: 18px;
}

.modal {
  width: min(760px, 100%);
  max-height: min(88vh, 900px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--off-white);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(11, 49, 66, 0.28);
}

.modal.narrow {
  width: min(520px, 100%);
}

.modal-header {
  min-height: 64px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--hairline);
}

.modal-header h2 {
  margin: 0;
  font-size: 22px;
}

.modal-body {
  overflow: auto;
  padding: 16px;
}

.detail-page {
  display: grid;
  gap: 16px;
}

.cover {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--deep-blue);
  box-shadow: var(--shadow);
}

.cover .media {
  position: absolute;
  inset: 0;
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent 42%, rgba(0, 0, 0, 0.76));
}

.cover-actions {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cover-title {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.cover-title h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 0.95;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: start;
}

.item-row {
  grid-template-columns: 52px minmax(0, 1fr) auto;
  min-height: 78px;
  padding: 12px;
  align-items: center;
}

.rank-chip {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(138, 21, 56, 0.09);
  color: var(--maroon);
  font-weight: 900;
}

.item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-button {
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--deep-blue);
  min-height: 34px;
  border-radius: 999px;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 900;
}

.mini-button.primary {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff;
}

.mini-button.danger {
  color: var(--maroon);
  border-color: rgba(138, 21, 56, 0.22);
}

.rating-dial {
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 20px 0;
}

.dial {
  --p: 70%;
  width: 184px;
  height: 184px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--dial-color, var(--maroon)) var(--p), rgba(11, 49, 66, 0.1) 0);
}

.dial-inner {
  width: 152px;
  height: 152px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  background: var(--off-white);
}

.dial-value {
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
}

.range {
  width: min(420px, 100%);
  accent-color: var(--maroon);
}

.compare-grid {
  display: grid;
  gap: 12px;
}

.compare-card {
  border: 2px solid var(--hairline);
  background: var(--surface);
  color: var(--ink);
  border-radius: 18px;
  padding: 16px;
  min-height: 100px;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  text-align: left;
  box-shadow: var(--shadow);
}

.compare-card.highlight {
  border-color: var(--maroon);
}

.tile-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--tile, var(--deep-blue));
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 8px;
  border-radius: 999px;
  background: var(--hairline);
}

.dot.on {
  width: 22px;
  background: var(--maroon);
}

.versus-stage {
  display: grid;
  gap: 14px;
}

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

.contender {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border: 0;
  border-radius: 20px;
  color: #fff;
  background: var(--deep-blue);
  text-align: left;
  padding: 0;
  box-shadow: var(--shadow);
}

.contender .media {
  position: absolute;
  inset: 0;
}

.contender::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.82));
}

.contender-copy {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  bottom: 16px;
}

.contender-copy h3 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.vs-badge {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--maroon);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(138, 21, 56, 0.25);
}

.reveal {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.meter {
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(11, 49, 66, 0.1);
}

.meter span {
  display: block;
  height: 100%;
  width: var(--value, 0%);
  background: var(--maroon);
}

.badge-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.game-badge {
  flex: 0 0 150px;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.game-badge.locked {
  opacity: 0.58;
}

.notification-row {
  grid-template-columns: 58px minmax(0, 1fr);
  min-height: 80px;
  padding: 12px;
  align-items: center;
}

.notification-row .media {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}

.landing {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(138, 21, 56, 0.05), transparent 34%),
    var(--off-white);
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 15;
  max-width: 1180px;
  margin: 0 auto;
  min-height: 74px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(243, 243, 243, 0.88);
  backdrop-filter: blur(18px);
}

.landing-nav .wordmark {
  font-size: 30px;
}

.landing-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-hero {
  max-width: 1180px;
  min-height: calc(100vh - 74px);
  margin: 0 auto;
  padding: 34px 20px 58px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: 42px;
}

.landing-copy {
  display: grid;
  align-content: center;
  gap: 20px;
}

.landing-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(54px, 8vw, 104px);
  line-height: 0.88;
  color: var(--deep-blue);
}

.landing-copy p {
  max-width: 620px;
  margin: 0;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.35;
  color: rgba(11, 49, 66, 0.72);
}

.landing-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 560px;
}

.landing-stats div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--hairline);
}

.landing-stats strong {
  display: block;
  color: var(--maroon);
  font-size: 23px;
  line-height: 1;
}

.landing-stats span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.hero-visual {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: min(440px, 92%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 248, 178, 0.92), rgba(138, 21, 56, 0.13) 58%, transparent 70%);
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  min-height: 560px;
  padding: 18px;
  border-radius: 36px;
  background: var(--off-white);
  border: 10px solid var(--deep-blue);
  box-shadow: 0 30px 70px rgba(11, 49, 66, 0.28);
  display: grid;
  align-content: start;
  gap: 12px;
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.phone-top .wordmark {
  font-size: 24px;
}

.mini-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--deep-blue);
  color: #fff;
  font-weight: 900;
}

.mini-search {
  padding: 13px 15px;
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--hairline);
  font-size: 14px;
}

.mini-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  min-height: 230px;
  background: var(--deep-blue);
  box-shadow: var(--shadow);
}

.mini-card .media {
  position: absolute;
  inset: 0;
}

.photo-card-copy {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 54px 16px 16px;
  color: #fff;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.88));
}

.photo-card-copy strong,
.photo-card-copy span {
  display: block;
}

.photo-card-copy strong {
  font-size: 24px;
  line-height: 1;
}

.photo-card-copy span {
  margin-top: 6px;
  color: var(--vanilla);
  font-weight: 900;
  font-size: 13px;
}

.mini-photo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--maroon), var(--deep-blue));
  font-size: 26px;
  font-weight: 900;
  text-align: center;
}

.mini-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border-radius: 15px;
  background: #fff;
  border: 1px solid var(--hairline);
}

.mini-row span {
  color: var(--maroon);
  font-weight: 900;
}

.mini-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-row em {
  display: grid;
  place-items: center;
  height: 34px;
  border-radius: 10px;
  background: var(--olive);
  color: #fff;
  font-style: normal;
  font-weight: 900;
}

.mini-row.muted-row em {
  background: var(--maroon);
  font-size: 12px;
}

.floating-compare {
  position: absolute;
  z-index: 3;
  right: -8px;
  bottom: 86px;
  width: min(300px, 78%);
  padding: 14px;
  display: grid;
  gap: 10px;
  transform: rotate(2deg);
}

.floating-compare strong {
  font-size: 20px;
}

.compare-mini {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.compare-mini span {
  min-height: 46px;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 12px;
  background: rgba(11, 49, 66, 0.06);
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.compare-mini b {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--maroon);
  color: #fff;
  font-size: 12px;
}

.landing-band,
.landing-examples {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 20px;
}

.landing-band h2,
.landing-examples h2 {
  margin: 0;
  color: var(--deep-blue);
  font-size: clamp(32px, 4vw, 54px);
  line-height: 0.95;
}

.landing-examples .page-header p {
  margin: 8px 0 0;
}

.feature-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  padding: 16px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--deep-blue);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.feature-card:nth-child(2) .feature-icon,
.feature-card:nth-child(4) .feature-icon {
  background: var(--maroon);
}

.feature-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.36;
}

.landing-example-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.landing-example-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border-radius: 22px;
  background: var(--deep-blue);
  box-shadow: var(--shadow);
}

.landing-example-card .media {
  position: absolute;
  inset: 0;
}

.landing-example-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 28%, rgba(0, 0, 0, 0.86));
}

.landing-example-copy {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  bottom: 16px;
  color: #fff;
}

.landing-example-copy h3 {
  margin: 0;
  color: #fff;
  font-size: 25px;
  line-height: 1;
}

.landing-example-copy p {
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 900;
}

.landing-example-copy span {
  color: var(--vanilla);
  font-weight: 900;
}

@media (max-width: 920px) {
  .landing-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 26px;
  }

  .landing-copy h1 {
    font-size: clamp(48px, 12vw, 78px);
  }

  .hero-visual {
    min-height: 580px;
  }

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

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-art {
    min-height: 280px;
    padding: 28px 24px;
  }

  .auth-art h1 {
    font-size: 42px;
  }

  .auth-panel {
    min-height: auto;
    padding: 20px;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .side-nav {
    display: none;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

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

  .bottom-tabs {
    position: fixed;
    z-index: 25;
    left: 14px;
    right: 14px;
    bottom: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) 58px repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 8px 10px;
    border: 1px solid var(--hairline);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 34px rgba(11, 49, 66, 0.16);
  }

  .bottom-tabs .nav-button {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 7px 3px;
    gap: 2px;
    text-align: center;
  }

  .bottom-tabs .nav-button strong {
    font-size: 19px;
  }

  .bottom-tabs .nav-button span {
    font-size: 10px;
  }

  .bottom-tabs .quick-add-rail {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    align-self: center;
    justify-self: center;
    transform: translateY(-10px);
    font-size: 0;
  }

  .bottom-tabs .quick-add-rail::before {
    content: "+";
    font-size: 28px;
  }
}

@media (max-width: 620px) {
  .landing-nav {
    min-height: 68px;
    padding: 12px 14px;
  }

  .landing-nav .wordmark {
    font-size: 25px;
  }

  .landing-actions .ghost-button {
    display: none;
  }

  .landing-hero {
    padding: 20px 14px 38px;
  }

  .landing-copy {
    gap: 16px;
  }

  .landing-copy h1 {
    font-size: clamp(46px, 14vw, 68px);
  }

  .landing-copy p {
    font-size: 17px;
  }

  .landing-copy .button-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .landing-stats {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 535px;
  }

  .phone-frame {
    width: min(330px, 100%);
    min-height: 520px;
    border-width: 8px;
    border-radius: 32px;
    padding: 14px;
  }

  .mini-card {
    min-height: 210px;
  }

  .floating-compare {
    right: 4px;
    bottom: 42px;
    width: min(286px, 84%);
  }

  .landing-band,
  .landing-examples {
    padding: 30px 14px;
  }

  .feature-grid,
  .landing-example-grid {
    grid-template-columns: 1fr;
  }

  .landing-examples .page-header {
    align-items: stretch;
  }

  .topbar-inner {
    min-height: 64px;
    padding: 10px 14px;
  }

  .topbar .wordmark {
    font-size: 23px;
  }

  .tagline {
    display: none;
  }

  .layout {
    padding: 14px 14px 108px;
  }

  .page-title {
    font-size: 30px;
  }

  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-row {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .category-row .media {
    min-height: 98px;
  }

  .row-side {
    grid-column: 1 / -1;
    padding: 0 12px 12px 12px;
    justify-content: flex-start;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .modal-layer {
    padding: 0;
  }

  .modal {
    width: 100%;
    max-height: 94vh;
    border-radius: 24px 24px 0 0;
  }

  .cover {
    min-height: 260px;
    border-radius: 18px;
  }

  .contenders {
    grid-template-columns: 1fr;
  }

  .vs-badge {
    justify-self: center;
    margin: -8px 0;
    z-index: 2;
  }
}
