/* ==========================================================================
   Card Hunt — Whimsical Collectible Card-Game Theme (Mobile-First)
   ========================================================================== */

:root {
    --bg: #fffbf2;
    --bg-dot: rgba(124, 58, 237, 0.075);
    --surface: #ffffff;
    --surface-alt: #f8f4ff;
    --surface-warm: #fff5dc;
    --ink: #251b47;
    --border: #e5dcff;
    --border-strong: #c8b8ff;
    --border-ink: #31235c;
    --text: #251b47;
    --text-muted: #685c8a;

    /* Playful Game Palette */
    --primary: #7c3aed;
    --primary-hover: #6d28d9;
    --primary-lip: #541da8;
    --primary-soft: #f2ebff;

    --coral: #ff6b6b;
    --coral-soft: #fff0f0;
    --sunny: #ffb703;
    --sunny-soft: #fff6d6;
    --mint: #10b981;
    --mint-soft: #e6fbf3;
    --sky: #06b6d4;
    --sky-soft: #e3f9fd;
    --pink: #ec4899;

    --success: #059669;
    --success-soft: #e6fbf3;
    --warning: #d97706;
    --warning-soft: #fff6d6;
    --danger: #e11d48;
    --danger-soft: #fff0f3;

    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 26px;
    --shadow-sm: 0 4px 0 rgba(124, 58, 237, 0.12);
    --shadow: 0 8px 0 rgba(124, 58, 237, 0.13), 0 14px 28px rgba(37, 27, 71, 0.08);
    --shadow-lg: 0 10px 0 rgba(49, 35, 92, 0.14), 0 22px 44px rgba(37, 27, 71, 0.14);

    --font-display: "Fredoka", system-ui, -apple-system, sans-serif;
    --font-sans: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background-color: var(--bg);
    background-image:
        radial-gradient(var(--bg-dot) 1.5px, transparent 1.5px),
        radial-gradient(rgba(255, 183, 3, 0.11) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
    background-position: 0 0, 14px 14px;
    color: var(--text);
    line-height: 1.58;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 600;
    margin: 0 0 0.5rem;
    line-height: 1.18;
    letter-spacing: -0.01em;
    color: var(--ink);
}

p {
    margin: 0 0 0.75rem;
}

p:last-child {
    margin-bottom: 0;
}

.muted {
    color: var(--text-muted);
}

.small-meta {
    font-size: 0.86rem;
}

.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 1.25em;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    vertical-align: middle;
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
    user-select: none;
}

.icon-inline {
    font-size: 1.2em;
    vertical-align: -0.22em;
    margin-right: 0.25rem;
    color: var(--coral);
}

.btn .material-symbols-rounded {
    font-size: 1.18em;
}

.claimed-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.claimed-ribbon .material-symbols-rounded {
    font-size: 1.15em;
}

.is-hidden {
    display: none !important;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.1rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 2.5px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 40;
}

.header-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.header-creator-links {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.32rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover {
    text-decoration: none;
    transform: scale(1.03);
}

.brand-mark {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--pink) 55%, var(--sunny) 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 2px solid var(--ink);
    box-shadow: 0 3px 0 var(--ink);
    transform: rotate(-6deg);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover .brand-mark {
    transform: rotate(8deg) scale(1.08);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.nav-link {
    color: var(--ink);
    font-weight: 800;
    font-size: 0.94rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
    background: var(--primary-soft);
    color: var(--primary);
    text-decoration: none;
}

.nav-user {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
    background: var(--sunny-soft);
    border: 1.5px solid #ffd86b;
    padding: 0.26rem 0.75rem;
    border-radius: 999px;
    display: none;
    white-space: nowrap;
}

@media (min-width: 820px) {
    .nav-user {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
    }
}

/* Mobile Header Layout: Row 1 = Brand + Primary Actions, Row 2 = Creator Nav Links */
@media (max-width: 767px) {
    html:not(.is-pwa-wco) .header-inner {
        flex-wrap: wrap;
        min-height: 58px;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        row-gap: 0.5rem;
    }

    html:not(.is-pwa-wco) .header-left {
        display: contents;
    }

    html:not(.is-pwa-wco) .brand {
        order: 1;
        font-size: 1.15rem;
    }

    html:not(.is-pwa-wco) .brand-mark {
        width: 32px;
        height: 32px;
        border-radius: 10px;
        font-size: 0.95rem;
    }

    html:not(.is-pwa-wco) .site-nav {
        order: 2;
        margin-left: auto;
        gap: 0.45rem;
    }

    html:not(.is-pwa-wco) .header-creator-links {
        order: 3;
        flex-basis: 100%;
        padding-top: 0.45rem;
        border-top: 1.5px dashed var(--border);
        gap: 0.45rem;
    }

    html:not(.is-pwa-wco) .header-creator-links .nav-link {
        background: var(--surface-alt);
        border: 1.5px solid var(--border);
        font-size: 0.84rem;
        padding: 0.28rem 0.78rem;
    }

    html:not(.is-pwa-wco) .pwa-titlebar-actions {
        order: 4;
        flex-basis: 100%;
        flex-wrap: wrap;
    }
}

.inline-form {
    display: inline;
    margin: 0;
}

/* ==========================================================================
   Tactile Arcade Buttons & Cheerful Pills
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.96rem;
    line-height: 1.2;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.btn:hover {
    text-decoration: none;
}

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

.btn-primary {
    background: linear-gradient(180deg, #8b5cf6 0%, var(--primary) 100%);
    color: #ffffff;
    border-color: var(--primary-lip);
    box-shadow: 0 4px 0 var(--primary-lip), 0 8px 18px rgba(124, 58, 237, 0.26);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(180deg, #986dff 0%, var(--primary-hover) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--primary-lip), 0 12px 22px rgba(124, 58, 237, 0.3);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--primary-lip);
}

.btn-secondary {
    background: #ffffff;
    color: var(--ink);
    border-color: var(--border-strong);
    box-shadow: 0 4px 0 var(--border);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--sunny-soft);
    border-color: var(--sunny);
    box-shadow: 0 5px 0 #f4c64b;
    transform: translateY(-1px);
}

.btn-secondary:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: 0 1px 0 var(--border);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.8);
    color: var(--ink);
    border-color: var(--border);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--primary-soft);
    border-color: var(--border-strong);
    color: var(--primary);
}

.btn-danger {
    background: var(--danger);
    color: #ffffff;
    border-color: #9f1239;
    box-shadow: 0 4px 0 #9f1239;
}

.btn-danger:hover:not(:disabled) {
    background: #be123c;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #9f1239;
}

.btn-danger:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #9f1239;
}

.btn-sm {
    font-size: 0.88rem;
    padding: 0.46rem 0.95rem;
}

.btn-xs {
    font-size: 0.8rem;
    padding: 0.3rem 0.68rem;
}

.btn-lg {
    font-size: 1.05rem;
    padding: 0.88rem 1.6rem;
}

.btn-block {
    width: 100%;
}

.is-copied {
    background: var(--mint-soft) !important;
    color: var(--success) !important;
    border-color: #6ee7b7 !important;
}

.text-link {
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--primary);
    cursor: pointer;
}

.text-link:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.text-danger {
    color: var(--danger);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.26rem 0.78rem;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1.5px solid transparent;
}

.pill-xs {
    font-size: 0.72rem;
    padding: 0.16rem 0.56rem;
}

.pill-accent {
    background: var(--sunny-soft);
    color: #9a5800;
    border-color: #ffd666;
}

.pill-success {
    background: var(--mint-soft);
    color: #047857;
    border-color: #86efac;
}

.pill-info {
    background: var(--sky-soft);
    color: #0e7490;
    border-color: #7dd3fc;
}

.pill-muted {
    background: var(--surface-alt);
    color: var(--text-muted);
    border-color: var(--border);
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

/* ==========================================================================
   Cards, Alerts & Forms
   ========================================================================== */

.card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.section-card {
    padding: 1.4rem;
}

.flash-stack {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

/* Slide-in / Slide-out Toast Notification Cards */
.toast-stack {
    position: fixed;
    top: 82px;
    right: 1.15rem;
    z-index: 160;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: min(370px, calc(100vw - 2rem));
    pointer-events: none;
}

html.is-pwa-wco .toast-stack {
    top: calc(env(titlebar-area-height, 33px) + 14px);
}

.toast-card {
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1rem 1rem;
    border-radius: 18px;
    background: #ffffff;
    border: 2px solid var(--border-strong);
    box-shadow: 0 8px 0 rgba(37, 27, 71, 0.12), 0 18px 34px rgba(37, 27, 71, 0.16);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ink);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.34s cubic-bezier(0.34, 1.45, 0.64, 1), opacity 0.26s ease;
}

.toast-card.is-visible {
    transform: translateX(0);
    opacity: 1;
}

.toast-card.is-leaving {
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.28s ease-in, opacity 0.24s ease;
}

.toast-success {
    background: var(--mint-soft);
    border-color: #34d399;
    color: #065f46;
}

.toast-error {
    background: var(--danger-soft);
    border-color: #fb7185;
    color: #9f1239;
}

.toast-warning {
    background: var(--sunny-soft);
    border-color: #fbbf24;
    color: #92400e;
}

.toast-icon {
    font-size: 1.35rem;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    line-height: 1.38;
}

.toast-close {
    appearance: none;
    background: rgba(255, 255, 255, 0.65);
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    font-size: 1.15rem;
    line-height: 1;
    color: currentColor;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.75;
    transition: opacity 0.15s ease, background 0.15s ease;
}

.toast-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.95);
}

@keyframes toastProgress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

.toast-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: currentColor;
    opacity: 0.28;
    transform-origin: left center;
    animation: toastProgress 4.2s linear forwards;
}

.toast-card.is-paused .toast-progress {
    animation-play-state: paused;
}

@media (max-width: 560px) {
    .toast-stack {
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
    }
}

.alert {
    padding: 0.9rem 1.1rem;
    border-radius: 16px;
    font-size: 0.94rem;
    font-weight: 700;
    border: 2px solid transparent;
}

