:root {
  --bg: #fff7fb;
  --card: #ffffff;
  --ink: #3b1d3a;
  --muted: #8a6a86;
  --pink: #ff5c8a;
  --sun: #ffc542;
  --pink-soft: #ffe3ee;
  --sun-soft: #fff1c9;
  --pink-deep: #ff3d75;
  --radius: 12px;
  --shadow-1: 0 1px 2px rgba(59, 29, 58, 0.06);
  --shadow-2: 0 8px 24px rgba(59, 29, 58, 0.08);
  --font-head: "Baloo 2", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wire: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='28' viewBox='0 0 96 28'%3E%3Cpath d='M0 4Q48 20 96 4' fill='none' stroke='%233b1d3a' stroke-width='2'/%3E%3C/svg%3E");
  --bulbs-pink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='28' viewBox='0 0 96 28'%3E%3Ccircle cx='24' cy='16' r='5' fill='%23ff5c8a' stroke='%233b1d3a' stroke-width='2'/%3E%3C/svg%3E");
  --bulbs-sun: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='28' viewBox='0 0 96 28'%3E%3Ccircle cx='72' cy='16' r='5' fill='%23ffc542' stroke='%233b1d3a' stroke-width='2'/%3E%3C/svg%3E");
  --dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='8' cy='8' r='3' fill='%23ffc9dc'/%3E%3Ccircle cx='24' cy='24' r='3' fill='%23ffc9dc'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
}
img { max-width: 100%; height: auto; }
a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; margin: 0; }

/* holiday lights */
.lights {
  position: relative;
  height: 28px;
  overflow: hidden;
  background: var(--wire) repeat-x 0 0;
}
.lights::before, .lights::after {
  content: "";
  position: absolute;
  inset: 0;
  animation: twinkle 2.4s ease-in-out infinite;
}
.lights::before { background: var(--bulbs-pink) repeat-x 0 0; }
.lights::after { background: var(--bulbs-sun) repeat-x 0 0; animation-delay: 1.2s; }
@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
@media (prefers-reduced-motion: reduce) {
  .lights::before, .lights::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* header and footer */
.bar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-header { padding: 12px 0 8px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 22px/1 var(--font-head);
  color: var(--ink);
  text-decoration: none;
}
.gf-site-icon { width: 32px; height: 32px; border-radius: 8px; display: block; }
.nav, .foot-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a, .foot-nav a {
  padding: 8px 12px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}
.nav a:hover, .foot-nav a:hover { background: var(--pink-soft); }
.site-footer {
  margin-top: 0;
  padding: 24px 0;
  border-top: 3px solid var(--ink);
  background: var(--card);
}
.foot-note { margin: 0; font-size: 14px; color: var(--muted); }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font: 700 18px/1 var(--font-head);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { background: var(--sun-soft); }
.btn-primary { background: var(--pink); box-shadow: 0 4px 0 var(--ink); }
.btn-primary:hover { background: var(--pink-deep); }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.btn[disabled]:hover { background: var(--card); }
.btn-primary[disabled]:hover { background: var(--pink); }

/* hero */
.hero-in { max-width: 1120px; margin: 0 auto; padding: 24px 24px 24px; }
.hero h1 { font-size: 48px; }
.hero h1 .mark {
  background: linear-gradient(transparent 62%, var(--sun) 62%, var(--sun) 90%, transparent 90%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.lead { margin: 16px 0 0; max-width: 60ch; font-size: 18px; }

/* studio */
.studio-band {
  background: var(--pink-soft) var(--dots);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 32px 0 48px;
}
.studio-in { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.pc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: start;
}
.pc-frame {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 16px 12px;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  transform: rotate(-1deg);
}
.pc-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--pink-soft);
}
.pc-stage.is-over { outline: 4px dashed var(--pink); outline-offset: -8px; }
.pc-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.pc-stage canvas:focus-visible { outline: 3px solid var(--ink); outline-offset: -6px; }
.pc-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  background: var(--pink-soft) var(--dots);
}
.pc-empty[hidden] { display: none; }
.pc-empty::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 3px dashed var(--pink);
  border-radius: var(--radius);
  pointer-events: none;
}
.pc-empty-emoji { margin: 0; font-size: 48px; line-height: 1.2; }
.pc-empty-title { margin: 0; font: 700 22px/1.2 var(--font-head); }
.pc-empty-sub { margin: 0 0 8px; font-size: 14px; color: var(--ink); }
.pc-caption { margin: 12px 0 0; text-align: center; font: 700 16px/1.4 var(--font-head); }

.pc-panel {
  display: grid;
  gap: 24px;
  padding: 24px;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}
.pc-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font: 700 18px/1.2 var(--font-head);
}
.pc-num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--card);
  font: 700 14px/1 var(--font-head);
}
.pc-wide { width: 100%; }
.pc-stickers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pc-sticker {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 8px 4px;
  min-height: 72px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  font: 600 12px/1.2 var(--font-body);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}
