@font-face {
  font-family: "Song Myung";
  src: url("assets/fonts/SongMyung-Regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

/* Face reading */
.face-reading {
  --face-ink: #402b34;
  --face-muted: #76636b;
  --face-pink: #e96f9c;
  --face-pink-dark: #b94f78;
  --face-blush: #fff0f4;
  --face-lilac: #f2ebfb;
  --face-line: #ead8df;
  width: min(100%, 680px);
  margin: 0 auto;
  color: var(--face-ink);
}

.face-reading .custom-app-banner {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 24px;
}

.face-intro-copy {
  padding: 26px 4px 6px;
}

.face-premium-badge,
.face-step,
.face-result-kicker,
.face-result-header > span,
.face-section-heading > span,
.face-contrast-card > span,
.face-element-summary > span {
  color: var(--face-pink-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.face-intro-copy h3,
.face-stage-heading h3,
.face-loading h3,
.face-result-header h3 {
  margin: 8px 0 0;
  color: var(--face-ink);
  font-family: "Cafe24 Ssurround", var(--font-body);
  font-size: clamp(27px, 5vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.face-intro-copy p,
.face-stage-heading p,
.face-loading p,
.face-result-header p {
  margin: 12px 0 0;
  color: var(--face-muted);
  font-size: 15px;
  line-height: 1.75;
}

.face-intro-points {
  display: grid;
  gap: 9px;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
}

.face-intro-points li {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--face-line);
  border-radius: 14px;
  background: #fffafa;
  font-size: 14px;
  font-weight: 700;
}

.face-intro-points svg,
.face-privacy-note svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--face-pink-dark);
}

.face-primary-button,
.face-secondary-button,
.face-photo-button,
.face-icon-button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.face-primary-button,
.face-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 58px;
  border-radius: 17px;
  font-weight: 800;
}

.face-primary-button {
  width: 100%;
  color: #fff;
  background: linear-gradient(135deg, #ed7ca4, #db668f);
  box-shadow: 0 12px 26px rgba(190, 77, 119, 0.18);
}

.face-primary-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.face-secondary-button {
  color: var(--face-ink);
  border: 1px solid var(--face-line);
  background: #fff;
}

.face-primary-button svg,
.face-secondary-button svg,
.face-icon-button svg,
.face-photo-button svg {
  width: 20px;
  height: 20px;
}

.face-stage-heading {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 22px;
}

.face-icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--face-ink);
  border: 1px solid var(--face-line);
  border-radius: 50%;
  background: #fff;
}

.face-capture-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid #e3ccd5;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,0.95), rgba(255,255,255,0.3) 45%, transparent 64%),
    linear-gradient(155deg, #f6e8ed, #eee5f5);
}

.face-capture-frame.has-photo {
  background: #201a1d;
}

.face-capture-frame > img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  max-height: 680px;
  object-fit: contain;
}

.face-guide {
  position: relative;
  width: min(62%, 320px);
  aspect-ratio: 0.76;
}

.face-guide-oval {
  position: absolute;
  inset: 0;
  border: 3px solid rgba(185, 79, 120, 0.72);
  border-radius: 48% 48% 46% 46% / 40% 40% 56% 56%;
  box-shadow: 0 0 0 999px rgba(255, 250, 252, 0.16);
}

.face-guide-eye-line,
.face-guide-center-line {
  position: absolute;
  display: block;
  background: rgba(185, 79, 120, 0.35);
}

.face-guide-eye-line {
  top: 45%;
  left: 14%;
  width: 72%;
  height: 1px;
}

.face-guide-center-line {
  top: 10%;
  left: 50%;
  width: 1px;
  height: 78%;
}

.face-capture-caption {
  position: absolute;
  bottom: 16px;
  left: 50%;
  z-index: 2;
  width: max-content;
  max-width: calc(100% - 32px);
  transform: translateX(-50%);
  padding: 8px 13px;
  color: #fff;
  border-radius: 999px;
  background: rgba(49, 37, 43, 0.78);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  backdrop-filter: blur(6px);
}

.face-photo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.face-photo-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 58px;
  color: var(--face-ink);
  border: 1px solid var(--face-line);
  border-radius: 16px;
  background: #fff;
  font-size: 14px;
  font-weight: 800;
}

.face-photo-button.is-camera {
  color: #fff;
  border-color: #d8648f;
  background: #df6d96;
}

.face-photo-tips {
  margin-top: 20px;
  padding: 19px 20px;
  border: 1px solid #eadbd6;
  border-radius: 18px;
  background: #fff9f4;
}

.face-photo-tips strong {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
}

.face-photo-tips ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  color: #695b60;
  font-size: 13px;
  line-height: 1.55;
  list-style: none;
}

.face-photo-tips li::before {
  content: "✓";
  margin-right: 7px;
  color: var(--face-pink-dark);
  font-weight: 900;
}

.face-privacy-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0;
  padding: 14px 16px;
  color: #6d5a63;
  border-left: 3px solid #cc7a9a;
  background: #fff;
  font-size: 12px;
  line-height: 1.65;
}

.face-privacy-note p,
.face-file-name,
.face-error {
  margin: 0;
}

.face-file-name {
  margin: 8px 0 12px;
  color: var(--face-muted);
  font-size: 12px;
  text-align: center;
}

.face-error {
  margin: 10px 0 12px;
  padding: 12px 14px;
  color: #a33d60;
  border-radius: 12px;
  background: #fff0f4;
  font-size: 13px;
  font-weight: 700;
}

.face-loading {
  display: flex;
  min-height: 650px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  border-radius: 28px;
  background: linear-gradient(160deg, #fff2f6, #f8f2fd 56%, #fffaf0);
  text-align: center;
}

.face-loading-character {
  position: relative;
  display: grid;
  place-items: center;
  width: min(72vw, 300px);
  aspect-ratio: 1;
  margin-bottom: 18px;
}

.face-loading-character img {
  position: relative;
  z-index: 1;
  width: 88%;
  height: 88%;
  object-fit: contain;
  animation: face-character-float 2.4s ease-in-out infinite;
}

.face-loading-ring {
  position: absolute;
  inset: 9%;
  border: 2px solid rgba(225, 104, 150, 0.25);
  border-top-color: rgba(191, 76, 120, 0.75);
  border-radius: 50%;
  animation: face-ring-spin 5s linear infinite;
}

.face-loading-progress {
  width: min(100%, 420px);
  height: 9px;
  overflow: hidden;
  margin-top: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.face-loading-progress span {
  display: block;
  width: 46%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #dc648f, #af80dc);
  animation: face-progress-scan 2s ease-in-out infinite;
}

@keyframes face-character-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes face-ring-spin {
  to { transform: rotate(360deg); }
}

@keyframes face-progress-scan {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(220%); }
}

.face-result {
  display: grid;
  gap: 18px;
}

.face-result-header,
.face-contrast-card,
.face-section-list,
.face-element-card {
  border: 1px solid var(--face-line);
  border-radius: 22px;
  background: #fff;
}

.face-result-header {
  padding: 30px 26px;
  background: linear-gradient(145deg, #fff4f7, #fbf5ff);
}

.face-result-header p {
  color: #574b50;
}

.face-quality-note {
  margin: -6px 0 0;
  padding: 12px 16px;
  color: #735867;
  border-radius: 13px;
  background: #fff3f7;
  font-size: 12px;
  line-height: 1.6;
}

.face-contrast-card {
  padding: 22px 24px;
  border-color: #ead6e7;
  background: #f8f0fb;
}

.face-contrast-card p,
.face-element-card > p {
  margin: 9px 0 0;
  color: #584b51;
  font-size: 14px;
  line-height: 1.78;
}

.face-section-list {
  overflow: hidden;
}

.face-section-heading {
  padding: 24px 24px 18px;
  border-bottom: 1px solid var(--face-line);
}

.face-section-heading h4 {
  margin: 5px 0 0;
  font-family: "Cafe24 Ssurround", var(--font-body);
  font-size: 22px;
}

.face-result-section {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 13px;
  padding: 22px 24px;
  border-bottom: 1px solid #f0e4e8;
}

.face-result-section:last-child {
  border-bottom: 0;
}

.face-result-section-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #a75275;
  border-radius: 50%;
  background: #fdebf2;
  font-size: 11px;
  font-weight: 900;
}

.face-result-section h5 {
  margin: 4px 0 9px;
  color: var(--face-ink);
  font-size: 17px;
}

.face-result-section p {
  margin: 0;
  color: #63565c;
  font-size: 14px;
  line-height: 1.78;
}

.face-element-card {
  padding: 24px;
  background: linear-gradient(145deg, #fff9f4, #fff);
}

.face-element-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
}

.face-element-summary > span {
  flex: 0 0 100%;
}

.face-element-summary strong {
  font-family: "Cafe24 Ssurround", var(--font-body);
  font-size: 24px;
}

.face-element-summary small {
  color: var(--face-muted);
  font-size: 12px;
}

.face-element-card ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.face-element-card li {
  padding: 11px 13px;
  border-radius: 12px;
  background: #fff0f4;
  color: #594950;
  font-size: 13px;
  line-height: 1.55;
}

.face-result-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr) 58px;
  gap: 9px;
}

.face-result-actions .face-icon-button {
  width: 58px;
  height: 58px;
}

@media (max-width: 559px) {
  .face-reading .custom-app-banner {
    border-radius: 18px;
  }

  .face-intro-copy {
    padding-top: 22px;
  }

  .face-capture-frame,
  .face-capture-frame > img {
    min-height: 430px;
  }

  .face-photo-tips ul {
    grid-template-columns: 1fr;
  }

  .face-result-header,
  .face-result-section,
  .face-element-card,
  .face-contrast-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .face-result-actions {
    grid-template-columns: 1fr 58px;
  }

  .face-result-actions .face-primary-button {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .face-loading-character img,
  .face-loading-ring,
  .face-loading-progress span {
    animation: none;
  }
}

:root {
  color-scheme: light;
  --paper: #f3eee4;
  --paper-deep: #e8dfcf;
  --surface: #fffdf8;
  --surface-muted: #f8f3ea;
  --ink: #251c17;
  --muted: #6d6258;
  --line: #d9cebd;
  --line-strong: #bba98f;
  --lacquer: #9e4432;
  --lacquer-dark: #713025;
  --jade: #315f55;
  --jade-soft: #dce7e1;
  --brass: #b58a4d;
  --night: #201829;
  --kakao: #fee500;
  --white: #ffffff;
  --shadow-low: 0 8px 24px rgba(50, 36, 26, 0.08);
  --shadow-high: 0 18px 48px rgba(35, 25, 20, 0.14);
  --font-body: Pretendard, SUIT, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-editorial: "Song Myung", "Batang", serif;
  --page-gutter: clamp(18px, 5vw, 48px);
  --content-width: 1240px;
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-round: 999px;
  --ease-out: cubic-bezier(0.2, 0.75, 0.25, 1);
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 8%, rgba(181, 138, 77, 0.1), transparent 27rem),
    linear-gradient(180deg, var(--surface-muted), var(--paper) 38rem);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

img,
picture {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--white);
  background: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(117, 95, 74, 0.18);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(100%, var(--content-width));
  min-height: 68px;
  margin: 0 auto;
  padding: 10px var(--page-gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.brand {
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  position: relative;
  flex: 0 1 clamp(176px, 54vw, 228px);
  width: clamp(176px, 54vw, 228px);
  aspect-ratio: 3.2 / 1;
  overflow: hidden;
  border-radius: 16px;
  isolation: isolate;
}

.brand-logo img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 112%;
  max-width: none;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
  transform: translate(-50%, -50%);
}

.header-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.kakao-login-btn {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(37, 28, 23, 0.16);
  border-radius: 8px;
  color: var(--ink);
  background: var(--kakao);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition:
    transform 180ms var(--ease-out),
    border-color 180ms var(--ease-out);
}

.kakao-login-btn:hover {
  transform: translateY(-1px);
  border-color: var(--ink);
}

.kakao-login-btn.logout {
  background: var(--surface);
}

.kakao-user {
  max-width: 86px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

main {
  width: 100%;
}

.catalog-view,
.test-view {
  display: none;
}

.active-view {
  display: block;
}

.hero-band {
  position: relative;
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--content-width));
  min-height: clamp(500px, 136vw, 620px);
  margin: 20px auto 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  color: var(--white);
  background: var(--night);
  box-shadow: var(--shadow-high);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% center;
}

.hero-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(32, 24, 41, 0.02) 15%, rgba(32, 24, 41, 0.88) 78%),
    linear-gradient(90deg, rgba(32, 24, 41, 0.18), transparent 55%);
}

.hero-copy {
  min-height: inherit;
  padding: 38px clamp(24px, 7vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
}

.hero-kicker,
.section-kicker {
  margin: 0;
  color: var(--brass);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.hero-copy h1 {
  max-width: 12ch;
  margin: 12px 0 0;
  font-family: var(--font-editorial);
  font-size: clamp(40px, 12vw, 58px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-description {
  max-width: 32rem;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.7;
  word-break: keep-all;
}

.hero-action {
  min-height: 48px;
  margin-top: 24px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 180ms var(--ease-out),
    background 180ms var(--ease-out);
}

.hero-action:hover {
  transform: translateY(-2px);
  background: var(--paper);
}

.hero-action svg {
  width: 17px;
  height: 17px;
}

.catalog-explorer {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 68px var(--page-gutter) 88px;
  scroll-margin-top: 76px;
}

.catalog-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-strong);
}

.catalog-heading-row h2 {
  margin: 6px 0 0;
  font-family: var(--font-editorial);
  font-size: clamp(32px, 8vw, 46px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.catalog-result-count {
  flex: 0 0 auto;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.toolbar {
  margin-top: 24px;
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.76);
}

.filter-group {
  min-width: 0;
}

.filter-label,
.search-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.type-segmented,
.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.type-filter-btn,
.filter-btn {
  min-width: 0;
  min-height: 44px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 750;
  transition:
    color 160ms var(--ease-out),
    background 160ms var(--ease-out),
    border-color 160ms var(--ease-out);
}

.type-filter-btn:hover,
.filter-btn:hover {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}

.type-filter-btn.active,
.type-filter-btn[aria-pressed="true"],
.filter-btn.active,
.filter-btn[aria-pressed="true"] {
  color: var(--white);
  border-color: var(--ink);
  background: var(--ink);
}

.search-box {
  min-width: 0;
  display: block;
}

.search-control {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition:
    border-color 160ms var(--ease-out),
    box-shadow 160ms var(--ease-out);
}

.search-box:focus-within .search-control {
  border-color: var(--jade);
  box-shadow: 0 0 0 3px rgba(49, 95, 85, 0.14);
}

.search-control svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--jade);
}

.search-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 15px;
}

.search-control input::placeholder {
  color: rgba(109, 98, 88, 0.72);
}

.test-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin-top: 30px;
}

.test-card {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  appearance: none;
  transition:
    transform 200ms var(--ease-out),
    border-color 200ms var(--ease-out),
    box-shadow 200ms var(--ease-out);
}

.test-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-low);
}

.test-card:focus-visible {
  outline-offset: 4px;
}

.external-card {
  text-decoration: none;
  cursor: pointer;
}

.external-card-cta {
  width: 100%;
  min-height: 36px;
  margin-top: auto;
  padding: 9px 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 8px;
  color: #fff;
  background: #132442;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.external-card-cta span {
  font-size: 15px;
  line-height: 1;
  transition: transform 180ms var(--ease-out);
}

.external-card:hover .external-card-cta span {
  transform: translateX(3px);
}

.premium-card {
  border-color: rgba(181, 138, 77, 0.7);
}

.premium-card::before {
  content: "프리미엄";
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--surface);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.thumb-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper-deep);
}

.thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease-out);
}

.test-card:hover .thumb-wrap img {
  transform: scale(1.025);
}

.thumb-title,
.card-glint {
  display: none;
}

.card-body {
  min-width: 0;
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
}

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

