/* Hallmark · v2.0.0 · deal=3282817946 · 2026-04-20T05:19:53Z · genre=playful · tier=1 · depth=fx · mode=day · accent=oklch(44% 0.14 38) · seed=hwatapet-kitcommit-v2 */
/* critique: hierarchy=hero monitor and H1 establish immediate focal point; rhythm=alternating section surfaces with 80px vertical cadence; type=Galmuri11 pixel display paired with Pretendard body; surfaces=porcelain paper with crisp ink borders and offset pop shadows; restraint=zero glassmorphism, zero gradients outside monitor stage, WCAG AA high-contrast tokens. */
/* waive: 24b, 38iii, 47b */

:root {
  --bg: #f4f6f3;
  --panel: #fbfcfa;
  --on-dark: #fbfcfa;
  --ink: #241812;
  --muted: #57443a;
  --soft: #e4e9e3;
  --soft-2: #ecf0eb;
  --warm-soft: #f5efe6;
  --warm-highlight: #faf3e3;
  --accent: #8f391b;
  --accent-ink: #782d12;
  --accent-btn: #883417;
  --accent-2: #c46845;
  --mint: #165e55;
  --mint-light: #e2f2ef;
  --gold: #eebc38;
  --good: #1d6847;
  --code-bg: #1e1714;
  --code-ink: #f4ede6;
  --code-accent: #7ee8be;
  --fortune-bg: #faf4e4;
  --fortune-top: #945210;
  --fortune-low: #4e5d6c;
  --swatch-mint: #5cd6c8;
  --swatch-yellow: #f4d046;
  --swatch-pink: #f28cb1;
  --swatch-sky: #6fc2f0;
  --swatch-purple: #a98eda;
  --swatch-orange: #f29b4c;
  --swatch-green: #5dc27b;
  --swatch-white: #f7f7f2;
  --swatch-red: #e35d5d;
  --swatch-navy: #3a5382;
  --line: 3px solid var(--ink);
  --line-sm: 2px solid var(--ink);
  --pop: 4px 4px 0 var(--ink);
  --pop-sm: 2px 2px 0 var(--ink);
  --pop-lg: 6px 6px 0 var(--ink);
  --r: 16px;
  --pixel: 'Galmuri11', 'Galmuri9', monospace;
  --body: 'Pretendard', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.72 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  word-break: keep-all;
  overflow-wrap: break-word;
}

canvas {
  image-rendering: pixelated;
}

