@import url('./fonts.css');
:root{--ink:#3c4a60;--muted:#7f8390;--rose:#a75f7d;--sky:#6392af;--line:#e7dde2;--paper:#fffdfb;--serif:Georgia,'Times New Roman',serif;font-family:'DM Sans',sans-serif;color:var(--ink);background:#fff9f6;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 8% 3%,#f9e4ee99,transparent 42%),radial-gradient(ellipse at 99% 15%,#dceef388,transparent 44%),radial-gradient(ellipse at 40% 90%,#f5ead477,transparent 50%),#fffaf7}
body:before{content:'';position:fixed;inset:0;pointer-events:none;z-index:-1;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.035' filter='url(%23n)'/%3E%3C/svg%3E")}
button,input,textarea{font:inherit}
button{cursor:pointer}
button:disabled{cursor:default;opacity:.55}
button,a,input,textarea{outline-offset:5px}
:focus-visible{outline:2px solid var(--sky)}
[hidden]{display:none!important}
.wrap{width:min(1050px,calc(100% - 64px));margin-inline:auto}
a{color:inherit;text-decoration:none}
.site-header{height:100px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e9dce280}
.brand{font-family:var(--serif);font-size:31px;letter-spacing:-1.5px;display:flex;align-items:center;gap:9px}
.brand>span:first-child{font-size:34px;color:#b77d95;line-height:1}
.brand-dot{color:#c4829f;margin-left:-7px}
.header-note{font:italic 13px var(--serif);color:#9a8794}
.hero{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;min-height:375px;padding:42px 0 45px;gap:30px}
.eyebrow{font-size:9px;font-weight:600;letter-spacing:2.1px;color:#a6828c;margin:0 0 20px}
h1{font-family:var(--serif);font-size:61px;font-weight:400;line-height:1.06;letter-spacing:-2.3px;margin:0}
h1 em{font-weight:400;color:#a86b89}
h2{font-family:var(--serif);font-weight:400;font-size:30px;letter-spacing:-.6px;margin:0}
h3{font:400 25px var(--serif);margin:0}
.hero-copy{font-size:12px;line-height:1.9;color:#7b7d8b;margin:22px 0 15px}
.tiny-note{font-size:10px;color:#9e8091}
.tiny-note span{font-size:18px;vertical-align:middle;margin-right:5px}
.hero-art{height:280px;position:relative}
.art-bubble{position:absolute;width:240px;height:116px;border-radius:36px;box-shadow:0 15px 30px #a2788c0c;border:1px solid #ffffffbd;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px}
.art-bubble:after{content:'';position:absolute;bottom:-8px;left:30px;width:25px;height:30px;transform:skewY(-35deg);border-radius:3px;background:inherit;z-index:-1}
.art-bubble span{font:italic 23px var(--serif);color:#9a6d83}
.art-bubble i{font-style:normal;font-size:30px;line-height:.5;letter-spacing:5px;color:#ba92a3}
.art-one{background:#f1dce4;left:8px;top:25px;transform:rotate(-9deg);z-index:1}
.art-two{background:#dcebf0;left:137px;top:119px;transform:rotate(7deg);z-index:2}
.art-two span{color:#6d8da1}
.art-two i{color:#97b2c4}
.art-two:after{left:auto;right:25px;transform:skewY(35deg)}
.art-heart{position:absolute;font:60px var(--serif);color:#c79bb1;right:35px;top:14px;transform:rotate(15deg)}
.art-star{position:absolute;color:#c8a56f;left:16px;bottom:31px;font-size:37px}
.art-caption{position:absolute;bottom:0;right:40px;font:italic 14px var(--serif);color:#ab929f}
#lobby{padding:0 0 45px}
#lobby>.eyebrow{margin-bottom:10px}
#lobby>h2{margin-bottom:25px}
.lobby-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.entry-card{position:relative;padding:30px 32px;border:1px solid #e9dce4;border-radius:21px;background:#fffdfad9;box-shadow:0 7px 24px #946d8006}
.join-card{background:#f5fafdcc;border-color:#dae5ed}
.entry-number{display:block;font-size:9px;color:#bc91a5;letter-spacing:2px;margin-bottom:12px}
.entry-card>p{font-size:11px;color:var(--muted);margin:12px 0 23px}
label{display:block;font-size:11px;font-weight:500;margin-bottom:8px}
label span{font-size:10px;font-weight:400;color:#93919a}
input,textarea{border:1px solid #e5dbe0;background:#fffdfbf2;border-radius:10px;padding:13px 14px;min-width:0;color:var(--ink);width:100%;font-size:12px}
input{height:45px}
input::placeholder,textarea::placeholder{color:#aaa1a8}
textarea{resize:vertical;min-height:112px;line-height:1.8;font-size:15px}
.input-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#room-code{text-transform:uppercase;letter-spacing:2px}
.primary,.secondary{border-radius:12px;min-height:44px;border:1px solid #d6b7c7;background:#edd5e0;color:#774961;padding:13px 21px;display:inline-flex;align-items:center;justify-content:center;gap:20px;font-size:11px;font-weight:500;transition:background .18s,transform .18s}
.primary:hover:enabled{background:#e9c8d9;transform:translateY(-1px)}
.secondary{background:#e4eff3;color:#4c728c;border-color:#c9dce5}
.secondary:hover:enabled{background:#d6e7ee}
.entry-card>button{margin-top:21px;width:100%}
.text-button{border:0;background:transparent;padding:7px 0;color:#8d6a80;font-size:10px;text-decoration:underline;text-underline-offset:4px}
.room-bar{border-block:1px solid var(--line);padding:15px 0;display:flex;justify-content:space-between;align-items:center;font-size:9px;gap:15px}
.room-bar>div{display:flex;align-items:center;gap:9px}
.live-dot{width:5px;height:5px;border-radius:50%;background:#80aa97;flex:none}
.offline .live-dot{background:#c69682}
.room-actions>span{font-size:8px;color:#99909c;letter-spacing:1px}
.room-actions strong{color:#72566a;margin-left:5px;letter-spacing:1.5px}
.room-actions{gap:16px!important}
.waiting{text-align:center;background:#ffffff85;padding:30px;border-radius:20px;margin-top:20px}
.waiting>span{color:#c18ca5;font-size:33px}
.waiting h2{font-size:25px;margin-top:7px}
.waiting p{font-size:11px;color:var(--muted)}
.board-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:30px 0 23px}
.board-heading .eyebrow{margin-bottom:9px;font-size:8px}
.board-heading h2{font-size:28px}
.compact{min-height:39px;font-size:10px;padding:11px 14px;gap:10px}
.board-shell{border:1px solid #e5dfe5;border-radius:18px;background:#fffdfaa6;padding:0 24px;box-shadow:0 9px 35px #93738204}
.board-info,.board-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:47px;font-size:9px;color:#8c8492}
.board-info{border-bottom:1px solid #ece4e8}
.board-bottom{border-top:1px solid #ece4e8;font-size:8px}
.board{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:24px 17px;padding:29px 0 32px}
.bubble{--bubble:#f1dde6;--edge:#d9b2c5;--dot:#ba8da3;background:transparent;border:0;position:relative;padding:0 0 14px;min-height:66px;color:#a18194;transition:transform .18s;isolation:isolate}
.bubble:hover:enabled{transform:translateY(-5px) rotate(-3deg)}
.bubble:nth-child(3n){transform:rotate(3deg)}
.bubble:nth-child(3n):hover:enabled{transform:translateY(-5px) rotate(0)}
.bubble-face{height:45px;width:100%;display:flex;align-items:center;justify-content:center;gap:5px;border:1px solid var(--edge);border-radius:17px;background:linear-gradient(135deg,#ffffff5c,var(--bubble));box-shadow:0 5px 11px #74617e06;position:relative}
.bubble-face:after{content:'';position:absolute;width:11px;height:13px;bottom:-5px;left:14px;background:var(--bubble);transform:skewY(-32deg);border-left:1px solid var(--edge);border-bottom:1px solid var(--edge);border-radius:0 0 3px 3px;z-index:-1}
.bubble:nth-child(2n) .bubble-face:after{left:auto;right:13px;transform:skewY(32deg);border-left:0;border-right:1px solid var(--edge)}
.bubble-dot{width:4px;height:4px;border-radius:50%;background:var(--dot)}
.bubble-num{display:block;font-size:8px;font-weight:500;letter-spacing:1px;padding-top:9px;color:#8f8393}
.bubble.used .bubble-face{background:#f2f2ec;border-color:#d9ddd2}
.bubble.used .bubble-face:after{background:#f2f2ec;border-color:#d9ddd2}
.bubble.used .bubble-dot{display:none}
.bubble.used .bubble-face:before{content:'♡';font:21px var(--serif);color:#91a78e}
.bubble.passed .bubble-face:before{content:'·';font-size:30px;color:#a7a1a8}
.bubble.active .bubble-face{outline:2px solid #bf93a8;outline-offset:4px}
.bubble:disabled{opacity:.6}
.theme-strip{display:flex;justify-content:center;flex-wrap:wrap;gap:14px 25px;padding:24px 0;color:#8b7b8a;font-size:9px}
.theme-strip span:before{content:'·';margin-right:8px;color:#bc8aa2;font-size:20px;vertical-align:middle}
progress{appearance:none;border:0;width:115px;height:3px;border-radius:2px;background:#f0e7eb}
progress::-webkit-progress-bar{background:#f0e7eb;border-radius:2px}
progress::-webkit-progress-value{background:#c995b0;border-radius:2px}
.finished{text-align:center;padding:40px 10px}
.finished>span{font-size:40px;color:#b8809a}
.finished h2{margin-top:15px;font-size:34px;line-height:1.3}
.finished h2 em{color:#a47891}
.finished p{font-size:11px;color:var(--muted)}
footer{margin-top:35px!important;padding:23px 0 27px;border-top:1px solid #e6dde3;display:flex;justify-content:space-between;gap:20px;color:#998a97;font-size:9px}
footer em{font:italic 14px var(--serif);color:#ae7894;margin-left:4px}
footer>span:last-child{font-size:7px;letter-spacing:1.5px;align-self:center}
.error{border:1px solid #e6c4c7;border-radius:10px;background:#fff3f1;padding:14px 16px;font-size:12px;color:#9e5961;line-height:1.6}
dialog{color:var(--ink);border:1px solid #e5d7e1;border-radius:25px;background:linear-gradient(135deg,#fffcfa,#f8f3f8);width:min(640px,calc(100% - 32px));max-height:calc(100dvh - 36px);overflow:auto;padding:34px 38px 27px;box-shadow:0 30px 90px #52465922}
dialog::backdrop{background:#6f819849;backdrop-filter:blur(7px)}
.close{position:absolute;right:15px;top:13px;background:transparent;border:1px solid #e7dde3;border-radius:50%;width:30px;height:30px;font-size:21px;line-height:1;color:#9d8c9b}
.pill{display:table;margin:0 auto 20px;border:1px solid #e5d5de;background:#f4e7ee;border-radius:20px;padding:6px 12px;font-size:9px;color:#a0758e}
#message-number{text-align:center;font-size:8px;margin:0 0 12px}
#message-stem{font-size:29px;line-height:1.35;text-align:center;max-width:500px;margin:0 auto 25px}
.dialog-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}
.dialog-actions>button{min-width:145px}
#answer-form>label{font-size:11px;color:#a17d94;margin:0 0 9px}
#answer-form>.primary{display:flex;width:100%;margin-top:20px}
.answer-meta{display:flex;justify-content:space-between;gap:15px;font-size:9px;color:#9b8b99;margin-top:8px;line-height:1.5}
#char-count{white-space:nowrap}
.pass-panel{text-align:center;margin-top:15px;border-top:1px solid #ece3e9;padding-top:10px}
.pass-panel p{font-size:11px;color:#9d6e86;line-height:1.7}
.pass-panel button{margin:0 7px;font-size:9px}
.sent-state{text-align:center;padding:8px 0 15px}
.sent-state>span{font-size:37px;color:#bc8aa3}
.sent-state>p:first-of-type{font:25px var(--serif);margin:9px 0}
.sent-state>p:last-of-type{font-size:11px;color:var(--muted)}
.sent-state blockquote{font-size:12px;color:#897c8e;line-height:1.8;background:#ffffff94;padding:15px;border-radius:12px;overflow-wrap:anywhere;margin:20px 0 0}
.result-caption{text-align:center;font-size:10px;color:#a18799;margin:0 0 20px}
.messages{display:flex;flex-direction:column;gap:17px}
.answer-bubble{background:#f1dfe7;border:1px solid #e2c7d6;border-radius:18px 18px 18px 3px;padding:19px 22px;width:90%;overflow-wrap:anywhere}
.answer-bubble:nth-child(2){background:#e1edf2;border-color:#cbdfe8;border-radius:18px 18px 3px 18px;align-self:flex-end}
.answer-bubble strong{display:block;font-size:9px;color:#9d7a8f;margin-bottom:9px;font-weight:500}
.answer-bubble:nth-child(2) strong{color:#7c96a7}
.answer-bubble p{font:20px/1.5 var(--serif);margin:0}
.answer-bubble .stem{color:#937e90}
.answer-bubble:nth-child(2) .stem{color:#7d91a1}
#result>.primary{display:flex;margin:24px auto 0;min-width:190px}
.toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);background:#fffdfc;border:1px solid #e4cbd9;box-shadow:0 8px 25px #54415715;padding:13px 21px;border-radius:13px;font-size:12px;z-index:10;width:max-content;max-width:calc(100% - 32px);text-align:center;line-height:1.5}

@media(max-width:1000px){.board{grid-template-columns:repeat(8,minmax(0,1fr));gap:23px 16px}
.hero-art{transform:scale(.9);transform-origin:center right}
.hero{grid-template-columns:1.1fr 1fr}
h1{font-size:55px}
}

@media(max-width:760px){.wrap{width:calc(100% - 40px)}
.site-header{height:78px}
.brand{font-size:28px}
.header-note{font-size:11px}
.hero{min-height:330px;padding:30px 0;grid-template-columns:1.2fr .8fr;gap:0}
h1{font-size:46px}
.eyebrow{font-size:7px;letter-spacing:1.6px}
.hero-copy{font-size:11px}
.hero-art{transform:scale(.72);width:360px;justify-self:end;margin-right:-20px}
.lobby-grid{gap:15px}
.entry-card{padding:25px 23px}
.entry-card h3{font-size:23px}
.input-pair{grid-template-columns:1fr}
.entry-card>button{margin-top:16px}
.entry-card p{margin-bottom:18px}
.board{grid-template-columns:repeat(7,minmax(0,1fr));gap:20px 15px}
.board-heading h2{font-size:25px}
.room-bar{font-size:8px;gap:10px}
.room-actions{gap:11px!important}
.board-shell{padding-inline:19px}
.board-info{font-size:8px}
footer{font-size:8px}
footer>span:last-child{font-size:6px}
}

@media(max-width:520px){.wrap{width:calc(100% - 36px)}
.header-note{display:none}
.site-header{height:74px}
.hero{display:block;position:relative;padding:33px 0 24px;min-height:350px}
.hero>div:first-child{position:relative;z-index:2}
h1{font-size:47px;line-height:1.05}
.hero .eyebrow{font-size:6.5px;letter-spacing:1.3px;margin-bottom:19px}
.hero-copy{font-size:10px;line-height:1.85;max-width:255px;margin-top:18px}
.tiny-note{font-size:9px;margin-top:20px;max-width:210px}
.hero-art{position:absolute;right:0;bottom:-15px;margin-right:0;width:360px;height:280px;transform:scale(.48);transform-origin:bottom right;pointer-events:none}
.art-caption{font-size:17px;right:15px;bottom:-5px}
.hero-art .art-star{left:25px;bottom:30px}
#lobby>.eyebrow{font-size:7px}
#lobby>h2{font-size:27px}
.lobby-grid{grid-template-columns:1fr;gap:15px}
.entry-card{padding:24px}
.entry-card h3{font-size:24px}
.input-pair{grid-template-columns:1fr 1fr;gap:10px}
.entry-card>button{margin-top:18px}
.room-bar{flex-wrap:wrap;gap:10px}
.room-bar>div{gap:6px}
.room-actions{width:100%;justify-content:space-between}
.room-actions>span{font-size:8px}
.room-actions .text-button{font-size:9px}
.board-heading{gap:10px;margin:27px 0 17px}
.board-heading h2{font-size:23px}
.board-heading .eyebrow{font-size:6px;letter-spacing:1.5px}
.compact{max-width:116px;font-size:9px;gap:5px;padding:9px 11px;line-height:1.6}
.board-shell{padding-inline:13px;border-radius:14px}
.board{grid-template-columns:repeat(5,minmax(0,1fr));gap:17px 14px;padding:21px 0}
.bubble-face{height:38px;border-radius:14px;gap:4px}
.bubble-dot{width:3px;height:3px}
.bubble-num{font-size:7px}
.bubble-face:after{left:10px;width:9px;height:11px}
.bubble:nth-child(2n) .bubble-face:after{right:10px}
.bubble{min-height:59px}
.board-info,.board-bottom{font-size:7px;gap:6px;min-height:42px}
.board-info #players{max-width:60%;overflow-wrap:anywhere}
.board-bottom>span:first-child{max-width:142px;font-size:6px}
progress{width:45px}
.theme-strip{font-size:8px;gap:9px 15px;padding:18px 0}
.waiting{padding:20px 15px}
.waiting h2{font-size:22px}
footer{gap:10px;align-items:center;font-size:7px;padding:20px 0}
footer em{font-size:11px}
footer>span:last-child{font-size:5px;letter-spacing:.8px;max-width:120px;line-height:1.8;text-align:right}
dialog{padding:34px 23px 22px;border-radius:20px}
#message-stem{font-size:25px;line-height:1.4;margin-bottom:21px}
.pill{font-size:8px;margin-bottom:17px}
.answer-meta{font-size:8px;gap:10px}
.answer-meta>span:first-child{max-width:190px}
textarea{font-size:14px;min-height:112px}
.answer-bubble{width:94%;padding:16px}
.answer-bubble p{font-size:19px}
.sent-state blockquote{font-size:11px}
.finished h2{font-size:29px}
}

@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}
}
