:root {
  --paper:#f8f7f2;
  --ink:#242b25;
  --muted:#72766c;
  --coral:#ef6b51;
  --coral-dark:#bd452e;
  --line:#dedfd5;
  --green:#e1e8cf;
  --white:#fffefa;
  --radius:24px;
  --shadow-soft:0 8px 32px #242b2508,0 1px 3px #242b2505;
  font-family:'DM Sans','Noto Sans KR',sans-serif;
  color:var(--ink);
  background:var(--paper);
  font-synthesis:none;
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:30px;
}

body {
  margin:0;
  background:radial-gradient(ellipse at 85% 0%,#e1e8cf38,transparent 42%);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

@view-transition {
  navigation:auto;
}

html:not([data-page=home]) #home-view,
html:not([data-page=create]) #create-view,
html:not([data-page=topics]) #topics-view {
  display:none;
}

#main {
  view-transition-name:page-content;
}

.site-header .brand { view-transition-name:site-brand; }
.site-header nav { view-transition-name:site-navigation; }
.mode-card[data-mode=duo]>strong { view-transition-name:mode-duo; }
.mode-card[data-mode=group]>strong { view-transition-name:mode-group; }
html[data-mode=duo] #mode-caption { view-transition-name:mode-duo; }
html[data-mode=group] #mode-caption { view-transition-name:mode-group; }

html {
  --page-exit:-24px;
  --page-enter:32px;
}

html[data-transition-direction=back] {
  --page-exit:24px;
  --page-enter:-32px;
}

::view-transition-group(*) {
  animation-duration:360ms;
  animation-timing-function:cubic-bezier(.22,1,.36,1);
}

/* Shared elements travel independently; the document background stays still. */
::view-transition-old(root),::view-transition-new(root) { animation:none; }
::view-transition-old(site-brand),::view-transition-old(site-navigation) { animation:none; opacity:0; }
::view-transition-new(site-brand),::view-transition-new(site-navigation) { animation:none; }
::view-transition-group(mode-duo),::view-transition-group(mode-group) { z-index:2; }
::view-transition-old(mode-duo),::view-transition-old(mode-group) { animation:160ms ease-out both shared-out; }
::view-transition-new(mode-duo),::view-transition-new(mode-group) { animation:260ms 70ms ease-out both shared-in; }

::view-transition-old(page-content),::view-transition-new(page-content) {
  height:100%;
  object-fit:contain;
  object-position:top left;
  mix-blend-mode:normal;
}
::view-transition-old(page-content) {
  animation:180ms ease-out both page-out;
}

::view-transition-new(page-content) {
  animation:360ms cubic-bezier(.22,1,.36,1) both page-in;
}

@keyframes page-out {
  to { opacity:0; transform:translateX(var(--page-exit)); }
}

@keyframes page-in {
  from { opacity:0; transform:translateX(var(--page-enter)); }
}
@keyframes shared-out { to { opacity:0; } }
@keyframes shared-in { from { opacity:0; } }

#create-view,#topics-view {
  min-height:calc(100vh - 185px);
  padding-bottom:70px;
}

.create-intro,.topics-back {
  padding-top:35px;
}

#topics-view .topics-section {
  padding-top:40px;
}

#topics-title {
  font-size:clamp(25px,4vw,36px);
  letter-spacing:-1.3px;
  line-height:1.45;
  margin:0;
}

.create-intro .eyebrow {
  margin-top:40px;
  color:var(--muted);
}

.create-intro h1 {
  font-size:clamp(30px,5vw,52px);
  letter-spacing:-1.8px;
  line-height:1.35;
  margin:18px 0 14px;
}

.create-intro>p:last-child {
  font-size:14px;
  color:var(--muted);
  line-height:1.8;
}

button,input {
  font:inherit;
}

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

button,a {
  touch-action:manipulation;
}

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

button {
  cursor:pointer;
}

button:disabled {
  cursor:wait;
  opacity:.55;
}

button:focus-visible,a:focus-visible,input:focus-visible {
  outline:3px solid var(--coral-dark);
  outline-offset:5px;
}

button {
  color:inherit;
}

h1,h2,h3,p {
  margin:0;
}

button {
  border:0;
}

button svg {
  pointer-events:none;
}

[hidden] {
  display:none!important;
}

.wrap {
  width:min(1180px,calc(100% - 96px));
  margin-inline:auto;
}

.skip-link {
  position:absolute;
  left:20px;
  top:-100px;
  z-index:20;
  background:var(--ink);
  color:white;
  padding:15px;
}

.skip-link:focus {
  top:10px;
}

.site-header {
  height:104px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
}

.brand {
  display:inline-flex;
  align-items:center;
  gap:12px;
  font-size:23px;
  font-weight:800;
  letter-spacing:-1.2px;
}

.brand-symbol {
  width:37px;
  height:37px;
  display:block;
  flex-shrink:0;
}

.brand-dot {
  color:var(--coral);
}

nav {
  display:flex;
  align-items:center;
  gap:34px;
  font-size:13px;
  font-weight:600;
}

.nav-cta {
  border:1px solid var(--line);
  background:var(--white);
  padding:12px 18px;
  border-radius:30px;
  transition:background .2s,border-color .2s,box-shadow .2s;
}

.nav-cta:hover {
  background:var(--green);
  border-color:#bbc5aa;
  box-shadow:var(--shadow-soft);
}

.nav-cta span {
  padding-left:16px;
}

.hero {
  min-height:660px;
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  gap:55px;
  padding-block:65px 80px;
}

.eyebrow {
  font-size:11px;
  letter-spacing:1.6px;
  font-weight:700;
  display:flex;
  align-items:center;
  gap:8px;
}

.hero .eyebrow {
  letter-spacing:.1px;
  font-size:13px;
}

.live-dot {
  display:inline-block;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--coral);
}

