/* Larro — theme taken from the logo: three rounded bars (blue · yellow · red), Rubik ExtraBold.
   Blue = masculine, red = feminine, everywhere. Yellow = wins, streaks, progress. */
:root {
  --blue: #2457d6;  --blue-dk: #1a42a8;  --blue-lt: #e7eefc;
  --yellow: #eba300; --yellow-dk: #946600; --yellow-lt: #fff5d6;
  --red: #d63a2c;   --red-dk: #a82a1f;   --red-lt: #fbe9e7;
  --ink: #17203a;   --ink-2: #4a5470;    --ink-3: #8790a8;
  --paper: #fbf8f2; --card: #ffffff;     --line: #ebe5d8;
  --green: #1f9d6b; --green-lt: #e3f5ee;
  --r-sm: 12px; --r: 18px; --r-lg: 26px; --pill: 999px;
  --shadow: 0 3px 0 var(--line);
  --font: 'Rubik', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --nav-h: 72px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font); color: var(--ink); background: var(--paper);
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font-family: inherit; font-size: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 16px; color: var(--ink); }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-weight: 800; font-size: 28px; }
h2 { font-weight: 800; font-size: 21px; }
h3 { font-weight: 700; font-size: 17px; }
p { margin: 0 0 10px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.tiny { font-size: 12px; color: var(--ink-3); }
.hidden { display: none !important; }

/* ---------- app frame ---------- */
.app { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; position: relative;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px); }
@media (min-width: 700px) {
  body { background:
    radial-gradient(circle at 10% 20%, rgba(36,87,214,.06), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(214,58,44,.06), transparent 40%), var(--paper); }
  .app { background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
}
.topbar { display: flex; align-items: center; justify-content: space-between; padding: calc(14px + env(safe-area-inset-top)) 18px 8px;
  position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px); }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); background: none; border: 0; padding: 0; }
.brand svg { width: 30px; height: 30px; }
.wordmark { font-weight: 800; font-size: 25px; letter-spacing: -0.02em; }
.stats { display: flex; gap: 8px; }
.stat { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 15px;
  padding: 6px 11px; border-radius: var(--pill); background: var(--card); box-shadow: 0 0 0 1.5px var(--line); }
.stat svg { width: 17px; height: 17px; }
.stat.streak { color: var(--yellow-dk); }
.stat.xp { color: var(--blue); }

main { padding: 6px 18px 20px; }
.page { display: none; animation: rise .25s ease; }
.page.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* three-bar motif */
.bars { display: inline-flex; gap: 4px; align-items: flex-end; }
.bars i { display: block; width: 6px; border-radius: 6px; }
.bars i:nth-child(1) { background: var(--blue); height: 18px; }
.bars i:nth-child(2) { background: var(--yellow); height: 18px; }
.bars i:nth-child(3) { background: var(--red); height: 18px; }
.stripe { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--blue) 0 33.3%, var(--yellow) 33.3% 66.6%, var(--red) 66.6%); }

.section-title { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; }
.section-title h2 { font-size: 19px; }

/* ---------- cards ---------- */
.card { background: var(--card); border-radius: var(--r); padding: 18px; box-shadow: 0 0 0 1.5px var(--line), var(--shadow); }
.card + .card { margin-top: 12px; }
.card.tap { cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; text-align: left; width: 100%; border: 0; display: block; }
.card.tap.topic, .card.tap.pattern { display: flex; }
.card.tap:active { transform: translateY(2px); box-shadow: 0 0 0 1.5px var(--line), 0 1px 0 var(--line); }

/* hero / daily challenge */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: var(--r-lg);
  padding: 22px 20px 20px; box-shadow: 0 4px 0 #0c1226; }
