/*
 * GAM Design System — CSS Custom Properties + Shared Primitives
 * game-account-manager plugin
 *
 * Sections:
 *  1. Color tokens (light + dark)
 *  2. Typography scale
 *  3. Spacing + layout
 *  4. Shared components: card, btn, badge, stat, input, table, empty-state,
 *     skeleton, section-title, toast, hero, pagination, chip, avatar, progress
 *  5. Animation utilities
 *  6. Responsive utilities
 */

/* ============================================================
   1. COLOR TOKENS
   ============================================================ */

/* Light theme — default */
:root,
.gam-force-light {
    /* Surfaces */
    --gam-bg:           #eef3f8;   /* page background */
    --gam-surface:      #ffffff;   /* card / widget */
    --gam-surface-2:    #f8fafc;   /* elevated surface */
    --gam-surface-3:    #eef2f7;   /* subtle row fill */

    /* Text */
    --gam-text:         #0f172a;   /* primary text */
    --gam-text-2:       #475569;   /* secondary text */
    --gam-text-3:       #94a3b8;   /* placeholder / muted */
    --gam-text-inv:     #ffffff;   /* text on dark backgrounds */

    /* Border */
    --gam-border:       #e2e8f0;
    --gam-border-2:     #cbd5e1;   /* stronger border */

    /* Accent — clear blue primary action */
    --gam-accent:       #2563eb;
    --gam-accent-hover: #1d4ed8;
    --gam-accent-pale:  #dbeafe;   /* pale accent surface */
    --gam-accent-ring:  rgba(37,99,235,0.26);

    /* Semantic */
    --gam-success:      #10b981;
    --gam-success-pale: #d1fae5;
    --gam-warning:      #f59e0b;
    --gam-warning-pale: #fef3c7;
    --gam-error:        #ef4444;
    --gam-error-pale:   #fee2e2;
    --gam-info:         #06b6d4;
    --gam-info-pale:    #cffafe;

    /* MMORPG accent helpers */
    --gam-gold:         #d97706;
    --gam-gold-pale:    #fef3c7;
    --gam-rune:         #0f766e;
    --gam-rune-pale:    #ccfbf1;
    --gam-arcane:       #7c3aed;
    --gam-arcane-pale:  #ede9fe;

    /* Game element colors */
    --gam-fire:    #ef4444;  --gam-fire-pale:   #fee2e2;
    --gam-water:   #3b82f6;  --gam-water-pale:  #dbeafe;
    --gam-wind:    #10b981;  --gam-wind-pale:   #d1fae5;
    --gam-earth:   #92400e;  --gam-earth-pale:  #fef3c7;
    --gam-poison:  #7c3aed;  --gam-poison-pale: #ede9fe;
    --gam-holy:    #d97706;  --gam-holy-pale:   #fef9c3;
    --gam-dark:    #4338ca;  --gam-dark-pale:   #e0e7ff;
    --gam-ghost:   #64748b;  --gam-ghost-pale:  #f1f5f9;
    --gam-undead:  #15803d;  --gam-undead-pale: #dcfce7;

    /* Shadows */
    --gam-shadow-xs: 0 1px 2px rgba(0,0,0,0.06);
    --gam-shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --gam-shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --gam-shadow-lg: 0 8px 30px rgba(0,0,0,0.14);

    /* Radii */
    --gam-radius-xs: 4px;
    --gam-radius-sm: 8px;
    --gam-radius-md: 8px;
    --gam-radius-lg: 8px;
    --gam-radius-xl: 8px;
    --gam-radius-full: 9999px;

    /* Transitions */
    --gam-ease: 0.18s ease;
    --gam-ease-bounce: 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
    .gam-adaptive-theme {
        --gam-bg:           #0a0f1e;
        --gam-surface:      #141c2e;
        --gam-surface-2:    #1a243a;
        --gam-surface-3:    #1e2d47;
        --gam-text:         #f1f5f9;
        --gam-text-2:       #94a3b8;
        --gam-text-3:       #64748b;
        --gam-text-inv:     #0f172a;
        --gam-border:       #1e293b;
        --gam-border-2:     #334155;
        --gam-accent:       #60a5fa;
        --gam-accent-hover: #93c5fd;
        --gam-accent-pale:  rgba(96,165,250,0.15);
        --gam-accent-ring:  rgba(96,165,250,0.35);
        --gam-success:      #34d399;
        --gam-success-pale: rgba(52,211,153,0.12);
        --gam-warning:      #fbbf24;
        --gam-warning-pale: rgba(251,191,36,0.12);
        --gam-error:        #f87171;
        --gam-error-pale:   rgba(248,113,113,0.12);
        --gam-info:         #22d3ee;
        --gam-info-pale:    rgba(34,211,238,0.12);
        --gam-gold:         #fbbf24;
        --gam-gold-pale:    rgba(251,191,36,0.14);
        --gam-rune:         #2dd4bf;
        --gam-rune-pale:    rgba(45,212,191,0.13);
        --gam-arcane:       #a78bfa;
        --gam-arcane-pale:  rgba(167,139,250,0.13);
        --gam-fire:    #f87171;  --gam-fire-pale:   rgba(239,68,68,0.15);
        --gam-water:   #60a5fa;  --gam-water-pale:  rgba(59,130,246,0.15);
        --gam-wind:    #34d399;  --gam-wind-pale:   rgba(16,185,129,0.15);
        --gam-earth:   #d97706;  --gam-earth-pale:  rgba(146,64,14,0.2);
        --gam-poison:  #a78bfa;  --gam-poison-pale: rgba(124,58,237,0.15);
        --gam-holy:    #fbbf24;  --gam-holy-pale:   rgba(217,119,6,0.15);
        --gam-dark:    #818cf8;  --gam-dark-pale:   rgba(67,56,202,0.2);
        --gam-ghost:   #94a3b8;  --gam-ghost-pale:  rgba(100,116,139,0.2);
        --gam-undead:  #4ade80;  --gam-undead-pale: rgba(21,128,61,0.2);
        --gam-shadow-xs: 0 1px 3px rgba(0,0,0,0.4);
        --gam-shadow-sm: 0 2px 8px rgba(0,0,0,0.5);
        --gam-shadow-md: 0 4px 16px rgba(0,0,0,0.6);
        --gam-shadow-lg: 0 8px 30px rgba(0,0,0,0.7);
    }
}

