.study-hero {
  padding: clamp(22px, 4.1vw, 42px);
  border: 1px solid #e3c778;
  border-radius: 23px;
  background: #ffecad;
}
.study-hero h1 { font-size: clamp(2.35rem, 6.1vw, 4rem); line-height: 1; letter-spacing: -.06em; }
.study-hero .prompt { max-width: 45ch; line-height: 1.5; color: #49365f; }
.study-group { margin-block: 25px; }
.study-group h2 { margin-block-end: 8px; font-size: clamp(1.35rem, 3.5vw, 1.85rem); }
.study-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.study-card {
  display: grid;
  align-content: center;
  min-height: 89px;
  gap: 6px;
  padding: 12px 15px;
  border: 1px solid #39205626;
  border-radius: 12px;
  background: var(--tone);
  text-align: start;
}
.study-card:hover { border-color: #624599; }
.study-card strong { font-size: 1.1rem; }
.study-card span { color: var(--muted); line-height: 1.45; }
.study-panel { display: grid; gap: 14px; }
.study-panel .prompt { margin-block: -2px 1px; }
.study-panel h2 { font-size: 1.28rem; line-height: 1.25; }
.study-panel h3 { margin-block-start: 12px; }
.study-panel select { max-width: 100%; }
.study-panel .form-field { max-width: 540px; }
.study-stage {
  display: grid;
  gap: 9px;
  border: 1px solid #e4daef;
  background: #faf6ff;
  border-radius: 14px;
  padding: 13px 15px;
}
.stage-list, .skill-list { display: grid; gap: 9px; }
.skill-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
.stage-head, .study-audio-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 14px;
}
.stage-head { justify-content: flex-start; }
.stage-head > div { flex: 1; min-width: 120px; }
.level-mark, .time-mark {
  border-radius: 9px;
  padding: 8px 10px;
  flex-shrink: 0;
  background: #ecd9ff;
  color: #342052;
  font-size: .92rem;
  font-weight: 800;
}
.time-mark { background: #f9e6ae; }
.stage-topics { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.stage-topics .ghost { border: 1px solid #dcceeb; padding-inline: 9px; background: #fff; }
.study-panel .study-accent, .study-progress-note, .study-score { color: var(--violet); font-weight: 800; }
.study-score { font-size: 1.55rem; }
.study-check { display: flex; align-items: center; gap: 4px; font-weight: 700; min-height: 44px; }
.study-check input { width: 18px; height: 18px; accent-color: var(--violet); }
.study-form { display: grid; gap: 7px; align-items: start; max-width: 620px; }
.study-form label { font-weight: 700; }
.study-form input, .study-form textarea {
  min-height: 46px;
  width: 100%;
  border: 1px solid #c5b8d9;
  border-radius: 9px;
  padding: 9px 11px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}
.study-form textarea { resize: vertical; }
.study-form .button { justify-self: start; }
.study-form input:focus-visible, .study-form textarea:focus-visible { outline: 3px solid var(--outline); outline-offset: 2px; }
.study-panel .game-options { margin: 0; }
.study-panel .game-result { margin: 0; }
.study-panel .game-counter { margin: 0; }
.study-panel .learning-note { margin: 0; }
.study-inline-feedback { font-weight: 700; color: var(--violet); }
.study-inline-feedback:empty { display: none; }
.study-disclosure { color: var(--muted); font-size: .92rem; }
.study-split { display: grid; align-items: center; grid-template-columns: minmax(0,.9fr) minmax(0,1.15fr); gap: 18px; }
.study-photo { aspect-ratio: 1.35; border-radius: 13px; object-fit: cover; }
.study-transcript { border: 1px solid #e0d4ed; border-radius: 10px; background: #fcf7ff; padding: 9px 11px; margin-block: 8px; }
.study-transcript summary { min-height: 36px; display: list-item; cursor: pointer; font-weight: 700; }
.study-transcript p { margin: 5px 0; }
.study-transcript a { color: var(--violet); }
.recording-result { width: 100%; margin-block-start: 7px; }
.talk-choices { display: grid; gap: 7px; }
.talk-choices > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px; }
.talk-choices .choice { padding: 9px 11px; border: 1px solid #d4c6e7; border-radius: 10px; text-align: left; min-height: 49px; }
.talk-choices > div .sound-button { justify-self: end; }
.budget-total {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  border-radius: 10px;
  background: #ffebae;
  padding: 13px;
}
.budget-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.budget-item { display: grid; gap: 7px; padding: 10px; border: 1px solid #e0d4ed; border-radius: 12px; }
.budget-item > span { font-size: 1.5rem; }
.budget-item .sound-button, .budget-item .button { min-height: 42px; padding-inline: 9px; }
.budget-item .button[aria-pressed="true"] { background: #e2f2de; }
.street-sign {
  margin: 0;
  border: 3px solid #cebbfc;
  border-radius: 15px;
  padding: clamp(16px,4vw,27px);
  background: #30224d;
  color: #fff;
  display: grid;
  gap: 8px;
}
.street-sign strong { font-size: clamp(1.4rem,4vw,2.3rem); }
.street-sign figcaption { font-size: .87rem; font-weight: 800; }
.street-sign.sign-menu { border-color: #edcf82; background: #fff0c8; color: #3b2620; }
.street-sign.sign-ticket { border-style: dashed; background: #dceeff; color: #20334f; }
.street-sign.sign-shop { background: #e6f4da; border-color: #bedac0; color: #203e37; }
#message-feedback:empty { display: none; }
.study-home { margin-block: 25px; }
.study-home h2 { font-size: clamp(1.65rem,3vw,2.35rem); }
.study-home .study-photo { max-height: 172px; width: 100%; }
.study-home .summary-row { margin-block-start: 10px; }
.study-home .practice-strip { margin: 0; grid-template-columns: minmax(0,1fr) minmax(115px,.5fr); }
.study-audio-row .phrase { font-size: 1.15rem; }
.dictionary-audio .deck-save { padding-inline: 10px; }
a.button { text-decoration: none; }

@media (max-width: 560px) {
  .study-split, .study-home .practice-strip { grid-template-columns: 1fr; }
  .study-split img, .study-split .number-visual { max-height: 200px; }
  .study-home .study-photo { display: none; }
}
@media (max-width: 420px) {
  .main-nav button { font-size: .87rem; padding-inline: 5px; }
  .main-nav .nav-count { min-width: 17px; padding-inline: 4px; }
  .study-card { min-height: 90px; padding: 10px; }
  .study-card strong { font-size: .99rem; }
  .study-card span { font-size: .88rem; }
}


.study-card:first-child {
  grid-column: 1 / -1;
  min-height: 78px;
}
.study-card:not(:first-child) { background: color-mix(in srgb, var(--tone) 58%, white); }

@media (max-width: 520px) {
  .study-hero .button { min-height: 46px; padding-inline: 12px; }
  .study-hero .summary-row { gap: 6px; }
}
