:root{font:100%/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-optical-sizing:auto;--bg:#f5ecf1;--ink:#35213a;--muted:#5b4758;--accent:#9b2844;--surface:#fffdfd;--line:#452b3b20;--deck-color:#eea6ba;color:var(--ink);background:var(--bg);font-synthesis:none;color-scheme:light}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit;color:inherit}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{cursor:pointer;border:0}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--accent);outline-offset:4px}button:active:not(:disabled){transform:scale(.97);filter:brightness(.95)}[hidden]{display:none!important}h1,h2,p{margin:0}h1{font:normal clamp(2.6rem,4.6vw,4rem)/1.08 Georgia,serif;letter-spacing:-.045em}h2{font-size:1.65rem;line-height:1.15;font-weight:650;letter-spacing:-.025em}.header{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:1.5rem;padding:1.1rem max(1.5rem,calc((100vw - 1184px)/2));background:#f5ecf1e6;backdrop-filter:blur(24px) saturate(150%);-webkit-backdrop-filter:blur(24px) saturate(150%)}.wordmark{color:var(--accent);text-decoration:none;font:bold 2.6rem/1 Georgia,serif;letter-spacing:-.07em}.wordmark span{font-size:1.65rem;vertical-align:.2rem;margin-left:.35rem;letter-spacing:0}.quiet{background:transparent;font-size:.875rem;font-weight:500;padding:.7rem .35rem;min-height:44px;border-radius:.5rem}.quiet:hover{background:#452b3b08}#help{margin-left:auto}.help-icon{display:inline-grid;place-items:center;width:1.15rem;height:1.15rem;border:1px solid currentColor;border-radius:50%;margin-left:.35rem;font-size:.75rem}main{max-width:1184px;margin:0 auto;padding:0 1.5rem}.mode-picker{display:flex;padding:4px;border-radius:100px;background:#452b3b0c;flex-shrink:0;gap:2px}.mode-picker button{border-radius:100px;min-height:44px;font-size:.875rem;font-weight:550;padding:.55rem 1.1rem;background:transparent;white-space:nowrap}.mode-picker button[aria-pressed=true]{background:#fff;box-shadow:0 2px 6px #452b3b14}.section-heading{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;margin-bottom:1.3rem}.section-heading>span{font-size:.875rem;color:var(--muted)}/* The small card backs carry the deck identities; the surrounding controls stay quiet. */
.decks{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.deck{position:relative;text-align:left;background:var(--surface);border:2px solid transparent;border-radius:1.25rem;min-height:164px;padding:1.35rem 1.1rem;display:grid;grid-template-columns:64px 1fr;gap:.35rem 1rem;align-content:center;box-shadow:0 2px 7px #35213a05}
.deck[aria-pressed=true]{border-color:var(--accent);background:#fceaf0}
.deck-title{font-size:1.125rem;line-height:1.2;font-weight:650;letter-spacing:-.025em;grid-row:1;grid-column:2}
.deck-mood{font-size:.875rem;line-height:1.45;margin-top:.15rem;grid-column:2}
.deck-count{font-size:.75rem;margin-top:.4rem;grid-column:2;color:var(--muted)}
.deck-art{position:relative;isolation:isolate;display:grid;place-items:center;grid-row:1/4;grid-column:1;width:60px;height:92px;background:var(--ink);color:var(--surface);border:1px solid #35213a20;border-radius:.65rem;transform:rotate(-5deg)}
.deck-art::before{content:'';position:absolute;inset:2px -4px -3px 3px;border-radius:inherit;border:1px solid #35213a30;background:inherit;z-index:-1;transform:rotate(9deg)}
.deck-art::after{content:'';position:absolute;inset:5px;border:1px solid currentColor;opacity:.3;border-radius:.4rem}
.deck[data-deck=us] .deck-art,.deck[data-deck=spark] .deck-art{background:var(--accent)}
.deck[data-deck=choose] .deck-art,.deck[data-deck=do] .deck-art{background:#ead3df;color:var(--ink);transform:rotate(4deg)}
.deck-icon{width:32px;height:32px}
.check{display:none;position:absolute;right:.65rem;top:.65rem;border-radius:50%;width:1.1rem;height:1.1rem;text-align:center;background:var(--accent);color:white;font-size:.75rem;line-height:1.1rem}
.deck[aria-pressed=true] .check{display:block}
.mix{background:transparent;padding:.65rem .25rem;margin-top:.7rem;display:inline-flex;align-items:center;gap:.6rem;font-size:.875rem;min-height:44px;border-radius:.5rem}.mix span{width:1.25rem;height:1.25rem;border:1px solid #756571;border-radius:50%;display:grid;place-items:center;font-size:.875rem}.mix[aria-pressed=true] span{background:var(--accent);color:#fff;border-color:var(--accent)}label{font-size:.875rem;font-weight:500;display:flex;flex-direction:column;gap:.45rem}input{border:1px solid #452b3b26;background:#ffffffb3;border-radius:.8rem;padding:.8rem 1rem;font-size:1rem;min-width:0;width:100%;min-height:50px}input::placeholder{color:var(--muted);opacity:1}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:.65rem;min-height:52px;padding:.8rem 1.4rem;border-radius:100px;font-size:1rem;font-weight:600;line-height:1.3}.primary{background:var(--accent);color:#fff}.primary:hover{background:#7f1e38}.secondary{background:#fff9;border:1px solid #452b3b26}.secondary:hover{background:#fff}.resume-row{display:flex;flex-wrap:wrap;gap:1.25rem}.resume-row:has(button:not([hidden])){padding-bottom:1.7rem}.resume{display:inline-flex;align-items:center;gap:.8rem;padding:.6rem 0;border-bottom:1px solid var(--accent);background:transparent;color:var(--accent);font-size:.875rem;min-height:44px}.resume span{color:var(--muted);font-size:.75rem}.center-screen{max-width:560px;text-align:center;padding-top:2.5rem;padding-bottom:2rem}.room-symbol{font:normal 3rem Georgia,serif;color:var(--accent);margin-bottom:1rem}.center-screen h1{font-size:2.6rem}.center-screen>p{font-size:1rem;line-height:1.6;color:var(--muted);margin-top:1.1rem}.join-form{margin:2rem auto 1rem;max-width:340px;display:flex;flex-direction:column;gap:1.25rem;text-align:left}.join-form .primary{width:100%}.members{display:flex;gap:1rem;margin:2rem 0;justify-content:center}.member{flex:1;min-width:0;max-width:210px;padding:1.2rem .7rem;border-radius:1.3rem;background:#fff9;display:flex;flex-direction:column;align-items:center;gap:.4rem}.member-avatar{display:grid;place-items:center;width:3rem;height:3rem;background:#ecc2cd;color:#762439;border-radius:50%;font-size:1.3rem;font-weight:600;margin-bottom:.2rem}.member.waiting .member-avatar{background:#452b3b0c;color:var(--muted)}.member-name{font-size:1rem;font-weight:600;max-width:100%;overflow-wrap:anywhere}.member-label{font-size:.8125rem;color:var(--muted)}.invite-area{text-align:left;border-radius:1.2rem;background:#fff9;padding:1.2rem}.invite-field{display:flex;gap:.65rem;margin-top:.5rem}.invite-field input{font-size:.875rem}.invite-field button{white-space:nowrap;font-size:.875rem;padding:.7rem 1rem}.invite-area>p{font-size:.8125rem;color:var(--muted);min-height:1.2rem;margin-top:.6rem}.lobby-actions{margin-top:1.75rem;display:flex;align-items:center;flex-direction:column;gap:.9rem}.lobby-actions .primary{min-width:240px}.lobby-deck{font-size:.875rem;color:var(--muted)}.room-status{font-size:.875rem!important;min-height:1.5rem}.storage-note{font-size:.8125rem!important;line-height:1.6;color:var(--muted);margin:1.2rem 0 1.7rem}.game-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.5rem 0}.game-toolbar>span{font-size:.875rem;color:var(--muted);white-space:nowrap}.room-bar{display:flex;justify-content:space-between;align-items:center;gap:1rem;max-width:560px;margin:.5rem auto 0;font-size:.875rem;color:var(--muted)}#room-players{overflow-wrap:anywhere}.connection{font-size:.8125rem;color:#386946;background:#e2ede4;border-radius:100px;padding:.35rem .65rem;min-height:36px;white-space:nowrap}.connection[data-state=offline]{background:#fae5dc;color:#984023}.play-area{max-width:600px;margin:1.5rem auto 0;text-align:center}.turn{font-size:.9375rem;margin-bottom:1.4rem;min-height:1.5rem;overflow-wrap:anywhere}.turn strong{font-weight:600}.card-stack{position:relative;max-width:560px;margin:0 auto 2rem;isolation:isolate}.card-under{position:absolute;inset:0;background:var(--deck-color);border:1px solid #452b3b1a;border-radius:1.5rem;z-index:-1}.under-one{transform:rotate(2deg) translate(3px,6px)}.under-two{transform:rotate(-2deg) translate(-1px,7px)}.playing-card{position:relative;background:var(--surface);border:1px solid #452b3b14;border-radius:1.5rem;padding:1.7rem 2rem 1.5rem;min-height:370px;display:flex;flex-direction:column;box-shadow:0 6px 24px #452b3b09;touch-action:pan-y;user-select:none;-webkit-user-select:none}.card-top,.card-bottom{display:flex;justify-content:space-between;align-items:center;gap:1rem;text-align:left}.card-top{font-size:.875rem;font-weight:550}.card-top>span:last-child{font:normal 1.8rem Georgia,serif;color:var(--accent)}.question-wrap{flex:1;display:grid;place-items:center;padding:2rem 0}.question-wrap p{font-size:clamp(1.6rem,2.5vw,2.05rem);line-height:1.28;font-weight:550;letter-spacing:-.028em;max-width:460px}.card-bottom>span:first-child{font:bold 1.6rem Georgia,serif;letter-spacing:-.06em;color:var(--accent)}.card-bottom>span:last-child{font-size:.75rem;color:var(--muted);text-align:right}.game-controls{display:flex;justify-content:center;gap:.8rem}.game-controls .primary{min-width:210px}.game-hint{font-size:.875rem;line-height:1.6;margin-top:1.5rem;color:var(--muted)}.finished{max-width:600px;text-align:center;margin:3rem auto}.finished>span{font:normal 4rem Georgia,serif;color:var(--accent)}.finished h1{margin:1rem 0}.finished p{font-size:1rem;color:var(--muted);margin:1rem 0 2rem;line-height:1.65}.finished>div{display:flex;flex-wrap:wrap;justify-content:center;gap:.75rem}.finished>.quiet{margin-top:1.3rem}.inline-error{font-size:.875rem;line-height:1.6;color:#a22d30;flex-basis:100%;margin-top:.5rem}dialog{background:#fffafcf5;color:var(--ink);border:1px solid #fff8;border-radius:1.7rem;max-width:480px;width:calc(100% - 2rem);max-height:calc(100dvh - 3rem);padding:1.8rem;box-shadow:0 24px 80px #35293330;backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px)}dialog::backdrop{background:#35293370}dialog h2{font-size:1.8rem;margin-bottom:1.1rem}dialog p,dialog li{font-size:1rem;line-height:1.65}dialog p+p{margin-top:1rem}dialog ol{padding-left:1.5rem}dialog li{padding-left:.3rem;margin-bottom:.75rem}dialog .small-print{font-size:.8125rem;color:var(--muted);margin:1rem 0 1.4rem}.dialog-close{display:block;margin:-.6rem -.3rem .5rem auto}.dialog-actions{display:flex;gap:.7rem;margin-top:1.5rem;flex-wrap:wrap}#got-it{width:100%}.toast{position:fixed;bottom:calc(1.5rem + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 2rem);padding:.85rem 1.2rem;background:#352933ed;color:white;border-radius:1rem;font-size:.875rem;z-index:20;box-shadow:0 4px 25px #35293320}
@media(max-width:900px){.decks{grid-template-columns:repeat(2,1fr)}.header{padding:1rem 1.5rem}}
@media(max-width:600px){.header{padding:.9rem 1.25rem;gap:1rem}.wordmark{font-size:2.25rem}.wordmark span{font-size:1.45rem}main{padding:0 1.25rem}.mode-picker{width:100%}.mode-picker button{flex:1}.section-heading{margin-bottom:1rem;gap:.5rem}h2{font-size:1.4rem}.section-heading>span{font-size:.8125rem;white-space:nowrap}.decks{gap:.7rem}.deck{min-height:225px;padding:1.1rem .9rem;display:flex;flex-direction:column;gap:.3rem;align-items:flex-start}.deck-art{width:41px;height:59px;margin:.1rem 0 .6rem .15rem;flex-shrink:0}.deck-icon{width:24px;height:24px}.deck-title{font-size:1.05rem;min-height:2.55rem;max-width:100%}.deck-mood{font-size:.875rem;line-height:1.4;margin-top:0}.deck-count{font-size:.75rem;margin-top:auto;padding-top:.45rem}.primary{min-height:52px}.resume-row{gap:.6rem}.resume{flex-wrap:wrap;gap:.5rem}.game-toolbar{padding:.4rem 0;gap:.3rem}.game-toolbar .quiet{font-size:.8125rem;padding:.7rem .1rem}.game-toolbar>span{font-size:.8125rem}.room-bar{margin:.3rem 0 0;gap:.65rem;font-size:.8125rem}.connection{font-size:.75rem}.play-area{margin-top:1.25rem}.turn{font-size:.875rem;margin-bottom:1.2rem}.playing-card{min-height:350px;padding:1.3rem 1.4rem 1.2rem}.question-wrap{padding:1.75rem 0}.question-wrap p{font-size:1.7rem;line-height:1.28}.card-top{font-size:.8125rem}.card-top>span:last-child{font-size:1.5rem}.card-bottom>span:last-child{font-size:.75rem;max-width:140px}.game-controls .primary{min-width:0;flex:1}.game-controls .secondary{padding:.8rem 1.1rem}.game-hint{font-size:.875rem;max-width:310px;margin:1.3rem auto 0}.storage-note{max-width:320px;margin:1rem auto 1.5rem}.center-screen{padding-top:2rem}.center-screen h1{font-size:2.25rem}.members{gap:.75rem}.member{padding:1.1rem .5rem}.invite-area{padding:1rem}.invite-field{flex-wrap:wrap}.invite-field input{width:100%}.invite-field button{width:100%}.lobby-actions .primary{width:100%}.finished{margin:2.25rem auto}.finished h1{font-size:2.5rem}dialog{padding:1.4rem}.dialog-actions>*{flex:1}.room-symbol{font-size:2.5rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important}}
@media(prefers-reduced-transparency:reduce){.header{background:var(--bg);backdrop-filter:none;-webkit-backdrop-filter:none}dialog{background:var(--surface);backdrop-filter:none;-webkit-backdrop-filter:none}}
@media(prefers-contrast:more){:root{--muted:#51414e;--line:#35293380}.header{background:var(--bg);border-bottom:1px solid var(--line)}.deck,.playing-card,input{border-color:var(--ink)}dialog{background:var(--surface);border:2px solid var(--ink)}}

.wordmark{display:inline-flex;align-items:center;min-height:44px}.connection{min-height:48px;min-width:48px}.noscript-note{padding:1rem;text-align:center;background:var(--surface)}

.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.home-screen{max-width:480px;padding-top:clamp(2rem,8vh,5rem)}
.intro-copy{font-size:1rem;color:var(--muted);text-align:center;margin-bottom:1.5rem}
.home-screen .mode-picker{width:100%;margin-bottom:2rem}
.home-screen .mode-picker button{flex:1}
.setup{display:flex;flex-direction:column;gap:1.5rem;margin:0;padding:0;border:0}
.player-fields{display:flex;flex-direction:column;gap:1.1rem}
.player-fields input{width:100%}
.setup>.primary{width:100%}
.home-screen .resume-row{margin-top:1.5rem;flex-direction:column;align-items:center}
.deck-picker-top{padding:.5rem 0 1rem}
#deck-title{font-size:clamp(1.8rem,3vw,2.6rem);font-family:inherit;font-weight:650;letter-spacing:-.035em}
.pick-form{display:flex;align-items:center;justify-content:space-between;gap:1.2rem;flex-wrap:wrap;border-top:1px solid var(--line);padding:1.4rem 0 2rem;margin-top:1rem}
.pick-form>span{font-size:.875rem;color:var(--muted)}
.pick-form .primary{min-width:180px}
#help-dialog .primary{margin-top:1.4rem}
@media(max-width:600px){.home-screen{padding-top:2rem}.pick-form{flex-direction:column-reverse;align-items:stretch;text-align:center;gap:1rem}.pick-form .inline-error{order:1}}

#leave-room{margin-left:auto}#leave-room:not([hidden])+#help{margin-left:0}.card-bottom{min-height:1.8rem}.inline-error{margin-top:1rem}.home-screen .mode-picker{margin-top:1rem}

@media(max-width:420px){.header{gap:.5rem}#leave-room:not([hidden])+#help .help-label{display:none}#leave-room:not([hidden])+#help{min-width:44px}#leave-room:not([hidden])+#help .help-icon{margin-left:0}}
