/* Owner-reported clarity repairs. Existing navigation, values and game rules stay page-owned. */
html.sg-ivory-app body :is(.sg-login-input,.sg-register-input) input{color:#142239!important;-webkit-text-fill-color:#142239!important;caret-color:#142239;opacity:1!important}
html.sg-ivory-app body :is(.sg-login-input,.sg-register-input) input:-webkit-autofill{box-shadow:0 0 0 1000px #fffefa inset!important;-webkit-text-fill-color:#142239!important;caret-color:#142239}
html.sg-ivory-app body :is(.sg-login-input,.sg-register-input) input:autofill{box-shadow:0 0 0 1000px #fffefa inset!important;color:#142239!important}
html.sg-ivory-app body :is(.sg-login-whatsapp,.sg-register-whatsapp,.sg-home .sg-whatsapp){background:transparent url('../images/ivory-icons/whatsapp-brand.svg') center/contain no-repeat!important;border:0;box-shadow:none}
html.sg-ivory-app body :is(.sg-login-whatsapp,.sg-register-whatsapp,.sg-home .sg-whatsapp)>i{opacity:0!important}
html.sg-ivory-app body .sg-home :is(.sg-action-gold,.sg-action-blue){background:linear-gradient(175deg,#fff0b5 0%,#ffdd76 30%,#e8b33d 78%,#f4cd67 100%)!important;color:#142239!important;border:1px solid #b88823!important;box-shadow:inset 0 1px 2px #fffbea,inset 0 -2px 2px #b57a1740,0 2px 0 #b1842855,0 3px 6px #74511626!important}
html.sg-ivory-app body.sg-customer-theme .sg-home .sg-timing{font-size:clamp(13px,3.7vw,16px);font-weight:650;line-height:1.35;min-height:44px;max-width:none;flex:1;min-width:0;color:#283c50;padding:4px 1px;gap:6px}
html.sg-ivory-app body.sg-customer-theme .sg-timing>i{width:26px;height:26px;flex:0 0 26px;filter:none!important}
html.sg-ivory-app body .sg-timing>span{overflow-wrap:normal;white-space:normal}
html.sg-ivory-app body #timingModal .modal-dialog{width:calc(100% - 28px);max-width:420px;margin-inline:auto}
html.sg-ivory-app body #timingModal .modal-content{background:#fffdf5;border:1px solid #b88823;border-radius:18px;color:#142239;box-shadow:inset 0 0 0 2px #fff7da,0 8px 24px #3c2a1833;overflow:hidden}
html.sg-ivory-app body #timingModal .modal-header{background:linear-gradient(150deg,#fff5d4,#f1cc73);border-bottom:1px solid #d3b16b;padding:14px 16px}
html.sg-ivory-app body #timingModal .modal-title{font-weight:750;font-size:21px;color:#142239!important}
html.sg-ivory-app body #timingModal .modal-body{padding:22px 14px}
html.sg-ivory-app body #timingModal .modal-body>.d-flex{gap:16px!important}
html.sg-ivory-app body #timingModal .modal-body .text-center{flex:1;min-width:0;padding:12px 5px;border:1px solid #ddc386;border-radius:12px;background:#fff9e9;color:#142239!important;font-size:16px}
html.sg-ivory-app body #timingModal :is(#opening-time,#closing-time){font-size:21px;font-weight:750;margin-top:7px;color:#142239}
html.sg-ivory-app body :is(.sg-select-wallet,.sg-bid-wallet,.sgc-wallet){background:linear-gradient(160deg,#fff1ba,#f1cc6e 60%,#e4b44b)!important;border-color:#a87820!important;color:#142239!important;box-shadow:inset 0 1px 2px #fffbe6,0 2px 4px #70501730!important}
html.sg-ivory-app body :is(.sg-select-wallet,.sg-bid-wallet,.sgc-wallet) :is(span,strong){color:#142239!important;text-shadow:none!important;-webkit-text-fill-color:#142239}
html.sg-ivory-app body .sg-select-wallet>i{background-image:url('../images/ivory-icons/wallet.svg')!important;filter:none!important}
html.sg-ivory-app body :is(.sg-bid-wallet,.sgc-wallet)>img{content:url('../images/ivory-icons/wallet.svg');object-fit:contain;filter:none}
html.sg-ivory-app body .sgc-chart-heading>img{content:url('../images/ivory-icons/chart.svg');object-fit:contain;filter:none}
html.sg-ivory-app body.sg-customer-theme .sg-menu-page .sg-account-card>img[src*='account.png']{content:url('../images/ivory-icons/account.svg');filter:none}
html.sg-ivory-app body.sg-customer-theme .sg-menu-page .sg-setting-row>i:first-child.fa-sliders-h{background:transparent url('../images/ivory-icons/simple.svg') center/contain no-repeat!important}
html.sg-ivory-app body.sg-customer-theme .sg-menu-page .sg-setting-row>i:first-child.fa-microphone{background:transparent url('../images/ivory-icons/microphone.svg') center/contain no-repeat!important}
html.sg-ivory-app body.sg-customer-theme .sg-menu-page .sg-setting-row>i:first-child.fa-question-circle{background:transparent url('../images/ivory-icons/help.svg') center/contain no-repeat!important}
html.sg-ivory-app body.sg-customer-theme .sg-menu-page .sg-setting-row>i:first-child.fa-book-open{background:transparent url('../images/ivory-icons/book.svg') center/contain no-repeat!important}
html.sg-ivory-app body .sg-bid :is(.sg-bid-label,.sg-bid-helper,.sg-bid-selection-session,.sg-bid-totals,.sg-bid-row),html.sg-ivory-app body :is(.sg-bid-review,.sg-bid-edit){color:#142239!important}
html.sg-ivory-app body .sg-bid-input{color:#142239!important;-webkit-text-fill-color:#142239;border-color:#c7a253;background:#fffef9;caret-color:#142239}
html.sg-ivory-app body .sg-bid-input::placeholder{color:#5a6471;opacity:1}
html.sg-ivory-app body .sg-bid-seg input:checked+span{background:linear-gradient(#ffe8a1,#e8bc51);border-color:#a87b22;color:#142239}
html.sg-ivory-app body .sg-bid-number[aria-pressed=true]:after{color:#142239;background:#fff8dc}
/* A growing page avoids the former nested two-row viewport and reveals every pending entry. */
html.sg-ivory-app body .sg-bid-panel:has(.sg-bid-row:nth-child(4)){height:auto;max-height:none}
html.sg-ivory-app body .sg-bid-panel .sg-bid-content{overflow:visible;max-height:none}
html.sg-ivory-app body .sg-bid-panel .sg-bid-selection{min-height:0;margin-top:16rem}
html.sg-ivory-app body .sg-bid-panel .sg-bid-list{height:auto;max-height:none;min-height:112rem;overflow:visible;padding:2rem 0;scroll-snap-type:none}
html.sg-ivory-app body .sg-bid-row{background:#fff9e7;border-color:#d8b65e}
html.sg-ivory-app body .sg-rate-art{width:100%;max-width:100%;overflow:hidden;padding:5rem}
html.sg-ivory-app body .sg-rate-art img{max-width:100%;max-height:100%;object-fit:contain;filter:none}
html.sg-ivory-app body .sg-rate-card h2{color:#142239;line-height:1.25;letter-spacing:0}
html.sg-ivory-app body .sg-rate-box{border-color:#b78525!important;background:linear-gradient(160deg,#ffedb3,#edc665)!important}
html.sg-ivory-app body .sg-rate-line{color:#142239!important;-webkit-text-fill-color:#142239!important;filter:none!important}
html.sg-ivory-app body .sgd-page .sgd-qr-instructions{display:grid!important;grid-template-columns:minmax(128px,40%) minmax(0,1fr);gap:12px;padding:10px;margin-block:9px}
html.sg-ivory-app body .sgd-page .sgd-qr-thumb{width:100%;padding:8px;border:1px solid #c9ae74;border-radius:10px;background:#fff!important;font-size:max(14px,3.7cqw)}
html.sg-ivory-app body .sgd-page .sgd-qr-thumb img{width:100%!important;height:auto;aspect-ratio:1;object-fit:contain;margin:auto;padding:2px;background:#fff}
html.sg-ivory-app body .sgd-qr-thumb span{margin-top:6px;text-decoration:underline;text-underline-offset:3px;color:#142239}
html.sg-ivory-app body .sgd-page .sgd-instructions{grid-column:auto!important;padding:0 0 0 10px!important;border-top:0!important;border-left:1px solid #d8bd84!important;font-size:max(13px,3.5cqw);line-height:1.4}
html.sg-ivory-app body .sgd-page .sgd-instructions p[lang]{font-size:inherit;line-height:1.4}
html.sg-ivory-app body .sgd-page .sgd-no-qr{grid-template-columns:1fr}
html.sg-ivory-app body .sgd-no-qr .sgd-instructions{border:0!important;padding:0!important}
html.sg-ivory-app body .sgd-qr-popup{width:min(94vw,450px);max-width:calc(100% - 20px)}
html.sg-ivory-app body .sgd-qr-popup-body{padding:12px}
html.sg-ivory-app body .sgd-large-qr{width:100%;max-width:360px;height:auto;object-fit:contain;padding:10px;border-radius:8px;aspect-ratio:1}
html.sg-ivory-app body .sgd-popup .sgd-popup-title :is(h2,button){color:#142239}
html.sg-ivory-app body .sgd-popup .sgd-popup-title>img{filter:none}
html.sg-ivory-app body .sgd-upload{background:linear-gradient(#fff1bc,#edc568)!important;color:#142239!important;border-color:#b58b37!important;box-shadow:inset 0 1px 2px #fffbea!important;min-height:42px}
html.sg-ivory-app body .sgd-upload>img{width:30px;height:30px;flex-shrink:0}
html.sg-ivory-app body :is(.sgd-field,.sgwr-field) input{color:#142239;-webkit-text-fill-color:#142239}
html.sg-ivory-app body .sgwr-method-face img{object-fit:contain;filter:none}
html.sg-ivory-app body .sgd-qr-popup .sgd-popup-title{border-color:#d3b16b}
@media(max-width:359px){html.sg-ivory-app body .sg-home .sg-market-actions{gap:8px}html.sg-ivory-app body .sg-home .sg-market-actions .btn-play{min-width:82px}html.sg-ivory-app body .sgd-page .sgd-qr-instructions{grid-template-columns:minmax(122px,43%) minmax(0,1fr);gap:8px;padding:8px}}
html.sg-ivory-app body.sg-customer-theme .sg-menu-page .sg-setting-row>i:first-child.fa-volume-up{background:transparent url('../images/ivory-icons/speaker.svg') center/contain no-repeat!important}
html.sg-ivory-app body #sgc-scroll-hint,html.sg-ivory-app body #sgc-scroll-hint>span{color:#283c50!important;text-shadow:none!important;font-weight:600}

/* Phone review: preserve each symbol and its own palette; only repair reported mismatches. */
html.sg-ivory-app body.sg-customer-theme .sg-home .sg-voice-row>.sg-whatsapp{width:52px;height:52px;flex:0 0 52px;border-radius:13px}
html.sg-ivory-app body.sg-customer-theme .sg-action-blue>i{background-image:url('../images/ivory-icons/withdraw-raised.svg')!important}
html.sg-ivory-app body.sg-customer-theme .sgw-action.sgw-blue>img{content:url('../images/ivory-icons/withdraw-raised.svg')}
html.sg-ivory-app body.sg-customer-theme .sgw-actions .sgw-blue{background:linear-gradient(175deg,#ffe8a0,#edc55d 86%,#dfb44c)!important}
/* Match the actual approved mobile Deposit surface, whose earlier selector is more specific. */
@media(max-width:480px){html.sg-ivory-app body.sg-customer-theme .sg-home .sg-wallet-panel .sg-action-blue:not(.disabled):not(:disabled){background:radial-gradient(ellipse at 20% 0,#fffbd7cc,transparent 58%),linear-gradient(176deg,#ffe785 0%,#ffd34f 38%,#efb12b 77%,#d6921d 100%)!important}}
html.sg-ivory-app body :is(.sg-secondary-contact .fa-whatsapp,.sg-contact-icon-whatsapp,.sgha-account-unavailable .fa-whatsapp){display:inline-block;background:transparent url('../images/ivory-icons/whatsapp-brand.svg') center/contain no-repeat!important;min-width:28px;min-height:28px;vertical-align:middle}
html.sg-ivory-app body :is(.sg-secondary-contact .fa-whatsapp,.sgha-account-unavailable .fa-whatsapp)::before,html.sg-ivory-app body .sg-contact-icon-whatsapp>i{visibility:hidden}
html.sg-ivory-app body.sg-customer-theme .sg-menu-page .sg-setting-row>i:first-child.fa-bell{background:transparent url('../images/ivory-icons/notifications.svg') center/contain no-repeat!important}
html.sg-ivory-app body.sg-customer-theme .sg-select-main .sg-select-wallet,
html.sg-ivory-app body.sg-customer-theme .sg-bid .sg-bid-wallet,
html.sg-ivory-app body.sg-customer-theme .sgc-shell .sgc-wallet{background:linear-gradient(160deg,#fff1ba,#f1cc6e 60%,#e4b44b)!important;border-color:#a87820!important;color:#142239!important;box-shadow:inset 0 1px 2px #fffbe6,0 2px 4px #70501730!important}
/* Keep the original game illustrations; readable labels are text, not small raster cut-outs. */
html.sg-ivory-app body .sg-select-card-copy .sg-locked-title>img{display:none!important}
html.sg-ivory-app body .sg-select-card-copy .sg-title-text{position:static;width:auto;height:auto;margin:0;padding:0;overflow:visible;clip:auto;white-space:normal;display:block}
html.sg-ivory-app body .sg-select-card-copy .sg-locked-title{height:auto;min-height:26px;font-size:clamp(18px,5.4vw,21px);line-height:1.25;overflow:visible}
html.sg-ivory-app body .sg-select-full .sg-select-card-copy .sg-locked-title{font-size:clamp(22px,6.4vw,25px)}
