* { box-sizing: border-box; }
body { max-width: 720px; margin: 0 auto; background: #fff; color: #333; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
button { font-family: inherit; }
.hd { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; height: 46px; background: #fff; border-bottom: 1px solid #eee; }
.hd .back { width: 40px; border: 0; background: none; font-size: 22px; color: #9ca3af; cursor: pointer; }
.hd h1 { flex: 1; margin: 0; text-align: center; font-size: 17px; font-weight: 600; padding-right: 40px; }
.lots { display: flex; height: 48px; background: #f5f5f5; padding: 5px 8px 0; gap: 4px; }
.lots button { flex: 1; height: 43px; border: 0; border-radius: 8px 8px 0 0; background: #fff; color: #333; font-size: 14px; cursor: pointer; }
.lots button.on { background: #07c160; color: #fff; }
#body { padding: 0 8px 24px; }
.years, .periods, .row { display: flex; gap: 10px; }
.years { overflow-x: auto; margin: 12px 0; }
.years button, .grid button { border: 1px solid #9ca3af; background: #fff; border-radius: 999px; padding: 4px 10px; white-space: nowrap; font-size: 14px; }
.years button.on { background: #07c160; color: #fff; border-color: #07c160; }
.periods { align-items: center; border-bottom: 4px solid #f3f4f6; padding-bottom: 8px; }
.row { flex: 1; overflow-x: auto; gap: 28px; }
.row button { border: 0; background: none; font-size: 14px; white-space: nowrap; padding: 4px 0; color: #333; }
.row button.on { color: #07c160; }
.pick { border: 0; background: #07c160; color: #fff; border-radius: 999px; font-size: 12px; padding: 4px 8px; white-space: nowrap; }
.mask { position: relative; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-height: 50vh; overflow: auto; background: #fff; padding: 8px 0; position: relative; z-index: 2; }
.grid button { font-size: 13px; text-align: center; }
.grid button.on { border-color: #07c160; color: #07c160; }
.cats { display: flex; margin-top: 10px; }
.cats button { flex: 1; border: 1px solid #07c160; background: #fff; padding: 8px; }
.cats button.on { background: #07c160; color: #fff; }
.result { border: 1px solid #07c160; padding: 10px; margin-top: 12px; text-align: center; color: #6b7280; }
.result p { margin: 0 0 8px; color: #07c160; font-size: 16px; }
.balls { display: flex; justify-content: center; align-items: flex-start; gap: 4px; flex-wrap: wrap; }
.ball { text-align: center; font-size: 12px; }
.ball i { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 700; font-size: 16px; color: #333; background: center / contain no-repeat; }
.ball i.c1 { background-image: url("/kj/toolbox/img/amage1.png"); }
.ball i.c2 { background-image: url("/kj/toolbox/img/amage2.png"); }
.ball i.c3 { background-image: url("/kj/toolbox/img/amage3.png"); }
.ball em { display: block; font-style: normal; margin-top: 2px; }
.plus { font-size: 22px; font-weight: 700; line-height: 36px; }
.ttl { text-align: center; font-size: 18px; font-weight: 500; margin: 14px 0 8px; }
.txt { font-size: 14px; line-height: 1.6; }
.txt p { margin: 0 0 8px; }
.media { width: 100%; max-height: 60vw; object-fit: contain; display: block; margin-top: 8px; background: #000; }
.votes { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; margin-top: 16px; }
.vote { display: flex; align-items: center; margin-bottom: 8px; font-size: 14px; }
.vote > span { width: 2em; }
.bar { flex: 1; height: 16px; border: 1px solid #07c160; border-radius: 999px; overflow: hidden; position: relative; }
.bar i { display: block; height: 100%; background: #07c160; border-radius: 999px; min-width: 0; }
.bar b { position: absolute; left: 40%; top: 0; font-size: 11px; font-weight: 400; line-height: 16px; }
.vote em { width: 3.2em; text-align: right; font-style: normal; font-size: 12px; }
.navs { display: flex; gap: 12px; margin: 16px 0; }
.navs button { flex: 1; border: 0; background: #e5e7eb; border-radius: 999px; padding: 10px; }
.navs .go { flex: 2; background: #07c160; color: #fff; }
.navs button:disabled { opacity: .5; }
.foldwrap { text-align: center; margin-top: 8px; }
.fold { border: 0; background: #07c160; color: #fff; padding: 6px 28px; clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%); }
.wait { text-align: center; color: #6b7280; padding: 24px 0; }
.vote[data-animal] { cursor: pointer; border-radius: 6px; padding: 2px 4px; }
.vote.on { background: #e8f8ef; outline: 1px solid #07c160; }
@media screen and (min-width: 721px) { .media { max-height: 432px; } }
