* {
    box-sizing: border-box;
}

:root {
    --safe-top: env(safe-area-inset-top);
    --safe-bottom: env(safe-area-inset-bottom);
    --safe-left: env(safe-area-inset-left);
    --safe-right: env(safe-area-inset-right);

    --app-bg: #070711;
    --app-panel: rgba(20, 22, 40, 0.94);
    --app-purple: #8e44ad;
    --app-purple-2: #5b2cff;
    --app-border: rgba(255, 255, 255, 0.1);
    --app-muted: #aaa;
}

html {
    min-height: 100%;
    background: var(--app-bg);
    overscroll-behavior: none;
}

body {
    margin: 0;
    min-height: 100vh;
    padding-top: var(--safe-top);
    padding-left: var(--safe-left);
    padding-right: var(--safe-right);
    background:
        radial-gradient(circle at top, rgba(90, 35, 140, 0.35), transparent 35%),
        linear-gradient(135deg, #070711, #10101f 55%, #050509);
    color: #f5f5f5;
    font-family: Arial, Helvetica, sans-serif;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

button,
a,
input,
select {
    touch-action: manipulation;
}

a {
    color: inherit;
    text-decoration: none;
}

.page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.app-shell {
    padding-bottom: calc(24px + var(--safe-bottom));
}

.wide-page {
    width: min(1320px, 100%);
    margin: 0 auto;
    padding: 24px;
}

.panel {
    width: 100%;
    max-width: 820px;
    padding: 36px;
    background: rgba(20, 22, 40, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
    text-align: center;
}

.form-panel {
    max-width: 420px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: 42px;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.subtitle {
    color: #aaa;
    margin-bottom: 28px;
}

.app-logo {
    width: 74px;
    height: 74px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.22), transparent 60%),
        linear-gradient(135deg, var(--app-purple), var(--app-purple-2));
    color: white;
    font-size: 42px;
    font-weight: 900;
    box-shadow: 0 18px 60px rgba(91, 44, 255, 0.24);
}

.profile-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 24px;
}

.app-profile {
    display: grid;
    gap: 8px;
    text-align: left;
    margin-bottom: 18px;
}

.guest-card {
    padding: 18px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    color: #ddd;
}

.actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 22px;
}

.btn {
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    background: linear-gradient(135deg, #8e44ad, #5b2cff);
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
}

.full-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.small-btn {
    padding: 10px 16px;
    font-size: 13px;
}

.install-btn {
    display: none;
}

.form {
    display: grid;
    gap: 12px;
}

.form input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.25);
    color: white;
    padding: 14px;
    border-radius: 12px;
    outline: none;
}

.form input:focus {
    border-color: #8e44ad;
}

.text-link {
    display: inline-block;
    margin-top: 18px;
    color: #bbb;
}

.flash,
.danger-box,
.success-box {
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 12px;
}

.flash,
.danger-box {
    background: rgba(231, 76, 60, 0.16);
    border: 1px solid rgba(231, 76, 60, 0.35);
    color: #ffb4b4;
}

.success-box {
    background: rgba(46, 204, 113, 0.14);
    border: 1px solid rgba(46, 204, 113, 0.36);
    color: #b8ffd4;
}

.flash-list {
    margin-bottom: 18px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.app-menu-grid {
    margin-top: 16px;
}

.menu-card {
    display: grid;
    gap: 6px;
    text-align: left;
    padding: 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.16s ease, background 0.16s ease;
}

.menu-card:hover {
    transform: translateY(-3px);
    background: rgba(142, 68, 173, 0.16);
}

.primary-menu-card {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 50%),
        linear-gradient(135deg, rgba(142, 68, 173, 0.48), rgba(91, 44, 255, 0.34));
}

.menu-card strong {
    font-size: 18px;
}

.menu-card span {
    color: #aaa;
    font-size: 14px;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.top-bar h1 {
    font-size: 34px;
}

.top-bar p {
    color: #aaa;
    margin-bottom: 0;
}

.section-title {
    margin: 28px 0 16px;
}

.shop-panel,
.deck-status {
    padding: 24px;
    margin-bottom: 24px;
    border-radius: 20px;
    background: rgba(20, 22, 40, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-grid,
.builder-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
}

.collection-card,
.builder-card {
    min-height: 255px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 18px;
    background: linear-gradient(160deg, #2c2c3c, #11111b);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    color: white;
}

.collection-card.locked {
    opacity: 0.35;
    filter: grayscale(1);
}

.deck-list {
    display: grid;
    gap: 8px;
}

.deck-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.045);
    border-radius: 10px;
}

.copy-select {
    margin-top: 10px;
    display: grid;
    gap: 6px;
    font-size: 12px;
    color: #ddd;
}

.copy-select label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.save-deck-bar {
    position: sticky;
    bottom: 0;
    margin-top: 24px;
    padding: 16px;
    text-align: center;
    background: rgba(7, 7, 17, 0.88);
    backdrop-filter: blur(10px);
    border-radius: 18px;
}

.network-banner {
    position: fixed;
    top: calc(8px + var(--safe-top));
    left: 50%;
    z-index: 9999;
    transform: translateX(-50%);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    pointer-events: none;
    opacity: 0.9;
}

.network-banner.online {
    background: rgba(46, 204, 113, 0.20);
    border: 1px solid rgba(46, 204, 113, 0.35);
    color: #b8ffd4;
}

.network-banner.offline {
    background: rgba(231, 76, 60, 0.20);
    border: 1px solid rgba(231, 76, 60, 0.35);
    color: #ffb4b4;
}

.mobile-bottom-nav {
    position: fixed;
    left: max(12px, var(--safe-left));
    right: max(12px, var(--safe-right));
    bottom: calc(10px + var(--safe-bottom));
    z-index: 9000;
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 8px;
    border-radius: 22px;
    background: rgba(7, 7, 17, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 70px rgba(0, 0, 0, 0.45);
}

.mobile-bottom-nav a {
    display: grid;
    place-items: center;
    min-height: 42px;
    border-radius: 16px;
    color: #bbb;
    font-size: 12px;
    font-weight: 800;
}

.mobile-bottom-nav a.active {
    background: linear-gradient(135deg, var(--app-purple), var(--app-purple-2));
    color: #fff;
}

.mobile-filter-panel {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-filter-panel input,
.mobile-filter-panel select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.26);
    color: #fff;
    outline: none;
}

.mobile-filter-panel input::placeholder {
    color: #888;
}

.booster-pack {
    display: grid;
    place-items: center;
    gap: 8px;
    text-align: center;
}

.booster-logo {
    width: 140px;
    height: 190px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.20), transparent 56%),
        linear-gradient(160deg, var(--app-purple), #151526 70%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: white;
    font-size: 82px;
    font-weight: 900;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

/* ARENA */

#arena {
    width: min(1280px, 100%);
    margin: 0 auto;
    padding: 20px;
}

.arena-header,
.player-hud,
.board,
.controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.arena-header {
    margin-bottom: 18px;
}

.arena-header h1 {
    font-size: 28px;
    margin-bottom: 2px;
}

.mobile-hp-row {
    display: grid;
    grid-template-columns: 1fr 74px 1fr;
    gap: 10px;
    align-items: stretch;
    margin: 12px 0;
}

.compact-player-card {
    min-height: 92px;
    display: grid;
    align-content: center;
    gap: 2px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.compact-player-card span {
    font-size: 12px;
    color: #aaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-player-card strong {
    font-size: 28px;
    line-height: 1;
}

.compact-player-card small {
    font-size: 10px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.enemy-compact {
    border-color: rgba(231, 76, 60, 0.26);
}

.my-compact {
    border-color: rgba(46, 204, 113, 0.24);
    text-align: right;
}

.round-orb {
    min-height: 74px;
    display: grid;
    place-items: center;
    align-content: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.18), transparent 54%),
        linear-gradient(145deg, #2b1747, #090911);
    border: 1px solid rgba(142, 68, 173, 0.55);
}

.round-orb span {
    font-size: 10px;
    color: #aaa;
}

.round-orb strong {
    font-size: 24px;
}

.mobile-counts {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
}

.mobile-counts div {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #bbb;
    font-size: 11px;
}

.board {
    justify-content: center;
    margin: 16px 0;
}

.mobile-board {
    gap: 10px;
}

.zone {
    width: 170px;
    height: 230px;
    display: grid;
    place-items: center;
    border: 2px dashed rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    color: #777;
    background: rgba(0, 0, 0, 0.22);
}

.mobile-zone {
    position: relative;
}

#battle-log {
    height: 125px;
    overflow-y: auto;
    padding: 12px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d8d8d8;
    font-size: 14px;
}

#battle-log p {
    margin: 0 0 6px;
}

.controls {
    justify-content: center;
    margin: 14px 0;
}

.sticky-controls {
    position: sticky;
    top: calc(8px + var(--safe-top));
    z-index: 50;
    padding: 8px 0;
    background: linear-gradient(to bottom, rgba(7, 7, 17, 0.92), rgba(7, 7, 17, 0.38));
    backdrop-filter: blur(10px);
}

.hand-title {
    margin: 20px 0 10px;
    text-align: center;
    color: #ddd;
}

.mobile-hand-section {
    padding-bottom: calc(92px + var(--safe-bottom));
}

#my-hand {
    min-height: 230px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px;
}

.mobile-hand {
    overflow-x: auto;
    overflow-y: visible;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.mobile-hand .image-card {
    flex: 0 0 auto;
    scroll-snap-align: center;
}

/* IMAGE CARD */

.image-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #1a1a26, #090911);
}

.image-card-frame {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 8px;
    border-radius: 14px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01)),
        rgba(0, 0, 0, 0.18);
}

.image-card-header {
    min-height: 34px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
}

.image-card-header h4 {
    margin: 0;
    font-size: 12px;
    line-height: 1.1;
    color: #fff;
}

.image-card-header span {
    font-size: 9px;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.image-card-art {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 10px;
    overflow: hidden;
    background:
        radial-gradient(circle at top, rgba(142, 68, 173, 0.25), transparent 60%),
        #111;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.image-card-art img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.image-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    font-size: 10px;
    color: #ddd;
}

.image-card-meta span {
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.image-card-effect {
    flex: 1;
    min-height: 38px;
    padding: 6px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
}

.image-card-effect p {
    margin: 0;
    font-size: 9px;
    line-height: 1.25;
    color: #cfcfcf;
}

.image-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.image-card-footer span {
    font-size: 9px;
    color: #aaa;
    letter-spacing: 1px;
}

.image-card-footer strong {
    font-size: 18px;
    color: #fff;
}

.owned-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    min-width: 34px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: white;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}

.card.image-card {
    width: 165px;
    height: 265px;
    padding: 0;
}

.collection-card.image-card,
.builder-card.image-card {
    min-height: 330px;
    padding: 0;
}

.builder-card.image-card {
    overflow: visible;
}

.builder-card .copy-select {
    margin: 10px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.24);
}

#my-hand .image-card {
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

#my-hand .image-card:hover {
    transform: translateY(-10px) scale(1.08);
    z-index: 20;
}

.zone .image-card {
    transform: scale(0.92);
}

.zone .image-card:hover {
    transform: scale(1.02);
}

.common .image-card-frame,
.image-card.common .image-card-frame {
    box-shadow: inset 0 0 0 1px rgba(189, 195, 199, 0.35);
}

.uncommon .image-card-frame,
.image-card.uncommon .image-card-frame {
    box-shadow: inset 0 0 0 1px rgba(46, 204, 113, 0.5);
}

.rare .image-card-frame,
.image-card.rare .image-card-frame {
    box-shadow: inset 0 0 0 1px rgba(52, 152, 219, 0.65);
}

.epic .image-card-frame,
.image-card.epic .image-card-frame {
    box-shadow:
        inset 0 0 0 1px rgba(155, 89, 182, 0.85),
        0 0 22px rgba(155, 89, 182, 0.18);
}

.image-card.spell .image-card-frame {
    background:
        radial-gradient(circle at top, rgba(155, 89, 182, 0.25), transparent 60%),
        rgba(20, 10, 32, 0.92);
}

.image-card.trap .image-card-frame {
    background:
        radial-gradient(circle at top, rgba(231, 76, 60, 0.20), transparent 60%),
        rgba(35, 10, 10, 0.92);
}

.image-card.monster .image-card-frame {
    background:
        radial-gradient(circle at top, rgba(52, 152, 219, 0.12), transparent 60%),
        rgba(15, 18, 30, 0.92);
}

.card-back,
.card-set {
    width: 165px;
    height: 265px;
    padding: 10px;
}