/* Duplicate for .gam-force-dark (no media query needed) */
.gam-force-dark {
    --gam-bg:           #0a0f1e;
    --gam-surface:      #141c2e;
    --gam-surface-2:    #1a243a;
    --gam-surface-3:    #1e2d47;
    --gam-text:         #f1f5f9;
    --gam-text-2:       #94a3b8;
    --gam-text-3:       #64748b;
    --gam-text-inv:     #0f172a;
    --gam-border:       #1e293b;
    --gam-border-2:     #334155;
    --gam-accent:       #60a5fa;
    --gam-accent-hover: #93c5fd;
    --gam-accent-pale:  rgba(96,165,250,0.15);
    --gam-accent-ring:  rgba(96,165,250,0.35);
    --gam-success:      #34d399;
    --gam-success-pale: rgba(52,211,153,0.12);
    --gam-warning:      #fbbf24;
    --gam-warning-pale: rgba(251,191,36,0.12);
    --gam-error:        #f87171;
    --gam-error-pale:   rgba(248,113,113,0.12);
    --gam-info:         #22d3ee;
    --gam-info-pale:    rgba(34,211,238,0.12);
    --gam-gold:         #fbbf24;
    --gam-gold-pale:    rgba(251,191,36,0.14);
    --gam-rune:         #2dd4bf;
    --gam-rune-pale:    rgba(45,212,191,0.13);
    --gam-arcane:       #a78bfa;
    --gam-arcane-pale:  rgba(167,139,250,0.13);
    --gam-fire:    #f87171;  --gam-fire-pale:   rgba(239,68,68,0.15);
    --gam-water:   #60a5fa;  --gam-water-pale:  rgba(59,130,246,0.15);
    --gam-wind:    #34d399;  --gam-wind-pale:   rgba(16,185,129,0.15);
    --gam-earth:   #d97706;  --gam-earth-pale:  rgba(146,64,14,0.2);
    --gam-poison:  #a78bfa;  --gam-poison-pale: rgba(124,58,237,0.15);
    --gam-holy:    #fbbf24;  --gam-holy-pale:   rgba(217,119,6,0.15);
    --gam-dark:    #818cf8;  --gam-dark-pale:   rgba(67,56,202,0.2);
    --gam-ghost:   #94a3b8;  --gam-ghost-pale:  rgba(100,116,139,0.2);
    --gam-undead:  #4ade80;  --gam-undead-pale: rgba(21,128,61,0.2);
    --gam-shadow-xs: 0 1px 3px rgba(0,0,0,0.4);
    --gam-shadow-sm: 0 2px 8px rgba(0,0,0,0.5);
    --gam-shadow-md: 0 4px 16px rgba(0,0,0,0.6);
    --gam-shadow-lg: 0 8px 30px rgba(0,0,0,0.7);
}

/* ============================================================
   2. TYPOGRAPHY SCALE
   ============================================================ */
.gam-text-xs   { font-size: 0.75rem;  line-height: 1.4; }
.gam-text-sm   { font-size: 0.875rem; line-height: 1.5; }
.gam-text-base { font-size: 1rem;     line-height: 1.6; }
.gam-text-lg   { font-size: 1.125rem; line-height: 1.5; }
.gam-text-xl   { font-size: 1.25rem;  line-height: 1.4; }
.gam-text-2xl  { font-size: 1.5rem;   line-height: 1.3; }
.gam-text-3xl  { font-size: 1.875rem; line-height: 1.25; }
.gam-text-4xl  { font-size: 2.25rem;  line-height: 1.2; }

