/* ==========================================================
   Play Royal Group Lottery - Responsive Layout Engine
   Smooth Multi-Device Proportional Scaling (Desktop -> Mobile)
   ========================================================== */

/* ----------------------------------------------------------
   1. LAPTOPS & MEDIUM SCREENS (1025px - 1260px)
   ---------------------------------------------------------- */
@media (max-width: 1260px) {
    :root {
        --wheel-size: 310px;
    }

    .arena-flex {
        gap: 36px;
    }

    .wheel-outer-casing {
        border-width: 15px;
    }

    .wheel-pointer {
        top: -24px;
        width: 48px;
        height: 52px;
    }

    .wheel-center-hub {
        width: 76px;
        height: 76px;
    }

    .center-number {
        font-size: 38px;
    }

    .wheel-stand {
        width: 140px;
        height: 48px;
        margin-top: -12px;
    }

    .wheel-badge {
        font-size: 13.5px;
        padding: 8px 18px;
        bottom: 30px;
    }

    .wheel-pedestal-base {
        width: 230px;
        height: 36px;
    }

    .wheel-pedestal-base::before {
        width: 46px;
        height: 5px;
    }

    .center-logo-badge {
        width: 135px;
        height: 135px;
        margin-bottom: 20px;
    }

    .live-result-title {
        font-size: 21px;
        margin-bottom: 10px;
    }

    .result-display-box {
        width: 150px;
        height: 46px;
        margin-bottom: 10px;
    }

    .result-display-box .big-number {
        font-size: 28px;
    }

    .btn-results {
        width: 150px;
        height: 38px;
        font-size: 13.5px;
    }

    .widget-label {
        font-size: 19px;
    }

    .widget-value {
        font-size: 28px;
    }

    .brand-title .title-line-1 {
        font-size: 30px;
    }

    .brand-title .title-line-2 {
        font-size: 20px;
    }

    .brand-title .title-line-3 {
        font-size: 17px;
    }
}

/* ----------------------------------------------------------
   2. TABLETS & SMALL LAPTOPS (769px - 1024px)
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
    :root {
        --wheel-size: 240px;
    }

    .top-header-bar {
        padding: 12px 16px 14px;
    }

    .header-grid {
        gap: 12px;
        padding: 0 16px;
    }

    .widget-label {
        font-size: 17px;
    }

    .widget-value {
        font-size: 24px;
    }

    .brand-title .title-line-1 {
        font-size: 26px;
    }

    .brand-title .title-line-2 {
        font-size: 18px;
    }

    .brand-title .title-line-3 {
        font-size: 15.5px;
    }

    .arena-flex {
        gap: 22px;
        flex-wrap: nowrap;
    }

    .wheel-outer-casing {
        border-width: 12px;
    }

    .wheel-pointer {
        top: -19px;
        width: 38px;
        height: 42px;
    }

    .wheel-center-hub {
        width: 60px;
        height: 60px;
    }

    .center-number {
        font-size: 30px;
    }

    .wheel-stand {
        width: 110px;
        height: 38px;
        margin-top: -10px;
    }

    .wheel-badge {
        font-size: 11.5px;
        padding: 5px 12px;
        bottom: 22px;
        gap: 4px;
    }

    .wheel-badge .badge-title {
        font-size: 11px;
    }

    .wheel-badge .badge-name {
        font-size: 10px;
    }

    .wheel-pedestal-base {
        width: 180px;
        height: 28px;
    }

    .wheel-pedestal-base::before {
        width: 36px;
        height: 4px;
    }

    .center-logo-badge {
        width: 105px;
        height: 105px;
        margin-bottom: 16px;
    }

    .live-result-title {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .result-display-box {
        width: 130px;
        height: 40px;
        margin-bottom: 10px;
    }

    .result-display-box .big-number {
        font-size: 24px;
    }

    .btn-results {
        width: 130px;
        height: 34px;
        font-size: 12.5px;
    }

    .showcase-container {
        gap: 24px;
    }

    .showcase-image-col {
        flex: 0 0 320px;
    }
}

/* ----------------------------------------------------------
   3. SMALL TABLETS & LARGE PHONES (581px - 768px)
   ---------------------------------------------------------- */