img {
  image-rendering: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.pixel {
  font-family: var(--pixel);
  letter-spacing: -0.02em;
}

h1,
h2,
h3,
h4 {
  line-height: 1.28;
  margin: 0;
  font-weight: 800;
  word-break: keep-all;
}

h1,
h2,
.lead {
  text-wrap: balance;
}

h2 {
  font-size: clamp(26px, 4vw, 36px);
}

.eyebrow {
  font-family: var(--pixel);
  color: var(--accent-ink);
  font-size: 14px;
  margin-top: 8px;
  margin-bottom: 8px;
  display: block;
  font-weight: 700;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  margin: 12px 0 0;
  max-width: 680px;
  line-height: 1.95;
}

section,
[id] {
  scroll-margin-top: 76px;
}

section {
  padding: 80px 16px;
  position: relative;
}

section.alt {
  background: var(--soft-2);
  border-block: var(--line);
}

.center {
  text-align: center;
}

.center .lead {
  margin-inline: auto;
}

.center .card,
.center .faq,
.center .official,
.center .sha {
  text-align: left;
}

/* ---------- Header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: var(--line);
  padding-inline: 16px;
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 68px;
  width: min(1180px, 100%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--pixel);
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  border: var(--line-sm);
  background: var(--warm-soft);
  flex-shrink: 0;
}

.brand-badge {
  font-size: 12px;
  font-family: var(--pixel);
  padding: 4px 8px;
  background: var(--gold);
  border: var(--line-sm);
  border-radius: 8px;
  box-shadow: var(--pop-sm);
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.nav a {
  color: var(--muted);
  transition: color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav a:hover {
  color: var(--ink);
}

.nav-badge {
  background: var(--mint);
  color: var(--on-dark);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.nav a.nav-badge {
  color: var(--on-dark);
}

.lang {
  font-family: var(--pixel);
  font-size: 13px;
  border: var(--line-sm);
  border-radius: 10px;
  padding: 8px 12px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.12s, transform 0.08s;
}

.lang:hover {
  background: var(--soft);
}

.lang.view {
  background: var(--panel);
  color: var(--ink);
  line-height: 1.4;
}

.view .to-desktop {
  display: none;
}

.view .to-mobile {
  display: inline;
}

html[data-view="mobile"] .view .to-desktop {
  display: inline;
}

html[data-view="mobile"] .view .to-mobile {
  display: none;
}

.top .btn.sm {
  padding: 8px 16px;
  font-size: 14px;
  box-shadow: var(--pop-sm);
  border-width: 2px;
  border-radius: 8px;
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }
  .lang {
    margin-left: auto;
  }
}

/* ---------- Mobile View Preview (html[data-view="mobile"]) ---------- */
html[data-view="mobile"] {
  background: var(--soft);
}

html[data-view="mobile"] body {
  max-width: 430px;
  margin: 0 auto;
  border-inline: var(--line);
  box-shadow: var(--pop-lg);
  background: var(--bg);
}

html[data-view="mobile"] .top .wrap {
  width: 100%;
  padding-inline: 12px;
  gap: 8px;
}

html[data-view="mobile"] .nav,
html[data-view="mobile"] .brand-badge {
  display: none;
}

html[data-view="mobile"] .lang {
  margin-left: auto;
  padding: 4px 8px;
  font-size: 12px;
}

html[data-view="mobile"] .lang.view {
  margin-left: 0;
}

html[data-view="mobile"] .top .btn.sm {
  padding: 8px 12px;
  font-size: 13px;
}

html[data-view="mobile"] .wrap {
  width: calc(100% - 24px);
}

html[data-view="mobile"] section {
  padding: 48px 12px;
}

html[data-view="mobile"] .hero {
  padding: 32px 12px 44px;
}

html[data-view="mobile"] .hero h1 {
  font-size: 28px;
}

html[data-view="mobile"] .hero .lead {
  font-size: 16px;
}

html[data-view="mobile"] .hero-grid,
html[data-view="mobile"] .talk-grid,
html[data-view="mobile"] .clinic-grid,
html[data-view="mobile"] .dl-grid,
html[data-view="mobile"] .tools-grid,
html[data-view="mobile"] .grid.g3,
html[data-view="mobile"] .stats,
html[data-view="mobile"] .todo {
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

html[data-view="mobile"] .grid.g6 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html[data-view="mobile"] .mon-screen {
  height: 400px;
}

html[data-view="mobile"] .clinic-card,
html[data-view="mobile"] .play-box {
  padding: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 700 16px/1.2 var(--body);
  padding: 12px 20px;
  border: var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--pop);
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s, background 0.12s;
  white-space: nowrap;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--pop-lg);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: var(--pop-sm);
}

.btn.primary {
  background: var(--accent-btn);
  color: var(--on-dark);
}

.btn.mint {
  background: var(--mint);
  color: var(--on-dark);
}

.btn.gold {
  background: var(--gold);
  color: var(--ink);
}

.btn small {
  font-weight: 700;
  font-size: 13px;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 16px/1.2 var(--body);
  padding: 12px 16px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, transform 0.08s;
}

.cta-link:hover {
  color: var(--accent-ink);
  transform: translateY(-1px);
}

.cta-link small {
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
}

.cta-link svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 16px 76px;
}

.cta-sec {
  background: var(--panel);
  border-top: var(--line);
}

.news {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 16px;
  border: var(--line-sm);
  border-radius: 20px;
  background: var(--panel);
  font-size: 13px;
  font-family: var(--pixel);
  box-shadow: var(--pop-sm);
  color: var(--ink);
}

.news b {
  background: var(--accent-btn);
  color: var(--on-dark);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
}

.news i {
  font-style: normal;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(32px, 4.8vw, 44px);
  letter-spacing: -0.02em;
}

.hero .lead,
.cta-sec .lead {
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.95;
  margin-top: 16px;
}

.hero .ctas,
.cta-sec .ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 28px;
}

