/* Desktop composition remains in style.css; all overrides are width-scoped. */
.mobile-event-meta { display: none; }
@media (max-width: 1699.98px) {
  .wide-list ul.event-highlights {
    flex-wrap: wrap;
    row-gap: 10px;
    font-size: clamp(20px, 2.45vw, 42px);
    letter-spacing: -0.04em;
  }
}

/* Compact desktops and landscape tablets. */
@media (max-width: 1199.98px) {
  .site-page { overflow-x: clip; }
  .container {
    width: 100%;
    max-width: 1100px;
    padding-inline: clamp(20px, 3vw, 36px);
  }
  .container .container { max-width: 100%; padding-inline: 0; }
  .header-inner .main-nav { margin-inline: 0; }
  .site-header .nav-list {
    flex-wrap: wrap;
    gap: 8px clamp(8px, 2vw, 24px);
    padding: 0;
  }
  .site-header .nav-item { font-size: clamp(18px, 2vw, 23px); }
  .site-header .nav-link { min-height: 44px; justify-content: center; }
  .site-header .nav-item.button { padding: 0 18px; }
  .hero-inner { height: clamp(310px, 36vw, 420px); }
  .hero-video { --hero-video-crop-top: 100px; }
  .information-section > .information-inner { max-width: 900px; }
  .information-section h2.information-title,
  .information-section h2.information-description {
    font-size: clamp(25px, 3.5vw, 40px);
  }
  .wide-list ul.event-highlights { margin-top: 56px; }
  .media-section { margin-top: 64px; }
  .media-social-link { width: 44px; height: 44px; }
  .schedule-section .schedule-inner {
    padding: 95px clamp(24px, 5vw, 60px) 70px;
  }
  .schedule-section .schedule-event-meta { margin-left: 0; }
  .schedule-header { gap: 24px; }
  .schedule-section .schedule-event-name {
    font-size: clamp(36px, 5.3vw, 62px);
    line-height: 1;
  }
  .schedule-section .schedule-event-organizer { margin-top: 0; font-size: 24px; }
  .tickets-section .ticket-artwork {
    display: grid;
    width: min(360px, 88vw);
    margin: 28px auto 0;
  }
  .ticket-artwork-image { display: none; }
  .ticket-card-image {
    display: block;
    grid-area: 1 / 1;
    width: 100%;
    height: auto;
  }
  /* The ticket details sit on the dark centre of the compact ticket artwork. */
  .ticket-card .ticket-details {
    position: absolute;
    z-index: 1;
    top: 48.5%;
    left: 53%;
    width: 82%;
    margin: 0;
    padding: 0;
    gap: 4px 8px;
    border: 0;
    background: transparent;
    color: #f3e9df;
    font-size: clamp(10px, 1.12vw, 12px);
    transform: translateX(-50%);
  }
  .ticket-card .ticket-details ul { margin: 0; }
  .ticket-card .ticket-details ul li { line-height: 1.18; }
  .ticket-card .ticket-description { font-size: 0.84em; line-height: 1.18; }
  .ticket-card .ticket-date { font-size: clamp(14px, 1.7vw, 18px); transform: none; }
  .ticket-card .purchase {
    position: static;
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    margin: 24px auto 0;
    transform: none;
  }
  .merch-section {
    padding-top: 100px;
    padding-bottom: 72px;
    background-size: auto 100%;
    background-position: center top;
  }
  .merch-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-inline: 0;
    padding: 36px 0 0;
  }
  .merch-list > .merch-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    width: 100%;
    padding: 0;
  }
  .merch-name {
    font-size: clamp(27px, 3vw, 36px);
    letter-spacing: 0.02em;
    text-align: center;
  }
  .merch-contents {
    width: 100%;
    gap: 8px;
    font-size: 14px;
    line-height: 1.5;
    margin: 12px auto 28px;
  }
  .merch-artwork { width: 100%; margin: auto 0 0; }
  .merch-artwork-image { width: 100%; height: auto; }
  .merch-card .purchase { flex-wrap: wrap; margin-top: 24px; gap: 10px; }
  .cosplay-columns,
  .collaborations-columns { gap: 32px; margin-top: 48px; }
  .cosplay-item-text,
  .collaboration-description { font-size: 20px; line-height: 1.4; letter-spacing: -0.3px; }
  .cosplay-list { gap: 18px; }
  .collaboration-description { margin-left: 0; }
  .collaboration-contact-button { display: block; max-width: 100%; margin: 36px auto 0; }
  .collaboration-mascot { display: none; }
  .side-learn-more {
    top: calc(100% - 48px - env(safe-area-inset-bottom, 0px));
    min-height: 48px;
    padding: 12px 24px 12px 22px;
    font-size: 30px;
    border-radius: 24px 0 0 24px;
  }
  .footer-inner { max-width: none; }
  .footer-mascot { width: 210px; margin-top: -30px; }
}