.gam-font-medium { font-weight: 500; }
.gam-font-semi   { font-weight: 600; }
.gam-font-bold   { font-weight: 700; }
.gam-font-black  { font-weight: 900; }

/* ============================================================
   3. SPACING + LAYOUT
   ============================================================ */
.gam-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.gam-wrapper {
    padding: 32px 0 60px;
}

.gam-adaptive-theme,
.gam-force-light,
.gam-force-dark {
    color: var(--gam-text);
}

.gam-adaptive-theme *,
.gam-force-light *,
.gam-force-dark * {
    box-sizing: border-box;
}

.gam-ui-shell {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.18)),
        var(--gam-bg);
    border: 1px solid var(--gam-border);
    border-radius: var(--gam-radius-lg);
    padding: 24px;
    box-shadow: var(--gam-shadow-sm);
}

.gam-layout-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.gam-panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.gam-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.gam-action-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gam-page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gam-rune);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.gam-page-title {
    color: var(--gam-text);
    font-size: 1.875rem;
    line-height: 1.2;
    font-weight: 800;
    margin: 0;
}

.gam-page-subtitle,
.gam-muted {
    color: var(--gam-text-2);
}

.gam-page-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 6px 0 0;
    max-width: 760px;
}

@media (max-width: 640px) {
    .gam-container { padding: 0 16px; }
    .gam-wrapper   { padding: 20px 0 40px; }
    .gam-ui-shell  { padding: 16px; }
    .gam-page-title { font-size: 1.45rem; }
    .gam-toolbar { align-items: stretch; }
    .gam-toolbar > * { min-width: 0; }
}

.gam-force-dark .gam-ui-shell,
.gam-force-dark.gam-ui-shell,
.gam-adaptive-theme.gam-force-dark .gam-ui-shell,
.gam-adaptive-theme.gam-force-dark.gam-ui-shell {
    background:
        linear-gradient(180deg, rgba(30,41,59,0.68), rgba(15,23,42,0.22)),
        var(--gam-bg);
}

@media (prefers-color-scheme: dark) {
    .gam-adaptive-theme .gam-ui-shell,
    .gam-adaptive-theme.gam-ui-shell {
        background:
            linear-gradient(180deg, rgba(30,41,59,0.68), rgba(15,23,42,0.22)),
            var(--gam-bg);
    }
}

/* ============================================================
   4a. CARD
   ============================================================ */
.gam-card {
    background: var(--gam-surface);
    border: 1px solid var(--gam-border);
    border-radius: var(--gam-radius-md);
    box-shadow: var(--gam-shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--gam-ease), transform var(--gam-ease);
}

.gam-card:hover { box-shadow: var(--gam-shadow-md); }

.gam-card--interactive:hover {
    transform: translateY(-2px);
}

.gam-card--compact .gam-card-body {
    padding: 16px;
}

.gam-card--elevated {
    box-shadow: var(--gam-shadow-md);
}

.gam-card-body {
    padding: 24px;
}

.gam-card-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--gam-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.gam-card-header-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gam-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gam-card-footer {
    padding: 12px 24px;
    border-top: 1px solid var(--gam-border);
    background: var(--gam-surface-2);
}

/* Accent-top cards — allows --gam-card-accent custom property override */
.gam-card--accent-top {
    border-top: 3px solid var(--gam-card-accent, var(--gam-accent));
}
.gam-card--accent-top.gam-card--fire    { border-top-color: var(--gam-fire); }
.gam-card--accent-top.gam-card--water   { border-top-color: var(--gam-water); }
.gam-card--accent-top.gam-card--success { border-top-color: var(--gam-success); }
.gam-card--accent-top.gam-card--warning { border-top-color: var(--gam-warning); }
.gam-card--accent-top.gam-card--error   { border-top-color: var(--gam-error); }

/* ============================================================
   4b. BUTTONS
   ============================================================ */
.gam-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: var(--gam-radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--gam-ease), color var(--gam-ease),
                border-color var(--gam-ease), box-shadow var(--gam-ease),
                transform var(--gam-ease);
    user-select: none;
}

.gam-btn:focus-visible {
    outline: 3px solid var(--gam-accent-ring);
    outline-offset: 2px;
}

.gam-btn:active { transform: translateY(1px); }

