:root{
  --bg:#0b0b0f; --ink:#e9eaef; --muted:#a4a9b6;
  --panel:#12131a; --fx:#171923; --line:#222538;
  --acc:#00ff88; --acc2:#ff2fd6; --hi:#2a2d3a;
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 system-ui,Roboto,Arial,sans-serif}

/* App top */
.appbar{display:flex;align-items:center;justify-content:space-between;padding:.75rem .9rem;background:#0e0f16;border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:.7rem;width:100%}
.yin-yang{width:26px;height:26px;border-radius:50%;background:
  radial-gradient(circle at 50% 35%, #fff 0 4px, transparent 4px),
  radial-gradient(circle at 50% 65%, #000 0 4px, transparent 4px),
  linear-gradient(#fff 50%, #000 0); border:2px solid #fff}
.search{display:flex;gap:.35rem;flex:1}
.search input{flex:1;padding:.5rem .65rem;border-radius:9px;border:1px solid var(--line);background:var(--panel);color:var(--ink)}
.search button{padding:.5rem .7rem;border-radius:9px;background:var(--fx);color:var(--muted);border:1px solid var(--line)}
.hamburger{background:transparent;border:0;display:grid;gap:4px;padding:.2rem}
.hamburger span{width:22px;height:2px;background:#fff;border-radius:3px}

/* Section bar */
.sectionbar{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.55rem .9rem;background:#191a22;border-bottom:1px solid var(--line)}
.tab-pills{display:flex;gap:.35rem}
.pill{width:60px;height:16px;border-radius:6px;background:#292a36;border:1px solid var(--line)}
.pill.is-on{background:linear-gradient(90deg,var(--acc),var(--acc2))}
.back{color:#cfd2dc;text-decoration:none}

/* Screen + views */
.screen{max-width:540px;margin:0 auto;padding:1rem;min-height:calc(100vh - 120px)}
.view{display:none;animation:fade .18s ease both}
.view.is-visible,:target{display:block}
@keyframes fade{from{opacity:.001;transform:translateY(6px)} to{opacity:1;transform:none}}
h2{font-size:1.15rem;letter-spacing:.05em;margin:.25rem 0 1rem}

/* Inputs */
.single-field,.triple-fields{display:grid;gap:.55rem;grid-template-columns:1fr auto;margin-bottom:.6rem}
.single-field input,.triple-fields input{
  padding:.6rem .75rem;border-radius:10px;border:1px solid var(--line);background:var(--panel);color:var(--ink)}
.triple-fields{grid-template-columns:1fr}
.triple-fields .enter{justify-self:end;margin-top:.3rem}

/* Buttons */
.btn{appearance:none;border:1px solid var(--line);background:var(--fx);color:var(--ink);
  padding:.6rem .9rem;border-radius:10px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;
  transition:transform .06s ease, box-shadow .2s ease}
.btn:active{transform:scale(.985)}
.btn.primary{background:linear-gradient(135deg,var(--acc),var(--acc2));color:#0b0b0f;font-weight:700;border:0}
.btn.ghost{background:#191a24}
.btn.outline{background:transparent}
.btn.full{width:100%}
.btn.big{width:100%;padding:1rem 1.2rem;font-weight:600}
.btn.help{width:44px;height:44px;border-radius:10px}

/* Pickers */
.picker{margin-top:.5rem;border:1px solid var(--line);background:#12131b;border-radius:12px;max-height:44vh;overflow:auto;display:grid}
.picker.cols-1{grid-template-columns:1fr}
.opt{display:flex;align-items:center;gap:.6rem;padding:.6rem .9rem;border-bottom:1px solid #1f2130;user-select:none;cursor:pointer}
.opt:last-child{border-bottom:0}
.opt input{appearance:none;width:16px;height:16px;border-radius:4px;border:1px solid var(--line);background:#141622}
.opt:has(input:checked){background:#24283a}
.opt:has(input:checked) input{background:linear-gradient(135deg,var(--acc),var(--acc2));border:0}
.opt:hover{background:#1b1e2c}

/* Panels (results) */
.panel{background:#1b1d28;border:1px solid var(--line);border-radius:14px;padding:.8rem .9rem;margin:.9rem 0}
.panel-h{background:#2a2d3c;border:1px solid #34374a;color:#dfe2ee;padding:.5rem .65rem;border-radius:10px;font-weight:700;letter-spacing:.05em}
.kv{list-style:none;padding:.55rem .2rem .2rem;margin:0}
.kv li{padding:.35rem .45rem}
.kv em{font-style:italic;color:#e9eaef}

/* Actions / status */
.actions{display:flex;gap:.6rem;margin:1rem 0 .6rem}
.row-help{display:grid;grid-template-columns:1fr auto;gap:.6rem;margin-top:.6rem}
.statusbar{display:flex;justify-content:space-between;gap:.75rem;color:#cbd0dc;margin-top:1rem}
.statusbar.bottom{border-top:1px solid var(--line);padding-top:.65rem}
.statusbar b{color:#fff}

/* Hash routing compatibility */
#step-animal:target,#step-color:target,#step-animal-qualities:target,#step-color-qualities:target,#step-results:target{display:block}
#step-animal:not(:target):not(.is-visible),
#step-color:not(:target):not(.is-visible),
#step-animal-qualities:not(:target):not(.is-visible),
#step-color-qualities:not(:target):not(.is-visible),
#step-results:not(:target):not(.is-visible){display:none}

/* Responsive */
@media (min-width:560px){ .screen{padding:1.25rem} }