.alert-success {
    background: var(--mint-soft);
    border-color: #6ee7b7;
    color: #065f46;
}

.alert-error {
    background: var(--danger-soft);
    border-color: #fda4af;
    color: #9f1239;
}

.alert-warning {
    background: var(--sunny-soft);
    border-color: #fcd34d;
    color: #92400e;
}

.error-list {
    margin: 0;
    padding-left: 1.2rem;
}

.stack-form {
    display: flex;
    flex-direction: column;
    gap: 1.05rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="file"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 2px solid var(--border-strong);
    border-radius: 14px;
    font-family: inherit;
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--ink);
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: #fdfbff;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.16);
}

.help-text {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 600px) {
    .form-row-2 {
        grid-template-columns: 2fr 1fr;
    }
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
    margin-top: 0.22rem;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.image-preview-wrap {
    margin-top: 0.5rem;
    max-width: 240px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid var(--border);
}

.image-preview-wrap img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

/* ==========================================================================
   Landing Page Hero — Playful Treasure-Hunt Energy
   ========================================================================== */

.hero {
    padding: 3.25rem 0 3rem;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 183, 3, 0.22) 0%, transparent 38%),
        radial-gradient(circle at 88% 20%, rgba(236, 72, 153, 0.16) 0%, transparent 40%),
        radial-gradient(circle at 72% 88%, rgba(6, 182, 212, 0.16) 0%, transparent 42%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 860px) {
    .hero {
        padding: 4.5rem 0 4rem;
    }

    .hero-grid {
        grid-template-columns: 1.15fr 0.85fr;
    }
}

.hero-copy h1 {
    font-size: clamp(2.15rem, 4.8vw, 3.35rem);
    font-weight: 700;
    margin: 0.8rem 0 1rem;
    color: var(--ink);
}

.hero-subtitle {
    font-size: 1.12rem;
    font-weight: 600;
    color: #554879;
    max-width: 560px;
    margin-bottom: 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

@keyframes gentleFloat {

    0%,
    100% {
        transform: rotate(-2.5deg) translateY(0px);
    }

    50% {
        transform: rotate(-1deg) translateY(-9px);
    }
}

.showcase-card {
    max-width: 345px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 26px;
    overflow: hidden;
    border: 3px solid var(--ink);
    box-shadow: 0 12px 0 rgba(49, 35, 92, 0.16), 0 22px 40px rgba(124, 58, 237, 0.18);
    position: relative;
    animation: gentleFloat 5.5s ease-in-out infinite;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.showcase-card:hover {
    animation-play-state: paused;
    transform: rotate(0deg) translateY(-8px) scale(1.02);
}

.showcase-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--sunny);
    color: var(--ink);
    border: 2px solid var(--ink);
    box-shadow: 0 3px 0 var(--ink);
    padding: 0.28rem 0.78rem;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 0.84rem;
    font-weight: 700;
    z-index: 2;
}

.showcase-art {
    height: 185px;
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 55%, #ffb703 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    gap: 0.5rem;
    position: relative;
}

.showcase-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.24) 2px, transparent 2px);
    background-size: 20px 20px;
}

.showcase-diamond {
    font-size: 3.4rem;
    line-height: 1;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 5px 0 rgba(37, 27, 71, 0.28));
}

.showcase-set-label {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    background: rgba(37, 27, 71, 0.28);
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    position: relative;
    z-index: 1;
}

.showcase-body {
    padding: 1.35rem;
}

.showcase-title {
    font-family: var(--font-display);
    font-size: 1.32rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--ink);
}

.showcase-desc {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.showcase-progress {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-family: var(--font-display);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--primary);
}

.section {
    padding: 3.25rem 0 3.75rem;
}

.section-heading {
    text-align: center;
    font-size: clamp(1.55rem, 3.2vw, 2.2rem);
    margin-bottom: 2.2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 980px) {
    .feature-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    padding: 1.5rem;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-6px) rotate(-0.5deg);
    box-shadow: var(--shadow);
    border-color: var(--border-strong);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--primary-soft);
    color: var(--primary);
    border: 2px solid var(--border-strong);
    box-shadow: 0 4px 0 rgba(124, 58, 237, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transform: rotate(-4deg);
}

.feature-card:nth-child(1) .feature-icon {
    background: var(--sunny-soft);
    color: #b45309;
    border-color: #fcd34d;
    box-shadow: 0 4px 0 #fde68a;
}

.feature-card:nth-child(2) .feature-icon {
    background: var(--coral-soft);
    color: #e11d48;
    border-color: #fda4af;
    box-shadow: 0 4px 0 #fecdd3;
    transform: rotate(4deg);
}

.feature-card:nth-child(3) .feature-icon {
    background: var(--mint-soft);
    color: #047857;
    border-color: #6ee7b7;
    box-shadow: 0 4px 0 #a7f3d0;
    transform: rotate(-3deg);
}

.feature-card:nth-child(4) .feature-icon {
    background: var(--sky-soft);
    color: #0e7490;
    border-color: #67e8f9;
    box-shadow: 0 4px 0 #a5f3fc;
    transform: rotate(3deg);
}

.feature-icon .material-symbols-rounded {
    font-size: 1.7rem;
}

.feature-card h3 {
    font-size: 1.12rem;
    margin-bottom: 0.45rem;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ==========================================================================
   Auth Pages
   ========================================================================== */

.auth-page {
    padding: 3rem 1rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
    border: 2.5px solid var(--border-strong);
    box-shadow: var(--shadow);
}

.auth-header {
    margin-bottom: 1.4rem;
    text-align: center;
}

.auth-header h1 {
    font-size: 1.8rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.35rem;
    font-size: 0.92rem;
    color: var(--text-muted);
    font-weight: 600;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.15rem 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1.5px;
    background: var(--border);
}

.nav-user-link {
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.nav-user-link:hover {
    background: var(--sunny);
    border-color: var(--ink);
    color: var(--ink);
    text-decoration: none;
}

.account-page {
    max-width: 760px;
}

.account-stack {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.account-card {
    padding: 1.55rem 1.65rem;
    border-width: 2px;
    box-shadow: var(--shadow-sm);
}

.account-card-passkeys {
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
}

.account-card-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.account-row-lead {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    min-width: 0;
}

.account-row-lead h2 {
    font-size: 1.2rem;
    margin: 0 0 0.15rem;
}

.account-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--pink), var(--sunny));
    color: #ffffff;
    border: 2px solid var(--ink);
    box-shadow: 0 3px 0 var(--ink);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.account-icon-tile {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid transparent;
}

.account-icon-tile .material-symbols-rounded {
    font-size: 1.55rem;
}

.account-icon-passkey {
    background: var(--sunny-soft);
    color: #b45309;
    border-color: #fcd34d;
    box-shadow: 0 3px 0 #fde68a;
}

.account-icon-password {
    background: var(--primary-soft);
    color: var(--primary);
    border-color: var(--border-strong);
    box-shadow: 0 3px 0 var(--border);
}

.account-expand-panel {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 2px dashed var(--border);
}

.account-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 0.25rem;
}

.account-empty-hint {
    margin-top: 1.1rem;
    padding-top: 0.95rem;
    border-top: 2px dashed var(--border);
}

.passkey-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 2px dashed var(--border);
}

.passkey-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    background: var(--surface-alt);
    border: 1.5px solid var(--border);
}

.passkey-item-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.passkey-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--sunny-soft);
    border: 1.5px solid #fcd34d;
    color: #92400e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ==========================================================================
   Creator Dashboard & Card Set Workspace
   ========================================================================== */

.page-main {
    padding: 2rem 1.1rem 3.5rem;
}

.breadcrumb {
    margin-bottom: 0.8rem;
    font-size: 0.92rem;
    font-weight: 800;
}

.page-head {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.65rem;
}

.page-head h1 {
    font-size: clamp(1.7rem, 3.2vw, 2.25rem);
}

@media (min-width: 760px) {
    .page-head {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-top: 5px solid var(--primary);
    border-radius: var(--radius);
    padding: 1.15rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    box-shadow: var(--shadow-sm);
}

.stat-card:nth-child(2) {
    border-top-color: var(--coral);
}

.stat-card:nth-child(3) {
    border-top-color: var(--mint);
}

.stat-label {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2.05rem;
    font-weight: 700;
    line-height: 1.12;
    color: var(--ink);
}

.stat-sub {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-muted);
}

.sets-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.65rem 1.25rem;
    padding-top: 0.5rem;
}

/* Dashboard Card Sets Search, Filter & Sort Toolbar */
.sets-toolbar {
    padding: 0.9rem 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 900px) {
    .sets-toolbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.toolbar-search-wrap {
    position: relative;
    flex: 1;
    min-width: 220px;
}

.toolbar-search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 1.2rem;
}

.toolbar-search-wrap input[type="search"] {
    width: 100%;
    padding: 0.62rem 0.9rem 0.62rem 2.55rem;
    border: 2px solid var(--border-strong);
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--ink);
    background: #fcfaff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.toolbar-search-wrap input[type="search"]:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

.toolbar-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.toolbar-controls select {
    padding: 0.56rem 0.85rem;
    border: 2px solid var(--border-strong);
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--ink);
    background: #ffffff;
    cursor: pointer;
}

.toolbar-controls select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
}

.toolbar-meta {
    margin-bottom: 0.85rem;
    padding: 0 0.25rem;
}

.set-created-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
}

.set-created-meta .material-symbols-rounded {
    font-size: 1rem;
}

@media (min-width: 720px) {
    .sets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1060px) {
    .sets-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.set-card {
    position: relative;
    padding: 1.55rem 1.35rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.set-status-badge {
    position: absolute;
    top: 0;
    left: 1.15rem;
    transform: translateY(-50%);
    z-index: 2;
    box-shadow: 0 2px 6px rgba(37, 27, 71, 0.08);
    gap: 0.35rem;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
}

.icon-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 999px;
    flex-shrink: 0;
}

.icon-btn .material-symbols-rounded {
    font-size: 1.25rem;
}

.icon-btn-play {
    background: var(--mint-soft);
    border-color: #86efac;
    color: var(--success);
}

.icon-btn-play:hover {
    background: var(--mint);
    border-color: #065f46;
    color: #ffffff;
}

.icon-btn-pause:hover {
    background: var(--sunny-soft);
    border-color: #fcd34d;
    color: #92400e;
}

.set-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--border-strong);
}