/* Primary */
.gam-btn--primary {
    background: var(--gam-accent);
    color: #fff;
    border-color: var(--gam-accent);
}
.gam-btn--primary:hover {
    background: var(--gam-accent-hover);
    border-color: var(--gam-accent-hover);
    box-shadow: 0 4px 14px var(--gam-accent-ring);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Secondary */
.gam-btn--secondary {
    background: transparent;
    color: var(--gam-accent);
    border-color: var(--gam-accent);
}
.gam-btn--secondary:hover {
    background: var(--gam-accent-pale);
    color: var(--gam-accent-hover);
    border-color: var(--gam-accent-hover);
    text-decoration: none;
    transform: translateY(-1px);
}

/* Ghost */
.gam-btn--ghost {
    background: transparent;
    color: var(--gam-text-2);
    border-color: var(--gam-border-2);
}
.gam-btn--ghost:hover {
    background: var(--gam-surface-3);
    color: var(--gam-text);
    border-color: var(--gam-border-2);
    text-decoration: none;
}

/* Danger */
.gam-btn--danger {
    background: var(--gam-error);
    color: #fff;
    border-color: var(--gam-error);
}
.gam-btn--danger:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Sizes */
.gam-btn--sm { padding: 6px 14px; font-size: 0.8rem; }
.gam-btn--lg { padding: 12px 28px; font-size: 1rem; border-radius: var(--gam-radius-md); }
.gam-btn--xl { padding: 14px 36px; font-size: 1.1rem; border-radius: var(--gam-radius-md); }

/* Icon-only */
.gam-btn--icon { padding: 8px; width: 36px; height: 36px; border-radius: var(--gam-radius-sm); }

/* Disabled state */
.gam-btn:disabled,
.gam-btn[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================================
   4c. BADGE / PILL
   ============================================================ */
.gam-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: var(--gam-radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.6;
}

/* Badge variants */
.gam-badge--default { background: var(--gam-surface-3); color: var(--gam-text-2); }
.gam-badge--accent  { background: var(--gam-accent-pale); color: var(--gam-accent); }
.gam-badge--success { background: var(--gam-success-pale); color: var(--gam-success); }
.gam-badge--warning { background: var(--gam-warning-pale); color: var(--gam-warning); }
.gam-badge--error   { background: var(--gam-error-pale); color: var(--gam-error); }
.gam-badge--info    { background: var(--gam-info-pale); color: var(--gam-info); }
.gam-badge--outline { background: transparent; border: 1.5px solid var(--gam-border-2); color: var(--gam-text-2); }

/* Element-specific badges */
.gam-badge--fire    { background: var(--gam-fire-pale);   color: var(--gam-fire); }
.gam-badge--water   { background: var(--gam-water-pale);  color: var(--gam-water); }
.gam-badge--wind    { background: var(--gam-wind-pale);   color: var(--gam-wind); }
.gam-badge--earth   { background: var(--gam-earth-pale);  color: var(--gam-earth); }
.gam-badge--poison  { background: var(--gam-poison-pale); color: var(--gam-poison); }
.gam-badge--holy    { background: var(--gam-holy-pale);   color: var(--gam-holy); }
.gam-badge--dark    { background: var(--gam-dark-pale);   color: var(--gam-dark); }
.gam-badge--ghost   { background: var(--gam-ghost-pale);  color: var(--gam-ghost); }
.gam-badge--undead  { background: var(--gam-undead-pale); color: var(--gam-undead); }

/* ============================================================
   4d. STAT TILE
   ============================================================ */
.gam-stat {
    background: var(--gam-surface);
    border: 1px solid var(--gam-border);
    border-radius: var(--gam-radius-md);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: var(--gam-shadow-xs);
    transition: box-shadow var(--gam-ease), transform var(--gam-ease);
    position: relative;
    overflow: hidden;
}

.gam-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gam-accent);
}

.gam-stat--fire::before    { background: var(--gam-fire); }
.gam-stat--water::before   { background: var(--gam-water); }
.gam-stat--success::before { background: var(--gam-success); }
.gam-stat--warning::before { background: var(--gam-warning); }
.gam-stat--error::before   { background: var(--gam-error); }

.gam-stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--gam-text-3);
}

.gam-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gam-text);
    line-height: 1.2;
}

.gam-stat-sub {
    font-size: 0.8rem;
    color: var(--gam-text-3);
}

.gam-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 12px;
}

@media (max-width: 480px) {
    .gam-stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Stat grid — card flex layout aligns buttons at the bottom */
.gam-stat-grid .gam-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.gam-stat-grid .gam-card .gam-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.gam-card-actions {
    margin-top: auto;
    padding-top: 16px;
}

/* ============================================================
   Referral How-It-Works section
   ============================================================ */
.gam-howto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin-top: 10px;
}
.gam-howto-step {
    text-align: center;
    padding: 18px 12px;
    background: var(--gam-surface-2);
    border-radius: 10px;
    border: 1px solid var(--gam-border);
}
.gam-howto-icon { font-size: 30px; margin-bottom: 8px; }
.gam-howto-title { font-weight: 700; margin-bottom: 5px; font-size: 14px; color: var(--gam-text); }
.gam-howto-desc  { font-size: 13px; color: var(--gam-text-3); }
.gam-howto-footer {
    margin-top: 14px;
    font-size: 13px;
    color: var(--gam-text-3);
    text-align: center;
    border-top: 1px solid var(--gam-border);
    padding-top: 12px;
}

/* ============================================================
   4e. FORM INPUTS
   ============================================================ */
