/* Paint Rush pages: layered on /assets/site.css. Colors sampled from the game's piece sprites. */

:root {
  --pr-red: #f10f0f;
  --pr-yellow: #fede1d;
  --pr-blue: #0e2bbe;
  --pr-green: #0db90d;
  --pr-purple: #a711f2;
  --pr-orange: #fe5e0c;
  --pr-sky: #cfe9f6;
  --pr-paper: #fefefe;
  --pr-panel: #f6e7c8;
  --pr-panel-edge: #e2c48e;
}

body.paint { background: var(--pr-paper); }

/* Compact Reveloot header: same chrome as the rest of the site */
.hero.slim { padding-bottom: 92px; }
.hero.slim .crumbs { position: relative; z-index: 2; margin: 28px 0 0; font-weight: 700; color: rgba(233,247,220,.8); }
.hero.slim .crumbs a { color: var(--lime); }
.hero.slim::after { background: var(--pr-paper); }

/* ---------- Paper canvas with the game's pale splatters ---------- */

.canvas { position: relative; overflow: hidden; padding-bottom: 40px; }
.canvas::before,
.canvas::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background: url("img/splat-blue.png") no-repeat center / contain;
  opacity: .28;
}
.canvas::before { width: 420px; height: 490px; right: -140px; top: 120px; transform: rotate(18deg); }
.canvas::after  { width: 360px; height: 420px; left: -150px; top: 52%; transform: rotate(-30deg); }
.canvas > * { position: relative; z-index: 1; }

/* ---------- Title card ---------- */

.title-card { width: min(760px, 100% - 32px); margin: 8px auto 0; padding-top: 18px; text-align: center; }

.title-card .logo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  border: 6px solid #fff;
  box-shadow: 0 26px 60px -28px rgba(14, 43, 190, .45), 0 2px 0 rgba(0,0,0,.04);
  transform: rotate(-1.2deg);
}

.title-card .title-art {
  display: block;
  width: min(300px, 62%);
  height: auto;
  margin: -46px auto 0;
  transform: rotate(-3deg);
  filter: drop-shadow(0 8px 10px rgba(60, 30, 0, .25));
  animation: plop .6s cubic-bezier(.3, 1.6, .5, 1) .15s both;
}

@keyframes plop { from { transform: rotate(-3deg) scale(.4); opacity: 0; } }

.title-card h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  color: var(--ink);
  margin-top: 18px;
}

.title-card .meta { color: var(--ink-soft); margin: 10px auto 0; max-width: 36em; }

/* ---------- Policy body ---------- */

.policy { width: min(760px, 100% - 32px); margin: 0 auto; }

/* Summary sits on the game's beige UI panel */
.panel {
  margin: 40px 0 8px;
  padding: 26px clamp(20px, 4vw, 34px) 22px;
  background: var(--pr-panel);
  border: 4px solid #fff4dc;
  outline: 3px solid var(--pr-panel-edge);
  border-radius: 26px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.5), 0 18px 40px -24px rgba(90, 60, 10, .55);
}
.policy .panel h2 { margin-top: 0; }
.panel ul { margin: 0; padding-left: 1.1em; }
.panel li { margin: .45em 0; }
.panel li::marker { color: var(--pr-orange); font-size: 1.2em; }