.set-card.is-inactive {
    opacity: 0.82;
}

.set-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.set-card-title {
    font-size: 1.28rem;
    margin: 0;
}

.set-card-title a {
    color: var(--ink);
}

.set-card-title a:hover {
    color: var(--primary);
}

.set-card-desc {
    font-size: 0.92rem;
    font-weight: 600;
    color: #5b4f7d;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.set-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--surface-alt);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 0.7rem 0.5rem;
    text-align: center;
}

.set-metrics strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--ink);
}

.set-metrics span {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 700;
}

.set-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.set-card-footer {
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 2px dashed var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Tabs */
.tabs-bar {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1.4rem;
    padding-bottom: 0.5rem;
    overflow-x: auto;
}

.tab-btn {
    appearance: none;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 999px;
    padding: 0.55rem 1.05rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tab-btn:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.tab-btn.is-active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary-lip);
    box-shadow: 0 3px 0 var(--primary-lip);
}

.tab-count {
    font-size: 0.76rem;
    background: rgba(124, 58, 237, 0.12);
    color: var(--primary);
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
}

.tab-btn.is-active .tab-count {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

/* Cards Manage Grid */
.cards-manage-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 680px) {
    .cards-manage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1020px) {
    .cards-manage-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.manage-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.manage-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.manage-card-media {
    height: 162px;
    position: relative;
    background: var(--surface-alt);
    overflow: hidden;
}

.manage-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-art-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 55%, #ffb703 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.card-art-fallback span {
    font-size: 2.5rem;
    line-height: 1;
    filter: drop-shadow(0 4px 0 rgba(37, 27, 71, 0.24));
}

.card-art-fallback small {
    opacity: 0.92;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

.points-chip {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--sunny);
    color: var(--ink);
    border: 2px solid var(--ink);
    box-shadow: 0 2px 0 var(--ink);
    padding: 0.2rem 0.68rem;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
}

.manage-card-body {
    padding: 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    flex: 1;
}

.manage-card-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
}

.manage-card-title-row h3 {
    margin: 0;
    font-size: 1.15rem;
}

.qr-thumb-btn {
    appearance: none;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 4px;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.15s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qr-thumb-btn:hover {
    border-color: var(--primary);
    transform: scale(1.08) rotate(2deg);
}

.qr-thumb {
    display: block;
    width: 48px;
    height: 48px;
}

.qr-thumb svg {
    width: 100%;
    height: 100%;
    display: block;
}

.card-desc-snippet {
    font-size: 0.9rem;
    font-weight: 600;
    color: #5b4f7d;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.clue-pill {
    font-size: 0.82rem;
    font-weight: 600;
    background: var(--sunny-soft);
    border: 1.5px dashed #f59e0b;
    border-radius: 12px;
    padding: 0.45rem 0.7rem;
    color: #78350f;
}

.slug-bar {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--surface-alt);
    border: 1.5px solid var(--border);
    padding: 0.35rem 0.55rem;
    border-radius: 12px;
}

.slug-url {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.manage-card-footer {
    margin-top: auto;
    padding-top: 0.7rem;
    border-top: 2px dashed var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inline-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

/* Tables & Scoreboards */
.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
}

.data-table th,
.data-table td {
    padding: 0.78rem 0.85rem;
    text-align: left;
    border-bottom: 1.5px solid var(--border);
    vertical-align: middle;
}

.data-table th {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--surface-alt);
}

.data-table th:first-child {
    border-top-left-radius: 12px;
}

.data-table th:last-child {
    border-top-right-radius: 12px;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.scoreboard-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 30px;
    padding: 0 0.55rem;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.88rem;
    background: var(--surface-alt);
    color: var(--ink);
    border: 1.5px solid var(--border);
}

.rank-1 {
    background: var(--sunny);
    color: var(--ink);
    border-color: var(--ink);
    box-shadow: 0 2px 0 var(--ink);
}

.rank-2 {
    background: #e2e8f0;
    color: #334155;
    border-color: #94a3b8;
}

.rank-3 {
    background: #fed7aa;
    color: #9a3412;
    border-color: #fb923c;
}

.player-note-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.is-current-player {
    background: var(--sunny-soft);
}

.you-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    background: var(--coral);
    color: #fff;
    padding: 0.12rem 0.48rem;
    border-radius: 999px;
    margin-left: 0.35rem;
    vertical-align: middle;
}

/* Empty States */
.empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
}

.empty-icon {
    width: 68px;
    height: 68px;
    border-radius: 22px;
    background: var(--sunny-soft);
    color: #b45309;
    border: 2.5px solid #fcd34d;
    box-shadow: 0 5px 0 #fde68a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.3rem;
    transform: rotate(-5deg);
}

.empty-icon .material-symbols-rounded {
    font-size: 2.2rem;
}

/* ==========================================================================
   Modals
   ========================================================================== */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(37, 27, 71, 0.52);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 100;
}

.modal-backdrop.is-open {
    display: flex;
}

.modal-dialog {
    background: var(--surface);
    border: 2.5px solid var(--border-strong);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 530px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.6rem;
    box-shadow: var(--shadow-lg);
}

.modal-lg {
    max-width: 640px;
}

.modal-sm {
    max-width: 390px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.35rem;
}

.modal-close {
    appearance: none;
    background: var(--surface-alt);
    border: 2px solid var(--border);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    font-size: 1.35rem;
    line-height: 1;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease;
}

.modal-close:hover {
    background: var(--coral-soft);
    border-color: #fda4af;
    color: var(--danger);
    transform: rotate(90deg);
    text-decoration: none;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.qr-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    text-align: center;
}

.qr-modal-body canvas {
    border: 2.5px solid var(--border-strong);
    border-radius: 18px;
    padding: 10px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.qr-modal-link {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    word-break: break-all;
    color: var(--text-muted);
}

.qr-modal-actions {
    display: flex;
    gap: 0.6rem;
    width: 100%;
    justify-content: center;
}

/* ==========================================================================
   Public Player Card Reveal Experience (Mobile-First & Magical!)
   ========================================================================== */

.player-body {
    background-color: #fffbf2;
    background-image:
        radial-gradient(circle at 15% 8%, rgba(124, 58, 237, 0.15) 0%, transparent 36%),
        radial-gradient(circle at 88% 12%, rgba(255, 183, 3, 0.24) 0%, transparent 36%),
        radial-gradient(var(--bg-dot) 1.5px, transparent 1.5px);
    background-size: auto, auto, 26px 26px;
}

.player-shell {
    padding: 1.4rem 1rem 3.25rem;
}

.player-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@keyframes cardRevealIn {
    0% {
        opacity: 0;
        transform: translateY(16px) scale(0.96);
    }

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

.collectible-card {
    background: var(--surface);
    border-radius: 28px;
    overflow: hidden;
    border: 3px solid var(--ink);
    box-shadow: 0 10px 0 rgba(49, 35, 92, 0.16), 0 22px 44px rgba(124, 58, 237, 0.16);
    animation: cardRevealIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.collectible-header {
    background: linear-gradient(90deg, #31235c 0%, #5b21b6 60%, #7c3aed 100%);
    color: #ffffff;
    padding: 0.82rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.collectible-set-name {
    font-family: var(--font-display);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.collectible-points {
    background: var(--sunny);
    color: var(--ink);
    border: 2px solid var(--ink);
    font-family: var(--font-display);
    font-size: 0.86rem;
    font-weight: 700;
    padding: 0.2rem 0.78rem;
    border-radius: 999px;
    flex-shrink: 0;
}

.collectible-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #31235c;
    overflow: hidden;
}

.collectible-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collectible-art-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 52%, #ffb703 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    position: relative;
}

.collectible-art-fallback::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.22) 2px, transparent 2px);
    background-size: 22px 22px;
}

.fallback-emblem {
    font-size: 3.8rem;
    line-height: 1;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 6px 0 rgba(37, 27, 71, 0.3));
}

.fallback-pts {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    background: rgba(37, 27, 71, 0.28);
    padding: 0.22rem 0.85rem;
    border-radius: 999px;
    position: relative;
    z-index: 1;
}

.claimed-ribbon {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: var(--mint);
    color: #fff;
    border: 2px solid #064e3b;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    box-shadow: 0 3px 0 #064e3b;
}

.collectible-body {
    padding: 1.35rem;
}

.collectible-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.collectible-title {
    font-size: 1.68rem;
    margin-bottom: 0.55rem;
}

.collectible-desc {
    font-size: 0.98rem;
    font-weight: 600;
    color: #4b3e6e;
    line-height: 1.62;
}

.claim-widget {
    margin-top: 1.3rem;
    padding-top: 1.2rem;
    border-top: 2px dashed var(--border);
}

.claim-status-box {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: var(--mint-soft);
    border: 2px solid #6ee7b7;
    box-shadow: 0 4px 0 #a7f3d0;
    color: #065f46;
}

.claim-status-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--sunny);
    color: var(--ink);
    border: 2px solid var(--ink);
    box-shadow: 0 3px 0 var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transform: rotate(-4deg);
}

.claim-status-icon .material-symbols-rounded {
    font-size: 1.6rem;
}

.claim-status-copy strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.08rem;
}

.claim-status-copy p {
    margin: 0.15rem 0 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: #047857;
}

