.week-page { width: 100%; max-width: 1040px; margin-inline: auto; }
.week-page-film { max-width: 850px; }
.week-page-activity { max-width: 940px; }
.week-page-dictation { max-width: 940px; }
.week-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .4rem 1rem; color: #b7c9ee; font-weight: 750; }
.week-top a { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; color: #aeeeff; text-decoration: none; }
.week-top a:hover { text-decoration: underline; }
.week-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1rem; margin-block: .55rem 1.15rem; }
.week-title h1 { color: #f7faff; font-size: clamp(1.7rem, 4.4vw, 3rem); line-height: 1.12; }
.week-page-film .week-title { margin-block: .45rem .95rem; }
.week-page-film .week-title h1 { font-size: clamp(1.45rem, 3.8vw, 2.25rem); }
.week-day-title { justify-content: flex-start; }
.week-overline { margin-bottom: .24rem; color: #a2ecff; font-size: .9rem; font-weight: 850; }

.week-cinema { min-width: 0; }
.week-character-note {
  display: flex;
  align-items: baseline;
  gap: .65rem;
  margin: 0 0 .8rem;
  padding: .55rem .75rem;
  border-inline-start: 3px solid #83e5f5;
  border-radius: 0 8px 8px 0;
  background: #172b4d;
  color: #e3efff;
  line-height: 1.45;
}
.week-character-note .icon { flex: none; width: 1.05rem; height: 1.05rem; align-self: flex-start; margin-top: .13em; color: #a2ecff; }
.week-character-note strong { color: #fff; }
.movie-screen { display: grid; position: relative; min-width: 0; aspect-ratio: 16/9; border: 1px solid #6179ac; border-radius: 12px; box-shadow: 0 8px 24px #02071375; background: #040916; overflow: hidden; }
.movie-screen video { display: block; width: 100%; height: 100%; min-width: 0; object-fit: contain; }
.movie-launch { position: absolute; left: 50%; top: 54%; transform: translate(-50%, -50%); z-index: 1; display: inline-flex; align-items: center; gap: .52rem; min-height: 45px; width: max-content; max-width: calc(100% - 1.1rem); padding: .55rem .85rem; border: 1px solid #91eaff; border-radius: 7px; color: #ebfcff; background: #0b1934ed; box-shadow: 0 4px 18px #020614ad; font-weight: 850; }
.movie-launch .icon { color: #9defff; }
.movie-launch:hover { background: #213956; }
.movie-status { color: #edfba2; margin-top: .65rem; font-weight: 750; }
.movie-status:empty { display: none; }
.week-film-next { margin-block: 1rem 1.3rem; }
.week-film-next .btn { min-height: 53px; padding-inline: 1.3rem; }
.week-film-credit { margin-top: .65rem; color: #b8c8e4; font-size: .875rem; }

.week-count { display: inline-flex; align-items: center; gap: .35rem; color: #eaf9a7; font-size: .95rem; font-weight: 800; line-height: 1.4; }
.week-count .icon { width: 1rem; height: 1rem; }
.week-picker-title { margin-block: .8rem 1.35rem; }
.week-sessions { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.week-sessions li { grid-column: span 2; min-width: 0; }
.week-sessions li:nth-child(4) { grid-column: 2 / span 2; }
.week-session { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 1rem; min-height: 184px; height: 100%; min-width: 0; padding: 1rem; border: 1px solid var(--tile-edge); border-radius: 12px; background: radial-gradient(ellipse at top right, var(--tile-fill) 0%, #12234a 67%); color: #eef5ff; text-decoration: none; box-shadow: 0 4px 0 #081025; }
.week-session:hover, .week-session:focus-visible { border-color: var(--tile-ink); background: linear-gradient(147deg, var(--tile-fill), #17294f 74%); }
.week-session:active { transform: translateY(2px); box-shadow: 0 2px 0 #081025; }
.week-accent-0 { --tile-ink: #d8fa76; --tile-edge: #7d9d57; --tile-fill: #334a39; }
.week-accent-1 { --tile-ink: #f9bde0; --tile-edge: #ad6c9c; --tile-fill: #513553; }
.week-accent-2 { --tile-ink: #96eeff; --tile-edge: #5b96bb; --tile-fill: #23506a; }
.week-accent-3 { --tile-ink: #e2ccff; --tile-edge: #9277c5; --tile-fill: #44376a; }
.week-accent-4 { --tile-ink: #ffdd98; --tile-edge: #b19561; --tile-fill: #514634; }
.week-accent-5 { --tile-ink: #f2d2ff; --tile-edge: #9d7bc6; --tile-fill: #433168; }
.week-accent-6 { --tile-ink: #ffd996; --tile-edge: #b78b69; --tile-fill: #49384c; }
.week-session-art { flex: none; display: grid; place-items: center; width: 3.55rem; height: 3.55rem; border: 1px solid var(--tile-edge); border-radius: 10px; background: var(--tile-fill); color: var(--tile-ink); }
.week-session-art .icon { width: 2rem; height: 2rem; }
.week-session-info { display: grid; gap: .15rem; }
.week-session-n { color: var(--tile-ink); font-size: .87rem; font-weight: 800; }
.week-session strong { font-size: clamp(1.08rem,2.4vw,1.45rem); font-weight: 900; line-height: 1.15; }
.week-session small { color: #d5e1f5; font-size: .92rem; line-height: 1.28; }
.week-session-check { position: absolute; top: 1rem; right: 1rem; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; color: #13201d; background: #d8f65b; }
.week-extra-entries { display: grid; gap: .65rem; margin-top: 1.3rem; }
.week-extra-entry {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .7rem 1rem;
  padding: .65rem .9rem;
  border: 1px solid var(--tile-edge);
  border-radius: 12px;
  background: linear-gradient(115deg,var(--tile-fill),#14274b);
  color: #f6f5ff;
  text-decoration: none;
}
.week-extra-entry .week-session-art { width: 2.6rem; height: 2.6rem; }
.week-extra-entry .week-session-art .icon { width: 1.4rem; height: 1.4rem; }
.week-extra-entry strong, .week-extra-entry small { display: block; }
.week-extra-entry small { color: #d5e1f5; }
.week-extra-entry .week-count { margin-inline-start: auto; }
.week-extra-entry:hover, .week-extra-entry:focus-visible { border-color: var(--tile-ink); }

.week-activity { min-width: 0; }
.week-reading-link { display: grid; place-items: center; min-height: 165px; padding: 1rem; border: 1px solid #607ba2; border-radius: 12px; background: linear-gradient(90deg,#0c1c3c9c,#0c1c3c72), url('assets/flight.jpg') center 47% / cover; }
.week-reading-link .btn { min-height: 52px; padding-inline: 1.2rem; }
.week-game .mg-heading h2 { display: none; }
.week-game { min-width: 0; }
.week-finish { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem 1rem; margin-top: 1.1rem; }
.week-complete { margin-top: .65rem; color: #eafa9a; }
.week-complete .icon { vertical-align: -.14em; }
.week-extras { display: grid; gap: .5rem; margin-top: 1.1rem; }
.week-disclosure { border-top: 1px solid #466198; color: #cfdcf5; }
.week-disclosure summary { padding-block: .55rem; color: #afefff; font-weight: 800; cursor: pointer; }
.week-disclosure summary:hover { text-decoration: underline; }
.week-disclosure p { margin: .35rem 0 .6rem; }
.week-disclosure p strong { color: #f3f7ff; }
.week-film-recap { padding-left: .65rem; border-left: 2px solid #6dd5ec; }
.week-review-actions { margin-top: .85rem; }
.week-sequence { border: 1px solid #526ca8; border-radius: 9px; padding: clamp(.8rem,2.4vw,1.25rem); background: #101e3e; color: #dce7fa; }
.week-sequence h2 { margin-bottom: .35rem; color: #eff5ff; font-size: 1.25rem; }
.week-disclosure .week-sequence { margin-bottom: .65rem; }
.week-picks { display: grid; gap: .5rem; margin: .7rem 0; }
.week-pick { display: flex; align-items: center; gap: .42rem; min-height: 44px; padding: .6rem .7rem; border: 1px solid #5774ad; border-radius: 5px; background: #24385d; color: #ecf5ff; text-align: left; }
.week-pick:hover:enabled { border-color: #88e9ff; }
.week-pick[data-order]::before { content: attr(data-order); padding: .1rem .4rem; border-radius: 4px; background: #d8f65b; color: #172629; font-weight: 850; }
.week-pick:disabled { opacity: 1; cursor: default; }
.week-reset { margin-top: .5rem; }
.week-retell { margin-bottom: .75rem; }
.week-retell blockquote { margin: .5rem 0; padding: .45rem .75rem; border-left: 3px solid #62e7ff; color: #fff; font-size: 1.1rem; font-weight: 800; }
.week-retell ol { color: #e2edf9; padding-inline-start: 1.4rem; margin: .65rem 0 0; }
.week-story .story { margin-top: .3rem; padding: .65rem .85rem; border-radius: 6px; background: #fff9ed; color: #142334; }
.week-story .story p { color: #182739; }
.week-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; }
.week-foot > div { margin-left: auto; }

.mission-list .mission.week-contract { min-height: 66px; }
.week-contract .mission-emoji { color: #89e7ff; }
.week-contract.is-complete .mission-emoji { color: #dcf875; }
.week-progress-card { margin-top: .9rem; }
.week-progress-card h2 { margin-bottom: .45rem; }
.week-progress-card p { color: #c9d8f1; }

@media (max-width: 700px) {
  .week-sessions { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; }
  .week-sessions li, .week-sessions li:nth-child(4) { grid-column: auto; }
  .week-session { min-height: 156px; padding: .75rem; gap: .75rem; }
  .week-session-check { top: .75rem; right: .75rem; }
}

@media (max-width: 410px) {
  .week-sessions { grid-template-columns: 1fr; }
  .week-session { flex-direction: row; align-items: center; justify-content: flex-start; gap: .7rem; min-height: 97px; }
  .week-session.is-done { padding-right: 2.65rem; }
  .week-session-check { top: 50%; transform: translateY(-50%); }
  .week-session-art { width: 3.05rem; height: 3.05rem; }
  .week-session-art .icon { width: 1.75rem; height: 1.75rem; }
  .week-film-next .btn { width: 100%; }
  .week-day-title { flex-wrap: nowrap; gap: .65rem; }
  .week-foot .btn { min-height: 42px; padding-inline: .6rem; }
}
.difficulty-picker {
  min-width: 0;
  margin: .9rem 0;
  padding: 0;
  border: 0;
}
.difficulty-picker legend { padding: 0; margin-bottom: .35rem; color: #edf7ff; font-weight: 850; }
.difficulty-choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .45rem; }
.difficulty-choice {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: .42rem;
  align-items: start;
  padding: .5rem .55rem;
  min-width: 0;
  border: 1px solid #5c76a7;
  border-radius: .55rem;
  background: #192d51;
  color: #f1f7ff;
  cursor: pointer;
}
.difficulty-choice:hover { border-color: #9eefff; }
.difficulty-choice:has(input:checked) { border-color: #ddf978; background: #2e4050; box-shadow: inset 0 -.13rem #ddf978; }
.difficulty-choice:has(input:focus-visible) { outline: 2px solid #78eafa; outline-offset: .16rem; }
.difficulty-choice input { width: 1rem; height: 1rem; margin: .23rem 0 0; accent-color: #d9fa6e; }
.difficulty-choice span { min-width: 0; line-height: 1.23; }
.difficulty-choice strong, .difficulty-choice small { display: block; }
.difficulty-choice small { margin-top: .13rem; color: #d4e2f8; font-size: .8rem; }
.mode-switch { width: min(100%, 31rem); }
.mode-switch .difficulty-picker { margin: 0 0 .9rem; }
.mode-switch .difficulty-picker legend { font-size: .83rem; }
.mode-switch .difficulty-choice {
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  min-height: 2.65rem;
  padding: .38rem .52rem;
}
.mode-switch .difficulty-choice input { margin-top: 0; }
.mode-switch .difficulty-choice small { display: none; }

.week-practice {
  display: grid;
  gap: .5rem;
  margin: .65rem 0;
  padding: .85rem;
  border: 1px solid #5d78a9;
  border-radius: .75rem;
  background: #182946;
}
.week-practice h2 { font-size: 1.22rem; }
.week-practice > p { color: #d9e9ff; }
.week-practice .story { margin: 0; padding: .7rem .9rem; border: 0; border-radius: .42rem; background: #fcfafa; color: #17213c; }
.week-practice .story p:last-child { margin-bottom: 0; }
.week-bonus {
  display: flex;
  align-items: center;
  gap: .48rem;
  margin: .65rem 0;
  padding: .58rem .7rem;
  border: 1px solid #907449;
  border-radius: .55rem;
  background: #302a47;
  color: #ffe29f;
  font-weight: 750;
}

@media (max-width: 470px) {
  .difficulty-choice { grid-template-columns: 1fr; gap: .22rem; padding: .36rem .38rem .49rem; }
  .difficulty-choice input { margin-top: 0; }
  .difficulty-choice small { font-size: .75rem; }
  .mode-switch .difficulty-choice { grid-template-columns: auto minmax(0,1fr); gap: .24rem; padding-inline: .32rem; font-size: .83rem; }
}