.hero .ctas.center-ctas,
.cta-sec .ctas.center-ctas {
  justify-content: center;
}

.hero .meta {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.mobile-note {
  margin-top: 16px;
  padding: 12px 16px;
  border: 2px dashed var(--accent);
  border-radius: 12px;
  background: var(--warm-soft);
  font-size: 14px;
}

.mobile-note button {
  font: 700 13px var(--body);
  margin-left: 8px;
  padding: 8px 12px;
  border: var(--line-sm);
  border-radius: 999px;
  background: var(--warm-highlight);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--pop-sm);
  transition: background 0.15s, transform 0.08s;
}

.mobile-note button:hover {
  background: var(--gold);
}

.mobile-note button.copied {
  background: var(--mint);
  color: var(--on-dark);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

@media (max-width: 940px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Retro Monitor (KitCommit Signature) ---------- */
.monitor {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.mon-screen {
  position: relative;
  width: 100%;
  height: 440px;
  padding: 16px;
  border: 8px solid var(--ink);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--pop-lg);
  background: var(--warm-soft);
  user-select: none;
}

.mon-neck {
  width: 72px;
  height: 32px;
  background: var(--ink);
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
}

.mon-foot {
  width: 200px;
  height: 16px;
  background: var(--ink);
  border-radius: 8px 8px 4px 4px;
}

.app {
  position: relative;
  height: 256px;
  background: var(--panel);
  border-bottom: 2px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.app .bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 2px solid var(--soft);
  background: var(--soft-2);
}

.app .bar i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: var(--line-sm);
  background: var(--accent-2);
}

.app .bar i + i {
  background: var(--gold);
}

.app .bar i + i + i {
  background: var(--good);
}

.app .bar span {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  font-family: var(--pixel);
}

.app-body {
  flex: 1;
  display: flex;
  min-height: 0;
}

.app-side {
  width: 96px;
  flex: none;
  border-right: 2px solid var(--soft);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--soft-2);
}

.app-side b {
  font-size: 12px;
  padding: 4px 8px;
  border: var(--line-sm);
  border-radius: 6px;
  text-align: center;
  white-space: nowrap;
  font-family: var(--pixel);
  cursor: pointer;
  background: var(--warm-soft);
  transition: background 0.12s;
}

.app-side b:hover {
  background: var(--gold);
}

.app-side span {
  height: 8px;
  border-radius: 4px;
  background: var(--soft);
}

.app-side span:nth-child(3) {
  width: 75%;
}

.app-side span:nth-child(4) {
  width: 55%;
}

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--panel);
}

.app-log {
  flex: 1;
  min-height: 0;
  padding: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  font-size: 12px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-log .m {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  width: auto;
  height: auto;
  cursor: auto;
  display: block;
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 8px;
  max-width: 88%;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.app-log .m.user {
  align-self: flex-end;
  background: var(--soft);
  color: var(--ink);
}

.app-log .m.pet {
  align-self: flex-start;
  background: var(--mint-light);
  color: var(--ink);
}

.app-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-top: 2px solid var(--soft);
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.12s;
}

.app-input:hover {
  background: var(--warm-soft);
}

.app-input span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-input i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-btn);
  color: var(--on-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.mon-screen .stage {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 36px;
  height: 124px;
  margin: 0;
}

.taskbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36px;
  background: var(--ink);
  color: var(--on-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-family: var(--pixel);
  font-size: 12px;
}

.taskbar i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--gold);
}

.taskbar span {
  margin-left: 4px;
}

.taskbar-status {
  margin-left: auto;
  color: var(--gold);
  font-size: 12px;
}

