/* SANCHINA R23: status colors apply inside the REAL GAME QUIZ document. */
body.sc-stage-earned-r23 .game-quiz-control-panel {
 background:linear-gradient(155deg,#fafaf8,#f0f2ef)!important;
 border-color:#cbd4cb!important;
 box-shadow:0 4px 10px #4b584212!important;
}
body.sc-stage-earned-r23 .game-quiz-control-panel .barTitle {
 color:#64776e!important;
}
body.sc-stage-earned-r23 .game-quiz-control-panel .game-quiz-pad {
 color:#8ca098!important;
}
body.sc-stage-earned-r23 .game-quiz-control-panel .episode .badge {
 background:linear-gradient(120deg,#a8b5ad,#7b8d83)!important;
 color:white!important;box-shadow:none!important;
}
body.sc-stage-earned-r23 .game-quiz-control-panel .episodeSelectRow {
 background:#f8faf8!important;color:#667a70!important;border-color:#ccd8cf!important;
}
body.sc-stage-earned-r23 .game-quiz-control-panel .scorePill {
 background:#e6ebe7!important;color:#62756a!important;
}
body.sc-stage-earned-r23 .game-quiz-control-panel .progressTrack span {
 background:linear-gradient(90deg,#9ab2a3,#c4cdbc)!important;
}
body.sc-stage-available-r23 .game-quiz-control-panel {
 border-color:#a6d8a3!important;
 background:linear-gradient(155deg,#fffef8,#f0fff2 78%,#fffdf5)!important;
}
body.sc-stage-available-r23 .game-quiz-control-panel .barTitle {color:#006c40!important;}
/* Never present an unavailable/expired session as an unearned card. */
body.sc-stage-unknown-r23 .game-quiz-control-panel {
 border-color:#dfd8c9!important;
 background:linear-gradient(145deg,#fffefa,#f7f6f2)!important;
}

/* R28: read-only inventory count on the standalone quiz; not a navigation bar. */
.sc-quiz-inventory-r28{font:700 11px/1.3 system-ui,-apple-system,sans-serif;color:#08734b;text-align:right;padding:0 12px 5px;margin:-5px 0 1px;min-height:11px}
.sc-quiz-inventory-r28[hidden]{display:none!important}
body.sc-stage-unknown-r23 .game-quiz-control-panel .barTitle{color:#718077!important}
body.sc-stage-unknown-r23 .game-quiz-control-panel .game-quiz-pad{color:#98a69c!important}
@media(max-width:360px){body.sc-stage-unknown-r23 .game-quiz-control-panel .barTitle{font-size:13px!important}}

/* R57 / 43 only: unknown authorization is NOT a redeemed card.
   Amber means status unknown; only a server-confirmed card remains grey. */
body.sc-episode-43-r57.sc-stage-unknown-r23 .game-quiz-control-panel .episode .badge{
 background:linear-gradient(120deg,#d39a30,#ab7517)!important;
 color:white!important;box-shadow:0 4px 10px #97743228!important;
}

/* R58: public episode (latest two) stays visually playable when LINE is not
   authenticated. This GREEN means play is allowed, NOT that a card is unearned.
   Only the authenticated card inventory may cause a redeemed GREY badge.
   The double body class outranks the older grey and R57 amber declarations,
   even when quiz-home-r35.css is loaded later by the existing page. */
body.sc-stage-unknown-r23.sc-stage-public-unverified-r58 .game-quiz-control-panel{
  border-color:#a6d8a3!important;
  background:linear-gradient(155deg,#fffef8,#f0fff2 78%,#fffdf5)!important;
}
body.sc-stage-unknown-r23.sc-stage-public-unverified-r58 .game-quiz-control-panel .episode .badge{
  background:linear-gradient(120deg,#08b66c,#058247)!important;
  color:#fff!important;
  box-shadow:0 4px 10px rgba(3,134,74,.22)!important;
}
body.sc-stage-unknown-r23.sc-stage-public-unverified-r58 .game-quiz-control-panel .barTitle{
  color:#006c40!important;
}

/* R59: unknown public stages intentionally use sc-stage-available-r23,
   leaving the old grey sc-stage-unknown-r23 exclusively for non-public stages. */
