:root { font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif; color: #102821; background: #ecf3ef; }
* { box-sizing: border-box; }
[hidden], .message:empty { display: none !important; }
body { margin: 0; }
main { width: min(100% - 2rem, 68rem); margin: clamp(1.5rem, 5vw, 4rem) auto; }
header { padding: 0 .15rem; margin-bottom: 1.6rem; }
header p { margin: .45rem 0 0; }
h1 { font-size: clamp(2.1rem, 7vw, 4.5rem); letter-spacing: -.03em; margin: .15rem 0; line-height: 1.14; }
h2, h3 { margin: 0 0 .7rem; line-height: 1.25; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
h3 { font-size: 1.05rem; }
p { line-height: 1.6; }
.eyebrow { color: #146654; font-weight: 750; margin-top: 0; }
.panel { background: #fff; border: 1px solid #c6dbce; border-radius: 1rem; padding: clamp(1rem, 3vw, 1.65rem); margin-bottom: 1rem; }
#vote { max-width: 38rem; }
label { display: block; font-weight: 650; margin: .9rem 0 .35rem; }
.muted { color: #435d53; font-weight: 400; }
input, select, textarea, button { font: inherit; min-height: 2.75rem; border-radius: .55rem; }
input, select, textarea { background: #fff; color: inherit; width: 100%; min-width: 0; border: 1px solid #8ba79a; padding: .55rem .7rem; }
#score { max-width: 13rem; font-size: 1.2rem; }
textarea { display: block; resize: vertical; }
select { appearance: none; padding-right: 2rem; background-image: linear-gradient(45deg, transparent 50%, #39564c 50%), linear-gradient(135deg, #39564c 50%, transparent 50%); background-size: 5px 5px; background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-repeat: no-repeat; }
button { background: #146654; color: #fff; border: 0; padding: .55rem 1rem; cursor: pointer; white-space: nowrap; font-weight: 700; }
form > button { margin-top: 1rem; }
button:disabled { opacity: .53; cursor: default; }
:focus-visible { outline: 3px solid #0e7192; outline-offset: 3px; }
.secondary { background: #e4efea; color: #155a4b; }
.danger { background: #912f27; }
a { color: #14574d; font-weight: 650; }
.row, .links, .roster-actions { display: flex; gap: .6rem; }
.links { flex-wrap: wrap; align-items: center; margin-top: 1rem; }
.links a { margin-right: .5rem; }
.message, .callout { background: #e9f5ed; color: #174f40; border-radius: .5rem; padding: .65rem .8rem; }
.roster { list-style: none; padding: 0; }
.roster li { display: grid; grid-template-columns: minmax(6rem, .7fr) minmax(0, 1.5fr) auto; gap: .7rem; align-items: center; border-top: 1px solid #d9e8de; padding: .7rem 0; overflow-wrap: anywhere; }
.roster li > strong { line-height: 1.35; }
.roster li > .state { grid-column: 2 / -1; }
.results-grid, .cloud-grid { display: grid; gap: .85rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.results-grid > .panel { margin-bottom: 0; }
.cloud-grid { margin: 1rem 0; }
.cloud { background: #edf6f1; border-radius: .7rem; padding: .75rem; }
.cloud.better { background: #fff2e3; }
.words { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; align-items: baseline; gap: .25rem .65rem; min-height: 3rem; }
.word { font-size: calc(.92rem + var(--weight) * .28rem); font-weight: 750; color: #105b49; overflow-wrap: anywhere; }
.better .word { color: #824524; }
.word:nth-child(3n) { opacity: .84; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: .55rem .25rem; border-bottom: 1px solid #d9e8de; overflow-wrap: anywhere; }
th:not(:nth-child(2)), td:not(:nth-child(2)) { white-space: nowrap; }
@media (max-width: 48rem) { .results-grid { grid-template-columns: 1fr; } }
@media (max-width: 34rem) {
  .roster li { grid-template-columns: minmax(0, 1fr) auto; }
  .roster li select { grid-column: 1 / -1; grid-row: 2; }
  .roster li > .state { grid-column: auto; }
  .roster-actions { flex-wrap: wrap; justify-content: flex-end; }
}

#audience { max-width: 42rem; margin-inline: auto; }
#round { font-size: clamp(1.7rem, 6vw, 2.8rem); margin-bottom: .85rem; }
.share-row { align-items: stretch; }
@media (max-width: 28rem) {
  .share-row { flex-wrap: wrap; }
}
