/* ============================================================
   $ARTISTIC — drawing competition memecoin
   design language: poorqualityart-inspired —
   - cream/butter base background
   - section backgrounds shift in pastel washes
   - Caveat Brush for headlines
   - wobbly hand-drawn cards with hard outlines + soft shadow
   - colorful wavy dividers between sections
   - tiny pill labels (#01 · INTRO style) in shifting colors
   ============================================================ */

:root {
  /* base */
  --bg:           #fbf3da;          /* warm cream/butter */
  --bg-deep:      #f5e9c4;
  --ink:          #1a1610;          /* warm near-black */
  --ink-soft:     #3a3328;
  --ink-fade:     #6e6650;
  --ink-faint:    #aaa48a;

  /* pop colors — primary palette like crayons */
  --red:          #e83a2c;
  --red-deep:     #b81e10;
  --blue:         #3270e8;
  --blue-deep:    #1a4cb8;
  --yellow:       #f7c52d;
  --yellow-deep:  #d29b07;
  --green:        #4cb84a;
  --green-deep:   #2e8a2c;
  --pink:         #ff80b5;
  --pink-deep:    #d44d8a;
  --purple:       #a85ce3;

  /* section bg washes */
  --wash-cream:   #fbf3da;
  --wash-pink:    #f9e2e0;
  --wash-blue:    #e2eef9;
  --wash-green:   #e3f1de;
  --wash-yellow:  #faedb4;
  --wash-lilac:   #ece2f4;

  /* fonts */
  --display: "Caveat Brush", "Marker Felt", cursive;
  --hand:    "Caveat", "Patrick Hand", cursive;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; } /* user-agent default; needed because .canvas-wrap etc. set display:grid and win specificity otherwise */
html { scroll-behavior: smooth; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
ol, ul { list-style: none; }
em, i { font-style: italic; }
strong, b { font-weight: 800; color: var(--ink); }
img { user-select: none; -webkit-user-drag: none; }

/* ============ CA PILL (in nav) ============ */
.ca-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 13px;
  background: var(--ink);
  color: var(--bg);
  border: 2.5px solid var(--ink);
  border-radius: 22px 26px 24px 28px / 22px 26px 24px 28px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  letter-spacing: 0.02em;
}
.ca-pill:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.ca-pill:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.ca-pill .ca-pill-k {
  font-family: var(--display);
  font-size: 16px;
  color: var(--yellow);
  letter-spacing: 0.04em;
}
.ca-pill .ca-pill-v {
  color: var(--bg);
  font-weight: 700;
}
.ca-pill .ca-pill-v.tba {
  color: var(--ink-faint);
  font-style: italic;
}
.ca-pill .ca-pill-icon {
  font-size: 14px;
  color: var(--pink);
  opacity: 0.85;
}
.ca-pill.copied {
  background: var(--green-deep);
  border-color: var(--green-deep);
}
.ca-pill.copied .ca-pill-v {
  color: #fff;
}
.ca-pill.copied .ca-pill-icon {
  color: var(--yellow);
}

