@media (max-width: 980px) {
    .flavour-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        margin: 0 10%;
    }

    .flavour-card {
        border-radius: 22px;
    }
}

@media (max-width: 930px) {
    .ranking-character.is-animated .ranking-art {
        top: 1%;
    }
}

@media (max-width: 910px) {
    .ranking-character.is-animated .ranking-art {
        top: 4%;
    }
}

@media (max-width: 900px) {
    .ranking-character.is-animated .ranking-art {
        top: 7%;
    }
}

@media (max-width: 700px) {
  .site-header {
    min-height: 82px;
    padding: 24px 16px 0;
  }

  .brand-logo {
    width: 96px;
    height: 40px;
  }

  .app-shell {
    height: calc(100svh - 80px);
    /* overflow: hidden; */
  }

  .landing-screen {
    height: calc(100svh - 82px);
    overflow: hidden;
    padding: 8px min(8vw, 40px) 25px;
    grid-template-columns: 1fr;
    gap: 0px;
  }

  .landing-headline h1 {
    max-width: 540px;
    margin: 0 0 3px;
    font-size: clamp(24px, 4vh, 34px);
    line-height: 1.05;
  }

  .landing-art-quiz {
    width: min(90%, 420px);
    aspect-ratio: 1.7 / 1;
    margin: 10px auto 4px;
  }

  .landing-art-vote {
    width: min(100%, 320px);
    aspect-ratio: inherit;
    margin: 6px auto 4px;
  }

  .landing-lead {
    font-size: clamp(8px, 3vw, 14px);
    margin-bottom: 4px;
  }

  .landing-copy {
    min-height: 0;
    margin-bottom: 6px;
    font-size: clamp(8px, 3vw, 14px);
    margin-left: -16px;
    margin-right: -16px;
  }

  .landing-route .btn {
    min-height: 26px;
    padding: 7px 30px;
  }

  .quiz-screen {
    height: calc(100svh - 80px);
    overflow: hidden;
    padding: 8px 9vw 16px;
  }

  .progress-track {
    gap: 12px;
    margin-bottom: 0px;
  }

  .quiz-art-wrap {
    height: clamp(126px, 18svh, 200px);
    margin-bottom: 8px;
    margin-top: 8px;
  }

  .quiz-heading h1 {
    margin: 4px auto 4px;
    font-size: clamp(14px, 5vw, 22px);
  }

  .answer-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 8px;
  }

  .answer-card {
    min-height: 30px;
    padding: 8px 20px;
    border-radius: 12px;
  }

  .answer-copy strong {
    font-size: clamp(12px, 3.8vw, 18px);
  }

  .answer-copy small {
    font-size: clamp(8px, 3vw, 12px);
  }

  .answer-radio {
    width: 24px;
    height: 24px;
    border-width: 2px;
  }

  .quiz-controls {
    /* width: 100%; */
    margin-top: 12px;
  }

  .quiz-controls .btn {
    min-width: 100px;
    flex: 1;
    min-height: 30px;
  }

  .quiz-controls #quiz-back {
    flex: 0 0 96px;
  }

  .vote-screen {
    height: calc(100svh - 76px);
    overflow: hidden;
    padding: 12px 16px 20px;
  }

  .vote-heading h1 {
    margin: 4px auto 22px;
    font-size: clamp(24px, 7vw, 28px);
    /* width: 90%; */
  }

  .flavour-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 0;
  }

  .flavour-card {
    min-height: clamp(135px, 20svh, 150px);
    padding: 10px 8px 0;
    border-radius: 22px;
  }

  .flavour-card-title {
    font-size: clamp(12px, 3vw, 14px);
  }

  .flavour-card-subtitle {
    font-size: clamp(7px, 2vw, 14px);
  }

  .flavour-art {
    height: clamp(100px, 15svh, 150px);
  }

  .vote-controls {
    margin-top: 30px;
  }

  .vote-controls .btn {
    width: min(100%, 112px);
    min-width: 150px;
  }

  .result-screen {
    height: calc(100svh - 80px);
    overflow: hidden;
    padding: 0px 50px 20px;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .result-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .result-character-art {
    margin-left: -20px;
    margin-right: -20px;
  }

  .result-character-panel h1 {
    font-size: clamp(26px, 8vw, 34px);
  }

  .result-character {
    height: clamp(175px, 26svh, 240px);
  }

  .result-tagline {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
  }

  .result-product-block {
    grid-template-columns: 54px 1fr;
    gap: 15px;
    margin-right: -9vw;
    margin-left: -2vw;
  }

  .product-art {
    height: 90px;
    object-fit: contain;
    object-position: right;
    width: 100%;
  }

  .result-product-block h2 {
    font-size: clamp(18px, 6vw, 24px);
  }

  .result-product-block h3 {
    font-size: 17px;
  }

  .result-product-block p:not(.eyebrow) {
    font-size: 10px;
  }

  .result-product-details {
    max-width: 95%;
  }

  .pairing-title {
    margin: 16px 0 0.5vh;
    margin-top: 16px;
    text-align: center;
  }

  .pair-grid {
    gap: 0px;
  }

  .pair-art {
    height: 47px;
  }

  .pair-tile {
    font-size: 10px;
  }

  .result-actions {
    gap: 8px;
    margin-top: 16px;
  }

  .result-actions .btn {
    min-width: 0;
    /* flex: 1; */
    padding: 7px 16px;
    font-size: 15px;
  }

  .result-share-row {
    gap: 5px;
    margin-top: 26px;
    font-size: 12px;
  }

  .result-share-row .social-button {
    width: 16px;
    height: 16px;
  }

  .result-share-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .community-screen {
    height: calc(100svh - 80px);
    overflow: hidden;
    padding: 0 35px 20px;
  }

  .community-screen h1 {
    margin: 4px auto 4px;
    font-size: clamp(26px, 7vw, 30px);
    width: 75%;
  }

  .ranking-list {
    gap: 14px;
    overflow: hidden;
    padding: 12px 5.3vw;
    max-width: 450px;
  }

  .ranking-card {
    min-height: 50px;
    grid-template-columns: 35px 1fr;
    /* gap: 10px; */
    padding: 10px 20px 10px 10px;
    border-radius: 10px;
  }

  .ranking-card.is-champion {
    min-height: 55px;
    grid-template-columns: 25% 1fr;
    transform: scale(1.15);
    margin-bottom: 5px;
    margin-top: 5px;
    padding: 5px clamp(10px, 3.5vw, 50px) 5px 10px;
  }

  .ranking-art {
    max-height: 50px !important;
    width: 140%;
    margin-bottom: -9px;
    object-position: bottom;
  }

  .ranking-card.is-champion .ranking-character {
    max-height: 110px;
    height: clamp(58px, 9vw, 98px);
  }

  .ranking-card.is-champion .ranking-character .ranking-art {
    width: 155%;
    max-height: none !important;
    top: 3.5%;
    left: -35%;
    object-position: bottom center;
  }

  .ranking-icon {
    width: 25px;
    height: 25px;
    left: 4px;
    top: 4px;
    font-size: 16px;
  }

  .is-champion .ranking-icon {
    width: 30px;
    height: 30px;
    left: 8px;
    top: 8px;
    font-size: 19px;
  }

  .ranking-label {
    font-size: clamp(10px, 3vw, 19px);
  }

  .ranking-name {
    font-size: 12px;
  }

  .ranking-track {
    height: 11px;
    margin-top: 2px;
  }

  .community-signoff {
    margin: 1vh auto 1vh;
  }

  .community-signoff h2 {
    font-size: 20px;
    font-family: var(--font-body);
    font-weight: 900;
    width: 80%;
  }

  .community-signoff p {
    font-size: 12px;
    width: 85%;
    margin: auto;
  }

  .community-screen>.btn {
    min-width: 130px;
    margin-top: 13px;
  }

  .share-page {
    padding: 6px 16px 14px;
  }

  .share-kicker {
    font-size: 13px;
  }

  .share-hero h1 {
    font-size: clamp(32px, 12vw, 50px);
  }

  .share-tagline {
    font-size: 17px;
  }

  .share-character {
    height: clamp(160px, 50vw, 260px);
  }

  .share-quote {
    margin: 0 0 14px;
    font-size: 13px;
  }

  .share-product {
    grid-template-columns: 88px 1fr;
    gap: 12px;
  }

  .share-product-image {
    height: 80px;
  }

  .share-product h2 {
    font-size: clamp(20px, 6vw, 30px);
    font-family: var(--font-display);
    font-weight: 400;
  }

  .share-product h3 {
    font-size: 15px;
    font-family: var(--font-display);
    font-weight: 400;
  }

  .share-product p:not(.share-kicker) {
    font-size: 13px;
  }

  .share-pair-grid {
    gap: 8px;
  }

  .share-pair img {
    height: 56px;
  }

  .share-pair {
    font-size: 11px;
  }

  .share-socials {
    margin: 14px 0;
  }

  .social-button {
    width: 36px;
    height: 36px;
  }

  .qr-panel img {
    width: 110px;
  }

  .share-action-buttons {
    gap: 8px;
  }

  .share-action-buttons .btn {
    min-width: 100%;
    min-height: 44px;
  }

  .landing-text-wrap {
    height: auto;
    margin-top: 8px;
  }
}



