.mobile-bottom-nav {
  display: none;
}

:root {
  --main-purple-area-bg-mobile: url("assets/mainback.png") center top / cover no-repeat, #34255a;
  --subpage-subject-bg-mobile: url("assets/mobile-pupurle.png") center top / 100% 100% no-repeat, #34255a;
}

@media (max-width: 768px) {
  :root {
    --h5-shell-bg: rgba(9, 16, 37, 0.86);
    --h5-shell-border: rgba(255, 255, 255, 0.12);
    --h5-shell-shadow: 0 18px 48px rgba(6, 12, 30, 0.24);
    --h5-card-shadow: 0 20px 38px rgba(19, 31, 61, 0.14);
    --h5-accent: #ff7a30;
    --h5-accent-strong: #ff5a00;
    --h5-card-radius: 28px;
  }

  body {
    background: #eff5ff;
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }

  .page-bg {
    background:
      radial-gradient(circle at 15% 20%, rgba(85, 196, 255, 0.42), transparent 28%),
      radial-gradient(circle at 82% 18%, rgba(255, 146, 66, 0.26), transparent 20%),
      linear-gradient(180deg, #0a5fd8 0%, #0e78ef 28%, #14367b 62%, #eef4ff 62%, #eef4ff 100%);
  }

  .planet-1 {
    width: 150px;
    height: 150px;
    left: -76px;
    top: 150px;
    bottom: auto;
    opacity: 0.35;
  }

  .planet-2 {
    width: 54px;
    height: 54px;
    top: 86px;
    right: 18px;
    opacity: 0.38;
  }

  .decor-star-1 {
    right: 12px;
    top: 150px;
  }

  .decor-star-2 {
    right: 84px;
    top: 108px;
  }

  .decor-star-3 {
    right: 24px;
    bottom: 42%;
  }

  .decor-star-4 {
    left: 18px;
    top: 220px;
  }

  .header {
    position: sticky;
    top: 0;
    z-index: 80;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
    background: linear-gradient(180deg, rgba(8, 20, 48, 0.86), rgba(8, 20, 48, 0.2) 70%, transparent);
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .header-left {
    width: auto;
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
  }

  nav {
    display: none;
  }

  .logo-icon {
    width: auto;
    height: auto;
    min-width: 100px;
    border-radius: 16px;
    padding: 9px 12px;
    font-size: 14px;
    line-height: 1.05;
    box-shadow: 0 10px 22px rgba(8, 22, 51, 0.22);
  }

  .header-right {
    width: auto;
    flex-shrink: 0;
    text-align: right;
    font-size: 11px;
  }

  #currentDateTime {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 999px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.2;
    font-weight: 700;
  }

  .hero {
    min-height: auto;
    padding: 0 0 0;
  }

  .hero-balls,
  .hero-coin {
    display: none;
  }

  .hero-inner {
    min-height: 248px;
    padding: 14px 16px 24px;
    border-radius: 0;
    overflow: hidden;
    align-items: flex-end;
    justify-content: center;
    background:
      linear-gradient(180deg, rgba(3, 10, 29, 0.02), rgba(6, 14, 34, 0.42)),
      url("38a7eb26.png") 34% center / cover no-repeat,
      linear-gradient(135deg, #1568ee 0%, #28a1ff 52%, #1568ee 100%);
    box-shadow: none;
  }

  .hero-inner::before {
    content: "";
    position: absolute;
    inset: auto -40px -44px auto;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 154, 68, 0.32), transparent 68%);
    pointer-events: none;
  }

  .page-home .hero-inner {
    min-height: 274px;
  }

  .countdown-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .countdown-label {
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 16px;
    color: #112847;
    font-weight: 700;
  }

  .countdown-label > span:first-child {
    padding: 0;
    background: transparent;
    color: #0f2c52;
    border: none;
  }

  .countdown-label .tag {
    padding: 8px 18px;
    border-radius: 999px;
    background: #ffeab7;
    border-color: #ffeab7;
    color: #21314d;
    font-weight: 700;
  }

  .countdown-timer {
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
  }

  .countdown-timer .time-block {
    min-width: 0;
    width: 80px;
    max-width: 80px;
    border-radius: 10px;
    padding: 16px 0 14px;
    font-size: 44px;
    letter-spacing: 1px;
    background: rgba(18, 31, 47, 0.96);
    color: #ffd51c;
    box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.06);
  }

  .countdown-timer .colon {
    align-self: center;
    margin-top: -8px;
    font-size: 38px;
    color: rgba(24, 32, 43, 0.8);
    font-weight: 900;
    line-height: 1;
  }

  .deadline-text {
    max-width: none;
    padding: 0;
    border-radius: 0;
    font-size: 12px;
    line-height: 1.45;
    background: transparent;
    color: #fff;
    border: none;
    font-weight: 700;
  }

  .page-home .current-draw {
    margin: -20px 0 0;
    padding: 18px 16px 36px;
    border-radius: 0;
    background: url("assets/orign-back-mobile.png") center top / 100% 100% no-repeat;
    box-shadow: none;
    text-align: center;
  }

  .page-home .current-draw::before {
    display: none;
  }

  .page-home .current-period {
    margin-bottom: 16px;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 16px;
    background: #ffefcf;
  }

  .page-home .current-balls {
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.0625rem;
    margin-bottom: 18px;
  }

  .page-home .current-balls .ball.large {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .page-home .current-balls .ball-item {
    align-items: center;
    gap: 0.25rem;
    flex: 1 1 0;
    max-width: 2rem;
    min-width: 0;
  }

  .page-home .current-balls .plus {
    color: #fff;
    flex: 0 0 0.5rem;
    font-size: clamp(0.75rem, 3vw, 0.875rem);
    padding-top: 0.5rem;
    margin: 0;
    text-align: center;
  }

  .page-home .current-draw .zodiac {
    color: #fff;
    font-size: clamp(0.5rem, 2.1vw, 0.625rem);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
  }

  .page-home .action-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .page-home .verify-wrap {
    width: 100%;
  }

  .page-home .verify-tip {
    display: none;
  }

  .page-home .action-buttons .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: none;
    background: #fff8f2;
    border-color: #ffd1b8;
    color: #f95b00;
  }

  .history-section,
  .video-list-section {
    padding: 26px 16px 32px;
  }

  .history-title,
  .video-list-title {
    font-size: 22px;
    margin-bottom: 16px;
    color: #132347;
    padding-left: 6px;
  }

  .lottery-item {
    padding: 18px 16px;
    border-radius: 24px;
    gap: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--h5-card-shadow);
  }

  .lottery-item:hover {
    transform: none;
    box-shadow: var(--h5-card-shadow);
  }

  .lottery-item-left {
    width: 100%;
    gap: 12px;
  }

  .lottery-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .lottery-item-time {
    font-size: 13px;
    color: #6e7890;
  }

  .lottery-item-time-row {
    gap: 6px;
  }

  .lottery-item-time-label {
    font-size: 13px;
  }

  .lottery-item-balls {
    gap: 8px 6px;
  }

  .lottery-item-balls .plus {
    color: var(--h5-accent);
  }

  .lottery-item .btn {
    width: 100%;
    justify-content: center;
    border-radius: 16px;
    padding: 13px 16px;
    font-weight: 700;
  }

  .ball.large {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .ball.small {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .ball-item {
    gap: 4px;
  }

  .zodiac {
    font-size: 11px;
  }

  .page-home .history-section {
    margin-top: -20px;
    z-index: 10;
    padding: 22px 16px 40px;
    background: var(--main-purple-area-bg-mobile);
    border-radius: 54% 54% 0 0 / 18px 18px 0 0;
  }

  .page-home .history-title {
    width: fit-content;
    margin: 0 auto 0;
    padding: 10px 24px 10px 26px;
    border: 2px solid rgba(255, 245, 226, 0.88);
    border-radius: 4px;
    font-size: 0;
    color: transparent;
    cursor: pointer;
  }

  .page-home .history-title::before {
    content: attr(data-mobile-label);
    font-size: 16px;
    color: #fff;
    font-weight: 700;
  }

  .page-home .history-title::after {
    content: "⌄";
    display: inline-block;
    margin-left: 8px;
    font-size: 22px;
    line-height: 1;
    color: #fff;
    vertical-align: -1px;
    transition: transform 0.2s ease;
  }

  .page-home #historyList {
    display: block;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.28s ease, margin-top 0.2s ease, opacity 0.2s ease;
  }

  .page-home .history-section.is-open .history-title::after {
    transform: rotate(180deg);
  }

  .page-home .history-section.is-open #historyList {
    max-height: 120rem;
    margin-top: 1rem;
    opacity: 1;
    pointer-events: auto;
  }

  .page-home #historyList .lottery-item-home {
    padding: 8px;
    border-radius: 14px;
  }

  .page-home #historyList .lottery-item-home .lottery-item-left {
    gap: 8px;
  }

  .page-home #historyList .lottery-item-home .lottery-item-balls {
    gap: 6px 4px;
  }

  .page-home #historyList .lottery-item-home .lottery-item-time-row {
    margin-top: 2px;
  }

  .page-announcement .lottery-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin: 0 8px 12px;
    border-radius: 12px;
    padding: 14px 12px;
    box-shadow: none;
  }

  .page-announcement .lottery-item-left {
    gap: 10px;
  }

  .page-announcement .lottery-item-header {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .page-announcement .lottery-item-period {
    padding: 6px 14px;
    background: #ffefcf;
  }

  .page-announcement .lottery-item .btn {
    width: auto;
    min-width: 92px;
    align-self: start;
    border-radius: 6px;
    padding: 11px 16px;
    background: linear-gradient(135deg, #ff8a3d, #ff5a00);
    color: #fff;
    border-color: #ff7a2c;
  }

  .page-announcement .lottery-item-balls .plus {
    color: #616b78;
  }

  .page-announcement .lottery-item-time {
    font-size: 12px;
  }

  .subpage-transition {
    display: none;
  }

  .subpage-content {
    max-width: none;
    width: 100%;
    padding: 20px 8px 24px;
    margin-top: 0;
    background: var(--main-purple-area-bg-mobile);
    border-radius: 36px 36px 0 0;
  }

  .subpage-title {
    padding: 0 8px;
    margin-bottom: 14px;
    font-size: 26px;
    line-height: 1.08;
    color: #fff;
  }

  .content-card {
    padding: 0 0 20px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .sub-tabs {
    margin: 0 8px 18px;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.68);
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
  }

  .sub-tabs::-webkit-scrollbar {
    display: none;
  }

  .sub-tab {
    flex-shrink: 0;
    padding: 0 0 10px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 700;
  }

  .sub-tab.active {
    color: #fff;
    background: transparent;
    box-shadow: none;
    border-bottom: 2px solid #fff;
  }

  .filter-bar {
    width: 100%;
    gap: 10px;
  }

  .filter-btn {
    border-radius: 4px;
    padding: 10px 16px;
    font-weight: 700;
    border-color: #e9d398;
    background: transparent;
    color: #f7e7c3;
  }

  .search-input {
    min-width: 0;
    width: 100%;
    min-height: 44px;
    border-radius: 4px;
  }

  .search-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
  }

  .page-announcement .announcement-title-row {
    align-items: flex-start;
    gap: 14px;
    margin: 0 8px 18px;
  }

  .page-announcement .announcement-subtitle {
    display: none;
  }

  .page-announcement .subpage-title {
    display: none;
  }

  .page-announcement .filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-announcement .filter-btn.active,
  .page-video .filter-btn.active {
    background: #f9ebd8;
    border-color: #f9ebd8;
    color: #ff5a00;
  }

  .page-announcement .search-input,
  .page-video .search-input {
    grid-column: 1 / -1;
    border-color: rgba(255, 255, 255, 0.72);
    background-color: transparent;
    color: #fff;
  }

  .mobile-highlight-draw {
    width: 100vw;
    min-height: 9.75rem;
    margin: -20px 0 0;
    padding: 1rem 1rem 1.5rem;
    background: url("assets/orign-back-mobile.png") center top / 100% 100% no-repeat;
    background-repeat: no-repeat;
    border-radius: 0;
    overflow: hidden;
    text-align: center;
  }

  .mobile-highlight-period {
    display: inline-block;
    margin-bottom: 16px;
    padding: 8px 18px;
    border-radius: 999px;
    background: #ffefcf;
    color: #2c2f38;
    font-size: 16px;
    font-weight: 700;
  }

  .mobile-highlight-period .num,
  .page-home .current-period .num {
    color: #ff6428;
    text-decoration: none;
  }

  .mobile-highlight-balls {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px 6px;
    flex-wrap: wrap;
  }

  .mobile-highlight-balls .plus {
    color: #fff;
    font-size: 20px;
    padding-top: 6px;
  }

  .mobile-highlight-balls .zodiac {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
  }

  .page-video .hero-inner {
    min-height: 274px;
  }

  .page-video .video-hero-desc {
    margin: 0;
    padding: 22px 8px 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
  }

  .page-video .video-hero-desc h1 {
    padding: 0 8px;
    margin: 0 0 18px;
    font-size: 26px;
    text-align: left;
    color: #fff;
  }

  .page-video .video-desc-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 8px;
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.6;
    color: #fff;
  }

  .page-video .broadcast-notice {
    margin: 0 8px 18px;
    padding: 24px 18px;
    border-radius: 12px;
    background: #151126;
    text-align: left;
    font-size: 16px;
    line-height: 1.55;
    color: #fff;
  }

  .page-video .video-list-header {
    align-items: flex-start;
    gap: 14px;
    margin: 0 8px 18px;
  }

  .page-video .verify-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #5d47a4;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
  }

  .page-video .video-list-section {
    background: transparent;
    padding: 0 8px 24px;
  }

  .page-video .video-content-shell {
    border-radius: 0;
    background: transparent;
    overflow: hidden;
  }

  .page-video .video-list-title {
    display: none;
  }

  .page-video .video-grid {
    column-count: 1;
    column-gap: 0;
  }

  .page-video .video-card,
  .page-video .video-card.size-sm,
  .page-video .video-card.size-md,
  .page-video .video-card.size-lg {
    min-height: 186px;
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 10px;
    align-items: flex-start;
    justify-content: flex-end;
    background:
      linear-gradient(180deg, rgba(5, 12, 30, 0.12), rgba(8, 14, 28, 0.8)),
      url("38a7eb26.png") center / cover no-repeat,
      linear-gradient(135deg, #1778f0, #0b54c4);
    box-shadow: none;
    border: 6px solid #fff;
  }

  .page-video .video-card-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 8px;
    border-radius: 16px;
    font-size: 14px;
  }

  .page-video .video-card-period {
    font-size: 14px;
    font-weight: 700;
  }

  .page-video .video-card-play {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
  }

  .page-faq .subpage-content {
    --subject-shell-band-height-mobile: clamp(9.75rem, 56.3vw, 13.1875rem);
    position: relative;
    z-index: 10;
    margin: -20px 0 0;
    padding-top: 18px;
    overflow: hidden;
    background: transparent;
  }

  .page-faq .subpage-content::before,
  .page-faq .subpage-content::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    pointer-events: none;
  }

  .page-faq .subpage-content::before {
    top: 0;
    height: var(--subject-shell-band-height-mobile);
    z-index: -1;
    background: url("assets/mobile-pupurle.png") center top / 100% 100% no-repeat;
  }

  .page-faq .subpage-content::after {
    top: calc(var(--subject-shell-band-height-mobile) - 18px);
    bottom: 0;
    z-index: -2;
    background: var(--main-purple-area-bg-mobile);
  }

  .page-faq .faq-item {
    padding: 14px 14px 12px;
    margin: 0 8px 12px;
    border-radius: 12px;
    background: #fff;
    border-bottom: none;
  }

  .page-faq .faq-question {
    font-size: 16px;
    line-height: 1.6;
    color: #f15a1b;
    margin-bottom: 8px;
  }

  .page-faq .faq-answer {
    padding-left: 0;
    font-size: 14px;
    line-height: 1.78;
    color: #3f3f3f;
  }

  .page-about .content-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
  }

  .page-about .about-banner {
    display: none;
  }

  .page-about .sub-tabs {
    margin: 0;
    padding: 0 12px 10px;
    background: var(--main-purple-area-bg-mobile);
  }

  .page-about .about-intro {
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
    padding: 16px 16px 0;
    background: #fff;
  }

  .page-about .about-intro::before {
    content: "";
    display: block;
    height: 92px;
    margin: -16px -16px 16px;
    background:
      linear-gradient(135deg, rgba(9, 97, 213, 0.22), rgba(255, 146, 66, 0.18)),
      url("38a7eb26.png") center / cover no-repeat;
  }

  .page-about .about-section-title-wrap,
  .page-about .about-logo-center,
  .page-about .rules-text,
  .page-about .prize-table-wrap {
    margin-left: 16px;
    margin-right: 16px;
  }

  .page-about .about-section-title {
    font-size: 18px;
    margin-bottom: 18px;
  }

  .page-about .about-logo-center {
    margin-bottom: 22px;
  }

  .page-about .about-logo-center .logo-icon-big {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    font-size: 22px;
  }

  .page-about .rules-text {
    padding: 16px;
    border-radius: 0;
    background: #fff;
    border: 1px solid #a8a8a8;
  }

  .page-about .prize-table-wrap {
    border-radius: 0;
    overflow: auto;
  }

  .footer {
    padding: 0 16px calc(106px + env(safe-area-inset-bottom, 0px));
    background: transparent;
  }

  .page-announcement .footer,
  .page-video .footer,
  .page-faq .footer,
  .page-about .footer {
    display: none;
  }

  .page-home .footer {
    background: #fff;
    padding-top: 18px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    padding: 20px 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--h5-card-shadow);
  }

  .footer-logo {
    width: 54px;
    height: 54px;
    border-radius: 15px;
  }

  .footer-info {
    font-size: 12px;
    line-height: 1.8;
    color: #6e7690;
  }

  .page-home .footer-inner {
    gap: 8px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
    align-items: center;
  }

  .page-home .footer-info {
    color: #666;
    text-align: center;
  }

  .replay-modal-panel {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 32px);
    border-radius: 18px;
  }

  .replay-modal-top {
    padding: 18px 14px 12px;
  }

  .replay-modal-period {
    font-size: 21px;
    padding: 8px 16px;
    margin-bottom: 12px;
  }

  .replay-modal-balls {
    gap: 8px;
  }

  .replay-modal-balls .plus {
    font-size: 28px;
    margin: 0 2px;
  }

  .replay-modal-balls .ball.large {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }

  .replay-modal-balls .zodiac {
    font-size: 18px;
  }

  .replay-modal-time {
    font-size: 16px;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 110;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    border-radius: 0;
    background: #412a73;
    border: none;
    backdrop-filter: none;
    box-shadow: none;
  }

  .mobile-bottom-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 76px;
    gap: 4px;
    padding: 6px 2px;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
  }

  .mobile-bottom-link:last-child {
    border-right: none;
  }

  .mobile-bottom-icon {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    transition: none;
  }

  .mobile-bottom-link.active {
    color: #fff;
    background: #8d6af3;
  }

  .mobile-bottom-link.active .mobile-bottom-icon {
    background: transparent;
    box-shadow: none;
    transform: none;
  }
}