.card-back-inner {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border-radius: 16px;
    background:
        radial-gradient(circle at center, rgba(142, 68, 173, 0.35), transparent 55%),
        linear-gradient(145deg, #151526, #050509);
    border: 1px solid rgba(142, 68, 173, 0.6);
}

.card-back-logo {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(142, 68, 173, 0.18);
    color: #c084fc;
    font-size: 42px;
    font-weight: 900;
}

.card-back-inner p {
    margin: 0;
    color: #aaa;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* FEEDBACK */

.damage-pulse {
    animation: damagePulse 0.55s ease;
}

.heal-pulse {
    animation: healPulse 0.55s ease;
}

.button-pulse,
.soft-pulse {
    animation: softPulse 0.45s ease;
}

@keyframes damagePulse {
    0% {
        transform: scale(1);
        color: white;
    }

    45% {
        transform: scale(1.18);
        color: #ff6b6b;
        text-shadow: 0 0 18px rgba(255, 107, 107, 0.6);
    }

    100% {
        transform: scale(1);
        color: white;
    }
}

@keyframes healPulse {
    0% {
        transform: scale(1);
        color: white;
    }

    45% {
        transform: scale(1.18);
        color: #69f0ae;
        text-shadow: 0 0 18px rgba(105, 240, 174, 0.6);
    }

    100% {
        transform: scale(1);
        color: white;
    }
}

@keyframes softPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

/* MOBILE */

@media (max-width: 820px) {
    body {
        min-height: 100dvh;
    }

    .page {
        min-height: 100dvh;
        padding: 16px;
    }

    .panel {
        max-width: 100%;
        padding: 24px 18px;
        border-radius: 24px;
    }

    h1 {
        font-size: 32px;
    }

    .subtitle {
        font-size: 14px;
    }

    .app-menu-grid {
        grid-template-columns: 1fr;
    }

    .menu-card {
        min-height: 78px;
    }

    .actions {
        flex-direction: column;
    }

    .actions .btn {
        width: 100%;
    }

    .mobile-bottom-nav {
        display: grid;
    }

    .mobile-wide-page {
        padding: 16px 12px calc(96px + var(--safe-bottom));
    }

    .mobile-top-bar {
        align-items: stretch;
        gap: 12px;
        flex-direction: column;
    }

    .mobile-top-bar h1 {
        font-size: 28px;
    }

    .mobile-filter-panel {
        grid-template-columns: 1fr;
        position: sticky;
        top: calc(4px + var(--safe-top));
        z-index: 100;
        backdrop-filter: blur(14px);
    }

    .mobile-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .collection-card.image-card,
    .builder-card.image-card {
        min-height: 300px;
    }

    .image-card-header h4 {
        font-size: 11px;
    }

    .image-card-effect {
        min-height: 48px;
    }

    .image-card-effect p {
        font-size: 8.5px;
    }

    .image-card-footer strong {
        font-size: 16px;
    }

    .copy-select {
        font-size: 11px;
    }

    .mobile-save-bar {
        left: 10px;
        right: 10px;
        bottom: calc(70px + var(--safe-bottom));
        z-index: 8000;
        display: grid;
        gap: 10px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .deck-counter {
        color: #ddd;
        font-size: 13px;
    }

    .compact-deck-list {
        max-height: 180px;
        overflow: auto;
    }

    .arena-body {
        overflow-x: hidden;
    }

    #arena.mobile-arena {
        width: 100%;
        padding: 12px 10px calc(18px + var(--safe-bottom));
    }

    .mobile-arena-header {
        flex-direction: row;
        align-items: center;
        margin-top: 22px;
    }

    .mobile-arena-header h1 {
        font-size: 20px;
    }

    .mobile-arena-header p {
        font-size: 12px;
        color: #aaa;
    }

    .mobile-board {
        display: grid;
        grid-template-columns: 1fr 1fr;
        justify-items: center;
    }

    .mobile-zone {
        width: 46vw;
        max-width: 178px;
        height: 255px;
        border-radius: 18px;
    }

    .zone .image-card {
        transform: scale(0.82);
    }

    .zone .image-card:hover {
        transform: scale(0.86);
    }

    .card.image-card,
    .card-back,
    .card-set {
        width: 150px;
        height: 244px;
    }

    .mobile-battle-log {
        height: 104px !important;
        font-size: 12px !important;
        border-radius: 16px;
    }

    #my-hand.mobile-hand {
        padding: 16px 8px 26px;
    }

    #my-hand .image-card:hover {
        transform: translateY(-6px) scale(1.04);
    }
}

@media (max-width: 390px) {
    .mobile-card-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .collection-card.image-card,
    .builder-card.image-card {
        min-height: 284px;
    }

    .mobile-zone {
        height: 240px;
    }

    .card.image-card,
    .card-back,
    .card-set {
        width: 138px;
        height: 230px;
    }

    .image-card-effect p {
        font-size: 8px;
    }

    .compact-player-card strong {
        font-size: 24px;
    }
}
/* =========================================================
   REWORK 9 — ENERGY / CORE MECHANICS
   ========================================================= */

.arena-helper {
    text-align: center;
    color: #aaa;
    font-size: 12px;
    margin-top: -4px;
    margin-bottom: 8px;
}

.playable-card {
    cursor: pointer;
}

.locked-energy-card {
    opacity: 0.42;
    filter: grayscale(0.8);
    cursor: not-allowed !important;
}

.locked-energy-card::after {
    content: "LOW ENERGY";
    position: absolute;
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%) rotate(-12deg);
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(231, 76, 60, 0.88);
    color: white;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.8px;
    z-index: 20;
    pointer-events: none;
}

#phase-label {
    color: #c084fc;
    font-weight: 800;
}

#my-energy,
#enemy-energy {
    color: #d8c7ff;
}

/* =========================================================
   REWORK 10/11 — TUTORIAL + BALANCE DATA
   ========================================================= */

.deck-status details {
    margin-top: 12px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.deck-status summary {
    cursor: pointer;
    font-weight: 800;
    color: #d8c7ff;
}

.deck-line strong {
    text-align: right;
}

.deck-counter {
    font-weight: 800;
}

@media (max-width: 820px) {
    .deck-line {
        align-items: flex-start;
        flex-direction: column;
    }

    .deck-line strong {
        text-align: left;
    }
}

/* =========================================================
   REWORK 12 — ARENA POLISH
   ========================================================= */

.arena-tip-panel,
.arena-rules-panel {
    margin: 10px 0;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.09);
}

.arena-tip-panel {
    display: grid;
    gap: 4px;
}

.arena-tip-panel strong {
    color: #d8c7ff;
}

.arena-tip-panel span {
    color: #ddd;
    font-size: 13px;
}

.arena-rules-panel summary {
    cursor: pointer;
    color: #d8c7ff;
    font-weight: 900;
}

.quick-rules-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.quick-rules-grid div {
    display: grid;
    gap: 4px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(0,0,0,0.22);
}

.quick-rules-grid strong {
    color: white;
}

.quick-rules-grid span {
    color: #aaa;
    font-size: 12px;
}

.enhanced-battle-log p {
    padding: 5px 8px;
    border-radius: 10px;
    margin-bottom: 6px !important;
}

.log-damage {
    background: rgba(231, 76, 60, 0.14);
    color: #ffb4b4;
}

.log-heal {
    background: rgba(46, 204, 113, 0.12);
    color: #b8ffd4;
}

.log-advantage {
    background: rgba(155, 89, 182, 0.18);
    color: #ead6ff;
}

.log-energy {
    background: rgba(52, 152, 219, 0.13);
    color: #b8ddff;
}

.log-round {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-weight: 800;
}

.zone-reveal-pulse {
    animation: zoneRevealPulse 0.7s ease;
}

@keyframes zoneRevealPulse {
    0% {
        box-shadow: 0 0 0 rgba(192, 132, 252, 0);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 28px rgba(192, 132, 252, 0.42);
        transform: scale(1.03);
    }

    100% {
        box-shadow: 0 0 0 rgba(192, 132, 252, 0);
        transform: scale(1);
    }
}

/* =========================================================
   REWORK 13 — DECK BUILDER PLUS/MINUS
   ========================================================= */

.sticky-deck-overview {
    position: sticky;
    top: calc(8px + var(--safe-top));
    z-index: 200;
    backdrop-filter: blur(18px);
}

.deck-progress-shell {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.deck-progress-label {
    display: flex;
    justify-content: space-between;
    color: #ddd;
    font-weight: 800;
}

.deck-progress-bar {
    height: 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
}

.deck-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #8e44ad, #5b2cff);
    border-radius: 999px;
    transition: width 0.2s ease;
}

.deck-live-grid {
    margin-top: 10px;
}

.deck-live-message {
    margin-top: 14px;
    padding: 12px;
    border-radius: 12px;
    font-weight: 800;
    text-align: center;
}

.deck-live-message.valid {
    background: rgba(46,204,113,0.14);
    color: #b8ffd4;
    border: 1px solid rgba(46,204,113,0.28);
}

.deck-live-message.invalid {
    background: rgba(231,76,60,0.12);
    color: #ffb4b4;
    border: 1px solid rgba(231,76,60,0.24);
}

.enhanced-builder-filters {
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
}

.deck-card-controls {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    gap: 8px;
    align-items: center;
    margin: 10px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(0,0,0,0.26);
}

.deck-step-btn {
    width: 44px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #8e44ad, #5b2cff);
    color: white;
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
}

.deck-card-count {
    display: grid;
    place-items: center;
    gap: 2px;
}

.deck-card-count strong {
    font-size: 20px;
}

.deck-card-count span {
    color: #aaa;
    font-size: 12px;
}

.hidden-card-inputs {
    display: none;
}

@media (max-width: 820px) {
    .quick-rules-grid {
        grid-template-columns: 1fr;
    }

    .enhanced-builder-filters {
        grid-template-columns: 1fr;
    }

    .sticky-deck-overview {
        position: relative;
        top: auto;
    }

    .deck-card-controls {
        grid-template-columns: 42px 1fr 42px;
    }
}

/* =========================================================
   CORE 1 — AMBITION ENGINE
   ========================================================= */

.ambition-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 10px 0;
}

.ambition-box {
    padding: 12px;
    border-radius: 16px;
    background: rgba(142, 68, 173, 0.12);
    border: 1px solid rgba(216, 199, 255, 0.15);
}

.ambition-label {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: #ddd;
    font-size: 12px;
    font-weight: 800;
}

.ambition-label strong {
    color: #f4e9ff;
}

.ambition-bar {
    height: 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
}

.ambition-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(135deg, #8e44ad, #d8c7ff);
    transition: width 0.28s ease;
}

