/*===================================================
    Media Query
====================================================*/

/* max-width 992px */
@media (max-width: 992px) {
    .padding {
        padding: 80px 0;
    }

    .padding-top {
        padding-top: 80px;
    }

    .padding-bottom {
        padding-bottom: 80px;
    }

    .sm-padding {
        padding: 15px;
    }

    p br {
        display: none;
    }

    span br {
        display: none;
    }

    .default-btn {
        padding: 0 30px;
    }

    .section-heading h2 {
        font-size: 32px;
        line-height: 42px;
    }

    .section-heading br {
        display: inherit;
    }

    .hero-element .shape-wrap {
        width: 20%;
        height: 80%;
    }

    .matches-list {
        align-items: center;
    }

    .matches-list {
        flex-direction: column;
    }

    .matches-list .participate-team {
        max-width: 100%;
        width: 100%;
    }

    .match-time-row-1 .cycle-step,
    .match-time-row-2 .cycle-step,
    .match-time-row-3 .cycle-step {
        font-size: 28px;
    }

    .outside-spacing {
        overflow: hidden;
        padding: 0;
        margin: 0 20px;
    }

    .team-content {
        width: 90%;
    }

    .team-carousel .swiper-nav {
        left: 5px;
    }

    .team-carousel .swiper-nav.swiper-next {
        right: 5px;
    }

    .matches-thumb img {
        max-width: 200px;
    }

    .latest-match-info h3 {
        font-size: 22px;
        margin-top: 10px;
    }

    .watch-info a {
        font-size: 12px;
    }

    .cta-section .section-heading h2 {
        font-size: 46px;
        line-height: 56px;
    }

    .footer-section {
        padding-top: 80px;
    }

    .copyright-wrap:before {
        width: 60%;
    }

    .match-details-header {
        width: 90%;
    }

    .match-details-header .vs h2 {
        font-size: 50px;
    }

    .team-details-wrap {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .countdown-section.team-details-info .team-details-wrap.countdown-wrap {
        min-height: 150px;
        padding: 28px 28px 24px !important;
        gap: 20px;
    }

    .countdown-section .countdown-heading{
        margin-bottom: 0;
    }

    .team-details-wrap .rating,
    .team-details-wrap .social-list {
        display: none;
    }

    .player-details .team-details-wrap {
        grid-template-columns: 1fr 2fr;
    }

    .player-info {
        gap: 30px;
    }

    .hero-section-2 {
        height: 450px;
    }

    .prediction-market-grid {
        grid-template-columns: 0.85fr 1.4fr 0.85fr;
        gap: 20px;
    }
}

/* max-width 767px – mobile: ensure everything visible, no horizontal scroll */
@media all and (max-width: 767px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
        max-width: 100%;
    }

    /* Mobile: keep the cosmic center line truly centered */
    .cosmic-line--2 {
        left: 50%;
        transform: translateX(-50%) rotate(0deg);
        transform-origin: top center;
    }

    .padding {
        padding: 60px 0;
    }

    .padding-top {
        padding-top: 60px;
    }

    .padding-bottom {
        padding-bottom: 60px;
    }

    .xs-padding {
        padding: 15px;
    }

    .section-heading br,
    p br {
        display: none;
    }

    .section-heading h2 {
        font-size: 24px;
        line-height: 34px;
    }

    .header:before {
        left: -80px;
        bottom: -15px;
    }

    .header:after {
        right: -80px;
        bottom: -15px;
    }

    .footer-item .brand {
        max-width: 150px;
    }

    .header .default-btn,
    .header .search-icon {
        display: none;
    }

    /* Connect Wallet – visible on mobile, moved a bit down */
    .header-inner--wallet-only .header-right .default-btn {
        display: inline-block !important;
    }

    .primary-header-inner.header-inner--wallet-only {
        padding-top: 18px;
        padding-bottom: 14px;
    }

    /* ===== Hero section (section one) – mobile-optimized, same impact as desktop ===== */
    .hero-section {
        min-height: 0;
        padding-bottom: 24px;
    }

    .hero-section .container {
        align-items: flex-start;
    }

    .hero-content {
        padding-top: 48px;
        padding-bottom: 24px;
    }

    .hero-content h4 {
        font-size: 13px;
        letter-spacing: 5px;
        margin-bottom: 14px;
        line-height: 1.4;
        padding: 0 8px;
    }

    .hero-content h1,
    .hero-content h1.hero-title-iqf {
        font-size: clamp(28px, 11vw, 48px);
        font-weight: 800;
        line-height: 1.15;
        letter-spacing: -0.03em;
        margin-bottom: 14px;
        text-align: center;
        width: 100%;
    }
    .hero-content h1.hero-title-iqf {
        white-space: nowrap;
    }

    .hero-content .hero-desc {
        font-size: 17px;
        line-height: 1.55;
        margin-bottom: 22px;
        padding-left: 12px;
        padding-right: 12px;
        max-width: 100%;
    }

    .hero-content .btn-group {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        margin-bottom: 8px;
        /* Keep zoom on tap (mobile) – :active in main.css */
    }

    .hero-content .btn-group::before {
        height: 54px;
        border-radius: 12px;
    }

    /* LAUNCH APP welcome gate – prominent on mobile */
    .hero-content .btn-group .launch-app-btn {
        min-height: 54px;
        height: 54px;
        line-height: 54px;
        padding: 0 44px;
        font-size: 15px;
        letter-spacing: 0.1em;
    }
    .hero-content .btn-group .default-btn:not(.launch-app-btn) {
        min-height: 54px;
        padding: 0 40px;
        font-size: 17px;
        font-weight: 600;
    }

    /* Hero block: center image + pillars as one unit (same alignment as desktop) */
    .hero-content {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero-element {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        width: fit-content;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-top: 32px;
        min-height: 340px;
    }

    /* Pillars – bigger, a bit wider, with gap from center image */
    .hero-element .shape-wrap {
        display: block;
        width: 58%;
        height: 100%;
        min-height: 380px;
        left: -14px;
        bottom: 50%;
        transform: translateY(50%) skew(18deg);
        opacity: 0.85;
        pointer-events: none;
    }

    .hero-element .shape-wrap.right {
        left: auto;
        right: -14px;
        transform: translateY(50%) skew(-18deg);
    }

    .hero-element .shape {
        width: 148px;
    }

    .hero-element .shape.shape-1 {
        width: 158px;
        height: 55%;
        left: 20%;
    }

    .hero-element .shape.shape-2 {
        height: 80%;
        left: 10%;
    }

    .hero-element .shape.shape-3 {
        height: 60%;
    }

    .hero-element .shape.shape-4 {
        height: 35%;
        left: -5%;
    }

    .hero-element .right .shape.shape-1 {
        right: 20%;
    }

    .hero-element .right .shape.shape-2 {
        right: 10%;
    }

    .hero-content img {
        max-width: min(360px, 92vw);
        max-height: 280px;
        width: auto;
        height: auto;
        margin-top: 0;
        margin-left: 42px;
        margin-right: 42px;
        position: relative;
        z-index: 1;
    }

    .hero-section:before {
        margin: 0 16px;
        width: calc(100% - 32px);
    }

    /* Miner cards: keep miner images visible (override generic 30% width) */
    .participate-team .miner-card-img {
        max-height: 130px !important;
        width: auto !important;
        max-width: 42%;
        min-width: 0;
    }

    .matches-section .section-iqf-desc {
        padding-left: 12px;
        padding-right: 12px;
    }

    .matches-section .iqf-logo-img {
        max-width: 100px;
    }

    /* Logo: higher up; equal gap above and below the logo */
    .matches-section.padding {
        padding-top: 10px;
    }
    .matches-section .section-heading.mb-40 {
        margin-top: -28px;
    }
    .matches-section .section-iqf-logo {
        margin-top: 22px;
        margin-bottom: 22px;
    }

    .match-time .cycle-step-wrap {
        min-height: 84px;
    }

    .participate-team h3 {
        font-size: 20px;
        line-height: 28px;
    }

    .participate-team img {
        width: 30%;
    }

    .participate-team:before {
        height: 80px;
    }

    .matches-section .section-iqf-desc {
        font-size: 18px;
        margin-top: 48px;
        padding-top: 24px;
    }

    .match-info-flip {
        bottom: -20px;
    }
    .match-info-front,
    .match-info-back {
        padding: 10px 16px;
        font-size: 12px;
    }

    .matches-list .participate-team {
        margin-bottom: 48px;
    }

    .match-time {
        margin: 20px 0;
    }

    /* On mobile: show Mine / Trade / Predict above both miners */
    .matches-list {
        display: flex;
        flex-direction: column;
    }
    .matches-list .match-time {
        order: 0;
    }
    .matches-list .participate-team {
        order: 1;
    }

    .match-time-row-1 .cycle-step,
    .match-time-row-2 .cycle-step,
    .match-time-row-3 .cycle-step {
        font-size: 34px;
        font-weight: 800;
    }

    /* Mine / Trade / Predict: match desktop animation speed */
    .match-time-row-1 .cycle-mine,
    .match-time-row-2 .cycle-trade,
    .match-time-row-3 .cycle-predict {
        animation-duration: 6s;
    }

    .match-time-row-1 .cycle-mine::after,
    .match-time-row-2 .cycle-trade::after,
    .match-time-row-3 .cycle-predict::after {
        animation-duration: 6s;
    }

    .match-time-row-1 .cycle-mine {
        filter: drop-shadow(0 0 24px rgba(34, 197, 94, 0.65)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
    }

    .match-time-row-2 .cycle-trade {
        filter: drop-shadow(0 0 24px rgba(59, 130, 246, 0.65)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
    }

    .match-time-row-3 .cycle-predict {
        filter: drop-shadow(0 0 24px rgba(168, 85, 247, 0.65)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
    }

    .section-divider.page-header {
        padding: 28px 0;
    }

    /* Partnerships banner – tablet: slightly narrower, keep shape */
    .partnerships-wrap.team-details-style {
        width: 92%;
        padding: 0 32px;
        gap: 28px;
    }

    .partner-logo-img {
        max-width: 160px;
        max-height: 70px;
    }

    /* Token Tracker – mobile: centered heading, touch tabs, clean cards */
    .token-tracker-section .section-heading {
        margin-bottom: 28px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .token-tracker-section .section-heading h3 {
        font-size: 12px;
        letter-spacing: 0.15em;
    }

    .token-tracker-section .section-heading h2 {
        font-size: 26px;
        line-height: 1.3;
    }

    .token-tracker-section .section-heading p {
        font-size: 14px;
        margin-top: 8px;
    }

    .token-tracker-tab-btns {
        flex-wrap: nowrap;
        gap: 12px;
        justify-content: center;
        padding: 0 8px;
        margin-bottom: 24px;
    }

    .token-tracker-tab-btn {
        flex: 1 1 0%;
        min-width: 0;
        max-width: 180px;
        min-height: 44px;
        padding: 0 28px;
        font-size: 14px;
        line-height: 44px;
    }

    .token-tracker-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .token-tracker-card {
        padding: 20px 22px;
        clip-path: polygon(92% 0, 100% 15%, 100% 100%, 0% 100%, 0 70%, 0 0);
    }

    .token-tracker-card-inner {
        text-align: center;
        padding: 24px 16px;
        min-height: 72px;
    }

    .token-tracker-value {
        font-size: 28px;
        line-height: 1.2;
    }

    .token-tracker-tabs {
        overflow: hidden;
    }

    .token-tracker-card {
        min-width: 0;
        overflow-wrap: break-word;
    }

    .token-tracker-value {
        overflow-wrap: break-word;
    }

    .watch-live-section--featured {
        padding-top: 40px;
    }

    .watch-live-heading.mb-50 {
        margin-bottom: 36px !important;
    }

    .prediction-market-section .watch-live-heading h2 {
        font-size: 28px;
        line-height: 1.35;
    }

    .prediction-market-section .watch-live-heading h2 span {
        -webkit-background-clip: text;
        background-clip: text;
    }

    .prediction-market-section .watch-live-heading p {
        font-size: 15px;
    }

    .prediction-market-section .watch-live-heading {
        padding-left: 8px;
        padding-right: 8px;
        margin-bottom: 36px;
    }

    /* Reduce extra gap under BIGGEST AIRDROP hero on mobile */
    .prediction-market-section .hero {
        min-height: 320px;
        padding-top: 26px;
        padding-bottom: 16px;
    }

    /* Tighten spacing between hero section and Prediction Market copy */
    .prediction-market-section.watch-live-section.padding {
        padding-bottom: 12px;
    }
    .prediction-window-section.padding {
        padding-top: 18px;
    }

    .prediction-market-disclaimer {
        font-size: 13px;
        margin-top: 12px;
    }

    .prediction-market-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        width: 100%;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    /* AI Builder: wrap buttons, smaller logo, image fits */
    .ai-builder-btns {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .ai-builder-btn.match-category {
        padding: 0 16px;
        height: 40px;
        line-height: 40px;
        font-size: 11px;
    }

    .ai-builder-logo {
        max-width: 180px;
        height: auto;
    }

    .ai-builder-img-show {
        max-width: 240px !important;
    }

    .ai-builder-desc {
        font-size: 14px;
    }

    .prediction-card {
        padding: 26px 22px;
        min-height: 280px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-wrap: break-word;
        border-radius: 16px;
    }

    .prediction-card-inner {
        max-width: 100%;
    }

    /* First & third cards: content centered on mobile */
    .prediction-card--airdrop .prediction-card-inner,
    .prediction-card--status .prediction-card-inner {
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .prediction-card--airdrop .pred-card-footer,
    .prediction-card--airdrop .pred-card-tag,
    .prediction-card--status p,
    .prediction-card--status .pred-card-tag {
        text-align: center;
    }

    .prediction-card--status .prediction-card-inner > p:first-of-type {
        margin-top: 48px;
    }

    .pred-card-flip-wrap {
        margin-top: 40px;
        min-height: 56px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Same button size for both flip states (Biggest Airdrop / on prediction market) */
    .pred-card-flip-inner {
        width: 220px;
        min-width: 220px;
        min-height: 52px;
    }

    .pred-card-flip-front,
    .pred-card-flip-back {
        width: 220px;
        min-height: 52px;
        left: 0;
    }

    .prediction-card h3 {
        font-size: 18px;
        padding: 12px 20px;
        max-width: 100%;
        border-radius: 12px;
    }

    .pred-card-tag {
        font-size: 12px;
        padding: 6px 14px;
    }

    .prediction-card p {
        font-size: 14px;
        line-height: 1.5;
    }

    .prediction-card .tag {
        font-size: 11px;
        padding: 5px 12px;
    }

    .prediction-card .default-btn.match-category {
        min-height: 44px;
        line-height: 44px;
        padding: 0 24px;
        font-size: 12px;
    }

    .prediction-card--airdrop .default-btn.match-category,
    .prediction-card--status .default-btn.match-category {
        min-height: 48px;
        line-height: 48px;
        padding: 0 28px;
        font-size: 12px;
    }

    /* Same as desktop: vote Yes/No side by side */
    .pred-vote {
        flex-direction: row;
        gap: 10px;
        margin: 14px 0;
    }

    .pred-vote .vote-yes,
    .pred-vote .vote-no {
        flex: 1;
        min-height: 52px;
        padding: 10px 8px;
        border-radius: 12px;
        font-size: 16px;
    }

    .pred-vote small {
        font-size: 10px;
    }

    /* Same as desktop: airdrop tabs side by side */
    .pred-airdrop-tabs {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 12px;
    }

    .airdrop-tab {
        min-height: 44px;
        min-width: 0;
        flex: 0 1 auto;
        font-size: 12px;
        padding: 0 20px;
    }

    .team-thumb .shape.shape-1 {
        left: 40%;
        width: 170px;
    }

    .contact-form {
        margin-left: 0;
    }

    .header:before,
    .header:after {
        display: none;
    }

    .page-header .page-header-shape .shape {
        width: 80px;
        height: 40px;
    }

    .page-header .page-header-shape .shape.center.back {
        width: 170px;
        height: 30px;
    }

    .cta-section .section-heading h2 {
        font-size: 32px;
        line-height: 42px;
    }

    .section-heading-group {
        display: block;
    }

    .section-heading-group .default-btn {
        margin-top: 20px;
    }

    .latest-matches-list {
        grid-template-columns: 1fr;
        padding: 20px;
        clip-path: none;
    }

    .watch-info {
        text-align: left;
    }

    .matches-thumb {
        margin-bottom: 15px;
    }

    .watch-info {
        margin-top: 15px;
    }

    .watch-info a i {
        font-size: 20px;
    }

    .matches-thumb img {
        max-width: 100%;
    }

    .sponsor-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-header.single .page-header-info h2 {
        line-height: 42px;
    }

    /* Footer IQF: professional stack on small screens */
    .footer-iqf-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 28px;
        padding-bottom: 28px;
    }

    .footer-iqf-brand {
        align-items: center;
    }

    .footer-iqf-connect {
        flex-direction: column;
        gap: 12px;
    }

    .footer-iqf-contact {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
        max-width: 100%;
    }

    .footer-iqf-contact .footer-iqf-btn,
    .footer-iqf-contact .footer-iqf-disclaimer {
        width: 100%;
        max-width: 320px;
        min-width: 0;
        box-sizing: border-box;
    }

    .footer-iqf-disclaimer summary.footer-iqf-btn {
        width: 100%;
        box-sizing: border-box;
    }

    .footer-iqf-btn {
        justify-content: center;
        padding: 0 18px;
        height: 44px;
        line-height: 44px;
        font-size: 12px;
        min-height: 44px;
    }

    .footer-iqf-disclaimer-text {
        max-width: 100%;
        margin-top: 10px;
    }

    .footer-iqf-social {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .footer-iqf-logo {
        max-width: 120px;
    }

    .footer-section {
        padding-top: 60px;
    }

    .copyright-wrap:before {
        width: 100%;
    }

    .footer-iqf .copyright-wrap {
        padding: 16px 0 22px;
    }

    .footer-iqf .copyright-wrap p,
    .footer-iqf .copyright-wrap .copyright-text {
        font-size: 12px;
        text-align: center;
    }

    /* Coming Soon popup: fit small screens */
    .coming-soon-popup .coming-soon-box {
        max-width: calc(100vw - 32px);
        margin: 0 16px;
        padding: 28px 24px;
    }

    .coming-soon-title {
        font-size: 18px;
    }

    .coming-soon-text {
        font-size: 14px;
    }

    /* Token Tracker – small mobile: compact heading, touch tabs, card spacing */
    .token-tracker-section .section-heading h2 {
        font-size: 22px;
    }

    .token-tracker-section .section-heading p {
        font-size: 13px;
    }

    .token-tracker-tab-btns {
        margin-bottom: 20px;
    }

    .token-tracker-tab-btn {
        flex: 1 1 0%;
        min-width: 0;
        max-width: 160px;
        min-height: 44px;
        padding: 0 24px;
        font-size: 13px;
    }

    .token-tracker-grid {
        gap: 14px;
    }

    .token-tracker-card {
        padding: 18px 20px;
    }

    .token-tracker-value {
        font-size: 26px;
    }

    .token-tracker-card h4 {
        font-size: 12px;
        margin-bottom: 8px;
    }

    /* Prediction Market – mobile: same look as desktop (stacked cards, same layout inside) */
    .prediction-market-section .watch-live-heading h3 {
        font-size: 12px;
        letter-spacing: 0.2em;
    }

    .prediction-market-section .watch-live-heading h2 {
        font-size: 24px;
        line-height: 1.35;
        margin-bottom: 14px;
    }

    .prediction-market-section .watch-live-heading p {
        font-size: 14px;
    }

    .prediction-market-disclaimer {
        font-size: 12px;
        margin-top: 10px;
    }

    .prediction-market-section .watch-live-heading {
        padding-left: 8px;
        padding-right: 8px;
        margin-bottom: 24px;
    }

    /* Mobile: make AIRDROP DISTRIBUTED (200 IQF) smaller than allocation */
    .prediction-market-section .asb-dist {
        font-size: clamp(22px, 6vw, 40px);
    }

    /* Mobile tabs: show only on small screens, Prediction = default */
    .prediction-market-mobile-tabs {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-bottom: 20px;
        padding: 0 8px;
    }

    .prediction-mobile-tab {
        flex: 1;
        max-width: 120px;
        min-height: 44px;
        padding: 0 12px;
        border: none;
        border-radius: 10px;
        background: rgba(105, 85, 180, 0.25);
        color: rgba(255, 255, 255, 0.85);
        font-family: "Oxanium", sans-serif;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        cursor: pointer;
        transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
    }

    .prediction-mobile-tab:hover {
        background: rgba(105, 85, 180, 0.4);
        color: #fff;
    }

    .prediction-mobile-tab.active {
        background: linear-gradient(to right bottom, #f90cff, #9841ff, #0cd7e8);
        color: #fff;
        box-shadow: 0 2px 12px rgba(152, 65, 255, 0.4);
    }

    /* On mobile grid: show only the active tab’s card */
    .prediction-market-section .prediction-market-grid .prediction-card {
        display: none !important;
    }

    .prediction-market-section .prediction-market-grid.prediction-tab-prediction .prediction-card--prediction,
    .prediction-market-section .prediction-market-grid.prediction-tab-airdrop .prediction-card--airdrop,
    .prediction-market-section .prediction-market-grid.prediction-tab-status .prediction-card--status {
        display: flex !important;
    }

    .prediction-market-grid {
        gap: 24px;
        max-width: 100%;
    }

    .prediction-card {
        padding: 24px 20px;
        min-height: 260px;
        border-radius: 16px;
    }

    .prediction-card h3 {
        font-size: 16px;
        padding: 10px 16px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        border-radius: 12px;
    }

    .prediction-card p {
        font-size: 13px;
        word-wrap: break-word;
    }

    .pred-card-top-row {
        flex-wrap: nowrap;
        gap: 10px;
        margin-bottom: 14px;
    }

    .pred-card-logo img {
        height: 30px;
    }

    .pred-vote {
        flex-direction: row;
        gap: 8px;
    }

    .pred-vote .vote-yes,
    .pred-vote .vote-no {
        flex: 1;
        min-height: 48px;
        padding: 8px 6px;
        font-size: 15px;
        border-radius: 12px;
    }

    .pred-vote small {
        font-size: 9px;
    }

    /* First & third cards: centered; same flip box size */
    .prediction-card--airdrop .prediction-card-inner,
    .prediction-card--status .prediction-card-inner {
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .prediction-card--airdrop .pred-card-footer,
    .prediction-card--airdrop .pred-card-tag,
    .prediction-card--status p,
    .prediction-card--status .pred-card-tag {
        text-align: center;
    }

    .pred-card-flip-inner {
        width: 200px;
        min-width: 200px;
        min-height: 50px;
    }

    .pred-card-flip-front,
    .pred-card-flip-back {
        width: 200px;
        min-height: 50px;
    }

    .footer-items>div:not(:last-of-type) {
        margin-bottom: 20px;
    }

    .match-details-header h3 {
        display: none;
    }

    .match-details-header img {
        max-width: 100px;
        left: -15px;
    }

    .match-details-header img.right {
        right: -15px;
    }

    .match-details-header .vs {
        width: 90px;
        height: 80px;
    }

    .match-details-header .vs h2 {
        font-size: 42px;
    }

    .page-header.match-details {
        height: 300px;
    }

    .team-details-wrap {
        padding: 0 20px;
    }

    /* Partnerships banner – mobile: keep shape, stack content, no overflow */
    .partnerships-wrap.team-details-style {
        flex-direction: column;
        height: auto;
        min-height: 150px;
        padding: 32px 20px;
        gap: 20px;
        width: 94%;
        margin-left: auto;
        margin-right: auto;
    }

    .partnerships-label {
        font-size: 14px;
        letter-spacing: 0.08em;
    }

    .partner-logo-img {
        max-width: 140px;
        max-height: 60px;
    }

    .team-counter .counter-list .odometer-inside span {
        font-size: 28px;
        line-height: 1;
    }

    .player-info {
        display: none;
    }

    /* Countdown banner: title + counter only */
    .countdown-section.team-details-info .team-details-wrap.countdown-wrap {
        min-height: 150px;
        padding: 24px 20px 22px !important;
        gap: 16px;
        width: 94%;
    }

    .countdown-section .countdown-heading{
        margin-bottom: 0;
    }

    .countdown-section .countdown-counter {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .countdown-section .countdown-info {
        display: flex !important;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 6px;
    }

    .countdown-section .countdown-info li {
        min-width: 0;
    }

    .countdown-section .countdown-team h3,
    .countdown-section .countdown-title h3 {
        font-size: 11px;
        line-height: 1.25;
        letter-spacing: 0.02em;
    }

    .countdown-section .countdown-heading h3{
        font-size: 16px;
        line-height: 1.2;
    }

    .countdown-section .countdown-counter{
        align-self: center;
    }

    .countdown-section .countdown-info li span {
        font-size: 20px;
    }

    .countdown-section .countdown-info li h4 {
        font-size: 9px;
    }

    .countdown-section .countdown-info li div {
        font-size: 12px;
    }

    .countdown-section .countdown-team,
    .countdown-section .countdown-title {
        justify-content: center;
    }

    .player-details .team-details-wrap {
        grid-template-columns: 1fr;
    }

    .player-team {
        justify-content: center;
    }

    .hero-section-2 {
        height: 300px;
        margin-bottom: 30px;
    }

    .hero-section-2 .hero-content h1 {
        font-size: 32px;
        line-height: 36px;
    }

    .hero-section-2 .hero-content {
        padding: 50px 0 30px 0;
    }

    .shop-section .outside-spacing {
        padding: 0;
        margin: 0;
    }

    .shop-carousel .swiper-nav.swiper-prev {
        left: 5px;
    }

    .shop-carousel .swiper-nav.swiper-next {
        right: 5px;
    }

    .promo-section {
        padding-top: 100px;
    }

    .play-btn .ripple,
    .play-btn .ripple:before,
    .play-btn .ripple:after,
    .play-btn {
        width: 70px;
        height: 70px;
        line-height: 70px;
    }

    .play-btn svg {
        width: 25px;
    }
}

/* max-width 580px – small phones: everything still visible */
@media all and (max-width: 580px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero-content {
        padding-top: 40px;
    }

    .hero-content h4 {
        font-size: 12px;
        letter-spacing: 4px;
    }

    .hero-content h1,
    .hero-content h1.hero-title-iqf {
        font-size: clamp(24px, 9.5vw, 38px);
        font-weight: 800;
        line-height: 1.2;
        letter-spacing: -0.03em;
        text-align: center;
        width: 100%;
    }
    .hero-content h1.hero-title-iqf {
        white-space: nowrap;
    }

    /* Very narrow: allow wrap so title never overflows, keep centered */
    @media (max-width: 360px) {
        .hero-content h1.hero-title-iqf {
            white-space: normal;
            font-size: clamp(22px, 8vw, 32px);
            line-height: 1.25;
        }
    }

    .hero-content .hero-desc {
        font-size: 15px;
        margin-bottom: 18px;
    }

    .hero-content img {
        max-width: min(90vw, 280px);
        max-height: 165px;
    }

    .hero-content .btn-group::before {
        height: 52px;
        border-radius: 12px;
    }

    .hero-content .btn-group .launch-app-btn {
        min-height: 52px;
        height: 52px;
        line-height: 52px;
        padding: 0 40px;
        font-size: 14px;
        letter-spacing: 0.08em;
    }
    .hero-content .btn-group .default-btn:not(.launch-app-btn) {
        min-height: 50px;
        padding: 0 36px;
        font-size: 16px;
    }

    .hero-element {
        min-height: 200px;
    }

    .hero-element {
        min-height: 300px;
    }

    .hero-element .shape-wrap {
        width: 54%;
        min-height: 320px;
    }

    .hero-element .shape {
        width: 118px;
    }

    .hero-element .shape.shape-1 {
        width: 126px;
    }

    .hero-content img {
        max-width: min(320px, 90vw);
        max-height: 240px;
        margin-left: 32px;
        margin-right: 32px;
    }

    .participate-team .miner-card-img {
        max-height: 110px !important;
        max-width: 38%;
    }

    .match-time-row-1 .cycle-step,
    .match-time-row-2 .cycle-step,
    .match-time-row-3 .cycle-step {
        font-size: 28px;
        font-weight: 800;
    }

    .match-time-row-1 .cycle-mine {
        filter: drop-shadow(0 0 22px rgba(34, 197, 94, 0.65)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
    }

    .match-time-row-2 .cycle-trade {
        filter: drop-shadow(0 0 22px rgba(59, 130, 246, 0.65)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
    }

    .match-time-row-3 .cycle-predict {
        filter: drop-shadow(0 0 22px rgba(168, 85, 247, 0.65)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
    }

    .match-time .cycle-step-wrap {
        min-height: 64px;
    }

    .matches-section .section-iqf-desc {
        font-size: 16px;
    }

    .matches-section .iqf-logo-img {
        max-width: 88px;
    }

    .footer-iqf-contact .footer-iqf-btn,
    .footer-iqf-contact .footer-iqf-disclaimer {
        max-width: 100%;
    }

    .footer-iqf-btn {
        font-size: 11px;
        padding: 0 14px;
        height: 44px;
        line-height: 44px;
        min-height: 44px;
    }

    .prediction-market-section .watch-live-heading h2 {
        font-size: 22px;
        line-height: 1.35;
    }

    .prediction-market-section .watch-live-heading p,
    .prediction-market-disclaimer {
        font-size: 13px;
    }

    .prediction-card {
        padding: 22px 18px;
        min-height: 250px;
        border-radius: 16px;
    }

    .prediction-card h3 {
        font-size: 15px;
        padding: 10px 14px;
        border-radius: 12px;
    }

    .prediction-card p {
        font-size: 12px;
    }

    .prediction-card .default-btn.match-category,
    .prediction-card--airdrop .default-btn.match-category,
    .prediction-card--status .default-btn.match-category {
        min-height: 44px;
        line-height: 44px;
        font-size: 12px;
    }

    .pred-vote .vote-yes,
    .pred-vote .vote-no {
        min-height: 46px;
        padding: 6px 4px;
        font-size: 14px;
    }

    .pred-vote small {
        font-size: 9px;
    }

    .airdrop-tab {
        min-height: 44px;
        font-size: 11px;
        padding: 0 16px;
    }

    /* Partnerships banner – small phones */
    .partnerships-wrap.team-details-style {
        width: 96%;
        padding: 28px 18px;
        gap: 16px;
        min-height: 140px;
    }

    .partnerships-label {
        font-size: 12px;
    }

    .partner-logo-img {
        max-width: 120px;
        max-height: 52px;
    }

    /* Token Tracker – small phones */
    .token-tracker-section .section-heading h2 {
        font-size: 20px;
    }

    .token-tracker-section .section-heading p {
        font-size: 12px;
    }

    .token-tracker-tab-btn {
        padding: 0 20px;
        font-size: 12px;
    }

    .token-tracker-card {
        padding: 16px 18px;
    }

    .token-tracker-value {
        font-size: 24px;
    }

    .token-tracker-card h4 {
        font-size: 11px;
        margin-bottom: 6px;
    }

    /* First & third cards: centered; same flip box size on small mobile */
    .pred-card-flip-inner {
        width: 180px;
        min-width: 180px;
        min-height: 48px;
    }

    .pred-card-flip-front,
    .pred-card-flip-back {
        width: 180px;
        min-height: 48px;
        font-size: 13px;
    }

    .ai-builder-title {
        font-size: 18px;
    }

    .ai-builder-img-show {
        max-width: 200px !important;
    }

    #scrollup {
        bottom: 20px;
        right: 20px;
    }

    .swiper-nav {
        display: none;
    }

    .primary-header .header-logo {
        max-width: 110px;
        padding: 10px 0;
    }
}