.hint {
  font-family: var(--pixel);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.hint b {
  color: var(--accent-ink);
  font-weight: 700;
}

/* ---------- Pet & Speech Bubble ---------- */
.stage {
  position: relative;
  height: 260px;
  touch-action: pan-y;
  user-select: none;
}

.pet:not(.cd-msg):not(.m) {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 140px;
  cursor: grab;
  transform-origin: 50% 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pet:not(.cd-msg):not(.m).is-dragging {
  cursor: grabbing;
}

.pet:not(.cd-msg):not(.m) canvas,
.pet:not(.cd-msg):not(.m) img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.pet:not(.cd-msg):not(.m) canvas {
  image-rendering: pixelated;
}

.pet:not(.cd-msg):not(.m) .bubble {
  position: absolute;
  left: 50%;
  bottom: 92%;
  transform: translate(-50%, -8px) scale(1);
  background: var(--panel);
  border-bottom: 2px solid var(--ink);
  border-radius: 14px;
  padding: 8px 16px;
  font-size: 14px;
  line-height: 1.45;
  white-space: nowrap;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 10;
}

.js .pet:not(.cd-msg):not(.m) .bubble {
  opacity: 0;
  transform: translate(-50%, -4px) scale(0.95);
}

.js .pet:not(.cd-msg):not(.m) .bubble.show {
  opacity: 1;
  transform: translate(-50%, -8px) scale(1);
}

.play-stage .pet .bubble {
  white-space: normal;
  min-width: 220px;
  max-width: 340px;
  text-align: center;
}

.pet:not(.cd-msg):not(.m) .bubble::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  width: 12px;
  height: 12px;
  background: var(--panel);
  border-right: var(--line);
  border-bottom: var(--line);
  transform: translate(-50%, -6px) rotate(45deg);
}

.pet:not(.cd-msg):not(.m) .bubble.notify {
  background: var(--warm-highlight);
}

.pet:not(.cd-msg):not(.m) .bubble.notify::after {
  background: var(--warm-highlight);
}

.fx {
  position: absolute;
  pointer-events: none;
  font-family: var(--pixel);
  color: var(--accent);
  animation: rise 1.1s ease-out forwards;
  z-index: 20;
}

.food-drop {
  position: absolute;
  font-size: 24px;
  pointer-events: none;
  z-index: 15;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease-out;
}

@keyframes rise {
  from {
    opacity: 1;
    transform: translateY(0) scale(0.8);
  }
  to {
    opacity: 0;
    transform: translateY(-60px) scale(1.2);
  }
}

/* ---------- Tools Grid ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.tool-card {
  background: var(--panel);
  border: var(--line);
  border-radius: 14px;
  box-shadow: var(--pop);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.tool-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tool-icon {
  width: 52px;
  height: 52px;
  border: var(--line);
  border-radius: 12px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--pixel);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: var(--pop-sm);
  flex: none;
}

.tool-card .where {
  font-family: var(--pixel);
  font-size: 12px;
  color: var(--accent-ink);
  font-weight: 700;
  display: block;
  margin-top: 4px;
}

.tool-card h3 {
  font-size: 20px;
}

.tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

/* ---------- Features Grid ---------- */
.grid {
  display: grid;
  gap: 32px;
  margin-top: 40px;
}

.grid.g3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--panel);
  border: var(--line);
  border-radius: var(--r);
  box-shadow: var(--pop);
  padding: 24px;
}

.card.feature .sp-box {
  background: var(--soft-2);
  border-radius: 12px;
  height: 180px;
  margin: 0 0 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card.feature .sp-box img,
.card.feature .sp-box canvas {
  width: 140px;
  height: 140px;
  object-fit: contain;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

/* ---------- Play Stage ---------- */
.play-box {
  max-width: 880px;
  margin: 40px auto 0;
  padding: 0;
}

.render-mode-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}

.render-mode-btn {
  font-family: var(--pixel);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border: var(--line-sm);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--pop-sm);
  transition: transform 0.08s, background 0.12s, color 0.12s;
}

.render-mode-btn:hover {
  background: var(--gold);
  transform: translate(-1px, -1px);
}

.render-mode-btn.active {
  background: var(--ink);
  color: var(--on-dark);
}

.play-stage {
  height: 280px;
  padding: 16px;
  border: var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--pop-lg);
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-stage[data-turntable="true"] {
  cursor: grab;
}

.play-stage[data-turntable="true"]:active {
  cursor: grabbing;
}

.play-stage .pet {
  width: 192px;
  height: 192px;
  bottom: 12px;
}

.play-stage .pet img {
  width: 184px;
  height: 184px;
  object-fit: contain;
}

.play-stage .pet canvas {
  width: 136px;
  height: 136px;
  image-rendering: pixelated;
}

.play-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.play-actions .btn {
  padding: 12px 16px;
  font-size: 14px;
}

