/* Gold Apple customer fix, 2026-05. * * Drop-in replacement for /_beta_preview_assets/_Js/customer-fix-202605.js. * Scope is intentionally narrow: all changes are CSS/JS only and idempotent. */ (function () { 'use strict'; var CSS = [ ':root{--cf-paper:#f5efe0;--cf-card:#fffaf0;--cf-soft:#f7f1e3;--cf-line:#e8dcb8;--cf-ink:#1a1208;--cf-sub:#6a4f10;--cf-gold:#c7a24a;--cf-gold-deep:#8c6b1f;--cf-gold-bright:#e6c06a;}', '@media(max-width:1040px){html,body{overflow-x:hidden!important;}body .ga-drawer:not(.is-open){display:none!important;visibility:hidden!important;pointer-events:none!important;}}', '@media(max-width:1040px){body .ga-drawer.is-open .ga-drawer__cta,body.skin-v2 .ga-drawer.is-open .ga-drawer__cta{padding:14px 22px 18px!important;gap:8px!important;box-sizing:border-box!important;}body .ga-drawer.is-open .ga-drawer__cta a,body.skin-v2 .ga-drawer.is-open .ga-drawer__cta a{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:42px!important;min-height:42px!important;max-height:42px!important;padding:0 18px!important;margin:0!important;box-sizing:border-box!important;border-radius:999px!important;font-size:12px!important;line-height:1!important;letter-spacing:.12em!important;text-transform:uppercase!important;white-space:nowrap!important;}body .ga-drawer.is-open .ga-drawer__cta .ga-drawer__logout,body.skin-v2 .ga-drawer.is-open .ga-drawer__cta .ga-drawer__logout{border-radius:999px!important;}}', '@media(max-width:820px){body #footer-wrap,body .ga-bottomnav{display:none!important;}body.ga-has-bottomnav{padding-bottom:0!important;}}', '@media(max-width:767px){body.renewal #renewal-hero{min-height:0!important;height:auto!important;padding:22px 20px 24px!important;}body.renewal #renewal-hero .hero-frame{min-height:0!important;height:auto!important;padding:18px 16px!important;border-radius:28px!important;}body.renewal #renewal-hero .hero-main{min-height:0!important;height:auto!important;}body.renewal #renewal-hero .hero-copy{margin:0 auto!important;width:100%!important;max-width:340px!important;text-align:left!important;}body.renewal #renewal-hero h1{font-size:clamp(27px,8.5vw,33px)!important;line-height:1.08!important;text-align:left!important;margin:0 0 14px!important;}body.renewal #renewal-hero p{font-size:14px!important;line-height:1.5!important;text-align:left!important;margin:0!important;}body.renewal #renewal-hero .cf-index-hero-actions{justify-content:flex-start!important;margin-top:16px!important;}body.renewal #renewal-hero .cf-index-buy-primary,body.renewal #renewal-hero .cf-join-secondary{min-height:42px!important;}body.renewal #renewal-hero .hero-footer{margin-top:14px!important;}body.renewal #renewal-hero .hero-ticker{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;height:auto!important;min-height:0!important;padding:10px!important;border-radius:16px!important;align-items:start!important;}body.renewal #renewal-hero .hero-ticker__item{min-width:0!important;height:auto!important;display:block!important;}body.renewal #renewal-hero .hero-ticker__item:first-child{grid-column:1/-1!important;}body.renewal #renewal-hero .hero-ticker__item strong{display:block!important;font-size:13px!important;line-height:1.15!important;letter-spacing:0!important;white-space:nowrap!important;}body.renewal #renewal-hero .hero-ticker__item span{display:block!important;font-size:10px!important;line-height:1.1!important;letter-spacing:.02em!important;white-space:nowrap!important;}}', '@media(min-width:768px) and (max-width:1040px){body.renewal #renewal-hero{min-height:0!important;height:auto!important;padding-bottom:34px!important;}body.renewal #renewal-hero .hero-copy{margin-bottom:24px!important;}body.renewal #renewal-hero .hero-visual{margin-top:18px!important;}}', '@media(min-width:1024px) and (max-height:760px){body.renewal #renewal-hero{min-height:0!important;height:auto!important;padding-top:32px!important;padding-bottom:28px!important;}body.renewal #renewal-hero .hero-frame{min-height:0!important;height:auto!important;padding-top:32px!important;padding-bottom:32px!important;}body.renewal #renewal-hero h1{font-size:56px!important;line-height:1.04!important;}body.renewal #renewal-hero p{font-size:14px!important;line-height:1.45!important;margin-top:18px!important;}body.renewal #renewal-hero .cf-index-hero-actions{margin-top:16px!important;}body.renewal #renewal-hero .hero-visual{transform:scale(.9)!important;transform-origin:center!important;}}', 'body.renewal .cf-index-hero-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:22px;}', 'body.renewal .cf-index-hero-actions .hero-cta{margin:0!important;}', 'body.renewal .cf-index-buy-primary{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 26px;border-radius:999px;background:var(--cf-gold-bright)!important;color:var(--cf-ink)!important;border:1px solid var(--cf-gold-bright)!important;font-family:Manrope,system-ui,sans-serif;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;text-decoration:none!important;box-shadow:0 12px 28px rgba(26,18,8,.18);}', 'body.renewal .cf-index-buy-primary:hover,body.renewal .cf-index-buy-primary:focus{background:var(--cf-ink)!important;color:var(--cf-paper)!important;border-color:var(--cf-ink)!important;}', 'body.renewal .cf-join-secondary{display:inline-flex!important;align-items:center;justify-content:center;min-height:46px;padding:0 22px!important;border-radius:999px!important;background:transparent!important;color:#f6efd9!important;border:1px solid rgba(246,239,217,.55)!important;box-shadow:none!important;}', 'body.renewal .cf-buy-cta{width:100%;box-sizing:border-box;padding:14px 16px;background:linear-gradient(135deg,#fff7e1 0%,#f5e7b8 100%);border-top:1px solid var(--cf-line);border-bottom:1px solid var(--cf-line);text-align:center;}', 'body.renewal .cf-buy-cta__inner{max-width:760px;margin:0 auto;display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;}', 'body.renewal .cf-buy-cta__btn{display:inline-flex;align-items:center;justify-content:center;padding:12px 28px;background:var(--cf-ink);color:#f5e7b8!important;font-size:14px;font-weight:800;letter-spacing:.06em;text-decoration:none!important;border-radius:999px;}', 'body.renewal .cf-buy-cta__sub{margin:0;font-size:12px;color:var(--cf-sub);letter-spacing:.04em;}', '@media(max-width:767px){body.renewal .cf-buy-cta{display:none!important;}body.renewal .cf-index-hero-actions{margin-top:16px;gap:8px;}body.renewal .cf-index-buy-primary,body.renewal .cf-join-secondary{min-height:42px;padding:0 16px!important;font-size:12px!important;letter-spacing:.04em!important;}}', 'body.renewal .ga-v2 .s-assets{padding:24px 0 28px!important;background:var(--cf-paper)!important;}', 'body.renewal .ga-v2 .s-assets .container{padding:0 clamp(16px,4vw,56px)!important;}', 'body.renewal .ga-v2 .s-assets .bg-mark,body.renewal .ga-v2 .s-assets .assets-head{display:none!important;}', 'body.renewal .ga-v2 .s-assets .section-label{margin:0 0 12px!important;gap:10px!important;}', 'body.renewal .ga-v2 .s-assets .section-label__ln{width:24px!important;}', 'body.renewal .ga-v2 .assets-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:10px!important;border:0!important;}', 'body.renewal .ga-v2 .assets-grid>.assets-cell{grid-column:auto!important;grid-row:auto!important;height:96px!important;min-height:96px!important;max-height:96px!important;padding:10px 12px!important;border:1px solid var(--cf-line)!important;border-radius:10px!important;background:var(--cf-soft)!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;gap:5px!important;overflow:hidden!important;}', 'body.renewal .ga-v2 .assets-grid>.assets-cell:nth-child(5){grid-column:auto!important;}', 'body.renewal .ga-v2 .assets-cell .k{font-size:10px!important;line-height:1.15!important;letter-spacing:.04em!important;color:var(--cf-sub)!important;white-space:normal!important;}', 'body.renewal .ga-v2 .assets-cell .v-line{display:flex!important;align-items:baseline!important;justify-content:center!important;gap:4px!important;flex-wrap:nowrap!important;margin:0!important;max-width:100%!important;}', 'body.renewal .ga-v2 .assets-cell .v-line .big-num,body.renewal .ga-v2 .assets-cell .v-line .big-num[style]{font-size:clamp(14px,1.8vw,18px)!important;line-height:1!important;letter-spacing:-.02em!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:clip!important;max-width:100%!important;}', 'body.renewal .ga-v2 .assets-cell .v-line .unit{font-size:9px!important;margin-left:3px!important;letter-spacing:.06em!important;flex:0 0 auto!important;color:var(--cf-gold-deep)!important;}', 'body.renewal .ga-v2 .assets-cell .foot{display:none!important;}', '@media(max-width:767px){body.renewal .ga-v2 .s-assets{padding:18px 0 20px!important;}body.renewal .ga-v2 .s-assets .container{padding:0 12px!important;}body.renewal .ga-v2 .s-assets .section-label{margin-bottom:8px!important;}body.renewal .ga-v2 .assets-grid{grid-template-columns:1fr 1fr!important;grid-auto-rows:64px!important;gap:6px!important;}body.renewal .ga-v2 .assets-grid>.assets-cell{height:64px!important;min-height:64px!important;max-height:64px!important;padding:6px 8px!important;border-radius:8px!important;}body.renewal .ga-v2 .assets-cell .k{font-size:8.5px!important;}body.renewal .ga-v2 .assets-cell .v-line .big-num,body.renewal .ga-v2 .assets-cell .v-line .big-num[style]{font-size:12px!important;}body.renewal .ga-v2 .assets-cell .v-line .unit{font-size:8px!important;margin-left:2px!important;}}', 'body.skin-v2 #doc .mcont01{margin:0 auto 10px!important;padding:8px 12px!important;max-width:1200px!important;width:min(100%,1200px)!important;box-sizing:border-box!important;}', 'body.skin-v2 #doc .mcont01>.div-cont{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-template-rows:96px!important;grid-auto-rows:96px!important;gap:10px!important;max-width:1200px!important;margin:0 auto!important;padding:0!important;width:100%!important;box-sizing:border-box!important;}', 'body.skin-v2 #doc .mcont01>.div-cont>[class^="assets0"]{grid-column:auto!important;grid-row:auto!important;width:auto!important;height:96px!important;min-height:96px!important;max-height:96px!important;margin:0!important;padding:10px 12px!important;float:none!important;border:1px solid var(--cf-line)!important;border-radius:10px!important;background:var(--cf-soft)!important;box-shadow:none!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;gap:4px!important;overflow:hidden!important;}', 'body.skin-v2 #doc .mcont01>.div-cont>.assets05{grid-column:auto!important;grid-row:auto!important;}', 'body.skin-v2 #doc .mcont01>.div-cont>[class^="assets0"]::before{display:none!important;content:none!important;}', 'body.skin-v2 #doc .mcont01>.div-cont>[class^="assets0"]>p{margin:0!important;padding:0!important;font-size:10px!important;line-height:1.15!important;letter-spacing:.04em!important;text-transform:none!important;color:var(--cf-sub)!important;font-weight:700!important;white-space:normal!important;text-align:center!important;}', 'body.skin-v2 #doc .mcont01>.div-cont>[class^="assets0"] .assetcont{display:flex!important;align-items:baseline!important;justify-content:center!important;gap:4px!important;flex-wrap:nowrap!important;width:100%!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;min-width:0!important;}', 'body.skin-v2 #doc .mcont01>.div-cont>[class^="assets0"] .assetcont img{display:none!important;}', 'body.skin-v2 #doc .mcont01>.div-cont>[class^="assets0"] .assets-num,body.skin-v2 #doc .mcont01>.div-cont>[class^="assets0"] .assets-num-perf{font-size:clamp(14px,1.8vw,18px)!important;line-height:1!important;font-weight:800!important;letter-spacing:-.02em!important;color:var(--cf-ink)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:clip!important;max-width:100%!important;}', 'body.skin-v2 #doc .mcont01>.div-cont>[class^="assets0"] .assetcont>p{margin:0!important;padding:0!important;font-size:9px!important;line-height:1!important;letter-spacing:.06em!important;text-transform:uppercase!important;color:var(--cf-gold-deep)!important;white-space:nowrap!important;}', '@media(max-width:767px){body.skin-v2 #doc .mcont01{padding:8px 12px!important;margin-bottom:8px!important;}body.skin-v2 #doc .mcont01>.div-cont{grid-template-columns:1fr 1fr!important;grid-template-rows:none!important;grid-auto-rows:64px!important;gap:6px!important;}body.skin-v2 #doc .mcont01>.div-cont>[class^="assets0"]{height:64px!important;min-height:64px!important;max-height:64px!important;padding:6px 8px!important;border-radius:8px!important;}body.skin-v2 #doc .mcont01>.div-cont>.assets05{grid-column:auto!important;}body.skin-v2 #doc .mcont01>.div-cont>[class^="assets0"]>p{font-size:8.5px!important;}body.skin-v2 #doc .mcont01>.div-cont>[class^="assets0"] .assets-num,body.skin-v2 #doc .mcont01>.div-cont>[class^="assets0"] .assets-num-perf{font-size:12px!important;}body.skin-v2 #doc .mcont01>.div-cont>[class^="assets0"] .assetcont>p{font-size:8px!important;}}', '@media(min-width:768px){body.skin-v2 #doc .mcont01{height:auto!important;min-height:0!important;padding-bottom:8px!important;margin-bottom:4px!important;}body.skin-v2 #doc .mcont01>.div-cont{height:96px!important;min-height:96px!important;max-height:96px!important;grid-template-rows:96px!important;grid-auto-rows:96px!important;margin-bottom:8px!important;overflow:visible!important;}}', 'html body.skin-v2:is(.page-buy,.page-transfer,.page-reward,.page-member,.page-withdrawal,.page-withdrawal-list,.page-asset-list) #doc,html body.skin-v2:is(.page-buy,.page-transfer,.page-reward,.page-member,.page-withdrawal,.page-withdrawal-list,.page-asset-list) #container-wrap,html body.skin-v2:is(.page-buy,.page-transfer,.page-reward,.page-member,.page-withdrawal,.page-withdrawal-list,.page-asset-list) #contents{height:auto!important;min-height:0!important;overflow:visible!important;}', 'html body.skin-v2:is(.page-buy,.page-transfer,.page-reward,.page-member,.page-withdrawal,.page-withdrawal-list,.page-asset-list) #contents{padding-bottom:24px!important;}', 'html body.skin-v2:is(.page-buy,.page-transfer,.page-reward,.page-member,.page-withdrawal,.page-withdrawal-list,.page-asset-list) #contents>.space20{height:8px!important;min-height:8px!important;}', 'html body.skin-v2:is(.page-buy,.page-transfer,.page-reward,.page-member,.page-withdrawal,.page-withdrawal-list,.page-asset-list) #doc .mcont01>.div-cont{margin-bottom:0!important;}', '@media(max-width:640px){body.skin-v2.page-asset-list #doc .sub-title-02 #ga-filter-pill{transform:translateY(4px)!important;}}', 'body.skin-v2.page-buy #contents{display:flex!important;flex-direction:column!important;}', 'body.skin-v2.page-buy #contents>.msec-game{order:1!important;}', 'body.skin-v2.page-buy #contents>.ga-v2{order:2!important;}', 'body.skin-v2.page-buy #contents>.mcont01{order:3!important;}', 'body.skin-v2.page-buy #contents>.space20{order:4!important;}', 'html body.skin-v2:is(.page-buy,.page-transfer,.page-reward,.page-member,.page-withdrawal,.page-withdrawal-list,.page-asset-list) #doc .mcont01>.div-cont>[class^="assets0"] .assetcont{padding-left:0!important;padding-right:0!important;gap:3px!important;overflow:hidden!important;}', 'html body.skin-v2:is(.page-buy,.page-transfer,.page-reward,.page-member,.page-withdrawal,.page-withdrawal-list,.page-asset-list) #doc .mcont01>.div-cont>[class^="assets0"] .assetcont .assets-num,html body.skin-v2:is(.page-buy,.page-transfer,.page-reward,.page-member,.page-withdrawal,.page-withdrawal-list,.page-asset-list) #doc .mcont01>.div-cont>[class^="assets0"] .assetcont .assets-num-perf{font-size:clamp(12px,2vw,20px)!important;line-height:1.08!important;width:auto!important;max-width:100%!important;min-width:0!important;display:block!important;overflow:visible!important;text-align:center!important;}', 'html body.skin-v2:is(.page-buy,.page-transfer,.page-reward,.page-member,.page-withdrawal,.page-withdrawal-list,.page-asset-list) #doc .mcont01>.div-cont>.assets01 .assetcont .assets-num{font-size:clamp(12px,1.85vw,19px)!important;letter-spacing:-.035em!important;}', '@media(max-width:820px){html body.skin-v2:is(.page-buy,.page-transfer,.page-reward,.page-member,.page-withdrawal,.page-withdrawal-list,.page-asset-list) #doc .mcont01>.div-cont>[class^="assets0"] .assetcont .assets-num,html body.skin-v2:is(.page-buy,.page-transfer,.page-reward,.page-member,.page-withdrawal,.page-withdrawal-list,.page-asset-list) #doc .mcont01>.div-cont>[class^="assets0"] .assetcont .assets-num-perf{font-size:13px!important;}html body.skin-v2:is(.page-buy,.page-transfer,.page-reward,.page-member,.page-withdrawal,.page-withdrawal-list,.page-asset-list) #doc .mcont01>.div-cont>.assets01 .assetcont .assets-num{font-size:12px!important;letter-spacing:-.04em!important;}}', '@media(max-width:767px){body.skin-v2.page-buy .ga-v2,body.skin-v2.page-buy #doc .mcont01,body.skin-v2.page-buy #contents>.space20{display:none!important;}body.skin-v2.page-buy #doc,body.skin-v2.page-buy #container-wrap,body.skin-v2.page-buy #contents{margin-top:0!important;padding-top:0!important;}body.skin-v2.page-buy #doc .msec-game{margin:0!important;padding:6px 10px 10px!important;border-radius:12px!important;}body.skin-v2.page-buy #doc .msec-game .sub-title-01{display:none!important;}body.skin-v2.page-buy #doc .Buy-list{width:100%!important;margin:0!important;padding:0!important;}body.skin-v2.page-buy #doc .Buy-list>ul{margin:0!important;padding:0!important;}body.skin-v2.page-buy #doc .Buy-list li.bd-A:not(.table-A){width:100%!important;margin:0!important;padding:0!important;}body.skin-v2.page-buy #doc #section-farm{width:100%!important;height:auto!important;min-height:0!important;margin:0!important;padding:8px!important;gap:6px!important;box-sizing:border-box!important;}body.skin-v2.page-buy #doc #section-farm>span{font-size:10px!important;line-height:1.2!important;margin:3px 0 1px!important;letter-spacing:.02em!important;}body.skin-v2.page-buy #doc #section-farm input,body.skin-v2.page-buy #doc #section-farm select{height:36px!important;min-height:36px!important;padding:8px 10px!important;font-size:13px!important;border-radius:8px!important;}body.skin-v2.page-buy #doc #section-farm .clear-row{display:none!important;}body.skin-v2.page-buy #doc .qty-region{height:auto!important;margin:2px 0 4px!important;}body.skin-v2.page-buy #doc .qty-wrapper{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:4px!important;height:auto!important;min-height:0!important;margin:4px 0 0!important;padding:0!important;background:transparent!important;border:0!important;}body.skin-v2.page-buy #doc .qty-wrapper .btn-qty{height:28px!important;min-height:28px!important;min-width:0!important;padding:0!important;border-radius:7px!important;font-size:10px!important;letter-spacing:0!important;}body.skin-v2.page-buy #doc #btn-farm{height:40px!important;min-height:40px!important;margin-top:8px!important;}body.skin-v2.page-buy #contents .Buy-list li.table-A{margin-top:12px!important;}}', '@media(max-width:767px){body.skin-v2.page-buy #contents .Buy-list li.table-A{width:100%!important;overflow:hidden!important;border-radius:12px!important;}body.skin-v2.page-buy #contents .Buy-list li.table-A table{width:100%!important;table-layout:fixed!important;}body.skin-v2.page-buy #contents .Buy-list li.table-A th,body.skin-v2.page-buy #contents .Buy-list li.table-A td{white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;overflow:hidden!important;text-overflow:clip!important;padding-left:1px!important;padding-right:1px!important;font-size:7px!important;line-height:1.15!important;letter-spacing:0!important;vertical-align:middle!important;}body.skin-v2.page-buy #contents .Buy-list li.table-A th{height:24px!important;font-weight:800!important;}body.skin-v2.page-buy #contents .Buy-list li.table-A td{height:26px!important;}}', '@media(max-width:767px){body.skin-v2.page-withdrawal #withdrawal-password{padding-right:18px!important;font-size:14px!important;letter-spacing:0!important;text-overflow:clip!important;}body.skin-v2.page-withdrawal #withdrawal-password::placeholder{font-size:14px!important;letter-spacing:0!important;opacity:1!important;}}', 'body.skin-v2.page-join .Members ul>li.cf-validated-field{position:relative!important;}', 'body.skin-v2.page-join .Members ul>li.cf-validated-field input{padding-right:104px!important;}', 'body.skin-v2.page-join .cf-validate-btn{position:absolute!important;right:5px!important;top:calc(50% - 2px)!important;transform:translateY(-50%)!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;height:32px!important;min-height:32px!important;min-width:88px!important;padding:0 9px!important;margin:0!important;border:0!important;border-radius:8px!important;background:var(--cf-ink)!important;color:#f5e7b8!important;font-family:Manrope,system-ui,sans-serif!important;font-size:10px!important;font-weight:800!important;letter-spacing:.04em!important;text-transform:uppercase!important;white-space:nowrap!important;cursor:pointer!important;box-shadow:none!important;z-index:2!important;}', 'body.skin-v2.page-join .cf-validate-btn.is-ok{background:#23623d!important;color:#fff!important;}', 'body.skin-v2.page-join .cf-validate-btn.is-bad{background:#8f2d24!important;color:#fff!important;}', 'body.skin-v2.page-join .Members ul>li.cf-validated-field input{padding-right:98px!important;}', 'body.skin-v2.page-join .Members ul>li.cf-validated-field .cf-validate-btn{top:6px!important;right:8px!important;transform:none!important;height:28px!important;min-height:28px!important;min-width:78px!important;max-width:calc(100% - 16px)!important;padding:0 10px!important;border-radius:7px!important;box-sizing:border-box!important;line-height:1!important;}', '@media(max-width:480px){body.skin-v2.page-join .Members ul>li.cf-validated-field input{padding-right:94px!important;}body.skin-v2.page-join .cf-validate-btn{min-width:78px!important;height:30px!important;min-height:30px!important;font-size:9px!important;padding:0 7px!important;}}', '@media(max-width:767px){body.skin-v2.page-join .Members ul{display:grid!important;grid-template-columns:1fr!important;row-gap:6px!important;}body.skin-v2.page-join .Members ul>li{width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;float:none!important;display:block!important;box-sizing:border-box!important;text-align:left!important;}body.skin-v2.page-join .Members ul>li:nth-child(odd){font-size:13px!important;line-height:1.2!important;font-weight:800!important;letter-spacing:.02em!important;white-space:nowrap!important;color:var(--cf-ink)!important;}body.skin-v2.page-join .Members ul>li:nth-child(even){margin-bottom:10px!important;}body.skin-v2.page-join .Members ul>li input,body.skin-v2.page-join .Members ul>li select{width:100%!important;max-width:100%!important;height:44px!important;box-sizing:border-box!important;}body.skin-v2.page-join .Members ul>li.cf-validated-field input{padding-right:92px!important;}body.skin-v2.page-join .Members ul>li.cf-validated-field .cf-validate-btn{right:7px!important;top:7px!important;transform:none!important;min-width:74px!important;height:30px!important;min-height:30px!important;padding:0 7px!important;}}', '@media(max-width:767px){body.skin-v2.page-join #user-pw::placeholder,body.skin-v2.page-join #user-re-pw::placeholder{font-size:10px!important;letter-spacing:0!important;opacity:1!important;white-space:nowrap!important;}}' ].join('\n'); function ready(fn) { if (document.readyState !== 'loading') fn(); else document.addEventListener('DOMContentLoaded', fn); } function injectStyle() { if (document.getElementById('customer-fix-202605-style')) return; var style = document.createElement('style'); style.id = 'customer-fix-202605-style'; style.textContent = CSS; document.head.appendChild(style); } injectStyle(); function notify(message) { if (window.Noty) { new window.Noty({ text: message, layout: 'topCenter', timeout: 2200, type: 'success', theme: 'relax' }).show(); return; } window.alert(message); } function setButtonState(button, ok, text) { if (!button) return; button.classList.remove('is-ok', 'is-bad'); button.classList.add(ok ? 'is-ok' : 'is-bad'); if (text) button.textContent = text; } function getRegExp(name, fallback) { return window[name] instanceof RegExp ? window[name] : fallback; } function injectValidationButtons() { if (!/\/web\/join(?:\/)?$/.test(location.pathname)) return; var targets = [ { inputId: 'user-id', btnId: 'dup-check', label: 'Check ID', shortLabel: 'Check' }, { inputId: 'user-email', btnId: 'email-check', label: 'Check Email', shortLabel: 'Email' }, { inputId: 'user-pw', btnId: 'pw-format-check', label: 'Check PW', shortLabel: 'PW' }, { inputId: 'user-re-pw', btnId: 'pw-match-check', label: 'Match PW', shortLabel: 'Match' } ]; targets.forEach(function (target) { var input = document.getElementById(target.inputId); if (!input) return; var field = input.closest('li'); if (!field) return; field.classList.add('cf-validated-field'); var button = document.getElementById(target.btnId); if (!button) { button = document.createElement('button'); button.type = 'button'; button.id = target.btnId; button.className = 'cf-validate-btn'; button.textContent = target.shortLabel || target.label; button.setAttribute('aria-label', target.label); field.appendChild(button); } else { button.type = 'button'; button.classList.add('cf-validate-btn'); button.textContent = target.shortLabel || target.label; button.setAttribute('aria-label', target.label); } }); bindJoinValidation(); } function bindJoinValidation() { var idButton = document.getElementById('dup-check'); var emailButton = document.getElementById('email-check'); var pwButton = document.getElementById('pw-format-check'); var matchButton = document.getElementById('pw-match-check'); var idInput = document.getElementById('user-id'); var emailInput = document.getElementById('user-email'); var pwInput = document.getElementById('user-pw'); var rePwInput = document.getElementById('user-re-pw'); var regID = getRegExp('regID', /^[A-Za-z0-9+]{5,15}$/); var regEmail = getRegExp('regEmail', /^[0-9a-zA-Z]([-_.]?[0-9a-zA-Z])*@[0-9a-zA-Z]([-_.]?[0-9a-zA-Z])*\.[a-zA-Z]{2,}$/i); var regPassword = getRegExp('regPassword', /^.*(?=^.{4,20}$)(?=.*\d)(?=.*[a-zA-Z])(?=.*[!@#$%^&+=]).*$/); if (idButton && !idButton.dataset.cfBound) { idButton.dataset.cfBound = '1'; idButton.addEventListener('click', function (event) { event.preventDefault(); var userId = (idInput && idInput.value || '').trim().toUpperCase(); var referrer = (document.getElementById('user-referrer') || {}).value || ''; if (idInput) idInput.value = userId; window.bIdDupCheck = false; if (!userId) { setButtonState(idButton, false, 'No ID'); notify('Please enter an ID.'); if (idInput) idInput.focus(); return; } if (!regID.test(userId)) { setButtonState(idButton, false, 'Invalid'); notify('ID must be 5-15 alphanumeric characters.'); if (idInput) idInput.focus(); return; } if (referrer && referrer === userId) { setButtonState(idButton, false, 'Invalid'); notify('ID cannot be the same as the referrer ID.'); if (idInput) idInput.focus(); return; } idButton.disabled = true; idButton.textContent = 'Checking'; fetch('/api/member/' + encodeURIComponent(userId), { credentials: 'same-origin' }) .then(function (response) { return response.ok ? response.json() : Promise.reject(new Error('check failed')); }) .then(function (data) { var exists = !!(data && data.member && data.member.length); window.bIdDupCheck = !exists; setButtonState(idButton, !exists, exists ? 'Exists' : 'OK'); notify(exists ? 'This ID already exists.' : 'You can use this ID.'); }) .catch(function () { window.bIdDupCheck = false; setButtonState(idButton, false, 'Retry'); notify('Unable to check the ID now. Please try again.'); }) .finally(function () { idButton.disabled = false; }); }); } if (emailButton && !emailButton.dataset.cfBound) { emailButton.dataset.cfBound = '1'; emailButton.addEventListener('click', function (event) { event.preventDefault(); var email = (emailInput && emailInput.value || '').trim(); if (emailInput) emailInput.value = email; var ok = !!email && regEmail.test(email); window.bEmailConfirmation = ok; window.bEmailVerification = ok; setButtonState(emailButton, ok, ok ? 'OK' : 'Invalid'); notify(ok ? 'Email format is valid.' : 'Please enter a valid email address.'); if (!ok && emailInput) emailInput.focus(); }); } if (pwButton && !pwButton.dataset.cfBound) { pwButton.dataset.cfBound = '1'; pwButton.addEventListener('click', function (event) { event.preventDefault(); var password = pwInput && pwInput.value || ''; var ok = regPassword.test(password); setButtonState(pwButton, ok, ok ? 'OK' : 'Weak'); notify(ok ? 'Password format is valid.' : 'Use 4-20 characters with letters, numbers, and a special character.'); if (!ok && pwInput) pwInput.focus(); }); } if (matchButton && !matchButton.dataset.cfBound) { matchButton.dataset.cfBound = '1'; matchButton.addEventListener('click', function (event) { event.preventDefault(); var ok = !!(pwInput && rePwInput) && pwInput.value.length > 0 && pwInput.value === rePwInput.value; setButtonState(matchButton, ok, ok ? 'OK' : 'Mismatch'); notify(ok ? 'Passwords match.' : 'Passwords do not match.'); if (!ok && rePwInput) rePwInput.focus(); }); } ['user-id', 'user-email', 'user-pw', 'user-re-pw'].forEach(function (inputId) { var input = document.getElementById(inputId); if (!input || input.dataset.cfResetBound) return; input.dataset.cfResetBound = '1'; input.addEventListener('input', function () { var map = { 'user-id': 'dup-check', 'user-email': 'email-check', 'user-pw': 'pw-format-check', 'user-re-pw': 'pw-match-check' }; var button = document.getElementById(map[inputId]); if (!button) return; button.classList.remove('is-ok', 'is-bad'); button.textContent = button.getAttribute('aria-label') === 'Check ID' ? 'Check' : button.getAttribute('aria-label') === 'Check Email' ? 'Email' : button.getAttribute('aria-label') === 'Check PW' ? 'PW' : 'Match'; }); }); } function compactJoinPlaceholders() { if (!/\/web\/join(?:\/)?$/.test(location.pathname)) return; if (!window.matchMedia || !window.matchMedia('(max-width: 767px)').matches) return; var placeholders = [ ['user-pw', '4-20 chars + symbol'], ['user-re-pw', 'Repeat password'] ]; placeholders.forEach(function (item) { var input = document.getElementById(item[0]); if (input) input.setAttribute('placeholder', item[1]); }); } function injectIndexBuyCTA() { if (location.pathname !== '/' && location.pathname !== '/index.html') return; var heroCopy = document.querySelector('#renewal-hero .hero-copy'); if (heroCopy && !heroCopy.querySelector('.cf-index-buy-primary')) { var originalCta = heroCopy.querySelector('.hero-cta--primary'); var actionRow = document.createElement('div'); actionRow.className = 'cf-index-hero-actions'; var buy = document.createElement('a'); buy.href = '/web/buy'; buy.className = 'cf-index-buy-primary'; buy.textContent = 'Buy Acorns'; actionRow.appendChild(buy); if (originalCta) { originalCta.classList.add('cf-join-secondary'); originalCta.textContent = 'Sign Up'; actionRow.appendChild(originalCta); heroCopy.appendChild(actionRow); } else { heroCopy.appendChild(actionRow); } } if (document.querySelector('.cf-buy-cta')) return; var hero = document.getElementById('renewal-hero'); if (!hero || !hero.parentNode) return; var section = document.createElement('section'); section.className = 'cf-buy-cta'; section.innerHTML = '
' + 'Buy Acorns' + '

USDT to Acorns - TRC-20 - 0.5% per trade

' + '
'; hero.parentNode.insertBefore(section, hero.nextSibling); } function compactBuyHistoryTable() { if (!/\/web\/buy(?:\/)?$/.test(location.pathname)) return; if (!window.matchMedia || !window.matchMedia('(max-width: 767px)').matches) return; var table = document.querySelector('#contents .Buy-list li.table-A table'); if (!table || table.dataset.cfCompact === '1') return; table.dataset.cfCompact = '1'; var headings = ['No', 'Buy', 'Qty', 'Sale', 'Rev', 'Total', 'Prog']; var headerCells = table.querySelectorAll('tr:first-child th'); headerCells.forEach(function (cell, index) { var original = (cell.textContent || '').trim().replace(/\s+/g, ' '); if (original) cell.setAttribute('title', original); cell.textContent = headings[index] || original; }); function shortDate(value) { var text = (value || '').trim(); var match = text.match(/\d{4}-(\d{2})-(\d{2})/); return match ? match[1] + '-' + match[2] : (text || '-'); } function shortAmount(value) { return (value || '').trim().replace(/\s*USDT\s*$/i, '') || '-'; } table.querySelectorAll('tr').forEach(function (row, rowIndex) { if (rowIndex === 0) return; Array.prototype.forEach.call(row.children, function (cell, index) { var original = (cell.textContent || '').trim().replace(/\s+/g, ' '); if (original) cell.setAttribute('title', original); if (index === 1 || index === 3) { cell.textContent = shortDate(original); } else if (index === 4 || index === 5) { cell.textContent = shortAmount(original); } else if (index === 2) { cell.textContent = original.replace(/\s+/g, ' '); } else if (!original) { cell.textContent = '-'; } }); }); } function normalizeCurrentNav() { var currentPath = (location.pathname || '/').replace(/\/+$/, '') || '/'; var scopes = document.querySelectorAll('.ga-drawer__menu,.ga-bottomnav,#topmenu,.hero-nav__links'); function normalizedPath(rawHref) { if (!rawHref || rawHref.charAt(0) === '#' || /^javascript:/i.test(rawHref)) return ''; try { return (new URL(rawHref, location.origin).pathname || '/').replace(/\/+$/, '') || '/'; } catch (error) { return ''; } } Array.prototype.forEach.call(scopes, function (scope) { var links = scope.querySelectorAll('a[href]'); var exact = null; Array.prototype.forEach.call(links, function (link) { var hrefPath = normalizedPath(link.getAttribute('href')); link.removeAttribute('aria-current'); if ( hrefPath === currentPath || (currentPath === '/' && hrefPath === '/index.html') || (currentPath === '/index.html' && hrefPath === '/') ) { exact = link; } }); if (exact) exact.setAttribute('aria-current', 'page'); }); } ready(function () { injectStyle(); injectValidationButtons(); compactJoinPlaceholders(); injectIndexBuyCTA(); compactBuyHistoryTable(); normalizeCurrentNav(); window.setTimeout(compactBuyHistoryTable, 600); window.setTimeout(normalizeCurrentNav, 600); window.setTimeout(compactJoinPlaceholders, 600); }); })();