/* Gametree Gym (게임트리 짐) title screen and launch UI */
.gl .ar-top{padding-top:calc(12px + env(safe-area-inset-top))}
.gl-mark{font-size:12px!important;letter-spacing:5px!important}
.gl .ar-back{font-size:13px;opacity:.8}
.gl .ar-me{border:0;font:inherit;cursor:pointer}
.gl-title{position:relative;text-align:center;padding:18px 0 8px}
.gl-logo{position:relative;width:170px;height:130px;margin:6px auto 4px}
.gl-card{position:absolute;top:8px;width:76px;height:104px;border-radius:12px;background:#fffdf6;box-shadow:0 12px 26px #0009;font:900 34px/1 'Arial Black',Arial,sans-serif;padding:10px 12px;box-sizing:border-box;text-align:left}
.gl-card i{display:block;font-style:normal;font-size:28px;margin-top:2px}
.gl-c1{left:28px;color:#141414;transform:rotate(-12deg);animation:gl-float 4s ease-in-out infinite}
.gl-c2{left:76px;color:#d6302b;transform:rotate(10deg);animation:gl-float 4s ease-in-out infinite .6s}
.gl-bolt{position:absolute;right:6px;bottom:0;width:54px;height:54px;border-radius:50%;display:grid;place-items:center;font-size:30px;background:linear-gradient(145deg,#ffd75e,#ff8a2e);box-shadow:0 0 0 6px #ffd75e2e,0 8px 18px #0008;animation:gl-pulse 2.2s ease-in-out infinite}
.gl-tree{color:#174634;padding:11px;box-sizing:border-box}.gl-tree svg{display:block}
@keyframes gl-float{50%{translate:0 -6px}}
@keyframes gl-pulse{50%{box-shadow:0 0 0 12px #ffd75e18,0 8px 18px #0008}}
.gl-name{margin:6px 0 0;font-size:40px;font-weight:900;letter-spacing:-1.5px;line-height:1.1;background:linear-gradient(#fff,#ffe9a6);-webkit-background-clip:text;background-clip:text;color:transparent}
.gl-name small{display:block;margin-top:6px;font-size:12px;letter-spacing:6px;color:#ffd75e;-webkit-text-fill-color:#ffd75e}
.gl-tagline{margin:10px 0 20px;color:#c9dbd4;font-size:16px;font-weight:600}
.gl-play{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;min-width:min(320px,100%);min-height:76px;padding:10px 28px;border:0;border-radius:22px;background:linear-gradient(#ffe27a,#ffb63d);color:#2b1d00;font:inherit;cursor:pointer;box-shadow:0 8px 0 #b5781c,0 18px 34px #ff9d2e44;transition:transform .08s,box-shadow .08s;animation:gl-breathe 2.6s ease-in-out infinite}
.gl-play b{font-size:30px;font-weight:900;letter-spacing:6px;line-height:1}
.gl-play small{margin-top:6px;font-size:12.5px;font-weight:800;opacity:.85}
.gl-play:active{transform:translateY(6px);box-shadow:0 2px 0 #b5781c}
.gl-play:focus-visible{outline:3px solid #fff;outline-offset:4px}
@keyframes gl-breathe{50%{transform:scale(1.025)}}
.gl-player{display:grid;grid-template-columns:auto auto 1fr auto;align-items:center;gap:10px;max-width:440px;margin:22px auto 10px;padding:10px 14px;border-radius:16px;background:#ffffff0f;border:1px solid #ffffff14;text-align:left}
.gl-emblem{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,#ffd75e,#ff9d2e);color:#3a2300;font-weight:900}
.gl-who{display:flex;flex-direction:column;line-height:1.15}.gl-who b{font-size:15px}.gl-who small{font-size:11.5px;color:#ffd75e;font-weight:800}
.gl-xp{height:8px;border-radius:8px;background:#ffffff1c;overflow:hidden}.gl-xp i{display:block;height:100%;background:linear-gradient(90deg,#7fd8c3,#ffd75e);transition:width .5s}
.gl-streak{font-size:14px;font-weight:900;opacity:.5}.gl-streak.is-on{opacity:1}
.gl-quests{display:grid;gap:6px;max-width:440px;margin:0 auto 24px;padding:0;list-style:none}
.gl-quests li{position:relative;display:flex;justify-content:space-between;gap:8px;padding:8px 12px;border-radius:12px;background:#ffffff0a;font-size:13px;font-weight:700;overflow:hidden}
.gl-quests li i{position:absolute;left:0;bottom:0;height:3px;background:#3fb58b;transition:width .4s}
.gl-quests li.is-done{color:#9fe6bd}.gl-quests li.is-done i{background:#ffd75e}
.gl-quests li b{font-variant-numeric:tabular-nums;color:#a9bab3}
.gl .ar-street{display:flex;justify-content:center;margin:0 auto 6px;width:max-content}
.gl .ar-hero{text-align:center}.gl .ar-hero h2{margin:8px 0 6px;font-size:22px;font-weight:900}.gl .ar-hero p{font-size:14px}
.gl-menu{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:22px 0 4px}
.gl-menu button,.gl-menu a{padding:10px 14px;border:1px solid #ffffff1c;border-radius:12px;background:#ffffff0c;color:#e4eeea;font:inherit;font-size:13.5px;font-weight:700;text-decoration:none;cursor:pointer}
.gl-menu button:hover,.gl-menu a:hover{background:#ffffff18}
.gl-share{display:block;width:100%;min-height:52px;margin:4px 0 0;border:0;border-radius:16px;background:#fee500;color:#191600;font:inherit;font-size:16px;font-weight:900;cursor:pointer}
.gl-course{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:14px 0 0;padding:16px 18px;border-radius:16px;background:linear-gradient(135deg,#ffffff14,#ffffff08);border:1px solid #ffffff1c;color:#fff;text-decoration:none;text-align:left}
.gl-course span{font-size:13px;color:#b6c4be}.gl-course strong{font-size:15px;font-weight:900;color:#ffd75e}
/* Countdown */
.ar-count{position:fixed;inset:0;z-index:50;display:grid;place-items:center;background:#0008;color:#fff;font-size:120px;font-weight:900;text-shadow:0 10px 40px #000;pointer-events:none}
.ar-count.pop{animation:gl-count .6s cubic-bezier(.2,.9,.3,1.3)}
@keyframes gl-count{from{transform:scale(2.2);opacity:0}40%{opacity:1}to{transform:scale(1)}}
/* Dialogs */
.gl-dialog,.gl-tutorial{width:min(440px,calc(100vw - 24px));max-height:calc(100vh - 40px);padding:0;border:1px solid #ffffff1c;border-radius:22px;background:#111a18;color:#f2f5f3;box-shadow:0 30px 80px #000c}
.gl-dialog::backdrop,.gl-tutorial::backdrop{background:#000b}
.gl-dialog-head{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;border-bottom:1px solid #ffffff12}
.gl-dialog-head h2{margin:0;font-size:18px;font-weight:900}
.gl-x{width:34px;height:34px;border:0;border-radius:10px;background:#ffffff14;color:#fff;font-size:20px;cursor:pointer}
.gl-dialog-body{padding:12px 18px 20px}
.gl-dialog-body p{color:#cfdcd6;line-height:1.6}
.gl-toggle{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #ffffff10;cursor:pointer;position:relative}
.gl-toggle span{display:flex;flex-direction:column}.gl-toggle b{font-size:15px}.gl-toggle small{font-size:12px;color:#9fb0aa}
.gl-toggle input{position:absolute;opacity:0;pointer-events:none}
.gl-toggle i{width:48px;height:28px;border-radius:28px;background:#ffffff26;position:relative;transition:background .15s}
.gl-toggle i:after{content:"";position:absolute;left:3px;top:3px;width:22px;height:22px;border-radius:50%;background:#fff;transition:transform .15s}
.gl-toggle input:checked+i{background:#3fb58b}.gl-toggle input:checked+i:after{transform:translateX(20px)}
.gl-toggle input:focus-visible+i{outline:2px solid #ffd75e;outline-offset:2px}
.gl-link{margin-top:14px;padding:0;border:0;background:none;color:#ffd75e;font:inherit;font-weight:800;cursor:pointer;text-decoration:underline}
.gl-stats{font-size:13px}
.gl-badges{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0 0;padding:0;list-style:none}
.gl-badges li{display:grid;grid-template-columns:auto 1fr;column-gap:8px;align-items:center;padding:10px;border-radius:12px;background:#ffffff0a;opacity:.5}
.gl-badges li.is-on{opacity:1;background:linear-gradient(135deg,#4a3a12,#2a2008)}
.gl-badges span{grid-row:span 2;font-size:22px}.gl-badges b{font-size:13px}.gl-badges small{font-size:11px;color:#b6c4be}
.gl-tutorial{padding:30px 24px 20px;text-align:center}
.gl-tut-icon{font-size:64px;line-height:1;margin-bottom:10px;animation:gl-float 3s ease-in-out infinite}
.gl-tutorial h2{margin:0 0 10px;font-size:24px;font-weight:900}
.gl-tutorial p{margin:0 0 18px;color:#cfdcd6;font-size:15px;line-height:1.65}
.gl-dots{display:flex;justify-content:center;gap:6px;margin-bottom:18px}.gl-dots i{width:8px;height:8px;border-radius:8px;background:#ffffff33;transition:width .2s}.gl-dots i.is-on{width:22px;background:#ffd75e}
.gl-next{width:100%;min-height:56px;animation:none}
.gl-skip{margin-top:10px;border:0;background:none;color:#9fb0aa;font:inherit;font-size:13px;cursor:pointer}
@media(max-width:600px){.gl-name{font-size:33px}.gl-logo{transform:scale(.88);margin-top:0}.gl-play{min-width:100%}}
@media(prefers-reduced-motion:reduce){.gl-c1,.gl-c2,.gl-bolt,.gl-play,.gl-tut-icon,.ar-count.pop{animation:none}}
/* Sign-in gate: only the gate is visible until a session is confirmed. */
.gl-gate{display:none;text-align:center;padding:28px 0 10px}
body.gl:not([data-auth=in]) .gl-gate{display:block}
body.gl:not([data-auth=in]) #lobby,body.gl:not([data-auth=in]) #play,body.gl:not([data-auth=in]) #result,body.gl:not([data-auth=in]) #arMe{display:none!important}
.gl-gate-login{display:none;max-width:380px;margin:0 auto}
body[data-auth=out] .gl-gate-login{display:block}
.gl-gate-wait{color:#9fb0aa;font-size:14px}
body[data-auth=out] .gl-gate-wait{display:none}
.gl-google{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:60px;margin:8px 0 0;border:0;border-radius:18px;background:#fff;color:#1f1f1f;font:inherit;font-size:17px;font-weight:800;cursor:pointer;box-shadow:0 8px 0 #c9c9c9,0 18px 34px #0006;transition:transform .08s,box-shadow .08s}
.gl-google:active{transform:translateY(6px);box-shadow:0 2px 0 #c9c9c9}
.gl-google:disabled{opacity:.6;cursor:wait}
.gl-google:focus-visible{outline:3px solid #ffd75e;outline-offset:4px}
.gl-gate-msg{min-height:20px;margin:14px 0 0;color:#ff9b93;font-size:13.5px}
.gl-gate-msg:empty{min-height:0;margin:0}
.gl-gate-perks{margin:22px 0 0;padding:16px 18px;list-style:none;border-radius:16px;background:#ffffff0c;border:1px solid #ffffff14;text-align:left;font-size:14px;line-height:2;color:#d6e6df}
.gl-gate-legal{margin:16px 0 0;font-size:12px;line-height:1.6;color:#8ea19a}
.gl-gate-legal a{color:inherit}
.gl-account{margin:14px 0 0;font-size:12.5px;color:#9fb0aa}
.gl-logout{display:block;color:#ff9b93}
/* Friend challenge + league rewards */
.gl-duel{display:flex;align-items:center;gap:14px;width:100%;margin:12px 0 0;padding:16px 18px;border:1px dashed #ffd75e88;border-radius:20px;background:linear-gradient(135deg,#ffd75e14,#ff8a2e0f);color:#fff;font:inherit;text-align:left;cursor:pointer}
.gl-duel>span:first-child{font-size:30px}
.gl-duel b{display:block;font-size:17px;font-weight:900}.gl-duel small{display:block;margin-top:2px;font-size:12.5px;color:#cbd9d3}
.gl-duel:hover{border-style:solid}.gl-duel:disabled{opacity:.6;cursor:wait}
.gl-reward{display:grid;gap:8px;margin:12px 0 0}
.gl-reward-coupon{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding:12px 14px;border-radius:16px;background:linear-gradient(135deg,#4a3a12,#2a2008);border:1px solid #ffd75e55}
.gl-reward-coupon>span{font-size:26px}.gl-reward-coupon b{display:block;font-size:14.5px}.gl-reward-coupon small{display:block;font-size:12px;color:#e9dcb4}
.gl-copy{border:0;border-radius:10px;padding:8px 12px;background:#ffd75e;color:#2b1d00;font:inherit;font-size:12.5px;font-weight:900;cursor:pointer}
.gl-reward-rule{margin:0;padding:10px 14px;border-radius:12px;background:#ffffff0c;font-size:13px;color:#e4eeea}
.gl-duel-board{margin:4px 0 14px;padding:14px;border-radius:18px;background:#ffd75e12;border:1px solid #ffd75e40;text-align:left}
.gl-duel-board h3{margin:0 0 6px;font-size:15px}
.gl-duel-list{margin:8px 0 14px}
/* League tiers */
.gl-tier{display:inline-flex;align-items:center;gap:6px;margin:0 auto 14px;padding:7px 14px;border:1px solid #ffffff22;border-radius:999px;background:#ffffff10;color:#fff;font:inherit;font-size:13.5px;font-weight:900;cursor:pointer}
.gl-tier[data-tier="1"]{background:linear-gradient(135deg,#cfd6dc33,#8d98a233)}.gl-tier[data-tier="2"]{background:linear-gradient(135deg,#ffd75e3a,#c9901a33)}
.gl-tier[data-tier="3"]{background:linear-gradient(135deg,#7fd8ff33,#3a9ac933)}.gl-tier[data-tier="4"]{background:linear-gradient(135deg,#c9a6ff40,#6a5ad833)}.gl-tier[data-tier="5"]{background:linear-gradient(135deg,#ff8a4c40,#e0352b33);border-color:#ffd75e66}
.gl-tier-art{font-size:84px;line-height:1;text-align:center;margin:6px 0 10px;animation:gl-float 3s ease-in-out infinite}
.ar-rank li.zone-up{box-shadow:inset 3px 0 0 #5fe0a8}.ar-rank li.zone-up small{color:#5fe0a8;font-weight:800}
.ar-rank li.zone-down{box-shadow:inset 3px 0 0 #ff6b81}.ar-rank li.zone-down small{color:#ff8c9c;font-weight:800}
.gl-push{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:10px;margin:12px 0 0;padding:12px 14px;border-radius:16px;background:#3a8ef01f;border:1px solid #3a8ef055;text-align:left}
.gl-push[hidden]{display:none}
.gl-push>span{font-size:22px}.gl-push p{margin:0;font-size:13.5px;font-weight:700;color:#e4eeea}
#glPushOn{border:0;border-radius:10px;padding:9px 12px;background:#3a8ef0;color:#fff;font:inherit;font-size:13px;font-weight:900;cursor:pointer}
#glPushLater{border:0;background:none;color:#9fb0aa;font-size:20px;cursor:pointer}
.gl-climb{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;margin:14px 0 0;padding:14px 16px;border-radius:18px;background:linear-gradient(150deg,#1f6b50,#123f30);border:1px solid #ffd75e55;color:#fff;text-decoration:none;box-shadow:0 10px 22px #0007}
.gl-climb-icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;font-size:26px;background:linear-gradient(150deg,#ffe07a,#f2a531)}
.gl-climb b{display:block;font-size:16px}.gl-climb em{font-style:normal;font-size:10px;padding:2px 6px;border-radius:6px;background:#ff5d6c;margin-left:4px;vertical-align:2px}
.gl-climb small{font-size:12.5px;color:#cfe3da;line-height:1.4}.gl-climb>i{font-style:normal;font-size:26px;color:#ffd75e}
