:root {
  --paper: #f4f0e7;
  --paper-light: #fffef9;
  --ink: #11110f;
  --muted: #706d65;
  --line: #171713;
  --accent: #ff4f2d;
  --acid: #eaff54;
  --blue: #3968ff;
  font-family: system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--paper); }
button, input, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.topbar, .room-header { height: 84px; border-bottom: 2px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 5vw, 76px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; color: var(--paper-light); background: var(--ink); font-family: 'Noto Serif SC', serif; font-size: 20px; letter-spacing: 0; }
.privacy-pill { border: 1.5px solid var(--line); border-radius: 99px; padding: 8px 14px; font-size: 12px; }
.eyebrow { display: block; font: 800 11px/1.2 system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; }

.hero { position: relative; min-height: calc(100vh - 146px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, .6fr); align-items: center; gap: clamp(32px, 6vw, 100px); padding: clamp(56px, 8vw, 110px) clamp(20px, 7vw, 110px); overflow: hidden; }
.hero::before { content: ''; position: absolute; width: 45vw; height: 45vw; left: -20vw; bottom: -28vw; border: 2px solid var(--line); border-radius: 50%; box-shadow: 0 0 0 40px var(--paper), 0 0 0 42px var(--line); opacity: .22; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy h1, .reveal-heading h1 { margin: 20px 0 8px; font: 900 clamp(50px, 8vw, 126px)/.94 'Songti SC', 'STSong', serif; letter-spacing: -.06em; }
.hero-copy h1 em, .reveal-heading h1 em { font-style: normal; -webkit-text-stroke: 2px var(--ink); color: transparent; }
.hero-subtitle { margin: 20px 0 44px; font-size: clamp(18px, 2vw, 28px); font-weight: 700; }
.hero-rules { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-rules span { padding: 9px 13px; border: 1.5px solid var(--line); font-size: 12px; font-weight: 700; background: rgba(255,255,255,.24); }

.paper-panel { background: var(--paper-light); border: 2px solid var(--line); box-shadow: 9px 9px 0 var(--ink); }
.create-card { position: relative; z-index: 2; padding: clamp(24px, 3vw, 42px); transform: rotate(1deg); }
.create-card::before { content: ''; position: absolute; right: -16px; top: -18px; width: 70px; height: 30px; background: rgba(234,255,84,.78); transform: rotate(7deg); }
.card-index { font-size: 11px; letter-spacing: .12em; font-weight: 900; }
.create-card h2 { font: 900 30px/1.1 'Noto Serif SC', serif; margin: 28px 0; }
label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 700; }
input, textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 0; background: var(--paper-light); padding: 14px 15px; outline: none; }
input:focus, textarea:focus { box-shadow: 4px 4px 0 var(--acid); }
textarea { resize: vertical; }
.create-card input { margin-bottom: 14px; font-size: 17px; }
.template-settings { margin: 4px 0 18px; border-top: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); }
.template-settings summary { padding: 14px 2px; cursor: pointer; font-size: 13px; font-weight: 900; list-style: none; display: flex; justify-content: space-between; }
.template-settings summary::before { content: '＋'; margin-right: 8px; }
.template-settings[open] summary::before { content: '－'; }
.template-settings summary span { margin-left: auto; color: var(--muted); font-size: 11px; }
.template-editor { max-height: 48vh; overflow: auto; padding: 4px 3px 18px; }
.template-editor > label { display: flex; justify-content: space-between; }
.template-editor label small { color: var(--muted); }
.template-labels { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 14px; }
.template-labels label { display: grid; grid-template-columns: 26px 1fr; align-items: center; margin: 0; }
.template-labels label > span { font-size: 10px; color: var(--accent); }
.template-labels input { margin: 0; padding: 9px 8px; font-size: 12px; }
.template-editor > p { color: var(--muted); font-size: 11px; line-height: 1.5; }
.button { border: 1.5px solid var(--line); padding: 13px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; font-weight: 900; transition: transform .15s ease, box-shadow .15s ease; }
.button:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button-dark { background: var(--ink); color: var(--paper-light); }
.button-accent { width: 100%; background: var(--accent); color: white; }
.microcopy { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 14px 0 0; }
.form-error { color: #b91c1c; font-size: 13px; font-weight: 700; margin: 10px 0; }
.modal-backdrop { position: fixed; z-index: 50; inset: 0; padding: 24px; display: grid; place-items: center; background: rgba(17,17,15,.72); overflow: auto; }
.template-confirm { width: min(680px, 100%); padding: clamp(26px, 5vw, 48px); }
.template-confirm h2, .share-modal h2 { font: 900 clamp(30px, 5vw, 52px)/1.05 'Noto Serif SC', serif; margin: 16px 0; }
.template-confirm > p { color: var(--muted); line-height: 1.6; }
.template-mini-preview { border: 2px solid var(--line); background: var(--paper); padding: 22px; }
.template-mini-preview > strong { display: block; text-align: center; font: 900 28px 'Noto Serif SC', serif; }
.template-mini-preview > p { text-align: center; }
.template-mini-preview > div { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.template-mini-preview span { padding: 9px 6px; border: .5px solid var(--line); font-size: 10px; text-align: center; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.modal-actions .button-accent { width: auto; }

.sample-card { position: absolute; width: 390px; height: 150px; bottom: -80px; right: 16vw; transform: rotate(-4deg); display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--line); background: var(--paper-light); opacity: .38; }
.sample-half { padding: 16px; display: grid; grid-template-columns: 1fr auto; border-right: 2px solid var(--line); }
.sample-half:last-child { border: 0; }
.sample-half strong { grid-row: span 2; font-size: 68px; }
.sample-half small { align-self: end; }
.home-footer { min-height: 62px; padding: 0 clamp(20px, 5vw, 76px); border-top: 2px solid var(--line); display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: .08em; }

.center-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.empty-state { max-width: 580px; padding: clamp(28px, 5vw, 58px); }
.empty-state h1 { font: 900 clamp(38px, 6vw, 66px)/1 'Noto Serif SC', serif; margin: 20px 0; }
.empty-state p { color: var(--muted); line-height: 1.8; margin-bottom: 30px; }
.loading-mark { display: flex; border: 2px solid var(--line); transform: rotate(-3deg); }
.loading-mark span { display: grid; place-items: center; width: 70px; height: 90px; font: 900 42px 'Noto Serif SC', serif; }
.loading-mark span:first-child { border-right: 2px solid var(--line); background: var(--ink); color: white; }
.loading-copy { font-weight: 700; }

.join-page { min-height: 100vh; display: grid; grid-template-columns: 1fr minmax(360px, 620px); align-items: center; gap: 7vw; padding: 100px 8vw 60px; position: relative; }
.floating-brand { position: absolute; left: 8vw; top: 34px; }
.join-visual { display: flex; align-items: center; justify-content: center; }
.portrait-box { width: min(20vw, 240px); aspect-ratio: 3/4; border: 3px solid var(--line); display: grid; place-items: center; background: var(--ink); color: white; font: 900 clamp(64px, 10vw, 140px) 'Noto Serif SC', serif; transform: rotate(-4deg); }
.portrait-box.muted { background: var(--paper-light); color: var(--ink); transform: rotate(4deg); }
.join-line { width: 80px; border-top: 3px solid var(--line); text-align: center; position: relative; }
.join-line span { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--acid); border: 2px solid var(--line); font-weight: 900; }
.join-panel { padding: clamp(26px, 5vw, 56px); }
.join-panel h1 { font: 900 clamp(38px, 5vw, 64px)/1.05 'Noto Serif SC', serif; margin: 20px 0; }
.join-panel > p { color: var(--muted); line-height: 1.7; }
.join-panel form { margin-top: 28px; }
.join-panel form input { margin-bottom: 18px; }
.segmented, .slot-choice { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--line); margin: 26px 0; }
.segmented button, .slot-choice button { background: transparent; border: 0; padding: 11px; font-weight: 700; }
.segmented button.active, .slot-choice button.active { background: var(--ink); color: white; }
.code-input { text-align: center; letter-spacing: .3em; font-size: 24px; font-weight: 900; }
.recovery-input { letter-spacing: .12em; font-size: 18px; }