.species-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--soft);
}

.species-pill {
  font-family: var(--pixel);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  border: var(--line-sm);
  border-radius: 999px;
  background: var(--warm-soft);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--pop-sm);
  transition: transform 0.08s, background 0.12s;
}

.species-pill:hover {
  background: var(--soft);
}

.species-pill.active {
  background: var(--accent-btn);
  color: var(--on-dark);
}

/* ---------- Companion Talk Section (KitCommit #talk) ---------- */
.talk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 32px;
  align-items: start;
  margin-top: 40px;
}

@media (max-width: 920px) {
  .talk-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.talk-copy .lead {
  max-width: none;
}

.talk-points {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.talk-points li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.talk-points .ico {
  font-family: var(--pixel);
  font-size: 14px;
  font-weight: 700;
  width: 44px;
  height: 44px;
  border: var(--line-sm);
  border-radius: 12px;
  background: var(--gold);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-shadow: var(--pop-sm);
}

.talk-points h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.talk-points p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

/* KitCommit .connect box */
.connect {
  margin-top: 24px;
  padding: 20px;
  border: var(--line);
  border-radius: 18px;
  background: var(--warm-soft);
  box-shadow: var(--pop);
}

.connect h3 {
  font-size: 17px;
  margin: 0 0 12px;
}

.connect ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 640px) {
  .connect ol {
    grid-template-columns: minmax(0, 1fr);
  }
}

.connect li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  background: var(--soft-2);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.connect li b {
  color: var(--ink);
  font-size: 15px;
}

.connect .note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.talk-cta {
  margin-top: 24px;
}

.talk-cta-note {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.talk-demo-wrap {
  display: flex;
  flex-direction: column;
}

.talk-demo-note {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 12px 0 0;
}

/* KitCommit .chatdemo */
.chatdemo {
  background: var(--panel);
  border: var(--line);
  border-radius: 20px;
  box-shadow: var(--pop-lg);
  height: 580px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.cd-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 2px solid var(--soft);
  background: var(--soft-2);
}

.cd-head img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: var(--line-sm);
  background: var(--warm-soft);
}

.cd-head canvas {
  width: 44px;
  height: 44px;
  flex: none;
  image-rendering: pixelated;
}

.cd-head b {
  display: block;
  font-size: 15px;
  font-family: var(--pixel);
}

.cd-head span {
  font-size: 12px;
  color: var(--muted);
}

.cd-persona {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 2px solid var(--soft);
  font-size: 12px;
}

.cd-persona > span {
  font-family: var(--pixel);
  color: var(--muted);
  margin-right: 4px;
}

.cd-persona button,
.cd-chips button,
.cd-row button,
.cd-signs button,
.cd-inline-btn {
  font: 600 13px var(--body);
  color: var(--ink);
  background: var(--panel);
  border: var(--line-sm);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, transform 0.08s;
}

.cd-persona button:hover,
.cd-chips button:hover,
.cd-row button:hover:not(:disabled),
.cd-signs button:hover:not(:disabled),
.cd-inline-btn:hover:not(:disabled) {
  background: var(--gold);
}

.cd-persona button.active,
.cd-persona button[aria-checked="true"] {
  background: var(--ink);
  color: var(--on-dark);
}

.cd-log {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  background: var(--panel);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}

.cd-msg {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  width: auto;
  height: auto;
  cursor: auto;
  display: block;
  flex-shrink: 0;
  padding: 8px 12px;
  max-width: 88%;
  white-space: pre-line;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-height: 1.55;
}

.cd-msg.pet,
.cd-msg.cat {
  align-self: flex-start;
  background: var(--soft-2);
  border-bottom: 2px solid var(--ink);
  border-radius: 4px 16px 16px 16px;
}

.cd-msg.user,
.cd-msg.me {
  align-self: flex-end;
  background: var(--accent-btn);
  color: var(--on-dark);
  border-radius: 16px 4px 16px 16px;
}

.cd-msg.sys {
  align-self: center;
  max-width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 4px 8px;
}

.cd-msg .dots {
  display: inline-flex;
  gap: 4px;
  padding: 4px 4px;
}

.cd-msg .dots i {
  width: 8px;
  height: 4px;
  border-radius: 2px;
  background: var(--ink);
  opacity: 0.45;
}

.cd-inline-actions,
.cd-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.cd-row button,
.cd-inline-btn {
  white-space: normal;
  text-align: left;
  border-radius: 12px;
  padding: 8px 12px;
}

/* KitCommit 12 Zodiac Sign Picker (.cd-signs) */
.cd-signs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.cd-signs button {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 12px;
  padding: 8px 4px;
  line-height: 1.3;
}

.cd-signs small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

/* KitCommit Daily Fortune Card (.fortune) */
.fortune {
  margin-top: 8px;
  padding: 12px;
  border-radius: 12px;
  border: var(--line-sm);
  background: var(--fortune-bg);
  font-family: var(--pixel);
  min-width: 220px;
}

.fortune .f-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.fortune .f-sign {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  margin-top: 8px;
}

.fortune .f-grade {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  color: var(--accent-ink);
  letter-spacing: 1px;
  margin: 4px 0;
}

.fortune.g0 .f-grade {
  color: var(--fortune-top);
}

.fortune.g3 .f-grade,
.fortune.g4 .f-grade {
  color: var(--fortune-low);
}

.fortune .f-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
  color: var(--fortune-top);
  font-size: 14px;
}