h1 {
  font-size:clamp(60px,6.7vw,88px);
  line-height:1.18;
  letter-spacing:-6px;
  font-weight:800;
  margin:25px 0 26px;
}

.accent-word {
  position:relative;
  color:var(--coral);
  white-space:nowrap;
}

.accent-word:after {
  content:'';
  position:absolute;
  height:9px;
  bottom:-5px;
  left:0;
  right:0;
  border-top:3px solid var(--coral);
  border-radius:50%;
  transform:rotate(-4deg);
}

.small-spark {
  font-size:28px;
  position:absolute;
  right:-32px;
  top:-9px;
  transform:rotate(15deg);
}

.hero-description {
  font-size:16px;
  line-height:1.95;
  color:var(--muted);
  letter-spacing:-.6px;
}

.hero-description strong {
  font-weight:500;
  color:var(--ink);
}

.button {
  min-height:54px;
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:35px;
  padding:16px 23px;
  font-size:14px;
  font-weight:700;
  border-radius:12px;
  transition:transform .2s,background .2s;
}

.primary {
  background:var(--coral);
  color:#fff;
  box-shadow:0 4px 12px #bd452e20,inset 0 1px 0 #ffffff38;
}

.primary:hover {
  background:#e45f45;
  transform:translateY(-2px);
  box-shadow:0 8px 24px #bd452e30;
}

.hero-button {
  margin-top:30px;
  min-width:250px;
}

.button>span {
  font-size:20px;
}

.hero-facts {
  margin-top:23px;
  display:flex;
  gap:12px;
  font-size:11px;
  color:var(--muted);
}

.hero-facts span+span:before {
  content:'·';
  margin-right:12px;
}

.hero-art {
  position:relative;
  width:100%;
  max-width:510px;
  min-height:490px;
  justify-self:end;
  display:flex;
  align-items:center;
  justify-content:center;
}

.art-note {
  position:absolute;
  top:3px;
  left:16px;
  font-size:13px;
  transform:rotate(-9deg);
  font-weight:600;
}

.art-note:after {
  content:'↴';
  position:absolute;
  top:2px;
  right:-42px;
  font-size:36px;
  transform:rotate(-10deg);
}

.art-spark {
  position:absolute;
  right:-6px;
  top:8px;
  color:var(--coral);
  font-size:65px;
  transform:rotate(10deg);
}

.back-card {
  position:absolute;
  background:#dfe7c8;
  border:1px solid #b9c3a5;
  width:330px;
  height:408px;
  transform:rotate(11deg);
  right:14px;
  top:60px;
  border-radius:22px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:22px;
  font-size:10px;
  letter-spacing:2px;
}

.back-heart {
  font-size:140px;
  align-self:center;
}

.sample-card {
  position:relative;
  background:var(--white);
  width:330px;
  border:1px solid #d2d3c9;
  border-radius:20px;
  padding:22px;
  transform:rotate(-5deg);
  box-shadow:0 24px 60px #343e2514,0 4px 12px #343e2508;
  margin-top:25px;
  margin-right:38px;
  transition:transform .3s;
}

.sample-card:hover {
  transform:rotate(-3deg);
}

.sample-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:11px;
}

.mini-label {
  border:1px solid var(--line);
  border-radius:30px;
  padding:5px 9px;
  font-size:10px;
}

.sample-number {
  font-weight:700;
}

.sample-number span {
  font-weight:400;
  color:#92958a;
}

.travel-art {
  height:135px;
  position:relative;
  overflow:hidden;
  background:#eeeedd;
  border-radius:9px;
  margin:18px 0 16px;
}

.sun {
  position:absolute;
  width:34px;
  height:34px;
  border-radius:50%;
  background:#ed9b5a;
  top:20px;
  right:42px;
}

.cloud {
  position:absolute;
  height:9px;
  width:40px;
  background:#fffdf1;
  border-radius:50%;
}

.cloud-one {
  top:37px;
  left:39px;
}

.cloud-two {
  top:20px;
  left:86px;
  width:30px;
}

.hill {
  position:absolute;
  width:230px;
  height:100px;
  border-radius:50% 50% 0 0;
  bottom:-42px;
}

.hill-back {
  background:#c7d0b1;
  right:-40px;
  transform:rotate(-16deg);
}

.hill-front {
  background:#a8ba90;
  left:-60px;
  transform:rotate(12deg);
}

.suitcase {
  position:absolute;
  top:35px;
  left:108px;
  background:#e58a53;
  width:61px;
  height:71px;
  border:2px solid #5b6147;
  border-radius:10px;
  transform:rotate(11deg);
  box-shadow:5px 4px 0 #c97546;
}

.suitcase:before {
  content:'';
  position:absolute;
  width:24px;
  height:13px;
  border:3px solid #5b6147;
  border-bottom:0;
  left:15px;
  top:-14px;
  border-radius:6px 6px 0 0;
}

.suitcase:after {
  content:'';
  position:absolute;
  left:8px;
  right:8px;
  height:5px;
  border-inline:5px solid #5b6147;
  bottom:-7px;
}

.suitcase i,.suitcase span {
  position:absolute;
  width:2px;
  height:100%;
  background:#ba653d;
  top:0;
  left:11px;
}

.suitcase span {
  left:auto;
  right:11px;
}

.suitcase b {
  position:absolute;
  background:#f4edc8;
  color:#577551;
  width:25px;
  height:25px;
  display:grid;
  place-items:center;
  top:21px;
  left:16px;
  font-size:20px;
  transform:rotate(-22deg);
}

.travel-caption {
  position:absolute;
  font-size:7px;
  letter-spacing:1.5px;
  left:15px;
  bottom:10px;
  color:#3f5438;
}

.sample-category {
  font-size:8px;
  letter-spacing:1.6px;
  color:var(--muted);
  margin-bottom:7px;
}

.sample-card h2 {
  font-size:21px;
  line-height:1.45;
  letter-spacing:-.8px;
}

.sample-options {
  display:grid;
  gap:8px;
  margin-top:18px;
}

