/* BE Mastery — Welding Mastery (Welding Professional English only).
   The hub has its own industrial room, like Practice Partner's violet one:
   deep navy and charcoal, electric blue for what you can touch, amber for XP
   and big moments, green for a right answer and mastery, purple for the
   collection and the journey. go() stamps data-view on <html>; the game
   overlay carries the same tokens so it looks the same from any page. */
:root[data-view="mastery"], .wm-game, .wm-sheet-bg, .wm-portal, .wm-perf-card {
  --wm-bg: #070b16; --wm-bg2: #0b1224; --wm-card: #0f1830; --wm-card2: #142042; --wm-line: rgba(124, 164, 255, .16); --wm-line2: rgba(124, 164, 255, .3);
  --wm-txt: #dbe3f4; --wm-mut: #9aa8c4; --wm-blue: #3b82f6; --wm-blue2: #60a5fa; --wm-cyan: #38bdf8; --wm-gold: #f5b52e; --wm-gold2: #ffd36b;
  --wm-green: #34d399; --wm-red: #f87171; --wm-purple: #a78bfa; --wm-r: 16px;
}
:root[data-view="mastery"], html:root[data-view="mastery"][data-track] {
  --bg: var(--wm-bg); --bg2: var(--wm-bg2); --card: var(--wm-card); --card2: var(--wm-card2); --line: var(--wm-line); --line2: var(--wm-line2);
  --txt: var(--wm-txt); --mut: var(--wm-mut); --acc: var(--wm-blue); --acc2: var(--wm-cyan); --green: var(--wm-green); --gold: var(--wm-gold);
  --accent: var(--wm-blue); --accent-fill: #2563eb; --accent-text: var(--wm-blue2); --on-accent: #fff; --focus: var(--wm-cyan);
  --grad: linear-gradient(135deg, #2563eb, #38bdf8);
}
:root[data-view="mastery"] body { background: radial-gradient(ellipse 90% 50% at 50% -10%, rgba(59, 130, 246, .16), transparent 70%), var(--wm-bg); }
.wm-ic { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.wm-ic.big { width: 34px; height: 34px; }
.wm-mut { color: var(--wm-mut, var(--mut)); font-size: 13.5px; line-height: 1.5; }
.wm-mut.small, .small { font-size: 12px; }
.center { text-align: center; justify-content: center; }
.wm-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
.wm-wide { width: 100%; justify-content: center; margin-top: 12px; }
.wm-h2 { font-size: 15px; margin: 22px 0 10px; color: var(--wm-txt); letter-spacing: .01em; }
.wm-h3 { font-size: 13.5px; margin: 18px 0 8px; color: var(--wm-txt); display: flex; gap: 6px; align-items: center; }
.wm-iconbtn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--wm-line); background: var(--wm-card); color: var(--wm-txt); cursor: pointer; flex: none; }
.wm-iconbtn:hover { border-color: var(--wm-blue); }
.wm-star.on, .wm-star.on .wm-ic { color: var(--wm-gold); }
.wm-star.on .wm-ic path { fill: currentColor; fill-opacity: .9; }
:focus-visible { outline: 2px solid var(--wm-cyan, #38bdf8); outline-offset: 2px; }
.wm-chip { display: inline-flex; gap: 5px; align-items: center; padding: 4px 9px; border-radius: 999px; font-size: 12px; background: var(--wm-card2); color: var(--wm-mut); border: 1px solid var(--wm-line); }
.wm-chip.ok { color: var(--wm-green); border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .08); }
.wm-chip .wm-ic { width: 15px; height: 15px; }
.wm-link { display: inline-flex; gap: 6px; align-items: center; margin-top: 14px; background: none; border: 0; color: var(--wm-blue2); font: inherit; font-size: 13.5px; cursor: pointer; padding: 8px 0; min-height: 44px; }
.wm-meter { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: hidden; flex: 1; min-width: 50px; }
.wm-meter > span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #2563eb, #38bdf8); transition: width .4s; }
.wm-meter.gold > span { background: linear-gradient(90deg, #e08a12, #ffd36b); }
.wm-meter.ok > span { background: linear-gradient(90deg, #10b981, #34d399); }
.wm-meter.thin { height: 4px; margin: 0 0 14px; }

/* ---------- the portal card on the Vocabulary page ---------- */
.wm-portal { position: relative; overflow: hidden; display: flex; gap: 16px; align-items: center; width: 100%; text-align: left; padding: 18px; margin: 4px 0 16px;
  border-radius: 20px; border: 1.5px solid rgba(245, 181, 46, .55); color: var(--wm-txt); cursor: pointer; font: inherit;
  background: radial-gradient(ellipse 70% 90% at 0% 0%, rgba(59, 130, 246, .28), transparent 60%), radial-gradient(ellipse 60% 80% at 100% 100%, rgba(167, 139, 250, .18), transparent 60%), linear-gradient(160deg, #0d1630, #070b16);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 211, 107, .08); transition: transform .15s, box-shadow .15s; }
.wm-portal:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 211, 107, .3); }
.wm-portal-glow { position: absolute; inset: auto -40px -60px auto; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 181, 46, .22), transparent 70%); pointer-events: none; }
.wm-logo { width: 64px; height: 64px; flex: none; }
.wm-logo-p { width: 84px; height: 84px; filter: drop-shadow(0 4px 14px rgba(245, 181, 46, .25)); }
.wm-logo-s { width: 40px; height: 40px; }
.wm-logo-l { width: 72px; height: 72px; }
.wm-portal-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; position: relative; }
.wm-portal-title { font-size: 20px; letter-spacing: .06em; font-weight: 800; color: #fff; }
.wm-portal-title span, .wm-hero h1 span { color: var(--wm-gold2); }
.wm-portal-sub { font-size: 13.5px; color: var(--wm-txt); }
.wm-portal-motto { font-size: 12px; color: var(--wm-blue2); letter-spacing: .04em; }
.wm-portal-prog { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.wm-portal-prog small { font-size: 12px; color: var(--wm-mut); white-space: nowrap; }
.wm-portal-shift, .wm-portal-stats { font-size: 12.5px; color: var(--wm-mut); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.wm-portal-stats span { display: inline-flex; gap: 4px; align-items: center; color: var(--wm-gold2); }
.wm-portal-shift .wm-ic, .wm-portal-stats .wm-ic { width: 16px; height: 16px; }
.wm-portal-cta { margin-top: 8px; align-self: flex-start; padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 12px; background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff; font-weight: 700; font-size: 14px; }
@media (max-width: 420px) { .wm-portal { flex-direction: column; align-items: flex-start; } .wm-portal-cta { align-self: stretch; justify-content: center; } }

/* ---------- the hub ---------- */
.wm-hub { padding-bottom: 30px; }
.wm-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 5; padding: 6px 0; background: linear-gradient(var(--wm-bg) 70%, transparent); }
.wm-hero { display: flex; gap: 14px; align-items: center; margin: 6px 0 12px; }
.wm-hero h1 { margin: 0; font-size: 24px; letter-spacing: .06em; color: #fff; font-weight: 800; }
.wm-hero p { margin: 2px 0 0; color: var(--wm-mut); font-size: 13.5px; }
.wm-stats { display: flex; gap: 6px; flex-wrap: nowrap; margin-bottom: 12px; min-width: 0; }   /* one line, always */
/* five chips (level, XP, streak, mastered, energy) share the line equally: icon above the value, so each number stays whole at 390 px */
.wm-stat { display: flex; flex-direction: column; gap: 3px; align-items: center; justify-content: center; flex: 1 1 0; min-width: 0; white-space: nowrap; padding: 7px 4px; border-radius: 12px; background: var(--wm-card); border: 1px solid var(--wm-line); font-size: 12.5px; line-height: 1.15; }
.wm-stat .wm-ic { width: 17px; height: 17px; color: var(--wm-purple); }
.wm-stat.xp .wm-ic { color: var(--wm-gold); } .wm-stat.fl .wm-ic { color: #fb923c; } .wm-stat.ok .wm-ic { color: var(--wm-green); }
.wm-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(56px, 1fr); overflow-x: auto; scrollbar-width: none; gap: 4px; padding: 4px; border-radius: 14px; background: var(--wm-bg2); border: 1px solid var(--wm-line); margin-bottom: 14px; position: sticky; top: 52px; z-index: 4; }
.wm-tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px; min-height: 52px; border: 0; border-radius: 10px; background: none; color: var(--wm-mut); font: inherit; font-size: 11px; cursor: pointer; min-width: 0; }
.wm-tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-tab .wm-tl-s { display: none; }
@media (max-width: 440px) { .wm-tab .wm-tl-s { display: inline; } .wm-tab .wm-tl-s ~ .wm-tl { display: none; } }
.wm-tab.on { background: var(--wm-card2); color: #fff; box-shadow: inset 0 -2px 0 var(--wm-blue); }
.wm-tab.on .wm-ic { color: var(--wm-blue2); }
.wm-load, .wm-off { text-align: center; padding: 40px 16px; }
.wm-first { display: flex; gap: 12px; align-items: flex-start; border-color: rgba(167, 139, 250, .35); margin-bottom: 12px; }
.wm-first .wm-ic { color: var(--wm-purple); width: 28px; height: 28px; }
.wm-first p { margin: 4px 0 0; color: var(--wm-mut); font-size: 13.5px; }
.wm-overview { display: flex; gap: 16px; align-items: center; }
.wm-ring { --p: 0; width: 92px; height: 92px; border-radius: 50%; flex: none; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, var(--wm-card) 78%, transparent 80% 100%), conic-gradient(var(--wm-green) calc(var(--p) * 1%), rgba(255, 255, 255, .08) 0); }
.wm-ring b { font-size: 22px; color: #fff; line-height: 1; } .wm-ring small { font-size: 11px; color: var(--wm-mut); }
.wm-ov-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.wm-ov-t small { color: var(--wm-mut); font-size: 12.5px; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.wm-ov-t small .wm-ic { width: 15px; height: 15px; color: #fb923c; }
.wm-lv { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--wm-mut); flex-wrap: wrap; }
.wm-lv span:first-child { color: var(--wm-gold2); font-weight: 700; }
.wm-shift { margin-top: 12px; border-color: rgba(245, 181, 46, .35); background: linear-gradient(160deg, rgba(245, 181, 46, .08), transparent 60%), var(--wm-card); }
.wm-shift.done { border-color: rgba(52, 211, 153, .4); }
.wm-shift-h { display: flex; gap: 10px; align-items: center; }
.wm-shift-h .wm-ic { width: 26px; height: 26px; color: var(--wm-gold); }
.wm-shift-h small { display: block; font-size: 11.5px; color: var(--wm-gold2); text-transform: uppercase; letter-spacing: .08em; }
.wm-shift p { color: var(--wm-mut); font-size: 13px; margin: 8px 0; }
.wm-shift-f { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 13px; color: var(--wm-mut); }
.wm-cont { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; cursor: pointer; font: inherit; color: var(--wm-txt); margin-bottom: 10px; }
.wm-cont .wm-ic { width: 26px; height: 26px; color: var(--wm-blue2); }
.wm-cont span:nth-child(2) { flex: 1; min-width: 0; } .wm-cont small { display: block; color: var(--wm-mut); font-size: 12.5px; margin-top: 2px; }
.wm-go { color: var(--wm-blue2); font-size: 18px; }
.wm-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.wm-wchip { padding: 8px 12px; min-height: 40px; border-radius: 999px; border: 1px solid var(--wm-line2); background: var(--wm-card); color: var(--wm-txt); font: inherit; font-size: 13px; cursor: pointer; }
.wm-wchip.m { border-color: rgba(52, 211, 153, .5); color: var(--wm-green); }
.wm-wchip.h { border-color: rgba(248, 113, 113, .4); }

.wm-games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .wm-games { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.wm-game-card { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; padding: 14px; border-radius: var(--wm-r); border: 1px solid var(--wm-line); background: linear-gradient(170deg, var(--wm-card2), var(--wm-card)); color: var(--wm-txt); font: inherit; cursor: pointer; min-height: 150px; transition: transform .15s, border-color .15s; }
.wm-game-card:hover { transform: translateY(-2px); border-color: var(--wm-blue); }
.wm-gc-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: rgba(59, 130, 246, .14); color: var(--wm-blue2); margin-bottom: 4px; box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .25); }
.wm-gc-ic .wm-ic { width: 26px; height: 26px; }
.wm-game-card b { font-size: 14.5px; } .wm-game-card small { font-size: 12.5px; color: var(--wm-mut); }
.wm-gc-skill { margin-top: auto; font-size: 11px; color: var(--wm-purple); text-transform: uppercase; letter-spacing: .06em; }
.wm-gc-best { font-size: 11.5px; color: var(--wm-gold2); }

.wm-road { list-style: none; padding: 0; margin: 12px 0 0; position: relative; }
.wm-road::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: repeating-linear-gradient(var(--wm-line2) 0 10px, transparent 10px 16px); }
.wm-stage { display: flex; gap: 12px; position: relative; margin-bottom: 12px; }
.wm-node { width: 45px; height: 45px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--wm-bg2); border: 2px solid var(--wm-line2); color: var(--wm-mut); z-index: 1; }
.wm-stage.now .wm-node { border-color: var(--wm-purple); color: var(--wm-purple); box-shadow: 0 0 0 4px rgba(167, 139, 250, .14); }
.wm-stage.done .wm-node { border-color: var(--wm-green); color: var(--wm-green); background: rgba(52, 211, 153, .1); }
.wm-stage-c { flex: 1; min-width: 0; margin: 0; }
.wm-stage-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wm-stage-h small { color: var(--wm-mut); font-size: 12px; } .wm-stage-h b { flex: 1; min-width: 120px; }
.wm-stage-n { font-size: 12.5px; color: var(--wm-mut); margin: 6px 0; }
.wm-stage-a { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.wm-stage-a .wm-mut { display: inline-flex; gap: 4px; align-items: center; } .wm-stage-a .wm-ic { width: 15px; height: 15px; }

.wm-coll-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.wm-search { flex: 1; min-width: 200px; display: flex; gap: 8px; align-items: center; padding: 0 12px; border-radius: 12px; background: var(--wm-card); border: 1px solid var(--wm-line); }
.wm-search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--wm-txt); font: inherit; font-size: 14px; padding: 12px 0; outline: none; }
.wm-dir { display: inline-flex; gap: 6px; align-items: center; padding: 8px 12px; min-height: 44px; border-radius: 12px; border: 1px solid var(--wm-line); background: var(--wm-card); color: var(--wm-txt); font: inherit; font-size: 13px; cursor: pointer; }
.wm-dir b { color: var(--wm-blue2); }
.wm-dirbar { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.wm-segs { display: flex; gap: 4px; padding: 4px; margin: 12px 0 8px; border-radius: 12px; background: var(--wm-bg2); border: 1px solid var(--wm-line); overflow-x: auto; }
.wm-segs.sm { margin: 0; }
.wm-seg { flex: 1 0 auto; padding: 9px 12px; min-height: 40px; border-radius: 9px; border: 0; background: none; color: var(--wm-mut); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.wm-seg.on { background: rgba(167, 139, 250, .18); color: #fff; box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .4); }
.wm-cats { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 8px; scrollbar-width: thin; }
.wm-cat { flex: none; display: inline-flex; gap: 5px; align-items: center; padding: 7px 11px; min-height: 38px; border-radius: 999px; border: 1px solid var(--wm-line); background: var(--wm-card); color: var(--wm-mut); font: inherit; font-size: 12.5px; cursor: pointer; }
.wm-cat .wm-ic { width: 15px; height: 15px; }
.wm-cat.on { color: #fff; border-color: var(--wm-purple); background: rgba(167, 139, 250, .14); }
.wm-practise { width: 100%; justify-content: center; margin: 6px 0 10px; }
.wm-words { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.wm-word { display: flex; gap: 6px; align-items: center; }
.wm-word-b { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: center; text-align: left; padding: 10px 12px; min-height: 52px; border-radius: 12px; border: 1px solid var(--wm-line); background: var(--wm-card); color: var(--wm-txt); font: inherit; cursor: pointer; }
.wm-word-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(59, 130, 246, .12); color: var(--wm-blue2); flex: none; }
.wm-word-ic .wm-ic { width: 17px; height: 17px; }
.wm-word-t { flex: 1; min-width: 0; } .wm-word-t b { display: block; font-size: 14px; } .wm-word-t small { display: block; font-size: 12.5px; color: var(--wm-mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: transparent; border: 1.5px solid var(--wm-line2); }
.wm-dot.s { background: var(--wm-blue); border-color: var(--wm-blue); } .wm-dot.h { background: var(--wm-red); border-color: var(--wm-red); } .wm-dot.m { background: var(--wm-green); border-color: var(--wm-green); }
.wm-empty { padding: 18px 4px; }
.wm-myform label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--wm-mut); margin-bottom: 10px; }
.wm-myform input, .wm-myform textarea, .wm-typed input { background: var(--wm-bg2); border: 1px solid var(--wm-line2); border-radius: 10px; color: var(--wm-txt); font: inherit; font-size: 14.5px; padding: 11px 12px; }
.wm-err { color: var(--wm-red); font-size: 13px; min-height: 1em; margin: 4px 0; }
.wm-saved { margin-top: 14px; }

.wm-lvcard { display: flex; gap: 14px; align-items: center; }
.wm-lvcard > div { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.wm-lvcard small { color: var(--wm-mut); font-size: 12.5px; }
.wm-lvcard .wm-ic.big { color: var(--wm-gold); } .wm-lvcard .wm-ic.fl { color: #fb923c; }
.wm-achs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 720px) { .wm-achs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wm-ach { padding: 12px; border-radius: 14px; background: var(--wm-card); border: 1px solid var(--wm-line); display: flex; flex-direction: column; gap: 3px; opacity: .72; }
.wm-ach.got { opacity: 1; border-color: rgba(245, 181, 46, .45); background: linear-gradient(170deg, rgba(245, 181, 46, .1), transparent 60%), var(--wm-card); }
.wm-ach-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--wm-bg2); color: var(--wm-mut); margin-bottom: 4px; }
.wm-ach.got .wm-ach-ic { color: var(--wm-gold); background: rgba(245, 181, 46, .12); }
.wm-ach b { font-size: 13.5px; } .wm-ach small { font-size: 12px; color: var(--wm-mut); } .wm-ach em { font-size: 11.5px; color: var(--wm-gold2); font-style: normal; margin-top: auto; }
.wm-ach:not(.got) em { color: var(--wm-mut); }

/* ---------- Game Performance (hub tab + Progress page card) ---------- */
.wm-perf-card { margin: 16px 0; color: var(--wm-txt); background: linear-gradient(170deg, #101a36, #0b1224); border: 1px solid rgba(124, 164, 255, .22); }
.wm-perf-card .wm-mut, .wm-perf-card small { color: #9aa8c4; }
.wm-perf-head { display: flex; gap: 12px; align-items: center; }
.wm-perf-head h2 { margin: 0; font-size: 16px; color: #fff; } .wm-perf-head p { margin: 2px 0 0; font-size: 12.5px; color: #9aa8c4; }
.wm-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
@media (min-width: 640px) { .wm-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.wm-kpi { padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(124, 164, 255, .14); display: flex; flex-direction: column; gap: 4px; }
.wm-kpi small { font-size: 11.5px; color: #9aa8c4; } .wm-kpi b { font-size: 22px; color: #fff; } .wm-kpi b i { font-size: 13px; color: #9aa8c4; font-style: normal; }
.wm-na { font-size: 11px; color: #9aa8c4; font-style: normal; }
.wm-xpbars { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 2px; height: 70px; align-items: end; padding: 0 2px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.wm-xpb { height: 100%; display: flex; align-items: flex-end; }
.wm-xpb i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: #f5b52e; }
.wm-xpaxis { display: flex; justify-content: space-between; font-size: 11px; color: #9aa8c4; margin-top: 4px; }
.wm-bars { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.wm-bars li { display: grid; grid-template-columns: minmax(110px, 38%) 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.wm-bars li > span:first-child { display: flex; gap: 6px; align-items: center; min-width: 0; }
.wm-bars li > span:first-child .wm-ic { width: 16px; height: 16px; color: var(--wm-blue2); }
.wm-bars em { grid-column: 2 / 4; font-size: 12px; color: #9aa8c4; font-style: normal; }
.wm-bars b { font-size: 12.5px; color: var(--wm-txt); min-width: 40px; text-align: right; }
.wm-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.wm-list li { display: flex; gap: 6px; align-items: flex-start; } .wm-list .wm-ic { width: 16px; height: 16px; color: var(--wm-green); }
.wm-rec { display: flex; gap: 12px; align-items: center; margin-top: 16px; flex-wrap: wrap; border-color: rgba(59, 130, 246, .4); }
.wm-rec > div { flex: 1; min-width: 180px; } .wm-rec small { display: block; color: var(--wm-blue2); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; } .wm-rec > .wm-ic { width: 28px; height: 28px; color: var(--wm-blue2); }

/* ---------- the game overlay ---------- */
.wm-game { position: fixed; inset: 0; z-index: 150; display: none; overflow-y: auto; color: var(--wm-txt);
  background: radial-gradient(ellipse 90% 50% at 50% -10%, rgba(59, 130, 246, .2), transparent 70%), var(--wm-bg);
  padding: max(12px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)); }
.wm-game.show { display: block; }
.wm-g-in { max-width: 640px; margin: 0 auto; }
.wm-g-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.wm-g-title { flex: 1; display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 15px; }
.wm-g-title .wm-ic { color: var(--wm-blue2); }
.wm-g-prog { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--wm-mut); }
.wm-combo { display: inline-flex; gap: 4px; align-items: center; font-style: normal; color: #fb923c; font-size: 12.5px; }
.wm-combo .wm-ic { width: 15px; height: 15px; }
.wm-combo.pop { animation: wmPop .5s; }
.wm-g-msg { text-align: center; padding: 40px 10px; }
.wm-q-h { font-size: 14px; color: var(--wm-mut); margin: 8px 0; text-align: center; }
.wm-q-p { text-align: center; padding: 16px; border-radius: var(--wm-r); background: var(--wm-card); border: 1px solid var(--wm-line); margin-bottom: 14px; }
.wm-q-w { display: block; font-size: 26px; color: #fff; margin: 6px 0; word-break: break-word; }
.wm-q-clue { font-size: 16px; line-height: 1.5; margin: 0; }
.wm-tr { margin-top: 8px; font-size: 13px; color: var(--wm-mut); }
.wm-tr summary { cursor: pointer; color: var(--wm-blue2); min-height: 32px; display: inline-flex; align-items: center; }
.fr { color: var(--wm-mut, var(--mut)); font-style: italic; }
.wm-art { width: 160px; height: 160px; color: #cfe0ff; display: block; margin: 0 auto; }
.wm-visual .wm-art { width: 200px; height: 200px; }
.wm-catart { width: 96px; height: 96px; margin: 0 auto; border-radius: 24px; display: grid; place-items: center; background: rgba(59, 130, 246, .12); color: var(--wm-blue2); }
.wm-catart .wm-ic { width: 46px; height: 46px; }
.wm-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wm-opts.col { grid-template-columns: 1fr; }
@media (max-width: 380px) { .wm-opts { grid-template-columns: 1fr; } }
.wm-opt { padding: 13px 12px; min-height: 52px; border-radius: 12px; border: 1px solid var(--wm-line2); background: var(--wm-card); color: var(--wm-txt); font: inherit; font-size: 14.5px; cursor: pointer; text-align: center; word-break: break-word; }
.wm-opt.long { text-align: left; font-size: 14px; line-height: 1.4; }
.wm-opt:hover:not(:disabled) { border-color: var(--wm-blue); background: var(--wm-card2); }
.wm-opt.correct { border-color: var(--wm-green); background: rgba(52, 211, 153, .14); color: #fff; animation: wmOk .35s; }
.wm-opt.wrong { border-color: var(--wm-red); background: rgba(248, 113, 113, .12); animation: wmShake .3s; }
.wm-opt:disabled { cursor: default; }
.wm-fb { display: flex; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid; font-size: 13.5px; }
.wm-fb.ok { border-color: rgba(52, 211, 153, .45); background: rgba(52, 211, 153, .08); } .wm-fb.ok > .wm-ic { color: var(--wm-green); }
.wm-fb.no { border-color: rgba(248, 113, 113, .4); background: rgba(248, 113, 113, .07); } .wm-fb.no > .wm-ic { color: var(--wm-red); }
.wm-fb > .wm-ic { width: 24px; height: 24px; } .wm-fb span { display: block; margin-top: 2px; color: #fff; } .wm-fb p { margin: 6px 0 0; line-height: 1.45; }

.wm-card { border-radius: 20px; padding: 18px; background: linear-gradient(170deg, var(--wm-card2), var(--wm-card)); border: 1px solid var(--wm-line2); text-align: center; }
.wm-card-front { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.wm-card-front small { color: var(--wm-mut); font-size: 12px; }
.wm-card-w { font-size: 30px; color: #fff; word-break: break-word; }
.wm-card-back { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--wm-line2); text-align: left; animation: wmIn .3s; }
.wm-card-w2 { display: block; text-align: center; font-size: 22px; color: var(--wm-gold2); margin-bottom: 10px; }
.wm-rate-q { text-align: center; color: var(--wm-mut); font-size: 13px; margin: 14px 0 8px; }
.wm-rate { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.wm-rate-b { padding: 12px 4px; min-height: 52px; border-radius: 12px; border: 1px solid var(--wm-line2); background: var(--wm-card); color: var(--wm-txt); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.wm-rate-b.r0 { border-color: rgba(248, 113, 113, .5); } .wm-rate-b.r1 { border-color: rgba(251, 146, 60, .5); } .wm-rate-b.r2 { border-color: rgba(59, 130, 246, .6); } .wm-rate-b.r3 { border-color: rgba(52, 211, 153, .6); }
.wm-full-h { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.wm-full-h .wm-art { width: 84px; height: 84px; margin: 0; flex: none; } .wm-full-h .wm-catart { width: 64px; height: 64px; margin: 0; flex: none; border-radius: 16px; }
.wm-full-h .wm-catart .wm-ic { width: 30px; height: 30px; }
.wm-full-h b { display: block; font-size: 20px; color: #fff; } .wm-full-h span { display: block; color: var(--wm-gold2); font-size: 15px; } .wm-full-h small { color: var(--wm-mut); font-size: 12px; }
.wm-f { margin: 10px 0; } .wm-f > b { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--wm-blue2); text-transform: uppercase; letter-spacing: .06em; }
.wm-f > b .wm-ic { width: 15px; height: 15px; } .wm-f p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; }
.wm-full-a .btn.on { border-color: var(--wm-red); }

.wm-listen { text-align: center; padding: 10px 0; }
.wm-big-play { width: 96px; height: 96px; border-radius: 50%; border: 0; cursor: pointer; display: inline-grid; place-items: center; color: #fff; background: radial-gradient(circle at 30% 30%, #60a5fa, #1d4ed8); box-shadow: 0 0 0 6px rgba(59, 130, 246, .15), 0 10px 26px rgba(29, 78, 216, .4); }
.wm-big-play .wm-ic { width: 44px; height: 44px; }
.wm-hint { color: var(--wm-gold2); font-size: 13.5px; }
.wm-typed { display: flex; gap: 8px; margin-top: 12px; } .wm-typed input { flex: 1; min-width: 0; }
.wm-slots { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 6px 0 14px; }
.wm-slot { width: 30px; height: 38px; border-radius: 8px; border-bottom: 3px solid var(--wm-line2); background: var(--wm-bg2); display: grid; place-items: center; font-weight: 700; font-size: 17px; color: #fff; }
.wm-slot.f { border-color: var(--wm-blue); } .wm-slot.hint { border-color: var(--wm-gold); color: var(--wm-gold2); }
.wm-slot.gap { width: 12px; background: none; border: 0; }
.wm-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.wm-tile { width: 44px; height: 48px; border-radius: 10px; border: 1px solid var(--wm-line2); background: linear-gradient(170deg, #1b2a52, #132042); color: #fff; font: inherit; font-weight: 800; font-size: 18px; cursor: pointer; box-shadow: 0 3px 0 #0a1330; }
.wm-tile:disabled { opacity: .25; box-shadow: none; }
.wm-match { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 60%); gap: 8px; }
.wm-match.img { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.wm-mcol { display: flex; flex-direction: column; gap: 8px; }
.wm-m { padding: 10px; min-height: 56px; border-radius: 12px; border: 1px solid var(--wm-line2); background: var(--wm-card); color: var(--wm-txt); font: inherit; font-size: 13.5px; cursor: pointer; text-align: left; line-height: 1.35; word-break: break-word; }
.wm-m.r { font-size: 12.5px; } .wm-m .wm-art { width: 64px; height: 64px; }
.wm-m.sel { border-color: var(--wm-purple); background: rgba(167, 139, 250, .16); box-shadow: 0 0 0 2px rgba(167, 139, 250, .35); }
.wm-m.ok { border-color: var(--wm-green); background: rgba(52, 211, 153, .1); opacity: .8; }
.wm-m.late { border-color: rgba(251, 146, 60, .6); opacity: .8; }
.wm-m.bad { animation: wmShake .3s; border-color: var(--wm-red); }
.wm-ws-h { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.wm-ws-h .wm-ic { width: 30px; height: 30px; color: var(--wm-gold); } .wm-ws-h small { display: block; color: var(--wm-mut); font-size: 12px; }
.wm-ws blockquote { margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--wm-card); border-left: 3px solid var(--wm-gold); font-size: 15.5px; line-height: 1.5; color: #fff; }
.wm-cw .cw-cell input { background: var(--wm-bg2); color: #fff; }
.wm-cw .cw-clues li { margin-bottom: 6px; font-size: 13px; }
.wm-end { text-align: center; padding: 30px 6px; }
.wm-end-ic .wm-ic.big { width: 56px; height: 56px; color: var(--wm-gold); }
.wm-end h2 { margin: 10px 0 4px; } .wm-end-score { font-size: 18px; color: #fff; } .wm-end-xp { color: var(--wm-gold2); display: flex; gap: 6px; justify-content: center; align-items: center; }
.wm-end-m { color: var(--wm-green); }

/* ---------- celebrations (short, optional, still under reduced motion) ---------- */
.wm-cel { position: fixed; left: 50%; bottom: max(28px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 170; display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 16px; min-width: 240px; max-width: calc(100vw - 32px);
  background: linear-gradient(160deg, #1a2550, #0d1530); border: 1px solid rgba(255, 211, 107, .5); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); color: #fff; animation: wmUp .35s ease-out; transition: opacity .5s, transform .5s; }
.wm-cel.out { opacity: 0; transform: translate(-50%, 12px); }
.wm-cel-ic .wm-ic { width: 32px; height: 32px; color: var(--wm-gold2); }
.wm-cel-mastered { border-color: rgba(52, 211, 153, .6); } .wm-cel-mastered .wm-cel-ic .wm-ic { color: var(--wm-green); }
.wm-cel-t b { display: block; font-size: 14.5px; } .wm-cel-t small { color: #c3cde3; font-size: 13px; }
.wm-burst { position: absolute; inset: 0; pointer-events: none; }
.wm-burst b { position: absolute; left: 30px; top: 50%; width: 6px; height: 6px; border-radius: 1px; background: #ffd36b; transform: rotate(45deg); animation: wmStar .9s ease-out forwards; }
.wm-burst b:nth-child(2n) { background: #60a5fa; } .wm-burst b:nth-child(3n) { background: #34d399; }
.wm-burst b:nth-child(1) { --x: -40px; --y: -50px; } .wm-burst b:nth-child(2) { --x: 30px; --y: -60px; } .wm-burst b:nth-child(3) { --x: 70px; --y: -30px; } .wm-burst b:nth-child(4) { --x: -60px; --y: -10px; } .wm-burst b:nth-child(5) { --x: 90px; --y: -55px; }
.wm-burst b:nth-child(6) { --x: 10px; --y: -75px; } .wm-burst b:nth-child(7) { --x: 120px; --y: -20px; } .wm-burst b:nth-child(8) { --x: -20px; --y: -80px; } .wm-burst b:nth-child(9) { --x: 150px; --y: -45px; } .wm-burst b:nth-child(10) { --x: 50px; --y: -85px; }
@keyframes wmStar { from { opacity: 1; transform: translate(0, 0) rotate(45deg) scale(1); } to { opacity: 0; transform: translate(var(--x), var(--y)) rotate(200deg) scale(.4); } }
@keyframes wmUp { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes wmPop { 50% { transform: scale(1.25); } }
@keyframes wmOk { 50% { transform: scale(1.04); } }
@keyframes wmShake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes wmIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.wm-sheet-bg { position: fixed; inset: 0; z-index: 180; background: rgba(3, 6, 14, .7); display: flex; align-items: flex-end; justify-content: center; }
.wm-sheet { position: relative; width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; background: #0d1530; color: var(--wm-txt); border-radius: 20px 20px 0 0; border: 1px solid var(--wm-line2); padding: 22px 18px max(22px, env(safe-area-inset-bottom)); animation: wmIn .25s; }
@media (min-width: 640px) { .wm-sheet-bg { align-items: center; } .wm-sheet { border-radius: 20px; } }
.wm-sheet h2 { display: flex; gap: 8px; align-items: center; font-size: 17px; margin: 0 0 14px; padding-right: 48px; }
.wm-sheet-x { position: absolute; top: 12px; right: 12px; }
.wm-set-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--wm-line); flex-wrap: wrap; font-size: 14px; }

html.wm-still .wm-game *, html.wm-still .wm-cel, html.wm-still .wm-sheet, html.wm-still .wm-portal { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { .wm-game *, .wm-cel, .wm-sheet, .wm-portal, .wm-meter > span { animation: none !important; transition: none !important; } .wm-burst { display: none; } }
@media (forced-colors: active) { .wm-meter > span, .wm-xpb i { background: CanvasText; } }

/* ---------- History: grouped by day / by stage, everything folded ---------- */
.wm-hd, .wm-hr { border-radius: 14px; background: var(--wm-card); border: 1px solid var(--wm-line); margin-bottom: 8px; }
.wm-hd > summary, .wm-hr > summary { display: flex; gap: 10px; align-items: center; padding: 12px 14px; min-height: 52px; cursor: pointer; list-style: none; }
.wm-hd > summary::-webkit-details-marker, .wm-hr > summary::-webkit-details-marker { display: none; }
.wm-hd > summary::after, .wm-hr > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--wm-mut); border-bottom: 2px solid var(--wm-mut); transform: rotate(45deg); margin-left: auto; flex: none; transition: transform .2s; }
.wm-hd[open] > summary::after, .wm-hr[open] > summary::after { transform: rotate(225deg); }
.wm-hd > summary > span, .wm-hr > summary > span { flex: 1; min-width: 0; } .wm-hd > summary small, .wm-hr > summary small { display: block; color: var(--wm-mut); font-size: 12px; margin-top: 2px; }
.wm-hd > summary > .wm-ic, .wm-hr > summary > .wm-ic { color: var(--wm-purple); }
.wm-hd[open] { padding-bottom: 8px; } .wm-hd > :not(summary) { margin-left: 12px; margin-right: 12px; }
.wm-hr { background: var(--wm-bg2); } .wm-hr > summary > .wm-ic { color: var(--wm-blue2); }
.wm-hr-s { font-style: normal; font-size: 12.5px; color: var(--wm-mut); } .wm-hr-s.ok { color: var(--wm-green); }
.wm-his { list-style: none; padding: 0 12px 6px; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.wm-hi { display: flex; gap: 8px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--wm-line); font-size: 13px; }
.wm-hi > .wm-ic { width: 18px; height: 18px; margin-top: 2px; } .wm-hi.ok > .wm-ic { color: var(--wm-green); } .wm-hi.no > .wm-ic { color: var(--wm-red); }
.wm-hi > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .wm-hi small { color: var(--wm-mut); font-size: 12px; line-height: 1.4; } .wm-hi small.bad { color: #fca5a5; }
.wm-hi em { font-style: normal; font-size: 11px; color: var(--wm-mut); white-space: nowrap; } .wm-hi em.open { color: #fca5a5; } .wm-hi em.fixed { color: var(--wm-blue2); } .wm-hi em.mastered { color: var(--wm-green); }
.wm-hi-w { background: none; border: 0; padding: 0; color: var(--wm-txt); font: inherit; text-align: left; cursor: pointer; } .wm-hi-w span { color: var(--wm-gold2); }
.wm-stage-hist { margin: 12px 0 0; background: var(--wm-bg2); } .wm-stage-hist .btn { margin: 4px 0 8px; }

/* Quick Practice on Welding has three boosters (General English has four): the
   row fills the whole line instead of leaving the fourth column empty. */
:root[data-track="welding"] .prac-ex { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* real photographs (Wikimedia Commons, credited under each one) */
.wm-photo { margin: 0 auto; max-width: 340px; }
.wm-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: #0b1224; }
.wm-photo figcaption { margin-top: 5px; font-size: 10.5px; line-height: 1.3; color: var(--wm-mut); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-card-front .wm-photo { width: 100%; max-width: 280px; }
.wm-full-h .wm-photo { width: 104px; flex: none; margin: 0; }
.wm-photo-credit { font-size: 11px; color: var(--wm-mut); display: flex; gap: 5px; align-items: center; margin: 4px 0; }
.wm-photo-credit .wm-ic { width: 14px; height: 14px; } .wm-photo-credit a { color: var(--wm-mut); }
.wm-m .wm-photo { max-width: 120px; } .wm-m .wm-photo img { border-radius: 10px; }
.wm-q-p .wm-photo { max-width: 360px; }

.wm-stat b { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 360px) { .wm-stat { padding: 6px 3px; font-size: 11.5px; } .wm-stat .wm-ic { width: 15px; height: 15px; } }

/* ---------- the daily habit: challenge, weekly goal, next goal (9 Oct 2026) ---------- */
.wm-daily { position: relative; overflow: hidden; display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 16px; margin: 0 0 12px; border: 0; border-radius: 20px; cursor: pointer; font: inherit; color: #fff;
  background: radial-gradient(ellipse 60% 120% at 0% 0%, rgba(255, 211, 107, .55), transparent 60%), linear-gradient(120deg, #f59e0b, #ec4899 55%, #8b5cf6);
  box-shadow: 0 12px 28px rgba(236, 72, 153, .28), inset 0 1px 0 rgba(255, 255, 255, .35); }
.wm-daily.done { background: linear-gradient(120deg, #059669, #10b981 60%, #34d399); box-shadow: 0 10px 24px rgba(16, 185, 129, .25); }
.wm-daily-burst { position: absolute; right: -30px; top: -30px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .35), transparent 65%); pointer-events: none; }
.wm-daily-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, .22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.wm-daily-ic .wm-ic { width: 30px; height: 30px; color: #fff; }
.wm-daily-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; position: relative; }
.wm-daily-t small { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.wm-daily-t b { font-size: 16px; line-height: 1.25; } .wm-daily-t em { font-style: normal; font-size: 12.5px; opacity: .92; }
.wm-daily-xp { flex: none; font-weight: 800; font-size: 20px; display: flex; flex-direction: column; align-items: center; line-height: 1; padding: 8px 10px; border-radius: 14px; background: rgba(0, 0, 0, .18); }
.wm-daily-xp i { font-style: normal; font-size: 10px; letter-spacing: .1em; opacity: .9; } .wm-daily-xp .wm-ic { width: 26px; height: 26px; }
.wm-daily-lock { position: absolute; right: 12px; bottom: 8px; font-size: 11px; display: inline-flex; gap: 4px; align-items: center; opacity: .9; } .wm-daily-lock .wm-ic { width: 13px; height: 13px; }
.wm-twin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-bottom: 12px; }
@media (max-width: 420px) { .wm-twin { grid-template-columns: 1fr; } }
/* on its own (Rewards) the weekly goal keeps the cards' rhythm; inside Home's twin row the grid gap spaces it */
.wm-week { margin: 12px 0 0; } .wm-twin .wm-week { margin: 0; }
.wm-week-h { display: flex; gap: 10px; align-items: center; } .wm-week-h > .wm-ic { color: #fb923c; width: 24px; height: 24px; }
.wm-week-h span { flex: 1; } .wm-week-h small { display: block; font-size: 11px; color: var(--wm-mut); text-transform: uppercase; letter-spacing: .06em; } .wm-week-h b { font-size: 14px; }
.wm-week-dots { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 10px; }
.wm-dotd { display: flex; flex-direction: column; align-items: center; gap: 3px; } .wm-dotd small { font-size: 10px; color: var(--wm-mut); }
.wm-dotd i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .07); border: 1.5px solid var(--wm-line2); }
.wm-dotd.on i { background: linear-gradient(135deg, #fb923c, #f59e0b); border-color: transparent; color: #fff; box-shadow: 0 4px 10px rgba(251, 146, 60, .35); }
.wm-dotd.today i { border-color: var(--wm-gold2); } .wm-dotd.fut i { opacity: .45; } .wm-dotd i .wm-ic { width: 14px; height: 14px; }
.wm-ngoal { display: flex; gap: 10px; align-items: center; margin: 0; width: 100%; text-align: left; cursor: pointer; font: inherit; color: var(--wm-txt); border-color: rgba(59, 130, 246, .4);
  background: linear-gradient(160deg, rgba(59, 130, 246, .16), transparent 70%), var(--wm-card); }
.wm-ngoal > .wm-ic { width: 26px; height: 26px; color: var(--wm-blue2); } .wm-ngoal span:nth-child(2) { flex: 1; min-width: 0; }
.wm-ngoal small { display: block; font-size: 11px; color: var(--wm-blue2); text-transform: uppercase; letter-spacing: .06em; } .wm-ngoal b { font-size: 13.5px; line-height: 1.35; }
.wm-next { display: flex; gap: 10px; align-items: center; text-align: left; margin: 14px auto; max-width: 420px; }
.wm-next .wm-ic { color: var(--wm-blue2); width: 24px; height: 24px; } .wm-next small { display: block; color: var(--wm-blue2); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.wm-signin { display: flex; gap: 12px; align-items: flex-start; border-color: rgba(245, 181, 46, .45); margin-bottom: 12px; }
.wm-signin > .wm-ic { color: var(--wm-gold2); width: 26px; height: 26px; } .wm-signin p { margin: 4px 0 10px; font-size: 13px; color: var(--wm-mut); }

/* ---------- energy ---------- */
.wm-stat.en .wm-ic { color: #facc15; } .wm-stat.en.out { border-color: rgba(248, 113, 113, .5); } .wm-stat.en.out .wm-ic { color: var(--wm-red); }
.wm-stat.en.prem .wm-ic { color: var(--wm-purple); }
.wm-enout { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; cursor: pointer; font: inherit; color: var(--wm-txt); border-color: rgba(248, 113, 113, .45); margin-bottom: 12px; }
.wm-enout > .wm-ic { color: #facc15; width: 26px; height: 26px; } .wm-enout span:nth-child(2) { flex: 1; } .wm-enout small { display: block; color: var(--wm-mut); font-size: 12.5px; }
.wm-en-note { display: flex; gap: 6px; align-items: center; margin: 0 0 10px; } .wm-en-note .wm-ic { width: 15px; height: 15px; color: #facc15; }
.wm-en-sheet { text-align: center; } .wm-en-sheet h2 { justify-content: center; padding-right: 0; } .wm-en-sheet .wm-list { text-align: left; margin: 12px 0; }
.wm-en-big { width: 72px; height: 72px; margin: 0 auto 8px; border-radius: 22px; display: grid; place-items: center; color: #1b1202; background: linear-gradient(135deg, #fde047, #f59e0b); box-shadow: 0 10px 26px rgba(245, 158, 11, .35); }
.wm-en-big.prem { color: #fff; background: linear-gradient(135deg, #a78bfa, #6d28d9); box-shadow: 0 10px 26px rgba(124, 58, 237, .35); }
.wm-en-big .wm-ic { width: 38px; height: 38px; }
.wm-prem-btn { background: linear-gradient(135deg, #7c3aed, #a855f7) !important; border: 0 !important; color: #fff !important; }
.wm-gc-cost { position: absolute; top: 10px; right: 10px; display: inline-flex; gap: 2px; align-items: center; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 999px; background: rgba(250, 204, 21, .14); color: #fde047; border: 1px solid rgba(250, 204, 21, .3); }
.wm-gc-cost .wm-ic { width: 12px; height: 12px; } .wm-gc-cost.free { background: rgba(52, 211, 153, .12); color: var(--wm-green); border-color: rgba(52, 211, 153, .3); }
.wm-gc-cost.unl, .wm-gc-cost.prem { background: rgba(167, 139, 250, .16); color: #c4b5fd; border-color: rgba(167, 139, 250, .35); }
.wm-game-card { position: relative; }
.wm-adv { border-color: rgba(167, 139, 250, .45); background: radial-gradient(ellipse 80% 70% at 100% 0%, rgba(167, 139, 250, .22), transparent 60%), linear-gradient(170deg, var(--wm-card2), var(--wm-card)); }
.wm-adv .wm-gc-ic { background: rgba(167, 139, 250, .18); color: #c4b5fd; }
.wm-chip.prem { color: #c4b5fd; border-color: rgba(167, 139, 250, .4); background: rgba(167, 139, 250, .12); }
.wm-chip.badge.t1 { color: #f0b37e; border-color: rgba(205, 127, 50, .5); } .wm-chip.badge.t2 { color: #e5e7eb; border-color: rgba(229, 231, 235, .5); } .wm-chip.badge.t3 { color: var(--wm-gold2); border-color: rgba(255, 211, 107, .6); }

/* ---------- skill badges ---------- */
.wm-badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 380px) { .wm-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wm-badge { text-align: center; padding: 12px 8px; border-radius: 14px; background: var(--wm-card); border: 1px solid var(--wm-line); display: flex; flex-direction: column; align-items: center; gap: 3px; }
.wm-badge-m { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 4px; background: rgba(255, 255, 255, .06); color: var(--wm-mut); border: 2px dashed var(--wm-line2); }
.wm-badge-m .wm-ic { width: 24px; height: 24px; }
.wm-badge.t1 .wm-badge-m { border: 0; color: #fff; background: radial-gradient(circle at 30% 30%, #f6c08d, #b87333); box-shadow: 0 6px 14px rgba(184, 115, 51, .35); }
.wm-badge.t2 .wm-badge-m { border: 0; color: #1f2937; background: radial-gradient(circle at 30% 30%, #ffffff, #9ca3af); box-shadow: 0 6px 14px rgba(156, 163, 175, .35); }
.wm-badge.t3 .wm-badge-m { border: 0; color: #422006; background: radial-gradient(circle at 30% 30%, #fff3b0, #eab308); box-shadow: 0 6px 16px rgba(234, 179, 8, .45); }
.wm-badge b { font-size: 12.5px; } .wm-badge em { font-style: normal; font-size: 11.5px; color: var(--wm-gold2); } .wm-badge:not(.t1):not(.t2):not(.t3) em { color: var(--wm-mut); }
.wm-badge small { font-size: 10.5px; color: var(--wm-mut); line-height: 1.3; }
.wm-end.daily .wm-end-ic .wm-ic.big { color: #f472b6; }

/* ---------- trends (Premium) ---------- */
.wm-trends { margin-top: 16px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(124, 164, 255, .14); position: relative; }
.wm-trends-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; } .wm-trends-h .wm-h3 { margin: 0; }
.wm-trends.locked .wm-trends-prev { opacity: .35; filter: grayscale(.6) blur(1px); pointer-events: none; max-height: 220px; overflow: hidden; }
.wm-actbars { display: grid; gap: 1px; height: 64px; align-items: end; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.wm-actbars.s30 { grid-template-columns: repeat(30, minmax(0, 1fr)); } .wm-actbars.s90 { grid-template-columns: repeat(90, minmax(0, 1fr)); }
.wm-actbars span { height: 100%; display: flex; align-items: flex-end; } .wm-actbars i { display: block; width: 100%; border-radius: 3px 3px 0 0; background: #38bdf8; }
.wm-line { width: 100%; height: 90px; display: block; } .wm-line path { fill: none; stroke: #34d399; stroke-width: 2; vector-effect: non-scaling-stroke; } .wm-line circle { fill: #34d399; }
.wm-line .g { stroke: rgba(255, 255, 255, .1); stroke-width: 1; vector-effect: non-scaling-stroke; }
.wm-line.sk { height: 46px; } .wm-line.sk path { stroke: #a78bfa; } .wm-line.sk circle { fill: #a78bfa; r: 2.5; }
.wm-skgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wm-skc { padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .06); } .wm-skc b { font-size: 12px; display: block; } .wm-skc small { font-size: 11px; color: #9aa8c4; }
.wm-skna { display: block; font-size: 11px; color: #9aa8c4; padding: 14px 0; }

/* ---------- the AI coach ---------- */
.wm-coach { margin-top: 14px; border-color: rgba(56, 189, 248, .35); background: linear-gradient(160deg, rgba(56, 189, 248, .1), transparent 70%), var(--wm-card); }
.wm-coach-h { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; } .wm-coach-h > .wm-ic { color: var(--wm-cyan); width: 24px; height: 24px; }
.wm-coach-h small { display: block; font-size: 11px; color: var(--wm-cyan); text-transform: uppercase; letter-spacing: .06em; } .wm-coach-h b { font-size: 13.5px; line-height: 1.35; }
.wm-coach textarea { width: 100%; box-sizing: border-box; background: var(--wm-bg2); border: 1px solid var(--wm-line2); border-radius: 10px; color: var(--wm-txt); font: inherit; font-size: 14.5px; padding: 10px 12px; resize: vertical; }
.wm-coach-out b { display: block; font-size: 15px; margin-bottom: 6px; } .wm-coach-out.v-good b { color: var(--wm-green); } .wm-coach-out.v-almost b { color: var(--wm-gold2); } .wm-coach-out.v-retry b { color: #fca5a5; }
.wm-coach-out p { display: flex; gap: 6px; align-items: flex-start; margin: 6px 0; font-size: 13.5px; line-height: 1.45; } .wm-coach-out .wm-ic { width: 16px; height: 16px; margin-top: 2px; flex: none; }
.wm-coach-better { display: block !important; padding: 10px 12px; border-radius: 10px; background: rgba(52, 211, 153, .08); border-left: 3px solid var(--wm-green); color: #fff; }

/* 3D game artwork (tracks/welding/mastery-art3d.json, original SVG) */
.wm-art3d, .wm-art3d svg { display: block; width: 100%; height: 100%; }
.wm-gc-ic.a3 { width: 64px; height: 64px; background: none; box-shadow: none; border-radius: 0; margin-bottom: 2px; }
.wm-game-card:hover .wm-gc-ic.a3 { transform: translateY(-2px) scale(1.04); transition: transform .2s; }
.wm-daily-ic.a3 { width: 58px; height: 58px; background: none; box-shadow: none; }
html.wm-still .wm-game-card:hover .wm-gc-ic.a3 { transform: none; }

/* breathing room (10 Oct 2026): a caption line between cards (Rewards) never touches them */
.wm-body > p.wm-mut { margin: 10px 2px 12px; }

/* compact portal (owner, 10 Oct 2026: "too big"): a small logo beside the title on every width,
   no motto line, today's goal on ONE line, a shorter button — both hubs' portals */
.wm-portal { padding: 14px 16px; gap: 14px; align-items: flex-start; flex-direction: row; margin: 4px 0 12px; }
.wm-logo-p { width: 56px; height: 56px; }
.wm-portal-t { gap: 3px; }
.wm-portal-title { font-size: 17px; }
.wm-portal-sub { font-size: 12.5px; line-height: 1.35; }
.wm-portal-motto { display: none; }
.wm-portal-prog { margin-top: 4px; }
.wm-portal-shift { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.wm-portal-shift .wm-ic { vertical-align: -3px; margin-right: 4px; }
.wm-portal-cta { margin-top: 6px; min-height: 40px; padding: 8px 14px; font-size: 14px; align-self: flex-start; }

/* ad slots in the game hubs (10 Oct 2026): the AdManager draws a labelled card into these; empty = no space */
.wm-ad-host:empty { display: none; }
.wm-ad-foot { margin-top: 16px; }
.wm-ad-mid { margin: 12px 0; list-style: none; }
.wm-games > .wm-ad-mid { grid-column: 1 / -1; margin: 0; }
.wm-road > li.wm-ad-mid { padding: 0; }
.wm-ad-end { margin-top: 22px; }

/* the learner's own language (2 Nov 2026) */
.wm-gl p { font-size: 15px; }
.wm-gl-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wm-gl-btn { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.wm-tr-lang { min-height: 36px; padding-inline: 10px; font-weight: 700; letter-spacing: .02em; }
