/* "Sign in with WGC" pop-up (app.js wgcSignInForm), built to Jay's mock: the real WGC coin, gold serif title, gold-edged
   fields with a show-password eye, "Forgot password?", a gold Sign in button, "or continue with" Phone / Google / Apple
   and "New to WGC? Create account". Loaded after motion.css, so these rules replace the older pop-up look there. */
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only){width:min(472px,calc(100vw - 28px))!important;max-width:none!important;max-height:calc(100dvh - 24px)!important;box-sizing:border-box;padding:0!important;overflow:hidden auto!important;border:1.5px solid #d7b45a!important;border-radius:22px!important;background:radial-gradient(90% 46% at 50% 0%,rgba(215,180,90,.2),rgba(215,180,90,0) 70%),linear-gradient(180deg,#134a40 0%,#0f3a33 46%,#0b2c28 100%)!important;color:#eef3ee!important;text-align:center;box-shadow:0 32px 90px rgba(0,0,0,.7),0 0 0 1px rgba(255,236,170,.08) inset,0 0 60px rgba(215,180,90,.16)!important}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only)::before{content:none!important;display:none!important}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only)::backdrop{background:rgba(3,10,12,.62);backdrop-filter:blur(7px) saturate(.9)}
html body dialog.login-dialog.wgc-only>.login-dialog-close{display:none!important}
html body dialog.login-dialog.wgc-only>.login-dialog-note{margin:18px 64px 0!important;padding:8px 12px!important;border:1px solid rgba(215,180,90,.5)!important;border-radius:10px!important;background:rgba(215,180,90,.1)!important;color:#ffe9b0!important;font:600 13.5px/1.35 system-ui,sans-serif!important;text-align:center}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-auth{position:static;padding:26px 34px 22px}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only)[open]{position:fixed}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-auth-close{position:absolute;top:16px;right:16px;display:grid;place-items:center;width:42px!important;height:42px!important;min-height:0!important;margin:0!important;padding:0!important;border:1.5px solid rgba(215,180,90,.75)!important;border-radius:10px!important;background:rgba(6,24,22,.55)!important;color:#f3e6c2!important;box-shadow:none!important;cursor:pointer}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-auth-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-auth-logo{display:block;width:170px;height:auto;margin:0 auto 8px;filter:drop-shadow(0 10px 18px rgba(0,0,0,.5)) drop-shadow(0 0 24px rgba(120,160,255,.35))}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-auth h2{margin:0 0 4px!important;background:linear-gradient(100deg,#d9ae55,#f6dd94 42%,#fff4d2 50%,#f6dd94 58%,#d9ae55);background-size:240% 100%;-webkit-background-clip:text;background-clip:text;color:transparent!important;-webkit-text-fill-color:transparent;font:700 34px/1.12 Georgia,'Noto Serif KR',serif!important;letter-spacing:.005em}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-login-intro{margin:0 auto 18px!important;max-width:36ch;color:#e3ece7!important;font:400 17px/1.4 Georgia,'Noto Serif KR',serif!important}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-login-form{display:grid;gap:14px;text-align:left}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-field{display:grid;gap:8px;margin:0;color:#f4f1e6;font:700 15px/1.2 system-ui,sans-serif}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-field input{box-sizing:border-box;width:100%;min-height:52px;margin:0;padding:12px 16px;border:1.5px solid rgba(215,180,90,.72)!important;border-radius:10px!important;background:#0a2622!important;color:#fff8e6!important;font:500 16px/1.2 system-ui,sans-serif!important;outline:0;box-shadow:inset 0 2px 6px rgba(0,0,0,.35)!important;transition:border-color .2s ease,box-shadow .2s ease}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-field input:focus{border-color:#f3d98f!important;box-shadow:inset 0 2px 6px rgba(0,0,0,.35),0 0 0 4px rgba(215,180,90,.24)!important}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-field input[readonly]{opacity:.7}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-pass{position:relative;display:block}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-pass input{padding-right:54px}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-eye{position:absolute;top:50%;right:8px;display:grid;place-items:center;width:40px!important;height:40px!important;min-height:0!important;margin:-20px 0 0!important;padding:0!important;border:0!important;border-radius:8px!important;background:transparent!important;color:#e9dfc4!important;box-shadow:none!important;cursor:pointer}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-eye svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-link{display:inline;width:auto!important;min-height:0!important;margin:0!important;padding:2px 0!important;border:0!important;background:none!important;box-shadow:none!important;color:#f0d483!important;font:600 14.5px/1.3 Georgia,'Noto Serif KR',serif!important;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-forgot{justify-self:end;margin-top:-6px!important}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-submit{width:100%;min-height:56px!important;margin:2px 0 0!important;padding:10px 16px!important;border:0!important;border-radius:10px!important;background:linear-gradient(180deg,#f4d98a 0%,#e2b85a 55%,#c99a3c 100%)!important;color:#1b1406!important;font:700 21px/1 Georgia,'Noto Serif KR',serif!important;box-shadow:0 4px 0 #8a6420,0 12px 24px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.55)!important;cursor:pointer}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-submit:disabled{opacity:.7;cursor:progress}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-login-status{margin:0!important;padding:9px 12px;border-radius:10px;font:600 14px/1.4 system-ui,sans-serif;text-align:center}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-login-status:empty{display:none}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-login-status[data-tone=bad]{border:1px solid rgba(230,110,90,.6);background:rgba(200,70,55,.18);color:#ffe3dc}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-login-status[data-tone=ok]{border:1px solid rgba(127,224,168,.5);background:rgba(47,210,126,.13);color:#d2f6e2}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-login-status:is([data-tone=info],[data-tone=busy]){border:1px solid rgba(215,180,90,.45);background:rgba(215,180,90,.1);color:#ffeab5}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-login-status[data-tone=busy]::before{content:'';display:inline-block;width:12px;height:12px;margin-right:8px;vertical-align:-2px;border:2px solid #ffe6a3;border-right-color:transparent;border-radius:50%;animation:realm-spin .8s linear infinite}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-or{display:flex;align-items:center;gap:14px;margin:18px 0 12px!important;color:#d6ded9;font:400 16px/1 Georgia,'Noto Serif KR',serif}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-or::before,html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-or::after{content:'';flex:1;height:1px;background:linear-gradient(90deg,rgba(215,180,90,0),rgba(215,180,90,.65),rgba(215,180,90,0))}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-providers{display:grid;gap:10px}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-provider{position:relative;display:flex;align-items:center;justify-content:center;gap:14px;width:100%;min-height:50px!important;margin:0!important;padding:8px 16px!important;border:1.5px solid rgba(215,180,90,.72)!important;border-radius:10px!important;background:rgba(6,26,23,.55)!important;color:#f7f3e8!important;font:700 17px/1.2 system-ui,sans-serif!important;box-shadow:none!important;cursor:pointer}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-provider svg{flex:none;width:24px;height:24px}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-provider[data-provider=phone] svg{color:#fff}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-soon{position:absolute;top:50%;right:12px;margin-top:-10px;padding:3px 8px;border:1px solid rgba(215,180,90,.55);border-radius:999px;background:rgba(215,180,90,.12);color:#f3d27f;font:800 10.5px/1.2 system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-login-join{margin:18px 0 0!important;padding-top:16px;border-top:1px solid rgba(215,180,90,.25);color:#e6ece8!important;font:400 16px/1.4 Georgia,'Noto Serif KR',serif!important;text-align:center}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-login-join a{color:#f0d483!important;font-weight:700;text-decoration:underline;text-underline-offset:3px}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-auth-links{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 22px;margin:16px 0 0!important}
@media (hover:hover){html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) :is(.wgc-provider,.wgc-auth-close):hover{border-color:#f3d98f!important;background:rgba(215,180,90,.1)!important}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-submit:not(:disabled):hover{filter:brightness(1.07)}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-eye:hover{color:#fff!important;background:rgba(215,180,90,.12)!important}}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-submit:not(:disabled):active{translate:0 2px;box-shadow:0 2px 0 #8a6420,0 8px 18px rgba(0,0,0,.35)!important}
html[data-motion=full] body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only)[open]{animation:realm-pop-in .45s cubic-bezier(.2,.9,.3,1.2)!important}
html[data-motion=full] body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-auth-logo{animation:wgc-coin-in .8s cubic-bezier(.2,.9,.3,1.3) .05s backwards,wgc-coin-float 4.5s ease-in-out .9s infinite}
html[data-motion=full] body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-auth h2{animation:realm-text-shine 6s linear infinite}
html[data-motion=full] body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-submit:not(:disabled){position:relative;overflow:hidden}
html[data-motion=full] body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-submit:not(:disabled)::after{content:'';position:absolute;inset:0 auto 0 0;width:36%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.5),transparent);transform:translateX(-160%) skewX(-18deg);animation:realm-sheen 4.4s ease-in-out 1s infinite;pointer-events:none}
html[data-motion=full] body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-auth :is(.wgc-field,.wgc-forgot,.wgc-submit,.wgc-or,.wgc-provider,.wgc-login-join,.wgc-auth-links){animation:realm-card-in .5s cubic-bezier(.2,.8,.2,1) backwards}
html[data-motion=full] body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-auth .wgc-field:nth-of-type(2){animation-delay:.05s}
html[data-motion=full] body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-auth .wgc-field:nth-of-type(3){animation-delay:.1s}
html[data-motion=full] body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-auth .wgc-submit{animation-delay:.12s}
html[data-motion=full] body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-auth .wgc-provider:nth-child(1){animation-delay:.16s}
html[data-motion=full] body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-auth .wgc-provider:nth-child(2){animation-delay:.2s}
html[data-motion=full] body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-auth .wgc-provider:nth-child(3){animation-delay:.24s}
@keyframes wgc-coin-in{0%{opacity:0;transform:translateY(-12px) scale(.7)}70%{opacity:1;transform:scale(1.04)}100%{opacity:1;transform:none}}
@keyframes wgc-coin-float{0%,100%{translate:0 0}50%{translate:0 -4px}}
/* Shorter windows (the owner's 1366x657 laptop, phones): everything stays on screen without scrolling. Phone, Google
   and Apple sit side by side as compact buttons. */
