/* BEN4X Club Manager — web app (PWA) e componenti condivisi con il gestionale (news, elenchi, pannelli).
   Identità: il verde del logo SMTC, le linee bianche del campo e il giallo della pallina come unico accento.
   Titoli in Barlow Condensed (richiama le lettere strette del marchio STC), testo nel carattere di sistema. */

@font-face { font-family: "B4X Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "B4X Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "B4X Arcade"; font-weight: 400; font-style: normal; font-display: block; src: url("../fonts/press-start-2p-latin.woff2") format("woff2"); }

#ben4x-app {
  --brand: var(--b4x-brand, #024B38);
  --brand-deep: #013326;
  --brand-tint: #E4EEEA;
  --ball: #D6E347;
  --ball-tint: #F4F8D2;
  --paper: #F2F5F3;
  --ink: #142019;
  --muted2: #5C6A63;
  --line: #DCE3DF;
  --surface: #FFFFFF;
  --warn: #B4610F; --warn-tint: #FDF0E2;
  --danger: #B7322D; --danger-tint: #FCEBEA;
  --ok: #1F7A4D; --ok-tint: #E5F3EA;
  --cond: "B4X Condensed", "Barlow Condensed", "Roboto Condensed", "Arial Narrow", var(--b4x-font);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

/* ------------------------------------------------------------------ documento della web app */
html:has(body.b4x-pwa-body) { background: #024B38; }
body.b4x-pwa-body { margin: 0; background: #F2F5F3; color: #142019; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
body.b4x-pwa-body--login, body.b4x-pwa-body--forbidden { background: #024B38; }
body.b4x-noscroll { overflow: hidden; }
.b4x-pwa-gate .b4x-login { background: transparent; min-height: 100dvh; padding: calc(24px + env(safe-area-inset-top)) 18px 24px; }
.b4x-pwa-gate .b4x-login__card { border: 0; }
.b4x-pwa-gate .b4x-login__logo { width: 84px; }
.b4x-pwa-gate .b4x-input { font-size: 16px; padding: 12px 14px; }
.b4x-pwa-gate .b4x-btn--primary { min-height: 48px; font-size: 16px; }
#ben4x-app.b4x-pwa { background: var(--paper); min-height: 100dvh; font-size: 16px; }

.b4x-splash { position: fixed; inset: 0; background: #024B38; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
.b4x-splash__logo { width: 150px; height: auto; }
.b4x-splash__dots, .b4x-loader { display: flex; gap: 7px; justify-content: center; }
.b4x-splash__dots span, .b4x-loader span { width: 8px; height: 8px; border-radius: 50%; background: #D6E347; animation: b4x-bounce 1s infinite ease-in-out; }
.b4x-loader { padding: 36px 0; }
.b4x-loader span { background: var(--brand); }
.b4x-splash__dots span:nth-child(2), .b4x-loader span:nth-child(2) { animation-delay: .15s; }
.b4x-splash__dots span:nth-child(3), .b4x-loader span:nth-child(3) { animation-delay: .3s; }
@keyframes b4x-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-6px); opacity: 1; } }
.b4x-boot-error { position: fixed; inset: auto 12px calc(12px + env(safe-area-inset-bottom)); background: #fff; color: #142019; border-radius: 14px; padding: 16px; font: 14px/1.45 -apple-system, sans-serif; }

/* ------------------------------------------------------------------ guscio: barra alta e schede */
.b4x-pwa .b4x-shell { min-height: 100dvh; display: flex; flex-direction: column; }
.b4x-pwa .b4x-topbar2 { position: sticky; top: 0; z-index: 20; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: space-between;
  padding: calc(8px + var(--safe-t)) 12px 8px 16px; }
#ben4x-app .b4x-topbar2__brand { display: flex; align-items: center; gap: 10px; background: none; border: 0; color: #fff; padding: 4px 0; cursor: pointer;
  font-family: var(--cond); font-weight: 700; font-size: 21px; letter-spacing: .02em; }
.b4x-pwa .b4x-topbar2__bell { position: relative; background: none; border: 0; color: #fff; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; }
.b4x-pwa .b4x-nbadge { position: absolute; top: 5px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ball); color: var(--ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.b4x-pwa .b4x-view { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 18px 16px calc(96px + var(--safe-b)); }
.b4x-pwa .b4x-tabbar { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px 4px var(--safe-b); }
#ben4x-app .b4x-tabbar__item { position: relative; min-width: 0; background: none; border: 0; color: var(--muted2); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; font-size: 11px; font-weight: 600; letter-spacing: -.01em; cursor: pointer; }
#ben4x-app .b4x-tabbar__item span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ben4x-app .b4x-tabbar__item.is-active { color: var(--brand); }
#ben4x-app .b4x-tabbar__item.is-active::before { content: ""; position: absolute; top: -5px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--ball); }
@media (min-width: 720px) {
  .b4x-pwa .b4x-tabbar { left: 50%; right: auto; transform: translateX(-50%); width: 640px; border: 1px solid var(--line); border-bottom: 0; border-radius: 16px 16px 0 0; }
}

/* ------------------------------------------------------------------ schermate */
#ben4x-app .b4x-screen__head { display: flex; align-items: center; gap: 6px; margin: 0 0 14px; min-height: 40px; }
#ben4x-app .b4x-screen__title { font-family: var(--cond) !important; font-weight: 700; font-size: 30px; line-height: 1.05; color: var(--brand-deep) !important; margin: 0; flex: 1; text-shadow: none; }
#ben4x-app .b4x-screen__actions { display: flex; gap: 8px; align-items: center; }
#ben4x-app .b4x-iconbtn { width: 40px; height: 40px; margin-left: -8px; display: grid; place-items: center; background: none; border: 0; border-radius: 50%; color: var(--brand); cursor: pointer; }
#ben4x-app .b4x-iconbtn:active { background: var(--brand-tint); }
#ben4x-app .b4x-hello { margin: 2px 0 16px; }
#ben4x-app .b4x-hello__name { font-family: var(--cond); font-weight: 700; font-size: 36px; line-height: 1; color: var(--brand-deep); margin: 0; }
#ben4x-app .b4x-hello__role { color: var(--muted2); margin: 6px 0 0; font-size: 15px; }
#ben4x-app .b4x-lead { margin: 0 0 14px; font-size: 14.5px; line-height: 1.5; }
#ben4x-app .b4x-small { font-size: 13px; margin: 10px 2px; }
#ben4x-app .b4x-foot { text-align: center; color: var(--muted2); font-size: 12.5px; margin: 28px 0 8px; line-height: 1.6; }
#ben4x-app .b4x-block { margin-top: 26px; }
#ben4x-app .b4x-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 2px 10px; }
#ben4x-app .b4x-block__title { font-family: var(--cond); font-weight: 600; font-size: 22px; color: var(--ink); margin: 0; }

/* ------------------------------------------------------------------ il biglietto campo (elemento distintivo) */
#ben4x-app .b4x-court { position: relative; overflow: hidden; background: var(--brand); color: #fff; border-radius: 18px; padding: 22px 22px 20px; margin: 0 0 14px; }
#ben4x-app .b4x-court.is-link { cursor: pointer; }
#ben4x-app .b4x-court__lines { position: absolute; inset: 10px; border: 2px solid rgba(255,255,255,.18); border-radius: 4px; pointer-events: none; }
#ben4x-app .b4x-court__net { position: absolute; top: -2px; bottom: -2px; right: 16%; border-left: 2px solid rgba(255,255,255,.16); }
#ben4x-app .b4x-court__service { position: absolute; top: 24%; bottom: 24%; right: 16%; width: 18%; border: 2px solid rgba(255,255,255,.12); border-right: 0; }
#ben4x-app .b4x-court__content { padding-right: 14%; }
#ben4x-app .b4x-court__content { position: relative; }
#ben4x-app .b4x-court__kicker { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.82); display: flex; align-items: center; gap: 8px; }
#ben4x-app .b4x-court--offer .b4x-court__kicker { color: var(--ball); }
#ben4x-app .b4x-court--offer .b4x-court__kicker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ball); box-shadow: 0 0 0 4px rgba(214,227,71,.25); }
#ben4x-app .b4x-court__time { font-family: var(--cond); font-weight: 700; font-size: 64px; line-height: .95; margin: 0; letter-spacing: -.01em; color: #fff; }
#ben4x-app .b4x-court__end { font-size: 30px; font-weight: 600; opacity: .7; margin-left: 4px; }
#ben4x-app .b4x-court__day { font-family: var(--cond); font-weight: 600; font-size: 24px; margin: 4px 0 0; color: #fff; }
#ben4x-app .b4x-court__place, #ben4x-app .b4x-court__meta { margin: 6px 0 0; font-size: 15px; color: rgba(255,255,255,.88); }
#ben4x-app .b4x-court__meta { font-size: 14px; color: rgba(255,255,255,.72); margin-top: 2px; }
#ben4x-app .b4x-court__note { margin: 12px 0 0; font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.9); }
#ben4x-app .b4x-court__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
#ben4x-app .b4x-court__actions .b4x-btn { min-height: 46px; padding: 10px 18px; font-size: 15px; }
#ben4x-app .b4x-btn--ball { background: var(--ball); border-color: var(--ball); color: var(--ink); }
#ben4x-app .b4x-btn--ball:hover { background: #E2EC6A; }
#ben4x-app .b4x-btn--ghost-light { background: transparent; border: 1.5px solid rgba(255,255,255,.55); color: #fff; }
#ben4x-app .b4x-btn--ghost-light:hover { background: rgba(255,255,255,.08); }

/* ------------------------------------------------------------------ numeri in evidenza */
#ben4x-app .b4x-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
#ben4x-app .b4x-stat { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
#ben4x-app .b4x-stat__n { font-family: var(--cond); font-weight: 700; font-size: 34px; line-height: 1; color: var(--brand-deep); }
#ben4x-app .b4x-stat__l { font-size: 13.5px; color: var(--muted2); line-height: 1.3; }
#ben4x-app .b4x-stat--warn { background: var(--warn-tint); border-color: #F3D3B0; }
#ben4x-app .b4x-stat--warn .b4x-stat__n { color: var(--warn); }
#ben4x-app .b4x-stat--ball { background: var(--ball-tint); border-color: #DCE69A; }

/* ------------------------------------------------------------------ elenchi a righe */
#ben4x-app .b4x-rows { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 0 0 14px; }
#ben4x-app .b4x-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; min-height: 58px; background: none; border: 0; border-top: 1px solid var(--line); text-align: left; color: var(--ink) !important; text-decoration: none !important; font: inherit; }
#ben4x-app .b4x-row:first-child { border-top: 0; }
#ben4x-app button.b4x-row, #ben4x-app a.b4x-row { cursor: pointer; }
#ben4x-app button.b4x-row:active, #ben4x-app a.b4x-row:active { background: var(--paper); }
#ben4x-app .b4x-row__icon { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); }
#ben4x-app .b4x-row__icon--ok { background: var(--ok-tint); color: var(--ok); }
#ben4x-app .b4x-row__icon--brand { background: var(--brand); color: #fff; }
#ben4x-app .b4x-row__icon--ball { background: var(--ball); color: var(--ink); }
#ben4x-app .b4x-row__icon--muted { background: var(--paper); color: var(--muted2); }
#ben4x-app .b4x-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#ben4x-app .b4x-row__title { font-weight: 600; font-size: 15.5px; line-height: 1.3; }
#ben4x-app .b4x-row__sub { font-size: 13.5px; color: var(--muted2); line-height: 1.35; }
#ben4x-app .b4x-row__right { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
#ben4x-app .b4x-row__chev { color: #A9B5AF; flex: 0 0 auto; }
#ben4x-app .b4x-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ball); box-shadow: 0 0 0 2px var(--brand); }
#ben4x-app .b4x-amount { font-weight: 700; font-variant-numeric: tabular-nums; }
#ben4x-app .b4x-amount--in { color: var(--ok); }
#ben4x-app .b4x-link--sm { font-size: 13px; }
#ben4x-app .b4x-count2 { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); font-weight: 700; font-size: 14px; }
#ben4x-app .b4x-count2--warn { background: var(--warn); color: #fff; }

/* ------------------------------------------------------------------ messaggi, etichette, stati vuoti */
#ben4x-app .b4x-note { border-radius: 14px; padding: 13px 15px; margin: 0 0 14px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; line-height: 1.5; color: var(--ink); }
#ben4x-app .b4x-note.is-link { cursor: pointer; }
#ben4x-app .b4x-note--brand { background: var(--brand-tint); border-color: #C6DBD2; }
#ben4x-app .b4x-note--ok { background: var(--ok-tint); border-color: #BEE0CB; display: flex; gap: 8px; align-items: center; }
#ben4x-app .b4x-note--warning, #ben4x-app .b4x-note--warn { background: var(--warn-tint); border-color: #F3D3B0; }
#ben4x-app .b4x-note--danger { background: var(--danger-tint); border-color: #F1C4C1; }
#ben4x-app .b4x-note__actions { display: flex; gap: 8px; margin-top: 10px; }
#ben4x-app .b4x-pill { display: inline-flex; align-items: center; white-space: nowrap; border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-weight: 600; background: var(--paper); color: var(--muted2); }
#ben4x-app .b4x-pill--ok { background: var(--ok-tint); color: var(--ok); }
#ben4x-app .b4x-pill--warning { background: var(--warn-tint); color: var(--warn); }
#ben4x-app .b4x-pill--danger { background: var(--danger-tint); color: var(--danger); }
#ben4x-app .b4x-pill--brand { background: var(--brand); color: #fff; }
#ben4x-app .b4x-pill--ball { background: var(--ball); color: var(--ink); }
#ben4x-app .b4x-pill--info { background: #E7EFF8; color: #22558C; }
#ben4x-app .b4x-emptystate { text-align: center; padding: 30px 12px; color: var(--muted2); }
#ben4x-app .b4x-emptystate .b4x-ico { color: var(--brand); opacity: .6; }
#ben4x-app .b4x-emptystate__title { font-weight: 700; color: var(--ink); margin: 10px 0 4px; font-size: 16px; }
#ben4x-app .b4x-emptystate__text { margin: 0 auto; max-width: 34ch; font-size: 14px; line-height: 1.5; }
#ben4x-app .b4x-offline { background: var(--ball-tint); color: var(--ink); border-radius: 10px; padding: 8px 12px; font-size: 13px; margin: 0 0 12px; }
.b4x-pwa .b4x-offline--bar { border-radius: 0; margin: 0; text-align: center; }

/* ------------------------------------------------------------------ pulsanti e campi (taglia "dito") */
.b4x-pwa .b4x-btn { min-height: 44px; border-radius: 12px; font-size: 15px; }
.b4x-pwa .b4x-btn--sm { min-height: 34px; padding: 6px 12px; font-size: 13.5px; border-radius: 10px; }
#ben4x-app .b4x-btnrow { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
#ben4x-app .b4x-btnrow .b4x-btn { flex: 1 1 auto; }
.b4x-pwa .b4x-btnrow--sticky { position: sticky; bottom: calc(76px + var(--safe-b)); background: linear-gradient(transparent, var(--paper) 30%); padding-top: 14px; z-index: 5; }
.b4x-pwa .b4x-input, .b4x-pwa .b4x-select { font-size: 16px; padding: 12px 14px; border-radius: 12px; border-color: var(--line); }
#ben4x-app .b4x-field { margin: 0 0 14px; }
#ben4x-app .b4x-field__hint { color: var(--muted2); font-size: 12.5px; }
#ben4x-app .b4x-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 380px) { #ben4x-app .b4x-grid2 { grid-template-columns: 1fr; } }
#ben4x-app .b4x-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 16px; }
#ben4x-app .b4x-choice button { text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; color: var(--ink); font: inherit; }
#ben4x-app .b4x-choice button span { font-size: 13px; color: var(--muted2); line-height: 1.35; }
#ben4x-app .b4x-choice button.is-active { border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand); }
#ben4x-app .b4x-switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
#ben4x-app .b4x-switch.is-disabled { opacity: .55; cursor: default; }
#ben4x-app .b4x-switch__text { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
#ben4x-app .b4x-switch__text small { color: var(--muted2); font-size: 13px; }
#ben4x-app .b4x-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
#ben4x-app .b4x-switch__track { flex: 0 0 48px; width: 48px; height: 28px; border-radius: 14px; background: #C9D3CE; position: relative; transition: background .2s; }
#ben4x-app .b4x-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
#ben4x-app .b4x-switch input:checked + .b4x-switch__track { background: var(--brand); }
#ben4x-app .b4x-switch input:checked + .b4x-switch__track::after { transform: translateX(20px); }
#ben4x-app .b4x-switch input:focus-visible + .b4x-switch__track { outline: 3px solid var(--ball); outline-offset: 2px; }
#ben4x-app .b4x-filepick { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1.5px dashed #AFC2B9; border-radius: 14px; background: var(--surface); color: var(--brand); font-weight: 600; cursor: pointer; margin: 12px 0 14px; position: relative; }
#ben4x-app .b4x-filepick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
#ben4x-app .b4x-searchbox { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; margin: 0 0 14px; color: var(--muted2); }
#ben4x-app .b4x-searchbox input { flex: 1; border: 0; outline: 0; background: none; padding: 14px 0; font-size: 16px; }
#ben4x-app .b4x-daynav { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; }
#ben4x-app .b4x-daynav strong { font-family: var(--cond); font-weight: 600; font-size: 22px; }

/* ------------------------------------------------------------------ pannello dal basso e avvisi */
#ben4x-app .b4x-sheet__backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(10,25,19,.45); display: flex; align-items: flex-end; justify-content: center; animation: b4x-fade .18s ease-out; }
#ben4x-app .b4x-sheet { width: 100%; max-width: 640px; max-height: 90dvh; overflow-y: auto; background: var(--paper); border-radius: 20px 20px 0 0; padding: 6px 18px calc(18px + var(--safe-b)); animation: b4x-up .22s ease-out; }
#ben4x-app .b4x-sheet__grip { width: 40px; height: 4px; border-radius: 2px; background: #C2CCC7; margin: 6px auto 4px; }
#ben4x-app .b4x-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#ben4x-app .b4x-sheet__head h2 { font-family: var(--cond); font-weight: 700; font-size: 25px; color: var(--brand-deep); margin: 8px 0; }
#ben4x-app .b4x-sheet__lead { font-weight: 600; margin: 0 0 8px; }
@media (min-width: 720px) { #ben4x-app .b4x-sheet__backdrop { align-items: center; } #ben4x-app .b4x-sheet { border-radius: 20px; } }
@keyframes b4x-up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes b4x-fade { from { opacity: 0; } to { opacity: 1; } }
#ben4x-app .b4x-toasts { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(84px + var(--safe-b)); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
#ben4x-app .b4x-toast { background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 12px; font-size: 14.5px; max-width: 520px; box-shadow: 0 6px 20px rgba(0,0,0,.18); animation: b4x-up .2s ease-out; }
#ben4x-app .b4x-toast--warn { background: var(--warn); }
.b4x-pwa .b4x-install { position: fixed; z-index: 30; left: 10px; right: 10px; bottom: calc(76px + var(--safe-b)); max-width: 620px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: grid; grid-template-columns: 44px 1fr; gap: 12px; box-shadow: 0 10px 30px rgba(10,25,19,.16); }
.b4x-pwa .b4x-install img { border-radius: 10px; }
.b4x-pwa .b4x-install__text { display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; line-height: 1.4; color: var(--muted2); }
.b4x-pwa .b4x-install__text strong { color: var(--ink); font-size: 15px; }
.b4x-pwa .b4x-install__text .b4x-ico { vertical-align: -3px; }
.b4x-pwa .b4x-install__actions { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; }

/* ------------------------------------------------------------------ staff: richieste e scelta destinatari */
#ben4x-app .b4x-task { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; margin: 0 0 10px; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
#ben4x-app .b4x-task__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; }
#ben4x-app .b4x-task__body strong { font-size: 15.5px; }
#ben4x-app .b4x-task__body em { color: var(--muted2); }
#ben4x-app .b4x-task__actions { display: flex; gap: 8px; flex: 0 0 auto; }
#ben4x-app .b4x-pick { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 0 0 8px; cursor: pointer; }
#ben4x-app .b4x-pick input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--brand); flex: 0 0 auto; }
#ben4x-app .b4x-pick.is-disabled { opacity: .6; cursor: default; }
#ben4x-app .b4x-pick__body { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; color: var(--muted2); }
#ben4x-app .b4x-pick__body strong { color: var(--ink); font-size: 15.5px; }
#ben4x-app .b4x-pick__body em { color: var(--warn); font-style: normal; }
#ben4x-app .b4x-certimg { width: 100%; max-height: 50dvh; object-fit: contain; background: #fff; border-radius: 12px; border: 1px solid var(--line); margin: 0 0 14px; }
#ben4x-app .b4x-verify { text-align: center; border-radius: 18px; padding: 22px 16px; margin: 0 0 16px; color: #fff; background: var(--danger); }
#ben4x-app .b4x-verify.is-ok { background: var(--ok); }
#ben4x-app .b4x-verify p { margin: 4px 0; color: #fff; }
#ben4x-app .b4x-verify__name { font-family: var(--cond); font-weight: 700; font-size: 30px; }

/* ------------------------------------------------------------------ allievo: crediti, saldo, dati, tessera */
#ben4x-app .b4x-credits { display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; }
#ben4x-app .b4x-credit { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: baseline; }
#ben4x-app .b4x-credit__n { font-family: var(--cond); font-weight: 700; font-size: 40px; line-height: 1; color: var(--brand-deep); grid-row: span 2; }
#ben4x-app .b4x-credit__t { font-weight: 700; font-size: 16px; }
#ben4x-app .b4x-credit__info { margin: 4px 0 0; color: var(--muted2); font-size: 13.5px; line-height: 1.45; }
#ben4x-app .b4x-balance { background: var(--brand); color: #fff; border-radius: 18px; padding: 22px; margin: 0 0 14px; }
#ben4x-app .b4x-balance--debt { background: var(--surface); color: var(--ink); border: 1.5px solid var(--warn); }
#ben4x-app .b4x-balance__n { font-family: var(--cond); font-weight: 700; font-size: 52px; line-height: 1; margin: 0; }
#ben4x-app .b4x-balance--debt .b4x-balance__n { color: var(--warn); }
#ben4x-app .b4x-balance__l { margin: 6px 0 0; font-size: 15px; opacity: .9; }
#ben4x-app .b4x-balance__p { margin: 10px 0 0; font-size: 14px; }
#ben4x-app .b4x-dl { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px; margin: 0 0 14px; }
#ben4x-app .b4x-dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
#ben4x-app .b4x-dl > div:first-child { border-top: 0; }
#ben4x-app .b4x-dl > div span { color: var(--muted2); }
#ben4x-app .b4x-dl > div strong { text-align: right; font-weight: 600; word-break: break-word; }
#ben4x-app .b4x-certbox { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 0 0 14px; }
#ben4x-app .b4x-certbox__date { font-family: var(--cond); font-weight: 600; font-size: 26px; margin: 10px 0 2px; }
#ben4x-app .b4x-card2 { position: relative; overflow: hidden; background: var(--brand); color: #fff; border-radius: 20px; padding: 22px; margin: 0 0 16px; }
#ben4x-app .b4x-card2::before { content: ""; position: absolute; inset: 10px; border: 2px solid rgba(255,255,255,.14); border-radius: 6px; pointer-events: none; }
#ben4x-app .b4x-card2--invalid { background: #4E5B55; }
#ben4x-app .b4x-card2__top { position: relative; display: flex; align-items: center; gap: 14px; }
#ben4x-app .b4x-card2__club { margin: 0; font-size: 14px; opacity: .9; }
#ben4x-app .b4x-card2__year { margin: 0; font-family: var(--cond); font-weight: 700; font-size: 26px; color: var(--ball); }
#ben4x-app .b4x-card2__name { position: relative; font-family: var(--cond); font-weight: 700; font-size: 38px; line-height: 1; margin: 22px 0 14px; color: #fff; }
#ben4x-app .b4x-card2__row { position: relative; display: flex; gap: 22px; flex-wrap: wrap; }
#ben4x-app .b4x-card2__row span { display: block; font-size: 12.5px; opacity: .75; }
#ben4x-app .b4x-card2__row strong { font-size: 17px; }
#ben4x-app .b4x-card2__qr { position: relative; background: #fff; border-radius: 14px; padding: 10px; width: min(220px, 70%); margin: 20px auto 6px; }
#ben4x-app .b4x-card2__qr svg { display: block; width: 100%; height: auto; }
#ben4x-app .b4x-card2__status { position: relative; text-align: center; margin: 10px 0 0; font-size: 14.5px; }

/* ------------------------------------------------------------------ news ed eventi */
#ben4x-app .b4x-events { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x mandatory; }
#ben4x-app .b4x-event { flex: 0 0 min(260px, 80%); scroll-snap-align: start; display: flex; gap: 12px; align-items: center; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; cursor: pointer; font: inherit; color: var(--ink); }
#ben4x-app .b4x-event__date { flex: 0 0 52px; height: 58px; border-radius: 10px; background: var(--brand); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--cond); font-weight: 700; line-height: 1; }
#ben4x-app .b4x-event__date span { font-size: 28px; }
#ben4x-app .b4x-event__date small { font-size: 14px; color: var(--ball); }
#ben4x-app .b4x-event__body { display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; color: var(--muted2); min-width: 0; }
#ben4x-app .b4x-event__body strong { color: var(--ink); font-size: 15px; }
#ben4x-app .b4x-feed { display: flex; flex-direction: column; gap: 12px; }
#ben4x-app .b4x-story { display: flex; flex-direction: column; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; padding: 0; cursor: pointer; font: inherit; color: var(--ink); }
#ben4x-app .b4x-story__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--brand-tint); }
#ben4x-app .b4x-story__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px 16px; }
#ben4x-app .b4x-story__title { font-family: var(--cond); font-weight: 700; font-size: 24px; line-height: 1.1; }
#ben4x-app .b4x-story__meta { font-size: 13.5px; color: var(--muted2); }
#ben4x-app .b4x-story__excerpt { font-size: 14.5px; line-height: 1.5; color: var(--ink); }
#ben4x-app .b4x-story--text { border-left: 4px solid var(--brand); }
#ben4x-app .b4x-article__cover { width: calc(100% + 32px); max-width: none; margin: -18px -16px 16px; aspect-ratio: 4 / 3; object-fit: cover; }
#ben4x-app .b4x-article__title { font-family: var(--cond); font-weight: 700; font-size: 34px; line-height: 1.05; color: var(--brand-deep); margin: 0 0 6px; }
#ben4x-app .b4x-article__meta { color: var(--muted2); font-size: 14px; margin: 0 0 16px; }
#ben4x-app .b4x-prose p { font-size: 16.5px; line-height: 1.62; margin: 0 0 14px; max-width: 66ch; }
#ben4x-app .b4x-prose a { color: var(--brand); text-decoration: underline; }
#ben4x-app .b4x-eventbox { background: var(--brand-tint); border-radius: 14px; padding: 14px 16px 2px; margin: 0 0 18px; }
#ben4x-app .b4x-eventbox p { display: flex; gap: 8px; align-items: center; margin: 0 0 6px; font-size: 15px; }
#ben4x-app .b4x-eventbox__when { font-weight: 700; }
#ben4x-app .b4x-video { position: relative; aspect-ratio: 16 / 9; margin: 6px 0 16px; border-radius: 14px; overflow: hidden; background: #000; }
#ben4x-app .b4x-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
#ben4x-app .b4x-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; margin: 6px 0 16px; }
#ben4x-app .b4x-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
#ben4x-app .b4x-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
#ben4x-app .b4x-thumbs__item { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1; }
#ben4x-app .b4x-thumbs__item img { width: 100%; height: 100%; object-fit: cover; }
#ben4x-app .b4x-thumbs__item button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(20,32,25,.75); color: #fff; display: grid; place-items: center; cursor: pointer; }
#ben4x-app .b4x-thumbs__item span { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(2,75,56,.85); color: #fff; font-size: 11.5px; text-align: center; padding: 2px; }
#ben4x-app .b4x-thumbs__add { position: relative; aspect-ratio: 1; border: 1.5px dashed #AFC2B9; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--brand); font-size: 13px; font-weight: 600; cursor: pointer; background: var(--surface); }
#ben4x-app .b4x-thumbs__add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
#ben4x-app .b4x-thumbs__add .b4x-loader { padding: 0; }

/* Gestionale su computer: la pagina News usa gli stessi componenti */
#ben4x-app .b4x-newsadmin { max-width: 760px; }
#ben4x-app .b4x-newsadmin .b4x-article__cover { width: 100%; margin: 0 0 16px; border-radius: 16px; }

/* ------------------------------------------------------------------ accessibilità */
#ben4x-app :focus-visible { outline: 3px solid var(--ball); outline-offset: 2px; }
.b4x-pwa .b4x-ico { flex: 0 0 auto; }
@media (prefers-reduced-motion: reduce) {
  #ben4x-app *, .b4x-splash * { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------- 0.11.0 — gioco SMTC Tennis Pong */
#ben4x-app .b4x-game-hero { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px; border-radius: 18px; background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%); color: #fff; margin-bottom: 14px; }
#ben4x-app .b4x-game-hero p { margin: 0; }
#ben4x-app .b4x-game-hero__k { font-family: "B4X Arcade", monospace; font-size: 26px; letter-spacing: 1px; }
#ben4x-app .b4x-game-hero__t { font-family: "B4X Arcade", monospace; font-size: 12px; color: var(--ball); margin: 8px 0 10px !important; }
#ben4x-app .b4x-game-hero__s { font-size: 14px; opacity: .9; max-width: 32ch; }
#ben4x-app .b4x-levels { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
#ben4x-app .b4x-level-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 14px; border: 0; cursor: pointer; text-align: left; color: #fff; font: inherit;
  background: linear-gradient(120deg, var(--c1) 0%, var(--c2) 100%); box-shadow: 0 3px 10px rgba(0,0,0,.12); }
#ben4x-app .b4x-level-card.is-locked { filter: grayscale(.85) brightness(.85); cursor: not-allowed; opacity: .7; }
#ben4x-app .b4x-level-card.is-won { box-shadow: inset 0 0 0 3px var(--ball), 0 3px 10px rgba(0,0,0,.12); }
#ben4x-app .b4x-level-card__n { font-family: "B4X Arcade", monospace; font-size: 20px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: rgba(0,0,0,.28); flex: none; }
#ben4x-app .b4x-level-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#ben4x-app .b4x-level-card__body strong { font-size: 16px; }
#ben4x-app .b4x-level-card__body small { opacity: .88; font-size: 12px; }
#ben4x-app .b4x-level-card__st { font-size: 20px; }
#ben4x-app .b4x-game { padding: 10px 12px 20px; }
#ben4x-app .b4x-game__bar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--brand-deep); }
#ben4x-app .b4x-game__help { font-size: 12px; color: var(--muted2); text-align: center; margin: 12px auto; max-width: 440px; }
#ben4x-app .b4x-pong { width: 100%; max-width: min(440px, 64vh); min-width: 260px; margin: 0 auto; position: relative; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
#ben4x-app .b4x-pong__frame { position: relative; border: 4px solid #111; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 4px var(--ball), 0 12px 30px rgba(0,0,0,.35); background: #0b1a33; }
#ben4x-app .b4x-pong canvas { display: block; width: 100%; height: auto; aspect-ratio: 2/3; touch-action: none; cursor: pointer; outline: none; }
#ben4x-app .b4x-pong__mute { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border: 2px solid #fff; border-radius: 8px; background: rgba(0,0,0,.55); color: #fff; font: 14px/1 monospace; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; }
#ben4x-app .b4x-pong__trophy { text-align: center; margin: 14px 0; }
#ben4x-app .b4x-btnrow--center { justify-content: center; margin-top: 12px; }
#ben4x-app .b4x-trophy { flex: none; filter: drop-shadow(0 3px 6px rgba(0,0,0,.25)); }

/* ---------------------------------------------------------------- 0.11.0 — prenotazione campi (soci e maestri) */
#ben4x-app .b4x-stat--muted { background: var(--surface); }
#ben4x-app .b4x-daychips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
#ben4x-app .b4x-daychips::-webkit-scrollbar { display: none; }
#ben4x-app .b4x-daychip { flex: none; width: 52px; padding: 6px 0; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); display: flex; flex-direction: column; align-items: center; cursor: pointer; font: inherit; }
#ben4x-app .b4x-daychip small { font-size: 11px; color: var(--muted2); text-transform: capitalize; }
#ben4x-app .b4x-daychip strong { font-size: 18px; }
#ben4x-app .b4x-daychip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
#ben4x-app .b4x-daychip.is-on small { color: #d8ebe2; }
#ben4x-app .b4x-slots { display: flex; flex-direction: column; gap: 6px; }
#ben4x-app .b4x-slotrow { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
#ben4x-app .b4x-slotrow__time { flex: none; width: 50px; font-family: var(--cond); font-weight: 700; font-size: 20px; color: var(--brand-deep); padding-top: 4px; }
#ben4x-app .b4x-slotrow__courts { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
#ben4x-app .b4x-courtchip { display: inline-flex; flex-direction: column; align-items: flex-start; padding: 6px 12px; border-radius: 12px; border: 1.5px solid var(--brand); background: var(--brand-tint); color: var(--brand-deep); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
#ben4x-app .b4x-courtchip small { font-weight: 500; font-size: 11px; color: var(--muted2); }
#ben4x-app .b4x-courtchip:active { background: var(--ball-tint); }
#ben4x-app .b4x-seg2 { display: flex; gap: 8px; margin: 14px 0; }
#ben4x-app .b4x-seg2 button { flex: 1; padding: 10px 6px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font: inherit; font-weight: 700; cursor: pointer; display: flex; flex-direction: column; align-items: center; color: var(--ink); }
#ben4x-app .b4x-seg2 button small { font-weight: 500; color: var(--muted2); font-size: 12px; }
#ben4x-app .b4x-seg2 button.is-on { border-color: var(--brand); background: var(--brand); color: #fff; }
#ben4x-app .b4x-seg2 button.is-on small { color: #d8ebe2; }
#ben4x-app .b4x-price { font-size: 16px; margin: 6px 0; }
#ben4x-app .b4x-price strong { font-size: 22px; color: var(--brand-deep); }

/* ---------------------------------------------------------------- 0.12.0 — informazioni del Circolo */
#ben4x-app .b4x-notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; margin: 0 0 14px; border: 1.5px solid; }
#ben4x-app .b4x-notice--warning { background: #FFF4E0; border-color: #F2C77A; color: #5a3c06; }
#ben4x-app .b4x-notice--info { background: var(--brand-tint); border-color: #b9d6c9; color: var(--brand-deep); }
#ben4x-app .b4x-notice__icon { flex: none; margin-top: 1px; }
#ben4x-app .b4x-notice__title { font-weight: 800; margin: 0 0 4px; font-size: 16px; }
#ben4x-app .b4x-notice__text p { margin: 0 0 6px; font-size: 14.5px; line-height: 1.45; }
#ben4x-app .b4x-notice__text p:last-child { margin: 0; }
#ben4x-app .b4x-notice__text a { color: inherit; font-weight: 700; }
#ben4x-app .b4x-wa { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; background: #25D366; color: #06331a; text-decoration: none; margin: 0 0 14px; box-shadow: 0 3px 10px rgba(37,211,102,.25); }
#ben4x-app .b4x-wa span { display: flex; flex-direction: column; }
#ben4x-app .b4x-wa strong { font-size: 17px; }
#ben4x-app .b4x-wa small { font-size: 13px; opacity: .85; }
#ben4x-app .b4x-wa:active { filter: brightness(.95); }
#ben4x-app .b4x-wa--compact { padding: 10px 14px; }
#ben4x-app .b4x-openings { display: flex; flex-direction: column; gap: 10px; }
#ben4x-app .b4x-opening { display: flex; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
#ben4x-app .b4x-opening__day { width: 52px; height: 52px; border-radius: 12px; background: var(--brand); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; flex: none; }
#ben4x-app .b4x-opening__day strong { font-size: 20px; }
#ben4x-app .b4x-opening__day small { font-size: 11px; text-transform: uppercase; opacity: .85; }
#ben4x-app .b4x-opening__when { margin: 0; font-weight: 700; text-transform: capitalize; }
#ben4x-app .b4x-opening__note { margin: 2px 0 0; font-size: 13px; }
#ben4x-app .b4x-office-loc { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 6px; font-size: 15px; line-height: 1.45; color: var(--ink); }
#ben4x-app .b4x-office-loc svg { flex: none; color: var(--brand); margin-top: 2px; }
#ben4x-app .b4x-partners { display: flex; flex-direction: column; gap: 10px; }
#ben4x-app .b4x-partner { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font: inherit; text-align: left; cursor: pointer; color: var(--ink); }
#ben4x-app .b4x-partner__logo { width: 56px; height: 56px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; flex: none; }
#ben4x-app .b4x-partner__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
#ben4x-app .b4x-partner__logo span { font-weight: 800; color: var(--brand); }
#ben4x-app .b4x-partner__logo--big { width: 84px; height: 84px; border-radius: 16px; }
#ben4x-app .b4x-partner__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#ben4x-app .b4x-partner__body strong { font-size: 16px; }
#ben4x-app .b4x-partner__deal { color: var(--brand); font-weight: 700; font-size: 14px; }
#ben4x-app .b4x-partner__body small { color: var(--muted2); }
#ben4x-app .b4x-partner-head { display: flex; gap: 14px; align-items: center; margin: 0 0 12px; }
#ben4x-app .b4x-partner-head__name { margin: 0; font-size: 22px; }
#ben4x-app .b4x-deal { background: var(--ball-tint); border: 1.5px solid #DCE69A; color: var(--brand-deep); font-weight: 800; font-size: 18px; padding: 14px 16px; border-radius: 14px; margin: 0 0 12px; }
#ben4x-app .b4x-rich { font-size: 15px; line-height: 1.55; }
#ben4x-app .b4x-rich h2 { font-size: 18px; margin: 18px 0 6px; color: var(--brand-deep); }
#ben4x-app .b4x-rich h3 { font-size: 16px; margin: 14px 0 4px; }
#ben4x-app .b4x-rich ul { padding-left: 20px; }
#ben4x-app .b4x-rich a { color: var(--brand); }
#ben4x-app .b4x-map { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); margin: 10px 0; }
#ben4x-app .b4x-map iframe { width: 100%; height: 260px; border: 0; display: block; }
/* termini: pagina pubblica */
.b4x-pwa-body--doc { background: #f3f6f4; }
.b4x-pwa-body--doc .b4x-pwa-gate { background: #f3f6f4; min-height: 100vh; }
.b4x-doc { max-width: 760px; margin: 0 auto; padding: calc(20px + env(safe-area-inset-top)) 18px 40px; color: #142019; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 15.5px; line-height: 1.6; }
.b4x-doc__back a { color: #024B38; font-weight: 600; text-decoration: none; }
.b4x-doc__title { font-size: 26px; line-height: 1.2; color: #013326; margin: 10px 0 4px; }
.b4x-doc__meta { color: #5C6A63; font-size: 13px; }
.b4x-doc__body h2 { font-size: 19px; color: #013326; margin: 26px 0 6px; }
.b4x-doc__body ul { padding-left: 20px; }
.b4x-doc__body a, .b4x-doc__meta a { color: #024B38; }
.b4x-rich + .b4x-rows, .b4x-rich + p{margin-top:14px}

/* 0.13.0 — socio FST sulla tessera */
#ben4x-app .b4x-card2__fst { position: absolute; top: 0; right: 0; width: 54px; height: 54px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
#ben4x-app .b4x-card2__fst img { width: 46px; height: 46px; border-radius: 50%; display: block; }
#ben4x-app .b4x-card2__top { padding-right: 62px; }
#ben4x-app .b4x-verify__fst { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #1d1d1b; border-radius: 999px; padding: 3px 12px 3px 3px; font-weight: 600; }
#ben4x-app .b4x-verify__fst img { border-radius: 50%; }

/* 0.13.0 — Giochi: SMTC Tennis Arcade e classifica */
#ben4x-app .b4x-game-pick { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; text-align: left; border: 0; border-radius: 18px; padding: 18px; margin: 0 0 12px; color: #fff; cursor: pointer; font: inherit; box-shadow: 0 4px 14px rgba(0,0,0,.14); }
#ben4x-app .b4x-game-pick--arcade { background: linear-gradient(150deg, #c8643a 0%, #7a3418 100%); box-shadow: inset 0 0 0 3px var(--ball), 0 4px 14px rgba(0,0,0,.14); }
#ben4x-app .b4x-game-pick--pong { background: linear-gradient(150deg, var(--brand) 0%, var(--brand-deep) 100%); }
#ben4x-app .b4x-game-pick__k { font-family: "B4X Arcade", monospace; font-size: 24px; color: var(--ball); }
#ben4x-app .b4x-game-pick__t { font-family: "B4X Arcade", monospace; font-size: 12px; margin-bottom: 6px; }
#ben4x-app .b4x-game-pick__s { font-size: 14px; opacity: .92; max-width: 34ch; }
#ben4x-app .b4x-game-pick__f { margin-top: 8px; font-size: 13px; font-weight: 700; background: rgba(0,0,0,.25); border-radius: 999px; padding: 4px 10px; }
#ben4x-app .b4x-nick { background: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.06); margin-bottom: 14px; }
#ben4x-app .b4x-nick__t { font-family: "B4X Arcade", monospace; font-size: 12px; color: var(--brand-deep); margin: 0 0 8px; line-height: 1.5; }
#ben4x-app .b4x-arcade-res { max-width: 440px; margin: 12px auto 0; text-align: center; background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
#ben4x-app .b4x-arcade-res p { margin: 0 0 8px; }
#ben4x-app .b4x-arcade-res__big { font-family: "B4X Arcade", monospace; font-size: 14px; color: var(--brand-deep); line-height: 1.5; }
#ben4x-app .b4x-arcade-res--record { box-shadow: inset 0 0 0 3px #ffcc00, 0 2px 10px rgba(0,0,0,.08); }
#ben4x-app .b4x-arcade-res--warn { background: #fff7e8; }
#ben4x-app .b4x-lb-hero { background: linear-gradient(150deg, #c8643a 0%, #7a3418 100%); color: #fff; border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; }
#ben4x-app .b4x-lb-hero p { margin: 0; }
#ben4x-app .b4x-lb-hero__k { font-family: "B4X Arcade", monospace; font-size: 12px; color: var(--ball); margin-bottom: 6px !important; }
#ben4x-app .b4x-lb-hero__s { font-size: 13px; opacity: .9; }
#ben4x-app .b4x-lb-me { display: flex; align-items: center; gap: 14px; background: var(--brand); color: #fff; border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
#ben4x-app .b4x-lb-me > div { display: flex; flex-direction: column; min-width: 0; }
#ben4x-app .b4x-lb-me > div:first-child { flex: 1; }
#ben4x-app .b4x-lb-me small { font-size: 11.5px; opacity: .75; }
#ben4x-app .b4x-lb-me strong { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ben4x-app .b4x-lb-me .b4x-link { color: var(--ball); background: none; border: 0; font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
#ben4x-app .b4x-lb { list-style: none; margin: 0 0 14px; padding: 0; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
#ben4x-app .b4x-lb__row { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid #edf1ef; }
#ben4x-app .b4x-lb__row:last-child { border-bottom: 0; }
#ben4x-app .b4x-lb__row.is-me { background: #eef8d0; font-weight: 700; }
#ben4x-app .b4x-lb__rank { width: 28px; text-align: center; font-weight: 700; color: var(--muted2); flex: none; }
#ben4x-app .b4x-lb__row.is-top1 .b4x-lb__rank, #ben4x-app .b4x-lb__row.is-top2 .b4x-lb__rank, #ben4x-app .b4x-lb__row.is-top3 .b4x-lb__rank { font-size: 20px; }
#ben4x-app .b4x-lb__nick { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ben4x-app .b4x-lb__lvl { font-size: 12px; color: var(--muted2); }
#ben4x-app .b4x-lb__score { font-family: "B4X Arcade", monospace; font-size: 12px; color: var(--brand-deep); min-width: 52px; text-align: right; }
#ben4x-app .b4x-game__bar .b4x-spacer { flex: 1; }
#ben4x-app .b4x-game__bar .b4x-btn { white-space: nowrap; flex: none; }
#ben4x-app .b4x-game__nick { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ben4x-app .b4x-arcade-res__big { font-family: var(--cond); font-size: 24px; font-weight: 700; }