@media (min-width: 701px) {
  .quiz-screen .progress-track { order: 0; }
  .quiz-screen .quiz-heading {order: 1;text-align: center;margin-top: min(25px, 1vh);margin-bottom: 15px;}
  .quiz-screen .quiz-art-wrap {order: 2;margin-bottom: 20px;}
  .quiz-screen .answer-grid {order: 3;margin-top: 0;}
  .quiz-screen .quiz-controls {order: 4;margin-top: min(40px, 3vh);}
}

@media (min-width: 701px) and (max-width: 1050px) {
  .landing-screen {
    padding-inline: 28px;
    gap: 24px;
  }

  .answer-grid {
    gap: 13px;
  }

  .result-screen {
    grid-template-columns: .8fr 1.2fr;
  }
}

@media (min-width: 900px) {
  .share-page {
    width: min(100%, 1420px);
    height: calc(100svh - 100px);
    overflow: hidden;
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    grid-template-areas: "hero product" "hero pairings" "hero actions";
    align-items: start;
    column-gap: clamp(34px, 5vw, 82px);
    row-gap: 4px;
  }

  .share-hero {
    grid-area: hero;
  }

  .share-character {
    height: min(58vh, 620px);
  }

  .share-product {
    grid-area: product;
    grid-template-columns: minmax(110px, 210px) 1fr;
  }

  .share-pairings {
    grid-area: pairings;
  }

  .share-actions {
    grid-area: actions;
  }

  .share-quote {
    margin-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (min-width: 701px) {
  .result-screen {
    grid-template-columns: minmax(0, 1fr) auto auto minmax(0, 1fr);
    align-items: start;
    gap: 0;
  }

  .result-character-panel {
    grid-column: 1 / -1;
    grid-row: 1;
    margin: 0;
    text-align: center;
  }

  .result-character-panel > .eyebrow {
    margin: 0;
    text-align: center;
  }

  .result-character-panel > h1 {
    margin: 0;
    text-align: center;
    font-size: clamp(32px, 6vw, 72px);
  }

  .result-character-panel > .result-subtitle {
    text-align: center;
    font-size: clamp(9px, 2.5vw, 25px);
  }

  .result-columns {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    align-items: center;
    column-gap: clamp(24px, 3vw, 42px);
    min-height: 0;
  }

  .result-character-art {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
    width: 100%;
  }

  .result-character {
    width: min(100%, 609px);
    height: min(43svh, 450px);
    flex: 0 1 auto;
    object-fit: contain;
  }

  .result-tagline {
    text-align: center;
    font-size: clamp(13px, 1.5vw, 22px);
  }

  .result-details {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(14px, 2vh, 24px);
    width: 100%;
    margin-top: 0;
  }

  .result-product-block {
    width: 100%;
  }

  .result-pairings {
    width: 100%;
  }

  .pairing-title {
    margin: 12px 36px 8px;
    text-align: left;
  }

  .pair-grid {
    width: 100%;
  }

  .pair-art {
    height: min(14svh, 130px);
  }

  .product-art {
    width: 98%;
    height: min(19svh, 190px);
    object-fit: contain;
  }

  .result-screen[data-profile="refreshed"] .product-art,
  .result-screen[data-profile="playful"] .product-art {
      width: 130%;
      height: min(23svh, 245px);
  }

  .result-screen[data-profile="cosy"] .product-art,
  .result-screen[data-profile="fired-up"] .product-art {
      width: 98%;
      height: min(23svh, 180px);
  }

  .result-screen[data-profile="refreshed"] .result-product-details,
  .result-screen[data-profile="playful"] .result-product-details {
      width: 70%;
  }

  .result-screen[data-profile="cosy"] .result-product-details,
  .result-screen[data-profile="fired-up"] .result-product-details {
      width: 80%;
  }

  .result-screen[data-profile="refreshed"] .result-product-block,
  .result-screen[data-profile="playful"] .result-product-block {
    gap: 30px;
  }
  
  .social-button {
    width: 50px;
    height: 50px;
  }

  .result-share-row {
    grid-column: 2;
    grid-row: 3;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-self: center;
    gap: 12px;
    margin: 12px 0 0;
    text-align: center;
  }

  .result-share-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }

  .result-actions {
    grid-column: 3;
    grid-row: 3;
    justify-content: center;
    align-self: center;
    margin: 12px 0 0;
  }

  .result-actions .btn {
    min-width: 250px;
    margin-left: 30px;
  }

  .landing-headline {
    margin-bottom: -20px;
  }
}