@media (max-height:860px){html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-auth{padding:18px 28px 16px}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-auth-logo{width:112px;margin-bottom:4px}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-auth h2{font-size:29px!important}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-login-intro{margin-bottom:12px!important;font-size:15.5px!important}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-login-form{gap:10px}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-field{gap:6px;font-size:14px}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-field input{min-height:46px;padding:10px 14px}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-submit{min-height:50px!important;font-size:19px!important}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-or{margin:12px 0 10px!important;font-size:14.5px}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-providers{grid-template-columns:repeat(3,1fr);gap:8px}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-provider{flex-direction:column;gap:4px;min-height:58px!important;padding:6px 4px 14px!important;font-size:13px!important}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-provider svg{width:20px;height:20px}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-provider-label{font-size:0}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-provider-label::after{content:attr(data-short);font-size:13px}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-soon{top:auto;right:50%;bottom:-8px;margin:0 -22px 0 0;padding:1px 6px;font-size:9px;background:#0f3a33}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-login-join{margin-top:12px!important;padding-top:10px;font-size:15px!important}html body dialog.login-dialog.wgc-only>.login-dialog-note{margin:12px 60px 0!important}}
@media (max-height:600px){html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-auth-logo{width:72px}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-auth h2{font-size:25px!important}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-login-intro{display:none}}
@media (max-width:420px){html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-auth{padding-left:18px;padding-right:18px}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-auth h2{font-size:27px!important}html body dialog.login-dialog.wgc-only>.login-dialog-note{margin:12px 58px 0 18px!important}}
@media (max-height:720px){html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-auth{padding-top:14px;padding-bottom:12px}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-auth-logo{width:118px;margin-bottom:2px}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-auth h2{margin-bottom:0!important}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-login-intro{margin-bottom:6px!important}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-forgot{margin-top:-4px!important}html body dialog.login-dialog.wgc-only>.login-dialog-note{margin-top:10px!important;padding:6px 10px!important}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-provider{min-height:54px!important}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-or{margin:6px 0 6px!important}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-login-status{padding:4px 10px!important;line-height:1.3!important}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-login-join{margin-top:8px!important;padding-top:6px!important}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-auth h2{font-size:26px!important}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-login-intro{margin-bottom:10px!important;font-size:14.5px!important}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-login-form{gap:8px}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-field{gap:5px;font-size:13.5px}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-field input{min-height:44px;padding:9px 14px}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-submit{min-height:48px!important}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-login-status{padding:6px 10px;font-size:13px}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-or{margin:10px 0 8px!important}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-login-join{margin-top:10px!important;padding-top:8px}}
@media (max-height:660px) and (max-width:420px){html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-auth-logo{width:66px}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-auth h2{font-size:24px!important}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-login-intro{display:none}html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-auth h2{margin-bottom:8px!important}}
/* The real WGC coin in the balance chip (sidebar and phone header). */
html body .wgc-balance-chip{gap:7px}
html body .wgc-balance-chip .wgc-coin-icon{flex:none;width:18px;height:auto;filter:drop-shadow(0 1px 2px rgba(0,0,0,.5))}
html body[data-rail-expanded=false]>header>.wgc-balance-chip::before{content:none!important}
html body[data-rail-expanded=false]>header>.wgc-balance-chip .wgc-coin-icon{width:22px}
html[data-motion=full] body .wgc-balance-chip:hover .wgc-coin-icon{animation:wgc-coin-spin .9s cubic-bezier(.3,.7,.3,1)}
@keyframes wgc-coin-spin{0%{transform:rotateY(0)}100%{transform:rotateY(360deg)}}
html body dialog:is(.wgc-login-dialog,.login-dialog.wgc-only) .wgc-join-link{font:700 16px/1.3 Georgia,'Noto Serif KR',serif!important}