/* ============ HERO NO-CONNECT STICKER ============
   A big stamp-like sticker that screams "no wallet connect needed".
   Yellow background, thick black border, slight rotation, hard shadow.
*/
.no-connect-sticker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 14px 18px 12px 16px / 16px 12px 18px 14px;
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(-1.5deg);
  margin: -4px 0 26px;
  position: relative;
  z-index: 2;
}
.no-connect-sticker .ncs-check {
  font-family: var(--display);
  font-size: 36px;
  line-height: 1;
  color: var(--green-deep);
  background: #fff;
  width: 44px;
  height: 44px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 2px 2px 0 var(--ink);
}
.no-connect-sticker .ncs-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.no-connect-sticker .ncs-text strong {
  font-family: var(--display);
  font-size: 22px;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.no-connect-sticker .ncs-text .ncs-sub {
  font-family: var(--hand);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* ============ NAV / MASTHEAD ============ */
.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
  border-bottom: 2px solid var(--ink);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  transition: transform .25s ease;
}
.brand:hover { transform: rotate(-3deg); }
.brand-logo {
  width: 40px;
  height: 40px;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(2px 2px 0 rgba(0,0,0,0.15));
  user-select: none;
}
.brand-dollar {
  font-family: var(--display);
  font-size: 30px;
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-left: 4px;
}
.brand-name {
  font-family: var(--display);
  font-size: 30px;
  color: var(--ink);
  letter-spacing: 0.01em;
  line-height: 1;
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* hand-drawn pill buttons */
.btn {
  font-family: var(--display);
  font-size: 18px;
  padding: 8px 18px;
  background: #fff;
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 22px 26px 24px 28px / 22px 26px 24px 28px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
  letter-spacing: 0.01em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn-pink   { background: var(--pink); }
.btn-yellow { background: var(--yellow); }
.btn-red    { background: var(--red); color: #fff; }
.btn-blue   { background: var(--blue); color: #fff; }
.btn-green  { background: var(--green); color: #fff; }
.btn-black  { background: var(--ink); color: #fff; }
.btn-white  { background: #fff; }

.btn-lg { font-size: 22px; padding: 12px 24px; }
.btn-xl { font-size: 28px; padding: 16px 32px; }

/* ============ SECTION SCAFFOLD ============ */
.sec {
  padding: 80px 32px;
  position: relative;
}
.sec-inner {
  max-width: 1180px;
  margin: 0 auto;
}

/* per-section wash backgrounds */
.sec-cream  { background: var(--wash-cream); }
.sec-pink   { background: var(--wash-pink); }
.sec-blue   { background: var(--wash-blue); }
.sec-green  { background: var(--wash-green); }
.sec-yellow { background: var(--wash-yellow); }
.sec-lilac  { background: var(--wash-lilac); }

/* the colorful wavy divider between sections — SVG inline as CSS */
.wave {
  height: 36px;
  width: 100%;
  background-repeat: repeat-x;
  background-size: 220px 36px;
}
.wave-red    { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 36' preserveAspectRatio='none'%3E%3Cpath d='M0,18 Q27,2 55,18 T110,18 T165,18 T220,18' fill='none' stroke='%23e83a2c' stroke-width='3' stroke-linecap='round'/%3E%3Ccircle cx='40' cy='10' r='3' fill='%233270e8'/%3E%3Ccircle cx='130' cy='26' r='3' fill='%23f7c52d'/%3E%3Ccircle cx='200' cy='10' r='3' fill='%23e83a2c'/%3E%3C/svg%3E"); }
.wave-blue   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 36' preserveAspectRatio='none'%3E%3Cpath d='M0,18 Q27,2 55,18 T110,18 T165,18 T220,18' fill='none' stroke='%233270e8' stroke-width='3' stroke-linecap='round'/%3E%3Ccircle cx='40' cy='10' r='3' fill='%23e83a2c'/%3E%3Ccircle cx='130' cy='26' r='3' fill='%23f7c52d'/%3E%3Ccircle cx='200' cy='10' r='3' fill='%233270e8'/%3E%3C/svg%3E"); }
.wave-green  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 36' preserveAspectRatio='none'%3E%3Cpath d='M0,18 Q27,2 55,18 T110,18 T165,18 T220,18' fill='none' stroke='%234cb84a' stroke-width='3' stroke-linecap='round'/%3E%3Ccircle cx='40' cy='10' r='3' fill='%23e83a2c'/%3E%3Ccircle cx='130' cy='26' r='3' fill='%233270e8'/%3E%3Ccircle cx='200' cy='10' r='3' fill='%23f7c52d'/%3E%3C/svg%3E"); }
.wave-yellow { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 36' preserveAspectRatio='none'%3E%3Cpath d='M0,18 Q27,2 55,18 T110,18 T165,18 T220,18' fill='none' stroke='%23f7c52d' stroke-width='3' stroke-linecap='round'/%3E%3Ccircle cx='40' cy='10' r='3' fill='%23e83a2c'/%3E%3Ccircle cx='130' cy='26' r='3' fill='%233270e8'/%3E%3Ccircle cx='200' cy='10' r='3' fill='%234cb84a'/%3E%3C/svg%3E"); }
.wave-pink   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 36' preserveAspectRatio='none'%3E%3Cpath d='M0,18 Q27,2 55,18 T110,18 T165,18 T220,18' fill='none' stroke='%23ff80b5' stroke-width='3' stroke-linecap='round'/%3E%3Ccircle cx='40' cy='10' r='3' fill='%233270e8'/%3E%3Ccircle cx='130' cy='26' r='3' fill='%23f7c52d'/%3E%3Ccircle cx='200' cy='10' r='3' fill='%23e83a2c'/%3E%3C/svg%3E"); }

/* small section tag like "#01 · INTRO" */
.tag {
  display: inline-block;
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 6px 8px 5px 7px;
  margin-bottom: 18px;
  transform: rotate(-1.5deg);
}
.tag-red    { background: var(--red);    color: #fff; }
.tag-blue   { background: var(--blue);   color: #fff; }
.tag-green  { background: var(--green);  color: #fff; }
.tag-yellow { background: var(--yellow); color: var(--ink); }
.tag-pink   { background: var(--pink);   color: var(--ink); }

/* section headlines */
.sec-h {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.sec-h .em-r { color: var(--red); }
.sec-h .em-b { color: var(--blue); }
.sec-h .em-y { color: var(--yellow-deep); }
.sec-h .em-g { color: var(--green); }
.sec-h .em-p { color: var(--pink-deep); }

.sec-sub {
  font-family: var(--hand);
  font-size: 22px;
  color: var(--ink-soft);
  line-height: 1.35;
  max-width: 580px;
  margin-bottom: 28px;
}
.sec-sub strong { color: var(--ink); font-weight: 700; }

/* ============ HERO ============ */
.hero {
  padding: 60px 32px 90px;
  background: var(--wash-cream);
}
.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-l { display: flex; flex-direction: column; }

.hero-eyebrow {
  font-family: var(--hand);
  font-style: italic;
  color: var(--red);
  font-size: 22px;
  margin-bottom: 8px;
}
.hero-h {
  font-family: var(--display);
  font-size: clamp(96px, 14vw, 200px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.hero-h .l1 { color: var(--red); }
.hero-h .l2 { color: var(--blue); }
.hero-h .l3 { color: var(--yellow-deep); }
.hero-h .l4 { color: var(--green); }
.hero-h .l5 { color: var(--purple); }
.hero-h .l6 { color: var(--pink-deep); }
.hero-h .l7 { color: var(--ink); }

.hero-sub {
  font-family: var(--hand);
  font-size: 26px;
  line-height: 1.3;
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 520px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* the polaroid / drawing card on the right */
.polaroid {
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 8px 10px 7px 9px / 9px 7px 10px 8px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 18px 18px 12px;
  transform: rotate(-1deg);
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}
.polaroid:hover { transform: rotate(0.5deg); transition: transform .25s ease; }
.polaroid-canvas {
  background: #fff;
  border: 1.5px solid var(--ink);
  aspect-ratio: 1 / 1;
  width: 100%;
  display: block;
  position: relative;
  overflow: hidden;
}
.polaroid-cap {
  font-family: var(--hand);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
  text-align: center;
  padding-top: 14px;
}
.polaroid-tape {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 120px; height: 28px;
  background: rgba(247, 197, 45, 0.7);
  border: 1px solid rgba(0,0,0,0.15);
  z-index: 2;
}

/* HUD chips floating beside the hero polaroid */
.hud-chip {
  position: absolute;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 14px 16px 13px 15px;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 10px 14px;
  font-family: var(--display);
  z-index: 5;
}
.hud-chip .k {
  font-family: var(--hand);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-fade);
}
.hud-chip .v {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
}

.hud-1 { top: -16px; right: -16px; transform: rotate(3deg); background: var(--yellow); }
.hud-2 { bottom: 40px; left: -18px; transform: rotate(-4deg); background: var(--pink); }

/* ============ HOW IT WORKS (numbered scenes) ============ */
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  margin-top: 32px;
}
.step-card {
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 14px 18px 12px 16px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 22px 22px 26px;
  position: relative;
  transition: transform .18s ease;
}
.step-card:nth-child(1) { transform: rotate(-1deg); }
.step-card:nth-child(2) { transform: rotate(1deg); }
.step-card:nth-child(3) { transform: rotate(-0.5deg); }
.step-card:hover { transform: rotate(0) translateY(-3px); }

.step-num {
  position: absolute;
  top: -22px;
  left: 18px;
  width: 50px; height: 50px;
  background: var(--red);
  color: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 3px 0 var(--ink);
}
.step-card:nth-child(2) .step-num { background: var(--blue); }
.step-card:nth-child(3) .step-num { background: var(--yellow); color: var(--ink); }

.step-h {
  font-family: var(--display);
  font-size: 30px;
  line-height: 1.05;
  margin: 24px 0 10px;
  color: var(--ink);
}
.step-body {
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.step-body strong { color: var(--red); }
.step-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 2px dashed var(--ink-faint);
  font-family: var(--hand);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-fade);
}

/* ============ EXAMPLES GRID ============ */
.examples-h {
  text-align: center;
  margin: 0 auto 14px;
}
.examples-sub {
  text-align: center;
  margin: 0 auto 36px;
}
.example-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.example {
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 10px 14px 9px 13px;
  box-shadow: 5px 5px 0 var(--ink);
  padding: 12px 12px 14px;
  transition: transform .18s ease;
}
.example:nth-child(odd)  { transform: rotate(-0.6deg); }
.example:nth-child(even) { transform: rotate(0.8deg); }
.example:hover { transform: rotate(0) translateY(-3px); }
.example-img {
  background: #fff;
  border: 1.5px solid var(--ink);
  aspect-ratio: 1 / 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.example-img svg { width: 80%; height: 80%; }
.example-prompt {
  font-family: var(--hand);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-fade);
  text-align: center;
  margin-bottom: 4px;
}
.example-stat {
  font-family: var(--display);
  font-size: 18px;
  text-align: center;
  color: var(--ink);
}
.example-stat .em { color: var(--red); }

/* shown when /api/winners returns 0 winners */
.examples-empty {
  grid-column: 1 / -1;
  text-align: center;
  font-family: var(--hand);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-fade);
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.4);
  border: 2.5px dashed var(--ink-faint);
  border-radius: 18px 22px 16px 20px;
  line-height: 1.45;
}

/* hero polaroid placeholder when no real winners exist yet */
.polaroid-empty {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  background: var(--wash-yellow);
  gap: 8px;
}
.polaroid-empty-eyebrow {
  font-family: var(--hand);
  font-style: italic;
  font-size: 18px;
  color: var(--red);
}
.polaroid-empty-headline {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  color: var(--ink);
}
.polaroid-empty-sub {
  font-family: var(--hand);
  font-style: italic;
  font-size: 20px;
  color: var(--ink-soft);
  margin-top: 6px;
}
#heroPolaroidImg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

/* ============ RULES (numbered list) ============ */
.rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
  margin-top: 24px;
}
.rule {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 12px 14px 11px 13px;
  box-shadow: 4px 4px 0 var(--ink);
}
.rule-bullet {
  font-family: var(--display);
  font-size: 32px;
  color: var(--red);
  line-height: 1;
}
.rule-body h4 {
  font-family: var(--display);
  font-size: 22px;
  margin-bottom: 4px;
  color: var(--ink);
}
.rule-body p {
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* ============ FOOTER ============ */
.foot {
  padding: 60px 32px 36px;
  border-top: 2px solid var(--ink);
  background: var(--wash-cream);
}
.foot-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.foot-brand { font-family: var(--display); font-size: 32px; margin-bottom: 12px; }
.foot-tag {
  font-family: var(--hand);
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 360px;
  line-height: 1.35;
}
.foot-col h5 {
  font-family: var(--display);
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 10px;
}
.foot-col ul { display: flex; flex-direction: column; gap: 8px; }
.foot-col a {
  font-family: var(--hand);
  font-size: 19px;
  color: var(--ink);
  transition: color .12s ease;
}
.foot-col a:hover { color: var(--red); }

.foot-bot {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 2px dashed var(--ink-faint);
  font-family: var(--hand);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-fade);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 32px; left: 50%;
  transform: translate(-50%, 32px);
  z-index: 999;
  padding: 14px 22px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--display);
  font-size: 22px;
  border: 3px solid var(--ink);
  border-radius: 14px 18px 12px 16px;
  box-shadow: 6px 6px 0 var(--red);
  opacity: 0;
  pointer-events: none;
  transition: all .22s ease;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .hero-inner   { grid-template-columns: 1fr; gap: 40px; }
  .steps        { grid-template-columns: 1fr; }
  .example-grid { grid-template-columns: 1fr 1fr; }
  .rules        { grid-template-columns: 1fr; }
  .foot-inner   { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .masthead     { padding: 12px 16px; flex-wrap: wrap; }
  .nav-actions  { gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
  .btn          { font-size: 15px; padding: 6px 12px; }
  .ca-pill      { font-size: 11px; padding: 6px 10px; }
  .ca-pill .ca-pill-k { font-size: 13px; }
  .no-connect-sticker { padding: 10px 14px; gap: 10px; }
  .no-connect-sticker .ncs-check { width: 36px; height: 36px; font-size: 28px; }
  .no-connect-sticker .ncs-text strong { font-size: 18px; }
  .no-connect-sticker .ncs-text .ncs-sub { font-size: 15px; }
  .sec          { padding: 60px 20px; }
  .hero         { padding: 36px 20px 60px; }
  .hero-h       { font-size: 80px; }
  .example-grid { grid-template-columns: 1fr; }
  .foot-inner   { grid-template-columns: 1fr; gap: 24px; }
}

/* ============ PLAY PAGE OVERRIDES (drawing canvas + voting) ============ */
.play-shell {
  min-height: calc(100vh - 80px);
  padding: 32px;
  background: var(--wash-cream);
}
.play-inner {
  max-width: 980px;
  margin: 0 auto;
}

/* round bar */
.round-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 22px;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 16px 20px 14px 18px;
  box-shadow: 5px 5px 0 var(--ink);
  margin-bottom: 28px;
}
.rb-phase {
  font-family: var(--display);
  font-size: 26px;
  padding: 4px 14px;
  background: var(--red);
  color: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 10px 12px 9px 11px;
}
.rb-phase.draw { background: var(--red); color: #fff; }
.rb-phase.vote { background: var(--blue); color: #fff; }
.rb-phase.reveal { background: var(--yellow); color: var(--ink); }

.rb-prompt {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 36px);
  text-align: center;
  color: var(--ink);
  line-height: 1.05;
}
.rb-prompt .em { color: var(--red); }

.rb-timer {
  font-family: var(--display);
  font-size: 36px;
  width: 100px;
  text-align: center;
  background: var(--ink);
  color: #fff;
  padding: 8px 0;
  border: 2.5px solid var(--ink);
  border-radius: 12px 14px 11px 13px;
  font-variant-numeric: tabular-nums;
}

/* canvas frame */
.canvas-wrap {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 22px;
  align-items: start;
}
.canvas-frame {
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 16px 20px 14px 18px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 16px;
}
.canvas-el {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1.5px solid var(--ink);
  background: #fff;
  cursor: crosshair;
  touch-action: none;
}

/* toolbar */
.toolbar {
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 16px 20px 14px 18px;
  box-shadow: 5px 5px 0 var(--ink);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tool-group h5 {
  font-family: var(--display);
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--ink);
}
.color-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.color-swatch {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  box-shadow: 2px 2px 0 var(--ink);
}
.color-swatch:hover { transform: scale(1.1); }
.color-swatch.active {
  transform: scale(1.15);
  box-shadow: 4px 4px 0 var(--ink);
}
.size-row {
  display: flex;
  gap: 10px;
  justify-content: space-around;
  align-items: center;
}
.size-btn {
  width: 44px; height: 44px;
  border: 2.5px solid var(--ink);
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform .12s ease;
}
.size-btn:hover { transform: translateY(-1px); }
.size-btn.active { background: var(--ink); }
.size-btn .dot {
  background: var(--ink);
  border-radius: 50%;
}
.size-btn.active .dot { background: #fff; }
.size-btn.s1 .dot { width: 4px; height: 4px; }
.size-btn.s2 .dot { width: 8px; height: 8px; }
.size-btn.s3 .dot { width: 14px; height: 14px; }

.tool-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tool-btn {
  font-family: var(--display);
  font-size: 18px;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 10px 12px 9px 11px;
  padding: 8px;
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
  transition: transform .12s ease;
}
.tool-btn:hover { transform: translate(-1px, -1px); }
.tool-btn.active { background: var(--yellow); }

.submit-row {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 2px dashed var(--ink-faint);
}
.submit-btn {
  width: 100%;
  font-family: var(--display);
  font-size: 22px;
  background: var(--green);
  color: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 14px 16px 13px 15px;
  padding: 12px;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform .12s ease;
}
.submit-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.submit-btn:disabled { background: var(--ink-faint); cursor: not-allowed; transform: none; box-shadow: 2px 2px 0 var(--ink); }
.submit-status {
  text-align: center;
  margin-top: 8px;
  font-family: var(--hand);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-fade);
}

/* voting grid */
.vote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}
.vote-card {
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 12px 16px 11px 15px;
  box-shadow: 5px 5px 0 var(--ink);
  padding: 12px 12px 14px;
  cursor: pointer;
  transition: transform .15s ease;
  position: relative;
}
.vote-card:hover { transform: translateY(-4px) rotate(0.3deg); }
.vote-card.voted {
  background: var(--yellow);
  transform: translateY(-4px) rotate(-0.5deg);
}
.vote-card.mine {
  cursor: default;
  background: var(--wash-yellow);
  opacity: 0.85;
}
.vote-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1.5px solid var(--ink);
}
.vote-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.vote-card-name {
  font-family: var(--hand);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
}
.vote-card-votes {
  font-family: var(--display);
  font-size: 22px;
  color: var(--red);
}
.vote-card-mine-tag {
  position: absolute;
  top: -10px; right: 8px;
  font-family: var(--display);
  font-size: 14px;
  background: var(--blue);
  color: #fff;
  padding: 3px 10px;
  border: 2px solid var(--ink);
  border-radius: 6px 8px 5px 7px;
  transform: rotate(3deg);
}

/* registration card */
.gate {
  max-width: 540px;
  margin: 60px auto;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 18px 22px 16px 20px;
  box-shadow: 7px 7px 0 var(--ink);
  padding: 36px 34px;
  text-align: center;
}
.gate h2 {
  font-family: var(--display);
  font-size: 48px;
  line-height: 1;
  margin-bottom: 8px;
}
.gate h2 .em { color: var(--red); }
.gate p {
  font-family: var(--hand);
  font-size: 22px;
  color: var(--ink-soft);
  margin-bottom: 24px;
  line-height: 1.3;
}
.gate-form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.gate-form label {
  font-family: var(--display);
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 4px;
  display: block;
}
.gate-form input {
  width: 100%;
  font-family: var(--mono);
  font-size: 16px;
  padding: 12px 14px;
  border: 2.5px solid var(--ink);
  border-radius: 10px 12px 9px 11px;
  background: var(--wash-cream);
  color: var(--ink);
}
.gate-form input:focus { outline: 3px solid var(--yellow); }
.gate-error {
  background: var(--red);
  color: #fff;
  font-family: var(--hand);
  font-size: 18px;
  padding: 10px 14px;
  border-radius: 8px 10px 7px 9px;
  margin-top: 4px;
  display: none;
}
.gate-error.show { display: block; }
.gate-submit {
  margin-top: 12px;
  font-family: var(--display);
  font-size: 26px;
  background: var(--red);
  color: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 14px 16px 13px 15px;
  padding: 14px;
  box-shadow: 5px 5px 0 var(--ink);
  cursor: pointer;
  transition: transform .12s ease;
}
.gate-submit:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.gate-foot {
  margin-top: 16px;
  font-family: var(--hand);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-fade);
}

/* winner reveal */
.reveal {
  background: var(--wash-yellow);
  border: 2.5px solid var(--ink);
  border-radius: 18px 22px 16px 20px;
  box-shadow: 7px 7px 0 var(--ink);
  padding: 26px 30px;
  text-align: center;
  margin-bottom: 22px;
}
.reveal-eyebrow {
  font-family: var(--hand);
  font-style: italic;
  font-size: 20px;
  color: var(--red);
  margin-bottom: 6px;
}
.reveal-h {
  font-family: var(--display);
  font-size: 44px;
  line-height: 1;
  margin-bottom: 10px;
}
.reveal-h .em { color: var(--red); }
.reveal-sub {
  font-family: var(--hand);
  font-size: 20px;
  color: var(--ink-soft);
}

/* mobile play */
@media (max-width: 800px) {
  .canvas-wrap { grid-template-columns: 1fr; }
  .vote-grid   { grid-template-columns: 1fr 1fr; }
  .round-bar   { grid-template-columns: 1fr; gap: 10px; text-align: center; }
  .rb-timer    { margin: 0 auto; }
}