@keyframes claimPop {
    0% {
        transform: scale(0.9);
        opacity: 0.4;
    }

    55% {
        transform: scale(1.04);
        opacity: 1;
    }

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

.just-claimed-pop {
    animation: claimPop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.returning-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    background: var(--surface-alt);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 0.78rem 0.95rem;
    margin-bottom: 0.9rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.returning-note {
    color: var(--text-muted);
    font-style: italic;
}

.claim-form-head h2 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.claim-form-head p {
    font-size: 0.88rem;
    font-weight: 600;
    margin: 0;
}

.claim-cta {
    font-size: 1.08rem;
    padding: 0.95rem 1.35rem;
}

.profile-edit-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.25rem;
}

.claimed-profile-bar {
    margin-top: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* Confetti Celebration Burst on Claim */
.confetti-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 200;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    opacity: 0;
    animation: confettiBurst 1.15s cubic-bezier(0.16, 0.85, 0.45, 1) forwards;
}

@keyframes confettiBurst {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(0.7);
    }

    70% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(var(--dx), calc(var(--dy) + 120px)) rotate(var(--rot)) scale(1.1);
    }
}

/* Dedicated Non-Intrusive Responsive Ad Banner Slot */
.ad-banner-slot {
    width: 100%;
    text-align: center;
    transition: opacity 0.25s ease;
}

.ad-banner-slot.is-pending {
    height: 0;
    min-height: 0;
    margin: -0.625rem 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.ad-slot-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9b8ec4;
    margin-bottom: 0.25rem;
}

.ad-slot-container {
    width: 100%;
    min-height: 90px;
    background: rgba(255, 255, 255, 0.92);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0.4rem;
}

.ad-placeholder {
    font-size: 0.82rem;
    color: #9b8ec4;
    font-weight: 700;
}

/* Progress Panel */
.progress-panel {
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    border-width: 2.5px;
    box-shadow: var(--shadow-sm);
}

.progress-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.progress-eyebrow {
    font-family: var(--font-display);
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.15rem;
}

.progress-panel-top h2 {
    margin: 0;
    font-size: 1.28rem;
}

.progress-pts-box {
    background: var(--sunny-soft);
    color: var(--ink);
    border: 2px solid #fcd34d;
    border-radius: 16px;
    padding: 0.4rem 0.82rem;
    text-align: center;
    min-width: 72px;
}

.progress-pts-box strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.3rem;
    line-height: 1.1;
}

.progress-pts-box span {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #9a5800;
}

.progress-track {
    width: 100%;
    height: 10px;
    background: var(--surface-alt);
    border: 1.5px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
}

.progress-track-lg {
    height: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--pink), var(--sunny));
    border-radius: 999px;
    transition: width 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.progress-sub {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
}

/* Public Scoreboard Page */
.scoreboard-page {
    max-width: 820px;
}

.scoreboard-hero {
    padding: 1.65rem;
    border: 2.5px solid var(--border-strong);
    box-shadow: var(--shadow);
}

.scoreboard-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 2px dashed var(--border);
    font-size: 0.92rem;
    font-weight: 700;
}

/* Footer */
.site-footer {
    border-top: 2px solid var(--border);
    background: rgba(255, 255, 255, 0.88);
    padding: 1.35rem 0 4.75rem;
    margin-top: auto;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem 1.25rem;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-muted);
}

.footer-nav {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.footer-nav a {
    color: var(--text-muted);
    font-weight: 700;
}

.footer-nav a:hover {
    color: var(--primary);
}

/* Privacy Policy & Terms of Use Document Pages */
.legal-page {
    max-width: 820px;
}

.legal-doc {
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.legal-doc-head {
    padding-bottom: 1.15rem;
    margin-bottom: 1.35rem;
    border-bottom: 2px dashed var(--border);
}

.legal-doc-head h1 {
    margin-top: 0.55rem;
    font-size: clamp(1.75rem, 3.5vw, 2.3rem);
}

.legal-doc h2 {
    font-size: 1.25rem;
    margin: 1.6rem 0 0.5rem;
}

.legal-doc ul {
    margin: 0.4rem 0 1rem;
    padding-left: 1.3rem;
}

.legal-doc li {
    margin-bottom: 0.45rem;
}

@media (max-width: 640px) {
    .legal-doc {
        padding: 1.35rem;
    }
}

@media (max-width: 640px) {
    .footer-inner {
        justify-content: center;
        text-align: center;
    }
}

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

    .showcase-card,
    .collectible-card,
    .just-claimed-pop,
    .confetti-piece {
        animation: none !important;
    }

    .btn,
    .feature-card,
    .set-card,
    .manage-card {
        transition: none !important;
    }
}

/* ==========================================================================
   Three Card Designs: Classic Pop (standard), Collector TCG (tcg), Retro Arcade (arcade)
   ========================================================================== */

/* Design Picker in Dashboard Modal */
.design-picker-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
}

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

.design-choice {
    position: relative;
    cursor: pointer;
}

.design-choice input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.design-choice-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.3rem;
    padding: 0.75rem 0.55rem;
    border-radius: 16px;
    border: 2px solid var(--border-strong);
    background: #ffffff;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.design-choice-card strong {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--ink);
}

.design-choice-card small {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-muted);
}