.pc-sticker:hover { background: var(--sun-soft); transform: translateY(-4px) rotate(-3deg); }
.pc-sticker:active { transform: scale(0.94); }
.pc-emoji { font-size: 28px; line-height: 1; }
.pc-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.pc-tools .btn { min-height: 48px; padding: 0 8px; font-size: 16px; }
.pc-status { margin: 0; min-height: 24px; font-size: 14px; color: var(--muted); }

/* long copy, written as Markdown in the page body */
.prose {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  grid-template-columns: 240px minmax(0, 720px);
  column-gap: 48px;
  row-gap: 16px;
  align-items: start;
}
.prose > * { grid-column: 2; margin: 0; }
.prose > h2 { grid-column: 1; font-size: 28px; margin-top: 48px; }
.prose > h2 + * { margin-top: 48px; }
.prose > h2:first-child, .prose > h2:first-child + * { margin-top: 0; }
.prose p { font-size: 18px; max-width: 70ch; }
.prose strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.prose ol, .prose ul { list-style: none; padding: 0; display: grid; gap: 16px; }
.prose ol { counter-reset: step; }
.prose ol > li {
  counter-increment: step;
  position: relative;
  padding: 16px 16px 16px 64px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.prose ol > li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--pink);
  font: 700 18px/1 var(--font-head);
}
.prose ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prose ul > li {
  padding: 16px;
  background: var(--sun-soft);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}
.prose ul + h2 + ul > li, .prose p + h2 + ul > li { background: var(--pink-soft); }
.prose li > strong:first-child { font-family: var(--font-head); font-weight: 700; font-size: 18px; }

/* FAQ */
.faq-band {
  background: var(--sun-soft);
  border-top: 3px solid var(--ink);
  padding: 64px 0;
}
.faq-in {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 240px minmax(0, 720px);
  column-gap: 48px;
  align-items: start;
}
.faq-in h2 { font-size: 28px; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}
.faq-item summary {
  position: relative;
  padding: 16px 64px 16px 16px;
  font: 700 18px/1.3 var(--font-head);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--pink);
  font: 700 18px/1 var(--font-head);
}
.faq-item[open] summary::after { content: "\2212"; background: var(--sun); }
.faq-item p { margin: 0; padding: 0 16px 16px; max-width: 70ch; }

/* plain pages: privacy, terms, 404 */
.plain { max-width: 760px; margin: 0 auto; padding: 48px 24px 64px; }
.prose.legal { display: block; padding: 0; max-width: 100%; }
.prose.legal > * { margin: 0 0 16px; }
.prose.legal > h1 { font-size: 36px; margin-bottom: 8px; }
.prose.legal > h2 { margin-top: 32px; font-size: 22px; }
.prose.legal > h2 + * { margin-top: 0; }
.prose.legal ul { display: block; padding-left: 24px; list-style: disc; }
.prose.legal ul > li { display: list-item; padding: 0 0 8px; background: none; border: 0; border-radius: 0; }
.prose.legal .back { margin-top: 32px; }
.lost { text-align: center; padding: 48px 0; }
.lost-emoji { font-size: 48px; margin: 0; }
.lost h1 { font-size: 36px; margin: 16px 0; }

/* tablet and phone */
@media (max-width: 860px) {
  .pc { grid-template-columns: 1fr; }
  .pc-frame { transform: none; }
  .prose { display: block; padding: 48px 16px; }
  .prose > * { margin: 0 0 16px; }
  .prose > h2 { margin-top: 48px; }
  .prose > h2 + * { margin-top: 0; }
  .prose > h2:first-child { margin-top: 0; }
  .faq-in { display: block; }
  .faq-in h2 { margin-bottom: 24px; }
}
@media (max-width: 640px) {
  .bar { padding: 0 16px; }
  .site-header { padding: 8px 0 4px; }
  .nav a { padding: 8px; font-size: 14px; }
  .nav .nav-studio { display: none; }
  .hero-in { padding: 8px 16px 16px; }
  .hero h1 { font-size: 32px; }
  .lead { font-size: 16px; }
  .studio-band { padding: 24px 0; }
  .studio-in { padding: 0 16px; }
  .pc { gap: 24px; }
  .pc-frame { padding: 12px 12px 8px; }
  .pc-panel { padding: 16px; }
  .pc-empty-emoji { font-size: 36px; }
  .pc-empty-title { font-size: 18px; }
  .prose ul { grid-template-columns: 1fr; }
  .faq-band { padding: 48px 0; }
  .faq-in { padding: 0 16px; }
  .plain { padding: 32px 16px 48px; }
  .btn { width: 100%; }
  .pc-tools .btn { width: auto; }
  .foot-note { flex-basis: 100%; }
}
