/* Scoped values copied from core-v3/become/become-ui.css. Other lessons unchanged. */
.deck{font-family:"Hiragino Maru Gothic ProN","Hiragino Sans","Yu Gothic",system-ui,sans-serif}
.deck .controls.become-row{display:grid;grid-template-columns:1fr 1.5fr 1fr;gap:9px;margin-top:11px}
.deck .become-btn{border:none;border-radius:14px;font-family:inherit;font-weight:900;cursor:pointer;min-height:62px;font-size:17px;line-height:normal;color:#fff;display:flex;align-items:center;justify-content:center;gap:6px;box-shadow:0 2px 10px rgba(31,42,58,.07);padding:0;touch-action:manipulation}
.deck .become-btn:active{transform:scale(.985)}
.deck .become-btn[disabled]{opacity:.32;box-shadow:none}
.deck .become-btn.nav{background:#8795a8}
.deck .become-btn.rep{background:linear-gradient(120deg,#0fa885,#19c79e);font-size:19px}
.deck .become-btn.look{width:100%;background:#fff;color:#e0800a;border:2px solid #ffd79a;min-height:54px;font-size:16px;box-shadow:none;margin-top:8px}
.deck [hidden]{display:none!important}
.deck .line{min-height:88px;display:flex;align-items:center;justify-content:center;background:#fff;border:2px solid #e3e7ee;border-radius:14px;margin-top:11px;padding:13px 16px;text-align:center;font-size:25px;font-weight:900;line-height:1.38}
.deck .line:empty::before{content:"えいごは かくれています";font-size:15.5px;color:#b3bcc9}
.deck .line.reveal{border-color:#ffd79a;background:#fffaf0}
.deck .picture{max-width:900px;margin-left:auto;margin-right:auto}
.deck .picture.loading{display:grid;place-items:center}
@media(min-width:760px){.deck .become-btn{min-height:68px;font-size:19px}.deck .become-btn.rep{font-size:21px}.deck .line{font-size:31px}}
@media(orientation:landscape) and (max-height:850px){.deck .controls.become-row{margin-top:7px}.deck .become-btn{min-height:52px;font-size:16px}.deck .become-btn.rep{font-size:18px}.deck .become-btn.look{min-height:44px;font-size:15px;margin-top:6px}.deck .line{min-height:62px;margin-top:7px;padding:9px 14px;font-size:23px}}
@media(max-height:620px){.deck .become-btn{min-height:54px}.deck .line{min-height:70px;font-size:21px}}

.deck .become-btn.rep.playing{background:linear-gradient(120deg,#0b7f66,#0fa885)}

/* Same outer frame and centered 3:2 artwork as BECOME RIKO Parts 2/3. */
.deck .become-scene{position:relative;width:100%;aspect-ratio:1672/941;background:#e7ecf3;border-radius:16px;overflow:hidden;box-shadow:0 2px 10px rgba(31,42,58,.07);max-height:56vh;margin:0 auto}
.deck .become-scene .picture{height:100%;width:auto;aspect-ratio:3/2;max-width:100%;margin:0 auto;border-radius:0}
.deck .line{height:88px;min-height:0}
@media(min-width:760px){.deck .become-scene{max-height:50vh}}
@media(orientation:landscape) and (max-height:850px){.deck .become-scene{max-height:38vh}.deck .line{height:62px;min-height:0}}
@media(max-height:620px){.deck .become-scene{max-height:42vh}.deck .line{height:70px;min-height:0}}

/* Teacher model: readable flowing sections; translations stay collapsed. */
.teacher-model{overflow-wrap:anywhere;max-width:100%}
.teacher-model .model-section{margin:18px 0;padding:14px;border-left:4px solid #0fa885;background:#f4faf8;border-radius:8px}
.teacher-model .model-section h3{margin:0 0 12px;font-size:20px}
.teacher-model .model-section p{line-height:1.7;margin:10px 0}
.teacher-model .model-section details{margin:14px 0 0;padding:12px;background:#fff}
.teacher-model summary{white-space:normal}

/* EXIT answers can contain a short answer plus explanation; allow wrapping. */
.deck[data-deck="exit"] .line{height:auto;min-height:88px;overflow-wrap:anywhere}
@media(orientation:landscape) and (max-height:850px){.deck[data-deck="exit"] .line{min-height:62px}}
@media(max-height:620px){.deck[data-deck="exit"] .line{min-height:70px}}
