:root {
  --bg: #fff7ee;
  --card: #ffffff;
  --ink: #1b1f33;
  --muted: #6d7189;
  --line: #eee3d6;
  --ember: #ff7a45;
  --ember-d: #d9571f;
  --teal: #12b3a8;
  --gold: #f0a202;
  --gold-d: #c98600;
  --violet: #7c5cff;
  --pink: #e5478b;
  --night: #0e1122;
  --r: 18px;
  font-family: ui-rounded, 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); overflow: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 30px; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: 22px; letter-spacing: -0.01em; }
h3 { font-size: 17px; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: 13px; line-height: 1.45; }
kbd { background: #fff; color: var(--ink); border-radius: 6px; padding: 1px 8px; font: inherit; font-weight: 700; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25); }

/* ---------- buttons ---------- */
.btn {
  border: 2px solid var(--line); border-bottom-width: 4px; background: #fff; border-radius: 14px;
  padding: 10px 18px; font-weight: 800; letter-spacing: 0.01em; transition: transform 0.05s, filter 0.15s; white-space: nowrap;
}
.btn:hover { filter: brightness(0.97); }
.btn:active { transform: translateY(2px); border-bottom-width: 2px; margin-bottom: 2px; }
.btn:focus-visible, .node:focus-visible, .tab:focus-visible, .choice:focus-visible, .seg button:focus-visible, .switch:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.btn.primary { background: var(--ember); border-color: var(--ember-d); color: #fff; }
.btn.gold { background: var(--gold); border-color: var(--gold-d); color: #fff; }
.btn.danger { background: #e5484d; border-color: #b4282d; color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: inherit; }
.btn.small { padding: 7px 12px; font-size: 14px; border-radius: 12px; }
.btn.big { padding: 14px 26px; font-size: 18px; width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.link { background: none; border: 0; color: var(--ember-d); font-weight: 800; padding: 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.row .btn { flex: 1; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 220px 1fr; height: 100vh; }
.side { border-right: 2px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 6px; background: #fffaf4; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 22px; letter-spacing: -0.02em; color: var(--ember-d); padding: 0 6px 16px; }
.tab {
  display: flex; align-items: center; gap: 12px; border: 2px solid transparent; background: none; border-radius: 14px;
  padding: 11px 12px; font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); position: relative;
}
.tab:hover { background: #fff1e4; }
.tab.on { background: #ffeadb; border-color: #ffc9a8; color: var(--ember-d); }
.tab-icon { font-size: 22px; }
.dot { margin-left: auto; background: var(--gold); color: #fff; border-radius: 99px; min-width: 22px; height: 22px; display: grid; place-items: center; font-size: 12px; }
.tapnote { margin-top: auto; font-size: 12px; color: var(--muted); background: #fff; border: 2px dashed var(--line); border-radius: 12px; padding: 8px 10px; }

.main { display: flex; flex-direction: column; min-width: 0; height: 100vh; }
.stats { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 28px; border-bottom: 2px solid var(--line); background: #fffaf4; flex-wrap: wrap; }
.stat { display: flex; align-items: center; gap: 6px; background: #fff; border: 2px solid var(--line); border-radius: 99px; padding: 6px 14px; font-size: 16px; color: var(--muted); font-variant-numeric: tabular-nums; }
.stat b { color: var(--ink); }
.stat.lit { border-color: #ffc9a8; background: #fff1e4; }
.stat:not(.lit):first-child { filter: grayscale(0.7); }
.content { flex: 1; overflow-y: auto; padding: 28px; }

.bar { height: 12px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ember); border-radius: 99px; transition: width 0.4s; }
.bar.gold i { background: var(--gold); }

.card { background: var(--card); border: 2px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; gap: 10px; }
.tag { font-size: 13px; font-weight: 800; color: var(--muted); background: #f6efe6; border-radius: 99px; padding: 5px 11px; white-space: nowrap; }
.tag.done { color: var(--teal); background: #e3f7f5; }

/* ---------- train ---------- */
.train { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; max-width: 1000px; margin: 0 auto; align-items: start; }
.rail { position: sticky; top: 0; }
.unit { margin-bottom: 26px; }
.unit-banner { background: var(--c); color: #fff; border-radius: var(--r); padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 5px 0 color-mix(in srgb, var(--c) 72%, #000); }
.unit-banner small { font-weight: 900; letter-spacing: 0.1em; opacity: 0.85; }
.unit-banner p { opacity: 0.92; font-size: 15px; }
.unit-count { font-weight: 900; font-size: 18px; background: rgba(255, 255, 255, 0.22); border-radius: 99px; padding: 6px 14px; }
.nodes { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 30px 0 6px; }
.node-wrap { transform: translateX(var(--x)); display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.node {
  width: 78px; height: 70px; border-radius: 50%; border: 0; font-size: 30px; font-weight: 900; color: #fff; background: var(--c);
  box-shadow: 0 8px 0 color-mix(in srgb, var(--c) 68%, #000); transition: transform 0.06s, box-shadow 0.06s; display: grid; place-items: center;
}
.node:active { transform: translateY(5px); box-shadow: 0 3px 0 color-mix(in srgb, var(--c) 68%, #000); }
.node.locked { background: #e6dfd5; box-shadow: 0 8px 0 #cfc6b9; font-size: 24px; filter: grayscale(1); }
.node.done { background: var(--gold); box-shadow: 0 8px 0 var(--gold-d); }
.node.current { outline: 6px solid color-mix(in srgb, var(--c) 28%, transparent); outline-offset: 5px; }
.node-label { font-size: 13px; font-weight: 800; color: var(--muted); margin-top: 8px; }
.node-start { position: absolute; top: -34px; background: #fff; color: var(--c); border: 2px solid var(--line); font-weight: 900; font-size: 13px; letter-spacing: 0.08em; padding: 5px 12px; border-radius: 12px; animation: bob 1.4s ease-in-out infinite; z-index: 1; }
.node-start::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 10px; height: 10px; background: #fff; border-right: 2px solid var(--line); border-bottom: 2px solid var(--line); transform: translateX(-50%) rotate(45deg); }
@keyframes bob { 50% { transform: translateY(-5px); } }

.goal { display: flex; gap: 16px; align-items: center; }
.goal p { color: var(--muted); font-size: 14px; margin: 4px 0 12px; line-height: 1.4; }
.ring { position: relative; flex: none; }
.ring-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-text b { font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.ring-text span { font-size: 13px; color: var(--muted); font-weight: 700; }

.quest { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.quest + .quest { border-top: 2px solid var(--line); }
.quest-icon { font-size: 26px; width: 34px; text-align: center; flex: none; }
.quest-body { flex: 1; min-width: 0; }
.quest-title { font-weight: 800; margin-bottom: 6px; }
.quest-num { font-size: 12px; color: var(--muted); font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.quest.claimed { opacity: 0.6; }
.tip { display: flex; gap: 12px; align-items: flex-start; background: #fff1e4; border-color: #ffd9c2; }
.tip p { font-size: 14px; color: #6b4a37; line-height: 1.45; margin-top: 2px; }
.mascot { flex: none; }

/* ---------- pages ---------- */
.page { max-width: 1000px; margin: 0 auto; }
.page > h1 { margin-bottom: 6px; }
.page > h2 { margin: 26px 0 14px; }
.page > .muted { margin-bottom: 20px; }
.grid.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.game { margin: 0; display: flex; flex-direction: column; gap: 8px; border-top: 8px solid var(--c); }
.game-icon { font-size: 40px; line-height: 1; }
.game p { color: var(--muted); line-height: 1.45; flex: 1; }
.game-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; margin-top: 18px; }
/* ---------- achievements ---------- */
.ach-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 14px; margin-top: 18px; }
.ach-row { display: flex; gap: 18px; align-items: center; background: #fff; border: 2px solid var(--line); border-radius: var(--r); padding: 16px 18px 18px; }
.ach-row.maxed { background: #fff8e6; border-color: #f7d98a; }
.ach-badge { --c: #999; position: relative; width: 76px; height: 76px; flex: none; border-radius: 22px; background: var(--c); display: grid; place-items: center; box-shadow: 0 5px 0 color-mix(in srgb, var(--c) 66%, #000); transform: rotate(-3deg); }
.ach-badge.locked { background: #e9e2d8; box-shadow: 0 5px 0 #d2c9bc; }
.ach-badge.locked .ach-icon { opacity: 0.4; filter: grayscale(1); }
.ach-icon { font-size: 36px; line-height: 1; }
.ach-level { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%) rotate(3deg); background: #fff; border: 2px solid var(--line); border-radius: 99px; font-size: 10px; font-weight: 900; letter-spacing: 0.06em; padding: 2px 8px; white-space: nowrap; color: var(--ink); }
.ach-badge.maxed .ach-level { background: var(--gold); color: #fff; border-color: var(--gold-d); }
.ach-badge.small { width: 54px; height: 54px; border-radius: 16px; }
.ach-badge.small .ach-icon { font-size: 25px; }
.ach-badge.small .ach-level { font-size: 9px; padding: 1px 6px; bottom: -9px; }
.ach-body { flex: 1; min-width: 0; }
.ach-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.ach-num { font-weight: 800; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ach-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; color: var(--muted); font-size: 14px; min-height: 26px; }

/* ---------- wardrobe ---------- */
.ward { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 18px; }
.ward-stage { position: sticky; top: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; background: radial-gradient(circle at 50% 42%, #ffe9d6, #fff 72%); }
.ward-spud { padding: 86px 0 4px; } /* headroom: hats and hair stand above the drawing */
.ward-gems { font-size: 18px; color: var(--muted); }
.ward-slots { margin-bottom: 14px; }
.ward-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.ward-tile { background: #fff; border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 16px; padding: 8px 8px 12px; display: flex; flex-direction: column; align-items: center; gap: 5px; transition: transform 0.05s; }
.ward-tile:hover { filter: brightness(0.98); }
.ward-tile:active { transform: translateY(2px); }
.ward-tile:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.ward-thumb { display: block; padding-top: 30px; }
.ward-tile b { font-size: 14px; }
.ward-state { font-size: 12px; font-weight: 800; color: var(--ink); background: #f6efe6; border-radius: 99px; padding: 3px 10px; }
.ward-tile.owned .ward-state { color: var(--muted); }
.ward-tile.wearing { border-color: var(--teal); background: #e9faf8; }
.ward-tile.wearing .ward-state { background: var(--teal); color: #fff; }
.ward-tile.trying { border-color: var(--gold); background: #fff8e6; }
.ward-tile.trying .ward-state { background: var(--gold); color: #fff; }
.ward-racks .fine { margin-top: 14px; }
.ward-tile.earn .ward-state { background: #efe9f9; color: #4b3a8f; white-space: normal; text-align: center; line-height: 1.25; border-radius: 12px; }
.ward-tile.earn .ward-thumb { filter: saturate(0.75); opacity: 0.85; }
.ward-tile .bar.thin { height: 6px; width: 78%; margin-top: 2px; }
.ward-lock { width: 100%; text-align: left; background: #f6f2fc; border: 2px solid #ddd3f3; border-radius: 14px; padding: 12px 14px; }
.ward-lock > div:first-child { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 15px; }
.ward-lock span { color: var(--muted); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ward-lock p { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.4; }

.hero { display: flex; gap: 22px; align-items: center; margin-bottom: 18px; }
.hero > div:last-child { flex: 1; }
.hero-spud { padding-top: 34px; }
.hero-badges { display: flex; gap: 14px; margin: 14px 0 18px; flex-wrap: wrap; }
.hero-links { display: flex; gap: 8px; flex-wrap: wrap; }
.link-stat { cursor: pointer; font: inherit; }
.link-stat:hover { border-color: #ffc9a8; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.tiles > div { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 14px; text-align: center; }
.tiles b { display: block; font-size: 30px; font-variant-numeric: tabular-nums; }
.tiles span { font-size: 13px; color: var(--muted); font-weight: 700; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-head span { text-align: center; font-size: 12px; font-weight: 800; color: var(--muted); padding-bottom: 4px; }
.cal { aspect-ratio: 1.5; border-radius: 10px; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: #f6efe6; color: var(--muted); }
.cal.some { background: #ffe0cf; color: var(--ember-d); }
.cal.full { background: var(--ember); color: #fff; }
.cal.future { background: transparent; border: 2px dashed var(--line); color: #c9c0b4; }
.cal.today { outline: 3px solid var(--ink); outline-offset: 1px; }
.hist { width: 100%; border-collapse: collapse; font-size: 15px; }
.hist td { padding: 8px 0; border-top: 2px solid var(--line); }
.hist tr:first-child td { border-top: 0; }
.hist .r { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }

.settings label { display: block; font-weight: 800; font-size: 14px; margin: 16px 0 8px; }
.settings select { width: 100%; padding: 10px; border-radius: 12px; border: 2px solid var(--line); font: inherit; background: #fff; }
.seg { display: flex; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; flex-wrap: wrap; }
.seg button { flex: 1; border: 0; background: #fff; padding: 10px 8px; font-weight: 800; font-size: 14px; color: var(--muted); white-space: nowrap; }
.seg button + button { border-left: 2px solid var(--line); }
.seg button.on { background: #ffeadb; color: var(--ember-d); }
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 2px solid var(--line); font-weight: 700; }
.settings .fine { margin: 8px 0 14px; }
.set-row.danger { margin-top: 16px; color: #b4282d; }
.switch { width: 52px; height: 30px; border-radius: 99px; border: 0; background: #d9d0c4; position: relative; flex: none; transition: background 0.15s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; background: #fff; border-radius: 50%; transition: transform 0.15s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
.switch.on { background: var(--teal); }
.switch.on i { transform: translateX(22px); }

/* ---------- modal & toasts ---------- */
#modal { position: fixed; inset: 0; background: rgba(27, 31, 51, 0.55); display: grid; place-items: center; padding: 20px; z-index: 40; overflow-y: auto; }
.modal-card { background: #fff; border-radius: 24px; padding: 28px; width: min(520px, 100%); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); animation: rise 0.18s ease-out; }
.modal-card p { line-height: 1.5; margin-top: 10px; }
.modal-card label { display: block; font-weight: 800; margin: 20px 0 10px; }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
.dlg-icon { width: 68px; height: 62px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 30px; box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 68%, #000); margin-bottom: 18px; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pills i { color: var(--muted); font-style: normal; }
.pill { min-width: 34px; text-align: center; padding: 4px 9px; border-radius: 10px; background: #f6efe6; font-weight: 900; font-variant-numeric: tabular-nums; }
.pills.big { margin-top: 16px; }
.pills.big .pill { font-size: 22px; padding: 8px 14px; background: #ffeadb; color: var(--ember-d); }
.onb-head { display: flex; gap: 14px; align-items: center; }
.choices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.choice { border: 2px solid var(--line); border-bottom-width: 4px; background: #fff; border-radius: 14px; padding: 10px 6px; display: flex; flex-direction: column; gap: 2px; align-items: center; text-align: center; }
.choice span { font-size: 12px; color: var(--muted); }
.choice.on { border-color: var(--ember); background: #fff1e4; }
#toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 60; align-items: center; }
.toast { background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 99px; font-weight: 700; animation: rise 0.2s ease-out; }

/* ---------- workout ---------- */
#workout { position: fixed; inset: 0; z-index: 30; }
.wk { position: absolute; inset: 0; background: var(--night); color: #fff; overflow: hidden; }
.wk-cam { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wk-cam.mirror { transform: scaleX(-1); }
.wk-tint { position: absolute; inset: 0; pointer-events: none; transition: box-shadow 0.2s; box-shadow: inset 0 0 0 0 transparent; }
.wk-tint[data-tint='green'] { box-shadow: inset 0 0 0 16px #22c55e, inset 0 0 120px rgba(34, 197, 94, 0.35); }
.wk-tint[data-tint='red'] { box-shadow: inset 0 0 0 16px #ef4444, inset 0 0 160px rgba(239, 68, 68, 0.5); }
.wk-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 16px; padding: 22px 26px; background: linear-gradient(rgba(14, 17, 34, 0.75), transparent); }
.wk-end { background: rgba(255, 255, 255, 0.14); border: 2px solid rgba(255, 255, 255, 0.25); color: #fff; border-radius: 12px; padding: 8px 14px; font-weight: 800; }
.wk-end:hover { background: rgba(255, 255, 255, 0.24); }
.wk-title { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.wk-title b { font-size: 22px; }
.wk-sub { font-size: 16px; opacity: 0.85; }
.wk-chip { padding: 8px 16px; border-radius: 99px; font-weight: 800; background: rgba(255, 255, 255, 0.16); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.wk-chip::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #94a3b8; }
.wk-chip[data-state='on']::before { background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.3); }
.wk-chip[data-state='wait']::before { background: #fbbf24; }
.wk-chip[data-state='off']::before { background: #ef4444; }

.wk-depth { position: absolute; left: 28px; top: 110px; bottom: 110px; width: 22px; border-radius: 99px; background: rgba(255, 255, 255, 0.16); overflow: hidden; display: flex; align-items: flex-end; }
.wk-depth-fill { width: 100%; background: linear-gradient(#fbbf24, #ff7a45); border-radius: 99px; transition: height 0.06s linear; }
.wk-depth-fill.full { background: #22c55e; }

.wk-panel { position: absolute; right: 26px; top: 100px; width: min(320px, 34vw); background: rgba(14, 17, 34, 0.72); backdrop-filter: blur(10px); border: 2px solid rgba(255, 255, 255, 0.12); border-radius: 26px; padding: 18px 20px 20px; text-align: center; }
.wk-label { font-weight: 900; letter-spacing: 0.14em; font-size: 15px; opacity: 0.7; }
.wk-count { font-size: clamp(96px, 21vh, 210px); font-weight: 900; line-height: 0.95; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.wk-count.pop { animation: pop 0.25s ease-out; }
@keyframes pop { 30% { transform: scale(1.14); color: #ffd23f; } }
.wk-target { font-size: 24px; font-weight: 800; opacity: 0.8; min-height: 8px; }
.wk-extra { margin-top: 12px; }
.wk-extra:empty { display: none; }
.wk-xp { display: inline-block; margin-top: 14px; background: rgba(255, 210, 63, 0.18); color: #ffd23f; font-weight: 900; padding: 6px 16px; border-radius: 99px; font-variant-numeric: tabular-nums; }
.wk .pills { justify-content: center; }
.wk .pill { background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.7); font-size: 18px; }
.wk .pill.now { background: var(--ember); color: #fff; }
.wk .pill.done { background: rgba(34, 197, 94, 0.25); color: #86efac; }
.clock { font-size: 64px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; }
.clock.small { font-size: 30px; opacity: 0.85; margin-top: 8px; }
.clock.hot { color: #ff6b6b; }
.lives { font-size: 28px; letter-spacing: 4px; margin-top: 8px; }
.light { font-size: 44px; font-weight: 900; border-radius: 18px; padding: 10px; letter-spacing: 0.04em; }
.light.green { background: #22c55e; color: #052e13; }
.light.red { background: #ef4444; color: #fff; }
.cue { font-size: 42px; font-weight: 900; border-radius: 18px; padding: 14px 8px; background: rgba(255, 255, 255, 0.1); line-height: 1.1; }
.cue.call { background: #ffd23f; color: #3a2c00; }
.cue.hold { background: var(--violet); }
.cue.good { background: #22c55e; color: #052e13; }
.cue.bad { background: #ef4444; }
canvas.lava { height: min(380px, 100vh - 420px); min-height: 150px; width: auto; max-width: 100%; border-radius: 16px; display: block; margin: 0 auto; }
.lead { margin-top: 8px; font-weight: 800; font-variant-numeric: tabular-nums; }
.lead.hot { color: #ff6b6b; }

.wk-banner { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); background: rgba(14, 17, 34, 0.82); border: 2px solid rgba(255, 255, 255, 0.14); padding: 14px 26px; border-radius: 20px; font-size: clamp(18px, 2.6vh, 28px); font-weight: 800; max-width: min(760px, 86vw); text-align: center; text-wrap: balance; }
.wk-big { position: absolute; inset: 0; display: grid; place-items: center; font-size: 46vh; font-weight: 900; text-shadow: 0 10px 60px rgba(0, 0, 0, 0.6); pointer-events: none; }
.wk-flash { position: absolute; left: 50%; top: 104px; transform: translateX(-50%); background: #ffd23f; color: #3a2c00; font-weight: 900; font-size: 22px; padding: 10px 22px; border-radius: 99px; pointer-events: none; }
.wk-flash[data-tone='warn'] { background: #fff; color: #b4282d; }
.wk-flash.show { animation: flash 1.6s ease-out forwards; }
.wk-debug { position: absolute; left: 64px; bottom: 30px; font: 600 15px ui-monospace, Consolas, monospace; background: rgba(14, 17, 34, 0.75); padding: 6px 12px; border-radius: 10px; font-variant-numeric: tabular-nums; }
@keyframes flash { 0% { opacity: 0; transform: translate(-50%, 12px); } 12% { opacity: 1; transform: translate(-50%, 0); } 80% { opacity: 1; } 100% { opacity: 0; } }
/* Spud's one-second disco break */
.wk-cheer { position: absolute; left: calc((100% - min(320px, 34vw)) / 2); top: 52%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; pointer-events: none; z-index: 2; }
/* Pops in fast and leaves fast, however long the sting (--cheer) keeps him on stage. */
.wk-cheer.show { animation: cheer-in 0.3s ease-out both, cheer-out 0.35s ease-in calc(var(--cheer, 1.5s) - 0.35s) forwards; }
@keyframes cheer-in {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(0.5); }
  60% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes cheer-out {
  to { opacity: 0; transform: translate(-50%, -62%) scale(0.9); }
}
.wk-cheer-stage { position: relative; display: grid; place-items: center; width: 300px; height: 270px; }
.wk-cheer-stage::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(#ff5fa8, #ffd23f, #27c4f5, #8f5bff, #22c55e, #ff5fa8); filter: blur(28px); opacity: 0.75; animation: spin 1.4s linear infinite; }
.wk-cheer-stage::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(rgba(255, 255, 255, 0.5) 0 6deg, transparent 6deg 30deg); mask: radial-gradient(circle, transparent 38%, #000 40%, transparent 72%); animation: spin 2.8s linear infinite reverse; }
.wk-cheer-stage .mascot { position: relative; z-index: 1; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45)); }
.wk-cheer-bubble { margin-top: 6px; background: #fff; color: var(--ink); font-weight: 900; font-size: clamp(30px, 5.4vh, 54px); letter-spacing: -0.01em; padding: 10px 30px; border-radius: 99px; box-shadow: 0 8px 0 rgba(0, 0, 0, 0.3); white-space: nowrap; transform: rotate(-3deg); }

/* Spud is one drawing, so he dances as a whole: rock side to side from the
   feet, with a squash on each beat (two beats per loop, in time with the music). */
.spud { flex: none; user-select: none; overflow: visible; }
.spud.sad { transform: rotate(-9deg); filter: saturate(0.55); }
.spud.dance { transform-origin: 50% 96%; animation: spud-groove 0.96s ease-in-out infinite; }
@keyframes spud-groove {
  0%, 100% { transform: rotate(-10deg) scale(1, 1); }
  25% { transform: rotate(0deg) scale(1.05, 0.93); }
  50% { transform: rotate(10deg) scale(1, 1); }
  75% { transform: rotate(0deg) scale(1.05, 0.93); }
}

/* "Help pls": offered when the player looks tired */
.wk-help { position: absolute; left: 70px; bottom: 150px; display: flex; align-items: center; gap: 14px; text-align: left; background: #fff; color: var(--ink); border: 3px solid var(--ember); border-bottom-width: 7px; border-radius: 24px; padding: 12px 26px 12px 14px; cursor: pointer; animation: help-in 0.35s ease-out, help-nudge 1.6s ease-in-out 0.35s infinite; z-index: 3; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45); }
.wk-help b { display: block; font-size: clamp(30px, 5vh, 46px); line-height: 1.05; }
.wk-help small { display: block; font-size: 15px; color: var(--muted); font-weight: 700; margin-top: 4px; }
.wk-help kbd { box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25); border: 1px solid var(--line); }
.wk-help:hover { background: #fff1e4; }
.wk-help:active { transform: translateY(3px); border-bottom-width: 4px; }
.wk-help .spud.sad { transform: rotate(-9deg); filter: none; }
@keyframes help-in { from { opacity: 0; transform: translateY(30px) scale(0.9); } }
@keyframes help-nudge { 50% { transform: translateY(-6px); } }
.wk-assist { display: inline-block; margin: 10px 0 0 6px; background: rgba(18, 179, 168, 0.22); color: #7cf0e6; font-weight: 900; padding: 6px 14px; border-radius: 99px; font-size: 14px; }

.wk-foot { position: absolute; bottom: 26px; left: 0; right: 0; display: flex; justify-content: center; }
.wk-skip { background: rgba(255, 255, 255, 0.14); border: 2px solid rgba(255, 255, 255, 0.25); color: #fff; border-radius: 14px; padding: 12px 26px; font-weight: 800; font-size: 17px; }
.wk-skip:hover { background: rgba(255, 255, 255, 0.24); }
.wk-tappad { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 20px; text-align: center; padding: 0 380px 0 80px; user-select: none; touch-action: none; transition: background 0.08s; }
.wk-tappad.down { background: rgba(255, 122, 69, 0.22); }
.wk-tappad.down .mascot { transform: translateY(26px) scaleY(0.86); }
.wk-tappad .mascot { transition: transform 0.08s; transform-origin: 50% 100%; }

.wk-overlay { position: absolute; inset: 0; background: rgba(14, 17, 34, 0.78); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; overflow-y: auto; }
.wk-card { background: #fff; color: var(--ink); border-radius: 26px; padding: 30px; width: min(520px, 100%); text-align: center; animation: rise 0.2s ease-out; }
.wk-card p { margin-top: 10px; line-height: 1.5; }
.wk-card h3 { font-size: 22px; margin-top: 8px; }
.results h2 { font-size: 32px; margin-top: 6px; }
.results .mascot { margin-top: -6px; }
.res-sub { color: var(--muted); }
.results .tiles { grid-template-columns: repeat(4, 1fr); margin: 20px 0 6px; gap: 8px; }
.results .tiles > div { padding: 12px 4px; }
.results .tiles b { font-size: 26px; }
.results .tiles .xp { background: #fff8e6; border-color: #f7d98a; }
.results .tiles .xp b { color: var(--gold-d); }
.res-lines { list-style: none; padding: 0; margin: 14px 0 0; text-align: left; }
.res-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 4px; border-top: 2px solid var(--line); font-weight: 700; }
.res-lines b { color: var(--ember-d); text-align: right; }
.res-lines .ach small { display: block; font-weight: 600; color: var(--muted); font-size: 13px; }
.res-next { margin: 18px 0; font-size: 14px; text-align: left; }
.res-next > div:first-child { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-weight: 700; color: var(--muted); }
.res-next b { color: var(--ink); }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 5px solid var(--line); border-top-color: var(--ember); margin: 0 auto 6px; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- shop ---------- */
.shop-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.shop-head p { margin-top: 6px; }
.shop-gems { font-size: 24px; background: #fff; border: 2px solid var(--line); border-radius: 99px; padding: 8px 20px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.shop-item { margin: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.shop-icon { font-size: 44px; line-height: 1; width: 76px; height: 76px; border-radius: 22px; background: #fff1e4; display: grid; place-items: center; }
.shop-item p { color: var(--muted); line-height: 1.45; flex: 1; font-size: 15px; }
.shop-item .btn { margin-top: 6px; }
.shop-item.out { opacity: 0.6; }
.shop-item[data-item='repair'] { border-color: var(--ember); background: #fff1e4; }
.shop-item[data-item='repair'] .shop-icon { background: #fff; }
.shop-wardrobe { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.shop-wardrobe > div { flex: 1; min-width: 0; }
.shop-wardrobe .mascot { margin-top: 14px; }

/* ---------- reward road, season, boss cards ---------- */
.road .btn.big { margin-bottom: 12px; }
.road-next { display: flex; gap: 12px; align-items: center; }
.road-icon { font-size: 34px; width: 46px; text-align: center; flex: none; }
.road-next > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.road-next span { font-size: 13px; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.road-stops { display: flex; align-items: center; margin-top: 14px; }
.road-stops i { flex: 1; height: 4px; background: var(--line); border-radius: 2px; }
.road-stop { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 20px; background: #f6efe6; border: 2px solid var(--line); border-radius: 12px; padding: 5px 7px; min-width: 44px; }
.road-stop small { font-size: 10px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.road-stop.ready { background: #fff8e6; border-color: var(--gold); animation: bob 1.4s ease-in-out infinite; }

.season-row { display: flex; gap: 14px; align-items: center; }
.season-thumb { flex: none; padding-top: 22px; }
.season-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.season-row span { font-size: 13px; color: var(--muted); line-height: 1.35; }

.bosscard { display: flex; gap: 22px; align-items: center; border-top: 8px solid var(--c); background: linear-gradient(120deg, color-mix(in srgb, var(--c) 16%, #fff), #fff 60%); }
.boss-portrait { width: 150px; flex: none; }
.boss-art { width: 100%; height: auto; display: block; }
.boss-info { flex: 1; min-width: 0; }
.boss-info small { font-weight: 900; letter-spacing: 0.1em; color: var(--muted); }
.boss-info p { margin-top: 4px; line-height: 1.4; }
.boss-info .game-foot { margin-top: 12px; flex-wrap: wrap; }
.boss-dialog { width: 130px; margin: 0 auto 6px; }

/* the boss inside a workout */
.boss .boss-art { max-height: min(230px, 26vh); width: auto; margin: 0 auto; transition: transform 0.08s; }
.boss.hurt .boss-art { transform: translateX(8px) rotate(5deg) scale(0.96); filter: brightness(1.5); }
.boss.worried .boss-art { animation: wobble 0.5s ease-in-out infinite; }
@keyframes wobble { 50% { transform: rotate(-3deg); } }
.boss-hp { height: 18px; background: rgba(255, 255, 255, 0.16); border-radius: 99px; overflow: hidden; margin-top: 10px; border: 2px solid rgba(255, 255, 255, 0.25); }
.boss-hp i { display: block; height: 100%; background: linear-gradient(90deg, #ef4444, #ff7a45); transition: width 0.2s; }
.boss-num { font-weight: 800; margin-top: 6px; font-variant-numeric: tabular-nums; }

/* ---------- combo and boost (workout HUD) ---------- */
.wk-boost { display: inline-block; margin: 10px 0 0 6px; background: rgba(255, 210, 63, 0.22); color: #ffd23f; font-weight: 900; padding: 6px 14px; border-radius: 99px; font-size: 14px; }
.wk-combo { margin-top: 12px; border-radius: 16px; padding: 8px 10px; background: rgba(255, 122, 69, 0.2); border: 2px solid rgba(255, 122, 69, 0.55); display: flex; flex-direction: column; line-height: 1.15; }
.wk-combo b { font-size: 30px; font-variant-numeric: tabular-nums; }
.wk-combo span { font-size: 13px; font-weight: 800; opacity: 0.9; }
.wk-combo[data-tier='1'] { background: rgba(255, 210, 63, 0.22); border-color: #ffd23f; color: #ffe27a; }
.wk-combo[data-tier='2'] { background: rgba(255, 95, 168, 0.24); border-color: #ff5fa8; color: #ffb3d6; }
.wk-combo[data-tier='3'] { background: rgba(178, 102, 255, 0.3); border-color: #b266ff; color: #e2c6ff; box-shadow: 0 0 26px rgba(178, 102, 255, 0.6); }
.wk-combo.pop { animation: pop 0.25s ease-out; }
.res-lines .drop-line { background: #fff8e6; border-radius: 12px; border-top-color: transparent; padding: 10px; }

/* ---------- Spud drop screen ---------- */
#drop-screen { position: fixed; inset: 0; z-index: 50; background: radial-gradient(circle at 50% 42%, #2a2f55, #0e1122 72%); color: #fff; overflow-y: auto; }
.drop { --rc: #c3c9dc; min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 22px 16px 26px; text-align: center; position: relative; }
.drop.flash::before { content: ''; position: fixed; inset: 0; background: var(--rc); pointer-events: none; animation: drop-flash 0.5s ease-out forwards; }
@keyframes drop-flash { from { opacity: 0.55; } to { opacity: 0; } }
.drop-close { position: absolute; top: 18px; right: 20px; background: rgba(255, 255, 255, 0.14); border: 2px solid rgba(255, 255, 255, 0.25); color: #fff; border-radius: 12px; width: 44px; height: 44px; font-size: 18px; }
.drop-count { font-weight: 800; opacity: 0.8; }
.drop-rarity { font-size: clamp(44px, 9vh, 92px); font-weight: 900; letter-spacing: 0.04em; line-height: 1; color: var(--rc); text-shadow: 0 0 34px color-mix(in srgb, var(--rc) 70%, transparent), 0 4px 0 rgba(0, 0, 0, 0.35); }
.drop-rarity.up { animation: rarity-up 0.5s cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes rarity-up { 0% { transform: scale(0.4) rotate(-6deg); opacity: 0; } 60% { transform: scale(1.25) rotate(2deg); opacity: 1; } 100% { transform: scale(1); } }
.drop[data-rarity='mega'] .drop-rarity { background: linear-gradient(90deg, #ff3b3b, #ffd21f, #4ade80, #38bdf8, #b266ff, #ff5fa8); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 22px rgba(255, 255, 255, 0.55)); }
.drop-note { height: 26px; font-weight: 900; letter-spacing: 0.14em; color: var(--rc); opacity: 0; }
.drop-note.show { animation: note 1.1s ease-out forwards; }
@keyframes note { 0% { opacity: 0; transform: translateY(8px); } 15% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; } }
.drop-spud { background: none; border: 0; padding: 0; cursor: pointer; width: min(46vh, 76vw, 420px); -webkit-tap-highlight-color: transparent; }
.drop-spud:focus, .drop-spud:focus-visible { outline: none; } /* Space and Enter crack it from anywhere on this screen */
.drop-potato { width: 100%; height: auto; display: block; overflow: visible; }
.drop-spud.hit .drop-body { animation: drop-hit 0.38s ease-out; }
@keyframes drop-hit { 0% { transform: scale(0.9) rotate(-5deg); } 30% { transform: scale(1.08) rotate(5deg); } 55% { transform: scale(0.98) rotate(-3deg); } 100% { transform: none; } }
.drop-body { transform-box: fill-box; transform-origin: 50% 60%; }
.drop-glow { fill: var(--rc); opacity: 0.16; filter: blur(60px); transition: fill 0.3s, opacity 0.3s; }
.drop[data-taps='1'] .drop-glow { opacity: 0.24; }
.drop[data-taps='2'] .drop-glow { opacity: 0.34; }
.drop[data-taps='3'] .drop-glow { opacity: 0.46; }
.drop[data-taps='4'] .drop-glow { opacity: 0.6; }
.drop-rays { fill: var(--rc); opacity: 0; transform-box: fill-box; transform-origin: center; }
.drop-crack { display: none; }
.drop-crack.on { display: inline; }
.drop-crack path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.drop-crack .leak { stroke: var(--rc); stroke-width: 34; filter: blur(7px); opacity: 0.95; transition: stroke 0.3s; }
.drop-crack .line { stroke: #1c0f05; stroke-width: 11; }
.drop-crack.on .line { stroke-dasharray: 1400; animation: crack-draw 0.25s ease-out; }
@keyframes crack-draw { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
.drop-pips { display: flex; gap: 10px; margin-top: 4px; }
.drop-pips i { width: 16px; height: 16px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); transition: background 0.2s, transform 0.2s; }
.drop-pips i.on { background: var(--rc); transform: scale(1.2); box-shadow: 0 0 12px var(--rc); }
.drop-hint { font-size: 20px; font-weight: 800; margin-top: 6px; }
.drop-hint span { opacity: 0.6; font-weight: 600; font-size: 15px; }
.drop-odds { font-size: 12px; opacity: 0.75; margin-top: 12px; max-width: 760px; line-height: 1.7; font-weight: 700; }
/* opening */
.drop.open .drop-body { animation: drop-burst 0.5s ease-in forwards; }
@keyframes drop-burst { 30% { transform: scale(1.18); } 100% { transform: scale(2.1) rotate(14deg); opacity: 0; } }
.drop.open .drop-rays { animation: drop-rays 1.1s ease-out forwards; }
@keyframes drop-rays { 0% { opacity: 0; transform: scale(0.3) rotate(0deg); } 30% { opacity: 0.9; } 100% { opacity: 0; transform: scale(1.5) rotate(40deg); } }
.drop.open .drop-spud { pointer-events: none; height: 0; overflow: visible; transition: height 0.4s; }
.drop.open .drop-pips, .drop.open .drop-note { display: none; }
.drop-rewards { width: min(720px, 100%); animation: rise 0.3s ease-out; }
.drop-cards { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 14px 0 6px; }
.drop-card { background: #fff; color: var(--ink); border-radius: 22px; border: 4px solid var(--rc); box-shadow: 0 0 34px color-mix(in srgb, var(--rc) 55%, transparent); padding: 18px 20px; min-width: 170px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.drop-card .big { font-size: 54px; line-height: 1.1; }
.drop-card b { font-size: 22px; }
.drop-card span { font-size: 13px; color: var(--muted); font-weight: 700; }
.drop-card .btn { margin-top: 8px; }
.drop-item { padding-top: 40px; }
.drop-rewards .row { justify-content: center; }
.drop-rewards .row .btn { flex: 0 1 300px; }

/* drop-only wardrobe items */
.ward-tile[data-drop].earn .ward-state { background: color-mix(in srgb, var(--rc) 22%, #fff); color: var(--ink); }
.ward-tile[data-drop] { border-color: color-mix(in srgb, var(--rc) 55%, var(--line)); }
.hue-cycle { animation: hue-cycle 3s linear infinite; }
@keyframes hue-cycle { from { filter: hue-rotate(0deg); } to { filter: hue-rotate(360deg); } }
.stat.drops { background: #fff8e6; border-color: var(--gold); color: var(--ink); animation: bob 1.4s ease-in-out infinite; }

/* ---------- narrow screens ---------- */
@media (max-width: 1020px) {
  .train { grid-template-columns: 1fr; }
  .rail { position: static; }
  .cols { grid-template-columns: 1fr; }
  .ward { grid-template-columns: 1fr; }
  .ward-stage { position: static; }
  .ach-list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .side { order: 2; flex-direction: row; border-right: 0; border-top: 2px solid var(--line); padding: 6px 4px; justify-content: space-around; min-width: 0; gap: 0; }
  .brand, .tapnote { display: none; }
  .tab { flex: 1 1 0; min-width: 0; flex-direction: column; gap: 2px; font-size: 10px; letter-spacing: 0; padding: 6px 2px; }
  .tab .dot { position: absolute; top: 0; right: 4px; margin: 0; }
  .main { height: auto; min-height: 0; }
  .stats { padding: 10px 14px; justify-content: space-between; }
  .stat.level .muted { display: none; }
  .content { padding: 16px; }
  .choices { grid-template-columns: repeat(2, 1fr); }
  .wk-panel { width: 42vw; right: 12px; padding: 12px; }
  .wk-depth { left: 12px; }
  .wk-tappad { padding: 0 46vw 0 40px; }
  .results .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .spud.dance, .wk-cheer-stage::before, .wk-cheer-stage::after, .node-start, .hue-cycle, .road-stop.ready, .stat.drops { animation: none !important; }
  .wk-cheer.show { animation: none !important; opacity: 1; }
}

/* Account card (Profile) and the "which copy?" dialog */
.account p { margin: 0 0 12px; line-height: 1.45; }
.account-who { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.account-who img { border-radius: 50%; flex: none; }
.account-who div { display: flex; flex-direction: column; min-width: 0; }
.account-who span { font-size: 14px; overflow-wrap: anywhere; }
.account-error { color: #b4282d; font-weight: 700; }
.gsi-button { min-height: 44px; }
.row-left { display: flex; gap: 8px; flex-wrap: wrap; }
.choice-list { display: grid; gap: 10px; margin: 14px 0 6px; }
.choice-list .choice { padding: 12px; cursor: pointer; }
.choice-list .choice span { font-size: 14px; }

/* Results: only the card shows (the workout screen, End button and duel scores are cleared away),
   and the button that collects rewards stays in view at the bottom while the card scrolls. */
.wk.is-done > :not(.wk-overlay):not(.wk-cam) { display: none !important; }
.wk.is-done .wk-overlay { z-index: 50; }
.wk-card.results .res-go { position: sticky; bottom: -20px; margin: 12px -20px -20px; padding: 14px 20px 16px; background: inherit; border-radius: 0 0 inherit inherit; text-align: center; }
.wk-card.results .res-go .btn { width: 100%; }
.wk-card.results .res-go .fine { margin: 8px 0 0; }