.room-page { max-width: 1500px; margin: 0 auto; min-height: 100vh; }
.room-header { margin: 0 calc(50% - 50vw); padding-left: max(20px, calc((100vw - 1500px)/2 + 36px)); padding-right: max(20px, calc((100vw - 1500px)/2 + 36px)); }
.room-meta { display: flex; align-items: center; gap: 22px; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.status-dot { display: flex; align-items: center; gap: 7px; }
.status-dot i { width: 8px; height: 8px; border-radius: 50%; background: #aaa; }
.status-dot i.online { background: #21a366; box-shadow: 0 0 0 3px rgba(33,163,102,.15); }
.secret-banner { margin: 24px 30px 0; border: 2px solid var(--line); background: var(--acid); padding: 18px 20px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px; box-shadow: 6px 6px 0 var(--ink); }
.secret-banner strong { display: inline-block; margin: 8px 14px 0 0; }
.secret-banner code { font-size: 20px; font-weight: 900; letter-spacing: .12em; }
.secret-banner p { margin: 5px 0 0; font-size: 11px; }
.text-button { border: 0; border-bottom: 1px solid currentColor; background: transparent; padding: 4px 0; font-size: 12px; font-weight: 800; }

.waiting-layout { display: grid; grid-template-columns: 1fr minmax(170px, 230px); align-items: center; gap: clamp(28px, 6vw, 80px); margin: 34px clamp(20px, 4vw, 58px) 0; padding: clamp(28px, 5vw, 54px); border: 2px solid var(--line); background: var(--paper-light); box-shadow: 8px 8px 0 var(--ink); }
.waiting-copy h1 { font: 900 clamp(38px, 5vw, 68px)/1 'Noto Serif SC', serif; margin: 18px 0; }
.waiting-copy > p { color: var(--muted); line-height: 1.7; max-width: 520px; }
.invite-code { border-left: 7px solid var(--accent); padding: 8px 16px; margin: 22px 0; }
.invite-code small { display: block; font-weight: 900; letter-spacing: .14em; }
.invite-code strong { display: block; font-size: clamp(32px, 4vw, 50px); letter-spacing: .14em; line-height: 1.1; }
.hint-box { padding: 14px; border: 1.5px solid var(--line); background: var(--paper-light); }
.waiting-actions { display: flex; align-items: stretch; flex-wrap: wrap; gap: 10px; }
.waiting-actions .button-accent { width: auto; }
.qr-card { padding: 18px; text-align: center; transform: rotate(2deg); box-shadow: 5px 5px 0 var(--ink); }
.qr-card img, .qr-placeholder { width: 100%; aspect-ratio: 1; display: block; }
.qr-card span { display: block; margin-top: 18px; font-size: 13px; font-weight: 900; letter-spacing: .16em; }
.qr-card small { display: block; margin: 6px 0 12px; }

.fill-section, .reveal-section, .history-section { padding: clamp(42px, 7vw, 90px) clamp(20px, 4vw, 58px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 34px; }
.section-heading h1 { font: 900 clamp(38px, 5vw, 66px)/1 'Noto Serif SC', serif; margin: 14px 0 0; }
.save-status { font-size: 12px; color: var(--muted); }
.answer-sheet { border: 2px solid var(--line); background: var(--paper-light); display: grid; grid-template-columns: minmax(230px, .36fr) 1fr; box-shadow: 10px 10px 0 var(--ink); }
.avatar-editor { border-right: 2px solid var(--line); padding: clamp(22px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.avatar-editor button { border: 2px solid var(--line); width: min(100%, 280px); aspect-ratio: 1; padding: 0; background: var(--paper); white-space: pre-line; overflow: hidden; }
.avatar-editor img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.88) contrast(1.06); }
.avatar-editor span { font-weight: 800; line-height: 1.7; }
.avatar-editor strong { margin-top: 18px; font: 900 26px 'Noto Serif SC', serif; }
.avatar-editor small { color: var(--muted); }
.sheet-fields { display: grid; grid-template-columns: 1fr 1fr; }
.field-block { margin: 0; padding: 22px; border-bottom: 1.5px solid var(--line); border-right: 1.5px solid var(--line); }
.field-block:nth-child(even) { border-right: 0; }
.field-block > span { display: flex; gap: 10px; min-height: 37px; align-items: start; font-weight: 800; }
.field-block b { color: var(--accent); font-size: 11px; letter-spacing: .1em; }
.field-block input, .field-block textarea { border: 0; border-bottom: 1px solid #aaa79f; background: transparent; padding: 10px 0; }
.field-block input:focus, .field-block textarea:focus { box-shadow: none; border-color: var(--ink); }
.answer-image-editor { margin: 8px 0 4px; }
.answer-image-add { width: 100%; min-height: 58px; padding: 10px; border: 1px dashed #88847b; background: rgba(255,255,255,.35); color: var(--muted); font-size: 12px; font-weight: 800; }
.answer-image-add:hover:not(:disabled) { color: var(--ink); border-color: var(--ink); }
.answer-image-preview { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; }
.answer-image-preview img { width: 96px; height: 72px; object-fit: contain; background: var(--paper); border: 1px solid var(--line); }
.answer-image-preview > div { display: flex; flex-direction: column; align-items: start; gap: 5px; }
.danger { color: #b91c1c; }
.field-wide { grid-column: span 2; border-right: 0; }
.message-field { background: var(--acid); border-bottom: 0; }
.submit-row { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; }
.submit-row p { color: var(--muted); font-size: 12px; }
.button-large { width: auto; padding: 17px 26px; }
.submit-error { text-align: right; }

.submitted-panel { max-width: 820px; margin: 10vh auto; padding: clamp(40px, 8vw, 90px); position: relative; overflow: hidden; }
.submitted-panel h1 { font: 900 clamp(44px, 7vw, 82px)/1 'Noto Serif SC', serif; margin: 22px 0; }
.submitted-panel p { color: var(--muted); font-size: 17px; }
.stamp { position: absolute; right: 36px; top: 34px; border: 4px double var(--accent); color: var(--accent); padding: 10px 14px; font-weight: 900; transform: rotate(10deg); }
.waiting-dots { display: flex; gap: 8px; margin-top: 36px; }
.waiting-dots i { width: 12px; height: 12px; background: var(--ink); animation: blink 1.2s infinite alternate; }
.waiting-dots i:nth-child(2) { animation-delay: .25s; }.waiting-dots i:nth-child(3) { animation-delay: .5s; }
@keyframes blink { to { opacity: .15; transform: translateY(-5px); } }

.reveal-heading { text-align: center; max-width: 1000px; margin: 0 auto 60px; }
.reveal-heading h1 { font-size: clamp(48px, 7vw, 98px); }
.reveal-heading p { color: var(--muted); }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--line); box-shadow: 10px 10px 0 var(--ink); }
.published-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); gap: 22px; }
.published-grid .revealed-card { border: 2px solid var(--line); box-shadow: 7px 7px 0 var(--ink); }
.published-grid .revealed-card:first-child { border-right: 2px solid var(--line); }
.published-result { min-width: 0; display: flex; flex-direction: column; }
.published-result .revealed-card { flex: 1; }
.share-result-button { margin: 8px 0 0 auto; }
.revealed-card { background: var(--paper-light); min-width: 0; }
.revealed-card:first-child { border-right: 2px solid var(--line); }
.revealed-card header { padding: 24px; border-bottom: 2px solid var(--line); display: flex; align-items: center; gap: 18px; }
.revealed-card header img, .avatar-fallback { width: 100px; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--line); }
.avatar-fallback { display: grid; place-items: center; font: 900 48px 'Noto Serif SC', serif; }
.revealed-card.slot-1 header { background: var(--acid); }
.revealed-card.slot-2 header { background: #dfe6ff; }
.revealed-card header span { font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.revealed-card h2 { font: 900 clamp(25px, 3vw, 38px) 'Noto Serif SC', serif; margin: 3px 0; }
.revealed-card dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
.revealed-card dl > div { min-height: 130px; padding: 20px; border-bottom: 1.5px solid var(--line); border-right: 1.5px solid var(--line); }
.revealed-card dl > div:nth-child(even) { border-right: 0; }
.revealed-card dt { color: var(--muted); font-size: 11px; font-weight: 800; }
.revealed-card dd { margin: 13px 0 0; font: 700 clamp(16px, 2vw, 23px)/1.45 'Noto Serif SC', serif; overflow-wrap: anywhere; white-space: pre-wrap; }
.revealed-card dd > span { display: block; }
.revealed-answer-image { display: block; width: 100%; max-height: 260px; object-fit: contain; background: var(--paper); border: 1px solid var(--line); margin-bottom: 12px; }
.revealed-card dl > .message-answer { grid-column: span 2; border-right: 0; background: rgba(234,255,84,.36); }
.share-history { margin-top: 70px; padding-top: 34px; border-top: 2px solid var(--line); display: grid; grid-template-columns: minmax(220px, .35fr) 1fr; gap: 34px; }
.share-history h2 { font: 900 36px 'Noto Serif SC', serif; margin: 10px 0; }
.share-history > div > p { color: var(--muted); }
.share-history-list { border-top: 1.5px solid var(--line); }
.share-history-list article { padding: 17px 4px; border-bottom: 1.5px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.share-history-list article strong, .share-history-list article small { display: block; }
.share-history-list article small { color: var(--muted); margin-top: 4px; }
.share-history-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: end; }
.share-modal-backdrop { align-items: start; }
.share-modal { position: relative; width: min(1180px, 100%); margin: auto; padding: clamp(18px, 3vw, 34px); display: grid; grid-template-columns: minmax(300px, .95fr) minmax(300px, .75fr); gap: clamp(24px, 5vw, 60px); align-items: center; }
.modal-close { position: absolute; z-index: 2; right: 12px; top: 10px; border: 0; background: transparent; font-size: 32px; }
.share-preview-wrap { aspect-ratio: 1; background: var(--paper); border: 2px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.share-preview-wrap img { width: 100%; height: 100%; object-fit: contain; }
.poster-loading { padding: 24px; text-align: center; font-weight: 800; }
.share-modal-copy > p { color: var(--muted); line-height: 1.7; }
.public-consent { padding: 15px; border-left: 6px solid var(--accent); background: var(--paper); font-size: 12px; line-height: 1.6; margin: 20px 0; }
.share-action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0 16px; }
.share-action-grid .button-accent { width: auto; grid-column: span 2; }
.reopen-panel { margin-top: 70px; border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); padding: 34px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.reopen-panel h2 { font: 900 32px 'Noto Serif SC', serif; margin: 10px 0 4px; }
.reopen-panel p { color: var(--muted); margin: 0; }
.history-section { border-top: 2px solid var(--line); }
.history-section > h2 { font: 900 clamp(32px, 4vw, 52px) 'Noto Serif SC', serif; }
.history-section details { border-top: 1.5px solid var(--line); }
.history-section details:last-child { border-bottom: 1.5px solid var(--line); }
.history-section summary { display: grid; grid-template-columns: 1fr auto auto; gap: 24px; padding: 20px 4px; cursor: pointer; font-weight: 800; list-style: none; }
.history-section summary time { color: var(--muted); }
.comparison-grid.compact { margin: 10px 0 34px; box-shadow: 6px 6px 0 var(--ink); }
.compact .revealed-card dl > div { min-height: 100px; }

.public-share-page { min-height: 100vh; }
.public-share-header { height: 78px; padding: 0 clamp(20px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--line); font-size: 11px; font-weight: 800; }
.public-poster-section { padding: clamp(42px, 7vw, 96px) clamp(20px, 7vw, 110px); display: grid; grid-template-columns: minmax(280px, .65fr) minmax(360px, 1fr); gap: clamp(36px, 7vw, 100px); align-items: center; }
.public-poster-section h1 { margin: 18px 0; font: 900 clamp(44px, 6vw, 90px)/.98 'Songti SC', 'STSong', serif; }
.public-poster-section > div > p { color: var(--muted); font-size: 18px; }
.public-poster-section > img { width: min(100%, 760px); border: 2px solid var(--line); box-shadow: 12px 12px 0 var(--ink); }
.public-poster-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.public-poster-actions .button-accent { width: auto; }
.public-results { padding: clamp(50px, 7vw, 100px) clamp(20px, 7vw, 110px); border-top: 2px solid var(--line); background: var(--paper-light); }
.public-results .section-heading > p { color: var(--muted); }
.public-answer-grid { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--line); box-shadow: 10px 10px 0 var(--ink); }
.public-answer-card:first-child { border-right: 2px solid var(--line); }
.public-answer-card > header { min-height: 150px; padding: 24px; display: flex; align-items: center; gap: 18px; border-bottom: 2px solid var(--line); }
.public-answer-card.slot-1 > header { background: var(--acid); }
.public-answer-card.slot-2 > header { background: #dfe6ff; }
.public-answer-card header img { width: 100px; height: 100px; object-fit: cover; border: 2px solid var(--line); }
.public-answer-card h2 { margin: 5px 0; font: 900 clamp(28px, 4vw, 44px) 'Songti SC', serif; }
.public-answer-card dl { margin: 0; }
.public-answer-card dl > div { padding: 20px; border-bottom: 1px solid var(--line); }
.public-answer-card dt { color: var(--muted); font-size: 11px; font-weight: 800; }
.public-answer-card dd { margin: 12px 0 0; font: 700 20px/1.55 'Songti SC', serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.public-answer-card dd img { display: block; width: 100%; max-height: 620px; object-fit: contain; margin-bottom: 14px; background: var(--paper); border: 1px solid var(--line); }
.public-answer-card dd span { display: block; }
.public-share-footer { padding: 38px clamp(20px, 7vw, 110px); background: var(--ink); color: var(--paper-light); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.public-share-footer strong { font: 900 32px 'Songti SC', serif; }
.public-share-footer p { margin: 6px 0 0; color: #c8c4bb; }
.public-share-footer .button-accent { width: auto; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-bottom: 100px; }
  .create-card { max-width: 580px; transform: none; }
  .sample-card { display: none; }
  .join-page { grid-template-columns: 1fr; padding-top: 100px; }
  .join-visual { display: none; }
  .waiting-layout { grid-template-columns: 1fr 190px; }
  .qr-card { max-width: 240px; }
  .answer-sheet { grid-template-columns: 1fr; }
  .avatar-editor { border-right: 0; border-bottom: 2px solid var(--line); }
  .avatar-editor button { width: 220px; }
  .comparison-grid { grid-template-columns: 1fr; }
  .revealed-card:first-child { border-right: 0; border-bottom: 3px solid var(--line); }
  .secret-banner { grid-template-columns: 1fr; }
  .share-modal { grid-template-columns: 1fr; }
  .share-preview-wrap { width: min(100%, 620px); margin: 0 auto; }
  .public-poster-section { grid-template-columns: 1fr; }
  .public-poster-section > img { grid-row: 1; }
}

@media (max-width: 620px) {
  .topbar, .room-header { height: 70px; padding: 0 16px; }
  .brand > span:last-child { display: none; }
  .privacy-pill { font-size: 10px; }
  .hero { padding: 46px 18px 80px; }
  .hero-copy h1 { font-size: 49px; }
  .hero-copy h1 em { -webkit-text-stroke-width: 1.5px; }
  .hero-rules { display: grid; grid-template-columns: 1fr 1fr 1fr; }
  .hero-rules span { padding: 8px 5px; text-align: center; font-size: 10px; }
  .home-footer { align-items: start; flex-direction: column; gap: 0; padding: 15px 18px; }
  .home-footer p { margin: 3px 0; }
  .join-page { padding: 100px 16px 50px; }
  .floating-brand { left: 18px; }
  .join-panel { box-shadow: 6px 6px 0 var(--ink); }
  .room-meta > span:first-child { display: none; }
  .secret-banner { margin: 16px; }
  .secret-banner code { display: block; margin-top: 8px; overflow-wrap: anywhere; }
  .waiting-layout { grid-template-columns: 1fr; margin: 18px 14px 0; padding: 28px 20px; }
  .waiting-copy h1 { font-size: 48px; }
  .waiting-layout .qr-card { width: min(100%, 220px); }
  .section-heading { align-items: start; flex-direction: column; gap: 14px; }
  .sheet-fields { grid-template-columns: 1fr; }
  .field-block, .field-block:nth-child(even) { border-right: 0; }
  .field-wide { grid-column: auto; }
  .answer-sheet { box-shadow: 6px 6px 0 var(--ink); }
  .submit-row, .reopen-panel { align-items: stretch; flex-direction: column; }
  .button-large { width: 100%; }
  .reveal-section { padding-left: 14px; padding-right: 14px; }
  .reveal-heading { text-align: left; }
  .reveal-heading h1 { font-size: 46px; }
  .comparison-grid { box-shadow: 6px 6px 0 var(--ink); }
  .revealed-card dl { grid-template-columns: 1fr; }
  .revealed-card dl > div, .revealed-card dl > div:nth-child(even) { border-right: 0; min-height: 105px; }
  .revealed-card dl > .message-answer { grid-column: auto; }
  .revealed-card header img, .avatar-fallback { width: 78px; }
  .history-section summary { grid-template-columns: 1fr auto; }
  .history-section summary b { display: none; }
  .template-labels { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 10px; }
  .modal-actions { grid-template-columns: 1fr; }
  .share-history { grid-template-columns: 1fr; }
  .share-history-list article { align-items: start; flex-direction: column; }
  .share-history-actions { justify-content: start; }
  .share-modal { padding: 16px; box-shadow: 5px 5px 0 var(--ink); }
  .share-action-grid { grid-template-columns: 1fr; }
  .share-action-grid .button-accent { grid-column: auto; }
  .public-share-header > span { display: none; }
  .public-poster-section { padding: 36px 16px 56px; }
  .public-poster-section h1 { font-size: 48px; }
  .public-poster-actions { align-items: stretch; flex-direction: column; }
  .public-poster-actions .button-accent { width: 100%; }
  .public-results { padding: 48px 14px; }
  .public-answer-grid { grid-template-columns: 1fr; box-shadow: 6px 6px 0 var(--ink); }
  .public-answer-card:first-child { border-right: 0; border-bottom: 3px solid var(--line); }
  .public-share-footer { align-items: stretch; flex-direction: column; }
  .public-share-footer .button-accent { width: 100%; }
}

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