
    :root {
      --br-bg:#0b2a22; --br-panel:#12382e; --br-felt:#17503e; --br-line:#a0c5ac40; --br-cream:#faf7ef; --br-muted:#b9cdbf;
      --br-gold:#f2cf83; --br-coral:#ff8f7a; --br-cw:clamp(58px,19vw,92px);
    }
    * { box-sizing:border-box; }
    body.sr-briscola { margin:0; background:var(--br-bg); color:var(--br-cream); font:15px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; }
    .br { max-width:760px; margin:0 auto; padding:16px; }
    .br h1 { margin:0 0 4px; font-size:clamp(24px,5vw,34px); line-height:1.1; }
    .br-lead { margin:0 0 14px; color:var(--br-muted); }
    .br button,.br-dialog button { font:inherit; color:var(--br-cream); background:#ffffff0d; border:1px solid var(--br-line); border-radius:10px; padding:9px 14px; cursor:pointer; }
    .br button:hover:not(:disabled) { background:#ffffff1a; }
    .br button:disabled { opacity:.45; cursor:default; }
    .br button:focus-visible,.br-dialog button:focus-visible { outline:2px solid var(--br-gold); outline-offset:2px; }
    .br button.br-primary,.br-dialog button.br-primary { background:var(--br-gold); color:#1b2a22; border-color:var(--br-gold); font-weight:700; }
    .br button.br-primary:hover:not(:disabled) { background:#ffe0a0; }
    .br button[aria-pressed="true"],.br-dialog button[aria-pressed="true"] { background:#f2cf8326; border-color:var(--br-gold); color:var(--br-gold); font-weight:600; }
    .br-row { display:flex; flex-wrap:wrap; gap:8px; align-items:center; justify-content:space-between; margin-bottom:10px; }
    .br-group { display:flex; flex-wrap:wrap; gap:6px; }
    .br-score { display:flex; gap:8px; }
    .br-stat { min-width:74px; padding:6px 10px; border:1px solid var(--br-line); border-radius:10px; background:#ffffff06; }
    .br-stat small { display:block; color:var(--br-muted); font-size:10px; letter-spacing:1px; text-transform:uppercase; white-space:nowrap; }
    .br-stat strong { font-size:18px; color:var(--br-gold); font-variant-numeric:tabular-nums; }
    .br-board { padding:12px; border:1px solid var(--br-line); border-radius:14px; background:radial-gradient(ellipse at center,#1d5f4a 0%,var(--br-felt) 60%,#123f31 100%); overflow:hidden; }
    .br-cards { display:flex; justify-content:center; gap:8px; }
    .br-cpu { min-height:calc(var(--br-cw)*.82); align-items:center; gap:8px; }
    .br-cpu-name { flex-basis:100%; text-align:center; color:var(--br-muted); font-size:13px; margin:0 0 4px; }
    .br-back { width:calc(var(--br-cw)*.5); height:calc(var(--br-cw)*.8); border-radius:calc(var(--br-cw)*.06); border:2px solid #f2cf8399; background:repeating-linear-gradient(45deg,#0e3329 0 5px,#1a4d3c 5px 10px); box-shadow:0 2px 5px #0006; flex:none; }
    .br-mid { display:grid; grid-template-columns:auto 1fr; gap:10px; align-items:center; margin:10px 0; padding:10px 4px; border-top:1px solid #ffffff14; border-bottom:1px solid #ffffff14; }
    .br-stock { position:relative; width:calc(var(--br-cw)*1.2); height:calc(var(--br-cw)*1.09 + 22px); }
    .br-stock .br-brisc { position:absolute; left:0; top:22px; width:calc(var(--br-cw)*.68); height:calc(var(--br-cw)*1.09); }
    .br-stock .br-pile { position:absolute; right:0; top:22px; width:calc(var(--br-cw)*.62); height:calc(var(--br-cw)*.99); border-radius:calc(var(--br-cw)*.06); border:2px solid #f2cf8399; background:repeating-linear-gradient(45deg,#0e3329 0 5px,#1a4d3c 5px 10px); box-shadow:0 2px 5px #0006; display:grid; place-items:center; font-weight:800; color:var(--br-cream); font-variant-numeric:tabular-nums; }
    .br-stock .br-pile span { padding:0 6px; border-radius:7px; background:#0b2a22cc; }
    .br-trump { position:absolute; left:0; top:0; font-size:12px; color:var(--br-gold); font-weight:700; white-space:nowrap; }
    .br-trick { display:flex; justify-content:center; gap:12px; min-height:calc(var(--br-cw)*1.6); align-items:center; }
    .br-slot { width:var(--br-cw); height:calc(var(--br-cw)*1.6); border:1px dashed #ffffff26; border-radius:calc(var(--br-cw)*.09); display:grid; place-items:center; color:#ffffff66; font-size:12px; text-align:center; flex:none; }
    .br-slot.br-filled { border:0; }
    .br .br-card { display:block; position:relative; width:var(--br-cw); height:calc(var(--br-cw)*1.6); padding:0; border:0; border-radius:calc(var(--br-cw)*.09); background:none; box-shadow:0 2px 6px #0006; flex:none; transition:transform .13s ease-out,box-shadow .13s ease-out; }
    .br .br-card svg { display:block; width:100%; height:100%; pointer-events:none; }
    .br button.br-card:hover:not(:disabled) { background:none; transform:translateY(-8px); box-shadow:0 8px 14px #0007; }
    .br button.br-card:disabled { opacity:1; }
    .br-wait button.br-card { filter:saturate(.75) brightness(.86); }
    .br .br-card.br-advice { box-shadow:0 0 0 3px #8fd3ff,0 0 16px #8fd3ff; }
    .br .br-card.br-winner { box-shadow:0 0 0 3px var(--br-gold),0 0 16px #f2cf83aa; }
    .br-in { animation:br-in .24s ease-out backwards; }
    @keyframes br-in { from { opacity:0; transform:translateY(var(--from,26px)) scale(.92); } }
    .br-deal { animation:br-in .3s cubic-bezier(.2,.8,.3,1.2) backwards; --from:-26px; }
    .br-away { transition:transform .32s ease-in,opacity .32s ease-in; opacity:0; }
    .br-tag { position:absolute; left:50%; bottom:-7px; transform:translateX(-50%); padding:1px 7px; border-radius:9px; font-size:11px; font-weight:700; line-height:1.4; white-space:nowrap; color:#e8efe6; background:#0b2a22; border:1px solid #ffffff40; }
    .br-tag.br-take { color:#1b2a22; background:var(--br-gold); border-color:var(--br-gold); }
    .br-tag.br-give { color:#2a100c; background:var(--br-coral); border-color:var(--br-coral); }
    .br-tag.br-trumpt { color:#f2cf83; border-color:#f2cf83; }
    .br-wait .br-tag { display:none; }
    .br-hand { padding-bottom:9px; min-height:calc(var(--br-cw)*1.6 + 9px); }
    .br-msg { min-height:44px; margin:0 0 10px; padding:6px 10px; font-size:15px; text-align:center; border-radius:10px; }
    .br-msg.br-yours { background:#f2cf8322; color:var(--br-gold); font-weight:600; }
    .br-result { margin-bottom:10px; padding:14px; border:1px solid #f2cf8366; border-radius:14px; background:#1a3b31; }
    .br-result h2 { margin:0 0 2px; font-size:clamp(22px,5.5vw,30px); color:var(--br-gold); }
    .br-result p { margin:0 0 10px; }
    .br-actions { display:flex; flex-wrap:wrap; gap:8px; }
    .br-under { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin-top:10px; }
    .br details { margin-top:12px; padding:10px 14px; border:1px solid var(--br-line); border-radius:12px; background:#ffffff06; }
    .br summary { cursor:pointer; font-weight:600; }
    .br-set { display:flex; flex-wrap:wrap; gap:8px 20px; margin-top:10px; align-items:center; }
    .br-set label { display:flex; gap:7px; align-items:center; }
    .br-set input[type=range] { width:120px; accent-color:var(--br-gold); }
    .br-set input[type=checkbox] { width:18px; height:18px; accent-color:var(--br-gold); }
    .br-table { width:100%; margin:8px 0 12px; border-collapse:collapse; font-variant-numeric:tabular-nums; }
    .br-table th,.br-table td { padding:5px 6px; text-align:right; border-bottom:1px solid var(--br-line); }
    .br-table th:first-child,.br-table td:first-child { text-align:left; }
    .br-table th { color:var(--br-muted); font-size:12px; font-weight:600; }
    .br-help { margin-top:18px; color:var(--br-muted); font-size:14px; }
    .br-help h2 { margin:18px 0 6px; font-size:17px; color:var(--br-cream); }
    .br-help h3 { margin:12px 0 2px; font-size:15px; color:var(--br-cream); }
    .br-help p { margin:0 0 8px; }
    .br-help ul { margin:0 0 8px; padding-left:20px; }
    .br kbd { padding:1px 6px; border:1px solid var(--br-line); border-radius:5px; font:inherit; font-size:12px; background:#ffffff0d; }
    .br-dialog { max-width:380px; padding:18px; border:1px solid var(--br-line); border-radius:14px; background:var(--br-panel); color:var(--br-cream); font:15px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; }
    .br-dialog::backdrop { background:#0008; }
    .br-dialog h2 { margin:0 0 10px; font-size:20px; }
    .br-dialog p { margin:0 0 14px; }
    .br-dialog .br-label { margin:0 0 6px; color:var(--br-muted); font-size:13px; }
    .br-dialog .br-group { margin-bottom:14px; }
    .br-warn { color:var(--br-coral); font-size:14px; }
    .br-fx { position:fixed; inset:0; width:100%; height:100%; pointer-events:none; z-index:20; }
    body.sr-briscola [hidden] { display:none !important; }
    @media (max-width:560px) {
      .br { padding:12px; }
      .br-board { padding:10px 8px; }
      .br-stat { min-width:0; flex:1; padding:5px 8px; }
      .br-score { flex:1; }
      .br-stat strong { font-size:16px; }
      .br button:not(.br-card) { padding:8px 11px; }
      .br-mid { gap:6px; }
      .br-trick { gap:8px; }
    }
    @media (prefers-reduced-motion: reduce) {
      .br-in,.br-deal { animation:none; }
      .br .br-card,.br-away { transition:none; }
    }
  
/* Integrazione con font e palette della sezione Giochi. */
body.sr-briscola .br h1 { font-size:clamp(28px,4.2vw,44px); font-weight:750; line-height:1.12; letter-spacing:-.035em; margin-bottom:10px; }
body.sr-briscola .br-lead { color:var(--sg-muted); font-size:15px; line-height:1.65; }
body.sr-briscola .br-save-note { color:var(--sg-muted); font-size:12px; line-height:1.65; margin:14px 0; }
body.sr-briscola .br-save-note a { text-decoration:underline; text-underline-offset:3px; }
body.sr-briscola .br-more { margin:28px 0 12px; padding-top:20px; border-top:1px solid var(--sg-line); }
body.sr-briscola .br-more h2 { font-size:20px; }
body.sr-briscola .br-dialog p { line-height:1.65; }
body.sr-briscola .br button:where(:not(.br-card):not(.br-key)), body.sr-briscola .br-dialog button { background:#12382e; color:#faf7ef; border-color:#719982; }
body.sr-briscola .br button:where(:not(.br-card):not(.br-key)):hover:not(:disabled), body.sr-briscola .br-dialog button:hover:not(:disabled) { background:#20513e; }
body.sr-briscola .br button.br-primary, body.sr-briscola .br-dialog button.br-primary { background:#f2cf83; color:#163e2d; border-color:#f2cf83; font-weight:750; }
body.sr-briscola .br button.br-primary:hover:not(:disabled), body.sr-briscola .br-dialog button.br-primary:hover:not(:disabled) { background:#ffe0a0; color:#163e2d; border-color:#ffe0a0; }
body.sr-briscola .br button[aria-pressed=true], body.sr-briscola .br-dialog button[aria-pressed=true] { background:#354f36; color:#f2cf83; border-color:#f2cf83; }
body.sr-briscola #br-board:focus-visible, body.sr-briscola #im-keys:focus-visible { outline:3px solid #f2cf83; outline-offset:4px; }
body.sr-briscola[data-fx=false] :is(.br-in,.br-deal,.br-part,.br-l) { animation:none!important; transition:none!important; }

.br-score { flex-wrap:wrap; }