.pill {
  min-width: 0;
  padding-left: 8px;
  overflow: hidden;
  border-left: 2px solid var(--brass);
  color: var(--jade);
  background: transparent;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.duration {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.test-card h2,
.card-title {
  display: block;
  margin: 14px 0 0;
  color: var(--ink);
  font-size: clamp(18px, 5vw, 21px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.025em;
  word-break: keep-all;
}

.test-card p,
.card-description {
  margin: 9px 0 0;
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.origin {
  margin-top: auto;
  padding-top: 14px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.original-mark {
  color: var(--lacquer);
}

.premium-mark {
  color: var(--brass);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 64px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--muted);
  background: rgba(255, 253, 248, 0.56);
  text-align: center;
}

.test-view {
  width: min(100%, var(--content-width));
  min-height: calc(100vh - 68px);
  margin: 0 auto;
  padding: 28px var(--page-gutter) 88px;
}

.test-view-header {
  margin-bottom: 18px;
}

.ghost,
.icon-text,
.icon-only,
.primary-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  transition:
    transform 180ms var(--ease-out),
    color 180ms var(--ease-out),
    background 180ms var(--ease-out),
    border-color 180ms var(--ease-out);
}

.ghost {
  padding: 0 14px;
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}

.ghost:hover {
  transform: translateX(-2px);
  border-color: var(--line-strong);
}

.icon-text svg,
.icon-only svg,
.primary-action svg {
  width: 19px;
  height: 19px;
}

.test-shell {
  display: grid;
  gap: 24px;
}

.test-visual {
  min-width: 0;
}

.test-visual > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-deep);
}

.test-panel {
  min-width: 0;
  padding: clamp(24px, 7vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-low);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--lacquer);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.test-panel > h2 {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: clamp(34px, 9vw, 52px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.045em;
  word-break: keep-all;
}

.test-panel > p:not(.eyebrow),
.result-box > p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
}

.action-row {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.primary-action {
  flex: 1 1 200px;
  padding: 0 18px;
  color: var(--white);
  border-color: var(--lacquer);
  background: var(--lacquer);
}

.primary-action:hover {
  transform: translateY(-2px);
  border-color: var(--lacquer-dark);
  background: var(--lacquer-dark);
}

.icon-only {
  flex: 0 0 48px;
  width: 48px;
  padding: 0;
  color: var(--jade);
  border-color: var(--line);
  background: var(--surface);
}

.icon-only:hover {
  transform: translateY(-2px);
  border-color: var(--jade);
  background: var(--jade-soft);
}

.question-box {
  margin-top: 30px;
  animation: content-in 260ms var(--ease-out) both;
}

.progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.progress-track {
  height: 4px;
  margin: 10px 0 30px;
  overflow: hidden;
  border-radius: var(--radius-round);
  background: var(--paper-deep);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--lacquer);
  transition: width 220ms var(--ease-out);
}

.question-back {
  min-height: 36px;
  margin: -14px 0 20px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 750;
}

.question-back:hover {
  color: var(--ink);
}

.question-back svg {
  width: 16px;
  height: 16px;
}

.question-box h3 {
  min-height: 3.1em;
  margin: 0 0 22px;
  color: var(--ink);
  font-size: clamp(23px, 6vw, 30px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.03em;
  word-break: keep-all;
}

.choice-list {
  display: grid;
  gap: 10px;
}

.choice-btn {
  width: 100%;
  min-height: 72px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.55;
  word-break: keep-all;
  transition:
    transform 160ms var(--ease-out),
    border-color 160ms var(--ease-out),
    background 160ms var(--ease-out);
}

.choice-btn:hover,
.choice-btn:focus-visible {
  transform: translateX(3px);
  border-color: var(--jade);
  background: var(--jade-soft);
}

.result-box {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  animation: content-in 300ms var(--ease-out) both;
}

.result-box h3 {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: clamp(34px, 8vw, 48px);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.045em;
  word-break: keep-all;
}

.result-notes {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
}

.result-notes div {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.result-notes dt {
  color: var(--lacquer);
  font-size: 12px;
  font-weight: 850;
}

.result-notes dd {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}

.custom-test-box {
  margin-top: 22px;
}

.test-shell.custom-app-shell {
  display: block;
}

.custom-app-shell .test-visual,
.custom-app-shell .eyebrow,
.custom-app-shell .test-panel > #testDescription {
  display: none;
}

.custom-app-shell .test-panel > h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.custom-app-shell .test-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.custom-app-shell .custom-test-box {
  margin-top: 0;
}

.past-life-dot,
.pixel-persona-test {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(20px, 6vw, 42px);
  display: grid;
  justify-items: stretch;
  gap: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-low);
}

.custom-app-banner {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: var(--paper-deep);
}

.past-life-hero-copy,
.pixel-persona-copy,
.past-life-loading,
.pixel-persona-loading,
.past-life-result,
.pixel-persona-result {
  text-align: center;
}

.past-life-hero-copy h3,
.past-life-loading h3,
.past-life-result h3,
.pixel-persona-copy h3,
.pixel-persona-loading h3,
.pixel-persona-result h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-editorial);
  font-size: clamp(34px, 9vw, 48px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.past-life-hero-copy h3 span,
.pixel-persona-copy h3 span,
.past-life-gallery h4 span[aria-hidden="true"] {
  display: none;
}

.past-life-hero-copy p,
.past-life-loading p,
.pixel-persona-copy p,
.pixel-persona-loading p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.past-life-form {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 5vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.past-life-form label {
  display: grid;
  gap: 7px;
}

.past-life-form label span,
.past-life-form legend {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.past-life-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  color: var(--ink);
  background: var(--surface);
  font-size: 15px;
}

.past-life-form input:focus {
  border-color: var(--jade);
  box-shadow: 0 0 0 3px rgba(49, 95, 85, 0.14);
}

.past-life-form input:disabled,
.past-life-gender:disabled,
.pixel-upload-zone[aria-disabled="true"] {
  color: rgba(37, 28, 23, 0.48);
  background: var(--paper-deep);
  cursor: not-allowed;
  opacity: 0.72;
}

.past-life-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.past-life-form legend {
  margin-bottom: 7px;
}

.past-life-gender-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.past-life-gender {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--surface);
  font-size: 14px;
  font-weight: 750;
}

.past-life-gender:hover,
.past-life-gender.active,
.past-life-gender[aria-pressed="true"] {
  color: var(--white);
  border-color: var(--jade);
  background: var(--jade);
}

.past-life-gender:disabled:hover {
  color: rgba(37, 28, 23, 0.48);
  border-color: var(--line);
  background: var(--paper-deep);
}

.past-life-error,
.pixel-persona-error {
  margin: 0;
  color: var(--lacquer);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
}

.past-life-submit,
.pixel-persona-submit {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--lacquer);
  border-radius: 8px;
  color: var(--white);
  background: var(--lacquer);
  font-size: 15px;
  font-weight: 850;
  transition:
    transform 180ms var(--ease-out),
    background 180ms var(--ease-out);
}

.past-life-submit:hover,
.pixel-persona-submit:hover {
  transform: translateY(-2px);
  background: var(--lacquer-dark);
}

.past-life-submit:disabled,
.pixel-persona-submit:disabled {
  color: rgba(37, 28, 23, 0.46);
  border-color: var(--line);
  background: var(--paper-deep);
  cursor: not-allowed;
  transform: none;
}

.custom-privacy-note,
.custom-disclaimer {
  margin: 0;
  padding: 13px 14px;
  border-left: 3px solid var(--brass);
  color: var(--muted);
  background: var(--surface);
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
}

.custom-disclaimer {
  border-left-color: var(--jade);
  background: var(--surface-muted);
}

.custom-privacy-note strong,
.custom-privacy-note span {
  display: block;
}

.custom-privacy-note strong {
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 12px;
}

.past-life-gallery,
.past-life-features,
.pixel-example-section,
.pixel-feature-section {
  width: 100%;
}

.past-life-gallery h4,
.past-life-features h4,
.pixel-example-section h4,
.pixel-feature-section h4 {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: var(--font-editorial);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  text-align: left;
}

.past-life-gallery > div,
.pixel-example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.past-life-gallery figure,
.pixel-example-grid figure {
  min-width: 0;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.past-life-gallery img,
.pixel-example-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}

.pixel-example-grid figcaption {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.past-life-feature-grid,
.pixel-feature-grid {
  display: grid;
  gap: 8px;
}

.past-life-feature-grid article,
.pixel-feature-grid article {
  min-width: 0;
  padding: 17px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: start;
  column-gap: 12px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.past-life-feature-grid article {
  grid-template-columns: 1fr;
}

.pixel-feature-grid article {
  grid-template-columns: 1fr;
}

.past-life-feature-grid .feature-index,
.pixel-feature-grid .feature-index {
  display: block;
  grid-row: 1 / span 2;
  color: var(--brass);
  font-family: var(--font-editorial);
  font-size: 22px;
  line-height: 1;
}

.past-life-feature-grid strong,
.pixel-feature-grid strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.past-life-feature-grid p,
.pixel-feature-grid p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.past-life-loading,
.pixel-persona-loading {
  min-height: 440px;
  align-content: center;
  justify-items: center;
}

.past-life-spinner {
  width: 64px;
  height: 64px;
  border: 3px solid var(--paper-deep);
  border-top-color: var(--brass);
  border-radius: 50%;
  animation: spin 850ms linear infinite;
}

.past-life-loading strong,
.pixel-persona-loading strong {
  display: block;
  margin-top: 16px;
  color: var(--jade);
  font-size: 14px;
  line-height: 1.55;
}

.past-life-image-card,
.pixel-result-card {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.past-life-image-card img,
.pixel-result-card img {
  width: min(100%, 390px);
  max-height: min(70vh, 32rem);
  margin: 0 auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.past-life-story-card,
.pixel-description-card {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-align: left;
}

.past-life-story-card header,
.past-life-story-card section,
.pixel-description-card {
  padding: 18px;
}

.past-life-story-card header {
  text-align: center;
}

.past-life-story-card header p {
  margin: 0;
  color: var(--lacquer);
  font-size: 12px;
  font-weight: 800;
}

.past-life-story-card h4 {
  margin: 5px 0 0;
  color: var(--ink);
  font-family: var(--font-editorial);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.3;
}

.past-life-story-card h4 span {
  color: var(--lacquer);
}

.past-life-story-card section {
  border-top: 1px solid var(--line);
}

.past-life-story-card h5,
.pixel-description-card h4 {
  margin: 0 0 8px;
  color: var(--jade);
  font-size: 13px;
  font-weight: 850;
}

.past-life-story-card section p,
.pixel-description-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.past-life-story-card .present-link {
  background: var(--jade-soft);
}

.past-life-actions,
.pixel-persona-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.past-life-actions button,
.pixel-persona-actions button {
  min-height: 48px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.past-life-actions button:first-child,
.pixel-persona-actions button:first-child {
  color: var(--white);
  border-color: var(--jade);
  background: var(--jade);
}

.past-life-actions button:last-child,
.pixel-persona-actions button:last-child {
  grid-column: 1 / -1;
  color: var(--white);
  border-color: var(--lacquer);
  background: var(--lacquer);
}

.pixel-upload-zone {
  width: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--surface-muted);
  transition:
    border-color 180ms var(--ease-out),
    background 180ms var(--ease-out);
}

.pixel-upload-zone:hover,
.pixel-upload-zone.is-dragging,
.pixel-upload-zone:focus-visible {
  border-color: var(--jade);
  background: var(--jade-soft);
}

.pixel-upload-zone label {
  width: 100%;
  min-height: 218px;
  padding: 24px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
}

.pixel-upload-zone strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
}

.pixel-upload-zone span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.pixel-upload-zone .pixel-upload-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--jade);
  background: var(--surface);
  font-size: 0;
}

.pixel-upload-zone .pixel-upload-icon::before {
  content: "+";
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 500;
}

.pixel-upload-preview {
  width: min(100%, 360px);
  max-height: 340px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.site-footer {
  padding:
    52px var(--page-gutter)
    calc(52px + env(safe-area-inset-bottom));
  display: grid;
  justify-items: center;
  gap: 8px;
  border-top: 1px solid rgba(217, 206, 189, 0.3);
  color: rgba(255, 255, 255, 0.66);
  background: var(--night);
  text-align: center;
}

.footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--white);
}

.footer-mark span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  font-family: var(--font-editorial);
  font-size: 14px;
}

.footer-mark strong {
  font-family: var(--font-editorial);
  font-size: 19px;
  font-weight: 400;
}

.site-footer p {
  max-width: 42rem;
  margin: 0;
  font-size: 13px;
}

.site-footer .footer-notice {
  margin-top: 10px;
  font-size: 11px;
}

.site-footer a {
  margin-top: 12px;
  color: var(--brass);
  font-size: 12px;
  font-weight: 800;
  text-underline-offset: 4px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 80;
  width: min(calc(100% - 36px), 420px);
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--white);
  background: rgba(32, 24, 41, 0.94);
  box-shadow: var(--shadow-high);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  transition:
    opacity 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}

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

.noscript-notice {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 90;
  padding: 14px;
  border-radius: 8px;
  color: var(--white);
  background: var(--lacquer);
  text-align: center;
  font-size: 14px;
}

