/* ropple.app: plain CSS in the app's colours (spec/design-system.md). */
@font-face { font-family: "Baloo 2"; font-weight: 600; font-display: swap; src: url("/fonts/Baloo2-600.ttf") format("truetype"); }
@font-face { font-family: "Baloo 2"; font-weight: 800; font-display: swap; src: url("/fonts/Baloo2-800.ttf") format("truetype"); }

:root {
  --ground: #5322CD;   /* the one background */
  --panel: #E9E0FF;    /* lavender panels */
  --ink: #39084D;      /* dark ink on bright faces */
  --lime: #C5FC63;     /* the main action */
  --lime-edge: #8CC71F;
  --white: #FFFFFF;
  --soft: rgba(255, 255, 255, 0.78);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ground);
  color: var(--white);
  font-family: "Baloo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  align-items: center;
}
main {
  width: 100%;
  max-width: 480px;
  padding: 48px 16px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
h1 { margin: 0; font-weight: 800; font-size: 44px; line-height: 1.1; }
h2 { margin: 0; font-weight: 800; font-size: 26px; line-height: 1.2; }
p { margin: 0; }
.lead { font-size: 20px; color: var(--soft); }
.panel {
  background: var(--panel);
  color: var(--ink);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 5px 0 #B9A6EE; /* a solid darker edge, never a blur */
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  flex: 1 1 140px;
  border: 2px solid var(--soft);
  border-radius: 16px;
  padding: 10px 14px;
  text-align: center;
  color: var(--white);
}
.badge small { display: block; color: var(--soft); font-size: 14px; }
.button {
  display: block;
  min-height: 48px;
  border-radius: 16px;
  padding: 10px 16px;
  text-align: center;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
}
.button.main { background: var(--lime); color: var(--ink); box-shadow: 0 5px 0 var(--lime-edge); }
.button.second { border: 2px solid var(--ink); color: var(--ink); }
.code {
  font-weight: 800;
  font-size: 34px;
  letter-spacing: 0.12em;
  text-align: center;
  word-break: break-all;
}
.note { font-size: 15px; }
a { color: inherit; }
footer {
  width: 100%;
  max-width: 480px;
  padding: 16px 16px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 15px;
  color: var(--soft);
}
footer a { color: var(--soft); }
[hidden] { display: none !important; }
