/* Version 2 screens: players and sign-in, home additions, road map, quests, sentence challenge,
   celebrations and hangar part tiers. */

/* ---------- who's playing / sign in / setup ---------- */
#who { background: radial-gradient(circle at 50% 20%, #1d2f63, #070b18 70%); overflow: auto; }
.who-wrap { min-height: 100%; display: flex; flex-direction: column; align-items: center; padding: 34px 20px 40px; gap: 14px; }
.who-wrap > .logo { font-size: 52px; }
.who-wrap > .logo small { font-size: 20px; letter-spacing: 10px; }
.who-title { font-family: var(--head); font-weight: 400; font-size: 32px; margin: 10px 0 4px; text-align: center; }
.who-list { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; max-width: 980px; }
.who-card { position: relative; width: 200px; padding: 22px 14px 18px; border-radius: 24px; text-align: center; cursor: pointer;
  border: 2px solid color-mix(in srgb, var(--pc, #3dfcd8) 55%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--pc, #3dfcd8) 18%, rgba(16,24,44,.9)), rgba(10,16,32,.92));
  box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: transform .15s, box-shadow .2s; outline: none; }
.who-card:hover, .who-card:focus { transform: translateY(-6px) scale(1.03); box-shadow: 0 0 30px color-mix(in srgb, var(--pc, #3dfcd8) 50%, transparent); }
.who-av { width: 104px; height: 104px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; font-size: 60px;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--pc, #3dfcd8) 70%, #fff), color-mix(in srgb, var(--pc, #3dfcd8) 45%, #000));
  box-shadow: 0 0 0 4px rgba(255,255,255,.12), 0 0 26px color-mix(in srgb, var(--pc, #3dfcd8) 60%, transparent); }
.who-name { font-family: var(--head); font-size: 24px; }
.who-sub { color: var(--muted); font-weight: 700; margin-top: 4px; }
.who-streak { color: #ffa94d; font-weight: 800; margin-top: 6px; font-size: 14px; }
.who-edit { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: rgba(0,0,0,.35); font-size: 16px; }
.who-card.add { --pc: #8899bb; border-style: dashed; }
.who-card.add .who-av { font-size: 54px; color: #fff; background: rgba(255,255,255,.08); box-shadow: none; }
.who-note { color: var(--muted); text-align: center; max-width: 520px; line-height: 1.5; }
.who-msg { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 560px; text-align: center; margin-top: 20px; }
.who-warn { color: #ffb0bc; background: rgba(255,93,115,.12); border: 1px solid rgba(255,93,115,.4); border-radius: 12px; padding: 10px 16px; font-weight: 700; }
.who-big { font-size: 64px; }
.gsi { min-height: 48px; display: grid; place-items: center; }

.setup { width: min(860px, 100%); display: flex; flex-direction: column; gap: 14px; }
.su-sec { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.su-l { font-family: var(--head); font-size: 17px; margin-bottom: 10px; color: var(--cyan); }
.su-sec input { width: 100%; font: inherit; font-size: 20px; font-weight: 700; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.35); color: var(--text); user-select: text; }
.su-av { display: flex; flex-wrap: wrap; gap: 8px; }
.su-av button { width: 54px; height: 54px; font-size: 30px; border-radius: 14px; border: 2px solid transparent; background: rgba(255,255,255,.06); transition: transform .1s; }
.su-av button.on { border-color: var(--cyan); background: rgba(61,252,216,.15); transform: scale(1.08); }
.su-col { display: flex; gap: 10px; margin-top: 10px; }
.su-col button { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); background: var(--sc); }
.su-col button.on { border-color: #fff; box-shadow: 0 0 12px var(--sc); }
.su-lvls { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.su-lvl { text-align: left; padding: 10px 12px; border-radius: 12px; border: 2px solid rgba(255,255,255,.08); background: rgba(0,0,0,.28); }
.su-lvl b { display: block; font-size: 17px; }
.su-lvl small { color: var(--muted); font-weight: 600; }
.su-lvl.on { border-color: var(--gold); background: rgba(255,209,102,.12); box-shadow: 0 0 14px rgba(255,209,102,.35); }
.su-hint { display: block; color: var(--muted); margin-top: 10px; }
.su-imps { display: flex; flex-wrap: wrap; gap: 10px; }
.su-imp { flex: 1 1 200px; display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 10px; text-align: left; padding: 10px 12px; border-radius: 14px; border: 2px solid rgba(255,255,255,.08); background: rgba(0,0,0,.28); }
.su-iav { grid-row: span 2; font-size: 34px; text-align: center; }
.su-imp b { font-size: 18px; }
.su-imp small { color: var(--muted); font-weight: 600; }
.su-imp.on { border-color: var(--cyan); background: rgba(61,252,216,.12); box-shadow: 0 0 14px rgba(61,252,216,.3); }
.su-b { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- home additions ---------- */
button.profile { cursor: pointer; text-align: left; font: inherit; color: inherit; }
button.profile:hover { border-color: var(--pc); box-shadow: 0 0 16px color-mix(in srgb, var(--pc) 40%, transparent); }
.pav { position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 28px;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--pc) 70%, #fff), color-mix(in srgb, var(--pc) 40%, #000)); }
.pav .lvl-badge { position: absolute; right: -6px; bottom: -6px; width: 24px; height: 24px; font-size: 12px; }
.right-col { position: absolute; right: 22px; top: 80px; bottom: 200px; width: 330px; z-index: 2; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; scrollbar-width: none; }
.right-col .stage-info { position: static; width: auto; }
.right-col .tank-name { font-size: 28px; margin-bottom: 6px; }
.right-col .stats-panel { padding: 10px 14px; }
.right-col .st { margin: 4px 0; }
.kit-line { display: flex; gap: 8px; margin-top: 8px; }
.kit-line span { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 20px; padding: 4px 0; border-radius: 10px; background: color-mix(in srgb, var(--wc) 16%, rgba(0,0,0,.3)); border: 1px solid color-mix(in srgb, var(--wc) 45%, transparent); }
.kit-line small { font-size: 11px; font-weight: 800; color: var(--muted); }
.quest-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 10px 12px; backdrop-filter: blur(10px); }
.quest-card.ready { border-color: var(--gold); box-shadow: 0 0 18px rgba(255,209,102,.35); }
.qc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.qc-head b { font-family: var(--head); font-weight: 400; letter-spacing: 1px; color: var(--gold); }
.qc-head span { font-size: 12px; color: var(--muted); font-weight: 700; }
.quest { display: grid; grid-template-columns: 28px 1fr 46px; gap: 8px; align-items: center; padding: 5px 0; }
.quest + .quest { border-top: 1px solid rgba(255,255,255,.06); }
.q-ic { font-size: 20px; text-align: center; }
.q-t { font-size: 13px; font-weight: 700; line-height: 1.2; }
.q-bar { position: relative; height: 14px; margin-top: 4px; border-radius: 7px; background: rgba(0,0,0,.4); overflow: hidden; }
.q-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--qc), color-mix(in srgb, var(--qc) 60%, #fff)); border-radius: 7px; }
.q-bar span { position: absolute; inset: 0; font-size: 10px; font-weight: 800; display: grid; place-items: center; text-shadow: 0 1px 2px #000; }
.q-chest { width: 46px; height: 40px; font-size: 24px; border-radius: 12px; border: 2px solid color-mix(in srgb, var(--qc) 60%, transparent); background: color-mix(in srgb, var(--qc) 15%, rgba(0,0,0,.3)); }
.q-chest:disabled { filter: grayscale(.8) brightness(.7); cursor: default; }
.quest.ready .q-chest { animation: chest 0.9s ease-in-out infinite; box-shadow: 0 0 14px var(--qc); filter: none; }
.quest.claimed { opacity: .55; }
.quest.claimed .q-bar i { background: var(--green); }
@keyframes chest { 50% { transform: scale(1.12) rotate(-6deg); } }
.learn-zone { position: absolute; left: 18px; bottom: 20px; z-index: 2; display: flex; flex-direction: column; gap: 8px; width: 290px; }
.learn-zone .train-btn { position: relative; left: auto; bottom: auto; }
.learn-btns { display: flex; gap: 8px; }
.learn-btns .train-btn { flex: 1; padding: 12px 10px; font-size: 16px; }
.train-btn.sent { border-color: rgba(255,181,46,.55); background: rgba(50,34,8,.85); }
.train-btn.sent:hover { box-shadow: 0 0 20px rgba(255,181,46,.4); }
.road-chip { text-align: left; padding: 10px 14px; border-radius: 16px; border: 1px solid rgba(255,209,102,.45); background: linear-gradient(90deg, rgba(60,44,8,.85), rgba(16,24,44,.85)); backdrop-filter: blur(8px); }
.road-chip:hover { box-shadow: 0 0 18px rgba(255,209,102,.4); }
.rcp-t { font-weight: 800; font-size: 16px; }
.rcp-bar { height: 8px; border-radius: 4px; background: rgba(0,0,0,.4); overflow: hidden; margin: 6px 0 3px; }
.rcp-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffd166, #ff9f1c); }
.road-chip small { color: var(--muted); font-weight: 700; }
.nav-btn.road { border-color: rgba(255,209,102,.5); }
.side-nav { top: 88px; transform: none; gap: 8px; }
.side-nav .nav-btn { padding: 8px 8px 7px; width: 104px; }
.side-nav .nav-btn span { font-size: 22px; }
.learn-btns .train-btn { white-space: nowrap; }
.learn-btns .train-btn em { font-size: 11px; padding: 2px 6px; vertical-align: middle; }
@media (max-height: 920px) {   /* (790px before v18: the Word Drill button made the left side taller; one-line labels keep Settings clear) */
  .side-nav { gap: 6px; top: 80px; }
  .side-nav .nav-btn { padding: 5px 6px; font-size: 12px; width: auto; white-space: nowrap; flex-direction: row; justify-content: flex-start; gap: 6px; }
  .side-nav .nav-btn span { font-size: 18px; line-height: 1; }
  .road-chip { padding: 6px 12px; }
  .learn-btns .train-btn { padding: 9px 8px; font-size: 14px; }
}

/* ---------- popups and celebrations ---------- */
.popup { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(3,6,16,.7); backdrop-filter: blur(4px); }
.popup-card { width: min(560px, 92vw); max-height: 86vh; display: flex; flex-direction: column; gap: 10px; border-radius: 22px; padding: 18px; background: linear-gradient(180deg, #17223f, #0d1428); border: 2px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.6); animation: popin .2s ease-out; }
.popup-card.small { width: min(400px, 92vw); }
.popup-t { font-family: var(--head); font-size: 24px; }
.popup-s { color: var(--muted); font-weight: 600; line-height: 1.4; }
.popup-b { display: flex; gap: 10px; justify-content: flex-end; }
.up-list { overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.up-w { display: grid; grid-template-columns: 26px 140px 1fr; gap: 8px; align-items: baseline; padding: 6px 8px; border-radius: 8px; background: rgba(0,0,0,.25); }
.up-w small { color: var(--muted); }
.celebrate { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: radial-gradient(circle, color-mix(in srgb, var(--cc) 25%, rgba(3,6,16,.85)), rgba(3,6,16,.92)); }
.celebrate canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cel-card { position: relative; text-align: center; padding: 26px 34px; border-radius: 28px; max-width: 92vw; background: linear-gradient(180deg, #1b2850, #0d1428); border: 3px solid var(--cc); box-shadow: 0 0 60px color-mix(in srgb, var(--cc) 55%, transparent); animation: celpop .45s cubic-bezier(.2,1.6,.4,1); }
.cel-icon { font-size: 86px; animation: celspin 1.2s ease-out; }
.cel-title { font-family: var(--head); font-size: 36px; color: var(--cc); margin: 6px 0; text-shadow: 0 0 20px color-mix(in srgb, var(--cc) 60%, transparent); }
.cel-text { font-size: 18px; font-weight: 700; line-height: 1.6; margin-bottom: 18px; }
@keyframes celpop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes celspin { from { transform: rotate(-200deg) scale(.2); } to { transform: none; } }

/* ---------- road map ---------- */
.road-wrap { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 20px; height: 100%; }
.road-card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.rc-t { color: var(--gold); font-weight: 800; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; }
.rc-big { font-family: var(--head); font-size: 26px; }
.rc-bar { height: 12px; border-radius: 6px; background: rgba(0,0,0,.4); overflow: hidden; }
.rc-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffd166, #ff9f1c); }
.rc-s { color: var(--muted); line-height: 1.45; font-weight: 600; }
.road-scroll { overflow-y: auto; overflow-x: hidden; display: flex; justify-content: center; border-radius: 20px;
  background: radial-gradient(circle at 50% 0, rgba(61,252,216,.08), transparent 60%), repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 2px, transparent 2px 60px); }
.road { position: relative; flex: 0 0 auto; }
.rm-path { position: absolute; left: 0; top: 0; }
.rm-path path { fill: none; stroke: rgba(255,209,102,.35); stroke-width: 10; stroke-dasharray: 2 18; stroke-linecap: round; }
.rm-head { position: absolute; left: 0; right: 0; height: 84px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; border-radius: 18px;
  background: linear-gradient(90deg, rgba(182,92,255,.3), rgba(61,252,216,.2)); border: 1px solid var(--line); z-index: 1; }
.rm-head b { font-family: var(--head); font-weight: 400; font-size: 22px; }
.rm-head small { color: var(--muted); font-weight: 700; margin-left: 8px; }
.rm-prize { font-size: 13px; font-weight: 800; color: var(--gold); }
.rm-node { position: absolute; width: 72px; height: 72px; border-radius: 50%; font-size: 30px; display: grid; place-items: center; z-index: 2;
  border: none; background: radial-gradient(circle at 40% 30%, #6c7a99, #3a4560); box-shadow: 0 7px 0 #232a3d, 0 10px 20px rgba(0,0,0,.4); transition: transform .12s; }
.rm-node:hover { transform: translateY(-3px); }
.rm-node.open { background: radial-gradient(circle at 40% 30%, #6bb8ff, #2e6fc4); box-shadow: 0 7px 0 #1b3f72, 0 10px 20px rgba(0,0,0,.4); }
.rm-node.done { background: radial-gradient(circle at 40% 30%, #ffe27a, #e09b1a); box-shadow: 0 7px 0 #8a5a08, 0 0 20px rgba(255,209,102,.5); }
.rm-node.crown { background: radial-gradient(circle at 40% 30%, #c7fff4, #2fd6b6); box-shadow: 0 7px 0 #137a66, 0 0 24px rgba(61,252,216,.7); }
.rm-node.cur { background: radial-gradient(circle at 40% 30%, #9dffb8, #22b85a); box-shadow: 0 7px 0 #136a32, 0 0 0 6px rgba(77,255,154,.25), 0 0 30px rgba(77,255,154,.6); animation: bob 1.4s ease-in-out infinite; }
.rm-node.locked { filter: grayscale(.6) brightness(.75); }
@keyframes bob { 50% { transform: translateY(-6px); } }
.rm-ring { position: absolute; inset: -8px; border-radius: 50%; background: conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(255,255,255,.12) 0);
  -webkit-mask: radial-gradient(circle, transparent 39px, #000 40px); mask: radial-gradient(circle, transparent 39px, #000 40px); pointer-events: none; }
.rm-start { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: 1px; color: #04221c; background: var(--green); padding: 3px 10px; border-radius: 10px; box-shadow: 0 0 12px rgba(77,255,154,.6); }
.rm-chest { position: absolute; width: 60px; height: 60px; font-size: 40px; display: grid; place-items: center; z-index: 2; filter: drop-shadow(0 0 10px rgba(255,209,102,.6)); }
.rm-chest.open { filter: grayscale(.5) brightness(.8); }
.rm-trophy { position: absolute; width: 100px; text-align: center; font-size: 56px; z-index: 2; filter: grayscale(.8) brightness(.6); }
.rm-trophy small { display: block; font-size: 12px; font-weight: 800; color: var(--muted); }
.rm-trophy.won { filter: drop-shadow(0 0 16px rgba(255,209,102,.8)); }
.rm-trophy.won small { color: var(--gold); }

/* ---------- sentence challenge ---------- */
.quiz-panel.sentence .quiz-body { display: flex; flex-direction: column; gap: 8px; }
.sc-word { font-family: var(--head); font-size: 40px; color: var(--qc); display: flex; align-items: center; gap: 10px; }
.sc-def { font-size: 18px; font-weight: 600; }
.quiz-panel.sentence textarea { width: 100%; min-height: 96px; resize: vertical; font: inherit; font-size: 20px; font-weight: 600; padding: 12px 14px; border-radius: 14px;
  border: 2px solid var(--line); background: rgba(0,0,0,.35); color: var(--text); user-select: text; }
.quiz-panel.sentence textarea:focus { outline: none; border-color: var(--qc); }
.sc-tips { color: var(--muted); font-size: 13px; font-weight: 700; }
.sc-wait { text-align: center; font-weight: 800; padding: 10px; animation: pulse 1.2s infinite; }
.sc-result { border-radius: 16px; padding: 12px 16px; background: rgba(0,0,0,.3); border: 2px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.sc-result.s3 { border-color: var(--gold); box-shadow: 0 0 20px rgba(255,209,102,.35); }
.sc-result.s2 { border-color: var(--cyan); }
.sc-result.s0 { border-color: var(--red); }
.sc-stars { font-size: 38px; color: var(--gold); letter-spacing: 6px; text-shadow: 0 0 14px rgba(255,209,102,.6); }
.sc-fb { font-size: 18px; font-weight: 700; }
.sc-sug { color: var(--muted); }
.sc-rew { color: var(--gold); font-weight: 800; }
.sc-src { font-size: 12px; color: var(--muted); text-align: right; }

/* ---------- hangar part tiers and abilities ---------- */
.p-lv { font-size: 12px; color: var(--muted); margin-left: 6px; }
.p-look { font-size: 13px; font-weight: 700; margin-top: 3px; }
.p-tier { font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 8px; margin-right: 4px; color: #06101e; background: #a9b4c2; }
.p-tier.t1 { background: #9be15d; } .p-tier.t2 { background: #3fa9ff; } .p-tier.t3 { background: #b65cff; color: #fff; }
.p-tier.t4 { background: #ffb52e; } .p-tier.t5 { background: #3dfcd8; box-shadow: 0 0 10px #3dfcd8; }
.pips i.g { margin-right: 5px; }
.p-next { color: var(--cyan) !important; font-size: 12px; margin-top: 3px; }
.kits { display: flex; flex-direction: column; gap: 6px; }
.kits-t { font-weight: 800; color: var(--muted); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.kit { display: flex; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 12px; background: color-mix(in srgb, var(--wc) 12%, rgba(0,0,0,.3)); border: 1px solid color-mix(in srgb, var(--wc) 40%, transparent); }
.kit > span { font-size: 24px; }
.kit em { font-style: normal; font-size: 12px; color: var(--gold); font-weight: 800; }
.kit small { display: block; color: var(--muted); }
.set-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Latin and Greek roots in the quiz ---------- */
.lc-roots { margin: 8px auto 4px; max-width: 560px; padding: 8px 14px; border-radius: 12px; background: rgba(77,255,154,.08); border: 1px solid rgba(77,255,154,.3); font-weight: 700; }
.lc-roots small { display: block; color: var(--muted); font-weight: 600; margin-top: 4px; }
.fb-roots { margin-top: 6px; color: #9dffc4; font-weight: 700; font-size: 14px; }
.up-parts { display: block; color: #9dffc4; font-style: normal; font-size: 12px; }

/* ---------- round 3: staged rewards, flashcard deck, spelling, sentence sets, backups ---------- */
.quiz-stages { position: relative; height: 30px; margin: -4px 18px 4px; }
.quiz-stages .qs { position: absolute; top: 0; transform: translateX(-50%); font-size: 22px; filter: grayscale(1); opacity: .5; transition: filter .3s, opacity .3s, transform .3s; }
.quiz-stages .qs:last-child { transform: translateX(-100%); }
.quiz-stages .qs.got { filter: none; opacity: 1; transform: translateX(-50%) scale(1.15); text-shadow: 0 0 12px var(--sc); }
.quiz-stages .qs.got:last-child { transform: translateX(-100%) scale(1.15); }
.qh-quit { background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 20px; padding: 7px 12px; font-weight: 800; font-size: 13px; color: var(--text); white-space: nowrap; }
.qh-quit:hover { border-color: var(--qc); }
.fb-stage { margin-top: 6px; font-weight: 800; color: var(--sc); }
.qr-stages { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 12px 0 6px; }
.qr-stages span { padding: 6px 12px; border-radius: 20px; border: 2px solid rgba(255,255,255,.15); opacity: .45; font-weight: 800; }
.qr-stages span.got { border-color: var(--sc); color: var(--sc); opacity: 1; box-shadow: 0 0 12px color-mix(in srgb, var(--sc) 40%, transparent); }
.lc-dots { display: flex; gap: 6px; justify-content: center; margin: 4px 0 14px; }
.lc-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.lc-dots i.seen { background: color-mix(in srgb, var(--qc) 50%, transparent); }
.lc-dots i.on { background: var(--qc); box-shadow: 0 0 8px var(--qc); }
.lc-b { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.spk.listen { display: inline-block; margin: 4px auto 0; font-size: 15px; font-weight: 800; padding: 6px 14px; border: 1px solid var(--qc); border-radius: 20px; color: var(--qc); }
.pip.half { background: var(--gold); }
.pip.cur { outline: 2px solid var(--qc); outline-offset: 1px; }
.sc-count { font-size: 14px; font-weight: 700; color: #ff9fae; }
.sc-count.ok { color: var(--green); }
.sc-ms { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sc-m { background: rgba(255,93,115,.08); border-left: 3px solid #ff8b9c; border-radius: 8px; padding: 6px 10px; font-size: 15px; }
.sc-mk { font-weight: 800; color: #ff8b9c; margin-right: 6px; }
.sc-q { font-style: italic; }
.sc-fix { color: var(--green); font-weight: 800; }
.sc-why { color: var(--text); font-size: 14px; margin-top: 2px; }
.sc-keep { color: var(--cyan); font-weight: 700; font-size: 14px; }
.link-btn { background: none; border: none; color: var(--cyan); font-weight: 800; text-decoration: underline; padding: 0 4px; font-size: inherit; }
.su-imp.file { border-style: dashed; }

/* ---------- round 4: root questions, writing in quizzes, the 3-star checklist ---------- */
.q-shape { font-family: var(--head); font-size: 40px; letter-spacing: 2px; color: #fff; margin: 10px 0 4px; }
.q-shape .blank { color: var(--qc); display: inline-block; min-width: 1.6em; border-bottom: 4px solid var(--qc); margin: 0 2px; }
.q-family { display: flex; flex-direction: column; gap: 6px; max-width: 620px; margin: 10px auto 4px; text-align: left; }
.qf { display: flex; gap: 12px; align-items: baseline; padding: 7px 12px; border-radius: 12px; background: rgba(0,0,0,.28); border: 1px solid var(--line); }
.qf-w { font-family: var(--head); font-size: 22px; color: #fff; min-width: 34%; }
.qf-w b { color: var(--qc); text-decoration: underline; text-underline-offset: 4px; }
.qf-d { color: var(--muted); font-size: 14px; font-weight: 600; }
.fb-parts { margin-top: 4px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.fb-part { color: var(--text); }
.fb-part b { color: #9dffc4; }
.fb-part.ok { font-weight: 800; }
.fb-tip { color: var(--muted); font-size: 13px; font-weight: 600; }
.write-wrap { display: flex; flex-direction: column; gap: 6px; max-width: 640px; margin: 10px auto 0; text-align: left; }
.write-wrap textarea { width: 100%; min-height: 84px; resize: vertical; font: inherit; font-size: 19px; font-weight: 600; padding: 10px 14px; border-radius: 14px;
  border: 2px solid var(--line); background: rgba(0,0,0,.35); color: var(--text); user-select: text; }
.write-wrap textarea:focus { outline: none; border-color: var(--qc); }
.write-hint { background: rgba(255,209,102,.08); border: 1px dashed rgba(255,209,102,.5); border-radius: 10px; padding: 6px 10px; font-size: 15px; }
.write-hint b { color: var(--gold); }
.write-hint small { display: block; color: var(--muted); font-weight: 700; }
.fb-stars { color: var(--gold); letter-spacing: 3px; margin-left: 6px; }
.fb-info .sc-fb { font-size: 15px; }
.fb-info .sc-ms { max-height: 150px; overflow: auto; }
.sc-check { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0; }
.sc-check span { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 12px; border: 1px solid; }
.sc-check .ok { color: var(--green); border-color: rgba(77,255,154,.5); background: rgba(77,255,154,.08); }
.sc-check .no { color: #ff8b9c; border-color: rgba(255,93,115,.5); background: rgba(255,93,115,.08); }

/* ---------- round 5: ranks, rank locks, drop pity, pass seasons ---------- */
.rank-chip { display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-width: 220px; max-width: 320px; padding: 8px 16px; border-radius: 18px;
  background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(8px); color: var(--text); text-align: left; }
.rank-chip:hover { border-color: var(--cyan); }
.rkc-n { font-family: var(--head); font-size: 17px; }
.rkc-bar { height: 7px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.rkc-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffd166, #3dfcd8); }
.rank-chip small { color: var(--muted); font-weight: 700; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-wrap { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 20px; height: 100%; }
.rank-card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.rk-big { font-family: var(--head); font-size: 30px; }
.rk-s { color: var(--muted); font-weight: 700; }
.rk-next { font-weight: 700; }
.rk-how { background: rgba(0,0,0,.25); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.rk-how b { color: var(--gold); }
.rk-how div { display: flex; justify-content: space-between; font-weight: 700; }
.rk-how em { font-style: normal; color: var(--cyan); }
.rk-how small { color: var(--muted); line-height: 1.4; }
.rank-list { overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-right: 6px; }
.rk-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.rk-row.item { border-color: var(--rc); background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 22%, transparent), rgba(255,255,255,.03)); }
.rk-row.done { opacity: .6; }
.rk-row.cur { box-shadow: 0 0 0 2px var(--gold), 0 0 18px rgba(255,209,102,.3); opacity: 1; }
.rk-n { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--head); background: rgba(0,0,0,.35); }
.rk-row.done .rk-n { background: var(--green); color: #06101e; }
.rk-cv { width: 84px; height: 48px; flex: 0 0 84px; }
.rk-t { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rk-t span { color: var(--muted); font-weight: 600; font-size: 14px; }
.rk-t span b { color: var(--text); }
.rk-t small { color: var(--gold); font-weight: 700; font-size: 12px; }
.rk-p { color: var(--muted); font-weight: 800; font-size: 13px; white-space: nowrap; }
.c-price.lock { color: var(--muted); }
.maxed.lock { color: var(--muted); font-size: 13px; text-align: center; }
.pips i.capped { opacity: .35; background: repeating-linear-gradient(45deg, rgba(255,255,255,.12) 0 3px, transparent 3px 6px); }
.drops-pity { font-size: 11px; color: #dcb2ff; font-weight: 700; margin-top: 2px; }
.pass-note { color: var(--muted); font-weight: 700; margin-top: 10px; text-align: center; }
@media (max-width: 900px) {
  .rank-chip { min-width: 0; max-width: 200px; padding: 6px 10px; }
  .rank-chip small { display: none; }
  .rank-wrap { grid-template-columns: 1fr; }
}