.gam-input,
.gam-select,
.gam-textarea {
    display: block;
    width: 100%;
    padding: 9px 14px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--gam-text);
    background: var(--gam-surface);
    border: 1.5px solid var(--gam-border-2);
    border-radius: var(--gam-radius-sm);
    transition: border-color var(--gam-ease), box-shadow var(--gam-ease);
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.gam-input::placeholder,
.gam-textarea::placeholder { color: var(--gam-text-3); }

.gam-input:hover,
.gam-select:hover,
.gam-textarea:hover {
    border-color: var(--gam-accent);
}

.gam-input:focus,
.gam-select:focus,
.gam-textarea:focus {
    outline: none;
    border-color: var(--gam-accent);
    box-shadow: 0 0 0 3px var(--gam-accent-ring);
}

.gam-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    padding-right: 36px;
    cursor: pointer;
}

.gam-textarea { resize: vertical; min-height: 100px; }

/* Input group */
.gam-input-group {
    display: flex;
    align-items: stretch;
}
.gam-input-group .gam-input {
    border-radius: var(--gam-radius-sm) 0 0 var(--gam-radius-sm);
    flex: 1;
}
.gam-input-group .gam-btn {
    border-radius: 0 var(--gam-radius-sm) var(--gam-radius-sm) 0;
    border-left: none;
}

/* Label */
.gam-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gam-text-2);
    margin-bottom: 5px;
}

.gam-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.gam-field-error {
    font-size: 0.8rem;
    color: var(--gam-error);
    margin-top: 2px;
}

/* ============================================================
   4f. TABLE
   ============================================================ */
.gam-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--gam-radius-md);
    border: 1px solid var(--gam-border);
    box-shadow: var(--gam-shadow-sm);
    background: var(--gam-surface);
}

.gam-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    color: var(--gam-text);
}

.gam-table thead tr {
    background: var(--gam-surface-2);
}

.gam-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--gam-text-3);
    border-bottom: 1px solid var(--gam-border);
    white-space: nowrap;
}

.gam-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gam-border);
    vertical-align: middle;
}

.gam-table tbody tr:last-child td { border-bottom: none; }

.gam-table tbody tr {
    transition: background var(--gam-ease);
}

.gam-table--hover tbody tr:hover {
    background: var(--gam-surface-2);
}

.gam-table--striped tbody tr:nth-child(even) {
    background: var(--gam-surface-3);
}

/* Mobile card stack for tables */
@media (max-width: 640px) {
    .gam-table--mobile-stack thead { display: none; }

    .gam-table--mobile-stack tbody tr {
        display: block;
        background: var(--gam-surface);
        border: 1px solid var(--gam-border);
        border-radius: var(--gam-radius-md);
        margin-bottom: 10px;
        padding: 12px;
        box-shadow: var(--gam-shadow-xs);
    }

    .gam-table--mobile-stack td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 4px;
        border-bottom: 1px solid var(--gam-border);
        font-size: 0.875rem;
    }

    .gam-table--mobile-stack td:last-child { border-bottom: none; }

    .gam-table--mobile-stack td::before {
        content: attr(data-label);
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0;
        color: var(--gam-text-3);
        flex-shrink: 0;
        margin-right: 8px;
    }
}

/* ============================================================
   4g. EMPTY STATE
   ============================================================ */
.gam-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    gap: 12px;
    color: var(--gam-text-3);
}

.gam-empty-icon {
    font-size: 3rem;
    line-height: 1;
    opacity: 0.5;
}

.gam-empty-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gam-text-2);
    margin: 0;
}

.gam-empty-text {
    font-size: 0.875rem;
    color: var(--gam-text-3);
    max-width: 320px;
    margin: 0;
}

/* ============================================================
   4h. SKELETON LOADING
   ============================================================ */
@keyframes gam-shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position: 600px 0; }
}

.gam-skeleton {
    background: linear-gradient(90deg,
        var(--gam-surface-3) 25%,
        var(--gam-surface-2) 50%,
        var(--gam-surface-3) 75%
    );
    background-size: 600px 100%;
    animation: gam-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--gam-radius-xs);
}

.gam-skeleton-line {
    height: 14px;
    margin-bottom: 10px;
    border-radius: var(--gam-radius-full);
}

.gam-skeleton-line--sm  { height: 10px; width: 60%; }
.gam-skeleton-line--lg  { height: 20px; }
.gam-skeleton-block     { height: 100px; border-radius: var(--gam-radius-md); }

/* ============================================================
   4i. SECTION TITLE
   ============================================================ */
.gam-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--gam-text-3);
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gam-border);
}

.gam-section-title-icon {
    font-size: 1rem;
}

/* ============================================================
   4j. TOAST / ALERT
   ============================================================ */
.gam-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--gam-radius-md);
    border: 1px solid transparent;
    font-size: 0.9rem;
    line-height: 1.5;
}

