/* Matter Sort: same look as Atom Kitchen (colours from style.css). One item at a time, three big answers. */
:root { --bg: #f5f8f4; --panel: #ffffff; --ink: #192c28; --muted: #50635e; --line: #dce4df; --accent: #dcff85; --good: #1f7a4f; --hint: #a24a17; --soft: #eef3ee;
  --font: ui-rounded, "Avenir Next", Avenir, system-ui, sans-serif; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { background: var(--bg); color: var(--ink); font: 17px/1.45 var(--font); margin: 0; padding: 12px max(16px, env(safe-area-inset-left, 0px)); display: grid; gap: 12px; }
button { font: inherit; color: inherit; touch-action: manipulation; }
button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2 { font-weight: 800; margin: 0; } h1 { font-size: 1.6rem; } h2 { font-size: 1.15rem; }
p { margin: 0; }
header { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
header p { color: var(--muted); font-size: .95rem; flex-basis: 100%; }
.home { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 10px; background: var(--panel); color: var(--ink); font-weight: 700; text-decoration: none; }
.home img { width: 24px; height: 24px; }
.sort { display: grid; gap: 12px; }
.panel { background: var(--panel); border: 2px solid var(--ink); border-radius: 10px; padding: 16px; }
.item { display: grid; gap: 12px; justify-items: center; text-align: center; }
.progress { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.emoji { font-size: 4.5rem; line-height: 1; }
.thing { font-size: 1.5rem; font-weight: 800; }
.answers { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.answers button { min-width: 120px; min-height: 56px; border: 2px solid var(--ink); border-radius: 12px; background: var(--soft); font-weight: 800; font-size: 1.1rem; cursor: pointer; }
.answers button:hover { background: var(--accent); }
.feedback { max-width: 640px; border-radius: 10px; padding: 12px 14px; text-align: left; }
.feedback.right { background: #e3f4e8; border: 2px solid var(--good); }
.feedback.nearly { background: #fff1e6; border: 2px solid var(--hint); }
.feedback b { display: block; margin-bottom: 4px; }
.next { min-height: 48px; padding: 0 22px; border: 2px solid var(--ink); border-radius: 12px; background: var(--accent); font-weight: 800; cursor: pointer; }
.bins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bin { border: 2px dashed var(--line); border-radius: 10px; padding: 10px; min-height: 120px; }
.bin-rule { color: var(--muted); font-size: .85rem; margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: .9rem; }
.chips span.tricky { border-color: var(--hint); }
.score { font-size: 1.2rem; font-weight: 800; }
@media (max-width: 640px) { .bins { grid-template-columns: 1fr; } }
