/* 4Muses: a phone-width app shell with a bottom tab bar. Judges keep one color each everywhere. */
:root {
  --sky: #f1eff8; --card: #ffffff; --ink: #221a36; --muted: #625a77; --line: #e0dcec; --soft: #f7f5fc;
  --glow: #ff6a45; --glow-soft: #ffe3da; --on-glow: #ffffff; --bad: #b3261e; --ok: #1b7443;
  --claude: #0d7a6c; --chatgpt: #6a47cc; --gemini: #1b68b5; --human: #ff6a45;
  --f-display: "Syne", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root {
  --sky: #15121f; --card: #1f1a2e; --ink: #efeaf9; --muted: #a9a1bf; --line: #332c47; --soft: #252038;
  --glow: #ff8566; --glow-soft: #3a2320; --on-glow: #1a1016; --bad: #f2786e; --ok: #55c283;
  --claude: #3cc6b1; --chatgpt: #a88cf3; --gemini: #62a9ee; color-scheme: dark; } }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--sky); color: var(--ink); font: 16px/1.5 var(--f-body); }
.shell { max-width: 480px; margin: 0 auto; padding: env(safe-area-inset-top, 0px) 16px calc(96px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 16px; }
header.top { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; }
.logo { display: flex; align-items: center; gap: 8px; font: 800 1.45rem/1 var(--f-display); letter-spacing: -.02em; }
.logo i { font-style: normal; color: var(--glow); }
.logo img { width: 30px; height: 30px; }
.who { font: 500 .8rem var(--f-mono); color: var(--muted); }
h1, h2, h3 { font-family: var(--f-display); margin: 0; line-height: 1.15; text-wrap: balance; }
h1 { font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.eyebrow { font: 500 .72rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.clock { flex-direction: row; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; font-size: .92rem; }
.bar { flex: 1; height: 6px; border-radius: 3px; background: var(--soft); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--glow); }
.by { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; color: var(--judge); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--judge); flex: none; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.fmt { font: 500 .72rem var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 2px; }
.btn { background: var(--glow); color: var(--on-glow); border: 0; border-radius: 999px; padding: 11px 20px; font-weight: 700; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; font-size: .88rem; }
.judge-claude { --judge: var(--claude); } .judge-chatgpt { --judge: var(--chatgpt); } .judge-gemini { --judge: var(--gemini); } .judge-human { --judge: var(--human); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field input, .field textarea { border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; background: var(--card); width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.err { color: var(--bad); font-weight: 700; font-size: .92rem; }
.okmsg { color: var(--ok); font-weight: 700; }
.drop { display: grid; place-items: center; min-height: 220px; border: 2px dashed var(--line); border-radius: 18px; background: var(--card); text-align: center; padding: 16px; cursor: pointer; overflow: hidden; }
.drop img { max-width: 100%; max-height: 360px; border-radius: 10px; display: block; }
.rules { font-size: .85rem; color: var(--muted); margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 3px; }
.mine { border-top: 1px solid var(--line); padding-top: 10px; display: flex; gap: 10px; align-items: center; font-size: .9rem; }
.mine img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.entry { padding: 0; overflow: hidden; gap: 0; }
.entry > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--soft); }
.entry .body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.entry .quote { font-family: var(--f-display); font-size: 1.15rem; font-weight: 700; padding: 16px 16px 0; }
.place { font: 800 1.1rem var(--f-display); }
.place small { font: 500 .75rem var(--f-mono); color: var(--muted); margin-left: 6px; }
.you { background: var(--glow-soft); color: var(--ink); border-radius: 6px; padding: 1px 8px; font-size: .78rem; font-weight: 700; margin-left: 6px; }
.says { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.says li { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; font-size: .9rem; }
.says .name { font-weight: 700; color: var(--judge); white-space: nowrap; }
.says .rank { font: 500 .72rem var(--f-mono); color: var(--muted); align-self: center; }
.says .why { grid-column: 1 / -1; }
.votes { display: flex; gap: 8px; flex-wrap: wrap; }
.votes button { border: 1px solid var(--line); background: var(--soft); border-radius: 999px; padding: 6px 14px; font-weight: 700; color: var(--judge); }
.votes button[aria-pressed="true"] { border-color: var(--judge); box-shadow: inset 0 0 0 1px var(--judge); }
.taste .t { display: grid; grid-template-columns: 5.5rem 1fr 2.8rem; gap: 10px; align-items: center; font-size: .9rem; }
.taste .track { height: 10px; background: var(--soft); border-radius: 5px; overflow: hidden; }
.taste .fill { display: block; height: 100%; background: var(--judge); }
.taste .pct { font-family: var(--f-mono); text-align: right; font-variant-numeric: tabular-nums; }
.hero { text-align: left; padding-top: 24px; }
.hero img { width: 88px; height: 88px; }
.tagline { font: 700 1.1rem var(--f-display); }
nav.tabs { position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--line); padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: center; gap: 8px; }
nav.tabs button { flex: 1; max-width: 150px; background: none; border: 0; padding: 9px; border-radius: 12px; font-weight: 700; color: var(--muted); }
nav.tabs button[aria-selected="true"] { color: var(--ink); background: var(--soft); }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--glow); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }

details.council { border-top: 1px solid var(--line); padding-top: 10px; font-size: .9rem; }
details.council summary { cursor: pointer; font-weight: 700; color: var(--muted); }
details.council .round { margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
details.council .round h4 { margin: 0; font: 500 .72rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
details.council .line { display: grid; grid-template-columns: 5rem 1fr; gap: 8px; }
details.council .line b { color: var(--judge); }
.trio { display: inline-flex; gap: 3px; margin-right: 2px; }
.trio i { width: 9px; height: 9px; border-radius: 50%; display: block; }