.ambition-fill.enemy {
    background: linear-gradient(135deg, #5b2cff, #9b59b6);
}

.ambition-fill.ready {
    box-shadow: 0 0 18px rgba(216, 199, 255, 0.55);
}

.ambition-fill.danger {
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    animation: ambitionDangerPulse 0.7s infinite alternate;
}

.log-ambition {
    background: rgba(216, 199, 255, 0.14);
    color: #f0dcff;
    border: 1px solid rgba(216, 199, 255, 0.12);
}

@keyframes ambitionDangerPulse {
    from {
        filter: brightness(1);
    }

    to {
        filter: brightness(1.45);
    }
}

@media (max-width: 820px) {
    .ambition-row {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   CORE 2 — MANUAL AMBITION + INTENTS
   ========================================================= */

.intent-panel {
    margin: 10px 0;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.09);
}

.intent-panel h3 {
    margin-bottom: 10px;
    color: #f4e9ff;
    text-align: center;
}

.intent-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.intent-btn {
    display: grid;
    gap: 5px;
    padding: 12px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.24);
    color: white;
    cursor: pointer;
    text-align: left;
}

.intent-btn strong {
    font-size: 15px;
}

.intent-btn span {
    font-size: 11px;
    color: #aaa;
    line-height: 1.3;
}

.intent-btn.active {
    border-color: rgba(216,199,255,0.7);
    box-shadow: 0 0 18px rgba(142,68,173,0.35);
    background: rgba(142,68,173,0.22);
}

.intent-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ambition-unleash-btn {
    margin-top: 12px;
}

.ambition-unleash-btn.active-unleash {
    background: linear-gradient(135deg, #8e44ad, #f39c12);
    box-shadow: 0 0 22px rgba(243, 156, 18, 0.35);
}

@media (max-width: 820px) {
    .intent-buttons {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   BETA TEST SUITE 1 — PRIVATE ROOMS / FEEDBACK / ADMIN 2
   ========================================================= */

.home-beta-actions {
    margin-bottom: 18px;
}

.private-room-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-top: 12px;
}

.private-room-form input,
.form textarea,
.form select {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(0,0,0,0.28);
    color: #fff;
    outline: none;
}

.private-room-code-panel {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
    margin: 10px 0;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(142, 68, 173, 0.14);
    border: 1px solid rgba(216, 199, 255, 0.16);
}

.private-room-code-panel strong {
    color: #d8c7ff;
}

.private-room-code-panel span {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
}

.game-over-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(14px);
}

.game-over-card {
    width: min(420px, 94vw);
    padding: 26px;
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(25, 20, 40, 0.98), rgba(8, 8, 16, 0.98));
    border: 1px solid rgba(216,199,255,0.22);
    box-shadow: 0 24px 80px rgba(0,0,0,0.45);
    text-align: center;
}

.game-over-card h1 {
    font-size: 38px;
    margin-bottom: 8px;
}

.game-over-card p {
    color: #bbb;
    margin-bottom: 18px;
}

@media (max-width: 820px) {
    .private-room-form {
        grid-template-columns: 1fr;
    }

    .private-room-code-panel {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* =========================================================
   PVE / ADMIN 3 / BOOSTER 2.0
   ========================================================= */

.home-beta-actions .actions {
    flex-wrap: wrap;
}

.game-over-card h1 {
    background: linear-gradient(135deg, #ffffff, #d8c7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.deck-status h2 {
    letter-spacing: 0.2px;
}

.booster-odds-box {
    margin: 12px 0;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}

/* =========================================================
   PRODUCTION READINESS 1 — OFFICIAL VISUAL IDENTITY
   ========================================================= */

:root {
    --ambition-bg: #070711;
    --ambition-bg-soft: #0d0a18;
    --ambition-panel: rgba(18, 12, 32, 0.88);
    --ambition-purple: #8e44ad;
    --ambition-purple-2: #5b2cff;
    --ambition-lavender: #d8c7ff;
    --ambition-gold: #f39c12;
    --ambition-danger: #e74c3c;
    --ambition-success: #2ecc71;
}

body {
    background:
        radial-gradient(circle at top left, rgba(142, 68, 173, 0.22), transparent 32%),
        radial-gradient(circle at bottom right, rgba(91, 44, 255, 0.16), transparent 28%),
        linear-gradient(180deg, #070711 0%, #0b0715 48%, #050409 100%);
}

.app-logo {
    background:
        radial-gradient(circle at 40% 25%, rgba(255,255,255,0.24), transparent 38%),
        linear-gradient(135deg, #8e44ad, #5b2cff);
    border: 1px solid rgba(216,199,255,0.38);
    box-shadow:
        0 0 28px rgba(142,68,173,0.38),
        inset 0 0 24px rgba(255,255,255,0.08);
}

.panel,
.deck-status,
.menu-card,
.profile-card,
.guest-card {
    background: var(--ambition-panel);
    border: 1px solid rgba(216,199,255,0.12);
    box-shadow: 0 24px 70px rgba(0,0,0,0.32);
}

h1,
h2,
h3 {
    letter-spacing: -0.4px;
}

.btn {
    background: linear-gradient(135deg, var(--ambition-purple), var(--ambition-purple-2));
    border: 1px solid rgba(216,199,255,0.20);
    box-shadow: 0 12px 30px rgba(91,44,255,0.22);
}

.btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(216,199,255,0.16);
    box-shadow: none;
}

.primary-menu-card {
    background:
        radial-gradient(circle at top right, rgba(216,199,255,0.16), transparent 42%),
        linear-gradient(135deg, rgba(142,68,173,0.34), rgba(91,44,255,0.20));
}

.image-card-frame {
    border: 1px solid rgba(216,199,255,0.20);
}

.card,
.image-card {
    box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}

.network-banner {
    backdrop-filter: blur(14px);
}

.ambition-brand-mark {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #8e44ad, #5b2cff);
    border: 1px solid rgba(216,199,255,0.28);
    color: white;
    font-weight: 900;
    box-shadow: 0 0 24px rgba(142,68,173,0.38);
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 18px;
    font-size: 13px;
}

.legal-links a {
    color: #d8c7ff;
    text-decoration: none;
}

/* =========================================================
   IOS PWA MOBILE POLISH 1
   ========================================================= */

html {
    min-height: 100%;
    min-height: -webkit-fill-available;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    overscroll-behavior-y: none;
    -webkit-tap-highlight-color: transparent;
}

button,
a,
input,
select,
textarea {
    touch-action: manipulation;
}

input,
select,
textarea {
    font-size: 16px !important;
}

.ios-safe-body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-wide-page,
.mobile-arena,
.page,
.app-shell {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
}

.mobile-home-hero {
    max-width: 520px;
    margin-inline: auto;
}

.ios-install-tip {
    display: grid;
    gap: 4px;
    margin: 12px 0 16px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(216, 199, 255, 0.10);
    border: 1px solid rgba(216, 199, 255, 0.16);
    color: #eee;
}

.ios-install-tip strong {
    color: #fff;
}

.ios-install-tip span {
    color: #bbb;
    font-size: 13px;
}

.ios-arena {
    width: min(100%, 760px);
    margin-inline: auto;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

.compact-arena-header {
    position: sticky;
    top: env(safe-area-inset-top);
    z-index: 250;
    backdrop-filter: blur(18px);
    background: rgba(7, 7, 17, 0.86);
    border-radius: 0 0 18px 18px;
    padding-top: 10px;
}

.compact-arena-header h1 {
    font-size: clamp(22px, 6vw, 34px);
}

.compact-tip-panel,
.compact-rules-panel,
.compact-intent-panel {
    padding: 10px 12px;
}

.compact-hp-row {
    gap: 8px;
}

.compact-player-card {
    min-height: 78px;
}

.compact-player-card strong {
    font-size: clamp(22px, 7vw, 34px);
}

.round-orb {
    min-width: 58px;
    width: 58px;
    height: 58px;
}

.compact-ambition-row {
    gap: 8px;
}

.compact-ambition-row .ambition-box {
    padding: 10px;
}

.compact-board {
    gap: 8px;
}

.compact-board .mobile-zone {
    min-height: 132px;
}

.arena-action-panel {
    position: sticky;
    bottom: env(safe-area-inset-bottom);
    z-index: 240;
    display: grid;
    gap: 8px;
    margin: 8px 0;
    padding: 8px;
    border-radius: 22px;
    background: rgba(7, 7, 17, 0.86);
    border: 1px solid rgba(216, 199, 255, 0.12);
    backdrop-filter: blur(18px);
}

.ios-sticky-controls {
    position: relative !important;
    bottom: auto !important;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
}

.compact-intent-panel h3 {
    display: none;
}

.compact-intent-panel .intent-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.compact-intent-panel .intent-btn {
    min-height: 64px;
    padding: 9px;
    text-align: center;
    place-items: center;
}

.compact-intent-panel .intent-btn strong {
    font-size: 13px;
}

.compact-intent-panel .intent-btn span {
    font-size: 10px;
}

.ambition-unleash-btn {
    min-height: 44px;
}

.battle-log-drawer {
    margin: 10px 0;
    border-radius: 18px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
}

.battle-log-drawer summary {
    cursor: pointer;
    padding: 12px 14px;
    color: #d8c7ff;
    font-weight: 900;
    list-style: none;
}

.battle-log-drawer summary::-webkit-details-marker {
    display: none;
}

.compact-battle-log {
    max-height: 150px;
    border-radius: 0;
    margin: 0;
}

.ios-hand-section {
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

.ios-mobile-hand {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 6px 4px 16px;
}

.ios-mobile-hand .card,
.ios-mobile-hand .image-card {
    flex: 0 0 178px;
    scroll-snap-align: start;
}

.game-over-overlay {
    padding:
        max(20px, env(safe-area-inset-top))
        max(20px, env(safe-area-inset-right))
        max(20px, env(safe-area-inset-bottom))
        max(20px, env(safe-area-inset-left));
}

@media (max-width: 430px) {
    .mobile-arena {
        padding-left: max(8px, env(safe-area-inset-left));
        padding-right: max(8px, env(safe-area-inset-right));
    }

    .arena-tip-panel span {
        font-size: 12px;
    }

    .mobile-counts {
        font-size: 12px;
        gap: 6px;
    }

    .compact-board .mobile-zone {
        min-height: 112px;
    }

    .intent-buttons {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .quick-rules-grid {
        grid-template-columns: 1fr;
    }

    .ios-mobile-hand .card,
    .ios-mobile-hand .image-card {
        flex-basis: 160px;
    }
}

@media (display-mode: standalone) {
    .network-banner {
        top: max(8px, env(safe-area-inset-top));
    }
}

/* =========================================================
   GAMEPLAY POLISH 1 — BOT FIX + MECHANIC CLARITY
   ========================================================= */

.enemy-compact span::before {
    content: "";
}

.bot-training-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(216, 199, 255, 0.12);
    border: 1px solid rgba(216, 199, 255, 0.18);
    color: #d8c7ff;
    font-size: 11px;
    font-weight: 900;
}

.log-default,
.log-round,
.log-energy,
.log-ambition,
.log-damage,
.log-heal,
.log-advantage {
    line-height: 1.35;
}

.intent-btn.active {
    transform: translateY(-1px);
}

.intent-btn.active strong {
    color: #ffffff;
}

#btn-ready:disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

/* =========================================================
   BALANCE + ARENA IMPACT POLISH 1
   ========================================================= */

.screen-hit::after,
.screen-ambition::after,
.screen-overreach::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    animation-fill-mode: both;
}

.screen-hit::after {
    background: radial-gradient(circle, transparent 48%, rgba(231, 76, 60, 0.28) 100%);
    animation: screenHitFlash 0.28s ease;
}

.screen-ambition::after {
    background:
        radial-gradient(circle at center, rgba(216, 199, 255, 0.28), transparent 55%),
        radial-gradient(circle at center, rgba(142, 68, 173, 0.22), transparent 70%);
    animation: screenAmbitionFlash 0.52s ease;
}

.screen-overreach::after {
    background:
        radial-gradient(circle, rgba(231, 76, 60, 0.22), transparent 45%),
        linear-gradient(135deg, rgba(231, 76, 60, 0.18), rgba(243, 156, 18, 0.16));
    animation: screenOverreachFlash 0.62s ease;
}

.zone-element-pulse {
    animation: zoneElementPulse 0.75s ease;
}

@keyframes screenHitFlash {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    45% {
        opacity: 1;
        transform: scale(1.015);
    }

    100% {
        opacity: 0;
        transform: scale(1);
    }
}

@keyframes screenAmbitionFlash {
    0% {
        opacity: 0;
        filter: brightness(1);
    }

    45% {
        opacity: 1;
        filter: brightness(1.45);
    }

    100% {
        opacity: 0;
        filter: brightness(1);
    }
}

@keyframes screenOverreachFlash {
    0% {
        opacity: 0;
        transform: rotate(0deg) scale(1);
    }

    35% {
        opacity: 1;
        transform: rotate(-0.4deg) scale(1.02);
    }

    65% {
        transform: rotate(0.4deg) scale(1.01);
    }

    100% {
        opacity: 0;
        transform: rotate(0deg) scale(1);
    }
}

@keyframes zoneElementPulse {
    0% {
        box-shadow: 0 0 0 rgba(216, 199, 255, 0);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 32px rgba(216, 199, 255, 0.45);
        transform: scale(1.035);
    }

    100% {
        box-shadow: 0 0 0 rgba(216, 199, 255, 0);
        transform: scale(1);
    }
}

.compact-battle-log p {
    animation: logEnter 0.18s ease both;
}

@keyframes logEnter {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ambition-unleash-btn:not(:disabled) {
    border-color: rgba(216, 199, 255, 0.35);
}

.ambition-unleash-btn.active-unleash {
    animation: unleashPreparedPulse 0.85s infinite alternate;
}

@keyframes unleashPreparedPulse {
    from {
        box-shadow: 0 0 12px rgba(216, 199, 255, 0.25);
    }

    to {
        box-shadow: 0 0 26px rgba(243, 156, 18, 0.45);
    }
}

/* =========================================================
   AMBITIONZ V1.01A — CORE IDENTITY
   ========================================================= */

.sigil-pill,
.role-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.3px;
    border: 1px solid rgba(216, 199, 255, 0.20);
    background: rgba(216, 199, 255, 0.10);
    color: #eadfff;
}

.log-ambition,
.log-advantage {
    border-left: 3px solid rgba(216, 199, 255, 0.55);
}

.enhanced-battle-log p {
    word-break: break-word;
}

.deck-status p {
    line-height: 1.55;
}

/* =========================================================
   AMBITIONZ V1.01B — UX / ADMIN UPDATE
   ========================================================= */

.deck-filter-panel {
    margin-bottom: 16px;
}

.deck-filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.deck-filter-grid input,
.deck-filter-grid select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(216,199,255,0.14);
    background: rgba(0,0,0,0.28);
    color: #fff;
    font-size: 16px;
}

.deck-builder-grid {
    align-items: stretch;
}

.collection-card {
    display: block;
    cursor: pointer;
}

.collection-card input {
    display: none;
}

.card-shell {
    display: grid;
    gap: 10px;
    height: 100%;
    padding: 14px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(216,199,255,0.10), transparent 38%),
        rgba(12, 8, 22, 0.92);
    border: 1px solid rgba(216,199,255,0.12);
    box-shadow: 0 16px 38px rgba(0,0,0,0.24);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.collection-card:hover .card-shell {
    transform: translateY(-2px);
    border-color: rgba(216,199,255,0.32);
}

.collection-card input:checked + .card-shell {
    border-color: rgba(243,156,18,0.72);
    box-shadow: 0 0 26px rgba(243,156,18,0.22);
}

.card-topline,
.card-meta-row,
.card-identity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.card-topline strong {
    color: #fff;
    font-size: 15px;
}

.card-topline span,
.card-meta-row span {
    color: #c9bddc;
    font-size: 12px;
    font-weight: 800;
}

.card-meta-row {
    justify-content: flex-start;
}

.card-meta-row span {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
}

.card-power {
    color: #fff;
    font-weight: 900;
    font-size: 18px;
}

.card-effect {
    color: #bdb3cf;
    font-size: 13px;
    line-height: 1.35;
}

.sigil-fury {
    background: rgba(231,76,60,0.18);
    border-color: rgba(231,76,60,0.35);
    color: #ffd5d0;
}

.sigil-resolve {
    background: rgba(46,204,113,0.15);
    border-color: rgba(46,204,113,0.32);
    color: #ccffe1;
}

.sigil-insight {
    background: rgba(52,152,219,0.16);
    border-color: rgba(52,152,219,0.34);
    color: #d7efff;
}

.sigil-ruin {
    background: rgba(243,156,18,0.16);
    border-color: rgba(243,156,18,0.34);
    color: #ffe9bd;
}

.sigil-harmony {
    background: rgba(155,89,182,0.18);
    border-color: rgba(155,89,182,0.36);
    color: #f2dcff;
}

.sigil-global {
    background: rgba(216,199,255,0.10);
    border-color: rgba(216,199,255,0.22);
    color: #eadfff;
}

.role-aggressor {
    background: rgba(231,76,60,0.12);
}

.role-defender {
    background: rgba(46,204,113,0.12);
}

.role-controller {
    background: rgba(52,152,219,0.12);
}

.role-balancer {
    background: rgba(216,199,255,0.10);
}

.role-finisher {
    background: rgba(243,156,18,0.12);
}

.log-sigil {
    background: rgba(243,156,18,0.12);
    color: #ffe9bd;
    border: 1px solid rgba(243,156,18,0.16);
}

.sticky-save-btn {
    position: sticky;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 180;
    margin-top: 18px;
}

@media (max-width: 920px) {
    .deck-filter-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .deck-filter-grid {
        grid-template-columns: 1fr;
    }

    .card-shell {
        padding: 12px;
    }
}

/* =========================================================
   AMBITIONZ V1.02 — ACCOUNT / TRUST / LIVE OPS
   ========================================================= */

.admin-user-card,
.feedback-admin-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(216,199,255,0.12);
}

.admin-user-card div:first-child {
    display: grid;
    gap: 4px;
}

.admin-user-card span,
.feedback-admin-card span,
.feedback-admin-card small,
.admin-user-card small {
    color: #bfb4d2;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #8e1f16) !important;
}

.feedback-admin-card p {
    color: #ddd;
    line-height: 1.45;
}

.feedback-admin-card form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.feedback-admin-card select {
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(216,199,255,0.14);
    background: rgba(0,0,0,0.28);
    color: #fff;
    padding: 8px 10px;
}

.welcome-panel {
    text-align: center;
}

/* =========================================================
   AMBITIONZ V1.02.1 — PRODUCTION STABILIZATION
   ========================================================= */

.danger-zone {
    border-color: rgba(231, 76, 60, 0.28) !important;
}

.danger-zone h2 {
    color: #ffd5d0;
}

.danger-zone p {
    color: #e8b7b2;
}

/* =========================================================
   AMBITIONZ V1.03 — CARD FRAMES / ARENA / TRAINING UX
   ========================================================= */

:root {
    --az-bg: #070711;
    --az-panel: rgba(15, 11, 28, 0.92);
    --az-panel-2: rgba(255,255,255,0.055);
    --az-border: rgba(216,199,255,0.16);
    --az-border-strong: rgba(216,199,255,0.35);
    --az-text: #f5efff;
    --az-muted: #bfb3d3;
    --az-gold: #f4c76b;
    --az-danger: #e74c3c;
    --az-safe-bottom: env(safe-area-inset-bottom);
}

/* ---------- Universal Card Frame ---------- */

.az-card-frame {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 10px;
    min-height: 220px;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid var(--az-border);
    background:
        radial-gradient(circle at 20% 0%, rgba(255,255,255,0.11), transparent 28%),
        linear-gradient(145deg, rgba(18,14,34,0.98), rgba(7,7,17,0.96));
    box-shadow:
        0 18px 48px rgba(0,0,0,0.38),
        inset 0 0 0 1px rgba(255,255,255,0.035);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        filter 0.18s ease;
}

.az-card-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.42;
    pointer-events: none;
    background:
        radial-gradient(circle at 80% 12%, rgba(255,255,255,0.12), transparent 22%),
        linear-gradient(180deg, rgba(255,255,255,0.05), transparent 36%);
}

.az-card-frame::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 16px;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.055);
}

.az-card-frame:hover {
    transform: translateY(-2px);
    border-color: var(--az-border-strong);
    box-shadow:
        0 24px 58px rgba(0,0,0,0.46),
        0 0 28px rgba(155,89,182,0.14);
}

.az-card-inner {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 10px;
}

.az-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.az-card-name {
    font-size: 16px;
    line-height: 1.1;
    color: var(--az-text);
    font-weight: 950;
    letter-spacing: 0.02em;
}

.az-card-cost {
    flex: 0 0 auto;
    min-width: 38px;
    height: 38px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #140d1f;
    background: linear-gradient(135deg, #fff1a8, #f4c76b);
    font-weight: 950;
    box-shadow: 0 0 18px rgba(244,199,107,0.28);
}

.az-card-art {
    min-height: 76px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: rgba(255,255,255,0.72);
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background:
        radial-gradient(circle at 50% 30%, rgba(255,255,255,0.13), transparent 32%),
        rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.075);
}

.az-card-meta,
.az-card-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.az-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    color: #efe8ff;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.08);
}