.hero h1 { color: #fff; font-size: 26px; }
.hero .muted { color: #c4cbe0; }
.hero-bars { position: absolute; right: -14px; top: -18px; display: flex; gap: 10px; transform: rotate(12deg); opacity: .9; }
.hero-bars i { width: 26px; height: 120px; border-radius: 26px; display: block; }
.hero-bars i:nth-child(1) { background: var(--blue); }
.hero-bars i:nth-child(2) { background: var(--yellow); margin-top: 22px; }
.hero-bars i:nth-child(3) { background: var(--red); margin-top: 44px; }
.hero > *:not(.hero-bars) { position: relative; }
.task-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 16px; }
.task-chip { border-radius: var(--r-sm); padding: 10px 10px 9px; background: rgba(255,255,255,.08); font-size: 13px; font-weight: 600; color: #dfe4f3; }
.task-chip .meter { height: 8px; border-radius: 8px; background: rgba(255,255,255,.14); margin-bottom: 8px; overflow: hidden; }
.task-chip .meter b { display: block; height: 100%; width: 0; border-radius: 8px; transition: width .4s ease; }
.task-chip.done .meter b { width: 100%; }
.task-chip:nth-child(1) .meter b { background: var(--blue); }
.task-chip:nth-child(2) .meter b { background: var(--yellow); }
.task-chip:nth-child(3) .meter b { background: var(--red); }
.task-chip.done { color: #fff; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--r);
  padding: 14px 20px; font-weight: 700; font-size: 16px; line-height: 1; min-height: 50px;
  transition: transform .1s ease, box-shadow .1s ease, background .15s; user-select: none; }
.btn:active { transform: translateY(3px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.primary svg[viewBox] path[fill="currentColor"] { fill: currentColor; }
.choice-grid .btn svg { width: 24px; height: 24px; }
.btn.block { width: 100%; }
.btn.primary { background: var(--yellow); color: var(--ink); box-shadow: 0 4px 0 var(--yellow-dk); }
.btn.primary:active { box-shadow: 0 1px 0 var(--yellow-dk); }
.btn.blue { background: var(--blue); color: #fff; box-shadow: 0 4px 0 var(--blue-dk); }
.btn.blue:active { box-shadow: 0 1px 0 var(--blue-dk); }
.btn.red { background: var(--red); color: #fff; box-shadow: 0 4px 0 var(--red-dk); }
.btn.red:active { box-shadow: 0 1px 0 var(--red-dk); }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1.5px var(--line), 0 4px 0 var(--line); }
.btn.ghost:active { box-shadow: 0 0 0 1.5px var(--line), 0 1px 0 var(--line); }
.btn.quiet { background: transparent; color: var(--ink-2); min-height: 40px; padding: 8px 12px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row > .btn { flex: 1; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; display: inline-grid; place-items: center;
  background: var(--card); box-shadow: 0 0 0 1.5px var(--line), 0 3px 0 var(--line); flex: none; }
.icon-btn svg { width: 20px; height: 20px; }
.back { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--ink-2); font-weight: 600; padding: 6px 0; margin-bottom: 6px; }
.back svg { width: 18px; height: 18px; }

/* ---------- gender colour ---------- */
.m { color: var(--blue); font-weight: 700; }
.f { color: var(--red); font-weight: 700; }
.mixed { color: var(--ink-2); font-weight: 700; }
body.no-colour .m, body.no-colour .f { color: var(--ink); }
body.no-colour .g-bar { background: var(--ink-3) !important; }
.g-bar { width: 6px; border-radius: 6px; align-self: stretch; flex: none; }
.g-bar.m { background: var(--blue); } .g-bar.f { background: var(--red); }
.g-bar.mixed { background: linear-gradient(var(--blue) 50%, var(--red) 50%); }

/* ---------- topics + patterns ---------- */
.topic { display: flex; gap: 14px; align-items: center; }
.topic .badge { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; background: var(--blue-lt); }
.topic.soon { opacity: .6; }
.topic.soon .badge { background: #f1ede4; }
.topic .t-body { flex: 1; min-width: 0; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: var(--pill); background: #f1ede4; color: var(--ink-2); }
.pill.y { background: var(--yellow-lt); color: var(--yellow-dk); }
.pill.b { background: var(--blue-lt); color: var(--blue); }
.pill.r { background: var(--red-lt); color: var(--red); }
.pill.g { background: var(--green-lt); color: var(--green); }

.pattern-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pattern { display: flex; gap: 12px; padding: 14px; }
.pattern .p-body { flex: 1; min-width: 0; }
.pattern .ending { font-weight: 800; font-size: 21px; line-height: 1.1; margin-bottom: 4px; }
.pattern-grid .card + .card { margin-top: 0; }
.pattern .p-title { font-size: 13px; color: var(--ink-2); line-height: 1.3; min-height: 34px; }
.mastery { height: 7px; border-radius: 7px; background: #f1ede4; margin-top: 10px; overflow: hidden; }
.mastery b { display: block; height: 100%; background: var(--yellow); border-radius: 7px; }

/* ---------- ways in ---------- */
.ways { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 14px -18px 6px; padding-left: 18px; padding-right: 18px; scrollbar-width: none; }
.ways::-webkit-scrollbar { display: none; }
.way { flex: none; border: 0; border-radius: var(--pill); padding: 10px 15px; font-weight: 700; font-size: 14px; background: var(--card);
  box-shadow: 0 0 0 1.5px var(--line); display: inline-flex; gap: 7px; align-items: center; color: var(--ink-2); }
.way svg { width: 16px; height: 16px; }
.way.on { background: var(--ink); color: #fff; box-shadow: none; }
.way-panel { min-height: 200px; }
.big-text { font-size: 19px; line-height: 1.55; }
.example-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ex { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--pill); background: var(--paper);
  box-shadow: 0 0 0 1.5px var(--line); font-size: 17px; border: 0; }
.ex .tr { font-size: 13px; color: var(--ink-3); font-weight: 400; }
.ex.exception { box-shadow: 0 0 0 2px var(--yellow); }
.ai-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--blue); background: var(--blue-lt); padding: 4px 10px; border-radius: var(--pill); margin-bottom: 10px; }
.callout { border-radius: var(--r-sm); padding: 12px 14px; background: var(--yellow-lt); font-size: 15px; }
.callout.blue { background: var(--blue-lt); }

/* ---------- game ---------- */
.game-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.progress3 { flex: 1; height: 14px; border-radius: 14px; background: #ece6da; overflow: hidden; }
.progress3 b { display: block; height: 100%; width: 0; border-radius: 14px; transition: width .35s ease;
  background: linear-gradient(90deg, var(--blue), var(--yellow) 55%, var(--red)); background-size: 300px 100%; }
.prompt-label { font-size: 14px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.word-card { background: var(--card); border-radius: var(--r-lg); padding: 34px 20px; text-align: center; box-shadow: 0 0 0 1.5px var(--line), 0 5px 0 var(--line); margin-bottom: 18px; position: relative; }
.word-card .word { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; word-break: break-word; }
.word-card .tr { color: var(--ink-3); margin-top: 8px; }
.word-card .tag { position: absolute; top: 12px; right: 12px; }
.word-card .say { position: absolute; top: 10px; left: 10px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice-grid .btn { font-size: 26px; font-weight: 800; min-height: 84px; border-radius: var(--r-lg); }
.slots { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.slot { min-width: 82px; padding: 12px 14px; border-radius: var(--r); border: 2px dashed var(--line); font-size: 24px; font-weight: 800; text-align: center; background: var(--card); }
.slot.filled { border-style: solid; border-color: var(--ink); }
.slot.fixed { border: 2px solid var(--line); background: var(--paper); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0 4px; }
.chip { border: 0; border-radius: var(--r-sm); padding: 11px 15px; font-weight: 700; font-size: 18px; background: var(--card); box-shadow: 0 0 0 1.5px var(--line), 0 3px 0 var(--line); }
.chip.sel { background: var(--ink); color: #fff; box-shadow: 0 3px 0 #000; }
.chip-label { text-align: center; font-size: 13px; font-weight: 700; color: var(--ink-3); margin-top: 12px; }

.feedback { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; transform: translateY(110%); transition: transform .25s ease; }
.feedback { visibility: hidden; }
.feedback.show { transform: none; visibility: visible; }
.feedback .inner { max-width: 560px; margin: 0 auto; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.feedback.good .inner { background: var(--green-lt); }
.feedback.bad .inner { background: var(--red-lt); }
.feedback h3 { font-size: 20px; margin-bottom: 4px; }
.feedback.good h3 { color: var(--green); }
.feedback.bad h3 { color: var(--red-dk); }
.feedback p { margin-bottom: 14px; }
.feedback .btn-row { gap: 8px; }

.summary { text-align: center; padding: 20px 0; }
.summary .score { font-size: 64px; font-weight: 800; line-height: 1; margin: 14px 0 6px; }
.celebrate { display: flex; justify-content: center; gap: 12px; margin: 10px 0 18px; }
.celebrate i { width: 26px; height: 90px; border-radius: 26px; display: block; animation: bounce 1s ease infinite; }
.celebrate i:nth-child(1) { background: var(--blue); }
.celebrate i:nth-child(2) { background: var(--yellow); animation-delay: .12s; }
.celebrate i:nth-child(3) { background: var(--red); animation-delay: .24s; }
@keyframes bounce { 0%,100% { transform: translateY(0) scaleY(1); } 40% { transform: translateY(-14px) scaleY(1.06); } }
@media (prefers-reduced-motion: reduce) { .celebrate i, .page { animation: none; } }

/* ---------- forms ---------- */
label.field { display: block; margin-bottom: 14px; }
label.field span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.input, textarea.input, select.input { width: 100%; border: 0; border-radius: var(--r-sm); padding: 13px 14px; background: var(--card); box-shadow: 0 0 0 1.5px var(--line); outline: none; }
.input:focus { box-shadow: 0 0 0 2.5px var(--blue); }
textarea.input { min-height: 140px; resize: vertical; line-height: 1.45; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1.5px solid var(--line); }
.toggle-row:last-child { border-bottom: 0; }
.switch { position: relative; width: 52px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 30px; background: #ddd6c7; transition: background .2s; cursor: pointer; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::after { transform: translateX(22px); }

/* ---------- lists ---------- */
.row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1.5px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .grow { flex: 1; min-width: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-tile { background: var(--card); border-radius: var(--r); padding: 14px; text-align: center; box-shadow: 0 0 0 1.5px var(--line), var(--shadow); }
.stat-tile .n { font-size: 30px; font-weight: 800; line-height: 1.1; }
.stat-tile .l { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.stat-tile:nth-child(1) .n { color: var(--yellow-dk); }
.stat-tile:nth-child(2) .n { color: var(--blue); }
.stat-tile:nth-child(3) .n { color: var(--red); }
.empty { text-align: center; padding: 26px 10px; color: var(--ink-3); }

/* ---------- bottom nav ---------- */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--card); box-shadow: 0 -1.5px 0 var(--line);
  padding-bottom: env(safe-area-inset-bottom); }
.nav .inner { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); height: var(--nav-h); }
.nav button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 11.5px; font-weight: 600; color: var(--ink-3); position: relative; }
.nav button svg { width: 24px; height: 24px; }
.nav button.on { color: var(--ink); }
.nav button.on::before { content: ''; position: absolute; top: 0; width: 30px; height: 4px; border-radius: 0 0 4px 4px; background: var(--yellow); }
.nav button:nth-child(2).on::before { background: var(--blue); }
.nav button:nth-child(3).on::before { background: var(--red); }
.nav button:nth-child(4).on::before { background: var(--ink); }
body.playing .nav { display: none; }
body.playing .app { padding-bottom: 140px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 20px); transform: translate(-50%, 20px); opacity: 0; z-index: 80;
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: var(--pill); font-weight: 600; font-size: 14px; transition: all .25s; pointer-events: none; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* splash */
.splash { position: fixed; inset: 0; display: grid; place-items: center; background: var(--paper); z-index: 100; transition: opacity .3s; }
.splash.gone { opacity: 0; pointer-events: none; }
.splash .celebrate { margin: 0; }

@media (max-width: 360px) {
  .pattern-grid { grid-template-columns: 1fr; }
  .word-card .word { font-size: 36px; }
}

/* ---------- the seven ways ---------- */
.way-card { display: flex !important; align-items: center; gap: 14px; }
.way-card .grow { flex: 1; min-width: 0; }
.way-card .chev { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.way-badge { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; flex: none; color: #fff; }
.way-badge svg { width: 24px; height: 24px; }
.way-badge.blue { background: var(--blue); box-shadow: 0 3px 0 var(--blue-dk); }
.way-badge.yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 3px 0 var(--yellow-dk); }
.way-badge.red { background: var(--red); box-shadow: 0 3px 0 var(--red-dk); }
.way-badge.big { width: 64px; height: 64px; border-radius: 20px; }
.way-badge.big svg { width: 30px; height: 30px; }
.way-badge.sm { width: 36px; height: 36px; border-radius: 11px; box-shadow: none; }
.way-badge.sm svg { width: 18px; height: 18px; }
.way-head { display: flex; gap: 16px; align-items: center; margin-top: 4px; }
.way svg { flex: none; }

.colour-key { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.swatch { border-radius: var(--r); padding: 18px 10px; text-align: center; color: #fff; font-weight: 800; font-size: 22px; line-height: 1.2; }
.swatch small { font-size: 13px; font-weight: 600; opacity: .85; }
.m-bg { background: var(--blue); box-shadow: 0 4px 0 var(--blue-dk); }
.f-bg { background: var(--red); box-shadow: 0 4px 0 var(--red-dk); }
body.no-colour .m-bg, body.no-colour .f-bg { background: var(--ink-2); box-shadow: none; }
.colour-big { display: flex; flex-wrap: wrap; gap: 8px; }
.cword { border: 0; border-radius: var(--r-sm); padding: 10px 14px; font-weight: 800; font-size: 20px; color: #fff; }
.cword.m { background: var(--blue); color: #fff; } .cword.f { background: var(--red); color: #fff; }
body.no-colour .cword { background: var(--ink-2); }
.card.wall { padding: 14px 16px; }

.clicked { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1.5px solid var(--line); }
.clicked svg { width: 16px; height: 16px; vertical-align: -3px; }
.small-chip { font-size: 14px; padding: 7px 12px; display: inline-flex; align-items: center; gap: 6px; }
.choice-grid .btn small { display: block; font-size: 13px; font-weight: 600; opacity: .85; margin-top: 4px; }
.choice-grid .btn { flex-direction: column; }

/* timed sort */
.progress3.timer b { background: var(--red); transition: width 1s linear; }
.sort-score { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 10px; }
.sort-score strong { font-size: 20px; }
.sort-stage { min-height: 170px; display: grid; place-items: center; margin-bottom: 14px; }
.drag-card { background: var(--card); border-radius: var(--r-lg); padding: 26px 30px; text-align: center; min-width: 220px;
  box-shadow: 0 0 0 1.5px var(--line), 0 5px 0 var(--line); touch-action: none; cursor: grab; user-select: none; position: relative; z-index: 5; }
.drag-card .word { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.drag-card .tr { color: var(--ink-3); margin-top: 6px; }
.drag-card .hint { min-height: 22px; margin-top: 6px; font-weight: 700; }
.drag-card.lift { cursor: grabbing; box-shadow: 0 0 0 2px var(--ink), 0 14px 30px rgba(23,32,58,.18); transition: none; }
.drag-card.shake { animation: shake .4s ease; }
@keyframes shake { 20%,60% { transform: translateX(-8px); } 40%,80% { transform: translateX(8px); } }
.buckets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bucket { border: 0; border-radius: var(--r-lg); min-height: 92px; font-size: 30px; font-weight: 800; color: #fff; transition: transform .12s ease, box-shadow .12s ease; }
.bucket.m { background: var(--blue); box-shadow: 0 5px 0 var(--blue-dk); }
.bucket.f { background: var(--red); box-shadow: 0 5px 0 var(--red-dk); }
body.no-colour .bucket { background: var(--ink-2); box-shadow: 0 5px 0 var(--ink); }
.bucket.over { transform: scale(1.05); box-shadow: 0 0 0 4px var(--yellow); }
.bucket.hit-good { box-shadow: 0 0 0 5px var(--green); }
.bucket.hit-bad { animation: shake .4s ease; opacity: .7; }
.buckets.demo .bucket { min-height: 64px; font-size: 24px; pointer-events: none; display: grid; place-items: center; }
@media (prefers-reduced-motion: reduce) { .drag-card.shake, .bucket.hit-bad { animation: none; } }
.chip.sel .m, .chip.sel .f, .chip.sel .mixed { color: #fff; }

/* Larro's tip */
.tip-card { background: var(--card); box-shadow: 0 0 0 2px var(--ink), 0 4px 0 var(--ink); margin-top: 18px; }
.tip-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tip-head strong { font-size: 16px; }
.tip-text { font-size: 18px; line-height: 1.45; margin-bottom: 14px; }
.way-row { width: 100%; background: none; border: 0; border-bottom: 1.5px solid var(--line); text-align: left; }
.trend { font-weight: 800; }
.trend.up { color: var(--green); } .trend.down { color: var(--red); }
.chev { width: 20px; height: 20px; flex: none; color: var(--ink-3); }

/* tour */
.seven { display: flex; gap: 6px; margin: 14px 0 16px; flex-wrap: wrap; }
.seven .way-badge.sm { width: 34px; height: 34px; }
.taster-top { display: flex; justify-content: space-between; align-items: center; }
.taster-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 6px; }
.taster-bars i { height: 8px; border-radius: 8px; background: #ece6da; display: block; }
.taster-bars i.done.blue, .taster-bars i.now.blue { background: var(--blue); }
.taster-bars i.done.yellow, .taster-bars i.now.yellow { background: var(--yellow); }
.taster-bars i.done.red, .taster-bars i.now.red { background: var(--red); }
.taster-bars i.now { box-shadow: 0 0 0 2px var(--ink); }
/* weekly goal */
.week { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -4px 0 14px; color: #dfe4f3; }
.week-dots { display: flex; gap: 5px; }
.week-dots i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; background: rgba(255,255,255,.1); color: #9aa3bd; }
.week-dots i.on { background: var(--yellow); color: var(--ink); }
.week-dots i.today { box-shadow: 0 0 0 2px #fff; }
/* report + building */
.report-card { margin-top: 12px; }
.explain-offer { box-shadow: 0 0 0 2px var(--blue), 0 4px 0 var(--blue-dk); }
.input.typed { font-size: 22px; font-weight: 700; text-align: center; padding: 16px; }
.chip-gap { width: 14px; }
.small-chip svg { width: 16px; height: 16px; flex: none; }
.hero h1 { max-width: 78%; }

/* lesson: today's new pattern */
.lesson-way { display: flex; align-items: center; gap: 8px; margin: 16px 0 8px; }
#page-lesson .way-panel { margin-top: 0; }

/* install prompt */
.install-card { margin-top: 14px; }
.install-card .icon-btn { flex: none; }