.sample-options button {
  display:flex;
  align-items:center;
  gap:10px;
  background:transparent;
  border:1px solid var(--line);
  padding:11px 12px;
  border-radius:8px;
  font-size:11px;
  text-align:left;
  transition:background .2s;
}

.sample-options button>span:first-child {
  font-size:10px;
  width:22px;
  height:22px;
  background:#efeee7;
  border-radius:5px;
  display:grid;
  place-items:center;
}

.sample-options button:hover {
  background:#f2f2e8;
}

.sample-options button[aria-pressed=true] {
  background:#e6edd8;
  border-color:#83926f;
}

.option-mark {
  margin-left:auto;
}

.sample-foot {
  color:var(--muted);
  text-align:center;
  font-size:9px;
  margin-top:14px;
  min-height:14px;
}

.friend-sticker {
  position:absolute;
  right:-8px;
  bottom:0;
  background:#f5df8c;
  box-shadow:0 5px 10px #33330a0a;
  border:1px solid #dbca83;
  transform:rotate(7deg);
  border-radius:50%;
  width:170px;
  height:83px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  font-size:10px;
  line-height:1.7;
}

.friend-sticker strong {
  font-size:12px;
}

.mini-face {
  border:1.5px solid #514d33;
  border-radius:50%;
  font-family:monospace;
  font-size:22px;
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  transform:rotate(90deg);
}

.message-strip {
  background:#e5ead9;
  border-block:1px solid #d9dfcc;
}

.message-strip>.wrap {
  display:flex;
  justify-content:space-between;
  align-items:center;
  min-height:64px;
  font-size:12px;
  letter-spacing:-.2px;
}

.message-strip strong {
  font-weight:600;
}

.message-strip [aria-hidden] {
  font-size:24px;
  color:#6e7c5b;
}

.topics-section {
  padding-block:76px 0;
}

.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:24px;
  margin-bottom:28px;
}

.section-heading .eyebrow {
  font-size:9px;
  color:var(--muted);
  letter-spacing:1.8px;
  margin-bottom:12px;
}

.section-heading h2 {
  font-size:29px;
  letter-spacing:-1.3px;
  line-height:1.45;
}

.section-heading>p {
  font-size:12px;
  color:var(--muted);
  padding-bottom:5px;
}

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

.topic-card {
  border:1px solid #d7ddcb;
  border-radius:18px;
  background:#e7eddd;
  overflow:hidden;
  display:flex;
  min-height:192px;
  position:relative;
  transition:transform .2s,box-shadow .2s;
}

.topic-card:hover {
  transform:translateY(-3px);
  box-shadow:0 8px 22px #2c34200b;
}

.topic-card-button {
  width:100%;
  background:transparent;
  padding:26px;
  text-align:left;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
}

.topic-meta {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:10px;
  color:#526049;
  margin-bottom:15px;
}

.topic-meta>span {
  font-size:8px;
  letter-spacing:1px;
  border:1px solid #bac5ad;
  border-radius:20px;
  padding:3px 7px;
}

.topic-card h3 {
  font-size:26px;
  letter-spacing:-1px;
  margin-bottom:8px;
}

.topic-card p {
  font-size:12px;
  line-height:1.8;
  color:#606c56;
}

.topic-start {
  font-size:12px;
  font-weight:700;
  margin-top:20px;
  display:block;
}

.topic-graphic {
  position:relative;
  width:180px;
  height:140px;
  flex-shrink:0;
  background:#f3f0de;
  border:1px solid #c1c9b0;
  border-radius:50%;
  transform:rotate(-9deg);
  display:flex;
  align-items:center;
  justify-content:center;
}

.topic-graphic:before {
  content:'GO TOGETHER';
  position:absolute;
  top:19px;
  font-size:8px;
  letter-spacing:2px;
  color:#748061;
}

.topic-graphic .suitcase {
  left:58px;
  top:47px;
  transform:rotate(8deg);
}

.topic-graphic:after {
  content:'✳';
  position:absolute;
  right:18px;
  bottom:24px;
  color:#83946b;
  font-size:28px;
}

.topic-arrow {
  height:40px;
  width:40px;
  display:grid;
  place-items:center;
  border:1px solid #bdc9ad;
  border-radius:50%;
  font-size:22px;
  flex-shrink:0;
}

.topic-soon {
  display:flex;
  align-items:center;
  gap:14px;
  padding:21px 0;
  border-bottom:1px solid var(--line);
  font-size:12px;
  color:var(--muted);
}

.soon-icon {
  font-size:23px;
  color:#9d9f92;
}

.soon-label {
  margin-left:auto;
  font-size:8px;
  letter-spacing:1.5px;
}

.how-section {
  padding-block:70px 50px;
}

.hand-arrow {
  font-size:50px;
  color:var(--coral);
  transform:rotate(15deg);
}

.steps {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:45px;
}

.steps article {
  padding:17px 0 10px;
}

.step-number {
  font-size:12px;
  font-weight:600;
  color:#909985;
}

.steps h3 {
  font-size:17px;
  letter-spacing:-.5px;
  margin:15px 0 10px;
}

.steps p {
  font-size:12px;
  color:var(--muted);
  line-height:1.9;
}

.home-guide {
  padding-block:28px 38px;
}

.home-guide h2 {
  font-size:clamp(21px,3vw,28px);
  letter-spacing:-.8px;
  margin:0 0 24px;
}

.home-guide h3 {
  font-size:18px;
  margin:0 0 12px;
}

.home-guide p {
  max-width:75ch;
  color:var(--muted);
  font-size:14px;
  line-height:1.9;
}

.home-guide-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));
  gap:24px;
}

.home-guide-grid article {
  padding:26px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--white);
}

.home-guide .text-link {
  display:inline-block;
  margin:10px 0 0;
}

.home-help details {
  padding:18px 0;
  border-bottom:1px solid var(--line);
}

