/* JJ8 "try" effects — only loaded by try-home.html. Each effect is switched on by a class on <html>. */
/* --- side menu: softer, smoother open --- */
html.t-ease .jj-mmenu:not([hidden]):not(.jj-closing) > :nth-child(2) { animation: t-menu-in .42s cubic-bezier(.22,1,.36,1) both; box-shadow: 10px 0 30px rgba(0,0,0,.45); }
html.t-ease .jj-mmenu:not([hidden]):not(.jj-closing) > :nth-child(1) { animation: jj-fade-in .42s cubic-bezier(.22,1,.36,1) both; }
@keyframes t-menu-in { from { transform: translateX(-100%); } to { transform: none; } }
/* --- side menu: rows drift in one after another --- */
html.t-stagger .jj-mmenu:not([hidden]):not(.jj-closing) .t-st { animation: t-row-in .38s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(var(--i) * 28ms + 60ms); }
@keyframes t-row-in { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
/* --- side menu: tapped row lights up with a green edge --- */
.t-hitbar { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; pointer-events: none; border-radius: 8px;
  background: linear-gradient(90deg, rgba(36,238,137,.18), rgba(36,238,137,0) 80%); box-shadow: inset 3px 0 0 #24ee89;
  opacity: 0; transition: opacity .18s ease; }
html.t-glow .t-hit > .t-hitbar { opacity: 1; }
/* --- bottom bar indicator --- */
.t-ind { position: absolute; pointer-events: none; opacity: 0; transition: left .32s cubic-bezier(.22,1,.36,1), opacity .2s ease; z-index: 6; }
.t-ind.on { opacity: 1; }
html.t-nav-line .t-ind { top: 1px; width: 36px; height: 3px; margin-left: -18px; border-radius: 0 0 3px 3px; background: #24ee89; box-shadow: 0 0 10px 1px rgba(36,238,137,.7); }
html.t-nav-pill .t-ind { top: 7px; width: 64px; height: 56px; margin-left: -32px; border-radius: 14px; background: rgba(36,238,137,.12); box-shadow: inset 0 0 0 1px rgba(36,238,137,.25); }
html.t-nav-dot .t-ind { bottom: 4px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #24ee89; box-shadow: 0 0 8px rgba(36,238,137,.9); }
html:not(.t-nav-line):not(.t-nav-pill):not(.t-nav-dot) .t-ind { display: none; }
/* --- home category tabs: highlight glides to the tapped tab --- */
.t-tabpill { position: absolute; z-index: 0; border-radius: 7px; background: #35383f; pointer-events: none;
  transition: left .26s cubic-bezier(.22,1,.36,1), width .26s cubic-bezier(.22,1,.36,1); }
.t-tabsliding > [data-act] { background-color: transparent !important; }
.t-tabsliding > [data-act] > * { position: relative; z-index: 1; }
/* --- game cards: fade up as they scroll in, gentle press --- */
html.t-cards .t-card { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s cubic-bezier(.22,1,.36,1); transition-delay: calc(var(--i) * 60ms); }
html.t-cards .t-card.t-seen { opacity: 1; transform: none; }
html.t-press .t-card:active, html.t-press .t-card.t-down { transform: scale(.96) !important; transition: transform .12s ease !important; }
/* --- shimmer while game pictures load --- */
html.t-skel .t-loading { background: linear-gradient(100deg, #23252e 30%, #2e313b 50%, #23252e 70%) 0 0 / 300% 100% !important; animation: t-shim 1.1s linear infinite; }
@keyframes t-shim { from { background-position: 100% 0; } to { background-position: 0 0; } }
/* --- the Try panel --- */
.t-fab { position: fixed; right: max(12px, calc(50% - 203px)); bottom: 168px; z-index: 90; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: #24ee89; color: #191921; font: 700 11px Montserrat, sans-serif; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.t-sheet { position: fixed; left: 50%; bottom: 0; width: 430px; max-width: 100%; transform: translate(-50%, 105%); z-index: 95; background: #1f222b;
  border-radius: 16px 16px 0 0; padding: 14px 16px 28px; box-shadow: 0 -10px 30px rgba(0,0,0,.5); transition: transform .35s cubic-bezier(.22,1,.36,1);
  font-family: Montserrat, sans-serif; color: #fff; max-height: 80vh; overflow-y: auto; }
.t-sheet.open { transform: translate(-50%, 0); }
.t-sheet h3 { font-size: 15px; font-weight: 700; margin: 0 0 2px; }
.t-sheet .t-sub { font-size: 11px; color: rgba(255,255,255,.55); margin-bottom: 10px; }
.t-sheet .t-grp { font-size: 11px; letter-spacing: 1.2px; color: rgba(255,255,255,.45); font-weight: 600; margin: 14px 0 6px; }
.t-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 14px; font-weight: 600; }
.t-row small { display: block; font-size: 11px; font-weight: 500; color: rgba(255,255,255,.5); margin-top: 2px; }
.t-sw { width: 42px; height: 24px; border-radius: 12px; background: #35383f; position: relative; flex: none; transition: background .2s; }
.t-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s cubic-bezier(.22,1,.36,1); }
.t-sw.on { background: #24ee89; } .t-sw.on::after { transform: translateX(18px); }
.t-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.t-chip { padding: 7px 12px; border-radius: 99px; background: #2a2d36; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.75); border: 1px solid transparent; }
.t-chip.on { border-color: #24ee89; color: #24ee89; background: rgba(36,238,137,.08); }
.t-done { margin-top: 16px; width: 100%; height: 44px; border: 0; border-radius: 8px; background: #24ee89; color: #191921; font: 700 14px Montserrat, sans-serif; }
@media (prefers-reduced-motion: reduce) { html[class*="t-"] .t-card { opacity: 1 !important; transform: none !important; } }
/* ===== new side menu (Draft 2 layout, Draft 1 silver icons) — built by try.js ===== */
html.t-newmenu .jj-mmenu .tm-old { display: none !important; }
.tm { position: relative; padding: 16px 12px 20px; display: flex; flex-direction: column; gap: 10px; font-family: Montserrat, sans-serif; color: #fff; }
.tm-row { display: flex; align-items: center; }
.tm-prof { gap: 12px; padding: 2px 4px; cursor: pointer; }
.tm-prof img { width: 46px; height: 42px; }
.tm-name { font-weight: 700; font-size: 16px; }
.tm-tier { font-weight: 700; font-size: 12px; margin-top: 2px; background: linear-gradient(90deg,#d48a5c,#ffd2a6 50%,#d48a5c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tm-track { height: 5px; border-radius: 9px; background: #35383f; position: relative; overflow: hidden; margin: 0 4px; }
.tm-fill { position: absolute; inset: 0 40.57% 0 0; border-radius: 9px; background: linear-gradient(90deg,#a8f5cc,#24ee89 55%,#0e9f55); }
.tm-xp { justify-content: space-between; font-size: 10px; font-weight: 500; color: rgba(255,255,255,.5); margin: -4px 4px 0; }
.tm-xp b { color: #fff; }
.tm-lbl { font-size: 10px; font-weight: 600; letter-spacing: 1.6px; color: rgba(255,255,255,.38); padding: 6px 8px 0; }
.tm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tm-tile { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; padding: 12px 0 10px; border-radius: 12px; background: #1f222b; border: 1px solid rgba(255,255,255,.04); cursor: pointer; position: relative; overflow: hidden; }
.tm-it { display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 8px; font-weight: 600; font-size: 15px; border-radius: 10px; cursor: pointer; position: relative; }
.tm-sp { flex: 1; }
.tm-i { display: inline-block; width: 20px; height: 20px; flex: none; -webkit-mask: var(--u) center/contain no-repeat; mask: var(--u) center/contain no-repeat;
  background: linear-gradient(160deg,#ffffff 10%,#b9bec8 55%,#7d838f); }
.tm-tile .tm-i { width: 24px; height: 24px; }
.tm-chev { width: 16px; height: 16px; background: rgba(255,255,255,.45); }
.tm-cnt { min-width: 20px; height: 20px; border-radius: 10px; background: #24ee89; color: #191921; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 6px; }
.tm-tag { height: 20px; border-radius: 6px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.75); font-size: 10.5px; font-weight: 600; display: grid; place-items: center; padding: 0 8px; }
.tm-hr { height: 1px; background: rgba(255,255,255,.06); margin: 2px 0; }
.tm-sq { width: 40px; height: 40px; border-radius: 11px; background: #1f222b; border: 1px solid rgba(255,255,255,.05); display: grid; place-items: center; flex: none; cursor: pointer; }
.tm-sq .tm-i { width: 18px; height: 18px; }
.tm-lang { position: relative; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 11px; background: #1f222b; border: 1px solid rgba(255,255,255,.05); cursor: pointer; margin-left: auto; }
.tm-lang img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.tm-lang b { font-size: 13px; }
.tm-langs { position: absolute; right: 0; bottom: 46px; width: 170px; background: #262934; border-radius: 12px; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .2s ease, transform .25s cubic-bezier(.22,1,.36,1); z-index: 5; }
.tm-lang.open .tm-langs { opacity: 1; transform: none; pointer-events: auto; }
.tm-lang.open .tm-chev { transform: rotate(180deg); }
.tm-chev { transition: transform .25s ease; }
.tm-langs div { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.tm-langs div.on { background: rgba(36,238,137,.1); color: #24ee89; }
.tm-sup { background: #1f222b; border: 1px solid rgba(255,255,255,.05); border-radius: 12px; height: 54px; padding: 0 10px; }
.tm-press:active { transform: scale(.97); transition: transform .1s ease; }
html:not(.t-newmenu) .tm { display: none; }
/* ===== bottom bar: silver icons (Bar 1) =====
   Safari cannot mask an <svg> element, so the silver is painted straight onto the icon shapes with an SVG gradient (#t-sv / #t-sv-dim, added by try.js). */
html.t-silver .lay-m [data-name="Nav"] svg.jj-inl :is(path,circle,rect,ellipse,polygon)[fill]:not([fill="none"]):not(mask *):not(clipPath *) { fill: url(#t-sv-dim) !important; }
html.t-silver .lay-m [data-name="Nav"] svg.jj-inl :is(path,circle,rect,ellipse,polygon)[stroke]:not([stroke="none"]):not(mask *):not(clipPath *) { stroke: url(#t-sv-dim) !important; }
html.t-silver .lay-m [data-name="Nav"] > .t-on svg.jj-inl :is(path,circle,rect,ellipse,polygon)[fill]:not([fill="none"]):not(mask *):not(clipPath *) { fill: url(#t-sv) !important; }
html.t-silver .lay-m [data-name="Nav"] > .t-on svg.jj-inl :is(path,circle,rect,ellipse,polygon)[stroke]:not([stroke="none"]):not(mask *):not(clipPath *) { stroke: url(#t-sv) !important; }
html.t-silver .lay-m [data-name="Nav"] > .t-on p, html.t-silver .lay-m [data-name="Nav"] > .t-on [class*="text-"] { color: #fff !important; }
html.t-silver .lay-m [data-name="Nav"] > .jj-press svg.jj-inl :is(path,circle,rect,ellipse,polygon)[fill]:not([fill="none"]):not(mask *):not(clipPath *) { fill: #24ee89 !important; }
html.t-silver .lay-m [data-name="Nav"] > .jj-press svg.jj-inl :is(path,circle,rect,ellipse,polygon)[stroke]:not([stroke="none"]):not(mask *):not(clipPath *) { stroke: #24ee89 !important; }
/* ===== Profile page redesign (Option B + Bar 1) — try-profile.html only ===== */
.tp-old { display: none !important; }
.tp { display: flex; flex-direction: column; gap: 12px; font-family: Montserrat, sans-serif; color: #fff; width: 398px; }
.tp-row { display: flex; align-items: center; }
.tp-mut { color: rgba(255,255,255,.5); }
.tp-vip { border-radius: 10px; padding: 12px 16px; border: 1px solid transparent; cursor: pointer;
  background: radial-gradient(120% 90% at 0% 0%, rgba(212,138,92,.16), rgba(212,138,92,0) 55%), linear-gradient(#1f222b,#1f222b) padding-box, linear-gradient(135deg, rgba(255,199,143,.35), rgba(255,255,255,.03) 45%) border-box; }
.tp-bz { background: linear-gradient(90deg,#d48a5c,#ffd2a6 50%,#d48a5c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tp-track { height: 6px; border-radius: 99px; background: #35383f; position: relative; overflow: hidden; }
.tp-fill { position: absolute; inset: 0 40.57% 0 0; border-radius: 99px; background: linear-gradient(90deg,#a8f5cc 0%,#24ee89 55%,#0e9f55 100%); box-shadow: 0 0 6px rgba(36,238,137,.45); }
.tp-chevb { width: 18px; height: 18px; border-radius: 4px; background: #3a3d46; display: grid; place-items: center; flex: none; }
.tp-btns { display: flex; gap: 12px; }
.tp-btn { flex: 1; height: 52px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 16px; cursor: pointer; }
.tp-dep { background: #24ee89; color: #191921; } .tp-wd { background: #35383f; color: #24ee89; }
.tp-card { background: #1f222b; border-radius: 12px; border: 1px solid rgba(255,255,255,.05); }
.tp-grid { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 18px; padding: 16px 6px; }
.tp-gi { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; cursor: pointer; }
.tp-gi .tm-i { width: 24px; height: 24px; }
.tp-cnt { position: absolute; top: -7px; right: -11px; min-width: 20px; height: 20px; border-radius: 10px; background: #f22a2a; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 6px; border: 2px solid #1f222b; }
.tp-lbl { font-size: 10px; font-weight: 600; letter-spacing: 1.6px; color: rgba(255,255,255,.38); padding: 12px 8px 2px; }
.tp-it { display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 8px; font-weight: 600; font-size: 15px; border-radius: 10px; cursor: pointer; position: relative; }
.tp-it .tm-sp { flex: 1; }
.tp-val { font-size: 13px; font-weight: 500; color: rgba(255,255,255,.5); margin-right: 8px; }
.tp-hr { height: 1px; background: rgba(255,255,255,.06); margin: 2px 8px; }
.tp-sub { overflow: hidden; height: 0; transition: height .3s ease; }
.tp-sub .tp-it { height: 42px; font-size: 14px; font-weight: 500; padding-left: 42px; color: rgba(255,255,255,.85); }
.tp-sub .tp-it.on { color: #24ee89; font-weight: 700; }
.tp-it .tp-arrow { transition: transform .3s ease; }
.tp-it.open .tp-arrow { transform: rotate(90deg); }
.tp-flag { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
/* the server's older styles.css masked the pressed <svg> (a green square on iPhone) — switch that off here */
.lay-m [data-name="Nav"] .jj-press svg.jj-inl, .lay-m [data-name="Nav"] > .jj-press svg.jj-inl { background: none !important; -webkit-mask: none !important; mask: none !important; }
.lay-m [data-name="Nav"] > .jj-press svg.jj-inl > * { opacity: 1 !important; }
/* ===== Missions page redesign (Draft 2) — try-missions.html only ===== */
.tq-hide { position: absolute !important; left: -99999px !important; top: 0 !important; visibility: hidden !important; height: 0 !important; overflow: hidden !important; }
.tq { width: 430px; margin: 0 auto; font-family: Montserrat, sans-serif; color: #fff; padding-bottom: 96px; }
.tq-top { position: sticky; top: 0; z-index: 30; height: 56px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; background: #191921; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.tq-back { position: absolute; left: 16px; width: 32px; height: 32px; border-radius: 8px; background: #35383f; display: grid; place-items: center; cursor: pointer; }
.tq-in { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.tq-tabs { display: flex; gap: 4px; padding: 6px; overflow-x: auto; scrollbar-width: none; }
.tq-tabs::-webkit-scrollbar { display: none; }
.tq-tb { height: 38px; padding: 0 14px; border-radius: 7px; display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; white-space: nowrap; color: #808285; cursor: pointer; flex: none; transition: background-color .25s, color .25s; }
.tq-tb .tm-i { width: 16px; height: 16px; background: #808285; }
.tq-tb.on { background: #35383f; color: #fff; } .tq-tb.on .tm-i { background: #24ee89; }
.tq-it { display: flex; align-items: center; gap: 14px; padding: 12px 8px; }
.tq-it > .tm-i { width: 22px; height: 22px; }
.tq-nm { font-weight: 600; font-size: 15px; }
.tq-ds { font-size: 12px; font-weight: 500; color: rgba(255,255,255,.5); margin-top: 3px; }
.tq-xp { font-size: 12px; font-weight: 700; color: #24ee89; white-space: nowrap; }
.tq-pct { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.5); min-width: 30px; text-align: right; }
.tq-bar { height: 5px; flex: 1; border-radius: 99px; background: #35383f; position: relative; overflow: hidden; }
.tq-bar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg,#a8f5cc 0%,#24ee89 55%,#0e9f55 100%); }
.tq-claim, .tq-go, .tq-done { height: 34px; padding: 0 16px; border-radius: 8px; font-weight: 700; font-size: 13px; display: grid; place-items: center; flex: none; cursor: pointer; }
.tq-claim { background: #24ee89; color: #191921; } .tq-go { background: #35383f; color: #24ee89; padding: 0 18px; }
.tq-done { background: #2c2f39; color: rgba(255,255,255,.45); cursor: default; }
.tq-lock { height: 34px; width: 34px; border-radius: 8px; background: #35383f; display: grid; place-items: center; flex: none; }
.tq-info { display: inline-flex; cursor: pointer; padding: 2px; }
.tq-info .tm-i { width: 15px; height: 15px; background: rgba(255,255,255,.4); }
.tq-hr { height: 1px; background: rgba(255,255,255,.06); margin: 0 8px; }
.tq-note { font-size: 11px; line-height: 16px; color: rgba(255,255,255,.45); padding: 0 4px; }
.tq-q { display: flex; align-items: center; gap: 12px; min-height: 46px; font-size: 14px; font-weight: 600; padding: 0 8px; cursor: pointer; }
.tq-q .tm-i { width: 18px; height: 18px; }
.tq-q .tq-ar { width: 16px; height: 16px; background: rgba(255,255,255,.45); transition: transform .3s ease; }
.tq-q.open { color: #24ee89; } .tq-q.open .tq-ar { transform: rotate(180deg); }
.tq-a { overflow: hidden; height: 0; transition: height .3s ease; }
.tq-a > div { font-size: 11px; line-height: 16px; color: rgba(255,255,255,.5); padding: 0 8px 10px 38px; }
.tq-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.tq-day { border-radius: 10px; background: #262934; padding: 8px 2px; text-align: center; font-size: 9.5px; font-weight: 600; color: rgba(255,255,255,.6); min-height: 62px; display: flex; flex-direction: column; justify-content: space-between; }
.tq-day b { font-size: 10px; color: #fff; }
.tq-day.on { background: rgba(36,238,137,.1); box-shadow: inset 0 0 0 1px rgba(36,238,137,.4); }
.tq-step { display: flex; gap: 12px; align-items: flex-start; padding: 10px 8px; }
.tq-dot { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 700; border: 1.5px solid rgba(255,255,255,.15); color: rgba(255,255,255,.6); }
.tq-dot.done { border-color: #24ee89; background: rgba(36,238,137,.12); color: #24ee89; }
.tq-dot.now { border-color: #24ee89; color: #fff; }
/* Missions Draft 3: two mission tiles per row */
.tq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tq-tile { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.tq-tile > .tp-row:first-child .tm-i { width: 24px; height: 24px; }
.tq-tile .tq-nm { font-size: 14px; margin-top: 2px; }
.tq-tile .tq-ds { margin: 0; min-height: 30px; }
.tq-tile .tq-claim, .tq-tile .tq-go, .tq-tile .tq-done { width: 100%; }

/* new-design site: no Try button / panel */
html.t-newsite .t-fab, html.t-newsite .t-sheet { display: none !important; }
