:root{font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#f9f4f7;background:#140f20;font-synthesis:none;--pink:#fa648e;--text:#f9f4f7;--muted:#b2a9bd;--surface:#251b33;--border:rgba(255,255,255,.1)}*{box-sizing:border-box}body{margin:0;min-height:100svh;overflow-x:hidden}button,input{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,input:focus-visible{outline:3px solid #fab0cb;outline-offset:3px}.hidden{display:none!important}.ambient{position:fixed;pointer-events:none;border-radius:50%;filter:blur(70px);z-index:-1}.ambient-a{top:-180px;left:-170px;width:500px;height:450px;background:rgba(112,40,105,.30)}.ambient-b{top:25vh;right:-260px;width:550px;height:550px;background:rgba(198,44,90,.14)}.shell{max-width:520px;margin:0 auto;min-height:100svh;padding:22px 24px 30px}.topbar{display:flex;align-items:center;justify-content:space-between;margin:0 -1px 24px}.brand-mini{display:flex;gap:10px;align-items:center;font-size:13px;letter-spacing:.15em;font-weight:800}.brand-mini b{color:#f78bb0}.brand-mark{font-size:21px;color:#fe6794}.top-actions{display:flex;align-items:center;gap:12px}.adult-badge,.room-indicator{font-size:10px;font-weight:900;letter-spacing:.1em;background:#36273e;color:#f5bdd0;border:1px solid #644056;border-radius:9px;padding:7px 9px}.icon-button{background:#2f243c;color:white;width:32px;height:32px;border-radius:50%;border:1px solid #57455e;font-size:18px;font-weight:700}.view{animation:appear .25s ease}@keyframes appear{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.hero{text-align:center;padding:28px 0 40px}.eyebrow{color:#f7a2bc;font-size:10px;letter-spacing:.23em;font-weight:850}.sparkle{color:#ffbc70;padding:0 4px}.hero-symbol{width:95px;height:95px;display:grid;place-items:center;position:relative;margin:22px auto 16px;border:1px solid #74405f;border-radius:26px;transform:rotate(-8deg);background:linear-gradient(145deg,#582442,#301b3b);box-shadow:0 20px 65px #ed4f8430}.hero-symbol span{font-size:69px;line-height:1;transform:rotate(8deg);color:#ff75a0;text-shadow:0 5px 30px #ff477c60}.hero-symbol i{position:absolute;right:-15px;top:-13px;color:#ffc69a;font-size:24px;font-style:normal}h1{margin:0;font-size:clamp(54px,14vw,76px);font-weight:950;line-height:.91;letter-spacing:-.07em;text-shadow:0 15px 40px #ed4f8438}h1 em,.age-dialog h2 em{color:#fe80a7;font-style:normal}.hero-subtitle{margin:23px auto 19px;color:#c9bccc;font-size:16px;line-height:1.6}.hero-subtitle strong{color:#fff;font-weight:700}.hero-pills{display:flex;justify-content:center;gap:7px;flex-wrap:wrap}.hero-pills span{border:1px solid #554158;background:#2b2038;border-radius:100px;padding:7px 11px;color:#f6d4e0;font-size:11px;font-weight:650}.mode-section h2{font-size:17px;letter-spacing:-.02em;margin:0 0 6px}.muted{font-size:13px;color:var(--muted);line-height:1.65;margin:0 0 17px}.mode-card{display:flex;align-items:center;text-align:left;width:100%;gap:14px;border:1px solid #4a3652;color:#fff;background:linear-gradient(130deg,#30203b,#241a32);border-radius:17px;padding:19px;margin:11px 0;transition:transform .15s,border-color .15s}.mode-card:hover{transform:translateY(-2px);border-color:#bd688e}.primary-mode{background:linear-gradient(120deg,#532944,#47233d);border-color:#aa5378;box-shadow:0 10px 30px #00000020}.mode-icon{display:grid;place-items:center;width:52px;height:52px;flex-shrink:0;border-radius:13px;background:#e85f8b23;color:#ff91b5;font-size:32px}.mode-icon.duo{font-size:31px}.mode-copy{flex:1;display:grid;gap:5px}.mode-copy b{font-size:16px}.mode-copy small{font-size:11px;color:#cfbcd2}.arrow{color:#fab1ca;font-size:22px}.home-bottom{text-align:center;display:grid;gap:9px;justify-items:center;padding:23px 0}.home-bottom span{font-size:11px;color:#8f839b}.text-button{background:transparent;color:#ffc0d1;border:0;padding:8px 6px;text-decoration:none;font-size:12px;font-weight:650}.text-button:hover{text-decoration:underline}footer{text-align:center;border-top:1px solid #342b3e;margin-top:29px;padding-top:20px;color:#817486;font-size:9px;letter-spacing:.11em;line-height:2}.section-top,.game-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:25px 0 24px}.back-button{background:transparent;border:0;color:#e4d2e3;font-size:13px;padding:5px 0}.eyebrow.mini{font-size:9px;letter-spacing:.14em}.page-title{font-size:29px;letter-spacing:-.04em;line-height:1.1;margin:0 0 12px}.setup-form{display:grid;gap:15px;margin-top:25px}.setup-form label,.remote-panel label{display:grid;gap:8px;font-weight:700;font-size:12px;color:#ebdfe8}input[type=text],input:not([type]){width:100%;padding:15px 14px;background:#281d35;color:white;border:1px solid #58445d;border-radius:12px;outline:none;font-size:15px}input:focus{border-color:#f77da4}.level-label{color:#e9dce7;font-size:12px;font-weight:800;margin-top:12px}.little-help{color:#ad8da5}.level-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.level-option{text-align:center;display:flex!important;align-items:center;gap:5px!important;padding:15px 7px;background:#282036;border:1px solid #4e3a52;border-radius:13px;cursor:pointer}.level-option input{position:absolute;opacity:0;pointer-events:none}.level-option.selected{border-color:#ff90b3;background:#693450}.level-option>span{color:#ffa3c4;font-size:23px}.level-option b{font-size:12px}.level-option small{font-weight:500;color:#c8abc1;font-size:10px}.consent-note{display:flex;align-items:flex-start;gap:12px;margin:10px 0;background:#2b2338;border:1px solid #54445e;padding:14px;border-radius:14px}.consent-note>span{color:#fa91b1;font-size:26px;line-height:1}.consent-note p{margin:0;color:#cfc0d4;line-height:1.5;font-size:11px}.consent-note strong{color:#fff}.main-button{width:100%;display:flex;align-items:center;justify-content:center;gap:12px;min-height:55px;border-radius:13px;border:1px solid #fa7ca3;background:linear-gradient(115deg,#f76d9a,#ec5286);box-shadow:0 12px 25px #d83c7722;color:#260e1d;font-size:14px;font-weight:850;letter-spacing:.01em}.main-button span{font-size:21px}.main-button.outline{background:#36273f;color:#ffd8e5;border-color:#a95d80;box-shadow:none}.main-button:disabled{box-shadow:none}.remote-sections{margin-top:26px}.remote-panel{border:1px solid #564059;background:#261c34;border-radius:18px;padding:20px;display:grid;gap:16px}.remote-panel-header{display:flex;gap:10px;align-items:center;font-size:15px}.number-bubble{width:29px;height:29px;display:grid;place-items:center;border-radius:8px;color:#ffc1d3;background:#63334f;font-size:12px;font-weight:800}.or-divider{position:relative;text-align:center;color:#ac9db2;font-size:10px;font-weight:800;margin:17px 0}.or-divider:before{content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:#4b3951;z-index:-1}.or-divider span{background:#140f20;padding:0 12px}.code-entry{text-transform:uppercase;letter-spacing:.18em;font-weight:750}.warning-card{border:1px solid #d7a05d;background:#57391f44;border-radius:12px;padding:14px 16px;color:#ffdeb0;font-size:12px}.warning-card p{font-size:12px;margin:7px 0 0;line-height:1.55}.footnote{font-size:11px;color:#93879e;line-height:1.6;margin:18px 3px}.game-top{margin:10px 0 18px}.room-indicator{color:#d2b9d2;border-color:#55425d;background:#291e38}.game-board{padding-top:5px}.score-panel{display:grid;grid-template-columns:1fr 70px 1fr;gap:6px;align-items:center;background:#241b30;border:1px solid #45334d;border-radius:16px;padding:13px}.score-person{min-width:0;font-size:13px;font-weight:750}.score-person>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.score-person.right{text-align:right}.score-dots{color:#f88eb0;letter-spacing:.18em;font-size:14px;margin-top:6px}.score-middle{text-align:center;border-left:1px solid #49394d;border-right:1px solid #49394d}.score-middle span{display:block;font-size:8px;letter-spacing:.15em;color:#c5b3c4}.score-middle strong{font-size:21px;color:#fda4c0}.game-caption{text-align:center;margin:24px 0 6px;color:#f5bfd0;font-weight:800;font-size:15px}.table-area{display:flex;align-items:center;justify-content:center;gap:32px;min-height:248px;padding:15px 0 24px}.deck-stack,.active-card-wrap{text-align:center;display:grid;justify-items:center;gap:13px}.deck-stack>small,.active-card-wrap>small{color:#95869d;font-size:9px;font-weight:750;letter-spacing:.12em}.draw-card,.playing-card{width:114px;height:171px;border-radius:15px;position:relative;box-shadow:0 15px 35px #0006;overflow:hidden}.draw-card{border:5px solid #f5c0d1;background:repeating-linear-gradient(45deg,#3f2649 0,#3f2649 12px,#4d2a4d 12px,#4d2a4d 24px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#ff9fc2;transform:rotate(-8deg)}.draw-card:before{content:"";position:absolute;inset:7px;border:1px solid #b37b9e;border-radius:8px}.draw-card span{z-index:1}.stack-heart{font-size:57px;line-height:1;text-shadow:0 7px 17px #ff588c80}.draw-card span:last-child{font-size:10px;font-weight:900;letter-spacing:.14em}.playing-card{--base:#eb5359;background:linear-gradient(145deg,color-mix(in srgb,var(--base) 78%,white),var(--base));border:4px solid #fff8ed;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#fff}.playing-card:after{content:"";position:absolute;inset:11px;border:2px solid #ffffff70;border-radius:10px;pointer-events:none}.card-red{--base:#ea4e66}.card-yellow{--base:#e3a834}.card-green{--base:#329e7d}.card-blue{--base:#467bd1}.card-wild{--base:#61486f;background:conic-gradient(#e95a83,#edb546,#49aa85,#478ad9,#e95a83)}.corner-top,.corner-bottom{position:absolute;font-weight:950;font-size:20px;left:13px;top:12px;text-shadow:0 2px 5px #0005}.corner-bottom{left:auto;top:auto;right:13px;bottom:11px;transform:rotate(180deg)}.card-center{font-weight:1000;font-size:55px;line-height:1;text-shadow:0 4px 10px #0004;letter-spacing:-.08em}.card-caption{font-size:9px;font-weight:950;text-align:center;text-shadow:0 2px 5px #0005;letter-spacing:.04em;margin:12px 7px 0}.turn-strip{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #49394d;padding:14px 0 16px;font-size:13px}.turn-indicator{width:8px;height:8px;display:inline-block;background:#ff79a0;border-radius:50%;box-shadow:0 0 13px #ff7ca2;margin-right:5px}.turn-strip #turnNote{color:#baaaba;font-size:11px}.level-pill{color:#f5c7d5;background:#552943;border-radius:20px;padding:7px 9px;font-size:9px;font-weight:850;white-space:nowrap}.game-utility{display:flex;justify-content:space-between;align-items:center;margin:22px 0 12px;font-size:13px;font-weight:800}.duo-button{border:1px solid #e897b1;background:#753555;color:#ffe4ea;border-radius:20px;padding:8px 12px;font-size:10px;font-weight:850}.hand{display:flex;gap:8px;overflow-x:auto;padding:4px 4px 20px;scrollbar-width:thin;scrollbar-color:#6d4663 transparent;min-height:166px}.hand .playing-card{width:86px;height:133px;flex:0 0 86px;cursor:pointer;border-width:3px;border-radius:12px;transition:transform .16s;box-shadow:0 7px 12px #0003}.hand .playing-card:hover{transform:translateY(-6px)}.hand .playing-card:disabled{opacity:.46;transform:none;cursor:not-allowed}.hand .playing-card:after{inset:7px}.hand .corner-top,.hand .corner-bottom{font-size:14px;left:9px;top:8px}.hand .corner-bottom{left:auto;top:auto;right:9px;bottom:8px}.hand .card-center{font-size:36px}.hand .card-caption{font-size:7px;line-height:1.1;margin:9px 4px 0}.hand-placeholder{color:#a99dad;font-size:13px;padding:35px 5px;text-align:center;flex:1}.game-hint{text-align:center;color:#a59aaf;font-size:11px;line-height:1.5;margin:0}.game-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:25px;border-top:1px solid #36283d;padding-top:12px;color:#9e8aa4;font-size:11px}.overlay{position:fixed;inset:0;z-index:20;display:flex;justify-content:center;align-items:center;background:rgba(8,6,15,.87);backdrop-filter:blur(12px);padding:20px;overflow-y:auto}.dialog{width:min(420px,100%);max-height:95svh;overflow-y:auto;background:linear-gradient(148deg,#352339,#21192f);border:1px solid #704663;border-radius:23px;padding:29px 25px;text-align:center;position:relative;box-shadow:0 30px 80px #0009}.dialog-icon{font-size:62px;color:#ff7fa8;text-shadow:0 4px 40px #df478a60}.dialog h2{font-size:29px;margin:15px 0 11px;letter-spacing:-.04em}.age-dialog h2{font-size:32px}.dialog p{line-height:1.6;color:#d0bed0;font-size:13px}.dialog .main-button{margin-top:23px}.dialog .text-button{margin-top:10px}.modal-x{position:absolute;top:10px;right:14px;background:none;border:0;color:#d5afc7;font-size:26px;padding:8px}.dialog .eyebrow{margin-top:10px}.dialog .accent-title{color:#ff8dae}.dialog .choice-row{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:20px 0}.choice-color{height:52px;border:3px solid #ffffffb0;border-radius:12px}.choice-color.red{background:#ea4e66}.choice-color.yellow{background:#e3a834}.choice-color.green{background:#329e7d}.choice-color.blue{background:#467bd1}.dialog .alt-button{display:block;border:1px solid #79566e;color:#fbd4df;background:#3a283e;border-radius:12px;width:100%;min-height:48px;margin-top:10px;font-size:13px;font-weight:750}.modal-bullets{text-align:left;font-size:12px;color:#d9c8d9;line-height:1.8;padding-left:17px}.code-display{letter-spacing:.21em;font-size:30px;font-weight:900;color:#ffa6c3;margin:17px 0;background:#1e152a;padding:17px;border:1px dashed #b86990;border-radius:12px;user-select:all}.waiting-dots{animation:pulse 1.5s infinite}@keyframes pulse{50%{opacity:.4}}.toast{position:fixed;left:50%;bottom:25px;transform:translateX(-50%);max-width:calc(100% - 35px);padding:13px 18px;background:#f4d5e1;color:#371d2d;z-index:35;box-shadow:0 12px 30px #0007;border-radius:12px;font-weight:700;font-size:12px;text-align:center}.small-muted{font-size:11px!important;color:#ab9eaf!important}.screenreader{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}@media(max-width:380px){.shell{padding:19px 16px}.hero{padding:15px 0 28px}.table-area{gap:18px}.hand .playing-card{width:78px;flex-basis:78px;height:125px}.draw-card,.playing-card{width:99px;height:148px}.card-center{font-size:45px}.level-option{padding:13px 4px}}@media(min-width:800px){.shell{max-width:610px}.hero{padding-top:42px}}

.remote-panel select{width:100%;padding:13px;background:#281d35;color:#fff;border:1px solid #58445d;border-radius:12px;font-size:13px}.level-pill{border:0;cursor:pointer}.level-pill:hover{background:#723a55}

.turn-controls{display:flex;gap:8px;align-items:center}

/* V2 : partie express, moins de détails à l'écran */
.score-panel{grid-template-columns:1fr 52px 1fr;padding:14px 17px}
.score-middle span{font-size:9px}.score-middle strong{font-size:25px}
.score-dots{font-size:12px;letter-spacing:0;color:#eab6ca;font-weight:600}
.game-caption{margin:18px 0 2px;min-height:18px;font-size:13px}
.table-area{min-height:210px;padding:10px 0 12px}
.game-utility{margin:16px 0 12px}
.hand{padding-bottom:17px}
.hand .playing-card:not(:disabled){box-shadow:0 3px 0 #ffffff77,0 10px 20px #0007;border-color:white}
.hand .playing-card:disabled{opacity:.32}
.game-hint{font-size:13px;color:#e4c8da;font-weight:650;background:#24192f;border-radius:10px;padding:12px}
.draw-card{cursor:pointer}
.draw-card:disabled{opacity:.4;cursor:default}
.game-bottom{margin-top:18px}


/* V3 : redesign ludique mobile-first */
:root { --pink:#fc477d; --text:#fff8fa; --muted:#c9b4c9; }
body {background: radial-gradient(ellipse 70% 34% at 50% 0,#59213b 0,transparent 100%),linear-gradient(#1f1029,#130d20 68%);}
.ambient-a {background:rgba(254,64,126,.28)}.ambient-b {background:rgba(132,69,255,.13)}
.shell {padding:16px 17px 28px;max-width:510px}
.topbar {margin-bottom:10px}
.brand-mini {letter-spacing:.06em;font-size:12px}
.brand-mini b {color:#ff81ac}
.adult-badge{border:1px solid #82526d;background:#3f233d}
.fresh-hero{padding:15px 0 15px}
.fresh-hero .eyebrow{font-size:10px;letter-spacing:.11em;color:#ffb9d2}
.floating-cards{height:175px;margin:20px auto 12px;position:relative;width:300px;max-width:100%}
.mini-card{position:absolute;width:94px;height:136px;border:5px solid white;border-radius:17px;display:grid;place-items:center;font-weight:1000;font-size:48px;color:white;text-shadow:0 3px 5px #0002;box-shadow:0 20px 24px #0007;transform-origin:50% 85%}
.mini-card:before{content:'';position:absolute;inset:8px;border:2px solid #ffffff8f;border-radius:10px;transform:rotate(-7deg)}
.m-red{background:#f44c72;left:16px;top:20px;transform:rotate(-23deg);z-index:1;animation:floatA 4s infinite ease-in-out}
.m-blue{background:#447ae6;left:80px;top:8px;transform:rotate(-9deg);z-index:2;animation:floatB 4.5s infinite ease-in-out}
.m-yellow{background:#f9bd36;left:142px;top:13px;transform:rotate(12deg);z-index:3;animation:floatA 5s infinite ease-in-out}
.m-green{background:#38b993;left:191px;top:34px;transform:rotate(27deg);z-index:4;animation:floatB 5.3s infinite ease-in-out}
@keyframes floatA {50%{translate:0 -6px}} @keyframes floatB {50%{translate:0 7px}}
.fresh-hero h1{font-size:clamp(53px,12vw,71px);line-height:.87;text-shadow:0 9px 30px #f53e8a38;letter-spacing:-.065em}
.fresh-hero h1 em{background:linear-gradient(100deg,#ffc1d3,#ff6c98);background-clip:text;-webkit-background-clip:text;color:transparent}
.fresh-hero .hero-subtitle{font-size:16px;line-height:1.35;margin:20px auto 14px;max-width:340px}
.quick-facts{display:flex;justify-content:center;flex-wrap:wrap;gap:7px}
.quick-facts span{font-size:11px;font-weight:800;border-radius:99px;background:#5a2b4a8a;border:1px solid #ab5c80;padding:8px 12px}
.start-section{margin-top:20px}
.play-now{display:flex;gap:14px;align-items:center;width:100%;min-height:85px;text-align:left;border:3px solid #ffabc4;border-radius:20px;color:#33101f;background:linear-gradient(120deg,#ff9ebd,#ff477a);padding:13px;box-shadow:0 13px 30px #d135783b, inset 0 3px 7px #ffffff55;transform:translateZ(0)}
.play-now-heart{width:54px;height:54px;display:grid;place-items:center;border-radius:16px;background:#fff7f6;font-size:39px;color:#ff477d;box-shadow:0 3px 6px #8a274637;flex-shrink:0}
.play-now strong{font-size:19px;display:block;letter-spacing:-.02em}.play-now small{display:block;font-size:11px;margin-top:6px;font-weight:650}.play-now-arrow{font-size:28px;margin-left:auto}
.remote-link,.custom-link{background:transparent;color:#f8d6e5;border:0;display:flex;align-items:center;justify-content:center;width:100%;padding:15px 10px;font-size:14px;font-weight:750}
.remote-link span{margin-left:12px}.custom-link{color:#c4a5be;font-size:12px;padding:5px}
.start-summary{background:#2c1a35;border-radius:18px;padding:17px 12px;text-align:center;margin-top:14px;border:1px solid #75465f}
.start-summary .stars{color:#ffbc69;letter-spacing:.7em;font-size:12px;display:block;margin-bottom:8px}
.start-summary strong{font-size:15px}.start-summary p{font-size:12px;line-height:1.5;color:#dec3d2;margin:8px 0 0}
.home-bottom{padding:15px 0 0}footer{margin-top:13px}
.game-top{margin:4px 0 12px}.room-indicator{background:#5b2546;color:#ffc3d7;border:1px solid #a75985}
.score-panel{background:#31203b;border:1px solid #654966;border-radius:17px;padding:13px 15px;grid-template-columns:1fr 48px 1fr}
.score-middle span{color:#ffb0d3;font-size:17px}.score-middle strong{font-size:10px;letter-spacing:.17em;color:#ac9bb2}
.score-dots{font-weight:700;font-size:11px;color:#fdaed0}
.game-caption{color:#d5adc5;font-size:11px;margin:9px 0 9px;min-height:16px}
.turn-banner{display:flex;align-items:center;gap:12px;padding:13px 15px;background:linear-gradient(95deg,#64294c,#3e254d);border:1px solid #ad5b89;border-radius:16px;box-shadow:inset 0 1px 0 #ffffff22}
.turn-banner-icon{font-size:33px;color:#ffcb74;line-height:1}
.turn-banner div:nth-child(2){display:flex;flex-wrap:wrap;align-items:baseline;column-gap:7px;flex:1;min-width:0}
.turn-banner div:nth-child(2)>span{display:block;flex-basis:100%;font-size:8px;font-weight:850;letter-spacing:.18em;color:#fab9d5}
.turn-banner strong{font-size:19px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.turn-banner small{display:none}
.level-pill{background:#fce0eb;color:#6d2444;border:none;padding:9px 10px;font-size:11px;border-radius:20px}
.table-area{gap:15px;min-height:auto;padding:20px 2px 15px}
.table-arrow{font-size:26px;font-weight:900;color:#ffa8c4}
.deck-stack,.active-card-wrap{gap:7px}
.draw-card,.playing-card{width:117px;height:168px;border-radius:19px}
.draw-card{border:5px solid #fff;background:repeating-linear-gradient(130deg,#aa2c60 0,#aa2c60 13px,#bd3d72 13px,#bd3d72 26px);transform:rotate(-6deg);color:white;box-shadow:0 12px 27px #0007}
.draw-card .stack-heart{font-size:67px;color:#ffb5ce}
.draw-card span:last-child{background:#fff;color:#7c2453;border-radius:99px;padding:7px 9px;font-size:10px}
.playing-card{border:5px solid #fff;transform:rotate(4deg);transition:transform .18s,filter .18s;animation:cardEnter .28s cubic-bezier(.2,1.6,.3,1)}
@keyframes cardEnter{from{scale:.82;rotate:-12deg}to{scale:1;rotate:0deg}}
.playing-card:after{inset:9px;border-width:2.5px}
.card-red{--base:#f45170}.card-yellow{--base:#ffbd36}.card-green{--base:#35b891}.card-blue{--base:#4e86ec}
.card-wild{--base:#6a356d;background:conic-gradient(from 80deg,#f44d72,#ffb537,#2eb594,#4b7df0,#f44d72)}
.card-center{font-size:59px;letter-spacing:-.025em;filter:drop-shadow(0 4px 1px #0001)}
.action-card .card-center{font-size:45px;letter-spacing:-.06em}
.card-caption{font-size:10px;margin-top:9px;font-weight:1000;letter-spacing:0}
.game-utility{margin:5px 0 10px}.game-utility>span{font-size:14px;letter-spacing:.05em}
.hand{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;overflow:visible;padding:6px 2px 16px;min-height:0}
.hand .playing-card{width:100%;height:auto;aspect-ratio: .72;min-width:0;max-width:120px;transform:rotate(0);border-width:3px;border-radius:12px;box-shadow:0 8px 15px #0005}
.hand .playing-card:after{inset:6px;border-width:1.5px}
.hand .playing-card .corner-top,.hand .playing-card .corner-bottom{font-size:14px;left:8px;top:7px}
.hand .playing-card .corner-bottom{left:auto;top:auto;right:8px;bottom:7px}
.hand .card-center{font-size:43px}
.hand .action-card .card-center{font-size:29px}
.hand .card-caption{font-size:7px;margin:6px 2px 0;line-height:1.05}
.hand .playing-card.is-playable{filter:brightness(1.05);box-shadow:0 0 0 2px #ffedab,0 0 15px #ffd5658c,0 8px 15px #0005;animation:canChoose 2.5s ease-in-out infinite}
@keyframes canChoose{50%{box-shadow:0 0 0 3px #ffe9a1,0 0 19px #ffd65bda,0 11px 18px #0005}}
.hand .playing-card:not(.is-playable){opacity:.35;filter:saturate(.65)}
.hand .playing-card:disabled{opacity:.35}
.hand .playing-card.is-playable:active{transform:translateY(-13px) scale(1.06)}
.game-hint{background:#3e2849;color:#fbd3e1;border:1px solid #704664;font-size:12px;margin-top:3px;padding:12px 8px}
.game-bottom{margin-top:11px}.game-bottom span{font-size:10px}
.dialog{background:linear-gradient(160deg,#53284e,#211a32);border:1px solid #ad6c90;border-radius:26px;padding:29px 22px}
.dialog-icon{font-size:60px}.challenge-emoji{font-size:73px;animation:bigBounce .55s cubic-bezier(.1,1.7,.5,1)}
@keyframes bigBounce{from{scale:.3;rotate:-20deg}to{scale:1;rotate:0deg}}
.surprise-flair{color:#ffbf5c;letter-spacing:1.4em;margin-left:1.2em;font-size:12px}
.challenge-prompt{background:#fff6fa;color:#451c35;padding:20px 18px;border-radius:17px;font-size:21px;line-height:1.35;font-weight:850;margin:18px 0;box-shadow:0 8px 20px #0003}
.mood-list{display:grid;gap:9px;margin:16px 0}.mood-list button{background:#442744;color:white;border:1px solid #a57291;border-radius:12px;padding:13px;font-size:17px;text-align:left}.mood-list b{margin-left:12px}.mood-list small{display:block;font-size:11px;margin-left:39px;color:#ddbdd1}
.pass-dialog .pass-emoji{font-size:74px}.pass-dialog h2{font-size:38px;color:#ffb7d0}.pass-dialog p{font-size:16px;color:#ffe6f0}
@media(max-width:370px){.table-area{gap:9px}.draw-card,.playing-card{width:104px;height:146px}.hand{gap:6px}.hand .card-center{font-size:35px}.turn-banner{padding:12px 9px}.level-pill{padding:7px 6px}}
@media(min-width:600px){.shell{max-width:530px}.hand .playing-card{max-width:118px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* V4 : UNO non officiel, lisible en un écran sur téléphone */
.turn-banner{padding:10px 12px}
.turn-banner strong{font-size:18px}
.game-caption{margin:7px 0 7px;font-size:10px}
.table-area{padding:10px 0 8px;gap:10px}
.draw-card,.playing-card{width:96px;height:138px;border-radius:16px}
.draw-card .stack-heart{font-size:54px}
.draw-card span:last-child{padding:6px 8px;font-size:9px}
.card-center{font-size:52px}
.action-card .card-center{font-size:42px}
.card-caption{margin-top:7px;font-size:10px;font-weight:1000;letter-spacing:.02em}
.card-sub{display:none}
.effect-plus2 .card-caption::before{content:'+2 ';display:block;font-size:9px;line-height:1;color:#fff4}
.effect-plus4 .card-caption::before{content:'+4 ';display:block;font-size:9px;line-height:1;color:#fff4}
.effect-minus1 .card-caption::before{content:'-1 ';display:block;font-size:9px;line-height:1;color:#fff4}
.effect-minus2 .card-caption::before{content:'-2 ';display:block;font-size:9px;line-height:1;color:#fff4}
.game-utility{margin:4px 0 6px}
.game-utility>span{font-size:12px}
.hand{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:4px 0 10px}
.hand .playing-card{max-width:none;aspect-ratio:.68;min-height:112px;border-width:3px;border-radius:11px;box-shadow:0 5px 10px #0005}
.hand .playing-card .corner-top,.hand .playing-card .corner-bottom{font-size:12px;left:6px;top:5px}
.hand .playing-card .corner-bottom{left:auto;top:auto;right:6px;bottom:5px}
.hand .card-center{font-size:31px}
.hand .action-card .card-center{font-size:24px}
.hand .card-caption{font-size:7px;line-height:1.05;margin:4px 3px 0;letter-spacing:0}
.hand .playing-card.is-playable{box-shadow:0 0 0 2px #ffedab,0 0 12px #ffd5658c,0 5px 10px #0005}
.game-hint{font-size:11px;padding:9px 8px;margin-top:0}
.game-bottom{margin-top:6px}
.game-bottom span{font-size:9px}
.challenge-prompt{font-size:18px;padding:16px 14px}
@media (max-height: 740px){
  .shell{padding-top:10px;padding-bottom:16px}
  .game-top{margin-bottom:8px}
  .score-panel{padding:10px 12px}
  .turn-banner{padding:9px 10px}
  .table-area{padding:7px 0 4px}
  .draw-card,.playing-card{width:88px;height:126px}
  .hand .playing-card{min-height:98px}
}
@media (max-width: 380px){
  .shell{padding-left:12px;padding-right:12px}
  .draw-card,.playing-card{width:84px;height:120px}
  .table-arrow{font-size:20px}
  .hand{gap:5px}
  .hand .card-center{font-size:28px}
  .hand .action-card .card-center{font-size:22px}
}

/* V5 : interface plus ludique */
:root{--pink:#ff5b93;--pink2:#ff84ae;--gold:#ffd56c;--bg-soft:#24182d;--panel:#2f2039;--panel2:#41294f}
.shell{max-width:510px}
.hero{position:relative;overflow:hidden}
.hero:before{content:"";position:absolute;inset:auto -30px -40px auto;width:140px;height:140px;border-radius:999px;background:radial-gradient(circle,#ffffff22 0,#ffffff00 70%)}
.game-board{position:relative;overflow:hidden;background:linear-gradient(180deg,#1e1528 0%,#160f20 100%)}
.game-board:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 20% 0%,#ffffff0b 0,transparent 28%),radial-gradient(circle at 100% 30%,#ff5c9314 0,transparent 34%);pointer-events:none}
.game-top{position:sticky;top:0;z-index:4;background:linear-gradient(180deg,#140f20 70%,#140f2000 100%);padding-top:2px}
.score-panel,.turn-banner,.game-hint,.start-summary,.remote-panel,.warning-card,.dialog,.pass-dialog,.setup-form label input,.remote-panel input,.remote-panel select{backdrop-filter:blur(8px)}
.turn-banner{position:relative;overflow:hidden}
.turn-banner:after{content:"";position:absolute;inset:0;background:linear-gradient(115deg,transparent 0%,#ffffff18 45%,transparent 70%);transform:translateX(-120%);animation:sheen 5s infinite linear}
@keyframes sheen{to{transform:translateX(130%)}}
.mood-track{margin:8px 0 10px;padding:10px 12px;background:linear-gradient(180deg,#2a1e34,#20162a);border:1px solid #644663;border-radius:14px}
.mood-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:11px;color:#d8bdd0;font-weight:800;letter-spacing:.06em}
.mood-head b{font-size:12px;color:#fff0f4}
.mood-steps{display:flex;justify-content:space-between;position:relative;z-index:1;margin-bottom:6px}
.mood-step{width:26px;height:26px;border-radius:999px;display:grid;place-items:center;background:#3a2a45;border:1px solid #785479;color:#b9a3b7;font-size:13px;font-weight:900;transition:.2s}
.mood-step.active{background:linear-gradient(180deg,#ff85b0,#ff5d92);border-color:#ffc1d7;color:white;box-shadow:0 0 0 3px #ff9bbc22,0 0 16px #ff77aa44}
.mood-progress{height:7px;background:#402d4b;border-radius:999px;overflow:hidden}
.mood-progress i{display:block;height:100%;width:22%;background:linear-gradient(90deg,#ffd56c,#ff87b1 55%,#ff5d92);border-radius:999px;transition:width .35s ease}
.special-row{display:flex;gap:6px;flex-wrap:wrap;margin:-1px 0 7px}
.special-row span{font-size:10px;font-weight:900;color:#ffe8ef;background:#442a51;border:1px solid #785075;border-radius:999px;padding:5px 8px;letter-spacing:.03em}
.special-row.compact span{font-size:9px;padding:4px 7px}
.active-card-wrap small,.deck-stack small{font-size:9px;color:#d6bfd0;font-weight:800;letter-spacing:.08em}
.draw-card,.playing-card{box-shadow:0 12px 28px #0007}
.draw-card{position:relative;overflow:hidden}
.draw-card:before{content:"";position:absolute;inset:-30%;background:linear-gradient(120deg,transparent 35%,#ffffff22 50%,transparent 65%);animation:shineDraw 3s linear infinite}
@keyframes shineDraw{to{transform:translateX(120%) translateY(10%)}}
.playing-card{position:relative;overflow:hidden}
.playing-card:before{content:"";position:absolute;inset:auto -18px -18px auto;width:44px;height:44px;border-radius:999px;background:#fff3;filter:blur(8px)}
.card-badge{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);font-size:8px;font-weight:1000;letter-spacing:.08em;background:#ffffffde;color:#3b2134;border-radius:999px;padding:3px 7px;min-width:max-content;text-transform:uppercase}
.effect-skip .card-badge{color:#5e2b18;background:#ffd59f}
.effect-replay .card-badge{color:#1b3867;background:#cae6ff}
.effect-minus1 .card-badge,.effect-minus2 .card-badge{color:#4b1b4a;background:#ffd2f5}
.effect-plus2 .card-badge,.effect-plus4 .card-badge{color:#4e1827;background:#ffd9e4}
.hand{align-items:start}
.hand .playing-card{position:relative}
.hand .card-badge{bottom:7px;font-size:6px;padding:2px 5px}
.hand .playing-card.is-playable{transform:translateY(0);animation:pulsePlayable 2s ease-in-out infinite}
.hand .playing-card.is-playable:active{transform:translateY(-8px) scale(1.04)}
@keyframes pulsePlayable{0%,100%{box-shadow:0 0 0 2px #ffedab,0 0 10px #ffd5655f,0 5px 10px #0005}50%{box-shadow:0 0 0 2px #fff0bb,0 0 18px #ffd565b8,0 8px 14px #0006}}
.effect-burst{position:fixed;inset:0;display:grid;place-items:center;pointer-events:none;z-index:60}
.effect-burst.hidden{display:none}
.effect-burst:before{content:"";position:absolute;inset:0;background:#0000}
.effect-burst.animate:before{animation:flashBg 1.2s ease-out}
@keyframes flashBg{0%{background:#ffffff00}15%{background:#ffffff10}100%{background:#ffffff00}}
.effect-burst-card{min-width:170px;display:grid;place-items:center;gap:6px;border-radius:28px;padding:20px 24px;color:white;border:4px solid #fff;box-shadow:0 18px 50px #0007;transform:scale(.5) rotate(-10deg);opacity:0;background:linear-gradient(135deg,#ff5d92,#ff7aab)}
.effect-burst.animate .effect-burst-card{animation:burstCard 1.15s cubic-bezier(.19,1.3,.35,1) forwards}
@keyframes burstCard{0%{transform:scale(.45) rotate(-14deg);opacity:0}18%{transform:scale(1.08) rotate(3deg);opacity:1}70%{transform:scale(1) rotate(0deg);opacity:1}100%{transform:scale(.86) translateY(-12px);opacity:0}}
.effect-burst-card span{font-size:48px;font-weight:1000;line-height:1}
.effect-burst-card small{font-size:16px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}
.effect-burst-card.effect-skip{background:linear-gradient(135deg,#ffb063,#ff6f63)}
.effect-burst-card.effect-replay{background:linear-gradient(135deg,#65c0ff,#447bff)}
.effect-burst-card.effect-minus1,.effect-burst-card.effect-minus2{background:linear-gradient(135deg,#d76bff,#ff67cb)}
.effect-burst-card.effect-plus4{background:linear-gradient(135deg,#ff547f,#ff914d)}
.effect-burst-card.effect-plus2{background:linear-gradient(135deg,#ff77a2,#ff5f7b)}
.main-button,.alt-button,.play-now,.remote-link,.custom-link,.draw-card,.level-pill,.icon-button,.text-button,.duo-button,.back-button{transition:transform .15s ease,filter .15s ease,box-shadow .15s ease}
.main-button:active,.alt-button:active,.play-now:active,.draw-card:active,.icon-button:active,.duo-button:active,.back-button:active{transform:scale(.98)}
#drawButton:disabled{opacity:.55;filter:saturate(.65)}
#drawButton:not(:disabled){animation:drawPulse 2.8s ease-in-out infinite}
@keyframes drawPulse{50%{box-shadow:0 14px 30px #0007,0 0 0 4px #ffffff0d}}
.turn-controls .duo-button{box-shadow:0 8px 18px #0003}
.hand-placeholder{grid-column:1/-1;text-align:center;padding:18px 10px;background:#281b32;border:1px dashed #7d5b82;border-radius:14px;color:#f0d8e3;font-weight:800}
#passOverlay .dialog{max-width:360px}
.pass-dialog{background:linear-gradient(180deg,#5d2f52,#251d39)}
.toast{bottom:max(22px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:#fff6fb;color:#441f35;border:1px solid #e7bfd3;border-radius:999px;padding:12px 18px;box-shadow:0 10px 24px #0004;font-weight:800}
@media (max-width:390px){
  .mood-track{padding:9px 10px}
  .mood-step{width:24px;height:24px}
  .special-row{gap:5px}
  .special-row span{font-size:8.5px;padding:4px 6px}
  .card-badge{font-size:7px;padding:3px 6px}
  .hand .card-badge{font-size:5.5px;padding:2px 4px}
}
@media (max-height:740px){
  .mood-track{margin:7px 0 8px;padding:8px 10px}
  .special-row{margin:0 0 5px}
}

/* V6 — téléphone en priorité, aucune main à faire défiler horizontalement */
#gameView .game-board{border:1px solid #744465;border-radius:22px;padding:12px;background:linear-gradient(160deg,#281a38 0%,#21172f 52%,#1a1127 100%);box-shadow:0 24px 55px #0005}
#gameView .game-top{margin-bottom:9px}
#gameView .score-panel{padding:9px 12px;border-radius:12px;background:#281c38}
#gameView .score-person{font-size:12px}
#gameView .score-middle strong{font-size:10px}
#gameView .game-caption{font-size:10px;margin:8px 2px 8px;text-align:center}
#gameView .turn-banner{padding:9px 12px;border-radius:13px}
#gameView .turn-banner strong{font-size:17px}
#gameView .mood-track{padding:8px 10px;margin:7px 0 6px;border-radius:12px}
#gameView .mood-head{margin-bottom:5px;font-size:10px}
#gameView .mood-step{width:22px;height:22px;font-size:12px}
#gameView .mood-progress{height:5px}
#gameView .table-area{padding:6px 0 6px;gap:10px}
#gameView .table-area .draw-card,#gameView .table-area .playing-card{width:86px;height:121px;border-radius:15px}
#gameView .table-area .playing-card .card-center{font-size:40px}
#gameView .table-area .action-card .card-center{font-size:34px}
#gameView .table-area .card-caption{font-size:9px;margin-top:3px}
#gameView .table-area .card-badge{font-size:7px;bottom:7px;padding:3px 6px}
#gameView .table-area .corner-top,#gameView .table-area .corner-bottom{font-size:16px}
#gameView .table-area .draw-card .stack-heart{font-size:50px}
#gameView .game-utility{margin:5px 0 5px}
#gameView .game-utility>span{font-size:11px}
#gameView .special-row{gap:5px;margin-bottom:5px}
#gameView .special-row span{font-size:8px;padding:3px 6px}
#gameView .hand{display:grid;grid-template-columns:repeat(var(--hand-columns,4),minmax(0,1fr));gap:5px;align-items:start;overflow:visible;padding:2px 1px 7px;max-width:100%;min-height:0}
#gameView .hand .playing-card{width:100%;height:var(--hand-card-height,108px);aspect-ratio:auto;min-height:0;min-width:0;max-width:none;max-height:none;margin:0;border:3px solid #fffaf7;border-radius:10px;box-shadow:0 6px 13px #0005;padding:0;flex:initial;transform:none}
#gameView .hand .playing-card:after{inset:4px;border-width:1px;border-radius:5px}
#gameView .hand .card-center{font-size:var(--hand-main-font,30px);line-height:1}
#gameView .hand .action-card .card-center{font-size:var(--hand-main-font,30px)}
#gameView .hand .corner-top,#gameView .hand .corner-bottom{font-size:var(--hand-corner-font,12px);left:5px;top:4px}
#gameView .hand .corner-bottom{left:auto;top:auto;right:5px;bottom:4px}
#gameView .hand .card-caption{font-size:var(--hand-caption-font,8px);margin:4px 2px 0;line-height:1.05;max-width:100%;word-break:break-word;text-align:center}
#gameView .hand .card-badge{font-size:6px;bottom:4px;padding:1px 4px;line-height:1.1;max-width:95%;min-width:0}
#gameView .hand .playing-card .card-theme-icon{font-size:12px;line-height:1;margin:3px 0 0;filter:drop-shadow(0 1px 1px #0003)}
#gameView .table-area .card-theme-icon{font-size:16px;margin:4px 0 0}
#gameView .hand.tiny-hand .corner-bottom{display:none}
#gameView .hand.tiny-hand .card-caption{font-size:6px;margin:3px 0 0;letter-spacing:-.025em}
#gameView .hand.tiny-hand .card-badge{display:none}
#gameView .hand.tiny-hand .card-theme-icon{font-size:10px;margin:2px 0 0}
#gameView .hand.micro-hand .card-caption{display:none}
#gameView .hand.micro-hand .card-theme-icon{font-size:11px}
#gameView .hand.micro-hand .playing-card{border-width:2px;border-radius:7px}
#gameView .hand .playing-card:not(.is-playable){opacity:.56;filter:saturate(.65)}
#gameView .hand.privacy-locked .playing-card{visibility:hidden!important;pointer-events:none}
#gameView .hand.privacy-locked{position:relative;min-height:100px;background:repeating-linear-gradient(45deg,#452644,#452644 8px,#38243f 8px,#38243f 16px);border-radius:12px}
#gameView .hand.privacy-locked:after{content:'♥ MAIN MASQUÉE ♥';position:absolute;inset:0;display:grid;place-items:center;color:#ffe3f0;font-size:14px;font-weight:900;letter-spacing:.05em}
#gameView .game-hint{font-size:11px;padding:8px;border-radius:9px}
#gameView .game-bottom{margin-top:6px}
#gameView .game-bottom .text-button{font-size:11px}
#gameView .game-bottom span{font-size:9px}
#gameView .sound-settings{font-size:18px;background:#3b2447;border:1px solid #875b86;flex-shrink:0}
#gameView .game-top{gap:8px}
#gameView .room-indicator{margin-left:auto;white-space:nowrap;font-size:9px;padding:6px 9px}
.top-actions .sound-settings{font-size:17px}
.settings-options{display:grid;gap:8px;margin:15px 0}
.setting-row{display:flex;align-items:center;justify-content:space-between;width:100%;border:1px solid #8d618e;background:#3b264b;border-radius:12px;color:#fff;padding:14px 12px;font-size:13px;text-align:left;gap:9px}
.setting-row b{color:#ffcae0;font-size:12px}
.preview-card{width:144px;height:196px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;border:6px solid white;border-radius:20px;margin:16px auto;color:white;box-shadow:0 18px 30px #0007;background:linear-gradient(145deg,color-mix(in srgb,var(--base) 75%,white),var(--base))}
.preview-card .preview-symbol{font-size:62px;font-weight:1000;text-shadow:0 4px 8px #0003}
.preview-card strong{font-size:12px;font-weight:900;text-align:center;text-transform:uppercase}
.confetti-layer{position:fixed;inset:0;pointer-events:none;z-index:90;overflow:hidden}
.confetti-piece{position:absolute;top:-30px;left:var(--x);font-size:var(--size);color:#ff8eb5;animation:confettiFall var(--duration) ease-in var(--delay) forwards;text-shadow:0 0 8px #ffffff80}
.confetti-piece:nth-child(3n){color:#ffd066}.confetti-piece:nth-child(4n){color:#8fe2ff}
@keyframes confettiFall{0%{transform:translate(0,-30px) rotate(-15deg);opacity:1}100%{transform:translate(var(--drift),115vh) rotate(760deg);opacity:0}}
.reduce-motion *, .reduce-motion *:before,.reduce-motion *:after{animation:none!important;transition:none!important}
@media(max-height:780px){
  #gameView .game-board{padding:8px}
  #gameView .table-area .draw-card,#gameView .table-area .playing-card{width:76px;height:106px}
  #gameView .table-area .playing-card .card-center{font-size:35px}
  #gameView .table-area .action-card .card-center{font-size:28px}
  #gameView .table-area{padding:2px 0 3px}
  #gameView .game-hint{font-size:10px;padding:6px}
  #gameView .game-caption{margin:4px 0}
  #gameView .mood-track{padding:6px 8px}
}
@media(max-width:350px){#gameView .game-board{padding:6px}#gameView .score-panel{padding:7px 8px}#gameView .turn-banner{padding:7px 8px}#gameView .special-row span{font-size:7px;padding:2px 4px}}
body.is-playing .topbar{display:none}
#gameView .hand .card-badge{display:none!important}
#gameView .hand .playing-card .card-caption{font-weight:1000;text-shadow:0 1px 2px #0004}
#gameView .hand .playing-card .card-theme-icon{margin-top:2px}
@media(max-height:620px){
  #gameView .game-caption{display:none}
  #gameView .mood-track{display:none}
  #gameView .special-row{display:none}
  #gameView .game-top{margin-bottom:5px}
  #gameView .score-panel{padding:6px 8px}
  #gameView .turn-banner{padding:6px 9px}
  #gameView .turn-banner-icon{font-size:25px}
  #gameView .table-area{padding:0 0 2px}
  #gameView .table-area .draw-card,#gameView .table-area .playing-card{width:67px;height:92px}
  #gameView .table-area .playing-card .card-center{font-size:31px}
  #gameView .table-area .action-card .card-center{font-size:25px}
  #gameView .table-area .draw-card .stack-heart{font-size:35px}
  #gameView .table-area .card-caption{font-size:7px}
  #gameView .table-area .card-badge{font-size:6px;padding:2px 4px}
  #gameView .table-area .card-theme-icon{font-size:13px;margin:1px}
  #gameView .table-area .corner-top,#gameView .table-area .corner-bottom{font-size:12px}
  #gameView .table-area .deck-stack>small,#gameView .table-area .active-card-wrap>small{font-size:8px}
  #gameView .hand{gap:4px}
  #gameView .game-hint{font-size:9px;padding:5px}
  #gameView .game-utility{margin:2px 0}
  #gameView .game-bottom{margin:1px 0}
}

/* V6.1 — UNO / CONTRE UNO : boutons visibles mais compacts sur mobile */
.turn-controls{gap:6px;flex-wrap:wrap;justify-content:flex-end}
.uno-button,.counter-uno-button{
  border:2px solid #fff6c0;
  border-radius:999px;
  min-height:34px;
  padding:6px 12px;
  font-size:12px;
  font-weight:1000;
  letter-spacing:.035em;
  color:#351523;
  background:linear-gradient(110deg,#fff2a3,#ffca58);
  box-shadow:0 0 0 2px #f6ad3338,0 5px 15px #0005;
  animation:unoGlow 1.4s ease-in-out infinite;
}
.counter-uno-button{color:#fff9fb;border-color:#ffd7eb;background:linear-gradient(110deg,#ef4f87,#b13282);box-shadow:0 0 0 2px #ff79bb30,0 5px 16px #0005}
.uno-button:active,.counter-uno-button:active{transform:scale(.94)}
@keyframes unoGlow{0%,100%{filter:brightness(1)}50%{filter:brightness(1.1)}}
.uno-dialog-icon{color:#ffd267;text-shadow:0 0 20px #ffc15088}
.big-uno{margin:18px 0 10px;min-height:66px;font-size:23px;letter-spacing:.12em;background:linear-gradient(120deg,#ffde77,#ffa64d);border-color:#fff3bc;color:#401b1b;box-shadow:0 8px 22px #ffbb6e44;animation:unoGlow 1.4s ease-in-out infinite}
.effect-burst-card.effect-uno{background:linear-gradient(130deg,#ffbc50,#ff639a)}
.effect-burst-card.effect-counterUno{background:linear-gradient(130deg,#e83b85,#8c37b3)}
@media (max-width:375px){.uno-button,.counter-uno-button{font-size:10px;padding:6px 9px}.game-utility>span{font-size:10px}}
@media(prefers-reduced-motion:reduce){.uno-button,.counter-uno-button,.big-uno{animation:none!important}}

/* V7 : mode distance, cartes photo et durée éphémère */
.remote-privacy-tip{background:#35283f;border:1px solid #785078;border-radius:12px;padding:13px;color:#f6cbdc;line-height:1.5;font-size:12px}
.photo-connection{background:#263a3a;color:#c3ffeb;border:1px solid #4c8175;border-radius:11px;padding:8px 12px;text-align:center;font-size:11px;margin:8px 0}
.photo-challenge-button{margin-bottom:12px;background:linear-gradient(115deg,#ffafc8,#fb6596)}
.camera-box{height:clamp(190px,34svh,300px);background:#140e1e;border:1px solid #906c8b;border-radius:15px;display:grid;place-items:center;overflow:hidden;position:relative}
.camera-box video,.camera-box img{width:100%;height:100%;object-fit:contain;background:#160d1e}
.photo-camera-actions{margin:12px 0;display:flex;gap:10px}
.photo-duration-label{display:block;color:#f8d4e4;font-size:12px;font-weight:750;margin:16px 0 7px}
.photo-duration{display:block;width:100%;color:#fff;background:#3d2947;border:1px solid #ad7297;border-radius:12px;padding:12px;font:inherit}
.photo-camera-actions .main-button,.photo-camera-actions .alt-button{min-height:45px}
.photo-inbox{position:fixed;z-index:95;left:16px;right:16px;bottom:max(18px,env(safe-area-inset-bottom));margin:0 auto;max-width:460px;display:flex;align-items:center;gap:9px;background:#fff3f9;border:2px solid #d55f96;color:#421a37;border-radius:16px;padding:11px 13px;box-shadow:0 16px 38px #0009}
.photo-inbox span{flex:1;font-weight:900;font-size:13px}.photo-inbox button{background:#ec4e8a;color:white;border:0;border-radius:10px;font-size:12px;font-weight:900;padding:10px 13px}.photo-inbox button:last-child{background:#e4d1dc;color:#572c48;font-size:18px;padding:6px 10px}
.photo-viewer{position:fixed;z-index:110;inset:0;display:grid;place-items:center;background:#050409eb;backdrop-filter:blur(12px);padding:20px}
.photo-viewer-content{max-width:450px;width:100%;display:grid;gap:14px;text-align:center;color:white}
.photo-viewer-head{display:flex;justify-content:space-between;align-items:center;font-weight:800}
.photo-viewer-head strong{font-size:23px;color:#ff9ebc}
.photo-viewer img{display:block;width:100%;max-height:60svh;object-fit:contain;background:#170d20;border-radius:15px;border:1px solid #77536c}
.photo-viewer p{font-size:13px;color:#d6c1ce;margin:0}
.photo-viewer button{border:1px solid #e8c6d7;background:#382339;color:white;border-radius:12px;padding:15px;font-weight:900;font-size:14px}
@media(max-height:700px){.camera-box{height:190px}.dialog{padding:16px}.photo-challenge-button{margin-bottom:8px}}


/* V7.1 — Un accueil clair : 2 modes dans une seule application */
.dual-hero{padding:2px 0 9px;overflow:visible}
.dual-hero .eyebrow{font-size:9px;letter-spacing:.13em}
.dual-hero .floating-cards{height:100px;margin:8px auto 5px;width:220px;max-width:100%;transform:scale(.62);transform-origin:50% 0;}
.dual-hero h1{font-size:clamp(42px,10vw,57px);letter-spacing:-.063em;line-height:.9;margin:-29px 0 0}
.dual-hero .hero-subtitle{font-size:13px;line-height:1.45;margin:9px 0 8px}
.two-modes{margin-top:7px}
.mode-title{font-size:16px;font-weight:900;text-align:center;color:#fff3f8;margin:2px 0 9px;letter-spacing:-.015em}
.mode-choice{display:flex;align-items:center;text-align:left;width:100%;border-radius:19px;min-height:96px;padding:14px 13px;gap:11px;box-shadow:0 12px 25px #0005;transition:transform .15s ease,filter .15s ease;}
.mode-choice:active{transform:scale(.985)}
.mode-choice-shared{border:2px solid #ffb1cb;color:#421729;background:linear-gradient(125deg,#ffadcb,#ff5f96)}
.mode-choice-remote{margin-top:12px;border:2px solid #a8b8ff;color:#fff5ff;background:linear-gradient(125deg,#493878,#36265e)}
.mode-choice-icon{width:55px;height:55px;flex:0 0 55px;border-radius:15px;display:grid;place-items:center;font-size:32px;background:#fff9ff;box-shadow:0 3px 8px #21103330;color:#511d3c}
.mode-remote-icon{background:#6352a0;color:#fff;box-shadow:0 3px 8px #09062570}
.mode-choice-copy{flex:1;min-width:0;display:grid;gap:4px}
.mode-choice-copy strong{font-size:20px;font-weight:950;letter-spacing:.02em;line-height:1.1}
.mode-choice-copy small{font-size:12px;font-weight:750;line-height:1.25}
.mode-choice-detail{font-size:10px;font-weight:680;line-height:1.25;opacity:.87}
.mode-choice .play-now-arrow{margin-left:0;flex:0 0 auto;font-size:24px}
.mode-choice-remote .play-now-arrow{color:#d4bdff}
.mode-setup-note{font-size:10px;line-height:1.4;color:#c6afcd;margin:10px 3px 0;text-align:center}
.two-modes .custom-link{padding:12px 8px 4px}
.two-modes .start-summary{margin-top:10px;padding:11px 10px;border-radius:14px}
.two-modes .start-summary .stars{margin-bottom:5px}
.two-modes .start-summary p{font-size:11px;margin:6px 0 0}
.two-modes .home-bottom{padding:6px 0 0}
.two-modes + footer{margin-top:8px}
@media(max-width:365px){
 .mode-choice{padding:11px 10px;gap:8px;min-height:92px}
 .mode-choice-icon{width:45px;height:45px;flex-basis:45px;font-size:26px}
 .mode-choice-copy strong{font-size:18px}
 .mode-choice-copy small{font-size:11px}
 .mode-choice-detail{font-size:9px}
}
@media(prefers-reduced-motion:reduce){.mode-choice{transition:none}}

/* Invitation en 1 clic : accès visible dès l'accueil */
.invite-hero-button{width:100%;display:flex;align-items:center;text-align:left;gap:12px;border:1.5px solid #ffadca;background:linear-gradient(115deg,#662b59,#4c244e);border-radius:17px;padding:13px 15px;color:#fff;box-shadow:0 12px 28px #0004;margin:11px 0 3px}
.invite-hero-button:active{transform:scale(.985)}
.invite-heart{display:grid;place-items:center;border-radius:12px;flex-shrink:0;width:47px;height:47px;background:#ffffff1a;font-size:29px}
.invite-text{display:flex;flex:1;flex-direction:column;min-width:0;gap:4px}
.invite-text strong{font-size:14px;line-height:1.15;letter-spacing:.025em;color:#fff}
.invite-text small{font-size:11px;color:#ffdae9;line-height:1.4}
.invite-arrow{font-size:21px;color:#ffc1d8}
.invite-notice{border:1px solid #b47ba9;background:linear-gradient(110deg,#512b52,#362345);border-radius:15px;padding:14px 16px;color:#fff;margin:14px 0}
.invite-notice strong{font-size:15px}
.invite-notice p{font-size:12px;line-height:1.5;margin:7px 0 0;color:#f5d9e9}
.invite-link-preview{border:1px solid #70506c;border-radius:12px;background:#24162f;color:#f9ddea;font-size:12px;line-height:1.5;padding:12px;overflow-wrap:anywhere;margin:11px 0 17px;user-select:all}
.invite-action-stack{display:grid;gap:10px;margin-top:9px}
.invite-action-stack button{width:100%}
.invite-code-caption{font-size:11px;line-height:1.5;color:#dac3d3;margin:8px 0 0}
@media(max-width:370px){.invite-hero-button{padding:11px 12px;gap:9px}.invite-text strong{font-size:12px}.invite-text small{font-size:10px}}

#remoteView.invited .remote-panel:first-child,#remoteView.invited .or-divider{display:none}
#remoteView.invited .remote-sections{margin-top:12px}
#remoteView.invited .remote-panel:last-of-type{border-color:#c182b0;box-shadow:0 0 0 2px #ff8ec019}

/* V7.3 — choix simple 1 ou 2 téléphones dans le mode Ensemble */
.together-choice-header{text-align:center;margin:15px auto 26px;max-width:390px}
.choice-emoji{font-size:59px;margin:6px 0 14px;filter:drop-shadow(0 10px 20px #ff6c9a55)}
.together-choice-header .page-title{font-size:clamp(27px,7vw,35px);line-height:1.12;margin-bottom:12px}
.together-choice-header p{font-size:14px;color:#e0c9db;line-height:1.45;margin:0}
.together-choice-options{display:grid;gap:14px}
.together-option{display:flex;align-items:center;width:100%;text-align:left;gap:13px;color:#fff;border:2px solid #a9639a;background:linear-gradient(120deg,#563256,#302340);border-radius:19px;padding:16px 14px;box-shadow:0 12px 27px #0005;transition:transform .15s,filter .15s}
.together-option:first-child{border-color:#ffb8d2;background:linear-gradient(115deg,#713858,#4b284a)}
.together-option:active{transform:scale(.985)}
.option-illustration{width:62px;min-width:62px;min-height:65px;display:grid;place-items:center;font-size:33px;border-radius:14px;background:#fff6ff;color:#3b2147;box-shadow:0 4px 13px #0002;white-space:nowrap;letter-spacing:-.4em;padding-right:.4em}
.option-description{display:grid;gap:6px;min-width:0;flex:1}
.option-description strong{font-size:21px;font-weight:900;letter-spacing:-.025em}
.option-description small{font-size:12px;line-height:1.35;color:#f5dceb}
.option-description em{font-size:11px;font-weight:750;color:#ffd8a3;font-style:normal}
.together-note{border-radius:14px;border:1px solid #764d75;padding:13px 15px;background:#2e213a;color:#e7cbdd;font-size:12px;line-height:1.5;margin:22px 0 8px}
@media(max-width:380px){.together-option{padding:12px 10px;gap:9px}.option-illustration{width:52px;min-width:52px;min-height:58px;font-size:27px}.option-description strong{font-size:19px}}
