.sgthunt{box-sizing:border-box;max-width:740px;margin:18px auto;padding:22px 20px;border:1px solid #e5e9eb;border-radius:20px;background:#fff;color:#354750;font-family:inherit;text-align:center;position:relative;isolation:isolate}.sgthunt *{box-sizing:border-box}.sgthunt [hidden]{display:none!important}.sgthunt button{font:inherit;cursor:pointer;touch-action:manipulation}.sgthunt button:focus-visible{outline:3px solid #7da8c1;outline-offset:2px}.sgthunt-top{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:18px}.sgthunt-brand{font-size:11px;font-weight:700;letter-spacing:.06em;color:#75838c}.sgthunt-actions{display:flex;gap:8px}.sgthunt .sgthunt-small{font-size:12px!important;line-height:1.3!important;font-weight:400!important;padding:7px 12px!important;border:1px solid #e1e5e8!important;border-radius:30px!important;background:#fff!important;color:#64737b!important;min-width:0!important;min-height:0!important;width:auto!important;height:auto!important;white-space:nowrap!important;box-shadow:none!important}.sgthunt button:disabled{opacity:.48;cursor:default}.sgthunt-cover{min-height:370px;border:1px solid #e5e9eb;border-radius:18px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:22px;margin-bottom:14px}.sgthunt-kicker{font-size:12px;color:#86939b;margin:0 0 36px}.sgthunt-subtitle{font-size:17px;font-weight:700;margin:0 0 9px}.sgthunt-star{font-size:17px;margin:0 0 12px}.sgthunt .sgthunt-cover h2{font-size:clamp(24px,5vw,30px)!important;color:#354750!important;margin:0 0 35px!important;padding:0!important;border:0!important;box-shadow:none!important;background:none!important;line-height:1.4}.sgthunt-cover p{font-size:14px;color:#71808a;white-space:pre-line;line-height:1.85;margin:0 0 25px}.sgthunt-primary,.sgthunt-secondary{border:0!important;border-radius:999px!important;padding:12px 28px!important;font-size:14px!important;font-weight:700!important;background:#737d84!important;color:#fff!important}.sgthunt-secondary{background:#eef0f2!important;color:#354750!important}.sgthunt-game{position:relative;margin:10px auto 20px;max-width:520px}.sgthunt-stat{display:flex;justify-content:space-between;gap:8px;font-size:14px;font-weight:700;margin:12px 0}.sgthunt-track{height:7px;border-radius:999px;background:#e9edf0;overflow:hidden;margin-bottom:14px}.sgthunt-track>span{display:block;height:100%;width:100%;background:#8ba7b8}.sgthunt-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.sgthunt-tile{aspect-ratio:1/1;min-width:0;display:grid;place-items:center;padding:7px!important;background:#f7f8f9!important;border:1px solid #e1e6e9!important;border-radius:15px!important;transition:transform .12s,background .12s}.sgthunt-tile img{width:100%;max-width:83px;height:auto;pointer-events:none;filter:grayscale(1) brightness(1.25);opacity:.56}.sgthunt-tile.is-hit{background:#fff!important;border-color:#d5e3eb!important}.sgthunt-tile.is-hit img{filter:none;opacity:1}.sgthunt-tile.is-miss{background:#f0f1f2!important}.sgthunt-tile.is-miss img{filter:grayscale(1);opacity:.23}.sgthunt-tile:active{transform:scale(.95)}.sgthunt-message{min-height:27px;font-size:14px;color:#687b87;margin:12px}.sgthunt-buttons{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.sgthunt-ranking{border-top:1px solid #eceff1;padding:15px 0 0}.sgthunt-ranking h3{font-size:16px!important;color:#354750!important;border:0!important;background:none!important;margin:0 0 8px!important}.sgthunt-rank-status,.sgthunt-rank-note{font-size:12px;color:#72828b;margin:8px 0}.sgthunt-ranks{display:grid;grid-template-columns:1fr 1fr;gap:10px}.sgthunt-ranks>div{border:1px solid #edf0f2;border-radius:12px;padding:12px 5px;font-size:12px}.sgthunt-ranks strong{display:block;margin:7px 0;font-size:18px}.sgthunt-ranks span{font-size:12px;color:#71828d}.sgthunt-pause{position:absolute;inset:0;background:#fffffff2;z-index:10;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}.sgthunt-pause h3{font-size:22px}.sgthunt-countdown{font-size:44px;font-weight:700;color:#5298c2;min-height:55px}.sgthunt-topten{font-size:20px;font-weight:800;color:#e6aa30;animation:sgthunt-pop .7s cubic-bezier(.2,1.5,.4,1) both}.sgthunt-confetti{position:absolute;z-index:50;pointer-events:none;width:8px;height:13px;border-radius:2px;opacity:0;animation:sgthunt-confetti 2.1s cubic-bezier(.18,.72,.45,1) var(--delay,0s) forwards}@keyframes sgthunt-confetti{0%{opacity:0;transform:translate(var(--sx),0) rotate(0deg) scale(.6)}10%{opacity:1}65%{opacity:1}100%{opacity:0;transform:translate(var(--tx),calc(var(--ty) + 210px)) rotate(var(--rot)) scale(.8)}}@keyframes sgthunt-pop{from{opacity:0;transform:scale(.3) translateY(20px)}to{opacity:1;transform:scale(1) translateY(0)}}@media(max-width:480px){.sgthunt{padding:13px;border-radius:16px}.sgthunt-brand{font-size:9px}.sgthunt-actions{gap:4px}.sgthunt .sgthunt-small{font-size:11px!important;padding:6px 8px!important}.sgthunt-cover{min-height:350px}.sgthunt-board{gap:6px}.sgthunt-tile{padding:4px!important;border-radius:11px}.sgthunt-ranks strong{font-size:15px}}@media(prefers-reduced-motion:reduce){.sgthunt *{animation:none!important;transition:none!important}.sgthunt-confetti{display:none!important}}

/* PIECE HUNT: ランキング見出しをテーマCSSに左右されず中央へ */
.sgthunt .sgthunt-ranking h3{display:block!important;width:100%!important;text-align:center!important;margin-left:auto!important;margin-right:auto!important;}
/* タッチ操作を遅延させず、押下を即時に視覚化 */
.sgthunt .sgthunt-tile{touch-action:manipulation!important;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none;}
.sgthunt .sgthunt-tile.is-pending{background:#e8f3fa!important;border-color:#9fc8de!important;transform:scale(.96);}

/* Theme-independent, truly centered ranking heading. */
.sgthunt .sgthunt-ranking{display:block!important;text-align:center!important;}
.sgthunt .sgthunt-ranking > h3{display:block!important;position:static!important;float:none!important;clear:both!important;width:100%!important;max-width:none!important;margin:0 auto 8px!important;padding:0!important;left:auto!important;right:auto!important;transform:none!important;text-indent:0!important;text-align:center!important;box-sizing:border-box!important;}
.sgthunt .sgthunt-ranking > h3::before,.sgthunt .sgthunt-ranking > h3::after{content:none!important;display:none!important;}

.sgthunt-ranks > div[hidden]{display:none!important}
