:root{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;color:#263648;background:#c0d2a0}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;min-height:100dvh;background:url('/img/cour-billes.png') center/cover fixed no-repeat}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #ef921f;outline-offset:3px}.page{max-width:1160px;padding:24px;margin:auto}.language{position:absolute;right:12px;top:12px}.language select{border:1px solid #c5a77c;border-radius:99px;padding:7px;background:#fff9e9;color:#55432c}.logo{font-family:'Trebuchet MS',system-ui;font-size:43px;font-weight:950;letter-spacing:-2px;color:#ffd569;text-shadow:0 3px #95480e,0 5px 6px #492f0d75;margin:0}.logo span{font-size:24px;display:inline-block;color:#25b6e4;margin-left:8px;text-shadow:0 2px #15517d}.lobby-header{display:flex;align-items:center;justify-content:space-between;margin:8px 0 18px;padding-right:38px;gap:12px}.lobby-header>div{display:flex;align-items:baseline;gap:18px}.lobby-header nav{display:flex;gap:8px}#hello{font-weight:800;font-size:17px}.round,.button{border:2px solid #bf7e3c;border-radius:999px;background:linear-gradient(#ffe9b5,#f7ce7c);color:#704719;font-weight:800;padding:11px 20px;min-height:44px;box-shadow:inset 0 2px #fff9,0 3px #b07b40;text-align:center}.round{padding:9px 15px;font-size:12px}.primary{background:linear-gradient(#ffbc65,#ee792e);color:white;border-color:#bc5f20;box-shadow:inset 0 2px #fffc,0 3px #a94d1d}.secondary{background:linear-gradient(#a1eed0,#53c49b);color:#184e3c;border-color:#298a69;box-shadow:inset 0 2px #fffc,0 3px #27795b}.small{font-size:12px;min-height:38px;padding:8px 13px}.link{border:0;background:transparent;color:#715083;text-decoration:underline;font-size:12px;min-height:36px}.team,.access-card,dialog{background:linear-gradient(140deg,#fffdf4,#fff8e6);border:2px solid #e0b578;border-radius:23px;box-shadow:inset 0 0 0 2px #fff8,0 4px #b48851,0 9px 25px #553c1833}.team{padding:12px 16px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.players{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-right:auto}.player{display:flex;align-items:center;gap:7px;font-size:13px;border-radius:999px;padding:3px}.player i{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;font-style:normal;font-size:11px;color:white;background:radial-gradient(circle at 25% 20%,white,#b9a8e8 30%,#7960b1);box-shadow:0 2px 3px #4e3b5d33}.player.speaking{box-shadow:0 0 0 3px #68c99a}.remove{border:0;background:transparent;color:#80664f;font-size:19px;padding:3px}.team>small{flex-basis:100%;font-size:11px;color:#796d5c}.team>small:empty{display:none}#requests{flex-basis:100%;border-top:1px solid #ead4ae;padding-top:10px}.request{display:flex;gap:9px;align-items:center;flex-wrap:wrap;padding:5px 0;font-size:13px}.games h2{text-align:center;font-family:'Trebuchet MS';font-size:34px;color:#fff8dc;text-shadow:0 2px #81521f,0 5px 10px #3e280c;margin:25px 0 18px}.game-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.game-card{padding:0;text-align:left;border:3px solid #fff2cb;border-radius:25px;overflow:hidden;background:#fff9e9;color:#293a4a;box-shadow:0 6px #aa7840,0 12px 20px #3c2d1733;transition:transform .18s}.game-card:not(:disabled):hover{transform:translateY(-5px)}.game-card:disabled{opacity:.9}.game-art{display:block;height:180px;background:url('/img/jeux-mondes.png') no-repeat;background-size:300% auto}.arena .game-art{background-position:left center}.battle .game-art{background-position:center}.race .game-art{background-position:right center}.game-caption{display:flex;flex-direction:column;gap:12px;padding:18px}.game-caption>strong{font-family:'Trebuchet MS';font-size:26px;letter-spacing:-.6px}.game-caption>small{font-size:13px;line-height:1.5;min-height:40px}.play{display:block;border-radius:999px;text-align:center;font-weight:900;font-size:18px;padding:11px;border:2px solid #297aaa;background:linear-gradient(#92e4ff,#3a9ad3);color:white;box-shadow:inset 0 2px #fffb,0 3px #23688e}.battle .play{border-color:#bd6d26;background:linear-gradient(#ffca7a,#ee8d3d);box-shadow:inset 0 2px #fffb,0 3px #ad5e24}.race .play{border-color:#25865f;background:linear-gradient(#a0e9bb,#4cba91);box-shadow:inset 0 2px #fffb,0 3px #24764e}.waiting{padding:12px;background:#fff8e8;border-radius:14px;text-align:center;font-size:13px}.access{max-width:460px;margin:8vh auto}.access>.logo{text-align:center;font-size:58px;margin-bottom:22px}.access-card{padding:22px}.access-tabs{display:flex;gap:6px;margin-bottom:22px}.access-tabs button{flex:1;border:1px solid #d0b78e;border-radius:12px;background:#fff5dc;font-size:12px;font-weight:800;padding:12px 5px;min-height:44px}.access-tabs [aria-pressed=true]{background:#f6c577;border-color:#bf8637}form{display:flex;flex-direction:column;gap:14px}label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:750}input{min-height:46px;width:100%;padding:10px 12px;background:white;border:2px solid #d4c8b2;border-radius:13px;color:#263648}.check{flex-direction:row;align-items:center}.check input{width:20px;min-height:20px}.error{font-size:13px;color:#9c3c29;line-height:1.5}.error:empty{display:none}dialog{width:min(480px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:22px;color:#263648}dialog::backdrop{background:#354a3a99}dialog>header{display:flex;gap:12px;align-items:center;margin-bottom:20px}dialog h2{font-family:'Trebuchet MS';font-size:24px;margin:0;flex:1}dialog>header button{border:1px solid #2783ad;background:linear-gradient(#9ee7f6,#2486ba);color:white;border-radius:50%;width:38px;height:38px;font-size:25px}.contacts{display:flex;flex-direction:column;gap:12px}.contacts h3{font-size:16px;margin:8px 0 0}.contact-row{display:flex;gap:8px;align-items:center}.contact-row>span{margin-right:auto}.invite-code{text-align:center;border:2px dashed #d9ad6e;border-radius:15px;padding:12px;background:#fff5d6}.invite-code strong{display:block;font-size:30px;letter-spacing:5px}#game-stage{display:none}.in-game .page,.in-game .language{display:none}.in-game #game-stage{display:flex;flex-direction:column;height:100dvh;background:#fff9e9}.game-toolbar{display:flex;gap:10px;align-items:center;min-height:58px;padding:8px 16px;border-bottom:3px solid #cda369}.game-toolbar>strong{margin-right:auto;font-size:20px}#game-frame-host{flex:1;min-height:0;display:flex}.game-frame{flex:1;min-width:0;border:0;width:100%;height:100%}#game-loading,#game-error{margin:0;padding:12px 16px;font-size:13px}#game-error:empty{display:none}#game-retry{align-self:center}#notice{position:fixed;z-index:200;bottom:15px;left:50%;transform:translateX(-50%);width:min(550px,94vw);display:flex;align-items:center;gap:12px;padding:14px 18px;border:2px solid #c78243;border-radius:15px;background:#fff2d8;box-shadow:0 5px 18px #3334;font-size:13px}#notice button{margin-left:auto;background:none;border:0;font-size:22px}@media(max-width:760px){.page{padding:16px 12px}.logo{font-size:32px}.lobby-header>div{flex-direction:column;gap:4px}.lobby-header{padding-right:32px}.lobby-header nav{flex-direction:column;gap:5px}.round{min-height:34px;padding:6px 11px}.game-cards{grid-template-columns:1fr;gap:18px}.game-art{height:160px}.game-caption>small{min-height:0}.team{gap:9px;padding:12px}.players{width:100%}.games h2{font-size:30px}.game-toolbar{gap:7px;padding:8px}.game-toolbar>strong{font-size:16px}.access{margin-top:10vh}.access-card{padding:18px}.language{right:8px;top:6px}}@media(prefers-reduced-motion:reduce){.game-card{transition:none}.game-card:not(:disabled):hover{transform:none}}

.guest-space{max-width:620px;margin:35px auto;padding:32px;text-align:center;border:2px solid #e0b578;border-radius:24px;background:#fff9e9;box-shadow:0 5px #b48851}.guest-space h2{font-family:'Trebuchet MS',sans-serif;font-size:28px}.guest-space p{line-height:1.6}.guest-badge{display:inline-block;padding:7px 18px;border-radius:99px;color:#184e3c;background:#a1eed0;font-weight:800}

dialog:has(.game-picker){width:min(960px,calc(100vw - 24px))}.game-picker .game-art{height:150px}.game-picker .game-caption>strong{font-size:23px}.game-picker .game-card:disabled{opacity:.65}.game-picker .play{font-size:15px}.game-toolbar{flex-wrap:wrap}@media(max-width:760px){.game-picker .game-art{height:105px}.game-picker .game-caption{gap:6px;padding:12px}.game-picker .game-caption>small{min-height:0}}

.simulation-shop{display:grid;gap:16px}.simulation-shop>strong{font-size:23px}.bag-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.bag-model{display:flex;flex-direction:column;align-items:center;gap:6px;padding:9px;background:#f4e8cc;border-radius:14px}.bag-model i{width:30px;height:30px;border-radius:50%;background:radial-gradient(circle at 28% 22%,white,var(--ball-color) 40%,#263648);box-shadow:0 2px 3px #0003}.simulation-shop p{font-size:13px;line-height:1.5}

.marble-register{max-height:240px;overflow:auto;font-size:12px;overflow-wrap:anywhere}.simulation-shop>button{margin-bottom:10px}.simulation-shop details{margin-top:12px}

.guest-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.request-panel{display:grid;gap:12px}.request-panel .request{border-bottom:1px solid #e7d9bd;padding:10px 0}.game-toolbar .has-requests{background:linear-gradient(#ffce72,#f39a42);border-color:#bc6a26;box-shadow:0 3px #a7622c}.request-panel strong{flex-basis:100%;font-size:16px}

.lobby-header nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.bag-pill{display:inline-flex;align-items:center;gap:9px;white-space:nowrap}.bag-pill::before{content:"";width:21px;height:21px;flex:none;border-radius:50%;background:radial-gradient(circle at 28% 22%,#fff 2%,#91e3ff 20%,#20a4cc 48%,#195c91 78%);box-shadow:0 2px 3px #0003}.wallet-buy{white-space:nowrap}.lobby-header .wallet-buy{background:linear-gradient(#b5f0d8,#65c49d);border-color:#479574;color:#184e3c}@media(max-width:760px){.lobby-header{align-items:flex-start;gap:12px}.lobby-header>div{flex-shrink:0}.lobby-header nav{flex-direction:row;max-width:230px;gap:6px}.lobby-header .round{padding:9px 12px}.bag-pill::before{width:18px;height:18px}}

.shared-game-choice{width:min(960px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto}.shared-game-choice .game-card.is-selected{outline:4px solid #258c76;outline-offset:-4px}.shared-game-choice .game-card:disabled{opacity:1}.shared-game-choice .game-card[aria-pressed="false"]:disabled{opacity:.75}.shared-choice-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:18px}.shared-choice-actions button{min-height:44px}@media(max-width:760px){.shared-game-choice .game-cards{gap:10px}.shared-game-choice .game-art{height:70px}.shared-game-choice .game-caption{padding:10px}.shared-choice-actions{position:sticky;bottom:0;background:#fff9e9;padding:10px 0}}

.shared-circuit-choice{max-width:580px;margin:auto}.shared-circuit-choice select{width:100%;min-height:44px;font:inherit;padding:8px}.shared-circuit-choice img{display:block;width:100%;height:clamp(180px,45dvh,360px);object-fit:contain;margin:12px auto}.shared-circuit-name{text-align:center;font-weight:700}
