
.treats { max-width: 720px; margin: 0 auto; display: grid; gap: 12px; }
.tintro { text-align: center; margin: 0 0 2px; }
.tgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tpup { margin: 0; position: relative; text-align: center; }
.tpup button, div.tpup { display: block; width: 100%; box-sizing: border-box; min-width: 0; padding: 8px 4px 6px; border: 2px solid transparent; border-radius: 14px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); font: inherit; color: inherit; }
.tpup button { cursor: pointer; transition: transform .15s, border-color .15s; }
.tpup button:hover, .tpup button:focus-visible { transform: translateY(-4px); border-color: #e8bd72; outline: none; }
.tpup img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; }
.tpup .tname { display: block; font-weight: bold; color: #3C2F2F; font-size: 14px; margin-top: 2px; }
div.tpup.off img, div.tpup.off .tname { opacity: .45; }

div.tpup.picked { border-color: #e8bd72; animation: tbounce .7s ease-out; }
div.tpup.other img { opacity: .5; filter: grayscale(.5); }
.thas { display: block; overflow-wrap: anywhere; font-size: 12px; line-height: 1.25; margin-top: 4px; min-height: 2.5em; color: #6b5a48; }
.thas.prize { color: #1f7a2e; font-weight: bold; } .thas.small { color: #2a5a8a; }
div.tpup.other .thas { opacity: 0; animation: tshow .4s ease-out 1s forwards; }
.tresult { text-align: center; padding: 18px 12px; background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.08); animation: tshow .4s ease-out; }
.tresult .tword { font-size: 19px; margin: 0; color: #3C2F2F; } .tresult.prize .tword { color: #1f7a2e; } .tresult .mbtn { margin-left: 8px; }
.tstatus { text-align: center; margin: 4px 0 0; } .tstatus .sub { margin-left: 6px; }
.mbtn { border: 0; border-radius: 16px; padding: 6px 14px; font-weight: bold; background: #1f7a2e; color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
@keyframes tbounce { 0% { transform: scale(1); } 30% { transform: scale(1.08) translateY(-8px); } 60% { transform: scale(.97); } 100% { transform: scale(1); } }
@keyframes tshow { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) { .tgrid { gap: 6px; } .tpup .tname { font-size: 12px; } .thas { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { div.tpup.picked, .tresult { animation: none; } div.tpup.other .thas { animation: none; opacity: 1; } }
.tboard .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; } .tboard .cols table + table { border-left: 1px solid #d9cfc2; padding-left: 14px; } .tboard table { width: 100%; border-collapse: collapse; font-size: 14px; } .tboard td { padding: 5px 6px; border-top: 1px solid #eee5d8; } .tboard td.rank { color: #8a7a68; width: 2.6em; font-size: 12px; } .tboard td.pup img { width: 28px; height: 28px; border-radius: 50%; vertical-align: middle; margin-right: 8px; object-fit: cover; } .tboard td.n { font-weight: 700; text-align: right; } .tboard tr.top td { background: #fff6d6; }
.tgrid { padding: 14px; border-radius: 16px; background-color: #2f7a4e; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.5px), radial-gradient(rgba(0,0,0,.12) 1px, transparent 1.5px); background-size: 7px 7px, 11px 11px; background-position: 0 0, 3px 5px; box-shadow: inset 0 0 0 3px #245f3c, inset 0 2px 14px rgba(0,0,0,.35), 0 2px 8px rgba(0,0,0,.15); }
.tpup { box-shadow: 0 3px 10px rgba(0,0,0,.25); }
.tpup.picked { border-color: #e8bd72; animation: tbounce .7s ease-out; }
.tsaid { display: block; overflow-wrap: anywhere; font-size: 13px; line-height: 1.3; margin-top: 6px; color: #3C2F2F; animation: tshow .35s ease-out; }
.tsaid.prize { color: #1f7a2e; font-weight: bold; } .tsaid.small { color: #2a5a8a; font-weight: bold; }
.tsaid a { color: inherit; }
.tsaid .keepit { margin: 6px 0 0; }
@media (prefers-reduced-motion: reduce) { .tpup.picked, .tsaid { animation: none; } }
.tbone { position: relative; display: block; margin: 14px auto 2px; padding: 0; width: 120px; height: 60px; border: 0; background: none; cursor: grab; transition: transform .2s, filter .2s; }
.tbone svg { width: 120px; height: 60px; }
.tbone b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #3C2F2F; }
.tbone:hover { transform: translateY(-3px); }
.treats.holding .tbone { transform: rotate(-14deg) scale(1.12); filter: drop-shadow(0 0 10px rgba(255,210,63,.9)); cursor: grabbing; }
.treats:not(.holding) .tpup button { cursor: default; }
.treats:not(.holding) .tpup button:hover { transform: none; border-color: transparent; }
.treats.holding .tpup button { cursor: pointer; }
.tbone.nudge { animation: tbonenudge .45s ease-in-out; }
@keyframes tbonenudge { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
