/* NoobCube shared styles — sibling of the X-Marks site, cube-sticker palette */

@font-face {
  font-family: 'Baloo 2';
  src: url('/assets/fonts/Baloo2.ttf') format('truetype');
  font-weight: 400 800;
  font-display: swap;
}

:root {
/* BEGIN generated from Design/tokens.json */
  /* the cube's own stickers, straight off the icon */
  --chalk: #f3f3f3;
  --yellow: #ffd804;
  --red: #fd1b15;
  --orange: #fe8804;
  --green: #09d647;
  --blue: #0570fd;

  /* the glow either side of the cube in the icon */
  --cyan: #03ebfe;
  --magenta: #fc2dfe;
  --purple: #4a0b86;

  /* the page itself, starting from the icon's edge colour */
  --bg: #01091a;
  --glow: #0d2a5e;
  --band: #061224;
  --card: #122038;
  --plastic: #0b1018;
  --text: #e9eff7;
  --muted: #93a7bd;
  --ink: #04101c;

  /* the band, thinned so the cubes keep drifting behind it */
  --band-veil: rgba(6, 18, 36, 0.9);

  /* what each colour is for, so the app and the site agree */
  --action: #0570fd;
  --action-shadow: #023d8b;
  --attention: #03ebfe;
  --done: #09d647;

  --radius: 22px;
  --drop: 6px;
  --sticker-radius: 22%;
/* END generated */
}

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

html { background: var(--bg); }

body {
  font-family: 'Baloo 2', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(1100px 520px at 50% -10%, var(--glow), var(--bg));
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }

a { color: var(--cyan); }

/* The wordmark: white Noob, cyan-to-magenta Cube */
.wordmark { color: #fff; font-weight: 800; }
.wordmark .cube {
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sticker {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 999px;
  transform: rotate(-2deg);
  font-size: 1.15rem;
}

.badge {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 10px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  border-top: 5px solid var(--cyan);
}

/* Chunky toy button with a pressed state */
.btn {
  display: inline-block;
  background: var(--action);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 14px 32px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 var(--drop) 0 var(--action-shadow);
}
.btn:active { transform: translateY(calc(var(--drop) - 2px)); box-shadow: 0 2px 0 var(--action-shadow); }

/* Scattered background stickers, the cube equivalent of X-Marks' ✕ marks */
.stickers { position: relative; }
.stickers > i {
  position: absolute;
  display: block;
  border-radius: var(--sticker-radius);
  opacity: .16;
  pointer-events: none;
  user-select: none;
}

.note { color: var(--muted); font-size: .85rem; margin-top: 20px; }

.wave { display: block; width: 100%; height: 60px; }
/* The wave is the top and bottom edge of the band, so it matches it. */
.wave path { fill: var(--band-veil); }

@media (prefers-reduced-motion: no-preference) {
  .bob { animation: bob 3.6s ease-in-out infinite; }
  @keyframes bob {
    0%, 100% { transform: translateY(0) rotate(-1.5deg); }
    50% { transform: translateY(-12px) rotate(1.5deg); }
  }
  .card { transition: transform .2s ease; }
  .card:hover { transform: translateY(-6px) scale(1.03) rotate(0deg) !important; }
}
