/* =========================================================
   "Player One" — a game-style student portfolio
   Glossy game UI · telescope hero · rocket-thread nav
   ========================================================= */

@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }

:root {
  --bg: #f2efff;
  --ink: #1a1446;
  --muted: #625c8f;
  --card: #ffffff;
  --soft: #f4f1ff;
  --track: #ebe6ff;
  --g-blue: linear-gradient(150deg, #4f8bff, #7a5cff);
  --g-pink: linear-gradient(150deg, #ff5fa2, #ff8a4c);
  --g-lime: linear-gradient(150deg, #2fd27a, #16b8c9);
  --g-sun: linear-gradient(150deg, #ffc93d, #ff7a2b);
  --g-violet: linear-gradient(150deg, #a35cff, #ff5fd0);
  --g-sky: linear-gradient(150deg, #38c8ff, #4f6bff);
  --g-text: linear-gradient(90deg, #6c4cff, #ff5fa2, #ffa21e, #22c97a, #38a8ff, #6c4cff);
  --shadow: 0 24px 50px -24px rgba(70, 45, 190, 0.45);
  --shadow-sm: 0 10px 24px -12px rgba(70, 45, 190, 0.4);
  --head: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Outfit", "Segoe UI", system-ui, sans-serif;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --pad: clamp(16px, 4vw, 48px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.locked { overflow: hidden; }
h1, h2, h3, h4, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
img { display: block; max-width: 100%; }
::selection { background: #6c4cff; color: #fff; }
:focus-visible { outline: 3px solid #6c4cff; outline-offset: 4px; border-radius: 12px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
.glass { background: rgba(255, 255, 255, 0.66); border: 1.5px solid rgba(255, 255, 255, 0.9); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: var(--shadow); }
.grad { background: var(--g-text); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradMove 8s linear infinite; }

/* ---------- glossy game buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border-radius: 18px; font-family: var(--head); font-size: 1.12rem; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; transition: transform 0.3s var(--spring), box-shadow 0.2s; }
.btn:hover { transform: translateY(-3px) scale(1.03); }
.btn:active { transform: translateY(2px) scale(0.98); }
.btn-go { background: linear-gradient(180deg, #5cf08c, #14bd57); color: #fff; text-shadow: 0 2px 0 rgba(0, 90, 30, 0.35); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.16), inset 0 3px 0 rgba(255, 255, 255, 0.5), 0 12px 24px -8px rgba(20, 189, 87, 0.75); }
.btn-go::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent); transform: skewX(-20deg); animation: btnShine 3.2s ease-in-out infinite; }
.btn-alt { background: #fff; color: var(--ink); box-shadow: inset 0 -5px 0 rgba(26, 20, 70, 0.09), 0 12px 24px -12px rgba(70, 45, 190, 0.45); }
.btn-xl { font-size: 1.6rem; padding: 18px 44px; border-radius: 22px; }
.btn-sm { font-size: 0.95rem; padding: 10px 18px; border-radius: 14px; }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* ---------- mesh background ---------- */
.mesh { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; background: linear-gradient(160deg, #e6eeff, #f6ebff 45%, #fff2ec); }
.mesh i { position: absolute; width: 55vmax; height: 55vmax; border-radius: 50%; filter: blur(70px); opacity: 0.6; animation: blob 18s ease-in-out infinite alternate; }
.mesh i:nth-child(1) { background: #8fb2ff; left: -15%; top: -20%; }
.mesh i:nth-child(2) { background: #ffa6d2; right: -18%; top: -10%; animation-delay: -6s; }
.mesh i:nth-child(3) { background: #a3f5c8; left: 10%; bottom: -35%; animation-delay: -12s; }
.mesh i:nth-child(4) { background: #ffd98a; right: 5%; bottom: -30%; width: 40vmax; height: 40vmax; animation-delay: -3s; }

/* ---------- loader ---------- */
.loader { display: none; }
.js .loader { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; text-align: center; clip-path: circle(150% at 50% 50%); }
.loader.gone, .failsafe .loader { display: none !important; }
.ld-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 0 20px; }
.ld-logo { font-family: var(--head); font-size: clamp(3.2rem, 11vw, 7.4rem); line-height: 0.9; }
.ld-logo span { display: block; color: #fff; text-shadow: 0 4px 0 #8a6cff, 0 8px 0 #6c4cff, 0 12px 0 #4a2fd6, 0 26px 30px rgba(74, 47, 214, 0.45); }
.ld-logo span:last-child { color: #ffd23d; text-shadow: 0 4px 0 #ffa21e, 0 8px 0 #ff7a2b, 0 12px 0 #e0561a, 0 26px 30px rgba(224, 86, 26, 0.4); }
.ld-bar { width: min(340px, 72vw); height: 20px; margin-top: 14px; border-radius: 99px; background: #fff; box-shadow: inset 0 3px 6px rgba(26, 20, 70, 0.12), var(--shadow-sm); padding: 4px; }
.ld-bar i { display: block; width: 0; height: 100%; border-radius: 99px; background: repeating-linear-gradient(-45deg, #6c4cff 0 10px, #8a6cff 10px 20px); animation: stripes 0.8s linear infinite; }
.ld-tip { color: var(--muted); font-weight: 600; }
.ld-play { opacity: 0; transform: scale(0.6); pointer-events: none; transition: opacity 0.4s, transform 0.6s var(--spring); }
.loader.ready .ld-play { opacity: 1; transform: none; pointer-events: auto; animation: pulse 1.4s ease-in-out infinite 0.6s; }

/* ---------- reveals ---------- */
.rv { transition: opacity 0.7s var(--ease), translate 0.9s var(--spring), scale 0.9s var(--spring), transform 0.4s var(--spring), box-shadow 0.3s; transition-delay: calc(var(--d, 0) * 110ms), calc(var(--d, 0) * 110ms), calc(var(--d, 0) * 110ms), 0s, 0s; }
.js .rv { opacity: 0; translate: 0 60px; scale: 0.94; }
.js .rv.in, .failsafe .rv { opacity: 1; translate: none; scale: 1; }

/* ---------- section heads ---------- */
.section { position: relative; padding: clamp(80px, 10vw, 130px) 0; }
.head { margin-bottom: clamp(30px, 4vw, 48px); }
.head.center { text-align: center; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 99px; background: #fff; box-shadow: var(--shadow-sm); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.eyebrow i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); font-style: normal; font-size: 0.95rem; }
.title { margin-top: 16px; font-family: var(--head); font-weight: 400; font-size: clamp(2.6rem, 6.2vw, 4.8rem); line-height: 1; letter-spacing: 0.01em; }
.sub { margin-top: 12px; color: var(--muted); font-size: 1.12rem; font-weight: 500; }

.scroll-hint { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; }
.scroll-hint i { width: 22px; height: 34px; border: 2.5px solid var(--muted); border-radius: 12px; position: relative; }
.scroll-hint i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--muted); animation: wheelDot 1.6s ease-in-out infinite; }

/* ---------- missions ---------- */
.m-arrows { display: flex; gap: 10px; }
.arrow { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: inset 0 -4px 0 rgba(26, 20, 70, 0.08), var(--shadow-sm); font-size: 1.3rem; font-weight: 800; transition: transform 0.3s var(--spring); }
.arrow:hover { transform: scale(1.12); }
.filters { position: relative; display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 6px; border-radius: 99px; background: #fff; box-shadow: var(--shadow-sm); }
.f-blob { position: absolute; top: 6px; left: 6px; height: calc(100% - 12px); width: 60px; border-radius: 99px; background: var(--g-blue); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12); transition: left 0.5s var(--spring), width 0.4s var(--ease), top 0.4s var(--ease), height 0.4s var(--ease); }
.filter { position: relative; z-index: 1; padding: 10px 18px; border-radius: 99px; font-weight: 700; font-size: 0.92rem; transition: color 0.3s; }
.filter.is-on { color: #fff; }
.mtrack { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 34px max(var(--pad), calc((100vw - 1240px) / 2 + var(--pad))) 36px; scroll-padding-left: max(var(--pad), calc((100vw - 1240px) / 2 + var(--pad))); scrollbar-width: none; cursor: grab; }
.mtrack::-webkit-scrollbar { display: none; }
.mtrack.dragging { cursor: grabbing; scroll-snap-type: none; }
.mtrack.dragging .mcard { pointer-events: none; }
.mcard { position: relative; flex: none; width: 300px; height: 420px; display: flex; flex-direction: column; padding: 22px; border-radius: 34px; background: var(--g); color: #fff; overflow: hidden; scroll-snap-align: start; box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.12), inset 0 3px 0 rgba(255, 255, 255, 0.35), 0 28px 40px -22px rgba(70, 45, 190, 0.7); transition: transform 0.35s var(--ease); transform-style: preserve-3d; }
.mcard::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.35), transparent 45%), radial-gradient(rgba(255, 255, 255, 0.16) 2px, transparent 2.5px) 0 0 / 18px 18px; pointer-events: none; }
.mcard::after { content: ""; position: absolute; top: -20%; bottom: -20%; width: 40%; left: -70%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent); transform: skewX(-18deg); transition: left 0.7s var(--ease); pointer-events: none; }
.mcard:hover::after { left: 130%; }
.m-rar { position: relative; align-self: flex-start; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.25); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; backdrop-filter: blur(6px); }
.m-emo { position: relative; flex: 1; display: grid; place-items: center; font-size: 6.4rem; line-height: 1; filter: drop-shadow(0 18px 14px rgba(0, 0, 0, 0.25)); animation: floaty 4s ease-in-out infinite; transition: transform 0.5s var(--spring); }
.mcard:nth-child(even) .m-emo { animation-delay: -2s; }
.mcard:hover .m-emo { transform: scale(1.12) rotate(-8deg); }
.mcard b { position: relative; font-family: var(--head); font-weight: 400; font-size: 1.75rem; line-height: 1.05; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.15); }
.m-sub { position: relative; margin-top: 6px; font-weight: 600; opacity: 0.9; }
.m-foot { position: relative; display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.m-stars { display: flex; gap: 2px; font-size: 1.5rem; }
.m-stars i { font-style: normal; color: rgba(255, 255, 255, 0.35); }
.m-stars i.lit { color: #fff36b; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.18); animation: starPop 0.5s var(--spring) both; }
.m-xp { padding: 6px 12px; border-radius: 12px; background: #fff; color: var(--ink); font-family: var(--head); font-size: 1rem; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.08); }
.drag-hint { text-align: center; color: var(--muted); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; }

/* ---------- projects: what I learned ---------- */
.m-learn { position: relative; margin-top: 10px; padding: 0; border: solid transparent; border-width: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.2); font-weight: 600; font-size: 0.86rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-learn::before { content: "💡 Learned: "; font-weight: 800; }

/* ---------- superpowers & level-ups ---------- */
.pw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pw-card { padding: 26px; border-radius: 32px; background: #fff; box-shadow: var(--shadow); }
.pw-card h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-family: var(--head); font-weight: 400; font-size: 1.6rem; }
.pw-card h3 i { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; background: var(--g); font-style: normal; font-size: 1.4rem; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.12); }
.pw-list { display: grid; gap: 12px; }
.pw-list li { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 20px; background: var(--soft); transition: transform 0.35s var(--spring); }
.pw-list li:hover { transform: translateX(6px); }
.pw-ic { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--g); font-size: 1.6rem; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.12); }
.pw-list b { display: block; font-family: var(--head); font-weight: 400; font-size: 1.15rem; }
.pw-list span:not(.pw-ic) { color: var(--muted); font-weight: 500; font-size: 0.94rem; }
.lv-list { display: grid; gap: 20px; }
.lv-list li { display: grid; gap: 8px; font-weight: 600; }
.lv-list li::after { content: "practising"; justify-self: start; grid-row: 1; grid-column: 2; padding: 2px 10px; border-radius: 99px; background: #fff3c2; color: #a86a00; font-weight: 800; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; }
.lv-list li { grid-template-columns: 1fr auto; align-items: center; }
.lv-list i { grid-column: 1 / -1; height: 14px; border-radius: 99px; background: var(--track); overflow: hidden; }
.lv-list em { display: block; width: 0; height: 100%; border-radius: inherit; background: repeating-linear-gradient(-45deg, var(--c) 0 10px, color-mix(in srgb, var(--c) 80%, #fff) 10px 20px); background-size: 28px 28px; animation: stripes 1s linear infinite; transition: width 1.5s var(--ease) 0.3s; }
.pw-grow.in .lv-list em, .failsafe .lv-list em { width: calc(var(--v) * 1%); }
.pw-note { margin-top: 20px; padding: 12px 16px; border-radius: 16px; background: var(--soft); font-weight: 600; text-align: center; }

/* ---------- kind words ---------- */
.q-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.q { position: relative; display: flex; flex-direction: column; margin: 0; padding: 28px 24px 22px; border-radius: 30px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.q::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--g); }
.q-mark { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 5rem; line-height: 0.75; height: 0.5em; background: var(--g); -webkit-background-clip: text; background-clip: text; color: transparent; }
.q blockquote { flex: 1; margin: 6px 0 20px; font-size: 1.1rem; font-weight: 600; line-height: 1.55; }
.q figcaption { display: flex; align-items: center; gap: 12px; }
.q-ava { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--g); color: #fff; font-family: var(--head); font-size: 1.3rem; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12); }
.q figcaption b { display: block; font-weight: 800; }
.q figcaption small { color: var(--muted); font-weight: 600; }

/* ---------- brain gym ---------- */
.bg-stats { display: grid; grid-template-columns: 1fr 1.6fr 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.bs { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.bs > i { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: var(--g); font-style: normal; font-size: 1.5rem; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.12); }
.bs > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bs b { font-family: var(--head); font-weight: 400; font-size: 1.4rem; line-height: 1.1; }
.bs small { color: var(--muted); font-weight: 600; font-size: 0.8rem; }
.st-bar { display: block; height: 10px; margin: 5px 0 3px; border-radius: 99px; background: var(--track); overflow: hidden; }
.st-bar em { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--g-violet); transition: width 0.8s var(--spring); }
.bs.bump { animation: popIn 0.5s var(--spring); }
.bg-tabs { position: relative; display: inline-flex; gap: 2px; padding: 6px; margin-bottom: 18px; border-radius: 99px; background: #fff; box-shadow: var(--shadow-sm); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.bg-blob { position: absolute; top: 6px; left: 6px; height: calc(100% - 12px); width: 100px; border-radius: 99px; background: var(--g-blue); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12); transition: left 0.5s var(--spring), width 0.4s var(--ease); }
.bg-tab { position: relative; z-index: 1; flex: none; padding: 11px 20px; border-radius: 99px; font-weight: 700; color: var(--muted); transition: color 0.3s; }
.bg-tab.is-on { color: #fff; }
.bg-panel { display: none; padding: clamp(18px, 3vw, 30px); border-radius: 32px; background: #fff; box-shadow: var(--shadow); }
.bg-panel.is-on { display: block; animation: paneIn 0.5s var(--spring); }
.wl { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.wl-board { display: grid; grid-template-rows: repeat(6, 1fr); gap: 8px; }
.wl-row { display: grid; grid-template-columns: repeat(5, 60px); gap: 8px; }
.wl-row.shake { animation: shakeRow 0.45s; }
.t { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 14px; border: 2.5px solid var(--track); background: #fff; font-family: var(--head); font-size: 1.9rem; text-transform: uppercase; color: var(--ink); transition: border-color 0.2s, transform 0.15s; }
.t.filled { border-color: #8a7fd0; transform: scale(1.06); }
.t.ok, .t.near, .t.no { border-color: transparent; color: #fff; animation: flipIn 0.55s var(--ease) both; animation-delay: calc(var(--c) * 0.12s); }
.t.ok { background: linear-gradient(180deg, #34d98a, #19b765); }
.t.near { background: linear-gradient(180deg, #ffc93d, #ff9f1a); }
.t.no { background: #a9a3c4; }
.wl-row.win .t { animation: flipIn 0.55s var(--ease) both, hopTile 0.5s var(--spring) both; animation-delay: calc(var(--c) * 0.12s), calc(0.7s + var(--c) * 0.08s); }
.wl-info { padding: 18px 20px; border-radius: 24px; background: var(--soft); }
.wl-mode { display: inline-block; padding: 4px 12px; border-radius: 99px; background: #fff; color: var(--muted); font-weight: 800; font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; }
.wl-msg { margin-top: 10px; font-family: var(--head); font-size: 1.35rem; line-height: 1.2; }
.wl-clue { margin-top: 10px; padding: 10px 14px; border-radius: 16px; background: #fff7dc; font-weight: 600; }
.wl-fact { margin-top: 10px; padding: 12px 14px; border-radius: 16px; background: #e5fbef; color: #0f6b3b; font-weight: 600; }
.wl-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.kb { display: flex; flex-direction: column; gap: 7px; margin-top: 18px; }
.kb-row { display: flex; justify-content: center; gap: 6px; }
.k { flex: 1; max-width: 44px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: var(--soft); font-weight: 800; font-size: 1rem; text-transform: uppercase; box-shadow: inset 0 -3px 0 rgba(26, 20, 70, 0.08); transition: transform 0.15s, background-color 0.3s, color 0.3s; }
.k:active { transform: scale(0.92); }
.k.wide { max-width: 74px; flex: 1.6; font-size: 0.82rem; }
.k.ok { background: #22c97a; color: #fff; } .k.near { background: #ffb21e; color: #fff; } .k.no { background: #c9c4dc; color: #fff; }
.wl-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; color: var(--muted); font-weight: 600; font-size: 0.82rem; }
.lg { width: 24px; height: 24px; display: inline-grid; place-items: center; border-radius: 7px; color: #fff; font-family: var(--head); font-size: 0.8rem; margin-left: 6px; }
.lg:first-child { margin-left: 0; }
.lg.ok { background: #22c97a; } .lg.near { background: #ffb21e; } .lg.no { background: #a9a3c4; }
.pp { text-align: center; }
.pp-q { font-family: var(--head); font-size: 1.6rem; }
.pp-lvl { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 3px 10px; border-radius: 99px; background: var(--soft); color: var(--muted); font-family: var(--body); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.pp-seq { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 22px 0; }
.pp-seq span { min-width: 74px; height: 74px; padding: 0 12px; display: grid; place-items: center; border-radius: 22px; background: var(--g-blue); color: #fff; font-family: var(--head); font-size: 1.9rem; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.14); animation: popIn 0.4s var(--spring) both; animation-delay: calc(var(--i) * 0.07s); }
.pp-seq span.q { background: #fff; color: #6c4cff; border: 3px dashed #b9a8ff; box-shadow: none; animation: popIn 0.4s var(--spring) both, pulse 1.4s ease-in-out infinite 0.6s; }
.pp-seq span.q.solved { background: var(--g-lime); color: #fff; border-color: transparent; animation: popIn 0.5s var(--spring); }
.pp-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pp-opt { min-width: 90px; padding: 14px 20px; border-radius: 18px; background: var(--soft); font-family: var(--head); font-size: 1.5rem; box-shadow: inset 0 -4px 0 rgba(26, 20, 70, 0.08); transition: transform 0.3s var(--spring), background-color 0.3s, color 0.3s; }
.pp-opt:hover { transform: translateY(-4px); }
.pp-opt.right { background: #22c97a; color: #fff; }
.pp-opt.wrong { background: #ff6b8a; color: #fff; animation: shakeRow 0.45s; }
.pp-opt:disabled { cursor: default; }
.pp-explain { min-height: 1.6em; margin-top: 18px; font-weight: 600; color: var(--muted); }
.pp-foot { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 12px; }
.pp-combo { padding: 8px 14px; border-radius: 99px; background: #fff3e0; font-weight: 700; }
.bg-note { margin-top: 14px; text-align: center; color: var(--muted); font-weight: 600; font-size: 0.86rem; }
@keyframes flipIn { 0% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
@keyframes hopTile { 0% { transform: translateY(0); } 40% { transform: translateY(-14px); } 100% { transform: translateY(0); } }
@keyframes shakeRow { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(6px); } }

/* ---------- loot (gifts) ---------- */
.boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 30px; }
.box { position: relative; display: flex; flex-direction: column; align-items: center; padding: 40px 0 10px; }
.gift { position: relative; width: 150px; height: 150px; animation: wobble 3.4s ease-in-out infinite; }
.box:nth-child(2n) .gift { animation-delay: -1.2s; } .box:nth-child(3n) .gift { animation-delay: -2.2s; }
.gift:hover { animation: shake 0.5s ease-in-out infinite; }
.gift .base, .gift .lid { position: absolute; background: linear-gradient(90deg, transparent 43%, rgba(255, 255, 255, 0.8) 43% 57%, transparent 57%), var(--g); box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.16), inset 0 4px 0 rgba(255, 255, 255, 0.4); }
.gift .base { left: 14px; right: 14px; bottom: 0; height: 100px; border-radius: 0 0 20px 20px; box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.16), inset 0 10px 0 rgba(0, 0, 0, 0.12), 0 22px 30px -14px rgba(70, 45, 190, 0.6); transition: transform 0.5s var(--spring), opacity 0.4s; }
.gift .lid { left: 0; right: 0; top: 20px; height: 40px; border-radius: 14px; transition: transform 0.7s var(--ease), opacity 0.5s; }
.gift .lid::before { content: "🎀"; position: absolute; left: 50%; top: -36px; transform: translateX(-50%); font-size: 2.8rem; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.15)); }
.rays { position: absolute; left: 50%; top: 50%; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%; background: repeating-conic-gradient(rgba(255, 210, 61, 0.55) 0 10deg, transparent 10deg 22deg); -webkit-mask: radial-gradient(closest-side, #000 30%, transparent); mask: radial-gradient(closest-side, #000 30%, transparent); opacity: 0; transform: scale(0.3); transition: opacity 0.4s, transform 0.6s var(--spring); pointer-events: none; }
.loot-emo { position: absolute; top: 74px; font-size: 5rem; line-height: 1; opacity: 0; transform: scale(0.2); pointer-events: none; filter: drop-shadow(0 14px 12px rgba(70, 45, 190, 0.3)); }
.loot-card { margin-top: 0; max-height: 0; overflow: hidden; width: 100%; max-width: 260px; padding: 0 18px; border-radius: 22px; background: #fff; text-align: center; box-shadow: var(--shadow); opacity: 0; transform: translateY(20px) scale(0.9); transition: opacity 0.4s 0.45s, transform 0.6s var(--spring) 0.45s, max-height 0.5s var(--ease) 0.3s, padding 0.5s var(--ease) 0.3s, margin 0.5s var(--ease) 0.3s; }
.loot-card b { font-family: var(--head); font-weight: 400; font-size: 1.4rem; }
.loot-card p { color: var(--muted); font-weight: 500; }
.box.open .gift { animation: none; cursor: default; }
.box.open .lid { transform: translate(-40px, -130px) rotate(-40deg); opacity: 0; }
.box.open .base { transform: scale(0.6) translateY(40px); opacity: 0; }
.box.open .rays { opacity: 1; transform: scale(1); animation: spin 8s linear infinite; }
.box.open .loot-emo { animation: lootPop 0.8s var(--spring) 0.15s forwards; }
.box.open .loot-card { opacity: 1; transform: none; max-height: 180px; padding: 14px 18px; margin-top: 26px; }
.loot-bar { display: flex; align-items: center; gap: 16px; max-width: 560px; margin: 30px auto 0; padding: 10px 10px 10px 22px; border-radius: 99px; background: #fff; box-shadow: var(--shadow-sm); font-weight: 700; }
.loot-bar b { font-family: var(--head); font-weight: 400; font-size: 1.2rem; }
.loot-bar i { flex: 1; height: 12px; border-radius: 99px; background: var(--track); overflow: hidden; }
.loot-bar em { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--g-lime); transition: width 0.6s var(--spring); }

/* ---------- books: my bookshelf ---------- */
.read-stats { display: flex; gap: 12px; }
.read-stats span { display: flex; flex-direction: column; align-items: center; min-width: 110px; padding: 12px 16px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); color: var(--muted); font-weight: 600; font-size: 0.82rem; }
.read-stats b { font-family: var(--head); font-weight: 400; font-size: 1.8rem; line-height: 1.1; color: var(--ink); }
.shelf-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 34px; align-items: center; }
.shelf-zone, .openbook, .now, .next { min-width: 0; }
.shelf-zone { position: relative; padding: 30px 26px 0; border-radius: 34px; background: linear-gradient(180deg, #fff, #f6f2ff); box-shadow: var(--shadow); }
.bookrow { display: flex; align-items: flex-end; justify-content: center; gap: 6px; min-height: 290px; padding: 0 30px; overflow-x: auto; scrollbar-width: none; }
.bookrow::-webkit-scrollbar { display: none; }
.spine { position: relative; flex: none; width: var(--w); height: var(--h); display: flex; flex-direction: column; align-items: center; padding: 12px 0 10px; border-radius: 7px 7px 4px 4px; background: linear-gradient(90deg, rgba(0, 0, 0, 0.14), transparent 22%, rgba(255, 255, 255, 0.22) 50%, transparent 78%, rgba(0, 0, 0, 0.12)), var(--g); color: #fff; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.12), 0 10px 18px -10px rgba(40, 20, 120, 0.6); transform-origin: bottom center; rotate: var(--tilt, 0deg); transition: transform 0.4s var(--spring), rotate 0.4s var(--spring); }
.spine::before, .spine::after { content: ""; position: absolute; left: 0; right: 0; height: 5px; background: rgba(255, 255, 255, 0.35); }
.spine::before { top: 38px; } .spine::after { bottom: 26px; }
.spine i { font-style: normal; font-size: 1.35rem; line-height: 1; }
.spine b { margin-top: 14px; font-family: var(--head); font-weight: 400; font-size: 0.98rem; letter-spacing: 0.02em; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: calc(var(--h) - 80px); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.15); }
.spine:hover, .spine:focus-visible { transform: translateY(-16px); rotate: 0deg; }
.spine.is-on { transform: translateY(-34px); rotate: 0deg; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.12), 0 24px 30px -12px rgba(40, 20, 120, 0.7); }
.spine.is-on::after { content: "▼"; position: absolute; left: 0; right: 0; bottom: -30px; height: auto; background: none; color: #6c4cff; font-size: 0.8rem; text-align: center; }
.plank { position: relative; height: 26px; margin: 0 -26px; border-radius: 0 0 34px 34px; background: linear-gradient(180deg, #c9b8ff, #a28bff); box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.45), 0 14px 24px -12px rgba(108, 76, 255, 0.6); }
.deco { position: absolute; bottom: 100%; font-size: 2.4rem; line-height: 1; }
.deco-l { left: 22px; } .deco-r { right: 22px; font-size: 2rem; }
.openbook { display: grid; grid-template-columns: 0.9fr 1.1fr; min-height: 340px; border-radius: 30px; background: #fff; box-shadow: var(--shadow); overflow: hidden; perspective: 1200px; }
.ob-cover { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px 18px; background: radial-gradient(rgba(255, 255, 255, 0.16) 2px, transparent 2.5px) 0 0 / 18px 18px, var(--og, var(--g-blue)); color: #fff; text-align: center; transform-origin: left center; box-shadow: inset -12px 0 18px -10px rgba(0, 0, 0, 0.3); }
.openbook.flip .ob-cover { animation: coverFlip 0.7s var(--spring); }
.openbook.flip .ob-page { animation: paneIn 0.6s var(--spring) 0.1s both; }
.ob-emo { width: 92px; height: 92px; display: grid; place-items: center; border-radius: 26px; background: rgba(255, 255, 255, 0.25); font-size: 3.2rem; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.1); }
.ob-title { font-family: var(--head); font-weight: 400; font-size: 1.35rem; line-height: 1.15; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.15); }
.ob-author { font-weight: 600; font-size: 0.85rem; opacity: 0.9; }
.ob-page { padding: 26px 24px; background: repeating-linear-gradient(180deg, transparent 0 31px, rgba(108, 76, 255, 0.07) 31px 32px); }
.ob-genre { display: inline-block; padding: 4px 12px; border-radius: 99px; background: var(--soft); color: var(--muted); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.ob-name { margin: 10px 0 2px; font-family: var(--head); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.ob-by { color: var(--muted); font-weight: 600; }
.ob-stars { margin: 8px 0 14px; font-size: 1.4rem; letter-spacing: 2px; color: #ffc93d; }
.ob-stars i { font-style: normal; color: #e4dff3; }
.ob-label { font-family: var(--head); font-size: 1rem; color: #6c4cff; }
.ob-review { margin-top: 4px; font-weight: 500; font-size: 1.04rem; line-height: 1.6; }
.reading { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 34px; margin-top: 30px; }
.now { display: flex; align-items: center; gap: 16px; padding: 18px 22px 18px 18px; border-radius: 26px; background: var(--g-blue); color: #fff; box-shadow: 0 24px 40px -22px rgba(108, 76, 255, 0.8); }
.now-ic { flex: none; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; background: rgba(255, 255, 255, 0.22); font-size: 2.2rem; }
.now-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.now-txt small { font-weight: 800; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }
.now-txt b { font-family: var(--head); font-weight: 400; font-size: 1.25rem; line-height: 1.2; }
.now-txt > span:not(.now-bar) { font-weight: 600; font-size: 0.88rem; opacity: 0.9; }
.now-bar { display: block; height: 10px; margin-top: 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.now-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: #fff; transition: width 1.6s var(--ease) 0.3s; }
.now.in .now-bar i, .failsafe .now-bar i { width: calc(var(--v) * 1%); }
.now-pct { font-family: var(--head); font-size: 1.6rem; }
.next { padding: 18px 22px; border-radius: 26px; background: #fff; box-shadow: var(--shadow-sm); }
.next small { display: block; margin-bottom: 10px; color: var(--muted); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.next-list { display: flex; flex-wrap: wrap; gap: 8px; }
.next-list span { padding: 7px 14px; border-radius: 99px; background: var(--soft); font-weight: 600; font-size: 0.92rem; }
@keyframes coverFlip { 0% { transform: rotateY(-75deg); opacity: 0.4; } 100% { transform: rotateY(0); opacity: 1; } }

/* ---------- trophy pass ---------- */
.xp-total { display: flex; align-items: center; gap: 12px; padding: 10px 22px 10px 10px; border-radius: 22px; }
.xp-total i { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: var(--g-sun); font-style: normal; font-size: 1.8rem; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.12); }
.xp-total small { display: block; color: var(--muted); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.odo { font-family: var(--head); font-weight: 400; font-size: 2.3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.ptrack { position: relative; display: flex; gap: 22px; overflow-x: auto; padding: 46px max(var(--pad), calc((100vw - 1240px) / 2 + var(--pad))) 50px; scrollbar-width: none; cursor: grab; }
.ptrack::-webkit-scrollbar { display: none; }
.ptrack.dragging { cursor: grabbing; }
.pline { position: absolute; top: 72px; height: 10px; border-radius: 99px; background: var(--track); overflow: hidden; z-index: 0; }
.pline i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #ffc93d, #ff5fa2, #7a5cff, #38c8ff); transition: width 2s var(--ease); }
.tier { position: relative; z-index: 1; flex: none; width: 210px; margin-top: 30px; padding: 36px 18px 22px; border-radius: 28px; background: #fff; text-align: center; box-shadow: var(--shadow); transition: transform 0.4s var(--spring); }
.tier:hover { transform: translateY(-8px) rotate(-1deg); }
.t-num { position: absolute; left: 50%; top: -20px; width: 42px; height: 42px; margin-left: -21px; display: grid; place-items: center; border-radius: 50%; background: var(--g, #c9c3df); border: 4px solid #fff; color: #fff; font-family: var(--head); font-size: 1.1rem; box-shadow: var(--shadow-sm); }
.t-ic { width: 96px; height: 96px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 28px; background: var(--g, #e7e3f3); font-size: 3rem; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.12), inset 0 3px 0 rgba(255, 255, 255, 0.35); }
.tier b { display: block; font-weight: 800; line-height: 1.25; }
.tier small { display: block; margin-top: 4px; color: var(--muted); font-weight: 600; }
.t-stamp { display: inline-block; margin-top: 14px; padding: 5px 12px; border-radius: 99px; background: #e5fbef; color: #109a4f; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.04em; transform: rotate(-6deg) scale(0); }
.tier.got .t-stamp { animation: stamp 0.5s var(--spring) forwards; }
.tier.locked { background: rgba(255, 255, 255, 0.5); box-shadow: none; outline: 2.5px dashed #cfc7ef; outline-offset: -2.5px; }
.tier.locked .t-ic { filter: grayscale(1); opacity: 0.55; }
.ach-toasts { position: fixed; right: 18px; top: 86px; z-index: 120; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.ach { display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 20px; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); box-shadow: var(--shadow); transform: translateX(130%); transition: transform 0.6s var(--spring), opacity 0.4s; max-width: 320px; }
.ach.show { transform: none; }
.ach.hide { transform: translateX(130%); opacity: 0; }
.ach > span { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--g-sun); font-size: 1.5rem; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12); }
.ach p { line-height: 1.25; }
.ach small { color: #109a4f; font-weight: 800; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.ach b { display: block; font-weight: 800; }

/* ---------- motto ---------- */
.motto { position: relative; padding: clamp(70px, 9vw, 120px) 0; overflow: hidden; }
.mq { overflow: hidden; padding: 16px 0; box-shadow: var(--shadow); transform: skewX(var(--sk, 0deg)); transition: transform 0.4s var(--ease); }
.mq-1 { background: linear-gradient(90deg, #7a5cff, #ff5fa2); rotate: -3deg; }
.mq-2 { background: linear-gradient(90deg, #ffc93d, #ff7a2b); rotate: 2deg; margin-top: -6px; }
.mq-t { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 24s linear infinite; }
.mq-2 .mq-t { animation-direction: reverse; animation-duration: 28s; }
.mq-t span { font-family: var(--head); font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 1.1; color: #fff; text-shadow: 0 5px 0 rgba(0, 0, 0, 0.14); white-space: nowrap; }
.mq-t i { font-style: normal; font-size: clamp(1.6rem, 4vw, 3rem); color: rgba(255, 255, 255, 0.75); }

/* ---------- chat (party invite) ---------- */
.invite { position: relative; max-width: 780px; margin: 0 auto; padding: clamp(22px, 4vw, 38px); border-radius: 36px; background: #fff; box-shadow: var(--shadow); text-align: center; overflow: hidden; }
.invite::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--g-text); background-size: 200% 100%; animation: gradMove 6s linear infinite; }
.inv-top { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 24px; background: var(--soft); text-align: left; }
.inv-ava { flex: none; width: 56px; height: 56px; }
.inv-top small { display: block; color: var(--muted); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.inv-top b { font-weight: 800; }
.inv-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; background: #ffe3ec; color: #e0245e; font-weight: 800; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.inv-live i { width: 8px; height: 8px; border-radius: 50%; background: #ff3b6b; animation: ping-red 1.4s infinite; }
.invite .title { margin-top: 28px; }
.inv-p { max-width: 560px; margin: 14px auto 0; color: var(--muted); font-weight: 500; font-size: 1.08rem; }
.inv-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; position: relative; z-index: 2; }
.hf-count { min-width: 1.8em; padding: 2px 8px; border-radius: 10px; background: var(--soft); font-family: var(--head); font-weight: 400; }
.safe { display: inline-block; margin-top: 22px; padding: 8px 14px; border-radius: 99px; background: #e5fbef; color: #109a4f; font-weight: 700; font-size: 0.88rem; }
.reactions { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.react { position: absolute; bottom: 60px; font-size: 2rem; animation: reactUp 2.2s ease-out forwards; }

/* ---------- footer ---------- */
.footer { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px var(--pad) 140px; text-align: center; color: var(--muted); font-weight: 500; }
.gg { font-family: var(--head); font-size: clamp(3rem, 8vw, 5rem); line-height: 1; background: var(--g-text); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradMove 6s linear infinite; }

/* ---------- mission sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 300; visibility: hidden; }
.sheet.open { visibility: visible; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(26, 20, 70, 0.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.35s; }
.sheet.open .sheet-scrim { opacity: 1; }
.sheet-card { position: absolute; left: 50%; top: 50%; width: min(780px, calc(100% - 28px)); max-height: calc(100% - 40px); overflow-y: auto; overscroll-behavior: contain; padding: 14px; border-radius: 36px; background: #fff; box-shadow: 0 40px 80px -30px rgba(26, 20, 70, 0.6); transform: translate(-50%, -40%) scale(0.85); opacity: 0; transition: transform 0.55s var(--spring), opacity 0.3s; }
.sheet.open .sheet-card { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.sheet-close { position: absolute; top: 28px; right: 28px; z-index: 2; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 2.5px solid #fff; background: rgba(255, 255, 255, 0.22); color: #fff; font-size: 1.05rem; font-weight: 800; backdrop-filter: blur(6px); transition: transform 0.5s var(--spring), background-color 0.3s, color 0.3s; }
.sheet-close:hover { transform: rotate(90deg); background: #fff; color: var(--ink); }
.sheet-hero { position: relative; display: flex; align-items: center; gap: 20px; padding: 30px 84px 30px 26px; border-radius: 26px; background: var(--sg, var(--g-blue)); color: #fff; overflow: hidden; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.12); }
.sheet-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(255, 255, 255, 0.16) 2px, transparent 2.5px) 0 0 / 18px 18px; }
.s-emo { position: relative; flex: none; width: 96px; height: 96px; display: grid; place-items: center; border-radius: 28px; background: rgba(255, 255, 255, 0.25); font-size: 3.6rem; }
.s-tag { position: relative; display: inline-block; padding: 4px 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.25); font-weight: 800; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.s-title { position: relative; margin-top: 8px; font-family: var(--head); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.05; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.15); }
.sheet-body { padding: 22px 14px 12px; }
.s-desc { font-size: 1.1rem; font-weight: 500; }
.s-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin-top: 20px; }
.s-cols > div { padding: 20px; border-radius: 24px; background: var(--soft); }
.s-cols h4 { font-family: var(--head); font-weight: 400; font-size: 1.15rem; margin-bottom: 10px; }
.s-cols h4:not(:first-child) { margin-top: 16px; }
.s-steps { counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.s-steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 10px; color: var(--muted); font-weight: 500; }
.s-steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; background: var(--sg, var(--g-blue)); color: #fff; font-family: var(--head); font-size: 0.9rem; }
.s-learn, .s-time { color: var(--muted); font-weight: 500; }

/* ---------- toast & xp floaters ---------- */
.toast { position: fixed; left: 50%; bottom: 104px; z-index: 250; padding: 14px 22px; border-radius: 18px; background: var(--ink); color: #fff; font-family: var(--head); font-size: 1.05rem; transform: translate(-50%, 30px) scale(0.85); opacity: 0; pointer-events: none; transition: transform 0.5s var(--spring), opacity 0.3s; box-shadow: 0 16px 30px -12px rgba(26, 20, 70, 0.6); white-space: nowrap; }
.toast.on { transform: translate(-50%, 0) scale(1); opacity: 1; }
.xpf { position: fixed; z-index: 260; pointer-events: none; font-family: var(--head); font-size: 1.2rem; color: #6c4cff; text-shadow: 0 2px 0 #fff, 0 -2px 0 #fff, 2px 0 0 #fff, -2px 0 0 #fff, 0 6px 10px rgba(70, 45, 190, 0.3); animation: xpUp 1s ease-out forwards; }

/* ---------- keyframes ---------- */
@keyframes gradMove { to { background-position: 300% 0; } }
@keyframes blob { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(8%, 6%) scale(1.1); } 100% { transform: translate(-6%, 10%) scale(0.95); } }
@keyframes btnShine { 0%, 60% { left: -60%; } 100% { left: 140%; } }
@keyframes stripes { to { background-position: 28px 0; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes hop { 0%, 100% { transform: translateY(0) scale(1, 1); } 15% { transform: translateY(0) scale(1.08, 0.92); } 50% { transform: translateY(-28px) scale(0.96, 1.04); } 85% { transform: translateY(0) scale(1.05, 0.95); } }
@keyframes iconPop { 0% { transform: scale(0.6) rotate(-20deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(4deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bubble { 0%, 100% { transform: scale(1) rotate(0); } 8% { transform: scale(1.12) rotate(-6deg); } 16% { transform: scale(1) rotate(0); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(24, 194, 90, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(24, 194, 90, 0); } }
@keyframes ping-red { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 107, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(255, 59, 107, 0); } }
@keyframes wheelDot { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
@keyframes wave { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(-18deg); } 75% { transform: rotate(12deg); } }
@keyframes legSwing { from { transform: rotate(-22deg); } to { transform: rotate(22deg); } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(1.5) rotate(30deg); opacity: 0.6; } }
@keyframes starPop { 0% { transform: scale(0) rotate(-90deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes wobble { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-7deg); } 88% { transform: rotate(6deg); } 92% { transform: rotate(-4deg); } 96% { transform: rotate(2deg); } }
@keyframes shake { 0%, 100% { transform: rotate(0) scale(1.05); } 25% { transform: rotate(-6deg) scale(1.05); } 75% { transform: rotate(6deg) scale(1.05); } }
@keyframes lootPop { 0% { opacity: 0; transform: translateY(40px) scale(0.2); } 60% { opacity: 1; transform: translateY(-20px) scale(1.25) rotate(-10deg); } 100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); } }
@keyframes bulb { 0% { background: #fff6c2; box-shadow: 0 0 10px 3px rgba(255, 230, 120, 0.9); } 50% { background: #ff9fd0; box-shadow: 0 0 6px 1px rgba(255, 120, 200, 0.6); } }
@keyframes popIn { 0% { transform: scale(0.85); } 100% { transform: none; } }
@keyframes stamp { 0% { transform: rotate(-6deg) scale(2.4); opacity: 0; } 100% { transform: rotate(-6deg) scale(1); opacity: 1; } }
@keyframes islBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes rocketIdle { 0%, 100% { transform: translateY(0) rotate(-45deg); } 50% { transform: translateY(-10px) rotate(-42deg); } }
@keyframes launch { 0% { transform: translateY(0) rotate(-45deg); } 20% { transform: translateY(6px) rotate(-45deg); } 100% { transform: translate(60px, -110vh) rotate(-45deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes reactUp { 0% { transform: translate(0, 0) scale(0.4); opacity: 0; } 15% { opacity: 1; transform: translate(0, -30px) scale(1.2); } 100% { transform: translate(var(--dx), -320px) scale(1) rotate(var(--rot)); opacity: 0; } }
@keyframes xpUp { 0% { transform: translate(-50%, 0) scale(0.5); opacity: 0; } 20% { opacity: 1; transform: translate(-50%, -16px) scale(1.15); } 100% { transform: translate(-50%, -70px) scale(1); opacity: 0; } }

/* ---------- sparkle cursor ---------- */
.sparkles { position: fixed; inset: 0; z-index: 150; width: 100%; height: 100%; pointer-events: none; }
.ld-coin { width: 96px; height: 96px; display: grid; place-items: center; border-radius: 30px; background: var(--g-blue); font-size: 3.2rem; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.15), inset 0 3px 0 rgba(255, 255, 255, 0.35), 0 20px 40px -14px rgba(108, 76, 255, 0.8); animation: hop 1.2s var(--ease) infinite; }

/* ---------- logo (top left) ---------- */
.logo { position: fixed; top: 18px; left: var(--pad); z-index: 70; display: flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.72); border: 1.5px solid #fff; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow-sm); transition: transform 0.35s var(--spring), opacity 0.4s; }
.logo:hover { transform: scale(1.05) rotate(-2deg); }
.logo.hide { transform: translateY(-140%); opacity: 0; }
@media (min-width: 901px) and (max-width: 1440px) { .wrap { padding-right: max(var(--pad), 100px); } }
.logo-a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--g-blue); color: #fff; font-family: var(--head); font-size: 1.4rem; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.15), inset 0 2px 0 rgba(255, 255, 255, 0.35); }
.logo-t { display: flex; flex-direction: column; font-family: var(--head); font-size: 0.95rem; line-height: 1; }
.logo-t b { font-weight: 400; font-size: 1.2rem; background: var(--g-text); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradMove 8s linear infinite; }

/* ---------- navigation: rocket thread (desktop) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.thread { position: fixed; right: 26px; top: 50%; z-index: 70; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 14px 0; transform: translateY(-50%); }
.th-line { position: absolute; left: 50%; top: 14px; bottom: 14px; width: 3px; margin-left: -1.5px; border-radius: 99px; background: rgba(108, 76, 255, 0.16); }
.th-line i { display: block; height: 100%; border-radius: inherit; transform: scaleY(0); transform-origin: top; background: linear-gradient(180deg, #6c4cff, #ff5fa2, #ffb21e, #2fd27a); }
.th-rocket { position: absolute; left: 50%; top: 14px; z-index: 2; font-size: 1.3rem; line-height: 1; pointer-events: none; transform: translate(-50%, -50%) rotate(135deg); filter: drop-shadow(0 4px 6px rgba(70, 45, 190, 0.35)); }
.th-i { position: relative; z-index: 1; width: 26px; height: 26px; display: grid; place-items: center; }
.th-dot { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2.5px solid #cfc6f5; transition: width 0.35s var(--spring), height 0.35s var(--spring), background-color 0.3s, border-color 0.3s, transform 0.35s var(--spring), box-shadow 0.3s; }
.th-i.passed .th-dot { background: #8a6cff; border-color: #8a6cff; }
.th-i.active .th-dot { width: 20px; height: 20px; border-color: #fff; background: linear-gradient(135deg, #ff5fa2, #6c4cff); box-shadow: 0 0 0 4px rgba(108, 76, 255, 0.22), 0 6px 14px -4px rgba(108, 76, 255, 0.8); }
.th-i:hover .th-dot { transform: scale(1.35); }
.th-l { position: absolute; right: calc(100% + 14px); top: 50%; display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.92); border: 1.5px solid #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); font-weight: 700; font-size: 0.86rem; white-space: nowrap; opacity: 0; transform: translate(12px, -50%) scale(0.9); transform-origin: right center; pointer-events: none; transition: opacity 0.25s, transform 0.4s var(--spring); }
.th-l i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); font-style: normal; font-size: 0.95rem; }
.th-i.active .th-l i { background: var(--g-blue); }
.th-i:hover .th-l, .th-i:focus-visible .th-l, .th-i.peek .th-l, .thread:hover .th-l { opacity: 1; transform: translate(0, -50%) scale(1); }
.thread:hover .th-l { transition-delay: calc(var(--i, 0) * 25ms); }
.menu-fab, .menu-sheet { display: none; }

/* ---------- hero: telescope sky ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; color: #fff; background: radial-gradient(ellipse at 50% 115%, #3b1d8f 0%, #170b4b 45%, #0b0626 100%); --lr: 150px; --lx: 50%; --ly: 45%; }
.hero.scoping { cursor: none; }
.hero.scoping a, .hero.scoping button { cursor: pointer; }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.deep { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(circle at 25% 30%, rgba(108, 76, 255, 0.75), transparent 45%), radial-gradient(circle at 78% 70%, rgba(255, 79, 152, 0.55), transparent 45%), radial-gradient(circle at 60% 20%, rgba(56, 200, 255, 0.45), transparent 40%), #241466; -webkit-mask: radial-gradient(circle var(--lr) at var(--lx) var(--ly), #000 95%, transparent 100%); mask: radial-gradient(circle var(--lr) at var(--lx) var(--ly), #000 95%, transparent 100%); }
.nebula { position: absolute; inset: 0; background: radial-gradient(rgba(255, 255, 255, 0.95) 1px, transparent 1.6px) 0 0 / 34px 34px, radial-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1.6px) 17px 11px / 47px 47px, radial-gradient(rgba(255, 230, 150, 0.8) 1.3px, transparent 2px) 5px 23px / 71px 71px; }
.obj { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); font-size: 3.6rem; line-height: 1; filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.55)); }
.shown { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.shown .obj { opacity: 0; transform: translate(-50%, -50%) scale(0.3); transition: opacity 0.4s, transform 0.7s var(--spring); }
.shown .obj.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.shown .obj::before { content: ""; position: absolute; left: 50%; top: 50%; width: 1.6em; height: 1.6em; margin: -0.8em 0 0 -0.8em; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.5); animation: ripple 2.2s ease-out infinite; }
.shown .obj em { position: absolute; left: 50%; top: 100%; margin-top: 8px; transform: translateX(-50%); padding: 3px 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.92); color: var(--ink); font-family: var(--body); font-style: normal; font-weight: 700; font-size: 0.78rem; white-space: nowrap; filter: none; }
.lens { position: absolute; left: 0; top: 0; z-index: 3; width: calc(var(--lr) * 2); height: calc(var(--lr) * 2); margin: calc(var(--lr) * -1) 0 0 calc(var(--lr) * -1); border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.85); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.07), 0 0 50px rgba(140, 180, 255, 0.45), inset 0 0 40px rgba(140, 180, 255, 0.3); pointer-events: none; will-change: transform; }
.lens i, .lens b { position: absolute; left: 50%; top: 50%; background: rgba(255, 255, 255, 0.35); }
.lens i { width: 26px; height: 2px; margin: -1px 0 0 -13px; }
.lens b { width: 2px; height: 26px; margin: -13px 0 0 -1px; }
.lens::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.3); animation: spin 20s linear infinite; }
.hero-in { position: absolute; left: 0; right: 0; top: 46%; z-index: 4; padding: 0 16px; text-align: center; transform: translateY(-50%); pointer-events: none; }
.scope-tag { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-weight: 700; font-size: 0.92rem; }
.hero-title { margin: 18px 0 12px; font-family: var(--head); font-weight: 400; font-size: clamp(3.6rem, 10vw, 8.5rem); line-height: 0.95; text-shadow: 0 6px 0 rgba(0, 0, 0, 0.25), 0 0 40px rgba(140, 120, 255, 0.55); }
.hero-title span { display: inline-block; }
.grad-sky { background: linear-gradient(90deg, #ffd23d, #ff7ab6, #8fd3ff, #ffd23d); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.25)); animation: gradMove 6s linear infinite; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 500; color: rgba(255, 255, 255, 0.86); }
.hero-sub b { color: #ffd23d; }
.touch-only { display: none; }
@media (hover: none) { .touch-only { display: inline; } .fine-only { display: none; } }
.fact { position: absolute; left: 50%; bottom: 112px; z-index: 5; display: flex; align-items: center; gap: 14px; width: max-content; max-width: min(580px, 92vw); padding: 12px 20px 12px 12px; border-radius: 22px; background: rgba(255, 255, 255, 0.96); color: var(--ink); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.6); opacity: 0; transform: translate(-50%, 30px) scale(0.9); pointer-events: none; transition: opacity 0.35s, transform 0.55s var(--spring); }
.fact.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.fact-ic { flex: none; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: var(--g-blue); font-size: 1.8rem; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.12); }
.fact b { display: block; font-family: var(--head); font-weight: 400; font-size: 1.15rem; }
.fact-x { display: block; color: var(--muted); font-weight: 500; font-size: 0.96rem; line-height: 1.4; }
.hero-foot { position: absolute; left: 0; right: 0; bottom: 30px; z-index: 5; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; padding: 0 16px; }
.finds { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 18px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.finds-n { font-weight: 700; white-space: nowrap; }
.finds-n b { font-family: var(--head); font-weight: 400; font-size: 1.25rem; color: #ffd23d; }
.slots { display: flex; gap: 6px; }
.slots i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.08); border: 1.5px dashed rgba(255, 255, 255, 0.35); font-style: normal; font-weight: 700; font-size: 1.15rem; color: rgba(255, 255, 255, 0.5); }
.slots i.on { background: #fff; border: 1.5px solid #fff; animation: popIn 0.5s var(--spring); }
.hero.all-found .hero-title { animation: pulse 1s ease-in-out 3; }

/* ---------- profile ---------- */
.pf-grid { display: grid; grid-template-columns: 360px 1fr; gap: 24px; align-items: stretch; }
.pcard { position: relative; padding: 22px; border-radius: 34px; background: linear-gradient(160deg, #6c4cff, #9b5cff 50%, #ff5fa2); color: #fff; text-align: center; overflow: hidden; box-shadow: 0 30px 60px -26px rgba(108, 76, 255, 0.8); }
.pcard::before { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(255, 255, 255, 0.14) 2px, transparent 2.5px) 0 0 / 20px 20px; pointer-events: none; }
.pcard::after { content: ""; position: absolute; width: 260px; height: 260px; right: -110px; top: -110px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); pointer-events: none; }
.pcard > * { position: relative; z-index: 1; }
.pc-top { display: flex; justify-content: space-between; align-items: center; }
.pc-badge { padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.22); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.pc-online { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.82rem; }
.pc-online i { width: 9px; height: 9px; border-radius: 50%; background: #7dffb0; animation: ping 1.6s infinite; }
.pc-mono { width: 156px; height: 156px; margin: 16px auto 14px; display: grid; place-items: center; }
.mono-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(#fff36b, #7dffb0, #6be1ff, #fff, #ffb3e1, #fff36b); -webkit-mask: radial-gradient(farthest-side, transparent 86%, #000 87%); mask: radial-gradient(farthest-side, transparent 86%, #000 87%); animation: spin 8s linear infinite; }
.pc-mono b { width: 124px; height: 124px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #6c4cff; font-family: var(--head); font-weight: 400; font-size: 4.8rem; line-height: 1; text-shadow: 0 5px 0 #d9ceff; box-shadow: inset 0 -8px 0 rgba(26, 20, 70, 0.08), 0 18px 30px -12px rgba(26, 20, 70, 0.45); }
.pc-mono .kid-photo { display: none; }
.pc-mono.has-photo .kid-photo { display: block; position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); border-radius: 50%; object-fit: cover; border: 4px solid #fff; }
.pc-mono.has-photo b { visibility: hidden; }
.pc-name { font-family: var(--head); font-weight: 400; font-size: 1.9rem; line-height: 1.1; }
.pc-role { opacity: 0.92; font-weight: 600; }
.pc-level { display: flex; align-items: center; gap: 14px; margin: 18px 0 12px; padding: 12px; border-radius: 22px; background: rgba(255, 255, 255, 0.16); text-align: left; }
.lv-ring { position: relative; flex: none; width: 66px; height: 66px; display: grid; place-content: center; text-align: center; }
.lv-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; --p: 0; background: conic-gradient(#fff calc(var(--p) * 1%), rgba(255, 255, 255, 0.25) 0); -webkit-mask: radial-gradient(farthest-side, transparent 76%, #000 77%); mask: radial-gradient(farthest-side, transparent 76%, #000 77%); transition: --p 1.6s var(--ease) 0.3s; }
.pcard.in .lv-ring::before, .failsafe .lv-ring::before { --p: var(--pv); }
.lv-ring b { font-family: var(--head); font-weight: 400; font-size: 1.5rem; line-height: 1; }
.lv-ring small { font-weight: 800; font-size: 0.6rem; letter-spacing: 0.1em; }
.lv-txt { flex: 1; }
.lv-txt b { display: block; font-family: var(--head); font-weight: 400; font-size: 1.15rem; }
.lv-bar { display: block; height: 8px; margin: 6px 0 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.lv-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: #fff; transition: width 1.6s var(--ease) 0.4s; }
.pcard.in .lv-bar i, .failsafe .lv-bar i { width: 84%; }
.lv-txt small { font-weight: 600; opacity: 0.9; }
.pc-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pc-facts li { display: flex; flex-direction: column; align-items: center; padding: 10px 6px; border-radius: 18px; background: rgba(255, 255, 255, 0.16); transition: transform 0.35s var(--spring); }
.pc-facts li:hover { transform: translateY(-4px) rotate(-3deg); }
.pc-facts i { font-style: normal; font-size: 1.2rem; }
.pc-facts b { font-family: var(--head); font-weight: 400; font-size: 1.15rem; line-height: 1.2; }
.pc-facts span { font-weight: 600; font-size: 0.74rem; opacity: 0.88; }
.ptabs { display: flex; flex-direction: column; padding: 18px; border-radius: 34px; background: #fff; box-shadow: var(--shadow); min-width: 0; }
.tabbar { position: relative; align-self: flex-start; display: flex; gap: 2px; max-width: 100%; padding: 6px; border-radius: 99px; background: var(--soft); overflow-x: auto; scrollbar-width: none; }
.tabbar::-webkit-scrollbar { display: none; }
.tab-blob { position: absolute; top: 6px; left: 6px; height: calc(100% - 12px); width: 80px; border-radius: 99px; background: var(--g-blue); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12), 0 8px 16px -8px rgba(108, 76, 255, 0.8); transition: left 0.5s var(--spring), width 0.4s var(--ease); }
.tab { position: relative; z-index: 1; flex: none; padding: 10px 18px; border-radius: 99px; font-weight: 700; font-size: 0.95rem; color: var(--muted); transition: color 0.3s; }
.tab.is-on { color: #fff; }
.tpanes { flex: 1; padding: 24px 8px 6px; min-height: 360px; }
.tpane { display: none; }
.tpane.is-on { display: block; animation: paneIn 0.5s var(--spring); }
.chat-log { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.msg { max-width: 88%; padding: 12px 18px; border-radius: 22px 22px 22px 6px; background: var(--g-blue); color: #fff; font-weight: 500; font-size: 1.06rem; box-shadow: var(--shadow-sm); transform-origin: bottom left; }
.msg:nth-child(even) { background: var(--g-violet); }
.js .msg { opacity: 0; scale: 0.6; translate: 0 10px; }
.js .msg.show, .failsafe .msg { opacity: 1; scale: 1; translate: none; transition: opacity 0.3s, scale 0.5s var(--spring), translate 0.5s var(--spring); }
.typing { display: inline-flex; gap: 5px; padding: 16px 18px; border-radius: 22px 22px 22px 6px; background: var(--soft); }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); animation: dots 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
.meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 10px; }
.meter { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rb { position: relative; width: 96px; height: 96px; display: grid; place-content: center; text-align: center; }
.rb::before { content: ""; position: absolute; inset: 0; border-radius: 50%; --p: 0; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--track) 0); -webkit-mask: radial-gradient(farthest-side, transparent 70%, #000 71%); mask: radial-gradient(farthest-side, transparent 70%, #000 71%); transition: --p 1.5s var(--ease); }
.meter.on .rb::before, .failsafe .rb::before { --p: var(--pv); }
.rb span { font-size: 1.3rem; line-height: 1; }
.rb b { font-family: var(--head); font-weight: 400; font-size: 1.3rem; line-height: 1.1; color: var(--c); }
.meter em { font-style: normal; font-weight: 700; font-size: 0.92rem; }
.stickers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sticker { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 24px; font-size: 2.5rem; border: 3px solid transparent; background: linear-gradient(var(--sb), var(--sb)) padding-box, var(--sr) border-box; box-shadow: 0 8px 16px -10px rgba(70, 45, 190, 0.5); transition: transform 0.4s var(--spring); }
.sticker[data-rarity="common"] { --sb: #f4f2f9; --sr: linear-gradient(#d8d3e8, #d8d3e8); }
.sticker[data-rarity="rare"] { --sb: #e8f6ff; --sr: linear-gradient(135deg, #38c8ff, #4f6bff); }
.sticker[data-rarity="epic"] { --sb: #f3ebff; --sr: linear-gradient(135deg, #a35cff, #ff5fd0); }
.sticker[data-rarity="legendary"] { --sb: #fff7dc; --sr: conic-gradient(#ffc93d, #ff5fa2, #6c4cff, #38c8ff, #2fd27a, #ffc93d); }
.sticker[data-rarity="legendary"]::after { content: "✦"; position: absolute; top: 4px; right: 8px; font-size: 0.8rem; color: #ffb21e; animation: twinkle 1.6s ease-in-out infinite; }
.sticker:hover, .sticker:focus-visible, .sticker.sel { transform: translateY(-6px) rotate(-6deg) scale(1.08); }
.fav-tip { margin-top: 16px; padding: 12px 16px; border-radius: 16px; background: var(--soft); font-weight: 600; min-height: 3.2em; }
.fav-tip b { padding: 2px 8px; border-radius: 99px; color: #fff; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; margin-right: 6px; }
.learn { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; margin-bottom: 22px; font-weight: 600; font-size: 1.05rem; }
.learn i { grid-column: 1 / -1; grid-row: 2; height: 16px; border-radius: 99px; background: var(--track); overflow: hidden; }
.learn em { display: block; height: 100%; width: 0; border-radius: inherit; background: repeating-linear-gradient(-45deg, var(--c) 0 10px, color-mix(in srgb, var(--c) 80%, #fff) 10px 20px); background-size: 28px 28px; animation: stripes 1s linear infinite; transition: width 1.4s var(--ease); }
.learn.on em, .failsafe .learn em { width: calc(var(--v) * 1%); }
.learn b { font-family: var(--head); font-weight: 400; color: var(--muted); }
.next-up { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.next-up b { font-family: var(--head); font-weight: 400; }
.next-up span { padding: 6px 12px; border-radius: 99px; background: var(--soft); font-weight: 600; font-size: 0.9rem; }

/* ---------- idol & what I want to be ---------- */
.tag { display: inline-block; padding: 6px 14px; border-radius: 99px; background: var(--soft); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.idol { display: grid; grid-template-columns: 340px 1fr; margin-bottom: 28px; border-radius: 34px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.idol-art { position: relative; min-height: 340px; display: grid; place-items: center; background: radial-gradient(rgba(255, 255, 255, 0.18) 2px, transparent 2.5px) 0 0 / 20px 20px, var(--g-sun); overflow: hidden; }
.idol-mono { width: 200px; height: 200px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.22); border: 3px solid rgba(255, 255, 255, 0.65); color: #fff; font-family: var(--head); font-size: 4.6rem; text-shadow: 0 6px 0 rgba(0, 0, 0, 0.14); box-shadow: inset 0 -10px 0 rgba(0, 0, 0, 0.08); }
.idol-fl { position: absolute; font-size: 2.6rem; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.2)); animation: floaty 5s ease-in-out infinite; }
.idol-fl.f1 { top: 12%; left: 12%; } .idol-fl.f2 { bottom: 12%; left: 16%; animation-delay: -2s; } .idol-fl.f3 { top: 16%; right: 12%; animation-delay: -3.5s; }
.idol-body { padding: clamp(24px, 3.5vw, 40px); }
.idol-body h3 { margin: 12px 0 4px; font-family: var(--head); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.05; }
.idol-role { color: var(--muted); font-weight: 600; }
.idol-body blockquote { margin: 18px 0; padding: 16px 20px; border-radius: 20px; background: #fff7dc; border-left: 5px solid #ffb21e; font-size: 1.12rem; font-weight: 600; font-style: italic; }
.idol-why li { position: relative; padding-left: 28px; margin: 8px 0; color: var(--muted); font-weight: 500; }
.idol-why li::before { content: "★"; position: absolute; left: 2px; top: 0; color: #ffb21e; }
.idol-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.idol-facts span { padding: 10px 16px; border-radius: 16px; background: var(--soft); color: var(--muted); font-weight: 600; font-size: 0.8rem; }
.idol-facts b { display: block; font-family: var(--head); font-weight: 400; font-size: 1.3rem; color: var(--ink); }
.iw-grid { display: grid; grid-template-columns: 62% 35%; justify-content: space-between; align-items: start; }
.iw-grid .idol { margin-bottom: 0; grid-template-columns: 220px 1fr; }
.want { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: center; padding: 24px; border-radius: 30px; background: linear-gradient(165deg, #e6f3ff, #f1e9ff 60%, #ffeaf4); border: 2px solid #fff; box-shadow: var(--shadow); text-align: left; }
.want .tag { grid-column: 1 / -1; justify-self: start; margin-bottom: 16px; }
.want-ic { grid-column: 1; grid-row: 2 / span 3; width: 96px; height: 96px; display: grid; place-items: center; border-radius: 28px; background: var(--g-sky); font-size: 3.2rem; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.12), 0 16px 26px -14px rgba(56, 120, 255, 0.8); animation: floaty 4s ease-in-out infinite; }
.want-pre { grid-column: 2; color: var(--muted); font-weight: 600; }
.want-job { grid-column: 2; margin: 2px 0 6px; font-family: var(--head); font-weight: 400; font-size: clamp(2rem, 2.8vw, 2.5rem); line-height: 1; }
.want-why { grid-column: 2; color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.want .suggest { grid-column: 1 / -1; justify-self: start; margin-top: 18px; }
@media (min-width: 901px) { .iw-grid .want { position: sticky; top: 100px; } }
.inv-ava { display: grid; place-items: center; border-radius: 50%; background: var(--g-blue); color: #fff; font-family: var(--head); font-size: 1.6rem; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12); }
.ach-toasts { right: 96px; }
.toast { bottom: 26px; }
.footer { padding-bottom: 60px; }

@keyframes ripple { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes paneIn { from { opacity: 0; transform: translateY(14px); } }
@keyframes dots { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-5px); opacity: 1; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .bg-stats { grid-template-columns: 1fr 1fr; }
  .pf-grid { grid-template-columns: 320px 1fr; }
}
@media (max-width: 900px) {
  .thread { display: none; }
  .menu-fab { display: grid; place-items: center; position: fixed; right: 16px; bottom: 16px; z-index: 80; width: 62px; height: 62px; border-radius: 50%; background: var(--g-blue); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.15), inset 0 2px 0 rgba(255, 255, 255, 0.35), 0 16px 30px -10px rgba(108, 76, 255, 0.8); transition: transform 0.35s var(--spring); }
  .menu-fab:active { transform: scale(0.92); }
  .fab-ring { position: absolute; inset: -6px; border-radius: 50%; background: conic-gradient(#ffb21e calc(var(--pp, 0) * 1%), rgba(108, 76, 255, 0.18) 0); -webkit-mask: radial-gradient(farthest-side, transparent 84%, #000 85%); mask: radial-gradient(farthest-side, transparent 84%, #000 85%); }
  .fab-ic { font-size: 1.6rem; line-height: 1; transition: transform 0.45s var(--spring); }
  .menu-fab[aria-expanded="true"] .fab-ic { transform: rotate(-45deg) scale(1.15); }
  .menu-sheet { display: block; position: fixed; inset: 0; z-index: 300; visibility: hidden; transition: visibility 0s 0.5s; }
  .menu-sheet.open { visibility: visible; transition: none; }
  .ms-scrim { position: absolute; inset: 0; background: rgba(26, 20, 70, 0.4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.35s; }
  .menu-sheet.open .ms-scrim { opacity: 1; }
  .ms-card { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 18px 26px; border-radius: 32px 32px 0 0; background: #fff; box-shadow: 0 -20px 50px -20px rgba(26, 20, 70, 0.5); transform: translateY(105%); transition: transform 0.5s var(--spring); }
  .menu-sheet.open .ms-card { transform: none; }
  .ms-grab { display: block; width: 46px; height: 5px; margin: 0 auto 14px; border-radius: 99px; background: var(--track); }
  .ms-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
  .ms-top p { font-family: var(--head); font-size: 1.45rem; }
  .ms-pct { padding: 5px 12px; border-radius: 99px; background: var(--soft); font-weight: 700; font-size: 0.8rem; color: var(--muted); }
  .ms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
  .ms-i { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 4px 12px; border-radius: 22px; background: var(--soft); font-weight: 700; font-size: 0.86rem; text-align: center; }
  .ms-i i { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--g); font-style: normal; font-size: 1.55rem; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.12); }
  .ms-i.active { background: #fff; outline: 2.5px solid #6c4cff; outline-offset: -2.5px; }
  .ms-close i { background: var(--ink); color: #fff; font-size: 1.1rem; }
  .menu-sheet.open .ms-i { animation: popIn 0.45s var(--spring) both; animation-delay: calc(var(--i, 0) * 35ms); }
  .pf-grid { grid-template-columns: 1fr; }
  .idol, .iw-grid .idol { grid-template-columns: 1fr; }
  .iw-grid { grid-template-columns: 1fr; gap: 22px; }
  .idol-art { min-height: 230px; }
  .idol-mono { width: 150px; height: 150px; font-size: 3.4rem; }
  .shelf-grid, .reading { grid-template-columns: 1fr; gap: 22px; }
  .wl { grid-template-columns: 1fr; justify-items: center; }
  .wl-side { width: 100%; max-width: 560px; }
  .pw-grid { grid-template-columns: 1fr; }
  .q-grid { grid-template-columns: 1fr; }
  .boxes { grid-template-columns: repeat(2, 1fr); }
  .ach-toasts { right: 18px; }
  .toast { bottom: 96px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .logo { top: 12px; left: 12px; padding-right: 14px; }
  .logo-a { width: 36px; height: 36px; font-size: 1.2rem; }
  .obj { font-size: 2.5rem; }
  .read-stats { width: 100%; }
  .read-stats span { flex: 1; min-width: 0; }
  .shelf-zone { padding: 24px 12px 0; }
  .bookrow { justify-content: flex-start; min-height: 270px; padding: 0 8px; }
  .plank { margin: 0 -12px; }
  .deco { display: none; }
  .bg-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .bs-level { grid-column: 1 / -1; order: -1; }
  .bs:not(.bs-level) { flex-direction: column; text-align: center; gap: 6px; }
  .bs:not(.bs-level) small { font-size: 0.72rem; }
  .bs { padding: 10px 12px 10px 10px; }
  .bs > i { width: 40px; height: 40px; font-size: 1.2rem; }
  .wl-row { grid-template-columns: repeat(5, 52px); gap: 6px; }
  .wl-board { gap: 6px; }
  .t { width: 52px; height: 52px; font-size: 1.6rem; }
  .kb-row { gap: 4px; }
  .k { height: 48px; max-width: none; font-size: 0.9rem; border-radius: 9px; }
  .k.wide { flex: 1.5; font-size: 0.72rem; }
  .pp-seq { gap: 6px; flex-wrap: nowrap; }
  .pp-seq span { min-width: 0; flex: 1; max-width: 56px; height: 54px; padding: 0 4px; font-size: 1.2rem; border-radius: 15px; }
  .pp-opts { gap: 8px; }
  .pp-opt { min-width: 64px; padding: 12px 10px; font-size: 1.2rem; }
  .bg-tab { padding: 10px 13px; font-size: 0.88rem; }
  .pw-card { padding: 20px; }
  .openbook { grid-template-columns: 1fr; }
  .ob-cover { flex-direction: row; justify-content: flex-start; text-align: left; transform-origin: top center; }
  .ob-emo { width: 70px; height: 70px; font-size: 2.4rem; flex: none; }
  .slots { gap: 4px; }
  .slots i { width: 30px; height: 30px; font-size: 0.95rem; }
  .finds { gap: 8px; padding: 6px 8px 6px 14px; }
  .fact { bottom: 150px; }
  .hero-foot { bottom: 22px; gap: 10px; }
  .tpanes { padding: 20px 2px 4px; min-height: 0; }
  .meters { gap: 16px 4px; }
  .rb { width: 80px; height: 80px; }
  .stickers { gap: 8px; }
  .sticker { font-size: 1.9rem; border-radius: 18px; }
  .mcard { width: 264px; height: 380px; }
  .boxes { gap: 10px 14px; }
  .gift { scale: 0.82; }
  .box.open .loot-card { padding: 12px; }
  .loot-bar { flex-wrap: wrap; border-radius: 24px; padding: 14px 18px; }
  .loot-bar i { flex-basis: 100%; order: 3; }
  .btn { white-space: normal; text-align: center; }
  .btn-xl { font-size: 1.3rem; padding: 15px 30px; }
  .s-cols { grid-template-columns: 1fr; }
  .sheet-card { top: auto; bottom: 0; width: 100%; max-height: 90%; border-radius: 30px 30px 0 0; transform: translate(-50%, 100%); opacity: 1; }
  .sheet.open .sheet-card { transform: translate(-50%, 0); }
  .sheet-hero { flex-direction: column; align-items: flex-start; padding: 24px 22px; }
  .sheet-close { top: 24px; right: 24px; }
  .ach-toasts { left: 10px; right: 10px; top: 70px; }
  .ach { max-width: none; }
  .toast { font-size: 0.92rem; white-space: normal; text-align: center; width: max-content; max-width: calc(100% - 100px); }
  .inv-top { flex-wrap: wrap; }
  .tier { width: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js .loader { display: none; }
  .js .msg { opacity: 1; scale: 1; translate: none; }
}
