/* Daily challenges, weekly tournament, Who's that Pokémon */

/* ---------- daily challenges ---------- */
.ch-pips { display: flex; gap: 4px; }
.ch-pips i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.14); }
.ch-pips i.on { background: #4ade80; }
.ch-list { display: flex; flex-direction: column; margin-top: 4px; }
.ch-r { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.ch-r + .ch-r { border-top: 1px solid rgba(255,255,255,.06); }
.ch-t { flex: none; width: 54px; text-align: center; padding: 4px 0; border-radius: 7px; font-size: 10.5px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.ch-t.t-e { background: rgba(74,222,128,.12); color: #4ade80; }
.ch-t.t-m { background: rgba(96,165,250,.12); color: #93c5fd; }
.ch-t.t-h { background: rgba(251,146,60,.13); color: #fdba74; }
.ch-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ch-m b { color: #fff; font-size: 14px; font-weight: 600; line-height: 1.3; }
.ch-m small { color: rgba(255,255,255,.45); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.ch-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.ch-bar i { display: block; height: 100%; border-radius: 4px; background: #8b5cf6; transition: width .4s ease; }
.ch-r.ok .ch-bar i, .ch-r.got .ch-bar i { background: #4ade80; }
.ch-r.got .ch-m b { color: rgba(255,255,255,.55); }
.ch-go, .ch-claim { all: unset; box-sizing: border-box; cursor: pointer; flex: none; min-width: 64px; height: 38px; padding: 0 10px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 750; font-variant-numeric: tabular-nums; }
.ch-go { background: rgba(255,255,255,.06); color: rgba(255,255,255,.85); line-height: 1.1; }
.ch-go small { font-size: 10px; font-weight: 600; color: rgba(255,255,255,.45); }
.ch-claim { background: #4ade80; color: #052e16 !important; -webkit-text-fill-color: #052e16; animation: chPulse 1.8s ease-in-out infinite; }
.ch-claim[disabled] { background: rgba(255,255,255,.06); color: rgba(255,255,255,.45) !important; -webkit-text-fill-color: rgba(255,255,255,.45); animation: none; cursor: default; }
.ch-done { flex: none; width: 64px; text-align: center; color: #4ade80; font-weight: 800; }
.ch-bonus { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px dashed rgba(255,255,255,.12); }
.ch-bonus.ok { border-style: solid; border-color: rgba(74,222,128,.4); background: rgba(74,222,128,.07); }
.ch-bonus b { display: block; color: #fff; font-size: 13.5px; } .ch-bonus small { color: rgba(255,255,255,.5); font-size: 12px; }
@keyframes chPulse { 50% { box-shadow: 0 0 0 5px rgba(74,222,128,.18); } }
#chtoast { all: unset; box-sizing: border-box; cursor: pointer; position: fixed; left: 50%; top: calc(var(--sat, 0px) + 10px); transform: translate(-50%, -140%); z-index: 1000; width: min(92vw, 420px); display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(22,22,30,.96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(74,222,128,.35); box-shadow: 0 12px 40px rgba(0,0,0,.5); transition: transform .45s cubic-bezier(.2,.9,.2,1.1); }
#chtoast.on { transform: translate(-50%, 0); }
#chtoast > i { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #4ade80; color: #052e16; font-style: normal; font-weight: 900; }
#chtoast span { display: flex; flex-direction: column; min-width: 0; }
#chtoast b { color: #fff; font-size: 14px; } #chtoast small { color: rgba(255,255,255,.6); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- weekly tournament ---------- */
.tn-cup { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(251,191,36,.12); color: #fbbf24; }
.tn-cup svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tn-mini { display: grid; grid-template-columns: repeat(3, 1fr); margin: 6px 0 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); }
.tn-mini div { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; } .tn-mini div + div { border-left: 1px solid rgba(255,255,255,.06); }
.tn-mini small { color: rgba(255,255,255,.45); font-size: 11px; } .tn-mini b { color: #fff; font-size: 16px; font-variant-numeric: tabular-nums; }
#tns .tn { --pad: 16px; padding: 4px var(--pad) calc(var(--sab, 0px) + 40px); display: flex; flex-direction: column; gap: 12px; max-width: 600px; margin: 0 auto; width: 100%; box-sizing: border-box; }
#tns .tn > * { flex-shrink: 0; }
.tn-hero { position: relative; overflow: hidden; text-align: center; padding: 26px 18px 18px; border-radius: 20px; border: 1px solid rgba(251,191,36,.25); background: radial-gradient(120% 90% at 50% 0%, rgba(251,191,36,.18), rgba(139,92,246,.08) 55%, #0f0f15 85%); }
.tn-hero.tn-originals { border-color: rgba(167,139,250,.3); background: radial-gradient(120% 90% at 50% 0%, rgba(167,139,250,.22), rgba(56,189,248,.06) 55%, #0f0f15 85%); }
.tn-hero.tn-table { border-color: rgba(74,222,128,.25); background: radial-gradient(120% 90% at 50% 0%, rgba(74,222,128,.16), rgba(251,191,36,.05) 55%, #0f0f15 85%); }
.tn-cup.big { width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 10px; background: rgba(251,191,36,.16); }
.tn-cup.big svg { width: 30px; height: 30px; }
.tn-hero > small { color: rgba(255,255,255,.55); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tn-hero h1 { margin: 4px 0 0; color: #fff; font-size: 28px; font-weight: 800; letter-spacing: -.025em; }
.tn-hero p { margin: 6px 0 0; color: rgba(255,255,255,.6); font-size: 13.5px; }
.tn-clock { display: inline-flex; gap: 8px; align-items: baseline; margin-top: 14px; padding: 7px 14px; border-radius: 99px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08); }
.tn-clock span { color: rgba(255,255,255,.55); font-size: 12px; } .tn-clock b { color: #fff; font-size: 14px; font-variant-numeric: tabular-nums; }
.tn-me { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 0 14px; border-radius: 14px; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.07); }
.tn-me div { padding: 11px 8px; display: flex; flex-direction: column; gap: 2px; } .tn-me div + div { border-left: 1px solid rgba(255,255,255,.07); }
.tn-me small { color: rgba(255,255,255,.5); font-size: 11px; } .tn-me b { color: #fff; font-size: 19px; font-variant-numeric: tabular-nums; } .tn-me b i { font-style: normal; color: rgba(255,255,255,.4); font-size: 13px; font-weight: 500; }
.tn-claim { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-radius: 16px; background: linear-gradient(120deg, rgba(251,191,36,.18), rgba(251,191,36,.04)); border: 1px solid rgba(251,191,36,.4); }
.tn-claim small { display: block; color: rgba(255,255,255,.55); font-size: 11.5px; } .tn-claim b { display: block; color: #fff; font-size: 15px; } .tn-claim span { color: #fbbf24; font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.tn-claim .e7-btn { width: auto; padding: 0 20px; margin: 0; }
.tn-test { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 11px; border: 1px dashed rgba(255,255,255,.14); font-size: 11.5px; color: rgba(255,255,255,.4); }
.tn-test span { flex: 1; } .tn-test button { all: unset; cursor: pointer; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.07); color: #fff; font-size: 12px; font-weight: 600; }
.tn-top, .tn-lb, .tn-prz { border-radius: 16px; background: #0f0f15; border: 1px solid rgba(255,255,255,.07); overflow: hidden; }
.tn-top > div { display: flex; align-items: center; gap: 12px; padding: 11px 14px; }
.tn-top > div + div { border-top: 1px solid rgba(255,255,255,.05); }
.tn-top span { width: 20px; color: rgba(255,255,255,.4); font-size: 12px; font-weight: 700; }
.tn-top b { flex: 1; color: #fff; font-size: 14px; font-weight: 600; } .tn-top em { font-style: normal; color: #fbbf24; font-weight: 800; font-variant-numeric: tabular-nums; }
.tn-top .e b { color: rgba(255,255,255,.3); font-weight: 500; } .tn-top .e em { color: rgba(255,255,255,.25); }
.tn-top footer { display: flex; justify-content: space-between; padding: 11px 14px; border-top: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.025); color: rgba(255,255,255,.6); font-size: 13px; }
.tn-top footer b { flex: none; color: #fff; font-size: 15px; font-variant-numeric: tabular-nums; }
.tn-r { display: grid; grid-template-columns: 28px 30px minmax(0, 1fr) auto 62px; align-items: center; gap: 10px; padding: 10px 14px; font-variant-numeric: tabular-nums; }
.tn-r + .tn-r { border-top: 1px solid rgba(255,255,255,.05); }
.tn-r.me { background: rgba(139,92,246,.12); }
.tn-rk { color: rgba(255,255,255,.45); font-weight: 800; font-size: 13px; text-align: center; }
.tn-r.p1 .tn-rk { color: #fbbf24; } .tn-r.p2 .tn-rk { color: #d1d5db; } .tn-r.p3 .tn-rk { color: #d6965a; }
.tn-av { width: 30px; height: 30px; border-radius: 50%; background: #23232e; display: grid; place-items: center; overflow: hidden; }
.tn-av img { width: 100%; height: 100%; object-fit: cover; } .tn-av span { color: #fff; font-weight: 700; font-size: 12px; }
.tn-r b { color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tn-r b em { font-style: normal; font-size: 10.5px; color: #c4b5fd; margin-left: 4px; }
.tn-sc { color: #fff; font-weight: 750; font-size: 14px; } .tn-pz { text-align: right; color: #fbbf24; font-size: 12px; font-weight: 700; }
.tn-prz > div { display: flex; justify-content: space-between; padding: 10px 14px; font-size: 13.5px; color: rgba(255,255,255,.7); }
.tn-prz > div + div { border-top: 1px solid rgba(255,255,255,.05); } .tn-prz b { color: #fbbf24; font-variant-numeric: tabular-nums; }
.tn-how { padding: 16px; border-radius: 16px; background: #0c0c11; border: 1px solid rgba(255,255,255,.06); }
.tn-how > b { color: #fff; font-size: 14px; }
.tn-how ul { margin: 10px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 7px; color: rgba(255,255,255,.6); font-size: 13px; line-height: 1.5; }
.tn-load, .tn-empty { text-align: center; padding: 24px; border-radius: 16px; background: #0f0f15; border: 1px solid rgba(255,255,255,.07); color: rgba(255,255,255,.5); font-size: 13px; }
.tn-empty b { display: block; color: #fff; font-size: 15px; } .tn-empty p { margin: 4px 0 0; }
#tntoast { position: fixed; left: 50%; bottom: calc(var(--sab, 0px) + 96px); transform: translateX(-50%); padding: 9px 14px; border-radius: 12px; background: rgba(30,24,8,.95); border: 1px solid rgba(251,191,36,.4); color: #fde68a; font-size: 13px; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; z-index: 999; }
#tntoast.on { animation: tnToast 2.6s ease forwards; }
@keyframes tnToast { 0% { opacity: 0; transform: translate(-50%, 8px); } 10%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }

/* ---------- who's that pokémon ---------- */
.gp-mini { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(239,68,68,.12); }
.gp-mini i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #f87171; background: linear-gradient(#f87171 0 45%, #fff 45% 55%, #fef2f2 55%); box-sizing: border-box; position: relative; }
.gp-mini i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; border: 2px solid #f87171; }
#gps .gp { --pad: 16px; padding: 6px var(--pad) calc(var(--sab, 0px) + 40px); display: flex; flex-direction: column; gap: 12px; max-width: 520px; margin: 0 auto; width: 100%; box-sizing: border-box; }
#gps .gp > * { flex-shrink: 0; }
.gp-n { justify-self: end; color: rgba(255,255,255,.55); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
#gps>.e7-nb{margin:0;padding-left:16px;padding-right:16px}
.gp-load { padding: 70px 24px; text-align: center; color: rgba(255,255,255,.55); font-size: 14px; line-height: 1.6; }
.gp-retry { all: unset; cursor: pointer; color: #c4b5fd; font-weight: 700; text-decoration: underline; }
.gp-dots { display: flex; justify-content: center; gap: 6px; padding-top: 4px; }
.gp-dots i { width: 28px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); }
.gp-dots i.now { background: rgba(255,255,255,.6); } .gp-dots i.ok { background: #4ade80; } .gp-dots i.no { background: #f87171; }
.gp-stage { position: relative; aspect-ratio: 1.15; border-radius: 22px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 55%, #2b2550 0%, #15122a 55%, #0b0a14 100%); border: 1px solid rgba(167,139,250,.2); }
.gp-rays { position: absolute; inset: -40%; background: repeating-conic-gradient(from 0deg, rgba(167,139,250,.07) 0deg 10deg, transparent 10deg 20deg); animation: gpSpin 40s linear infinite; }
.gp-img { position: relative; width: 74%; height: 74%; object-fit: contain; filter: brightness(0) drop-shadow(0 0 18px rgba(167,139,250,.55)); opacity: 0; transform: scale(.94); transition: filter .7s ease, transform .7s cubic-bezier(.2,.9,.2,1.2), opacity .4s; -webkit-user-drag: none; user-select: none; pointer-events: none; }
.gp-stage.ld .gp-img { opacity: 1; transform: scale(1); }
.gp-stage.rev .gp-img { filter: none; transform: scale(1.04); }
.gp-stage.ok { border-color: rgba(74,222,128,.45); } .gp-stage.no { border-color: rgba(248,113,113,.4); }
.gp-q { position: absolute; right: 16px; top: 12px; color: rgba(196,181,253,.6); font-size: 26px; font-weight: 900; }
.gp-stage.rev .gp-q { display: none; }
.gp-err { position: absolute; display: none; color: rgba(255,255,255,.5); font-size: 13px; }
.gp-stage.err .gp-err { display: block; }
@keyframes gpSpin { to { transform: rotate(360deg); } }
.gp-form { position: relative; }
.gp-in { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 6px 0 16px; border-radius: 16px; background: #14141c; border: 1.5px solid rgba(255,255,255,.1); }
.gp-in:focus-within { border-color: #a78bfa; }
.gp-in input { all: unset; flex: 1; min-width: 0; color: #fff; font-size: 17px; font-weight: 600; }
.gp-in input::placeholder { color: rgba(255,255,255,.35); font-weight: 500; }
.gp-in button { all: unset; cursor: pointer; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #8b5cf6; }
.gp-in button svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gp-in.shake { animation: gpShake .4s ease; }
@keyframes gpShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.gp-sug { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gp-sug:empty { display: none; }
.gp-sug button { all: unset; cursor: pointer; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.07); color: #fff; font-size: 13.5px; font-weight: 600; }
.gp-warn { margin: 0; color: #fca5a5; font-size: 12.5px; }
.gp-miss { display: flex; flex-wrap: wrap; gap: 6px; }
.gp-miss span { padding: 5px 10px; border-radius: 8px; background: rgba(248,113,113,.1); color: #fca5a5; font-size: 12.5px; font-weight: 600; text-decoration: line-through; text-decoration-color: rgba(252,165,165,.5); }
.gp-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12.5px; color: rgba(255,255,255,.55); }
.gp-row button { all: unset; cursor: pointer; color: #c4b5fd; font-weight: 700; font-size: 12.5px; }
.gp-row button small { color: rgba(196,181,253,.6); font-weight: 600; }
.gp-hints { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gp-hints span { padding: 10px 12px; border-radius: 12px; background: #0f0f15; border: 1px dashed rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gp-hints span.on { border-style: solid; border-color: rgba(167,139,250,.35); background: rgba(139,92,246,.08); }
.gp-hints small { color: rgba(255,255,255,.45); font-size: 11px; }
.gp-hints b { color: rgba(255,255,255,.35); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .02em; }
.gp-hints span.on b { color: #fff; }
.gp-skip { all: unset; cursor: pointer; align-self: center; color: rgba(255,255,255,.4); font-size: 12.5px; font-weight: 600; padding: 4px; }
.gp-sub { margin: 0; text-align: center; color: rgba(255,255,255,.55); font-size: 13px; }
.gp-mc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gp-mc button { all: unset; box-sizing: border-box; cursor: pointer; text-align: center; padding: 15px 10px; border-radius: 14px; background: #14141c; border: 1px solid rgba(255,255,255,.1); color: #fff; font-size: 15px; font-weight: 650; }
.gp-mc button:active { background: #1d1d28; }
.gp-res { text-align: center; padding: 6px 0 2px; animation: gpPop .5s cubic-bezier(.2,.9,.2,1.2); }
.gp-res small { color: rgba(255,255,255,.55); font-size: 13px; font-weight: 600; }
.gp-res b { display: block; color: #fff; font-size: 30px; font-weight: 850; letter-spacing: -.02em; margin: 2px 0; }
.gp-res span { color: rgba(255,255,255,.5); font-size: 13px; font-variant-numeric: tabular-nums; }
.gp-res.ok small { color: #4ade80; } .gp-res.no small { color: #fca5a5; }
@keyframes gpPop { from { opacity: 0; transform: scale(.9); } }
.gp-sum { text-align: center; padding: 24px 16px 18px; border-radius: 20px; background: radial-gradient(120% 90% at 50% 0%, rgba(139,92,246,.2), #0f0f15 75%); border: 1px solid rgba(167,139,250,.25); }
.gp-sum small { color: rgba(255,255,255,.55); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.gp-sum h1 { margin: 4px 0; color: #fff; font-size: 44px; font-weight: 850; }
.gp-sum p { margin: 0 0 10px; color: rgba(255,255,255,.6); font-size: 13.5px; }
.gp-sum b { color: #4ade80; font-size: 20px; font-variant-numeric: tabular-nums; }
.gp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.gp-cell { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 6px; border-radius: 14px; background: #0f0f15; border: 1px solid rgba(255,255,255,.07); min-width: 0; }
.gp-cell.ok { border-color: rgba(74,222,128,.3); } .gp-cell.no img { filter: grayscale(.8) brightness(.7); }
.gp-cell img { width: 72px; height: 72px; object-fit: contain; }
.gp-cell b { color: #fff; font-size: 13px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-cell small { color: rgba(255,255,255,.45); font-size: 11px; }
/* image fallback */
.gp-err { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; }
.gp-stage.err .gp-err { display: flex; }
.gp-stage.err .gp-img, .gp-stage.err .gp-q { display: none; }
.gp-err b { color: #fff; font-size: 17px; font-weight: 750; }
.gp-err small { max-width: 260px; color: rgba(255,255,255,.55); font-size: 12.5px; line-height: 1.5; }
.gp-err button { all: unset; cursor: pointer; margin-top: 4px; padding: 8px 14px; border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; font-size: 13px; font-weight: 650; }
.gp-ball { width: 56px; height: 56px; border-radius: 50%; position: relative; box-sizing: border-box; border: 3px solid rgba(196,181,253,.55); background: linear-gradient(rgba(167,139,250,.35) 0 46%, rgba(196,181,253,.55) 46% 54%, rgba(255,255,255,.06) 54%); }
.gp-ball::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; transform: translate(-50%, -50%); border-radius: 50%; background: #15122a; border: 3px solid rgba(196,181,253,.7); }
.gp-cell .gp-ball.sm { display: none; width: 56px; height: 56px; margin: 8px 0; }
.gp-cell.err img { display: none; } .gp-cell.err .gp-ball.sm { display: block; }
