/* Native typography is rounded everywhere except the pack metadata. */
body { font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif; }
@media (hover:none) and (pointer:coarse) {
  .card-footer button,
  .card-art-fallback button,
  #practice-audio,
  #trophy-detail-audio { -webkit-tap-highlight-color:transparent; }
}
.portrait-lock { display:none; }
@media (orientation:landscape) and (max-height:600px) and (pointer:coarse) {
  #app { visibility:hidden; pointer-events:none; }
  .portrait-lock { position:fixed; z-index:1000; inset:0; display:grid; place-content:center; gap:13px; padding:30px; color:#46515a; background:#fffaf1; text-align:center; }
  .portrait-lock .portrait-lock-globe { display:block; width:132px; height:132px; margin:0 auto 2px; }
  .portrait-lock h1,.portrait-lock p { margin:0; }
  .portrait-lock h1 { color:#46515a; font-family:"Avenir Next",Avenir,sans-serif; font-size:31px; font-weight:600; letter-spacing:-.7px; }
  .portrait-lock p { color:#7c827f; font-family:"Avenir Next",Avenir,sans-serif; font-size:19px; font-weight:500; letter-spacing:-.2px; }
}
.pack-english, .pack-subtitle { font-family: "Avenir Next", Avenir, sans-serif; }
.lottie-orbit { position: absolute; width: 112px; height: 112px; transform: translateX(-17px); }
.lottie-trophy { display: block; width: 52px; height: 52px; transform: scale(1.16) translateY(-6px); }
.practice-label { margin: 18px 0 10px; color: var(--fore); font-family: "Avenir Next", Avenir, sans-serif; font-size: 14px; font-weight: 700; text-align: center; }
.practice-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.practice-modes button { min-height: 48px; border: 2px solid color-mix(in srgb, var(--fore) 22%, transparent); border-radius: 12px; color: var(--pack); background: rgba(255,255,255,.92); box-shadow: 0 3px 0 color-mix(in srgb, var(--fore) 28%, transparent); font-family: "Avenir Next", Avenir, sans-serif; font-size: 16px; font-weight: 600; }
.pack-background-art { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }.pack-background-art img { position: absolute; width: min(108px, 33%); height: 108px; object-fit: contain; opacity: 0; transform: translate(-50%, -50%) rotate(var(--art-angle)); transition: opacity .24s ease; left: var(--art-x); top: var(--art-y); }.pack-card.is-expanded .pack-background-art img { opacity: .34; }.pack-hero { width: 78px; height: 78px; right: 16px; bottom: 13px; }
.display-controls button[data-toggle="random"] { color: #3885c2; }.display-controls button[data-toggle="english"] { color: #4d78c7; }.display-controls button[data-toggle="artwork"] { color: #3899c7; }.display-controls button[data-toggle="characters"] { color: #4563bd; }.display-controls button[data-toggle="pinyin"] { color: #59add1; }.display-controls button[data-toggle="random"].is-on { background: #3885c2; }.display-controls button[data-toggle="english"].is-on { background: #4d78c7; }.display-controls button[data-toggle="artwork"].is-on { background: #3899c7; }.display-controls button[data-toggle="characters"].is-on { background: #4563bd; }.display-controls button[data-toggle="pinyin"].is-on { background: #59add1; }
.display-controls button[data-toggle].is-on { color: white; }
.ff-symbol { display: block; width: 1em; height: 1em; }.circle-button .ff-symbol { width: 22px; height: 22px; }.result-button .ff-symbol { width: 34px; height: 34px; margin: auto; }.collect-button .ff-symbol { width: 31px; height: 31px; margin: auto; }.card-footer .ff-symbol { width: 29px; height: 29px; margin: auto; }.display-controls .ff-symbol { width: 19px; height: 19px; margin: auto; }.card-art-fallback #hero-audio-button .ff-symbol { width: 36%; height: 36%; margin: auto; }
.practice-control [data-native-symbol="speaker.wave.2.fill"] { display:grid; place-items:center; width:100%; height:100%; }
/* Speaker waves make the glyph's visual weight right-heavy. Apply one shared
   optical correction for the circular audio control on every viewport. */
.practice-control [data-native-symbol="speaker.wave.2.fill"] .ff-symbol { margin:0; transform:translate(-1px,-1px); }
.practice-control [data-native-symbol="photo.fill"] { display:grid; place-items:center; width:100%; height:100%; }.practice-control [data-native-symbol="photo.fill"] .ff-symbol { margin:0; transform:translateX(1px); }
.card-stack { height: clamp(520px, 67dvh, 620px); min-height: 520px; }.flashcard { --card-inset: 20px; height: 100%; min-height: 0; grid-template-areas: "art" "hanzi" "pinyin" "footer"; grid-template-rows: minmax(0, 1fr) 76px 58px 72px; }.flashcard > .artwork { grid-area: art; min-height: 0; overflow: hidden; }.flashcard > .artwork > img { width: min(100%, 340px); height: calc(100% - 14px); max-height: calc(100% - 14px); object-fit: contain; }.flashcard > .card-hanzi { grid-area: hanzi; align-self: center; }.flashcard > .card-pinyin { grid-area: pinyin; align-self: center; }.flashcard > .card-footer { grid-area: footer; align-self: end; min-height: 54px; }.next-flashcard { position: absolute; inset: 0; z-index: 0; transform: scale(.96) translateY(10px); }.card-stack > #study-card { position: relative; z-index: 1; }.flashcard.is-trophy { background: color-mix(in srgb, var(--trophy) 8%, white); box-shadow: 0 0 0 2px color-mix(in srgb, var(--trophy) 72%, transparent), 0 9px 20px rgba(0,0,0,.10); }
.flashcard:not(.shows-artwork):not(.shows-characters) .fallback-disc { display: none; }
.flashcard:not(.shows-pinyin) .card-pinyin, .flashcard:not(.shows-characters) .card-hanzi { visibility: hidden; }
.card-art-fallback { display: none; position: relative; width: 100%; height: 100%; place-items: center; }.card-art-fallback .fallback-disc { position: absolute; width: 90%; aspect-ratio: 1; border-radius: 50%; background: rgba(171,59,41,.18); }.card-art-fallback p { position: relative; z-index: 1; display: none; margin: 0; font-family: ui-rounded, "SF Pro Rounded", sans-serif; text-align: center; }.card-art-fallback #hero-hanzi { font-size: clamp(68px, 15vw, 132px); font-weight: 700; }.card-art-fallback #hero-pinyin { max-width: 85%; color: var(--pinyin); font-size: clamp(30px, 7vw, 62px); font-weight: 700; }.card-art-fallback #hero-audio-button { position: relative; z-index: 1; display: none; width: 100%; height: 100%; border: 0; background: transparent; color: var(--audio); font-size: clamp(64px, 15vw, 140px); font-weight: 800; }.flashcard:not(.shows-artwork) .artwork > img { display: none; }.flashcard:not(.shows-artwork) .card-art-fallback { display: grid; }.flashcard:not(.shows-artwork).shows-characters .card-art-fallback #hero-hanzi { display: block; }.flashcard:not(.shows-artwork):not(.shows-characters).shows-pinyin .card-art-fallback #hero-pinyin { display: block; }.flashcard.is-audio-only .card-art-fallback #hero-audio-button { display: block; }.flashcard.is-audio-only .card-hanzi,.flashcard.is-audio-only .card-pinyin { visibility: hidden; }.flashcard.is-audio-only .card-footer { grid-template-columns: 1fr; padding: 0 20px 18px; }.flashcard.is-audio-only .card-footer > button { display: none; }.flashcard:not(.shows-artwork).shows-characters .card-hanzi { visibility: hidden; }.flashcard:not(.shows-artwork):not(.shows-characters).shows-pinyin .card-pinyin { visibility: hidden; }.flashcard.shows-artwork:not(.shows-characters) .card-hanzi { visibility: hidden; }.flashcard.shows-artwork:not(.shows-characters).shows-pinyin .card-pinyin { font-size: 58px; }.flashcard.shows-artwork.shows-characters:not(.shows-pinyin) .card-hanzi { font-size: 102px; }.flashcard:not(.shows-english) .card-english { opacity: 0; }
@media (min-width: 760px) { .review-view { width: min(calc(100% - 80px), 1040px); }.card-stack { height: clamp(390px, 52dvh, 460px); min-height: 390px; }.flashcard { --card-inset: 30px; grid-template-areas: "art hanzi" "art pinyin" "art footer"; grid-template-columns: minmax(300px, .95fr) minmax(290px, 1.05fr); grid-template-rows: minmax(0, 1fr) 70px 82px; padding: 28px 34px 18px; }.flashcard > .artwork { padding-right: 18px; }.flashcard > .artwork > img { width: 100%; height: calc(100% - 8px); max-height: calc(100% - 8px); }.flashcard > .card-hanzi { align-self: end; padding: 0 var(--card-inset); font-size: clamp(68px, 7vw, 102px); text-align: left; }.flashcard > .card-pinyin { align-self: start; padding: 0 var(--card-inset); font-size: clamp(34px, 4vw, 58px); text-align: left; }.flashcard > .card-footer { padding: 0 var(--card-inset) 0; }.flashcard.shows-artwork.shows-characters:not(.shows-pinyin) .card-hanzi { font-size: clamp(80px, 8vw, 112px); }.flashcard.shows-artwork:not(.shows-characters).shows-pinyin .card-pinyin { font-size: clamp(42px, 5vw, 64px); }.result-controls { max-width: 720px; margin-right: auto; margin-left: auto; }.display-controls { margin-bottom: 20px; } }
.practice-view { width: min(100% - 40px, 660px); min-height: 100dvh; margin: 0 auto; padding: 8px 0 20px; position: relative; }
.practice-header { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; height: 58px; }
.practice-streak { justify-self: center; display: flex; align-items: baseline; gap: 8px; padding: 7px 16px 8px; border-radius: 999px; background: rgba(255,255,255,.65); color: var(--audio); font-family: ui-rounded, "SF Pro Rounded", sans-serif; }
.practice-streak span { font-size: 12px; font-weight: 800; letter-spacing: .08em; }.practice-streak strong { color: var(--pinyin); font-size: 21px; }
.practice-mode-title { margin: 14px 0 3px; color: var(--pinyin); font: 700 26px ui-rounded, "SF Pro Rounded", sans-serif; text-align: center; }
.practice-prompt { display: grid; place-items: center; height: 218px; margin: 4px 0 14px; }.practice-prompt img { width: min(100%, 260px); height: 210px; object-fit: contain; filter: drop-shadow(0 8px 7px rgba(0,0,0,.11)); }.practice-prompt p { color: var(--audio); font: 600 21px ui-rounded, "SF Pro Rounded", sans-serif; }
.practice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }.practice-choice { min-height: 122px; padding: 10px; border: 2px solid rgba(0,0,0,.08); border-radius: 19px; background: white; box-shadow: 0 4px 0 rgba(0,0,0,.09); }.practice-choice img { display: block; width: 62px; height: 62px; margin: -3px auto 0; object-fit: contain; }.practice-hanzi,.practice-pinyin { margin: 0; text-align: center; }.practice-hanzi { font: 700 33px ui-rounded, "SF Pro Rounded", sans-serif; line-height: 1.08; }.practice-pinyin { margin-top: 3px; color: var(--pinyin); font: 600 16px ui-rounded, "SF Pro Rounded", sans-serif; }.practice-choice.is-incorrect { border-color: var(--not-yet); background: #fff6f4; box-shadow: 0 4px 0 var(--not-yet-shadow); }.practice-choice.is-correct { border-color: var(--knew-it); background: #f4fbf1; box-shadow: 0 4px 0 var(--knew-it-shadow); }.practice-audio { display: grid; place-items: center; width: 62px; height: 54px; margin: 15px 0 0 auto; border: 0; background: transparent; color: var(--audio); font-size: 24px; font-weight: 800; }
@media (max-width:520px) { .practice-view { width: calc(100% - 28px); }.practice-choice { min-height: 112px; } }
.trophy-room-view { min-height: 100dvh; background: var(--canvas); padding-bottom: 30px; }
.trophy-case-view { min-height: 100dvh; background: var(--canvas); }.trophy-case-header { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 8px; padding: 8px 20px 12px; }.trophy-case-header > div { text-align: center; }.trophy-case-header h1,.trophy-case-header p { margin: 0; }.trophy-case-header h1 { font: 800 20px ui-rounded, "SF Pro Rounded", sans-serif; }.trophy-case-header p { display: flex; justify-content: center; align-items: center; gap: 4px; color: var(--trophy); font: 700 12px ui-rounded, "SF Pro Rounded", sans-serif; }.trophy-case-header p img { width: 16px; height: 16px; object-fit: contain; }.trophy-case-header .case-reset { color: #73221e; font-size: 23px; }.trophy-case-divider { height: 1px; background: rgba(255,255,255,.9); }.trophy-case-content { padding: 12px 18px 28px; }.trophy-case-content > header { display: flex; align-items: baseline; gap: 6px; min-width: 0; color: rgba(0,0,0,.88); font-family: ui-rounded, "SF Pro Rounded", sans-serif; white-space: nowrap; }.trophy-case-content > header span { font-size: 21px; font-weight: 800; }.trophy-case-content > header strong { overflow: hidden; font-size: 18px; font-weight: 800; text-overflow: ellipsis; }.trophy-case-content > header small { color: rgba(0,0,0,.46); font-size: 13px; font-weight: 700; }.trophy-case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px 12px; margin-top: 9px; }.trophy-case-tile { display: grid; place-items: center; aspect-ratio: 1; padding: 8px; border: 0; border-radius: 22px; background: white; box-shadow: 0 5px 0 rgba(0,0,0,.12); }.trophy-case-tile img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) contrast(.76) brightness(.54); }.trophy-case-tile.is-collected img { filter: none; }.trophy-case-tile:focus-visible { outline: 3px solid var(--pinyin); outline-offset: 3px; }
.trophy-room-header { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 8px; padding: 8px 20px 10px; }.trophy-room-header .circle-button { color: var(--pinyin); font-size: 34px; }.trophy-room-header > div { text-align: center; }.trophy-room-header h1,.trophy-room-header p { margin: 0; }.trophy-room-header h1 { color: var(--pinyin); font: 800 23px ui-rounded, "SF Pro Rounded", sans-serif; }.trophy-room-header p { color: rgba(0,0,0,.48); font: 700 12px ui-rounded, "SF Pro Rounded", sans-serif; }.admin-trophy-export { display:inline-flex; align-items:center; justify-content:center; min-height:27px; margin-top:5px; padding:3px 10px; border:1px solid color-mix(in srgb,var(--pinyin) 24%,transparent); border-radius:999px; color:var(--pinyin); background:color-mix(in srgb,var(--pinyin) 8%,white); font:700 12px "Avenir Next",Avenir,sans-serif; }.admin-trophy-export:active { transform:translateY(1px); }.room-help-button { display: grid; place-items: center; width: 28px; height: 28px; justify-self: end; border: 0; border-radius: 50%; color: var(--pinyin); background: color-mix(in srgb, var(--pinyin) 12%, transparent); font: 800 13px ui-rounded, "SF Pro Rounded", sans-serif; }
.trophy-room-list { display: grid; gap: 20px; padding: 8px 16px 30px; }.trophy-pack-section { display: grid; gap: 7px; }.trophy-pack-section > header { display: flex; align-items: baseline; gap: 6px; min-width: 0; color: rgba(0,0,0,.88); font-family: ui-rounded, "SF Pro Rounded", sans-serif; white-space: nowrap; }.trophy-pack-section > header span { font-size: 19px; font-weight: 800; }.trophy-pack-section > header strong { overflow: hidden; font-size: 17px; font-weight: 800; text-overflow: ellipsis; }.trophy-pack-section > header small { color: rgba(0,0,0,.46); font-size: 13px; font-weight: 700; }.trophy-room-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }.trophy-artwork-tile { display: grid; place-items: center; aspect-ratio: 1; padding: 1px; border: 0; background: transparent; opacity: .94; }.trophy-artwork-tile img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) contrast(.76) brightness(.54); }.trophy-artwork-tile.is-collected { opacity: 1; }.trophy-artwork-tile.is-collected img { filter: none; }.trophy-artwork-tile:focus-visible { outline: 3px solid var(--pinyin); outline-offset: 2px; }
.trophy-detail-dialog { width: min(292px, calc(100% - 48px)); height: 402px; padding: 0; overflow: visible; border: 2px solid color-mix(in srgb, var(--pinyin) 16%, transparent); border-radius: 30px; background: #fff; box-shadow: 0 9px 20px rgba(0,0,0,.1); }.trophy-detail-dialog::backdrop { background: rgba(0,0,0,.30); }.trophy-detail-dialog img { display: block; width: 184px; height: 184px; margin: 24px auto 0; object-fit: contain; }.trophy-detail-dialog h2 { min-height: 66px; margin: 0; padding: 0 22px; font: 700 58px/1 ui-rounded, "SF Pro Rounded", sans-serif; text-align: center; }.trophy-detail-dialog > p { min-height: 42px; margin: 0; padding: 0 22px; color: var(--pinyin); font: 700 31px/1 ui-rounded, "SF Pro Rounded", sans-serif; text-align: center; }.trophy-detail-dialog footer { display: grid; grid-template-columns: 1fr 62px; align-items: center; padding: 0 16px 12px 24px; color: rgba(0,0,0,.45); font: 600 17px ui-rounded, "SF Pro Rounded", sans-serif; }.trophy-detail-dialog footer button { height: 54px; border: 0; background: transparent; color: var(--audio); font-size: 24px; font-weight: 800; }.trophy-detail-dismiss { position: absolute; top: -16px; right: -16px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: white; box-shadow: 0 2px 6px rgba(0,0,0,.16); font-size: 25px; }
@media (max-width:520px) { .trophy-room-header { padding-right: 14px; padding-left: 14px; }.trophy-room-list { padding-right: 14px; padding-left: 14px; }.trophy-pack-section > header span { font-size: 17px; }.trophy-pack-section > header strong { font-size: 15px; }.trophy-pack-section > header small { font-size: 12px; } }
.trophy-help-dialog { width: min(390px, calc(100% - 60px)); padding: 30px; border: 0; border-radius: 30px; background: white; box-shadow: 0 10px 22px rgba(0,0,0,.16); text-align: center; }.trophy-help-dialog::backdrop { background: rgba(0,0,0,.30); }.trophy-help-icon { display: grid; place-items: center; width: 82px; height: 82px; margin: 0 auto 21px; border-radius: 21px; background: var(--trophy); box-shadow: 0 5px 0 var(--trophy-shadow); }.trophy-help-icon img { width: 42px; height: 42px; object-fit: contain; filter: brightness(0) invert(1); }.trophy-help-dialog h2 { margin: 0; color: var(--pinyin); font: 800 28px ui-rounded, "SF Pro Rounded", sans-serif; }.trophy-help-dialog p { margin: 21px 0 0; color: rgba(0,0,0,.7); font: 500 18px/1.35 ui-rounded, "SF Pro Rounded", sans-serif; }.trophy-help-dialog em { color: var(--pinyin); font-style: normal; }

/* World home: the desktop experience is a landscape learning desk, not a scaled-up phone. */
.home-sidebar { display: none; }
.settings-view { min-height: 100dvh; padding: 28px; background: var(--canvas); }.settings-view > header { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 16px; width: min(720px, 100%); margin: 0 auto 24px; }.settings-view h1,.settings-view p { margin: 0; }.settings-view h1 { color: var(--pinyin); font-size: 28px; }.settings-view p { color: var(--audio); font-size: 16px; }.settings-panel { width: min(720px, 100%); margin: auto; padding: 24px; border-radius: 24px; background: white; box-shadow: 0 6px 0 rgba(0,0,0,.08); }.settings-panel h2 { margin: 0 0 12px; font-size: 20px; }.settings-panel label { display: flex; justify-content: space-between; align-items: center; min-height: 54px; border-top: 1px solid #eee7dc; font-size: 17px; font-weight: 700; }.settings-toggle { position: relative; width: 48px; height: 28px; border: 0; border-radius: 999px; background: #bab5ad; }.settings-toggle::after { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; content: ""; border-radius: 50%; background: white; transition: transform .2s ease; }.settings-toggle.is-on { background: var(--drinks); }.settings-toggle.is-on::after { transform: translateX(20px); }

@media (min-width: 900px) {
  .pack-status { z-index: 5; }
  :root { --home-width: 1480px; }
  .app-shell { min-height: 100dvh; background: #e6402c; }
  .home-view { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: 100dvh; padding: 0; background: #fbf6eb; }
  .home-sidebar { position: sticky; top: 0; grid-row: 1 / -1; grid-column: 1; display: flex; flex-direction: column; min-height: 100dvh; padding: 35px 16px 26px; border-right: 1px solid #eaded1; background: #fffaf1; }
  .brand-lockup { display: flex; align-items: center; gap: 8px; padding: 0 10px; color: #b71d16; font-size: 20px; letter-spacing: -.8px; }.brand-mark { font-size: 33px; line-height: 1; }
  .sidebar-links { display: grid; gap: 8px; margin-top: 45px; }.sidebar-links button { display: flex; align-items: center; gap: 14px; min-height: 49px; padding: 0 13px; border: 0; border-radius: 11px; color: #46515a; background: transparent; font-size: 16px; font-weight: 800; text-align: left; }.sidebar-links button:hover,.sidebar-links button.is-active { color: #bc241b; background: #f9dfd7; }.sidebar-links button > span:not(.lottie-trophy) { width: 22px; color: inherit; font-size: 28px; text-align: center; }.sidebar-links .lottie-trophy { width: 25px; height: 25px; transform: none; }
  .sidebar-footer { margin-top: auto; padding: 0 14px; color: #68727a; font-size: 17px; line-height: 1.26; }.sidebar-footer strong { display: inline-block; }.footer-spark { margin-left: 12px; color: #ffad78; font-size: 24px; }.sidebar-footer p { margin: 18px 0 0; color: #9a968e; font-family: "Avenir Next",sans-serif; font-size: 10px; font-weight: 600; line-height: 1.45; }
  .world-header { grid-column: 2; position: relative; display: grid; grid-template-columns: 64px 148px 64px 1fr 47px; min-height: 102px; padding: 6px 28px; background: linear-gradient(115deg,#ca3024,#e3412b 62%,#d93727); }.world-header::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 1px; content: ""; background: rgba(255,255,255,.25); }.world-arrow { font-size: 46px; }.world-picker { width: 148px; height: 88px; }.world-picker strong { margin-left: 53px; font-size: 31px; }.lottie-orbit { width: 138px; height: 138px; transform: translateX(-21px); }.profile-button { display: grid; place-items: center; width: 46px; height: 46px; border: 2px solid rgba(255,255,255,.7); border-radius: 50%; color: #b9281f; background: #fff8f0; font-size: 19px; font-weight: 900; }
  .world-picker-popover { top: 82px; left: 308px; }
  .pack-list { grid-column: 2; grid-template-columns: repeat(3,minmax(0,1fr)); grid-auto-flow: row; align-content: start; gap: 18px 16px; width: auto; max-width: 1480px; margin: 18px 22px 28px; }.pack-card { min-height: 143px; padding: 14px 26px 20px; border-width: 1px; border-radius: 21px; box-shadow: 0 5px 0 var(--shadow); }.pack-copy { max-width: 66%; }.pack-english { margin: 4px 0 5px; font-size: 17px; font-weight: 800; }.pack-chinese { font-size: 39px; }.pack-subtitle { margin-top: 6px; font-size: 17px; }.pack-hero { right: 12px; bottom: 6px; width: 92px; height: 92px; }.pack-status { top: 10px; right: 13px; display: grid; grid-template-columns: 22px auto auto; justify-content: center; width: 110px; height: 41px; padding: 0 8px; font-size: 16px; text-align: center; }.pack-status img { width: 22px; height: 22px; }.pack-status small { font-size: 13px; }
  .pack-card.is-expanded { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(360px,1.15fr) minmax(440px,.9fr); min-height: 300px; padding: 0; border-radius: 22px; color: #202a25; background: linear-gradient(100deg,#fffdf5,#f1f8e9); box-shadow: 0 5px 0 color-mix(in srgb,var(--shadow) 55%,transparent); }.pack-card.is-expanded::after { background: linear-gradient(90deg,transparent 44%,rgba(255,255,255,.48)); }.pack-card.is-expanded .pack-copy { align-self: start; max-width: none; padding: 25px 0 0 35px; }.pack-card.is-expanded .pack-english { color: var(--fore); font-size: 23px; }.pack-card.is-expanded .pack-chinese { font-size: 53px; }.pack-card.is-expanded .pack-subtitle { color: #202a25; font-size: 23px; font-weight: 700; }.pack-card.is-expanded .pack-hero { z-index: 2; right: 39%; bottom: 10px; width: 205px; height: 205px; }.pack-card.is-expanded .pack-status { top: auto; right: auto; bottom: 23px; left: 35px; width: 128px; color: var(--fore); background: color-mix(in srgb,var(--pack) 13%,white); }.pack-card.is-expanded .pack-background-art img { width: 138px; height: 138px; opacity: .21; }.pack-detail-copy { position: relative; z-index: 2; align-self: end; max-width: 330px; padding: 0 20px 28px 35px; color: #5d655f; font: 500 16px/1.4 "Avenir Next",sans-serif; }.pack-detail-copy p { margin: 0; }.pack-action-panel { position: relative; z-index: 4; display: grid; align-content: center; gap: 0; margin: 20px 22px 20px 0; padding: 0 20px; border-left: 1px solid color-mix(in srgb,var(--shadow) 22%,transparent); }.pack-actions { display: contents; margin: 0; }.start-card { min-height: 70px; padding: 0 18px; border-radius: 18px; color: white; background: var(--pack); box-shadow: 0 5px 0 var(--shadow); font-size: 23px; text-align: left; }.start-card b { margin-left: auto; font-size: 40px; font-weight: 400; line-height: .5; }.play-mark { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 50%; color: var(--pack); background: white; font-size: 17px; }.restart-card { min-height: 34px; margin-top: 7px; border: 0; border-radius: 9px; color: var(--fore); background: transparent; font-size: 13px; font-weight: 800; text-decoration: underline; }.practice-label { margin: 11px 0 8px; color: #627661; font-size: 14px; text-align: center; }.practice-modes { gap: 13px; }.practice-modes button { display: grid; grid-template-columns: 38px 1fr; grid-template-rows: 24px 16px 21px; column-gap: 5px; min-height: 110px; padding: 12px 14px; border: 1px solid color-mix(in srgb,var(--shadow) 26%,transparent); border-radius: 16px; color: #1f3721; background: rgba(255,255,255,.78); box-shadow: 0 4px 0 color-mix(in srgb,var(--shadow) 22%,transparent); text-align: left; }.practice-modes button strong { grid-row: 1 / 3; align-self: center; color: var(--pack); font-size: 28px; }.practice-modes button span { align-self: end; font-size: 18px; font-weight: 900; }.practice-modes button small { font-family: "Avenir Next",sans-serif; font-size: 11px; font-weight: 600; white-space: nowrap; }.practice-modes button em { grid-column: 1 / -1; align-self: end; color: #6c726b; font-family: "Avenir Next",sans-serif; font-size: 11px; font-style: normal; }.practice-modes button em b { color: var(--pack); font-size: 17px; }
  .home-nav { display: none; }.settings-view { padding-left: 240px; }.settings-view > header,.settings-panel { width: min(740px,100%); }
}

/* Persistent desktop chrome, matched badges, and calm motion. */
@media (min-width: 900px) {
  .home-sidebar { position: sticky; top: 0; align-self: start; height: 100dvh; min-height: 100dvh; }
  .world-header { position: sticky; top: 0; z-index: 30; }
  .brand-lockup { padding: 0 12px; font-family: "Avenir Next",Avenir,sans-serif; font-size: 20px; font-weight: 600; letter-spacing: -.65px; }
  .sidebar-links button { font-family: "Avenir Next",Avenir,sans-serif; font-weight: 600; }
  .sidebar-links .lottie-trophy { width: 34px; height: 34px; }
  .sidebar-footer { display: grid; justify-items: center; padding: 0 12px; }
  .sidebar-footer strong,.footer-spark { display: none; }
  .sidebar-globe { width: 82px; height: 82px; object-fit: contain; }
  .sidebar-footer p { margin: 10px 0 0; font-family: "Avenir Next",Avenir,sans-serif; font-size: 10px; font-weight: 500; text-align: center; }
  .pack-status,.drawer-status { display: grid; grid-template-columns: 22px auto auto; align-items: center; justify-content: center; width: 111px; height: 42px; padding: 0 9px; border: 0; border-radius: 999px; color: white; background: var(--shadow); font-family: "Avenir Next",Avenir,sans-serif; font-size: 16px; font-weight: 600; text-align: center; }
  .pack-status img,.drawer-status img { width: 22px; height: 22px; object-fit: contain; }
  .pack-status small,.drawer-status small { color: rgba(255,255,255,.84); font-family: "Avenir Next",Avenir,sans-serif; font-size: 13px; font-weight: 500; }
  .pack-card.is-selected .pack-status { visibility: visible; pointer-events: auto; }
  .drawer-status { left: 33px; bottom: 20px; }
  .drawer-actions .review-row:not(:has(.restart-card)) { grid-template-columns: minmax(0,1fr); }
  .drawer-actions .start-card { justify-content: center; }
  .drawer-actions .play-mark { display: grid; place-items: center; }
  .drawer-actions .play-mark .ff-symbol { width: 16px; height: 16px; }
  .lottie-streak-fire { contain: layout paint; }
  .pack-card,.pack-drawer,.start-card,.restart-card,.practice-mode button,.pack-status,.drawer-status { transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
  .pack-card:hover { transform: translateY(-2px); }
  .pack-expand:active + .pack-copy,.start-card:active,.restart-card:active,.practice-mode button:active { transform: translateY(2px); }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Keep the complete world chooser above every fixed navigation surface. */
.world-picker-popover:not([hidden]) {
  position: fixed !important;
  z-index: 2147483647 !important;
  top: 104px !important;
  left: 50% !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 14px !important;
  width: min(calc(100vw - 32px), 476px) !important;
  padding: 16px 20px !important;
  transform: translateX(-50%) !important;
  border-radius: 34px !important;
}
.world-picker-popover:not([hidden]) button {
  width: 76px !important;
  height: 76px !important;
  justify-self: center;
}
@media (max-width: 899px) {
  .world-picker-popover:not([hidden]) {
    top: 106px !important;
    gap: 8px !important;
    width: min(calc(100vw - 24px), 390px) !important;
    padding: 10px !important;
    border-radius: 28px !important;
  }
  .world-picker-popover:not([hidden]) button {
    width: min(58px, calc((100vw - 88px) / 5)) !important;
    height: min(58px, calc((100vw - 88px) / 5)) !important;
  }
}

/* ReviewSetupView and SessionCompleteView share the app's compact vertical
   rhythm. The desktop version only widens the available workspace, not this
   source-designed content column. */
.review-view.is-special { min-height:100dvh; background:var(--workspace-accent,var(--drinks)); }
.review-view.is-special .card-stack,.review-view.is-special .review-action-rail,.review-view.is-special .display-controls { display:none !important; }
.review-view.is-special #close-review { color:var(--workspace-accent,var(--drinks)); background:rgba(255,255,255,.94); }
.review-special { display:grid; align-content:center; width:min(100%,520px); min-height:calc(100dvh - 58px); margin:0 auto; padding:44px 24px 48px; color:#fff; text-align:center; }
.review-special-header { margin:0 0 30px; }.review-special-header p,.review-special-header h1,.review-special-header span { display:block; margin:0; }
.review-special-header p { color:rgba(255,255,255,.88); font-size:15px; font-weight:600; letter-spacing:1.1px; }
.review-special-header h1 { margin-top:14px; color:#fff; font-family:"PingFang SC","Hiragino Sans GB",sans-serif; font-size:44px; font-weight:600; line-height:1.05; }
.review-special-header span { margin-top:18px; color:rgba(255,255,255,.92); font-size:18px; font-weight:500; line-height:1.3; }
.review-special-actions { display:grid; gap:14px; }
.review-special-action { display:grid; grid-template-columns:42px minmax(0,1fr) 22px; grid-template-areas:"icon copy arrow"; align-items:center; column-gap:14px; width:100%; min-height:96px; padding:16px 19px; border:0; border-radius:22px; color:var(--workspace-accent,var(--drinks)); background:#fff; box-shadow:0 5px 0 color-mix(in srgb,var(--workspace-accent,var(--drinks)) 66%,#000); text-align:left; }
.review-special-icon { grid-area:icon; display:grid; place-items:center; color:var(--workspace-accent,var(--drinks)); }.review-special-icon .ff-symbol,.review-special-icon img { width:35px; height:35px; object-fit:contain; stroke-width:3.2; }
.review-special-copy { grid-area:copy; display:grid; gap:3px; min-width:0; }.review-special-copy strong,.review-special-copy small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.review-special-copy strong { font-size:21px; font-weight:600; line-height:1.1; }.review-special-copy small { font-size:14px; font-weight:500; opacity:.70; }
.review-special-action > i { grid-area:arrow; display:grid; place-items:center; }.review-special-action > i .ff-symbol { width:20px; height:20px; stroke-width:3.2; }
.review-special-action.is-dark { color:#fff; background:color-mix(in srgb,var(--workspace-accent,var(--drinks)) 80%,#000); box-shadow:0 5px 0 color-mix(in srgb,var(--workspace-accent,var(--drinks)) 62%,#000); }.review-special-action.is-dark .review-special-icon { color:var(--trophy); }
.review-special-action:disabled { cursor:default; opacity:.48; }.review-undo-last { margin:18px auto 0; padding:4px; border:0; color:#fff; background:transparent; font-size:16px; font-weight:600; }
@media (max-width:899px) { .review-view.is-special { width:100%; margin:0; padding:calc(10px + env(safe-area-inset-top)) 24px calc(28px + env(safe-area-inset-bottom)); }.review-special { width:min(100%,520px); min-height:calc(100dvh - 54px); padding:42px 0 44px; }.review-special-header { margin-bottom:29px; }.review-special-header h1 { font-size:44px; }.review-special-action { min-height:94px; } }
@media (min-width:900px) { .review-view.is-special .review-header { height:72px; padding:0 34px; }.review-view.is-special .review-special { width:min(100%,520px); min-height:calc(100dvh - 72px); padding-top:38px; } }

/* Keep the special stack in the upper third of the available review canvas. */
.review-view.is-special #close-review { margin-top:12px; }
.review-special { display:block; padding-top:23dvh; }
.review-view:not(.is-special) #study-card[hidden] { display:grid !important; }
.review-special-action[data-review-scope="inRotation"] .review-special-icon::after,
.review-special-action[data-complete-action="missed"] .review-special-icon::after { width:35px; height:35px; content:""; background:currentColor; -webkit-mask:url("counterarrow.webp") center / contain no-repeat; mask:url("counterarrow.webp") center / contain no-repeat; }
.review-special-action[data-review-scope="inRotation"] .review-special-icon > *,
.review-special-action[data-complete-action="missed"] .review-special-icon > * { display:none !important; }
@media (max-width:899px) { .review-special { padding-top:6dvh; } }
@media (min-width:900px) { .review-view.is-special .review-special { padding-top:14dvh; } }

/* The setup/completion stage is anchored to the visible workspace itself.
   It never participates in the review route's responsive card layout. */
.review-view.is-special > .review-header { display:none; }
.review-special-stage { position:fixed; z-index:20; inset:0; display:grid; grid-template-rows:29vh auto 1fr; justify-items:center; background:var(--workspace-accent,var(--drinks)); }
.review-special-stage[hidden] { display:none; }
.review-special-stage .review-special { grid-row:2; display:block; width:min(calc(100% - 48px),520px); min-height:0; margin:0; padding:0; color:#fff; text-align:center; }
.review-view.is-special .review-special-stage .review-special { padding:0; }
.review-special-stage .review-special-close { position:absolute; top:28px; left:24px; z-index:1; margin:0; color:var(--workspace-accent,var(--drinks)); background:rgba(255,255,255,.94); }
.review-special-stage .review-special-icon::after { content:none; }
.review-special-stage .review-special-icon > img { display:block !important; width:35px; height:35px; object-fit:contain; }
.review-special-stage [data-review-scope="inRotation"] .review-special-icon img,
.review-special-stage [data-complete-action="missed"] .review-special-icon img { filter:invert(22%) sepia(68%) saturate(1844%) hue-rotate(343deg) brightness(88%) contrast(94%); }
.review-special-stage .review-special-action.is-dark .review-special-icon img { filter:none; }
@media (min-width:900px) { .review-special-stage { left:232px; }.review-special-stage .review-special-close { top:32px; left:34px; } }

/* Review deck: match the measured, semibold Swift layout on narrow screens. */
@media (max-width: 759px) {
  .review-view {
    padding: calc(8px + env(safe-area-inset-top)) 24px calc(20px + env(safe-area-inset-bottom));
    font-family: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, sans-serif;
  }
  .review-header { height: 58px; }
  .review-progress { font-family: "Avenir Next", Avenir, sans-serif; font-weight: 600; }
  .card-stack { height: clamp(514px, 67dvh, 560px); min-height: 514px; margin-top: 11px; }
  .flashcard {
    padding: 20px 0 14px;
    border-radius: 30px;
    box-shadow: 0 9px 18px rgba(49,37,20,.10);
    transform-origin: 50% 95%;
    transition: transform 280ms cubic-bezier(.2,.72,.24,1), opacity 280ms ease, background .16s ease;
  }
  .flashcard > .artwork { align-self: end; }
  .flashcard > .card-hanzi {
    font-family: "PingFang SC", "Hiragino Sans GB", "Avenir Next", sans-serif;
    font-size: 64px;
    font-weight: 600;
    letter-spacing: -.05em;
  }
  .flashcard > .card-pinyin { font-family: "Avenir Next", Avenir, sans-serif; font-size: 34px; font-weight: 700; letter-spacing: -.04em; }
  .flashcard > .card-footer { width: 100%; min-height: 58px; padding: 0 28px 0 56px; }
  .card-english { font-family: "Avenir Next", Avenir, sans-serif; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
  .card-footer button { color: #6f7275; }
  .result-controls { grid-template-columns:58px 1fr 1fr; gap:12px; margin-top:18px; }
  .collect-button,.result-button { height:58px; border:0; outline:0; border-radius:17px; font-family:"Avenir Next",Avenir,sans-serif; box-shadow:0 5px 0 var(--button-shadow); }
  .collect-button { --button-shadow:var(--trophy-shadow); }
  .not-yet { --button-shadow:var(--not-yet-shadow); }
  .knew-it { --button-shadow:var(--knew-it-shadow); }
  .result-button .ff-symbol { width:33px; height:33px; }
  .collect-button .ff-symbol { width:29px; height:29px; stroke-width:3.2; }
  .display-controls { gap:12px; margin-top:18px; }
  .display-controls button { width:42px; height:42px; font-family:"Avenir Next",Avenir,sans-serif; font-size:15px; font-weight:600; }
  .display-controls .ff-symbol { width:18px; height:18px; }
  .next-flashcard { transform:scale(.975) translateY(7px); opacity:.72; transition:transform 280ms cubic-bezier(.2,.72,.24,1), opacity 180ms ease; }
  .card-stack.is-advancing .next-flashcard { transform:scale(1) translateY(0); opacity:1; }
}

/* Final mobile source-of-truth. */
@media (max-width:899px) {
  .pack-card.is-selected { border-bottom:0; }
  .pack-expand { z-index:1; }.pack-copy,.pack-hero { z-index:2; }
  .pack-status { z-index:5; display:grid; grid-template-columns:21px auto auto; align-items:center; justify-content:center; column-gap:5px; padding:0 10px; font-family:"Avenir Next",Avenir,sans-serif; font-size:17px; font-weight:600; text-align:center; }.pack-status img { width:21px; height:21px; }.pack-status small { font-family:"Avenir Next",Avenir,sans-serif; font-size:14px; font-weight:500; }
  .mobile-app-nav .mobile-home { display:grid; place-items:center; width:124px; height:56px; border-radius:20px; }
  .mobile-app-nav .mobile-brand { color:#fff; font-family:"Avenir Next",Avenir,sans-serif; font-size:21px; font-weight:600; letter-spacing:-.35px; }
  .mobile-app-nav .mobile-settings .ff-symbol { width:25px; height:25px; }
  .mobile-app-nav .mobile-trophy .lottie-trophy { width:58px; height:58px; transform:scale(1.16) translateY(-6px); }
}

/* Swift home polish: one continuous card surface, centered status pills, and the native-style tab bar. */
@media (max-width:899px) {
  .pack-card.is-selected { border-bottom:0; }
  .pack-expand { z-index:1; }
  .pack-copy,.pack-hero { z-index:2; }
  .pack-status { z-index:5; display:grid; grid-template-columns:21px auto auto; align-items:center; justify-content:center; column-gap:5px; padding:0 10px; font-family:"Avenir Next",Avenir,sans-serif; font-size:17px; font-weight:600; text-align:center; }
  .pack-status img { width:21px; height:21px; }.pack-status small { font-family:"Avenir Next",Avenir,sans-serif; font-size:14px; font-weight:500; }
  .mobile-app-nav .mobile-home { display:grid; place-items:center; width:124px; height:56px; border-radius:20px; }
  .mobile-app-nav .mobile-brand { color:#fff; font-family:"Avenir Next",Avenir,sans-serif; font-size:21px; font-weight:600; letter-spacing:-.35px; }
  .mobile-app-nav .mobile-settings .ff-symbol { width:25px; height:25px; }
  .mobile-app-nav .mobile-trophy .lottie-trophy { width:58px; height:58px; transform:scale(1.16) translateY(-6px); }
}

/* Final mobile source-of-truth: Swift ContentView's home feed wins over legacy rules. */
@media (max-width:899px) {
  .mobile-home-feed { display:none !important; }
  .home-view { padding:0 0 calc(76px + env(safe-area-inset-bottom)) !important; background:var(--canvas) !important; }
  .home-view .world-header { display:grid !important; min-height:94px !important; padding:30px 48px 0 !important; background:var(--world-background) !important; }
  .home-view .pack-list { display:grid !important; width:calc(100% - 34px) !important; max-width:620px; margin:18px auto 22px !important; }
}

/* Keep the Swift home-port layer last: earlier legacy rules must never turn it into a dashboard. */
@media (max-width:899px) {
  .mobile-home-feed { display:none !important; }
  .home-view { padding:0 0 calc(76px + env(safe-area-inset-bottom)) !important; background:var(--canvas) !important; }
  .home-view .world-header { display:grid !important; min-height:94px !important; padding:30px 48px 0 !important; background:var(--world-background) !important; }
  .home-view .pack-list { display:grid !important; width:calc(100% - 34px) !important; max-width:620px; margin:18px auto 22px !important; }
}

/* Swift ContentView mobile port: vertical pack feed, expandable PackSummaryCards, fixed app navigation. */
@media (max-width: 899px) {
  .mobile-app-nav .mobile-profile { justify-self:start; width:52px; height:52px; border-radius:50%; }
  .mobile-app-nav .mobile-profile .profile-avatar { display:grid; place-items:center; width:42px; height:42px; border:2px solid color-mix(in srgb,var(--world-background) 45%,white); border-radius:50%; color:var(--world-foreground); background:#fffaf4; box-shadow:0 3px 0 color-mix(in srgb,var(--world-shadow) 32%,transparent); font-family:"Avenir Next",Avenir,sans-serif; font-size:18px; font-weight:700; }
  .mobile-profile-drawer { position:fixed; z-index:80; bottom:calc(84px + env(safe-area-inset-bottom)); left:14px; display:grid; width:min(278px,calc(100vw - 28px)); padding:9px; border:1px solid color-mix(in srgb,var(--world-shadow) 20%,white); border-radius:21px; background:rgba(255,253,248,.98); box-shadow:0 10px 28px rgba(48,30,21,.2); }
  .mobile-profile-drawer[hidden] { display:none; }
  .mobile-profile-menu-item { display:grid; grid-template-columns:31px minmax(0,1fr); align-items:center; min-height:58px; gap:10px; padding:0 12px; border:0; border-radius:14px; color:var(--world-foreground); background:transparent; font-family:"Avenir Next",Avenir,sans-serif; font-size:21px; font-weight:600; letter-spacing:-.35px; text-align:left; }
  .mobile-profile-menu-item:active { background:color-mix(in srgb,var(--world-background) 11%,white); }
  .mobile-profile-menu-item .ff-symbol { width:23px; height:23px; color:var(--world-foreground); }
  .mobile-drawer-settings-glyph { color:var(--world-foreground); font-family:inherit; font-size:28px; font-weight:400; line-height:1; }
  .mobile-drawer-language-chevron { display:grid; place-items:center; width:28px; height:28px; border-radius:9px; background:color-mix(in srgb,var(--world-background) 13%,white); }
  .mobile-drawer-language-chevron::before { width:9px; height:9px; margin-top:-3px; border-right:2.5px solid var(--world-background); border-bottom:2.5px solid var(--world-background); content:""; transform:rotate(45deg); }
  .mobile-drawer-language-options { display:grid; gap:5px; margin:1px 0 5px 38px; padding:7px; border-radius:14px; background:color-mix(in srgb,var(--world-background) 9%,white); }
  .mobile-drawer-language-options[hidden] { display:none; }
  .mobile-drawer-language-options button { min-height:44px; padding:0 11px; border:0; border-radius:10px; color:var(--world-foreground); background:transparent; font-family:"Avenir Next",Avenir,sans-serif; font-size:18px; font-weight:600; letter-spacing:-.25px; text-align:left; }
  .mobile-drawer-language-options button.is-current { color:var(--world-foreground); background:#fff; box-shadow:0 2px 0 color-mix(in srgb,var(--world-shadow) 18%,transparent); }
  .mobile-home-feed { display:none !important; }
  .home-view { min-height:100dvh; padding:0 0 calc(76px + env(safe-area-inset-bottom)); background:var(--canvas); }
  .world-header { position:relative; z-index:3; display:grid !important; grid-template-columns:48px minmax(0,1fr) 48px; align-items:center; min-height:94px; padding:30px 48px 0; background:var(--world-background); border-bottom:1px solid rgba(255,255,255,.20); }
  .world-header .header-trophy,.world-header .profile-button { display:none; }
  .world-arrow { display:grid; place-items:center; width:48px; height:42px; padding:0; border:0; color:#fff; background:transparent; font-size:0; }.world-arrow .ff-symbol { width:25px; height:25px; stroke-width:5; }.world-arrow.is-disabled { opacity:.34; }
  .world-picker { display:grid; grid-column:2; place-items:center; width:116px; height:42px; margin:auto; }.world-picker .lottie-orbit { width:116px; height:116px; transform:translateX(-40px) translateY(calc(-5px + var(--world-planet-offset-y,0px))) scale(var(--world-planet-scale,1)); transform-origin:center; }.world-picker strong { margin-left:46px; color:#fff; font-family:ui-rounded,"SF Pro Rounded",sans-serif; font-size:29px; font-weight:800; }
  .world-picker-popover { position:absolute; z-index:20; top:106px; left:50%; display:flex; gap:8px; padding:10px; transform:translateX(-50%); border:0; border-radius:999px; background:rgba(0,0,0,.8); box-shadow:0 12px 24px rgba(0,0,0,.28); }.world-picker-popover button { width:58px; height:58px; border:1px solid rgba(255,255,255,.26); border-radius:50%; color:#fff; background:var(--picker-background); box-shadow:none; font-family:ui-rounded,"SF Pro Rounded",sans-serif; font-size:23px; font-weight:800; }.world-picker-popover button.is-current { color:var(--picker-foreground); background:#fff; }
  .pack-list { display:grid !important; gap:18px; width:calc(100% - 34px); max-width:620px; margin:18px auto 22px; }
  .pack-card { min-height:164px; padding:15px 24px 36px; border:2px solid var(--shadow); border-radius:28px; box-shadow:0 7px 0 var(--shadow); }.pack-copy { max-width:70%; }.pack-english { font-size:16px; font-weight:600; }.pack-chinese { font-family:"PingFang SC","Hiragino Sans GB",sans-serif; font-size:42px; font-weight:600; }.pack-subtitle { font-size:18px; font-weight:500; }.pack-hero { right:12px; bottom:7px; width:95px; height:95px; }.pack-status { top:14px; right:15px; width:104px; height:43px; }
  .pack-card.is-selected { z-index:2; min-height:236px; margin-bottom:-18px; padding-bottom:20px; border-radius:28px 28px 0 0; box-shadow:none; }.pack-card.is-selected .pack-copy { max-width:64%; }.pack-card.is-selected .pack-english { font-size:19px; }.pack-card.is-selected .pack-chinese { font-size:51px; }.pack-card.is-selected .pack-subtitle { font-size:20px; }.pack-card.is-selected .pack-hero { right:18px; bottom:14px; width:144px; height:144px; }
  .pack-drawer { position:relative; z-index:1; display:grid; grid-template-columns:1fr; min-height:0; margin-top:0; padding:18px; overflow:hidden; border:2px solid var(--shadow); border-top:0; border-radius:0 0 28px 28px; color:#fff; background:var(--pack); box-shadow:0 7px 0 var(--shadow); }.pack-drawer::before,.pack-drawer .drawer-copy,.pack-drawer .drawer-status,.pack-drawer .drawer-card-collage,.pack-drawer .drawer-hero { display:none; }.pack-drawer .pack-background-art { position:absolute; z-index:0; inset:0; overflow:hidden; }.pack-drawer .pack-background-art img { width:118px; height:118px; opacity:.19; }.pack-drawer .pack-background-art img:nth-child(n+10) { display:none; }
  .drawer-actions { position:relative; z-index:1; display:grid; width:100%; margin:0; padding:0; }.drawer-actions .review-row { display:grid; grid-template-columns:58px minmax(0,1fr); gap:11px; }.drawer-actions .review-row:not(:has(.restart-card)) { grid-template-columns:minmax(0,1fr); }.drawer-actions .restart-card { display:grid; place-items:center; width:58px; height:58px; min-height:58px; border:0; border-radius:16px; background:var(--shadow); box-shadow:0 4px 0 color-mix(in srgb,var(--shadow) 82%,black); }.drawer-actions .restart-card img { width:28px; height:28px; object-fit:contain; }.drawer-actions .start-card { display:flex; align-items:center; justify-content:center; min-height:58px; height:58px; gap:9px; border:0; border-radius:16px; color:var(--fore); background:#fff; box-shadow:0 4px 0 color-mix(in srgb,var(--shadow) 65%,transparent); font-size:20px; font-weight:600; }.drawer-actions .play-mark { width:19px; height:19px; color:var(--pack); background:transparent; }.drawer-actions .play-mark .ff-symbol { width:17px; height:17px; }
  .drawer-actions .practice-tray { margin-top:18px; padding:15px 13px 13px; border:0; border-radius:20px; background:color-mix(in srgb,#fff 86%,var(--pack)); box-shadow:0 5px 0 color-mix(in srgb,var(--shadow) 40%,transparent); }.drawer-actions .practice-label { margin:0 0 12px; color:var(--fore); font-size:14px; font-weight:600; text-align:center; }.drawer-actions .practice-modes { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }.drawer-actions .practice-mode { display:grid; gap:6px; min-width:0; }.drawer-actions .practice-mode button { display:flex; align-items:center; justify-content:center; min-width:0; min-height:48px; height:48px; gap:8px; padding:0 8px; border:2px solid color-mix(in srgb,var(--pack) 28%,#fff); border-radius:13px; color:var(--fore); background:rgba(255,255,255,.94); box-shadow:0 3px 0 color-mix(in srgb,var(--pack) 28%,transparent); }.drawer-actions .practice-mode button strong { display:grid; color:var(--pack); }.drawer-actions .practice-mode button strong .ff-symbol { width:22px; height:22px; }.drawer-actions .practice-mode button span { font-size:17px; font-weight:600; line-height:1; }.drawer-actions .practice-mode p { display:flex; align-items:center; justify-content:center; min-height:18px; margin:0; color:color-mix(in srgb,var(--fore) 55%,#fff); font-size:11px; font-weight:500; }.drawer-actions .practice-mode p b { color:var(--pack); font-size:13px; }.drawer-actions .practice-mode p .lottie-streak-fire { width:18px; height:18px; }
  .mobile-app-nav { position:fixed; z-index:40; right:0; bottom:0; left:0; display:grid; grid-template-columns:72px minmax(0,1fr) 72px; align-items:center; height:76px; padding:0 21px env(safe-area-inset-bottom); border-top:1px solid rgba(171,59,41,.14); background:var(--canvas); box-shadow:0 -2px 12px rgba(85,43,25,.04); }.mobile-app-nav button { display:grid; place-items:center; width:52px; height:52px; padding:0; border:0; color:var(--world-background); background:transparent; }.mobile-app-nav .mobile-settings { justify-self:start; }.mobile-app-nav .mobile-settings .ff-symbol { width:28px; height:28px; }.mobile-app-nav .mobile-home { justify-self:center; width:124px; height:56px; border-radius:20px; color:#fff; background:var(--world-background); box-shadow:0 4px 0 var(--world-shadow); }.mobile-app-nav .mobile-home .mobile-globe { display:block; width:72px; height:72px; }.mobile-app-nav .mobile-trophy { justify-self:end; }.mobile-app-nav .mobile-trophy .lottie-trophy { width:51px; height:51px; transform:scale(1.14) translateY(-5px); }
}

/* Mobile is a purpose-built app surface. Desktop starts at 900px and keeps its own landscape shell. */
.mobile-home-feed { display: none; }
@media (max-width:899px){.mobile-app-nav{border-top-color:color-mix(in srgb,var(--world-background) 14%,white)!important;background:color-mix(in srgb,var(--world-background) 8%,#fffaf1)!important}.mobile-app-nav .mobile-profile .profile-avatar.has-animal{--avatar-background:color-mix(in srgb,var(--world-background) 28%,white);box-shadow:0 3px 0 color-mix(in srgb,var(--world-shadow) 18%,transparent)!important}.mobile-app-nav .mobile-profile{background:color-mix(in srgb,var(--world-background) 7%,white)!important}}

/* Swift TrophyArtworkTile: uncollected art is a single template-color silhouette,
   not a recognizable desaturated image. */
.trophy-locked-art { display:block; width:100%; height:100%; background:rgba(0,0,0,.52); -webkit-mask:var(--trophy-art) center / contain no-repeat; mask:var(--trophy-art) center / contain no-repeat; }
.trophy-case-tile .trophy-locked-artwork,.trophy-artwork-tile .trophy-locked-artwork { filter:none; }

/* The trophy detail is a card, not a document flow. Keep the visual content
   centered, give the word pair breathing room below the art, and reserve the
   lower corners for English and the same speaker glyph used in Review. */
.trophy-detail-dialog { display:flex; flex-direction:column; }
.trophy-detail-dialog:not([open]),.trophy-help-dialog:not([open]) { display:none; }
.trophy-detail-dialog > img { flex:0 0 auto; margin:28px auto 20px; }
.trophy-detail-dialog h2 { flex:0 0 auto; }
.trophy-detail-dialog > p { flex:0 0 auto; }
.trophy-detail-dialog footer { margin-top:auto; }
.trophy-detail-dialog footer .ff-symbol { width:29px; height:29px; margin:auto; }
.trophy-help-dialog { position:relative; }
.trophy-help-dismiss { position:absolute; z-index:1; top:16px; right:16px; display:grid; place-items:center; width:38px; height:38px; border:0; border-radius:50%; color:#1d1d1d; background:#fff; box-shadow:0 2px 6px rgba(0,0,0,.16); font-size:25px; line-height:1; }

@media (min-width:900px) {
  /* Dialogs live at the document root, so native centering would include the
     sidebar. Center them in the actual learning workspace instead. */
  .trophy-detail-dialog { position:fixed; top:50%; left:calc(232px + (100vw - 232px) / 2); margin:0; transform:translate(-50%,-50%); }
  .trophy-help-dialog { position:fixed; top:50%; left:calc(232px + (100vw - 232px) / 2); margin:0; transform:translate(-50%,-50%); }
}

@media (max-width: 899px) {
  :root { --mobile-ink:#202225; --mobile-muted:#74777d; --mobile-surface:#fffdf8; --mobile-line:rgba(44,37,28,.09); }
  html,body { background:#f4f1ea; }
  .home-view { min-height:100dvh; padding:0 calc(16px + env(safe-area-inset-right)) calc(110px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left)); background:linear-gradient(180deg,#fdfaf4 0,#f4f1ea 72%); }
  .home-view .world-header,.home-view .world-picker-popover,.home-view .pack-list { display:none; }
  .mobile-home-feed { display:block; max-width:620px; margin:0 auto; padding-top:max(18px,env(safe-area-inset-top)); }
  .mobile-home-header { display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:84px; }
  .mobile-home-header p,.mobile-home-header h1 { margin:0; }
  .mobile-home-header p { color:var(--world-background); font-size:14px; font-weight:800; letter-spacing:.02em; }
  .mobile-home-header h1 { margin-top:3px; color:var(--mobile-ink); font-size:30px; font-weight:750; letter-spacing:-1.1px; }
  .mobile-world-button { display:flex; align-items:center; gap:5px; min-height:40px; padding:0 11px 0 13px; border:1px solid var(--mobile-line); border-radius:13px; color:var(--mobile-ink); background:rgba(255,255,255,.78); box-shadow:0 2px 7px rgba(38,31,22,.04); font-size:14px; font-weight:700; }
  .mobile-world-button .ff-symbol { width:16px; height:16px; }
  .mobile-world-sheet { position:absolute; z-index:50; top:76px; right:16px; display:grid; gap:4px; width:144px; padding:8px; border:1px solid var(--mobile-line); border-radius:17px; background:rgba(255,253,248,.98); box-shadow:0 15px 38px rgba(39,29,20,.18); }
  .mobile-world-sheet button { min-height:38px; border:0; border-radius:10px; color:var(--mobile-ink); background:transparent; font-size:14px; font-weight:700; text-align:left; padding:0 10px; }.mobile-world-sheet button.is-current { color:#fff; background:var(--world-background); }
  .mobile-continue-card { position:relative; display:grid; grid-template-columns:minmax(0,1fr) 116px; min-height:244px; overflow:hidden; padding:23px 20px 17px; border-radius:27px; color:#fff; background:linear-gradient(135deg,color-mix(in srgb,var(--pack) 92%,white),var(--pack)); box-shadow:0 8px 0 var(--shadow),0 16px 28px color-mix(in srgb,var(--shadow) 24%,transparent); }
  .mobile-continue-card::after { position:absolute; inset:0; pointer-events:none; content:""; background:radial-gradient(circle at 90% 4%,rgba(255,255,255,.2),transparent 38%); }
  .mobile-continue-copy { position:relative; z-index:1; min-width:0; }.mobile-continue-copy p,.mobile-continue-copy h1,.mobile-continue-copy strong,.mobile-continue-copy span { display:block; margin:0; }.mobile-continue-copy p { font-size:13px; font-weight:700; opacity:.82; }.mobile-continue-copy h1 { margin-top:5px; overflow:hidden; font-size:25px; font-weight:750; letter-spacing:-.6px; text-overflow:ellipsis; white-space:nowrap; }.mobile-continue-copy strong { margin-top:3px; font-family:"PingFang SC","Hiragino Sans GB",sans-serif; font-size:33px; font-weight:600; }.mobile-continue-copy span { margin-top:5px; font-size:13px; font-weight:650; opacity:.85; }
  .mobile-continue-card > img { position:relative; z-index:1; align-self:center; justify-self:end; width:118px; height:118px; margin-top:-8px; object-fit:contain; filter:drop-shadow(0 9px 7px rgba(0,0,0,.16)); }
  .mobile-continue-button { position:relative; z-index:2; grid-column:1 / -1; display:flex; align-items:center; justify-content:center; gap:9px; width:100%; min-height:53px; margin-top:5px; border:0; border-radius:16px; color:var(--fore); background:#fff; box-shadow:0 4px 0 rgba(255,255,255,.26); font-size:17px; font-weight:800; }.mobile-continue-button .ff-symbol { width:18px; height:18px; }
  .mobile-practice-actions { position:relative; z-index:2; grid-column:1 / -1; display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:14px; }.mobile-practice-actions button { display:flex; align-items:center; justify-content:center; gap:7px; min-height:42px; border:1px solid rgba(255,255,255,.38); border-radius:13px; color:#fff; background:rgba(0,0,0,.11); font-size:14px; font-weight:750; }.mobile-practice-actions .ff-symbol { width:17px; height:17px; }
  .mobile-pack-section { margin-top:29px; }.mobile-pack-section > header { display:flex; align-items:baseline; justify-content:space-between; margin-bottom:11px; }.mobile-pack-section h2 { margin:0; color:var(--mobile-ink); font-size:20px; font-weight:760; letter-spacing:-.45px; }.mobile-pack-section > header span { color:var(--mobile-muted); font-size:13px; font-weight:650; }
  .mobile-pack-rows { display:grid; gap:10px; }.mobile-pack-row { display:grid; grid-template-columns:61px minmax(0,1fr) 22px; align-items:center; gap:12px; width:100%; min-height:78px; padding:8px 13px 8px 9px; border:1px solid var(--mobile-line); border-radius:19px; color:var(--mobile-ink); background:var(--mobile-surface); box-shadow:0 3px 0 rgba(47,37,26,.05); text-align:left; }.mobile-pack-row:active { transform:translateY(2px); box-shadow:0 1px 0 rgba(47,37,26,.05); }.mobile-pack-row.is-current { border-color:color-mix(in srgb,var(--pack) 46%,white); background:color-mix(in srgb,var(--pack) 9%,white); }.mobile-pack-row img { width:58px; height:58px; object-fit:contain; filter:drop-shadow(0 4px 3px rgba(0,0,0,.1)); }.mobile-pack-row span { min-width:0; }.mobile-pack-row strong,.mobile-pack-row small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.mobile-pack-row strong { font-size:17px; font-weight:760; }.mobile-pack-row small { margin-top:3px; color:var(--mobile-muted); font-size:13px; font-weight:600; }.mobile-pack-row i { display:grid; color:var(--pack); }.mobile-pack-row .ff-symbol { width:18px; height:18px; }
  .mobile-app-nav { z-index:70; grid-template-columns:1fr 84px 1fr; height:76px; padding:0 23px env(safe-area-inset-bottom); border-top:1px solid var(--mobile-line); background:rgba(255,253,248,.96); backdrop-filter:blur(18px); }.mobile-app-nav .mobile-home { width:62px; height:62px; border:4px solid #f4f1ea; border-radius:50%; box-shadow:0 4px 0 var(--world-shadow); }.mobile-app-nav .mobile-home .mobile-globe { width:56px; height:56px; }.mobile-app-nav .mobile-trophy .lottie-trophy { width:46px; height:46px; transform:translateY(-3px); }

  .review-view,.practice-view { width:100%; min-height:100dvh; margin:0; padding:calc(10px + env(safe-area-inset-top)) 16px calc(26px + env(safe-area-inset-bottom)); background:linear-gradient(180deg,#fdfaf4,#f3f0e9); }.review-header,.practice-header { height:54px; }.circle-button { width:42px; height:42px; color:var(--mobile-ink); background:rgba(255,255,255,.9); box-shadow:0 2px 8px rgba(36,29,20,.08); }.review-progress { padding:8px 12px; background:rgba(255,255,255,.86); }.card-stack { height:clamp(440px,66dvh,610px); min-height:440px; margin-top:13px; }.flashcard { border-radius:30px; padding:22px 20px 15px; box-shadow:0 10px 25px rgba(49,37,20,.11); }.flashcard > .artwork > img { width:min(100%,310px); }.card-hanzi { font-size:72px; }.card-pinyin { font-size:34px; }.card-english { font-size:20px; }.result-controls { grid-template-columns:64px 1fr 1fr; gap:10px; margin-top:18px; }.collect-button,.result-button { height:58px; border-radius:17px; }.display-controls { gap:10px; margin-top:17px; }.display-controls button { width:42px; height:42px; background:rgba(255,255,255,.88); }
  .practice-mode-title { margin-top:19px; font-size:27px; }.practice-prompt { height:210px; margin-bottom:13px; }.practice-prompt img { height:204px; }.practice-grid { gap:11px; }.practice-choice { min-height:118px; border-radius:20px; }.practice-audio { width:58px; height:49px; }
  .settings-view,.trophy-room-view,.trophy-case-view { min-height:100dvh; padding:calc(15px + env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom)); background:linear-gradient(180deg,#fdfaf4,#f3f0e9); }.settings-view > header { width:100%; margin:0 0 22px; }.settings-view h1 { color:var(--mobile-ink); font-size:26px; }.settings-panel { width:100%; padding:17px 18px; border-radius:21px; box-shadow:0 4px 0 rgba(41,31,22,.06); }.settings-panel label { min-height:57px; font-size:16px; }.settings-toggle.is-on { background:var(--world-background); }
  .trophy-room-view,.trophy-case-view { padding-right:14px; padding-left:14px; }.trophy-room-header,.trophy-case-header { padding:0 2px 13px; }.trophy-room-header h1 { color:var(--mobile-ink); }.trophy-room-list { gap:24px; padding:8px 2px 24px; }.trophy-room-grid { grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }.trophy-case-content { padding:13px 3px 25px; }.trophy-case-grid { gap:12px; }.trophy-case-tile { border-radius:19px; }
}

@media (min-width: 900px) {
  .world-header { grid-template-columns: 1fr 54px 160px 54px 1fr; height: 90px; min-height: 90px; padding: 0 30px; }
  .header-trophy { grid-column: 1; justify-self: start; display: grid; grid-template-columns: 58px auto auto; align-items: center; column-gap: 7px; height: 64px; padding: 0; border: 0; color: white; background: transparent; font-family: "Avenir Next",Avenir,sans-serif; font-size: 20px; font-weight: 600; }
  .header-trophy .lottie-trophy { width: 64px; height: 64px; transform: none; }
  .header-trophy small { color: rgba(255,255,255,.84); font-size: 15px; font-weight: 500; }
  .world-picker { height: 84px; }
  .drawer-actions .practice-mode button span { position: relative; top: -2px; }
  .drawer-actions .practice-mode p > b,.drawer-actions .practice-mode p > span:not(.lottie-streak-fire) { position: relative; top: 2px; }
  .drawer-actions .practice-mode p .lottie-streak-fire { align-self: center; }
  .pack-status,.drawer-status { column-gap: 7px; }
}

/* Native PackSummaryCard measurements: keep these controls compact and on one baseline. */
@media (min-width: 900px) {
  .drawer-actions {
    align-content: center;
    margin: 16px 22px 16px 0;
    padding-left: 0;
  }
  .drawer-actions .review-row { grid-template-columns: 54px minmax(0,1fr); gap: 10px; }
  .drawer-actions .restart-card {
    width: 54px;
    min-height: 50px;
    height: 50px;
    border-radius: 14px;
    box-shadow: 0 4px 0 var(--shadow);
  }
  .drawer-actions .restart-card .ff-symbol { width: 27px; height: 27px; stroke-width: 3.5; }
  .drawer-actions .start-card {
    min-height: 50px;
    height: 50px;
    gap: 9px;
    padding: 0 18px;
    border-radius: 14px;
    box-shadow: 0 4px 0 color-mix(in srgb,var(--shadow) 68%,transparent);
    font-family: "Avenir Next", Avenir, sans-serif;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -.02em;
  }
  .drawer-actions .play-mark { width: 19px; height: 19px; }
  .drawer-actions .play-mark .ff-symbol { width: 17px; height: 17px; }
  .drawer-actions .practice-tray {
    margin-top: 18px;
    padding: 16px;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 5px 0 color-mix(in srgb,var(--shadow) 38%,transparent);
  }
  .drawer-actions .practice-label {
    margin: 0 0 14px;
    font-family: "Avenir Next", Avenir, sans-serif;
    font-size: 15px;
    font-weight: 600;
  }
  .drawer-actions .practice-modes { gap: 12px; }
  .drawer-actions .practice-mode { gap: 6px; }
  .drawer-actions .practice-mode button {
    min-height: 44px;
    height: 44px;
    gap: 9px;
    padding: 0 12px;
    border-width: 2px;
    border-radius: 12px;
    box-shadow: 0 3px 0 color-mix(in srgb,var(--pack) 28%,transparent);
  }
  .drawer-actions .practice-mode button strong .ff-symbol { width: 22px; height: 22px; }
  .drawer-actions .practice-mode button span { font-family: "Avenir Next", Avenir, sans-serif; font-size: 17px; font-weight: 600; }
  .drawer-actions .practice-mode p {
    min-height: 19px;
    height: 19px;
    gap: 3px;
    margin: 0;
    font-family: "Avenir Next", Avenir, sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 19px;
  }
  .drawer-actions .practice-mode p .ff-symbol { width: 19px; height: 19px; }
  .drawer-actions .practice-mode.no-record p { color: color-mix(in srgb,var(--fore) 48%,white); }
  .drawer-actions .practice-mode.no-record p i { color: #a7aaa5; }
  .drawer-actions .practice-mode.has-record p { color: color-mix(in srgb,var(--fore) 67%,white); }
  .drawer-actions .practice-mode.has-record p b { color: var(--pack); font-size: 13px; font-weight: 600; }
  .lottie-streak-fire { display: block; width: 19px; height: 19px; flex: 0 0 19px; overflow: hidden; }
  .lottie-streak-fire svg { display: block; width: 100% !important; height: 100% !important; }
}

/* Persistent desktop chrome and shared trophy badge contract. */
@media (min-width: 900px) {
  .home-sidebar { position: sticky; top: 0; align-self: start; height: 100dvh; min-height: 100dvh; }
  .world-header { position: sticky; top: 0; z-index: 30; }
  .brand-lockup { padding: 0 12px; font-family: "Avenir Next",Avenir,sans-serif; font-size: 20px; font-weight: 600; letter-spacing: -.65px; }
  .sidebar-links button { font-family: "Avenir Next",Avenir,sans-serif; font-weight: 600; }
  .sidebar-footer { display: grid; justify-items: center; padding: 0 12px; }
  .sidebar-footer strong,.footer-spark { display: none; }
  .sidebar-globe { width: 82px; height: 82px; object-fit: contain; }
  .sidebar-footer p { margin: 10px 0 0; font-family: "Avenir Next",Avenir,sans-serif; font-size: 10px; font-weight: 500; text-align: center; }
  .pack-status,.drawer-status { display: grid; grid-template-columns: 22px auto auto; align-items: center; justify-content: center; width: 111px; height: 42px; padding: 0 9px; border: 0; border-radius: 999px; color: white; background: var(--shadow); font-family: "Avenir Next",Avenir,sans-serif; font-size: 16px; font-weight: 600; text-align: center; }
  .pack-status img,.drawer-status img { width: 22px; height: 22px; object-fit: contain; }
  .pack-status small,.drawer-status small { color: rgba(255,255,255,.84); font-family: "Avenir Next",Avenir,sans-serif; font-size: 13px; font-weight: 500; }
  .pack-card.is-selected .pack-status { visibility: visible; pointer-events: auto; }
  .drawer-status { left: 33px; bottom: 20px; }
  .drawer-actions .review-row:not(:has(.restart-card)) { grid-template-columns: minmax(0,1fr); }
  .drawer-actions .start-card { justify-content: center; }
  .drawer-actions .play-mark { display: grid; place-items: center; }
  .drawer-actions .play-mark .ff-symbol { width: 16px; height: 16px; }
  .lottie-streak-fire { contain: layout paint; }
  .pack-card,.pack-drawer,.start-card,.restart-card,.practice-mode button,.pack-status,.drawer-status { transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
  .pack-card:hover { transform: translateY(-2px); }
  .pack-expand:active + .pack-copy,.start-card:active,.restart-card:active,.practice-mode button:active { transform: translateY(2px); }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* The Swift card gives art a measured square frame. This is that invariant on web. */
.flashcard { --artwork-size: 280px; }
.flashcard > .artwork { width: var(--artwork-size); height: var(--artwork-size); min-width: 0; min-height: 0; overflow: visible; justify-self: center; align-self: center; }
.flashcard > .artwork > img { display: block; width: 100%; height: 100%; max-height: none; object-fit: contain; }
.flashcard > .artwork .card-art-fallback { width: 100%; height: 100%; }
@media (max-width: 759px) { .flashcard { grid-template-areas: "art" "hanzi" "pinyin" "footer"; grid-template-rows: var(--artwork-size) 76px 58px 72px; align-content: center; }.flashcard > .card-hanzi, .flashcard > .card-pinyin { justify-self: stretch; text-align: center; } }
@media (min-width: 760px) { .flashcard { grid-template-areas: "art hanzi" "art pinyin" "art footer"; grid-template-columns: var(--artwork-size) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 70px 82px; }.flashcard > .artwork { grid-row: 1 / 4; }.flashcard > .card-hanzi { align-self: end; justify-self: stretch; padding: 0; text-align: center; }.flashcard > .card-pinyin { align-self: start; justify-self: stretch; padding: 0; text-align: center; }.flashcard > .card-footer { padding: 0 0 0 18px; } }

/* Desktop review contract: the five annotated slots are fixed. Settings hide content only. */
@media (min-width: 760px) { .card-stack { height: clamp(430px, 56dvh, 560px); min-height: 430px; }.flashcard { grid-template-areas: "art hanzi" "art pinyin" "art footer"; grid-template-columns: var(--artwork-size) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 86px 96px; column-gap: 36px; padding: 30px 42px 22px; }.flashcard > .artwork { grid-area: art; width: var(--artwork-size); height: var(--artwork-size); justify-self: center; align-self: center; padding: 0; }.flashcard > .card-hanzi { grid-area: hanzi; align-self: end; justify-self: stretch; min-height: 120px; padding: 0; font-size: clamp(72px, 7vw, 112px); text-align: center; }.flashcard > .card-pinyin { grid-area: pinyin; align-self: start; justify-self: stretch; min-height: 70px; padding: 0; font-size: clamp(38px, 4vw, 62px); text-align: center; }.flashcard > .card-footer { grid-area: footer; align-self: end; min-height: 54px; padding: 0; }.flashcard:not(.shows-artwork) .card-art-fallback { display: none; }.flashcard.shows-characters .card-hanzi, .flashcard.shows-pinyin .card-pinyin { visibility: visible; }.flashcard.is-audio-only .card-footer { display: grid; grid-template-columns: 1fr 62px; padding: 0; }.flashcard.is-audio-only .card-footer > button { display: block; }.flashcard.is-audio-only .card-hanzi, .flashcard.is-audio-only .card-pinyin { visibility: hidden; } }

/* Horizontal World 1: fixed rails and a single, native-inspired expanded module. */
@media (min-width: 900px) {
  html,body,.app-shell { min-width: 0; overflow-x: clip; }
  .home-view { display: grid; grid-template-columns: 232px minmax(0,1fr); grid-template-rows: 104px minmax(0,1fr); min-height: 100dvh; padding: 0; background: #fbf6eb; }
  .home-sidebar { position: sticky; top: 0; grid-column: 1; grid-row: 1 / span 2; display: flex; width: 232px; min-height: 100dvh; padding: 28px 16px 24px; }
  .brand-lockup { gap: 8px; padding: 0 8px; font-size: 20px; }.brand-mark { width: 36px; height: 36px; object-fit: contain; }
  .sidebar-links { margin-top: 39px; }.sidebar-links button { min-height: 48px; font-size: 16px; }.sidebar-footer { font-size: 16px; }
  .world-header { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: 1fr 54px 160px 54px 1fr; align-items: center; height: 104px; min-height: 104px; padding: 0 30px; overflow: hidden; background: linear-gradient(110deg,#ca3024,#e5412c 65%,#d63727); }
  .world-arrow { align-self: center; height: 52px; font-size: 43px; }.world-arrow:first-child { grid-column: 2; }.world-picker { grid-column: 3; width: 160px; height: 92px; }.world-arrow:nth-of-type(2) { grid-column: 4; }.world-picker strong { margin-left: 51px; font-size: 31px; }.lottie-orbit { width: 132px; height: 132px; transform: translateX(-21px); }.profile-button { grid-column: 5; justify-self: end; }
  .world-picker-popover { top: 78px; left: calc(232px + 50%); }
  .pack-list { grid-column: 2; grid-row: 2; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-content: start; gap: 16px; width: auto; max-width: none; margin: 18px 22px 28px; }
  .pack-card { min-width: 0; min-height: 146px; padding: 15px 24px; border-width: 2px; border-radius: 22px; box-shadow: 0 5px 0 var(--shadow); }
  .pack-card .pack-actions { display: none !important; }.pack-card .pack-copy { max-width: 70%; }.pack-card .pack-english { font-size: 17px; font-weight: 800; }.pack-card .pack-chinese { font-size: clamp(31px,2.7vw,42px); }.pack-card .pack-subtitle { font-size: 17px; }.pack-card .pack-hero { right: 12px; bottom: 6px; width: 88px; height: 88px; }.pack-card .pack-status { z-index: 5; top: 10px; right: 12px; display: grid; grid-template-columns: 20px auto auto; align-items: center; justify-content: center; width: 111px; height: 42px; padding: 0 9px; font-size: 16px; text-align: center; }.pack-card .pack-status img { width: 21px; height: 21px; }.pack-card .pack-status small { font-size: 13px; }
  .pack-card.is-expanded { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(330px,1fr) minmax(430px,.92fr); grid-template-rows: 1fr; min-height: 330px; overflow: hidden; padding: 0; border-color: var(--shadow); color: white; background: var(--pack); }
  .pack-card.is-expanded::after { background: linear-gradient(90deg,rgba(0,0,0,.04),rgba(255,255,255,.04)); }.pack-card.is-expanded .pack-copy { z-index: 3; align-self: start; max-width: 430px; padding: 28px 0 0 34px; }.pack-card.is-expanded .pack-english { color: white; font-size: 22px; }.pack-card.is-expanded .pack-chinese { color: white; font-size: 55px; line-height: .98; }.pack-card.is-expanded .pack-subtitle { color: white; font-size: 22px; font-weight: 600; }.pack-card.is-expanded .pack-status { top: 23px; right: 44%; bottom: auto; left: auto; width: 128px; color: white; background: color-mix(in srgb,var(--shadow) 58%,transparent); }.pack-card.is-expanded .pack-hero { z-index: 2; right: 38%; bottom: 13px; width: 205px; height: 205px; opacity: .92; }.pack-card.is-expanded .pack-background-art img { width: 148px; height: 148px; opacity: .28; }.pack-card.is-expanded .pack-actions { position: relative; z-index: 4; display: grid !important; grid-column: 1 / -1; grid-row: 1; grid-template-columns: minmax(330px,1fr) minmax(430px,.92fr); pointer-events: none; }.pack-card.is-expanded .pack-actions button { pointer-events: auto; }
  .pack-detail-copy { align-self: end; max-width: 330px; padding: 0 24px 28px 34px; color: rgba(255,255,255,.9); font: 600 15px/1.4 "Avenir Next",sans-serif; }.pack-detail-copy p { margin: 0; }
  .pack-action-panel { display: grid; align-content: center; margin: 23px 22px 23px 0; padding-left: 22px; border-left: 1px solid rgba(255,255,255,.28); }.review-row { display: grid; grid-template-columns: 68px 1fr; gap: 14px; align-items: stretch; }.restart-card { display: grid; place-items: center; min-height: 67px; border: 0; border-radius: 18px; color: white; background: color-mix(in srgb,var(--shadow) 78%,transparent); box-shadow: 0 5px 0 color-mix(in srgb,var(--shadow) 82%,black); }.restart-card .ff-symbol { width: 31px; height: 31px; }.start-card { display: flex; align-items: center; gap: 15px; min-height: 67px; padding: 0 23px; border: 0; border-radius: 18px; color: var(--pack); background: white; box-shadow: 0 5px 0 color-mix(in srgb,var(--shadow) 70%,transparent); font-size: 23px; font-weight: 900; }.play-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--pack); background: color-mix(in srgb,var(--pack) 13%,white); }.play-mark .ff-symbol { width: 19px; height: 19px; margin-left: 2px; }
  .practice-tray { margin-top: 16px; padding: 12px 14px 13px; border-radius: 22px; background: color-mix(in srgb,white 88%,var(--pack)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }.practice-label { margin: 0 0 9px; color: var(--fore); font-size: 15px; font-weight: 800; text-align: center; }.practice-modes { gap: 12px; }.practice-modes button { display: grid; grid-template-columns: 32px 1fr; grid-template-rows: 27px 19px; column-gap: 7px; min-height: 76px; padding: 10px 11px; border: 2px solid color-mix(in srgb,var(--pack) 24%,white); border-radius: 16px; color: var(--fore); background: rgba(255,255,255,.94); box-shadow: 0 3px 0 color-mix(in srgb,var(--pack) 30%,transparent); text-align: left; }.practice-modes button strong { grid-row: 1 / 3; align-self: center; color: var(--pack); }.practice-modes button strong .ff-symbol { width: 28px; height: 28px; }.practice-modes button span { align-self: end; font-size: 19px; font-weight: 900; }.practice-modes button em { grid-column: 1 / -1; display: flex; align-items: center; gap: 3px; margin-top: 1px; color: color-mix(in srgb,var(--fore) 66%,white); font: 700 11px "Avenir Next",sans-serif; font-style: normal; }.practice-modes button em i { display: grid; color: #ff8124; }.practice-modes button em .ff-symbol { width: 17px; height: 17px; }.practice-modes button em b { color: var(--pack); font-size: 16px; }
  .home-nav { display: none; }
}

@media (min-width: 900px) {
  /* A drawer is a separate surface below its selected cover card, never a stretched card. */
  .pack-card.is-selected { box-shadow: 0 5px 0 var(--shadow), 0 0 0 3px color-mix(in srgb,var(--pack) 22%,transparent); }
  .pack-drawer { position: relative; grid-column: 1 / -1; display: grid; grid-template-columns: minmax(360px,.92fr) minmax(470px,1.08fr); min-height: 276px; overflow: visible; border: 2px solid color-mix(in srgb,var(--shadow) 58%,transparent); border-radius: 22px; color: #223228; background: linear-gradient(105deg,#fffdf6 0%,color-mix(in srgb,white 85%,var(--pack)) 100%); box-shadow: 0 5px 0 color-mix(in srgb,var(--shadow) 55%,transparent); }
  .pack-drawer::before { position: absolute; z-index: -1; top: -14px; left: calc(var(--drawer-origin) * (33.333% + 5.33px)); width: calc((100% - 32px) / 3); height: 18px; content: ""; border: 2px solid color-mix(in srgb,var(--shadow) 58%,transparent); border-bottom: 0; border-radius: 17px 17px 0 0; background: var(--pack); }
  .pack-drawer .pack-background-art { right: 43%; overflow: hidden; }.pack-drawer .pack-background-art img { width: 112px; height: 112px; opacity: .12; }.pack-drawer .pack-background-art img:nth-child(n+6) { display: none; }
  .drawer-copy { position: relative; z-index: 2; align-self: start; max-width: 350px; padding: 27px 0 0 33px; }.drawer-copy .pack-english { margin: 0 0 3px; color: var(--fore); font-size: 23px; font-weight: 900; }.drawer-copy h2 { margin: 0; color: #1e2922; font-size: 49px; line-height: .95; }.drawer-copy .pack-subtitle { margin: 5px 0 0; color: #273229; font-size: 20px; font-weight: 600; }.drawer-description { max-width: 260px; margin: 15px 0 0; color: #657066; font: 500 15px/1.4 "Avenir Next",sans-serif; }
  .drawer-hero { position: absolute; z-index: 1; bottom: 14px; left: 38%; width: 178px; height: 178px; object-fit: contain; filter: drop-shadow(0 8px 5px rgba(0,0,0,.10)); }.drawer-status { position: absolute; z-index: 4; bottom: 20px; left: 33px; display: grid; grid-template-columns: 22px auto auto; align-items: center; justify-content: center; width: 126px; height: 42px; padding: 0 8px; border: 0; border-radius: 999px; color: var(--fore); background: color-mix(in srgb,var(--pack) 12%,white); font-size: 16px; font-weight: 800; text-align: center; }.drawer-status img { width: 22px; height: 22px; object-fit: contain; }.drawer-status small { font-size: 13px; font-weight: 600; }
  .drawer-actions { position: relative; z-index: 3; display: grid; align-content: center; margin: 20px 22px 20px 0; padding-left: 22px; border-left: 1px solid color-mix(in srgb,var(--shadow) 20%,transparent); }.drawer-actions .review-row { display: grid; grid-template-columns: 66px 1fr; gap: 13px; }.drawer-actions .restart-card { display: grid; place-items: center; min-height: 64px; border: 0; border-radius: 18px; color: white; background: var(--pack); box-shadow: 0 5px 0 var(--shadow); }.drawer-actions .restart-card .ff-symbol { width: 30px; height: 30px; }.drawer-actions .start-card { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 0 21px; border: 0; border-radius: 18px; color: white; background: var(--pack); box-shadow: 0 5px 0 var(--shadow); font-size: 22px; font-weight: 900; }.drawer-actions .play-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--pack); background: white; }.drawer-actions .play-mark .ff-symbol { width: 18px; height: 18px; margin-left: 2px; }
  .drawer-actions .practice-tray { margin-top: 15px; padding: 10px 13px 12px; border: 1px solid color-mix(in srgb,var(--pack) 23%,white); border-radius: 20px; background: color-mix(in srgb,white 84%,var(--pack)); }.drawer-actions .practice-label { margin: 0 0 7px; color: var(--fore); font-size: 14px; font-weight: 900; text-align: center; }.drawer-actions .practice-modes { gap: 12px; }.drawer-actions .practice-modes button { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: 25px 18px; column-gap: 7px; min-height: 69px; padding: 8px 10px; border: 2px solid color-mix(in srgb,var(--pack) 23%,white); border-radius: 15px; color: var(--fore); background: rgba(255,255,255,.95); box-shadow: 0 3px 0 color-mix(in srgb,var(--pack) 29%,transparent); text-align: left; }.drawer-actions .practice-modes button strong { grid-row: 1 / 3; align-self: center; color: var(--pack); }.drawer-actions .practice-modes button strong .ff-symbol { width: 27px; height: 27px; }.drawer-actions .practice-modes button span { align-self: end; font-size: 18px; font-weight: 900; }.drawer-actions .practice-modes button em { grid-column: 1 / -1; display: flex; align-items: center; gap: 3px; color: color-mix(in srgb,var(--fore) 64%,white); font: 700 11px "Avenir Next",sans-serif; font-style: normal; }.drawer-actions .practice-modes button em i { display: grid; color: #ff8124; }.drawer-actions .practice-modes button em .ff-symbol { width: 17px; height: 17px; }.drawer-actions .practice-modes button em b { color: var(--pack); font-size: 16px; }
}

/* Swift uses the Apple system face with calm semibold weights, not an exaggerated rounded display face. */
body,.home-view,.settings-view,.review-view,.practice-view,.trophy-room-view,.trophy-case-view { font-family: -apple-system,BlinkMacSystemFont,"SF Pro Display","Helvetica Neue",Arial,"PingFang SC",sans-serif; }

@media (min-width: 900px) {
  .drawer-actions { font-family: -apple-system,BlinkMacSystemFont,"SF Pro Display","Helvetica Neue",Arial,"PingFang SC",sans-serif; }
  .drawer-actions .review-row { grid-template-columns: 64px 1fr; gap: 14px; }.drawer-actions .restart-card { border-radius: 17px; background: var(--pack); box-shadow: 0 5px 0 var(--shadow); }.drawer-actions .start-card { color: var(--fore); background: #fff; box-shadow: 0 4px 0 color-mix(in srgb,var(--pack) 35%,var(--shadow)); font-size: 22px; font-weight: 650; }.drawer-actions .play-mark { color: var(--pack); background: color-mix(in srgb,var(--pack) 12%,white); }.drawer-actions .practice-tray { margin-top: 17px; padding: 14px 18px 12px; border: 2px solid color-mix(in srgb,var(--pack) 19%,white); border-radius: 23px; background: color-mix(in srgb,white 79%,var(--pack)); box-shadow: inset 0 1px 0 rgba(255,255,255,.85); }.drawer-actions .practice-label { margin: 0 0 11px; color: var(--fore); font-size: 15px; font-weight: 650; letter-spacing: .01em; }
  .drawer-actions .practice-modes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }.drawer-actions .practice-mode { display: grid; gap: 8px; }.drawer-actions .practice-mode button { display: flex; align-items: center; justify-content: center; gap: 11px; min-height: 54px; padding: 0 15px; border: 2px solid color-mix(in srgb,var(--pack) 25%,white); border-radius: 15px; color: var(--fore); background: rgba(255,255,255,.94); box-shadow: 0 3px 0 color-mix(in srgb,var(--pack) 30%,transparent); }.drawer-actions .practice-mode button strong { display: grid; color: var(--pack); }.drawer-actions .practice-mode button strong .ff-symbol { width: 25px; height: 25px; }.drawer-actions .practice-mode button span { font-size: 19px; font-weight: 650; }.drawer-actions .practice-mode p { display: flex; align-items: center; justify-content: center; gap: 3px; min-height: 18px; margin: 0; color: color-mix(in srgb,var(--fore) 64%,white); font-size: 12px; font-weight: 500; }.drawer-actions .practice-mode p i { display: grid; color: #ff8124; }.drawer-actions .practice-mode p .ff-symbol { width: 18px; height: 18px; }.drawer-actions .practice-mode p b { color: var(--pack); font-size: 17px; font-weight: 650; }
}

@keyframes earned-flame { 0%,100% { transform: scale(1) rotate(-3deg); } 45% { transform: scale(1.16) rotate(4deg) translateY(-1px); } }

/* Selected drawer: use the pack's own world, with Swift's light controls floating above it. */
body,.home-view,.settings-view,.review-view,.practice-view,.trophy-room-view,.trophy-case-view { font-family: "Avenir Next",Avenir,"Nunito Sans",-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif; }
@media (min-width: 900px) {
  .pack-card.is-selected .pack-status { visibility: hidden; pointer-events: none; }
  .pack-drawer { overflow: hidden; color: white; background: var(--pack); border-color: var(--shadow); }.pack-drawer::before { z-index: 2; top: -1px; width: 30px; height: 15px; border: 0; border-radius: 0; background: #fff; clip-path: polygon(50% 0,100% 100%,0 100%); }.pack-drawer.drawer-origin-0::before { left: calc(16.666% - 15px); }.pack-drawer.drawer-origin-1::before { left: calc(50% - 15px); }.pack-drawer.drawer-origin-2::before { left: calc(83.333% - 15px); }
  .pack-drawer .pack-background-art { right: 0; left: 31%; }.pack-drawer .pack-background-art img { width: 124px; height: 124px; opacity: .28; }.pack-drawer .pack-background-art img:nth-child(n+6) { display: none; }.drawer-hero { display: none; }
  .drawer-copy { max-width: 360px; }.drawer-copy .pack-english { color: white; font-family: "Avenir Next",Avenir,sans-serif; font-size: 22px; font-weight: 600; }.drawer-copy h2 { color: white; font-family: "Avenir Next",Avenir,"PingFang SC",sans-serif; font-size: 49px; font-weight: 700; }.drawer-copy .pack-subtitle { color: white; font-family: "Avenir Next",Avenir,sans-serif; font-size: 20px; font-weight: 500; }.drawer-description { color: rgba(255,255,255,.89); font-family: "Avenir Next",Avenir,sans-serif; font-weight: 500; }
  .drawer-status { color: white; background: var(--shadow); font-family: "Avenir Next",Avenir,sans-serif; font-weight: 700; }.drawer-status small { color: rgba(255,255,255,.8); }.drawer-actions { border-left: 0; font-family: "Avenir Next",Avenir,sans-serif; }
  .drawer-actions .review-row { grid-template-columns: 70px 1fr; gap: 15px; }.drawer-actions .restart-card { min-height: 68px; border-radius: 19px; background: color-mix(in srgb,var(--shadow) 80%,black); box-shadow: 0 5px 0 color-mix(in srgb,var(--shadow) 88%,black); }.drawer-actions .restart-card .ff-symbol { width: 37px; height: 37px; stroke-width: 3.7; }.drawer-actions .start-card { justify-content: center; min-height: 68px; border-radius: 19px; color: var(--fore); background: white; box-shadow: 0 5px 0 color-mix(in srgb,var(--shadow) 72%,transparent); font-family: "Avenir Next",Avenir,sans-serif; font-size: 22px; font-weight: 600; }.drawer-actions .play-mark { width: 25px; height: 25px; color: var(--pack); background: transparent; }.drawer-actions .play-mark .ff-symbol { width: 20px; height: 20px; margin: 0; }
  .drawer-actions .practice-tray { border-color: rgba(255,255,255,.56); background: color-mix(in srgb,white 86%,var(--pack)); }.drawer-actions .practice-label { color: var(--fore); font-family: "Avenir Next",Avenir,sans-serif; font-size: 15px; font-weight: 600; }.drawer-actions .practice-mode button { min-height: 55px; border-color: color-mix(in srgb,var(--pack) 28%,white); border-radius: 16px; color: var(--fore); }.drawer-actions .practice-mode button span { font-family: "Avenir Next",Avenir,sans-serif; font-weight: 600; }.drawer-actions .practice-mode p { color: rgba(255,255,255,.76); font-family: "Avenir Next",Avenir,sans-serif; }.drawer-actions .practice-mode p i { color: #a7aaa5; }.drawer-actions .practice-mode p b { color: white; font-weight: 600; }.drawer-actions .practice-mode.has-record p i { color: #ff8a25; animation: none; }.drawer-actions .practice-mode.has-record p b { color: var(--pack); }
}

/* Exact compact geometry from PackSummaryCard.swift, after older desktop overrides. */
@media (min-width: 900px) {
  .drawer-actions { align-content: center; margin: 16px 22px 16px 0; padding-left: 0; }
  .drawer-actions .review-row { grid-template-columns: 54px minmax(0,1fr); gap: 10px; }
  .drawer-actions .restart-card { width: 54px; min-height: 50px; height: 50px; border-radius: 14px; box-shadow: 0 4px 0 var(--shadow); }
  .drawer-actions .restart-card .ff-symbol { width: 27px; height: 27px; stroke-width: 3.5; }
  .drawer-actions .start-card { min-height: 50px; height: 50px; gap: 9px; padding: 0 18px; border-radius: 14px; box-shadow: 0 4px 0 color-mix(in srgb,var(--shadow) 68%,transparent); font-family: "Avenir Next",Avenir,sans-serif; font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
  .drawer-actions .play-mark { width: 19px; height: 19px; }
  .drawer-actions .play-mark .ff-symbol { width: 17px; height: 17px; }
  .drawer-actions .practice-tray { margin-top: 18px; padding: 16px; border: 0; border-radius: 18px; box-shadow: 0 5px 0 color-mix(in srgb,var(--shadow) 38%,transparent); }
  .drawer-actions .practice-label { margin: 0 0 14px; font-family: "Avenir Next",Avenir,sans-serif; font-size: 15px; font-weight: 600; }
  .drawer-actions .practice-modes { gap: 12px; }
  .drawer-actions .practice-mode { gap: 6px; }
  .drawer-actions .practice-mode button { min-height: 44px; height: 44px; gap: 9px; padding: 0 12px; border-width: 2px; border-radius: 12px; box-shadow: 0 3px 0 color-mix(in srgb,var(--pack) 28%,transparent); }
  .drawer-actions .practice-mode button strong .ff-symbol { width: 22px; height: 22px; }
  .drawer-actions .practice-mode button span { font-family: "Avenir Next",Avenir,sans-serif; font-size: 17px; font-weight: 600; }
  .drawer-actions .practice-mode p { min-height: 19px; height: 19px; gap: 3px; margin: 0; font-family: "Avenir Next",Avenir,sans-serif; font-size: 11px; font-weight: 500; line-height: 19px; }
  .drawer-actions .practice-mode p .ff-symbol { width: 19px; height: 19px; }
  .drawer-actions .practice-mode.no-record p { color: color-mix(in srgb,var(--fore) 48%,white); }
  .drawer-actions .practice-mode.no-record p i { color: #a7aaa5; }
  .drawer-actions .practice-mode.has-record p { color: color-mix(in srgb,var(--fore) 67%,white); }
  .drawer-actions .practice-mode.has-record p b { color: var(--pack); font-size: 13px; font-weight: 600; }
  .lottie-streak-fire { display: block; width: 19px; height: 19px; flex: 0 0 19px; overflow: hidden; }
  .lottie-streak-fire svg { display: block; width: 100% !important; height: 100% !important; }
}

@media (min-width: 900px) {
  .home-sidebar { position: sticky; top: 0; align-self: start; height: 100dvh; min-height: 100dvh; }
  .world-header { position: sticky; top: 0; z-index: 30; }
  .brand-lockup { padding: 0 12px; font-family: "Avenir Next",Avenir,sans-serif; font-size: 20px; font-weight: 600; letter-spacing: -.65px; }
  .sidebar-links button { font-family: "Avenir Next",Avenir,sans-serif; font-weight: 600; }
  .sidebar-footer { display: grid; justify-items: center; padding: 0 12px; }
  .sidebar-footer strong,.footer-spark { display: none; }
  .sidebar-globe { width: 82px; height: 82px; object-fit: contain; }
  .sidebar-footer p { margin: 10px 0 0; font-family: "Avenir Next",Avenir,sans-serif; font-size: 10px; font-weight: 500; text-align: center; }
  .pack-status,.drawer-status { display: grid; grid-template-columns: 22px auto auto; align-items: center; justify-content: center; width: 111px; height: 42px; padding: 0 9px; border: 0; border-radius: 999px; color: white; background: var(--shadow); font-family: "Avenir Next",Avenir,sans-serif; font-size: 16px; font-weight: 600; text-align: center; }
  .pack-status img,.drawer-status img { width: 22px; height: 22px; object-fit: contain; }
  .pack-status small,.drawer-status small { color: rgba(255,255,255,.84); font-family: "Avenir Next",Avenir,sans-serif; font-size: 13px; font-weight: 500; }
  .pack-card.is-selected .pack-status { visibility: visible; pointer-events: auto; }
  .drawer-status { left: 33px; bottom: 20px; }
  .drawer-actions .review-row:not(:has(.restart-card)) { grid-template-columns: minmax(0,1fr); }
  .drawer-actions .start-card { justify-content: center; }
  .drawer-actions .play-mark { display: grid; place-items: center; }
  .drawer-actions .play-mark .ff-symbol { width: 16px; height: 16px; }
  .lottie-streak-fire { contain: layout paint; }
  .pack-card,.pack-drawer,.start-card,.restart-card,.practice-mode button,.pack-status,.drawer-status { transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
  .pack-card:hover { transform: translateY(-2px); }
  .pack-expand:active + .pack-copy,.start-card:active,.restart-card:active,.practice-mode button:active { transform: translateY(2px); }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