.az-card-power {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 14px;
    color: #fff;
    font-weight: 950;
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.07);
}

.az-card-effect {
    min-height: 54px;
    color: var(--az-muted);
    font-size: 13px;
    line-height: 1.35;
}

/* ---------- Element Frames ---------- */

.az-element-fire {
    border-color: rgba(231,76,60,0.28);
    background:
        radial-gradient(circle at 78% 10%, rgba(231,76,60,0.32), transparent 28%),
        linear-gradient(145deg, rgba(55,16,16,0.96), rgba(11,7,18,0.98));
}

.az-element-water {
    border-color: rgba(52,152,219,0.28);
    background:
        radial-gradient(circle at 78% 10%, rgba(52,152,219,0.32), transparent 28%),
        linear-gradient(145deg, rgba(11,28,51,0.96), rgba(7,7,18,0.98));
}

.az-element-earth {
    border-color: rgba(180,124,56,0.30);
    background:
        radial-gradient(circle at 78% 10%, rgba(180,124,56,0.32), transparent 28%),
        linear-gradient(145deg, rgba(42,30,17,0.96), rgba(8,8,16,0.98));
}

.az-element-plant {
    border-color: rgba(46,204,113,0.28);
    background:
        radial-gradient(circle at 78% 10%, rgba(46,204,113,0.28), transparent 28%),
        linear-gradient(145deg, rgba(11,44,29,0.96), rgba(7,7,18,0.98));
}

.az-element-global,
.az-element-neutral {
    border-color: rgba(155,89,182,0.30);
    background:
        radial-gradient(circle at 78% 10%, rgba(155,89,182,0.28), transparent 28%),
        linear-gradient(145deg, rgba(27,16,45,0.96), rgba(7,7,18,0.98));
}

/* ---------- Rarity Frames ---------- */

.az-rarity-common {
    box-shadow: 0 18px 42px rgba(0,0,0,0.34);
}

.az-rarity-uncommon {
    box-shadow:
        0 18px 48px rgba(0,0,0,0.38),
        0 0 22px rgba(82,190,128,0.12);
}

.az-rarity-rare {
    box-shadow:
        0 18px 52px rgba(0,0,0,0.42),
        0 0 28px rgba(52,152,219,0.17);
}

.az-rarity-epic {
    box-shadow:
        0 18px 58px rgba(0,0,0,0.46),
        0 0 34px rgba(155,89,182,0.22);
}

/* ---------- Sigils ---------- */

.az-sigil-fury,
.sigil-fury {
    background: rgba(231,76,60,0.18);
    border-color: rgba(231,76,60,0.42);
    color: #ffd5d0;
}

.az-sigil-resolve,
.sigil-resolve {
    background: rgba(46,204,113,0.16);
    border-color: rgba(46,204,113,0.38);
    color: #ccffe1;
}

.az-sigil-insight,
.sigil-insight {
    background: rgba(52,152,219,0.17);
    border-color: rgba(52,152,219,0.40);
    color: #d7efff;
}

.az-sigil-ruin,
.sigil-ruin {
    background: rgba(243,156,18,0.17);
    border-color: rgba(243,156,18,0.40);
    color: #ffe9bd;
}

.az-sigil-harmony,
.sigil-harmony {
    background: rgba(155,89,182,0.20);
    border-color: rgba(155,89,182,0.42);
    color: #f2dcff;
}

.az-sigil-global,
.sigil-global {
    background: rgba(216,199,255,0.11);
    border-color: rgba(216,199,255,0.24);
    color: #eadfff;
}

/* ---------- Arena Rework ---------- */

.arena-shell-v103 {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px;
    padding-bottom: calc(24px + var(--az-safe-bottom));
}

.arena-hud-v103 {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 14px;
}

.arena-player-panel {
    border-radius: 22px;
    padding: 14px;
    background: var(--az-panel);
    border: 1px solid var(--az-border);
    box-shadow: 0 14px 32px rgba(0,0,0,0.26);
}

.arena-player-panel.enemy {
    text-align: right;
}

.arena-player-name {
    color: var(--az-text);
    font-weight: 950;
    font-size: 16px;
}

.arena-stat-row {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.arena-player-panel.enemy .arena-stat-row {
    justify-content: flex-end;
}

.arena-stat {
    padding: 5px 8px;
    border-radius: 999px;
    color: var(--az-muted);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.07);
    font-size: 12px;
    font-weight: 850;
}

.arena-round-panel {
    min-width: 130px;
    display: grid;
    place-items: center;
    text-align: center;
    border-radius: 22px;
    padding: 12px;
    background:
        radial-gradient(circle at 50% 0%, rgba(244,199,107,0.20), transparent 36%),
        rgba(12,8,22,0.95);
    border: 1px solid rgba(244,199,107,0.20);
}

.arena-round-panel strong {
    color: #fff;
    font-size: 20px;
}

.arena-round-panel span {
    color: var(--az-gold);
    font-size: 12px;
    font-weight: 950;
}

.arena-board-v103 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 14px;
}

.arena-main-v103 {
    display: grid;
    gap: 14px;
}

.arena-zone-v103 {
    border-radius: 24px;
    padding: 14px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(216,199,255,0.10);
}

.arena-zone-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--az-text);
    font-weight: 950;
    margin-bottom: 10px;
}

.arena-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    min-height: 250px;
}

.arena-slot-v103 {
    min-height: 240px;
    border-radius: 22px;
    padding: 10px;
    background:
        radial-gradient(circle at 50% 0%, rgba(216,199,255,0.08), transparent 32%),
        rgba(0,0,0,0.18);
    border: 1px dashed rgba(216,199,255,0.18);
}