/* Portrait tablets: two bundles per row, with the third centered. */
@media (max-width: 991.98px) {
  .hero-inner { height: 34vw; }
  .hero-video { --hero-video-crop-top: 70px; }
  .cosplay-columns,
  .collaborations-columns { grid-template-columns: 1fr; gap: 44px; }
  .cosplay-columns > *,
  .collaborations-columns > * { min-width: 0; }
  .collaborations-creators { gap: 32px; }
  .schedule-section .schedule-venue { font-size: 28px; }
  .schedule-section .schedule-event-organizer { font-size: 20px; }
  .schedule-section h2.schedule-title { font-size: 56px; line-height: 1; }
  .ticket-stage::before { background-size: auto 650px; background-position: center top; }

  .merch-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px 36px;
    max-width: 760px;
    margin-inline: auto;
  }
  .merch-list > .merch-card:last-child {
    grid-column: 1 / -1;
    width: calc((100% - 36px) / 2);
    justify-self: center;
  }
  .merch-name { font-size: 36px; }
  .footer-social-list { gap: 32px; }
  .footer-social-link { width: 76px; height: 76px; }
  .footer-social-link img { max-width: 70px; max-height: 70px; }
}

/* Phones, including narrow landscape windows. */
@media (max-width: 767.98px) {
  :root { --corrector-width: 100vw; }
  .language-switcher {
    top: max(10px, env(safe-area-inset-top, 0px));
    right: max(10px, env(safe-area-inset-right, 0px));
    padding: 6px 8px;
    font-size: 11px;
  }
  .container { padding-inline: clamp(16px, 4.5vw, 28px); }
  .site-header {
    position: absolute;
    z-index: 5;
    inset: 0 0 auto;
    padding-top: max(43px, env(safe-area-inset-top, 0px));
  }
  .site-header .main-nav { display: none; }
  .mobile-event-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    color: var(--font-color);
    font-size: clamp(13px, 3.6vw, 22px);
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgb(0 0 0 / 70%);
  }
  .mobile-event-meta time { text-align: right; white-space: nowrap; }
  .hero-section {
    min-height: 0;
    padding: 0;
  }
  .hero-inner.container {
    width: 100%;
    max-width: 560px;
    height: auto;
    aspect-ratio: 1 / 0.78;
    padding: 0;
  }
  .hero-video { --hero-video-crop-top: 0px; top: 0; }
  .hero-video video {
    height: auto;
    aspect-ratio: 1;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent),
      linear-gradient(to bottom, transparent, #000 10%, #000 76%, transparent 100%);
    mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent),
      linear-gradient(to bottom, transparent, #000 10%, #000 76%, transparent 100%);
  }
  .hero-text-wrapper { width: min(100%, 360px); }
  .hero-date { font-size: clamp(78px, 20vw, 106px); }
  h1.hero-title { letter-spacing: -0.035em; }
  h1.hero-title .hero-title-first-word {
    width: 100%;
    height: auto;
    aspect-ratio: 420 / 190;
    margin-bottom: -16.667%;
  }
  h1.hero-title .hero-title-second-word { font-size: clamp(72px, 23vw, 91px); }
  html[lang='ka'] h1.hero-title .hero-title-first-word text { font-size: 42px; }
  html[lang='ka'] h1.hero-title .hero-title-second-word { font-size: 54px; }
  html[lang='ka'] h1.hero-title .hero-title-third-word text { font-size: 29px; }
  h1.hero-title .hero-title-third-word {
    width: 100%;
    height: auto;
    aspect-ratio: 420 / 110;
    margin-top: -10.714%;
  }
  .hero-ticket-button {
    margin-top: 16px;
    padding: 16px 28px;
    font-size: 36px;
  }
  .information-section { margin-top: 56px; }
  .information-section h2.information-title,
  .information-section h2.information-description {
    font-size: clamp(22px, 4.6vw, 30px);
    line-height: 1.2;
    overflow-wrap: break-word;
  }
  .wide-list { padding-inline: 16px; }
  .wide-list ul.event-highlights {
    margin-top: 36px;
    gap: 10px 16px;
    font-size: 18px;
    line-height: 1.4;
    white-space: normal;
    letter-spacing: -0.4px;
  }
  html[lang='ka'] .wide-list ul.event-highlights { font-size: 16px; letter-spacing: 0; }
  .event-highlight { display: flex; align-items: baseline; gap: 8px; text-align: left; }
  .event-highlight::before { content: '·'; color: #c99a52; }
  .event-highlight:not(:last-child)::after { content: none; }
  .media-section { margin-top: 40px; }
  .event-media {
    width: min(100%, 560px);
    height: auto;
    aspect-ratio: 3 / 4;
    margin-inline: auto;
  }
  .event-media video { object-fit: contain; }
  .event-media::after {
    background: linear-gradient(90deg, #000, transparent 8%, transparent 92%, #000);
  }
  .media-marquee { font-size: clamp(20px, 4.8vw, 28px); }
  .marquee-text { padding: 6px 18px; }
  .media-social-list {
    right: max(10px, calc((100% - 560px) / 2 + 10px));
    gap: 8px;
  }
  .media-social-link { background: rgb(0 0 0 / 45%); }
  .media-social-icon { width: 28px; height: 28px; }
  .schedule-section { margin-top: 40px; min-height: 850px; }
  .schedule-section .schedule-inner { padding: 60px 20px 80px; }
  .schedule-header { gap: 16px; }
  .schedule-header > * { min-width: 0; }
  .schedule-section .schedule-date { font-size: 34px; line-height: 1; }
  .schedule-section .schedule-venue { font-size: 20px; }
  .schedule-section .schedule-event-name {
    max-width: 220px;
    margin-left: auto;
    font-size: clamp(25px, 5.2vw, 38px);
    line-height: 1;
  }
  .schedule-section .schedule-event-organizer { font-size: 16px; }
  .schedule-section .section-eyebrow {
    margin-top: 40px;
    font-size: 23px;
    letter-spacing: -0.6px;
  }
  .schedule-section h2.schedule-title {
    font-size: clamp(34px, 7.6vw, 52px);
    line-height: 1.1;
    letter-spacing: -1px;
  }
  .schedule-section .schedule-list {
    width: max-content;
    max-width: 100%;
    margin: 70px auto 0;
    padding: 0;
    font-size: 20px;
    line-height: 1.55;
    text-shadow: 0 2px 8px #000;
  }
  .schedule-eyes-video,
  .schedule-eyes-still { object-position: 50% center; }
  .tickets-section { padding-top: 40px; }
  .site-main .section-heading .section-title {
    margin: 8px 0 12px;
    font-size: clamp(29px, 6.8vw, 42px);
    line-height: 1.1;
    letter-spacing: -1px;
    overflow-wrap: break-word;
  }
  .site-main .section-heading .section-eyebrow {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: -0.4px;
  }
  .site-main .section-description { font-size: 16px; line-height: 1.5; letter-spacing: 0; }
  .ticket-stage::before { background-size: auto 400px; }
  .ticket-card .ticket-details { margin-top: 0; padding-inline: 8px; font-size: 14px; }
  .ticket-card .ticket-description { font-size: 12px; }
  .ticket-card .ticket-date { font-size: 21px; }
  .purchase,
  .ticket-card .purchase { gap: 10px; }
  .purchase p { padding: 15px 16px; font-size: 16px; }
  .purchase a { min-height: 46px; padding: 15px 20px; font-size: 15px; }
  .merch-section {
    margin-top: 56px;
    padding: 60px 0 64px;
    background-size: auto 1050px;
  }
  .merch-list { grid-template-columns: 1fr; gap: 64px; max-width: 380px; }
  .merch-list > .merch-card:last-child { grid-column: auto; width: 100%; }
  .merch-name { font-size: 40px; }
  html[lang='ka'] .merch-name { font-size: 30px; line-height: 1.2; }
  .merch-contents { max-width: 320px; margin-bottom: 24px; }
  .merch-card .purchase { margin-top: 22px; }
  .cosplay-section,
  .collaborations-section { padding-top: 56px; }
  .cosplay-steps-image { width: 100%; height: auto; }
  .cosplay-columns,
  .collaborations-columns { margin-top: 36px; gap: 40px; }
  .cosplay-column-title,
  .collaboration-title { font-size: 21px; line-height: 1.3; margin-bottom: 18px; }
  .cosplay-item-text,
  .collaboration-description { font-size: 18px; line-height: 1.45; letter-spacing: 0; }
  .cosplay-list-item { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
  .cosplay-item-icon { width: 30px; height: 36px; margin-top: 3px; }
  .cosplay-register-button,
  .collaboration-contact-button { min-height: 76px; font-size: 42px; border-radius: 32px; }
  .side-learn-more {
    top: calc(100% - 38px - env(safe-area-inset-bottom, 0px));
    min-width: 0;
    min-height: 44px;
    padding: 11px 18px 11px 20px;
    font-size: 24px;
  }
  .location-section { padding-bottom: 36px; }
  .location-section .section-heading { margin-top: 64px; }
  .collaborations-section .venue-address { font-size: 18px; line-height: 1.5; letter-spacing: 0; }
  .location-map { height: clamp(280px, 65vw, 380px); margin: 24px auto 20px; }
  .location-section .location-note { line-height: 1.5; }
  .footer-inner { min-height: 0; }
  .footer-social-list { justify-content: center; gap: 24px; padding: 16px 0 32px; }
  .footer-social-link { width: 60px; height: 60px; }
  .footer-social-link img { max-width: 54px; max-height: 54px; }
  .footer-bottom { align-items: flex-end; gap: 12px; }
  .footer-credit {
    min-width: 0;
    max-width: 190px;
    margin: 0 0 28px;
    padding: 0;
    font-size: 16px;
    line-height: 1.4;
  }
  .footer-mascot {
    flex: 0 0 auto;
    width: clamp(115px, 30vw, 180px);
    margin: 0;
  }
}

/* The full-screen, oversized-video poster starts on very narrow phones. */
@media (max-width: 500px) {
  .hero-section {
    isolation: isolate;
    overflow: hidden;
    min-height: 110svh;
    padding-top: max(340px, 58svh, 54vw);
    padding-bottom: 24px;
  }

  .hero-inner.container {
    position: absolute;
    inset: 0;
    max-width: none;
    height: 100%;
    aspect-ratio: auto;
  }

  .hero-video video {
    position: absolute;
    top: -8svh;
    left: 50%;
    width: max(160vw, 115svh);
    max-width: none;
    transform: translateX(-50%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 76%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 76%, transparent 100%);
  }

  .hero-text-wrapper { width: min(78vw, 360px); }
  .hero-date { display: none; }
  h1.hero-title {
    filter: drop-shadow(2px 3px 1px rgb(0 0 0 / 65%));
  }
  h1.hero-title .hero-title-second-word { font-size: min(19.7vw, 91px); }
  .hero-ticket-button { margin-top: max(72px, 18svh); }
}

/* Touch devices cannot use these stage-light hover layers; skipping them avoids
   expensive repaints while the fixed Learn More button is on screen. */
@media (max-width: 520px) {
  .merch-card::before,
  .merch-card::after {
    display: none;
  }

  .merch-card,
  .merch-card .merch-artwork-image,
  .merch-name {
    transition: none;
  }
}

@media (max-width: 374.98px) {
  .wide-list ul.event-highlights { justify-content: flex-start; font-size: 17px; }
  .ticket-card .ticket-details { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; }
  .ticket-card .ticket-description { grid-column: 1; }
  .ticket-card .ticket-date { grid-column: 2; font-size: 12px; }
  .merch-name { font-size: 36px; }
  .footer-social-list { gap: 18px; }
}

@media (max-height: 500px) and (max-width: 1199.98px) {
  .side-learn-more {
    top: calc(100% - 32px - env(safe-area-inset-bottom, 0px));
    min-height: 44px;
    padding-block: 10px;
    font-size: 24px;
  }
}

/* Keep the floating CTA at the visual centre on tablets and phones. */
@media (max-width: 1200px) {
  .side-learn-more {
    top: 50%;
  }
}

