:root {
  font-family: ui-rounded, "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  color: #442b48;
  background: #fff6e4;
  font-weight: 600;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 0 0, #ffdae5 0 12rem, transparent 12.1rem),
    #fff6e4;
}
main {
  max-width: 760px;
  margin: auto;
  padding: 12px clamp(12px, 3vw, 28px) 36px;
}
a {
  color: #83345c;
}
nav,
header,
footer {
  text-align: center;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
nav a,
summary {
  padding: 12px 0;
}
nav span {
  font-size: 0.75rem;
}
header {
  padding: 22px 0 28px;
  border-bottom: 5px dotted #d686a8;
}
header h1 {
  font-size: 0.95rem;
}
header p {
  margin: 8px auto;
}
header a {
  display: inline-block;
  margin-top: 8px;
}
.hero {
  font-weight: 950;
  color: #9b2056;
  letter-spacing: -0.06em;
  font-size: clamp(1.85rem, 6.8vw, 3.1rem);
}
section {
  margin: 30px 0;
}
h2 {
  font-size: clamp(1.12rem, 4.5vw, 1.55rem);
  line-height: 1.45;
  margin: 0 0 10px;
}
h3 {
  font-size: 1.12rem;
  margin: 0;
}
p,
summary,
legend {
  line-height: 1.65;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
legend {
  font-size: 0.88rem;
  margin-bottom: 12px;
}
.choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.choices label {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  background: #fffefa;
  border: 2px solid #e2c3c9;
  border-radius: 16px;
  text-align: center;
  cursor: pointer;
  padding: 3px 4px 8px;
  font-size: clamp(0.76rem, 2.9vw, 0.96rem);
}
.choices img {
  width: clamp(46px, 13vw, 68px);
  height: auto;
}
.choices input {
  position: absolute;
  top: 6px;
  left: 6px;
  accent-color: #ac245b;
}
.choices label:has(:checked) {
  background: #ffe0ec;
  border-color: #aa225c;
}
.choices label:focus-within,
:focus-visible {
  outline: 3px solid #55398a;
  outline-offset: 2px;
}
.ballot-foot {
  text-align: center;
}
.primary,
button,
.actions a {
  font: inherit;
  border: 2px solid #593748;
  border-radius: 14px;
  padding: 10px 14px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fffdf6;
  color: #58364a;
  cursor: pointer;
}
.primary {
  width: 100%;
  background: #ac245b;
  color: white;
  box-shadow: 0 4px 0 #672445;
  text-decoration: none;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
.meta,
.note,
footer {
  font-size: 0.85rem;
  color: #654f5c;
}
.empty,
.note {
  padding: 12px;
  background: #fff1cd;
  border-radius: 12px;
}
.standings {
  background: #fffdfa;
  padding: 14px;
  border: 2px solid #e2c3c9;
  border-radius: 17px;
  margin: 12px 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: clamp(0.75rem, 3vw, 0.95rem);
}
td,
th {
  text-align: right;
  padding: 6px 2px;
  border-bottom: 1px solid #f0dce1;
}
td:first-child,
th:first-child,
th:nth-child(2) {
  text-align: left;
}
th span {
  display: flex;
  align-items: center;
}
th img {
  flex: none;
}
td {
  white-space: nowrap;
}
summary {
  cursor: pointer;
  min-height: 44px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.actions a {
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
footer {
  border-top: 2px dotted #d686a8;
  padding: 18px 0;
}
#notice:empty,
#share-msg:empty {
  display: none;
}
@media (max-width: 359px) {
  .choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
