/* Pocket Plant tree page. Forest green, Fredoka, flat, no outlines (the game's look rules). */
@font-face {
  font-family: "Fredoka";
  src: url("/fonts/Fredoka-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
:root {
  --page-top: #1d4230;
  --page-bottom: #143224;
  --panel: #264f3b;
  --text: #fcf4d0;
  --muted: #dcdbba;
  --gold: #fca51f;
  --gold-pressed: #d98a14;
  --ink: #1e130f;
  --sky-top: #bfe3f2;
  --sky-bottom: #eef6dc;
  --grass: #3f8a48;
  --grass-dark: #2f6b3a;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { background: var(--page-bottom); }
[hidden] { display: none !important; }
body {
  font-family: "Fredoka", system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(var(--page-top), var(--page-bottom)) fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}
main {
  width: 100%;
  max-width: 520px;
  padding: 20px 18px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 500;
  font-size: 18px;
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(var(--sky-top), var(--sky-bottom));
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage .ground {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 0;
  height: 14%;
  background: var(--grass);
  border-radius: 50% 50% 0 0 / 40% 40% 0 0;
}
.stage .ground::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 45%;
  background: var(--grass-dark);
}
.stage .empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px 18%;
  text-align: center;
  color: var(--page-bottom);
  font-size: 22px;
  font-weight: 500;
}
h1 { margin: 4px 0 0; font-size: 34px; font-weight: 600; line-height: 1.1; overflow-wrap: anywhere; }
.facts { margin: 0; color: var(--gold); font-size: 18px; font-weight: 500; }
.pitch { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.35; }
.get {
  display: block;
  text-align: center;
  background: var(--gold);
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
  padding: 16px 20px;
  min-height: 56px;
  border-radius: 18px;
}
.get:active { background: var(--gold-pressed); }
.small { margin: 0; text-align: center; color: var(--muted); font-size: 15px; }
footer { padding: 0 18px 22px; color: var(--muted); font-size: 13px; text-align: center; }
footer a { color: var(--muted); }
/* Bring a friend: the sharer's friend code. */
.invite { background: var(--panel); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.invite p { margin: 0; font-size: 17px; line-height: 1.35; }
.invite .code { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.invite .code span { font-size: 32px; font-weight: 600; letter-spacing: 4px; color: var(--gold); }
.invite .copy {
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  background: var(--text);
  border: 0;
  border-radius: 14px;
  min-height: 44px;
  padding: 8px 18px;
}
.invite .copy:active { background: var(--muted); }