.fortune .f-stars span {
  opacity: 0.25;
}

.fortune .f-stars span.on {
  opacity: 1;
}

.fortune dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  margin: 0;
  font-size: 12px;
}

.fortune dt {
  color: var(--muted);
}

.fortune dd {
  margin: 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fortune .swatch {
  width: 12px;
  height: 12px;
  border: var(--line-sm);
  display: inline-block;
}

.fortune .f-msg {
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px dashed var(--muted);
  font-size: 13px;
  font-family: var(--body);
}

.fortune .f-change {
  display: block;
  margin: 8px auto 0;
  font: 600 12px var(--body);
  color: var(--accent-ink);
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px;
}

.cd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  border-top: 2px solid var(--soft);
  background: var(--soft-2);
}

.cd-input {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: var(--soft-2);
}

.cd-input input {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border: var(--line-sm);
  border-radius: 12px;
  background: var(--panel);
  color: var(--ink);
  font: 14px var(--body);
}

.cd-input button {
  padding: 8px 16px;
  border: var(--line-sm);
  border-radius: 12px;
  background: var(--accent-btn);
  color: var(--on-dark);
  font: 700 14px var(--body);
  cursor: pointer;
}

/* ---------- Day Routine ---------- */
.day-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 20px 4px 28px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.moment {
  flex: 0 0 252px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.moment .time {
  font-family: var(--pixel);
  font-size: 13px;
  color: var(--accent-ink);
  font-weight: 700;
  align-self: flex-start;
}

.moment .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}

.moment .card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--pop-lg);
}

.moment .sp-box {
  background: var(--soft-2);
  border-radius: 12px;
  height: 152px;
  margin: 0 0 12px;
  padding: 12px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.moment .sp-box img,
.moment .sp-box canvas {
  width: 108px;
  height: 108px;
  object-fit: contain;
}

.moment .bubble {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel);
  border-bottom: 2px solid var(--ink);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  white-space: normal;
  width: 88%;
  text-align: center;
}

.moment h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.moment p {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Gallery ---------- */
.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.tab-btn {
  font-family: var(--pixel);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 16px;
  border: var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--pop);
}

.tab-btn.on {
  background: var(--accent-btn);
  color: var(--on-dark);
}

.tab-note {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 16px;
  font-weight: 700;
}

.grid.g6 {
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.tile {
  background: var(--panel);
  border: var(--line);
  border-radius: 14px;
  box-shadow: var(--pop);
  padding: 16px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.15s;
}

.tile:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--pop-lg);
  background: var(--warm-soft);
}

.tile:active {
  transform: translate(2px, 2px);
  box-shadow: var(--pop-sm);
}

.tile.active {
  border-color: var(--accent-btn);
  background: var(--warm-highlight);
}

.tile canvas {
  width: 72px;
  height: 72px;
  object-fit: contain;
  image-rendering: pixelated;
}