.gam-alert--success { background: var(--gam-success-pale); border-color: var(--gam-success); color: var(--gam-success); }
.gam-alert--warning { background: var(--gam-warning-pale); border-color: var(--gam-warning); color: var(--gam-warning); }
.gam-alert--error   { background: var(--gam-error-pale);   border-color: var(--gam-error);   color: var(--gam-error); }
.gam-alert--info    { background: var(--gam-info-pale);    border-color: var(--gam-info);    color: var(--gam-info); }

.gam-alert-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.gam-alert-body { flex: 1; }
.gam-alert-title { font-weight: 700; margin: 0 0 2px; }
.gam-alert-text  { margin: 0; color: inherit; opacity: 0.9; }

/* Toast container */
#gam-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 360px;
    width: calc(100vw - 40px);
}

.gam-toast {
    background: var(--gam-surface);
    border: 1px solid var(--gam-border);
    border-radius: var(--gam-radius-md);
    padding: 14px 18px;
    box-shadow: var(--gam-shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    color: var(--gam-text);
    pointer-events: all;
    animation: gam-toast-in 0.25s ease;
    border-left: 4px solid var(--gam-accent);
}

.gam-toast--success { border-left-color: var(--gam-success); }
.gam-toast--warning { border-left-color: var(--gam-warning); }
.gam-toast--error   { border-left-color: var(--gam-error); }

@keyframes gam-toast-in {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes gam-toast-out {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(40px); }
}

/* ============================================================
   4k. HERO SECTION (shared base)
   ============================================================ */
.gam-hero {
    background: linear-gradient(135deg, var(--gam-accent) 0%, var(--gam-accent-hover) 100%);
    border-radius: var(--gam-radius-lg);
    padding: 40px;
    margin-bottom: 28px;
    box-shadow: var(--gam-shadow-lg);
    position: relative;
    overflow: hidden;
    color: #fff;
}

/* Subtle grid overlay */
.gam-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3e%3crect width='40' height='40' fill='none'/%3e%3cpath d='M0 0h40v40H0z' fill='none'/%3e%3cpath d='M40 0H0v40' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3e%3c/svg%3e");
    background-size: 40px 40px;
    pointer-events: none;
}

/* Decorative glow */
.gam-hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 42%;
    height: 100%;
    background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.16) 52%, transparent 100%);
    transform: skewX(-12deg) translateX(24%);
    pointer-events: none;
}

.gam-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 28px;
}

.gam-hero-image-wrap {
    flex-shrink: 0;
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.22);
    border-radius: var(--gam-radius-md);
    padding: 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gam-hero-body { flex: 1; min-width: 0; }

.gam-hero-eyebrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.gam-hero-title {
    font-size: 2.25rem;
    font-weight: 900;
    color: #fff !important;
    margin: 0 0 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    line-height: 1.15;
    overflow-wrap: break-word;
}

.gam-hero-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

.gam-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}

.gam-hero-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.85);
}

