:root {
  --bg: #f4f7fa;
  --ink: #1c2633;
  --muted: #5c6b7a;
  --line: #d5dee8;
  --card: #ffffff;
  --brand: #0556c7;
  --brand-dark: #0448a6;
  --ok: #168a45;
  --ok-bg: #e8f7ee;
  --cta: #e86a12;
  --cta-dark: #c4560c;
  --cta-ink: #ffffff;
  --tip: #eef4fb;
  --shadow: 0 2px 8px -2px rgba(28, 38, 51, 0.08);
  --shadow-hover: 0 6px 18px -6px rgba(28, 38, 51, 0.16);
  --radius: 12px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { color-scheme: light; }

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

.mast {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.mast-inner {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  height: 36px;
  width: auto;
  display: block;
}

.wrap {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.hero {
  text-align: center;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.hero p {
  color: var(--muted);
  font-size: 0.98rem;
}

.updated {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}

.tip {
  background: var(--tip);
  border: 1px solid #c9d9ec;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 0 0 20px;
  font-size: 0.95rem;
}

.tip strong { color: var(--brand); }

.grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 16px 16px 18px;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px 14px;
  align-items: start;
}

.card:hover { box-shadow: var(--shadow-hover); }

.rank {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card h2 {
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 4px;
}

.card .desc {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.stars { color: #eab308; letter-spacing: 1px; }
.stars span { color: var(--ink); font-weight: 600; margin-left: 4px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--ok-bg);
  color: var(--ok);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cta);
  color: var(--cta-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 16px;
  border-radius: 8px;
  width: 100%;
  grid-column: 1 / -1;
}

.cta:hover {
  background: var(--cta-dark);
  color: var(--cta-ink);
}

.card-body { min-width: 0; }

.foot {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: space-between;
}

.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }

.privacy-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.privacy-card h1 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.privacy-card p {
  color: var(--muted);
  margin-bottom: 10px;
}

@media (min-width: 640px) {
  .card {
    grid-template-columns: 44px 1fr auto;
    align-items: center;
  }
  .card-body { grid-column: 2; }
  .cta {
    width: auto;
    min-width: 168px;
    grid-column: 3;
    grid-row: 1 / span 2;
  }
  .meta { margin-bottom: 0; }
}
