
.sgtep{max-width:640px;margin:0 auto;padding:24px 19px 60px;background:transparent;color:var(--sg-ink);font-family:inherit;line-height:1.8;box-sizing:border-box}.sgtep *{box-sizing:border-box}.sgtep .sg-panel{background:transparent;border:1px solid #e3e5e8;border-radius:var(--sg-radius);padding:26px 22px;box-shadow:0 5px 22px #203c3010}.sgtep .sg-tag{color:var(--sg-green);font-size:13px;font-weight:700}.sgtep .sg-title{font-family:inherit;font-size:inherit;line-height:inherit;margin:12px 0}.sgtep .sg-question{font-family:inherit;font-size:inherit;line-height:inherit;margin:8px 0 18px}.sgtep p{margin:8px 0 18px}.sgtep .sg-sub{color:var(--sg-sub);font-size:14px}.sgtep .sg-choices{display:grid;gap:11px;margin:20px 0}.sgtep .sg-choice{background:white;border:1.5px solid #dfe2e6;border-radius:12px;text-align:left;padding:14px 16px;font:inherit;color:inherit;cursor:pointer;line-height:1.5;width:100%}.sgtep .sg-choice[aria-pressed=true]{border-color:var(--sg-green);background:var(--sg-pale);font-weight:700}.sgtep button:focus-visible{outline:3px solid var(--sg-green);outline-offset:3px}.sgtep .sg-btn{background:var(--sg-green);color:white;border:0;border-radius:999px;padding:13px 24px;font:inherit;font-weight:700;cursor:pointer}.sgtep .sg-btn:disabled{opacity:.35;cursor:not-allowed}.sgtep .sg-secondary{background:#f0f1f3;color:var(--sg-ink)}.sgtep .sg-controls{display:flex;justify-content:space-between;gap:12px;margin-top:22px}.sgtep .sg-progress{height:7px;background:#e8eaed;border-radius:10px;overflow:hidden;margin:13px 0 24px}.sgtep .sg-fill{height:100%;background:var(--sg-green);transition:width .2s}.sgtep .sg-duo{border-left:4px solid #a9adb4;padding:8px 0 8px 15px;margin:20px 0;font-size:19px;font-weight:700;line-height:1.8}.sgtep .sg-duo div+div{margin-top:13px}.sgtep .sg-last{font-weight:700;background:var(--sg-pale);padding:18px;border-radius:12px;margin-top:18px}.sgtep .sg-note{font-size:13px;color:var(--sg-sub)}.sgtep [hidden]{display:none!important}@media(max-width:480px){.sgtep{padding:12px 6px 40px}.sgtep .sg-panel{padding:21px 16px}.sgtep .sg-choice{padding:13px}}

/* v1.0.4: remove theme-generated top and bottom question rules */
.sgtep .sg-intro .sg-brand{text-align:center;margin:0 auto 8px;line-height:1}
.sgtep .sg-intro .sg-brand-logo{display:block;width:104px;max-width:35%;height:auto;margin:0 auto;background:transparent;border:0;box-shadow:none}
.sgtep .sg-intro .sg-tag{text-align:center;margin:6px 0 12px}
.sgtep .sg-intro h2.sg-title,.sgtep .sg-intro .sg-title{display:block!important;text-align:center!important;background:transparent!important;background-image:none!important;color:#222!important;-webkit-text-fill-color:#222!important;border:0!important;border-left:0!important;border-right:0!important;border-top:0!important;border-bottom:0!important;box-shadow:none!important;text-shadow:none!important;padding:0!important;margin:8px auto 10px!important;font-family:inherit!important;font-size:clamp(19px,4.5vw,25px)!important;font-weight:700!important;line-height:1.55!important;letter-spacing:normal!important;text-transform:none!important;min-height:0!important}
.sgtep .sg-intro h2.sg-title::before,.sgtep .sg-intro h2.sg-title::after{content:none!important;display:none!important}
.sgtep .sg-intro .sg-puzzle-underline{display:block;width:min(300px,92%);height:auto;margin:0 auto 22px;background:transparent;border:0;box-shadow:none}
@media(max-width:480px){.sgtep .sg-intro .sg-brand-logo{width:90px}.sgtep .sg-intro .sg-puzzle-underline{width:min(270px,95%)}}
.sgtep .sg-intro .sg-brand,.sgtep .sg-intro .sg-brand-logo{display:none!important}
.sgtep .sg-quiz h2.sg-question{background:transparent!important;background-image:none!important;color:var(--sg-ink)!important;-webkit-text-fill-color:var(--sg-ink)!important;border:0!important;box-shadow:none!important;text-shadow:none!important;padding:0!important;font-family:inherit!important;line-height:1.55!important;text-align:center!important;font-weight:700!important;margin:12px auto 8px!important}

/* Suppress theme h2 pseudo-element decorative rules only on quiz questions */
.sgtep .sg-quiz h2.sg-question::before,.sgtep .sg-quiz h2.sg-question::after{content:none!important;display:none!important;border:0!important;background:none!important;box-shadow:none!important}
.sgtep .sg-quiz .sg-question-underline{display:block!important;width:min(300px,92%);height:auto;margin:0 auto 20px!important;background:transparent;border:0;box-shadow:none}
.sgtep .sg-sound-toggle{display:block;margin:12px 0 0 auto;padding:6px 8px;background:transparent!important;border:0!important;color:var(--sg-sub)!important;font:inherit;font-size:12px;cursor:pointer;box-shadow:none!important}
@media(max-width:480px){.sgtep .sg-quiz .sg-question-underline{width:min(270px,95%)}}

.sgtep .sg-status{font-size:13px;color:var(--sg-sub);min-height:1em;margin-top:10px}

/* Selection: a short, subtle pop, with reduced-motion support. */
.sgtep .sg-choice.sg-pop{animation:sgt-choice-pop .29s cubic-bezier(.22,.75,.3,1.15)}
@keyframes sgt-choice-pop{0%{transform:scale(1)}38%{transform:scale(1.045) translateY(-2px)}75%{transform:scale(.992)}100%{transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.sgtep .sg-choice.sg-pop{animation:none}}

/* v0.5: pale-green surfaces -> light neutral grey, retaining brand accent green. */
.sgtep .sg-choice[aria-pressed=true]{background:#f2f3f5}
.sgtep .sg-last{background:#f2f3f5}
.sgtep .sg-puzzle-track{display:flex;justify-content:center;align-items:center;gap:clamp(7px,3vw,20px);margin:-12px 0 14px;min-height:37px;pointer-events:none}
.sgtep .sg-piece{display:block;width:clamp(26px,7vw,37px);height:clamp(26px,7vw,37px);object-fit:contain;opacity:.46;transform:translateY(0) rotate(-8deg) scale(.94);filter:grayscale(.65);transition:opacity .28s ease,filter .28s ease,transform .35s cubic-bezier(.2,.8,.2,1)}
.sgtep .sg-piece.sg-lit{opacity:1;filter:none;transform:translateY(-2px) rotate(0deg) scale(1)}
.sgtep .sg-piece.sg-bounce{animation:sgt-piece-bounce .46s cubic-bezier(.18,.75,.25,1.2)}
@keyframes sgt-piece-bounce{0%{transform:translateY(0) rotate(-8deg) scale(.92)}35%{transform:translateY(-9px) rotate(7deg) scale(1.13)}70%{transform:translateY(1px) rotate(-3deg) scale(.97)}100%{transform:translateY(-2px) rotate(0deg) scale(1)}}
@media(prefers-reduced-motion:reduce){.sgtep .sg-piece{transition:none}.sgtep .sg-piece.sg-bounce{animation:none}}

/* v0.6: 24 original puzzle-piece images are the sole progress indicator. */
.sgtep .sg-progress{display:none!important}
.sgtep .sg-tag{color:#737982!important}
.sgtep .sg-choice[aria-pressed=true]{border-color:#9299a1!important;background:#f2f3f5!important}
.sgtep button:focus-visible{outline-color:#9299a1!important}
.sgtep .sg-btn:not(.sg-secondary){background:#858b93!important;color:#fff!important}
.sgtep .sg-btn:not(.sg-secondary):hover:not(:disabled){background:#737982!important}
.sgtep .sg-puzzle-track{display:grid;grid-template-columns:repeat(24,minmax(0,1fr));gap:clamp(1px,.18vw,3px);margin:4px auto 21px;max-width:740px;min-height:0;align-items:center;justify-items:center}
.sgtep .sg-piece{width:100%;max-width:36px;height:auto;aspect-ratio:180/147;object-fit:contain;opacity:.34;filter:grayscale(1);transform:translateY(0) scale(.91);transition:opacity .25s ease,filter .25s ease,transform .3s ease}
.sgtep .sg-piece.sg-lit{opacity:1;filter:none;transform:translateY(-1px) scale(1)}
@media(max-width:480px){.sgtep .sg-puzzle-track{grid-template-columns:repeat(24,minmax(0,1fr));gap:1px;max-width:100%;margin:5px auto 17px}.sgtep .sg-piece{max-width:36px}}
@media(prefers-reduced-motion:reduce){.sgtep .sg-piece{transition:none!important}.sgtep .sg-piece.sg-bounce{animation:none!important}}

/* v0.7: Keep all 24 brand pieces on one horizontal row at every viewport size. */
.sgtep .sg-puzzle-track{width:100%;grid-template-columns:repeat(24,minmax(0,1fr))!important;flex-wrap:nowrap;overflow:visible}
.sgtep .sg-piece{min-width:0;max-width:100%;display:block}

/* v0.8: question -> single-row progress -> choices; quiet footer logo below sound. */
.sgtep .sg-quiz .sg-question-underline{display:none!important}
.sgtep .sg-quiz h2.sg-question{margin:12px auto 14px!important}
.sgtep .sg-quiz .sg-puzzle-track{margin:8px auto 21px!important}
.sgtep .sg-quiz .sg-footer-logo{display:flex;align-items:center;justify-content:center;margin:21px auto 0;padding:0 0 8px;min-height:62px}
.sgtep .sg-quiz .sg-footer-logo img{display:block;width:68px;max-width:20%;height:auto;object-fit:contain;opacity:.72;border:0;background:none;box-shadow:none}
@media(max-width:480px){.sgtep .sg-quiz .sg-footer-logo img{width:60px}.sgtep .sg-quiz .sg-footer-logo{margin-top:17px;min-height:56px}}

/* v0.9: compact logo positioned at the exact lower-center of the quiz card. */
.sgtep .sg-quiz.sg-panel{position:relative!important;padding-bottom:88px!important}
.sgtep .sg-quiz .sg-footer-logo{
 position:absolute!important;left:50%!important;bottom:18px!important;
 transform:translateX(-50%)!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:56px!important;height:60px!important;min-height:0!important;
 margin:0!important;padding:0!important;line-height:0!important;
 overflow:visible!important;pointer-events:none!important;
}
.sgtep .sg-quiz .sg-footer-logo img{
 display:block!important;width:52px!important;min-width:52px!important;
 max-width:52px!important;height:56px!important;max-height:56px!important;
 object-fit:contain!important;margin:0!important;padding:0!important;
 opacity:.68!important;position:static!important;
}
@media(max-width:480px){
 .sgtep .sg-quiz.sg-panel{padding-bottom:84px!important}
 .sgtep .sg-quiz .sg-footer-logo{bottom:15px!important}
}

/* v1.0.2: START SCREEN ONLY — visually align with SGT Mini Games. */
.sgtep:has(> .sg-intro:not([hidden])){max-width:780px;padding:16px 10px 30px;color:#354750;}
.sgtep .sg-intro{background:#fff!important;border:1px solid #e5e9eb!important;border-radius:20px!important;box-shadow:none!important;padding:clamp(22px,5vw,42px) clamp(20px,5vw,44px)!important;min-height:390px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:0;}
.sgtep .sg-intro .sg-tag{font-size:13px!important;color:#83939e!important;font-weight:600!important;letter-spacing:.02em!important;margin:0 0 16px!important;}
.sgtep .sg-intro h2.sg-title{font-size:clamp(25px,4.8vw,34px)!important;line-height:1.4!important;color:#354750!important;-webkit-text-fill-color:#354750!important;font-weight:700!important;margin:0 auto 12px!important;}
.sgtep .sg-intro .sg-puzzle-underline{width:min(310px,90%)!important;margin:0 auto 22px!important;}
.sgtep .sg-intro .sg-description{font-size:15px!important;line-height:1.85!important;color:#71808a!important;margin:0 auto 10px!important;max-width:440px;}
.sgtep .sg-intro .sg-sub{font-size:13px!important;line-height:1.7!important;color:#81909b!important;margin:0 auto 24px!important;}
.sgtep .sg-intro .sg-start{display:inline-flex!important;align-items:center;justify-content:center;align-self:center;background:#737d84!important;color:#fff!important;border:0!important;border-radius:999px!important;padding:12px 28px!important;font-size:14px!important;font-weight:700!important;min-width:0!important;box-shadow:none!important;}
.sgtep .sg-intro .sg-start:hover{background:#5b6870!important;}
@media(max-width:480px){.sgtep:has(> .sg-intro:not([hidden])){padding:10px 4px 24px;}.sgtep .sg-intro{min-height:350px;padding:28px 18px!important;}.sgtep .sg-intro .sg-puzzle-underline{width:min(270px,94%)!important;}}

/* v1.0.3: Mobile question typography; preserve content and question scoring.
   text-wrap:balance distributes Japanese characters across two natural lines
   instead of leaving a short orphan line. */
.sgtep .sg-quiz h2.sg-question{
  max-width:100%!important;
  width:100%!important;
  margin:14px auto 24px!important;
  font-size:clamp(19px,4.6vw,25px)!important;
  line-height:1.6!important;
  letter-spacing:.015em!important;
  word-break:normal!important;
  overflow-wrap:anywhere!important;
  text-wrap:balance;
  text-wrap:pretty;
  text-wrap:balance;
}
.sgtep .sg-quiz .sg-puzzle-track{margin:10px auto 25px!important;}
@media(max-width:480px){
  .sgtep .sg-quiz h2.sg-question{
    font-size:clamp(19px,5.1vw,22px)!important;
    line-height:1.65!important;
    letter-spacing:.008em!important;
    margin:13px auto 27px!important;
    text-wrap:balance;
  }
  .sgtep .sg-quiz .sg-puzzle-track{margin:10px auto 25px!important;}
}

/* v1.0.4: Respect sentence meaning on phones instead of balancing character counts. */
.sgtep .sg-quiz .sg-semantic-break{display:none;}
@media(max-width:600px){
 .sgtep .sg-quiz .sg-semantic-break{display:block;}
 .sgtep .sg-quiz h2.sg-question{text-wrap:wrap!important;overflow-wrap:normal!important;word-break:normal!important;line-height:1.55!important;letter-spacing:0!important;margin-bottom:31px!important;}
 .sgtep .sg-quiz .sg-puzzle-track{margin-top:12px!important;}
}

/* v1.0.5: Question text slightly larger than answer choices; preserve bold and manual semantic breaks. */
.sgtep .sg-quiz h2.sg-question{font-size:17px!important;font-weight:700!important;}
@media(max-width:480px){.sgtep .sg-quiz h2.sg-question{font-size:17px!important;}}

/* v2.2.1: user-adjustable typography; scoped to this test only. */
.sgtep .sg-intro .sg-tag{font-size:var(--sgt-font-intro_tag,13px)!important}
.sgtep .sg-intro h2.sg-title{font-size:var(--sgt-font-intro_title,30px)!important;overflow-wrap:anywhere;text-wrap:balance}
.sgtep .sg-intro .sg-description{font-size:var(--sgt-font-intro_description,15px)!important}
.sgtep .sg-intro .sg-sub{font-size:var(--sgt-font-intro_note,13px)!important}
.sgtep .sg-intro .sg-start{font-size:var(--sgt-font-intro_button,14px)!important}
.sgtep .sg-quiz h2.sg-question{font-size:var(--sgt-font-question,18px)!important}
.sgtep .sg-quiz .sg-choice{font-size:var(--sgt-font-choices,16px)!important}
.sgtep .sg-quiz .sg-controls .sg-btn{font-size:var(--sgt-font-quiz_button,16px)!important}

/* Start-screen sound control shares the quiz setting. */
.sgtep .sg-intro{position:relative;padding-top:54px!important}
.sgtep .sg-intro .sg-intro-sound{position:absolute;top:10px;right:12px;margin:0;font-size:12px}

/* Preserve line breaks entered in the text editor. */
.sgtep .sg-intro .sg-tag,.sgtep .sg-intro .sg-title,.sgtep .sg-intro .sg-description,.sgtep .sg-intro .sg-sub,.sgtep .sg-intro .sg-start,.sgtep .sg-quiz h2.sg-question{white-space:pre-line!important}
