:root {
  color-scheme: light;
  --ink: #0f0f12;
  --muted: #56524b;
  --board: #fafaf7;
  --muted-panel: #f2efe9;
  --paper: #fffefa;
  --paper-edge: #ded8cc;
  --accent: #4660b8;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  background: var(--board);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main {
  width: min(100vw, 720px);
  padding: clamp(28px, 7vw, 64px);
}

.paper {
  position: relative;
  width: min(100%, 430px);
  margin: 0 auto;
  padding: clamp(38px, 8vw, 58px) clamp(30px, 8vw, 52px) clamp(34px, 8vw, 50px);
  transform: rotate(-1.5deg);
  border: 1px solid var(--paper-edge);
  border-radius: 18px 16px 20px 15px;
  background: var(--paper);
  box-shadow:
    0 24px 45px rgba(49, 42, 32, 0.14),
    0 2px 8px rgba(49, 42, 32, 0.08);
}

.paper::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -16px;
  width: 118px;
  height: 30px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(202, 218, 232, 0.78);
  box-shadow: 0 2px 3px rgba(83, 96, 105, 0.08);
}

.pin {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #e4b43a;
  right: 26px;
  top: 34px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.pin.blue {
  width: 8px;
  height: 8px;
  right: 26px;
  top: auto;
  bottom: 42px;
  background: #4169c9;
}

.pin.red {
  width: 7px;
  height: 7px;
  left: 28px;
  right: auto;
  top: auto;
  bottom: 72px;
  background: #d65353;
}

.pin.green {
  width: 7px;
  height: 7px;
  left: 18px;
  right: auto;
  top: auto;
  bottom: 18px;
  background: #54b99c;
}

h1 {
  max-width: 9.5ch;
  margin: 0 0 22px;
  font-size: clamp(2.8rem, 10vw, 4rem);
  font-weight: 850;
  line-height: 0.92;
  letter-spacing: 0;
  text-wrap: balance;
}

.number-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 13px 8px 10px;
  border-radius: 999px;
  background: var(--muted-panel);
}

.number {
  display: block;
  margin: 0;
  font-size: clamp(1.2rem, 4.6vw, 1.55rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.flag {
  display: block;
  flex: 0 0 auto;
  font-size: clamp(1.35rem, 4.8vw, 1.7rem);
  line-height: 1;
}

@media (max-width: 420px) {
  body {
    place-items: start center;
    overflow: auto;
  }

  main {
    padding-top: 74px;
  }

  .paper {
    border-radius: 16px;
  }
}
