@media (max-width: 768px) {
  .m-wc-page {
    background:
      radial-gradient(circle at 16% 0%, rgba(8, 119, 232, 0.12), transparent 32%),
      radial-gradient(circle at 96% 7%, rgba(245, 158, 11, 0.18), transparent 34%),
      linear-gradient(180deg, #f2f8ff 0%, #f7fbff 52%, #f8fbff 100%);
  }

  .m-wc-page.with-bottom-action {
    padding-bottom: calc(204px + env(safe-area-inset-bottom));
  }

  .m-wc-page.room-page {
    padding-bottom: calc(108px + env(safe-area-inset-bottom));
  }

  .m-wc-hero,
  .m-wc-card,
  .m-wc-match-card,
  .m-wc-room-card,
  .m-wc-rank-card {
    border: 1px solid rgba(16, 24, 40, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 36px rgba(15, 47, 88, 0.09);
  }

  .m-wc-hero {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 14px;
    align-items: center;
    margin: 0 0 14px;
    padding: 20px 16px;
    background:
      radial-gradient(circle at 88% 0%, rgba(250, 204, 21, 0.26), transparent 34%),
      linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
  }

  .m-wc-hero.compact {
    grid-template-columns: 58px 1fr;
  }

  .m-wc-hero > span,
  .m-wc-icon {
    display: inline-grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 999px;
    background: #fff2cf;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 20px rgba(154, 79, 5, 0.08);
  }

  .m-wc-hero .m-icon {
    width: 40px;
    height: 40px;
  }

  .m-wc-hero h1 {
    margin: 0;
    color: #101828;
    font-size: 25px;
    font-weight: 950;
    line-height: 1.15;
  }

  .m-wc-hero p {
    margin: 6px 0 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.45;
  }

  .m-wc-hero b {
    align-self: start;
    border-radius: 999px;
    padding: 6px 10px;
    background: #dcfce7;
    color: #16a34a;
    font-size: 12px;
  }

  .m-wc-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 17px 0 10px;
  }

  .m-wc-section-head h2 {
    margin: 0;
    color: #101828;
    font-size: 20px;
    font-weight: 950;
  }

  .m-wc-section-head span {
    color: #0877e8;
    font-size: 13px;
    font-weight: 850;
  }

  .m-wc-actions,
  .m-wc-bottom-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .m-wc-actions {
    margin: 12px 0 4px;
  }

  .m-wc-bottom-actions {
    position: fixed;
    right: 14px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    left: 14px;
    z-index: 30;
    border-radius: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 -10px 26px rgba(15, 47, 88, 0.1);
  }

  .m-wc-gold-button,
  .m-wc-light-button {
    min-height: 54px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 950;
  }

  .m-wc-gold-button {
    background: linear-gradient(135deg, #f59e0b, #c36a05);
    color: #fff;
    box-shadow: 0 14px 28px rgba(195, 106, 5, 0.22);
  }

  .m-wc-light-button {
    border: 1px solid rgba(245, 158, 11, 0.24);
    background: #fff7e8;
    color: #9a4f05;
  }

  .m-wc-live-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 0 8px;
    scrollbar-width: none;
  }

  .m-wc-live-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 86px 1fr;
    flex: 0 0 250px;
    align-items: center;
    min-height: 104px;
    border-radius: 18px;
    padding: 13px 12px 23px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 47, 88, 0.08);
  }

  .m-wc-live-card span {
    display: grid;
    justify-items: center;
    gap: 5px;
    min-width: 0;
  }

  .m-wc-live-card b {
    max-width: 72px;
    overflow: hidden;
    color: #344054;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .m-wc-live-card strong {
    color: #101828;
    font-size: 26px;
    font-weight: 950;
    text-align: center;
  }

  .m-wc-live-card small {
    position: absolute;
    right: 0;
    bottom: 6px;
    left: 0;
    color: #98a2b3;
    font-size: 11px;
    font-weight: 750;
    text-align: center;
  }

  .m-wc-match-list {
    display: grid;
    gap: 13px;
  }

  .m-wc-match-card {
    padding: 14px;
    background:
      radial-gradient(circle at 96% 0%, rgba(245, 158, 11, 0.17), transparent 30%),
      #ffffff;
  }

  .m-wc-match-card.hot {
    border-color: rgba(245, 158, 11, 0.22);
  }

  .m-wc-match-card.featured {
    margin-bottom: 14px;
  }

  .m-wc-match-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #0877e8;
    font-size: 12px;
    font-weight: 900;
  }

  .m-wc-match-head b {
    border-radius: 999px;
    padding: 5px 9px;
    background: #fff2cf;
    color: #9a4f05;
  }

  .m-wc-topic {
    display: block;
    margin-top: 10px;
    color: #101828;
    font-size: 18px;
    font-weight: 950;
    line-height: 1.35;
  }

  .m-wc-versus {
    display: grid;
    grid-template-columns: 1fr 48px 1fr;
    align-items: center;
    gap: 8px;
    margin: 14px 0;
  }

  .m-wc-team-face {
    display: grid;
    min-width: 0;
    justify-items: center;
    gap: 7px;
    border-radius: 16px;
    padding: 13px 8px;
  }

  .m-wc-team-face.blue {
    background: #eef7ff;
    color: #0877e8;
  }

  .m-wc-team-face.gold {
    background: #fff7e8;
    color: #9a4f05;
  }

  .m-wc-team-face span:last-child {
    max-width: 100%;
    overflow: hidden;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .m-wc-versus i {
    display: inline-grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 13px;
    background: #111827;
    color: #fff;
    font-style: normal;
    font-weight: 950;
  }

  .m-wc-support > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
  }

  .m-wc-support p {
    height: 10px;
    overflow: hidden;
    margin: 8px 0;
    border-radius: 999px;
    background: #ffe8c7;
  }

  .m-wc-support i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #0877e8;
  }

  .m-wc-rank-card,
  .m-wc-card,
  .m-wc-room-card {
    padding: 15px;
  }

  .m-wc-card h2,
  .m-wc-room-card strong {
    display: block;
    margin: 0 0 10px;
    color: #101828;
    font-size: 18px;
    font-weight: 950;
  }

  .m-wc-card p,
  .m-wc-card small,
  .m-wc-room-card small {
    color: #667085;
    line-height: 1.55;
  }

  .m-wc-rank-row {
    display: grid;
    grid-template-columns: 26px 42px 1fr;
    gap: 10px;
    align-items: center;
    padding: 9px 0;
  }

  .m-wc-rank-row + .m-wc-rank-row {
    border-top: 1px solid rgba(16, 24, 40, 0.07);
  }

  .m-wc-rank-row > b {
    color: #0877e8;
    font-size: 18px;
  }

  .m-wc-rank-row strong,
  .m-wc-rank-row small {
    display: block;
  }

  .m-wc-rank-row small {
    color: #667085;
    font-size: 12px;
    margin-top: 2px;
  }

  .m-wc-support-grid {
    display: grid;
    gap: 12px;
    margin: 12px 0;
  }

  .m-wc-support-card {
    position: relative;
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(16, 24, 40, 0.08);
    border-radius: 20px;
    padding: 14px;
    background: #fff;
    text-align: left;
    box-shadow: 0 14px 30px rgba(15, 47, 88, 0.07);
  }

  .m-wc-support-card.blue.active {
    border-color: rgba(8, 119, 232, 0.34);
    background: #eef7ff;
  }

  .m-wc-support-card.gold.active,
  .m-wc-support-card.active {
    border-color: rgba(245, 158, 11, 0.42);
    background: #fff7e8;
  }

  .m-wc-support-card strong,
  .m-wc-support-card small {
    display: block;
  }

  .m-wc-support-card strong {
    color: #101828;
    font-size: 18px;
    font-weight: 950;
  }

  .m-wc-support-card small {
    margin-top: 4px;
    color: #667085;
    font-size: 13px;
  }

  .m-wc-support-card b {
    border-radius: 999px;
    padding: 6px 9px;
    background: #dcfce7;
    color: #16a34a;
    font-size: 12px;
  }

  .m-wc-support-card.disabled {
    opacity: 0.55;
  }

  .m-wc-agent-list {
    display: grid;
    gap: 10px;
  }

  .m-wc-agent-card {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(16, 24, 40, 0.08);
    border-radius: 16px;
    padding: 10px;
    background: #f8fbff;
    text-align: left;
  }

  .m-wc-agent-card.active {
    border-color: rgba(8, 119, 232, 0.42);
    background: #eef7ff;
  }

  .m-wc-agent-card strong,
  .m-wc-agent-card small {
    display: block;
  }

  .m-wc-agent-card small {
    color: #0877e8;
    font-size: 12px;
    font-weight: 850;
  }

  .m-wc-room-info {
    display: grid;
    gap: 8px;
    margin: 12px 0;
  }

  .m-wc-room-info span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #344054;
    font-weight: 850;
  }

  .m-wc-code {
    margin: 14px 0;
    border-radius: 18px;
    padding: 18px;
    background: #111827;
    color: #fff;
    font-size: 32px;
    font-weight: 950;
    letter-spacing: 8px;
    text-align: center;
  }

  .m-wc-pulse {
    display: grid;
    justify-items: center;
    gap: 7px;
    border-radius: 18px;
    padding: 18px;
    background: #f0fdf4;
    color: #16a34a;
    animation: m-wc-breathe 1.25s ease-in-out infinite;
  }

  .m-wc-pulse i {
    width: 42px;
    height: 42px;
    border: 4px solid rgba(22, 163, 74, 0.28);
    border-top-color: #16a34a;
    border-radius: 999px;
    animation: m-wc-spin 1s linear infinite;
  }

  .m-wc-full {
    width: 100%;
    margin-top: 12px;
  }

  .m-wc-flag,
  .m-wc-emoji,
  .m-wc-icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 47, 88, 0.08);
    overflow: hidden;
    vertical-align: middle;
  }

  .m-wc-flag {
    object-fit: cover;
  }

  .m-wc-flag.large,
  .m-wc-emoji.large,
  .m-wc-icon.large {
    width: 54px;
    height: 54px;
  }

  .m-wc-flag.small,
  .m-wc-emoji.small,
  .m-wc-icon.small {
    width: 34px;
    height: 34px;
  }

  .m-wc-flag.tiny,
  .m-wc-emoji.tiny,
  .m-wc-icon.tiny {
    width: 24px;
    height: 24px;
  }

  .m-wc-icon .m-icon {
    width: 28px;
    height: 28px;
  }

  .m-wc-dialog[hidden] {
    display: none;
  }

  .m-wc-dialog {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.36);
  }

  .m-wc-dialog-card {
    width: min(100%, 340px);
    border-radius: 22px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.2);
  }

  .m-wc-dialog-card strong {
    color: #101828;
    font-size: 20px;
    font-weight: 950;
  }

  .m-wc-dialog-card p {
    color: #667085;
  }

  .m-wc-dialog-card input {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(16, 24, 40, 0.1);
    border-radius: 14px;
    padding: 0 12px;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .m-wc-dialog-card div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
  }

  .m-wc-toast {
    position: fixed;
    right: 50px;
    bottom: calc(100px + env(safe-area-inset-bottom));
    left: 50px;
    z-index: 80;
    border-radius: 14px;
    padding: 12px;
    background: rgba(17, 24, 39, 0.88);
    color: #fff;
    font-weight: 850;
    text-align: center;
  }

  .m-wc-loading {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 30px;
  }

  .m-wc-loading span {
    width: 42px;
    height: 42px;
    border: 4px solid rgba(8, 119, 232, 0.2);
    border-top-color: #0877e8;
    border-radius: 999px;
    animation: m-wc-spin 0.9s linear infinite;
  }

  @keyframes m-wc-spin {
    to {
      transform: rotate(360deg);
    }
  }

  @keyframes m-wc-breathe {
    0%,
    100% {
      box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.18);
      transform: scale(1);
    }
    50% {
      box-shadow: 0 0 0 12px rgba(22, 163, 74, 0);
      transform: scale(1.015);
    }
  }
}
