/* SALSAN mobile gold web v22.2 — presentation only. No external assets. */
:root {
  --black:#050607; --surface:#101419; --surface-2:#171c21; --gold:#e6a500;
  --yellow:#ffda3e; --muted:#bfc3c8; --text:#f7f7f8;
  --top-safe:0px; --bottom-safe:0px; --left-safe:0px; --right-safe:0px;
  --top-safe:env(safe-area-inset-top,0px); --bottom-safe:env(safe-area-inset-bottom,0px);
  --left-safe:env(safe-area-inset-left,0px); --right-safe:env(safe-area-inset-right,0px);
  --bar-height:57px; --nav-height:72px; --safe-bottom:var(--bottom-safe);
}
html{background:#050607;scroll-behavior:auto;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{min-width:0;min-height:100vh;min-height:100dvh;background:linear-gradient(135deg,#050607,#101419,#050607);overflow-wrap:break-word}
button,a,input,textarea,select{touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--yellow);outline-offset:3px}
.app-shell,.auth-shell{min-height:100vh;min-height:100dvh}
.auth-shell{padding:24px;padding:calc(24px + var(--top-safe)) calc(16px + var(--right-safe)) calc(24px + var(--bottom-safe)) calc(16px + var(--left-safe))}
.auth-card{min-width:0;border-radius:22px;padding:20px;box-shadow:none}
.app-topbar{height:calc(var(--bar-height) + var(--top-safe));padding:var(--top-safe) calc(6px + var(--right-safe)) 0 calc(6px + var(--left-safe));grid-template-columns:44px minmax(0,1fr) 44px 44px 44px;gap:0;background:#050607;border-color:#9d730c;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
.icon-btn{width:44px;height:44px;display:grid;place-items:center;color:var(--yellow)}
.topbar-title{padding:0}.topbar-title strong{font-size:15px;font-weight:900;line-height:1.2;white-space:normal;overflow-wrap:normal}.topbar-title small{display:none}
.salsan-icon{display:inline-block;width:24px;height:24px;flex:none;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.app-main{padding:calc(var(--bar-height) + var(--top-safe) + 18px) calc(16px + var(--right-safe)) calc(var(--nav-height) + var(--bottom-safe) + 24px) calc(16px + var(--left-safe));min-width:0}
.page{animation:none;min-width:0}.page-heading{margin-bottom:12px}.page-heading h1{font-size:21px}.back-home{width:44px;height:44px;flex:none}
.home-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hero-action,.dark-action{height:130px;min-height:130px;padding:14px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;border:1.2px solid #e6a500;border-radius:22px;box-shadow:0 8px 18px #0003;isolation:isolate;min-width:0}
.hero-action{color:#050607;background:linear-gradient(135deg,#ffda3e,#e6a500)}
.dark-action{color:#fff;background:linear-gradient(135deg,#171c21,#0a0d10)}
.hero-action::after,.dark-action::after{content:none}
.hero-action .action-symbol,.dark-action .action-symbol{display:grid;place-items:center;flex:none;width:40px;height:40px;margin:0 0 auto;border-radius:50%;font-size:24px;box-shadow:none;border:1px solid #ffdf73;background:#050607;color:#ffda3e}
.dark-action .action-symbol{background:#e6a500;color:#050607}
.hero-action strong,.dark-action strong{font-size:19px;line-height:1.15;font-weight:900;z-index:1}
.hero-action small,.dark-action small{font-size:11px;line-height:1.2;margin-top:4px;z-index:1;max-width:100%;white-space:normal}
.home-actions .watermark{position:absolute;right:4px;bottom:0;width:76px;height:76px;opacity:.14;z-index:0;pointer-events:none}
.promo-card{margin-top:16px;padding:14px;border:1.3px solid #ffda3e;border-radius:23px;background:linear-gradient(135deg,#3a2b05,#111318,#050607);box-shadow:0 5px 18px #c8920026;text-align:center}
.promo-card .eyebrow{display:flex;align-items:center;justify-content:center;gap:10px;color:var(--yellow);font-size:12px;font-weight:900;letter-spacing:1px}
.promo-card .eyebrow::before,.promo-card .eyebrow::after{content:"";flex:1;height:1px;background:var(--gold)}
.promo-card h2{font-size:11px;letter-spacing:.05em;margin:8px 0;color:#fff}
.promo-code{display:inline-flex;align-items:center;justify-content:center;gap:10px;width:auto;max-width:100%;padding:7px 15px;border:1px solid var(--gold);border-radius:15px;background:#090a0c;color:#ff3b30;font-size:27px;font-weight:900;letter-spacing:2px;box-shadow:none;overflow-wrap:anywhere}
.promo-code span{color:#ff3b30;font-size:20px}.promo-card p{font-size:11px;line-height:1.35;margin:10px 0;color:#fff}.promo-card p strong{color:#ff3b30;font-size:13px}
.promo-platforms{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.promo-platforms a{display:flex;align-items:center;justify-content:center;gap:5px;flex-direction:column;background:linear-gradient(135deg,#ffd83d,#e5a200);border-radius:14px;color:#050607;padding:8px;font-size:11px;font-weight:900;min-width:0;text-decoration:none}.promo-platforms img{width:82px;max-width:100%;height:29px;object-fit:contain;background:#080a0d;border-radius:7px;padding:3px}
.social-links{display:grid;grid-template-columns:1fr;gap:12px;margin-top:12px}.social-link,.share-app{border:1px solid #8f6c00;border-radius:17px;background:linear-gradient(135deg,#171c21,#0a0d10);min-height:64px;box-shadow:none}.social-link{padding:10px;gap:12px}.social-link>span{width:46px;height:46px;flex:none}.social-link strong{font-size:14px}.social-link small{font-size:11px}.share-app{min-height:48px;margin-top:12px;color:var(--yellow);font-size:14px}
.section-heading h2{font-size:17px}.section-heading{margin-top:18px}.ads-carousel{min-height:0}.ad-card{border-radius:18px}.ad-card img{height:auto;max-height:420px;min-height:0;aspect-ratio:16/9;object-fit:contain}
.bottom-nav{height:calc(var(--nav-height) + var(--bottom-safe));padding:5px calc(3px + var(--right-safe)) var(--bottom-safe) calc(3px + var(--left-safe));background:#0a0d10;border-top:1px solid #5d4b17;-webkit-backdrop-filter:none;backdrop-filter:none}
.bottom-nav button{min-width:0;min-height:44px;color:#bfc3c8;font-size:10px;line-height:1.2;font-weight:600;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:2px;border-radius:0}
.bottom-nav button .nav-icon{display:grid;place-items:center;width:50px;max-width:100%;height:30px;border-radius:18px}.bottom-nav button.active{background:none;color:var(--yellow);font-weight:800}.bottom-nav button.active .nav-icon{background:#ffda3e;color:#050607}
.whatsapp-fab{position:fixed;z-index:75;right:calc(16px + var(--right-safe));bottom:calc(var(--nav-height) + var(--bottom-safe) + 14px);width:54px;height:54px;border-radius:18px;background:#128c7e;color:#fff;display:grid;place-items:center;text-decoration:none;box-shadow:0 4px 12px #0007}.whatsapp-fab svg{width:29px;height:29px;fill:currentColor;stroke:none}
.sidebar{padding-top:calc(16px + var(--top-safe));padding-bottom:calc(12px + var(--bottom-safe));padding-left:calc(12px + var(--left-safe));overflow:auto;-webkit-overflow-scrolling:touch}.sidebar nav button{min-height:44px}
.gold-form,.compact-form,.list-card,.help-disclosure{min-width:0;background:#101419;border-color:#6f5718;border-radius:17px}.gold-form,.compact-form{gap:11px}.gold-form label,.auth-form label,.compact-form label{font-size:13px}.auth-form input,.gold-form input,.gold-form textarea,.gold-form select,.compact-form input,.compact-form select,.modal-form input,.modal-form textarea,.modal-form select,.copy-row input{font-size:16px!important;min-height:44px;max-width:100%;min-width:0}.primary-btn,.secondary-btn,.ghost-btn,.small-btn,.copy-row button{min-height:44px;white-space:normal;overflow-wrap:anywhere}.visual-choice-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}.visual-choice-row label{min-width:0}.visual-choice-row input{min-height:0!important}.visual-choice-row span{min-width:0}.visual-choice-row img{max-width:100%;object-fit:contain}.two-fields>*{min-width:0}.card-actions>*{min-width:0;overflow-wrap:anywhere}.summary-grid>*{min-width:0}.notification-image{max-width:100%;height:auto;object-fit:contain;border-radius:12px}.unread-card{border-color:#e6a500;background:#19170e}
.app-modal{width:calc(100% - 24px);max-width:620px;max-height:calc(100vh - 30px);max-height:calc(100dvh - var(--top-safe) - var(--bottom-safe) - 24px);margin:auto;border-radius:20px;overflow:auto;-webkit-overflow-scrolling:touch}.app-modal:not([open]){display:none}.modal-card{max-height:none;overflow:visible;padding:16px}.modal-close{width:44px;height:44px}.thread{max-height:42vh;max-height:42dvh;overflow:auto;-webkit-overflow-scrolling:touch}.modal-actions>*{min-height:44px;min-width:0}.toast{top:calc(var(--bar-height) + var(--top-safe) + 8px)}
@supports not selector(dialog::backdrop){.app-modal[open]{position:fixed;z-index:200;top:50%;left:50%;transform:translate(-50%,-50%);margin:0;box-shadow:0 0 0 100vmax #000b}}
@media(max-width:380px){.app-main{padding-left:calc(10px + var(--left-safe));padding-right:calc(10px + var(--right-safe))}.home-actions{gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}.hero-action,.dark-action{padding:11px;height:130px;min-height:130px}.topbar-title strong{font-size:12px}.app-topbar{grid-template-columns:40px minmax(0,1fr) 40px 40px 40px}.icon-btn{width:40px;height:44px}.bottom-nav button .nav-icon{width:43px}.promo-card{padding:10px}.promo-code{font-size:23px}}

@media(orientation:landscape) and (max-height:480px){.app-modal{max-height:calc(100vh - 16px);max-height:calc(100dvh - var(--top-safe) - var(--bottom-safe) - 12px)}.modal-card{padding:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* When the iPhone keyboard reduces the visible viewport, keep form controls accessible. */
.salsan-keyboard .bottom-nav,.salsan-keyboard .whatsapp-fab{display:none}
.salsan-keyboard .app-modal{max-height:calc(var(--keyboard-viewport, 100vh) - 16px)}

/* V22.2 — explicit responsive geometry, layered over the existing app.css. */
*,*::before,*::after{box-sizing:border-box}
.is-hidden{display:none!important}
.app-shell{width:100%;max-width:none;margin:0;min-width:0}
.app-main{min-width:0;max-width:none}
.page{width:100%;min-width:0}
.page:not(.active){display:none!important}
.home-actions,.promo-platforms,.visual-choice-row{display:grid}
.home-actions>button{position:relative;overflow:hidden;text-align:left}
.gold-form,.compact-form,.auth-form,.help-disclosure,.card-list,.list-card,.modal-card,.discover-section,.social-links{max-width:100%;min-width:0}
.gold-form fieldset,.compact-form fieldset{min-width:0;max-width:100%;margin:0}
.gold-form label,.auth-form label,.compact-form label{min-width:0}
.gold-form input:not([type=radio]):not([type=checkbox]),.auth-form input,.compact-form input,.gold-form textarea,.gold-form select,.compact-form select{width:100%;min-width:0}
input[readonly],input:disabled{background:#24292e!important;color:#d7dbe0!important;border-color:#6e747c!important;cursor:default;opacity:1;-webkit-text-fill-color:#d7dbe0}
.saved-id-hint{margin:0;color:#e8c96f;font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.copy-row{display:flex;flex-wrap:nowrap;min-width:0;max-width:100%}.copy-row input{flex:1 1 0;width:0;min-width:0}.copy-row button{flex:0 0 auto}
.list-card-head,.card-actions,.modal-actions,.quick-amounts{flex-wrap:wrap;min-width:0}
.list-card-head>*{min-width:0;overflow-wrap:anywhere}
.status-pill,.guide-step,.summary-grid,.meta-grid,.thread,.notification-image{max-width:100%;overflow-wrap:anywhere}
.meta-grid>*,.summary-grid>*{min-width:0;overflow-wrap:anywhere}
img,video,iframe{max-width:100%}
.google-login-host{width:100%;min-width:0;max-width:100%;overflow:hidden}
.auth-card{width:100%;max-width:460px;margin-inline:auto}
.auth-form .two-fields,.gold-form .two-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:420px){.two-fields{grid-template-columns:minmax(0,1fr)!important}.meta-grid,.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.card-actions>button{flex:1 1 130px}.app-modal .summary-brand-row img{max-width:42%}}
/* Keep desktop layout aligned with the original sidebar breakpoint (900px). */
@media(max-width:899px){
  .app-topbar{position:fixed;top:0;left:0;right:0;width:100%;max-width:none;margin:0}
  .app-main{width:100%;margin:0 auto;max-width:760px}
  .bottom-nav{position:fixed;left:0;right:0;bottom:0;width:100%;max-width:none;margin:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}
  .sidebar{width:min(300px,86vw);max-width:86vw}
}
@media(min-width:900px){
  :root{--desktop-sidebar:clamp(220px,20vw,260px);--bar-height:68px;--nav-height:0px}
  .app-topbar{position:fixed;top:0;left:var(--desktop-sidebar);right:0;width:auto;max-width:none;margin:0;display:grid;grid-template-columns:minmax(0,1fr) repeat(3,44px);gap:8px;padding:var(--top-safe) clamp(18px,3vw,42px) 0}
  #menu-toggle,.sidebar-scrim,.bottom-nav{display:none!important}
  .topbar-title strong{font-size:20px}
  .sidebar{position:fixed;inset:0 auto 0 0;width:var(--desktop-sidebar);max-width:none;height:100vh;height:100dvh;margin:0;padding:20px 12px;transform:none!important;visibility:visible!important;opacity:1!important;display:flex;flex-direction:column;gap:12px;background:#0a0d10;border-right:1px solid #6f5718;overflow-y:auto;overflow-x:hidden;z-index:80}
  .sidebar nav{display:flex;flex-direction:column;gap:4px;min-width:0}
  .sidebar nav button{width:100%;text-align:left;white-space:normal;overflow-wrap:anywhere}
  .sidebar-logout{margin-top:auto;flex:none}
  .app-main{width:calc(100% - var(--desktop-sidebar));margin:0 0 0 var(--desktop-sidebar);padding:calc(var(--bar-height) + 26px + var(--top-safe)) clamp(20px,3vw,48px) 48px;max-width:none}
  .page{max-width:1080px;margin:0 auto}
  #page-home{max-width:1360px}
  .transaction-page,.page#page-account,.page#page-referral{max-width:900px}
  .page-heading h1{font-size:26px}
  .home-actions{gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero-action,.dark-action{height:auto;min-height:150px;padding:20px}
  .hero-action strong,.dark-action strong{font-size:22px}
  .hero-action small,.dark-action small{font-size:13px}
  .promo-card{padding:22px}.promo-card h2,.promo-card p{font-size:13px}
  .social-links{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
  .share-app{width:100%}
  .gold-form,.compact-form{padding:22px;gap:16px}
  .compact-transaction-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
  .compact-transaction-form>fieldset,.compact-transaction-form>.saved-id-field,.compact-transaction-form>.saved-id-hint,.compact-transaction-form>.quick-amounts,.compact-transaction-form>button{grid-column:1/-1}
  #withdrawal-form .network-choice{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .whatsapp-fab{bottom:24px;right:24px}
  .app-modal{width:calc(100% - 48px);max-width:700px}
  .modal-card{padding:24px}
}
@media(min-width:1280px){
  .home-actions{grid-template-columns:repeat(4,minmax(0,1fr))}
  #page-home.active{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start}
  #page-home>.home-actions,#page-home>.notice-card,#page-home>.discover-section{grid-column:1/-1}
  #page-home>.promo-card{grid-column:1;grid-row:span 2;margin:0}
  #page-home>.share-app,#page-home>.social-links{grid-column:2;margin:0}
  #page-home .social-links{grid-template-columns:1fr}
  #page-home>.promo-card.is-hidden ~ .share-app,#page-home>.promo-card.is-hidden ~ .social-links{grid-column:1/-1}
}

/* V22.3 : état de la recherche du nom joueur */
.player-lookup-status{margin:0;font-size:12px;line-height:1.4;color:#e8c96f;overflow-wrap:anywhere}
.player-lookup-status[data-mode=verified]{color:#8ed9a0}
.player-lookup-status[data-mode=error]{color:#ffaaaa}
.compact-transaction-form>.player-lookup-status,.compact-transaction-form>.player-retry,.compact-form>.player-lookup-status,.compact-form>.player-retry{grid-column:1/-1}