.home-help summary {
  cursor:pointer;
  font-size:15px;
  font-weight:600;
}

.bottom-note {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:28px;
  padding:34px;
  border-block:1px solid var(--line);
  margin-bottom:40px;
}

.bottom-note>span {
  font-size:44px;
  color:var(--coral);
}

.bottom-note p {
  font-size:14px;
  line-height:1.8;
  color:var(--muted);
}

.bottom-note strong {
  font-size:17px;
  color:var(--ink);
}

.text-link {
  font-size:12px;
  font-weight:700;
  margin-left:25px;
  border-bottom:1px solid var(--ink);
  padding-bottom:5px;
}

.site-footer {
  padding-block:0 30px;
  display:flex;
  align-items:center;
  gap:22px;
  font-size:10px;
  color:var(--muted);
}

.footer-brand {
  font-size:17px;
  color:var(--ink);
}

.footer-sign {
  margin-left:auto;
  font-size:8px;
  letter-spacing:1px;
}

.mobile-only {
  display:none;
}

.topic-loading {
  padding:36px;
  border:1px dashed var(--line);
  border-radius:18px;
  text-align:center;
  font-size:13px;
  color:var(--muted);
}

.loading-dots {
  margin-left:10px;
}

.load-error {
  padding:30px;
  border:1px solid var(--line);
  border-radius:18px;
  font-size:13px;
  line-height:1.9;
}

.load-error button {
  margin-top:14px;
  background:var(--ink);
  color:white;
  padding:10px 16px;
  border-radius:8px;
}

dialog {
  background:var(--white);
  color:var(--ink);
  width:min(480px,calc(100% - 32px));
  max-height:calc(100dvh - 32px);
  border:1px solid var(--line);
  border-radius:24px;
  padding:38px;
  box-shadow:0 24px 100px #20271930;
}

dialog::backdrop {
  background:#252c2466;
  backdrop-filter:blur(5px);
}

.dialog-close {
  position:absolute;
  right:15px;
  top:12px;
  background:transparent;
  font-size:28px;
  width:36px;
  height:36px;
}

.dialog-description {
  margin-top:10px;
  color:var(--muted);
  font-size:13px;
}

dialog .eyebrow {
  font-size:8px;
  margin:10px 0 15px;
  letter-spacing:1px;
}

dialog h2 {
  font-size:23px;
  letter-spacing:-1px;
}

form {
  margin-top:24px;
}

label {
  display:block;
  font-size:12px;
  font-weight:600;
  margin:18px 0 8px;
}

input {
  width:100%;
  min-height:48px;
  border:1px solid #cccfc2;
  border-radius:9px;
  background:var(--paper);
  padding:12px 14px;
  color:var(--ink);
  font-size:14px;
}

input::placeholder {
  color:#898d81;
}