.tile img {
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.tile-media-wrap {
  position: relative;
  width: 116px;
  height: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile-media-wrap .tile-pip-canvas {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 36px;
  height: 36px;
  padding: 4px;
  background: var(--warm-soft);
  border: var(--line-sm);
  border-radius: 6px;
  image-rendering: pixelated;
}

.tile b {
  font-size: 14px;
}

.tile small {
  font-size: 12px;
  color: var(--accent-ink);
  font-family: var(--pixel);
}

.showcase-video-panel {
  margin-top: 24px;
}

.showcase-video-card {
  background: var(--panel);
  border: var(--line);
  border-radius: 16px;
  box-shadow: var(--pop-lg);
  padding: 16px;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.showcase-video-card video {
  width: 100%;
  border-radius: 12px;
  border: var(--line-sm);
  background: var(--warm-soft);
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.showcase-video-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 4px 8px;
}

.showcase-video-bar span {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- KitCommit #more Section (.stats & .todo) ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

@media (max-width: 860px) {
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.stat {
  background: var(--warm-soft);
  border: var(--line);
  border-radius: 12px;
  padding: 16px 12px;
  box-shadow: var(--pop);
  text-align: center;
}

.stat b {
  display: block;
  font-family: var(--pixel);
  font-size: 28px;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}

.stat span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.todo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.todo .card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  text-align: left;
}

.todo .ico {
  font-family: var(--pixel);
  font-size: 14px;
  font-weight: 700;
  width: 40px;
  height: 40px;
  border: var(--line-sm);
  border-radius: 8px;
  background: var(--gold);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.todo h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

/* ---------- Clinical Comparison Table ---------- */
.clinical-table-wrap {
  margin-top: 32px;
  overflow-x: auto;
  border: var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--pop);
  padding: 16px;
}

.clinical-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px;
}

.clinical-table th,
.clinical-table td {
  padding: 16px;
  border-bottom: 2px solid var(--soft);
  vertical-align: top;
  line-height: 1.75;
}

.clinical-table th {
  font-family: var(--pixel);
  font-size: 14px;
  color: var(--accent-ink);
  background: var(--soft-2);
}

/* ---------- WhiteStyle 33-Year Clinic & PASS ---------- */
.clinic-card {
  max-width: 980px;
  margin: 40px auto 0;
  padding: 0;
}

.clinic-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

@media (max-width: 820px) {
  .clinic-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.clinic-badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.clinic-pill {
  font-family: var(--pixel);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border: var(--line-sm);
  border-radius: 6px;
  background: var(--soft-2);
  color: var(--ink);
}

.clinic-pill.highlight {
  background: var(--gold);
}

.clinic-actions-row {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.vip-pass-form {
  background: var(--panel);
  border: var(--line);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--pop);
  transition: box-shadow 0.2s, background 0.2s;
}

.vip-pass-form.is-highlighted {
  background: var(--warm-highlight);
  box-shadow: var(--pop-lg);
}

.vip-pass-form h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.vip-pass-form p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.vip-pass-form input,
.vip-pass-form select {
  padding: 12px;
  border: var(--line-sm);
  border-radius: 10px;
  font: 14px var(--body);
  background: var(--bg);
  color: var(--ink);
}

.vip-pass-status {
  font-size: 13px;
  color: var(--good);
  font-weight: 700;
  min-height: 20px;
}

.pass-gate-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px;
  margin-bottom: 20px;
  background: var(--warm-highlight);
  border: var(--line-sm);
  border-radius: 12px;
  box-shadow: var(--pop-sm);
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
}

.pass-gate-bar.unlocked {
  background: var(--mint-light);
  border-color: var(--mint);
}

.pass-gate-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.btn.small {
  padding: 8px 12px;
  font-size: 13px;
  border-width: 2px;
  box-shadow: var(--pop-sm);
  border-radius: 8px;
}

.membership-rules-list {
  margin: 16px 0 0;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- Free AI API Protocol Section ---------- */
.protocol-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 32px;
  margin-top: 36px;
  align-items: start;
}

@media (max-width: 900px) {
  .protocol-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

html[data-view="mobile"] .protocol-grid {
  grid-template-columns: minmax(0, 1fr);
}

.protocol-card {
  background: var(--panel);
  border: var(--line);
  border-radius: 16px;
  box-shadow: var(--pop-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.protocol-card .vip-pass-form {
  border: 0;
  box-shadow: none;
  padding: 0;
  background: transparent;
}

.protocol-card h3 {
  font-size: 20px;
}

.protocol-desc {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  line-height: 1.85;
}

.protocol-desc code {
  background: var(--soft);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
  font-size: 13px;
  color: var(--ink);
  font-weight: 700;
}

.form-row-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

@media (max-width: 560px) {
  .form-row-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.protocol-helper-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.proto-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.proto-tab {
  font-family: var(--pixel);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border: var(--line-sm);
  border-radius: 8px;
  background: var(--soft-2);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.12s;
}

.proto-tab:hover {
  background: var(--gold);
}

.proto-tab.active {
  background: var(--ink);
  color: var(--on-dark);
}

.proto-code-box {
  margin: 0;
  padding: 16px;
  border-radius: 12px;
  background: var(--code-bg);
  color: var(--code-ink);
  font: 13px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  min-height: 168px;
}

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

.proto-test-output {
  padding: 12px 16px;
  border-top: 2px solid var(--mint);
  background: var(--mint-light);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
}

.warranty-cert-box {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px dashed var(--ink);
}

.warranty-cert-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.warranty-badge {
  font-family: var(--pixel);
  font-size: 12px;
  font-weight: 700;
  background: var(--gold);
  color: var(--ink);
  padding: 4px 8px;
  border-radius: 4px;
}

.warranty-cert-head strong {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  color: var(--good);
}

.warranty-cert-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  line-height: 1.55;
}

.warranty-cert-body div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.warranty-cert-body span {
  color: var(--muted);
}

.warranty-cert-body code {
  background: var(--code-bg);
  color: var(--code-accent);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
}

.referral-tokens-box {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid var(--soft);
}

.referral-tokens-box h4 {
  font-size: 15px;
  margin: 0 0 4px;
  color: var(--ink);
}

.referral-tokens-box p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.55;
}

.referral-token-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.referral-token-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 12px;
  background: var(--soft-2);
  border-radius: 8px;
}

.referral-token-item code {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-ink);
}

.trial-redeem-box {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px dashed var(--soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trial-redeem-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
}

.trial-redeem-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.trial-redeem-row input {
  flex: 1;
  min-width: 192px;
  padding: 8px 12px;
  border: var(--line-sm);
  border-radius: 10px;
  font: 13px ui-monospace, monospace;
  background: var(--bg);
  color: var(--ink);
}

/* ---------- Download Section ---------- */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.dl-card {
  background: var(--panel);
  border: var(--line);
  border-radius: 20px;
  box-shadow: var(--pop-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.dl-card.is-highlighted {
  background: var(--warm-highlight);
  border-color: var(--accent-btn);
  transform: translateY(-4px);
}

.dl-card h3 {
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dl-card ol {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  flex: 1;
}

.dl-card ol li {
  margin-bottom: 8px;
}

.dl-card .btn {
  width: 100%;
}

.sha-box {
  background: var(--soft-2);
  border-top: 2px dashed var(--muted);
  padding: 12px;
  font: 12px/1.5 ui-monospace, monospace;
  word-break: break-all;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s;
}

.sha-box:hover {
  background: var(--soft);
}

.sha-box.copied {
  background: var(--mint);
  color: var(--on-dark);
  font-weight: 700;
}

.official {
  margin-top: 32px;
  padding: 16px 20px;
  border: 2px dashed var(--accent);
  border-radius: 12px;
  background: var(--warm-soft);
  font-size: 14px;
  line-height: 1.75;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 820px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--panel);
  border: var(--line);
  border-radius: 10px;
  box-shadow: var(--pop);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 700;
}

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

.faq-item p {
  padding: 16px 20px 20px;
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.95;
  border-top: 2px solid var(--soft);
}

/* ---------- Footer ---------- */
footer {
  background: var(--panel);
  border-top: var(--line);
  padding: 56px 16px 40px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.85;
}

footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

footer a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-facts {
  padding: 16px 20px;
  border: 2px solid var(--soft);
  border-radius: 12px;
  background: var(--soft-2);
  font-size: 13px;
  color: var(--ink);
}

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