.arena-slot-label {
    color: var(--az-muted);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.arena-hand-v103 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.arena-hand-card {
    cursor: pointer;
}

.arena-hand-card.selected .az-card-frame,
.arena-hand-card:hover .az-card-frame {
    border-color: rgba(244,199,107,0.62);
    box-shadow:
        0 24px 56px rgba(0,0,0,0.42),
        0 0 28px rgba(244,199,107,0.22);
}

.arena-side-v103 {
    display: grid;
    gap: 14px;
    align-content: start;
}

.arena-action-panel,
.arena-log-panel,
.training-coach-panel {
    border-radius: 24px;
    padding: 14px;
    background: var(--az-panel);
    border: 1px solid var(--az-border);
}

.arena-action-grid {
    display: grid;
    gap: 8px;
}

.intent-grid-v103 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.intent-btn-v103 {
    min-height: 48px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    background: rgba(255,255,255,0.07);
    color: #fff;
    font-weight: 950;
    cursor: pointer;
}

.intent-btn-v103.active,
.intent-btn-v103:hover {
    border-color: rgba(244,199,107,0.52);
    box-shadow: 0 0 18px rgba(244,199,107,0.16);
}

.training-coach-panel h3,
.arena-action-panel h3,
.arena-log-panel h3 {
    color: #fff;
    margin: 0 0 10px;
}

.training-step {
    display: grid;
    gap: 6px;
    color: var(--az-muted);
    font-size: 13px;
    line-height: 1.35;
}

.training-step strong {
    color: var(--az-gold);
}

.battle-log-v103 {
    display: grid;
    gap: 8px;
    max-height: 360px;
    overflow: auto;
}

.battle-log-v103 .log-line,
.battle-log-v103 div,
.battle-log-v103 p {
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(255,255,255,0.055);
    color: var(--az-muted);
    font-size: 13px;
    line-height: 1.3;
}

.empty-slot-v103 {
    display: grid;
    place-items: center;
    min-height: 190px;
    color: rgba(255,255,255,0.35);
    font-weight: 950;
    text-align: center;
}

@media (max-width: 980px) {
    .arena-board-v103 {
        grid-template-columns: 1fr;
    }

    .arena-hud-v103 {
        grid-template-columns: 1fr;
    }

    .arena-player-panel.enemy {
        text-align: left;
    }

    .arena-player-panel.enemy .arena-stat-row {
        justify-content: flex-start;
    }

    .arena-side-v103 {
        order: -1;
    }
}

@media (max-width: 620px) {
    .arena-shell-v103 {
        padding: 10px;
        padding-bottom: calc(18px + var(--az-safe-bottom));
    }

    .arena-field-grid {
        grid-template-columns: 1fr;
    }

    .arena-hand-v103 {
        grid-template-columns: 1fr;
    }

    .az-card-frame {
        min-height: 190px;
    }

    .intent-grid-v103 {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   AMBITIONZ V1.03.1 — ADMIN HARDENING
   ========================================================= */

.admin-user-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(216,199,255,0.12);
}

.admin-user-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-danger {
    background: rgba(231, 76, 60, 0.18) !important;
    border-color: rgba(231, 76, 60, 0.40) !important;
    color: #ffd5d0 !important;
}

.subtle-flash {
    opacity: 0.9;
}

@media (max-width: 760px) {
    .admin-user-card {
        grid-template-columns: 1fr;
    }

    .admin-user-actions {
        justify-content: flex-start;
    }
}

.legal-text {
    display: grid;
    gap: 12px;
}

.legal-text h2 {
    color: #fff;
    margin-top: 12px;
}

.legal-text p {
    color: var(--az-muted, #bfb3d3);
    line-height: 1.55;
}

/* Admin clickable cards fix */
.clickable-menu-card,
a.menu-card {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.clickable-menu-card:hover,
a.menu-card:hover {
    transform: translateY(-2px);
    border-color: rgba(216,199,255,0.35);
}

/* =========================================================
   AMBITIONZ V1.04 — TRAINING TUTORIAL FLOW
   ========================================================= */

.training-difficulty-box {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.training-difficulty-box label {
    color: var(--az-muted, #bfb3d3);
    font-size: 13px;
    font-weight: 900;
}

.training-difficulty-box select {
    width: 100%;
    min-height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(216,199,255,0.18);
    background: rgba(255,255,255,0.07);
    color: #fff;
    padding: 0 12px;
    font-weight: 900;
}

.training-difficulty-box option {
    color: #111;
}


/* =========================================================
   AMBITIONZ V1.07 — POST MATCH EXPERIENCE
   ========================================================= */

.post-match-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(5, 2, 12, 0.78);
    backdrop-filter: blur(10px);
}

.post-match-overlay.hidden {
    display: none;
}

.post-match-card {
    width: min(560px, 100%);
    border-radius: 28px;
    border: 1px solid rgba(216,199,255,0.24);
    background:
        radial-gradient(circle at top left, rgba(138, 92, 246, 0.26), transparent 34%),
        linear-gradient(145deg, rgba(22, 14, 42, 0.98), rgba(7, 5, 16, 0.98));
    box-shadow: 0 28px 90px rgba(0,0,0,0.55);
    padding: 28px;
    color: #fff;
}

.post-match-kicker {
    color: #d8c7ff;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 10px;
}

.post-match-card h2 {
    margin: 0;
    font-size: clamp(30px, 7vw, 52px);
    line-height: 0.95;
}

.post-match-card p {
    margin: 12px 0 0;
    color: var(--az-muted, #bfb3d3);
    line-height: 1.5;
}

.post-match-stats,
.post-match-rewards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.post-match-rewards {
    grid-template-columns: repeat(2, 1fr);
}

.post-match-stats div,
.post-match-rewards div {
    border-radius: 18px;
    border: 1px solid rgba(216,199,255,0.14);
    background: rgba(255,255,255,0.06);
    padding: 14px;
}

.post-match-stats span,
.post-match-rewards span {
    display: block;
    color: var(--az-muted, #bfb3d3);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.post-match-stats strong,
.post-match-rewards strong {
    display: block;
    margin-top: 6px;
    font-size: 24px;
}

.post-match-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
}

@media (max-width: 680px) {
    .post-match-card {
        padding: 22px;
    }

    .post-match-stats,
    .post-match-rewards,
    .post-match-actions {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   AMBITIONZ V1.09 — CARD IDENTITY APPLIED
   ========================================================= */

.az-card-identity {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.az-card-identity span {
    border-radius: 999px;
    border: 1px solid rgba(216,199,255,0.16);
    background: rgba(216,199,255,0.08);
    color: #e8dcff;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.az-card-lore,
.az-card-hint {
    margin: 8px 0 0;
    color: var(--az-muted, #bfb3d3);
    font-size: 11px;
    line-height: 1.35;
}

.az-card-lore {
    font-style: italic;
    opacity: 0.92;
}

.az-card-hint {
    opacity: 0.78;
}


/* =========================================================
   AMBITIONZ V1.10 — PROGRESSION LOOP REAL
   ========================================================= */

.progression-hero {
    position: relative;
    overflow: hidden;
}

.progression-hero::before {
    content: "";
    position: absolute;
    inset: -80px auto auto -80px;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: rgba(142, 68, 173, 0.18);
    filter: blur(8px);
    pointer-events: none;
}

.progression-kicker {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    border: 1px solid rgba(216,199,255,0.18);
    background: rgba(216,199,255,0.08);
    color: #e8dcff;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
}

.progression-action-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px;
}

@media (max-width: 760px) {
    .progression-action-row {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   AMBITIONZ V1.10B — BOOSTER SHOP POLISH
   ========================================================= */

.shop-hero-v110 {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    gap: 18px;
    align-items: stretch;
    border-radius: 26px;
    border: 1px solid rgba(216,199,255,0.16);
    background:
        radial-gradient(circle at top left, rgba(142, 68, 173, 0.22), transparent 34%),
        rgba(255,255,255,0.045);
    padding: 22px;
    margin-bottom: 18px;
}

.shop-hero-v110 h2 {
    margin: 8px 0;
    color: #fff;
    font-size: clamp(26px, 5vw, 44px);
    line-height: 1;
}

.shop-hero-v110 p {
    color: var(--az-muted, #bfb3d3);
    line-height: 1.55;
    max-width: 760px;
}

.shop-loop-v110 {
    display: grid;
    gap: 10px;
}

.shop-loop-v110 div {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
    align-items: center;
    border-radius: 18px;
    border: 1px solid rgba(216,199,255,0.14);
    background: rgba(255,255,255,0.055);
    padding: 12px;
}

.shop-loop-v110 strong {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(142, 68, 173, 0.35);
    color: #fff;
}

.shop-loop-v110 span {
    color: #e8dcff;
    font-weight: 900;
}

.shop-pack-v110 {
    gap: 16px;
}

.booster-result-v110 {
    margin-top: 22px;
}

@media (max-width: 860px) {
    .shop-hero-v110 {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   AMBITIONZ V1.10C — PROGRESSION HUB
   ========================================================= */

.progression-hub-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 18px;
    align-items: stretch;
    border-radius: 28px;
    border: 1px solid rgba(216,199,255,0.16);
    background:
        radial-gradient(circle at top left, rgba(142, 68, 173, 0.24), transparent 34%),
        rgba(255,255,255,0.045);
    padding: 24px;
    margin-bottom: 18px;
}

.progression-hub-hero h2 {
    margin: 8px 0;
    color: #fff;
    font-size: clamp(28px, 6vw, 52px);
    line-height: 0.96;
}

.progression-hub-hero p {
    color: var(--az-muted, #bfb3d3);
    line-height: 1.55;
    max-width: 780px;
}

.progression-account-card {
    display: grid;
    gap: 10px;
}

.progression-account-card div {
    border-radius: 20px;
    border: 1px solid rgba(216,199,255,0.14);
    background: rgba(255,255,255,0.06);
    padding: 16px;
}

.progression-account-card span,
.progression-mission-reward span {
    display: block;
    color: var(--az-muted, #bfb3d3);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.progression-account-card strong {
    display: block;
    color: #fff;
    margin-top: 6px;
    font-size: 24px;
}

.progression-loop-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.progression-step-card,
.progression-mission-card {
    border-radius: 22px;
    border: 1px solid rgba(216,199,255,0.14);
    background: rgba(255,255,255,0.05);
    padding: 16px;
}

.progression-step-card h3,
.progression-mission-card h3 {
    margin: 0;
    color: #fff;
}

.progression-step-card p,
.progression-mission-card p {
    color: var(--az-muted, #bfb3d3);
    line-height: 1.45;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.progression-mission-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.progression-mission-reward {
    margin: 12px 0;
}

.progression-mission-reward strong {
    display: block;
    margin-top: 4px;
    color: #fff;
}

@media (max-width: 980px) {
    .progression-loop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .progression-hub-hero,
    .progression-mission-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .progression-loop-grid {
        grid-template-columns: 1fr;
    }

    .section-title-row {
        display: grid;
    }
}


/* =========================================================
   AMBITIONZ V1.10D — HOME DASHBOARD LOOP POLISH
   ========================================================= */

.home-dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 18px;
    align-items: stretch;
    border-radius: 32px;
    border: 1px solid rgba(216,199,255,0.18);
    background:
        radial-gradient(circle at top left, rgba(142, 68, 173, 0.30), transparent 34%),
        radial-gradient(circle at bottom right, rgba(90, 45, 160, 0.20), transparent 30%),
        rgba(255,255,255,0.045);
    padding: clamp(22px, 4vw, 36px);
    margin-bottom: 18px;
    overflow: hidden;
}

.home-dashboard-copy h1 {
    margin: 10px 0;
    color: #fff;
    font-size: clamp(42px, 9vw, 86px);
    line-height: 0.9;
    letter-spacing: -0.06em;
}

.home-dashboard-copy p {
    max-width: 780px;
    color: var(--az-muted, #bfb3d3);
    line-height: 1.55;
    font-size: 16px;
}

.home-player-card {
    border-radius: 26px;
    border: 1px solid rgba(216,199,255,0.16);
    background: rgba(10, 6, 24, 0.62);
    padding: 20px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.home-player-card h2 {
    margin: 8px 0 14px;
    color: #fff;
    font-size: 28px;
}

.home-player-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.home-player-stats div {
    border-radius: 18px;
    border: 1px solid rgba(216,199,255,0.12);
    background: rgba(255,255,255,0.055);
    padding: 12px;
}

.home-player-stats span {
    display: block;
    color: var(--az-muted, #bfb3d3);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.home-player-stats strong {
    display: block;
    margin-top: 6px;
    color: #fff;
    font-size: 18px;
}

.home-loop-section {
    margin: 18px 0;
}

.home-loop-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.home-loop-card {
    display: block;
    min-height: 190px;
    border-radius: 24px;
    border: 1px solid rgba(216,199,255,0.14);
    background: rgba(255,255,255,0.05);
    padding: 16px;
    color: inherit;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.home-loop-card:hover {
    transform: translateY(-3px);
    border-color: rgba(216,199,255,0.34);
    background: rgba(255,255,255,0.075);
}

.home-loop-card > strong {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(142, 68, 173, 0.36);
    color: #fff;
    margin-bottom: 14px;
}

.home-loop-card h3 {
    margin: 0;
    color: #fff;
}

.home-loop-card p {
    color: var(--az-muted, #bfb3d3);
    line-height: 1.45;
}

.home-session-actions {
    margin-bottom: 86px;
}

@media (max-width: 1080px) {
    .home-loop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-dashboard-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .home-loop-grid,
    .home-player-stats {
        grid-template-columns: 1fr;
    }

    .home-loop-card {
        min-height: auto;
    }
}


/* =========================================================
   AMBITIONZ V1.11 — ADMIN REPORTS AND BALANCE
   ========================================================= */

.admin-report-hero {
    border-radius: 28px;
    border: 1px solid rgba(216,199,255,0.16);
    background:
        radial-gradient(circle at top left, rgba(142, 68, 173, 0.24), transparent 34%),
        rgba(255,255,255,0.045);
    padding: 24px;
    margin-bottom: 18px;
}

.admin-report-hero h2 {
    margin: 8px 0;
    color: #fff;
    font-size: clamp(30px, 7vw, 58px);
    line-height: 0.95;
}

.admin-report-hero p {
    color: var(--az-muted, #bfb3d3);
    line-height: 1.55;
}

.admin-report-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.admin-report-card {
    display: grid;
    align-content: space-between;
    min-height: 220px;
    border-radius: 24px;
    border: 1px solid rgba(216,199,255,0.14);
    background: rgba(255,255,255,0.05);
    padding: 18px;
}

.admin-report-card h3 {
    margin: 10px 0 8px;
    color: #fff;
}

.admin-report-card p {
    color: var(--az-muted, #bfb3d3);
    line-height: 1.45;
}

.admin-report-status {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    border: 1px solid rgba(216,199,255,0.16);
    background: rgba(216,199,255,0.08);
    color: #e8dcff;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.admin-balance-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 14px 0;
}

@media (max-width: 920px) {
    .admin-report-grid,
    .admin-balance-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   AMBITIONZ V1.12 — BATTLE UI POLISH + OVERREACH FEEDBACK
   ========================================================= */

.battle-active-v112 .arena-shell-v103 {
    box-shadow: 0 0 0 1px rgba(216,199,255,0.08), 0 28px 90px rgba(0,0,0,0.28);
}

.battle-resolving-v112 .arena-round-panel {
    border-color: rgba(255, 210, 120, 0.38);
    background:
        radial-gradient(circle at top, rgba(255, 210, 120, 0.16), transparent 40%),
        rgba(255,255,255,0.055);
}

.ready-pill-v112 {
    color: #c7ffdf !important;
    text-shadow: 0 0 14px rgba(80, 255, 150, 0.45);
}

.ready-btn-active-v112 {
    border-color: rgba(80, 255, 150, 0.35) !important;
    background: rgba(80, 255, 150, 0.12) !important;
    color: #dcffe9 !important;
}

.intent-btn-v103 {
    position: relative;
    overflow: hidden;
}

.intent-btn-v103::after {
    content: "";
    position: absolute;
    inset: auto 12px 8px 12px;
    height: 2px;
    border-radius: 999px;
    background: rgba(216,199,255,0.0);
    transition: background 160ms ease, box-shadow 160ms ease;
}

.intent-btn-v103.active::after {
    background: rgba(216,199,255,0.68);
    box-shadow: 0 0 18px rgba(216,199,255,0.38);
}

.overreach-btn-v112 {
    border-color: rgba(255, 116, 92, 0.24) !important;
}

.overreach-btn-v112::before {
    content: "RISK";
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 9px;
    font-weight: 1000;
    letter-spacing: 0.08em;
    color: rgba(255, 200, 190, 0.78);
}

.overreach-active-v112,
.overreach-armed-v112 .overreach-btn-v112 {
    border-color: rgba(255, 116, 92, 0.58) !important;
    background:
        radial-gradient(circle at top left, rgba(255, 116, 92, 0.22), transparent 45%),
        rgba(255,255,255,0.07) !important;
    box-shadow: 0 0 24px rgba(255, 116, 92, 0.16);
}

.overreach-armed-v112 .arena-round-panel {
    border-color: rgba(255, 116, 92, 0.34);
}

.overreach-status-v112 {
    border-color: rgba(255, 116, 92, 0.32) !important;
    background: rgba(255, 116, 92, 0.10) !important;
    color: #ffe1db !important;
}

.overreach-warning-v112 {
    display: none;
    margin: 10px 0 0;
    border-radius: 14px;
    border: 1px solid rgba(255, 116, 92, 0.22);
    background: rgba(255, 116, 92, 0.08);
    color: #ffd8d0;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.35;
}

.overreach-armed-v112 .overreach-warning-v112 {
    display: block;
}

.battle-log-v103 .log-line:first-child,
.battle-log-v103 div:first-child,
.battle-log-v103 p:first-child {
    border-color: rgba(216,199,255,0.22);
    background: rgba(255,255,255,0.075);
}

.battle-log-v103 .log-line,
.battle-log-v103 div,
.battle-log-v103 p {
    border-left: 3px solid rgba(216,199,255,0.18);
}

.battle-log-v103 .log-line:nth-child(1) {
    animation: battleLogPulseV112 420ms ease-out;
}

@keyframes battleLogPulseV112 {
    from {
        transform: translateY(-3px);
        opacity: 0.35;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.arena-player-panel {
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.battle-ready-v112 .arena-player-panel:not(.enemy) {
    border-color: rgba(80, 255, 150, 0.24);
}

.enemy-ready-v112 .arena-player-panel.enemy {
    border-color: rgba(80, 255, 150, 0.24);
}


/* =========================================================
   AMBITIONZ V1.13 — BOT TRAINING 2.0 + TUTORIAL MISSIONS
   ========================================================= */

.training-difficulty-box select {
    box-shadow: 0 0 0 1px rgba(216,199,255,0.08);
}

.training-difficulty-box::after {
    content: "Easy teaches basics • Normal balances decisions • Hard pressures mistakes";
    display: block;
    color: var(--az-muted, #bfb3d3);
    font-size: 11px;
    line-height: 1.35;
    margin-top: 4px;
    opacity: 0.84;
}

.mission-card-v113 {
    position: relative;
}

.mission-card-v113 h2 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mission-card-v113 h2::before {
    content: "◆";
    color: #d8c7ff;
    font-size: 12px;
    opacity: 0.8;
}

.mission-card-v113 form .btn {
    box-shadow: 0 0 24px rgba(142, 68, 173, 0.16);
}


/* =========================================================
   AMBITIONZ V1.14 — ELEMENT AND SIGIL BOOSTER PACKS
   ========================================================= */

.booster-pack-grid-v114 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.booster-pack-card-v114 {
    display: grid;
    gap: 12px;
    align-content: space-between;
    border-radius: 24px;
    border: 1px solid rgba(216,199,255,0.14);
    background: rgba(255,255,255,0.05);
    padding: 16px;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.booster-pack-card-v114:hover {
    transform: translateY(-3px);
    border-color: rgba(216,199,255,0.30);
    background: rgba(255,255,255,0.07);
}

.booster-pack-card-v114.active {
    border-color: rgba(216,199,255,0.40);
    box-shadow: 0 0 28px rgba(142, 68, 173, 0.16);
}

.booster-pack-top-v114 {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 12px;
    align-items: center;
}

.booster-pack-top-v114 h3 {
    margin: 0;
    color: #fff;
}

.booster-pack-top-v114 span,
.booster-pack-card-v114 p {
    color: var(--az-muted, #bfb3d3);
}

.booster-pack-card-v114 p {
    line-height: 1.45;
}

@media (max-width: 1080px) {
    .booster-pack-grid-v114 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .booster-pack-grid-v114 {
        grid-template-columns: 1fr;
    }
}



/* =========================================================

   AMBITIONZ V1.15 — DECK BUILDER FILTERS + ANALYSIS 2.0

   ========================================================= */

.deck-builder-hero-v115 {

    display: grid;

    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);

    gap: 18px;

    align-items: stretch;

    border-radius: 28px;

    border: 1px solid rgba(216,199,255,0.16);

    background:

        radial-gradient(circle at top left, rgba(142, 68, 173, 0.24), transparent 34%),

        rgba(255,255,255,0.045);

    padding: 24px;

    margin-bottom: 18px;

}

.deck-builder-hero-v115 h2 {

    margin: 8px 0;

    color: #fff;

    font-size: clamp(30px, 7vw, 58px);

    line-height: 0.95;

}

.deck-builder-hero-v115 p {

    color: var(--az-muted, #bfb3d3);

    line-height: 1.55;

}

.deck-builder-stat-grid-v115 {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 10px;

}

.deck-builder-stat-grid-v115 div {

    border-radius: 18px;

    border: 1px solid rgba(216,199,255,0.14);

    background: rgba(255,255,255,0.06);

    padding: 14px;

}

.deck-builder-stat-grid-v115 span {

    display: block;

    color: var(--az-muted, #bfb3d3);

    font-size: 11px;

    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: 0.08em;

}

.deck-builder-stat-grid-v115 strong {

    display: block;

    margin-top: 6px;

    color: #fff;

    font-size: 22px;

}

.deck-analysis-grid-v115 {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 14px;

    margin: 16px 0;

}

.deck-analysis-grid-v115 article {

    border-radius: 22px;

    border: 1px solid rgba(216,199,255,0.12);

    background: rgba(255,255,255,0.045);

    padding: 16px;

}

.deck-analysis-grid-v115 h3 {

    margin: 0 0 10px;

    color: #fff;

}

.deck-positive-v115 strong {

    color: #c7ffdf !important;

}

.deck-warning-v115 strong {

    color: #ffd8d0 !important;

}

.compact-current-deck-v115 {

    max-height: 360px;

    overflow: auto;

}

.deck-filter-grid-v115 {

    grid-template-columns: repeat(4, minmax(0, 1fr));

}

.quick-filter-row-v115 {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 12px;

}

.quick-filter-row-v115 button {

    border: 1px solid rgba(216,199,255,0.16);

    background: rgba(255,255,255,0.055);

    color: #e8dcff;

    border-radius: 999px;

    padding: 8px 11px;

    font-weight: 900;

    cursor: pointer;

}

.quick-filter-row-v115 button:hover {

    border-color: rgba(216,199,255,0.34);

    background: rgba(255,255,255,0.08);

}

@media (max-width: 980px) {

    .deck-builder-hero-v115,

    .deck-analysis-grid-v115,

    .deck-filter-grid-v115 {

        grid-template-columns: 1fr;

    }

    .deck-builder-stat-grid-v115 {

        grid-template-columns: repeat(2, minmax(0, 1fr));

    }

}



/* =========================================================
   AMBITIONZ V1.16 — RANKING SEASON + MATCH HISTORY POLISH
   ========================================================= */

.ranking-hero-v116,
.match-history-hero-v116 {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 18px;
    align-items: stretch;
    border-radius: 28px;
    border: 1px solid rgba(216,199,255,0.16);
    background:
        radial-gradient(circle at top left, rgba(142, 68, 173, 0.25), transparent 34%),
        rgba(255,255,255,0.045);
    padding: 24px;
    margin-bottom: 18px;
}

.ranking-hero-v116 h2,
.match-history-hero-v116 h2 {
    margin: 8px 0;
    color: #fff;
    font-size: clamp(30px, 7vw, 58px);
    line-height: 0.95;
}

.ranking-hero-v116 p,
.match-history-hero-v116 p {
    color: var(--az-muted, #bfb3d3);
    line-height: 1.55;
}

.ranking-season-grid-v116 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ranking-season-grid-v116 div {
    border-radius: 18px;
    border: 1px solid rgba(216,199,255,0.14);
    background: rgba(255,255,255,0.06);
    padding: 14px;
}

.ranking-season-grid-v116 span,
.match-card-stats-v116 span {
    display: block;
    color: var(--az-muted, #bfb3d3);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ranking-season-grid-v116 strong,
.match-card-stats-v116 strong {
    display: block;
    margin-top: 6px;
    color: #fff;
    font-size: 20px;
}

.ranking-table-v116 {
    display: grid;
    gap: 8px;
}

.ranking-row-v116 {
    display: grid;
    grid-template-columns: 70px minmax(160px, 1fr) 130px 140px 100px 90px;
    gap: 10px;
    align-items: center;
    border-radius: 16px;
    border: 1px solid rgba(216,199,255,0.10);
    background: rgba(255,255,255,0.045);
    padding: 12px;
    color: #fff;
}

.ranking-head-v116 {
    background: rgba(216,199,255,0.08);
    color: var(--az-muted, #bfb3d3);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ranking-tier-v116 {
    width: fit-content;
    border-radius: 999px;
    border: 1px solid rgba(216,199,255,0.16);
    background: rgba(142, 68, 173, 0.18);
    padding: 5px 9px;
    font-weight: 900;
}

.match-history-list-v116 {
    display: grid;
    gap: 12px;
}

.match-card-v116 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    gap: 14px;
    border-radius: 22px;
    border: 1px solid rgba(216,199,255,0.12);
    background: rgba(255,255,255,0.045);
    padding: 16px;
}

.match-card-v116 h3 {
    margin: 6px 0;
    color: #fff;
}

.match-card-v116 p,
.match-card-v116 footer {
    color: var(--az-muted, #bfb3d3);
}

.match-card-stats-v116 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.match-card-stats-v116 div {
    border-radius: 14px;
    border: 1px solid rgba(216,199,255,0.10);
    background: rgba(255,255,255,0.045);
    padding: 10px;
}

.match-card-v116 footer {
    grid-column: 1 / -1;
    font-size: 12px;
}

@media (max-width: 980px) {
    .ranking-hero-v116,
    .match-history-hero-v116,
    .match-card-v116 {
        grid-template-columns: 1fr;
    }

    .ranking-row-v116 {
        grid-template-columns: 1fr;
    }

    .ranking-head-v116 {
        display: none;
    }

    .match-card-stats-v116 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
\n
/* =========================================================
   AMBITIONZ V1.17 — PLAYER PROFILE + ACCOUNT IDENTITY
   ========================================================= */

.profile-hero-v117 {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr) minmax(220px, 0.42fr);
    gap: 18px;
    align-items: stretch;
    border-radius: 28px;
    border: 1px solid rgba(216,199,255,0.16);
    background:
        radial-gradient(circle at top left, rgba(142, 68, 173, 0.28), transparent 34%),
        rgba(255,255,255,0.045);
    padding: 24px;
    margin-bottom: 18px;
}

.profile-avatar-v117 {
    display: grid;
    place-items: center;
    border-radius: 28px;
    border: 1px solid rgba(216,199,255,0.20);
    background:
        radial-gradient(circle at top, rgba(216,199,255,0.20), transparent 48%),
        rgba(255,255,255,0.06);
    min-height: 140px;
}

.profile-avatar-v117 span {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 28px;
    background: rgba(142, 68, 173, 0.34);
    color: #fff;
    font-size: 46px;
    font-weight: 1000;
    box-shadow: 0 0 34px rgba(142, 68, 173, 0.24);
}

.profile-main-v117 h2 {
    margin: 8px 0;
    color: #fff;
    font-size: clamp(34px, 7vw, 64px);
    line-height: 0.92;
}

.profile-main-v117 p {
    color: var(--az-muted, #bfb3d3);
    line-height: 1.55;
}

.profile-badge-row-v117 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.profile-badge-row-v117 span {
    border-radius: 999px;
    border: 1px solid rgba(216,199,255,0.18);
    background: rgba(142, 68, 173, 0.16);
    color: #efe7ff;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 900;
}

.profile-wallet-v117 {
    display: grid;
    gap: 10px;
}

.profile-wallet-v117 div,
.profile-stat-grid-v117 article {
    border-radius: 20px;
    border: 1px solid rgba(216,199,255,0.14);
    background: rgba(255,255,255,0.055);
    padding: 16px;
}

.profile-wallet-v117 span,
.profile-stat-grid-v117 span {
    display: block;
    color: var(--az-muted, #bfb3d3);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.profile-wallet-v117 strong,
.profile-stat-grid-v117 strong {
    display: block;
    margin-top: 8px;
    color: #fff;
    font-size: 24px;
}

.profile-stat-grid-v117 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

@media (max-width: 980px) {
    .profile-hero-v117 {
        grid-template-columns: 1fr;
    }

    .profile-avatar-v117 {
        min-height: 120px;
    }

    .profile-stat-grid-v117 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .profile-stat-grid-v117 {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   AMBITIONZ V1.18 — COSMETIC INVENTORY FOUNDATION
   ========================================================= */

.profile-cosmetics-v118 {
    position: relative;
    overflow: hidden;
}

.profile-cosmetics-v118::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at top right, rgba(142, 68, 173, 0.16), transparent 34%),
        radial-gradient(circle at bottom left, rgba(216, 199, 255, 0.08), transparent 30%);
}

.profile-cosmetic-note-v118 {
    position: relative;
    border-radius: 999px;
    border: 1px solid rgba(216,199,255,0.18);
    background: rgba(255,255,255,0.055);
    color: #efe7ff;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.profile-cosmetic-grid-v118 {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.profile-cosmetic-slot-v118 {
    border-radius: 22px;
    border: 1px solid rgba(216,199,255,0.16);
    background: rgba(255,255,255,0.055);
    padding: 16px;
    min-height: 140px;
}

.profile-cosmetic-slot-v118 span,
.profile-cosmetic-inventory-v118 h3 {
    display: block;
    color: var(--az-muted, #bfb3d3);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.profile-cosmetic-slot-v118 strong {
    display: block;
    margin-top: 10px;
    color: #fff;
    font-size: 22px;
    line-height: 1.05;
}

.profile-cosmetic-slot-v118 p {
    color: var(--az-muted, #bfb3d3);
    line-height: 1.45;
    margin-bottom: 0;
}

.profile-cosmetic-inventory-v118 {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.profile-cosmetic-inventory-v118 article {
    border-radius: 22px;
    border: 1px solid rgba(216,199,255,0.12);
    background: rgba(255,255,255,0.045);
    padding: 14px;
}

.profile-cosmetic-inventory-v118 h3 {
    margin: 0 0 10px;
}

@media (max-width: 980px) {
    .profile-cosmetic-grid-v118,
    .profile-cosmetic-inventory-v118 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .profile-cosmetic-grid-v118,
    .profile-cosmetic-inventory-v118 {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   AMBITIONZ V1.19 — PUBLIC LANDING + AUTH CONVERSION
   ========================================================= */

.public-conversion-card-v119 {
    display: grid;
    gap: 14px;
}

.public-conversion-list-v119,
.auth-benefit-grid-v119,
.auth-mini-loop-v119 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.public-conversion-list-v119 div,
.auth-benefit-grid-v119 div,
.auth-mini-loop-v119 div {
    border-radius: 16px;
    border: 1px solid rgba(216,199,255,0.14);
    background: rgba(255,255,255,0.055);
    padding: 12px;
}

.public-conversion-list-v119 strong,
.auth-benefit-grid-v119 strong,
.auth-mini-loop-v119 strong {
    display: block;
    color: #fff;
    font-size: 22px;
}

.public-conversion-list-v119 span,
.auth-benefit-grid-v119 span,
.auth-mini-loop-v119 span {
    display: block;
    color: var(--az-muted, #bfb3d3);
    font-size: 12px;
    font-weight: 800;
}

.public-landing-section-v119,
.public-cta-v119 {
    border-radius: 28px;
    border: 1px solid rgba(216,199,255,0.16);
    background:
        radial-gradient(circle at top left, rgba(142, 68, 173, 0.18), transparent 32%),
        rgba(255,255,255,0.045);
    padding: 24px;
    margin-bottom: 18px;
}

.public-feature-grid-v119 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.public-feature-grid-v119 article {
    border-radius: 22px;
    border: 1px solid rgba(216,199,255,0.12);
    background: rgba(255,255,255,0.045);
    padding: 16px;
}

.public-feature-grid-v119 strong {
    color: #d8c7ff;
    font-size: 13px;
    font-weight: 1000;
}

.public-feature-grid-v119 h3,
.public-cta-v119 h2 {
    color: #fff;
}

.public-feature-grid-v119 p,
.public-cta-v119 p {
    color: var(--az-muted, #bfb3d3);
    line-height: 1.5;
}

.public-cta-v119 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.auth-page-v119 {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
    gap: 22px;
    align-items: center;
    padding: clamp(18px, 4vw, 46px);
    background:
        radial-gradient(circle at 10% 10%, rgba(142, 68, 173, 0.28), transparent 35%),
        radial-gradient(circle at 80% 80%, rgba(216, 199, 255, 0.11), transparent 34%),
        #070711;
}

.auth-hero-v119,
.auth-panel-v119 {
    border-radius: 32px;
    border: 1px solid rgba(216,199,255,0.16);
    background: rgba(255,255,255,0.05);
    box-shadow: 0 24px 70px rgba(0,0,0,0.35);
    padding: clamp(22px, 4vw, 40px);
}

.auth-hero-v119 {
    min-height: 620px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(circle at top left, rgba(142, 68, 173, 0.28), transparent 38%),
        rgba(255,255,255,0.045);
}

.auth-hero-v119 h1 {
    color: #fff;
    font-size: clamp(42px, 8vw, 86px);
    line-height: 0.9;
    margin: 14px 0;
    letter-spacing: -0.06em;
}

.auth-hero-v119 p,
.auth-panel-v119 .subtitle {
    color: var(--az-muted, #bfb3d3);
    line-height: 1.55;
}

.auth-panel-v119 h2 {
    color: #fff;
    font-size: clamp(30px, 5vw, 48px);
    margin: 8px 0;
}

.auth-form-v119 {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.auth-form-v119 label {
    display: grid;
    gap: 7px;
}

.auth-form-v119 label span {
    color: var(--az-muted, #bfb3d3);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-links-v119 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 18px;
}

.auth-links-v119 a {
    color: #d8c7ff;
    font-weight: 900;
    text-decoration: none;
}

.auth-links-v119 a:hover {
    text-decoration: underline;
}

.auth-mini-loop-v119 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 18px;
}

@media (max-width: 980px) {
    .auth-page-v119 {
        grid-template-columns: 1fr;
    }

    .auth-hero-v119 {
        min-height: auto;
    }

    .public-feature-grid-v119 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-cta-v119 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .public-conversion-list-v119,
    .auth-benefit-grid-v119,
    .auth-mini-loop-v119,
    .public-feature-grid-v119 {
        grid-template-columns: 1fr;
    }

    .auth-page-v119 {
        padding: 14px;
    }

    .auth-hero-v119,
    .auth-panel-v119 {
        border-radius: 24px;
    }
}


/* =========================================================
   AMBITIONZ V1.20 — FEEDBACK COLLECTION 2.0
   ========================================================= */

.feedback-hero-v120,
.admin-feedback-hero-v120 {
    border-radius: 28px;
    border: 1px solid rgba(216,199,255,0.16);
    background:
        radial-gradient(circle at top left, rgba(142,68,173,0.20), transparent 34%),
        rgba(255,255,255,0.045);
    padding: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

.feedback-hero-v120 h2,
.admin-feedback-hero-v120 h2 {
    color: #fff;
    font-size: clamp(28px, 5vw, 52px);
    line-height: 1;
    margin: 8px 0;
    letter-spacing: -0.04em;
}

.feedback-hero-v120 p,
.admin-feedback-hero-v120 p {
    color: var(--az-muted, #bfb3d3);
    line-height: 1.55;
}

.feedback-guide-v120,
.admin-feedback-legend-v120 {
    display: grid;
    gap: 10px;
    min-width: 240px;
}

.feedback-guide-v120 div,
.admin-feedback-legend-v120 span {
    border-radius: 16px;
    border: 1px solid rgba(216,199,255,0.14);
    background: rgba(255,255,255,0.055);
    padding: 12px;
}

.feedback-guide-v120 strong {
    display: block;
    color: #fff;
}

.feedback-guide-v120 span,
.admin-feedback-legend-v120 span {
    color: var(--az-muted, #bfb3d3);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.feedback-form-v120 {
    display: grid;
    gap: 14px;
}

.feedback-form-grid-v120 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.feedback-form-v120 label {
    display: grid;
    gap: 8px;
}

.feedback-form-v120 label span {
    color: var(--az-muted, #bfb3d3);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.feedback-form-v120 input,
.feedback-form-v120 select,
.feedback-form-v120 textarea,
.feedback-admin-card-v120 select {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(216,199,255,0.16);
    background: rgba(255,255,255,0.07);
    color: #fff;
    padding: 12px 14px;
    font-weight: 800;
}

.feedback-form-v120 textarea {
    resize: vertical;
    min-height: 160px;
    line-height: 1.5;
}

.feedback-form-v120 option,
.feedback-admin-card-v120 option {
    color: #111;
}

.feedback-history-v120,
.admin-feedback-list-v120 {
    display: grid;
    gap: 12px;
}

.feedback-ticket-v120,
.feedback-admin-card-v120 {
    border-radius: 22px;
    border: 1px solid rgba(216,199,255,0.14);
    background: rgba(255,255,255,0.045);
    padding: 16px;
}

.feedback-ticket-v120 h3,
.feedback-admin-card-v120 h2 {
    color: #fff;
    margin: 6px 0;
}

.feedback-ticket-v120 p,
.feedback-admin-card-v120 p {
    color: var(--az-muted, #bfb3d3);
    line-height: 1.5;
}

.feedback-ticket-v120 footer,
.feedback-admin-card-v120 header,
.admin-feedback-meta-v120,
.feedback-admin-card-v120 form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.feedback-ticket-v120 footer strong,
.feedback-admin-card-v120 header strong {
    border-radius: 999px;
    background: rgba(142,68,173,0.22);
    border: 1px solid rgba(216,199,255,0.16);
    color: #efe7ff;
    padding: 7px 10px;
    font-size: 12px;
    text-transform: uppercase;
}

.admin-feedback-meta-v120 {
    justify-content: flex-start;
    color: var(--az-muted, #bfb3d3);
    font-size: 12px;
    margin: 12px 0;
}

.feedback-admin-card-v120.status-critical,
.feedback-admin-card-v120.status-open {
    border-color: rgba(255, 214, 102, 0.22);
}

@media (max-width: 760px) {
    .feedback-hero-v120,
    .admin-feedback-hero-v120,
    .feedback-form-grid-v120 {
        grid-template-columns: 1fr;
    }

    .feedback-guide-v120,
    .admin-feedback-legend-v120 {
        min-width: 0;
    }
}

/* =========================================================
   AMBITIONZ V1.21 / V1.22 / V1.23 — ONBOARDING, FIRST MATCH, DECK POLISH
   ========================================================= */

.onboarding-hero-v121,
.rules-hero-v121,
.deck-builder-coach-v123 {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
    gap: 18px;
    align-items: stretch;
    padding: 24px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(142,68,173,0.32), transparent 38%),
        linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035));
    border: 1px solid rgba(216,199,255,0.16);
    box-shadow: 0 24px 60px rgba(0,0,0,0.28);
    margin-bottom: 18px;
}

.onboarding-hero-v121 h1,
.rules-hero-v121 h1,
.deck-builder-coach-v123 h2 {
    margin: 10px 0;
    color: #fff;
    font-size: clamp(32px, 6vw, 64px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.onboarding-hero-v121 p,
.rules-hero-v121 p,
.deck-builder-coach-v123 p {
    color: var(--az-muted, #bfb3d3);
    line-height: 1.6;
    max-width: 820px;
}

.onboarding-status-v121,
.rules-summary-card-v121,
.deck-coach-rules-v123 {
    border-radius: 24px;
    padding: 18px;
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(216,199,255,0.14);
}

.onboarding-mini-grid-v121,
.deck-coach-rules-v123 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.onboarding-mini-grid-v121 div,
.deck-coach-rules-v123 div {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(216,199,255,0.12);
}

.onboarding-mini-grid-v121 strong,
.deck-coach-rules-v123 strong {
    display: block;
    color: #fff;
    font-size: 28px;
    letter-spacing: -0.04em;
}

.onboarding-mini-grid-v121 span,
.deck-coach-rules-v123 span {
    color: var(--az-muted, #bfb3d3);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.onboarding-path-v121,
.rules-grid-v121,
.intent-guide-grid-v121,
.rules-archetype-grid-v121 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.onboarding-path-v121 article,
.rules-card-v121,
.intent-guide-grid-v121 article,
.rules-archetype-grid-v121 article {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(216,199,255,0.12);
}

.onboarding-path-v121 strong,
.rules-card-v121 span {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(142,68,173,0.24);
    border: 1px solid rgba(216,199,255,0.18);
    color: #fff;
    font-weight: 1000;
}

.onboarding-path-v121 h3,
.rules-card-v121 h2,
.intent-guide-grid-v121 strong,
.rules-archetype-grid-v121 h3 {
    color: #fff;
    margin: 12px 0 8px;
}

.onboarding-path-v121 p,
.rules-card-v121 p,
.intent-guide-grid-v121 p,
.rules-archetype-grid-v121 p {
    color: var(--az-muted, #bfb3d3);
    line-height: 1.5;
}

.first-match-guide-v122 {
    padding: 16px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(142,68,173,0.24), transparent 42%),
        rgba(255,255,255,0.055);
    border: 1px solid rgba(216,199,255,0.14);
    margin-bottom: 14px;
}

.first-match-guide-v122 h3 {
    color: #fff;
    margin: 8px 0;
}

.first-match-guide-v122 ol {
    margin: 0 0 14px 20px;
    padding: 0;
    color: var(--az-muted, #bfb3d3);
    line-height: 1.5;
    font-size: 13px;
}

.first-match-guide-v122 li {
    margin-bottom: 6px;
}

@media (max-width: 980px) {
    .onboarding-hero-v121,
    .rules-hero-v121,
    .deck-builder-coach-v123 {
        grid-template-columns: 1fr;
    }

    .onboarding-path-v121,
    .rules-grid-v121,
    .intent-guide-grid-v121,
    .rules-archetype-grid-v121 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .onboarding-hero-v121,
    .rules-hero-v121,
    .deck-builder-coach-v123 {
        padding: 18px;
        border-radius: 22px;
    }

    .onboarding-path-v121,
    .rules-grid-v121,
    .intent-guide-grid-v121,
    .rules-archetype-grid-v121,
    .onboarding-mini-grid-v121,
    .deck-coach-rules-v123 {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   AMBITIONZ V1.24 / V1.25 / V1.26 — SHOP, BOOSTER HISTORY, ADMIN OPS
   ========================================================= */

.shop-hero-v124,
.booster-history-hero-v125 {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
    gap: 18px;
    align-items: stretch;
    padding: 24px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(142,68,173,0.32), transparent 38%),
        linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035));
    border: 1px solid rgba(216,199,255,0.16);
    box-shadow: 0 24px 60px rgba(0,0,0,0.28);
    margin-bottom: 18px;
}

.shop-hero-v124 h2,
.booster-history-hero-v125 h2 {
    margin: 10px 0;
    color: #fff;
    font-size: clamp(30px, 5vw, 56px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.shop-hero-v124 p,
.booster-history-hero-v125 p {
    color: var(--az-muted, #bfb3d3);
    line-height: 1.6;
    max-width: 780px;
}

.shop-wallet-v124,
.booster-history-odds-v125 {
    padding: 18px;
    border-radius: 24px;
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(216,199,255,0.14);
}

.shop-wallet-grid-v124,
.booster-history-odds-v125,
.booster-history-stats-v125 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.shop-wallet-grid-v124 div,
.booster-history-odds-v125 div,
.booster-history-stats-v125 div {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(216,199,255,0.12);
}

.shop-wallet-grid-v124 span,
.booster-history-odds-v125 span,
.booster-history-stats-v125 span {
    display: block;
    color: var(--az-muted, #bfb3d3);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.shop-wallet-grid-v124 strong,
.booster-history-odds-v125 strong,
.booster-history-stats-v125 strong {
    color: #fff;
    font-size: 24px;
}

.booster-pack-grid-v124 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.booster-pack-card-v124 {
    padding: 18px;
    border-radius: 24px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(216,199,255,0.12);
    box-shadow: 0 18px 42px rgba(0,0,0,0.22);
}

.booster-pack-card-v124.active {
    border-color: rgba(216,199,255,0.28);
    background:
        radial-gradient(circle at top right, rgba(142,68,173,0.28), transparent 40%),
        rgba(255,255,255,0.07);
}

.booster-pack-card-v124.locked {
    opacity: 0.72;
}

.booster-pack-mark-v124 {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #8e44ad, #2e0f45);
    color: #fff;
    font-size: 28px;
    font-weight: 1000;
    box-shadow: 0 14px 28px rgba(0,0,0,0.28);
    margin-bottom: 14px;
}

.booster-pack-card-v124 h2,
.booster-history-card-v125 h2 {
    color: #fff;
    margin: 8px 0;
}

.booster-pack-card-v124 p {
    color: var(--az-muted, #bfb3d3);
    line-height: 1.5;
}

.booster-result-v124 {
    border-color: rgba(216,199,255,0.24);
}

.booster-timeline-v125 {
    display: grid;
    gap: 16px;
}

.booster-history-card-v125 {
    padding: 18px;
    border-radius: 24px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(216,199,255,0.12);
    box-shadow: 0 18px 42px rgba(0,0,0,0.22);
}

.booster-history-card-v125 header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.booster-history-card-v125 header > strong {
    color: var(--az-muted, #bfb3d3);
    font-size: 12px;
    text-align: right;
}

@media (max-width: 980px) {
    .shop-hero-v124,
    .booster-history-hero-v125,
    .booster-pack-grid-v124 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .shop-hero-v124,
    .booster-history-hero-v125,
    .booster-pack-card-v124,
    .booster-history-card-v125 {
        padding: 16px;
        border-radius: 22px;
    }

    .shop-wallet-grid-v124,
    .booster-history-odds-v125,
    .booster-history-stats-v125 {
        grid-template-columns: 1fr;
    }

    .booster-history-card-v125 header {
        display: grid;
    }

    .booster-history-card-v125 header > strong {
        text-align: left;
    }
}

/* =========================================================
   AMBITIONZ V1.27 / V1.28 — FINAL BETA LAUNCH POLISH
   ========================================================= */

.beta-launch-hero-v127 {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
    gap: 18px;
    align-items: stretch;
    padding: 24px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(142,68,173,0.34), transparent 38%),
        linear-gradient(135deg, rgba(255,255,255,0.085), rgba(255,255,255,0.035));
    border: 1px solid rgba(216,199,255,0.18);
    box-shadow: 0 24px 60px rgba(0,0,0,0.30);
    margin-bottom: 18px;
}

.beta-launch-hero-v127 h2 {
    margin: 10px 0;
    color: #fff;
    font-size: clamp(32px, 6vw, 64px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.beta-launch-hero-v127 p {
    color: var(--az-muted, #bfb3d3);
    line-height: 1.6;
    max-width: 780px;
}

.beta-launch-score-v127 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(0,0,0,0.24);
    border: 1px solid rgba(216,199,255,0.14);
}

.beta-launch-score-v127 div {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(216,199,255,0.12);
}

.beta-launch-score-v127 span {
    display: block;
    color: var(--az-muted, #bfb3d3);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.beta-launch-score-v127 strong {
    color: #fff;
    font-size: 24px;
}

.beta-checklist-grid-v127 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.beta-checklist-grid-v127 article {
    padding: 18px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(142,68,173,0.16), transparent 42%),
        rgba(255,255,255,0.055);
    border: 1px solid rgba(216,199,255,0.12);
    box-shadow: 0 18px 42px rgba(0,0,0,0.22);
}

.beta-checklist-grid-v127 h3 {
    color: #fff;
    margin: 10px 0 8px;
}

.beta-checklist-grid-v127 p {
    color: var(--az-muted, #bfb3d3);
    line-height: 1.5;
}

.beta-checklist-grid-v127 article > strong {
    display: block;
    margin-top: 14px;
    color: #efe7ff;
    font-size: 12px;
    line-height: 1.45;
    text-transform: uppercase;
}

.final-beta-loop-v128 {
    border-color: rgba(216,199,255,0.22);
    background:
        radial-gradient(circle at top left, rgba(142,68,173,0.18), transparent 35%),
        rgba(255,255,255,0.055);
}

@media (max-width: 980px) {
    .beta-launch-hero-v127,
    .beta-checklist-grid-v127 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .beta-launch-hero-v127,
    .beta-checklist-grid-v127 article {
        padding: 16px;
        border-radius: 22px;
    }

    .beta-launch-score-v127 {
        grid-template-columns: 1fr;
    }
}
