/* =====================================================================
   SALLE DES JEUX — l'ambiance d'une salle de jeux algérienne des années 90
   Mur peint en vert, néons, bornes d'arcade, granito, jetons de 5 DA.
   ===================================================================== */
:root {
    --wall: #213b33;
    --wall-2: #18302a;
    --wall-dark: #0f1f1b;
    --ink: #0b0a08;
    --paper: #efe6cf;
    --paper-2: #d8ccb0;
    --text: #f4ecdb;
    --text-2: #c9bfa6;
    --muted: #8f8671;
    --red: #ff2e4d;
    --red-2: #c3102b;
    --cyan: #33e6ff;
    --yellow: #ffd23f;
    --green: #39ff88;
    --orange: #ff8a1f;
    --wood: #6d4124;
    --wood-2: #4a2a15;
    --snk: #c8161d;
    --capcom: #1b4fb3;
    --metal: #9aa0a7;
    --font-sign: 'Bungee', 'Cairo', sans-serif;
    --font-ar-sign: 'Lalezar', 'Cairo', sans-serif;
    --font: 'Inter', 'Cairo', system-ui, sans-serif;
    --font-pix: 'Press Start 2P', monospace;
    --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    --plaster: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='.012' numOctaves='5' seed='7'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .6 -.05'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html { overflow-x: clip; }
body {
    min-height: 100vh; font-family: var(--font); color: var(--text); background: var(--ink); overflow-x: hidden; overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body { font-family: 'Cairo', var(--font); }
a { color: inherit; text-decoration: none; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

/* ---------- La pièce : mur, sol, lumière ---------- */
body::before {           /* mur peint : vert d'époque, taches, salissures */
    content: ''; position: fixed; inset: 0; z-index: -3;
    background:
        radial-gradient(ellipse 60% 40% at 50% 8%, rgba(255,245,210,.10), transparent 70%),
        radial-gradient(ellipse at 15% 30%, rgba(0,0,0,.35), transparent 45%),
        radial-gradient(ellipse at 85% 45%, rgba(0,0,0,.3), transparent 50%),
        var(--plaster),
        linear-gradient(180deg, var(--wall) 0%, var(--wall-2) 55%, var(--wall-dark) 72%, #1b1712 72.2%, #2a241c 73%, #1a1611 74%);
    background-blend-mode: normal, normal, normal, multiply, normal;
}
body::after {            /* sol en granito + vignettage + voile de fumée */
    content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background:
        radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.72) 100%),
        linear-gradient(180deg, transparent 74%, rgba(0,0,0,.25) 74%),
        var(--noise);
    opacity: .9;
}
.ceiling { position: fixed; inset: 0 0 auto 0; height: 60vh; z-index: -1; pointer-events: none;
    background:
        radial-gradient(ellipse 22% 30% at 18% 0%, rgba(255,236,190,.16), transparent 70%),
        radial-gradient(ellipse 22% 30% at 50% 0%, rgba(255,236,190,.20), transparent 70%),
        radial-gradient(ellipse 22% 30% at 82% 0%, rgba(255,236,190,.16), transparent 70%); }

/* ---------- Néons ---------- */
.neon { font-family: var(--font-sign); color: #fff; letter-spacing: .04em; }
.neon-red { text-shadow: 0 0 2px #fff, 0 0 6px #ff5a72, 0 0 14px var(--red), 0 0 28px var(--red), 0 0 48px var(--red-2); }
.neon-cyan { text-shadow: 0 0 2px #fff, 0 0 6px #8ff3ff, 0 0 14px var(--cyan), 0 0 30px #09a9c9; }
.neon-yellow { text-shadow: 0 0 2px #fff, 0 0 6px #ffe68a, 0 0 16px var(--yellow), 0 0 32px #d49a00; }
.neon-ar { font-family: var(--font-ar-sign); letter-spacing: 0; }
.flicker { animation: flicker 5s infinite; }
@keyframes flicker { 0%, 18%, 20%, 52%, 54%, 100% { opacity: 1; } 19%, 53% { opacity: .35; } }

/* ---------- Devanture (header) ---------- */
.shopfront { position: sticky; top: 0; z-index: 50; }
.shop-inner {
    display: flex; align-items: center; gap: 18px; min-height: 78px; padding: 10px 26px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.07), transparent 35%, rgba(0,0,0,.25)),
        repeating-linear-gradient(90deg, rgba(255,255,255,.022) 0 1px, transparent 1px 3px),
        linear-gradient(180deg, #2b2c30, #17181b);
    border-top: 1px solid #3c3e43; box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}
/* enseigne lumineuse dans son caisson */
.sign {
    position: relative; display: flex; flex-direction: column; align-items: center; flex-shrink: 0; line-height: 1;
    padding: 8px 20px 9px; border-radius: 7px;
    background: radial-gradient(ellipse at 50% 35%, #34101a, #120507 72%);
    border: 3px solid #70747b;
    box-shadow: inset 0 0 0 1px #000, inset 0 0 22px rgba(255,46,77,.28), 0 0 0 1px #24262a, 0 8px 16px rgba(0,0,0,.6), 0 0 34px rgba(255,46,77,.16);
}
.sign::after { content: ''; position: absolute; inset: 0; border-radius: 4px; pointer-events: none;
    background: linear-gradient(160deg, rgba(255,255,255,.14), transparent 40%); }
.sign-ar { font-family: var(--font-ar-sign); font-size: 27px; color: #fff4f5;
    text-shadow: 0 0 2px #fff, 0 0 7px #ff5a72, 0 0 15px var(--red), 0 0 30px var(--red-2); animation: flicker 7s infinite; }
.sign-fr { margin-top: 3px; font-family: var(--font-sign); font-size: 10.5px; letter-spacing: .34em; color: #e9fdff;
    text-shadow: 0 0 2px #fff, 0 0 6px #8ff3ff, 0 0 13px var(--cyan); }
.sign-screw { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #8a8d92 55%, #2c2d30); }
.sign-screw.tl { top: 3px; left: 3px; } .sign-screw.tr { top: 3px; right: 3px; } .sign-screw.bl { bottom: 3px; left: 3px; } .sign-screw.br { bottom: 3px; right: 3px; }
/* navigation : boutons métalliques, l'actif est rétroéclairé */
.mainnav { display: flex; gap: 8px; margin-inline-start: 14px; }
.mainnav a {
    display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 16px; border-radius: 10px; font-weight: 800; font-size: 14px; color: #cfc8b6;
    background: linear-gradient(180deg, #2a2b2f, #1b1c1f); border: 1px solid #0b0b0c;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 2px 0 #09090a; transition: color .2s, box-shadow .2s, background .2s;
}
.mainnav a i { color: #85817a; transition: color .2s, text-shadow .2s; }
.mainnav a:hover { color: #fff; }
.mainnav a:hover i { color: #d8d2c2; }
.mainnav a.on { color: #fff; background: linear-gradient(180deg, #43121a, #26090d); border-color: #5f1622;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 0 16px rgba(255,46,77,.35), 0 0 18px rgba(255,46,77,.22), 0 2px 0 #09090a; }
.mainnav a.on i { color: #ff6b80; text-shadow: 0 0 8px var(--red); }
.shop-right { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }
/* compteur de jetons à LED */
.tcount {
    display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 7px 0 5px; border-radius: 13px;
    background: linear-gradient(180deg, #1d1e21, #0f1012); border: 1px solid #000;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 1px #34363b, 0 6px 14px rgba(0,0,0,.4);
}
.counter-coin { width: 38px; height: 38px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.7)); }
.led { position: relative; display: inline-block; padding: 7px 10px 6px; border-radius: 6px; background: #140405;
    box-shadow: inset 0 2px 7px rgba(0,0,0,.95), inset 0 0 0 1px #2c0b0f; font: 16px/1 var(--font-pix); letter-spacing: 2px; direction: ltr; }
.led-ghost { position: absolute; left: 10px; top: 7px; color: rgba(255,45,65,.08); }
.led b { position: relative; font-weight: 400; color: #ff4157; white-space: pre; text-shadow: 0 0 6px rgba(255,40,60,.9), 0 0 14px rgba(255,40,60,.45); }
.counter-plus { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: #2a1d00;
    background: radial-gradient(circle at 35% 30%, #fff5a8, #e2b400); box-shadow: inset 0 -2px 0 rgba(0,0,0,.25), 0 2px 3px rgba(0,0,0,.5); }
.tcount:hover .counter-plus { filter: brightness(1.1); }
.tcount.bump .led b { animation: ledflash .5s; }
@keyframes ledflash { 30% { color: #fff; text-shadow: 0 0 12px #ff8a96, 0 0 24px var(--red); } }
.member-badge { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #2a1d00; background: radial-gradient(circle at 35% 30%, #fff1a6, #d9a520); box-shadow: 0 0 14px rgba(255,210,63,.35); }
.langs { display: flex; padding: 3px; border-radius: 9px; background: #0d0d0f; border: 1px solid #000; box-shadow: 0 0 0 1px #34363b; }
.langs a { padding: 6px 9px; border-radius: 6px; font-size: 12px; font-weight: 800; color: #9c978b; }
.langs a[lang="ar"] { font-family: 'Cairo'; font-size: 14px; line-height: 1; }
.langs a.on { background: linear-gradient(180deg, #f6eedc, #d8ccb0); color: #1b1610; }
.who { display: flex; align-items: center; gap: 9px; padding: 5px 10px 5px 5px; border-radius: 22px; color: #cfc8b6; font-weight: 700; font-size: 14px;
    background: #1b1c1f; border: 1px solid #000; box-shadow: 0 0 0 1px #34363b; }
.who-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #fff;
    background: radial-gradient(circle at 35% 30%, #ff7a8c, #b3101f); }
.who i { color: #85817a; }
.who:hover { color: #fff; } .who:hover i { color: #ff6b80; }
/* store de la boutique */
.awning-wrap { filter: drop-shadow(0 7px 7px rgba(0,0,0,.5)); }
.awning {
    height: 26px;
    background:
        linear-gradient(180deg, rgba(0,0,0,.42), rgba(0,0,0,0) 40%, rgba(255,255,255,.06) 70%, rgba(0,0,0,.16)),
        repeating-linear-gradient(90deg, #b8121f 0 44px, #efe4cc 44px 88px);
    -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 11px) no-repeat, radial-gradient(22px 11px at 50% 0, #000 96%, transparent 100%) bottom / 44px 11px repeat-x;
            mask: linear-gradient(#000 0 0) top / 100% calc(100% - 11px) no-repeat, radial-gradient(22px 11px at 50% 0, #000 96%, transparent 100%) bottom / 44px 11px repeat-x;
}

/* ---------- Mise en page ---------- */
.page { max-width: 1320px; margin: 0 auto; padding: 36px 26px 90px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.page-title { font-family: var(--font-sign); font-size: clamp(26px, 3.4vw, 42px); line-height: 1.05; }
[dir="rtl"] .page-title { font-family: var(--font-ar-sign); font-weight: 400; letter-spacing: 0; }
.page-sub { color: var(--text-2); margin-top: 8px; font-size: 16px; }

/* Plaques / panneaux accrochés au mur */
.plaque {
    display: inline-block; padding: 8px 14px; border-radius: 4px; font-family: var(--font-ar-sign); font-size: 20px; color: #fff; background: #b8141f;
    border: 2px solid #f5d9c0; box-shadow: 0 4px 0 rgba(0,0,0,.35), inset 0 0 0 2px #8e0d17; transform: rotate(-2deg);
}
.plaque.blue { background: #13468f; box-shadow: 0 4px 0 rgba(0,0,0,.35), inset 0 0 0 2px #0d2f60; transform: rotate(1.5deg); }

/* Tableau des tarifs (ardoise) */
.chalk {
    position: relative; padding: 16px 20px 18px; border-radius: 6px; min-width: 250px;
    background: radial-gradient(ellipse at 30% 20%, #3b4a42, #232d28 70%), #232d28; border: 10px solid var(--wood);
    box-shadow: inset 0 0 30px rgba(0,0,0,.6), 0 12px 24px rgba(0,0,0,.45); font-family: 'Cairo', var(--font);
}
.chalk::before { content: ''; position: absolute; inset: 0; background: var(--noise); opacity: .25; pointer-events: none; }
.chalk h3 { font-family: var(--font-sign); font-size: 14px; letter-spacing: .12em; color: #f3f0e6; opacity: .9; margin-bottom: 8px; }
.chalk ul { list-style: none; font-size: 14px; color: #ecebe4; }
.chalk li { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; border-bottom: 1px dashed rgba(255,255,255,.18); }
.chalk li b { color: var(--yellow); font-weight: 800; }

/* ---------- Filtres ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.filters button {
    padding: 10px 16px; border-radius: 6px; font-weight: 800; font-size: 13.5px; color: var(--text-2);
    background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.12); transition: all .2s;
}
.filters button:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.filters button.on { color: #1b1300; background: var(--yellow); border-color: var(--yellow); box-shadow: 0 0 20px rgba(255,210,63,.3); }

/* =====================================================================
   BORNE D'ARCADE
   ===================================================================== */
.cabinets { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 46px 30px; align-items: end; }
.cab { --side: var(--snk); --side-2: #7c0b10; position: relative; display: block; width: 100%; max-width: 260px; margin: 0 auto; filter: drop-shadow(0 26px 22px rgba(0,0,0,.65)); transition: transform .25s; }
.cab.capcom { --side: var(--capcom); --side-2: #0e2a63; }
.cab:hover { transform: translateY(-6px); }
.cab-body {
    position: relative; border-radius: 10px 10px 4px 4px; padding: 0 14px; overflow: hidden;
    background:
        linear-gradient(90deg, var(--side-2) 0, var(--side) 6px, var(--side) 12px, rgba(0,0,0,.4) 14px, transparent 14px, transparent calc(100% - 14px), rgba(0,0,0,.4) calc(100% - 14px), var(--side) calc(100% - 12px), var(--side) calc(100% - 6px), var(--side-2) 100%),
        linear-gradient(180deg, #1a1a1c, #0e0e10);
}
.cab-body::after { content: ''; position: absolute; inset: 0; background: var(--noise); opacity: .18; pointer-events: none; mix-blend-mode: overlay; }
/* fronton rétroéclairé */
.cab-marquee {
    position: relative; height: 62px; margin: 0 -14px; display: grid; place-items: center; overflow: hidden;
    background: #000; border-bottom: 3px solid #050505;
}
.cab-marquee { background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--side) 55%, #fff 10%), var(--side-2) 75%, #000); }
.cab-marquee img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: blur(1.5px) saturate(1.2) brightness(.7); opacity: .38; transform: scale(1.15); }
.cab-marquee::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.28), transparent 38%, rgba(0,0,0,.35)); z-index: 1; }
.cab-title {
    position: relative; z-index: 2; padding: 0 10px; font-family: var(--font-sign); font-size: 15px; line-height: 1.05; text-align: center; color: #fff;
    text-shadow: 0 2px 0 #000, 0 0 12px rgba(255,255,255,.55), 0 0 26px var(--side);
}
.cab-brand { position: absolute; z-index: 2; top: 5px; inset-inline-start: 6px; font: 800 7.5px/1 var(--font); letter-spacing: .15em; padding: 3px 5px; border-radius: 2px; background: #fff; color: var(--side-2); }
/* écran */
.cab-bezel { margin: 14px 0 0; padding: 12px; border-radius: 6px; background: linear-gradient(180deg, #0b0b0c, #191a1c); box-shadow: inset 0 2px 8px rgba(0,0,0,.9), inset 0 -1px 0 rgba(255,255,255,.06); }
.crt {
    position: relative; aspect-ratio: 4 / 3; border-radius: 14px / 12px; overflow: hidden; background: #000;
    box-shadow: 0 0 0 2px #000, 0 0 22px rgba(120,200,255,.18);
}
.crt img, .crt video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.25) contrast(1.08); }
.crt::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 1px, transparent 1px 3px); }
.crt::after {   /* verre bombé + reflet des néons */
    content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
    background: radial-gradient(ellipse at 30% 12%, rgba(255,255,255,.22), transparent 40%), radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%);
}
.crt .insert { position: absolute; z-index: 4; left: 0; right: 0; bottom: 10%; text-align: center; font: 9px/1 var(--font-pix); color: #fff; text-shadow: 0 0 6px #fff; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
/* panneau de commande */
.cab-panel {
    position: relative; height: 64px; margin: 14px -14px 0; transform-origin: top; transform: perspective(300px) rotateX(28deg);
    background: linear-gradient(180deg, #2c2c30, #151518); border-top: 3px solid #3c3c42; border-bottom: 6px solid #0b0b0c;
}
.cab-panel::before { content: ''; position: absolute; inset: 8px 12px; border-radius: 4px; background: linear-gradient(180deg, var(--side), var(--side-2)); opacity: .55; }
.stick { position: absolute; top: 12px; inset-inline-start: 34px; width: 34px; height: 34px; }
.stick::before { content: ''; position: absolute; left: 14px; top: 10px; width: 6px; height: 22px; border-radius: 3px; background: linear-gradient(90deg, #555, #ddd, #555); }
.stick::after { content: ''; position: absolute; left: 3px; top: -6px; width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff8a8a, #e3141f 45%, #6d060b); box-shadow: 0 4px 6px rgba(0,0,0,.6); }
.btns { position: absolute; top: 14px; inset-inline-end: 22px; display: grid; grid-template-columns: repeat(3, 18px); gap: 6px 8px; }
.btns i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 -3px 0 rgba(0,0,0,.35), 0 2px 3px rgba(0,0,0,.6); }
.btns i:nth-child(1) { background: radial-gradient(circle at 35% 30%, #ff9a9a, #d8131c); }
.btns i:nth-child(2) { background: radial-gradient(circle at 35% 30%, #fff39a, #e0b400); }
.btns i:nth-child(3) { background: radial-gradient(circle at 35% 30%, #9ad2ff, #1b5fd3); }
.btns i:nth-child(4) { background: radial-gradient(circle at 35% 30%, #a8ffb8, #16a34a); }
.btns i:nth-child(5) { background: radial-gradient(circle at 35% 30%, #ffffff, #b8bcc2); }
.btns i:nth-child(6) { background: radial-gradient(circle at 35% 30%, #e0b3ff, #7e22ce); }
/* porte à pièces */
.cab-door {
    position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; height: 92px; margin: 0 -14px; padding: 0 16px;
    background: linear-gradient(180deg, #101012, #1b1b1e 30%, #101012);
}
.coin-slot {
    position: relative; width: 44px; height: 58px; border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 6px 0 5px;
    background: linear-gradient(90deg, #5a5f66, #c9cdd2 30%, #7b8087 70%, #4a4e54); box-shadow: inset 0 0 0 1px rgba(0,0,0,.5), 0 2px 4px rgba(0,0,0,.6);
}
.coin-slot::before { content: ''; width: 5px; height: 20px; border-radius: 3px; background: #0a0a0a; box-shadow: inset 0 0 3px #000, 0 0 0 1px rgba(255,255,255,.3); }
.coin-slot em { font: 900 9px/1 var(--font); font-style: normal; padding: 3px 4px; border-radius: 2px; color: #fff; background: #d10e1f; box-shadow: 0 0 10px rgba(255,40,60,.9); text-shadow: 0 0 4px #fff; }
.cab-price { position: absolute; bottom: 8px; inset-inline-end: 12px; display: flex; align-items: center; gap: 5px; font: 800 11px var(--font); color: var(--yellow); }
.cab-price svg { width: 18px; height: 18px; }
.cab-vs {
    position: absolute; z-index: 5; top: 74px; inset-inline-end: -10px; transform: rotate(8deg); padding: 5px 9px; font-family: var(--font-ar-sign); font-size: 15px; color: #1b1300;
    background: #ffe24a; box-shadow: 0 3px 0 rgba(0,0,0,.35); border-radius: 2px;
}
.cab-foot { position: relative; height: 12px; margin: 0 6px; border-radius: 0 0 6px 6px; background: linear-gradient(180deg, #0b0b0c, #000); }
/* ombre et reflet de l'écran au sol */
.cab-foot::after { content: ''; position: absolute; left: -18%; right: -18%; top: 8px; height: 26px; border-radius: 50%; z-index: -1;
    background: radial-gradient(ellipse at center, rgba(0,0,0,.75), transparent 70%); }
.cab::before { content: ''; position: absolute; left: 6%; right: 6%; bottom: 2px; height: 46px; z-index: -1; border-radius: 50%; pointer-events: none;
    background: radial-gradient(ellipse at center, color-mix(in srgb, var(--side) 45%, transparent), transparent 70%); filter: blur(10px); opacity: .55; transition: opacity .3s; }
.cab:hover::before { opacity: .9; }
/* liseré chromé (T-molding) */
.cab-body::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
    box-shadow: inset 2px 0 0 rgba(255,255,255,.28), inset -2px 0 0 rgba(255,255,255,.28), inset 0 2px 0 rgba(255,255,255,.18); }
/* grille du haut-parleur sous le fronton */
.cab-grill { height: 12px; margin: 0 -14px; background: radial-gradient(circle, #050505 1.2px, transparent 1.6px) 0 0 / 6px 6px, linear-gradient(180deg, #232326, #161618); border-bottom: 1px solid #000; }
.bigcab .cab-grill { height: 16px; margin: 0 -22px; }
/* lumière de l'écran sur le panneau */
.cab-panel::after { content: ''; position: absolute; inset: -4px 10% auto; height: 26px; background: radial-gradient(ellipse at 50% 0, rgba(140,210,255,.22), transparent 70%); pointer-events: none; }
/* plaque de la porte à pièces + vis */
.cab-door::before { content: ''; position: absolute; inset: 10px 18%; border-radius: 6px; pointer-events: none;
    background: repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 3px), linear-gradient(180deg, #2d2e32, #1c1d20);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 1px 0 #000; }
.cab-door > * { position: relative; }
.cab:hover .crt img, .cab:hover .crt video { filter: saturate(1.35) contrast(1.1) brightness(1.08); }
.cab:hover .cab-marquee { box-shadow: 0 0 26px color-mix(in srgb, var(--side) 60%, transparent); }
.cab-meta { margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--text-2); }
.cab-meta b { color: var(--text); font-weight: 700; }

/* ---------- Grande borne (page de jeu) ---------- */
.stage { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 30px; align-items: start; }
.bigcab { --side: var(--snk); --side-2: #7c0b10; width: 100%; max-width: 900px; margin: 0 auto; filter: drop-shadow(0 34px 34px rgba(0,0,0,.7)); }
.bigcab.capcom { --side: var(--capcom); --side-2: #0e2a63; }
.bigcab .cab-body { padding: 0 22px; border-radius: 14px 14px 6px 6px;
    background:
        linear-gradient(90deg, var(--side-2) 0, var(--side) 8px, var(--side) 18px, rgba(0,0,0,.4) 22px, transparent 22px, transparent calc(100% - 22px), rgba(0,0,0,.4) calc(100% - 22px), var(--side) calc(100% - 18px), var(--side) calc(100% - 8px), var(--side-2) 100%),
        linear-gradient(180deg, #1a1a1c, #0e0e10); }
.bigcab .cab-marquee { height: 96px; margin: 0 -22px; }
.bigcab .cab-title { font-size: clamp(20px, 3vw, 34px); }
.bigcab .cab-bezel { padding: 16px; margin-top: 18px; }
.bigcab .crt { border-radius: 18px / 15px; }
#game { position: absolute; inset: 0; z-index: 1; }
.crt-off { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; background: #000; color: #8fd; font: 11px/1.6 var(--font-pix); text-align: center; }
.bigcab .cab-panel { height: 80px; margin: 18px -22px 0; transform: perspective(500px) rotateX(24deg); }
.bigcab .stick { inset-inline-start: 70px; top: 18px; transform: scale(1.2); }
.bigcab .btns { inset-inline-end: 60px; top: 14px; grid-template-columns: repeat(3, 22px); gap: 8px 12px; }
.bigcab .btns i { width: 22px; height: 22px; }
.bigcab .cab-door { height: 130px; margin: 0 -22px; gap: 26px; }
.bigcab .coin-slot { width: 64px; height: 88px; padding: 10px 0 8px; }
.bigcab .coin-slot::before { width: 7px; height: 32px; }
.bigcab .coin-slot em { font-size: 11px; }
button.coin-slot { cursor: pointer; transition: transform .15s, box-shadow .2s; }
button.coin-slot:hover { box-shadow: inset 0 0 0 1px rgba(0,0,0,.5), 0 0 0 3px rgba(255,210,63,.5), 0 0 24px rgba(255,210,63,.45); }
button.coin-slot:active { transform: translateY(2px); }
button.coin-slot[disabled] { opacity: .55; cursor: wait; }
.door-info { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); max-width: 230px; }
.door-info b { color: var(--yellow); font-family: var(--font-pix); font-size: 12px; }
.coin-fly { position: fixed; z-index: 90; width: 46px; height: 46px; pointer-events: none; filter: drop-shadow(0 6px 6px rgba(0,0,0,.6)); }

/* Cartes latérales */
.card {
    position: relative; padding: 22px; border-radius: 10px; background: linear-gradient(180deg, rgba(20,22,21,.94), rgba(12,13,12,.94));
    border: 1px solid rgba(255,255,255,.09); box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
.card + .card { margin-top: 18px; }
.card h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; margin-bottom: 8px; }
.card h3 .ar { font-family: var(--font-ar-sign); font-weight: 400; font-size: 22px; color: var(--yellow); }
.card p { color: var(--text-2); font-size: 14px; line-height: 1.55; }
.card .row { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.stake-input { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; background: #000; border: 1px solid rgba(255,255,255,.15); }
.stake-input input { width: 64px; background: none; border: 0; font: 13px var(--font-pix); color: var(--yellow); text-align: center; }
.stake-input svg { width: 24px; height: 24px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 18px; border-radius: 8px;
    font-weight: 800; font-size: 14px; border: 1px solid transparent; transition: transform .15s, filter .2s, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn-red { color: #fff; background: linear-gradient(180deg, #ff4058, #c3102b); box-shadow: 0 4px 0 #6e0615, 0 0 22px rgba(255,46,77,.25); }
.btn-yellow { color: #1b1300; background: linear-gradient(180deg, #ffe066, #f0b800); box-shadow: 0 4px 0 #8a6900; }
.btn-green { color: #03210f; background: linear-gradient(180deg, #5dffa0, #19c963); box-shadow: 0 4px 0 #0b6b33; }
.btn-ghost { color: var(--text); border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.04); }
.btn-ghost:hover { background: rgba(255,255,255,.09); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.kbd { display: inline-block; min-width: 22px; padding: 2px 6px; border-radius: 4px; background: #eee; color: #111; font: 700 11px var(--font); text-align: center; box-shadow: 0 2px 0 #999; }
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; font-size: 13px; color: var(--text-2); }
.ch-state { margin-top: 12px; padding: 12px 14px; border-radius: 8px; background: rgba(255,210,63,.08); border: 1px dashed rgba(255,210,63,.35); font-size: 14px; }
.ch-state.win { background: rgba(57,255,136,.1); border-color: rgba(57,255,136,.4); }
.ch-state.bad { background: rgba(255,46,77,.1); border-color: rgba(255,46,77,.4); }

/* ---------- Défis : tableau en liège ---------- */
.cork {
    padding: 34px; border-radius: 6px; border: 14px solid var(--wood);
    background: radial-gradient(circle at 20% 20%, #c9955e, #b07f4c 60%), #b07f4c; box-shadow: inset 0 0 40px rgba(0,0,0,.45), 0 20px 40px rgba(0,0,0,.5);
    position: relative;
}
.cork::before { content: ''; position: absolute; inset: 0; background: var(--noise); opacity: .55; mix-blend-mode: multiply; pointer-events: none; }
.tickets { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; }
.ticket {
    position: relative; padding: 18px 16px 16px; color: #231a0e; background: var(--paper); border-radius: 2px;
    box-shadow: 0 10px 18px rgba(0,0,0,.35); transform: rotate(var(--r, -1deg)); font-family: 'Cairo', var(--font);
}
.ticket::before { content: ''; position: absolute; top: -9px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff8080, #c2121c); box-shadow: 0 3px 4px rgba(0,0,0,.4); }
.ticket img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border: 3px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.ticket h4 { margin-top: 10px; font-size: 16px; font-weight: 800; }
.ticket .by { font-size: 13px; color: #5c4a31; }
.ticket .stake { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 10px; border-radius: 3px; background: #ffe24a; font-weight: 900; font-size: 14px; }
.ticket .stake svg { width: 20px; height: 20px; }
.ticket .vs { font-family: var(--font-ar-sign); font-size: 18px; color: #b8141f; }
.ticket .btn { margin-top: 12px; width: 100%; }
.cork-empty { position: relative; padding: 40px 10px; text-align: center; color: #2e2110; font-weight: 700; font-size: 17px; }

/* ---------- La caisse ---------- */
.cashier { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 30px; align-items: start; }
.counter {
    position: relative; padding: 26px; border-radius: 10px; text-align: center;
    background: linear-gradient(180deg, #7a4a28, #5a3419 60%, #3f230f); border: 1px solid #8f5a33; box-shadow: inset 0 2px 0 rgba(255,255,255,.12), 0 24px 40px rgba(0,0,0,.55);
}
.counter::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .35;
    background: repeating-linear-gradient(92deg, rgba(0,0,0,.18) 0 2px, transparent 2px 9px), var(--noise); mix-blend-mode: multiply; }
.counter > * { position: relative; }
.counter .lbl { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; color: #f3d7b0; }
.stack { position: relative; height: 170px; margin: 16px auto 6px; width: 190px; }
.stack svg { position: absolute; width: 130px; height: 130px; left: 30px; filter: drop-shadow(0 6px 5px rgba(0,0,0,.5)); }
.big-balance { font: 38px/1 var(--font-pix); color: var(--yellow); text-shadow: 0 3px 0 #3b2600, 0 0 20px rgba(255,210,63,.4); }
.big-balance small { display: block; margin-top: 10px; font: 700 13px var(--font); color: #f3d7b0; text-shadow: none; }
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.pack {
    position: relative; padding: 20px 16px 16px; border-radius: 12px; text-align: center; background: linear-gradient(180deg, #f3ead4, #d9cba8);
    color: #2a1f10; box-shadow: 0 14px 26px rgba(0,0,0,.45), inset 0 1px 0 #fff; border: 1px solid #c9b88f;
}
.pack.popular { outline: 3px solid var(--yellow); }
.pack .pop { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 4px 10px; border-radius: 20px; background: var(--red); color: #fff; font-weight: 800; font-size: 12px; }
.pack .coins { position: relative; height: 70px; margin-bottom: 6px; }
.pack .coins svg { position: absolute; width: 56px; height: 56px; top: 8px; filter: drop-shadow(0 3px 3px rgba(0,0,0,.35)); }
.pack h4 { font-size: 16px; font-weight: 800; }
.pack .qty { font: 20px/1.3 var(--font-pix); color: #3c2a0d; margin-top: 8px; }
.pack .extra { font-size: 13px; font-weight: 800; color: #0f7a3a; }
.pack .btn { width: 100%; margin-top: 12px; }
.memcard {
    position: relative; padding: 22px; border-radius: 16px; color: #1b1300; overflow: hidden;
    background: linear-gradient(125deg, #fff3c2, #e7b93d 40%, #f7dc85 60%, #c7921b); box-shadow: 0 18px 30px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.7);
}
.memcard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.55) 45%, transparent 55%); }
.memcard h4 { font-family: var(--font-sign); font-size: 18px; }
.memcard ul { list-style: none; margin: 10px 0 12px; font-size: 14px; font-weight: 600; }
.memcard li::before { content: '✓ '; font-weight: 900; }
.memcard .price { font: 16px var(--font-pix); }
.memcard .btn { position: relative; z-index: 1; margin-top: 12px; }
.refcode { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.refcode code { padding: 10px 14px; border-radius: 8px; background: #000; border: 1px dashed var(--yellow); font: 16px var(--font-pix); color: var(--yellow); letter-spacing: .1em; }
.stats { display: flex; gap: 22px; margin-top: 14px; font-size: 13px; color: var(--text-2); }
.stats b { display: block; font: 18px var(--font-pix); color: var(--text); }
.notebook { padding: 18px 20px; border-radius: 4px; background: repeating-linear-gradient(180deg, #f6f1e3 0 29px, #b7cde6 29px 30px), #f6f1e3; color: #2a2014; box-shadow: 0 14px 26px rgba(0,0,0,.4); font-family: 'Cairo', var(--font); }
.notebook table { width: 100%; border-collapse: collapse; font-size: 14px; }
.notebook td { height: 30px; padding: 0 6px; white-space: nowrap; }
.notebook td.desc { white-space: normal; }
.notebook .plus { color: #0f7a3a; font-weight: 900; }
.notebook .minus { color: #b8141f; font-weight: 900; }
.section-h { display: flex; align-items: center; gap: 10px; margin: 34px 0 16px; font-family: var(--font-sign); font-size: 18px; letter-spacing: .05em; }
[dir="rtl"] .section-h { font-family: var(--font-ar-sign); font-size: 24px; letter-spacing: 0; }
.section-h:first-child { margin-top: 0; }

/* ---------- Fenêtres (modales) ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.7); backdrop-filter: blur(3px); }
.modal[hidden] { display: none; }
.modal-box { width: min(460px, 100%); padding: 26px; border-radius: 12px; background: #15130f; border: 1px solid rgba(255,210,63,.3); box-shadow: 0 30px 60px rgba(0,0,0,.6); text-align: center; }
.modal-box h3 { font-family: var(--font-sign); font-size: 22px; margin: 10px 0 8px; }
[dir="rtl"] .modal-box h3 { font-family: var(--font-ar-sign); font-size: 28px; font-weight: 400; }
.modal-box p { color: var(--text-2); }
.modal-box .row { justify-content: center; margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.modal-box svg.big-coin { width: 90px; height: 90px; margin: 0 auto; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; text-align: start; }
.field label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.field input, .field select { height: 44px; padding: 0 12px; border-radius: 8px; background: #000; border: 1px solid rgba(255,255,255,.18); color: var(--text); }
.field input:focus, .field select:focus { border-color: var(--yellow); outline: none; }
.paybox { margin-top: 12px; padding: 12px; border-radius: 8px; background: rgba(255,255,255,.05); font-size: 13.5px; color: var(--text-2); text-align: start; line-height: 1.6; }
.paybox b { color: var(--text); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; z-index: 120; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { padding: 12px 18px; border-radius: 10px; background: #15130f; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 12px 26px rgba(0,0,0,.5); font-weight: 700; font-size: 14px; animation: tin .3s; }
.toast.ok { border-color: rgba(57,255,136,.5); }
.toast.err { border-color: rgba(255,46,77,.6); }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Entrée (connexion) ---------- */
.entrance { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding: 60px 5vw; }
.facade { position: relative; text-align: center; }
.facade .sign-ar { font-family: var(--font-ar-sign); font-size: clamp(56px, 8vw, 110px); line-height: 1; }
.facade .sign-fr { font-size: clamp(22px, 3vw, 40px); margin-top: 12px; letter-spacing: .12em; }
.shutter {
    position: relative; height: 230px; margin: 34px auto 0; max-width: 560px; border-radius: 4px 4px 0 0; overflow: hidden;
    background: repeating-linear-gradient(180deg, #8d9197 0 4px, #6b6f75 4px 6px, #a2a6ab 6px 16px, #5d6166 16px 18px);
    box-shadow: inset 0 0 0 6px #3f4247, 0 20px 40px rgba(0,0,0,.6);
}
.shutter::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(180deg, rgba(0,0,0,.2), #0c0c0c); }
.shutter .glow { position: absolute; left: 0; right: 0; bottom: 0; height: 70px; z-index: 1; background: radial-gradient(ellipse at 50% 100%, rgba(255,120,60,.55), transparent 70%); }
.shutter .graffiti { position: absolute; z-index: 1; top: 40px; left: 0; right: 0; font-family: var(--font-ar-sign); font-size: 40px; color: rgba(20,20,20,.6); transform: rotate(-4deg); }
.facade .hours { margin-top: 18px; color: var(--text-2); font-size: 15px; }
.facade .rules { display: flex; gap: 14px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.door {
    position: relative; padding: 30px; border-radius: 12px; background: linear-gradient(180deg, rgba(22,24,23,.96), rgba(12,13,12,.96));
    border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 60px rgba(0,0,0,.6); max-width: 460px; width: 100%; justify-self: center;
}
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 10px; background: #000; margin-bottom: 18px; }
.tabs button { height: 42px; border-radius: 7px; font-weight: 800; color: var(--text-2); }
.tabs button.on { background: var(--yellow); color: #1b1300; }
.gift { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; padding: 12px 14px; border-radius: 10px; background: rgba(255,210,63,.1); border: 1px solid rgba(255,210,63,.35); font-weight: 700; }
.gift svg { width: 38px; height: 38px; flex-shrink: 0; }
.door .btn { width: 100%; margin-top: 20px; min-height: 50px; font-size: 15px; }
.form-msg { margin-top: 12px; min-height: 20px; font-size: 14px; font-weight: 700; color: #ff8093; }


/* =====================================================================
   CHAT DE LA PARTIE
   ===================================================================== */
.chat-fab {
    position: fixed; z-index: 80; bottom: 22px; inset-inline-end: 22px; width: 60px; height: 60px; border-radius: 50%;
    display: grid; place-items: center; font-size: 24px; color: #fff;
    background: radial-gradient(circle at 35% 30%, #ff6b80, #c3102b 70%); box-shadow: 0 10px 24px rgba(0,0,0,.5), 0 0 0 3px #1b1c1f, 0 0 0 4px #3a3c41;
    transition: transform .2s;
}
.chat-fab:hover { transform: scale(1.06); }
.chat-fab[hidden] { display: none; }
.chat-fab.ping { animation: fabping 1.6s infinite; }
@keyframes fabping { 0%, 100% { box-shadow: 0 10px 24px rgba(0,0,0,.5), 0 0 0 3px #1b1c1f, 0 0 0 4px #3a3c41; } 50% { box-shadow: 0 10px 24px rgba(0,0,0,.5), 0 0 0 3px #1b1c1f, 0 0 0 4px #3a3c41, 0 0 0 12px rgba(255,46,77,.25); } }
.chat-badge { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; display: grid; place-items: center;
    font: 800 12px var(--font); color: #1b1300; background: var(--yellow); box-shadow: 0 0 0 3px #15130f; }
.chat-badge[hidden] { display: none; }
.chat {
    position: fixed; z-index: 80; bottom: 22px; inset-inline-end: 22px; width: 360px; height: min(520px, calc(100vh - 140px));
    display: flex; flex-direction: column; overflow: hidden; border-radius: 16px;
    background: linear-gradient(180deg, rgba(24,25,28,.97), rgba(14,15,17,.97)); border: 1px solid #000;
    box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 0 1px #34363b, inset 0 3px 0 var(--red); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    animation: chatin .25s ease;
}
.chat[hidden] { display: none; }
@keyframes chatin { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.chat-head { position: relative; display: flex; align-items: center; gap: 11px; padding: 14px 12px 12px 16px; border-bottom: 1px solid rgba(255,255,255,.07);
    background: linear-gradient(180deg, rgba(255,255,255,.05), transparent); }
.chat-led { width: 10px; height: 10px; border-radius: 50%; background: #39ff88; box-shadow: 0 0 10px #39ff88; flex-shrink: 0; }
.chat-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-title b { font-size: 15px; }
.chat-members { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-min { width: 36px; height: 36px; border-radius: 10px; color: var(--text-2); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.chat-min:hover { color: #fff; background: rgba(255,255,255,.1); }
.chat-log { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain;
    background: radial-gradient(ellipse at 50% 0, rgba(255,46,77,.05), transparent 60%); scrollbar-width: thin; scrollbar-color: #3a3c41 transparent; }
.msg { display: flex; flex-direction: column; max-width: 84%; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg.them { align-self: flex-start; align-items: flex-start; }
.msg .msg-who { font-size: 11.5px; font-weight: 800; color: var(--cyan); margin: 0 6px 3px; }
.msg .bubble { position: relative; padding: 9px 12px 8px; border-radius: 14px; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; white-space: pre-wrap; }
.msg.them .bubble { background: #26282c; border: 1px solid #33363b; border-end-start-radius: 4px; color: var(--text); }
.msg.me .bubble { background: linear-gradient(180deg, #e8263f, #b80f25); color: #fff; border-end-end-radius: 4px; box-shadow: 0 4px 12px rgba(200,16,40,.25); }
.msg time { display: block; margin-top: 3px; font-size: 10.5px; opacity: .55; text-align: end; }
.msg.sys { align-self: center; max-width: 92%; padding: 6px 12px; border-radius: 20px; font-size: 12.5px; font-weight: 700; text-align: center;
    color: var(--yellow); background: rgba(255,210,63,.08); border: 1px solid rgba(255,210,63,.22); }
.msg.sys.empty { color: var(--muted); background: none; border: 0; font-weight: 600; margin: auto 0; }
.chat-quick { display: flex; gap: 6px; padding: 8px 10px 0; overflow-x: auto; scrollbar-width: none; }
.chat-quick::-webkit-scrollbar { display: none; }
.chat-quick button { flex-shrink: 0; padding: 6px 10px; border-radius: 16px; font-size: 13px; font-weight: 700; color: var(--text-2);
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); white-space: nowrap; }
.chat-quick button:hover { color: #fff; border-color: rgba(255,210,63,.5); background: rgba(255,210,63,.1); }
.chat-form { display: flex; gap: 8px; padding: 10px; }
.chat-input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 22px; background: #0b0b0d; border: 1px solid #34363b; color: var(--text); font-size: 15px; }
.chat-input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,46,77,.18); }
.chat-send { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; color: #fff; background: radial-gradient(circle at 35% 30%, #ff6b80, #c3102b 70%); box-shadow: 0 4px 10px rgba(195,16,43,.4); }
.chat-send:hover { filter: brightness(1.1); }
[dir="rtl"] .chat-send i { transform: scaleX(-1); }
@media (max-width: 760px) {
    .chat { inset: auto 0 0 0; width: 100%; height: 58vh; border-radius: 18px 18px 0 0; }
    .chat-head { padding-top: 18px; }
    .chat-head::before { content: ''; position: absolute; top: 6px; left: 50%; width: 42px; height: 4px; margin-left: -21px; border-radius: 2px; background: rgba(255,255,255,.18); }
    .chat-fab { bottom: 16px; inset-inline-end: 16px; width: 54px; height: 54px; font-size: 21px; }
}


/* ---------- Pied de page ---------- */
.credit { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px;
    width: min(1240px, 100% - 32px); margin: 40px auto 0; padding: 18px 0 22px; border-top: 1px solid rgba(255,255,255,.07);
    font-size: 12.5px; color: var(--muted); }
.credit-sign { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); transition: color .2s; }
.credit-sign b { font-weight: 700; color: var(--text-2); transition: color .2s; }
.credit-sign:hover, .credit-sign:hover b { color: #fff; }
.credit-heart { font-style: normal; color: var(--red); display: inline-block; animation: heartbeat 1.8s ease-in-out infinite; }
@keyframes heartbeat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } }
@media (max-width: 760px) { .credit { justify-content: center; text-align: center; padding-bottom: 90px; } }
@media (prefers-reduced-motion: reduce) { .credit-heart { animation: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .stage, .cashier { grid-template-columns: 1fr; }
    .mainnav span { display: none; }
    .mainnav a { padding: 0 13px; }
}
@media (max-width: 760px) {
    .shopfront { position: relative; }
    .shop-inner { flex-wrap: wrap; gap: 10px 10px; padding: 9px 12px; min-height: 0; }
    .sign { padding: 6px 12px 7px; } .sign-ar { font-size: 21px; } .sign-fr { font-size: 8.5px; }
    .mainnav { order: 3; width: 100%; margin: 0; }
    .mainnav a { flex: 1; justify-content: center; height: 40px; padding: 0 6px; font-size: 12.5px; gap: 6px; }
    .mainnav span { display: inline; }
    .tcount { height: 44px; } .counter-coin { width: 30px; height: 30px; } .led { font-size: 13px; padding: 6px 8px 5px; } .led-ghost { left: 8px; top: 6px; }
    .who-name, .langs a:not(.on) { display: none; }
    .awning { height: 16px; -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat, radial-gradient(14px 7px at 50% 0, #000 96%, transparent 100%) bottom / 28px 7px repeat-x; mask: linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat, radial-gradient(14px 7px at 50% 0, #000 96%, transparent 100%) bottom / 28px 7px repeat-x;
        background: linear-gradient(180deg, rgba(0,0,0,.42), rgba(0,0,0,0) 40%, rgba(0,0,0,.16)), repeating-linear-gradient(90deg, #b8121f 0 28px, #efe4cc 28px 56px); }
    .page { padding: 24px 14px 80px; }
    .cabinets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 14px; }
    .cab-marquee { height: 50px; } .cab-title { font-size: 12px; }
    .cab-panel { height: 50px; } .stick { inset-inline-start: 16px; transform: scale(.8); } .btns { inset-inline-end: 10px; transform: scale(.8); }
    .cab-door { height: 72px; } .coin-slot { width: 36px; height: 48px; }
    .cab-price { display: none; }
    .cab-vs { font-size: 12px; top: 58px; }
    .entrance { grid-template-columns: 1fr; padding: 40px 16px; }
    .shutter { height: 150px; }
    .bigcab .cab-body { padding: 0 12px; }
    .bigcab .cab-marquee, .bigcab .cab-panel, .bigcab .cab-door { margin-left: -12px; margin-right: -12px; }
    .bigcab .cab-marquee { height: 70px; }
    .bigcab .btns { inset-inline-end: 22px; } .bigcab .stick { inset-inline-start: 30px; }
    .bigcab .cab-door { height: auto; padding: 14px; flex-wrap: wrap; }
    .controls { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
