/* Mobile layout for Word Check-in. Keep this file after word_checkin.css. */

.word-checkin-mobile-tabbar {
  display: none;
}

/* Mobile content ending: make the word batch list finish deliberately. */
@media (max-width: 760px) {
  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view):not(.word-checkin-pk-page):not(.word-checkin-ranking-page) .word-checkin-card-board {
    position: relative;
    padding-bottom: 18px;
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view):not(.word-checkin-pk-page):not(.word-checkin-ranking-page) .word-checkin-card-board::after {
    content: "更多内容待开放";
    display: grid;
    min-height: 42px;
    place-items: center;
    margin-top: 2px;
    border-radius: 14px;
    background:
      linear-gradient(180deg, rgba(245, 250, 255, 0), rgba(245, 250, 255, 0.88) 34%, rgba(245, 250, 255, 0.96));
    color: rgba(99, 117, 140, 0.72);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
  }
}

/* Trial layer: premium grey finish for the mobile word batch board. */
@media (max-width: 760px) {
  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view):not(.word-checkin-pk-page):not(.word-checkin-ranking-page) .word-checkin-card-board {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 247, 251, 0.96) 46%, rgba(232, 238, 245, 0.96) 100%) !important;
    box-shadow:
      0 18px 44px rgba(45, 68, 93, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view):not(.word-checkin-pk-page):not(.word-checkin-ranking-page) .word-checkin-course-card.is-locked .word-checkin-course-cover,
  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view):not(.word-checkin-pk-page):not(.word-checkin-ranking-page) .word-checkin-course-card.is-upcoming .word-checkin-course-cover,
  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view):not(.word-checkin-pk-page):not(.word-checkin-ranking-page) .word-checkin-course-cover.is-mystery {
    background:
      linear-gradient(135deg, #edf2f7 0%, #f7f9fc 52%, #e4ebf3 100%) !important;
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view):not(.word-checkin-pk-page):not(.word-checkin-ranking-page) .word-checkin-card-board::after {
    background:
      linear-gradient(180deg, rgba(244, 247, 251, 0), rgba(238, 243, 248, 0.9) 34%, rgba(232, 238, 245, 0.98)) !important;
    color: rgba(82, 96, 113, 0.72);
  }
}

