:root {
  --bg: #fff;
  --card: #fff;
  --card-hover: #faf6f2;
  --line: #ece4dc;
  --text: #1c1410;
  --muted: #6f625a;
  --brown: #7a2f00;
  --orange: #f7931e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
  min-height: 100dvh;
  background: var(--bg) radial-gradient(90% 40% at 50% 0%, rgba(247, 147, 30, 0.10), transparent 70%) no-repeat;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.wrap {
  max-width: 440px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

/* Hero */
.hero { text-align: center; margin-bottom: 16px; }

.hero__logo {
  display: block;
  width: 46%;
  max-width: 168px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.12));
}

.hero__intro {
  max-width: 320px;
  margin: 10px auto 0;
  font-size: 0.92rem;
  color: var(--muted);
  text-wrap: balance;
}

/* Groups */
.group { display: flex; flex-direction: column; gap: 8px; }
.group + .group { margin-top: 20px; }

.group__label {
  padding-left: 4px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Cards */
.card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 12px 9px 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(28, 20, 16, 0.04), 0 4px 14px rgba(28, 20, 16, 0.05);
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.card:hover { background: var(--card-hover); }
.card:active { transform: scale(0.98); }
.card:focus-visible { outline: 2px solid var(--brown); outline-offset: 2px; }

.card__logo {
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: #f6efe8;
  border-radius: 12px;
}
.card__logo img { width: 42px; height: 42px; object-fit: contain; }
.card__logo svg { width: 26px; height: 26px; }

.card__logo--ig { background: linear-gradient(45deg, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%); }
.card__logo--ig svg { fill: none; stroke: #fff; stroke-width: 1.9; }
.card__logo--ig .dot { fill: #fff; stroke: none; }

.card__logo--fb { background: #1877f2; }
.card__logo--fb svg { width: 30px; height: 30px; fill: #fff; }

.card__logo--tt { background: #000; }
.card__logo--tt svg { fill: #fff; filter: drop-shadow(-1.2px -1px 0 #25f4ee) drop-shadow(1.2px 1px 0 #fe2c55); }

.gbadge {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--card), 0 1px 3px rgba(0, 0, 0, 0.2);
}
.gbadge svg { width: 13px; height: 13px; }

.stars { color: #fbbc05; letter-spacing: 1px; margin-right: 4px; }

.card__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.card__title { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.card__sub { font-size: 0.85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.card__go {
  flex: 0 0 32px;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f3ece5;
}
.card__go svg {
  width: 16px; height: 16px;
  fill: none;
  stroke: var(--text);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card--review { border-color: rgba(122, 47, 0, 0.35); }
.card--review .card__go { background: var(--brown); }
.card--review .card__go svg { stroke: #fff; }

/* Footer */
.foot {
  margin-top: auto;
  padding-top: 10px;
  text-align: center;
  font-size: 0.72rem;
  color: #a3968d;
}

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
}
