/* Mobile campaign refinement. All existing artwork and desktop styling stay intact. */
.mobile-section-link {
  display: none;
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 24px;
  }

  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
    font-size: 15px;
    line-height: 1.75;
  }

  .section-inner,
  .header-inner {
    width: min(calc(100% - 40px), 460px);
  }

  .site-header {
    border-bottom-color: #f0eae6;
    background: #fff;
    box-shadow: none;
  }

  .header-inner {
    min-height: 64px;
    justify-content: space-between;
    gap: 16px;
  }

  .brand-lockup {
    gap: 10px;
  }

  .brand-circle-k {
    height: 25px;
  }

  .brand-yaichi {
    height: 21px;
  }

  .brand-divider {
    height: 21px;
    background: #ddd6d1;
  }

  .mobile-section-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #615853;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
  }

  .mobile-section-link span {
    color: var(--red);
    font-size: 17px;
  }

  .mobile-section-link:focus-visible {
    outline: 3px solid rgba(20, 86, 184, 0.32);
    outline-offset: 3px;
  }

  .hero {
    border-bottom-width: 4px;
    background-position: center 42%;
  }

  .hero-layout {
    padding: 28px 0 30px;
    gap: 0;
    justify-items: center;
    text-align: center;
  }

  /* A single artwork instance moves ahead of dates on mobile. */
  .hero-copy {
    display: contents;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-title {
    order: 1;
    width: min(100%, 344px);
    margin: 0 auto 16px;
  }

  .hero-offer-banner {
    order: 2;
    width: min(100%, 344px);
    min-height: 108px;
    margin: 0;
    padding: 14px 18px 22px;
    border: 0;
    border-radius: 0;
    background: url("assets/section-tab-v1.webp") center / 100% 100% no-repeat;
    box-shadow: none;
    filter: drop-shadow(0 10px 16px rgba(183, 17, 24, 0.18));
  }

  .hero-offer {
    gap: 7px;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 0 2px 0 rgba(116, 0, 0, 0.4);
  }

  .hero-offer strong {
    color: #fff8d8;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 0;
  }

  .hero-prizes {
    order: 3;
    width: calc(100% + 12px);
    max-width: 460px;
    margin: 24px -6px 0;
  }

  .hero-prizes img {
    width: 100%;
    filter: drop-shadow(0 12px 12px rgba(67, 26, 12, 0.1));
  }

  .hero-lead {
    order: 4;
    margin: 6px 0 0;
    color: #51473f;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
  }

  .hero-date {
    order: 5;
    width: min(100%, 344px);
    margin: 20px 0 0;
    padding: 14px 0 0;
    border: 0;
    border-top: 1px solid rgba(120, 63, 43, 0.18);
    justify-content: center;
    gap: 0;
    color: #62564e;
    background: none;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.7;
    font-variant-numeric: tabular-nums;
  }

  .hero-date .draw-deadline {
    margin-top: 6px;
    font-weight: 700;
  }

  .hero-date .date-timezone {
    margin-top: 2px;
    color: #74645a;
    font-size: 11px;
  }

  .download-section {
    padding: 36px 0 30px;
    background: #fbf8f5;
    box-shadow: none;
    border-bottom: 1px solid #eee5de;
  }

  .download-layout {
    gap: 24px;
  }

  .download-copy {
    text-align: center;
  }

  .app-brand-lockup {
    gap: 14px;
    margin-bottom: 14px;
    justify-content: center;
  }

  .app-brand-lockup > img {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    box-shadow: 0 5px 12px rgba(32, 28, 26, 0.05);
  }

  .app-brand-lockup .section-kicker {
    margin-bottom: 5px;
    color: #827066;
    font-size: 11px;
    font-weight: 600;
  }

  .app-brand-lockup h2 {
    font-size: 24px;
    font-weight: 800;
  }

  .download-description {
    margin-bottom: 17px;
    color: #75665e;
    font-size: 14px;
    line-height: 1.75;
  }

  .store-badges {
    width: 100%;
    gap: 12px;
    justify-content: center;
  }

  .store-badges a {
    min-height: 48px;
  }

  .store-badges img {
    height: 40px;
  }

  .event-shortcut {
    padding-top: 22px;
    border-top-color: #e5dbd3;
  }

  .event-shortcut > div {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: center;
    gap: 16px;
  }

  .event-shortcut .section-kicker {
    margin: 0;
    color: #64564d;
    font-size: 13px;
    font-weight: 600;
  }

  .event-shortcut h3,
  .event-shortcut .shortcut-copy {
    display: none;
  }

  .event-shortcut .button {
    width: auto;
    min-height: 44px;
    padding: 0 15px;
    border: 1px solid #d9c9bc;
    border-radius: 6px;
    color: var(--red-dark);
    background: transparent;
    box-shadow: none;
    font-size: 13px;
    font-weight: 700;
  }

  .steps-section {
    padding: 40px 0 42px;
  }

  .steps-section::before {
    opacity: 0.045;
  }

  .campaign-tab {
    min-width: 0;
    min-height: 0;
    margin-bottom: 10px;
    margin-inline: auto;
    padding: 0;
    border-left: 0;
    display: block;
    color: var(--red-dark);
    background: none;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: none;
  }

  .section-heading {
    margin-bottom: 30px;
    text-align: center;
  }

  .section-heading h2,
  .details-layout h2 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
  }

  .steps-list {
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .steps-list li {
    position: relative;
    padding: 0 0 28px;
    border: 0;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 16px;
  }

  .steps-list li:not(:last-child)::before {
    position: absolute;
    top: 38px;
    bottom: 5px;
    left: 16px;
    width: 1px;
    background: #edc5b9;
    content: "";
  }

  .steps-list li:last-child {
    padding-bottom: 0;
  }

  .step-number {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: var(--red-dark);
    background: #fff0e9;
    box-shadow: none;
    font-size: 14px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
  }

  .steps-list h3 {
    margin: 5px 0 8px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
  }

  .steps-list p {
    color: #75665e;
    font-size: 14px;
    line-height: 1.8;
  }

  .details-section {
    padding: 38px 0 34px;
    border-top: 1px solid #eee5de;
    background: #faf8f6;
  }

  .details-layout {
    gap: 8px;
  }

  .details-layout h2 {
    margin-bottom: 16px;
    text-align: center;
  }

  .event-facts > div {
    padding: 16px 0;
    border-color: #e9e0d9;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px;
    align-items: baseline;
  }

  .event-facts dt {
    color: #756357;
    font-size: 12px;
    font-weight: 600;
  }

  .event-facts dd {
    color: #42372f;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.8;
    overflow-wrap: anywhere;
  }

  .terms-disclosure {
    margin-top: 18px;
    border-bottom: 0;
  }

  .terms-disclosure summary {
    min-height: 56px;
    padding: 15px 14px;
    border-radius: 6px;
    background: #f0e9e3;
    color: #6c3529;
    font-size: 14px;
    font-weight: 700;
  }

  .terms-state {
    font-size: 12px;
    font-weight: 500;
  }

  .terms-content {
    padding-top: 26px;
    border-top: 0;
    color: #675b52;
    font-size: 14px;
    line-height: 1.85;
  }

  .terms-content h3 {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 800;
  }

  .terms-content section {
    margin-bottom: 28px;
  }

  .terms-content li + li {
    margin-top: 10px;
  }

  .prize-table {
    font-size: 13px;
    line-height: 1.65;
  }

  .prize-table th,
  .prize-table td {
    padding: 13px 8px;
    border-color: #e9e0d9;
  }

  .site-footer {
    padding: 32px 0 38px;
    border-top: 3px solid var(--red);
  }

  .footer-brand-lockup {
    margin-bottom: 20px;
  }

  .footer-inner p {
    font-size: 11px;
    line-height: 1.8;
  }

  .mobile-action-bar {
    min-height: 76px;
    padding: 11px 16px max(11px, env(safe-area-inset-bottom));
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    border-top-color: #e9e1da;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -4px 18px rgba(57, 29, 13, 0.04);
  }

  .mobile-action-bar .button {
    min-height: 52px;
    padding-inline: 10px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 800;
  }

  .mobile-action-bar .button-outline {
    border: 2px solid var(--red);
    color: var(--red-dark);
    background: #fff;
    box-shadow: 0 3px 0 rgba(189, 23, 31, 0.12);
    font-size: 14px;
    font-weight: 900;
  }

  .mobile-action-bar .button-outline:hover {
    background: #fff3f1;
  }

  .mobile-action-bar .button-primary {
    box-shadow: 0 3px 0 #bd171f;
  }

  .mobile-action-bar .button-icon {
    width: 25px;
    height: 25px;
    border-radius: 6px;
  }
}

@media (max-width: 360px) {
  .section-inner,
  .header-inner {
    width: calc(100% - 32px);
  }

  .header-inner {
    min-height: 58px;
  }

  .brand-circle-k {
    height: 23px;
  }

  .brand-yaichi {
    height: 19px;
  }

  .hero-layout {
    padding-top: 24px;
  }

  .hero-offer {
    font-size: 16px;
  }

  .hero-offer strong {
    font-size: 28px;
  }

  .hero-prizes {
    margin-top: 21px;
  }

  .hero-date {
    font-size: 11px;
  }

  .store-badges {
    gap: 10px;
  }

  .store-badges img {
    height: 36px;
  }

  .event-facts > div {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px;
  }

  .mobile-action-bar {
    padding-inline: 12px;
    gap: 8px;
  }

  .mobile-action-bar .button {
    font-size: 13px;
  }

  .mobile-action-bar .button-outline {
    font-size: 13px;
  }
}