/* Mobile premium layer: visual depth only, no behavior changes. */
@media (max-width: 760px) {
  :root {
    --wc-mobile-ink: #172033;
    --wc-mobile-muted: #63758c;
    --wc-mobile-line: rgba(79, 124, 178, 0.14);
    --wc-mobile-surface: rgba(255, 255, 255, 0.92);
    --wc-mobile-surface-strong: rgba(255, 255, 255, 0.98);
    --wc-mobile-shadow: 0 18px 44px rgba(45, 93, 143, 0.16);
    --wc-mobile-shadow-soft: 0 10px 26px rgba(45, 93, 143, 0.11);
  }

  html,
  body.word-checkin-page,
  body.word-checkin-profile-page {
    background:
      linear-gradient(180deg, #e9f0f7 0%, #f6f9fc 36%, #e7eef5 100%) !important;
  }

  body.word-checkin-page .python-skeleton-shell,
  body.word-checkin-profile-page .app-shell.python-profile-shell {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  body.word-checkin-page .word-checkin-mobile-tabbar,
  body.word-checkin-moments-page .word-checkin-mobile-tabbar {
    right: 10px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 10px;
    width: auto;
    max-width: 430px;
    margin: 0 auto;
    padding: 7px;
    border: 1px solid rgba(79, 124, 178, 0.14);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow:
      0 18px 42px rgba(24, 58, 102, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  body.word-checkin-page .word-checkin-mobile-tab,
  body.word-checkin-moments-page .word-checkin-mobile-tab {
    min-height: 50px;
    border-radius: 18px;
    color: #6d8198;
  }

  body.word-checkin-page .word-checkin-mobile-tab.is-active,
  body.word-checkin-moments-page .word-checkin-mobile-tab.is-active {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(224, 241, 255, 0.92));
    color: #226fb6;
    box-shadow:
      0 8px 20px rgba(63, 132, 202, 0.15),
      inset 0 0 0 1px rgba(91, 155, 213, 0.18);
  }

  body.word-checkin-page .word-checkin-mobile-today-panel,
  body.word-checkin-profile-page .word-checkin-mine-dashboard .python-side-info-card,
  body.word-checkin-mine-page .word-checkin-mine-today-panel,
  body.word-checkin-mine-page .word-checkin-mine-recent-panel {
    border: 1px solid var(--wc-mobile-line) !important;
    border-radius: 24px !important;
    background:
      linear-gradient(180deg, var(--wc-mobile-surface-strong) 0%, rgba(247, 251, 255, 0.94) 100%) !important;
    box-shadow: var(--wc-mobile-shadow) !important;
  }

  body.word-checkin-mine-page .word-checkin-mine-profile-head {
    margin: 0 0 2px;
    padding: 14px;
    border: 1px solid rgba(79, 124, 178, 0.12);
    border-radius: 24px;
    background:
      radial-gradient(circle at 90% 0%, rgba(255, 210, 102, 0.3), transparent 34%),
      linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(233, 246, 255, 0.94));
    box-shadow: var(--wc-mobile-shadow-soft);
  }

  body.word-checkin-mine-page .word-checkin-mine-profile-avatar,
  body.word-checkin-mine-page .word-checkin-stat-avatar,
  body.word-checkin-page .word-checkin-stat-avatar {
    box-shadow:
      0 12px 22px rgba(42, 83, 133, 0.18),
      inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  }

  body.word-checkin-mine-page .word-checkin-mine-moments-entry,
  body.word-checkin-page .word-checkin-profile-link,
  body.word-checkin-mine-page .word-checkin-profile-link {
    border: 1px solid rgba(91, 155, 213, 0.16);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 8px 18px rgba(45, 93, 143, 0.1);
  }

  body.word-checkin-mine-page .word-checkin-side-stats {
    gap: 10px;
  }

  body.word-checkin-mine-page .word-checkin-side-stats div {
    border: 1px solid rgba(91, 155, 213, 0.12);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 255, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
  }

  body.word-checkin-mine-page .word-checkin-mine-task-card,
  body.word-checkin-mine-page .word-checkin-mine-release-card {
    border-color: rgba(79, 124, 178, 0.13);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 255, 0.86));
    box-shadow:
      0 10px 22px rgba(45, 93, 143, 0.09),
      inset 0 1px 0 rgba(255, 255, 255, 0.72);
  }

  body.word-checkin-mine-page .word-checkin-mine-task-card.is-primary {
    border-color: rgba(68, 145, 216, 0.25);
    background:
      radial-gradient(circle at 94% 0%, rgba(255, 210, 102, 0.28) 0 54px, transparent 55px),
      linear-gradient(135deg, #ffffff 0%, #e9f6ff 100%);
    box-shadow: 0 16px 34px rgba(61, 132, 202, 0.16);
  }

  body.word-checkin-mine-page .word-checkin-mine-task-action {
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: linear-gradient(180deg, #6fb3ee 0%, #407fd7 100%);
    box-shadow:
      0 12px 24px rgba(64, 128, 224, 0.26),
      inset 0 1px 0 rgba(255, 255, 255, 0.26);
  }

  body.word-checkin-mine-page .word-checkin-mine-task-action:active,
  body.word-checkin-mine-page .word-checkin-mine-release-card:active,
  body.word-checkin-mine-page .word-checkin-mine-task-card:active {
    transform: translateY(1px);
  }

  body.word-checkin-mine-page .word-checkin-mine-task-action.is-secondary {
    border-color: rgba(91, 155, 213, 0.18);
    background: rgba(255, 255, 255, 0.78);
    color: #2879bd;
    box-shadow: inset 0 0 0 1px rgba(91, 155, 213, 0.08);
  }

  body.word-checkin-mine-page .word-checkin-mine-task-progress {
    height: 7px;
    background: rgba(99, 117, 140, 0.13);
    box-shadow: inset 0 1px 2px rgba(24, 58, 102, 0.08);
  }

  body.word-checkin-mine-page .word-checkin-mine-task-progress span {
    background: linear-gradient(90deg, #58c7d8, #4f8ee8);
    box-shadow: 0 0 14px rgba(79, 142, 232, 0.28);
  }

  body.word-checkin-mine-page .word-checkin-mine-recent-panel {
    border-style: solid !important;
  }

  body.word-checkin-mine-page .word-checkin-mine-release-new,
  body.word-checkin-mine-page .word-checkin-mine-task-badge.is-hot {
    box-shadow: 0 8px 16px rgba(255, 138, 76, 0.18);
  }
}

@media (max-width: 760px) {
  html {
    width: 100%;
    min-height: 100%;
    background: #edf6ff;
  }

  body.word-checkin-page {
    width: 100%;
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background:
      radial-gradient(circle at 88% 8%, rgba(255, 220, 88, 0.28) 0 64px, transparent 65px),
      radial-gradient(circle at 12% 20%, rgba(89, 190, 255, 0.22) 0 78px, transparent 79px),
      linear-gradient(180deg, #dff4ff 0, #f7fbff 280px, #eef6ff 100%);
  }

  body.word-checkin-page .python-skeleton-shell {
    overflow: visible;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    padding:
      max(12px, env(safe-area-inset-top))
      14px
      calc(104px + env(safe-area-inset-bottom));
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
  }

  body.word-checkin-page .python-learning-topbar {
    display: none !important;
  }

  .word-checkin-mobile-tabbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 4px;
    padding:
      8px 10px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(64, 128, 224, 0.1);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -10px 28px rgba(29, 33, 41, 0.1);
    backdrop-filter: blur(16px);
  }

  .word-checkin-mobile-tab {
    display: grid;
    min-height: 50px;
    place-items: center;
    border-radius: 16px;
    color: #7a8fa8;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
  }

  .word-checkin-mobile-tab.is-active {
    background: rgba(126, 182, 230, 0.22);
    color: #4a86b8;
    box-shadow: inset 0 0 0 1px rgba(126, 182, 230, 0.28);
  }

  body.word-checkin-page .python-learning-brand {
    min-width: 0;
    justify-content: flex-start;
    text-decoration: none;
  }

  body.word-checkin-page .python-learning-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  body.word-checkin-page .python-learning-logo img {
    width: 29px;
    height: 29px;
  }

  body.word-checkin-page .python-learning-brand strong {
    font-size: 20px;
    line-height: 1.1;
  }

  body.word-checkin-page .python-learning-brand small {
    font-size: 11px;
  }

  body.word-checkin-page .python-learning-actions {
    justify-content: flex-end;
    width: auto;
    min-width: 0;
    gap: 8px;
  }

  body.word-checkin-page .python-learning-profile,
  body.word-checkin-page .python-learning-login {
    min-height: 38px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 14px;
  }

  body.word-checkin-page .python-learning-profile .python-profile-avatar,
  body.word-checkin-page .python-login-cat-avatar {
    width: 32px;
    height: 32px;
  }

  body.word-checkin-page .python-learning-profile span:last-child {
    display: none;
  }

  body.word-checkin-page .python-user-dropdown {
    top: calc(100% + 8px);
    right: 0;
    left: auto;
  }

  body.word-checkin-page .word-checkin-mobile-today-modal {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
  }

  body.word-checkin-page .word-checkin-mobile-today-modal.is-open {
    display: flex;
  }

  body.word-checkin-page .word-checkin-mobile-today-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(27, 39, 60, 0.38);
    backdrop-filter: blur(8px);
  }

  body.word-checkin-page .word-checkin-mobile-today-panel {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    width: min(360px, 100%);
    padding: 18px;
    border: 1px solid rgba(64, 128, 224, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 22px 52px rgba(29, 33, 41, 0.18);
  }

  body.word-checkin-page .word-checkin-mobile-today-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #f2f6fc;
    color: #4e5969;
    font-size: 20px;
    font-weight: 900;
  }

  body.word-checkin-page .word-checkin-mobile-today-hero {
    display: grid;
    gap: 5px;
    padding-right: 32px;
  }

  body.word-checkin-page .word-checkin-mobile-today-hero strong {
    color: #1d2129;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.15;
  }

  body.word-checkin-page .word-checkin-mobile-today-hero span {
    color: #59718f;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
  }

  body.word-checkin-page .word-checkin-stat-user {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background:
      radial-gradient(circle at 92% 10%, rgba(255, 209, 102, 0.24) 0 46px, transparent 47px),
      #f7faff;
  }

  body.word-checkin-page .word-checkin-stat-user-main {
    display: grid;
    min-width: 0;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
  }

  body.word-checkin-page .word-checkin-stat-avatar {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.88);
    border-radius: 999px;
    background: linear-gradient(135deg, #ffd166, #ff90e8);
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(29, 33, 41, 0.12);
  }

  body.word-checkin-page .word-checkin-stat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  body.word-checkin-page .word-checkin-stat-user-main div {
    display: grid;
    min-width: 0;
    gap: 2px;
  }

  body.word-checkin-page .word-checkin-stat-user-main span {
    color: #4080e0;
    font-size: 12px;
    font-weight: 900;
  }

  body.word-checkin-page .word-checkin-stat-user-main strong {
    overflow: hidden;
    color: #1d2129;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.word-checkin-page .word-checkin-stat-user-main small {
    overflow: hidden;
    color: #59718f;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.word-checkin-page .word-checkin-profile-link {
    justify-self: end;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff5d6 0%, #ffd166 100%);
    color: #1d2129;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(29, 33, 41, 0.1);
  }

  body.word-checkin-page .python-learning-dashboard {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 0;
  }

  body.word-checkin-page .python-learning-calendar-card,
  body.word-checkin-page .python-side-info-card {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 24px rgba(64, 128, 224, 0.1);
  }

  body.word-checkin-page .word-checkin-map-card {
    gap: 14px;
    padding: 14px;
  }

  body.word-checkin-page .word-checkin-card-board,
  body.word-checkin-page .word-checkin-extension-board {
    align-self: start;
    align-content: start;
    min-height: 0;
    height: auto;
  }

  body.word-checkin-page .word-checkin-card-board {
    gap: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.94);
  }

  body.word-checkin-page:not(.is-test-view) .python-skeleton-shell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 100vh;
  }

  body.word-checkin-page:not(.is-test-view):not(.word-checkin-pk-page):not(.word-checkin-ranking-page) .python-learning-dashboard {
    flex: 0 0 auto;
    align-content: start;
    align-items: start;
    height: auto;
    min-height: 0;
  }

  body.word-checkin-page:not(.is-test-view) .word-checkin-card-board {
    display: grid;
    grid-template-rows: auto auto;
    align-content: start;
    align-self: start;
    width: 100%;
    height: fit-content;
    min-height: 0;
    flex: 0 0 auto;
  }


  body.word-checkin-page .word-checkin-heading {
    display: grid;
    gap: 6px;
    align-items: start;
  }

  body.word-checkin-page .word-checkin-heading span {
    font-size: 21px;
  }

  body.word-checkin-page .word-checkin-heading strong {
    max-width: none;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
  }

  body.word-checkin-page .word-checkin-map-stage {
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    background:
      linear-gradient(rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04)),
      url("/tools/word-checkin/static/map.png") center / contain no-repeat,
      linear-gradient(180deg, #bdeeff 0%, #dff7ff 48%, #c9f2d2 49%, #8ddf97 100%);
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.68);
  }

  body.word-checkin-page .python-home-map-node {
    width: clamp(30px, 9vw, 44px);
    height: clamp(30px, 9vw, 44px);
    border-width: 3px;
  }

  body.word-checkin-page .python-home-map-node > span {
    font-size: clamp(13px, 4vw, 18px);
  }

  body.word-checkin-page .word-checkin-map-node.is-upcoming > span {
    font-size: 11px;
  }

  body.word-checkin-page .word-checkin-map-copy {
    top: 12px;
    left: 12px;
    max-width: min(255px, calc(100% - 24px));
    padding: 9px 11px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
  }

  body.word-checkin-page .word-checkin-map-copy strong {
    font-size: 17px;
  }

  body.word-checkin-page .word-checkin-map-copy small {
    font-size: 11px;
  }

  body.word-checkin-page .word-checkin-map-tip {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
    padding: 8px 11px;
    border-width: 3px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
  }

  body.word-checkin-page .word-checkin-map-tip strong {
    font-size: 14px;
  }

  body.word-checkin-page .word-checkin-map-tip span {
    font-size: 11px;
  }

  body.word-checkin-page.python-modal-open {
    overflow: hidden;
  }

  body.word-checkin-page .python-game-modal.word-test-modal {
    z-index: 130;
    padding: 14px;
    place-items: center;
    background: rgba(23, 43, 66, 0.52);
  }

  body.word-checkin-page .python-game-modal.word-test-modal .python-game-modal-panel {
    width: min(100%, 560px);
    max-height: calc(100dvh - 28px);
    border-width: 4px;
    border-radius: 28px;
    background: #dbeafe;
  }

  body.word-checkin-page .python-game-modal.word-test-modal .python-sublevel-panel {
    aspect-ratio: auto;
    min-height: min(70dvh, 620px);
    background:
      radial-gradient(circle at 85% 10%, rgba(255, 245, 187, 0.5) 0 54px, transparent 55px),
      linear-gradient(180deg, #dcecff, #eef6ff);
  }

  body.word-checkin-page .python-game-modal.word-test-modal .python-sublevel-header {
    top: 18px;
    width: calc(100% - 94px);
    color: #1d4260;
    text-align: left;
    text-shadow: none;
  }

  body.word-checkin-page .python-game-modal.word-test-modal .python-sublevel-header strong {
    font-size: 18px;
    line-height: 1.25;
  }

  body.word-checkin-page .python-game-modal.word-test-modal .python-sublevel-header span {
    color: #59718f;
    font-size: 12px;
  }

  body.word-checkin-page .python-game-modal.word-test-modal .python-sublevel-body {
    padding: 82px 16px 18px;
  }

  body.word-checkin-page .python-game-modal.word-test-modal .python-placeholder-card {
    padding: 22px 18px;
    border-width: 3px;
    border-radius: 22px;
  }

  body.word-checkin-page .python-game-modal.word-test-modal .python-placeholder-card strong {
    font-size: 24px;
  }

  body.word-checkin-page .python-game-modal.word-test-modal .python-placeholder-card p {
    font-size: 14px;
  }

  body.word-checkin-page .python-game-modal.word-test-modal .python-video-stage,
  body.word-checkin-page .python-game-modal.word-test-modal .python-sublevel-video {
    border-radius: 20px;
  }

  body.word-checkin-page .python-game-modal.word-test-modal .python-game-modal-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border-width: 3px;
    font-size: 22px;
  }

  body.word-checkin-page .python-game-modal.word-test-modal .python-game-modal-toast {
    bottom: 12px;
    max-width: calc(100% - 28px);
    text-align: center;
  }

  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="video"],
  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="video"],
  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="game"],
  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="ide_practice"],
  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="link"] {
    padding: 0;
    place-items: stretch;
  }

  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="video"] .python-game-modal-panel,
  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="video"] .python-game-modal-panel,
  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="game"] .python-game-modal-panel,
  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="ide_practice"] .python-game-modal-panel,
  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="link"] .python-game-modal-panel {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
    background: #0f172a;
  }

  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="video"] .python-sublevel-panel,
  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="video"] .python-sublevel-panel,
  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="game"] .python-sublevel-panel,
  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="ide_practice"] .python-sublevel-panel,
  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="link"] .python-sublevel-panel {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    background: #0f172a;
  }

  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="video"] .python-sublevel-header,
  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="video"] .python-sublevel-header,
  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="game"] .python-sublevel-header,
  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="ide_practice"] .python-sublevel-header,
  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="link"] .python-sublevel-header {
    display: none;
  }

  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="video"] .python-sublevel-body,
  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="video"] .python-video-stage,
  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="video"] .python-sublevel-video {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    border-radius: 0;
  }

  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="video"] .python-sublevel-body,
  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="video"] .python-video-stage,
  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="video"] .python-sublevel-video {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    border-radius: 0;
  }

  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="game"] .python-game-modal-frame,
  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="ide_practice"] .python-game-modal-frame,
  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="link"] .python-game-modal-frame {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
  }

  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="game"] .python-game-loading,
  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="ide_practice"] .python-game-loading,
  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="link"] .python-game-loading {
    z-index: 2;
  }

  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="video"] .python-game-modal-close,
  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="game"] .python-game-modal-close,
  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="ide_practice"] .python-game-modal-close,
  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="link"] .python-game-modal-close {
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 245, 187, 0.94);
  }

  body.word-checkin-page .python-chapter-progress {
    height: 8px;
  }

  body.word-checkin-page.is-test-view {
    overflow: hidden;
    background:
      radial-gradient(circle at 12% 8%, rgba(255, 224, 125, 0.34) 0 62px, transparent 63px),
      radial-gradient(circle at 90% 5%, rgba(157, 232, 255, 0.56) 0 80px, transparent 81px),
      linear-gradient(180deg, #effbff 0%, #f7fbff 100%);
  }

  body.word-checkin-page.is-test-view .python-skeleton-shell {
    position: fixed;
    inset: 0;
    display: grid;
    overflow: hidden;
    width: 100vw;
    height: 100dvh;
    max-width: none;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
    padding:
      max(0px, env(safe-area-inset-top))
      0
      calc(68px + env(safe-area-inset-bottom));
    transform: none;
  }

  body.word-checkin-page.is-test-view .word-checkin-test-rail {
    display: none !important;
  }

  body.word-checkin-page.is-test-view .python-learning-dashboard {
    grid-column: 1;
    grid-row: 1;
    height: 100%;
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 0;
  }

  body.word-checkin-page.is-test-view .word-checkin-map-card {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    height: 100%;
    min-height: 0;
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    background: #bdeeff;
    box-shadow: none;
  }

  body.word-checkin-page.is-test-view .word-checkin-heading {
    display: none;
  }

  body.word-checkin-page.is-test-view .word-checkin-map-stage {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    border-radius: 0;
    background-size: cover, cover, auto !important;
    background-position: center !important;
    box-shadow: none;
  }

  body.word-checkin-page.is-test-view .word-checkin-test-back {
    display: none;
  }

  body.word-checkin-page.is-test-view .python-home-map-node {
    width: clamp(34px, 7.5vw, 52px);
    height: clamp(34px, 7.5vw, 52px);
  }

  body.word-checkin-page.is-test-view .word-checkin-map-copy {
    top: max(14px, env(safe-area-inset-top));
    left: 14px;
    max-width: min(285px, calc(100% - 28px));
    padding: 10px 12px;
  }

  body.word-checkin-page.is-test-view .word-checkin-map-tip {
    right: 14px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: auto;
    width: min(330px, calc(100% - 28px));
  }

  body.word-checkin-page:not(.is-test-view) {
    --wc-course-card-height: 180px;
    --wc-course-cover-height: 100px;
    --wc-course-body-height: 80px;
    --wc-course-row-gap: 16px;
    --wc-course-col-gap: 14px;
    --wc-course-peek-ratio: 0.28;
  }

  body.word-checkin-page:not(.is-test-view) .word-checkin-course-grid {
    grid-template-columns: repeat(2, calc((100% - var(--wc-course-col-gap)) / 2));
    grid-auto-rows: var(--wc-course-card-height);
    gap: var(--wc-course-row-gap) var(--wc-course-col-gap);
    align-content: start;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  body.word-checkin-page:not(.is-test-view) .word-checkin-today-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 18px;
  }

  body.word-checkin-page:not(.is-test-view) .word-checkin-today-main strong {
    font-size: 20px;
    white-space: normal;
  }

  body.word-checkin-page:not(.is-test-view) .word-checkin-today-action {
    width: 100%;
  }

  body.word-checkin-page:not(.is-test-view) .word-checkin-challenge-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  body.word-checkin-page:not(.is-test-view) .word-checkin-challenge-chip span {
    white-space: normal;
  }

  body.word-checkin-page:not(.is-test-view) .word-checkin-course-card {
    display: grid;
    grid-template-rows: var(--wc-course-cover-height) var(--wc-course-body-height);
    overflow: hidden;
    height: var(--wc-course-card-height);
    min-height: var(--wc-course-card-height);
    max-height: var(--wc-course-card-height);
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(64, 128, 224, 0.1);
    touch-action: manipulation;
  }

  body.word-checkin-page:not(.is-test-view) .word-checkin-course-card[href]:active {
    box-shadow: 0 6px 16px rgba(64, 128, 224, 0.14);
    transform: scale(0.985);
  }

  body.word-checkin-page:not(.is-test-view) .word-checkin-course-card.is-locked {
    box-shadow: 0 2px 8px rgba(64, 128, 224, 0.06);
  }

  body.word-checkin-page:not(.is-test-view) .word-checkin-course-cover {
    height: var(--wc-course-cover-height);
    min-height: var(--wc-course-cover-height);
    aspect-ratio: auto;
  }

  body.word-checkin-page:not(.is-test-view) .word-checkin-course-cover.has-image {
    padding: 6px;
  }

  body.word-checkin-page:not(.is-test-view) .word-checkin-course-cover.has-image > img {
    border-radius: 8px;
  }

  body.word-checkin-page:not(.is-test-view) .word-checkin-course-badge {
    right: 8px;
    bottom: 8px;
    min-height: 28px;
    padding: 6px 9px;
    font-size: 12px;
  }

  body.word-checkin-page:not(.is-test-view) .word-checkin-course-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 0;
    height: var(--wc-course-body-height);
    padding: 6px 8px 8px;
    overflow: hidden;
    grid-template-rows: none;
  }

  body.word-checkin-page:not(.is-test-view) .word-checkin-course-body strong {
    flex: 0 0 auto;
    font-size: 14px;
    line-height: 1.2;
  }

  body.word-checkin-page:not(.is-test-view) .word-checkin-course-body small {
    flex: 0 0 auto;
    font-size: 12px;
    line-height: 1.2;
  }

  body.word-checkin-page:not(.is-test-view) .word-checkin-course-body em {
    flex: 0 0 auto;
    font-size: 12px;
    line-height: 1.2;
  }

  body.word-checkin-page:not(.is-test-view) .word-checkin-course-progress {
    flex: 0 0 auto;
    height: 5px;
    margin-top: auto;
  }

  body.word-checkin-page:not(.is-test-view) .word-checkin-course-cover.is-mystery span {
    width: 44px;
    height: 44px;
    font-size: 28px;
    border-radius: 14px;
  }

  body.word-checkin-page.is-test-index-view .python-skeleton-shell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 100dvh;
    height: auto;
  }

  body.word-checkin-page.is-test-index-view .python-learning-dashboard,
  body.word-checkin-page.is-test-index-view .word-checkin-dashboard {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    align-content: stretch;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
  }

  body.word-checkin-page.is-test-index-view .word-checkin-extension-board {
    flex: 1 1 auto;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: start;
    align-self: stretch;
    width: 100%;
    min-height: 100%;
    height: auto;
    gap: 14px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 24px rgba(64, 128, 224, 0.1);
  }

  body.word-checkin-page.is-test-index-view .word-checkin-extension-heading {
    align-items: end;
  }

  body.word-checkin-page.is-test-index-view .word-checkin-extension-heading-title {
    align-self: end;
    padding-bottom: 2px;
    font-size: 21px;
  }

  body.word-checkin-page.is-test-index-view .word-checkin-extension-heading-subtitle {
    font-size: 13px;
    line-height: 1.5;
  }

  body.word-checkin-page.is-test-index-view .word-checkin-extension-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    height: auto;
    min-height: 0;
    gap: 14px;
  }

  body.word-checkin-page.is-test-index-view .word-checkin-extension-card {
    min-height: 220px;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(64, 128, 224, 0.1);
  }

  body.word-checkin-page.is-test-index-view .word-checkin-extension-banner {
    min-height: 118px;
    padding: 12px;
  }

  body.word-checkin-page.is-test-index-view .word-checkin-extension-banner strong {
    font-size: 14px;
  }

  body.word-checkin-page.is-test-index-view .word-checkin-extension-body {
    gap: 8px;
    padding: 10px 10px 12px;
  }

  body.word-checkin-page.is-test-index-view .word-checkin-extension-body > strong {
    font-size: 14px;
  }

  body.word-checkin-page.is-test-index-view .word-checkin-extension-price-current {
    font-size: 15px;
  }

  body.word-checkin-page.is-test-index-view .word-checkin-extension-price-original {
    font-size: 12px;
  }

  body.word-checkin-page.is-test-index-view .word-checkin-extension-footer small,
  body.word-checkin-page.is-test-index-view .word-checkin-extension-tag {
    font-size: 12px;
  }

  body.word-checkin-page:not(.is-test-view) .word-checkin-side-panel {
    display: none;
  }

  body.word-checkin-page .word-checkin-side-panel {
    grid-template-rows: auto;
    gap: 12px;
  }

  body.word-checkin-page .python-side-info-card {
    padding: 14px;
  }

  body.word-checkin-page .word-checkin-stat-card-title {
    align-items: center;
    gap: 10px;
  }

  body.word-checkin-page .python-side-card-title strong {
    font-size: 18px;
  }

  body.word-checkin-page .word-checkin-rank-button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }

  body.word-checkin-page .word-checkin-side-stats {
    gap: 7px;
  }

  body.word-checkin-page .word-checkin-side-stats div {
    min-height: 68px;
    border-radius: 16px;
  }

  body.word-checkin-page .word-checkin-side-stats strong {
    font-size: 24px;
  }

  body.word-checkin-page .word-checkin-rank-popover {
    position: fixed;
    top: auto;
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom));
    left: 12px;
    max-height: min(66vh, 520px);
    padding: 16px;
    border-radius: 22px;
  }

  body.word-checkin-page .word-checkin-rank-row {
    grid-template-columns: 22px 34px minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 48px;
    padding: 8px;
  }

  body.word-checkin-page .word-checkin-rank-avatar {
    width: 34px;
    height: 34px;
  }

  body.word-checkin-page .word-checkin-feature-list div {
    padding: 12px;
    border-radius: 16px;
  }

  body.word-checkin-page .word-card-modal {
    z-index: 130;
    padding: 0;
  }

  body.word-checkin-page .word-card-modal-panel {
    width: 100vw;
    min-height: 100dvh;
    max-height: 100dvh;
    align-content: start;
    gap: 12px;
    grid-auto-rows: max-content;
    padding: max(14px, env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body.word-checkin-page .word-card-modal .word-card-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    margin-right: 44px;
    padding: 12px 14px;
  }

  body.word-checkin-page .word-card-modal .word-card-header h1 {
    max-width: 280px;
    margin-top: 4px;
    font-size: clamp(24px, 7vw, 30px);
    line-height: 1.05;
  }

  body.word-checkin-page .word-card-modal .word-card-header p {
    font-size: 12px;
  }

  body.word-checkin-page .word-card-modal .word-card-count {
    min-width: 62px;
    min-height: 62px;
  }

  body.word-checkin-page .word-card-modal .word-card-count strong {
    font-size: 26px;
  }

  body.word-checkin-page .word-card-modal .word-card-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px;
  }

  body.word-checkin-page .word-card-modal .word-card-tabs button {
    min-height: 52px;
    padding: 8px 10px;
  }

  body.word-checkin-page .word-card-modal-close {
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
    width: 38px;
    height: 38px;
    font-size: 24px;
  }

  .python-login-modal {
    z-index: 160;
    padding: 14px;
  }

  .python-login-modal[hidden] {
    display: none !important;
  }

  .python-login-backdrop {
    background: rgba(15, 23, 42, 0.46);
    backdrop-filter: blur(8px);
  }

  .python-login-panel {
    width: min(90vw, 360px);
    max-height: calc(100dvh - 28px);
    overflow: auto;
    border-radius: 22px;
  }

  .python-login-cover {
    height: 96px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .python-login-body {
    gap: 14px;
    padding: 20px 18px 18px;
  }

  .python-login-body h2 {
    font-size: 22px;
  }

  .python-login-form {
    gap: 14px;
  }

  .python-login-field {
    gap: 6px;
  }

  .python-login-field label {
    font-size: 13px;
  }

  .python-login-field input {
    min-height: 48px;
    padding: 0 14px;
    font-size: 15px;
  }

  .python-login-password-field {
    position: relative;
  }

  .python-login-password-field input {
    padding-right: 48px;
  }

  .python-login-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #718096;
    cursor: pointer;
    transform: translateY(-50%);
  }

  .python-login-password-toggle.is-visible {
    background: rgba(47, 124, 246, 0.1);
    color: #2f7cf6;
  }

  .python-login-password-toggle svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
  }

  .python-login-submit {
    min-height: 48px;
  }

  .python-login-links {
    font-size: 13px;
  }

  .python-login-default-hint {
    font-size: 11px;
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) {
    --wc-mobile-sky: #5BBEF7;
    --wc-mobile-sky-deep: #2F9FE7;
    --wc-mobile-mint: #63D8A4;
    --wc-mobile-mint-soft: #E9FBF3;
    --wc-mobile-ink: #1d2b3a;
    --wc-mobile-muted: #667789;
    --wc-mobile-card-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    --wc-mobile-panel-shadow: 0 12px 28px rgba(29, 43, 58, 0.12);
    background:
      radial-gradient(circle at 88% 8%, rgba(99, 216, 164, 0.18) 0 72px, transparent 73px),
      radial-gradient(circle at 10% 18%, rgba(91, 190, 247, 0.2) 0 84px, transparent 85px),
      linear-gradient(180deg, #eaf8ff 0, #f8fcff 270px, #f4fbf7 100%);
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view):not(.word-checkin-pk-page):not(.word-checkin-ranking-page) .python-skeleton-shell {
    padding:
      max(12px, env(safe-area-inset-top))
      14px
      calc(112px + env(safe-area-inset-bottom));
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .python-learning-dashboard {
    gap: 14px;
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-card-board {
    gap: 14px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--wc-mobile-card-shadow);
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-heading {
    gap: 5px;
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-heading span {
    color: var(--wc-mobile-ink);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.18;
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-heading strong {
    color: var(--wc-mobile-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-course-grid {
    gap: 14px 12px;
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-course-card {
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--wc-mobile-card-shadow);
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-course-card[href]:active {
    box-shadow: var(--wc-mobile-card-shadow);
    transform: scale(0.985);
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-course-card.is-locked,
  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-course-card.is-upcoming {
    box-shadow: var(--wc-mobile-card-shadow);
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-course-cover {
    background:
      radial-gradient(circle at 84% 16%, rgba(99, 216, 164, 0.26) 0 34px, transparent 35px),
      linear-gradient(135deg, rgba(91, 190, 247, 0.18), rgba(233, 251, 243, 0.96));
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-course-cover.has-image > img {
    border-radius: 12px;
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-course-cover.is-mystery {
    border-radius: 16px 16px 0 0;
    background:
      radial-gradient(circle at 50% 40%, rgba(91, 190, 247, 0.2) 0 46px, transparent 47px),
      var(--wc-mobile-mint-soft);
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-course-cover.is-mystery span {
    border-radius: 16px;
    background: linear-gradient(135deg, var(--wc-mobile-sky), var(--wc-mobile-mint));
    box-shadow: none;
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-course-badge {
    min-height: 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--wc-mobile-sky), var(--wc-mobile-mint));
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    box-shadow: none;
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-course-badge.is-complete {
    background: var(--wc-mobile-mint-soft);
    color: #16845b;
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-course-body {
    gap: 3px;
    padding: 8px 9px 9px;
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-course-body strong {
    color: var(--wc-mobile-ink);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-course-body small {
    color: var(--wc-mobile-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-course-body em {
    color: #7b8b9b;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-course-progress {
    height: 6px;
    border-radius: 999px;
    background: #eaf2f7;
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-course-progress > span {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--wc-mobile-sky), var(--wc-mobile-mint));
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-mobile-tabbar {
    right: 10px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 10px;
    gap: 4px;
    padding: 8px;
    border: 1px solid rgba(91, 190, 247, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--wc-mobile-card-shadow);
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-mobile-tab {
    min-height: 44px;
    border-radius: 999px;
    color: #718397;
    font-size: 12px;
    font-weight: 900;
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-mobile-tab.is-active {
    background: linear-gradient(135deg, var(--wc-mobile-sky), var(--wc-mobile-mint));
    color: #fff;
    box-shadow: none;
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-mobile-today-backdrop {
    background: rgba(29, 43, 58, 0.32);
    backdrop-filter: blur(8px);
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-mobile-today-panel {
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(91, 190, 247, 0.16);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--wc-mobile-panel-shadow);
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-mobile-today-close {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: var(--wc-mobile-mint-soft);
    color: var(--wc-mobile-sky-deep);
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-mobile-today-hero {
    gap: 5px;
    padding-right: 42px;
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-mobile-today-hero strong {
    color: var(--wc-mobile-ink);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.18;
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-mobile-today-hero span {
    color: var(--wc-mobile-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-today-checklist {
    display: grid;
    gap: 10px;
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-today-check-item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 52px;
    padding: 10px;
    border: 1px solid rgba(91, 190, 247, 0.14);
    border-radius: 16px;
    background: #f8fcff;
    color: var(--wc-mobile-ink);
    text-decoration: none;
    box-shadow: none;
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-today-check-item.is-done {
    background: var(--wc-mobile-mint-soft);
    border-color: rgba(99, 216, 164, 0.28);
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-today-check-item.is-disabled {
    background: #f5f8fb;
    color: #8a98a8;
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-today-check-mark {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--wc-mobile-sky), var(--wc-mobile-mint));
    color: #fff;
    font-size: 12px;
    font-weight: 900;
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-today-check-item.is-disabled .word-checkin-today-check-mark {
    background: #e8eef4;
    color: #8a98a8;
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-today-check-item span:last-child {
    display: grid;
    min-width: 0;
    gap: 2px;
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-today-check-item strong {
    color: var(--wc-mobile-ink);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
  }

  body.python-home-page.word-checkin-page:not(.is-test-view):not(.is-test-index-view) .word-checkin-today-check-item small {
    color: var(--wc-mobile-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
  }

  body.word-checkin-login-required {
    overflow: hidden;
  }

  body.word-checkin-login-required .python-login-close {
    display: none;
  }
}

@media (max-width: 760px) and (orientation: portrait) {
  body.word-checkin-page.is-test-view {
    width: 100dvw;
    height: 100dvh;
    overflow: hidden;
  }

  body.word-checkin-page.is-test-view .python-skeleton-shell {
    position: fixed;
    top: 0;
    left: 0;
    width: 100dvh;
    height: 100dvw;
    transform: rotate(90deg) translateY(-100%);
    transform-origin: top left;
  }

  body.word-checkin-page .python-game-modal.word-test-modal.is-open[data-sublevel-type="video"] .python-game-modal-panel,
  body.word-checkin-page .python-game-modal.word-test-modal.is-open[data-sublevel-type="game"] .python-game-modal-panel,
  body.word-checkin-page .python-game-modal.word-test-modal.is-open[data-sublevel-type="ide_practice"] .python-game-modal-panel,
  body.word-checkin-page .python-game-modal.word-test-modal.is-open[data-sublevel-type="link"] .python-game-modal-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100dvh;
    height: 100dvw;
    transform: rotate(90deg) translateY(-100%);
    transform-origin: top left;
  }
}

@media (min-width: 761px) and (max-width: 1024px) and (pointer: coarse) {
  body.word-checkin-page.is-test-view {
    width: 100%;
    height: 100%;
    min-height: 100%;
    margin: 0;
    overflow: hidden;
    background:
      radial-gradient(circle at 8% 14%, rgba(255, 224, 125, 0.24) 0 66px, transparent 67px),
      radial-gradient(circle at 92% 16%, rgba(157, 232, 255, 0.36) 0 92px, transparent 93px),
      linear-gradient(180deg, #eaf9ff 0%, #f6fff7 100%);
  }

  body.word-checkin-page.is-test-view .python-skeleton-shell {
    position: fixed;
    inset: 0;
    display: grid;
    overflow: hidden;
    width: 100vw;
    height: 100dvh;
    max-width: none;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
    margin: 0;
    padding:
      max(0px, env(safe-area-inset-top))
      0
      calc(68px + env(safe-area-inset-bottom));
    border-radius: 0;
    background:
      radial-gradient(circle at 8% 14%, rgba(255, 224, 125, 0.24) 0 66px, transparent 67px),
      radial-gradient(circle at 92% 16%, rgba(157, 232, 255, 0.36) 0 92px, transparent 93px),
      linear-gradient(180deg, #eaf9ff 0%, #f6fff7 100%);
    transform: none;
  }

  body.word-checkin-page.is-test-view .word-checkin-test-rail {
    display: none !important;
  }

  body.word-checkin-page.is-test-view .python-learning-dashboard {
    grid-column: 1;
    grid-row: 1;
    height: 100%;
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0;
  }

  body.word-checkin-page.is-test-view .word-checkin-map-card {
    display: grid;
    height: 100%;
    min-height: 0;
    gap: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    background: #bdeeff;
    box-shadow: none;
  }

  body.word-checkin-page.is-test-view .word-checkin-heading {
    display: none;
  }

  body.word-checkin-page.is-test-view .word-checkin-map-stage {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    border-radius: 0;
    background-size: cover, cover, auto !important;
    background-position: center !important;
    box-shadow: none;
  }

  body.word-checkin-page.is-test-view .word-checkin-test-back {
    display: none;
  }

  body.word-checkin-page.is-test-view .python-home-map-node {
    width: clamp(38px, 6.5vw, 58px);
    height: clamp(38px, 6.5vw, 58px);
  }

  body.word-checkin-page.is-test-view .word-checkin-map-copy {
    top: max(14px, env(safe-area-inset-top));
    left: 14px;
    max-width: min(330px, calc(100% - 28px));
  }

  body.word-checkin-page.is-test-view .word-checkin-map-tip {
    right: auto;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 16px;
    width: min(330px, calc(100% - 32px));
  }

  body.word-checkin-page .python-game-modal.word-test-modal {
    z-index: 300;
  }

  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="game"],
  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="ide_practice"],
  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="link"] {
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    place-items: stretch;
    background: #0f172a;
  }

  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="game"] .python-game-modal-panel,
  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="ide_practice"] .python-game-modal-panel,
  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="link"] .python-game-modal-panel {
    width: 100%;
    height: 100%;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="game"] .python-sublevel-panel,
  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="ide_practice"] .python-sublevel-panel,
  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="link"] .python-sublevel-panel {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    background: #0f172a;
  }

  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="game"] .python-sublevel-header,
  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="ide_practice"] .python-sublevel-header,
  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="link"] .python-sublevel-header {
    display: none;
  }

  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="game"] .python-game-modal-frame,
  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="ide_practice"] .python-game-modal-frame,
  body.word-checkin-page .python-game-modal.word-test-modal[data-sublevel-type="link"] .python-game-modal-frame {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
  }
}

@media (min-width: 761px) and (max-width: 1024px) and (orientation: portrait) and (pointer: coarse) {
  body.word-checkin-page.is-test-view .python-skeleton-shell {
    top: 0;
    left: 0;
    width: 100dvh;
    height: 100dvw;
    transform: rotate(90deg) translateY(-100%);
    transform-origin: top left;
  }
}

.word-card-mobile-topbar {
  display: none;
}

@media (max-width: 760px) {
  html:has(body.word-card-page) {
    min-height: 100%;
    background-color: #93c5fd;
  }

  body.word-card-page {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
  }

  body.word-card-page {
    background-color: #93c5fd;
    background-image:
      radial-gradient(circle at 88% 8%, rgba(255, 220, 88, 0.36) 0 58px, transparent 59px),
      radial-gradient(#000 1px, transparent 1px);
    background-size: auto, 20px 20px;
  }


  .word-card-shell {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    min-height: 100dvh;
    align-content: stretch;
    gap: 0;
    grid-auto-rows: auto;
    padding: 0 0 calc(12px + env(safe-area-inset-bottom));
  }

  .word-card-mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    flex: 0 0 auto;
    padding: max(8px, env(safe-area-inset-top)) 12px 8px;
    background-color: #93c5fd;
    background-image:
      radial-gradient(circle at 88% 8%, rgba(255, 220, 88, 0.36) 0 58px, transparent 59px),
      radial-gradient(#000 1px, transparent 1px);
    background-size: auto, 20px 20px;
  }

  .word-card-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 14px 0 10px;
    border: 3px solid #000;
    border-radius: 999px;
    background: #fff;
    color: #000;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 3px 3px 0 #000;
  }

  .word-card-back-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
    flex: 0 0 auto;
  }

  .word-card-mobile-topbar {
    display: block;
  }

  .word-card-back {
    display: none;
  }

  .word-card-page .neo-box,
  .word-card-modal .neo-box {
    border-width: 3px;
    border-radius: 14px;
    box-shadow: 3px 3px 0 #000;
  }

  .word-card-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    margin: 0 12px;
    padding: 12px 14px;
  }

  .word-card-header h1 {
    margin-top: 4px;
    font-size: clamp(24px, 7vw, 30px);
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .word-card-header p {
    font-size: 13px;
    font-weight: 800;
  }

  .word-card-count {
    min-width: 62px;
    min-height: 62px;
    align-self: start;
    border-width: 3px;
  }

  .word-card-count strong {
    font-size: 26px;
  }

  .word-card-count span {
    font-size: 12px;
    font-weight: 900;
  }

  .word-card-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 12px 0;
    padding: 8px;
    flex: 0 0 auto;
  }

  .word-card-tabs:has(button[data-tab="preview"]:not([hidden])) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .word-card-panel:not([hidden]) {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    margin: 12px 12px 0;
  }

  .word-card-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }












  .word-card-tabs button,
  .word-card-actions button,
  .word-card-word button,
  .word-card-pronunciation-item button,
  .word-card-options button,
  .word-card-primary {
    min-height: 42px;
    padding: 9px 10px;
    border-width: 3px;
    border-radius: 10px;
    font-size: 13px;
    box-shadow: 3px 3px 0 #000;
  }

  .word-card-panel {
    padding: 16px;
  }

  .word-card-section-title h2,
  .word-card-game-head h2,
  .word-card-preview h2 {
    font-size: 22px;
  }

  .word-card-section-title p,
  .word-card-game-head p,
  .word-card-preview p {
    font-size: 13px;
    line-height: 1.5;
  }

  .word-card-list {
    gap: 10px;
    margin-top: 14px;
  }

  .word-card-word {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px;
  }

  .word-card-word strong {
    font-size: 24px;
    line-height: 1.1;
    overflow-wrap: anywhere;
  }

  .word-card-word span {
    font-size: 14px;
  }

  .word-card-pronunciation-item {
    grid-template-columns: 1fr;
  }

  .word-card-pronunciation-item > div:last-child {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .word-card-game-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .word-card-game-score {
    min-width: 78px;
    padding: 8px;
  }

  .word-card-game-score strong {
    font-size: 26px;
  }

  .word-card-question {
    margin: 16px 0;
    padding: 20px 12px;
    border-width: 3px;
    font-size: clamp(34px, 14vw, 56px);
  }

  .word-card-options {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .word-card-feedback {
    margin: 14px 0;
  }

  .word-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 380px) {
  body.word-checkin-page .python-learning-brand small {
    display: none;
  }

  body.word-checkin-page .word-checkin-stat-card-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  body.word-checkin-page .word-checkin-stat-card-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
  }

  body.word-checkin-page .word-checkin-rank-button {
    width: max-content;
  }

  body.word-checkin-page .word-checkin-stat-user,
  body.word-checkin-mine-page .word-checkin-stat-user {
    grid-template-columns: 1fr;
  }

  body.word-checkin-page .word-checkin-profile-link,
  body.word-checkin-mine-page .word-checkin-profile-link {
    justify-self: start;
  }

  .word-card-header {
    grid-template-columns: 1fr;
  }

  .word-card-count {
    width: 70px;
  }

  .word-card-tabs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.word-checkin-profile-page {
    min-height: 100vh;
    background:
      radial-gradient(circle at 88% 8%, rgba(255, 220, 88, 0.28) 0 64px, transparent 65px),
      radial-gradient(circle at 12% 20%, rgba(89, 190, 255, 0.22) 0 78px, transparent 79px),
      linear-gradient(180deg, #dff4ff 0, #f7fbff 280px, #eef6ff 100%);
  }

  body.word-checkin-profile-page .topbar.python-skeleton-topbar,
  body.word-checkin-profile-page .word-checkin-profile-desktop-head,
  body.word-checkin-profile-page .word-checkin-profile-desktop-cancel {
    display: none !important;
  }

  body.word-checkin-settings-page .word-checkin-settings-mobile-head {
    display: grid;
  }

  body.word-checkin-mine-page .word-checkin-settings-mobile-head {
    display: none;
  }

  body.word-checkin-profile-page .app-shell.python-profile-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding:
      max(12px, env(safe-area-inset-top))
      14px
      calc(76px + env(safe-area-inset-bottom));
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  body.word-checkin-profile-page .word-checkin-mine-dashboard {
    display: grid;
    gap: 14px;
    margin-bottom: 14px;
  }

  body.word-checkin-profile-page .word-checkin-mine-dashboard .word-checkin-side-panel,
  body.word-checkin-mine-page .python-learning-side-panel.word-checkin-side-panel {
    display: grid;
    grid-template-rows: auto auto !important;
    align-content: start;
    align-items: start;
    gap: 14px;
    height: auto;
  }

  body.word-checkin-mine-page .word-checkin-mine-profile-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding-bottom: 10px;
  }

  body.word-checkin-mine-page .word-checkin-mine-profile-brief {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 4px 2px 0;
    color: inherit;
    text-decoration: none;
    min-width: 0;
  }

  body.word-checkin-mine-page .word-checkin-mine-moments-entry {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease;
  }

  body.word-checkin-mine-page .word-checkin-mine-moments-entry:active {
    background: rgba(0, 122, 255, 0.18);
  }

  body.word-checkin-mine-page .word-checkin-mine-profile-avatar {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    background: linear-gradient(135deg, #ffd166, #ff90e8);
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(29, 33, 41, 0.1);
  }

  body.word-checkin-mine-page .word-checkin-mine-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  body.word-checkin-mine-page .word-checkin-mine-profile-meta {
    display: grid;
    gap: 4px;
    min-width: 0;
  }

  body.word-checkin-mine-page .word-checkin-mine-profile-meta strong {
    overflow: hidden;
    color: #1d2129;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.word-checkin-mine-page .word-checkin-mine-profile-meta small {
    overflow: hidden;
    color: #86909c;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.word-checkin-mine-page .word-checkin-mine-stats-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
  }

  body.word-checkin-mine-page .word-checkin-mine-stats-head strong {
    color: #1d2129;
    font-size: 16px;
    font-weight: 900;
  }

  body.word-checkin-mine-page .word-checkin-stat-card,
  body.word-checkin-mine-page .word-checkin-next-card {
    align-self: start;
    height: auto;
    min-height: 0;
  }

  body.word-checkin-mine-page .word-checkin-side-stats div {
    min-height: 68px;
    border-radius: 14px;
    background: rgba(247, 249, 252, 0.96);
  }

  body.word-checkin-mine-page .word-checkin-side-stats strong {
    font-size: 22px;
  }

  body.word-checkin-mine-page .word-checkin-side-stats [data-word-checkin-coin-total] {
    color: #d99000;
  }

  body.word-checkin-mine-page .word-checkin-side-stats [data-word-checkin-ranking-played] {
    color: #2f7cf6;
  }

  body.word-checkin-mine-page .word-checkin-stat-tier {
    gap: 4px;
    padding: 8px 6px;
  }

  body.word-checkin-mine-page .word-checkin-stat-tier-badge {
    width: 32px;
    height: 32px;
    object-fit: contain;
  }

  body.word-checkin-mine-page .word-checkin-stat-tier-label {
    max-width: 100%;
    overflow: hidden;
    color: #86909c;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.word-checkin-mine-page .word-checkin-rank-button {
    min-height: 32px;
    padding: 0 12px;
    font-size: 12px;
    box-shadow: none;
  }

  body.word-checkin-mine-page .word-checkin-stat-user,
  body.word-checkin-mine-page .word-checkin-profile-link {
    display: none;
  }

  body.word-checkin-mine-page .word-checkin-next-card .word-checkin-feature-list.is-scrollable {
    max-height: min(42vh, 280px);
  }

  body.word-checkin-profile-page .word-checkin-mine-dashboard .python-side-info-card {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 24px rgba(64, 128, 224, 0.1);
  }

  body.word-checkin-mine-page .word-checkin-stat-user {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background:
      radial-gradient(circle at 92% 10%, rgba(255, 209, 102, 0.24) 0 46px, transparent 47px),
      #f7faff;
  }

  body.word-checkin-mine-page .word-checkin-stat-user-main {
    display: grid;
    min-width: 0;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
  }

  body.word-checkin-mine-page .word-checkin-stat-avatar {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.88);
    border-radius: 999px;
    background: linear-gradient(135deg, #ffd166, #ff90e8);
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(29, 33, 41, 0.12);
  }

  body.word-checkin-mine-page .word-checkin-stat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  body.word-checkin-mine-page .word-checkin-stat-user-main div {
    display: grid;
    min-width: 0;
    gap: 2px;
  }

  body.word-checkin-mine-page .word-checkin-stat-user-main span {
    color: #4080e0;
    font-size: 12px;
    font-weight: 900;
  }

  body.word-checkin-mine-page .word-checkin-stat-user-main strong {
    overflow: hidden;
    color: #1d2129;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.word-checkin-mine-page .word-checkin-stat-user-main small {
    overflow: hidden;
    color: #59718f;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.word-checkin-mine-page .word-checkin-profile-link {
    justify-self: end;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff5d6 0%, #ffd166 100%);
    color: #1d2129;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(29, 33, 41, 0.1);
  }

  body.word-checkin-settings-page .word-checkin-settings-mobile-head {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    margin-bottom: 12px;
    text-align: center;
  }

  body.word-checkin-settings-page .word-checkin-settings-mobile-head strong {
    color: #1d2129;
    font-size: 18px;
    font-weight: 900;
  }

  body.word-checkin-settings-page .word-checkin-settings-back {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #4080e0;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(64, 128, 224, 0.12);
  }

  body.word-checkin-profile-page .word-checkin-profile-form {
    gap: 18px;
    padding: 18px 14px;
    border-radius: 22px;
  }

  body.word-checkin-profile-page .python-profile-hero {
    padding-top: 8px;
  }

  body.word-checkin-profile-page .word-checkin-rank-popover--desktop {
    display: none !important;
  }

  body.word-checkin-mine-page .word-checkin-rank-drawer:not(.is-open) {
    display: flex !important;
  }

  body.word-checkin-mine-page .word-pk-mobile-drawer-head {
    display: flex !important;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 2px 0;
  }

  body.word-checkin-mine-page .word-pk-mobile-drawer-head strong {
    color: #1d2b46;
    font-size: 18px;
    font-weight: 1000;
  }

  body.word-checkin-mine-page .word-pk-mobile-drawer-head button {
    display: grid;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    place-items: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #4e5969;
    background: rgba(232, 240, 250, 0.92);
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
  }

  body.word-checkin-mine-page [data-mobile-drawer="coin-board"] .word-checkin-rank-head--drawer-sub {
    grid-template-columns: 1fr;
    justify-items: end;
    padding-right: 0;
    margin-bottom: 4px;
  }

  body.word-checkin-profile-page .word-checkin-rank-row {
    grid-template-columns: 22px 34px minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 48px;
    padding: 8px;
  }

  body.word-checkin-profile-page .word-checkin-rank-avatar {
    width: 34px;
    height: 34px;
  }

  body.word-checkin-profile-page .word-checkin-feature-list div {
    padding: 12px;
    border-radius: 16px;
  }

  body.word-checkin-profile-page .brand h1 {
    font-size: 22px;
  }

  body.word-checkin-profile-page .python-profile-form-grid {
    grid-template-columns: 1fr;
  }

  body.word-checkin-profile-page .python-profile-region-picker {
    grid-template-columns: 1fr;
  }

  body.word-checkin-profile-page .python-profile-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  body.word-checkin-profile-page .python-profile-button {
    width: 100%;
  }

  body.word-checkin-mine-page .word-checkin-mine-logout-panel {
    padding: 0 0 88px;
  }

  body.word-checkin-mine-page .word-checkin-mine-logout-button {
    width: 100%;
    min-width: 0;
    padding: 14px 18px;
    border-radius: 18px;
  }

  body.word-checkin-mine-page .word-checkin-mine-today-panel {
    border: 1px solid rgba(91, 155, 213, 0.16);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 250, 255, 0.96) 100%);
    box-shadow: 0 12px 28px rgba(91, 155, 213, 0.12);
  }

  body.word-checkin-mine-page .word-checkin-mine-today-head {
    display: grid;
    gap: 6px;
  }

  body.word-checkin-mine-page .word-checkin-mine-today-summary {
    color: #59718f;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
  }

  body.word-checkin-mine-page .word-checkin-mine-task-list {
    display: grid;
    gap: 10px;
    overflow: visible;
  }

  body.word-checkin-mine-page .word-checkin-mine-task-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
    border: 1px solid rgba(91, 155, 213, 0.12);
    border-radius: 18px;
    background: rgba(248, 251, 255, 0.88);
    color: #1d2129;
    text-decoration: none;
  }

  body.word-checkin-mine-page .word-checkin-mine-task-card.is-primary {
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto;
    border-color: rgba(91, 155, 213, 0.34);
    background:
      radial-gradient(circle at 92% 8%, rgba(255, 209, 102, 0.22) 0 42px, transparent 43px),
      linear-gradient(135deg, rgba(232, 244, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
    box-shadow: 0 10px 22px rgba(91, 155, 213, 0.14);
  }

  body.word-checkin-mine-page .word-checkin-mine-task-card.is-primary .word-checkin-mine-task-action {
    grid-column: 1 / -1;
  }

  body.word-checkin-mine-page .word-checkin-mine-task-card.is-done {
    border-color: rgba(22, 132, 91, 0.2);
    background: rgba(232, 248, 240, 0.72);
    overflow: visible;
  }

  body.word-checkin-mine-page .word-checkin-mine-task-card.is-disabled {
    border-color: rgba(134, 144, 156, 0.12);
    background: rgba(248, 249, 250, 0.88);
    color: #86909c;
  }

  body.word-checkin-mine-page .word-checkin-mine-task-icon {
    position: relative;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 0 0 1px rgba(91, 155, 213, 0.12);
  }

  body.word-checkin-mine-page .word-checkin-mine-task-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
  }

  body.word-checkin-mine-page .word-checkin-mine-task-icon.is-pk img {
    width: 38px;
    height: auto;
    max-height: 30px;
  }

  body.word-checkin-mine-page .word-checkin-mine-task-icon.is-ranking img {
    width: 36px;
    height: 36px;
  }

  body.word-checkin-mine-page .word-checkin-mine-task-card.is-primary .word-checkin-mine-task-icon {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 6px 14px rgba(91, 155, 213, 0.12);
  }

  body.word-checkin-mine-page .word-checkin-mine-task-card.is-done .word-checkin-mine-task-icon {
    z-index: 1;
    overflow: visible;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 0 0 2px rgba(22, 132, 91, 0.24);
  }

  body.word-checkin-mine-page .word-checkin-mine-task-card.is-done .word-checkin-mine-task-icon::after {
    content: "";
    position: absolute;
    right: -3px;
    bottom: -3px;
    z-index: 2;
    width: 17px;
    height: 17px;
    border: 2px solid #fff;
    border-radius: 50%;
    background-color: #16845b;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6.2 5 8.7 9.5 3.8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px 11px;
    box-shadow: 0 2px 6px rgba(22, 132, 91, 0.28);
  }

  body.word-checkin-mine-page .word-checkin-mine-task-card.is-disabled .word-checkin-mine-task-icon {
    opacity: 0.72;
    filter: grayscale(0.35);
  }

  body.word-checkin-mine-page .word-checkin-mine-task-body {
    display: grid;
    gap: 6px;
    min-width: 0;
  }

  body.word-checkin-mine-page .word-checkin-mine-task-top {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
  }

  body.word-checkin-mine-page .word-checkin-mine-task-top strong {
    overflow: hidden;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.word-checkin-mine-page .word-checkin-mine-task-body small {
    color: #59718f;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
  }

  body.word-checkin-mine-page .word-checkin-mine-task-card.is-done .word-checkin-mine-task-body small {
    color: #16845b;
  }

  body.word-checkin-mine-page .word-checkin-mine-task-card.is-disabled .word-checkin-mine-task-body small {
    color: #86909c;
  }

  body.word-checkin-mine-page .word-checkin-mine-task-badge {
    flex: none;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.4;
    white-space: nowrap;
  }

  body.word-checkin-mine-page .word-checkin-mine-task-badge.is-hot {
    background: rgba(255, 209, 102, 0.28);
    color: #b26a00;
  }

  body.word-checkin-mine-page .word-checkin-mine-task-progress {
    display: block;
    overflow: hidden;
    height: 6px;
    border-radius: 999px;
    background: rgba(134, 144, 156, 0.14);
  }

  body.word-checkin-mine-page .word-checkin-mine-task-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7eb6e6, #5b9bd5);
    transition: width 0.2s ease;
  }

  body.word-checkin-mine-page .word-checkin-mine-task-card.is-done .word-checkin-mine-task-progress span {
    background: linear-gradient(90deg, #7dd3a8, #16845b);
  }

  body.word-checkin-mine-page .word-checkin-mine-task-reward {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #4a86b8;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.35;
  }

  body.word-checkin-mine-page .word-checkin-mine-task-reward-coin {
    width: 1.15em;
    height: 1.15em;
    flex: none;
    object-fit: contain;
  }

  body.word-checkin-mine-page .word-checkin-mine-task-card.is-done .word-checkin-mine-task-reward.is-claimed {
    color: #16845b;
  }

  body.word-checkin-mine-page .word-checkin-mine-task-reward.is-claimed {
    color: #86909c;
  }

  body.word-checkin-mine-page .word-checkin-mine-task-action {
    display: grid;
    min-height: 40px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #7eb6e6 0%, #5b9bd5 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(91, 155, 213, 0.22);
  }

  body.word-checkin-mine-page .word-checkin-mine-task-card.is-secondary-action {
    grid-template-rows: auto auto;
  }

  body.word-checkin-mine-page .word-checkin-mine-task-card.is-secondary-action .word-checkin-mine-task-action {
    grid-column: 1 / -1;
  }

  body.word-checkin-mine-page .word-checkin-mine-task-card.is-dual-action {
    grid-template-rows: auto auto;
  }

  body.word-checkin-mine-page .word-checkin-mine-task-actions {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.word-checkin-mine-page .word-checkin-mine-task-actions.is-single {
    grid-template-columns: minmax(0, 1fr);
  }

  body.word-checkin-mine-page .word-checkin-mine-task-actions .word-checkin-mine-task-action {
    min-height: 44px;
    font-size: 13px;
    text-decoration: none;
  }

  body.word-checkin-mine-page .word-checkin-mine-task-action.is-secondary {
    min-height: 44px;
    background: rgba(126, 182, 230, 0.18);
    color: #4a86b8;
    box-shadow: none;
}

  body.word-checkin-mine-page .word-checkin-rank-button,
  body.word-checkin-mine-page .word-checkin-mine-moments-entry {
    min-height: 44px;
  }

  body.word-checkin-mine-page .word-checkin-mine-recent-panel {
    border: 1px dashed rgba(134, 144, 156, 0.22);
    background: rgba(248, 249, 250, 0.82);
    box-shadow: none;
  }

  body.word-checkin-mine-page .word-checkin-mine-recent-head {
    display: grid;
    gap: 4px;
  }

  body.word-checkin-mine-page .word-checkin-mine-recent-head small {
    color: #86909c;
    font-size: 12px;
    font-weight: 800;
  }

  body.word-checkin-mine-page .word-checkin-mine-release-list {
    display: grid;
    gap: 10px;
  }

  body.word-checkin-mine-page .word-checkin-mine-release-list.is-scrollable {
    max-height: min(42vh, 280px);
    overflow: auto;
    padding-right: 2px;
  }

  body.word-checkin-mine-page .word-checkin-mine-release-card {
    position: relative;
    display: grid;
    gap: 4px;
    padding: 12px 12px 12px 14px;
    border: 1px solid rgba(134, 144, 156, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
  }

  body.word-checkin-mine-page .word-checkin-mine-release-card.is-new {
    border-color: rgba(255, 143, 102, 0.28);
    background:
      linear-gradient(135deg, rgba(255, 248, 240, 0.96) 0%, rgba(255, 255, 255, 0.92) 100%);
  }

  body.word-checkin-mine-page .word-checkin-mine-release-new {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 2px 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff9f68, #ff7b54);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1.4;
  }

  body.word-checkin-mine-page .word-checkin-mine-release-card em {
    width: max-content;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(134, 144, 156, 0.12);
    color: #59718f;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
  }

  body.word-checkin-mine-page .word-checkin-mine-release-card.is-new em {
    background: rgba(255, 159, 104, 0.16);
    color: #d9652d;
  }

  body.word-checkin-mine-page .word-checkin-mine-release-card strong {
    color: #1d2129;
    font-size: 15px;
    font-weight: 900;
  }

  body.word-checkin-mine-page .word-checkin-mine-release-card span {
    color: #4e5969;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
  }

  body.word-checkin-mine-page .word-checkin-mine-release-card small {
    color: #86909c;
    font-size: 12px;
    font-weight: 800;
  }

  body.word-checkin-mine-page .word-checkin-mine-release-card.is-empty {
    background: rgba(255, 255, 255, 0.62);
  }
}

/* Pad (761-1366): extension pages follow scaled desktop layout, not mobile fullscreen map. */
@media (min-width: 761px) and (max-width: 1366px) {
  body.word-checkin-page.is-test-view,
  body.word-checkin-page.is-test-index-view {
    overflow-x: hidden;
    overflow-y: auto;
    width: auto;
    height: auto;
    min-height: 100%;
    margin: 0;
  }

  body.word-checkin-page.is-test-view .python-skeleton-shell,
  body.word-checkin-page.is-test-index-view .python-skeleton-shell {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    left: auto !important;
    display: block !important;
    overflow: visible !important;
    width: 1400px !important;
    max-width: 1400px !important;
    height: auto !important;
    min-height: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 24px 24px !important;
    border-radius: 0 !important;
    transform: none !important;
    transform-origin: top center !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    gap: unset !important;
    background: transparent !important;
  }

  body.word-checkin-page.is-test-view .python-learning-topbar,
  body.word-checkin-page.is-test-index-view .python-learning-topbar {
    display: grid !important;
  }

  body.word-checkin-page.is-test-view .word-checkin-test-rail {
    display: flex !important;
  }

  body.word-checkin-page.is-test-view .python-learning-dashboard,
  body.word-checkin-page.is-test-view .word-checkin-dashboard {
    position: relative !important;
    grid-column: auto !important;
    grid-row: auto !important;
    height: auto !important;
    min-height: 0 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
    margin: 0 !important;
  }

  body.word-checkin-page.is-test-view .word-checkin-map-card {
    display: grid !important;
    height: auto !important;
    min-height: min(760px, calc(100vh - 150px)) !important;
    gap: 18px !important;
    margin: 0 !important;
    padding: 22px !important;
    border: 1px solid rgba(64, 128, 224, 0.12) !important;
    border-radius: 16px !important;
    overflow: visible !important;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: 0 10px 24px rgba(64, 128, 224, 0.1) !important;
  }

  body.word-checkin-page.is-test-view .word-checkin-heading {
    display: flex !important;
  }

  body.word-checkin-page.is-test-view .word-checkin-map-stage {
    width: 100% !important;
    height: auto !important;
    min-height: min(680px, calc(100vh - 240px)) !important;
    aspect-ratio: auto !important;
    border-radius: 12px !important;
    box-shadow: inset 0 0 0 1px rgba(64, 128, 224, 0.08) !important;
  }

  body.word-checkin-page.is-test-view .word-checkin-test-back {
    display: inline-flex !important;
  }

  body.word-checkin-page.is-test-index-view .python-learning-dashboard,
  body.word-checkin-page.is-test-index-view .word-checkin-dashboard {
    display: grid !important;
    flex: unset !important;
    flex-direction: unset !important;
    grid-template-columns: minmax(0, 1fr) !important;
    height: auto !important;
    min-height: 0 !important;
  }

  body.word-checkin-page.is-test-index-view .word-checkin-extension-board {
    flex: unset !important;
    min-height: 0 !important;
    height: auto !important;
  }

  body.word-checkin-page.is-test-index-view .word-checkin-extension-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
  }
}

/* PK / 赛考排位：全屏主舞台 + 底部抽屉排行榜（仅移动端） */
@media (max-width: 760px) {
  body.word-checkin-pk-page,
  body.word-checkin-ranking-page {
    --wc-mobile-tabbar-height: calc(62px + env(safe-area-inset-bottom));
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh !important;
    max-height: 100dvh !important;
    min-height: 0 !important;
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  body.word-checkin-pk-page .python-skeleton-shell,
  body.word-checkin-ranking-page .python-skeleton-shell {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: none !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding:
      max(12px, env(safe-area-inset-top))
      14px
      var(--wc-mobile-tabbar-height) !important;
    overflow: hidden !important;
    border-radius: 0 !important;
  }

  body.word-checkin-pk-page .word-pk-game-layout,
  body.word-checkin-ranking-page .ranking-layout {
    display: block !important;
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 !important;
  }
  body.word-checkin-pk-page .word-pk-game-main,
  body.word-checkin-ranking-page .ranking-main {
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body.word-checkin-pk-page .word-pk-match-stage,
  body.word-checkin-pk-page .word-pk-arena,
  body.word-checkin-ranking-page .ranking-king-lobby,
  body.word-checkin-ranking-page .ranking-battle-arena {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
  }

  body.word-checkin-pk-page .word-pk-arena.is-playing,
  body.word-checkin-pk-page .word-pk-arena {
    display: flex !important;
    flex-direction: column !important;
  }

  body.word-checkin-pk-page .word-pk-arena.is-playing .word-pk-question,
  body.word-checkin-pk-page .word-pk-question {
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  body.word-checkin-ranking-page .ranking-battle-board {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body.word-checkin-ranking-page .ranking-battle-question-wrap {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body.word-checkin-ranking-page .ranking-cyber-panel.is-question,
  body.word-checkin-ranking-page .ranking-cyber-panel.is-options {
    min-height: 0 !important;
  }

  body.word-checkin-ranking-page .ranking-cyber-panel.is-options {
    flex: 1 1 auto !important;
  }

  body.word-checkin-ranking-page .ranking-cyber-frame {
    max-height: 100%;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  body.word-checkin-ranking-page .ranking-results {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  body.word-checkin-pk-page .word-pk-game-layout > .word-pk-board-shell:not([data-mobile-drawer]) {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
  }

  body.word-checkin-pk-page [data-mobile-drawer="pk-board"] {
    height: min(72vh, 620px) !important;
    max-height: calc(100dvh - 84px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
  }

  body.word-checkin-ranking-page .ranking-king-fx {
    transform: translateZ(0);
    contain: strict;
  }

  body.word-checkin-pk-page .word-pk-mobile-drawer-trigger,
  body.word-checkin-ranking-page .word-pk-mobile-drawer-trigger {
    display: inline-flex !important;
    z-index: 96 !important;
  }

  body.word-checkin-pk-page.word-pk-playing .word-pk-mobile-drawer-trigger,
  body.word-checkin-pk-page:has(.word-pk-arena.is-playing) .word-pk-mobile-drawer-trigger {
    display: none !important;
  }

  body.word-checkin-pk-page.word-checkin-mobile-drawer-open,
  body.word-checkin-ranking-page.word-checkin-mobile-drawer-open,
  body.word-checkin-mine-page.word-checkin-mobile-drawer-open {
    overflow: hidden !important;
  }

  /* 不用 body::after 全屏蒙层（会盖住抽屉内容和底部 Tab） */
  body.word-checkin-pk-page.word-checkin-mobile-drawer-open::after,
  body.word-checkin-ranking-page.word-checkin-mobile-drawer-open::after,
  body.word-checkin-mine-page.word-checkin-mobile-drawer-open::after {
    content: none !important;
    display: none !important;
  }

  body.word-checkin-pk-page.word-checkin-mobile-drawer-open .python-skeleton-shell,
  body.word-checkin-ranking-page.word-checkin-mobile-drawer-open .python-skeleton-shell {
    overflow: visible !important;
  }

  body.word-checkin-pk-page.word-checkin-mobile-drawer-open .word-pk-game-main,
  body.word-checkin-ranking-page.word-checkin-mobile-drawer-open .ranking-main {
    position: relative;
    z-index: 1;
  }

  body.word-checkin-pk-page.word-checkin-mobile-drawer-open .word-pk-game-main::before,
  body.word-checkin-ranking-page.word-checkin-mobile-drawer-open .ranking-main::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 20;
    border-radius: inherit;
    background: rgba(12, 22, 48, 0.42);
    backdrop-filter: blur(6px);
    pointer-events: auto;
  }

  body.word-checkin-pk-page.word-checkin-mobile-drawer-open .word-pk-mobile-drawer-trigger,
  body.word-checkin-ranking-page.word-checkin-mobile-drawer-open .word-pk-mobile-drawer-trigger {
    opacity: 0;
    pointer-events: none;
  }

  body.word-checkin-pk-page [data-mobile-drawer],
  body.word-checkin-ranking-page [data-mobile-drawer],
  body.word-checkin-mine-page [data-mobile-drawer] {
    position: fixed !important;
    right: 0 !important;
    bottom: calc(68px + env(safe-area-inset-bottom)) !important;
    left: 0 !important;
    z-index: 150 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px;
    width: auto !important;
    height: min(72vh, 620px) !important;
    max-height: calc(100dvh - 84px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 12px 14px 14px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border: 1px solid rgba(126, 168, 220, 0.2);
    border-radius: 26px 26px 0 0;
    background: #f7fbff;
    box-shadow: 0 -24px 54px rgba(12, 22, 48, 0.22);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 24px));
    transition: transform 0.24s ease, opacity 0.24s ease, visibility 0.24s ease;
  }

  body.word-checkin-pk-page [data-mobile-drawer].is-open,
  body.word-checkin-ranking-page [data-mobile-drawer].is-open,
  body.word-checkin-mine-page [data-mobile-drawer].is-open {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  body.word-checkin-pk-page .word-pk-mobile-drawer-head,
  body.word-checkin-ranking-page .word-pk-mobile-drawer-head,
  body.word-checkin-mine-page .word-pk-mobile-drawer-head {
    display: flex !important;
  }

  body.word-checkin-pk-page [data-mobile-drawer] > section,
  body.word-checkin-ranking-page [data-mobile-drawer] > section,
  body.word-checkin-mine-page [data-mobile-drawer] > section {
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible !important;
    -webkit-overflow-scrolling: touch;
  }

  body.word-checkin-pk-page [data-mobile-drawer] .word-pk-board-panel,
  body.word-checkin-pk-page [data-mobile-drawer] .word-pk-side-card,
  body.word-checkin-ranking-page [data-mobile-drawer] .word-pk-side-card,
  body.word-checkin-mine-page [data-mobile-drawer] .word-pk-side-card {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body.word-checkin-pk-page [data-mobile-drawer] .word-pk-board-list-main,
  body.word-checkin-pk-page [data-mobile-drawer] .word-pk-board-list,
  body.word-checkin-ranking-page [data-mobile-drawer] .ranking-board-scroll,
  body.word-checkin-ranking-page [data-mobile-drawer] .ranking-match-record-list,
  body.word-checkin-mine-page [data-mobile-drawer] .ranking-board-scroll {
    max-height: none !important;
    overflow: visible !important;
  }

  /* Keep the PK lobby visible even when older 100% height rules meet auto-height parents. */
  body.word-checkin-pk-page .word-pk-game-layout,
  body.word-checkin-pk-page .word-pk-game-layout > .word-pk-game-main {
    height: auto !important;
    min-height: calc(100dvh - var(--wc-mobile-tabbar-height) - max(12px, env(safe-area-inset-top)) - 18px) !important;
  }

  body.word-checkin-pk-page .word-pk-game-layout .word-pk-match-stage,
  body.word-checkin-pk-page .word-pk-game-layout .word-pk-arena {
    height: auto !important;
    min-height: calc(100dvh - var(--wc-mobile-tabbar-height) - max(12px, env(safe-area-inset-top)) - 18px) !important;
  }
}

@media (max-width: 760px) {
  body.word-checkin-page .word-checkin-mobile-tabbar {
    min-height: calc(66px + env(safe-area-inset-bottom));
  }

  body.word-checkin-mine-page .python-skeleton-shell {
    padding-bottom: calc(116px + env(safe-area-inset-bottom)) !important;
  }

  body.word-checkin-pk-page .word-pk-back,
  body.word-checkin-ranking-page .ranking-cyber-back,
  body.word-checkin-ranking-wrong-page .ranking-wrong-mobile-back,
  body.word-checkin-pk-page .word-pk-mobile-drawer-trigger,
  body.word-checkin-ranking-page .word-pk-mobile-drawer-trigger,
  .python-login-close,
  .python-login-links button {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (min-width: 761px) {
  body.word-checkin-mine-page .word-checkin-rank-drawer {
    display: none !important;
  }
}

/* Keep the shared mobile tabbar identical on Words / PK / Ranking / Mine. */
@media (max-width: 760px) {
  body.word-checkin-page .word-checkin-mobile-tabbar,
  body.word-checkin-profile-page .word-checkin-mobile-tabbar,
  body.word-checkin-moments-page .word-checkin-mobile-tabbar {
    right: 10px !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    left: 10px !important;
    width: auto !important;
    max-width: 430px !important;
    min-height: auto !important;
    margin: 0 auto !important;
    padding: 7px !important;
    border: 1px solid rgba(79, 124, 178, 0.14) !important;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.86) !important;
    box-shadow:
      0 18px 42px rgba(24, 58, 102, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
  }

  body.word-checkin-page .word-checkin-mobile-tab,
  body.word-checkin-profile-page .word-checkin-mobile-tab,
  body.word-checkin-moments-page .word-checkin-mobile-tab {
    min-height: 50px !important;
    border-radius: 18px !important;
    color: #6d8198 !important;
  }

  body.word-checkin-page .word-checkin-mobile-tab.is-active,
  body.word-checkin-profile-page .word-checkin-mobile-tab.is-active,
  body.word-checkin-moments-page .word-checkin-mobile-tab.is-active {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(224, 241, 255, 0.92)) !important;
    color: #226fb6 !important;
    box-shadow:
      0 8px 20px rgba(63, 132, 202, 0.15),
      inset 0 0 0 1px rgba(91, 155, 213, 0.18) !important;
  }
}

/* Final guard: full-width rectangular tabbar wins over older floating styles. */
@media (max-width: 760px) {
  body.word-checkin-page .word-checkin-mobile-tabbar,
  body.word-checkin-profile-page .word-checkin-mobile-tabbar,
  body.word-checkin-moments-page .word-checkin-mobile-tabbar {
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: none !important;
    min-height: calc(62px + env(safe-area-inset-bottom)) !important;
    margin: 0 !important;
    padding: 6px 12px calc(6px + env(safe-area-inset-bottom)) !important;
    border: 0 !important;
    border-top: 1px solid rgba(79, 124, 178, 0.13) !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow:
      0 -8px 24px rgba(24, 58, 102, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: saturate(160%) blur(18px) !important;
    -webkit-backdrop-filter: saturate(160%) blur(18px) !important;
  }

  body.word-checkin-page .word-checkin-mobile-tab,
  body.word-checkin-profile-page .word-checkin-mobile-tab,
  body.word-checkin-moments-page .word-checkin-mobile-tab {
    position: relative !important;
    min-height: 50px !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #6d8198 !important;
    box-shadow: none !important;
  }

  body.word-checkin-page .word-checkin-mobile-tab::before,
  body.word-checkin-profile-page .word-checkin-mobile-tab::before,
  body.word-checkin-moments-page .word-checkin-mobile-tab::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 50%;
    width: 22px;
    height: 3px;
    border-radius: 999px;
    background: transparent;
    transform: translateX(-50%);
    transition: background 0.16s ease, width 0.16s ease;
  }

  body.word-checkin-page .word-checkin-mobile-tab.is-active,
  body.word-checkin-profile-page .word-checkin-mobile-tab.is-active,
  body.word-checkin-moments-page .word-checkin-mobile-tab.is-active {
    background:
      linear-gradient(180deg, rgba(226, 242, 255, 0.72), rgba(226, 242, 255, 0)) !important;
    color: #226fb6 !important;
    box-shadow: none !important;
  }

  body.word-checkin-page .word-checkin-mobile-tab.is-active::before,
  body.word-checkin-profile-page .word-checkin-mobile-tab.is-active::before,
  body.word-checkin-moments-page .word-checkin-mobile-tab.is-active::before {
    width: 28px;
    background: #4a9be8;
  }
}