/* Hero color presets */
.gam-hero--indigo  { background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%); }
.gam-hero--blue    { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.gam-hero--green   { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.gam-hero--red     { background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%); }
.gam-hero--amber, .gam-hero--orange { background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%); }
.gam-hero--purple  { background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%); }
.gam-hero--cyan    { background: linear-gradient(135deg, #06b6d4 0%, #0e7490 100%); }
.gam-hero--slate   { background: linear-gradient(135deg, #475569 0%, #1e293b 100%); }
.gam-hero--dark    { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); }
.gam-hero--pink    { background: linear-gradient(135deg, #ec4899 0%, #be185d 100%); }

/* Ensure outline badges remain readable on coloured hero backgrounds */
[class*="gam-hero--"] .gam-badge--outline {
    color: #fff !important;
    border-color: rgba(255,255,255,0.55) !important;
    background: rgba(255,255,255,0.08);
}

/* Element-based hero colors */
.gam-hero--fire    { background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%); }
.gam-hero--water   { background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%); }
.gam-hero--wind    { background: linear-gradient(135deg, #059669 0%, #065f46 100%); }
.gam-hero--earth   { background: linear-gradient(135deg, #92400e 0%, #78350f 100%); }
.gam-hero--poison  { background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%); }
.gam-hero--holy    { background: linear-gradient(135deg, #d97706 0%, #92400e 100%); }
.gam-hero--undead  { background: linear-gradient(135deg, #15803d 0%, #14532d 100%); }
.gam-hero--ghost   { background: linear-gradient(135deg, #475569 0%, #334155 100%); }
.gam-hero--dark-el { background: linear-gradient(135deg, #4338ca 0%, #312e81 100%); }

/* MVP stripe overlay */
.gam-hero--mvp::before {
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 8px,
        rgba(251,191,36,0.08) 8px,
        rgba(251,191,36,0.08) 16px
    );
}

/* Breadcrumb nav inside hero */
.gam-hero-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.gam-hero-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    padding: 3px 10px;
    border-radius: var(--gam-radius-full);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    transition: background var(--gam-ease), color var(--gam-ease);
}

.gam-hero-breadcrumb a:hover {
    background: rgba(255,255,255,0.22);
    color: #fff;
    text-decoration: none;
}

.gam-hero-breadcrumb-sep {
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
}

.gam-hero-breadcrumb-current {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
}

/* Mobile hero */
@media (max-width: 640px) {
    .gam-hero { padding: 24px 20px; }
    .gam-hero-title { font-size: 1.6rem; }
    .gam-hero-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
    .gam-hero-image-wrap { padding: 12px; }
}

/* ============================================================
   4l. PAGINATION
   ============================================================ */
.gam-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 24px 0 8px;
    flex-wrap: wrap;
}

.gam-pagination a,
.gam-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--gam-radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--gam-ease), color var(--gam-ease);
    border: 1.5px solid var(--gam-border-2);
    color: var(--gam-text-2);
    background: var(--gam-surface);
}

.gam-pagination a:hover {
    background: var(--gam-accent-pale);
    color: var(--gam-accent);
    border-color: var(--gam-accent);
    text-decoration: none;
}

.gam-pagination .current,
.gam-pagination [aria-current="page"] {
    background: var(--gam-accent);
    color: #fff;
    border-color: var(--gam-accent);
    cursor: default;
}

.gam-pagination .dots {
    border: none;
    background: transparent;
    color: var(--gam-text-3);
    cursor: default;
}

/* ============================================================
   4m. CHIP FILTERS
   ============================================================ */
.gam-chips-wrap {
    position: relative;
    overflow: hidden;
}
.gam-chips-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 48px;
    background: linear-gradient(to right, transparent, var(--gam-bg));
    pointer-events: none;
    z-index: 1;
}
.gam-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 0;
    overflow-x: auto;
    padding-bottom: 4px;
    padding-right: 40px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.gam-chips::-webkit-scrollbar { display: none; }

.gam-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: var(--gam-radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid var(--gam-border-2);
    background: var(--gam-surface);
    color: var(--gam-text-2);
    transition: background var(--gam-ease), color var(--gam-ease),
                border-color var(--gam-ease), transform var(--gam-ease),
                box-shadow var(--gam-ease);
    user-select: none;
    white-space: nowrap;
}

.gam-chip:hover {
    background: var(--gam-accent-pale);
    color: var(--gam-accent);
    border-color: var(--gam-accent);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px var(--gam-accent-ring);
    text-decoration: none;
}

.gam-chip.active,
.gam-chip[aria-pressed="true"] {
    background: var(--gam-accent);
    color: #fff;
    border-color: var(--gam-accent);
    box-shadow: 0 3px 10px var(--gam-accent-ring);
}

/* Element chip colors */
.gam-chip--fire:hover,   .gam-chip--fire.active   { background: var(--gam-fire);   border-color: var(--gam-fire);   box-shadow: 0 3px 10px rgba(239,68,68,0.3); }
.gam-chip--water:hover,  .gam-chip--water.active  { background: var(--gam-water);  border-color: var(--gam-water);  box-shadow: 0 3px 10px rgba(59,130,246,0.3); }
.gam-chip--wind:hover,   .gam-chip--wind.active   { background: var(--gam-wind);   border-color: var(--gam-wind);   box-shadow: 0 3px 10px rgba(16,185,129,0.3); }
.gam-chip--earth:hover,  .gam-chip--earth.active  { background: var(--gam-earth);  border-color: var(--gam-earth);  }
.gam-chip--poison:hover, .gam-chip--poison.active { background: var(--gam-poison); border-color: var(--gam-poison); }
.gam-chip--holy:hover,   .gam-chip--holy.active   { background: var(--gam-holy);   border-color: var(--gam-holy);   }
.gam-chip--undead:hover, .gam-chip--undead.active { background: var(--gam-undead); border-color: var(--gam-undead); }
.gam-chip--ghost:hover,  .gam-chip--ghost.active  { background: var(--gam-ghost);  border-color: var(--gam-ghost);  }

/* Item-type chip colors */
.gam-chip--weapon:hover,  .gam-chip--weapon.active  { background: var(--gam-fire);   border-color: var(--gam-fire);  }
.gam-chip--armor:hover,   .gam-chip--armor.active   { background: var(--gam-water);  border-color: var(--gam-water); }
.gam-chip--healing:hover, .gam-chip--healing.active { background: var(--gam-wind);   border-color: var(--gam-wind);  }
.gam-chip--card:hover,    .gam-chip--card.active    { background: var(--gam-holy);   border-color: var(--gam-holy);  }
.gam-chip--ammo:hover,    .gam-chip--ammo.active    { background: var(--gam-info);   border-color: var(--gam-info);  }
.gam-chip--usable:hover,  .gam-chip--usable.active  { background: var(--gam-poison); border-color: var(--gam-poison); }

.gam-chip--fire:hover, .gam-chip--fire.active,
.gam-chip--water:hover, .gam-chip--water.active,
.gam-chip--wind:hover, .gam-chip--wind.active,
.gam-chip--weapon:hover, .gam-chip--weapon.active,
.gam-chip--armor:hover, .gam-chip--armor.active,
.gam-chip--healing:hover, .gam-chip--healing.active,
.gam-chip--card:hover, .gam-chip--card.active,
.gam-chip--ammo:hover, .gam-chip--ammo.active,
.gam-chip--usable:hover, .gam-chip--usable.active { color: #fff; }

/* ============================================================
   4n. AVATAR
   ============================================================ */
.gam-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--gam-radius-full);
    background: var(--gam-accent-pale);
    border: 2px solid var(--gam-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--gam-accent);
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}

.gam-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gam-avatar--sm  { width: 28px; height: 28px; font-size: 0.75rem; }
.gam-avatar--lg  { width: 56px; height: 56px; font-size: 1.3rem; }
.gam-avatar--xl  { width: 72px; height: 72px; font-size: 1.6rem; }

/* ============================================================
   4o. PROGRESS BAR
   ============================================================ */
.gam-progress {
    width: 100%;
    height: 6px;
    background: var(--gam-surface-3);
    border-radius: var(--gam-radius-full);
    overflow: hidden;
}

.gam-progress-fill {
    height: 100%;
    border-radius: var(--gam-radius-full);
    background: var(--gam-accent);
    transition: width 0.4s ease;
}

.gam-progress-fill--success { background: var(--gam-success); }
.gam-progress-fill--warning { background: var(--gam-warning); }
.gam-progress-fill--error   { background: var(--gam-error); }
.gam-progress-fill--fire    { background: var(--gam-fire); }

/* ============================================================
   5. ANIMATION UTILITIES
   ============================================================ */
@keyframes gam-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes gam-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(1.4); }
}

.gam-fade-in { animation: gam-fade-in 0.3s ease forwards; }

/* Live-pulse dot (e.g. server online status) */
.gam-pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gam-success);
    animation: gam-pulse-dot 1.8s ease-in-out infinite;
}

.gam-pulse-dot--offline { background: var(--gam-error); }
.gam-pulse-dot--warning { background: var(--gam-warning); }

/* ============================================================
   6. RESPONSIVE UTILITIES
   ============================================================ */
.gam-show-mobile  { display: none; }

@media (max-width: 640px) {
    .gam-hide-mobile { display: none !important; }
    .gam-show-mobile { display: revert; }
}

@media (max-width: 768px) {
    .gam-hide-tablet { display: none !important; }
}

/* Text alignment helpers */
.gam-text-center { text-align: center; }
.gam-text-right  { text-align: right; }

/* Flex helpers */
.gam-flex       { display: flex; }
.gam-flex-center { display: flex; align-items: center; justify-content: center; }
.gam-flex-between { display: flex; align-items: center; justify-content: space-between; }
.gam-gap-sm  { gap: 8px; }
.gam-gap-md  { gap: 16px; }
.gam-gap-lg  { gap: 24px; }

/* Truncate text */
.gam-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* Divider */
.gam-divider {
    border: none;
    border-top: 1px solid var(--gam-border);
    margin: 20px 0;
}

/* ============================================================
   END OF DESIGN SYSTEM
   ============================================================ */

/* ============================================================
   ITEM / MONSTER LIST PAGE EXTRAS
   ============================================================ */

/* Advanced filter grid — responsive 2-column on ≥480px */
.gam-adv-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 480px) {
    .gam-adv-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
    .gam-adv-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* Card header row with title + action */
.gam-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--gam-border);
}
.gam-card-header-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gam-text);
}

