/* ==========================================================================
   Mix It — styles. Theme tokens and shared components come from
   shared/style.css.

   The table: the colour to match and my mix side by side, two big round
   blobs, then the five paint pots, each a tap for one drop.
   ========================================================================== */

.mx { display: grid; gap: .7rem; max-width: 30rem; margin-inline: auto; padding-block: .5rem 2rem; }
.mx-title { font-size: clamp(1.6rem, 7vw, 2.2rem); text-align: center; }
.mx-sub { font-size: 1.2rem; text-align: center; }
.mx-note { font-size: 1.02rem; font-weight: 700; text-align: center; }
.mx-center { text-align: center; font-weight: 700; }
.mx-center-btn { justify-self: center; }
.mx-sent { font-size: 1.15rem; font-weight: 900; text-align: center; color: var(--olive); }
:root[data-theme="dark"] .mx-sent { color: #b7cc6a; }
.mx-top { display: flex; align-items: center; gap: .6rem; }
.mx-top > .clock, .mx-top__end { margin-inline-start: auto; }

/* ---------- Menu ---------- */

.mx-menu { display: grid; gap: .5rem; }
.mx-menu__art { display: flex; justify-content: center; gap: .4rem; padding-block: .3rem; }
.mx-menu__art span { width: 2rem; height: 2rem; border: 3px solid var(--line); border-radius: 50% 46% 52% 48%; }
.mx-tagline { font-size: 1.1rem; font-weight: 700; text-align: center; }
.howto { max-width: 30rem; margin: 1.5rem auto 0; padding: .25rem 1rem; }
.howto summary { min-height: var(--tap); display: flex; align-items: center; font-weight: 800; cursor: pointer; }
.howto ol { display: grid; gap: .5rem; padding: 0 0 1rem; padding-inline-start: 1.4rem; list-style: decimal; }
.host--small .host__teta { width: 76px; }
.host--small .bubble { padding: .65rem .9rem; font-weight: 700; }

/* ---------- The colours ---------- */

.mx-blobs { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.mx-blob { display: grid; justify-items: center; gap: .3rem; }
.mx-blob small { font-weight: 800; color: var(--muted); }
.mx-blob__paint { display: block; width: min(100%, 11rem); aspect-ratio: 1; border: 4px solid var(--line); border-radius: 50% 47% 52% 49%; box-shadow: 0 5px 0 var(--line); transition: background-color .25s; }
.mx-blob__paint.is-empty { background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 1.2rem 1.2rem; border-style: dashed; box-shadow: none; }
.mx-blob--big .mx-blob__paint { width: min(70%, 10rem); }
/* The colours sit on a neutral card, the same in the light and the dark theme: a colour looks
   different on a dark page than on a light one, and everyone should be judging the same thing. */
.mx-blobs, .mx-blob--big { padding: 1rem .8rem .8rem; background: #e8e4db; border: 3px solid var(--line); border-radius: var(--radius); }
:is(.mx-blobs, .mx-blob--big) small { color: #5d544b; }
:is(.mx-blobs, .mx-blob--big) .mx-blob__paint { border-color: #2b2118; box-shadow: 0 5px 0 #2b2118; }
:is(.mx-blobs, .mx-blob--big) .mx-blob__paint.is-empty { background: repeating-conic-gradient(#d9d4c9 0 25%, #f3f0ea 0 50%) 0 0 / 1.2rem 1.2rem; box-shadow: none; }
.mx-count { text-align: center; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- The paints ---------- */

.mx-table { display: grid; gap: .7rem; }
.mx-pots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; }
.mx-pot { position: relative; display: grid; justify-items: center; gap: .2rem; padding: .35rem .1rem; font: inherit; color: var(--text); background: var(--surface); border: 3px solid var(--line); border-radius: 14px 16px 13px 17px; box-shadow: 0 4px 0 var(--line); cursor: pointer; }
.mx-pot:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.mx-pot:disabled { opacity: .5; cursor: default; }
.mx-pot__drop { width: 2.4rem; aspect-ratio: 1; background: var(--c); border: 3px solid var(--line); border-radius: 0 50% 50% 50%; rotate: 45deg; }
.mx-pot small { font-size: .78rem; font-weight: 800; }
.mx-pot__count { position: absolute; top: -.5rem; inset-inline-end: -.3rem; min-width: 1.5rem; padding: 0 .3rem; font-size: .85rem; line-height: 1.5rem; text-align: center; color: var(--ink); background: var(--sun); border: 2px solid var(--line); border-radius: 999px; }
.mx-tools { display: flex; justify-content: center; gap: .5rem; }

/* ---------- How it came out ---------- */

.mx-outcome { display: grid; gap: .5rem; }
.mx-pct { font-size: 2rem; font-weight: 900; text-align: center; font-variant-numeric: tabular-nums; }
.mx-verdict { font-size: 1.15rem; font-weight: 800; text-align: center; }
.mx-recipe-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem; font-weight: 700; color: var(--muted); }
.mx-recipe { display: inline-flex; flex-wrap: wrap; gap: .2rem; }
.mx-recipe i { width: .95rem; height: .95rem; border: 2px solid var(--line); border-radius: 50%; }
.mx-squares { font-size: 1.6rem; letter-spacing: .15rem; text-align: center; }
.mx-squares--row { font-size: .95rem; letter-spacing: 0; }

/* ---------- Everyone's mixes ---------- */

.mx-mixes { display: grid; gap: .35rem; padding: 0; list-style: none; }
.mx-mixrow { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: .5rem; padding: .35rem .6rem; background: var(--surface); border: 2px solid var(--line); border-radius: 14px; }
.mx-mixrow.is-you { background: var(--surface-2); border-width: 3px; }
.mx-mixrow bdi { overflow: hidden; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.mx-mixrow b { font-variant-numeric: tabular-nums; }
.mx-dot { width: 2rem; height: 2rem; border: 3px solid var(--line); border-radius: 50%; }
.mx-dot.is-empty { border-style: dashed; }
