/* Line To Cute Girl (linetocutegirl.com)
 * Handcrafted Japanese Sketchbook Paper Aesthetic
 * Warm washi/sketch paper (#FAF8F4), atelier desk (#F1ECE3), sumi ink (#1E1D1B), sakura coral accent (#E85D75).
 */
:root {
  --paper: #FAF8F4;
  --desk: #F1ECE3;
  --card: #FFFDF9;
  --ink: #1E1D1B;
  --ink-soft: #4F4B45;
  --ink-muted: #7C756C;
  --line: rgba(30, 29, 27, 0.12);
  --line-strong: rgba(30, 29, 27, 0.24);
  --accent: #E85D75;
  --accent-hover: #D44761;
  --accent-tint: rgba(232, 93, 117, 0.10);
  --accent-border: rgba(232, 93, 117, 0.34);
  --shadow-paper: 0 12px 32px rgba(48, 38, 28, 0.08), 0 2px 6px rgba(48, 38, 28, 0.05);
  --shadow-soft: 0 4px 14px rgba(48, 38, 28, 0.06);
  --radius-sheet: 16px;
  --radius-card: 12px;
  --radius-pill: 999px;
  --font-sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "PingFang SC", "Apple SD Gothic Neo", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Shippori Mincho", "Hiragino Mincho ProN", "Songti SC", "AppleMyungjo", Georgia, serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background: var(--desk);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 253, 249, 0.7), transparent 52%),
    var(--desk);
  color: var(--ink);
  line-height: 1.55;
}

/* Fixed lightweight paper-grain overlay (zero scroll repaint cost) */
.paper-grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

button:active:not(:disabled) {
  transform: translateY(1px) scale(0.985);
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Header — strict single-line, compact height */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 56px;
  background: rgba(250, 248, 244, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1120px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-select {
  background-color: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--ink);
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.icon-btn:hover {
  border-color: var(--ink);
}

.icon-btn .ic-off { display: none; }
.icon-btn.is-muted .ic-on { display: none; }
.icon-btn.is-muted .ic-off { display: block; color: var(--ink-muted); }

/* Above-the-Fold Atelier Studio Stage */
.studio-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 20px 28px;
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 548px) minmax(300px, 1fr);
  gap: 24px;
  align-items: start;
}

/* Left: Sketchbook Paper Canvas */
.sketchbook-stage {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sheet);
  padding: 12px;
  box-shadow: var(--shadow-paper);
  position: relative;
}

.sketchbook-stage.shake-nudge {
  animation: gentleShake 0.36s ease;
}

@keyframes gentleShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  65% { transform: translateX(5px); }
}

.canvas-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(30, 29, 27, 0.10);
  background: var(--paper);
}

#sketch-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
}

.canvas-hint {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
  color: var(--ink-muted);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  padding: 20px;
}

.canvas-hint svg {
  width: 120px;
  height: 44px;
  stroke: var(--accent);
  opacity: 0.65;
}

.canvas-hint[hidden] {
  display: none;
}

.canvas-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 253, 249, 0.94);
  border: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  pointer-events: none;
  box-shadow: var(--shadow-soft);
}

.canvas-pill.is-hold {
  top: auto;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ink-soft);
  font-weight: 600;
  white-space: nowrap;
}

.canvas-pill[hidden] {
  display: none;
}

