:root {
  color-scheme: light;
  --ink: #33253b;
  --muted: #786c7c;
  --pink: #ff4d8d;
  --pink-dark: #df2f73;
  --yellow: #ffd166;
  --mint: #c9f0e6;
  --paper: #fff8f2;
  --white: #fffdfb;
  --outline: #35263b;
  --display: 'Baloo 2', 'Trebuchet MS', sans-serif;
  --body: 'DM Sans', sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--paper); }
body { min-height: 100vh; margin: 0; overflow-x: hidden; color: var(--ink); background-color: var(--paper); background-image: radial-gradient(#efb5c9 0.7px, transparent 0.7px); background-size: 21px 21px; font-family: var(--body); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #5a3cad; outline-offset: 3px; }
button { color: inherit; }
[hidden] { display: none !important; }
.paper-grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .23; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.65) 50%, transparent 70%); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { width: min(1240px, calc(100% - 56px)); height: 80px; margin: auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(51,37,59,.14); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark { width: 39px; height: 39px; position: relative; display: inline-flex; align-items: center; justify-content: center; transform: rotate(-8deg); border: 2px solid var(--outline); border-radius: 13px 10px 13px 9px; background: var(--yellow); box-shadow: 3px 3px 0 var(--outline); font: 800 20px/1 var(--display); }
.brand-mark span:last-child { margin-left: -3px; color: var(--pink-dark); }
.brand-name { font: 800 26px/.85 var(--display); letter-spacing: -1.2px; }
.brand-name span { color: var(--pink); }
.header-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: 1.6px; }
.header-tools { display: flex; align-items: center; gap: 17px; }
.audio-controls { display: flex; align-items: center; gap: 7px; }
.audio-toggle { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 10px; border: 1px solid rgba(51,37,59,.3); border-radius: 999px; background: var(--white); color: var(--ink); cursor: pointer; font-size: 9px; font-weight: 800; transition: transform .15s ease, background .15s ease; }
.audio-toggle:hover { transform: translateY(-1px); }
.audio-toggle[aria-pressed="true"] { background: var(--mint); }
.audio-toggle > span:first-child { color: var(--pink-dark); font-size: 14px; }
.sparkle { color: var(--pink); font-size: 17px; }
.page-shell { width: min(1240px, calc(100% - 56px)); min-height: calc(100vh - 146px); margin: 0 auto; padding: 35px 0 43px; }
.status-banner { margin: 0 0 18px; padding: 11px 15px; border: 1.5px solid #b86a7e; border-radius: 12px; background: #fff0f4; color: #733549; font-size: 13px; font-weight: 700; }
.status-banner[data-kind="success"] { border-color: #69a392; background: #e7f7f0; color: #245f50; }
.status-banner[data-kind="info"] { border-color: #b88b24; background: #fff3c7; color: #66500d; }
.entry-layout { display: grid; grid-template-columns: minmax(270px, .87fr) minmax(410px, 1.13fr); align-items: center; gap: clamp(38px, 7vw, 104px); max-width: 1070px; min-height: 640px; margin: auto; }
.welcome-copy { position: relative; padding: 18px 0 25px 8px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--pink-dark); font-size: 9px; font-weight: 800; letter-spacing: 1.5px; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px rgba(255,77,141,.14); }
h1 { margin: 21px 0 13px; font: 800 clamp(64px, 7vw, 94px)/.82 var(--display); letter-spacing: -4.8px; }
.title-highlight { position: relative; display: inline-block; color: var(--pink); transform: rotate(-3deg); transform-origin: left center; }
.title-highlight::after { position: absolute; content: ''; height: 12px; left: 3px; right: 3px; bottom: -1px; border-radius: 50%; background: var(--yellow); z-index: -1; transform: rotate(-2deg); }
.intro-copy { max-width: 360px; margin: 25px 0 27px; color: #6f6473; font-size: 14px; line-height: 1.8; }
.how-to { position: relative; display: flex; align-items: center; gap: 12px; max-width: 365px; padding: 14px 16px; border: 1.5px solid rgba(51,37,59,.16); border-radius: 15px 13px 16px 12px; background: rgba(255,253,251,.78); box-shadow: 3px 4px 0 rgba(51,37,59,.08); font-size: 11px; font-weight: 700; line-height: 1.45; }
.how-number { display: grid; place-items: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: var(--mint); font: 800 13px var(--display); }
.how-arrow { margin-left: auto; color: var(--pink); font-size: 20px; }
.sticker { position: absolute; display: grid; place-items: center; border: 2px solid var(--outline); box-shadow: 3px 3px 0 var(--outline); }
.sticker-sun { width: 72px; height: 72px; right: 9px; top: 23px; border-radius: 50%; background: var(--yellow); color: var(--ink); text-align: center; transform: rotate(11deg); font: 800 11px/1.02 var(--display); }
.sticker-sun i { position: absolute; right: -9px; top: -7px; color: var(--pink); font-size: 20px; font-style: normal; }
.doodle { position: absolute; pointer-events: none; color: var(--pink); }
.doodle-star { right: 20px; top: 155px; font-size: 24px; transform: rotate(12deg); }
.privacy-sticker { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; color: #827582; font-size: 10px; font-weight: 700; }
.privacy-sticker span { color: var(--pink); font-size: 17px; }

.entry-card { position: relative; padding: 29px 32px 24px; border: 2px solid var(--outline); border-radius: 24px 21px 27px 22px; background: var(--white); box-shadow: 8px 9px 0 var(--outline); transform: rotate(.5deg); }
.card-tape { position: absolute; width: 92px; height: 17px; top: -9px; left: calc(50% - 46px); border: 1px solid rgba(105,86,90,.2); background: rgba(255,209,102,.83); transform: rotate(-2deg); }
.entry-heading, .panel-heading, .game-card-heading, .chat-heading { display: flex; align-items: center; gap: 13px; }
.entry-flower { display: grid; place-items: center; width: 42px; height: 42px; border: 1.5px solid var(--outline); border-radius: 13px 10px 13px 11px; background: #ffe0eb; color: var(--pink-dark); font-size: 24px; transform: rotate(-7deg); }
.section-kicker { margin: 0 0 2px; color: var(--pink-dark); font-size: 8px; font-weight: 800; letter-spacing: 1.55px; }
.entry-heading h2 { margin: 0; font: 800 29px/1.1 var(--display); letter-spacing: -.5px; }
.form-stack { display: grid; gap: 9px; }
.entry-heading + .form-stack { margin-top: 24px; }
.form-stack label { margin-top: 3px; color: #605465; font-size: 10px; font-weight: 800; }
.form-stack input { width: 100%; min-height: 45px; padding: 0 13px; border: 1.5px solid rgba(51,37,59,.28); border-radius: 11px; background: #fffbf8; color: var(--ink); font-size: 12px; }
.form-stack input::placeholder { color: #a195a1; }
.primary-button, .secondary-button { width: 100%; min-height: 49px; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 5px; padding: 0 16px; border: 1.7px solid var(--outline); border-radius: 13px 11px 14px 10px; cursor: pointer; font: 800 16px var(--display); transition: transform .15s ease, box-shadow .15s ease; }
.primary-button { background: var(--pink); color: #fff; box-shadow: 4px 4px 0 var(--outline); }
.primary-button:hover, .secondary-button:hover { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--outline); }
.primary-button span:last-child, .secondary-button span:last-child { font: 700 18px var(--body); }
.form-divider { position: relative; display: flex; justify-content: center; align-items: center; margin: 18px 0 15px; color: #968a99; font-size: 8px; font-weight: 800; letter-spacing: 1.4px; }
.form-divider::before, .form-divider::after { content: ''; flex: 1; height: 1px; background: rgba(51,37,59,.14); }
.form-divider span { padding: 0 10px; }
.secondary-button { justify-content: center; background: var(--yellow); color: var(--ink); box-shadow: 3px 3px 0 var(--outline); }
.secondary-button span { margin-left: auto; }
.entry-footnote { margin: 16px 0 0; color: #958995; text-align: center; font-size: 9px; font-weight: 600; }

.room-layout { position: relative; display: grid; grid-template-columns: minmax(260px, .76fr) minmax(0, 1.24fr); align-items: start; gap: 23px; }
.room-sidebar { display: grid; gap: 14px; }
.room-card { padding: 18px 19px; border: 1.5px solid var(--outline); border-radius: 17px 14px 18px 15px; background: var(--white); box-shadow: 4px 4px 0 rgba(51,37,59,.82); }
.room-identity { position: relative; overflow: hidden; background: var(--yellow); }
.room-identity::after { position: absolute; content: '✷'; right: 15px; bottom: -13px; color: rgba(255,77,141,.6); font: 70px var(--display); transform: rotate(12deg); }
.room-card-top, .members-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.online-stamp { display: inline-flex; align-items: center; gap: 6px; font-size: 8px; font-weight: 800; letter-spacing: 1.15px; }
.online-stamp i, .chat-live i { width: 7px; height: 7px; border-radius: 50%; background: #42a982; box-shadow: 0 0 0 3px rgba(66,169,130,.16); }
.room-round-pill { position: relative; z-index: 1; padding: 5px 8px; border: 1px solid rgba(51,37,59,.38); border-radius: 20px; background: rgba(255,253,251,.57); font-size: 8px; font-weight: 800; letter-spacing: .8px; }
.room-identity h2 { position: relative; z-index: 1; margin: 17px 0 2px; font: 800 27px/1.05 var(--display); overflow-wrap: anywhere; }
.room-subtitle { position: relative; z-index: 1; margin: 0; color: #665b68; font-size: 10px; }
.panel-heading h3, .members-heading h3 { margin: 0; font: 800 19px/1.1 var(--display); }
.panel-icon { display: grid; place-items: center; flex: 0 0 35px; width: 35px; height: 35px; border: 1px solid var(--outline); border-radius: 11px; background: #ffe0eb; color: var(--pink-dark); font-size: 20px; }
.panel-copy { margin: 13px 0 9px; color: #736777; font-size: 10px; line-height: 1.55; }
.invite-link-row { display: flex; gap: 6px; }
.invite-link-row input { width: 100%; min-width: 0; padding: 0 9px; border: 1px solid rgba(51,37,59,.24); border-radius: 9px; background: #fffaf7; color: #675b69; font-size: 9px; }
.copy-button { flex: 0 0 auto; min-height: 37px; padding: 0 11px; border: 1px solid var(--outline); border-radius: 9px; background: var(--yellow); cursor: pointer; font-size: 10px; font-weight: 800; }
.share-button { width: 100%; min-height: 39px; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 9px; border: 1px solid var(--outline); border-radius: 10px; background: #dff5ed; cursor: pointer; font-size: 10px; font-weight: 800; }
.share-button span { color: #25775f; }
.quiet-button { width: 100%; padding: 9px 0 0; border: 0; background: transparent; color: #817581; cursor: pointer; font-size: 9px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.owner-note { margin: 10px 0 0; color: #a0909e; font-size: 8px; line-height: 1.45; }
.member-count { display: inline-grid; place-items: center; min-width: 21px; height: 21px; margin-left: 3px; border-radius: 50%; background: var(--mint); font: 800 12px var(--display); }
.members-sparkle { color: var(--pink); font-size: 22px; }
.players-list { display: grid; gap: 7px; max-height: 210px; overflow-y: auto; padding: 0; margin: 13px 0 0; list-style: none; }
.player-item { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 8px; border: 1px solid rgba(51,37,59,.12); border-radius: 10px; background: #fffbf8; }
.player-avatar { display: grid; place-items: center; flex: 0 0 27px; width: 27px; height: 27px; border-radius: 9px; background: #ffe0eb; color: var(--pink-dark); font: 800 12px var(--display); }
.player-item:nth-child(3n+2) .player-avatar { background: var(--mint); color: #28715f; }
.player-item:nth-child(3n) .player-avatar { background: #fff0bf; color: #8a6712; }
.player-info { flex: 1; min-width: 0; }
.player-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 800; }
.player-role { margin-top: 2px; color: #998d9a; font-size: 8px; }
.player-choice { flex: 0 0 auto; padding: 4px 6px; border-radius: 9px; background: #f7eafa; color: #704578; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.host-controls { display: grid; gap: 8px; }
.next-round-button { width: 100%; min-height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border: 1.4px solid var(--outline); border-radius: 10px; background: var(--mint); cursor: pointer; font: 800 13px var(--display); }
.next-round-button span:last-child { font: 700 17px var(--body); }
.end-game-button { width: 100%; min-height: 38px; padding: 0 10px; border: 1px solid var(--outline); border-radius: 10px; background: #ffe2eb; color: #73344e; cursor: pointer; font: 800 10px var(--display); }
.game-end-summary { margin: 0; color: #7b6b7b; font-size: 9px; line-height: 1.5; }
.erase-room-button { padding: 7px; border: 0; background: transparent; color: #9a5c68; cursor: pointer; font-size: 9px; font-weight: 700; text-decoration: underline; }
.room-privacy-note { display: flex; align-items: flex-start; gap: 7px; margin: 0; padding: 3px 2px; color: #8d808d; font-size: 9px; line-height: 1.6; }
.room-privacy-note span { color: var(--pink); font-size: 13px; }

.room-main { min-width: 0; display: grid; gap: 14px; }
.game-card { position: relative; padding: 19px 21px 17px; overflow: hidden; border: 1.8px solid var(--outline); border-radius: 18px 15px 20px 16px; background: #fff2c8; box-shadow: 5px 5px 0 var(--outline); }
.game-card::before { position: absolute; content: ''; width: 72px; height: 15px; top: -8px; left: 35px; border: 1px solid rgba(105,86,90,.16); background: rgba(255,77,141,.32); transform: rotate(-3deg); }
.game-card-heading { justify-content: space-between; align-items: flex-start; }
.game-card-heading h2, .chat-heading h2 { margin: 0; font: 800 22px/1.1 var(--display); }
.game-star { color: var(--pink); font-size: 26px; }
.game-instruction { margin: 10px 0 11px; color: #766b72; font-size: 10px; }
.prompt-pool-count { width: fit-content; max-width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: -3px 0 10px; padding: 5px 9px; border: 1px solid rgba(51,37,59,.2); border-radius: 999px; background: rgba(255,253,251,.9); color: #786c7c; font-size: 8px; font-weight: 800; letter-spacing: .65px; }
.prompt-pool-count strong { color: var(--pink-dark); }
.game-choice-row { display: grid; grid-template-columns: 1fr 28px 1fr; align-items: center; gap: 7px; max-width: 465px; }
.choice-button { min-height: 47px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1.6px solid var(--outline); border-radius: 12px 10px 13px 11px; cursor: pointer; font: 800 16px var(--display); box-shadow: 3px 3px 0 var(--outline); transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease; }
.choice-button:hover:not(:disabled) { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--outline); }
.truth-button { background: #ffdbe7; }
.dare-button { background: var(--yellow); }
.choice-symbol { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid rgba(51,37,59,.15); border-radius: 8px; background: rgba(255,255,255,.6); color: var(--pink-dark); font-size: 14px; }
.dare-button .choice-symbol { color: #a66d09; }
.choice-arrow { margin-left: auto; color: inherit; font: 700 16px var(--body); opacity: .65; }
.or-divider { text-align: center; color: #948896; font-size: 8px; font-weight: 800; }
.choice-button:disabled { cursor: not-allowed; }
.choice-button:disabled:not(.is-picked) { opacity: .42; box-shadow: none; }
.choice-button.is-picked { transform: translate(3px,3px); box-shadow: 0 0 0 var(--outline); }
.prompt-display { min-height: 25px; margin: 12px 0 0; padding: 9px 11px; border: 1px dashed rgba(51,37,59,.28); border-radius: 10px; background: rgba(255,253,251,.53); color: #645867; font: 700 13px/1.4 var(--display); }
.prompt-display.is-picked { background: #fffdfb; color: var(--ink); }
.chat-card { min-width: 0; display: grid; grid-template-rows: auto minmax(190px, 1fr) auto auto auto; gap: 0; overflow: hidden; border: 1.8px solid var(--outline); border-radius: 19px 16px 21px 17px; background: var(--white); box-shadow: 5px 5px 0 var(--outline); }
.chat-heading { min-height: 58px; justify-content: space-between; padding: 11px 16px 10px; border-bottom: 1px solid rgba(51,37,59,.12); background: #fffaf7; }
.chat-heading h2 { display: flex; align-items: center; gap: 9px; font-size: 20px; }
.chat-live { display: inline-flex; align-items: center; gap: 6px; color: #4b8a74; font: 800 7px var(--body); letter-spacing: 1.1px; }
.chat-live i { width: 6px; height: 6px; }
.chat-doodle { color: var(--pink); font-size: 26px; transform: rotate(-12deg); }
.message-feed-stage { position: relative; min-height: 190px; height: min(40vh, 375px); }
.message-feed { position: relative; z-index: 1; height: 100%; min-height: 0; display: flex; flex-direction: column; gap: 9px; overflow-y: auto; padding: 15px 15px 12px; background: radial-gradient(rgba(239,181,201,.25) .6px, transparent .6px); background-size: 15px 15px; user-select: none; -webkit-touch-callout: none; }
.archive-history-button { position: absolute; z-index: 3; top: 7px; left: 50%; min-height: 29px; padding: 0 11px; transform: translateX(-50%); border: 1px solid var(--outline); border-radius: 99px; background: #fff4cf; color: var(--ink); cursor: pointer; font-size: 8px; font-weight: 800; box-shadow: 1px 2px 0 rgba(51,37,59,.16); }
.archive-history-button[hidden] { display: none; }
.room-watermark { position: absolute; z-index: 20; inset: 0; display: grid; place-items: center; overflow: hidden; pointer-events: none; user-select: none; -webkit-touch-callout: none; }
.room-watermark::before { content: attr(data-watermark); color: rgba(51,37,59,.12); font: 900 clamp(16px, 2.5vw, 25px)/1.2 var(--display); letter-spacing: 2px; text-align: center; text-transform: uppercase; transform: rotate(-17deg); }
#room-screen .game-card, #room-screen .room-identity, #room-screen .member-card, #room-screen .players-list, #room-screen .host-controls, #room-screen .message-feed { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
#room-screen input, #room-screen textarea { user-select: text; -webkit-user-select: text; }
.room-end-note { margin: 0 0 13px; padding: 10px 13px; border: 1px dashed rgba(51,37,59,.24); border-radius: 12px; background: #fff4cf; color: #67546b; font: 700 11px/1.5 var(--display); }
.message-empty { max-width: 250px; align-self: center; margin: auto; padding: 12px 16px; border: 1px dashed rgba(51,37,59,.25); border-radius: 13px; background: rgba(255,253,251,.9); color: #8b7d8c; text-align: center; font: 600 12px/1.5 var(--display); }
.message { max-width: 82%; align-self: flex-start; padding: 8px 10px; border: 1px solid rgba(51,37,59,.12); border-radius: 12px 12px 12px 4px; background: #fff; box-shadow: 1px 2px 0 rgba(51,37,59,.05); overflow-wrap: anywhere; }
.message.is-own { align-self: flex-end; border-radius: 12px 12px 4px 12px; background: #e5f6ef; }
.message.is-game { max-width: 92%; align-self: center; border: 1px dashed rgba(51,37,59,.22); border-radius: 12px; background: #fff4cf; text-align: center; }
.message.is-system { max-width: 92%; align-self: center; padding: 4px 10px; border: 0; background: transparent; color: #9a8c9b; box-shadow: none; text-align: center; font-size: 9px; }
.message-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; color: #827582; font-size: 8px; font-weight: 800; }
.message-time { color: #a99daa; font-size: 7px; font-weight: 600; }
.message-body { margin: 0; color: #46374b; font-size: 11px; line-height: 1.55; white-space: pre-wrap; }
.message.is-sticker { max-width: none; padding: 5px 8px; background: rgba(255,255,255,.86); }
.sticker-message { font-size: 36px; line-height: 1.2; }
.media-message { display: grid; gap: 7px; }
.media-preview-button { min-height: 34px; padding: 0 10px; border: 1px solid rgba(51,37,59,.25); border-radius: 9px; background: #fffaf7; cursor: pointer; font-size: 9px; font-weight: 800; }
.media-preview { display: block; max-width: min(340px, 100%); max-height: 320px; border-radius: 10px; object-fit: contain; background: #f2edf4; }
video.media-preview { width: min(340px, 100%); height: auto; }
.media-composer { display: grid; gap: 7px; padding: 9px 13px; border-top: 1px solid rgba(51,37,59,.1); background: #fff7ee; }
.media-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.media-upload-button, .sticker-toggle { min-height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0 11px; border: 1px solid var(--outline); border-radius: 9px; background: #fff; color: var(--ink); cursor: pointer; font-size: 9px; font-weight: 800; }
.media-upload-button { background: #e4f5ef; }
.sticker-toggle { background: #eee7ff; }
.media-note { margin: 0; color: #8d7e8c; font-size: 8px; line-height: 1.45; }
.sticker-tray { display: flex; flex-wrap: wrap; gap: 5px; padding: 7px; border: 1px dashed rgba(51,37,59,.2); border-radius: 10px; background: rgba(255,255,255,.8); }
.sticker-tray button { width: 37px; height: 37px; border: 1px solid rgba(51,37,59,.13); border-radius: 9px; background: #fff; cursor: pointer; font-size: 21px; }
.sticker-tray button:hover { background: #fff0f6; }
.sticker-tray[hidden] { display: none; }
.media-composer[hidden], .voice-composer[hidden], .message-composer[hidden] { display: none; }
.listen-button { min-height: 34px; padding: 0 10px; border: 1px solid rgba(51,37,59,.25); border-radius: 9px; background: #fffaf7; cursor: pointer; font-size: 9px; font-weight: 800; }
.message-audio { width: min(245px, 100%); height: 37px; margin-top: 5px; }
.message-composer { display: flex; align-items: flex-end; gap: 8px; padding: 11px 13px; border-top: 1px solid rgba(51,37,59,.12); background: #fffdfb; }
.message-composer textarea { flex: 1; min-width: 0; min-height: 38px; max-height: 100px; resize: vertical; padding: 10px 11px; border: 1.4px solid rgba(51,37,59,.24); border-radius: 11px; background: #fffbf8; color: var(--ink); font-size: 11px; line-height: 1.4; }
.message-composer textarea::placeholder { color: #a195a1; }
.send-button { min-height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 0 11px; border: 1.4px solid var(--outline); border-radius: 10px; background: var(--pink); color: #fff; cursor: pointer; font: 800 12px var(--display); box-shadow: 2px 2px 0 var(--outline); }
.send-button span { font: 700 13px var(--body); }
.voice-composer { display: grid; grid-template-columns: minmax(145px, .68fr) minmax(0, 1.32fr); align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid rgba(51,37,59,.1); background: #f7f5ff; }
.voice-intro { display: flex; align-items: center; gap: 9px; }
.voice-icon { display: grid; place-items: center; flex: 0 0 31px; width: 31px; height: 31px; border: 1px solid var(--outline); border-radius: 10px; background: #eee7ff; color: #6849a6; font-size: 18px; }
.voice-intro strong { display: block; font: 800 12px var(--display); }
.voice-intro span:last-child { display: block; margin-top: 2px; color: #93879b; font-size: 8px; }
.voice-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.record-button, .stop-record-button { min-height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid #693348; border-radius: 10px; background: #fff0f4; color: #783247; cursor: pointer; font-size: 9px; font-weight: 800; }
.stop-record-button { background: #ffe1d6; color: #873920; }
.record-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 3px rgba(255,77,141,.17); }
.voice-status { flex: 1; min-width: 110px; margin: 0; color: #8c8090; font-size: 8px; line-height: 1.4; }
.voice-preview { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.voice-preview audio { width: min(260px, 100%); height: 35px; }
.send-voice-button, .discard-voice-button { min-height: 34px; padding: 0 9px; border: 1px solid var(--outline); border-radius: 9px; cursor: pointer; font-size: 9px; font-weight: 800; }
.send-voice-button { background: var(--mint); }
.discard-voice-button { margin-left: 5px; background: transparent; color: #8d6577; }

.site-footer { width: min(1240px, calc(100% - 56px)); min-height: 55px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(51,37,59,.14); color: #958995; font-size: 7px; font-weight: 800; letter-spacing: 1.25px; text-align: center; }
.footer-sparkle { color: var(--pink); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
@media (max-width: 900px) {
  .site-header { width: min(100% - 38px, 680px); height: 72px; }
  .page-shell { width: min(100% - 38px, 680px); padding: 28px 0 36px; }
  .entry-layout, .room-layout { grid-template-columns: 1fr; gap: 23px; min-height: auto; }
  .entry-layout { max-width: 540px; margin: auto; }
  .welcome-copy { padding: 7px 0 0; }
  h1 { margin: 16px 0 9px; font-size: clamp(62px, 13vw, 81px); }
  .intro-copy { margin: 17px 0 16px; font-size: 12px; }
  .how-to { max-width: 410px; }
  .sticker-sun { right: 12px; top: 8px; width: 60px; height: 60px; font-size: 9px; }
  .doodle-star { right: 13px; top: 111px; font-size: 19px; }
  .privacy-sticker { margin-top: 14px; }
  .entry-card { transform: none; }
  .room-layout { max-width: 650px; margin: auto; }
  .room-sidebar { grid-template-columns: 1fr 1fr; align-items: start; }
  .room-identity, .member-card, .room-privacy-note { grid-column: 1 / -1; }
  .room-privacy-note { order: 5; }
  .room-main { min-height: 640px; }
  .chat-card { grid-template-rows: auto minmax(240px, 1fr) auto auto auto; flex: 1; }
  .message-feed-stage { height: min(46vh, 460px); min-height: 240px; }
  .site-footer { width: min(100% - 38px, 680px); flex-wrap: wrap; justify-content: center; padding: 13px 0; font-size: 6px; }
}
@media (max-width: 520px) {
  .site-header { width: calc(100% - 32px); }
  .header-tools { gap: 0; }
  .header-note { display: none; }
  .audio-controls { gap: 5px; }
  .audio-toggle { min-height: 32px; gap: 3px; padding: 0 7px; font-size: 9px; }
  .page-shell { width: calc(100% - 28px); padding: 22px 0 30px; }
  .eyebrow { max-width: 230px; font-size: 8px; letter-spacing: 1.1px; }
  h1 { font-size: 64px; letter-spacing: -3.8px; }
  .sticker-sun { right: 0; top: 6px; width: 52px; height: 52px; font-size: 8px; }
  .privacy-sticker { font-size: 9px; }
  .entry-card { padding: 25px 19px 20px; }
  .entry-heading h2 { font-size: 26px; }
  .room-sidebar { grid-template-columns: 1fr; gap: 10px; }
  .room-identity, .member-card, .room-privacy-note { grid-column: auto; }
  .room-card { padding: 15px; }
  .invite-card { order: 2; }
  .member-card { order: 3; }
  .host-controls { order: 4; }
  .room-privacy-note { order: 5; }
  .room-main { min-height: 620px; }
  .game-card { padding: 16px 14px 13px; }
  .game-card-heading h2 { font-size: 20px; }
  .game-instruction { font-size: 9px; line-height: 1.5; }
  .game-choice-row { grid-template-columns: 1fr 22px 1fr; gap: 4px; }
  .choice-button { min-height: 45px; gap: 6px; padding: 0 8px; font-size: 15px; }
  .choice-symbol { width: 22px; height: 22px; }
  .prompt-display { font-size: 12px; }
  .chat-card { grid-template-rows: auto minmax(230px, 1fr) auto auto auto; }
  .message-feed-stage { height: 39vh; min-height: 230px; }
  .message-feed { padding: 12px 10px; }
  .message { max-width: 91%; }
  .message-composer { gap: 6px; padding: 9px; }
  .send-button { padding: 0 9px; }
  .voice-composer { grid-template-columns: 1fr; gap: 8px; padding: 10px; }
  .voice-intro { gap: 8px; }
  .voice-preview { grid-column: auto; }
  .media-composer { padding: 9px; }
  .room-watermark::before { font-size: 14px; }
  .site-footer { width: calc(100% - 28px); gap: 7px; }
  .site-footer > span:first-child { flex-basis: 100%; }
}
@media print {
  body * { visibility: hidden !important; }
  body::after { content: "Private Truth or Dare room — printing the chat and media is disabled."; position: fixed; inset: 35% 10% auto; color: #33253b; font: 700 18px/1.4 sans-serif; text-align: center; visibility: visible; }
}