.nickname-meta { display:flex; align-items:start; justify-content:space-between; gap:12px; margin-top:8px; font-size:11px; color:var(--muted); line-height:1.7; }
.nickname-meta>p { flex:1; }
.nickname-meta>span { white-space:nowrap; font-variant-numeric:tabular-nums; }
.nickname-meta[data-state=invalid],.nickname-meta[data-state=error] { color:#ad332b; }
.nickname-meta[data-state=available] { color:#526b3e; }
input[aria-invalid=true] { border-color:#c25e48; }

.field-hint,.privacy-note {
  font-size:11px;
  color:var(--muted);
  line-height:1.8;
  margin-top:8px;
}

.privacy-note {
  margin-top:20px;
  padding:12px;
  background:#f0f2e8;
  border-radius:8px;
}

form>.button {
  width:100%;
  margin-top:18px;
}

.form-error {
  color:#ad332b;
  font-size:12px;
  line-height:1.7;
  margin-top:12px;
  overflow-wrap:anywhere;
}

.toast {
  position:fixed;
  left:50%;
  bottom:30px;
  transform:translateX(-50%);
  border-radius:12px;
  background:var(--ink);
  color:white;
  padding:14px 22px;
  font-size:13px;
  z-index:5;
  max-width:calc(100% - 32px);
  text-align:center;
}

.game-wrap {
  max-width:720px;
  min-height:calc(100vh - 185px);
  padding-block:35px 70px;
}

.back-link {
  font-size:12px;
  color:var(--muted);
}

.game-panel {
  background:var(--white);
  border:1px solid var(--line);
  border-radius:24px;
  padding:36px;
  margin-top:25px;
  box-shadow:var(--shadow-soft);
}

.game-panel .eyebrow {
  color:var(--muted);
  margin-bottom:16px;
}

.game-panel h1 {
  font-size:34px;
  letter-spacing:-1.4px;
  line-height:1.5;
  margin:14px 0;
}

.game-panel h2 {
  font-size:23px;
  line-height:1.6;
  letter-spacing:-.8px;
}

.game-description {
  font-size:14px;
  color:var(--muted);
  line-height:1.9;
  margin:14px 0 22px;
}

.progress-track {
  height:6px;
  border-radius:6px;
  background:#e6eadf;
  margin:18px 0 32px;
  overflow:hidden;
}

.progress-track>span {
  display:block;
  background:var(--coral);
  height:100%;
}

.choice-group {
  margin:26px 0;
  border:0;
  padding:0;
}

.choice-group legend {
  font-size:13px;
  font-weight:700;
  margin-bottom:12px;
}

.answer-options {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.answer-option {
  border:1px solid var(--line);
  border-radius:12px;
  padding:18px 14px;
  background:var(--paper);
  text-align:left;
  line-height:1.6;
  font-size:13px;
}

.answer-option strong {
  display:block;
  font-size:11px;
  margin-bottom:5px;
  color:var(--muted);
}

.answer-option[aria-pressed=true] {
  border-color:#748662;
  background:#e4ecd8;
}

.full-width {
  width:100%;
}

.invite-box {
  margin-top:24px;
  background:#f4f5ee;
  padding:22px;
  border:1px solid var(--line);
  border-radius:18px;
}

.share-preview {
  display:flex;
  align-items:center;
  gap:14px;
  padding:12px;
  margin-bottom:18px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--white);
}

.share-preview img {
  width:104px;
  height:64px;
  object-fit:cover;
  border-radius:7px;
  flex-shrink:0;
}

.share-preview strong,.share-preview small {
  display:block;
  font-size:12px;
  line-height:1.65;
  word-break:keep-all;
}

.share-preview small {
  margin-top:5px;
  font-size:10px;
  color:var(--muted);
}

.invite-box p {
  font-size:12px;
  line-height:1.8;
  color:var(--muted);
  margin-bottom:12px;
}

.secondary {
  background:var(--ink);
  color:white;
  box-shadow:none;
}

.invite-box input {
  font-size:12px;
  margin-bottom:10px;
  background:var(--white);
}

.result-score {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:32px;
  margin:28px 0;
  padding:25px 10px;
  background:var(--green);
  border-radius:16px;
}

.score-person {
  text-align:center;
  overflow-wrap:anywhere;
  min-width:0;
  flex:1;
}

.score-person strong {
  font-size:44px;
  display:block;
  line-height:1.5;
}

.score-person span {
  font-size:12px;
}

.score-divider {
  font-size:15px;
  color:var(--muted);
}

.result-detail {
  border-top:1px solid var(--line);
  padding:15px 0;
  font-size:12px;
  line-height:1.8;
}

.result-detail summary {
  cursor:pointer;
  font-weight:600;
}

.result-detail p {
  margin-top:10px;
  color:var(--muted);
}

.result-detail ul {
  padding-left:20px;
  color:var(--muted);
}

.match-summary {
  font-size:16px;
  line-height:1.7;
  margin:20px 0;
}

.empty-state {
  padding:30px 0;
  font-size:15px;
  color:var(--muted);
}

@media(min-width:1500px) {
  .hero {
    min-height:720px;
  }
  .hero-art {
    transform:scale(1.06);
    transform-origin:center right;
  }
}

@media(max-width:1000px) {
  .wrap {
    width:calc(100% - 64px);
  }
  .hero {
    gap:24px;
    min-height:610px;
  }
  h1 {
    font-size:68px;
    letter-spacing:-4px;
  }
  .hero-description {
    font-size:14px;
  }
  .hero-art {
    transform:scale(.9);
    transform-origin:right center;
  }
  .art-spark {
    right:-12px;
  }
  .sample-card {
    margin-right:5px;
  }
  .back-card {
    right:-12px;
  }
  .friend-sticker {
    right:-25px;
  }
  .hero-facts {
    gap:7px;
    font-size:10px;
  }
  .hero-facts span+span:before {
    margin-right:7px;
  }
  .section-heading>p {
    max-width:180px;
    line-height:1.8;
  }
  .steps {
    gap:22px;
  }
}

@media(max-width:760px) {
  .wrap {
    width:calc(100% - 40px);
  }
  .site-header {
    height:78px;
  }
  .brand {
    font-size:21px;
  }
  .brand-symbol {
    width:32px;
    height:32px;
  }
  .site-header nav>a:first-child {
    display:none;
  }
  .nav-cta {
    padding:10px 12px;
    font-size:11px;
  }
  .nav-cta span {
    padding-left:8px;
  }
  .hero {
    grid-template-columns:1fr;
    padding-block:42px 34px;
    gap:8px;
  }
  .hero-copy {
    text-align:center;
  }
  .hero .eyebrow {
    justify-content:center;
    font-size:11px;
  }
  h1 {
    font-size:66px;
    line-height:1.18;
    margin:22px 0;
    letter-spacing:-4px;
  }
  .small-spark {
    font-size:22px;
    right:-25px;
  }
  .hero-description {
    font-size:13px;
    line-height:1.95;
  }
  .hero-button {
    min-width:260px;
    margin-top:25px;
  }
  .hero-facts {
    justify-content:center;
    margin-top:20px;
    font-size:10px;
  }
  .hero-art {
    width:min(420px,100%);
    justify-self:center;
    min-height:500px;
    transform:scale(.9);
    transform-origin:center center;
    margin-block:-8px -22px;
  }
  .sample-card {
    margin-right:25px;
  }
  .back-card {
    right:24px;
  }
  .art-note {
    left:0;
    top:15px;
    font-size:11px;
  }
  .art-spark {
    right:0;
    top:14px;
    font-size:50px;
  }
  .friend-sticker {
    right:-3px;
    bottom:0;
  }
  .message-strip>.wrap {
    min-height:54px;
    justify-content:center;
    gap:19px;
    font-size:11px;
  }
  .message-strip>.wrap>span:nth-child(3),.message-strip>.wrap>span:nth-child(4) {
    display:none;
  }
  .message-strip [aria-hidden] {
    font-size:20px;
  }
  .topics-section {
    padding-top:44px;
  }
  .section-heading {
    align-items:start;
    margin-bottom:23px;
    gap:10px;
  }
  .section-heading h2 {
    font-size:25px;
    letter-spacing:-1.1px;
  }
  .section-heading .eyebrow {
    font-size:8px;
    letter-spacing:1.1px;
  }
  .topics-section .section-heading {
    display:block;
  }
  .section-heading>p {
    max-width:none;
    margin-top:10px;
    font-size:11px;
  }
  .topic-card {
    min-height:210px;
  }
  .topic-card-button {
    padding:23px;
    gap:10px;
  }
  .topic-card h3 {
    font-size:24px;
  }
  .topic-card p {
    font-size:11px;
  }
  .topic-graphic {
    width:120px;
    height:130px;
  }
  .topic-graphic .suitcase {
    left:30px;
  }
  .topic-graphic:after {
    right:0;
  }
  .topic-graphic:before {
    font-size:7px;
    letter-spacing:1px;
  }
  .topic-arrow {
    display:none;
  }
  .topic-soon {
    font-size:10px;
    line-height:1.8;
    gap:10px;
  }
  .soon-label {
    font-size:6px;
    letter-spacing:.5px;
  }
  .mobile-only {
    display:block;
  }
  .how-section {
    padding-block:44px 32px;
  }
  .how-section h2 {
    font-size:23px;
  }
  .hand-arrow {
    display:none;
  }
  .steps {
    grid-template-columns:1fr;
    gap:5px;
  }
  .steps article {
    position:relative;
    padding:15px 0 15px 45px;
  }
  .step-number {
    position:absolute;
    left:0;
    top:20px;
  }
  .steps h3 {
    font-size:16px;
    margin:0 0 7px;
  }
  .steps p {
    font-size:12px;
  }
  .bottom-note {
    padding:24px 5px;
    gap:14px;
    flex-wrap:wrap;
    margin-bottom:28px;
  }
  .bottom-note>span {
    font-size:34px;
  }
  .bottom-note p {
    font-size:11px;
  }
  .bottom-note strong {
    font-size:14px;
  }
  .text-link {
    font-size:11px;
    margin-left:0;
  }
  .site-footer {
    flex-wrap:wrap;
    gap:10px 18px;
    font-size:9px;
    padding-bottom:25px;
  }
  .footer-brand {
    font-size:16px;
  }
  .footer-sign {
    width:100%;
    margin:0;
    font-size:7px;
  }
  .game-panel {
    padding:24px;
  }
  .game-panel h1 {
    font-size:28px;
  }
  .game-panel h2 {
    font-size:21px;
  }
  .game-wrap {
    padding-top:24px;
  }
  .answer-options {
    grid-template-columns:1fr;
  }
  .result-score {
    gap:12px;
  }
  .score-person strong {
    font-size:36px;
  }
  dialog {
    padding:28px;
  }
  .button {
    font-size:13px;
    gap:15px;
  }
}

@media(max-width:370px) {
  .hero-art {
    transform:scale(.8);
    margin-block:-38px;
  }
  .sample-card {
    flex-shrink:0;
    margin-right:0;
  }
  .friend-sticker {
    right:-18px;
  }
  .hero-facts {
    font-size:9px;
  }
  .topic-graphic {
    width:90px;
  }
  .topic-graphic .suitcase {
    left:12px;
  }
  .topic-card-button {
    padding:20px;
  }
  .topic-card h3 {
    font-size:22px;
  }
  .soon-label {
    display:none;
  }
}

@media(min-width:761px) and (max-width:900px) {
  .hero {
    grid-template-columns:1fr;
    gap:30px;
  }
  .hero-copy {
    text-align:center;
  }
  .hero .eyebrow,.hero-facts {
    justify-content:center;
  }
  .hero-art {
    justify-self:center;
    transform-origin:center;
  }
}

.modes-section {
  padding-top: 65px;
}
.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.mode-card {
  position:relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  text-align: left;
  box-shadow:var(--shadow-soft);
  transition: border-color .25s, transform .25s,box-shadow .25s;
}
.mode-card:hover { transform:translateY(-5px); border-color:var(--coral); box-shadow:0 20px 48px #242b2510; }
.mode-group:hover { border-color:#718258; }
.mode-label { font-size:11px; letter-spacing:.6px; color:var(--muted); }
.mode-card>strong { font-size:38px; letter-spacing:-1.8px; margin-top:40px; font-weight:800; }
.mode-card>strong>span { color:var(--coral); }
.mode-group>strong>span { color:#718258; }
.mode-card>span:not(.mode-label) { font-size: 13px; line-height: 1.9; color: var(--muted); }
.mode-card>.mode-detail { font-size:11px; color:#7d8275; margin-top:2px; }
.mode-card>b { display:flex; align-items:center; justify-content:space-between; font-size:13px; margin-top:8px; padding-top:20px; border-top:1px solid var(--line); }
.mode-card>b>span { display:grid; place-items:center; width:34px; height:34px; border-radius:50%; background:#fff0e9; color:var(--coral-dark); font-size:18px; transition:transform .25s; }
.mode-group>b>span { background:#e7eddd; color:#5e714c; }
.mode-card:hover>b>span { transform:rotate(8deg); }
.mode-art { position:absolute; right:30px; top:25px; display:flex; align-items:center; height:62px; }
.mode-art i { display:grid; place-items:center; width:52px; height:58px; border:1px solid #ebc7ba; border-radius:15px; background:#fff0e9; color:#a05a44; font-size:10px; font-weight:700; font-style:normal; letter-spacing:.8px; transform:rotate(-12deg); }
.mode-art i+i { margin-left:-12px; border-color:#c8d3b9; background:#e7eddd; color:#5e714c; transform:rotate(12deg) translateY(5px); }
.mode-group .mode-art i { border-radius:50%; width:55px; height:55px; }
.custom-group {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  margin-bottom: 22px;
  border: 1px solid #d2dac7;
  border-radius: 18px;
  background:linear-gradient(110deg,#eef1e6,#fffefa);
  transition:border-color .2s,box-shadow .2s;
}
.custom-group:hover { border-color:#889776; box-shadow:var(--shadow-soft); }
.custom-symbol { display:grid; place-items:center; width:44px; height:44px; border-radius:14px; background:var(--white); border:1px solid #d2dac7; font-size:26px; flex-shrink:0; }
.custom-group strong { display: block; font-size: 18px; margin-bottom: 8px; }
.custom-group small { display: block; font-size: 12px; color: var(--muted); line-height: 1.7; }
.custom-group>span:last-child { margin-left: auto; }
.topic-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.category-card { min-height: 230px; background: #e7eddd; }
.category-card:nth-child(4n+2) { background: #f5e7d6; border-color: #e0cfb7; }
.category-card:nth-child(4n+3) { background: #e3e8ed; border-color: #cbd5df; }
.category-card:nth-child(4n+4) { background: #eee4ec; border-color: #deccdb; }
.topic-card.category-card { background-image:linear-gradient(140deg,#fffefa99,#fffefa20); border-radius:20px; }
.category-card .topic-card-button { position: relative; padding: 24px 21px; align-items: start; }
.category-card h3 { font-size: 25px; }
.category-card .topic-meta { margin-bottom: 40px; }
.category-card p { min-height: 44px; }
.category-symbol { position: absolute; right: 18px; top: 46px; font-size: 32px; color: #5f6c51; font-family: 'DM Sans',sans-serif; }
.category-symbol svg { display:block; width:28px; height:28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.draft-question { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin: 28px 0 20px; }
.draft-question legend { font-size: 12px; font-weight: 700; padding: 0 8px; }
.draft-question h3 { font-size: 17px; line-height: 1.7; }
.draft-option { margin-top: 18px; font-size: 13px; line-height: 1.7; padding: 12px; background: var(--paper); border-radius: 8px; }
.correct-choices { display: flex; align-items: center; gap: 22px; margin-top: 18px; font-size: 13px; }
.correct-choices label { display: flex; align-items: center; gap: 7px; margin: 0; padding: 8px; }
.correct-choices input { width: 18px; min-height: 18px; height: 18px; accent-color: var(--coral); }
.remove-question { display: block; background: none; color: var(--muted); font-size: 11px; text-decoration: underline; margin: 14px 0 0 auto; padding: 6px; }
.add-question { justify-content: center; border: 1px dashed var(--line); background: var(--paper); }
.deadline-box { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 17px; margin: 20px 0; background: #f4ead8; border-radius: 12px; font-size: 12px; line-height: 1.8; }
.deadline-box strong { color: #805d29; }
.group-counts { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 20px 0; }
.group-counts>div { padding: 18px; background: var(--green); border-radius: 12px; }
.group-counts strong { font-size: 30px; margin-right: 8px; }
.group-counts span { font-size: 12px; }
.ranking-list { margin: 24px 0; }
.ranking-row { display: flex; align-items: center; gap: 18px; padding: 18px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ranking-row>span { flex: 1; overflow-wrap: anywhere; }
.ranking-row>strong:last-child { white-space: nowrap; }
.ranking-row small { font-size: 11px; font-weight: 400; color: var(--muted); }
.ranking-place { min-width: 35px; font-size: 24px; color: #90713b; }
.ranking-row.is-me { background: #edf1e5; border-radius: 10px; }
.me-badge { font-size: 10px; padding: 3px 6px; background: #d5dfc2; border-radius: 5px; }
.my-ranking-summary { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:24px 0; padding:24px; border:1px solid #d4ddc7; border-radius:18px; background:linear-gradient(120deg,#e7eddd,#f2f5ec); }
.my-ranking-summary>div { text-align:center; }
.my-ranking-summary>div+div { border-left:1px solid #ccd6be; }
.my-ranking-summary span { display:block; font-size:12px; color:#5e714c; }
.my-ranking-summary strong { display:block; margin-top:8px; font-size:40px; letter-spacing:-1px; }
.my-ranking-summary small { font-size:15px; font-weight:500; }
.review-jump { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:28px; padding-top:20px; border-top:1px solid var(--line); font-size:13px; font-weight:600; }
.review-jump span { color:var(--coral); font-size:20px; }
.answer-review { padding-top:52px; scroll-margin-top:24px; }
.review-heading .eyebrow { color:var(--muted); font-size:10px; margin-bottom:12px; }
.review-heading h2 { font-size:27px; letter-spacing:-1px; line-height:1.5; }
.review-heading>p:last-child { margin-top:12px; font-size:13px; line-height:1.8; color:var(--muted); }
.review-summary { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.review-summary>span { border:1px solid var(--line); border-radius:30px; padding:8px 14px; font-size:12px; background:var(--white); }
.review-summary strong { margin-left:6px; }
.question-review { padding:28px; margin-top:18px; border:1px solid var(--line); border-radius:20px; background:var(--white); box-shadow:var(--shadow-soft); }
.review-question-top { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; }
.review-question-top .eyebrow { font-size:9px; color:var(--muted); }
.answer-verdict { font-size:11px; font-weight:700; border-radius:30px; padding:6px 11px; color:#657451; background:#edf2e7; }
.is-incorrect .answer-verdict { background:#fff0e9; color:#a84632; }
.is-unanswered .answer-verdict { background:#f3eedf; color:#7a6541; }
.question-review h3 { font-size:19px; font-weight:700; letter-spacing:-.5px; line-height:1.7; overflow-wrap:anywhere; }
.review-options { list-style:none; padding:0; margin:20px 0 0; display:grid; gap:10px; }
.review-options li { display:flex; align-items:center; gap:12px; padding:16px; border:1px solid var(--line); border-radius:12px; background:var(--paper); font-size:13px; line-height:1.7; }
.review-options .is-answer { background:#edf2e7; border-color:#a4b88d; }
.review-options .is-selected:not(.is-answer) { background:#fff0e9; border-color:#e3ac9d; }
.review-option-code { font-size:11px; font-weight:700; color:var(--muted); }
.review-option-text { flex:1; min-width:0; overflow-wrap:anywhere; }
.review-option-labels { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:4px; max-width:100px; }
.review-option-labels b { padding:2px 7px; border-radius:5px; background:var(--white); font-size:10px; color:#52663f; white-space:nowrap; }
.is-selected:not(.is-answer) .review-option-labels b { color:#a84632; }
@media(max-width:1000px) {
  .topic-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:600px) {
  .question-review { padding:20px; }
  .review-heading h2 { font-size:24px; }
  .review-options li { padding:13px 11px; gap:9px; }
  .review-option-labels { max-width:57px; }
  .share-preview { gap:10px; padding:10px; }
  .share-preview img { width:80px; height:56px; }
  .modes-section { padding-top: 44px; }
  .mode-grid { grid-template-columns: 1fr; gap: 14px; }
  .mode-card { padding: 23px; gap: 12px; }
  .mode-card>strong { font-size: 29px; }
  .mode-art { right:23px; top:20px; transform:scale(.82); transform-origin:top right; }
  .mode-label { font-size:10px; }
  .topic-grid { gap: 12px; }
  .category-card { min-height: 240px; }
  .category-card .topic-card-button { padding: 18px 14px; }
  .category-card .topic-meta { font-size: 9px; gap: 5px; margin-bottom: 45px; }
  .category-card .topic-meta>span { display: none; }
  .category-card h3 { font-size: 22px; }
  .category-card p { min-height: 60px; font-size: 11px; }
  .category-card .topic-start { font-size: 10px; }
  .category-symbol { font-size: 29px; top: 39px; right: 15px; }
  .custom-group { padding: 18px; gap: 12px; }
  .custom-group strong { font-size: 16px; }
  .custom-group small { font-size: 11px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .draft-question { padding: 15px; }
  .deadline-box { font-size: 11px; }
  .group-counts { gap: 10px; }
  .group-counts>div { padding: 12px; }
  .group-counts span { display: block; margin-top: 5px; }
  .ranking-row { gap: 10px; padding-inline: 4px; }
}
@media(prefers-reduced-motion:reduce) {
  @view-transition {
    navigation:none;
  }
  ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*) {
    animation:none!important;
  }
  html {
    scroll-behavior:auto;
  }
  *,*:before,*:after {
    transition:none!important;
    animation:none!important;
  }
}
.input-feedback{margin:6px 0 14px;font-size:12px;line-height:1.6;color:var(--muted,#777);overflow-wrap:anywhere}
.input-feedback:empty{display:none}
.input-feedback.is-invalid{color:#b43835}
input[aria-invalid="true"],textarea[aria-invalid="true"],select[aria-invalid="true"]{border-color:#b43835;outline-color:#b43835}
.correct-choices:has(input[aria-invalid="true"]){outline:1px solid #b43835;outline-offset:5px;border-radius:8px}
.option-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;margin-bottom:7px}
.option-heading .option-label{margin:0}
.add-option,.remove-option{border:1px solid var(--line);background:var(--white);color:var(--ink);border-radius:10px;font:inherit;font-size:12px;padding:9px 12px;cursor:pointer}
.add-option{margin-top:8px;color:var(--coral-dark);font-weight:700}
.add-option:disabled,.remove-option:disabled{opacity:.4;cursor:default}
.draft-option-row{min-width:0}
.correct-choices{flex-wrap:wrap;gap:8px 12px}
.correct-choices>span{flex-basis:100%}
.correct-choices label{min-width:42px;padding:8px 4px}

.relationship-packs { margin:32px 0 40px; }
.relationship-heading h2 { margin:0 0 10px; font-size:26px; letter-spacing:-.7px; }
.relationship-heading p { margin:0 0 20px; color:var(--muted); font-size:14px; line-height:1.8; }
.relationship-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.relationship-card { display:flex; flex-direction:column; min-width:0; padding:24px; border:1px solid var(--line); border-radius:20px; background:var(--white); text-decoration:none; color:var(--ink); overflow-wrap:anywhere; transition:transform .2s,border-color .2s; }
.relationship-card:hover { transform:translateY(-3px); border-color:var(--coral); }
.relationship-card:focus-visible { outline:3px solid var(--coral-dark); outline-offset:4px; }
.relationship-count { font-size:12px; color:var(--coral-dark); font-weight:700; }
.relationship-card h3 { margin:14px 0 10px; font-size:22px; line-height:1.4; word-break:keep-all; }
.relationship-card p { margin:0 0 22px; font-size:13px; color:var(--muted); line-height:1.8; }
.relationship-start { margin-top:auto; font-weight:700; font-size:13px; }
.pack-intro { padding:18px; background:var(--green); border-radius:14px; line-height:1.8; overflow-wrap:anywhere; }
.conversation-section { margin:28px 0; text-align:left; overflow-wrap:anywhere; }
.conversation-heading h2 { font-size:24px; margin:0 0 10px; }
.conversation-heading p { color:var(--muted); font-size:14px; line-height:1.8; }
.conversation-card { margin-top:14px; padding:22px; border:1px solid var(--line); border-radius:18px; background:var(--paper); }
.conversation-card h3 { font-size:16px; line-height:1.7; margin:0 0 12px; }
.conversation-context { color:var(--muted); font-size:13px; line-height:1.8; }
.conversation-prompt { margin:14px 0 0; padding:14px; background:var(--green); border-radius:12px; font-size:15px; line-height:1.8; }
@media(max-width:1000px) {
  .relationship-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:480px) {
  .relationship-grid { grid-template-columns:1fr; }
  .relationship-card { padding:20px; }
  .conversation-card { padding:16px; }
}

.language-switch { display:flex; align-items:center; gap:4px; margin-left:20px; flex-shrink:0; }
.language-switch a { padding:8px 10px; border-radius:999px; font-size:12px; white-space:nowrap; }
.language-switch a[aria-current=page] { background:var(--ink); color:var(--paper); }
html[lang=en] .hero h1 { font-size:clamp(52px,6vw,82px); letter-spacing:-3px; }
html[lang=en] .mode-card>strong { font-size:32px; letter-spacing:-1px; }
html[lang=en] .hero-description { max-width:470px; }
@media(max-width:760px) {
  .site-header { flex-wrap:wrap; height:auto; min-height:92px; gap:10px; padding-top:16px; padding-bottom:16px; }
  .site-header nav { margin-left:auto; }
  .site-header .language-switch { margin-left:auto; }
  html[lang=en] .site-header .nav-cta { font-size:12px; padding:10px 12px; }
  html[lang=en] .hero h1 { font-size:clamp(48px,12vw,68px); }
}
