:root{--bg:#fff6ea;--bg-accent:#ffe8cc;--surface:#fff;--text:#2b1d14;--muted:#8a7461;--line:#f0dfc8;--tomato:#e4572e;--tomato-dark:#c2401b;--mustard:#f2a541;--lettuce:#2e9e5b;--berry:#8e44ad;--shadow:0 8px 24px #7846141f;--radius:18px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}*{box-sizing:border-box}html,body{min-height:100%;margin:0}body{background:radial-gradient(circle at 10% 0%, var(--bg-accent) 0, transparent 40%), radial-gradient(circle at 90% 100%, #ffe1d6 0, transparent 40%), var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;font-family:Segoe UI Variable,Segoe UI,system-ui,-apple-system,Roboto,sans-serif;font-size:16px;line-height:1.45}h1,h2,h3{margin:0;line-height:1.15}button,input{font:inherit}.muted{color:var(--muted)}.app{flex-direction:column;min-height:100vh;display:flex}.topbar{z-index:10;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid var(--line);background:#fff6eae6;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;display:flex;position:sticky;top:0}.brand{align-items:center;gap:8px;font-size:1.1rem;font-weight:800;display:flex}.brand-emoji{font-size:1.4rem}.topbar-right{align-items:center;gap:10px;display:flex}.code-chip{letter-spacing:.15em;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:2px 10px;font-family:ui-monospace,Cascadia Code,Consolas,monospace;font-weight:700}.connection{color:var(--muted);align-items:center;gap:6px;font-size:.85rem;display:inline-flex}.connection .dot{background:var(--mustard);border-radius:50%;width:8px;height:8px}.connection.open .dot{background:var(--lettuce)}.connection.closed .dot{background:var(--tomato);animation:1s infinite blink}.content{flex:1;width:100%;max-width:980px;margin:0 auto;padding:20px 16px 88px}.card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px}.center-card{text-align:center;flex-direction:column;align-items:center;gap:14px;max-width:520px;margin:0 auto;display:flex}.btn{cursor:pointer;background:var(--bg-accent);color:var(--text);touch-action:manipulation;border:none;border-radius:12px;justify-content:center;align-items:center;gap:6px;padding:10px 18px;font-weight:700;text-decoration:none;transition:transform 80ms,background .2s,box-shadow .2s;display:inline-flex}.btn:hover:not(:disabled){transform:translateY(-1px)}.btn:active:not(:disabled){transform:translateY(1px)scale(.98)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:var(--tomato);color:#fff;box-shadow:0 4px 0 var(--tomato-dark)}.btn-primary:hover:not(:disabled){background:#ec6640}.btn-outline{background:var(--surface);border:2px solid var(--tomato);color:var(--tomato-dark)}.btn-ghost{color:var(--muted);background:0 0}.btn-ghost:hover:not(:disabled){color:var(--text);background:var(--bg-accent)}.btn-lg{padding:14px 24px;font-size:1.1rem}.btn-sm{padding:6px 12px;font-size:.85rem}.btn-block{width:100%}input{border:2px solid var(--line);color:var(--text);background:#fffdf9;border-radius:12px;outline:none;min-width:0;padding:10px 14px;transition:border-color .2s}input:focus{border-color:var(--mustard)}.field{flex-direction:column;gap:6px;font-weight:600;display:flex}.home{gap:20px;max-width:560px;margin:0 auto;display:grid}.hero{text-align:center;padding:12px 0 4px}.hero h1{color:var(--tomato);letter-spacing:-.02em;font-size:clamp(2.2rem,7vw,3.2rem);font-weight:900}.hero-emojis{justify-content:center;gap:8px;font-size:3rem;display:flex}.hero-emojis span{animation:3s ease-in-out infinite float;display:inline-block}.hero-emojis span:nth-child(2){font-size:1.3em;animation-delay:.4s}.hero-emojis span:nth-child(3){animation-delay:.8s}.tagline{color:var(--muted);max-width:420px;margin:8px auto 0}.home-card{flex-direction:column;gap:16px;display:flex}.divider{color:var(--muted);align-items:center;gap:10px;font-size:.85rem;display:flex}.divider:before,.divider:after{content:"";background:var(--line);flex:1;height:1px}.join-row{gap:10px;display:flex}.code-input{text-transform:uppercase;letter-spacing:.3em;text-align:center;flex:1;font-family:ui-monospace,Cascadia Code,Consolas,monospace;font-weight:700}.rules h2{margin-bottom:8px;font-size:1.15rem}.rules ol{gap:6px;margin:0 0 8px;padding-left:20px;display:grid}.room-code{letter-spacing:.25em;border:3px dashed var(--mustard);color:var(--tomato);cursor:pointer;background:#fffaf2;border-radius:16px;padding:8px 8px 8px 24px;font-family:ui-monospace,Cascadia Code,Consolas,monospace;font-size:clamp(2.4rem,12vw,3.6rem);font-weight:900}.lobby-players{gap:8px;width:100%;margin:0;padding:0;list-style:none;display:grid}.lobby-players li{border:1px solid var(--line);text-align:left;background:#fffaf2;border-radius:12px;align-items:center;gap:10px;padding:10px 12px;display:flex}.lobby-players li.offline{opacity:.6}.lobby-name{flex:1;font-weight:600}.dots:after{content:"";animation:1.5s steps(4,end) infinite dots}.avatar{background:var(--mustard);color:#fff;border-radius:50%;flex-shrink:0;place-items:center;width:40px;height:40px;font-weight:800;display:grid}.avatar-empty{background:var(--line);color:var(--muted)}.badge{text-transform:uppercase;letter-spacing:.04em;background:var(--bg-accent);color:var(--muted);border-radius:999px;padding:2px 8px;font-size:.72rem;font-weight:700;display:inline-block}.badge-you{color:var(--lettuce);background:#e3f4ea}.badge-lead{background:var(--lettuce);color:#fff}.badge-off{color:var(--tomato-dark);background:#fde3dc}.pill{background:var(--surface);box-shadow:var(--shadow);border-radius:999px;align-items:center;gap:6px;padding:6px 14px;font-size:.9rem;font-weight:600;display:inline-flex}.pill-strong{background:var(--text);color:#fff}.pill-soft{color:var(--berry);box-shadow:none;background:#f3e8fb}.auction-screen,.results{gap:16px;display:grid}.round-header{flex-wrap:wrap;justify-content:center;gap:8px;display:flex}.versus{grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;display:grid}.vs{color:var(--tomato);font-size:1.1rem;font-weight:900}.player-card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);border:3px solid #0000;align-items:center;gap:10px;min-width:0;padding:12px;transition:border-color .2s,transform .2s;display:flex}.player-card.me .avatar{background:var(--tomato)}.player-card.leading{border-color:var(--lettuce);transform:translateY(-2px)}.player-card.passed{opacity:.65}.player-card.offline{opacity:.5}.player-info{flex:1;min-width:0}.player-name{white-space:nowrap;text-overflow:ellipsis;font-weight:700;overflow:hidden}.you-tag{color:var(--muted);margin-left:6px;font-size:.75rem;font-weight:600}.player-meta{color:var(--muted);flex-wrap:wrap;align-items:center;gap:6px;font-size:.8rem;display:flex}.budget{text-align:right;flex-direction:column;display:flex}.budget strong{color:var(--lettuce);font-size:1.4rem;line-height:1}.budget small{color:var(--muted);font-size:.72rem}.stage{text-align:center;flex-direction:column;align-items:center;gap:10px;padding:24px 20px;display:flex}.stage-kicker{text-transform:uppercase;letter-spacing:.12em;color:var(--mustard);margin:0;font-size:.78rem;font-weight:700}.stage-emoji{font-size:clamp(4rem,16vw,6rem);line-height:1.1}.stage-title{font-size:clamp(1.6rem,5vw,2.2rem);font-weight:900}.stage-sub{color:var(--muted);max-width:460px;margin:0}.current-bid{background:var(--bg-accent);border-radius:999px;align-items:baseline;gap:10px;padding:8px 18px;font-weight:600;animation:.3s pop;display:inline-flex}.current-bid strong{font-size:1.6rem}.current-bid.mine{color:var(--lettuce);background:#e3f4ea}.current-bid.theirs{color:var(--tomato-dark);background:#fde3dc}.timer{justify-items:center;gap:4px;width:100%;max-width:420px;display:grid}.timer-track{background:var(--bg-accent);border-radius:999px;width:100%;height:10px;overflow:hidden}.timer-fill{background:linear-gradient(90deg, var(--lettuce), var(--mustard));transform-origin:0;width:100%;height:100%;transition:transform .1s linear}.timer-label{color:var(--muted);font-size:.85rem}.timer.urgent .timer-fill{background:var(--tomato)}.timer.urgent .timer-label strong{color:var(--tomato);animation:.5s infinite blink}.bid-controls{justify-items:center;gap:10px;width:100%;max-width:520px;display:grid}.quick-bids,.custom-bid{flex-wrap:wrap;justify-content:center;gap:8px;display:flex}.custom-bid input{text-align:center;width:96px;font-weight:700}.status-msg{margin:0;font-weight:600}.status-msg.success{color:var(--lettuce)}.result-line{margin:0;font-size:1.2rem;font-weight:600}.result-line.win{color:var(--lettuce)}.result-line.lose{color:var(--tomato-dark)}.plates{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;display:grid}.plate h3{margin-bottom:10px;font-size:1rem}.plate p{margin:0}.chips{flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none;display:flex}.chip{background:var(--bg-accent);border-radius:999px;align-items:center;gap:4px;padding:4px 10px;font-size:.85rem;font-weight:600;display:inline-flex}.chip-emoji{font-size:1rem}.cat-viande{background:#fde3dc}.cat-poisson{background:#dff0fb}.cat-legume{background:#e3f4ea}.cat-fromage{background:#fff1c7}.cat-sauce{background:#ffe2c2}.cat-feculent{background:#f5ecd7}.cat-fruit{background:#fbe0ee}.cat-sucre{background:#ffe3f1}.cat-boisson{background:#efe2d6}.cat-base{background:#ece6df}.cat-autre{background:#f3e8fb}.log{color:var(--muted);gap:4px;margin:0;padding:14px 20px;font-size:.88rem;list-style:none;display:grid}.log li:first-child{color:var(--text);font-weight:600}.minigame{text-align:center;flex-direction:column;align-items:center;gap:14px;max-width:560px;margin:0 auto;display:flex}.bonus{color:var(--lettuce);font-size:1.2em}.intro-veggie{font-size:5rem}.chop-target{aspect-ratio:1;width:min(260px,70vw);box-shadow:inset 0 -8px 0 #0000000f, var(--shadow);cursor:pointer;-webkit-user-select:none;user-select:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;background:radial-gradient(circle,#fff 0,#ffe8cc 70%);border:none;border-radius:50%;position:relative;overflow:visible}.chop-target:active{transform:scale(.96)}.veggie{pointer-events:none;font-size:min(130px,34vw);animation:.15s chop;display:inline-block}.particle{pointer-events:none;font-size:1.6rem;animation:.7s ease-out forwards fly;position:absolute}.tap-count{margin:0;font-size:1.4rem;font-weight:800}.race{gap:8px;width:100%;display:grid}.race-row{text-align:left;grid-template-columns:90px 1fr 40px;align-items:center;gap:10px;display:grid}.race-name{white-space:nowrap;text-overflow:ellipsis;font-weight:600;overflow:hidden}.race-track{background:var(--bg-accent);border-radius:999px;height:14px;overflow:hidden}.race-fill{background:var(--mustard);border-radius:999px;height:100%;transition:width .2s}.race-row.me .race-fill{background:var(--tomato)}.race-count{text-align:right;font-weight:800}.chef{animation:1.2s ease-in-out infinite wobble}.spinner{border:4px solid var(--bg-accent);border-top-color:var(--tomato);border-radius:50%;width:36px;height:36px;animation:.9s linear infinite spin}.verdict-card.win{border:3px solid var(--lettuce)}.banner{font-size:clamp(1.5rem,5vw,2rem);font-weight:900}.verdict{margin:0;font-size:1.1rem;font-style:italic}.verdict cite{color:var(--muted);margin-top:6px;font-size:.85rem;font-style:normal;display:block}.verdict cite:before{content:"— "}.notice{color:var(--tomato-dark);background:#fde3dc;border-radius:10px;margin:0;padding:8px 12px;font-size:.85rem}.dishes{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px;display:grid}.dish{border:3px solid #0000;flex-direction:column;padding:0;display:flex;overflow:hidden}.dish.winner{border-color:var(--mustard)}.dish-photo{aspect-ratio:1;background:#fbefe0;position:relative}.dish-photo img{object-fit:cover;width:100%;height:100%;animation:.6s fade-in;display:block}.photo-placeholder{text-align:center;color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:10px;padding:16px;font-weight:600;display:flex;position:absolute;inset:0}.photo-placeholder.error small{font-size:.8rem;font-weight:400}.photo-emoji{opacity:.6;font-size:5rem}.winner-ribbon{background:var(--surface);width:52px;height:52px;box-shadow:var(--shadow);border-radius:50%;place-items:center;font-size:1.8rem;display:grid;position:absolute;top:10px;right:10px}.dish-body{gap:8px;padding:16px 18px 18px;display:grid}.dish-owner{text-transform:uppercase;letter-spacing:.08em;color:var(--mustard);margin:0;font-size:.8rem;font-weight:700}.dish-name{font-size:1.25rem}.score{color:var(--muted)}.score strong{color:var(--tomato);font-size:2rem}.dish-comment{margin:0}.dish-footer{justify-content:space-between;align-items:center;gap:8px;font-size:.85rem;display:flex}.end-actions{flex-direction:column;align-items:center;gap:8px;display:flex}.end-actions p{margin:0}.toast{background:var(--text);color:#fff;max-width:calc(100% - 32px);box-shadow:var(--shadow);z-index:20;border-radius:12px;padding:12px 18px;font-weight:600;position:fixed;bottom:24px;left:50%;transform:translate(-50%)}.toast-enter-active,.toast-leave-active{transition:opacity .25s,transform .25s}.toast-enter-from,.toast-leave-to{opacity:0;transform:translate(-50%,12px)}.chip-enter-active{transition:all .4s}.chip-enter-from{opacity:0;transform:scale(.6)}.pop{animation:.45s cubic-bezier(.34,1.56,.64,1) pop}.bounce{animation:1.6s ease-in-out infinite float}@keyframes pop{0%{opacity:0;transform:scale(.4)}to{opacity:1;transform:scale(1)}}@keyframes float{0%,to{transform:translateY(0)}50%{transform:translateY(-8px)}}@keyframes chop{0%{transform:scale(1)rotate(0)}50%{transform:scale(.88)rotate(-8deg)}to{transform:scale(1)rotate(0)}}@keyframes fly{0%{opacity:1;transform:translate(-50%,-50%)scale(1)rotate(0)}to{opacity:0;transform:translate(-50%,-160%)scale(.6)rotate(-40deg)}}@keyframes wobble{0%,to{transform:rotate(-6deg)}50%{transform:rotate(6deg)}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes blink{50%{opacity:.4}}@keyframes dots{0%{content:""}25%{content:"."}50%{content:".."}75%{content:"..."}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@media (width<=640px){.versus{grid-template-columns:1fr}.vs{display:none}.card{padding:16px}.brand-name{display:none}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.chat{right:16px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:15;flex-direction:column;align-items:flex-end;gap:10px;display:flex;position:fixed}.chat-toggle{background:var(--tomato);color:#fff;cursor:pointer;width:56px;height:56px;box-shadow:var(--shadow);touch-action:manipulation;border:none;border-radius:50%;font-size:1.5rem;position:relative}.chat-badge{background:var(--text);color:#fff;border-radius:999px;place-items:center;min-width:22px;height:22px;padding:0 5px;font-size:.78rem;font-weight:800;animation:.3s pop;display:grid;position:absolute;top:-4px;right:-4px}.chat-panel{background:var(--surface);border-radius:var(--radius);flex-direction:column;width:min(360px,100vw - 32px);height:min(460px,60vh);display:flex;overflow:hidden;box-shadow:0 12px 40px #3c1e0540}.chat-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:8px 8px 8px 16px;display:flex}.chat-list{overscroll-behavior:contain;flex-direction:column;flex:1;gap:8px;margin:0;padding:12px;list-style:none;display:flex;overflow-y:auto}.chat-empty{color:var(--muted);text-align:center;margin:auto}.chat-msg{flex-direction:column;align-items:flex-start;max-width:85%;display:flex}.chat-msg.mine{align-self:flex-end;align-items:flex-end}.chat-author{color:var(--muted);margin:0 8px 2px;font-size:.72rem}.chat-bubble{background:var(--bg-accent);overflow-wrap:anywhere;white-space:pre-wrap;border-radius:14px;padding:6px 12px}.chat-msg.mine .chat-bubble{background:var(--tomato);color:#fff}.chat-quick{justify-content:center;gap:4px;padding:4px 8px;display:flex}.chat-emoji{cursor:pointer;touch-action:manipulation;background:0 0;border:none;border-radius:10px;padding:4px 8px;font-size:1.4rem}.chat-emoji:hover{background:var(--bg-accent)}.chat-form{border-top:1px solid var(--line);gap:8px;padding:8px;display:flex}.chat-form input{flex:1;font-size:16px}@media (width<=640px){.chat{right:12px;bottom:calc(12px + env(safe-area-inset-bottom))}.chat.open{left:12px}.chat-panel{width:100%;height:min(60vh,460px)}}.chat-system{text-align:center;max-width:95%;color:var(--muted);border:1px dashed var(--line);background:#fffaf2;border-radius:10px;align-self:center;padding:4px 10px;font-size:.8rem}.chat-quick{flex-wrap:wrap;align-items:center}.chat-rps-btn{background:var(--text);color:#fff;white-space:nowrap;cursor:pointer;touch-action:manipulation;border:none;border-radius:999px;margin-left:auto;padding:6px 12px;font-size:.85rem;font-weight:700}.chat-rps-btn:disabled{opacity:.35;cursor:not-allowed}.chat-toggle.alert>span:first-child{animation:1.2s ease-in-out infinite ring;display:inline-block}.chat-hint{white-space:nowrap;background:var(--text);color:#fff;box-shadow:var(--shadow);pointer-events:none;border-radius:999px;padding:6px 12px;font-size:.85rem;font-weight:800;position:absolute;top:50%;right:66px;transform:translateY(-50%)}.rps{text-align:center;background:#fff4ef;border:2px solid #ffd2c2;border-radius:14px;flex-direction:column;align-items:center;gap:8px;margin:0 8px 4px;padding:12px 12px 14px;animation:.25s pop;display:flex;position:relative;overflow:hidden}.rps p{margin:0;font-weight:600}.rps-actions,.rps-moves{justify-content:center;gap:8px;display:flex}.rps-move{border:2px solid var(--line);background:var(--surface);cursor:pointer;touch-action:manipulation;border-radius:16px;flex-direction:column;justify-content:center;align-items:center;gap:4px;width:76px;height:76px;font-size:2rem;line-height:1;transition:transform .1s,border-color .2s;display:flex}.rps-move small{color:var(--muted);font-size:.7rem;font-weight:700}.rps-move:hover{border-color:var(--tomato);transform:translateY(-2px)}.rps-count{color:var(--tomato);flex-direction:column;align-items:center;font-size:3.2rem;font-weight:900;line-height:1;animation:.35s cubic-bezier(.34,1.56,.64,1) pop;display:flex}.rps-count small{color:var(--text);font-size:1rem}.rps-hands{align-items:center;gap:14px;font-size:2.8rem;line-height:1.1;animation:.35s cubic-bezier(.34,1.56,.64,1) pop;display:flex}.rps-hands small{color:var(--muted);font-size:.85rem;font-weight:800}.rps-outcome.win{color:var(--lettuce)}.rps-outcome.lose{color:var(--tomato-dark)}.rps-timer{background:#0000000d;height:4px;position:absolute;bottom:0;left:0;right:0}.rps-timer div{background:var(--tomato);transform-origin:0;height:100%;transition:transform .1s linear}.flash{z-index:25;background:var(--surface);border:2px solid var(--mustard);width:max-content;max-width:calc(100% - 32px);box-shadow:var(--shadow);text-align:center;pointer-events:none;border-radius:14px;padding:10px 16px;font-weight:700;position:fixed;top:66px;left:50%;transform:translate(-50%)}.flash-enter-active,.flash-leave-active{transition:opacity .25s,transform .25s}.flash-enter-from,.flash-leave-to{opacity:0;transform:translate(-50%,-12px)}.draft{gap:16px;display:grid}.draft-emoji{font-size:3.4rem;line-height:1.1}.joker-grid{grid-template-columns:repeat(3,1fr);gap:12px;display:grid}.joker-card{border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);color:var(--text);text-align:center;cursor:pointer;touch-action:manipulation;border:3px solid #0000;flex-direction:column;align-items:center;gap:6px;padding:16px 14px;transition:transform .15s,border-color .2s,opacity .2s;display:flex;position:relative}.joker-card:hover:not(:disabled){transform:translateY(-2px)}.joker-card.picked{border-color:var(--tomato);background:#fff4ef}.joker-card:disabled{cursor:default}.joker-card:disabled:not(.picked){opacity:.45}.joker-card-emoji{font-size:2.2rem;line-height:1.1}.joker-card-desc{color:var(--muted);font-size:.85rem}.joker-check{background:var(--tomato);color:#fff;border-radius:50%;place-items:center;width:26px;height:26px;font-weight:800;animation:.25s pop;display:grid;position:absolute;top:8px;right:10px}.draft-actions{bottom:calc(12px + env(safe-area-inset-bottom));z-index:5;border-radius:var(--radius);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);box-shadow:var(--shadow);text-align:center;background:#fffffff2;flex-direction:column;align-items:center;gap:6px;padding:12px 16px;display:flex;position:sticky}.draft-actions p{margin:0}.small{font-size:.85rem}.jokers{gap:10px;padding:14px 16px;display:grid}.jokers-head{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:4px 12px;display:flex}.jokers-head h3{font-size:1rem}.jokers-head .muted{font-size:.85rem}.joker-list{flex-wrap:wrap;gap:8px;display:flex}.joker-chip{border:2px solid var(--line);color:var(--text);cursor:pointer;touch-action:manipulation;background:#fffaf2;border-radius:999px;align-items:center;gap:6px;padding:8px 14px;font-weight:700;transition:transform 80ms,border-color .2s;display:inline-flex}.joker-chip.ready{border-color:var(--mustard)}.joker-chip:hover:not(:disabled){transform:translateY(-1px)}.joker-chip.used{opacity:.4;cursor:default;text-decoration:line-through}.joker-chip-emoji{font-size:1.2rem}.meta-joker{font-weight:700}.badge-shield{color:#1f6fa8;background:#dff0fb}.badge-sale{color:#8a5a00;background:#fff1c7}.spy{background:#f3e8fb;border-radius:12px;flex-wrap:wrap;align-items:center;gap:6px;padding:8px 10px;font-size:.85rem;display:flex}.spy-label{color:var(--berry);font-weight:800}.spy-item{background:var(--surface);border-radius:999px;padding:2px 10px;font-weight:600}.modal-backdrop{z-index:30;background:#2b1d1473;justify-content:center;align-items:center;padding:16px;animation:.2s fade-in;display:flex;position:fixed;inset:0}.modal{text-align:center;flex-direction:column;align-items:center;gap:10px;width:min(440px,100%);max-height:calc(100vh - 32px);animation:.25s pop;display:flex;overflow-y:auto}.modal h3{font-size:1.3rem}.modal p{margin:0}.modal-emoji{font-size:3rem;line-height:1.1}.joker-detail{color:var(--lettuce);font-weight:800}.target-list{flex-wrap:wrap;justify-content:center;gap:6px;display:flex}.target-chip{color:var(--text);font:inherit;cursor:pointer;touch-action:manipulation;border:2px solid #0000;font-size:.85rem;font-weight:600}.target-chip.selected{border-color:var(--tomato);transform:scale(1.06)}.modal-actions{flex-wrap:wrap;justify-content:center;gap:8px;margin-top:4px;display:flex}.status-msg.blocked{color:var(--tomato-dark)}.status-msg.warn{color:#8a5a00}.minigame-screen{gap:16px;max-width:560px;margin:0 auto;display:grid}.mg-bonus{margin:0;font-weight:600}.mg-note{color:var(--berry);background:#f3e8fb;border-radius:12px;margin:0;padding:8px 14px;font-weight:700}.mg-status{min-height:1.45em;margin:0;font-weight:700}.mg-status.mine,.mg-status.win{color:var(--lettuce)}.mg-status.lose{color:var(--tomato-dark)}.mg-result{flex-direction:column;align-items:center;gap:8px;width:100%;display:flex}.scoreboard{flex-wrap:wrap;justify-content:center;gap:10px;width:100%;display:flex}.score-pill{background:var(--bg-accent);border:2px solid #0000;border-radius:999px;align-items:baseline;gap:6px;padding:6px 14px;font-weight:600;transition:border-color .2s;display:inline-flex}.score-pill strong{font-size:1.3rem}.score-pill.mine strong{color:var(--tomato)}.score-pill.active{border-color:var(--mustard)}.score-unit{color:var(--muted);font-size:.85rem}.memory-grid{grid-template-columns:repeat(4,1fr);gap:8px;width:min(100%,360px);display:grid}.memory-card{aspect-ratio:1;background:linear-gradient(135deg, var(--tomato), var(--mustard));cursor:pointer;touch-action:manipulation;border:none;border-radius:12px;place-items:center;padding:0;font-size:clamp(1.6rem,8vw,2.2rem);transition:transform .15s;display:grid;box-shadow:inset 0 -4px #0000001f}.memory-card:disabled{cursor:default}.memory-card:hover:not(:disabled){transform:translateY(-2px)}.memory-card.up{box-shadow:inset 0 0 0 2px var(--line);background:#fffaf2}.memory-card.flipped{box-shadow:inset 0 0 0 3px var(--text)}.memory-card.mine{box-shadow:inset 0 0 0 3px var(--tomato);background:#fff4ef}.memory-card.theirs{box-shadow:inset 0 0 0 3px var(--mustard);background:#fff8e6}.memory-face{animation:.25s pop}.memory-back{opacity:.85;font-size:.6em}.quiz-progress{text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin:0;font-size:.8rem;font-weight:700}.quiz-question{max-width:480px;font-size:clamp(1.15rem,4.5vw,1.4rem);animation:.4s fade-in}.buzzer{background:radial-gradient(circle at 35% 30%, #ff8a65, var(--tomato) 55%, var(--tomato-dark));color:#fff;letter-spacing:.05em;width:140px;height:140px;box-shadow:0 8px 0 #9c3214, var(--shadow);cursor:pointer;-webkit-user-select:none;user-select:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;border:none;border-radius:50%;font-size:1.5rem;font-weight:900;animation:1.2s ease-in-out infinite glow}.buzzer:active{transform:translateY(6px);box-shadow:0 2px #9c3214}.quiz-options{grid-template-columns:1fr 1fr;gap:8px;width:100%;display:grid}.quiz-option{border:2px solid var(--line);color:var(--text);text-align:left;cursor:pointer;touch-action:manipulation;background:#fffaf2;border-radius:12px;align-items:center;gap:8px;padding:12px;font-weight:600;transition:transform 80ms,border-color .2s,background .2s;display:flex}.quiz-option:disabled{cursor:default}.quiz-option.active:not(:disabled){border-color:var(--mustard)}.quiz-option.active:hover:not(:disabled){transform:translateY(-1px)}.quiz-option.wrong{opacity:.7;background:#fde3dc;border-color:#f5b5a4;text-decoration:line-through}.quiz-option.correct{border-color:var(--lettuce);background:#e3f4ea;animation:.3s pop}.quiz-letter{background:var(--bg-accent);border-radius:50%;flex-shrink:0;place-items:center;width:26px;height:26px;font-size:.85rem;font-weight:800;display:grid}.quiz-source{margin:0;font-size:.8rem}.gallows{width:120px;height:120px;color:var(--text)}.gallows .part{fill:none;stroke:currentColor;stroke-width:4px;stroke-linecap:round;opacity:.08;transition:opacity .3s}.gallows .part.on{opacity:1}.lives{letter-spacing:2px;margin:0}.word-pattern{flex-wrap:wrap;justify-content:center;gap:6px;display:flex}.letter-box{border-bottom:3px solid var(--text);place-items:center;width:clamp(22px,6.5vw,34px);height:clamp(32px,9vw,42px);font-family:ui-monospace,Cascadia Code,Consolas,monospace;font-size:clamp(1.1rem,5vw,1.5rem);font-weight:900;display:grid}.letter-box.missing{color:var(--muted);opacity:.6}.keyboard{flex-wrap:wrap;justify-content:center;gap:6px;max-width:460px;display:flex}.key{background:var(--bg-accent);width:38px;height:42px;color:var(--text);cursor:pointer;touch-action:manipulation;border:none;border-radius:10px;font-weight:800}.key:hover:not(:disabled){background:#ffd9a8}.key:disabled{cursor:default}.key.hit{color:var(--lettuce);background:#e3f4ea}.key.miss{color:var(--tomato-dark);background:#fde3dc}.word-form{gap:8px;width:100%;max-width:380px;display:flex}.word-form input{letter-spacing:.1em;text-transform:uppercase;flex:1;font-size:16px;font-weight:700}.suggestions{flex-wrap:wrap;justify-content:center;gap:6px;display:flex}.reflex-pad{aspect-ratio:1;width:min(300px,80vw);color:var(--text);background:var(--bg-accent);cursor:pointer;-webkit-user-select:none;user-select:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;border:none;border-radius:32px;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:16px;font-size:1.3rem;font-weight:900;display:flex}.reflex-pad.is-wait{color:var(--muted);background:#ece6df}.reflex-pad.is-go{background:var(--tomato);color:#fff;animation:.2s pop}.reflex-pad.is-point{background:#fff1c7}.reflex-emoji{font-size:4rem;line-height:1}.reflex-text{font-size:1.05rem;font-weight:800}.anagram-letters{flex-wrap:wrap;justify-content:center;gap:6px;display:flex}.letter-tile{background:var(--mustard);color:#fff;border-radius:10px;place-items:center;width:clamp(30px,9vw,42px);height:clamp(36px,10vw,46px);font-size:1.3rem;font-weight:900;animation:.3s backwards pop;display:grid;box-shadow:inset 0 -4px #00000026}.anagram-answer{letter-spacing:.15em;color:var(--lettuce);margin:0;font-size:1.6rem;font-weight:900}.shake{animation:.4s shake}@keyframes shake{0%,to{transform:translate(0)}20%,60%{transform:translate(-8px)}40%,80%{transform:translate(8px)}}@keyframes glow{0%,to{box-shadow:0 8px #9c3214,0 0 #e4572e59}50%{box-shadow:0 8px #9c3214,0 0 0 14px #e4572e00}}@keyframes ring{0%,60%,to{transform:rotate(0)}10%,30%{transform:rotate(-12deg)}20%,40%{transform:rotate(12deg)}}@media (width<=640px){.joker-grid{grid-template-columns:repeat(2,1fr);gap:8px}.joker-card{padding:12px 10px}.joker-card-desc{font-size:.78rem}.draft-actions{padding-right:76px}.modal-backdrop{align-items:flex-end;padding:0}.modal{border-radius:var(--radius) var(--radius) 0 0;width:100%;padding-bottom:calc(20px + env(safe-area-inset-bottom))}}@media (width<=420px){.quiz-options{grid-template-columns:1fr}.key{width:34px;height:40px}}.mode-picker{gap:8px;width:100%;display:grid}.mode-picker-title{margin:0;font-weight:700}.mode-grid{grid-template-columns:repeat(2,1fr);gap:8px;display:grid}.mode-card{border:2px solid var(--line);color:var(--text);text-align:center;cursor:pointer;touch-action:manipulation;background:#fffaf2;border-radius:14px;flex-direction:column;align-items:center;gap:4px;padding:12px 10px;transition:border-color .2s,transform .15s;display:flex}.mode-card:hover:not(:disabled){transform:translateY(-2px)}.mode-card:disabled{cursor:default}.mode-card.selected{border-color:var(--tomato);background:#fff4ef}.mode-card:disabled:not(.selected){opacity:.55}.mode-emoji{font-size:1.8rem;line-height:1.1}.mode-desc{color:var(--muted);font-size:.78rem}.mode-switch{text-align:center;width:100%;max-width:520px}.mode-switch summary{cursor:pointer;padding:6px;font-weight:700}.mode-switch .mode-picker{margin-top:8px}.rules-sub{margin-top:12px}.rules-modes{gap:6px;margin:0 0 8px;padding-left:20px;display:grid}.series-bar{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;display:flex}.series-manche{color:var(--mustard);font-weight:800}.series-player{background:var(--surface);box-shadow:var(--shadow);border-radius:999px;align-items:center;gap:6px;padding:4px 12px;font-weight:700;display:inline-flex}.series-player.mine{color:var(--tomato-dark)}.series-stars{color:#e8a400;letter-spacing:2px;font-size:1.15rem}.series-empty{color:var(--line)}.series-card.win{border:3px solid var(--mustard)}.series-history{text-align:left;gap:4px;margin:0;padding-left:20px;font-size:.9rem;display:grid}.cat-mystere{color:var(--muted);background:repeating-linear-gradient(45deg,#ece6df,#ece6df 6px,#f6f1ea 6px 12px)}.stage-emoji.mystery{filter:drop-shadow(0 6px 10px #8e44ad59);animation:.45s cubic-bezier(.34,1.56,.64,1) pop,1.6s ease-in-out .45s infinite wobble}.market{gap:16px;display:grid}.market-head{max-width:640px}.market-stats{flex-wrap:wrap;justify-content:center;gap:8px;display:flex}.cart h3,.trade h3{margin-bottom:10px;font-size:1rem}.cart p,.trade p{margin:0}.chip-btn{color:var(--text);font:inherit;cursor:pointer;touch-action:manipulation;border:2px solid #0000;font-size:.85rem;font-weight:600}.chip-btn:disabled{cursor:default}.chip-btn.off{opacity:.45;border-style:dashed;border-color:var(--line);text-decoration:line-through}.chip-price{color:var(--muted);font-weight:700}.shelves{gap:12px;display:grid}.shelf-tools input{width:100%;font-size:16px}.shelf-tabs{scrollbar-width:thin;gap:6px;padding-bottom:4px;display:flex;overflow-x:auto}.shelf-tab{border:2px solid var(--line);color:var(--text);cursor:pointer;touch-action:manipulation;background:#fffaf2;border-radius:999px;flex-shrink:0;padding:6px 12px;font-size:.85rem;font-weight:700}.shelf-tab.active{background:var(--text);border-color:var(--text);color:#fff}.product-grid{overscroll-behavior:contain;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;max-height:60vh;padding:2px;display:grid;overflow-y:auto}.product{border:2px solid var(--line);color:var(--text);text-align:left;cursor:pointer;touch-action:manipulation;background:#fffaf2;border-radius:12px;grid-template-rows:auto auto;grid-template-columns:auto 1fr;align-items:center;column-gap:8px;padding:8px 10px;transition:border-color .15s,transform .1s;display:grid}.product:hover:not(:disabled){border-color:var(--mustard);transform:translateY(-1px)}.product-emoji{grid-row:span 2;font-size:1.6rem}.product-name{font-size:.88rem;font-weight:700;line-height:1.2}.product-price{color:var(--lettuce);font-size:.8rem;font-weight:800}.product.mine{border-color:var(--tomato);background:#fff4ef}.product.mine .product-price{color:var(--tomato-dark)}.product.taken{opacity:.45;cursor:not-allowed}.product.taken .product-price{color:var(--muted)}.product.pricey{opacity:.6}.trade{gap:8px;display:grid}.trade-offer{background:#fff4ef;border:2px solid #ffd2c2;border-radius:12px;gap:10px;padding:12px;display:grid}.trade-actions{flex-wrap:wrap;gap:8px;display:flex}.trade .target-list{justify-content:flex-start}.trade .btn-outline{justify-self:start}.intrus-grid{grid-template-columns:repeat(5,1fr);gap:6px;width:min(100%,380px);display:grid}.intrus-cell{aspect-ratio:1;box-shadow:inset 0 0 0 2px var(--line);cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;background:#fffaf2;border:none;border-radius:10px;padding:0;font-size:clamp(1.4rem,7vw,2rem)}.intrus-cell:disabled{cursor:default}.intrus-grid.locked .intrus-cell{opacity:.5}.intrus-cell.odd{box-shadow:inset 0 0 0 3px var(--lettuce);background:#e3f4ea;animation:.3s pop}.bill{border:1px dashed var(--muted);background:#fffdf7;border-radius:6px;gap:6px;width:min(100%,360px);padding:14px 16px;font-family:ui-monospace,Cascadia Code,Consolas,monospace;animation:.4s fade-in;display:grid}.bill-line,.bill-total{justify-content:space-between;gap:12px;display:flex}.bill-total{border-top:1px dashed var(--muted);padding-top:6px;font-size:1.1rem}@media (width<=640px){.product-grid{grid-template-columns:repeat(2,1fr)}.mode-desc{font-size:.72rem}}