.design-choice:hover .design-choice-card {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.design-choice input[type="radio"]:checked+.design-choice-card {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow: 0 4px 0 var(--primary);
}

.design-swatch {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 2px solid var(--ink);
}

.design-swatch-standard {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
}

.design-swatch-tcg {
    background: linear-gradient(135deg, #f59e0b, #fde047, #d97706);
    color: #451a03;
}

.design-swatch-arcade {
    background: linear-gradient(135deg, #18123b, #06b6d4);
    color: #facc15;
}

/* Dashboard Manage Card Design Chips & Rim Accents */
.design-chip {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.62rem;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 0.74rem;
    font-weight: 600;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(6px);
}

.design-chip-standard {
    background: rgba(49, 35, 92, 0.85);
    color: #ffffff;
}

.design-chip-tcg {
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    color: #451a03;
    border-color: #78350f;
}

.design-chip-arcade {
    background: #18123b;
    color: #22d3ee;
    border-color: #22d3ee;
}

.manage-design-tcg {
    border-color: #f59e0b;
    box-shadow: 0 5px 0 rgba(245, 158, 11, 0.22);
}

.manage-design-arcade {
    border-color: #06b6d4;
    box-shadow: 0 5px 0 rgba(6, 182, 212, 0.22);
}

/* --------------------------------------------------------------------------
   DESIGN 2: Collector TCG (Pokémon / Magic: The Gathering Inspired)
   -------------------------------------------------------------------------- */

.card-design-tcg {
    padding: 12px;
    border-radius: 26px;
    border: 3px solid #78350f;
    background: linear-gradient(135deg, #fef08a 0%, #f59e0b 28%, #fde68a 52%, #d97706 78%, #fef08a 100%);
    box-shadow: 0 11px 0 rgba(120, 53, 15, 0.28), 0 24px 48px rgba(180, 83, 9, 0.22);
}

.tcg-inner-face {
    background: linear-gradient(180deg, #fffdf4 0%, #fef9e7 55%, #fdf3d0 100%);
    border-radius: 16px;
    border: 2px solid #b45309;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    position: relative;
}

.tcg-nameplate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.45rem 0.7rem;
    border-radius: 12px;
    background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px solid #d97706;
    box-shadow: inset 0 1px 0 #ffffff;
}

.tcg-nameplate-left {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tcg-stage-tag {
    font-family: var(--font-display);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #92400e;
    text-transform: uppercase;
}

.tcg-title {
    font-size: 1.38rem;
    margin: 0;
    color: #1f1408;
    line-height: 1.15;
}

.tcg-hp-group {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    flex-shrink: 0;
}

.tcg-hp-label {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    color: #b45309;
}

.tcg-hp-val {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #991b1b;
    line-height: 1;
}

.tcg-energy-orb {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #fef08a, #f59e0b 65%, #b45309);
    border: 2px solid #78350f;
    color: #451a03;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.15rem;
    align-self: center;
}

.tcg-energy-orb .material-symbols-rounded {
    font-size: 1.1rem;
}

.tcg-art-bezel {
    padding: 6px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fde68a, #b45309, #fef3c7, #92400e);
    border: 2px solid #78350f;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.tcg-media {
    border-radius: 7px;
    border: 1.5px solid #451a03;
}

.tcg-art-fallback {
    background: radial-gradient(circle at 28% 22%, #fbbf24 0%, #b45309 42%, #451a03 100%);
}

.tcg-typeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.36rem 0.72rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #fef3c7, #fde68a);
    border: 1.5px solid #b45309;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    color: #78350f;
}

.tcg-type-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tcg-rarity-stars {
    display: inline-flex;
    align-items: center;
    color: #d97706;
    flex-shrink: 0;
}

.tcg-rarity-stars .material-symbols-rounded {
    font-size: 1rem;
}

.tcg-body {
    padding: 0.15rem 0.1rem 0;
}

.tcg-lore-box {
    background: rgba(255, 255, 255, 0.82);
    border: 1.5px solid #e5c476;
    border-radius: 12px;
    padding: 0.85rem 0.95rem;
    box-shadow: inset 0 2px 6px rgba(180, 83, 9, 0.06);
}

.tcg-lore-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.tcg-ability-tag {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    background: #b45309;
    color: #fffbeb;
    padding: 0.14rem 0.58rem;
    border-radius: 6px;
}

.card-design-tcg .claim-widget {
    border-top-color: #e5c476;
}

.tcg-collector-footer {
    margin-top: 1rem;
    padding-top: 0.55rem;
    border-top: 1.5px solid #e5c476;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: #92400e;
}

/* TCG Customizer Panel inside Card Modal */
.tcg-customizer-panel {
    border: 2px solid #f59e0b;
    background: linear-gradient(180deg, #fffdf4 0%, #fff7db 100%);
    border-radius: 18px;
    padding: 1rem 1.1rem 1.15rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.tcg-customizer-panel legend {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: #92400e;
    background: #fef3c7;
    border: 1.5px solid #f59e0b;
    border-radius: 999px;
    padding: 0.22rem 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

@media (min-width: 600px) {
    .form-row-3 {
        grid-template-columns: 1.3fr 0.8fr 1.1fr;
    }
}

.tcg-element-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

@media (min-width: 560px) {
    .tcg-element-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tcg-el-choice {
    position: relative;
    cursor: pointer;
}

.tcg-el-choice input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tcg-el-pill {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.6rem;
    border-radius: 12px;
    border: 2px solid #e5d2a4;
    background: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.tcg-el-choice:hover .tcg-el-pill {
    border-color: #f59e0b;
    transform: translateY(-1px);
}

.tcg-el-choice input[type="radio"]:checked+.tcg-el-pill {
    border-color: var(--ink);
    background: #fffbeb;
    box-shadow: 0 3px 0 var(--ink);
}

.tcg-el-dot {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tcg-el-dot .material-symbols-rounded {
    font-size: 0.95rem;
}

/* TCG Ability Row & Flavor Quote */
.tcg-ability-block {
    padding-bottom: 0.65rem;
    margin-bottom: 0.65rem;
    border-bottom: 1.5px dashed var(--tcg-soft-border, #e5c476);
}

.tcg-ability-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.tcg-ability-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--tcg-accent, #b45309);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tcg-ability-icon .material-symbols-rounded {
    font-size: 0.92rem;
}

.tcg-ability-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--ink);
    flex: 1;
}

.tcg-ability-power {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--tcg-stat-color, #991b1b);
    background: var(--tcg-pill-bg, #fef3c7);
    border: 1.5px solid var(--tcg-accent, #d97706);
    padding: 0.08rem 0.55rem;
    border-radius: 999px;
}

.tcg-ability-desc {
    margin: 0.32rem 0 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #3b2f5a;
}

.tcg-flavor-quote {
    margin: 0.7rem 0 0;
    padding: 0.45rem 0.7rem;
    border-left: 3px solid var(--tcg-accent, #d97706);
    background: var(--tcg-pill-bg, rgba(254, 243, 199, 0.45));
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--tcg-dark, #78350f);
}

/* Holographic Foil Sheen Animation */
@keyframes holoSweep {
    0% {
        background-position: -150% 0%;
    }

    100% {
        background-position: 250% 0%;
    }
}

.tcg-holo {
    position: relative;
}

.tcg-holo-sheen {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(118deg,
            transparent 18%,
            rgba(255, 255, 255, 0.32) 34%,
            rgba(255, 230, 128, 0.36) 44%,
            rgba(125, 211, 252, 0.35) 54%,
            rgba(244, 114, 182, 0.32) 64%,
            transparent 78%);
    background-size: 260% 100%;
    mix-blend-mode: screen;
    animation: holoSweep 4.2s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .tcg-holo-sheen {
        animation: none !important;
        background-position: 50% 0%;
    }
}

/* 6 TCG Element Palettes (Fire, Water, Nature, Psychic, Shadow + Gold default) */
.tcg-el-fire {
    --tcg-accent: #dc2626;
    --tcg-dark: #7f1d1d;
    --tcg-pill-bg: #fee2e2;
    --tcg-soft-border: #fca5a5;
    --tcg-stat-color: #991b1b;
    border-color: #7f1d1d;
    background: linear-gradient(135deg, #fca5a5 0%, #ef4444 30%, #fdba74 58%, #b91c1c 85%, #fecaca 100%);
    box-shadow: 0 11px 0 rgba(127, 29, 29, 0.28), 0 24px 48px rgba(220, 38, 38, 0.22);
}

.tcg-el-fire .tcg-inner-face {
    background: linear-gradient(180deg, #fffaf8 0%, #fff1ec 58%, #ffe4db 100%);
    border-color: #dc2626;
}

.tcg-el-fire .tcg-nameplate {
    background: linear-gradient(90deg, #fff5f5, #fee2e2);
    border-color: #dc2626;
}

.tcg-el-fire .tcg-stage-tag,
.tcg-el-fire .tcg-hp-label,
.tcg-el-fire .tcg-collector-footer {
    color: #991b1b;
}

.tcg-el-fire .tcg-energy-orb {
    background: radial-gradient(circle at 30% 30%, #fed7aa, #ef4444 65%, #991b1b);
    border-color: #7f1d1d;
    color: #fff;
}

.tcg-el-fire .tcg-art-bezel {
    background: linear-gradient(135deg, #fdba74, #b91c1c, #fecaca, #7f1d1d);
    border-color: #7f1d1d;
}

.tcg-el-fire .tcg-art-fallback {
    background: radial-gradient(circle at 30% 25%, #fb923c, #dc2626 50%, #7f1d1d 100%);
}

.tcg-el-fire .tcg-typeline {
    background: linear-gradient(90deg, #fee2e2, #fed7aa);
    border-color: #dc2626;
    color: #7f1d1d;
}

.tcg-el-fire .tcg-rarity-stars {
    color: #dc2626;
}

.tcg-el-fire .tcg-ability-tag {
    background: #dc2626;
}

.tcg-el-fire .tcg-lore-box,
.tcg-el-fire .tcg-collector-footer,
.tcg-el-fire .claim-widget {
    border-color: #fca5a5;
}

.tcg-el-water {
    --tcg-accent: #0284c7;
    --tcg-dark: #0c4a6e;
    --tcg-pill-bg: #e0f2fe;
    --tcg-soft-border: #7dd3fc;
    --tcg-stat-color: #0369a1;
    border-color: #0c4a6e;
    background: linear-gradient(135deg, #bae6fd 0%, #0ea5e9 30%, #a5f3fc 58%, #0369a1 85%, #e0f2fe 100%);
    box-shadow: 0 11px 0 rgba(12, 74, 110, 0.28), 0 24px 48px rgba(14, 165, 233, 0.22);
}

.tcg-el-water .tcg-inner-face {
    background: linear-gradient(180deg, #f8fdff 0%, #eef9ff 58%, #ddf3ff 100%);
    border-color: #0284c7;
}

.tcg-el-water .tcg-nameplate {
    background: linear-gradient(90deg, #f0f9ff, #e0f2fe);
    border-color: #0284c7;
}

.tcg-el-water .tcg-stage-tag,
.tcg-el-water .tcg-hp-label,
.tcg-el-water .tcg-collector-footer {
    color: #0369a1;
}

.tcg-el-water .tcg-hp-val {
    color: #0c4a6e;
}

.tcg-el-water .tcg-energy-orb {
    background: radial-gradient(circle at 30% 30%, #bae6fd, #0ea5e9 65%, #0369a1);
    border-color: #0c4a6e;
    color: #fff;
}

.tcg-el-water .tcg-art-bezel {
    background: linear-gradient(135deg, #7dd3fc, #0369a1, #cffafe, #0c4a6e);
    border-color: #0c4a6e;
}

.tcg-el-water .tcg-art-fallback {
    background: radial-gradient(circle at 30% 25%, #38bdf8, #0284c7 50%, #0c4a6e 100%);
}

.tcg-el-water .tcg-typeline {
    background: linear-gradient(90deg, #e0f2fe, #bae6fd);
    border-color: #0284c7;
    color: #0c4a6e;
}

.tcg-el-water .tcg-rarity-stars {
    color: #0284c7;
}

.tcg-el-water .tcg-ability-tag {
    background: #0284c7;
}

.tcg-el-water .tcg-lore-box,
.tcg-el-water .tcg-collector-footer,
.tcg-el-water .claim-widget {
    border-color: #7dd3fc;
}

.tcg-el-nature {
    --tcg-accent: #059669;
    --tcg-dark: #064e3b;
    --tcg-pill-bg: #d1fae5;
    --tcg-soft-border: #6ee7b7;
    --tcg-stat-color: #047857;
    border-color: #064e3b;
    background: linear-gradient(135deg, #a7f3d0 0%, #10b981 30%, #d9f99d 58%, #047857 85%, #d1fae5 100%);
    box-shadow: 0 11px 0 rgba(6, 78, 59, 0.28), 0 24px 48px rgba(16, 185, 129, 0.22);
}

.tcg-el-nature .tcg-inner-face {
    background: linear-gradient(180deg, #f7fffb 0%, #ecfdf5 58%, #dcfce7 100%);
    border-color: #059669;
}

.tcg-el-nature .tcg-nameplate {
    background: linear-gradient(90deg, #f0fdf4, #d1fae5);
    border-color: #059669;
}

.tcg-el-nature .tcg-stage-tag,
.tcg-el-nature .tcg-hp-label,
.tcg-el-nature .tcg-collector-footer {
    color: #047857;
}

.tcg-el-nature .tcg-hp-val {
    color: #065f46;
}

.tcg-el-nature .tcg-energy-orb {
    background: radial-gradient(circle at 30% 30%, #bbf7d0, #10b981 65%, #047857);
    border-color: #064e3b;
    color: #fff;
}

.tcg-el-nature .tcg-art-bezel {
    background: linear-gradient(135deg, #86efac, #047857, #d9f99d, #064e3b);
    border-color: #064e3b;
}

.tcg-el-nature .tcg-art-fallback {
    background: radial-gradient(circle at 30% 25%, #34d399, #059669 50%, #064e3b 100%);
}

.tcg-el-nature .tcg-typeline {
    background: linear-gradient(90deg, #d1fae5, #bef264);
    border-color: #059669;
    color: #064e3b;
}

.tcg-el-nature .tcg-rarity-stars {
    color: #059669;
}

.tcg-el-nature .tcg-ability-tag {
    background: #059669;
}

.tcg-el-nature .tcg-lore-box,
.tcg-el-nature .tcg-collector-footer,
.tcg-el-nature .claim-widget {
    border-color: #6ee7b7;
}

.tcg-el-psychic {
    --tcg-accent: #9333ea;
    --tcg-dark: #4c1d95;
    --tcg-pill-bg: #f3e8ff;
    --tcg-soft-border: #d8b4fe;
    --tcg-stat-color: #7e22ce;
    border-color: #4c1d95;
    background: linear-gradient(135deg, #e9d5ff 0%, #a855f7 30%, #fbcfe8 58%, #6b21a8 85%, #f3e8ff 100%);
    box-shadow: 0 11px 0 rgba(76, 29, 149, 0.28), 0 24px 48px rgba(168, 85, 247, 0.24);
}

.tcg-el-psychic .tcg-inner-face {
    background: linear-gradient(180deg, #fdfaff 0%, #f8f0ff 58%, #f2e4ff 100%);
    border-color: #9333ea;
}

.tcg-el-psychic .tcg-nameplate {
    background: linear-gradient(90deg, #faf5ff, #f3e8ff);
    border-color: #9333ea;
}

.tcg-el-psychic .tcg-stage-tag,
.tcg-el-psychic .tcg-hp-label,
.tcg-el-psychic .tcg-collector-footer {
    color: #7e22ce;
}

.tcg-el-psychic .tcg-hp-val {
    color: #581c87;
}

.tcg-el-psychic .tcg-energy-orb {
    background: radial-gradient(circle at 30% 30%, #f5d0fe, #a855f7 65%, #6b21a8);
    border-color: #4c1d95;
    color: #fff;
}

.tcg-el-psychic .tcg-art-bezel {
    background: linear-gradient(135deg, #d8b4fe, #6b21a8, #fbcfe8, #4c1d95);
    border-color: #4c1d95;
}

.tcg-el-psychic .tcg-art-fallback {
    background: radial-gradient(circle at 30% 25%, #c084fc, #9333ea 50%, #4c1d95 100%);
}

.tcg-el-psychic .tcg-typeline {
    background: linear-gradient(90deg, #f3e8ff, #fbcfe8);
    border-color: #9333ea;
    color: #4c1d95;
}

.tcg-el-psychic .tcg-rarity-stars {
    color: #9333ea;
}

.tcg-el-psychic .tcg-ability-tag {
    background: #9333ea;
}

.tcg-el-psychic .tcg-lore-box,
.tcg-el-psychic .tcg-collector-footer,
.tcg-el-psychic .claim-widget {
    border-color: #d8b4fe;
}

.tcg-el-shadow {
    --tcg-accent: #475569;
    --tcg-dark: #0f172a;
    --tcg-pill-bg: #e2e8f0;
    --tcg-soft-border: #94a3b8;
    --tcg-stat-color: #be123c;
    border-color: #020617;
    background: linear-gradient(135deg, #64748b 0%, #1e293b 32%, #94a3b8 56%, #0f172a 85%, #475569 100%);
    box-shadow: 0 11px 0 rgba(2, 6, 23, 0.42), 0 24px 48px rgba(15, 23, 42, 0.3);
}

.tcg-el-shadow .tcg-inner-face {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 58%, #e2e8f0 100%);
    border-color: #334155;
}

.tcg-el-shadow .tcg-nameplate {
    background: linear-gradient(90deg, #f8fafc, #e2e8f0);
    border-color: #334155;
}

.tcg-el-shadow .tcg-stage-tag,
.tcg-el-shadow .tcg-hp-label,
.tcg-el-shadow .tcg-collector-footer {
    color: #334155;
}

.tcg-el-shadow .tcg-hp-val {
    color: #0f172a;
}

.tcg-el-shadow .tcg-energy-orb {
    background: radial-gradient(circle at 30% 30%, #94a3b8, #334155 65%, #0f172a);
    border-color: #020617;
    color: #facc15;
}

.tcg-el-shadow .tcg-art-bezel {
    background: linear-gradient(135deg, #94a3b8, #1e293b, #cbd5e1, #020617);
    border-color: #020617;
}

.tcg-el-shadow .tcg-art-fallback {
    background: radial-gradient(circle at 30% 25%, #475569, #1e293b 50%, #020617 100%);
}

.tcg-el-shadow .tcg-typeline {
    background: linear-gradient(90deg, #e2e8f0, #cbd5e1);
    border-color: #334155;
    color: #0f172a;
}

.tcg-el-shadow .tcg-rarity-stars {
    color: #334155;
}

.tcg-el-shadow .tcg-ability-tag {
    background: #1e293b;
}

.tcg-el-shadow .tcg-lore-box,
.tcg-el-shadow .tcg-collector-footer,
.tcg-el-shadow .claim-widget {
    border-color: #94a3b8;
}

/* Dashboard Manage Card Element Rim Accents */
.manage-tcg-el-fire {
    border-color: #ef4444;
}

.manage-tcg-el-water {
    border-color: #0ea5e9;
}

.manage-tcg-el-nature {
    border-color: #10b981;
}

.manage-tcg-el-psychic {
    border-color: #a855f7;
}

.manage-tcg-el-shadow {
    border-color: #334155;
}

.manage-tcg-el-ice {
    border-color: #06b6d4;
}

.manage-tcg-el-fairy {
    border-color: #ec4899;
}

.manage-tcg-el-steel {
    border-color: #64748b;
}

.manage-tcg-el-earth {
    border-color: #b45309;
}

.manage-tcg-el-dragon {
    border-color: #4338ca;
}

.manage-tcg-el-cosmic {
    border-color: #d946ef;
}

/* 6 Additional TCG Element Palettes (Ice, Fairy, Steel, Earth, Dragon, Cosmic) */
.tcg-el-ice {
    --tcg-accent: #0891b2;
    --tcg-dark: #164e63;
    --tcg-pill-bg: #cffafe;
    --tcg-soft-border: #67e8f9;
    --tcg-stat-color: #0e7490;
    border-color: #155e75;
    background: linear-gradient(135deg, #ecfeff 0%, #67e8f9 28%, #e0e7ff 55%, #06b6d4 82%, #cffafe 100%);
    box-shadow: 0 11px 0 rgba(21, 94, 117, 0.26), 0 24px 48px rgba(6, 182, 212, 0.22);
}

.tcg-el-ice .tcg-inner-face {
    background: linear-gradient(180deg, #ffffff 0%, #f0fdff 58%, #e0f7ff 100%);
    border-color: #06b6d4;
}

.tcg-el-ice .tcg-nameplate {
    background: linear-gradient(90deg, #f5feff, #cffafe);
    border-color: #0891b2;
}

.tcg-el-ice .tcg-stage-tag,
.tcg-el-ice .tcg-hp-label,
.tcg-el-ice .tcg-collector-footer {
    color: #0e7490;
}

.tcg-el-ice .tcg-hp-val {
    color: #164e63;
}

.tcg-el-ice .tcg-energy-orb {
    background: radial-gradient(circle at 30% 30%, #ffffff, #22d3ee 60%, #0891b2);
    border-color: #155e75;
    color: #164e63;
}

.tcg-el-ice .tcg-art-bezel {
    background: linear-gradient(135deg, #a5f3fc, #0891b2, #e0e7ff, #155e75);
    border-color: #155e75;
}

.tcg-el-ice .tcg-art-fallback {
    background: radial-gradient(circle at 30% 25%, #67e8f9, #0891b2 52%, #164e63 100%);
}

.tcg-el-ice .tcg-typeline {
    background: linear-gradient(90deg, #cffafe, #e0e7ff);
    border-color: #0891b2;
    color: #164e63;
}

.tcg-el-ice .tcg-rarity-stars {
    color: #0891b2;
}

.tcg-el-ice .tcg-ability-tag {
    background: #0891b2;
}

.tcg-el-ice .tcg-lore-box,
.tcg-el-ice .tcg-collector-footer,
.tcg-el-ice .claim-widget {
    border-color: #67e8f9;
}

.tcg-el-fairy {
    --tcg-accent: #db2777;
    --tcg-dark: #831843;
    --tcg-pill-bg: #fce7f3;
    --tcg-soft-border: #f9a8d4;
    --tcg-stat-color: #be185d;
    border-color: #831843;
    background: linear-gradient(135deg, #fdf2f8 0%, #f472b6 30%, #fde68a 58%, #db2777 85%, #fbcfe8 100%);
    box-shadow: 0 11px 0 rgba(131, 24, 67, 0.25), 0 24px 48px rgba(236, 72, 153, 0.22);
}

.tcg-el-fairy .tcg-inner-face {
    background: linear-gradient(180deg, #fffafd 0%, #fff0f7 58%, #ffe4f1 100%);
    border-color: #ec4899;
}

.tcg-el-fairy .tcg-nameplate {
    background: linear-gradient(90deg, #fff5fa, #fce7f3);
    border-color: #db2777;
}

.tcg-el-fairy .tcg-stage-tag,
.tcg-el-fairy .tcg-hp-label,
.tcg-el-fairy .tcg-collector-footer {
    color: #9d174d;
}

.tcg-el-fairy .tcg-hp-val {
    color: #831843;
}

.tcg-el-fairy .tcg-energy-orb {
    background: radial-gradient(circle at 30% 30%, #fbcfe8, #ec4899 65%, #9d174d);
    border-color: #831843;
    color: #fff;
}

.tcg-el-fairy .tcg-art-bezel {
    background: linear-gradient(135deg, #fbcfe8, #db2777, #fef08a, #831843);
    border-color: #831843;
}

.tcg-el-fairy .tcg-art-fallback {
    background: radial-gradient(circle at 30% 25%, #f9a8d4, #db2777 52%, #831843 100%);
}

.tcg-el-fairy .tcg-typeline {
    background: linear-gradient(90deg, #fce7f3, #fef3c7);
    border-color: #db2777;
    color: #831843;
}

.tcg-el-fairy .tcg-rarity-stars {
    color: #db2777;
}

.tcg-el-fairy .tcg-ability-tag {
    background: #db2777;
}

.tcg-el-fairy .tcg-lore-box,
.tcg-el-fairy .tcg-collector-footer,
.tcg-el-fairy .claim-widget {
    border-color: #f9a8d4;
}

.tcg-el-steel {
    --tcg-accent: #475569;
    --tcg-dark: #1e293b;
    --tcg-pill-bg: #f1f5f9;
    --tcg-soft-border: #cbd5e1;
    --tcg-stat-color: #334155;
    border-color: #334155;
    background: linear-gradient(135deg, #f8fafc 0%, #94a3b8 28%, #e2e8f0 52%, #64748b 78%, #f1f5f9 100%);
    box-shadow: 0 11px 0 rgba(51, 65, 85, 0.28), 0 24px 48px rgba(100, 116, 139, 0.24);
}

.tcg-el-steel .tcg-inner-face {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 58%, #eef2f6 100%);
    border-color: #64748b;
}

.tcg-el-steel .tcg-nameplate {
    background: linear-gradient(90deg, #ffffff, #e2e8f0);
    border-color: #64748b;
}

.tcg-el-steel .tcg-stage-tag,
.tcg-el-steel .tcg-hp-label,
.tcg-el-steel .tcg-collector-footer {
    color: #475569;
}

.tcg-el-steel .tcg-hp-val {
    color: #1e293b;
}

.tcg-el-steel .tcg-energy-orb {
    background: radial-gradient(circle at 30% 30%, #ffffff, #94a3b8 65%, #334155);
    border-color: #1e293b;
    color: #0f172a;
}

.tcg-el-steel .tcg-art-bezel {
    background: linear-gradient(135deg, #e2e8f0, #475569, #f8fafc, #1e293b);
    border-color: #334155;
}

.tcg-el-steel .tcg-art-fallback {
    background: radial-gradient(circle at 30% 25%, #cbd5e1, #64748b 52%, #1e293b 100%);
}

.tcg-el-steel .tcg-typeline {
    background: linear-gradient(90deg, #f1f5f9, #cbd5e1);
    border-color: #64748b;
    color: #1e293b;
}

.tcg-el-steel .tcg-rarity-stars {
    color: #475569;
}

.tcg-el-steel .tcg-ability-tag {
    background: #475569;
}

.tcg-el-steel .tcg-lore-box,
.tcg-el-steel .tcg-collector-footer,
.tcg-el-steel .claim-widget {
    border-color: #cbd5e1;
}

.tcg-el-earth {
    --tcg-accent: #9a3412;
    --tcg-dark: #431407;
    --tcg-pill-bg: #ffedd5;
    --tcg-soft-border: #fdba74;
    --tcg-stat-color: #9a3412;
    border-color: #5c220c;
    background: linear-gradient(135deg, #fed7aa 0%, #c2410c 30%, #e7c29a 58%, #7c2d12 85%, #ffedd5 100%);
    box-shadow: 0 11px 0 rgba(92, 34, 12, 0.3), 0 24px 48px rgba(154, 52, 18, 0.24);
}

.tcg-el-earth .tcg-inner-face {
    background: linear-gradient(180deg, #fffbf6 0%, #fdf3e7 58%, #f8e5cf 100%);
    border-color: #9a3412;
}

.tcg-el-earth .tcg-nameplate {
    background: linear-gradient(90deg, #fff7ed, #fed7aa);
    border-color: #c2410c;
}

.tcg-el-earth .tcg-stage-tag,
.tcg-el-earth .tcg-hp-label,
.tcg-el-earth .tcg-collector-footer {
    color: #7c2d12;
}

.tcg-el-earth .tcg-hp-val {
    color: #7c2d12;
}

.tcg-el-earth .tcg-energy-orb {
    background: radial-gradient(circle at 30% 30%, #fed7aa, #c2410c 65%, #5c220c);
    border-color: #431407;
    color: #fff;
}

.tcg-el-earth .tcg-art-bezel {
    background: linear-gradient(135deg, #fdba74, #7c2d12, #fed7aa, #431407);
    border-color: #5c220c;
}

.tcg-el-earth .tcg-art-fallback {
    background: radial-gradient(circle at 30% 25%, #ea580c, #9a3412 52%, #431407 100%);
}

.tcg-el-earth .tcg-typeline {
    background: linear-gradient(90deg, #ffedd5, #fed7aa);
    border-color: #c2410c;
    color: #431407;
}

.tcg-el-earth .tcg-rarity-stars {
    color: #c2410c;
}

.tcg-el-earth .tcg-ability-tag {
    background: #9a3412;
}

.tcg-el-earth .tcg-lore-box,
.tcg-el-earth .tcg-collector-footer,
.tcg-el-earth .claim-widget {
    border-color: #fdba74;
}

.tcg-el-dragon {
    --tcg-accent: #4338ca;
    --tcg-dark: #1e1b4b;
    --tcg-pill-bg: #e0e7ff;
    --tcg-soft-border: #a5b4fc;
    --tcg-stat-color: #b45309;
    border-color: #1e1b4b;
    background: linear-gradient(135deg, #fbbf24 0%, #4338ca 32%, #f43f5e 62%, #1e1b4b 88%, #fde047 100%);
    box-shadow: 0 11px 0 rgba(30, 27, 75, 0.34), 0 24px 48px rgba(67, 56, 202, 0.28);
}

.tcg-el-dragon .tcg-inner-face {
    background: linear-gradient(180deg, #fafaff 0%, #f1f0ff 58%, #e7e5ff 100%);
    border-color: #4338ca;
}

.tcg-el-dragon .tcg-nameplate {
    background: linear-gradient(90deg, #eef2ff, #fef3c7);
    border-color: #4338ca;
}

.tcg-el-dragon .tcg-stage-tag,
.tcg-el-dragon .tcg-hp-label,
.tcg-el-dragon .tcg-collector-footer {
    color: #3730a3;
}

.tcg-el-dragon .tcg-hp-val {
    color: #9f1239;
}

.tcg-el-dragon .tcg-energy-orb {
    background: radial-gradient(circle at 30% 30%, #fde047, #4338ca 65%, #1e1b4b);
    border-color: #1e1b4b;
    color: #fde047;
}

.tcg-el-dragon .tcg-art-bezel {
    background: linear-gradient(135deg, #fde047, #4338ca, #fb7185, #1e1b4b);
    border-color: #1e1b4b;
}

.tcg-el-dragon .tcg-art-fallback {
    background: radial-gradient(circle at 30% 25%, #f43f5e, #4338ca 52%, #1e1b4b 100%);
}

.tcg-el-dragon .tcg-typeline {
    background: linear-gradient(90deg, #e0e7ff, #fef3c7);
    border-color: #4338ca;
    color: #1e1b4b;
}

.tcg-el-dragon .tcg-rarity-stars {
    color: #d97706;
}

.tcg-el-dragon .tcg-ability-tag {
    background: #3730a3;
}

.tcg-el-dragon .tcg-lore-box,
.tcg-el-dragon .tcg-collector-footer,
.tcg-el-dragon .claim-widget {
    border-color: #a5b4fc;
}

.tcg-el-cosmic {
    --tcg-accent: #c026d3;
    --tcg-dark: #4a044e;
    --tcg-pill-bg: #fae8ff;
    --tcg-soft-border: #f0abfc;
    --tcg-stat-color: #a21caf;
    border-color: #4a044e;
    background: linear-gradient(135deg, #22d3ee 0%, #a855f7 28%, #f472b6 54%, #facc15 78%, #34d399 100%);
    box-shadow: 0 11px 0 rgba(74, 4, 78, 0.3), 0 24px 48px rgba(217, 70, 239, 0.28);
}

.tcg-el-cosmic .tcg-inner-face {
    background: linear-gradient(180deg, #ffffff 0%, #fdf4ff 55%, #ecfeff 100%);
    border-color: #c026d3;
}

.tcg-el-cosmic .tcg-nameplate {
    background: linear-gradient(90deg, #ecfeff, #fae8ff, #fef9c3);
    border-color: #c026d3;
}

.tcg-el-cosmic .tcg-stage-tag,
.tcg-el-cosmic .tcg-hp-label,
.tcg-el-cosmic .tcg-collector-footer {
    color: #86198f;
}

.tcg-el-cosmic .tcg-hp-val {
    color: #701a75;
}

.tcg-el-cosmic .tcg-energy-orb {
    background: radial-gradient(circle at 30% 30%, #fef08a, #d946ef 55%, #06b6d4);
    border-color: #4a044e;
    color: #fff;
}

.tcg-el-cosmic .tcg-art-bezel {
    background: linear-gradient(135deg, #67e8f9, #d946ef, #fde047, #4a044e);
    border-color: #4a044e;
}

.tcg-el-cosmic .tcg-art-fallback {
    background: linear-gradient(135deg, #06b6d4 0%, #9333ea 48%, #ec4899 82%, #f59e0b 100%);
}

.tcg-el-cosmic .tcg-typeline {
    background: linear-gradient(90deg, #cffafe, #fae8ff, #fef08a);
    border-color: #c026d3;
    color: #4a044e;
}

.tcg-el-cosmic .tcg-rarity-stars {
    color: #c026d3;
}

.tcg-el-cosmic .tcg-ability-tag {
    background: linear-gradient(90deg, #9333ea, #db2777);
}

.tcg-el-cosmic .tcg-lore-box,
.tcg-el-cosmic .tcg-collector-footer,
.tcg-el-cosmic .claim-widget {
    border-color: #f0abfc;
}

/* ==========================================================================
   Standalone Claim Action Panel (Off the Card) & My Collected Cards Binder
   ========================================================================== */

.claim-action-panel {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    border-width: 2.5px;
    box-shadow: var(--shadow-sm);
}

.claim-widget-standalone {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.card-utility-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    padding-top: 0.85rem;
    border-top: 2px dashed var(--border);
}

.card-utility-actions .btn {
    min-width: 0;
    padding: 0.5rem 0.65rem;
    font-size: 0.85rem;
}

@media (max-width: 340px) {
    .card-utility-actions {
        grid-template-columns: 1fr;
    }
}

.progress-cta-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}

@media (min-width: 440px) {
    .progress-cta-row {
        grid-template-columns: 1fr 1fr;
    }
}

.collection-page {
    max-width: 1120px;
}

.collection-hero {
    padding: 1.55rem;
    border: 2.5px solid var(--border-strong);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.collection-hero-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.collection-hero-top h1 {
    margin-top: 0.55rem;
    font-size: clamp(1.7rem, 3.4vw, 2.3rem);
}

.collection-stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding-top: 0.9rem;
    border-top: 2px dashed var(--border);
}

.collection-stat {
    background: var(--surface-alt);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 0.75rem 0.65rem;
    text-align: center;
}

.collection-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--ink);
    line-height: 1.1;
}

.collection-stat span {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-muted);
}

.collection-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-pill {
    appearance: none;
    background: #ffffff;
    border: 2px solid var(--border-strong);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-family: var(--font-display);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.filter-pill:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
}

.filter-pill.is-active {
    background: var(--primary);
    border-color: var(--primary-lip);
    color: #ffffff;
    box-shadow: 0 3px 0 var(--primary-lip);
}

.binder-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    align-items: start;
}

@media (min-width: 720px) {
    .binder-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1040px) {
    .binder-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.binder-item {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.binder-card {
    animation: none;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.binder-card:hover {
    transform: translateY(-5px);
}

.binder-card .collectible-title {
    font-size: 1.28rem;
}

.binder-card .collectible-desc {
    font-size: 0.9rem;
}

.binder-item-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 0.5rem 0.75rem;
}

.binder-claimed-date {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-muted);
}

.binder-item-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* ==========================================================================
   PWA Install Button, Guide Modal & Window Controls Overlay Title Bar
   ========================================================================== */

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.pwa-titlebar-actions {
    display: none;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    overflow: visible;
}

.pwa-install-btn {
    background: var(--sunny-soft);
    border-color: #fcd34d;
    color: var(--ink);
    box-shadow: 0 3px 0 #f59e0b;
}

.pwa-install-btn:hover {
    background: var(--sunny);
    border-color: var(--ink);
    box-shadow: 0 4px 0 var(--ink);
}

.pwa-install-btn.is-install-ready {
    animation: claimPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pwa-install-guide {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.pwa-steps-list {
    margin: 0;
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.pwa-relocated-hidden {
    display: none !important;
}

/* Installed PWA Mode (Standalone & Window Controls Overlay) */
html.is-pwa-installed body.creator-shell .pwa-titlebar-actions {
    display: inline-flex;
}

html.is-pwa-installed body.creator-shell .titlebar-control-btn {
    height: 26px;
    font-size: 0.78rem;
    line-height: 1;
    padding: 0 0.68rem;
    border-width: 1.5px;
    box-shadow: none;
    width: auto !important;
    flex-shrink: 0;
    transform: none !important;
}

html.is-pwa-installed body.creator-shell .titlebar-control-btn .material-symbols-rounded {
    font-size: 1rem;
}

/* Native Desktop Window Controls Overlay (WCO) Title Bar */
html.is-pwa-wco body.creator-shell {
    padding-top: env(titlebar-area-height, 33px);
}

html.is-pwa-wco body.creator-shell .site-header {
    position: fixed;
    top: env(titlebar-area-y, 0px);
    left: 0;
    right: 0;
    height: env(titlebar-area-height, 33px);
    min-height: 0;
    box-sizing: border-box;
    padding-left: env(titlebar-area-x, 0px);
    padding-right: calc(100vw - env(titlebar-area-x, 0px) - env(titlebar-area-width, 100vw));
    background: #7c3aed;
    color: #ffffff;
    border-bottom: none;
    -webkit-app-region: drag;
    app-region: drag;
    z-index: 90;
    overflow: hidden;
}

html.is-pwa-wco body.creator-shell .header-inner {
    max-width: none;
    height: 100%;
    padding: 0 0.55rem;
    justify-content: flex-start;
    gap: 0.5rem;
}

html.is-pwa-wco body.creator-shell .header-left {
    gap: 0.45rem;
    flex-shrink: 0;
}

html.is-pwa-wco body.creator-shell .brand {
    font-size: 0.88rem;
    gap: 0.35rem;
    line-height: 1;
    color: #ffffff;
    -webkit-app-region: no-drag;
    app-region: no-drag;
}

html.is-pwa-wco body.creator-shell .brand-mark {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    font-size: 0.68rem;
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    box-shadow: none;
    transform: none;
}

html.is-pwa-wco body.creator-shell .header-dashboard-link {
    display: inline-flex;
    align-items: center;
    height: 23px;
    padding: 0 0.58rem;
    font-size: 0.74rem;
    line-height: 1;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

html.is-pwa-wco body.creator-shell .header-dashboard-link:hover {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

html.is-pwa-wco body.creator-shell .titlebar-control-btn {
    height: 23px;
    font-size: 0.73rem;
    padding: 0 0.58rem;
    gap: 0.28rem;
}

html.is-pwa-wco body.creator-shell .titlebar-control-btn.btn-primary {
    background: var(--sunny);
    color: var(--ink);
    border-color: var(--ink);
}

html.is-pwa-wco body.creator-shell .titlebar-control-btn.btn-primary:hover {
    background: #ffd166;
}

html.is-pwa-wco body.creator-shell .titlebar-control-btn.btn-secondary,
html.is-pwa-wco body.creator-shell .titlebar-control-btn.btn-ghost {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.32);
}

html.is-pwa-wco body.creator-shell .titlebar-control-btn.btn-secondary:hover,
html.is-pwa-wco body.creator-shell .titlebar-control-btn.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.26);
}

html.is-pwa-wco body.creator-shell .titlebar-control-btn .material-symbols-rounded {
    font-size: 0.92rem;
}

html.is-pwa-wco body.creator-shell .pwa-titlebar-actions,
html.is-pwa-wco body.creator-shell .site-nav,
html.is-pwa-wco body.creator-shell .site-header a,
html.is-pwa-wco body.creator-shell .site-header button {
    -webkit-app-region: no-drag;
    app-region: no-drag;
}

html.is-pwa-wco body.creator-shell .site-nav {
    margin-left: auto;
    gap: 0.35rem;
}

html.is-pwa-wco body.creator-shell .site-nav .btn-sm,
html.is-pwa-wco body.creator-shell .site-nav .nav-link {
    height: 23px;
    font-size: 0.73rem;
    line-height: 1;
    padding: 0 0.55rem;
    box-shadow: none;
    border-width: 1.5px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.28);
}

html.is-pwa-wco body.creator-shell .site-nav .btn-sm:hover,
html.is-pwa-wco body.creator-shell .site-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.26);
    color: #ffffff;
}

html.is-pwa-wco body.creator-shell .nav-user {
    height: 23px;
    padding: 0 0.55rem;
    font-size: 0.73rem;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.28);
}

html.is-pwa-wco body.creator-shell .nav-user:hover {
    background: rgba(255, 255, 255, 0.26);
    color: #ffffff;
}

@media (max-width: 720px) {
    .pwa-install-btn span:last-child {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   DESIGN 3: Retro Arcade (Handheld Quest Cartridge)
   -------------------------------------------------------------------------- */

.card-design-arcade {
    background: #18123b;
    border: 3px solid #09061a;
    border-radius: 26px;
    color: #f8fafc;
    box-shadow: 0 11px 0 rgba(9, 6, 26, 0.42), 0 24px 48px rgba(6, 182, 212, 0.24);
}

.arcade-stripe-bar {
    height: 11px;
    background: repeating-linear-gradient(-55deg,
            #22d3ee,
            #22d3ee 12px,
            #f43f5e 12px,
            #f43f5e 24px,
            #facc15 24px,
            #facc15 36px);
}

.arcade-top-bar {
    padding: 0.85rem 1.1rem 0.7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.arcade-quest-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #22d3ee;
    min-width: 0;
}

.arcade-quest-tag span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.arcade-score-lcd {
    background: #09061a;
    border: 2px solid #22d3ee;
    border-radius: 12px;
    padding: 0.24rem 0.72rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.28);
}

.arcade-score-lcd span {
    font-size: 0.66rem;
    font-weight: 700;
    color: #94a3b8;
}

.arcade-score-lcd strong {
    font-size: 0.96rem;
    color: #facc15;
}

.arcade-screen-bezel {
    margin: 0 1rem;
    padding: 0.55rem 0.65rem 0.65rem;
    background: #271f5a;
    border: 2.5px solid #4338ca;
    border-radius: 18px;
    box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.45);
}

.arcade-bezel-dots {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
}

.arcade-bezel-dots span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #f43f5e;
}

.arcade-bezel-dots span:nth-child(2) {
    background: #facc15;
}

.arcade-bezel-dots small {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    color: #a5b4fc;
}

.arcade-media {
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    border: 2px solid #09061a;
}

.arcade-art-fallback {
    background: linear-gradient(135deg, #0f172a 0%, #312e81 45%, #06b6d4 100%);
}

.arcade-body {
    margin: 0.9rem 1rem 1rem;
    padding: 1.15rem;
    border-radius: 18px;
    background: #ffffff;
    color: var(--ink);
    border: 2.5px solid #22d3ee;
}

.arcade-mode-chip {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    background: #18123b;
    color: #facc15;
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
}

.arcade-finds-chip {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    color: #0e7490;
}

.arcade-title {
    color: #18123b;
}

.arcade-footer-strip {
    margin-top: 1rem;
    padding-top: 0.55rem;
    border-top: 2px dashed #cbd5e1;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    color: #64748b;
}

/* --------------------------------------------------------------------------
   Homepage 3-Card-Design Showcase Section
   -------------------------------------------------------------------------- */

.design-showcase-section {
    padding-top: 1.25rem;
}

.section-subheading {
    text-align: center;
    max-width: 620px;
    margin: -1.35rem auto 2.25rem;
    font-weight: 600;
}

.design-showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    align-items: stretch;
}

@media (min-width: 900px) {
    .design-showcase-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.mini-preview-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    height: 100%;
}

.mini-card-demo {
    animation: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mini-card-demo .tcg-inner-face,
.mini-card-demo .collectible-body,
.mini-card-demo .tcg-lore-box {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mini-card-demo:hover {
    transform: translateY(-6px) rotate(-0.6deg);
}

.mini-card-demo .collectible-media {
    aspect-ratio: 16 / 10;
}

.mini-card-demo .arcade-media {
    aspect-ratio: 4 / 3;
}

.mini-card-demo .collectible-title {
    font-size: 1.22rem;
}

.mini-card-demo .collectible-desc {
    font-size: 0.88rem;
}

.mini-preview-caption {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.mini-preview-caption strong {
    font-family: var(--font-display);
    font-size: 1.08rem;
    color: var(--ink);
}

.mini-preview-caption span {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-muted);
}