@keyframes content-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 768px) {
  html {
    scroll-padding-top: 104px;
  }

  .header-inner {
    min-height: 76px;
  }

  .brand-logo {
    flex-basis: 244px;
    width: 244px;
  }

  .hero-band {
    min-height: 560px;
    margin-top: 30px;
  }

  .hero-band::after {
    background:
      linear-gradient(90deg, rgba(32, 24, 41, 0.16) 20%, rgba(32, 24, 41, 0.82) 64%, rgba(32, 24, 41, 0.92)),
      linear-gradient(180deg, transparent 55%, rgba(32, 24, 41, 0.38));
  }

  .hero-copy {
    width: 50%;
    margin-left: auto;
    padding: 64px clamp(38px, 6vw, 72px);
    justify-content: center;
  }

  .hero-copy h1 {
    font-size: clamp(52px, 7vw, 70px);
  }

  .hero-description {
    font-size: 16px;
  }

  .catalog-explorer {
    padding-top: 92px;
    padding-bottom: 112px;
  }

  .toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    padding: 24px;
  }

  .search-box {
    grid-column: 1 / -1;
  }

  .test-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .card-body {
    padding: 20px 20px 22px;
  }

  .result-notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .past-life-feature-grid,
  .pixel-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .past-life-gallery > div {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .kakao-user {
    max-width: 130px;
  }

  .hero-band {
    min-height: min(620px, 65vh);
  }

  .toolbar {
    grid-template-columns: minmax(340px, 0.8fr) minmax(360px, 1.2fr);
  }

  .category-filter-group {
    display: none;
  }

  .search-box {
    grid-column: auto;
  }

  .test-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
  }

  .test-shell {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    align-items: start;
    gap: 34px;
  }

  .test-panel {
    min-height: 100%;
  }

  .custom-app-shell .test-panel {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   2026-07 visual restoration
   The compact pastel interface below intentionally restores the original
   product direction while retaining the newer accessibility and flow work.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Cafe24 Ssurround";
  src: url("assets/fonts/Cafe24Ssurround.woff") format("woff");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: "Jalnan";
  src: url("assets/fonts/JalnanOTF00.woff") format("woff");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

:root {
  --paper: #f7f2ec;
  --paper-deep: #efe6dc;
  --surface: #ffffff;
  --surface-muted: #fff9f4;
  --ink: #412b21;
  --muted: #756760;
  --line: #eaded6;
  --line-strong: #dcc9bd;
  --lacquer: #ee7f91;
  --lacquer-dark: #dc687c;
  --jade: #0a7b70;
  --jade-soft: #e3f6f1;
  --brass: #a87343;
  --night: #412b21;
  --shadow-low: 0 8px 20px rgba(109, 75, 57, 0.09);
  --shadow-high: 0 18px 46px rgba(109, 75, 57, 0.13);
  --font-body: Pretendard, SUIT, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-editorial: "Cafe24 Ssurround", Pretendard, sans-serif;
  --page-gutter: 16px;
  --content-width: 520px;
  --radius-sm: 8px;
  --radius-md: 12px;
}

html {
  background: #f7f3ee;
  scroll-padding-top: 150px;
}

body {
  color: var(--ink);
  background: #f7f3ee;
  font-size: 15px;
}

:focus-visible {
  outline-color: #e78898;
}

.site-header,
main,
.site-footer {
  width: min(100%, 520px);
  margin-inline: auto;
  box-shadow: 0 0 34px rgba(82, 58, 45, 0.09);
}

.site-header {
  position: sticky;
  border-right: 1px solid #eadfd7;
  border-bottom: 1px solid #eadfd7;
  border-left: 1px solid #eadfd7;
  background: rgba(255, 251, 247, 0.97);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: 100%;
  min-height: 0;
  padding: 14px 18px 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 12px;
}

.brand {
  grid-column: 1;
  grid-row: 1;
}

.header-actions {
  grid-column: 2;
  grid-row: 1;
  gap: 6px;
}

.kakao-login-btn {
  min-height: 42px;
  padding-inline: 14px;
  border-color: #e9c900;
  border-radius: 999px;
  font-size: 12px;
  box-shadow: 0 8px 16px rgba(190, 156, 0, 0.13);
}

.kakao-login-btn.logout {
  border-color: var(--line);
  background: #fff;
  box-shadow: none;
}

.kakao-user {
  max-width: 72px;
}

main {
  min-height: calc(100vh - 84px);
  border-right: 1px solid #eadfd7;
  border-left: 1px solid #eadfd7;
  background: var(--paper);
}

.hero-band {
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  margin: 0;
  border-radius: 0;
  color: #ef8a99;
  background: #fbd4d5;
  box-shadow: none;
}

.hero-media {
  z-index: 0;
}

.hero-media img,
video.hero-media {
  width: 100%;
  height: 100%;
  object-position: center;
  object-fit: cover;
  filter: brightness(1.18) contrast(0.9) saturate(1.04);
}

.hero-band::after {
  display: none;
}

.hero-copy {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.catalog-explorer {
  width: 100%;
  margin: 0;
  padding: 20px 16px 64px;
  scroll-margin-top: 148px;
}

.catalog-heading-row {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.toolbar {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.toolbar > * {
  width: 100%;
}

.category-filter-group {
  display: block;
}

.filter-label,
.search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.type-segmented {
  gap: 5px;
  padding: 7px;
  border: 1px solid #eadfd7;
  border-radius: 999px;
  background: #fff;
}

.segmented {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 4px;
  padding: 8px;
  border: 1px solid #e7d9d1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(111, 78, 61, 0.04);
}

.type-filter-btn,
.filter-btn {
  min-height: 46px;
  padding: 7px 8px;
  border: 0;
  border-radius: 999px;
  color: #604a40;
  background: transparent;
  font-size: 14px;
  font-weight: 850;
}

.type-filter-btn:hover,
.filter-btn:hover {
  color: var(--ink);
  border-color: transparent;
  background: #fff5f0;
}

.type-filter-btn.active,
.type-filter-btn[aria-pressed="true"] {
  color: var(--ink);
  border-color: transparent;
  background: linear-gradient(105deg, #ffd744, #f5b4ca 60%, #d6a7f2);
  box-shadow: 0 9px 18px rgba(218, 136, 159, 0.18);
}

.filter-btn.active,
.filter-btn[aria-pressed="true"] {
  color: var(--ink);
  border-color: transparent;
  background: linear-gradient(105deg, #ffd0aa, #f5a49e);
  box-shadow: 0 8px 16px rgba(224, 131, 116, 0.14);
}

.search-control {
  min-height: 60px;
  padding-inline: 20px;
  border-color: #e7d9d1;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(111, 78, 61, 0.05);
}

.search-control svg {
  color: #a46c3f;
}

.search-control input {
  font-size: 16px;
  font-weight: 650;
}

.test-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
  margin-top: 2px;
}

.test-card {
  grid-template-rows: auto 1fr;
  border-color: #f1c9cc;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 9px 22px rgba(108, 74, 56, 0.06);
}

.test-card:hover {
  transform: translateY(-3px);
  border-color: #edaeb6;
  box-shadow: 0 13px 26px rgba(108, 74, 56, 0.11);
}

.coming-soon-card {
  cursor: not-allowed;
}

.coming-soon-card .thumb-wrap img {
  filter: saturate(0.72) brightness(0.94);
}

.coming-soon-card:hover .thumb-wrap img {
  transform: none;
}

.coming-soon-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  min-width: 54px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  color: #fff;
  background: rgba(67, 48, 43, 0.82);
  box-shadow: 0 5px 14px rgba(67, 48, 43, 0.18);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
}

.premium-card {
  border-color: #e7c2ed;
}

.premium-card::before {
  display: none;
}

.thumb-wrap {
  aspect-ratio: 1;
  background: #fff1e7;
}

.card-glint {
  display: none;
}

.card-body {
  min-height: 168px;
  padding: 10px 10px 12px;
}

.pill-row {
  gap: 6px;
}

.pill {
  max-width: 56%;
  padding: 5px 8px;
  border: 0;
  border-radius: 999px;
  color: #4a3328;
  font-size: 9px;
  line-height: 1;
}

.duration {
  font-size: 9px;
}

.card-title {
  margin-top: 10px;
  font-family: "Cafe24 Ssurround", var(--font-body);
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.055em;
}

.card-description {
  margin-top: 8px;
  color: #715f56;
  font-size: 11px;
  line-height: 1.55;
  -webkit-line-clamp: 3;
}

.origin {
  padding-top: 10px;
  color: #df6672;
  font-size: 9px;
  font-weight: 850;
}

.premium-mark {
  color: #9256aa;
}

.empty-state {
  padding: 48px 18px;
  border-color: #e5cbc1;
  background: #fff;
}

.test-view {
  width: 100%;
  min-height: calc(100vh - 84px);
  padding: 18px 14px 58px;
}

.test-view-header {
  margin-bottom: 14px;
}

.ghost,
.icon-text,
.icon-only,
.primary-action {
  border-radius: 999px;
}

.ghost {
  min-height: 46px;
  border-color: #e5d7ce;
  background: #fff;
}

.test-shell {
  display: block;
}

.test-visual > img {
  aspect-ratio: 1;
  border-color: #ead7cb;
  border-radius: 10px;
  background: #fff2e8;
}

.test-panel {
  min-height: 0;
  margin-top: 14px;
  padding: 20px 18px;
  border-color: #eaded6;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 9px 22px rgba(108, 74, 56, 0.07);
}

.eyebrow {
  color: #b36f42;
}

.test-panel > h2 {
  font-family: "Cafe24 Ssurround", var(--font-body);
  font-size: clamp(30px, 8.5vw, 40px);
  line-height: 1.12;
}

.test-panel > p:not(.eyebrow),
.result-box > p:not(.eyebrow) {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.72;
}

.action-row {
  margin-top: 22px;
}

.primary-action,
.past-life-submit,
.pixel-persona-submit {
  border-color: #f1958c;
  color: #4a2f25;
  background: linear-gradient(100deg, #ffc997, #f59795);
  box-shadow: 0 8px 18px rgba(224, 126, 119, 0.14);
}

.primary-action:hover,
.past-life-submit:hover,
.pixel-persona-submit:hover {
  border-color: #ec867f;
  color: #3d261e;
  background: linear-gradient(100deg, #ffc184, #ef8789);
}

.icon-only {
  color: #8a563c;
  border-color: #e7d7ce;
}

.question-box h3,
.result-box h3 {
  font-family: "Cafe24 Ssurround", var(--font-body);
}

.progress-track span {
  background: linear-gradient(90deg, #ffc152, #ed8da0);
}

.choice-btn {
  border-color: #eadad0;
  border-radius: 10px;
  background: #fffaf6;
}

.choice-btn:hover,
.choice-btn:focus-visible {
  border-color: #edabb4;
  background: #fff0f2;
}

.result-notes div {
  border-color: #edddd3;
  border-radius: 10px;
  background: #fff8f2;
}

.custom-app-shell .test-panel {
  margin-top: 0;
}

.past-life-dot,
.pixel-persona-test {
  max-width: 100%;
  padding: 18px;
  border-color: #eadbd2;
  border-radius: 12px;
  background: #fff;
}

.custom-app-banner {
  border-radius: 9px;
}

.past-life-hero-copy h3,
.past-life-loading h3,
.past-life-result h3,
.pixel-persona-copy h3,
.pixel-persona-loading h3,
.pixel-persona-result h3,
.past-life-gallery h4,
.past-life-features h4,
.pixel-example-section h4,
.pixel-feature-section h4 {
  font-family: "Cafe24 Ssurround", var(--font-body);
}

.past-life-form {
  border-color: #eadbd2;
  border-radius: 10px;
  background: #fff8f3;
}

.past-life-form input,
.past-life-gender {
  border-color: #e7d7ce;
  border-radius: 8px;
}

.past-life-gender.active,
.past-life-gender[aria-pressed="true"] {
  border-color: #ef929b;
  color: #4b3026;
  background: #ffd8d9;
}

.site-footer {
  padding: 28px 18px 34px;
  border-right: 1px solid #eadfd7;
  border-left: 1px solid #eadfd7;
  color: #8a6f62;
  background: #fff8ef;
  text-align: center;
}

.footer-mark {
  justify-content: center;
}

.footer-mark span {
  display: none;
}

.footer-mark strong {
  color: #a86f42;
  font-family: "Cafe24 Ssurround", var(--font-body);
}

.site-footer p,
.site-footer a {
  font-size: 11px;
}

@media (max-width: 420px) {
  .header-inner {
    padding-inline: 12px;
  }

  .brand-logo {
    flex-basis: clamp(172px, 52vw, 198px);
    width: clamp(172px, 52vw, 198px);
    border-radius: 13px;
  }

  .kakao-login-btn {
    min-height: 38px;
    padding-inline: 10px;
    font-size: 11px;
  }

  .catalog-explorer {
    padding-inline: 10px;
  }

  .type-filter-btn,
  .filter-btn {
    min-height: 43px;
    font-size: 13px;
  }

  .test-grid {
    gap: 10px 8px;
  }

  .card-body {
    min-height: 158px;
    padding: 9px 8px 10px;
  }

  .card-title {
    font-size: 15px;
  }

  .card-description {
    font-size: 10px;
  }

  .origin,
  .pill,
  .duration {
    font-size: 8px;
  }
}

/* --------------------------------------------------------------------------
   Darakbang palm reading
   Final override: intentionally follows the restored compact pastel system.
   -------------------------------------------------------------------------- */

.palm-reading {
  --palm-rose: #e97f91;
  --palm-rose-deep: #c95e73;
  --palm-rose-soft: #fff0f2;
  --palm-peach: #fff4e9;
  --palm-jade: #15796f;
  --palm-jade-soft: #e8f5f1;
  --palm-gold: #ad7841;
  --palm-gold-soft: #f8edd9;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(16px, 4.8vw, 22px);
  display: grid;
  gap: 18px;
  overflow: hidden;
  color: var(--ink);
  border: 1px solid #eadbd2;
  border-radius: 14px;
  background: #fffdfb;
  box-shadow: 0 12px 30px rgba(108, 74, 56, 0.09);
}

.palm-reading .custom-app-banner,
.palm-reading > img:first-child {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid #eadbd2;
  border-radius: 11px;
  background: var(--palm-peach);
}

.palm-intro,
.palm-stage,
.palm-loading,
.palm-result,
.palm-retake-panel {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.palm-hero {
  min-width: 0;
  padding: clamp(18px, 5vw, 26px);
  display: grid;
  justify-items: center;
  gap: 18px;
  overflow: hidden;
  border: 1px solid #ecdcd2;
  border-radius: 12px;
  background: #fff8f3;
  text-align: center;
}

.palm-hero__copy {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.palm-hero__copy h3,
.palm-stage-head h3,
.palm-loading h3,
.palm-result-hero h3,
.palm-retake-panel h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Cafe24 Ssurround", var(--font-body);
  font-weight: 700;
  letter-spacing: -0.045em;
}

.palm-hero__copy h3 {
  font-size: clamp(30px, 9vw, 42px);
  line-height: 1.15;
}

.palm-hero__copy p,
.palm-stage-head p,
.palm-loading p,
.palm-result-hero p,
.palm-retake-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  word-break: keep-all;
}

.palm-character-wrap {
  width: min(100%, 250px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #fff1ed;
}

.palm-character {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: contain;
  object-position: center;
}

.palm-premium-badge,
.palm-step,
.palm-section-state,
.palm-result-meta > * {
  min-height: 26px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e6cba7;
  border-radius: 999px;
  color: #76502d;
  background: #fff4dc;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.palm-primary,
.palm-secondary {
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  appearance: none;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.35;
  text-align: center;
  transition:
    transform 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    background-color 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out);
}

.palm-primary {
  color: #412b21;
  border: 1px solid #dd7587;
  background: #f39aa6;
  box-shadow: 0 8px 18px rgba(206, 93, 113, 0.16);
}

.palm-secondary {
  color: #65483a;
  border: 1px solid #dfcec4;
  background: #fffdfb;
  box-shadow: 0 6px 14px rgba(108, 74, 56, 0.07);
}

.palm-primary:hover:not(:disabled),
.palm-secondary:hover:not(:disabled) {
  transform: translateY(-2px);
}

.palm-primary:hover:not(:disabled) {
  border-color: #d4657a;
  background: #ee8b9a;
}

.palm-secondary:hover:not(:disabled) {
  border-color: #cfb7a9;
  background: #fff7f1;
}

.palm-primary:focus-visible,
.palm-secondary:focus-visible,
.palm-hand-option:focus-visible,
.palm-upload-option:focus-visible,
.palm-upload-option:focus-within {
  outline: 3px solid #b76578;
  outline-offset: 3px;
}

.palm-primary:disabled,
.palm-secondary:disabled,
.palm-hand-option:disabled,
.palm-upload-option:disabled,
.palm-upload-option[aria-disabled="true"] {
  opacity: 0.52;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.palm-stage {
  padding: clamp(16px, 4.5vw, 22px);
  border: 1px solid #eaded6;
  border-radius: 12px;
  background: #fffaf6;
}

.palm-stage-head {
  display: grid;
  justify-items: start;
  gap: 8px;
  text-align: left;
}

.palm-stage-head h3,
.palm-loading h3,
.palm-result-hero h3,
.palm-retake-panel h3 {
  font-size: clamp(24px, 7vw, 32px);
  line-height: 1.24;
}

.palm-step {
  color: #8a5662;
  border-color: #efc8cf;
  background: var(--palm-rose-soft);
}

.palm-hand-toggle {
  width: 100%;
  padding: 5px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  border: 1px solid #e7d8cf;
  border-radius: 12px;
  background: #f4ece6;
}

.palm-hand-option {
  min-width: 0;
  min-height: 46px;
  padding: 8px 12px;
  appearance: none;
  color: #80685c;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  transition:
    color 160ms var(--ease-out),
    border-color 160ms var(--ease-out),
    background-color 160ms var(--ease-out),
    box-shadow 160ms var(--ease-out);
}

.palm-hand-option:hover:not(:disabled) {
  color: #563e33;
  background: rgba(255, 255, 255, 0.62);
}

.palm-hand-option.active,
.palm-hand-option[aria-pressed="true"] {
  color: #57372e;
  border-color: #e9a2ad;
  background: #fff;
  box-shadow: 0 4px 12px rgba(133, 84, 68, 0.1);
}

.palm-upload-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.palm-upload-option {
  min-width: 0;
  min-height: 132px;
  padding: 16px 10px;
  appearance: none;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #5e493f;
  border: 1px dashed #d7bfb2;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition:
    transform 180ms var(--ease-out),
    color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    background-color 180ms var(--ease-out);
}

.palm-upload-option:hover:not(:disabled):not([aria-disabled="true"]) {
  transform: translateY(-2px);
  color: #493128;
  border-color: #dc8898;
  background: #fff7f7;
}

.palm-upload-option svg,
.palm-upload-option [data-lucide] {
  width: 30px;
  height: 30px;
  color: var(--palm-rose-deep);
  stroke-width: 1.7;
}

.palm-upload-option strong,
.palm-upload-option span {
  display: block;
  min-width: 0;
  line-height: 1.35;
  word-break: keep-all;
}

.palm-upload-option strong {
  font-size: 14px;
}

.palm-upload-option span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.palm-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #cbb9ae;
  border-radius: 14px;
  background: #24201e;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.palm-upload-preview,
.palm-photo-frame > img,
.palm-upload-preview img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: contain;
  object-position: center;
}

.palm-guide-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: rgba(23, 18, 16, 0.1);
}

.palm-guide-palm {
  width: min(58%, 190px);
  height: min(58%, 190px);
  aspect-ratio: 1;
  display: block;
  object-fit: contain;
  color: rgba(255, 255, 255, 0.92);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  filter: drop-shadow(0 2px 7px rgba(0, 0, 0, 0.32));
}

.palm-guide-palm path,
.palm-guide-palm use {
  vector-effect: non-scaling-stroke;
}

.palm-tips,
.palm-privacy,
.palm-error {
  width: 100%;
  padding: 15px;
  border-radius: 10px;
}

.palm-tips {
  color: #584a42;
  border: 1px solid #d7e4de;
  background: #f2f8f5;
}

.palm-tips h4 {
  margin: 0 0 10px;
  color: #315f57;
  font-family: "Cafe24 Ssurround", var(--font-body);
  font-size: 16px;
  line-height: 1.35;
}

.palm-tip-grid {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  list-style: none;
}

.palm-tip-grid > * {
  min-width: 0;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  color: #62554e;
  font-size: 13px;
  line-height: 1.55;
  word-break: keep-all;
}

.palm-tip-grid > *::before {
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--palm-jade);
  content: "";
}

.palm-error {
  margin: 0;
  color: #8e394d;
  border: 1px solid #efc6cd;
  background: #fff1f3;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.55;
}

.palm-privacy {
  color: #6c5c54;
  border-left: 3px solid var(--palm-gold);
  background: #fff9ef;
  font-size: 12px;
  line-height: 1.6;
}

.palm-privacy strong,
.palm-privacy span {
  display: block;
}

.palm-privacy strong {
  margin-bottom: 3px;
  color: #604631;
  font-size: 12px;
}

.palm-loading {
  min-height: min(620px, 76vh);
  padding: clamp(28px, 8vw, 48px) 16px;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.palm-loading-orbit {
  position: relative;
  width: min(62vw, 230px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.palm-character-wrap > .palm-loading-orbit {
  width: 90%;
}

.palm-loading-orbit::before {
  position: absolute;
  inset: 3px;
  border: 2px dashed rgba(201, 94, 115, 0.58);
  border-radius: 50%;
  content: "";
  animation: palm-orbit-spin 12s linear infinite;
}

.palm-loading-orbit::after {
  position: absolute;
  top: 2px;
  left: 50%;
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--palm-gold);
  box-shadow: 0 3px 9px rgba(120, 76, 43, 0.2);
  content: "";
  transform: translateX(-50%);
}

.palm-loading-orbit .palm-character {
  width: 82%;
  height: 82%;
  animation: palm-character-float 2.8s ease-in-out infinite;
}

.palm-progress-track {
  width: min(100%, 360px);
  height: 9px;
  overflow: hidden;
  border: 1px solid #ead9d1;
  border-radius: 999px;
  background: #f3eae4;
}

.palm-progress-fill {
  width: 46%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--palm-rose);
  transform: translateX(-115%);
  animation: palm-progress 1.65s ease-in-out infinite;
}

.palm-result {
  gap: 14px;
}

.palm-result-hero {
  padding: clamp(20px, 6vw, 28px);
  display: grid;
  gap: 10px;
  border: 1px solid #b9d7cf;
  border-radius: 12px;
  background: #edf7f4;
  text-align: left;
}

.palm-result-hero h3 {
  color: #28574f;
}

.palm-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.palm-result-meta > * {
  color: #35665e;
  border-color: #bedad3;
  background: #fff;
}

.palm-feature-grid,
.palm-result-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.palm-feature-grid > *,
.palm-line-card,
.palm-luck-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid #eaded6;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(108, 74, 56, 0.055);
}

.palm-feature-grid > * {
  border-top: 3px solid #e8a2ad;
}

.palm-feature-grid h4,
.palm-line-card h4,
.palm-line-card h5,
.palm-luck-card h4 {
  margin: 0;
  color: #50362b;
  font-family: "Cafe24 Ssurround", var(--font-body);
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.palm-feature-grid h4,
.palm-line-card h4,
.palm-luck-card h4 {
  font-size: 17px;
}

.palm-line-card h5 {
  margin-top: 14px;
  font-size: 13px;
}

.palm-feature-grid p,
.palm-line-card p,
.palm-luck-card p,
.palm-line-card dd,
.palm-line-card li {
  margin: 8px 0 0;
  color: #6d5f58;
  font-size: 13px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.palm-line-card {
  position: relative;
  border-top: 3px solid #e6a0ac;
}

.palm-line-card:nth-child(3n + 2) {
  border-top-color: #d8aa69;
}

.palm-line-card:nth-child(3n) {
  border-top-color: #74aea2;
}

.palm-line-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.palm-line-card dl {
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}

.palm-line-card dt {
  color: #8a6958;
  font-size: 11px;
  font-weight: 850;
}

.palm-line-card dd {
  margin-top: 2px;
}

.palm-section-state {
  flex: 0 0 auto;
  min-height: 24px;
  color: #7b5260;
  border-color: #e9c5cc;
  background: #fff2f4;
  font-size: 10px;
}

.palm-section-state[data-confidence="high"] {
  color: #35665e;
  border-color: #bedbd3;
  background: #edf8f5;
}

.palm-luck-card {
  border-color: #ead5b5;
  background: #fff9ec;
  box-shadow: none;
}

.palm-action-list {
  margin: 13px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
  counter-reset: palm-action;
}

.palm-action-list > * {
  min-width: 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  color: #67564c;
  font-size: 13px;
  line-height: 1.6;
  counter-increment: palm-action;
}

.palm-action-list > *::before {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #704a29;
  background: #f3dfba;
  font-size: 10px;
  font-weight: 900;
  content: counter(palm-action, decimal-leading-zero);
}

.palm-result-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.palm-retake-panel {
  min-height: 390px;
  padding: clamp(24px, 7vw, 38px) 18px;
  place-content: center;
  justify-items: center;
  border: 1px solid #ead4c1;
  border-radius: 12px;
  background: #fff8ed;
  text-align: center;
}

.palm-retake-panel .palm-character-wrap {
  width: min(58vw, 190px);
}

@keyframes palm-character-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes palm-orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes palm-progress {
  0% {
    transform: translateX(-115%);
  }

  55% {
    transform: translateX(78%);
  }

  100% {
    transform: translateX(235%);
  }
}

@media (min-width: 480px) {
  .palm-tip-grid,
  .palm-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .palm-result-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .palm-result-actions > :first-child:last-child,
  .palm-result-actions > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 360px) {
  .palm-reading {
    padding: 13px;
    gap: 14px;
  }

  .palm-hero,
  .palm-stage {
    padding: 15px;
  }

  .palm-upload-grid {
    gap: 7px;
  }

  .palm-upload-option {
    min-height: 116px;
    padding-inline: 7px;
  }

  .palm-upload-option span {
    font-size: 10px;
  }

  .palm-feature-grid > *,
  .palm-line-card,
  .palm-luck-card {
    padding: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .palm-reading *,
  .palm-reading *::before,
  .palm-reading *::after {
    animation: none !important;
    transition: none !important;
  }

  .palm-loading-orbit .palm-character {
    transform: none;
  }

  .palm-progress-fill {
    width: 58%;
    transform: none;
  }
}

/* Compliment diary: content-fit collage with varied memo shapes. */
.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: none;
  grid-auto-rows: auto;
  gap: 7px 5px;
  align-items: center;
  min-height: 0;
  padding: 42px 9px 14px;
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 10px 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border: 1px solid color-mix(in srgb, var(--note-fill) 72%, #55483d);
  border-radius: 3px;
  background-color: var(--note-fill);
  box-shadow: 0 7px 10px -8px rgba(57, 43, 30, 0.72);
  filter: none;
  isolation: isolate;
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article > span {
  display: none;
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article > p,
.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--compact > p {
  width: 100%;
  margin: 0;
  color: #302d29;
  font: 670 13.5px/1.3 var(--font-body);
  letter-spacing: -0.028em;
  text-align: left;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--compact > p {
  font-size: 12.5px;
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--taped-blush {
  --note-fill: #efc4bc;
  z-index: 5;
  grid-column: 1 / 8;
  min-height: 56px;
  border-radius: 3px 5px 2px 4px;
  transform: rotate(-1.4deg) translate(2px, 1px);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--taped-blush::before {
  top: -7px;
  left: 50%;
  width: 48px;
  height: 13px;
  display: block;
  background: rgba(231, 220, 195, 0.84);
  box-shadow: 0 1px 2px rgba(70, 56, 40, 0.08);
  transform: translateX(-50%) rotate(-3deg);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--round-butter {
  --note-fill: #f4e89a;
  z-index: 4;
  grid-column: 8 / 13;
  justify-self: center;
  width: min(100%, 150px);
  aspect-ratio: 1;
  padding: 20px 18px;
  border-radius: 50%;
  transform: rotate(1.2deg) translate(-2px, 2px);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--triangle-mint {
  --note-fill: #bfdcc7;
  z-index: 6;
  grid-column: 1 / 6;
  justify-self: center;
  width: min(100%, 158px);
  aspect-ratio: 1.12;
  padding: 35% 14% 8%;
  border: 0;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 6px 4px rgba(57, 43, 30, 0.2));
  transform: rotate(1.4deg) translate(2px, 0);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--star-lilac {
  --note-fill: #d1c5e1;
  z-index: 7;
  grid-column: 6 / 13;
  justify-self: center;
  width: min(100%, 190px);
  aspect-ratio: 1.12;
  padding: 25% 21%;
  border: 0;
  clip-path: polygon(50% 0, 61% 23%, 85% 15%, 77% 39%, 100% 50%, 77% 61%, 85% 85%, 61% 77%, 50% 100%, 39% 77%, 15% 85%, 23% 61%, 0 50%, 23% 39%, 15% 15%, 39% 23%);
  filter: drop-shadow(0 6px 4px rgba(57, 43, 30, 0.2));
  transform: rotate(-1.8deg) translate(-2px, 2px);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--oval-powder {
  --note-fill: #bdd7df;
  z-index: 5;
  grid-column: 1 / 7;
  min-height: 82px;
  padding: 17px 15px;
  border-radius: 50%;
  transform: rotate(-0.8deg) translate(1px, 0);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--speech-apricot {
  --note-fill: #eecba5;
  z-index: 6;
  grid-column: 7 / 13;
  min-height: 62px;
  padding: 10px 11px 13px;
  border-radius: 15px;
  transform: rotate(1deg) translate(-2px, 0);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--speech-apricot::after {
  right: auto;
  bottom: -10px;
  left: 22%;
  width: 22px;
  height: 16px;
  display: block;
  border: 0;
  background: var(--note-fill);
  clip-path: polygon(0 0, 100% 0, 18% 100%);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--receipt-pink {
  --note-fill: #e7c0cf;
  z-index: 7;
  grid-column: 1 / 6;
  min-height: 70px;
  padding: 13px 11px;
  border: 0;
  clip-path: polygon(0 5px, 5% 0, 10% 5px, 15% 0, 20% 5px, 25% 0, 30% 5px, 35% 0, 40% 5px, 45% 0, 50% 5px, 55% 0, 60% 5px, 65% 0, 70% 5px, 75% 0, 80% 5px, 85% 0, 90% 5px, 95% 0, 100% 5px, 100% calc(100% - 5px), 95% 100%, 90% calc(100% - 5px), 85% 100%, 80% calc(100% - 5px), 75% 100%, 70% calc(100% - 5px), 65% 100%, 60% calc(100% - 5px), 55% 100%, 50% calc(100% - 5px), 45% 100%, 40% calc(100% - 5px), 35% 100%, 30% calc(100% - 5px), 25% 100%, 20% calc(100% - 5px), 15% 100%, 10% calc(100% - 5px), 5% 100%, 0 calc(100% - 5px));
  filter: drop-shadow(0 6px 4px rgba(57, 43, 30, 0.19));
  transform: rotate(-1.3deg) translate(1px, 1px);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--hex-sage {
  --note-fill: #ccd7a7;
  z-index: 6;
  grid-column: 6 / 13;
  min-height: 76px;
  padding: 14px 15%;
  border: 0;
  clip-path: polygon(16% 0, 84% 0, 100% 50%, 84% 100%, 16% 100%, 0 50%);
  filter: drop-shadow(0 6px 4px rgba(57, 43, 30, 0.19));
  transform: rotate(1deg) translate(-1px, 0);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--round-butter > p,
.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--triangle-mint > p,
.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--star-lilac > p,
.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--oval-powder > p,
.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--hex-sage > p {
  text-align: center;
}

@media (max-width: 430px) {
  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid {
    gap: 6px 4px;
    padding: 41px 7px 12px;
  }

  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article > p,
  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--compact > p {
    font-size: 12.25px;
    line-height: 1.28;
  }

  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--round-butter {
    padding: 17px 15px;
  }

  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--triangle-mint {
    padding-inline: 12%;
  }

  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--star-lilac {
    padding-inline: 20%;
  }
}

@media (max-width: 340px) {
  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article > p,
  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--compact > p {
    font-size: 11.5px;
  }
}

@media (forced-colors: active) {
  .palm-reading,
  .palm-hero,
  .palm-stage,
  .palm-photo-frame,
  .palm-tips,
  .palm-privacy,
  .palm-error,
  .palm-result-hero,
  .palm-feature-grid > *,
  .palm-line-card,
  .palm-luck-card,
  .palm-retake-panel {
    border: 1px solid CanvasText;
  }

  .palm-primary,
  .palm-secondary,
  .palm-hand-option,
  .palm-upload-option {
    color: ButtonText;
    border: 1px solid ButtonText;
    background: ButtonFace;
  }

  .palm-hand-option.active,
  .palm-hand-option[aria-pressed="true"] {
    outline: 3px solid Highlight;
  }
}

/* Tarot consultation */
.tarot-consultation {
  --tarot-ink: #3d2837;
  --tarot-muted: #786570;
  --tarot-pink: #d96e9c;
  --tarot-pink-deep: #a84673;
  --tarot-lilac: #9c7ac5;
  --tarot-line: #ebcedc;
  --tarot-paper: #fffafc;
  width: 100%;
  color: var(--tarot-ink);
}

.tarot-consultation .custom-app-banner {
  width: 100%;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 22px;
}

.tarot-intro {
  overflow: hidden;
  border: 1px solid var(--tarot-line);
  border-radius: 24px;
  background: var(--tarot-paper);
  box-shadow: 0 20px 55px rgba(111, 72, 96, 0.11);
}

.tarot-intro-copy {
  padding: 28px 22px 30px;
}

.tarot-kicker,
.tarot-step {
  display: inline-flex;
  color: var(--tarot-pink-deep);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

.tarot-intro-copy h3,
.tarot-stage-head h3,
.tarot-loading h3,
.tarot-result-head h3 {
  margin: 12px 0 0;
  color: var(--tarot-ink);
  font-size: clamp(26px, 7vw, 39px);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: -0.045em;
  word-break: keep-all;
}

.tarot-intro-copy > p,
.tarot-stage-head > p,
.tarot-loading > p {
  margin: 13px 0 0;
  color: var(--tarot-muted);
  font-size: 15px;
  line-height: 1.75;
  word-break: keep-all;
}

.tarot-intro-points {
  margin: 24px 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.tarot-intro-points li {
  padding: 15px 16px;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid #f0dbe5;
  border-radius: 14px;
  background: #fff;
}

.tarot-intro-points b {
  color: var(--tarot-pink-deep);
  font-size: 13px;
}

.tarot-intro-points span {
  color: var(--tarot-muted);
  font-size: 13px;
  line-height: 1.55;
}

.tarot-primary,
.tarot-secondary {
  min-height: 54px;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.2;
}

.tarot-primary {
  width: 100%;
  border: 1px solid var(--tarot-pink-deep);
  color: #fff;
  background: linear-gradient(135deg, #d96094, #a96ec8);
  box-shadow: 0 12px 24px rgba(176, 75, 125, 0.22);
}

.tarot-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(176, 75, 125, 0.28);
}

.tarot-primary:disabled {
  opacity: 0.55;
  cursor: wait;
}

.tarot-secondary {
  border: 1px solid var(--tarot-line);
  color: var(--tarot-ink);
  background: #fff;
}

.tarot-primary svg,
.tarot-secondary svg,
.tarot-back-link svg {
  width: 18px;
  height: 18px;
}

.tarot-question-stage,
.tarot-card-stage,
.tarot-result {
  padding: 24px 18px 30px;
  border: 1px solid var(--tarot-line);
  border-radius: 24px;
  background: linear-gradient(180deg, #fffafd, #fff7f8);
  box-shadow: 0 18px 50px rgba(111, 72, 96, 0.09);
}

.tarot-stage-head,
.tarot-result-head {
  text-align: left;
}

.tarot-back-link {
  margin: 0 0 24px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  color: var(--tarot-muted);
  background: transparent;
  font-size: 13px;
  font-weight: 750;
}

.tarot-question-form {
  margin-top: 28px;
  display: grid;
  gap: 17px;
}

.tarot-topic-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.tarot-topic-fieldset legend,
.tarot-question-label {
  margin-bottom: 10px;
  display: block;
  color: var(--tarot-ink);
  font-size: 14px;
  font-weight: 850;
}

.tarot-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tarot-topic {
  min-height: 44px;
  padding: 8px 6px;
  border: 1px solid var(--tarot-line);
  border-radius: 999px;
  color: var(--tarot-muted);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.tarot-topic.active {
  color: #fff;
  border-color: var(--tarot-pink-deep);
  background: var(--tarot-pink-deep);
}

.tarot-textarea-wrap {
  position: relative;
}

.tarot-textarea-wrap textarea {
  width: 100%;
  min-height: 154px;
  padding: 18px 18px 38px;
  resize: vertical;
  border: 1px solid #e4c5d6;
  border-radius: 16px;
  outline: none;
  color: var(--tarot-ink);
  background: #fff;
  font: inherit;
  font-size: 15px;
  line-height: 1.65;
}

.tarot-textarea-wrap textarea:focus {
  border-color: var(--tarot-pink);
  box-shadow: 0 0 0 4px rgba(217, 110, 156, 0.12);
}

.tarot-textarea-wrap span {
  position: absolute;
  right: 15px;
  bottom: 13px;
  color: #9b8994;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.tarot-error {
  padding: 13px 15px;
  border: 1px solid #efbec5;
  border-radius: 12px;
  color: #8b3b49;
  background: #fff1f3;
  font-size: 13px;
  line-height: 1.5;
}

.tarot-question-preview {
  margin-top: 17px !important;
  padding: 14px 16px;
  border-left: 3px solid var(--tarot-pink);
  border-radius: 0 12px 12px 0;
  color: var(--tarot-ink) !important;
  background: #fff;
  font-size: 13px !important;
}

.tarot-question-preview b {
  margin-right: 10px;
  color: var(--tarot-pink-deep);
}

.tarot-deck-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 8px;
  perspective: 1100px;
}

.tarot-pick-card {
  min-width: 0;
  padding: 0;
  aspect-ratio: 3 / 5;
  border: 0;
  border-radius: 8px;
  outline-offset: 4px;
  background: transparent;
  box-shadow: 0 6px 12px rgba(75, 44, 67, 0.13);
  transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
}

.tarot-pick-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(75, 44, 67, 0.19);
}

.tarot-pick-card.is-selected {
  z-index: 2;
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 16px 28px rgba(143, 70, 111, 0.27);
}

.tarot-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  transform-style: preserve-3d;
  transition: transform 650ms cubic-bezier(0.22, 0.8, 0.22, 1);
}

.tarot-pick-card.is-selected .tarot-card-inner {
  transform: rotateY(180deg);
}

.tarot-card-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: block;
  border-radius: inherit;
  backface-visibility: hidden;
  background: #f5e8ef;
}

.tarot-card-face img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.tarot-card-front {
  border: 2px solid #e9c7d8;
  transform: rotateY(180deg);
  background: #17120f;
}

.tarot-card-front img {
  object-fit: contain;
}

.tarot-card-front.is-reversed img,
.tarot-loading-card.is-reversed,
.tarot-result-card.is-reversed {
  transform: rotate(180deg);
}

.tarot-deck-note {
  margin: 19px auto 0;
  max-width: 520px;
  color: var(--tarot-muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.tarot-selected-summary {
  margin-top: 24px;
  padding: 21px;
  border: 1px solid #e5c4d5;
  border-radius: 18px;
  background: #fff;
  text-align: center;
}

.tarot-selected-summary > span {
  color: var(--tarot-pink-deep);
  font-size: 11px;
  font-weight: 850;
}

.tarot-selected-summary h4 {
  margin: 7px 0 0;
  font-size: 25px;
  font-weight: 900;
}

.tarot-selected-summary p {
  margin: 6px 0 18px;
  color: var(--tarot-muted);
  font-size: 12px;
  line-height: 1.5;
}

.tarot-loading {
  min-height: 620px;
  padding: 72px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tarot-line);
  border-radius: 24px;
  background: linear-gradient(165deg, #fff4fa, #f6efff 55%, #fff9ef);
  text-align: center;
}

.tarot-loading-visual {
  position: relative;
  width: 260px;
  height: 260px;
  margin-bottom: 28px;
}

.tarot-loading-card {
  position: absolute;
  left: 36px;
  top: 0;
  width: 114px;
  height: 190px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 18px 32px rgba(78, 48, 69, 0.22);
  animation: tarot-card-breathe 2.2s ease-in-out infinite;
}

.tarot-reader-character {
  position: absolute;
  right: 14px;
  bottom: 0;
  width: 146px;
  height: 146px;
  background: url("assets/details/palm-undambi.webp") center / contain no-repeat;
  filter: drop-shadow(0 12px 18px rgba(99, 61, 89, 0.2));
}

.tarot-progress-track {
  width: min(100%, 420px);
  height: 8px;
  margin-top: 28px;
  overflow: hidden;
  border-radius: 999px;
  background: #fff;
}

.tarot-progress-track span {
  width: 42%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tarot-pink), var(--tarot-lilac));
  animation: tarot-progress 1.8s ease-in-out infinite;
}

.tarot-result-head {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--tarot-line);
}

.tarot-result-question {
  margin: 15px 0 0;
  color: var(--tarot-muted);
  font-size: 14px;
  line-height: 1.65;
}

.tarot-result-opening {
  margin-top: 26px;
  display: grid;
  gap: 20px;
}

.tarot-result-card-wrap {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.tarot-result-card {
  width: min(64vw, 240px);
  aspect-ratio: 7 / 12;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 18px 36px rgba(66, 40, 58, 0.23);
}

.tarot-result-card-wrap span {
  color: var(--tarot-pink-deep);
  font-size: 12px;
  font-weight: 850;
}

.tarot-reader-message {
  position: relative;
  padding: 22px 20px 22px 96px;
  align-self: center;
  border: 1px solid #ead0de;
  border-radius: 20px;
  background: #fff;
}

.tarot-reader-message .tarot-reader-avatar {
  position: absolute;
  left: 10px;
  bottom: 8px;
  width: 76px;
  height: 76px;
  background: url("assets/details/palm-undambi.webp") center / contain no-repeat;
}

.tarot-reader-message p,
.tarot-reading-block > p,
.tarot-conclusion-block p {
  margin: 0;
  color: #4e3d48;
  font-size: 14px;
  line-height: 1.75;
  word-break: keep-all;
}

.tarot-reading-block,
.tarot-advice-block,
.tarot-conclusion-block {
  margin-top: 18px;
  padding: 21px 19px;
  border: 1px solid #ebd7e1;
  border-radius: 17px;
  background: #fff;
}

.tarot-reading-block > span,
.tarot-advice-block > span,
.tarot-conclusion-block > span {
  margin-bottom: 11px;
  display: block;
  color: var(--tarot-pink-deep);
  font-size: 12px;
  font-weight: 900;
}

.tarot-symbol-grid {
  display: grid;
  gap: 10px;
}

.tarot-symbol-grid article {
  padding: 15px;
  border-radius: 13px;
  background: #fbf1f7;
}

.tarot-symbol-grid h4 {
  margin: 0;
  color: var(--tarot-ink);
  font-size: 14px;
  font-weight: 850;
}

.tarot-symbol-grid p {
  margin: 6px 0 0;
  color: var(--tarot-muted);
  font-size: 13px;
  line-height: 1.65;
}

.tarot-advice-block {
  border-color: #dcb8cf;
  background: linear-gradient(145deg, #fff7fb, #f8f1ff);
}

.tarot-advice-block ol {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  counter-reset: tarot-advice;
  list-style: none;
}

.tarot-advice-block li {
  position: relative;
  min-height: 40px;
  padding: 10px 12px 10px 44px;
  border-radius: 12px;
  color: #4e3d48;
  background: #fff;
  font-size: 13px;
  line-height: 1.55;
  counter-increment: tarot-advice;
}

.tarot-advice-block li::before {
  content: counter(tarot-advice);
  position: absolute;
  left: 10px;
  top: 9px;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--tarot-pink);
  font-size: 11px;
  font-weight: 850;
}

.tarot-conclusion-block {
  color: #fff;
  border-color: #4c3545;
  background: #4c3545;
}

.tarot-conclusion-block > span,
.tarot-conclusion-block p {
  color: #fff;
}

.tarot-result-actions {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tarot-result-actions .tarot-primary {
  grid-column: 1 / -1;
}

@keyframes tarot-card-breathe {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-10px) rotate(-1deg); }
}

@keyframes tarot-progress {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(340%); }
}

@media (min-width: 720px) {
  .tarot-intro-copy,
  .tarot-question-stage,
  .tarot-card-stage,
  .tarot-result {
    padding: 36px;
  }

  .tarot-intro-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tarot-intro-points li {
    grid-template-columns: 1fr;
  }

  .tarot-topic-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .tarot-deck-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 15px 12px;
  }

  .tarot-result-opening {
    grid-template-columns: 260px 1fr;
    align-items: center;
  }

  .tarot-result-card {
    width: 230px;
  }

  .tarot-symbol-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .tarot-card-inner,
  .tarot-pick-card,
  .tarot-loading-card,
  .tarot-progress-track span {
    animation: none !important;
    transition: none !important;
  }
}

/* Original test 329 reinterpretation: hidden compliment diary */
.test-shell[data-test-id="original-hidden-compliments"] {
  --diary-accent: #d96983;
  --diary-accent-deep: #b84964;
  --diary-ink: #3e302a;
  --diary-muted: #786a62;
  --diary-line: #e7d9cf;
  --diary-paper: #fffdfa;
  max-width: 820px;
  margin-inline: auto;
}

.test-shell[data-test-id="original-hidden-compliments"] .test-visual {
  max-width: 560px;
  margin-inline: auto;
}

.test-shell[data-test-id="original-hidden-compliments"] .test-panel {
  max-width: 760px;
  margin-inline: auto;
  border-color: var(--diary-line);
  background:
    linear-gradient(rgba(255, 253, 250, 0.95), rgba(255, 253, 250, 0.98)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(215, 195, 181, 0.2) 31px 32px);
}

.test-shell[data-test-id="original-hidden-compliments"][data-test-stage="question"] .test-visual,
.test-shell[data-test-id="original-hidden-compliments"][data-test-stage="result"] .test-visual,
.test-shell[data-test-id="original-hidden-compliments"][data-test-stage="question"] .test-panel > .eyebrow,
.test-shell[data-test-id="original-hidden-compliments"][data-test-stage="result"] .test-panel > .eyebrow,
.test-shell[data-test-id="original-hidden-compliments"][data-test-stage="question"] .test-panel > h2,
.test-shell[data-test-id="original-hidden-compliments"][data-test-stage="result"] .test-panel > h2,
.test-shell[data-test-id="original-hidden-compliments"][data-test-stage="question"] .test-panel > #testDescription,
.test-shell[data-test-id="original-hidden-compliments"][data-test-stage="result"] .test-panel > #testDescription {
  display: none;
}

.test-shell[data-test-id="original-hidden-compliments"][data-test-stage="result"] .test-panel {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.test-shell[data-test-id="original-hidden-compliments"][data-test-stage="result"] .result-box.compliment-diary-active {
  margin-top: 0;
}

.test-shell[data-test-id="original-hidden-compliments"] .eyebrow {
  color: var(--diary-accent-deep);
}

.test-shell[data-test-id="original-hidden-compliments"] .profile-prompt {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--diary-line);
  border-radius: 12px;
  background: #fff8f3;
}

.test-shell[data-test-id="original-hidden-compliments"] .profile-prompt > div {
  display: grid;
  gap: 6px;
}

.test-shell[data-test-id="original-hidden-compliments"] .profile-prompt span,
.test-shell[data-test-id="original-hidden-compliments"] .profile-prompt label {
  color: var(--diary-accent-deep);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.test-shell[data-test-id="original-hidden-compliments"] .profile-prompt h3 {
  margin: 0;
  color: var(--diary-ink);
  font-family: "Cafe24 Ssurround", var(--font-body);
  font-size: clamp(21px, 5.8vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.04em;
}

.test-shell[data-test-id="original-hidden-compliments"] .profile-prompt p {
  margin: 0;
  color: var(--diary-muted);
  font-size: 13px;
  line-height: 1.7;
  word-break: keep-all;
}

.test-shell[data-test-id="original-hidden-compliments"] .profile-prompt input {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid #decac0;
  border-radius: 9px;
  outline: 0;
  color: var(--diary-ink);
  background: #fff;
  font: 750 16px/1.4 var(--font-body);
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.test-shell[data-test-id="original-hidden-compliments"] .profile-prompt input:focus {
  border-color: var(--diary-accent);
  box-shadow: 0 0 0 3px rgba(217, 105, 131, 0.14);
}

.test-shell[data-test-id="original-hidden-compliments"] #startTestBtn,
.test-shell[data-test-id="original-hidden-compliments"] .result-share-cta {
  color: #fff;
  border-color: var(--diary-accent-deep);
  background: var(--diary-accent-deep);
  box-shadow: 0 9px 20px rgba(184, 73, 100, 0.16);
}

.test-shell[data-test-id="original-hidden-compliments"] #startTestBtn:hover,
.test-shell[data-test-id="original-hidden-compliments"] .result-share-cta:hover {
  color: #fff;
  border-color: #9f3650;
  background: #9f3650;
}

.test-shell[data-test-id="original-hidden-compliments"] .progress-track span {
  background: var(--diary-accent);
}

.test-shell[data-test-id="original-hidden-compliments"] .choice-list {
  gap: 12px;
}

.test-shell[data-test-id="original-hidden-compliments"] .choice-btn {
  min-height: 76px;
  padding: 16px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-color: var(--diary-line);
  color: var(--diary-ink);
  background: rgba(255, 253, 250, 0.92);
}

.test-shell[data-test-id="original-hidden-compliments"][data-test-stage="question"] .choice-btn::before {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #e4c8cf;
  border-radius: 50%;
  color: var(--diary-accent-deep);
  background: #fff4f6;
  font-size: 12px;
  font-weight: 900;
  content: "A";
}

.test-shell[data-test-id="original-hidden-compliments"][data-test-stage="question"] .choice-btn:nth-child(2)::before {
  content: "B";
}

.test-shell[data-test-id="original-hidden-compliments"] .choice-btn:hover,
.test-shell[data-test-id="original-hidden-compliments"] .choice-btn:focus-visible {
  border-color: var(--diary-accent);
  background: #fff7f8;
}

.test-shell[data-test-id="original-hidden-compliments"] .result-box.compliment-diary-active {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--diary-line);
  border-radius: 14px;
  background: var(--diary-paper);
  box-shadow: 0 14px 34px rgba(81, 56, 45, 0.08);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-active > h3 {
  color: var(--diary-ink);
  font-size: clamp(30px, 8vw, 44px);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-active > p:not(.eyebrow) {
  max-width: 660px;
  color: var(--diary-muted);
}

.compliment-diary-result {
  margin-top: 28px;
}

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

.compliment-diary-result h4 {
  margin: 0 0 14px;
  color: var(--diary-ink, var(--ink));
  font-size: clamp(18px, 5vw, 22px);
  line-height: 1.5;
  letter-spacing: -0.035em;
  word-break: keep-all;
}

.compliment-diary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.compliment-diary-grid article {
  min-height: 142px;
  padding: 15px;
  display: grid;
  align-content: start;
  gap: 9px;
  border: 1px solid #eadfd5;
  border-radius: 10px;
  background: #fff8e8;
}

.compliment-diary-grid article:nth-child(4n + 2) {
  background: #f8f1ff;
}

.compliment-diary-grid article:nth-child(4n + 3) {
  background: #edf8f4;
}

.compliment-diary-grid article:nth-child(4n) {
  background: #fff0f2;
}

.compliment-diary-grid article > span {
  color: var(--result-accent, var(--diary-accent-deep));
  font-size: 11px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.compliment-diary-grid article > p {
  margin: 0;
  color: #493d37;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.test-shell[data-test-id="original-hidden-compliments"] .result-share-cta {
  width: 100%;
  min-height: 52px;
  flex: 1 0 100%;
  order: -1;
  padding: 0 18px;
}

.test-shell[data-test-id="original-hidden-compliments"] .result-share-cta .result-share-label {
  display: inline;
}

.test-shell[data-test-id="original-hidden-compliments"] #saveResultBtn {
  color: #5d4540;
  border-color: #dfd0c8;
  background: #fff;
  box-shadow: none;
}

.test-shell[data-test-id="original-hidden-compliments"] #saveResultBtn:hover {
  color: #3f302b;
  border-color: var(--diary-accent);
  background: #fff8f8;
}

@media (max-width: 430px) {
  .test-shell[data-test-id="original-hidden-compliments"] .result-box.compliment-diary-active {
    padding: 20px 16px;
  }

  .compliment-diary-grid {
    gap: 8px;
  }

  .compliment-diary-grid article {
    min-height: 150px;
    padding: 13px;
  }

  .compliment-diary-grid article > p {
    font-size: 12.5px;
    line-height: 1.68;
  }
}

@media (max-width: 340px) {
  .compliment-diary-grid {
    grid-template-columns: 1fr;
  }

  .compliment-diary-grid article {
    min-height: 0;
  }
}

@media (forced-colors: active) {
  .test-shell[data-test-id="original-hidden-compliments"] .profile-prompt,
  .test-shell[data-test-id="original-hidden-compliments"] .choice-btn,
  .test-shell[data-test-id="original-hidden-compliments"] .result-box.compliment-diary-active,
  .compliment-diary-grid article {
    border: 1px solid CanvasText;
  }
}

/* Hidden compliment diary — MZ sticker board result */
.test-shell[data-test-id="original-hidden-compliments"] .result-box.compliment-diary-active {
  --sticker-ink: #28231f;
  margin-top: 0;
  padding: 22px 14px 26px;
  border: 2px solid #332d28;
  border-radius: 24px;
  background:
    radial-gradient(circle, rgba(238, 111, 158, 0.52) 0 1px, transparent 1.6px) 4px 7px / 37px 31px,
    radial-gradient(circle, rgba(65, 184, 196, 0.42) 0 1px, transparent 1.6px) 17px 20px / 43px 39px,
    #f8f36c;
  box-shadow: 5px 7px 0 rgba(51, 45, 40, 0.18);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-active > .eyebrow {
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 6px 13px;
  border: 1.5px solid #332d28;
  border-radius: 999px;
  color: var(--sticker-ink);
  background: #fff;
  box-shadow: 2px 3px 0 rgba(51, 45, 40, 0.14);
  transform: rotate(-1deg);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-active > h3 {
  margin-top: 14px;
  color: var(--sticker-ink);
  font-family: "Jalnan", "Cafe24 Ssurround", var(--font-body);
  font-size: clamp(27px, 8vw, 38px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.045em;
  text-align: center;
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-active > p:not(.eyebrow) {
  max-width: 620px;
  margin: 10px auto 0;
  color: #524b43;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.65;
  text-align: center;
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-result {
  margin: 26px 4px 10px;
  padding: 0;
  border: 2px solid #332d28;
  border-radius: 5px;
  background: #c9c4b7;
  box-shadow: 5px 7px 0 #746e63;
  transform: rotate(-0.65deg);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-result h4 {
  margin: 0;
  padding: 14px 12px 13px;
  border-bottom: 1.5px solid #332d28;
  color: var(--sticker-ink);
  background: rgba(255, 255, 255, 0.18);
  font: 700 15px/1.45 "Cafe24 Ssurround", var(--font-body);
  letter-spacing: -0.035em;
  text-align: center;
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(136px, auto);
  gap: 13px 10px;
  padding: 19px 13px 24px;
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article {
  --sticker-bg: #ffb7b0;
  --sticker-line: #e76f68;
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 136px;
  padding: 27px 12px 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--sticker-line);
  color: var(--sticker-ink);
  background: var(--sticker-bg);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.72),
    2px 4px 0 rgba(51, 45, 40, 0.16);
  text-align: center;
  isolation: isolate;
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article::after {
  position: absolute;
  bottom: -8px;
  left: 24px;
  z-index: -1;
  width: 18px;
  height: 18px;
  display: none;
  border-right: 2px solid var(--sticker-line);
  border-bottom: 2px solid var(--sticker-line);
  background: var(--sticker-bg);
  filter: drop-shadow(2px 2px 0 rgba(255, 255, 255, 0.72));
  transform: rotate(45deg);
  content: "";
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article:nth-child(1)::after,
.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article:nth-child(4)::after,
.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article:nth-child(6)::after {
  display: block;
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article:nth-child(4)::after {
  right: 25px;
  left: auto;
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article > span {
  position: absolute;
  top: 9px;
  left: 12px;
  padding: 3px 6px;
  border: 1px solid rgba(40, 35, 31, 0.22);
  border-radius: 999px;
  color: var(--sticker-ink);
  background: rgba(255, 255, 255, 0.55);
  font: 800 10px/1 var(--font-body);
  opacity: 0.7;
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article > p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--sticker-ink);
  font: 780 13.5px/1.52 var(--font-body);
  letter-spacing: -0.025em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article:nth-child(1) {
  --sticker-bg: #ffb7b0;
  --sticker-line: #e76f68;
  border-radius: 30px 30px 30px 9px;
  transform: rotate(-1.4deg) translate(3px, 2px);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article:nth-child(2) {
  --sticker-bg: #fff09a;
  --sticker-line: #c9a92c;
  border-radius: 20px 38px 23px 32px;
  transform: rotate(1.2deg) translate(-3px, 7px);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article:nth-child(3) {
  --sticker-bg: #b8efc7;
  --sticker-line: #55b975;
  border-radius: 46% 54% 44% 56% / 39% 45% 55% 61%;
  transform: rotate(0.8deg) translate(4px, -2px);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article:nth-child(4) {
  --sticker-bg: #dccbff;
  --sticker-line: #9474d0;
  border-radius: 38px 18px 34px 24px;
  transform: rotate(-1deg) translate(-3px, 5px);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article:nth-child(5) {
  --sticker-bg: #bceef2;
  --sticker-line: #51b9c2;
  border-radius: 34px 18px 40px 22px;
  transform: rotate(1.3deg) translate(3px, -3px);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article:nth-child(6) {
  --sticker-bg: #ffd59f;
  --sticker-line: #d58f44;
  border-radius: 18px 40px 20px 36px;
  transform: rotate(-0.9deg) translate(-4px, 6px);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article:nth-child(7) {
  --sticker-bg: #ffc0d6;
  --sticker-line: #df6a95;
  border-radius: 9px;
  transform: rotate(-1.3deg) translate(4px, -1px);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article:nth-child(8) {
  --sticker-bg: #daf3a1;
  --sticker-line: #80b53c;
  border-radius: 44% 56% 51% 49% / 56% 41% 59% 44%;
  transform: rotate(1.1deg) translate(-4px, 4px);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-active > .action-row {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 10px;
}

.test-shell[data-test-id="original-hidden-compliments"] .result-share-cta {
  grid-column: 1 / -1;
  grid-row: 1;
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  color: #fff;
  border: 2px solid #28231f;
  background: #28231f;
  box-shadow: 4px 5px 0 #ef7099;
}

.test-shell[data-test-id="original-hidden-compliments"] .result-share-cta:hover {
  color: #fff;
  border-color: #28231f;
  background: #3d3530;
}

.test-shell[data-test-id="original-hidden-compliments"] #saveResultBtn {
  grid-column: 1;
  grid-row: 2;
  min-height: 52px;
  color: #28231f;
  border: 2px solid #332d28;
  background: #fff;
  box-shadow: none;
}

.test-shell[data-test-id="original-hidden-compliments"] #restartBtn {
  grid-column: 2;
  grid-row: 2;
  width: 52px;
  min-height: 52px;
  color: #28231f;
  border: 2px solid #332d28;
  background: #fff;
}

@media (max-width: 430px) {
  .test-shell[data-test-id="original-hidden-compliments"] .result-box.compliment-diary-active {
    padding: 20px 12px 24px;
  }

  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-result {
    margin-inline: 1px;
  }

  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid {
    gap: 12px 8px;
    padding: 18px 11px 23px;
  }

  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article {
    min-height: 138px;
    padding: 27px 10px 16px;
  }

  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article > p {
    font-size: 12.75px;
    line-height: 1.55;
  }
}

@media (max-width: 340px) {
  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid {
    grid-template-columns: 1fr;
  }

  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article {
    min-height: 120px;
  }
}

@media (forced-colors: active) {
  .test-shell[data-test-id="original-hidden-compliments"] .result-box.compliment-diary-active,
  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-result,
  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article {
    border-color: CanvasText;
    color: CanvasText;
    background: Canvas;
    box-shadow: none;
    transform: none;
  }

  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article::after {
    display: none;
  }
}

/* Hidden compliment diary — tactile stationery board */
.compliment-diary-result[hidden] {
  display: none;
}

.test-shell[data-test-id="original-hidden-compliments"] .result-box.compliment-diary-active {
  --memo-ink: #302d29;
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 18px 24px;
  border: 1px solid rgba(74, 61, 47, 0.14);
  border-radius: 20px;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.28), transparent 31%),
    repeating-linear-gradient(0deg, rgba(92, 76, 58, 0.018) 0 1px, transparent 1px 5px),
    #f6f1e8;
  box-shadow: 0 18px 44px rgba(69, 53, 37, 0.1);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-active > .eyebrow {
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1px 5px;
  border: 0;
  border-bottom: 1px solid rgba(74, 61, 47, 0.28);
  border-radius: 0;
  color: #6d645b;
  background: transparent;
  box-shadow: none;
  transform: none;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.055em;
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-active > h3 {
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--memo-ink);
  font-family: var(--font-body);
  font-size: clamp(29px, 6.4vw, 35px);
  font-weight: 850;
  line-height: 1.14;
  letter-spacing: -0.047em;
  text-align: center;
  text-wrap: balance;
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-active > p:not(.eyebrow) {
  max-width: 560px;
  margin: 12px auto 0;
  color: #665e55;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.62;
  letter-spacing: -0.018em;
  text-align: center;
  text-wrap: pretty;
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-result {
  position: relative;
  width: min(100%, 560px);
  margin: 38px auto 8px;
  padding: 0;
  border: 1px solid rgba(67, 53, 38, 0.2);
  border-radius: 12px;
  background:
    repeating-linear-gradient(2deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(92deg, rgba(82, 63, 40, 0.035) 0 1px, transparent 1px 12px),
    #d8c7ad;
  box-shadow: 0 12px 28px rgba(67, 52, 35, 0.13);
  transform: none;
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-result h4 {
  position: absolute;
  top: -17px;
  left: 50%;
  z-index: 30;
  width: max-content;
  max-width: calc(100% - 28px);
  margin: 0;
  padding: 8px 14px 7px;
  border: 0;
  border-radius: 3px;
  color: #514a43;
  background: #fff9ee;
  box-shadow: 0 5px 12px rgba(68, 53, 37, 0.14);
  transform: translateX(-50%) rotate(-0.8deg);
  font: 700 11.5px/1.25 var(--font-body);
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-result h4::before {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 48px;
  height: 13px;
  background:
    repeating-linear-gradient(90deg, rgba(104, 87, 67, 0.045) 0 1px, transparent 1px 6px),
    rgba(231, 220, 195, 0.85);
  box-shadow: 0 1px 2px rgba(70, 56, 40, 0.08);
  transform: translateX(-50%) rotate(1.5deg);
  content: "";
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: none;
  grid-auto-rows: auto;
  column-gap: 0;
  row-gap: 7px;
  align-items: start;
  min-height: 0;
  padding: 45px 12px 18px;
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article {
  --note-fill: #efc4bc;
  position: relative;
  min-width: 0;
  min-height: 68px;
  padding: 23px 11px 8px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: visible;
  border: 1px solid rgba(65, 51, 39, 0.09);
  border-radius: 3px;
  color: var(--memo-ink);
  background-color: var(--note-fill);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0 14px, rgba(255, 255, 255, 0.035) 27px, transparent 28px),
    radial-gradient(circle at 18% 23%, rgba(255, 255, 255, 0.1) 0 0.7px, transparent 0.9px),
    radial-gradient(circle at 74% 67%, rgba(74, 58, 42, 0.045) 0 0.6px, transparent 0.9px);
  background-size: auto, 13px 15px, 17px 19px;
  box-shadow:
    0 1px 1px rgba(58, 45, 31, 0.12),
    0 9px 12px -10px rgba(58, 45, 31, 0.58);
  text-align: left;
  isolation: isolate;
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article::before,
.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article::after {
  position: absolute;
  inset: auto;
  z-index: 3;
  width: auto;
  height: auto;
  display: none;
  border: 0;
  border-radius: 0;
  background: none;
  filter: none;
  transform: none;
  content: "";
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article:nth-child(1)::after,
.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article:nth-child(4)::after,
.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article:nth-child(6)::after {
  display: none;
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article > span {
  position: absolute;
  top: 9px;
  right: 10px;
  left: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: rgba(48, 45, 41, 0.48);
  background: transparent;
  font: 600 9px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.025em;
  opacity: 1;
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article > p {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;
  color: var(--memo-ink);
  font: 625 13px/1.42 var(--font-body);
  letter-spacing: -0.02em;
  text-align: left;
  text-wrap: pretty;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--compact > p {
  font-size: 12px;
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--taped-blush {
  --note-fill: #efc4bc;
  z-index: 7;
  grid-column: 1 / 8;
  grid-row: auto;
  border-radius: 3px 5px 3px 2px;
  transform: rotate(-1.8deg) translate(2px, 2px);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--taped-blush::before,
.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--taped-apricot::before {
  top: -7px;
  left: 50%;
  width: 52px;
  height: 14px;
  display: block;
  background:
    repeating-linear-gradient(90deg, rgba(104, 87, 67, 0.04) 0 1px, transparent 1px 6px),
    rgba(231, 220, 195, 0.84);
  box-shadow: 0 1px 2px rgba(70, 56, 40, 0.1);
  transform: translateX(-50%) rotate(-4deg);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--dogear-butter {
  --note-fill: #f4e89a;
  z-index: 6;
  grid-column: 8 / 13;
  grid-row: auto;
  border-radius: 2px;
  clip-path: polygon(0 0, calc(100% - 17px) 0, 100% 17px, 100% 100%, 0 100%);
  filter: drop-shadow(0 7px 7px rgba(58, 45, 31, 0.16));
  transform: rotate(1.2deg) translate(-3px, 7px);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--dogear-butter::after {
  top: 0;
  right: 0;
  width: 17px;
  height: 17px;
  display: block;
  background: linear-gradient(225deg, rgba(255, 255, 255, 0.64) 0 48%, rgba(96, 78, 50, 0.11) 50% 53%, transparent 55%);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--torn-mint {
  --note-fill: #bfdcc7;
  z-index: 8;
  grid-column: 1 / 6;
  grid-row: auto;
  padding-bottom: 15px;
  border-radius: 2px;
  clip-path: polygon(0 0, 100% 0, 100% 94%, 94% 98%, 88% 95%, 80% 100%, 72% 96%, 64% 99%, 55% 95%, 45% 100%, 35% 96%, 25% 99%, 14% 95%, 6% 98%, 0 94%);
  filter: drop-shadow(0 7px 7px rgba(58, 45, 31, 0.15));
  transform: rotate(1.6deg) translate(2px, 2px);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--ruled-lilac {
  --note-fill: #d1c5e1;
  z-index: 9;
  grid-column: 6 / 13;
  grid-row: auto;
  padding-left: 18px;
  background-image:
    linear-gradient(90deg, transparent 0 27px, rgba(188, 101, 118, 0.16) 27px 28px, transparent 28px),
    repeating-linear-gradient(180deg, transparent 0 26px, rgba(92, 75, 110, 0.13) 26px 27px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.23) 0 14px, transparent 27px),
    radial-gradient(circle at 18% 23%, rgba(255, 255, 255, 0.1) 0 0.7px, transparent 0.9px);
  background-size: auto, auto, auto, 13px 15px;
  transform: rotate(-1deg) translate(-2px, 3px);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--folded-powder {
  --note-fill: #bdd7df;
  z-index: 6;
  grid-column: 1 / 8;
  grid-row: auto;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
  filter: drop-shadow(0 7px 7px rgba(58, 45, 31, 0.14));
  transform: rotate(-0.7deg) translate(2px, 2px);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--folded-powder::after {
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  display: block;
  background: linear-gradient(315deg, rgba(255, 255, 255, 0.66) 0 48%, rgba(70, 58, 47, 0.1) 50% 53%, transparent 55%);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--taped-apricot {
  --note-fill: #eecba5;
  z-index: 7;
  grid-column: 8 / 13;
  grid-row: auto;
  border-radius: 4px 2px 4px 3px;
  transform: rotate(1.5deg) translate(-3px, 3px);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--taped-apricot::before {
  transform: translateX(-50%) rotate(4deg);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--receipt-pink {
  --note-fill: #e7c0cf;
  z-index: 8;
  grid-column: 1 / 6;
  grid-row: auto;
  padding-block: 31px 15px;
  border: 0;
  border-radius: 0;
  clip-path: polygon(0 5px, 5% 0, 10% 5px, 15% 0, 20% 5px, 25% 0, 30% 5px, 35% 0, 40% 5px, 45% 0, 50% 5px, 55% 0, 60% 5px, 65% 0, 70% 5px, 75% 0, 80% 5px, 85% 0, 90% 5px, 95% 0, 100% 5px, 100% calc(100% - 5px), 95% 100%, 90% calc(100% - 5px), 85% 100%, 80% calc(100% - 5px), 75% 100%, 70% calc(100% - 5px), 65% 100%, 60% calc(100% - 5px), 55% 100%, 50% calc(100% - 5px), 45% 100%, 40% calc(100% - 5px), 35% 100%, 30% calc(100% - 5px), 25% 100%, 20% calc(100% - 5px), 15% 100%, 10% calc(100% - 5px), 5% 100%, 0 calc(100% - 5px));
  filter: drop-shadow(0 7px 7px rgba(58, 45, 31, 0.15));
  transform: rotate(-1.5deg) translate(2px, 2px);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--index-sage {
  --note-fill: #ccd7a7;
  z-index: 7;
  grid-column: 6 / 13;
  grid-row: auto;
  margin-top: 7px;
  border-radius: 3px;
  transform: rotate(1.1deg) translate(-1px, 0);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--index-sage::before {
  top: -11px;
  left: 16px;
  width: 54px;
  height: 14px;
  display: block;
  border: 1px solid rgba(65, 51, 39, 0.08);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  background: var(--note-fill);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-active > .action-row {
  width: min(100%, 560px);
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
}

.test-shell[data-test-id="original-hidden-compliments"] .result-share-cta {
  grid-column: 1 / -1;
  grid-row: 1;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid #302d29;
  border-radius: 12px;
  color: #fff;
  background: #302d29;
  box-shadow: 0 4px 10px rgba(52, 43, 35, 0.11);
}

.test-shell[data-test-id="original-hidden-compliments"] .result-share-cta .result-share-label {
  display: inline;
}

.test-shell[data-test-id="original-hidden-compliments"] .result-share-cta:hover {
  border-color: #403a35;
  color: #fff;
  background: #403a35;
}

.test-shell[data-test-id="original-hidden-compliments"] #saveResultBtn,
.test-shell[data-test-id="original-hidden-compliments"] #restartBtn {
  min-height: 48px;
  border: 1px solid #c8bfb2;
  border-radius: 12px;
  color: #3f3933;
  background: #fffdf8;
  box-shadow: none;
}

.test-shell[data-test-id="original-hidden-compliments"] #saveResultBtn {
  grid-column: 1;
  grid-row: 2;
}

.test-shell[data-test-id="original-hidden-compliments"] #restartBtn {
  grid-column: 2;
  grid-row: 2;
  width: 48px;
}

@media (max-width: 430px) {
  .test-shell[data-test-id="original-hidden-compliments"] .result-box.compliment-diary-active {
    padding: 24px 12px 22px;
    border-radius: 18px;
  }

  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-active > h3 {
    font-size: clamp(27px, 8vw, 31px);
  }

  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-active > p:not(.eyebrow) {
    font-size: 13px;
  }

  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-result {
    margin-inline: auto;
  }

  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid {
    grid-template-rows: none;
    grid-auto-rows: auto;
    padding: 43px 10px 17px;
  }

  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article {
    min-height: 62px;
    padding: 22px 10px 8px;
  }

  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article > p {
    font-size: 12.5px;
    font-weight: 620;
    line-height: 1.42;
  }

  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--compact > p {
    font-size: 11.75px;
  }
}

@media (max-width: 340px) {
  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid {
    min-height: 0;
    padding: 44px 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 7px;
  }

  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article {
    width: 94%;
    min-height: 0;
    flex: 0 0 auto;
    padding: 22px 12px 8px;
  }

  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article:nth-child(even) {
    align-self: flex-end;
  }

  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article > p,
  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--compact > p {
    font-size: 13px;
  }
}

@media (forced-colors: active) {
  .test-shell[data-test-id="original-hidden-compliments"] .result-box.compliment-diary-active,
  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-result,
  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article {
    border: 1px solid CanvasText;
    color: CanvasText;
    background: Canvas;
    box-shadow: none;
    filter: none;
    transform: none;
    clip-path: none;
  }

  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article::before,
  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article::after,
  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-result h4::before {
    display: none;
  }
}

/* Palm reading composition details used by the custom application markup. */
.palm-hand-note {
  padding: 15px 16px;
  border-left: 3px solid var(--palm-gold);
  border-radius: 4px 10px 10px 4px;
  background: #fff8eb;
}

.palm-hand-note strong,
.palm-hand-note b {
  color: #65472e;
}

.palm-hand-note p {
  margin: 5px 0 0;
  color: #76655b;
  font-size: 13px;
  line-height: 1.65;
}

.palm-hand-option span,
.palm-hand-option small {
  display: block;
}

.palm-hand-option small {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 650;
  opacity: 0.78;
}

.palm-photo-placeholder {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 3;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.72);
}

.palm-photo-placeholder strong,
.palm-photo-placeholder span {
  display: block;
}

.palm-photo-placeholder strong {
  font-size: 15px;
}

.palm-photo-placeholder span {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.5;
}

.palm-photo-label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  color: #fff;
  background: rgba(26, 76, 68, 0.9);
  font-size: 11px;
  font-weight: 800;
}

.palm-photo-label svg,
.palm-photo-label [data-lucide] {
  width: 14px;
  height: 14px;
}

.palm-error,
.palm-privacy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.palm-error p,
.palm-privacy p {
  min-width: 0;
  margin: 0;
}

.palm-error svg,
.palm-privacy svg,
.palm-error [data-lucide],
.palm-privacy [data-lucide] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.palm-error svg,
.palm-error [data-lucide] {
  color: #a54c5f;
}

.palm-privacy svg,
.palm-privacy [data-lucide] {
  color: var(--palm-gold);
}

.palm-result-block {
  display: grid;
  gap: 12px;
}

.palm-section-heading {
  display: grid;
  justify-items: start;
  gap: 7px;
}

.palm-section-heading h4 {
  margin: 0;
  color: #50362b;
  font-family: "Cafe24 Ssurround", var(--font-body);
  font-size: clamp(20px, 5.5vw, 26px);
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.palm-feature-grid > article > span,
.palm-line-card > div > span {
  color: var(--palm-rose-deep);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.palm-feature-grid h5,
.palm-line-card h5 {
  margin: 5px 0 0;
  color: #50362b;
  font-family: "Cafe24 Ssurround", var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.palm-line-card > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.palm-line-card > div h5 {
  margin: 0;
}

.palm-line-card.is-unavailable {
  border-top-color: #cfc2ba;
  background: #fbf8f6;
  box-shadow: none;
}

.palm-line-card .palm-section-state {
  min-height: 0;
  padding: 0;
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.7;
}

.palm-luck-card {
  display: grid;
  gap: 15px;
}

.palm-luck-symbol {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid #ddbd86;
  border-radius: 50%;
  color: #714e29;
  background: #f4dfb8;
  font-family: "Cafe24 Ssurround", var(--font-body);
  font-size: 23px;
  font-weight: 800;
}

.palm-result-meta > span {
  gap: 5px;
}

.palm-result-meta b {
  color: #28574f;
}

.palm-result-hero .palm-character-wrap {
  width: min(36vw, 145px);
  justify-self: center;
}

.palm-loading .palm-character-wrap {
  width: min(68vw, 260px);
  background: #fff7f3;
}

@media (min-width: 680px) {
  .palm-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(210px, 0.85fr);
    align-items: center;
    text-align: left;
  }

  .palm-hero__copy {
    justify-items: start;
  }

  .palm-result-hero {
    grid-template-columns: 170px minmax(0, 1fr);
    align-items: center;
  }

  .palm-result-hero .palm-character-wrap {
    width: 170px;
    justify-self: start;
  }

  .palm-result-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .palm-luck-card {
    grid-template-columns: 66px minmax(0, 1fr);
    align-items: start;
  }
}

/* --------------------------------------------------------------------------
   Darakbang palm reading — quiet, reading-first refinement
   -------------------------------------------------------------------------- */

.palm-reading {
  --palm-ui-accent: #e9627b;
  --palm-ui-accent-soft: #fff0f3;
  --palm-ui-ink: #242120;
  --palm-ui-body: #5f5b59;
  --palm-ui-muted: #85817f;
  --palm-ui-line: #e8e6e4;
  --palm-ui-page: #f4f5f6;
  width: 100%;
  max-width: 780px;
  padding: 20px;
  gap: 20px;
  color: var(--palm-ui-ink);
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

.palm-reading .custom-app-banner,
.palm-reading > img:first-child {
  border: 0;
  border-radius: 14px;
  background: #f4f1ef;
}

/* Intro: the copy carries the page without a decorative character. */
.palm-intro .palm-character-wrap,
.palm-result .palm-character-wrap {
  display: none;
}

.palm-hero {
  padding: 10px 2px 4px;
  display: block;
  border: 0;
  border-radius: 0;
  background: #fff;
  text-align: left;
}

.palm-hero__copy {
  justify-items: stretch;
  gap: 14px;
}

.palm-hero__copy h3 {
  max-width: 13em;
  font-size: clamp(29px, 8vw, 39px);
  line-height: 1.28;
  letter-spacing: -0.045em;
}

.palm-hero__copy p,
.palm-stage-head p,
.palm-loading p,
.palm-result-hero p,
.palm-retake-panel p {
  color: var(--palm-ui-body);
  font-size: 14px;
  line-height: 1.8;
}

.palm-premium-badge,
.palm-step,
.palm-section-state,
.palm-result-meta > * {
  min-height: 0;
  padding: 0;
  justify-content: flex-start;
  border: 0;
  border-radius: 0;
  color: var(--palm-ui-accent);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.055em;
}

.palm-intro .palm-tip-grid {
  padding: 16px;
  gap: 10px;
  border: 1px solid var(--palm-ui-line);
  border-radius: 10px;
  background: #f8f8f8;
}

.palm-intro .palm-tip-grid > * {
  color: #45413f;
  font-size: 14px;
  line-height: 1.6;
}

.palm-intro .palm-tip-grid > *::before {
  width: 5px;
  height: 5px;
  margin-top: 9px;
  background: var(--palm-ui-accent);
}

.palm-hand-note {
  padding: 18px;
  border: 1px solid var(--palm-ui-line);
  border-left-width: 1px;
  border-radius: 10px;
  background: #fff;
}

.palm-hand-note strong,
.palm-hand-note b {
  color: var(--palm-ui-ink);
  font-size: 15px;
}

.palm-hand-note p {
  margin-top: 8px;
  color: var(--palm-ui-body);
  font-size: 13px;
  line-height: 1.75;
}

.palm-primary,
.palm-secondary {
  min-height: 54px;
  border-radius: 10px;
  box-shadow: none;
}

.palm-primary {
  color: #fff;
  border-color: var(--palm-ui-accent);
  background: var(--palm-ui-accent);
}

.palm-primary:hover:not(:disabled) {
  border-color: #d9556e;
  background: #d9556e;
}

.palm-secondary {
  color: #3f3b39;
  border-color: #dcd9d7;
  background: #fff;
}

.palm-secondary:hover:not(:disabled) {
  border-color: #c9c5c2;
  background: #f7f7f7;
}

/* Photo stage: a clear guide within the existing warm brand system. */
.palm-stage {
  padding: 0;
  gap: 18px;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.palm-stage-head {
  gap: 9px;
}

.palm-stage-head h3 {
  font-size: clamp(25px, 7vw, 31px);
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.palm-hand-toggle {
  padding: 4px;
  gap: 4px;
  border: 0;
  border-radius: 10px;
  background: #f1f1f1;
}

.palm-hand-option {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  color: #777270;
}

.palm-hand-option.active,
.palm-hand-option[aria-pressed="true"] {
  color: var(--palm-ui-ink);
  border: 0;
  background: #fff;
  box-shadow: 0 1px 4px rgba(27, 25, 24, 0.1);
}

.palm-capture-guide {
  padding: 16px;
  display: grid;
  gap: 12px;
  border: 1px solid var(--palm-ui-line);
  border-radius: 11px;
  background: #f7f6f5;
}

.palm-capture-guide h4 {
  margin: 0;
  color: var(--palm-ui-ink);
  font-family: "Cafe24 Ssurround", var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.palm-capture-checks {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
}

.palm-capture-checks li {
  padding: 7px 10px;
  border: 1px solid #dfdcda;
  border-radius: 999px;
  color: #615c59;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  word-break: keep-all;
}

.palm-photo-frame {
  aspect-ratio: 4 / 5;
  border: 0;
  border-radius: 14px;
  background: #191919;
  box-shadow: none;
}

.palm-upload-preview,
.palm-photo-frame > img,
.palm-upload-preview img {
  aspect-ratio: 4 / 5;
  object-fit: contain;
}

.palm-guide-overlay {
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 12px;
  background: transparent;
}

.palm-guide-palm {
  width: 78%;
  height: 82%;
  max-width: none;
  color: rgba(255, 255, 255, 0.94);
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.34));
}

.palm-photo-placeholder {
  right: 24px;
  bottom: 22px;
  left: 24px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.72);
}

.palm-photo-placeholder strong {
  font-size: 15px;
  line-height: 1.5;
}

.palm-photo-placeholder span {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.55;
}

.palm-photo-label {
  border-radius: 8px;
  background: rgba(30, 30, 30, 0.86);
}

.palm-upload-option {
  min-height: 112px;
  border: 1px solid #dfdcda;
  border-radius: 10px;
  background: #fff;
}

.palm-upload-option:hover:not(:disabled):not([aria-disabled="true"]) {
  color: var(--palm-ui-ink);
  border-color: #d39aa5;
  background: #fff7f8;
}

.palm-upload-option svg,
.palm-upload-option [data-lucide] {
  width: 26px;
  height: 26px;
  color: var(--palm-ui-accent);
}

.palm-tips {
  padding: 16px;
  color: var(--palm-ui-body);
  border: 1px solid var(--palm-ui-line);
  border-radius: 10px;
  background: #f8f8f8;
}

.palm-tips h4 {
  color: var(--palm-ui-ink);
  font-size: 16px;
}

.palm-stage .palm-tip-grid {
  gap: 8px;
}

.palm-stage .palm-tip-grid > * {
  color: var(--palm-ui-body);
}

.palm-stage .palm-tip-grid > *::before {
  width: 5px;
  height: 5px;
  margin-top: 8px;
  background: #8d8885;
}

.palm-privacy {
  padding: 14px 15px;
  color: #6c6764;
  border: 1px solid var(--palm-ui-line);
  border-left-width: 1px;
  border-radius: 9px;
  background: #fafafa;
}

.palm-privacy strong {
  color: #4b4745;
}

.palm-privacy svg,
.palm-privacy [data-lucide] {
  color: #777270;
}

/* Loading: the only palm-reading view that uses Undambi. */
.palm-loading {
  position: relative;
  min-height: clamp(560px, 78svh, 760px);
  padding: 70px 22px 64px;
  place-content: center;
  justify-items: center;
  gap: 16px;
  border: 0;
  border-radius: 14px;
  background: #f4f5fa;
  box-shadow: none;
  text-align: center;
}

.palm-loading .palm-character-wrap {
  position: relative;
  width: min(62vw, 228px);
  margin: 36px auto 10px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.palm-loading .palm-character-wrap::before {
  position: absolute;
  top: -44px;
  left: 50%;
  z-index: 3;
  min-width: 110px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #777b83;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  content: "어디보자…";
  transform: translateX(-50%);
}

.palm-loading .palm-character-wrap::after {
  position: absolute;
  top: -12px;
  left: 50%;
  z-index: 2;
  width: 14px;
  height: 14px;
  background: #fff;
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.palm-loading .palm-loading-orbit,
.palm-loading .palm-character-wrap > .palm-loading-orbit {
  width: 100%;
}

.palm-loading-orbit::before,
.palm-loading-orbit::after {
  display: none;
}

.palm-loading-orbit .palm-character {
  width: 100%;
  height: 100%;
  animation: palm-character-float 2.8s ease-in-out infinite;
}

.palm-loading > .palm-step {
  color: #8a8e96;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.palm-loading h3 {
  max-width: 14em;
  color: var(--palm-ui-accent);
  font-size: clamp(23px, 6.5vw, 29px);
  line-height: 1.4;
  letter-spacing: -0.04em;
}

.palm-loading p {
  max-width: 31em;
  color: #737780;
  font-size: 13px;
  line-height: 1.7;
}

.palm-progress-track {
  width: min(100%, 360px);
  height: 9px;
  margin-top: 8px;
  border: 0;
  background: #fff;
}

.palm-progress-fill {
  width: 58%;
  background: var(--palm-ui-accent);
  transform: none;
  animation: palm-progress-grow 2.2s ease-in-out infinite alternate;
}

.palm-loading > strong {
  max-width: 30em;
  color: #777b83;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.65;
}

/* Result: plain white reading sections on a quiet gray page. */
.palm-result {
  padding: 12px;
  gap: 12px;
  border: 0;
  border-radius: 0;
  background: var(--palm-ui-page);
  box-shadow: none;
}

.palm-result-hero,
.palm-result-block,
.palm-luck-card {
  padding: 20px 18px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

.palm-result-hero {
  display: block;
  text-align: left;
}

.palm-result-hero > div:not(.palm-character-wrap) {
  display: grid;
  gap: 9px;
}

.palm-result-hero h3 {
  color: var(--palm-ui-ink);
  font-size: clamp(23px, 6.6vw, 30px);
  line-height: 1.38;
  letter-spacing: -0.04em;
}

.palm-result-hero p {
  color: #565250;
  font-size: 14px;
  line-height: 1.9;
}

.palm-result-meta {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  border-radius: 10px;
  background: #fff;
}

.palm-result-meta > * {
  gap: 7px;
  color: #706b68;
  font-size: 12px;
  letter-spacing: 0;
}

.palm-result-meta b {
  color: #35312f;
}

.palm-result-hero .palm-result-meta {
  margin-top: 6px;
  padding: 14px 0 0;
  border-top: 1px solid var(--palm-ui-line);
  border-radius: 0;
  background: transparent;
}

.palm-result-block {
  gap: 18px;
}

.palm-section-heading {
  gap: 6px;
}

.palm-section-heading h4,
.palm-luck-card h4 {
  color: var(--palm-ui-ink);
  font-size: clamp(19px, 5.4vw, 23px);
  line-height: 1.45;
  letter-spacing: -0.035em;
}

.palm-result .palm-feature-grid,
.palm-result .palm-result-section-grid {
  grid-template-columns: 1fr;
  gap: 0;
}

.palm-feature-grid > *,
.palm-line-card,
.palm-line-card:nth-child(3n + 2),
.palm-line-card:nth-child(3n) {
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid var(--palm-ui-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.palm-feature-grid > * + *,
.palm-line-card + .palm-line-card {
  padding-top: 18px;
}

.palm-feature-grid > *:last-child,
.palm-line-card:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.palm-feature-grid > article > span,
.palm-line-card > div > span {
  display: none;
}

.palm-feature-grid h5,
.palm-line-card h5 {
  margin: 0;
  color: #383432;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.025em;
}

.palm-feature-grid p,
.palm-line-card p,
.palm-luck-card p,
.palm-line-card dd,
.palm-line-card li {
  margin-top: 8px;
  color: #5c5856;
  font-size: 14px;
  line-height: 1.9;
}

.palm-line-card > div {
  display: block;
}

.palm-line-card.is-unavailable {
  background: transparent;
}

.palm-line-card .palm-section-state {
  color: #777270;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.8;
}

.palm-luck-card {
  display: block;
}

.palm-luck-symbol {
  display: none;
}

.palm-luck-card > div {
  display: grid;
  gap: 8px;
}

.palm-action-list {
  margin-top: 10px;
  gap: 0;
}

.palm-action-list > * {
  padding: 12px 0;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  border-top: 1px solid var(--palm-ui-line);
  color: #55514f;
  font-size: 13px;
  line-height: 1.75;
}

.palm-action-list > *::before {
  width: 20px;
  height: auto;
  border-radius: 0;
  color: var(--palm-ui-accent);
  background: transparent;
  font-size: 11px;
  line-height: 1.75;
  content: counter(palm-action);
}

.palm-result-actions {
  padding-top: 2px;
}

@media (min-width: 480px) {
  .palm-result .palm-feature-grid,
  .palm-result .palm-result-section-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 680px) {
  .palm-hero {
    display: block;
    text-align: left;
  }

  .palm-hero__copy {
    justify-items: stretch;
  }

  .palm-result-hero {
    display: block;
  }

  .palm-result-section-grid {
    grid-template-columns: 1fr;
  }

  .palm-luck-card {
    display: block;
  }

  .palm-result-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .palm-reading {
    padding: 16px;
    gap: 18px;
    border-radius: 0;
  }

  .palm-result {
    padding: 8px;
    gap: 8px;
  }

  .palm-result-hero,
  .palm-result-block,
  .palm-luck-card {
    padding: 19px 16px;
    border-radius: 8px;
  }

  .palm-capture-checks {
    gap: 6px;
  }

  .palm-capture-checks li {
    padding: 6px 8px;
    font-size: 10px;
  }

  .palm-loading {
    min-height: max(560px, 76svh);
    padding: 62px 18px 54px;
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .palm-loading-orbit .palm-character {
    animation: none;
  }
}

@keyframes palm-progress-grow {
  from {
    width: 28%;
  }

  to {
    width: 82%;
  }
}

@media (forced-colors: active) {
  .palm-capture-guide,
  .palm-result-hero,
  .palm-result-block,
  .palm-luck-card,
  .palm-result-meta {
    border: 1px solid CanvasText;
  }
}

/* Final cascade for the content-fit compliment memo collage. */
.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: none;
  grid-auto-rows: auto;
  gap: 7px 5px;
  align-items: center;
  min-height: 0;
  padding: 42px 9px 14px;
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article {
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 10px 11px;
  align-items: center;
  justify-content: center;
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article > span {
  display: none;
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article > p,
.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--compact > p {
  font: 670 13.5px/1.3 var(--font-body);
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--taped-blush {
  grid-column: 1 / 8;
  min-height: 56px;
  padding: 10px 11px;
  border-radius: 3px 5px 2px 4px;
  transform: rotate(-1.4deg) translate(2px, 1px);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--receipt-pink {
  grid-column: 1 / 6;
  min-height: 70px;
  padding: 13px 11px;
  border: 0;
  transform: rotate(-1.3deg) translate(1px, 1px);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--round-butter {
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
  filter: drop-shadow(0 6px 4px rgba(57, 43, 30, 0.18));
  transform: rotate(1.2deg) translate(-2px, 2px);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--triangle-mint {
  border-radius: 0;
  transform: rotate(1.4deg) translate(2px, 0);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--star-lilac {
  border-radius: 0;
  transform: rotate(-1.8deg) translate(-2px, 2px);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--oval-powder {
  border-radius: 50%;
  clip-path: ellipse(50% 50% at 50% 50%);
  filter: drop-shadow(0 6px 4px rgba(57, 43, 30, 0.18));
  transform: rotate(-0.8deg) translate(1px, 0);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--speech-apricot {
  border-radius: 15px;
  transform: rotate(1deg) translate(-2px, 0);
}

.test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--hex-sage {
  border-radius: 0;
  transform: rotate(1deg) translate(-1px, 0);
}

@media (max-width: 430px) {
  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid {
    display: grid;
    gap: 6px 4px;
    padding: 41px 7px 12px;
  }

  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article > p,
  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--compact > p {
    font-size: 12.25px;
    line-height: 1.28;
  }
}

@media (max-width: 340px) {
  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid {
    display: grid;
  }

  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article {
    width: 100%;
    min-height: 0;
    padding: 9px 10px;
  }

  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article > p,
  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article.compliment-sticker--compact > p {
    font-size: 11.5px;
  }
}

@media (forced-colors: active) {
  .test-shell[data-test-id="original-hidden-compliments"] .compliment-diary-grid article {
    border: 1px solid CanvasText;
    color: CanvasText;
    background: Canvas;
    box-shadow: none;
    filter: none;
    transform: none;
    clip-path: none;
  }
}

/* Anonymous guestbook */
.test-shell[data-test-id="core-guestbook"] {
  width: min(100%, 940px);
}

.test-shell[data-test-id="core-guestbook"] .test-panel {
  width: 100%;
}

.guestbook-app {
  --guestbook-ink: #332925;
  --guestbook-muted: #796c65;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  color: var(--guestbook-ink);
}

.guestbook-app .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.guestbook-intro {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 7vw, 58px) clamp(22px, 7vw, 58px) 32px;
  border: 1px solid #e5d9ce;
  border-radius: 28px 28px 12px 12px;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 194, 204, 0.48) 0 3px, transparent 4px),
    radial-gradient(circle at 86% 24%, rgba(181, 212, 196, 0.62) 0 3px, transparent 4px),
    radial-gradient(circle at 78% 78%, rgba(206, 190, 234, 0.5) 0 2px, transparent 3px),
    linear-gradient(145deg, #fffaf3, #fffdf9 56%, #f7f0e9);
  box-shadow: 0 16px 34px rgba(83, 57, 43, 0.08);
  text-align: center;
}

.guestbook-intro::before,
.guestbook-intro::after {
  position: absolute;
  content: "";
  width: 88px;
  height: 88px;
  border: 18px solid rgba(240, 161, 179, 0.18);
  border-radius: 50%;
}

.guestbook-intro::before {
  top: -58px;
  left: -42px;
}

.guestbook-intro::after {
  right: -40px;
  bottom: -62px;
  border-color: rgba(148, 190, 168, 0.16);
}

.guestbook-intro > p {
  margin: 0 0 10px;
  color: #b26d7d;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.guestbook-intro h3 {
  margin: 0;
  font-size: clamp(34px, 8vw, 54px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.055em;
  word-break: keep-all;
}

.guestbook-intro > span {
  display: block;
  max-width: 590px;
  margin: 16px auto 0;
  color: var(--guestbook-muted);
  font-size: 15px;
  font-weight: 560;
  line-height: 1.72;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.guestbook-intro-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 22px;
}

.guestbook-intro-tags b {
  padding: 7px 11px;
  border: 1px solid rgba(91, 68, 56, 0.1);
  border-radius: 999px;
  color: #685a53;
  background: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 760;
}

.guestbook-composer {
  position: relative;
  z-index: 2;
  width: calc(100% - clamp(18px, 7vw, 76px));
  margin: -1px auto 26px;
  padding: clamp(18px, 4vw, 26px);
  border: 1px solid #dfd1c2;
  border-radius: 10px 10px 20px 20px;
  background: #fffdf9;
  box-shadow: 0 13px 25px rgba(73, 53, 42, 0.09);
}

.guestbook-composer::before {
  position: absolute;
  top: -9px;
  left: 50%;
  width: 74px;
  height: 18px;
  content: "";
  background: rgba(228, 208, 174, 0.6);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.5);
  transform: translateX(-50%) rotate(-1deg);
}

.guestbook-composer-heading,
.guestbook-composer-footer,
.guestbook-board-heading,
.guestbook-sticker-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.guestbook-composer-heading > div {
  display: grid;
  gap: 3px;
}

.guestbook-composer-heading > div > span,
.guestbook-board-heading > div > span {
  color: #9a7f70;
  font-size: 11px;
  font-weight: 800;
}

.guestbook-composer-heading strong {
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.guestbook-counter {
  color: #978980;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.guestbook-composer textarea {
  display: block;
  width: 100%;
  min-height: 116px;
  margin-top: 14px;
  padding: 15px 16px;
  resize: vertical;
  border: 1px solid #dfd5ca;
  border-radius: 11px;
  outline: 0;
  color: var(--guestbook-ink);
  background:
    repeating-linear-gradient(to bottom, transparent 0 31px, rgba(110, 91, 79, 0.09) 32px),
    #fffaf0;
  font: 590 15px/2.08 var(--font-body);
  letter-spacing: -0.025em;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.guestbook-composer textarea::placeholder {
  color: #aa9c93;
}

.guestbook-composer textarea:focus {
  border-color: #bd8997;
  box-shadow: 0 0 0 4px rgba(189, 137, 151, 0.12);
}

.guestbook-composer textarea:disabled {
  opacity: 0.68;
}

.guestbook-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.guestbook-composer-footer {
  gap: 12px;
  margin-top: 13px;
}

.guestbook-composer-footer > span {
  color: #8b7d74;
  font-size: 11px;
}

.guestbook-composer-footer button,
.guestbook-more {
  min-height: 44px;
  border: 1px solid #3c302c;
  border-radius: 999px;
  color: #fffdf8;
  background: #3c302c;
  font-size: 13px;
  font-weight: 800;
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.guestbook-composer-footer button {
  min-width: 128px;
  padding: 0 18px;
  box-shadow: 0 5px 0 #e6a6b4;
}

.guestbook-composer-footer button:hover:not(:disabled),
.guestbook-more:hover:not(:disabled) {
  transform: translateY(-2px);
}

.guestbook-composer-footer button:disabled,
.guestbook-more:disabled,
.guestbook-board-heading button:disabled {
  cursor: wait;
  opacity: 0.48;
}

.guestbook-error {
  margin: 13px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  color: #934c5e;
  background: #fff0f2;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}

.guestbook-board {
  position: relative;
  padding: clamp(18px, 5vw, 34px);
  overflow: hidden;
  border: 1px solid #cdb99f;
  border-radius: 22px;
  background:
    linear-gradient(rgba(118, 91, 61, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118, 91, 61, 0.045) 1px, transparent 1px),
    #ddc9aa;
  background-size: 18px 18px;
  box-shadow:
    inset 0 0 0 7px rgba(255, 250, 238, 0.28),
    0 18px 34px rgba(69, 48, 34, 0.11);
}

.guestbook-board::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,0.17), transparent 36%, rgba(83,55,35,0.035));
}

.guestbook-board-heading {
  position: relative;
  z-index: 2;
  padding: 1px 2px 20px;
}

.guestbook-board-heading h4 {
  margin: 2px 0 0;
  font-size: clamp(22px, 5vw, 29px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.guestbook-board-heading button {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(70, 51, 39, 0.18);
  border-radius: 50%;
  color: #56443b;
  background: rgba(255, 250, 241, 0.72);
}

.guestbook-board-heading button svg {
  width: 17px;
  height: 17px;
}

.guestbook-grid {
  position: relative;
  z-index: 1;
  columns: 3 220px;
  column-gap: 14px;
}

.guestbook-sticker {
  --sticker-bg: #f6c8cd;
  --sticker-edge: #daa3aa;
  position: relative;
  display: inline-block;
  width: 100%;
  min-width: 0;
  margin: 0 0 14px;
  padding: 15px 16px 17px;
  break-inside: avoid;
  border: 1px solid var(--sticker-edge);
  border-radius: 5px;
  color: #3a302c;
  background: var(--sticker-bg);
  box-shadow: 0 8px 12px rgba(69, 48, 34, 0.17);
  transform: rotate(var(--sticker-tilt, 0deg));
  transform-origin: 50% 10%;
}

.guestbook-sticker::before {
  position: absolute;
  content: "";
}

.guestbook-sticker-meta {
  gap: 9px;
  margin-bottom: 9px;
  color: rgba(55, 43, 38, 0.58);
  font-size: 9px;
  font-weight: 800;
}

.guestbook-sticker-meta span {
  padding: 3px 7px;
  border: 1px solid rgba(74, 56, 48, 0.14);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.34);
}

.guestbook-sticker p {
  margin: 0;
  font-size: 14px;
  font-weight: 680;
  line-height: 1.52;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.guestbook-sticker-0 {
  --sticker-bg: #f3c8cb;
  --sticker-edge: #daa4aa;
  border-radius: 3px 7px 4px 6px;
}

.guestbook-sticker-0::before,
.guestbook-sticker-6::before {
  top: -7px;
  left: 50%;
  width: 54px;
  height: 15px;
  background: rgba(242, 224, 191, 0.72);
  transform: translateX(-50%) rotate(-2deg);
}

.guestbook-sticker-1 {
  --sticker-bg: #f5e79a;
  --sticker-edge: #d6c66f;
  border-radius: 18px 5px 17px 6px;
}

.guestbook-sticker-1::before {
  right: -1px;
  bottom: -1px;
  border-style: solid;
  border-width: 0 0 19px 19px;
  border-color: transparent transparent rgba(185, 166, 76, 0.32) transparent;
}

.guestbook-sticker-2 {
  --sticker-bg: #bfe1cc;
  --sticker-edge: #93bba2;
  border-radius: 4px 4px 17px 4px;
}

.guestbook-sticker-2::before {
  top: -6px;
  right: 18px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #d87d8e;
  box-shadow: 0 2px 3px rgba(72, 44, 44, 0.23);
}

.guestbook-sticker-3 {
  --sticker-bg: #d9cbed;
  --sticker-edge: #ad98ce;
  margin-bottom: 22px;
  border-radius: 19px 19px 5px 19px;
}

.guestbook-sticker-3::before {
  right: 16px;
  bottom: -11px;
  border-width: 12px 0 0 15px;
  border-style: solid;
  border-color: transparent transparent transparent var(--sticker-edge);
  transform: skewX(14deg);
}

.guestbook-sticker-4 {
  --sticker-bg: #bcdde5;
  --sticker-edge: #8fbcc6;
  border-radius: 4px 15px 4px 15px;
  clip-path: polygon(0 8px, 8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px));
}

.guestbook-sticker-5 {
  --sticker-bg: #f2c8a3;
  --sticker-edge: #d8a875;
  border: 3px double var(--sticker-edge);
  border-radius: 9px;
}

.guestbook-sticker-6 {
  --sticker-bg: #efc6dd;
  --sticker-edge: #d89abb;
  border-radius: 26px 5px 26px 5px;
}

.guestbook-sticker-7 {
  --sticker-bg: #cedda7;
  --sticker-edge: #a8bb78;
  border-radius: 6px;
  clip-path: polygon(0 5px, 5px 0, 10px 5px, 15px 0, 20px 5px, 25px 0, 30px 5px, 35px 0, 40px 5px, 45px 0, 50px 5px, 55px 0, 60px 5px, 65px 0, 70px 5px, 75px 0, 80px 5px, 85px 0, 90px 5px, 95px 0, 100px 5px, 105px 0, 110px 5px, 115px 0, 120px 5px, 125px 0, 130px 5px, 135px 0, 140px 5px, 145px 0, 150px 5px, 155px 0, 160px 5px, 165px 0, 170px 5px, 175px 0, 180px 5px, 185px 0, 190px 5px, 195px 0, 200px 5px, 100% 0, 100% 100%, 0 100%);
  padding-top: 20px;
}

.guestbook-sticker-8 {
  --sticker-bg: #f5e7cf;
  --sticker-edge: #d4bb94;
  padding-left: 24px;
  border-radius: 4px 18px 18px 4px;
}

.guestbook-sticker-8::before {
  top: 18px;
  left: 8px;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(85, 65, 50, 0.24);
  border-radius: 50%;
  background: #dfc9a8;
}

.guestbook-sticker-9 {
  --sticker-bg: #cabfe6;
  --sticker-edge: #9f8fca;
  border-radius: 4px;
  background:
    radial-gradient(circle at 0 50%, transparent 0 6px, var(--sticker-bg) 7px) 0 0/100% 24px,
    var(--sticker-bg);
  padding-left: 20px;
}

.guestbook-sticker-10 {
  --sticker-bg: #f4becf;
  --sticker-edge: #d68eaa;
  border-radius: 4px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 27px, rgba(122, 78, 91, 0.08) 28px),
    var(--sticker-bg);
}

.guestbook-sticker-11 {
  --sticker-bg: #c6d7b9;
  --sticker-edge: #99b28a;
  border-radius: 17px 5px 5px 17px;
  box-shadow: inset 7px 0 rgba(255,255,255,0.2), 0 8px 12px rgba(69, 48, 34, 0.17);
}

.guestbook-skeleton {
  min-height: 104px;
  transform: none;
  animation: guestbook-pulse 1.3s ease-in-out infinite alternate;
}

.guestbook-skeleton span {
  display: block;
  width: 72%;
  height: 9px;
  margin: 8px 0;
  border-radius: 99px;
  background: rgba(70, 50, 40, 0.1);
}

.guestbook-skeleton span:first-child {
  width: 34%;
}

.guestbook-skeleton span:last-child {
  width: 54%;
}

.guestbook-empty {
  display: grid;
  min-height: 180px;
  padding: 30px;
  place-content: center;
  break-inside: avoid;
  border: 1px dashed rgba(70, 51, 39, 0.25);
  border-radius: 15px;
  color: #685950;
  background: rgba(255, 250, 241, 0.48);
  text-align: center;
}

.guestbook-empty span {
  margin-top: 6px;
  font-size: 12px;
}

.guestbook-more {
  position: relative;
  z-index: 2;
  display: block;
  width: min(100%, 240px);
  margin: 10px auto 0;
  padding: 0 18px;
  border-color: rgba(62, 46, 38, 0.17);
  color: #4c3d35;
  background: rgba(255, 250, 241, 0.82);
}

@keyframes guestbook-pulse {
  to { opacity: 0.56; }
}

@media (max-width: 620px) {
  .guestbook-intro {
    border-radius: 22px 22px 9px 9px;
  }

  .guestbook-composer {
    width: calc(100% - 18px);
  }

  .guestbook-board {
    padding: 18px 15px 22px;
    border-radius: 17px;
  }

  .guestbook-grid {
    columns: 2 165px;
    column-gap: 10px;
  }

  .guestbook-sticker {
    margin-bottom: 10px;
    padding: 13px 13px 15px;
  }

  .guestbook-sticker p {
    font-size: 13px;
  }
}

@media (max-width: 430px) {
  .guestbook-intro {
    padding: 34px 20px 28px;
  }

  .guestbook-intro h3 {
    font-size: 38px;
  }

  .guestbook-intro > span {
    font-size: 14px;
  }

  .guestbook-composer {
    padding: 19px 16px 17px;
  }

  .guestbook-composer-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .guestbook-composer-footer button {
    width: 100%;
  }

  .guestbook-grid {
    columns: 1;
  }

  .guestbook-sticker {
    margin-bottom: 12px;
    padding: 15px 16px 17px;
  }

  .guestbook-sticker p {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guestbook-skeleton {
    animation: none;
  }

  .guestbook-sticker {
    transform: none;
  }
}

@media (forced-colors: active) {
  .guestbook-intro,
  .guestbook-composer,
  .guestbook-board,
  .guestbook-sticker {
    border: 1px solid CanvasText;
    color: CanvasText;
    background: Canvas;
    box-shadow: none;
    clip-path: none;
  }
}
