:root {
  color-scheme: light;
  --ink: #172126;
  --muted: #5d6a6a;
  --teal: #123f43;
  --teal-2: #176469;
  --sage: #dcebe4;
  --coral: #d66b54;
  --rose: #f3b4a0;
  --gold: #c89234;
  --ivory: #fff8ea;
  --paper: rgba(255, 253, 246, 0.84);
  --line: rgba(23, 33, 38, 0.12);
  --shadow: 0 24px 70px rgba(16, 38, 43, 0.22);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--teal);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 248, 234, 0.92), transparent 19rem),
    radial-gradient(circle at 92% 18%, rgba(243, 180, 160, 0.82), transparent 20rem),
    linear-gradient(155deg, #123f43 0%, #2c7b75 44%, #f1d183 100%);
}

button {
  font: inherit;
}

.app-shell {
  width: min(100%, 460px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom));
}

.hero {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
  align-items: center;
  padding: 8px 0 20px;
}

.app-mark {
  width: 78px;
  height: 78px;
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(16, 41, 43, 0.24);
}

.kicker {
  margin: 0 0 4px;
  color: rgba(255, 253, 246, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #fffdf6;
  font-size: clamp(2rem, 10.5vw, 3.25rem);
  line-height: 0.96;
}

.verdict-card,
.badge-card {
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.verdict-card {
  position: relative;
  overflow: hidden;
  padding: 24px 20px 20px;
}

.verdict-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--coral), var(--gold), var(--teal-2));
}

.andrew-graphic {
  display: block;
  width: min(58vw, 210px);
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  margin: 2px auto 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 253, 246, 0.95), rgba(220, 235, 228, 0.84));
  box-shadow: 0 18px 38px rgba(16, 38, 43, 0.18);
}

.label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

#verdict {
  min-height: 6.8rem;
  display: grid;
  align-items: center;
  margin: 0;
  font-size: clamp(1.92rem, 9.4vw, 3.05rem);
  line-height: 1.01;
}

.verdict-card.bump #verdict {
  animation: bump 260ms ease-out;
}

.controls {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.primary-button,
.secondary-button,
.icon-button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  -webkit-tap-highlight-color: transparent;
}

.primary-button,
.secondary-button {
  min-height: 58px;
  padding: 0 18px;
  font-size: 1.06rem;
}

.primary-button {
  color: #fffdf6;
  background: linear-gradient(135deg, var(--ink), var(--teal));
  box-shadow: 0 15px 30px rgba(17, 40, 43, 0.28);
}

.secondary-button {
  color: var(--ink);
  border: 1px solid rgba(23, 33, 38, 0.16);
  background: rgba(255, 253, 246, 0.78);
}

.badge-card {
  padding: 16px;
  margin-top: 14px;
}

.section-title {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title h2 {
  margin: 0;
  font-size: 1.04rem;
}

.section-title span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.icon-button {
  padding: 8px 10px;
  color: var(--teal);
  background: var(--teal-soft);
}

.badge {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.badge.featured {
  background: #fffdf7;
}

.badge-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #fffdf6;
  background: linear-gradient(145deg, var(--teal), var(--teal-2));
  font-size: 1.35rem;
  font-weight: 900;
}

.badge h3 {
  margin: 0 0 3px;
  font-size: 0.98rem;
}

.badge p {
  margin: 0;
  color: rgba(24, 32, 37, 0.62);
  font-size: 0.82rem;
  line-height: 1.25;
}

@keyframes bump {
  0% {
    transform: scale(0.98);
  }
  70% {
    transform: scale(1.025);
  }
  100% {
    transform: scale(1);
  }
}

@media (min-width: 430px) {
  .app-shell {
    padding-left: 22px;
    padding-right: 22px;
  }
}