@media (max-width: 768px) {
    :root {
        --wheel-size: 180px;
    }

    .top-header-bar {
        padding: 10px 14px 12px;
    }

    .header-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 12px;
        padding: 0 10px;
    }

    .widget-label {
        font-size: 13.5px;
    }

    .widget-value {
        font-size: 17px;
    }

    .brand-title .title-line-1 {
        font-size: 19px;
    }

    .brand-title .title-line-2 {
        font-size: 15px;
    }

    .arena-flex {
        gap: 16px;
        justify-content: center;
        flex-wrap: nowrap;
    }

    .wheel-outer-casing {
        border-width: 10px;
    }

    .wheel-pointer {
        top: -15px;
        width: 32px;
        height: 36px;
    }

    .wheel-center-hub {
        width: 48px;
        height: 48px;
    }

    .center-number {
        font-size: 24px;
    }

    .wheel-stand {
        width: 86px;
        height: 30px;
        margin-top: -8px;
    }

    .wheel-badge {
        font-size: 9.5px;
        padding: 4px 8px;
        bottom: 16px;
        flex-direction: column;
        gap: 1px;
        min-width: 110px;
    }

    .wheel-badge .badge-title {
        font-size: 9px;
        line-height: 1.15;
    }

    .wheel-badge .badge-sep {
        display: none;
    }

    .wheel-badge .badge-name {
        font-size: 8.5px;
        line-height: 1.15;
    }

    .wheel-pedestal-base {
        width: 145px;
        height: 22px;
    }

    .wheel-pedestal-base::before {
        width: 28px;
        height: 3px;
    }

    .center-logo-badge {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
    }

    .live-result-title {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .result-display-box {
        width: 115px;
        height: 36px;
        margin-bottom: 8px;
    }

    .result-display-box .big-number {
        font-size: 20px;
    }

    .btn-results {
        width: 115px;
        height: 30px;
        font-size: 11.5px;
    }

    .showcase-container {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .showcase-image-col {
        flex: 0 0 auto;
        width: 100%;
        max-width: 380px;
    }

    .showcase-content-col {
        width: 100%;
        flex: 0 0 auto;
    }
}

/* ----------------------------------------------------------
   4. MOBILE PHONES (360px - 580px) - PERFECT SIDE-BY-SIDE DUAL WHEELS
   ---------------------------------------------------------- */
@media (max-width: 580px) {
    :root {
        --wheel-size: 155px;
    }

    .top-header-bar {
        padding: 8px 10px 10px;
    }

    .header-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px 10px;
        padding: 0;
    }

    .widget-label {
        font-size: 12px;
    }

    .widget-value {
        font-size: 15px;
    }

    .sub-header-container {
        margin: 12px auto 8px;
        padding: 0 10px;
    }

    .brand-title .title-line-1 {
        font-size: 16px;
    }

    .brand-title .title-line-2 {
        font-size: 13px;
    }

    .brand-title .title-line-3 {
        font-size: 11.5px;
    }

    .marquee-container {
        height: 34px;
        margin: 8px auto 0;
        width: 100%;
        border-radius: 4px;
    }

    .marquee-content {
        font-size: 12px;
        line-height: 34px;
    }

    /* Main Stage: Center Result Hub on Top, Both Wheels Side-by-Side below */
    .main-stage {
        padding: 14px 6px 20px;
        width: 100%;
    }

    .arena-flex {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-end;
        gap: 12px 14px;
        width: 100%;
        margin: 4px auto 0;
    }

    /* 1. Center Result Hub at TOP */
    .center-result-hub {
        order: -1;
        width: 100%;
        min-width: 0;
        margin: 0 0 10px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .center-logo-badge {
        width: 76px;
        height: 76px;
        margin-bottom: 6px;
    }

    .live-result-title {
        font-size: 14px;
        letter-spacing: 1.5px;
        margin-bottom: 4px;
    }

    .result-display-box {
        width: 115px;
        height: 36px;
        margin-bottom: 6px;
    }

    .result-display-box .big-number {
        font-size: 22px;
        letter-spacing: 1.5px;
    }

    .btn-results {
        width: 115px;
        height: 30px;
        font-size: 12px;
        padding: 0;
    }

    /* 2. Both Wheels Side-by-Side */
    #wheel-andar {
        order: 1;
        margin: 0;
        flex: 0 0 auto;
    }

    #wheel-bahar {
        order: 2;
        margin: 0;
        flex: 0 0 auto;
    }

    .wheel-outer-casing {
        border-width: 8px;
    }

    .wheel-pointer {
        top: -14px;
        width: 28px;
        height: 32px;
    }

    .wheel-center-hub {
        width: 44px;
        height: 44px;
    }

    .center-number {
        font-size: 24px;
    }

    .wheel-stand {
        width: 78px;
        height: 26px;
        margin-top: -6px;
    }

    .wheel-badge {
        font-size: 8.5px;
        padding: 3px 6px;
        bottom: 12px;
        letter-spacing: 0.2px;
        flex-direction: column;
        gap: 1px;
        min-width: 105px;
    }

    .wheel-badge .badge-title {
        font-size: 8px;
        line-height: 1.15;
    }

    .wheel-badge .badge-sep {
        display: none;
    }

    .wheel-badge .badge-name {
        font-size: 7.5px;
        line-height: 1.15;
    }

    .wheel-pedestal-base {
        width: 120px;
        height: 20px;
    }

    .wheel-pedestal-base::before {
        width: 24px;
        height: 2px;
    }

    .bottom-showcase-section {
        padding: 20px 14px;
        width: calc(100% - 20px);
        margin: 20px auto 0;
    }

    .showcase-title {
        font-size: 20px;
    }

    .showcase-title-hindi {
        font-size: 16px;
    }
}

/* ----------------------------------------------------------
   5. ULTRA-NARROW PHONES (< 360px)
   ---------------------------------------------------------- */
@media (max-width: 359px) {
    :root {
        --wheel-size: 135px;
    }

    .arena-flex {
        gap: 8px 10px;
    }

    .wheel-center-hub {
        width: 38px;
        height: 38px;
    }

    .center-number {
        font-size: 20px;
    }

    .wheel-stand {
        width: 68px;
        height: 22px;
    }

    .wheel-pedestal-base {
        width: 108px;
        height: 16px;
    }

    .wheel-badge {
        font-size: 7.5px;
        padding: 2px 4px;
        bottom: 10px;
        flex-direction: column;
        gap: 1px;
        min-width: 90px;
    }

    .wheel-badge .badge-title {
        font-size: 7px;
        line-height: 1.1;
    }

    .wheel-badge .badge-sep {
        display: none;
    }

    .wheel-badge .badge-name {
        font-size: 6.5px;
        line-height: 1.1;
    }

    .result-display-box {
        width: 95px;
        height: 32px;
    }

    .result-display-box .big-number {
        font-size: 18px;
    }

    .btn-results {
        width: 95px;
        height: 28px;
        font-size: 11px;
    }
}