/* Item cell inside table (thumbnail + name) */
.gam-item-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}
.gam-item-cell .gam-item-thumb img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: var(--gam-radius-xs);
    flex-shrink: 0;
}
.gam-item-cell .gam-item-name {
    color: var(--gam-accent);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--gam-ease);
}
.gam-item-cell .gam-item-name:hover {
    color: var(--gam-accent-hover);
    text-decoration: underline;
}

/* Item / monster list wrapper spacing */
.gam-item-list,
.gam-monster-list {
    max-width: 100%;
}

/* MVP row highlight */
.gam-row--mvp {
    background: linear-gradient(to right, rgba(245,158,11,0.08), transparent) !important;
}
.gam-row--mvp:hover {
    background: linear-gradient(to right, rgba(245,158,11,0.15), rgba(245,158,11,0.05)) !important;
}

/* Dashboard quick actions grid */
.gam-quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.gam-quick-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--gam-text);
    background: var(--gam-surface);
    border: 1px solid var(--gam-border);
    text-decoration: none;
    border-radius: var(--gam-radius-sm);
    font-weight: 500;
    font-size: 0.875rem;
    transition: background var(--gam-ease), border-color var(--gam-ease), box-shadow var(--gam-ease);
}
.gam-quick-action-btn:hover {
    background: var(--gam-surface-2);
    border-color: var(--gam-border-2);
    box-shadow: var(--gam-shadow-xs);
    color: var(--gam-text);
    text-decoration: none;
}
.gam-qa-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}
