/* GRISHKA_GRIPASS_V16_3 — seasonal pass UI. */
#relation.gp-level-label { display:block !important; font-size:12px; color:var(--muted); font-weight:700; }
.gp-nav .gp-chevrons { display:block; width:23px; height:23px; margin:auto; background:currentColor; -webkit-mask:url('/static/assets/gripass_chevrons.png?v=16_1') center/contain no-repeat; mask:url('/static/assets/gripass_chevrons.png?v=16_1') center/contain no-repeat; }
.gp-page { padding-bottom: 50px; }
.gp-loading { text-align:center; padding:40px 15px; color:var(--muted); }
.gp-header { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:8px 0 14px; }
.gp-header h1 { font-size:25px; margin:0 0 4px; color:var(--text); font-weight:850; }
.gp-season { color:var(--muted); font-size:12px; font-weight:650; }
.gp-level-chip { border:1px solid var(--stroke); border-radius:14px; background:var(--surface-2); color:var(--text); padding:10px 12px; font-weight:850; font-variant-numeric:tabular-nums; white-space:nowrap; }
.gp-progress-wrap { padding:14px 14px 8px; border:1px solid var(--stroke); border-radius:17px; background:var(--surface); margin-bottom:16px; }
.gp-progress-meta { display:flex; justify-content:space-between; gap:10px; font-size:12px; font-weight:750; color:var(--text); }
.gp-progress { margin:10px 0 7px; height:9px; border-radius:50px; overflow:hidden; background:var(--surface-3); }
.gp-progress-current {height:100%; background:var(--accent); border-radius:50px; transition:width .7s cubic-bezier(.2,.9,.2,1); }
.gp-progress-wrap p {margin:5px 0 3px;font-size:11px;color:var(--muted);line-height:1.4}
.gp-tracks-head { display:grid; grid-template-columns:minmax(0,1fr) 29px minmax(0,1fr); gap:6px; margin:0 0 12px; position:relative; z-index:1; }
.gp-track-free, .gp-track-plus { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; min-width:0; min-height:72px; padding:9px 4px; background:var(--surface); border:1.5px solid var(--stroke-2); border-radius:15px; color:var(--text); }
.gp-track-free strong, .gp-track-plus strong {font-size:14px;letter-spacing:-.2px;}
.gp-track-free small, .gp-track-plus small {font-size:11px;color:var(--muted);margin-top:5px;}
.gp-track-plus { border-color:var(--accent); }
.gp-track-plus.active { box-shadow:0 0 0 1px var(--accent),0 8px 25px color-mix(in srgb,var(--accent) 20%, transparent); }
.gp-stars { font:inherit; font-size:11px; font-weight:850; padding:7px 8px; border-radius:9px; color:var(--accent-ink,#fff); border:1px solid var(--accent); background:linear-gradient(110deg,color-mix(in srgb,var(--accent) 80%, #fff 20%), color-mix(in srgb,var(--accent) 90%, #000 10%), color-mix(in srgb,var(--accent) 65%, #fff 35%)); background-size:220% 100%; animation:gpShimmer 4.8s linear infinite; opacity:.95; margin-top:6px; cursor:pointer; }
.gp-stars:active { transform:scale(.97); }
.gp-mascot-card { display:grid; grid-template-columns:1fr; gap:12px; margin:0 0 16px; padding:14px; border:1px solid var(--stroke); border-radius:18px; background:radial-gradient(circle at top, color-mix(in srgb,var(--accent) 16%, transparent), transparent 55%), var(--surface); overflow:hidden; }
.gp-mascot-title { font-size:16px; font-weight:900; color:var(--text); margin-bottom:4px; }
.gp-mascot-sub { font-size:12px; color:var(--muted); line-height:1.45; }
.gp-mascot-stage { position:relative; min-height:260px; }
.gp-mascot-board { position:relative; height:260px; overflow:hidden; border-radius:16px; background:linear-gradient(180deg, color-mix(in srgb,var(--accent) 16%, transparent), transparent 60%); }
.gp-mascot-board::after { content:''; position:absolute; left:0; right:0; bottom:22px; height:2px; background:linear-gradient(90deg, transparent, color-mix(in srgb,var(--accent) 45%, #fff 55%), transparent); opacity:.35; }
.gp-mascot { position:absolute; left:50%; bottom:0; transform:translateX(calc(-50% + var(--x, 0px))); transition:transform .42s cubic-bezier(.22,.85,.2,1.07); cursor:pointer; user-select:none; }
.gp-mascot img { width:min(100%, 250px); height:auto; display:block; animation:gpBreath 2.8s ease-in-out infinite; filter:drop-shadow(0 12px 24px rgba(0,0,0,.24)); }
.gp-mascot.move img { animation-duration:.8s; }
.gp-trail { position:absolute; width:28px; height:20px; pointer-events:none; border-radius:50% 50% 50% 20%; background:radial-gradient(circle at 35% 35%, rgba(255,255,255,.95), rgba(151,247,255,.85) 35%, rgba(31,214,255,.45) 60%, transparent 72%); filter:blur(2px); animation:gpTrail .5s ease-out forwards; mix-blend-mode:screen; }
.gp-timeline { position:relative; }
.gp-spine, .gp-spine-fill {position:absolute; z-index:0; pointer-events:none; left:50%; transform:translateX(-50%); top:64px; width:4px; height:calc(100% - 128px); border-radius:10px; background:var(--surface-3); }
.gp-spine-fill { transform:translateX(-50%) scaleY(var(--gp-ratio)); transform-origin:top center; background:var(--accent); box-shadow:0 0 11px color-mix(in srgb, var(--accent) 42%, transparent); transition:transform .7s ease; }
.gp-step { display:grid; grid-template-columns:minmax(0,1fr) 29px minmax(0,1fr); gap:6px; min-height:128px; align-items:center; position:relative; }
.gp-node-wrap {display:grid; place-items:center; position:relative; z-index:2; align-self:center;}
.gp-node {font-size:11px; font-weight:900; width:29px; height:29px; display:grid; place-items:center; border:2px solid var(--stroke-2); border-radius:100%; background:var(--surface); color:var(--muted); box-shadow:0 1px 5px rgba(0,0,0,.10); transition:all .35s ease; font-variant-numeric:tabular-nums; }
.gp-step.cleared .gp-node { background:var(--accent); border-color:var(--accent); color:var(--accent-ink,#fff); box-shadow:0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent); }
.gp-branch { position:relative; min-width:0; z-index:1; }
.gp-branch::after { content:''; position:absolute; z-index:0; top:50%; height:3px; background:var(--surface-3); width:6px; }
.gp-branch.gp-free-side::after { right:-6px; }
.gp-branch.gp-premium-side::after { left:-6px; }
.gp-step.cleared .gp-branch::after {background:var(--accent);}
.gp-reward { position:relative; width:100%; min-height:85px; border-radius:13px; padding:9px 4px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; background:var(--surface); border:1px solid var(--stroke); color:var(--text); text-align:center; box-shadow:var(--shadow-sm); font:inherit; line-height:1.25; }
.gp-reward-emoji { font-size:20px; line-height:1; }
.gp-reward-label {font-size:11px;font-weight:800;white-space:normal;overflow-wrap:anywhere;}
.gp-reward-status {font-size:10px;font-weight:750;color:var(--muted);}
.gp-reward.locked {filter:grayscale(1);opacity:.64;}
.gp-reward.done {border-color:var(--good);background:color-mix(in srgb, var(--good) 10%, var(--surface));}
.gp-reward.done .gp-reward-status {color:var(--good);}
.gp-reward.ready {cursor:pointer;border-color:var(--accent); box-shadow:0 0 0 1px var(--accent),0 4px 15px color-mix(in srgb, var(--accent) 20%, transparent); animation:gpPulse 2.6s ease-in-out infinite; }
.gp-reward:active {transform:scale(.96);} .gp-reward.done:active,.gp-reward.locked:active{transform:scale(.98);}
.gp-mini-can {width:20px;height:29px;object-fit:contain;}
.gp-end {margin:20px 0 24px; padding:20px 16px; display:flex; flex-direction:column; align-items:center; gap:8px; border:1px solid var(--stroke); background:var(--surface); border-radius:17px; text-align:center; }
.gp-end>span {font-size:13px;font-weight:750;color:var(--muted);} .gp-end>strong {font-size:18px;color:var(--text);font-variant-numeric:tabular-nums;line-height:1.5;} .gp-end>small {font-size:11px;color:var(--muted);line-height:1.5;}
#gp-battery {position:fixed; right:14px; bottom:calc(82px + env(safe-area-inset-bottom,0px)); z-index:68; min-width:56px; height:54px; display:flex; align-items:center; justify-content:center; gap:6px; padding:6px 9px; border:1px solid var(--stroke-2); color:var(--text); background:var(--bg-2); box-shadow:0 5px 25px rgba(0,0,0,.19);border-radius:18px;cursor:pointer; font:inherit; opacity:0; pointer-events:none; transform:translateY(8px); transition:opacity .22s ease, transform .22s ease; }
#gp-battery.show {opacity:1; pointer-events:auto; transform:none; }
#gp-battery img { width:22px; height:32px; object-fit:contain; display:block; } #gp-battery strong {font-size:13px;font-weight:900;font-variant-numeric:tabular-nums;} #gp-battery:active {transform:scale(.94);} .gp-modal-back {position:fixed; inset:0; z-index:150; display:flex;justify-content:center;align-items:center; padding:22px; background:rgba(0,0,0,.62); backdrop-filter:blur(8px); opacity:0; pointer-events:none; transition:opacity .24s ease;} .gp-modal-back.show {opacity:1;pointer-events:auto;} .gp-modal {position:relative;width:min(100%,360px);display:flex;flex-direction:column;align-items:center;gap:10px; border-radius:24px;padding:24px 20px 20px;background:var(--surface);color:var(--text); border:1px solid var(--stroke-2);box-shadow:0 16px 50px rgba(0,0,0,.30); transform:translateY(12px) scale(.95);transition:transform .24s ease;text-align:center;} .gp-modal-back.show .gp-modal {transform:none;} .gp-can {width:94px;height:128px;object-fit:contain;filter:drop-shadow(0 9px 12px rgba(75,20,160,.3));} .gp-can-small{width:74px;height:102px;} .gp-reward-pop{font-size:42px;line-height:1;} .gp-modal h3 {font-size:21px;margin:3px 0 0;font-weight:850;} .gp-modal p {font-size:13px;color:var(--muted);line-height:1.45;margin:0;} .gp-modal-content{display:flex;flex-direction:column;align-items:center;gap:10px;} .gp-plus-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%;}.gp-plus-summary>div{border:1px solid var(--stroke);background:var(--surface-2);border-radius:14px;padding:10px 8px;display:flex;flex-direction:column;gap:3px}.gp-plus-summary b{font-size:18px;color:var(--text)}.gp-plus-summary span{font-size:11px;color:var(--muted)} .gp-cans-note {font-size:12px;color:var(--muted);} .gp-modal-buttons {display:flex;gap:9px;width:100%;margin-top:10px;} .gp-modal-buttons button {flex:1;min-width:0;border-radius:12px;padding:12px 8px;border:1px solid var(--stroke-2); font:inherit;font-size:12px;font-weight:800;cursor:pointer;} .gp-cancel {background:var(--surface-2);color:var(--text);} .gp-confirm {background:var(--accent);color:var(--accent-ink,#fff);border-color:var(--accent)!important;} .gp-confirm:disabled {opacity:.45;cursor:not-allowed;} .gp-close {position:absolute;top:10px;right:12px;border:0;background:transparent;color:var(--muted); font-size:25px;line-height:1;padding:4px;cursor:pointer;} .gp-diamond{filter:drop-shadow(0 0 6px color-mix(in srgb,var(--accent) 65%, transparent));}
@keyframes gpPulse{0%,100%{box-shadow:0 0 0 1px var(--accent),0 4px 15px color-mix(in srgb,var(--accent) 16%,transparent)}50%{box-shadow:0 0 0 2px var(--accent),0 5px 22px color-mix(in srgb,var(--accent) 40%,transparent)}}
@keyframes gpShimmer{0%{background-position:0% 50%}100%{background-position:200% 50%}}
@keyframes gpBreath{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-4px) scale(1.014)}}
@keyframes gpTrail{0%{opacity:.9;transform:scale(.8)}100%{opacity:0;transform:translateY(-12px) scale(1.5)}}
@media (max-width:360px){ .gp-step {min-height:122px;gap:4px;} .gp-tracks-head {gap:4px;}.gp-reward-label{font-size:10px;} .gp-header h1{font-size:22px;} .gp-mascot-stage,.gp-mascot-board{min-height:230px;height:230px} .gp-plus-summary{grid-template-columns:1fr;} }
@media (prefers-reduced-motion:reduce){.gp-reward.ready,.gp-stars,.gp-mascot img{animation:none!important;} .gp-modal,.gp-modal-back,#gp-battery,.gp-progress-current,.gp-mascot{transition:none!important;} }

/* HOTFIX 16.2 — full figure stays inside the season panel on narrow screens. */
.gp-mascot-stage,.gp-mascot-board { min-height:310px; height:310px; }
.gp-mascot { bottom:8px; display:flex; justify-content:center; align-items:flex-end; }
.gp-mascot img { width:auto; height:285px; max-height:calc(100% - 10px); max-width:min(90vw,235px); object-fit:contain; object-position:center bottom; }
@media (max-width:360px) {
  .gp-mascot-stage,.gp-mascot-board { min-height:285px; height:285px; }
  .gp-mascot img { height:255px; max-width:min(88vw,205px); }
}

/* v16.3 CSS isolation: NEVER use .plus for premium reward — .plus is tap particle animation! */
.gp-timeline .gp-branch.gp-premium-side {
  position:relative; opacity:1; pointer-events:auto; transform:none; animation:none;
  display:block; width:100%; min-width:0; font-size:inherit; letter-spacing:normal; text-shadow:none;
}
.gp-exclusive-reward .gp-reward { border-color:#e859ee; box-shadow:0 0 0 1px rgba(248,71,238,.55),0 0 25px rgba(187,55,234,.28); background:linear-gradient(135deg,#211132,#131a40); }
.gp-exclusive-icon {font-size:21px;line-height:1}
.gp-exclusive-title {font-size:11px;font-weight:900;line-height:1.25; background:linear-gradient(105deg,#ff73f6,#8af8ff,#f78bff);background-size:210% 100%; color:transparent;-webkit-background-clip:text;background-clip:text;animation:gpRetroText 3.8s linear infinite;}
.gp-exclusive-sub {font-size:9px;color:#dfb9f4;line-height:1.3}
.gp-exclusive-preview {display:flex;align-items:flex-end;justify-content:center;width:180px;height:96px;padding:12px;
 background:radial-gradient(circle at 50% 39%,#ffa75c 0 18%,#fc5fc0 19% 27%,transparent 28%),
 linear-gradient(0deg,rgba(10,6,29,.95),transparent 35%),repeating-linear-gradient(0deg,transparent 0 14px,rgba(241,73,235,.28) 15px 16px),
 linear-gradient(160deg,#180b31,#36124b 62%,#160826);border:1px solid #ff7cef;border-radius:12px;box-shadow:0 0 22px #ec43ff63;overflow:hidden}
.gp-exclusive-preview span{font-size:11px;font-weight:900;letter-spacing:2px;color:#8df5ff;text-shadow:0 0 8px #38dfff}
@keyframes gpRetroText {from{background-position:0 50%}to{background-position:210% 50%}}
@media (prefers-reduced-motion:reduce){.gp-exclusive-title{animation:none}}

.gp-theme-exclusive{display:block;color:#ef8fee;font-size:10px;font-weight:850;margin-top:3px;text-shadow:0 0 8px #eb59d77a}
body[data-theme="synthwave"] .gp-theme-exclusive{color:#6ceeff}
.gp-exclusive-reward .gp-reward.locked{filter:none;opacity:.78}
