.spotgame-heading{margin:24px 0 12px}.spotgame-heading h2{font-size:28px;margin:6px 0}.spotgame-heading p:last-child,.spotgame-note{color:#76816e;font-size:13px;line-height:1.8}.spotgame-wallet{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;margin:16px 0 5px;background:#f2f5e9;border:1px solid #dce4d2;border-radius:16px}.spotgame-wallet span{display:block;color:#78866e;font-size:12px}.spotgame-wallet strong{color:#315d43;font-size:16px}.spotgame-wallet strong b{font-size:25px}.spotgame-wallet button{background:#315d43;color:white}.spotgame-wallet button:disabled{opacity:.5}.spotgame-books{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-top:22px}.spotgame-book{display:flex;flex-direction:column;gap:9px;align-items:flex-start;text-align:left;padding:12px;border:1px solid #dfe4d9;border-radius:16px;background:#fffdf8;color:#344637;cursor:pointer}.spotgame-book img{width:100%;height:190px;object-fit:contain;background:#f5f1e4;border-radius:10px}.spotgame-book strong{font-size:14px;min-height:36px}.spotgame-book span{font-size:12px;color:#77836f}.spotgame-book em{font-size:13px;font-style:normal;color:#315d43;font-weight:700}.spotgame-back{margin:12px 0;background:transparent;color:#315d43}.spotgame-gamehead{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:4px 0}.spotgame-gamehead h3{font-size:23px;margin:0}.spotgame-gamehead p{font-size:13px;color:#75816c}.spotgame-gamehead>strong{color:#4c774d;font-size:13px}.spotgame-clock{display:flex;align-items:center;gap:14px;padding:14px 18px;margin:12px 0;background:#fff;border:1px solid #dde3d9;border-radius:15px}.spotgame-clock>b{font-size:25px;color:#315d43;font-variant-numeric:tabular-nums}.spotgame-clock>b.warning{color:#ba5143}.spotgame-clock>span{height:8px;flex:1;background:#edf0e8;border-radius:9px;overflow:hidden}.spotgame-clock i{display:block;height:100%;background:#92b77c;transition:width .2s}.spotgame-clock>strong{white-space:nowrap;color:#49684c}.spotgame-actions{display:flex;gap:8px;margin-bottom:12px}.spotgame-actions button{border:1px solid #d3ddcc;background:#fff;color:#48694a}.spotgame-boards{display:grid;grid-template-columns:1fr 1fr;gap:14px}.spotgame-panel{min-width:0;padding:9px;border:1px solid #dce2d8;border-radius:16px;background:#fff}.spotgame-panel>strong{display:block;text-align:center;font-size:13px;margin:2px 0 9px;color:#587557}.spotgame-art{position:relative;width:100%;overflow:hidden;border-radius:9px;background:#f5f1e6;touch-action:manipulation}.spotgame-art>img{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none;user-select:none}.spotgame-hit{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:crosshair}.spotgame-mark{position:absolute;z-index:1;transform:translate(-50%,-50%);display:grid;place-items:center;border:3px solid #26945b;border-radius:50%;background:#6acc7140;color:#147142;font-weight:800;pointer-events:none;text-shadow:0 1px white}.spotgame-mark.hint{border:3px dashed #e3a424;background:#ffc84245;color:#946a1c}.spotgame-message{text-align:center;min-height:40px;color:#416b47;font-size:13px;font-weight:700;padding:10px}.spotgame-result{margin:12px auto;padding:18px;text-align:center;border:1px solid #d9e6d1;border-radius:16px;background:#f1f6ea}.spotgame-result strong{font-size:20px;color:#315d43}.spotgame-result p{font-size:13px;color:#6e7b68}.spotgame-result button{background:#315d43;color:white}.spotgame-note{font-size:12px}.spotgame-back,.spotgame-actions button,.spotgame-result button,.spotgame-wallet button{min-height:42px;padding:10px 15px;border-radius:10px;font-weight:700;cursor:pointer;border:0}@media(max-width:800px){.spotgame-books{grid-template-columns:repeat(3,minmax(0,1fr))}.spotgame-book img{height:165px}}@media(max-width:700px){.spotgame-books{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.spotgame-book{padding:8px}.spotgame-book img{height:150px}.spotgame-book strong{font-size:12px}.spotgame-boards{grid-template-columns:1fr;max-width:540px;margin:auto}.spotgame-panel{padding:6px}.spotgame-wallet{align-items:flex-start;flex-direction:column}.spotgame-wallet button{width:100%}.spotgame-clock{gap:9px;padding:11px}.spotgame-clock>b{font-size:21px}.spotgame-gamehead h3{font-size:19px}.spotgame-heading h2{font-size:24px}}

/* Polished transitions and stable boards: keep decoded images mounted for the full round. */
#spotgame-heading{scroll-margin-top:12px}
.spotgame-play-view{scroll-margin-top:12px;animation:spot-view-in .42s cubic-bezier(.2,.75,.25,1) both}
.spotgame-loading{display:grid;justify-items:center;gap:12px;min-height:260px;padding:44px 18px;text-align:center;border:1px solid #e4e8dc;border-radius:20px;background:linear-gradient(145deg,#fffdf7,#f3f6eb);color:#3f6147}
.spotgame-loading strong{font-size:19px}.spotgame-loading p{margin:0;color:#75816c;font-size:13px}
.spotgame-loader{font-size:34px;color:#86a970;animation:spot-spin 2.4s ease-in-out infinite}
.spotgame-skeleton{width:min(500px,90%);height:10px;margin-top:12px;border-radius:20px;background:linear-gradient(90deg,#e6ebdf 20%,#f8f7ef 45%,#e6ebdf 70%);background-size:220% 100%;animation:spot-sheen 1.25s linear infinite}
.spotgame-boards{transition:opacity .28s ease,transform .28s ease}.spotgame-image{opacity:1;transition:opacity .25s ease;backface-visibility:hidden}
.spotgame-art{isolation:isolate}.spotgame-marks{position:absolute;inset:0;z-index:2;pointer-events:none}
.spotgame-hit{z-index:1;transition:background-color .18s ease}.spotgame-hit:not(:disabled):active{background:#ffffff18}
.spotgame-mark{display:grid;place-items:center;box-sizing:border-box;border:3px solid #27915b;background:#73d37b38;color:#116b3d;font-size:clamp(12px,2vw,20px);line-height:1;text-shadow:0 1px 2px #fff;box-shadow:0 0 0 2px #fff8,0 2px 8px #285f3a2b;animation:spot-mark-pop .52s cubic-bezier(.17,.85,.25,1.3) both}
.spotgame-mark.hint{border-style:dashed;border-color:#dda02e;background:#ffd85a55;color:#8b681c;animation:spot-hint-pop .42s ease-out both}
.spotgame-wrong{animation:spot-soft-shake .32s ease-in-out}
.spotgame-message{transition:opacity .18s ease;min-height:42px}
.spotgame-result{position:relative;overflow:hidden;opacity:0;transform:translateY(12px) scale(.98);transition:opacity .38s ease,transform .42s cubic-bezier(.2,.8,.2,1);}
.spotgame-result.is-visible{opacity:1;transform:translateY(0) scale(1)}
.spotgame-result.is-success{border-color:#cadfbe;background:radial-gradient(ellipse at 50% 0%,#fff9d9 0%,#f4f8e9 48%,#eef5e8 100%);box-shadow:0 8px 24px #426b3014}
.spotgame-result-badge{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:3px 14px;margin:0 auto 8px;border-radius:999px;background:#e8f3d9;color:#3e7043;font-size:14px;font-weight:800;letter-spacing:.02em}
.spotgame-result.is-success .spotgame-result-badge{background:#ffedab;color:#856417;animation:spot-badge-pop .55s .12s cubic-bezier(.15,.9,.2,1.3) both}
.spotgame-result.is-success #spotgame-result-title{display:block;font-size:23px;line-height:1.35;animation:spot-title-in .42s .08s ease-out both}
.spotgame-celebration{position:absolute;top:10px;left:50%;display:flex;align-items:center;gap:min(24vw,115px);transform:translateX(-50%);color:#dfa943;pointer-events:none}
.spotgame-celebration span{font-size:18px;opacity:0;animation:spot-sparkle .8s .1s ease-out both}.spotgame-celebration span:nth-child(2){font-size:23px;animation-delay:.22s}.spotgame-celebration span:nth-child(3){animation-delay:.34s}
.spotgame-result.is-success p{font-weight:700;color:#4a7048}.spotgame-actions button[aria-pressed="true"]{background:#edf4e8;border-color:#91ad7e;color:#365e3d}
@keyframes spot-view-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes spot-spin{0%,100%{transform:rotate(-12deg) scale(.95)}50%{transform:rotate(12deg) scale(1.08)}}
@keyframes spot-sheen{to{background-position:-220% 0}}
@keyframes spot-mark-pop{0%{opacity:0;transform:translate(-50%,-50%) scale(.52)}65%{opacity:1;transform:translate(-50%,-50%) scale(1.08)}100%{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@keyframes spot-hint-pop{0%{opacity:0;transform:translate(-50%,-50%) scale(.8)}100%{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@keyframes spot-soft-shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-3px)}75%{transform:translateX(3px)}}
@keyframes spot-badge-pop{from{opacity:0;transform:scale(.78)}to{opacity:1;transform:scale(1)}}
@keyframes spot-title-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@keyframes spot-sparkle{0%{opacity:0;transform:translateY(10px) scale(.6) rotate(-22deg)}65%{opacity:.95;transform:translateY(-5px) scale(1.22) rotate(8deg)}100%{opacity:.75;transform:translateY(0) scale(1) rotate(0)}}
@media(prefers-reduced-motion:reduce){.spotgame-play-view,.spotgame-loader,.spotgame-skeleton,.spotgame-mark,.spotgame-result,.spotgame-result-badge,.spotgame-result.is-success #spotgame-result-title,.spotgame-celebration span{animation:none!important;transition:none!important;transform:none!important;opacity:1!important}}
@media(max-width:700px){.spotgame-loading{min-height:200px;padding:32px 14px}.spotgame-actions{flex-wrap:wrap}.spotgame-actions button{flex:1 1 auto}}
