/* Korean at Heart — mobile-first stylesheet.
   Look: warm cream ground, ink text, crimson accent, gold details, pill buttons,
   soft 24px cards (from the "Mobile Home" design canvas, 2026-09-27). */

:root {
    --cream: #F6F1E6;        /* page ground */
    --paper: #FFFDF8;        /* cards */
    --ink: #1E1B33;          /* text, dark buttons */
    --ink-soft: #4A4661;     /* body copy */
    --muted: #6B6685;
    --line: #EAE1CF;
    --line-strong: #D9CFBD;
    --accent: #8B2332;       /* crimson */
    --accent-deep: #6E1A27;
    --gold: #B08D57;
    --gold-light: #D9C39A;
    --gold-pale: #E3D3AC;
    --plum: #2A2448;         /* ID card ground */
    --plum-soft: #3B3560;
    --ok: #2E7D4F;
    --err: #B3261E;
    --radius: 24px;
    --radius-sm: 14px;
    --shadow: 0 8px 24px rgba(30, 27, 51, 0.06);
    --font-ui: "Noto Sans KR", "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Playfair Display", Georgia, serif;
    --font-korean: "Noto Serif KR", "Nanum Myeongjo", "Apple SD Gothic Neo", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--cream);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
a { color: var(--accent); }
a:hover { color: var(--accent-deep); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0 0 0.5rem; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 0.75rem; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }
.mt { margin-top: 1rem; }
.lead { font-size: 1.05rem; color: var(--ink-soft); }
.eyebrow { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 0.5rem; }
.kicker { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.hint { font-size: 0.85rem; color: var(--muted); margin: 0.4rem 0 0; }
.hint-flush { margin: 0 0 0.9rem; }
.hint-top { margin-top: 0.75rem; }
.inline { display: inline; }
.page-title { padding: 0 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* "Logged in as" strip above the top bar: name · Korean name · tier (2026-10-17) */
.whoami {
    display: flex; align-items: center; gap: 0.6rem;
    padding: max(0.45rem, env(safe-area-inset-top)) 1rem 0.45rem 1.25rem;
    background: var(--plum); color: var(--cream); text-decoration: none;
    font-size: 0.8rem; line-height: 1.3;
}
.whoami:hover { color: #fff; }
.whoami + .topbar { padding-top: 0.6rem; }
.who-dot { width: 8px; height: 8px; border-radius: 50%; background: #4CD37B; box-shadow: 0 0 0 3px rgba(76, 211, 123, 0.25); flex-shrink: 0; }
/* name block wraps on its own lines; the badge on the right never gets pushed out */
.who-main { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.55rem; row-gap: 0.1rem; }
.who-main > * { min-width: 0; }
.who-label { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-light); white-space: nowrap; }
.who-name { font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-korean { font-family: var(--font-korean, "Noto Serif KR", serif); font-weight: 600; color: var(--gold-light); white-space: nowrap; }
.who-roman { color: rgba(246, 241, 230, 0.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.who-tier { flex-shrink: 0; white-space: nowrap; padding: 0.1rem 0.55rem; border-radius: 999px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em; border: 1px solid rgba(246, 241, 230, 0.45); }
.who-tier.tier-heart { background: var(--accent); border-color: var(--accent); color: #fff; }
.who-tier.tier-contributor { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.who-tier.tier-ambassador { background: var(--gold-light); border-color: var(--gold-light); color: var(--ink); }

/* Top bar — light, brand left, language pill + menu right */
.topbar {
    background: var(--cream);
    color: var(--ink);
    padding: max(0.9rem, env(safe-area-inset-top)) 1.25rem 0.6rem;
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.brand { color: var(--ink); text-decoration: none; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; letter-spacing: 0.01em; display: flex; align-items: center; gap: 0.5rem; }
.brand:hover { color: var(--ink); }
.brand-heart { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
.brand-seal { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; }
.topnav { display: flex; align-items: center; gap: 0.5rem; }
.pill-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem;
    height: 36px; min-width: 36px; padding: 0 0.75rem; border-radius: 999px;
    border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink);
    font: inherit; font-size: 0.75rem; font-weight: 600; text-decoration: none; cursor: pointer;
}
.pill-btn.icon { padding: 0; width: 36px; }
.lang-switch { position: relative; display: inline-flex; }
.lang-switch select {
    height: 36px; padding: 0 1.7rem 0 0.75rem; border-radius: 999px; border: 1px solid var(--line-strong);
    background: var(--paper); color: var(--ink); font: inherit; font-size: 0.75rem; font-weight: 600;
    appearance: none; -webkit-appearance: none; max-width: 8.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231E1B33' stroke-width='1.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0.65rem center;
}
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 190px;
    background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 32px rgba(30, 27, 51, 0.14);
    padding: 0.4rem; display: flex; flex-direction: column;
}
.menu-panel a, .menu-panel button {
    display: flex; align-items: center; min-height: 44px; padding: 0 0.9rem; border-radius: 12px;
    color: var(--ink); text-decoration: none; font: inherit; font-size: 0.95rem; background: none; border: 0; text-align: left; cursor: pointer; width: 100%;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--cream); }
.menu-panel .primary { color: var(--accent); font-weight: 600; }
.menu-panel .menu-label { padding: 0.6rem 0.9rem 0.2rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); border-top: 1px solid var(--line); margin-top: 0.3rem; }
video.reel { display: block; width: 100%; max-width: 320px; aspect-ratio: 9 / 16; margin: 0 auto 1rem; border-radius: var(--radius); background: var(--ink); object-fit: cover; }
.date-select-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 0.5rem; }
.date-select-row select { padding-left: 0.7rem; padding-right: 0.5rem; }
.code-input { font-size: 1.6rem; letter-spacing: 0.5em; text-align: center; font-variant-numeric: tabular-nums; }
.menu-panel .menu-sep { height: 1px; background: var(--line); margin: 0.3rem 0; }

.page { flex: 1; width: 100%; max-width: 520px; margin: 0 auto; padding: 0.5rem 1rem 2rem; }
.page.has-sharebar { padding-bottom: 6.5rem; }
.footer { padding: 1.75rem 1.5rem max(1.5rem, env(safe-area-inset-bottom)); text-align: center; color: var(--muted); font-size: 0.8rem; display: flex; flex-direction: column; gap: 0.4rem; align-items: center; }
.footer .made { font-family: var(--font-display); font-style: italic; font-size: 0.9rem; color: var(--ink); }
.footer-seal { width: 88px; height: 88px; margin-bottom: 0.2rem; }
.footer p { margin: 0; max-width: 34rem; line-height: 1.5; }
.footer .company { font-style: normal; display: flex; flex-direction: column; gap: 0.15rem; align-items: center; margin-top: 0.6rem; padding-top: 0.8rem; border-top: 1px solid var(--line); max-width: 34rem; width: 100%; line-height: 1.5; font-size: 0.75rem; }
.footer .company-name { color: var(--ink); font-weight: 600; }
.footer-links { display: flex; gap: 0.25rem; }
.footer-links a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; display: inline-block; padding: 0.6rem 0.6rem; }
.footer .company a { color: inherit; text-decoration: underline; text-underline-offset: 2px; display: inline-block; padding: 0.35rem 0.5rem; word-break: break-all; }

/* Cards */
.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.card.dark { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.5rem; }
.card-head h2 { margin: 0; }
.card-head .meta { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.card .lead-small { font-size: 0.85rem; line-height: 1.55; color: var(--ink-soft); margin: 0 0 0.9rem; }
/* Home "what you get" carousel — scroll-snap strip, one slide per viewport, JS adds dots + auto-advance */
.slides { margin-top: 1.5rem; }
.slides-track { display: flex; gap: 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 0.5rem; scroll-behavior: smooth; padding: 0 0.5rem 0.25rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.slides-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 calc(100% - 1rem); scroll-snap-align: start; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; }
.slide h2 { font-size: 1.05rem; text-align: center; margin: 0; padding: 0.85rem 1rem 1rem; }
.slide-art { position: relative; flex: 1 1 auto; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
/* 1. name */
.slide-name .slide-art { flex-direction: column; gap: 0.35rem; background: radial-gradient(circle at 50% 30%, #FFFDF8 0%, var(--cream) 70%); }
.sn-pill { font-family: var(--font-korean); font-size: 0.9rem; color: var(--gold); letter-spacing: 0.1em; }
.sn-pill i { font-family: var(--font-display); font-style: italic; letter-spacing: 0; color: var(--muted); }
.sn-name { font-family: var(--font-korean); font-size: 4rem; font-weight: 700; line-height: 1; color: var(--ink); }
.sn-roman { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--accent); }
.sn-elements { display: flex; gap: 0.5rem; margin-top: 0.6rem; }
.sn-elements i { width: 12px; height: 12px; border-radius: 999px; opacity: 0.35; }
.sn-elements i.on { opacity: 1; box-shadow: 0 0 0 4px rgba(139, 35, 50, 0.15); transform: scale(1.3); }
.el-wood { background: #4F8A5B; } .el-fire { background: #C8442E; } .el-earth { background: #B08D57; } .el-metal { background: #9AA3AD; } .el-water { background: #2F4B8A; }
/* 2. hanbok */
.slide-hanbok .slide-art { gap: 0; background: #E9DFCB; }
.slide-hanbok img { width: 50%; height: 100%; object-fit: cover; object-position: top; display: block; }
/* 3. card + certificate */
.slide-docs .slide-art { background: linear-gradient(160deg, #EFE7D6, #E3D6BE); }
.slide-docs img { position: absolute; border-radius: 10px; box-shadow: 0 14px 28px rgba(30, 27, 51, 0.25); }
.sd-cert { width: 74%; height: auto; left: 4%; top: 7%; transform: rotate(-4deg); }
.sd-card { width: 56%; height: auto; right: 4%; bottom: 6%; transform: rotate(4deg); }
/* 4. member perks — big 10% badge + icon rows */
.slide-perks .slide-art { aspect-ratio: auto; flex-direction: column; justify-content: center; gap: 0.7rem; padding: 1.1rem 1rem 1rem; background: var(--plum); color: var(--cream); }
.sp-badge { display: inline-flex; align-items: baseline; gap: 0.3rem; padding: 0.3rem 1rem; border-radius: 999px; background: var(--cream); color: var(--accent); font-family: var(--font-display); line-height: 1; }
.sp-badge b { font-size: 1.9rem; font-weight: 600; }
.sp-badge small { font-size: 0.75rem; letter-spacing: 0.2em; font-weight: 600; }
.sp-list { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 310px; display: flex; flex-direction: column; gap: 0.4rem; }
.sp-list li { display: flex; align-items: center; gap: 0.7rem; min-height: 34px; font-size: 1rem; font-weight: 500; line-height: 1.25; color: var(--cream); }
.sp-list i { flex: none; width: 34px; height: 34px; border-radius: 999px; background: var(--plum-soft); display: grid; place-items: center; font-style: normal; font-size: 1.1rem; }
.sp-list i svg { display: block; }
.slides-dots { display: flex; justify-content: center; gap: 0.4rem; margin-top: 0.7rem; min-height: 8px; }
.slides-dots i { width: 8px; height: 8px; border-radius: 999px; background: var(--line-strong); transition: background 0.2s, transform 0.2s; }
.slides-dots i.on { background: var(--accent); transform: scale(1.25); }

/* Hero */
.hero { padding: 1rem 0.5rem 0; }
.hero h1 { font-family: var(--font-display); font-weight: 500; font-size: 2.2rem; line-height: 1.12; letter-spacing: -0.01em; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead { font-size: 0.95rem; line-height: 1.6; margin: 0.9rem 0 1.1rem; }
.hero.compact { padding-top: 0.75rem; text-align: center; }
.hero.compact h1 { font-size: 1.8rem; }
.free-line { display: flex; align-items: center; justify-content: center; gap: 0.35rem; font-size: 0.75rem; color: var(--muted); margin-top: 0.6rem; }
.free-line svg { color: var(--gold); }
.price-line { font-size: 0.85rem; line-height: 1.45; font-weight: 600; color: var(--accent); margin: -0.25rem 0 1rem; }

/* Buttons — pill, 48–52px touch targets */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    min-height: 48px; padding: 0.7rem 1.3rem;
    border-radius: 999px; border: 1.5px solid var(--ink);
    background: var(--paper); color: var(--ink);
    font: inherit; font-size: 0.95rem; font-weight: 600; text-decoration: none; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-primary:hover { color: var(--cream); }
.btn-accent { background: var(--accent); color: var(--cream); border-color: var(--accent); }
.btn-accent:hover { color: var(--cream); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-block { width: 100%; margin-top: 0.75rem; min-height: 52px; }
.btn-small { min-height: 40px; padding: 0.4rem 0.9rem; font-size: 0.85rem; }
.btn-row { display: flex; gap: 0.6rem; }
.btn-row .btn { flex: 1; min-height: 48px; margin: 0; padding-left: 0.6rem; padding-right: 0.6rem; font-size: 0.9rem; }
.btn svg { flex-shrink: 0; }
.linklike { background: none; border: 0; color: var(--accent); font: inherit; padding: 0; cursor: pointer; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend, .field > label > span { font-weight: 600; font-size: 0.95rem; }
.field input:not([type=radio]):not([type=file]):not([type=checkbox]), .field select {
    width: 100%; min-height: 48px; padding: 0.6rem 0.9rem;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    font: inherit; font-size: 16px; /* prevents iOS zoom */
    background: var(--paper); color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.field input:disabled { opacity: 0.45; }
/* Inline checkbox under a field ("I don't know my birth time") — the row is the 48px touch target */
.check-inline { display: flex; align-items: center; gap: 0.55rem; min-height: 48px; font-size: 0.95rem; cursor: pointer; }
.check-inline input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); flex: none; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.choice { display: flex; align-items: center; gap: 0.5rem; min-height: 48px; padding: 0.5rem 0.8rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; background: var(--paper); }
.choice:has(input:checked) { border-color: var(--accent); background: #FBF3F1; }
.choice input { accent-color: var(--accent); }

/* Consent checkbox (/name, photo upload) — the whole row is the 48px touch target */
.consent { display: flex; align-items: flex-start; gap: 0.65rem; min-height: 48px; padding: 0.75rem 0.85rem; margin: 0.25rem 0 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); font-size: 0.85rem; line-height: 1.45; cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 0.1rem 0 0; accent-color: var(--accent); }
.consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* FAQ — native <details>, each question a 48px row */
.faq { display: flex; flex-direction: column; margin-top: 0.5rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; font-weight: 400; flex: none; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0 0 1rem; line-height: 1.6; color: var(--ink); }
.faq-item a { color: var(--accent); word-break: break-all; }

/* Terms / Privacy */
.legal h2 { font-size: 1.05rem; margin: 1.5rem 0 0.4rem; }
.legal p, .legal li { font-size: 0.9rem; line-height: 1.6; }
.legal ul { padding-left: 1.2rem; margin: 0.3rem 0; }
.legal li { margin-bottom: 0.35rem; }
.legal code { font-size: 0.8rem; }

/* Flash */
.flash { padding: 0.8rem 1rem; border-radius: var(--radius-sm); margin-bottom: 0.75rem; font-size: 0.95rem; }
.flash-error { background: #FBE9E7; color: var(--err); }
.flash-info, .flash-success { background: #EAF4EE; color: var(--ok); }

/* Steps */
.steps { list-style: none; display: flex; justify-content: space-between; padding: 0; margin: 0.25rem 0 1rem; counter-reset: step; }
.steps li { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; flex: 1; font-size: 0.75rem; color: var(--muted); }
.steps-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; font-weight: 600; background: var(--paper); }
.steps li.current .steps-dot { border-color: var(--accent); color: var(--accent); }
.steps li.done .steps-dot { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.steps li.current { color: var(--accent); font-weight: 600; }

/* Photo picker */
.photo-picker {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
    min-height: 220px; border: 2px dashed var(--gold); border-radius: var(--radius);
    background: var(--paper); cursor: pointer; overflow: hidden; position: relative;
}
.photo-picker input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.photo-picker input[hidden] { display: none; }
.photo-picker img { max-height: 320px; width: 100%; object-fit: cover; }
.photo-picker-label { font-weight: 600; color: var(--ink); padding: 0.5rem 1rem; text-align: center; }
.photo-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: -0.4rem; }
.photo-buttons .btn { display: flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 48px; cursor: pointer; font-size: 0.9rem; padding: 0.5rem; }
.style-family { font-size: 0.95rem; color: var(--ink); margin: 0.9rem 0 0.4rem; font-family: var(--font-ui); font-weight: 600; }
.style-family:first-of-type { margin-top: 0.25rem; }
.style-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.style-choice { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 0.7rem; align-items: center; padding: 0.7rem 0.9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; background: var(--paper); }
.style-choice input { grid-row: 1 / span 2; accent-color: var(--accent); width: 20px; height: 20px; }
.style-choice:has(input:checked) { border-color: var(--accent); background: #FBF3F1; }
.style-choice.has-image { grid-template-columns: 1fr; grid-template-rows: auto auto auto; row-gap: 0.25rem; padding: 0.6rem; text-align: center; position: relative; }
.style-choice.has-image input { grid-row: auto; position: absolute; top: 0.55rem; left: 0.55rem; margin: 0; }
.style-img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: 12px; background: var(--cream); display: block; }
.style-name { font-weight: 600; }
.style-desc { font-size: 0.78rem; line-height: 1.3; color: var(--muted); }

/* Waiting / spinner */
.waiting { text-align: center; padding: 1.5rem 0; }
.spinner { width: 44px; height: 44px; margin: 0 auto 1rem; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Names */
.name-list { display: grid; gap: 1rem; margin-top: 0.75rem; }
.name-card { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1rem; background: var(--paper); }
.name-hangul { font-family: var(--font-korean); font-weight: 700; font-size: 2.6rem; color: var(--accent); line-height: 1.1; letter-spacing: 0.04em; }
.name-hangul.big { font-size: 4rem; letter-spacing: 0.05em; }
.name-roman { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); margin-bottom: 0.5rem; }
.name-roman-row { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-bottom: 0.25rem; }
.name-roman-row .name-roman { margin: 0; font-size: 1.35rem; }
.name-meanings { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0; }
.name-meanings.center { justify-content: center; }
.chip { display: inline-flex; gap: 0.4rem; align-items: baseline; background: var(--cream); border-radius: 999px; padding: 0.25rem 0.7rem; font-size: 0.85rem; }
.chip dt { font-family: var(--font-korean); font-weight: 700; }
.chip dd { margin: 0; color: var(--muted); }
.name-reason { font-size: 0.95rem; }
.chosen-name { text-align: center; margin-bottom: 1rem; }
/* meaning rows: one tile per syllable */
.meaning-rows { display: flex; flex-direction: column; gap: 0.5rem; margin: 0.9rem 0 0; padding: 0; list-style: none; text-align: left; }
.meaning-rows li { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0.9rem; border-radius: var(--radius-sm); background: var(--cream); }
.syllable { width: 40px; height: 40px; border-radius: 10px; color: var(--cream); font-family: var(--font-korean); font-size: 1.25rem; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.syllable.s0 { background: var(--ink); } .syllable.s1 { background: var(--accent); } .syllable.s2 { background: var(--gold); }
.meaning-rows .m-title { font-size: 0.85rem; font-weight: 600; }
.meaning-rows .m-sub { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }
/* surname "Hanja note" (2026-10-27): one muted line per name + a collapsible "About your family name" */
.surname-note { margin: 0.1rem 0 0.5rem; font-size: 0.82rem; color: var(--muted); text-align: center; }
.surname-about { margin: 0.8rem 0 0; font-size: 0.8rem; color: var(--muted); text-align: left; }
.surname-about summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.surname-about p { margin: 0.4rem 0 0; line-height: 1.5; }
.name-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding-top: 0.7rem; margin-top: 0.9rem; border-top: 1px dashed var(--line); font-size: 0.78rem; color: var(--muted); }
.name-foot b { color: var(--ink); font-family: var(--font-display); font-weight: 600; }

/* Portrait / assets */
.portrait { width: min(100%, 320px); margin: 0.5rem auto; border-radius: var(--radius); border: 3px solid var(--gold-light); }
.avatar-placeholder { width: 160px; height: 200px; margin: 0.5rem auto; border-radius: var(--radius); background: var(--plum-soft) radial-gradient(circle at 50% 36%, #B9AEC9 0 22%, transparent 23%); position: relative; overflow: hidden; }
.avatar-placeholder::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: -18%; height: 50%; border-radius: 50% 50% 0 0; background: #B9AEC9; }
.asset { border-radius: 12px; box-shadow: 0 10px 24px rgba(30, 27, 51, 0.12); margin: 0.5rem 0 0.9rem; }
.share-row { display: flex; align-items: center; gap: 0.5rem; min-height: 46px; padding: 0 0.35rem 0 0.9rem; border-radius: 12px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); }
.share-row input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--gold-light); font: inherit; font-size: 0.85rem; padding: 0.4rem 0; }
.share-row .btn-small { min-height: 34px; padding: 0 0.8rem; font-size: 0.75rem; background: var(--cream); color: var(--ink); border-color: var(--cream); }
.card.dark .card-title { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.03em; margin-bottom: 0.75rem; }
.card.dark .card-title svg { color: var(--gold-light); }
.card.dark .hint { color: #B8B2CC; }

/* Sticky share bar (member pages) */
.share-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    display: flex; gap: 0.6rem; padding: 0.75rem 1rem max(0.75rem, env(safe-area-inset-bottom));
    background: rgba(246, 241, 230, 0.94); border-top: 1px solid var(--line); backdrop-filter: blur(6px);
}
.share-bar .btn { margin: 0; min-height: 52px; }
.share-bar .btn-accent { flex: 1; }
.share-bar .btn-ghost { flex: 0 0 auto; background: var(--paper); border-color: var(--ink); }
@media (min-width: 640px) { .share-bar { left: 50%; right: auto; width: 520px; transform: translateX(-50%); border: 1px solid var(--line); border-bottom: 0; border-radius: 18px 18px 0 0; } }

/* Cookie choice (over the share bar) */
.cookie-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom));
    background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(30, 27, 51, 0.12);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0 0 0.75rem; font-size: 0.85rem; line-height: 1.5; color: var(--ink); }
.cookie-bar a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.cookie-bar .btn { background: var(--paper); border-color: var(--ink); }
@media (min-width: 640px) { .cookie-bar { left: 50%; right: auto; width: 520px; transform: translateX(-50%); border: 1px solid var(--line); border-bottom: 0; border-radius: 18px 18px 0 0; } }

/* Home: tilted sample card, recent names ticker, trust row */
.mock-card-wrap { display: flex; justify-content: center; padding: 1.6rem 0 0.5rem; overflow: hidden; }
.mock-card {
    width: min(342px, 92%); aspect-ratio: 342 / 214; border-radius: 18px; background: var(--plum); color: var(--cream);
    padding: 1.1rem 1.25rem; display: flex; flex-direction: column; justify-content: space-between; transform: rotate(-3deg);
    box-shadow: 0 24px 40px rgba(30, 27, 51, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.12); position: relative; overflow: hidden;
}
.mock-card::before { content: ""; position: absolute; top: -60px; right: -40px; width: 200px; height: 200px; border-radius: 999px; background: rgba(176, 141, 87, 0.18); }
.mock-card > * { position: relative; }
.mock-card .row { display: flex; align-items: center; justify-content: space-between; }
.mock-card .tag { font-size: 0.6rem; letter-spacing: 0.2em; font-weight: 600; color: var(--gold-light); }
.mock-card .brand-it { font-family: var(--font-display); font-style: italic; font-size: 0.7rem; color: var(--gold-light); }
.mock-card .mid { display: flex; gap: 0.85rem; align-items: center; }
.mock-card .photo { width: 72px; height: 92px; border-radius: 10px; background: var(--plum-soft); border: 1px solid rgba(217, 195, 154, 0.5); display: grid; place-items: center; flex-shrink: 0; color: var(--gold-light); }
.mock-card .lbl { font-size: 0.55rem; letter-spacing: 0.16em; color: #B8A98C; }
.mock-card .val { font-family: var(--font-display); font-size: 1rem; }
.mock-card .hangul { font-family: var(--font-korean); font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.mock-card .roman { font-family: var(--font-display); font-style: italic; font-size: 0.75rem; color: var(--gold-light); }
.mock-card .qr { width: 56px; height: 56px; border-radius: 8px; background: var(--cream); display: grid; place-items: center; flex-shrink: 0; align-self: flex-start; margin-left: auto; }
.mock-card .foot { display: flex; justify-content: space-between; align-items: flex-end; }
.mock-card .foot .val { font-size: 0.75rem; }
.ticker { margin-top: 1.5rem; }
.ticker .kicker { display: block; padding: 0 0.5rem; margin-bottom: 0.6rem; }
.ticker-row { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0 0.5rem 0.25rem; scrollbar-width: none; }
.ticker-row::-webkit-scrollbar { display: none; }
.ticker-chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.4rem; height: 34px; padding: 0 0.8rem; border-radius: 999px; background: var(--paper); border: 1px solid #E6DCC8; font-size: 0.8rem; color: var(--ink); white-space: nowrap; }
.ticker-chip b { font-family: var(--font-korean); font-weight: 700; color: var(--accent); font-size: 0.9rem; }
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; margin-top: 1rem; }
.trust div { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; padding: 1rem 0.5rem; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); text-align: center; }
.trust b { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.trust span { font-size: 0.7rem; color: var(--muted); line-height: 1.3; }

/* Key/value */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; margin: 0.5rem 0; }
.kv.left { text-align: left; }
.kv dt { color: var(--muted); font-size: 0.9rem; }
.kv dd { margin: 0; }
.pillars { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin-top: 0.2rem; }
.pillar { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.15; }
.pillar b { font-family: var(--font-korean); font-size: 1.6rem; font-weight: 700; color: var(--ink); letter-spacing: 0.02em; }
.pillar small { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.15em; margin-top: 0.15rem; }

/* Verify */
.verify-badge { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; margin: 0.5rem auto 1rem; color: #fff; }
.verify-badge.ok { background: var(--ok); }
.verify-badge.bad { background: var(--err); }
.member-code { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.04em; }

/* Heart plan: portrait preview + checkout */
.preview-wrap { position: relative; width: min(100%, 320px); margin: 0 auto; }
.preview-wrap .portrait { display: block; width: 100%; margin: 0.5rem 0; }
.preview-tag { position: absolute; top: 1rem; left: 0.5rem; background: rgba(30, 27, 51, 0.85); color: var(--cream); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 999px; }
.plan-box { border: 2px solid var(--gold-light); border-radius: var(--radius); padding: 1rem; background: var(--paper); }
.plan-title { font-size: 1.15rem; margin-bottom: 0.25rem; }
.plan-list { margin: 0.5rem 0 0.75rem; padding-left: 1.2rem; font-size: 0.95rem; }
.plan-list li { margin: 0.2rem 0; }
.badge-heart { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.15rem 0.65rem; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 600; vertical-align: middle; }
.dev-tag { display: inline-block; background: #FBE9E7; color: var(--err); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 999px; margin-bottom: 0.5rem; }

/* Type-to-search country picker */
.combo { position: relative; }
.combo-input { width: 100%; }
.combo.is-enhanced .combo-select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }
.combo-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 0.25rem 0; list-style: none; max-height: 240px; overflow-y: auto; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.combo-list li { padding: 0.65rem 0.9rem; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; cursor: pointer; font-size: 0.95rem; }
.combo-list li[aria-selected="true"], .combo-list li:hover { background: var(--cream); }
.combo-list li .combo-code { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.05em; }
.combo-list li.combo-empty { color: var(--muted); cursor: default; }

/* Larger screens: same single column, a bit more air */
@media (min-width: 640px) {
    .page { padding: 1rem 1rem 3rem; }
    .features { grid-template-columns: repeat(3, 1fr); max-width: 960px; margin: 1.5rem auto 0; }
    .page:has(.features) { max-width: 1000px; }
    .page:has(.payments) { max-width: 1500px; }
    .hero, .mock-card-wrap, .reveal, .slides, .ticker, .trust { max-width: 520px; margin-left: auto; margin-right: auto; }
    .trust { margin-top: 1rem; }
    h1 { font-size: 2rem; }
}

/* Share sheet (dialog) */
.sheet { border: 0; padding: 0; margin: 0; max-width: none; width: 100%; height: 100%; max-height: none; background: transparent; position: fixed; inset: 0; display: none; align-items: flex-end; justify-content: center; }
.sheet[open] { display: flex; }
.sheet::backdrop { background: rgba(30, 27, 51, 0.55); }
.sheet-body { width: 100%; max-width: 520px; max-height: 92dvh; overflow-y: auto; background: var(--cream); border-radius: 28px 28px 0 0; padding: 0.75rem 1.25rem max(1.5rem, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 0.9rem; }
.sheet-grip { width: 40px; height: 4px; border-radius: 999px; background: var(--line-strong); align-self: center; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h2 { margin: 0; font-size: 1.25rem; }
.format-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.format-choice { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.45rem; padding: 0.7rem 0.4rem 0.6rem; border-radius: 16px; border: 1.5px solid #E6DCC8; background: var(--paper); cursor: pointer; font-size: 0.75rem; font-weight: 600; text-align: center; }
.format-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.format-choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.format-choice img { border-radius: 8px; object-fit: cover; background: var(--plum); }
.format-choice .thumb-story { width: 54px; height: 96px; }
.format-choice .thumb-card { width: 84px; height: 54px; margin: 21px 0; }
.format-choice .thumb-cert { width: 84px; height: 60px; margin: 18px 0; background: #FBF6EA; }
.dest-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.dest { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; padding: 0.6rem 0.25rem; border-radius: 14px; border: 1px solid #E6DCC8; background: var(--paper); font: inherit; font-size: 0.7rem; color: var(--ink); cursor: pointer; }
.dest-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--cream); }
.dest-icon.ig { background: var(--ink); } .dest-icon.tt { background: #111; } .dest-icon.x { background: var(--accent); }
.dest-icon.fb { background: #1877F2; } .dest-icon.wa { background: #25D366; } .dest-icon.tg { background: #229ED9; }
.dest-icon.more, .dest-icon.save { background: var(--cream); border: 1px solid var(--line-strong); color: var(--ink); }
.share-row.light { background: var(--paper); border-color: #E6DCC8; color: var(--muted); }
.share-row.light input { color: var(--ink); }
.share-row.light .btn-small { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.sheet-status { margin: 0; text-align: center; font-size: 0.85rem; color: var(--ok); font-weight: 600; }

/* Home: real card image instead of the CSS mock */
/* Home name-reveal animation (templates/pages/home.php). One 10 s timeline shared by every
   piece, so the loop stays in sync; jamo are staggered with --d. */
.reveal { position: relative; width: min(342px, 92%); aspect-ratio: 342 / 280; margin: 1.2rem auto 0.4rem; }
.rv-words { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem; text-align: center; }
.rv-label { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); animation: rv-label 10s ease-in-out infinite both; }
.rv-name { display: flex; gap: 0.12em; font-family: var(--font-korean); font-weight: 700; font-size: 4.2rem; line-height: 1; color: var(--ink); }
.rv-syl { position: relative; width: 1em; height: 1.05em; }
.rv-full { position: absolute; inset: 0; display: grid; place-items: center; animation: rv-full 10s ease-out infinite both; }
.rv-jamo { position: absolute; font-size: 0.52em; line-height: 1; color: var(--accent); animation: rv-jamo 10s cubic-bezier(.2, .8, .25, 1) infinite both; animation-delay: var(--d); }
.rv-i { left: 0.06em; top: 0.08em; }
.rv-v { left: 0.56em; top: 0.08em; }
.rv-f { left: 0.26em; top: 0.52em; }
.rv-roman { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--ink); animation: rv-text 10s ease-out infinite both; }
.rv-meaning { font-size: 0.85rem; color: var(--muted); animation: rv-text 10s ease-out infinite both; animation-delay: 0.25s; }
.rv-card { position: absolute; left: 0; right: 0; top: 50%; width: 100%; height: auto; margin-top: -31.5%; border-radius: 18px; box-shadow: 0 24px 40px rgba(30, 27, 51, 0.28); animation: rv-card 10s cubic-bezier(.2, .8, .25, 1) infinite both; }
@keyframes rv-label { 0%, 2% { opacity: 0; } 7%, 55% { opacity: 1; } 61%, 100% { opacity: 0; } }
@keyframes rv-jamo {
    0%, 6% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1.5); }
    24%    { opacity: 1; transform: none; }
    31%    { opacity: 1; transform: none; }
    37%, 100% { opacity: 0; transform: none; }
}
@keyframes rv-full {
    0%, 31% { opacity: 0; transform: scale(0.82); }
    38%, 55% { opacity: 1; transform: none; }
    61%, 100% { opacity: 0; transform: translateY(-14px) scale(0.92); }
}
@keyframes rv-text { 0%, 38% { opacity: 0; transform: translateY(8px); } 44%, 55% { opacity: 1; transform: none; } 61%, 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes rv-card {
    0%, 57% { opacity: 0; transform: rotate(-12deg) scale(0.7) translateY(30px); }
    67%, 92% { opacity: 1; transform: rotate(-3deg); }
    98%, 100% { opacity: 0; transform: rotate(-3deg) scale(0.96); }
}
@media (prefers-reduced-motion: reduce) {
    .rv-words { display: none; }
    .rv-card { animation: none; opacity: 1; transform: rotate(-3deg); }
}
.mock-card-img { width: min(342px, 92%); height: auto; border-radius: 18px; transform: rotate(-3deg); box-shadow: 0 24px 40px rgba(30, 27, 51, 0.28); }

/* Founding members promo (home) */
.founding { padding: 0; overflow: hidden; background: var(--ink); color: var(--cream); border-color: var(--ink); margin-top: 1rem; }
.founding-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.founding-body { padding: 1.25rem 1.5rem 1.5rem; }
.founding .kicker.light { color: var(--gold-light); }
.founding h2 { font-size: 1.5rem; margin: 0.35rem 0 0.5rem; color: var(--cream); }
.founding p { color: #D8D3E6; font-size: 0.95rem; line-height: 1.55; }
.founding-perks { margin: 0.25rem 0 1rem; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.9rem; }
.founding-perks li { display: flex; gap: 0.5rem; align-items: flex-start; }
.founding-perks li::before { content: "♥"; color: var(--accent); flex-shrink: 0; }
.progress { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.progress span { display: block; height: 100%; min-width: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--gold-light)); }
.progress-label { font-size: 0.8rem; color: var(--gold-light); margin-top: 0.45rem; font-weight: 600; }
.founding .hint { color: #B8B2CC; margin-top: 0.75rem; }
.founding h1 { font-size: 1.6rem; margin: 0.35rem 0 0.5rem; color: var(--cream); }
.founding .amb-sub { font-family: var(--font-display); font-style: italic; color: var(--gold-light); margin: -0.2rem 0 0.6rem; }
/* Ambassador ladder: Member → Contributor → Global Ambassador */
.ladder { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.ladder-step { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.85rem 0.9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.ladder-step.is-you { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139, 35, 50, 0.1); }
.ladder-no { flex: none; width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: #fff; background: var(--muted); }
.tier-contributor .ladder-no { background: var(--gold); color: var(--ink); }
.tier-ambassador .ladder-no { background: var(--accent); }
.ladder-step b { display: block; font-size: 1rem; }
.ladder-step span { display: block; font-size: 0.85rem; color: var(--ink-soft); line-height: 1.4; }
.ladder-step em { display: inline-block; margin-top: 0.3rem; font-size: 0.75rem; font-style: normal; font-weight: 600; color: var(--accent); }
.ladder-mini { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 0.35rem; margin: 0.2rem 0 0.8rem; font-size: 0.8rem; color: var(--gold-light); }
.ladder-mini li { padding: 0.25rem 0.6rem; border: 1px solid rgba(217, 195, 154, 0.5); border-radius: 999px; }
.ladder-mini li + li::before { content: "→"; margin-right: 0.45rem; color: var(--gold-light); }
.ladder-mini li:last-child { background: var(--accent); border-color: var(--accent); color: var(--cream); font-weight: 600; }
/* criteria table */
.criteria { width: 100%; border-collapse: collapse; margin: 0.4rem 0 0.6rem; font-size: 0.92rem; }
.criteria td { padding: 0.55rem 0.2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.criteria .pts { text-align: right; white-space: nowrap; font-family: var(--font-display); font-weight: 600; color: var(--accent); }
.criteria .total td { border-bottom: 0; font-weight: 700; }
.badge-tier { display: inline-flex; align-items: center; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-decoration: none; border: 1px solid var(--line-strong); color: var(--ink-soft); }
.badge-tier.tier-contributor { border-color: var(--gold); color: var(--gold); }
.badge-tier.tier-ambassador { background: var(--accent); border-color: var(--accent); color: var(--cream); }
/* admin: applications */
.app-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.app-row { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.8rem; background: var(--paper); }
.app-row.status-selected { border-color: var(--accent); }
.app-head { font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 0.3rem 0.4rem; align-items: center; }
.app-statement { font-size: 0.85rem; line-height: 1.5; margin: 0.5rem 0; white-space: pre-wrap; }
.app-links { margin: 0 0 0.5rem; padding-left: 1rem; font-size: 0.8rem; word-break: break-all; }
.founding-actions { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; margin-top: 1rem; }
.founding-rules { color: var(--gold-light); text-decoration: underline; text-underline-offset: 2px; font-size: 0.85rem; display: inline-block; padding: 0.7rem 0.5rem; }

/* Notice board */
.notice-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }

/* Staff tables (/admin/attribution) */
.card.attribution, .card.payments-table { padding: 0.5rem 0; overflow-x: auto; }
/* Staff payments page (/admin/payments) — used on a PC, so the page widens on desktop (see media query). */
.payments .stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin: 0.6rem 0 0.3rem; }
.payments .stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0.7rem 0.9rem; display: flex; flex-direction: column; gap: 0.1rem; }
.payments .stat-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.payments .stat-value { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.payments .stat-sub { font-size: 0.8rem; color: var(--muted); }
.payments .stat-refund .stat-value { color: #8B2332; }
.payments .founding-line { margin: 0 0 0.8rem; }
.payments .tabs { display: flex; gap: 0.4rem; margin: 0.2rem 0 0.6rem; border-bottom: 1px solid var(--line); }
.payments .tab { padding: 0.55rem 1rem; border-radius: 12px 12px 0 0; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.payments .tab.active { color: var(--ink); background: #fff; border: 1px solid var(--line); border-bottom-color: #fff; margin-bottom: -1px; }
.payments tr.is-heart td b { color: #8B2332; }
.payments td.step-complete { color: #1E7B34; }
.payments td.step-photo, .payments td.step-naming, .payments td.step-review { color: var(--muted); }
.payments .filters { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: flex-end; padding: 0.9rem 1rem; }
.payments .field.compact { margin: 0; min-width: 9rem; }
.payments .field.compact.grow { flex: 1 1 14rem; }
.payments .field.compact span { font-size: 0.75rem; }
.payments .field.compact input, .payments .field.compact select { min-height: 40px; padding: 0.35rem 0.6rem; font-size: 0.9rem; }
.payments .consent.auto { margin: 0 0 0.5rem; font-size: 0.85rem; }
.payments .results { margin: 0.2rem 1rem 0.5rem; }
.payments .data-table { font-size: 0.8rem; }
.payments .data-table th, .payments .data-table td { padding: 0.5rem 0.55rem; }
.payments .data-table th { position: sticky; top: 0; background: #fff; z-index: 1; }
.payments .data-table td.wrap { white-space: normal; min-width: 8rem; }
.payments .data-table td { vertical-align: middle; }
.payments tr.is-refunded td { color: var(--muted); }
.payments tr.is-refunded td b { text-decoration: line-through; }
.payments .inline-form { display: flex; gap: 0.3rem; align-items: center; margin: 0; }
.payments .inline-form input[type=text] { width: 7.5rem; min-height: 32px; padding: 0.2rem 0.5rem; font-size: 0.8rem; border: 1px solid var(--line); border-radius: 8px; }
.payments .inline-form select { min-height: 32px; max-width: 13rem; padding: 0.2rem 0.4rem; font-size: 0.8rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.payments .inline-form .btn-small { min-height: 32px; padding: 0 0.7rem; font-size: 0.78rem; }
.payments .btn-small.danger { color: #8B2332; border-color: #8B2332; }
.payments .badge-refund { display: block; color: #8B2332; font-weight: 600; font-size: 0.8rem; }
.payments select.level-free { color: var(--muted); }
.payments select.level-ambassador, .payments select.level-contributor { border-color: var(--gold, #B08D57); font-weight: 600; }
.payments .pager { display: flex; gap: 0.8rem; align-items: center; justify-content: center; padding: 0.8rem 1rem 0.3rem; }
.payments .history-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.85rem; }
.payments .history-list li { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 0.35rem; }
.payments .history-action { color: #8B2332; font-weight: 600; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.data-table th, .data-table td { padding: 0.55rem 0.75rem; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table th { font-weight: 600; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.notice-item { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 56px; padding: 0.8rem 1rem; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.notice-item:hover { color: var(--ink); border-color: var(--line-strong); }
.notice-title { font-weight: 600; font-size: 0.95rem; line-height: 1.35; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.notice-pin { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.notice-pin.draft { background: var(--muted); }
.notice-pin.warn { background: #FBE9EA; color: #8B2332; border-color: #E8B4B8; }
.notice-meta { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.notice h1 { font-size: 1.5rem; }
.notice-body { line-height: 1.7; font-size: 0.98rem; word-break: break-word; margin-top: 0.75rem; }
.notice-admin-row { display: flex; flex-direction: column; gap: 0.35rem; }
.notice-actions { display: flex; gap: 0.4rem; justify-content: flex-end; }
.notice-actions form { display: inline; }
.app-actions { flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.app-actions .inline-form { display: inline-flex; gap: 0.3rem; align-items: center; }
.app-actions select, .app-actions input[type=number] { min-height: 36px; padding: 0.2rem 0.5rem; font-size: 0.85rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.app-actions input[type=number] { width: 6.5rem; }
.card .inline-form + .app-list { margin-top: 0.8rem; }
.btn.danger { color: var(--err); border-color: #E9C4C0; }
.pager { display: flex; gap: 0.4rem; justify-content: center; margin-top: 1rem; }
.pager a { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; color: var(--ink); font-size: 0.9rem; }
.pager a.current { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.field textarea { width: 100%; padding: 0.7rem 0.9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: 16px; line-height: 1.5; background: var(--paper); color: var(--ink); resize: vertical; }
.field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }

/* Free reading (2026-10-11): /name form, /n/{token} reveal, /save, Google/Apple buttons */
.choice-grid.three { grid-template-columns: repeat(3, 1fr); }
.name-list.reveal { margin-bottom: 1rem; }
.name-list.reveal .name-card { text-align: center; }
.name-list.reveal .name-card.first { border-color: var(--accent); box-shadow: 0 10px 24px rgba(139, 35, 50, 0.10); }
.name-list.reveal .name-hangul { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 2.9rem; }
.name-list.reveal .name-meanings { justify-content: center; }
.name-list.reveal .name-reason { text-align: left; }
.pill-btn.speak { width: 34px; height: 34px; min-height: 34px; font-size: 0; vertical-align: middle; }
.share-card h2 { margin-bottom: 0.25rem; }
.intent-row { display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: center; margin-top: 0.8rem; }
.intent-row .pill-btn { min-height: 40px; text-decoration: none; }
.oauth-buttons { display: grid; gap: 0.6rem; margin: 0.75rem 0 0.25rem; }
.oauth-buttons .btn { margin: 0; display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; }
.oauth-buttons .oauth-note { margin: 0.1rem 0 0; font-size: 0.75rem; line-height: 1.45; text-align: center; }
.oauth-buttons .oauth-note a { color: inherit; text-decoration: underline; }
.btn.oauth.apple { background: #000; color: #fff; border-color: #000; }
.btn.oauth.google { background: var(--paper); }
.btn.oauth.facebook { background: #1877F2; color: #fff; border-color: #1877F2; }
.btn.oauth.line { background: #06C755; color: #fff; border-color: #06C755; }
.divider { display: flex; align-items: center; gap: 0.75rem; color: var(--muted); font-size: 0.8rem; margin: 0.4rem 0 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 360px) { .choice-grid.three { grid-template-columns: 1fr; } }

/* Staff payments page on a desktop screen */
@media (min-width: 900px) {
    .payments .stat-grid { grid-template-columns: repeat(5, 1fr); }
    .page:has(.payments) { max-width: 1500px; }
}

/* Payment screens: hanbok style sample strip + honorary note (2026-10-18) */
.sample-label { margin: 0.6rem 0 0.35rem; }
.sample-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
.sample-strip img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: 10px; background: var(--cream); display: block; }
.honorary-note { margin: 0.6rem 0 0.9rem; }
.public-hint { margin: 0 0 0.9rem; }

/* Card preview with the chosen name before paying (plan 2-A, 2026-10-18) */
.card-preview-img { width: 100%; height: auto; display: block; }
.preview-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0 0.2rem; }
.preview-pills .pill-btn { height: 40px; font-size: 0.95rem; font-family: var(--font-korean); }
.pill-btn.active { background: var(--accent); color: var(--cream); border-color: var(--accent); }
.card-preview form { margin-top: 0.6rem; }

/* 2b. Ambassador slide (replaced the 10 % perks slide 2026-10-18): concert photo under a plum veil + number badge + 3 lines */
.slide-amb .slide-art { background: #1E1B33; }
.slide-amb .slide-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.sa-body { position: relative; width: 100%; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 0.7rem; padding: 1rem 1.1rem; color: var(--cream); text-align: center; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65); }
.sa-badge { display: inline-flex; align-items: baseline; gap: 0.4rem; padding: 0.3rem 1rem; border-radius: 999px; background: var(--cream); color: var(--accent); font-family: var(--font-display); line-height: 1; text-shadow: none; }
.sa-badge b { font-size: 1.9rem; font-weight: 600; }
.sa-badge small { font-size: 0.75rem; letter-spacing: 0.06em; font-weight: 600; }
.sa-list { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 330px; display: flex; flex-direction: column; gap: 0.35rem; overflow-wrap: anywhere; font-size: 0.95rem; font-weight: 500; line-height: 1.3; }

/* Pre-launch: "Membership opens <date>" card (partials/launch_notify) */
.launch-box { border-color: var(--crimson, #8B2332); }
.launch-on { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border-radius: 999px; background: #EEF7EF; color: #1E7B34; font-weight: 600; }
.launch-on .dot { width: .6rem; height: .6rem; border-radius: 50%; background: #1E7B34; flex: 0 0 auto; }
.launch-undo { background: none; border: 0; padding: 0; margin-left: auto; color: var(--muted, #666); text-decoration: underline; font: inherit; cursor: pointer; }