.studio-toast {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translate(-50%, 8px);
  background: var(--ink);
  color: #FAF8F4;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  max-width: calc(100% - 28px);
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.studio-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Under-canvas tactile ink toolbar */
.ink-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.brush-group,
.canvas-edit-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nib-btn {
  width: 34px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}

.nib-btn .dot {
  border-radius: 50%;
  background: var(--ink);
  display: block;
}

.nib-btn.is-active {
  border-color: var(--ink);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.tool-btn {
  height: 32px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.tool-btn:hover:not(:disabled) {
  background: var(--card);
  border-color: var(--ink);
}

.tool-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.tool-btn.is-accent-ghost {
  border-color: var(--accent-border);
  color: var(--accent-hover);
  background: var(--accent-tint);
}

/* Right: Studio Controls Panel */
.studio-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.studio-heading {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.7vw, 33px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.studio-subcopy {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 44ch;
}

/* Mode Segmented Switch */
.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(30, 29, 27, 0.06);
  border: 1px solid var(--line);
}

.mode-tab {
  border: 0;
  background: transparent;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.mode-tab.is-active {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(48, 38, 28, 0.08);
}

/* Control Card */
.control-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 13px;
  box-shadow: var(--shadow-soft);
}

.control-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
  margin-bottom: 9px;
}

/* Preset Strip (compact 2-row scrollable tray on desktop so Transform stays above fold) */
.preset-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  max-height: 172px;
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-width: thin;
  scrollbar-color: rgba(30, 29, 27, 0.22) transparent;
}

.preset-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  text-align: center;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.preset-chip:hover {
  border-color: var(--line-strong);
  background: var(--card);
}

.preset-chip.is-active {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.preset-chip img,
.preset-dice {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: #FFFFFF;
  border: 1px solid rgba(30, 29, 27, 0.07);
}

.preset-dice {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  background: var(--card);
}

.preset-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
}

/* Surprise Twist Card */
.twist-box {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
}

.twist-box[hidden],
.twist-picker-wrap[hidden] {
  display: none;
}

.twist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.twist-meta {
  min-width: 0;
}

.twist-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.twist-desc {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 1px;
}

/* Custom Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  background: rgba(30, 29, 27, 0.2);
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.switch-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #FFFDF9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.switch input:checked + .switch-slider {
  background: var(--accent);
}

.switch input:checked + .switch-slider::before {
  transform: translateX(20px);
}

.twist-picker-wrap {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.twist-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.twist-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 5px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-size: 12px;
  font-weight: 600;
}

.twist-chip:first-child {
  padding-left: 10px;
}

.twist-chip img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.twist-chip.is-active {
  border-color: var(--accent);
  background: var(--accent-tint);
  color: var(--accent-hover);
}

.prank-link-btn {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-border);
  background: var(--accent-tint);
  color: var(--accent-hover);
  font-size: 12.5px;
  font-weight: 700;
}

/* Prank Reveal Banner (for ?twist=1 visitors) */
.prank-gotcha {
  background: var(--accent-tint);
  border: 1.5px solid var(--accent-border);
  border-radius: var(--radius-card);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.prank-gotcha[hidden] {
  display: none;
}

.prank-gotcha p {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.prank-gotcha-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Mode 2: Any Picture Dropzone */
.custom-dropzone {
  display: block;
  width: 100%;
  position: relative;
  border: 1.5px dashed var(--line-strong);
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
  background: var(--paper);
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.custom-dropzone:hover,
.custom-dropzone.is-dragover {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.custom-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.privacy-note {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--ink-muted);
}

.custom-preview-wrap {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 9px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.custom-preview-wrap[hidden] {
  display: none;
}

.custom-preview-wrap img {
  width: 52px;
  height: 52px;
  border-radius: 7px;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--line);
}

.custom-stats {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}

.option-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.option-row > span {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
}

.pill-group {
  display: inline-flex;
  background: rgba(30, 29, 27, 0.06);
  padding: 3px;
  border-radius: 9px;
  gap: 2px;
}

.pill-opt {
  border: 0;
  background: transparent;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}

.pill-opt.is-active {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Primary Transform CTA */
.primary-cta {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px 18px;
  background: var(--accent);
  color: #FFFDF9;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 18px rgba(232, 93, 117, 0.30);
  transition: background-color 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
}

.primary-cta:hover:not(:disabled) {
  background: var(--accent-hover);
  box-shadow: 0 8px 22px rgba(212, 71, 97, 0.36);
}

.primary-cta:disabled {
  opacity: 0.72;
  cursor: wait;
}

/* Result Action Dock */
.result-dock {
  background: var(--card);
  border: 1.5px solid var(--accent-border);
  border-radius: var(--radius-card);
  padding: 13px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-dock[hidden] {
  display: none;
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.result-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.view-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 3px;
  border-radius: 9px;
  background: rgba(30, 29, 27, 0.06);
}

.view-tab {
  border: 0;
  background: transparent;
  padding: 7px 6px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
}

.view-tab.is-active {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(48, 38, 28, 0.1);
}

.export-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-export {
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: #FAF8F4;
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 700;
}

.btn-export.is-secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-export.is-secondary:hover {
  border-color: var(--ink);
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.share-chip {
  flex: 1;
  min-width: 84px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}

.share-chip:hover {
  border-color: var(--ink);
  background: var(--card);
}

/* Non-intrusive Ad Slot (cleanly below the studio fold) */
.ad-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 10px;
}

/* Below-the-fold non-intrusive ad slot: keeps real in-flow layout dimensions while unfilled so Adsterra viewability & offsetWidth checks succeed */
.ad-slot {
  margin: 0 auto;
  max-width: 744px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  text-align: center;
  transition: opacity 0.24s ease, max-height 0.24s ease;
}

.ad-slot:not(.is-filled) {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.ad-slot.is-filled {
  max-height: 150px;
  opacity: 1;
}

.ad-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

/* Below-the-fold Editorial Sections (Anti-Slop Layout Diversity) */
.editorial-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 64px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.25;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 60ch;
}

/* Section 1: Asymmetric How-It-Works Walkthrough */
.how-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.step-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.step-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.step-num {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.step-list h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.step-list p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.how-showcase {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sheet);
  padding: 18px;
  box-shadow: var(--shadow-paper);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.how-card {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.how-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #fff;
}

.how-card figcaption {
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
}

/* Section 2: Clickable Contact-Sheet Preset Gallery */
.gallery-section {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.gallery-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 14px;
}

.gallery-card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 9px;
  text-align: left;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.gallery-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
}

.gallery-card strong {
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--ink);
}

.gallery-card span {
  display: block;
  font-size: 11.5px;
  color: var(--ink-muted);
}

/* Section 3: Privacy & Dual-Mode Editorial Band */
.privacy-band {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sheet);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: start;
}

.privacy-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.privacy-points li {
  padding-left: 14px;
  border-left: 2.5px solid var(--accent);
  font-size: 14px;
  color: var(--ink-soft);
}

.privacy-points strong {
  color: var(--ink);
}

/* Section 4: FAQ Accordion */
.faq-section {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.faq-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 0 18px;
}

.faq-item summary {
  padding: 15px 0;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 28px 20px 36px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Mobile Layout — Single-Screen Playable Studio */
@media (max-width: 920px) {
  body {
    overflow-x: clip;
  }

  .studio-wrap {
    padding: 8px 12px 18px;
  }

  .studio-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .studio-grid > *,
  .studio-controls > * {
    min-width: 0;
    max-width: 100%;
  }

  /* Put mode tabs + compact header above canvas visually via order */
  .studio-controls {
    display: contents;
  }

  .studio-head-block {
    order: 1;
  }

  .mode-tabs {
    order: 2;
  }

  #panel-cute,
  #panel-custom {
    order: 3;
    padding: 9px 10px;
  }

  .control-label {
    margin-bottom: 6px;
  }

  .twist-box {
    margin-top: 8px;
    padding-top: 8px;
  }

  .twist-desc {
    display: none;
  }

  .sketchbook-stage {
    order: 4;
    padding: 8px;
  }

  .primary-cta {
    order: 5;
    padding: 12px 16px;
  }

  .prank-gotcha {
    order: 6;
  }

  .result-dock {
    order: 7;
  }

  .studio-heading {
    font-size: 20px;
  }

  .studio-subcopy {
    display: none;
  }

  /* Horizontal compact scroll strip for presets on mobile so canvas stays above the fold! */
  .preset-strip {
    display: flex;
    width: 100%;
    max-width: 100%;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 0;
    gap: 7px;
    padding-bottom: 3px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .preset-chip {
    flex: 0 0 66px;
    padding: 4px 3px;
    scroll-snap-align: start;
  }

  .preset-chip img,
  .preset-dice {
    width: 40px;
    height: 40px;
  }

  .canvas-frame {
    max-width: min(100%, 336px);
    margin: 0 auto;
  }

  .ink-toolbar {
    margin-top: 8px;
  }

  .how-split,
  .privacy-band {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .privacy-band {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