/* Section headings: one blob per section, cycling the six paint colors */
.policy h2 {
  --c: var(--pr-blue);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.45rem, 3.4vw, 1.8rem);
  color: var(--ink);
  margin: 2.2em 0 .6em;
}
.policy h2 .blob { flex: none; width: auto; height: 44px; filter: drop-shadow(0 4px 4px rgba(0,0,0,.18)); }
.policy h2::after {
  content: "";
  flex: 1;
  height: 6px;
  margin-left: 4px;
  border-radius: 6px;
  background: var(--c);
  opacity: .9;
  /* a paint stroke that thins out, rather than a ruled line */
  -webkit-mask: linear-gradient(90deg, #000 0 40%, transparent);
          mask: linear-gradient(90deg, #000 0 40%, transparent);
}
.policy h2[data-c="red"]    { --c: var(--pr-red); }
.policy h2[data-c="yellow"] { --c: var(--pr-yellow); }
.policy h2[data-c="blue"]   { --c: var(--pr-blue); }
.policy h2[data-c="green"]  { --c: var(--pr-green); }
.policy h2[data-c="purple"] { --c: var(--pr-purple); }
.policy h2[data-c="orange"] { --c: var(--pr-orange); }

.policy p, .policy li { color: #2b2f2a; }
.policy a { color: var(--pr-blue); text-decoration-color: rgba(14, 43, 190, .35); text-decoration-thickness: 2px; }
.policy a:hover { color: var(--pr-purple); text-decoration-color: currentColor; }
.policy strong { color: var(--ink); }

.policy ul.plain { padding-left: 1.1em; }
.policy ul.plain li::marker { color: var(--pr-red); }

/* ---------- Analytics table ---------- */

.table-wrap {
  margin: 1.2em 0;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid var(--pr-sky);
  background: #fff;
}
.policy table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.policy th {
  text-align: left;
  font-family: var(--display);
  font-size: 1.05rem;
  color: #fff;
  background: var(--pr-blue);
  padding: 12px 14px;
}
.policy td { padding: 12px 14px; vertical-align: top; border-top: 2px solid #edf5fb; }
.policy td:first-child { font-weight: 800; color: var(--ink); white-space: nowrap; }
.policy tr:nth-child(odd) td { background: #f8fbfe; }

/* Stack rows into cards on phones so nothing scrolls sideways */
@media (max-width: 640px) {
  .policy table, .policy tbody, .policy tr, .policy td { display: block; }
  .policy tr:first-child { display: none; }
  .policy tr { border-top: 3px solid var(--pr-sky); }
  .policy tr:first-child + tr { border-top: 0; }
  .policy td { border: 0; padding: 4px 16px; background: transparent !important; }
  .policy td:first-child { padding-top: 14px; white-space: normal; font-family: var(--display); font-size: 1.15rem; }
  .policy td:last-child { padding-bottom: 14px; }
  .policy td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    color: var(--pr-blue);
  }
}

/* ---------- The real in-game buttons ---------- */

.buttons {
  margin: 1.1em 0 0;
  padding: 18px 18px 14px;
  border-radius: 20px;
  background: #f4f9fd;
  border: 2px dashed #bcd9ec;
}
.buttons .row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: center; }
.buttons img { height: 48px; width: auto; }
.buttons figcaption { text-align: center; font-size: .85rem; color: var(--ink-soft); margin-top: 8px; }

/* ---------- Contact splash ---------- */

.contact {
  position: relative;
  margin: 3em 0 0;
  padding: 28px clamp(20px, 4vw, 34px);
  border-radius: 26px;
  background: linear-gradient(135deg, #fff 0%, #fff 55%, rgba(254, 222, 29, .25));
  border: 3px solid var(--pr-yellow);
  overflow: hidden;
}
.contact h2 { margin-top: 0 !important; }
.contact p { margin: 0; font-size: 1.1rem; }
.contact .splat {
  position: absolute; right: -40px; bottom: -60px; width: 220px; height: auto;
  opacity: .35; transform: rotate(-14deg); pointer-events: none;
}

@media (max-width: 640px) {
  .title-card { margin-top: 0; }
  .canvas::before { width: 260px; height: 300px; right: -120px; }
  .buttons img { height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .title-card .title-art { animation: none; }
}

@media print {
  .hero, .canvas::before, .canvas::after, .title-card .title-art, .contact .splat, footer { display: none; }
  .title-card { margin-top: 0; }
  .title-card .logo { transform: none; box-shadow: none; max-width: 360px; margin: 0 auto; }
}
