@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --ink: #171717;
  --paper: #ffffff;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-500: #78716c;
  --stone-700: #44403c;
  --stone-900: #1c1917;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  background: var(--paper);
}

a {
  color: inherit;
}

/* Landing typography and card accents */
.headline {
  font-family: "Archivo Black", sans-serif;
  letter-spacing: -0.03em;
  line-height: 0.94;
}

.fade-rise {
  animation: fadeRise 700ms ease both;
}

.fade-rise-delay-1 {
  animation: fadeRise 700ms ease both;
  animation-delay: 120ms;
}

.fade-rise-delay-2 {
  animation: fadeRise 700ms ease both;
  animation-delay: 220ms;
}

@keyframes fadeRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.glow-ring {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.75),
    0 20px 45px rgba(18, 17, 15, 0.13);
}

.board-shell {
  position: relative;
  border-radius: 26px;
  border: 1px solid #e2dbd2;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.93), rgba(255, 250, 244, 0.95));
  overflow: hidden;
  box-shadow: 0 28px 64px rgba(35, 28, 19, 0.16);
}

.board-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 9% 0%, rgba(255, 148, 82, 0.16), transparent 36%);
  opacity: 0.8;
}

#canvasWrap {
  border-radius: 20px;
  border: 1px solid #d8d2ca;
  background: #ffffff;
  overflow: hidden;
}

#paintCanvas {
  width: 100%;
  height: auto;
  display: block;
  touch-action: none;
  background: #ffffff;
  cursor: crosshair;
}

#paintCanvas.brush-active {
  cursor: none;
}

.paint-pot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid transparent;
  font-weight: 800;
  font-size: 13px;
  color: #151515;
  display: grid;
  place-items: center;
  transition: transform 130ms ease, border-color 130ms ease, box-shadow 130ms ease;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  user-select: none;
}

.paint-pot:hover {
  transform: scale(1.1);
}

.paint-pot.active {
  border-color: #1a1815;
  box-shadow: 0 0 0 3px #1a1815, 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: scale(1.12);
}

/* Pot colors */
.paint-pot.pot-1 { background-color: #6C8EBF; }
.paint-pot.pot-2 { background-color: #ED7B6E; }
.paint-pot.pot-3 { background-color: #FFD166; }
.paint-pot.pot-4 { background-color: #1A6B8A; }
.paint-pot.pot-5 { background-color: #41B3A3; }
.paint-pot.pot-6 { background-color: #C4A265; }
.paint-pot.pot-7 { background-color: #F0D9A0; }
.paint-pot.pot-8 { background-color: #FF8C42; }
.paint-pot.pot-9 { background-color: #FFB7C3; }
.paint-pot.pot-10 { background-color: #2D5A3F; }
.paint-pot.pot-11 { background-color: #7B4B2A; }
.paint-pot.pot-12 { background-color: #228B4B; }

/* Legal pages */
.background-blob-top-left,
.background-blob-bottom-right {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 9999px;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.background-blob-top-left {
  left: -120px;
  top: -120px;
  background: rgba(255, 168, 120, 0.22);
}

.background-blob-bottom-right {
  right: -140px;
  bottom: -140px;
  background: rgba(129, 192, 255, 0.22);
}

.container {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

.site-header {
  margin-bottom: 16px;
}

.logo-link {
  text-decoration: none;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #f97316;
  display: grid;
  place-items: center;
}

.pixel-p {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.px-row {
  display: flex;
  gap: 1px;
  height: 4px;
}

.px-row span {
  width: 4px;
  height: 4px;
  border-radius: 1px;
}

.px-row .c1 { background: #ffffff; }
.px-row .c2 { background: #fff7ed; }
.px-row .c3 { background: #ffe0b2; }
.px-row .c4 { background: #ffd29b; }

.logo-text {
  margin: 0;
  color: var(--stone-900);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-logo-img {
  display: block;
  height: 40px;
  width: auto;
}

.legal-main {
  margin-top: 14px;
}

.legal-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--stone-200);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 16px 36px rgba(28, 25, 23, 0.08);
}

.legal-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.legal-updated {
  margin-top: 8px;
  margin-bottom: 18px;
  color: var(--stone-500);
  font-size: 0.95rem;
}

.legal-card h2 {
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: 1.16rem;
  font-weight: 700;
  color: var(--stone-900);
}

.legal-card p,
.legal-card li {
  color: var(--stone-700);
  line-height: 1.7;
  font-size: 1rem;
}

.legal-card ul {
  margin: 8px 0 0 0;
  padding-left: 18px;
}

.legal-card a {
  color: #0f766e;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer {
  margin-top: 22px;
  text-align: center;
  color: var(--stone-500);
  font-size: 0.93rem;
}

.site-footer p {
  margin: 6px 0;
}

.site-footer a {
  color: var(--stone-700);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}
