/* Fase 20B.15 · Correcciones de tema claro + preparación por encima de la partida */

#crowGamesOverlay .games-prep-layer{
  z-index:80;
}

@media(max-width:620px){
  #crowGamesOverlay .games-prep-layer{
    position:fixed;
    z-index:410;
    inset:max(68px,var(--safeT)) 0 0;
  }
}

html[data-theme="light"] #crowGamesOverlay{
  background:#f6f0e8;
  color:#2f2823;
}

html[data-theme="light"] #crowGamesOverlay .crow-games-sheet{
  background:
    radial-gradient(circle at 90% 0,rgba(184,134,98,.06),transparent 30%),
    linear-gradient(180deg,#fffdf9,#f7f1e9 58%,#f3ece3);
  color:#2f2823;
}

html[data-theme="light"] #crowGamesOverlay .sheet-head{
  background:rgba(255,253,249,.97);
  border-bottom-color:#d9d0c7;
  color:#2f2823;
}

html[data-theme="light"] #crowGamesOverlay .sheet-head h3,
html[data-theme="light"] #crowGamesOverlay .games-hero h4,
html[data-theme="light"] #crowGamesOverlay .games-mode h5,
html[data-theme="light"] #crowGamesOverlay .games-play-title,
html[data-theme="light"] #crowGamesOverlay .games-question-text,
html[data-theme="light"] #crowGamesOverlay .games-result h4,
html[data-theme="light"] #crowGamesOverlay .games-result-score,
html[data-theme="light"] #crowGamesOverlay .games-stat b{
  color:#2f2823;
}

html[data-theme="light"] #crowGamesOverlay .close{
  background:#fffaf5;
  border-color:#d5cbc1;
  color:#41372f;
  box-shadow:none;
}

html[data-theme="light"] #crowGamesOverlay .games-hero{
  background:
    radial-gradient(circle at 93% 12%,rgba(184,134,98,.10),transparent 31%),
    linear-gradient(145deg,#fffdf9,#f6eee5 70%);
  border-color:#d9cec3;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72);
}

html[data-theme="light"] #crowGamesOverlay .games-raven-portrait:before{
  background:radial-gradient(circle,rgba(184,134,98,.11),rgba(140,41,71,.025) 48%,transparent 72%);
}

html[data-theme="light"] #crowGamesOverlay .games-hero p,
html[data-theme="light"] #crowGamesOverlay .games-mode p,
html[data-theme="light"] #crowGamesOverlay .games-feedback,
html[data-theme="light"] #crowGamesOverlay .games-result p{
  color:#7a7068;
}

html[data-theme="light"] #crowGamesOverlay .games-stat{
  background:#fffaf5;
  border-color:#ddd3c8;
  color:#2f2823;
}

html[data-theme="light"] #crowGamesOverlay .games-stat span{
  color:#81766d;
}

html[data-theme="light"] #crowGamesOverlay .games-mode{
  background:linear-gradient(145deg,#fffdf9,#f8f1e9 74%);
  border-color:#d9cec3;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72);
}

html[data-theme="light"] #crowGamesOverlay .games-mode-icon{
  background:#fbf4ec;
  border-color:#d8cabd;
  color:#a97452;
}

html[data-theme="light"] #crowGamesOverlay .games-mode:before{
  background:linear-gradient(180deg,#b88662,#a24a66);
  opacity:.58;
}

html[data-theme="light"] #crowGamesOverlay .btn:not(.primary):not(.danger),
html[data-theme="light"] #crowGamesOverlay .btn.ghost{
  background:#fffaf5;
  border-color:#d6ccc2;
  color:#4a4039;
}

html[data-theme="light"] #crowGamesOverlay .games-progress{
  background:#dfd5cc;
}

html[data-theme="light"] #crowGamesOverlay .games-score-chip{
  background:#fffaf5;
  border-color:#ddd3c8;
  color:#7c7169;
}

