/* Identités choisies : variables locales, indépendantes des thèmes de navigation. */
html #app :is(#v-play,#v-quiz){--world-ink:#fff6e9;--world-muted:#e3cead;--world-card:#2f211ce8;--world-line:#b18b65;--world-accent:#b0523c;--world-other:#88a58e;color:var(--world-ink);isolation:isolate;background-position:center;background-size:cover;background-repeat:no-repeat}
html #app #v-play[data-game=ttt]{--world-ink:#213f60;--world-muted:#64594b;--world-card:#fff6e5e8;--world-line:#b8a38a;--world-accent:#345d87;--world-other:#de816b;background-image:url('/assets/games/carnet.png');font-family:Georgia,serif}
html #app #v-play[data-game=rps]{background-image:linear-gradient(#21160f22,#291a100d),url('/assets/games/dojo.png');--world-card:#2c201bea;--world-accent:#b84232;--world-other:#d7b58a}
html #app #v-play[data-game=coin]{--world-ink:#3b2e23;--world-muted:#655343;--world-card:#fff4dfe8;--world-line:#b89c77;--world-accent:#a95128;--world-other:#6b8260;background-image:url('/assets/games/antique.png');font-family:Georgia,serif}
html #app #v-play[data-game=checkers]{--world-ink:#292a2b;--world-muted:#66615c;--world-card:#f8f2e9ed;--world-line:#b8b0a7;--world-accent:#35373b;--world-other:#d7d7d4;background-image:url('/assets/games/marbre.png')}
html #app #v-quiz{--world-ink:#fff8e9;--world-muted:#b8cce9;--world-card:#071736ed;--world-line:#bc9857;--world-accent:#efb755;--world-other:#5aaff3;background-image:linear-gradient(#030a1d22,#030a1d22),url('/assets/games/studio.png')}
html #app :is(#v-play,#v-quiz) :is(.ghead,.vs,.status,.rcard,.drawbar,.dockbar,.score,.prog){color:var(--world-ink);background:var(--world-card);border:1px solid var(--world-line);box-shadow:0 12px 30px #1a0e0929;backdrop-filter:blur(8px)}
html #app :is(#v-play,#v-quiz) .ghead{border-width:0 0 1px;min-height:72px}
html #app :is(#v-play,#v-quiz) .ghead .t span,html #app :is(#v-play,#v-quiz) :is(.sub,.rnd,.rs,.vt span){color:var(--world-muted)}
html #app :is(#v-play,#v-quiz) .back{background:var(--world-card);border-color:var(--world-line);color:var(--world-ink)}
html #app :is(#v-play,#v-quiz) .vs{border-radius:20px;padding:16px}
html #app :is(#v-play,#v-quiz) .vs .vchip{background:none;border:0;box-shadow:none;border-radius:12px}
html #app :is(#v-play,#v-quiz) .vs .vchip.on{outline:1px solid var(--world-line);background:#b98c4120}
html #app :is(#v-play,#v-quiz) .vs .avatar{background:var(--world-accent);color:#fff8ed;box-shadow:none;border:1px solid var(--world-line)}
html #app :is(#v-play,#v-quiz) .vs .mk{background:var(--world-accent)}
html #app :is(#v-play,#v-quiz) .vs .op .mk{background:var(--world-other)}
html #app :is(#v-play,#v-quiz) .status{color:var(--world-ink);border-color:var(--world-line)}
html #app :is(#v-play,#v-quiz) .rcard :is(.rt,.rs){color:var(--world-ink)}
html #app :is(#v-play,#v-quiz) .dockbar svg{stroke:var(--world-ink)}
html #app :is(#v-play,#v-quiz) .dock.open{background:var(--world-card);border-color:var(--world-line);color:var(--world-ink)}
html #app :is(#v-play,#v-quiz) .btn{background:var(--world-accent);color:#fff8ec;border-color:var(--world-line)}
html #app :is(#v-play,#v-quiz) .btn.ghost{background:var(--world-card);color:var(--world-ink)}
html #app #v-play[data-game=ttt] .tgrid{background:#fff4dd50;box-shadow:none;border:0;filter:none;padding:18px;transform:rotate(-.6deg)}
html #app #v-play[data-game=ttt] .tcell{border:0;box-shadow:none;background:transparent;color:#315b86;font-family:Georgia,serif;font-size:clamp(40px,9vw,110px)}
html #app #v-play[data-game=ttt] .tcell:nth-child(3n+1),html #app #v-play[data-game=ttt] .tcell:nth-child(3n+2){border-right:3px solid #45688aa6}
html #app #v-play[data-game=ttt] .tcell:nth-child(-n+6){border-bottom:3px solid #45688aa6}
html #app #v-play[data-game=ttt] .tcell.op{color:#dd826c}
html #app #v-play[data-game=ttt] .tcell svg{stroke-width:3;filter:none;transform:rotate(-4deg)}
html #app #v-play[data-game=ttt] .tcell.win{background:#e4b45430}
html #app #v-play[data-game=rps] .pbody{max-width:760px;padding:24px;border-radius:24px;background:#21180f55;backdrop-filter:blur(4px)}
html #app #v-play[data-game=rps] :is(.pk,.hand){border:1px solid #bd9c70;background:linear-gradient(135deg,#f8eacb,#dfcca8);box-shadow:0 8px 15px #160e0766;color:#251c15;border-radius:16px}
html #app #v-play[data-game=rps] .pk small,html #app #v-play[data-game=rps] .hand small{color:#251c15}
html #app #v-play[data-game=rps] .pe{filter:grayscale(1) contrast(1.8);font-size:clamp(42px,5vw,80px)}
html #app #v-play[data-game=rps] .pk{min-height:160px;position:relative;padding:22px 12px;overflow:hidden}
html #app #v-play[data-game=rps] .pk::before{content:'';position:absolute;width:70%;aspect-ratio:1;border:6px solid #b34832a6;border-radius:50%;transform:rotate(-12deg);top:15px;left:15%;pointer-events:none}
html #app #v-play[data-game=rps] .pk .pe,html #app #v-play[data-game=rps] .pk small{position:relative;z-index:1}
html #app #v-play[data-game=coin] .pbody{gap:22px;max-width:650px;padding:26px 20px;background:#fff5df75;backdrop-filter:blur(5px);border-radius:24px}
html #app #v-play[data-game=coin] .coin{width:clamp(160px,23vw,280px);height:auto;aspect-ratio:1;background:radial-gradient(circle at 32% 26%,#fff1b3,#d9ad48 40%,#af7926 75%,#f2cf6d);border:10px double #bf8c2d;box-shadow:inset 0 0 0 3px #ffe5a0,inset 0 0 20px #714a1d88,0 18px 25px #71542255;color:#80561e;font-size:clamp(36px,5vw,60px);text-shadow:0 1px #fff0ba;position:relative}
html #app #v-play[data-game=coin] .coin::after{content:'❧';position:absolute;inset:9%;border:2px dotted #986a2c;border-radius:50%;display:flex;justify-content:center;align-items:flex-end;padding-bottom:4px;font-size:34px;pointer-events:none}
html #app #v-play[data-game=coin] .prow2 .btn{min-width:100px;flex:1}
html #app #v-play[data-game=checkers] .ckb{border:12px solid #ded9d1;border-radius:13px;background:#e4e1da;box-shadow:0 0 0 1px #a49c93,0 12px 0 #b3ada4,0 24px 32px #51483d55;overflow:hidden}
html #app #v-play[data-game=checkers] .sq{background:linear-gradient(135deg,#f1eee7,#d8d4cb 45%,#f4f2ed);box-shadow:inset 0 0 1px #aba59b}
html #app #v-play[data-game=checkers] .sq.dk{background:repeating-linear-gradient(125deg,transparent 0px,transparent 15px,#e0e0db10 16px,transparent 18px),linear-gradient(135deg,#4e5051,#343637 60%,#626365)}
html #app #v-play[data-game=checkers] .pc.me{background:radial-gradient(circle at 32% 24%,#858688,#34373b 55%,#17191b);box-shadow:0 4px 0 #17191a,0 8px 10px #20202066,inset 0 1px 2px #e3e3e3a1;color:#e5e4df}
html #app #v-play[data-game=checkers] .pc.op{background:radial-gradient(circle at 32% 24%,#fffef7,#d6d6d1 45%,#959690);box-shadow:0 4px 0 #83847f,0 8px 10px #20202066,inset 0 1px 2px white;color:#4c4d48}
html #app #v-play[data-game=checkers] .sq.sel{box-shadow:inset 0 0 0 3px #e8ca86}
html #app #v-play[data-game=checkers] .sq.tg::after{background:#d6bd83;box-shadow:none}
html #app #v-quiz .qbox{background:linear-gradient(150deg,#112a58f5,#06142df5);border:1px solid #c09b59;border-radius:24px;box-shadow:0 16px 45px #01081999,0 0 30px #2c7edb44;padding:clamp(20px,3vw,40px);max-width:800px}
html #app #v-quiz .qtext,html #app #v-quiz .qbox h2{color:#fff8e9;font-size:clamp(22px,2.5vw,34px);line-height:1.35}
html #app #v-quiz .qopts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
html #app #v-quiz .qopt{background:#0c2452;border:1px solid #4a9ee7;border-radius:12px;color:#f6f6f0;padding:16px;box-shadow:inset 0 0 16px #2583dd26,0 0 10px #2699ff2b}
html #app #v-quiz .qopt .ql{color:#efbd64;border-color:#bd9655}
html #app #v-quiz .qopt.good{border-color:#8bcba4;background:#1c6244}
html #app #v-quiz .qopt.bad{border-color:#e7978c;background:#682e38}
html #app #v-quiz .qbar i{background:linear-gradient(90deg,#dba247,#ffda85);box-shadow:0 0 12px #dfb26066}
html #app #v-quiz .qcat{background:#173b70;color:#d8e9ff;border-color:#4875a6}
@media(max-width:699px){html #app #v-play[data-game=rps] .pbody{padding:18px 8px}html #app #v-play[data-game=rps] .pk{min-height:125px;padding:20px 6px}html #app #v-play[data-game=checkers] .ckb{border-width:8px}html #app #v-quiz .qopts{grid-template-columns:1fr}html #app :is(#v-play,#v-quiz) .vs{padding:8px}}
html:has(.salon-demo-note) #reviewNotice{display:none!important}
html #app #v-play[data-game=rps] .pk .pe{display:block;width:100%;aspect-ratio:1;background:url('/assets/games/dojo-gestures.png') 0 50%/300% 100% no-repeat;font-size:0;filter:none;min-height:50px}
html #app #v-play[data-game=rps] .pk:nth-child(2) .pe{background-position:50% 50%}
html #app #v-play[data-game=rps] .pk:nth-child(3) .pe{background-position:100% 50%}
html #app :is(#v-play,#v-quiz){--fg:var(--world-ink);--muted:var(--world-muted);--line:var(--world-line);--line2:var(--world-line);--acc:var(--world-accent);--acc-lt:var(--world-other);--gold:var(--world-other)}
html #app #v-play[data-game=coin] .coin{background:url('/assets/games/antique-token.png') center/contain no-repeat;border:0;box-shadow:none;filter:drop-shadow(0 15px 12px #74522255);display:flex;align-items:flex-end;justify-content:center;padding-bottom:14%;font-size:22px;line-height:1;color:#4e3418;text-shadow:0 1px 2px #ffe9a0;font-weight:800}
html #app #v-play[data-game=coin] .coin::after{display:none}
html #app #v-play[data-game=coin] .prow2 .pk{background:#aa512b;border:1px solid #b89c77;border-radius:18px;color:#fff5e3;flex:1;min-height:56px;padding:14px 24px;box-shadow:0 5px 12px #714e2829}
html #app #v-play[data-game=coin] .prow2 .pk small{color:#fff5e3;font-size:16px}
html #app #v-play[data-game=coin] .prow2 .pk:first-child{background:#fff0d5;color:#4e361f}
html #app #v-play[data-game=coin] .prow2 .pk:first-child small{color:#4e361f}

/* Derniers ajustements validés : symboles lisibles, fonds composés pour le portrait. */
html #app #v-play[data-game=ttt] .tcell{font-size:clamp(72px,19vw,180px);overflow:hidden}
html #app #v-play[data-game=ttt] .tcell svg{width:100%;height:100%;max-width:none;transform:rotate(-4deg) scale(1.35);stroke-width:3}
@media(max-width:699px){
 html #app #v-game{background-image:linear-gradient(#1b100c12,#24110d10),url('/assets/games/mobile/salon.png');background-position:center center;background-size:cover}
 html #app #v-play[data-game=ttt]{background-image:url('/assets/games/mobile/carnet.png');background-position:center center}
 html #app #v-play[data-game=rps]{background-image:linear-gradient(#21160f15,#291a1008),url('/assets/games/mobile/dojo.png');background-position:center center}
 html #app #v-play[data-game=coin]{background-image:url('/assets/games/mobile/antique.png');background-position:center center}
 html #app #v-play[data-game=checkers]{background-image:url('/assets/games/mobile/marbre.png');background-position:center center}
 html #app #v-quiz{background-image:linear-gradient(#030a1d18,#030a1d18),url('/assets/games/mobile/studio.png');background-position:center center}
}

/* Tablette : composition 3:4 cadrée en portrait comme en paysage. */
@media(min-width:700px) and (max-width:1199px) and (min-height:600px), (min-width:1200px) and (max-width:1399px) and (min-height:900px){
 html #app #v-game{background-image:linear-gradient(#1b100c12,#24110d10),url('/assets/games/tablet/salon.png');background-position:center center;background-size:cover}
 html #app #v-play[data-game=ttt]{background-image:url('/assets/games/tablet/carnet.png');background-position:center center}
 html #app #v-play[data-game=rps]{background-image:linear-gradient(#21160f15,#291a1008),url('/assets/games/tablet/dojo.png');background-position:center center}
 html #app #v-play[data-game=coin]{background-image:url('/assets/games/tablet/antique.png');background-position:center center}
 html #app #v-play[data-game=checkers]{background-image:url('/assets/games/tablet/marbre.png');background-position:center center}
 html #app #v-quiz{background-image:linear-gradient(#030a1d18,#030a1d18),url('/assets/games/tablet/studio.png');background-position:center center}
}
