/* Cubo Blocks — Menus, settings, Défis screen. */
/* ---------- home menu + settings ---------- */
.brand {
  font-family: var(--font-display); font-style: var(--display-style); font-weight: 700;
  font-size: 44px; line-height: 1; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 18px;
}
.btn.wide { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.btn small { font-family: system-ui, sans-serif; font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: none; opacity: .75; }
#menu-continue { margin-bottom: 18px; }
.menu-note { margin: -6px 0 16px; padding: 10px 12px; border-radius: calc(var(--radius) - 6px); background: var(--panel-2);
  box-shadow: inset 0 0 0 2px var(--good); font-size: 14px; font-weight: 700; line-height: 1.35; }
.menu-note b { display: inline-flex; align-items: center; color: var(--good); }
.menu-label { text-align: left; margin: 14px 2px 8px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.seg { display: flex; gap: 8px; }
.seg button {
  flex: 1; padding: 11px 8px 10px; border: 0; border-radius: calc(var(--radius) - 4px); cursor: pointer;
  background: var(--panel-2); color: var(--text); text-align: center;
  font-family: var(--font-display); font-style: var(--display-style); font-weight: 700; font-size: 18px; line-height: 1.1;
  box-shadow: inset 0 0 0 2px transparent; transition: box-shadow 150ms, background 150ms;
}
.seg button small { display: block; margin-top: 3px; font-family: system-ui, sans-serif; font-style: normal; font-size: 12px; text-wrap: balance; font-weight: 600; color: var(--muted); }
.seg button.on { box-shadow: inset 0 0 0 2.5px var(--accent); }
/* Home menu: Aventure, a week of daily levels, free play, then icon shortcuts. */
.menu-adv { flex-direction: row !important; justify-content: space-between; padding-inline: 20px; }
.menu-adv small { display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px 4px; border-radius: 999px; background: rgba(255,255,255,.2); opacity: 1; font-size: 14px; }
.menu-adv small .star { fill: #ffd23f; }
.menu-head { display: flex; align-items: center; gap: 8px; margin: 18px 2px 8px; }
.menu-head .menu-label { margin: 0; flex: 1; }
.menu-defis { width: 100%; margin-top: 10px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; border-radius: calc(var(--radius) - 2px);
  cursor: pointer; background: var(--panel-2); color: var(--text); text-align: left; transition: transform 120ms cubic-bezier(.2,.8,.2,1); }
.menu-defis:active { transform: scale(0.97); }
.menu-defis .ico { flex: none; color: var(--accent); }
.menu-defis .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.menu-defis b { font-family: var(--font-display); font-style: var(--display-style); font-weight: 700; font-size: 22px; line-height: 1; letter-spacing: .03em; text-transform: uppercase; }
.menu-defis small { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-defis .flame { font-weight: 800; font-size: 16px; }
.menu-defis .chev { flex: none; color: var(--muted); }
/* Défis screen: calendar, then the picked day's level, seeds and missions. */
.cal button.pick { outline: 3px solid var(--text); outline-offset: 1px; }
.cal button .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.cal button.today .dot { background: currentColor; }
.day-title { margin: 18px 2px 10px; text-align: left; font-family: var(--font-display); font-style: var(--display-style); font-weight: 700; font-size: 22px; line-height: 1.1; }
.day-title::first-letter { text-transform: uppercase; }
.defi { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; border-radius: calc(var(--radius) - 6px); cursor: pointer;
  background: var(--panel-2); color: var(--text); text-align: left; transition: transform 120ms cubic-bezier(.2,.8,.2,1); }
.defi:active { transform: scale(0.97); }
.defi.done { box-shadow: inset 0 0 0 2px var(--good); }
.defi .txt { flex: 1; min-width: 0; }
.defi .txt b { display: block; font-size: 16px; font-weight: 800; }
.defi .txt span { display: block; font-size: 13px; font-weight: 700; color: var(--muted); line-height: 1.3; }
.defi .side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 12px; font-weight: 800; color: var(--muted); }
.defi .side .stars { display: flex; }
.defis-note { margin: 8px 2px 0; text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); line-height: 1.35; }
#defis .missions { margin-top: 4px; }
#missions-list h3 { display: none; }
.menu-defis + .menu-defis { margin-top: 8px; }
.menu-defis .pips { display: flex; gap: 4px; }
.menu-defis .pips i { width: 14px; height: 6px; border-radius: 3px; background: var(--hairline); overflow: hidden; }
.menu-defis .pips i > b { display: block; height: 100%; background: var(--accent); }
.menu-defis .pips i.done > b { background: var(--good); }
#missions-open { right: 116px; padding: 0; overflow: visible; }
#missions-open .badge {
  position: absolute; top: -6px; right: -8px; padding: 0 5px; height: 19px; border-radius: 6px; background: var(--accent); color: var(--on-accent);
  font-family: var(--font-ui); font-weight: 800; font-size: 13px; line-height: 20px; box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
#missions-open .badge:empty { display: none; }
#missions-open .badge { background: var(--good); }
#defis .missions h3 { margin: 16px 2px 8px; font-family: inherit; font-style: normal; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.seg.pills { margin-top: 8px; }
.seg.pills button { padding: 8px 6px 7px; font-size: 16px; border-radius: 999px; }
.setting[hidden] { display: none; }
.setting { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 8px;
  border-radius: calc(var(--radius) - 4px); background: var(--panel-2); font-weight: 800; font-size: 16px; text-align: left; }
.setting small { display: block; font-weight: 600; font-size: 12px; color: var(--muted); margin-top: 2px; }
.toggle { flex: none; position: relative; width: 50px; height: 30px; border: 0; border-radius: 15px; padding: 0; cursor: pointer;
  background: var(--sunken); box-shadow: inset 0 0 0 1.5px var(--hairline); transition: background 180ms; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.3); transition: transform 180ms cubic-bezier(.2,.8,.2,1); }
.toggle[aria-checked="true"] { background: var(--accent); }
.toggle[aria-checked="true"]::after { transform: translateX(20px); }
#give-up:active { transform: translate(-50%, -50%) scale(0.96); }