html[data-theme="light"] #crowGamesOverlay .games-score-chip b{
  color:#3b312b;
}

html[data-theme="light"] #crowGamesOverlay .games-timer{
  background:linear-gradient(180deg,#fffdf9,#faf4ed);
  border-color:#ddd3c8;
}

html[data-theme="light"] #crowGamesOverlay .games-timer-head{
  color:#7b7067;
}

html[data-theme="light"] #crowGamesOverlay .games-timer-head b{
  color:#302822;
}

html[data-theme="light"] #crowGamesOverlay .games-timer-track{
  background:#ddd4cb;
}

html[data-theme="light"] #crowGamesOverlay .games-sound-toggle{
  background:#fffaf5;
  border-color:#d7cdc3;
  color:#4a4039;
}

html[data-theme="light"] #crowGamesOverlay .games-question{
  background:
    radial-gradient(circle at 100% 0,rgba(184,134,98,.05),transparent 28%),
    linear-gradient(180deg,#fffdf9,#faf5ef);
  border-color:#ddd3c8;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75);
}

html[data-theme="light"] #crowGamesOverlay .games-question-number,
html[data-theme="light"] #crowGamesOverlay .games-play-kicker{
  color:#a06f4f;
}

html[data-theme="light"] #crowGamesOverlay .games-clue{
  background:rgba(184,134,98,.075);
  border-left-color:#b88662;
  color:#655b53;
}

html[data-theme="light"] #crowGamesOverlay .games-option{
  background:linear-gradient(180deg,#fffdf9,#faf5ef);
  border-color:#d7cfc5;
  color:#3c332d;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}

html[data-theme="light"] #crowGamesOverlay .games-option:active:not(:disabled){
  background:#f3e9df;
  border-color:#bfa99a;
}

html[data-theme="light"] #crowGamesOverlay .games-option.correct{
  background:linear-gradient(180deg,#f3fbf5,#eaf6ee);
  border-color:#79a98a;
  color:#355a42;
  box-shadow:inset 3px 0 0 #67b586;
}

html[data-theme="light"] #crowGamesOverlay .games-option.wrong{
  background:linear-gradient(180deg,#fff4f5,#fae9eb);
  border-color:#c88691;
  color:#7e3944;
  box-shadow:inset 3px 0 0 #b54d58;
}

html[data-theme="light"] #crowGamesOverlay .games-feedback.good{color:#477a57}
html[data-theme="light"] #crowGamesOverlay .games-feedback.bad{color:#8b4651}

html[data-theme="light"] #crowGamesOverlay .games-result{
  background:
    radial-gradient(circle at 50% 0,rgba(184,134,98,.10),transparent 42%),
    linear-gradient(180deg,#fffdf9,#f7f1e9);
  border-color:#ddd3c8;
}

html[data-theme="light"] #crowGamesOverlay .games-prep-layer{
  background:
    radial-gradient(circle at 50% 15%,rgba(140,41,71,.045),transparent 34%),
    rgba(248,243,237,.995);
}

html[data-theme="light"] #crowGamesOverlay .games-prep-card{
  background:
    radial-gradient(circle at 50% 0,rgba(184,134,98,.10),transparent 43%),
    linear-gradient(180deg,#fffdf9,#f7f1e9 74%);
  border-color:#d9cec3;
  box-shadow:0 24px 60px rgba(71,56,45,.10),inset 0 1px 0 rgba(255,255,255,.78);
}

html[data-theme="light"] #crowGamesOverlay .games-prep-hourglass{
  background:#fffaf5;
  border-color:#d6c8bc;
  color:#9f704f;
}

html[data-theme="light"] #crowGamesOverlay .games-prep-title{color:#302822}
html[data-theme="light"] #crowGamesOverlay .games-prep-copy{color:#756b63}
html[data-theme="light"] #crowGamesOverlay .games-prep-dots i{background:#b59b87}