@media (max-width: 768px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body,
  button,
  input,
  textarea,
  select {
    font-size: 1rem;
  }

  .logo-icon {
    padding: 0.6rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 1rem;
  }

  .header-right,
  #currentDateTime {
    font-size: 0.6875rem;
  }

  #currentDateTime {
    min-height: 2.375rem;
    padding: 0.5rem 0.625rem;
  }

  .hero-inner {
    padding: 0.875rem 1rem 1.5rem;
  }

  .countdown-label {
    gap: 0.625rem;
    margin-bottom: 0.875rem;
    font-size: 0.9375rem;
  }

  .countdown-label .tag,
  .page-home .current-period,
  .mobile-highlight-period {
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
  }

  .countdown-timer {
    gap: 0.625rem;
    margin-bottom: 0.875rem;
  }

  .countdown-timer .time-block {
    width: 5rem;
    max-width: 5rem;
    padding: 1rem 0 0.875rem;
    font-size: 2.5rem;
    border-radius: 0.625rem;
  }

  .countdown-timer .colon {
    margin-top: -0.5rem;
    font-size: 2.125rem;
  }

  .deadline-text {
    font-size: 0.75rem;
  }

  .page-home .current-draw,
  .mobile-highlight-draw {
    padding: 1.125rem 1rem 2rem;
  }

  .page-home .current-balls .plus {
    flex-basis: 0.5rem;
    font-size: clamp(0.75rem, 3vw, 0.875rem);
    padding-top: 0.5rem;
  }

  .mobile-highlight-balls .plus {
    font-size: 1.25rem;
    padding-top: 0.375rem;
  }

  .page-home .current-draw .zodiac {
    font-size: clamp(0.5rem, 2.1vw, 0.625rem);
  }

  .mobile-highlight-balls .zodiac {
    font-size: 0.875rem;
  }

  .page-home .current-balls {
    gap: 0.0625rem;
  }

  .page-home .current-balls .ball.large {
    width: 100%;
    height: auto;
  }

  .page-home .action-buttons .btn {
    padding: 0.75rem 0.5rem;
    font-size: 0.8125rem;
  }

  .history-section,
  .video-list-section {
    padding: 1.625rem 1rem 2rem;
  }

  .history-title,
  .video-list-title {
    font-size: 1.375rem;
  }

  .lottery-item {
    padding: 1.125rem 1rem;
  }

  .lottery-item-time {
    font-size: 0.8125rem;
  }

  .lottery-item-time-label {
    font-size: 0.8125rem;
  }

  .lottery-item .btn {
    padding: 0.8125rem 1rem;
    font-size: 0.875rem;
  }

  .ball.large,
  .ball.small {
    width: 2.125rem;
    height: 2.125rem;
    font-size: 0.875rem;
  }

  .zodiac {
    font-size: 0.6875rem;
  }

  .page-home .history-title {
    padding: 0.625rem 1.5rem 0.625rem 1.625rem;
  }

  .page-home .history-title::before {
    font-size: 1rem;
  }

  .page-home .history-title::after {
    font-size: 1.375rem;
  }

  .page-announcement .lottery-item {
    padding: 0.875rem 0.75rem;
  }

  .page-announcement .lottery-item-period {
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
  }

  .page-announcement .lottery-item .btn {
    min-width: 5.75rem;
    padding: 0.6875rem 1rem;
    font-size: 0.8125rem;
  }

  .page-announcement .lottery-item-time {
    font-size: 0.75rem;
  }

  .subpage-content {
    padding: 1.25rem 0.5rem 1.5rem;
  }

  .subpage-title {
    font-size: 1.5rem;
  }

  .sub-tabs {
    margin: 0 0.5rem 1.125rem;
    gap: 0.625rem;
    padding-bottom: 0.625rem;
  }

  .sub-tab {
    padding-bottom: 0.625rem;
    font-size: 0.875rem;
  }

  .filter-btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }

  .search-input {
    min-height: 2.75rem;
    padding: 0.625rem 1rem 0.625rem 2rem;
    font-size: 0.875rem;
    background-position: 0.625rem center;
  }

  .page-announcement .announcement-title-row {
    margin: 0 0.5rem 1.125rem;
  }

  .page-video .video-hero-desc {
    padding: 1.5rem 1rem 2rem;
  }

  .page-video .video-hero-desc h1 {
    font-size: 1.625rem;
    padding: 0 0.5rem;
  }

  .page-video .video-desc-text,
  .page-video .broadcast-notice {
    font-size: 0.875rem;
  }

  .page-video .video-desc-text {
    padding: 0 0.5rem;
  }

  .page-video .broadcast-notice {
    padding: 1rem 1.5rem;
  }

  .page-video .video-card-logo {
    font-size: 0.875rem;
    border-radius: 0.75rem;
  }

  .page-video .video-card-period {
    font-size: 0.875rem;
  }

  .page-faq .faq-question {
    font-size: 1rem;
  }

  .page-faq .faq-answer,
  .page-about .about-intro,
  .page-about .rules-text,
  .footer-info {
    font-size: 0.875rem;
  }

  .page-about .about-section-title {
    font-size: 1.125rem;
  }

  .page-about .about-logo-center .logo-icon-big {
    font-size: 1.375rem;
  }

  .page-about .prize-table {
    font-size: 0.8125rem;
  }

  .footer {
    padding: 0 1rem calc(6.625rem + env(safe-area-inset-bottom, 0px));
  }

  .footer-info {
    line-height: 1.7;
  }

  .replay-modal-top {
    padding: 1rem 0.75rem 0.625rem;
  }

  .replay-modal-close {
    font-size: 1.75rem;
  }

  .replay-modal-period {
    padding: 0.5rem 1rem;
    font-size: 1.375rem;
  }

  .replay-modal-balls .plus {
    font-size: 1.875rem;
  }

  .replay-modal-balls .ball.large {
    width: 3.125rem;
    height: 3.125rem;
    font-size: 1.375rem;
  }

  .replay-modal-balls .zodiac {
    font-size: 1.125rem;
  }

  .replay-modal-time {
    font-size: 1rem;
  }

  .mobile-bottom-link {
    min-height: 4.75rem;
    padding: 0.375rem 0.125rem;
    font-size: 0.625rem;
  }

  .mobile-bottom-icon {
    font-size: 1.875rem;
  }
}

@media (max-width: 480px) {
  .page-home .hero-inner {
    min-height: 258px;
  }

  .page-home .current-balls .ball.large {
    width: 100%;
    height: auto;
  }

  .page-home .current-balls {
    gap: .5rem;
  }

  .page-home .current-balls .ball-item {
    max-width: 2rem;
  }

  .page-home .current-balls .plus {
    flex-basis: 0.18rem;
    font-size: 0.625rem;
    padding-top: 0.375rem;
  }

  .page-home .current-draw .zodiac {
    font-size: 0.4rem;
  }

  .countdown-timer .time-block {
    width: 4.625rem;
    max-width: 4.625rem;
    font-size: 2.25rem;
    border-radius: 0.5625rem;
  }

  .countdown-timer .colon {
    font-size: 2rem;
  }

  .page-home .current-draw,
  .mobile-highlight-draw {
    padding-left: 0.625rem;
    padding-right: 0.625rem;
  }

  .page-home .action-buttons {
    gap: 8px;
  }

  .mobile-bottom-nav {
    gap: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .mobile-bottom-icon {
    font-size: 1.625rem;
  }

  .mobile-bottom-link {
    font-size: 0.625rem;
    min-height: 4.625rem;
  }
}
