/* Study is a listening sequence, separate from timed games and rewards. */
.gem-actions.has-study{--study-gap:12px;column-gap:var(--study-gap);row-gap:7px}
.gem-actions.has-study .play-gem-slot{grid-column:1/-1;width:100%;justify-self:stretch;display:flex;justify-content:center;min-width:0}
.gem-actions.has-study .play-gem-slot>.start-gem.ruby{width:calc((100% - var(--study-gap))/2)!important;flex:0 0 calc((100% - var(--study-gap))/2)}
.gem-actions .start-gem.sapphire{background:none!important;isolation:isolate}
.gem-actions .start-gem.sapphire:before{content:"";display:block!important;position:absolute;inset:0;z-index:-1;border:0;clip-path:none;background:transparent url('../images/art/gem-emerald-v5.webp') center/contain no-repeat;filter:hue-rotate(85deg) saturate(1.3);pointer-events:none}
.game-surface.ready .question-area:has(.gem-actions.has-study){height:auto;min-height:174px}
.study-surface{width:100%;max-width:760px;margin:0 auto;display:grid;justify-items:center;gap:13px;text-align:center}
.study-progress{font-size:13px;line-height:1.3;color:#abbfae;font-variant-numeric:tabular-nums}
.study-word,.study-translation{font:400 clamp(25px,4.5vw,38px)/1.2 Georgia,serif;min-height:1.3em;width:100%;max-width:650px;overflow-wrap:anywhere;color:#d8e3d2;text-wrap:balance;margin:0}
.study-translation{font-size:clamp(23px,4vw,32px);color:#c9d3c1}
.study-word.is-speaking,.study-translation.is-speaking{font-weight:700;color:#fff0b9;text-shadow:0 2px 12px #edd08922}
.study-picture{width:min(100%,360px,43dvh);aspect-ratio:1;min-width:0;border:2px solid #c5b77677;border-radius:15px;overflow:hidden;background:#e9e1d0;box-shadow:0 10px 30px #0004;display:grid;place-items:center}
.study-picture img{display:block;width:100%;height:100%;max-height:100%;object-fit:contain}
.study-text-card{padding:20px;background:radial-gradient(ellipse at top,#45624c,#183629);color:#f1e5bd;font:700 clamp(28px,5vw,48px)/1.2 Georgia;overflow-wrap:anywhere;text-wrap:balance}
.study-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:3px}
.study-actions .button{min-height:40px;padding:9px 18px}
@media(max-width:760px){
 .gem-actions.has-study{--study-gap:9px}
 .game-surface.ready .question-area:has(.gem-actions.has-study){min-height:151px}
 .study-surface{gap:10px;padding-block:4px}
 .study-progress{font-size:12px}
 .study-picture{border-radius:12px}
}
@media(max-width:380px){.gem-actions.has-study{--study-gap:8px}.game-surface.ready .question-area:has(.gem-actions.has-study){min-height:137px}.study-surface{gap:8px}.study-picture{width:min(100%,310px,39dvh)}}
@media(orientation:landscape) and (max-height:600px){
 .study-surface{gap:6px;padding-block:3px}.study-picture{width:min(100%,260px,34dvh)}
 .study-word,.study-translation{font-size:24px}.study-progress{font-size:11px}
 .game-surface.ready .question-area:has(.gem-actions.has-study){min-height:108px}
}
