/* Pumpkin Pals Farm web pages (home and invite links). Same colours and font as the game (UIKit). */
@font-face {
  font-family: "Fredoka";
  src: url("/fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --text: #3a2347;
  --cream: #fff6ec;
  --pink: #ff6fa8;
  --mint: #3fcf9e;
  --sky: #4aa8ff;
  --lemon: #ffc93c;
  --grape: #9b6bff;
  --berry: #ff4f7b;
  --gray: #9c93b0;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Fredoka", "Segoe UI Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  font-weight: 500;
  color: var(--text);
  background-color: #ffd6ea;
  background-image:
    radial-gradient(circle at 12% 18%, #ffffff 0 10px, transparent 11px),
    radial-gradient(circle at 82% 12%, #b9e4ff 0 14px, transparent 15px),
    radial-gradient(circle at 90% 70%, #c9f2d8 0 18px, transparent 19px),
    radial-gradient(circle at 8% 82%, #ffe8a3 0 16px, transparent 17px),
    linear-gradient(160deg, #ffe3f1 0%, #ffc4df 55%, #e9d9ff 100%);
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.card {
  width: 100%;
  max-width: 620px;
  background: var(--cream);
  border: 7px solid var(--pink);
  border-radius: 36px;
  box-shadow: 0 12px 0 rgba(58, 35, 71, 0.12), 0 18px 40px rgba(58, 35, 71, 0.18);
  padding: 28px 28px 24px;
  text-align: center;
}

.logo { width: 96px; height: 96px; display: block; margin: 0 auto 4px; }

h1 {
  margin: 4px 0 6px;
  font-size: clamp(30px, 7vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--pink);
  text-shadow: 0 3px 0 #fff, 0 5px 0 rgba(58, 35, 71, 0.15);
}

h2 { margin: 22px 0 8px; font-size: 24px; font-weight: 700; color: var(--grape); }

p { margin: 8px 0; font-size: 19px; line-height: 1.4; }

.lead { font-size: 21px; }

.small { font-size: 16px; color: #6d5a78; }

.code {
  display: inline-block;
  margin: 14px auto 2px;
  padding: 8px 22px;
  font-size: clamp(40px, 12vw, 60px);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--grape);
  background: #fff;
  border: 5px dashed #d5c2ff;
  border-radius: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 64px;
  min-width: 220px;
  margin: 8px 6px;
  padding: 10px 28px;
  border: 0;
  border-bottom: 7px solid rgba(0, 0, 0, 0.22);
  border-radius: 999px;
  font: inherit;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 2px 0 rgba(58, 35, 71, 0.35);
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.12s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(3px); border-bottom-width: 3px; }
.btn:focus-visible { outline: 5px solid var(--lemon); outline-offset: 3px; }
.btn.big { min-width: min(100%, 360px); font-size: 28px; min-height: 76px; }
.mint { background: var(--mint); }
.sky { background: var(--sky); }
.pink { background: var(--pink); }
.grape { background: var(--grape); }
.berry { background: var(--berry); }

.row { display: flex; flex-wrap: wrap; justify-content: center; }

.how {
  text-align: left;
  margin: 14px auto 6px;
  padding: 14px 18px 14px 44px;
  max-width: 480px;
  background: #fff;
  border-radius: 22px;
  font-size: 18px;
  line-height: 1.5;
}
.how li { margin: 4px 0; }

.shot {
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 5px solid #fff;
  box-shadow: 0 6px 18px rgba(58, 35, 71, 0.18);
  margin: 10px 0 4px;
}

.safe {
  margin-top: 18px;
  padding: 12px 16px;
  font-size: 16px;
  color: #5b4766;
  background: #eef9f3;
  border: 3px solid #bfeccf;
  border-radius: 18px;
}

.foot { margin-top: 16px; font-size: 14px; color: #8a7896; }
.foot a { color: inherit; }

/* long pages for grown-ups (privacy policy, deleting an account): left-aligned, easy to read */
.card.doc { max-width: 780px; text-align: left; }
.doc h1, .doc .logo { text-align: center; }
.doc h2 { font-size: 22px; }
.doc p, .doc li { font-size: 17px; line-height: 1.5; }
.doc ul, .doc ol { padding-left: 24px; margin: 8px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 16px; background: #fff; border-radius: 14px; overflow: hidden; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 2px solid #f3e6f7; }
.doc th { color: var(--grape); }
.doc a { color: var(--grape); }
.doc .center { text-align: center; }

[hidden] { display: none !important; }

.offscreen { position: fixed; left: -9999px; top: 0; }

@media (max-width: 420px) {
  .card { padding: 22px 16px 20px; border-width: 6px; }
  .btn { min-width: 0; width: 100%; margin: 6px 0; }
  .code { font-size: 40px; padding: 6px 14px; letter-spacing: 0.08em; }
}
