:root{--font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;--font-display: "Poppins", "Inter", sans-serif;--font-mono: "JetBrains Mono", "Fira Code", "Consolas", monospace;--text-xs: .75rem;--text-sm: .875rem;--text-base: 1rem;--text-lg: 1.125rem;--text-xl: 1.25rem;--text-2xl: 1.563rem;--text-3xl: 1.953rem;--text-4xl: 2.441rem;--text-5xl: 3.052rem;--font-normal: 400;--font-medium: 500;--font-semibold: 600;--font-bold: 700;--font-extrabold: 800;--leading-none: 1;--leading-tight: 1.25;--leading-snug: 1.375;--leading-normal: 1.5;--leading-relaxed: 1.75;--leading-loose: 2;--tracking-tighter: -.05em;--tracking-tight: -.025em;--tracking-normal: 0;--tracking-wide: .025em;--tracking-wider: .05em;--tracking-widest: .1em;--color-bg: #0A0E14;--color-bg-alt: #0E1117;--color-surface: #151922;--color-surface-hover: #1C212B;--color-surface-active: #252A35;--color-border: #252A35;--color-border-light: #2D3138;--color-border-heavy: #3A3F4B;--color-primary: #4F9EFF;--color-primary-dark: #2B6FCC;--color-primary-darker: #1E4F99;--color-primary-light: #7AB8FF;--color-primary-lighter: #A5CFFF;--color-primary-alpha-10: rgba(79, 158, 255, .1);--color-primary-alpha-20: rgba(79, 158, 255, .2);--color-primary-alpha-30: rgba(79, 158, 255, .3);--color-secondary: #10B981;--color-secondary-dark: #059669;--color-secondary-darker: #047857;--color-secondary-light: #34D399;--color-secondary-lighter: #6EE7B7;--color-secondary-alpha-10: rgba(16, 185, 129, .1);--color-secondary-alpha-20: rgba(16, 185, 129, .2);--color-secondary-alpha-30: rgba(16, 185, 129, .3);--color-accent: #F59E0B;--color-accent-dark: #D97706;--color-accent-darker: #B45309;--color-accent-light: #FBBF24;--color-accent-lighter: #FCD34D;--color-accent-alpha-10: rgba(245, 158, 11, .1);--color-accent-alpha-20: rgba(245, 158, 11, .2);--color-accent-alpha-30: rgba(245, 158, 11, .3);--color-success: #10B981;--color-success-dark: #059669;--color-success-light: #34D399;--color-warning: #F59E0B;--color-warning-dark: #D97706;--color-warning-light: #FBBF24;--color-error: #EF4444;--color-error-dark: #DC2626;--color-error-light: #F87171;--color-info: #3B82F6;--color-info-dark: #2563EB;--color-info-light: #60A5FA;--color-text-primary: #F8FAFC;--color-text-secondary: #CBD5E1;--color-text-tertiary: #94A3B8;--color-text-muted: #64748B;--color-text-disabled: #475569;--color-text-inverse: #0F172A;--gradient-primary: linear-gradient(135deg, #4F9EFF 0%, #2B6FCC 100%);--gradient-secondary: linear-gradient(135deg, #10B981 0%, #059669 100%);--gradient-accent: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);--gradient-surface: linear-gradient(135deg, #151922 0%, #1C212B 100%);--gradient-glow: radial-gradient(circle at 50% 0%, rgba(79, 158, 255, .15) 0%, transparent 50%);--gradient-glow-secondary: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, .15) 0%, transparent 50%);--space-0: 0;--space-1: .25rem;--space-2: .5rem;--space-3: .75rem;--space-4: 1rem;--space-5: 1.25rem;--space-6: 1.5rem;--space-7: 1.75rem;--space-8: 2rem;--space-9: 2.25rem;--space-10: 2.5rem;--space-12: 3rem;--space-14: 3.5rem;--space-16: 4rem;--space-20: 5rem;--space-24: 6rem;--space-32: 8rem;--shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, .2);--shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, .3), 0 1px 2px 0 rgba(0, 0, 0, .2);--shadow-base: 0 2px 8px 0 rgba(0, 0, 0, .4), 0 2px 4px 0 rgba(0, 0, 0, .3);--shadow-md: 0 4px 16px 0 rgba(0, 0, 0, .5), 0 2px 8px 0 rgba(0, 0, 0, .4);--shadow-lg: 0 8px 32px 0 rgba(0, 0, 0, .6), 0 4px 16px 0 rgba(0, 0, 0, .5);--shadow-xl: 0 16px 64px 0 rgba(0, 0, 0, .7), 0 8px 32px 0 rgba(0, 0, 0, .6);--shadow-2xl: 0 24px 96px 0 rgba(0, 0, 0, .8), 0 12px 48px 0 rgba(0, 0, 0, .7);--glow-primary: 0 0 20px rgba(79, 158, 255, .4);--glow-primary-strong: 0 0 30px rgba(79, 158, 255, .6);--glow-secondary: 0 0 20px rgba(16, 185, 129, .4);--glow-secondary-strong: 0 0 30px rgba(16, 185, 129, .6);--glow-accent: 0 0 20px rgba(245, 158, 11, .4);--glow-accent-strong: 0 0 30px rgba(245, 158, 11, .6);--glow-error: 0 0 20px rgba(239, 68, 68, .4);--shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, .3);--shadow-inner-strong: inset 0 4px 8px 0 rgba(0, 0, 0, .5);--radius-none: 0;--radius-sm: 6px;--radius-base: 8px;--radius-md: 12px;--radius-lg: 16px;--radius-xl: 24px;--radius-2xl: 32px;--radius-full: 9999px;--duration-fast: .15s;--duration-base: .2s;--duration-medium: .3s;--duration-slow: .5s;--ease-linear: linear;--ease-in: cubic-bezier(.4, 0, 1, 1);--ease-out: cubic-bezier(0, 0, .2, 1);--ease-in-out: cubic-bezier(.4, 0, .2, 1);--ease-bounce: cubic-bezier(.68, -.55, .265, 1.55);--ease-spring: cubic-bezier(.34, 1.56, .64, 1);--transition-fast: all var(--duration-fast) var(--ease-out);--transition-base: all var(--duration-base) var(--ease-out);--transition-medium: all var(--duration-medium) var(--ease-in-out);--transition-colors: color var(--duration-base) var(--ease-out), background-color var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out);--transition-transform: transform var(--duration-base) var(--ease-out);--transition-opacity: opacity var(--duration-base) var(--ease-out);--z-base: 1;--z-dropdown: 100;--z-sticky: 200;--z-fixed: 300;--z-modal-backdrop: 400;--z-modal: 500;--z-popover: 600;--z-tooltip: 700;--z-notification: 800;--z-max: 9999;--container-sm: 640px;--container-md: 768px;--container-lg: 1024px;--container-xl: 1280px;--container-2xl: 1536px;--size-icon-xs: 12px;--size-icon-sm: 16px;--size-icon-base: 20px;--size-icon-md: 24px;--size-icon-lg: 32px;--size-icon-xl: 48px;--size-avatar-xs: 24px;--size-avatar-sm: 32px;--size-avatar-base: 40px;--size-avatar-md: 48px;--size-avatar-lg: 64px;--size-avatar-xl: 96px;--size-avatar-2xl: 128px;--breakpoint-sm: 640px;--breakpoint-md: 768px;--breakpoint-lg: 1024px;--breakpoint-xl: 1280px;--breakpoint-2xl: 1536px;--opacity-0: 0;--opacity-10: .1;--opacity-20: .2;--opacity-30: .3;--opacity-40: .4;--opacity-50: .5;--opacity-60: .6;--opacity-70: .7;--opacity-80: .8;--opacity-90: .9;--opacity-100: 1;--backdrop-blur-sm: blur(4px);--backdrop-blur-base: blur(8px);--backdrop-blur-md: blur(12px);--backdrop-blur-lg: blur(16px);--backdrop-blur-xl: blur(24px)}.m-0{margin:var(--space-0)}.m-1{margin:var(--space-1)}.m-2{margin:var(--space-2)}.m-3{margin:var(--space-3)}.m-4{margin:var(--space-4)}.m-6{margin:var(--space-6)}.m-8{margin:var(--space-8)}.mt-0{margin-top:var(--space-0)}.mt-1{margin-top:var(--space-1)}.mt-2{margin-top:var(--space-2)}.mt-3{margin-top:var(--space-3)}.mt-4{margin-top:var(--space-4)}.mt-6{margin-top:var(--space-6)}.mt-8{margin-top:var(--space-8)}.mb-0{margin-bottom:var(--space-0)}.mb-1{margin-bottom:var(--space-1)}.mb-2{margin-bottom:var(--space-2)}.mb-3{margin-bottom:var(--space-3)}.mb-4{margin-bottom:var(--space-4)}.mb-6{margin-bottom:var(--space-6)}.mb-8{margin-bottom:var(--space-8)}.p-0{padding:var(--space-0)}.p-1{padding:var(--space-1)}.p-2{padding:var(--space-2)}.p-3{padding:var(--space-3)}.p-4{padding:var(--space-4)}.p-6{padding:var(--space-6)}.p-8{padding:var(--space-8)}.gap-1{gap:var(--space-1)}.gap-2{gap:var(--space-2)}.gap-3{gap:var(--space-3)}.gap-4{gap:var(--space-4)}.gap-6{gap:var(--space-6)}.gap-8{gap:var(--space-8)}:root{--page-padding: var(--space-4);--page-padding-x: var(--space-4);--page-padding-y: var(--space-4);--section-gap: var(--space-6);--section-padding: var(--space-4);--card-padding: var(--space-4);--card-padding-sm: var(--space-3);--card-gap: var(--space-4);--grid-gap: var(--space-4);--grid-gap-sm: var(--space-2);--grid-gap-lg: var(--space-6);--stack-gap: var(--space-4);--stack-gap-sm: var(--space-2);--stack-gap-lg: var(--space-6);--text-display: var(--text-5xl);--text-heading-1: var(--text-4xl);--text-heading-2: var(--text-3xl);--text-heading-3: var(--text-2xl);--text-heading-4: var(--text-xl);--text-body: var(--text-base);--text-small: var(--text-sm);--text-tiny: var(--text-xs);--button-height-sm: 36px;--button-height-md: 44px;--button-height-lg: 52px;--input-height-sm: 36px;--input-height-md: 44px;--input-height-lg: 52px;--icon-size-nav: 24px;--icon-size-button: 20px;--icon-size-inline: 16px;--touch-target-min: 44px;--content-max-width: 100%;--content-padding: var(--space-4);--modal-width-sm: 90vw;--modal-width-md: 90vw;--modal-width-lg: 90vw;--modal-max-width: 600px;--sidebar-width: 280px;--sidebar-collapsed-width: 64px;--grid-cols-cards: 1;--grid-cols-features: 1;--grid-cols-form: 1}@media (min-width: 768px) and (max-width: 1023px){:root{--page-padding: var(--space-6);--page-padding-x: var(--space-6);--page-padding-y: var(--space-4);--section-gap: var(--space-8);--section-padding: var(--space-6);--card-padding: var(--space-5);--card-gap: var(--space-5);--grid-gap: var(--space-5);--grid-gap-lg: var(--space-8);--grid-cols-cards: 2;--grid-cols-features: 2;--grid-cols-form: 2;--text-display: var(--text-5xl);--text-heading-1: var(--text-4xl);--text-heading-2: var(--text-3xl);--modal-width-sm: 480px;--modal-width-md: 600px;--modal-width-lg: 720px}}@media (min-width: 1024px){:root{--page-padding: var(--space-8);--page-padding-x: var(--space-8);--page-padding-y: var(--space-6);--section-gap: var(--space-12);--section-padding: var(--space-8);--card-padding: var(--space-6);--card-gap: var(--space-6);--grid-gap: var(--space-6);--grid-gap-lg: var(--space-10);--grid-cols-cards: 3;--grid-cols-features: 3;--grid-cols-form: 2;--text-display: var(--text-5xl);--text-heading-1: var(--text-4xl);--text-heading-2: var(--text-3xl);--button-height-sm: 36px;--button-height-md: 40px;--button-height-lg: 48px;--input-height-sm: 36px;--input-height-md: 40px;--input-height-lg: 48px;--modal-width-sm: 400px;--modal-width-md: 600px;--modal-width-lg: 800px;--modal-max-width: 1200px;--content-max-width: var(--container-2xl);--content-padding: var(--space-8)}}@media (min-width: 1536px){:root{--page-padding: var(--space-12);--section-gap: var(--space-16);--grid-cols-cards: 4}}.hide-mobile{display:none}@media (min-width: 768px){.hide-mobile{display:initial}}.show-mobile{display:initial}@media (min-width: 768px){.show-mobile{display:none}}@media (min-width: 768px) and (max-width: 1023px){.hide-tablet{display:none}}.show-tablet{display:none}@media (min-width: 768px) and (max-width: 1023px){.show-tablet{display:initial}}@media (min-width: 1024px){.hide-desktop{display:none}}.show-desktop{display:none}@media (min-width: 1024px){.show-desktop{display:initial}}.container-responsive{width:100%;max-width:var(--content-max-width);margin-left:auto;margin-right:auto;padding-left:var(--page-padding-x);padding-right:var(--page-padding-x)}.grid-responsive{display:grid;grid-template-columns:repeat(var(--grid-cols-cards),1fr);gap:var(--grid-gap)}.stack-responsive{display:flex;flex-direction:column;gap:var(--stack-gap)}.row-responsive{display:flex;flex-direction:column;gap:var(--grid-gap)}@media (min-width: 1024px){.row-responsive{flex-direction:row}}.touch-spacing{padding:var(--space-4);gap:var(--space-4)}@media (min-width: 1024px){.touch-spacing{padding:var(--space-3);gap:var(--space-3)}}.responsive-padding{padding:var(--page-padding)}.responsive-section{padding-block:var(--section-gap)}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes slideInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes slideInDown{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}@keyframes slideInLeft{0%{opacity:0;transform:translate(-20px)}to{opacity:1;transform:translate(0)}}@keyframes slideInRight{0%{opacity:0;transform:translate(20px)}to{opacity:1;transform:translate(0)}}@keyframes scaleIn{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes scaleOut{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.95)}}@keyframes bounce{0%,to{transform:translateY(0)}50%{transform:translateY(-10px)}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes glowPulse{0%,to{box-shadow:0 0 20px #4f9eff66}50%{box-shadow:0 0 30px #4f9effb3}}@keyframes shake{0%,to{transform:translate(0)}10%,30%,50%,70%,90%{transform:translate(-5px)}20%,40%,60%,80%{transform:translate(5px)}}@keyframes shimmer{0%{background-position:-468px 0}to{background-position:468px 0}}@keyframes ripple{to{transform:scale(4);opacity:0}}@keyframes flipIn{0%{transform:perspective(400px) rotateY(90deg);opacity:0}to{transform:perspective(400px) rotateY(0);opacity:1}}@keyframes progress{0%{transform:translate(-100%)}to{transform:translate(100%)}}.fade-in{animation:fadeIn var(--duration-medium) var(--ease-out)}.fade-out{animation:fadeOut var(--duration-medium) var(--ease-out)}.slide-in-up{animation:slideInUp var(--duration-medium) var(--ease-out)}.slide-in-down{animation:slideInDown var(--duration-medium) var(--ease-out)}.slide-in-left{animation:slideInLeft var(--duration-medium) var(--ease-out)}.slide-in-right{animation:slideInRight var(--duration-medium) var(--ease-out)}.scale-in{animation:scaleIn var(--duration-medium) var(--ease-out)}.scale-out{animation:scaleOut var(--duration-medium) var(--ease-out)}.bounce{animation:bounce 1s ease-in-out infinite}.pulse{animation:pulse 1.5s ease-in-out infinite}.glow-pulse{animation:glowPulse 2s ease-in-out infinite}.spin{animation:spin 1s linear infinite}.shake{animation:shake .5s ease-in-out}.shimmer{background:linear-gradient(90deg,var(--color-surface) 0%,var(--color-surface-hover) 50%,var(--color-surface) 100%);background-size:200% 100%;animation:shimmer 1.5s ease-in-out infinite}.transition-fast{transition:var(--transition-fast)}.transition-base{transition:var(--transition-base)}.transition-medium{transition:var(--transition-medium)}.transition-colors{transition:var(--transition-colors)}.transition-transform{transition:var(--transition-transform)}.transition-opacity{transition:var(--transition-opacity)}.transition-all{transition:all var(--duration-base) var(--ease-in-out)}.transition-none{transition:none}.hover-lift{transition:transform var(--duration-base) var(--ease-out),box-shadow var(--duration-base) var(--ease-out)}.hover-lift:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg)}.hover-scale{transition:transform var(--duration-base) var(--ease-out)}.hover-scale:hover{transform:scale(1.05)}.hover-glow{transition:box-shadow var(--duration-base) var(--ease-out)}.hover-glow:hover{box-shadow:var(--glow-primary)}.hover-brighten{transition:filter var(--duration-base) var(--ease-out)}.hover-brighten:hover{filter:brightness(1.1)}.hover-opacity{transition:opacity var(--duration-base) var(--ease-out)}.hover-opacity:hover{opacity:.8}.focus-ring{outline:none;transition:box-shadow var(--duration-fast) var(--ease-out)}.focus-ring:focus-visible{box-shadow:0 0 0 3px var(--color-primary-alpha-30)}.focus-ring-secondary:focus-visible{box-shadow:0 0 0 3px var(--color-secondary-alpha-30)}.focus-ring-accent:focus-visible{box-shadow:0 0 0 3px var(--color-accent-alpha-30)}.stagger-fade-in>*{animation:fadeIn var(--duration-medium) var(--ease-out);animation-fill-mode:both}.stagger-fade-in>*:nth-child(1){animation-delay:0ms}.stagger-fade-in>*:nth-child(2){animation-delay:50ms}.stagger-fade-in>*:nth-child(3){animation-delay:.1s}.stagger-fade-in>*:nth-child(4){animation-delay:.15s}.stagger-fade-in>*:nth-child(5){animation-delay:.2s}.stagger-fade-in>*:nth-child(6){animation-delay:.25s}.stagger-fade-in>*:nth-child(7){animation-delay:.3s}.stagger-fade-in>*:nth-child(8){animation-delay:.35s}.stagger-slide-up>*{animation:slideInUp var(--duration-medium) var(--ease-out);animation-fill-mode:both}.stagger-slide-up>*:nth-child(1){animation-delay:0ms}.stagger-slide-up>*:nth-child(2){animation-delay:50ms}.stagger-slide-up>*:nth-child(3){animation-delay:.1s}.stagger-slide-up>*:nth-child(4){animation-delay:.15s}.stagger-slide-up>*:nth-child(5){animation-delay:.2s}.stagger-slide-up>*:nth-child(6){animation-delay:.25s}.stagger-slide-up>*:nth-child(7){animation-delay:.3s}.stagger-slide-up>*:nth-child(8){animation-delay:.35s}.loading-spinner{border:3px solid var(--color-surface-hover);border-top-color:var(--color-primary);border-radius:var(--radius-full);animation:spin 1s linear infinite}.loading-dots{display:inline-flex;gap:var(--space-2)}.loading-dots span{width:8px;height:8px;background:var(--color-primary);border-radius:var(--radius-full);animation:pulse 1.4s ease-in-out infinite}.loading-dots span:nth-child(2){animation-delay:.2s}.loading-dots span:nth-child(3){animation-delay:.4s}.skeleton{background:linear-gradient(90deg,var(--color-surface) 25%,var(--color-surface-hover) 50%,var(--color-surface) 75%);background-size:200% 100%;animation:shimmer 1.5s ease-in-out infinite;border-radius:var(--radius-base)}.skeleton-text{height:1em;margin-bottom:var(--space-2)}.skeleton-heading{height:1.5em;margin-bottom:var(--space-3);width:60%}.skeleton-avatar{width:var(--size-avatar-base);height:var(--size-avatar-base);border-radius:var(--radius-full)}.skeleton-card{height:200px;border-radius:var(--radius-md)}.modal-backdrop-enter{opacity:0}.modal-backdrop-enter-active{opacity:1;transition:opacity var(--duration-medium) var(--ease-out)}.modal-backdrop-exit{opacity:1}.modal-backdrop-exit-active{opacity:0;transition:opacity var(--duration-base) var(--ease-out)}.modal-content-enter{opacity:0;transform:scale(.95)}.modal-content-enter-active{opacity:1;transform:scale(1);transition:opacity var(--duration-medium) var(--ease-out),transform var(--duration-medium) var(--ease-out)}.modal-content-exit{opacity:1;transform:scale(1)}.modal-content-exit-active{opacity:0;transform:scale(.95);transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}.toast-enter{opacity:0;transform:translate(100%)}.toast-enter-active{opacity:1;transform:translate(0);transition:opacity var(--duration-medium) var(--ease-out),transform var(--duration-medium) var(--ease-out)}.toast-exit{opacity:1;transform:translate(0)}.toast-exit-active{opacity:0;transform:translate(100%);transition:opacity var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.bounce,.pulse,.glow-pulse,.spin,.shake,.shimmer{animation:none!important}}:root{--color-primary: #3B82F6;--color-primary-variant: #1D4ED8;--color-secondary: #F59E0B;--color-accent: #10B981;--bg: #F8FAFC;--surface: #FFFFFF;--surface-muted: #fafafa;--text: #0F172A;--muted: #64748B;--border: #E5E7EB;--white: #ffffff;--radius: 10px;--card-radius: 12px;--card-padding: 12px;--card-transition: transform .18s cubic-bezier(.2,.9,.3,1), box-shadow .18s ease, background .18s ease, border-color .18s ease;--shadow-soft: 0 6px 18px rgba(0,0,0,.12);--shadow-medium: 0 12px 28px rgba(0,0,0,.18);--card-elevation: var(--shadow-soft);--card-elevation-hover: var(--shadow-medium);--border-alpha-04: rgba(15,23,42,.04);--border-alpha-20: rgba(15,23,42,.2);--shadow-alpha-04: rgba(2,6,23,.04);--overlay: rgba(0,0,0,.6);--overlay-25: rgba(0,0,0,.25);--overlay-35: rgba(0,0,0,.35);--overlay-45: rgba(0,0,0,.45);--overlay-50: rgba(0,0,0,.5);--shadow-popover: 0 2px 8px rgba(0,0,0,.15);--shadow-modal: 0 6px 24px rgba(0,0,0,.3);--focus-ring: rgba(59,130,246,.14);--primary-a-02: rgba(59,130,246,.02);--primary-a-04: rgba(59,130,246,.04);--primary-a-06: rgba(59,130,246,.06);--primary-a-08: rgba(59,130,246,.08);--primary-a-12: rgba(59,130,246,.12);--primary-a-18: rgba(59,130,246,.18);--secondary-a-02: rgba(16,185,129,.02);--secondary-a-04: rgba(16,185,129,.04);--secondary-a-08: rgba(16,185,129,.08);--secondary-a-18: rgba(16,185,129,.18);--accent-a-02: rgba(16,185,129,.02);--accent-a-06: rgba(16,185,129,.06);--white-a-85: rgba(255,255,255,.85);--white-a-90: rgba(255,255,255,.9);--white-a-06: rgba(255,255,255,.06);--white-a-03: rgba(255,255,255,.03);--black-a-05: rgba(0,0,0,.05);--black-a-06: rgba(0,0,0,.06);--black-a-08: rgba(0,0,0,.08);--black-a-10: rgba(0,0,0,.1);--black-a-80: rgba(0,0,0,.8);--border-alpha-03: rgba(15,23,42,.03);--border-alpha-06: rgba(15,23,42,.06);--danger: #e11d48;--card-width: 140px;--card-height: 200px;--hand-thumb-width: 120px;--hand-thumb-height: 90px;--gutter: 12px;--font-system: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;--font-weight-regular: 400;--font-weight-strong: 700;--font-weight-black: 900;--on-surface: #0F172A;--icon-bg-primary: #eef2ff;--icon-fg-primary: #1f2937;--icon-bg-secondary: #fff7ed;--icon-fg-secondary: #92400e;--icon-bg-accent: #eefbf7;--icon-fg-accent: #065f46;--color-secondary-strong: #34D399;--section-strip-bg: linear-gradient(90deg, var(--color-secondary), var(--color-secondary-strong));--section-strip-fg: var(--white);--btn-primary-bg: var(--color-primary);--btn-primary-fg: var(--white);--btn-secondary-bg: #10B981;--btn-secondary-fg: var(--white);--btn-ghost-bg: var(--surface-muted);--btn-ghost-hover-bg: var(--border-alpha-04);--btn-ghost-border: var(--border-alpha-06);--btn-ghost-fg: var(--text)}:root[data-theme=dark],[data-theme=dark]{--bg: #0E1117;--surface: #1A1D23;--surface-muted: #232730;--text: #FFFFFF;--text-main: #ffffff;--muted: #94a3b8;--color-primary: #3882F6;--color-primary-variant: #3b82f6;--color-secondary: #10B981;--card-elevation: 0 6px 20px rgba(0,0,0,.6);--card-elevation-hover: 0 18px 48px rgba(0,0,0,.6);--border: #2D3138;--border-alpha-04: rgba(255,255,255,.03);--shadow-alpha-04: rgba(0,0,0,.6);--overlay: rgba(0,0,0,.6);--danger: #EF4444;--white: #ffffff;--on-surface: #ffffff;--surface-on: #0F172A;--btn-primary-bg: var(--color-primary);--btn-primary-fg: var(--white);--btn-secondary-bg: var(--color-secondary);--btn-secondary-fg: var(--white);--btn-ghost-bg: var(--surface-muted);--btn-ghost-hover-bg: rgba(255,255,255,.06);--btn-ghost-border: rgba(255,255,255,.1);--btn-ghost-fg: var(--text)}:root{--alpha-02: rgba(0,0,0,.02);--alpha-04: rgba(0,0,0,.04)}.option-card{color:var(--on-surface)}.option-card .option-card__title{font-weight:900;color:inherit;font-variation-settings:"wght" 900;font-family:var(--font-system)}.option-card .option-card__desc{color:inherit;opacity:.95}.option-card--primary,.option-card--secondary{color:inherit}.site-header .site-title{color:var(--on-surface, var(--text))!important}.content-panel h1,.site-title,.page-title{color:var(--text)}html,body{margin:0;padding:0}body{font-family:var(--font-system);background:linear-gradient(180deg,var(--bg) 0%,var(--surface) 50%,var(--surface) 100%);color:var(--text)}[data-theme=dark] body{background:linear-gradient(180deg,var(--bg) 0%,var(--bg) 40%,var(--surface) 100%);color:var(--text)}.site-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;background:linear-gradient(90deg,var(--primary-a-04),var(--accent-a-02));border-radius:12px;margin-bottom:18px;border:1px solid var(--border-alpha-03)}.site-brand{display:flex;align-items:center;gap:12px}.site-logo{width:48px;height:48px;object-fit:contain;border-radius:8px;box-shadow:var(--shadow-soft)}.site-title{font-weight:700;font-size:18px}.site-actions{margin-left:auto}[data-theme=dark] .btn-ghost{background:var(--btn-ghost-bg);border-color:var(--btn-ghost-border);color:var(--btn-ghost-fg)}[data-theme=dark] .btn-primary{box-shadow:none}.btn-primary{background:var(--btn-primary-bg);color:var(--btn-primary-fg);border-radius:var(--radius);box-shadow:var(--shadow-soft);border:none;padding:8px 12px;cursor:pointer}.btn-primary:hover{transform:translateY(-1px);box-shadow:var(--shadow-medium)}.btn-secondary{background:var(--btn-secondary-bg);color:var(--btn-secondary-fg);border-radius:var(--radius);box-shadow:var(--shadow-soft);border:none;padding:8px 12px;cursor:pointer}.btn-secondary:hover{transform:translateY(-1px);box-shadow:var(--shadow-medium)}.btn-ghost{background:var(--btn-ghost-bg);border:1px solid var(--btn-ghost-border);color:var(--btn-ghost-fg);padding:8px 12px;border-radius:8px;cursor:pointer;transition:background .12s,transform .08s,box-shadow .12s}.btn-ghost:hover{background:var(--btn-ghost-hover-bg);transform:translateY(-1px);box-shadow:var(--shadow-soft)}.btn-ghost:focus,.btn-ghost:focus-visible{outline:3px solid var(--focus-ring);outline-offset:3px}.btn-theme{background:linear-gradient(90deg,var(--primary-a-12),var(--accent-a-06));border:none;color:var(--text);padding:8px 12px;border-radius:8px;font-weight:600;display:flex;align-items:center;gap:8px;cursor:pointer}.btn-theme:hover{transform:translateY(-2px);box-shadow:var(--shadow-medium)}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:none}.card-frame{overflow:hidden;border-radius:calc(var(--radius) - 2px);background:var(--surface)}.card .card-title{font-weight:600;margin-bottom:6px}.card-name,.modal h3{color:var(--text)}.tile{background:linear-gradient(180deg,var(--white-a-85),var(--white-a-90));padding:10px;border-radius:8px;border:1px solid var(--border-alpha-04);box-shadow:0 8px 20px var(--shadow-alpha-04)}.tile.large{padding:12px}.tile-header{font-weight:700;margin-bottom:6px}.slot{width:var(--card-width);height:var(--card-height);display:flex;align-items:center;justify-content:center;border-radius:8px;background:linear-gradient(180deg,var(--surface),var(--surface-muted));border:1px dashed transparent}.slot.empty{opacity:.6;border:1px dashed var(--border-alpha-04);background:linear-gradient(180deg,var(--surface-muted),var(--surface))}.slot.battlefield{width:var(--card-width);height:var(--card-height);background:transparent;border:none}.card-frame.battlefield{width:var(--card-width);height:var(--card-height);display:grid;place-items:center;background:transparent;border-radius:0;overflow:visible;border:none;box-shadow:none;transition:transform .16s cubic-bezier(.2,.9,.2,1),box-shadow .18s ease,background .16s ease}.card-frame.battlefield img{width:100%;height:100%;object-fit:contain;display:block}.card-frame.battlefield:hover{transform:translateY(-6px) scale(1.02);background:linear-gradient(180deg,var(--secondary-a-08),var(--secondary-a-04));box-shadow:0 12px 30px var(--secondary-a-18)}.card-frame.support{width:calc(var(--card-width) - 28px);height:var(--hand-thumb-height);border-radius:6px}.hand-row{display:flex;gap:var(--gutter);flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:6px}.hand-thumb{flex:0 0 auto;width:var(--hand-thumb-width);height:var(--hand-thumb-height);background:var(--surface);border:1px solid var(--border-alpha-04);border-radius:8px;display:grid;place-items:center;overflow:hidden;box-shadow:0 6px 14px var(--shadow-alpha-04);cursor:grab}.hand-thumb img{width:100%;height:100%;object-fit:contain;display:block}.thumb-inner{width:100%;height:100%;display:grid;place-items:center;background:var(--surface-muted);overflow:hidden}.support-thumb{width:90px;height:70px;background:var(--surface);border:1px solid var(--border-alpha-04);border-radius:6px;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 6px 12px var(--shadow-alpha-04)}.support-thumb img{max-width:100%;max-height:100%;object-fit:contain}.break-thumb{width:120px;height:90px;background:var(--surface);border:1px solid var(--border-alpha-04);border-radius:8px;display:flex;flex-direction:column;align-items:center}.break-thumb .thumb-inner{height:90px}.thumb-label{font-size:12px;margin-top:6px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:100%}.target-highlight{outline:3px solid var(--color-secondary);outline-offset:-4px}.bf-row{display:flex;gap:var(--gutter);align-items:flex-start}.bf-center{display:flex;gap:28px;align-items:center}.stage-slot{width:180px}.stage-inline .card-frame{width:160px;height:90px}.small-stack{display:flex;gap:8px;flex-wrap:wrap}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:var(--overlay);display:grid;place-items:center;z-index:1150}.modal{background:var(--surface);border-radius:12px;box-shadow:var(--shadow-medium);padding:12px;max-width:90vw;max-height:calc(100vh - 32px);box-sizing:border-box;display:flex;flex-direction:column}.modal .modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;flex:0 0 auto}.badge{background:var(--color-accent);color:var(--white);border-radius:9999px;padding:0 8px;font-weight:600;display:inline-block;font-size:12px}.phase-helper{padding:6px 10px;border-radius:9999px;background:transparent;border:1px solid var(--border-alpha-06);cursor:pointer}.phase-active-helper{background:var(--color-secondary);color:var(--white);box-shadow:var(--shadow-soft)}.menu-btn{background:var(--btn-ghost-bg);color:var(--btn-ghost-fg);border:1px solid var(--btn-ghost-border);padding:8px 10px;border-radius:8px;cursor:pointer}.menu-btn:hover{background:var(--btn-ghost-hover-bg)}.menu-btn{display:inline-flex}@media (max-width:900px){.menu-btn{display:inline-flex}}.duel-board{background-image:url(/assets/bg-pattern.png);background-size:cover;background-position:center;padding:12px;border-radius:8px}body:before{content:"";position:fixed;top:0;right:0;bottom:0;left:0;background-image:url(/assets/bg-pattern.png);background-size:1400px auto;background-position:center top;opacity:.06;pointer-events:none;z-index:0}.content-panel{margin-top:12px;padding:18px;background:linear-gradient(180deg,var(--bg),var(--surface));border-radius:12px;border:1px solid var(--border-alpha-03);box-shadow:0 8px 30px var(--shadow-alpha-04)}[data-theme=dark] .content-panel{background:linear-gradient(180deg,var(--bg),var(--surface));border:1px solid var(--white-a-03);box-shadow:var(--shadow-medium)}.content-panel .option-card,.content-panel .match-card,.content-panel .card{background:var(--surface);box-shadow:var(--shadow-soft)}.main-menu .option-card__title{color:var(--text-main)}.menu-group{margin-top:12px}.menu-group__title{font-weight:800;color:var(--text);margin:4px 2px 10px;opacity:.95}.main-menu .option-card{border-color:var(--border-alpha-06)}.menu-group+.menu-group{margin-top:28px}.main-menu .card-grid{gap:22px}.main-menu .header-row{display:flex;align-items:center;gap:16px;margin-bottom:18px}.main-menu .header-left{flex:1 1 auto;min-width:0}.main-menu .header-right{width:260px;flex:0 0 auto}@media (max-width: 720px){.main-menu .header-row{flex-direction:column;align-items:flex-start;gap:10px}.main-menu .header-right{width:100%}.main-menu .header-right>*{width:100%;display:flex;flex-wrap:wrap;gap:8px}.main-menu .header-left h1{line-height:1.1}@media (max-width:420px){.deckbuilder.content-panel{padding-left:8px;padding-right:8px}}}.main-menu .option-card{border-radius:var(--card-radius);transition:var(--card-transition)}.main-menu .option-card:hover{background:linear-gradient(180deg,var(--surface),var(--surface-muted));border-color:var(--border-alpha-20)}.main-menu .option-card--primary:hover{box-shadow:var(--card-elevation-hover),0 10px 26px var(--primary-a-12)}.main-menu .option-card--secondary:hover{box-shadow:var(--card-elevation-hover),0 10px 26px var(--secondary-a-18)}.main-menu .option-card--neutral:hover{box-shadow:var(--card-elevation-hover),0 10px 26px var(--black-a-08)}.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}@media (max-width: 1200px){.feature-grid{grid-template-columns:repeat(3,1fr)}}@media (max-width: 900px){.feature-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width: 600px){.feature-grid{grid-template-columns:1fr}}.main-menu .feature-grid .option-card{flex-direction:column;align-items:center;text-align:center;gap:4px;padding:var(--feature-card-padding, 18px)}.main-menu .feature-grid .option-card__media{width:72px;height:72px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(145deg,var(--secondary-a-06),var(--secondary-a-18));box-shadow:inset 0 1px 0 var(--white-a-06),0 10px 22px var(--black-a-08)}.main-menu .feature-grid .option-card__title{font-size:1.08rem}.main-menu .feature-grid .option-card__desc{max-width:40ch;margin-inline:auto}.main-menu .feature-grid .option-card:hover{box-shadow:var(--card-elevation-hover),0 12px 28px var(--secondary-a-18)}.menu-group__title{display:inline-flex;align-items:center;gap:10px;padding:8px 12px;border-radius:12px;background:var(--section-strip-bg);color:var(--section-strip-fg);opacity:1;margin:0 0 14px;font-weight:800}div[role=root],#root{position:relative;z-index:1}.row{display:flex;gap:8px;align-items:center}.col{display:flex;flex-direction:column;gap:8px}.card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px}.option-card{background:var(--surface);border-radius:var(--card-radius);padding:var(--card-padding);display:flex;gap:12px;align-items:center;box-shadow:var(--card-elevation);transition:var(--card-transition);cursor:pointer;border:1px solid var(--border-alpha-04);text-decoration:none;color:inherit}.option-card:focus,.option-card:focus-visible{outline:none;box-shadow:var(--card-elevation-hover);transform:translateY(-4px)}.option-card:hover{transform:translateY(-3px);box-shadow:var(--card-elevation-hover)}.option-card__media{width:64px;height:64px;border-radius:8px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--primary-a-06),var(--secondary-a-02))}.option-card__media img{width:48px;height:48px;object-fit:contain}.option-card__content{flex:1 1 auto;display:flex;flex-direction:column;gap:6px}.option-card__title{font-weight:900;font-size:1.04rem;font-variation-settings:"wght" 900;font-family:var(--font-system)}.option-card__desc{color:var(--muted);font-size:.95rem}.option-card__cta{margin-left:12px}.option-card--primary{border-left:4px solid var(--accent)}.option-card--secondary{border-left:4px solid var(--accent-2)}.option-card--neutral{border-left:4px solid transparent}.decklists-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px;align-items:start}.decklist-card{display:grid;grid-template-columns:1fr 2fr;grid-template-areas:"title title" "icon actions";grid-template-rows:1fr 2fr;align-items:start;padding:16px;min-height:140px;box-shadow:var(--card-elevation);transition:var(--card-transition)}.decklist-card:hover{transform:translateY(-6px);box-shadow:var(--card-elevation-hover)}.decklist-title{grid-area:title;font-weight:800;font-size:1.02rem;color:var(--text);align-self:flex-start;line-height:1.15}.decklist-card__icon{grid-area:icon;display:flex;align-items:flex-end;justify-content:flex-start;height:100%;align-self:end}.decklist-card__icon img{width:80px;height:80px;object-fit:contain;filter:drop-shadow(0 4px 8px var(--shadow-alpha-06))}.decklist-count{width:48px;height:48px;border-radius:12px;background:linear-gradient(180deg,var(--primary-a-06),var(--secondary-a-02));display:flex;align-items:center;justify-content:center;font-weight:800;font-size:1rem}.decklist-title{font-weight:800;font-size:1.02rem;color:var(--text);flex:1;word-break:break-word}.decklist-card__actions{grid-area:actions;display:grid;grid-auto-rows:min-content;gap:6px;justify-self:end;align-self:end;width:max-content}.decklist-actions-row{width:100%;display:flex;gap:6px;justify-content:flex-start}.decklist-card__actions .action-subscribe{justify-self:start;width:100%}.decklists-filter{display:flex;gap:8px;align-items:center;margin-bottom:12px}.decklists-filter .filter-label{font-weight:700;color:var(--text)}.decklists-filter .filter-icon img{width:24px;height:24px;display:block}.decklists-filter .filter-icon{padding:6px 8px}.decklists-filter .filter-clear{padding:6px 10px}.decklist-card__actions .btn-ghost,.decklist-card__actions .btn-primary,.decklist-card__actions .btn-secondary{padding:6px 10px;font-size:12px;border-radius:6px}@media (max-width:900px){.decklists-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.deckbuilder-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.deckbuilder-header h2{margin:0;font-size:1.35rem}.deckbuilder-layout{display:grid;grid-template-columns:360px 320px minmax(0,1fr) 360px;gap:18px;align-items:flex-start;position:relative}.deckbuilder-layout.filters-collapsed{grid-template-columns:320px minmax(0,1fr) 360px}.deckbuilder-layout.filters-collapsed .deckbuilder-filters{display:none}@media (max-width:1280px){.deckbuilder-layout{grid-template-columns:340px 300px minmax(0,1fr) 340px}.deckbuilder-layout.filters-collapsed{grid-template-columns:300px minmax(0,1fr) 340px}}@media (max-width:1120px){.deckbuilder-layout{grid-template-columns:minmax(0,1fr) 340px}.deckbuilder-layout.filters-collapsed{grid-template-columns:minmax(0,1fr)}.deckbuilder-filters,.deckbuilder-viewer{display:none}}@media (max-width:960px){.deckbuilder-layout,.deckbuilder-layout.filters-collapsed{grid-template-columns:minmax(0,1fr)}.deck-hub-sidebar{position:static}}.deckbuilder-column{display:flex;flex-direction:column;gap:16px}.deckbuilder-filters{display:flex;flex-direction:column;gap:16px;background:var(--surface);border:1px solid var(--border-alpha-04);border-radius:12px;padding:16px;box-shadow:var(--shadow-soft);position:sticky;top:12px;max-height:calc(100vh - 150px);overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.deckbuilder-filters::-webkit-scrollbar{width:0;height:0}@media (max-width:960px){.deckbuilder-filters{position:static;max-height:none}}.deckbuilder-viewer{display:flex;flex-direction:column;gap:16px;background:var(--surface);border:1px solid var(--border-alpha-04);border-radius:12px;padding:16px;box-shadow:var(--shadow-soft);position:sticky;top:12px;max-height:calc(100vh - 150px);overflow:auto}.card-preview-shell{background:var(--surface-muted);border:1px solid var(--border-alpha-06);border-radius:12px;padding:20px;display:flex;flex-direction:column;align-items:center;gap:18px;text-align:center;min-height:360px;box-shadow:inset 0 1px 0 var(--white-a-08)}.card-preview-media{width:100%;aspect-ratio:3 / 4;border-radius:12px;overflow:hidden;background:var(--surface);display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-medium)}.card-preview-media img{width:100%;height:100%;object-fit:contain;display:block}.card-preview-placeholder{padding:12px;font-weight:600;color:var(--muted)}.card-preview-info{display:flex;flex-direction:column;gap:6px;align-items:center}.card-preview-name{font-weight:800;color:var(--text);font-size:1rem}.card-preview-meta{display:flex;gap:12px;font-size:.85rem;color:var(--muted);text-transform:capitalize}.card-preview-empty{min-height:200px;display:grid;place-items:center;padding:20px;color:var(--muted);border:1px dashed var(--border-alpha-08);border-radius:12px;background:var(--surface);font-size:.95rem}.filters-body{display:flex;flex-direction:column;gap:16px}.filter-search input{width:100%;padding:10px 12px;border:1px solid var(--border-alpha-08);border-radius:10px;background:var(--surface-muted);color:var(--text);box-shadow:inset 0 1px 0 var(--white-a-08);transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}.filter-search input::placeholder{color:var(--muted);opacity:.85}.filter-search input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-a-06, rgba(16,185,129,.2));background:var(--surface)}.filter-group{border:1px solid var(--border-alpha-06);border-radius:12px;background:var(--surface);padding:12px}.filter-group+.filter-group{margin-top:4px}.filter-group summary{font-weight:700;color:var(--text);cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between}.filter-group summary::-webkit-details-marker{display:none}.filter-group[open] summary{margin-bottom:10px}.filter-options{display:flex;flex-wrap:wrap;gap:8px}.filter-chip{background:var(--surface-muted);border:1px solid var(--border-alpha-06);border-radius:999px;padding:6px 12px;font-size:.85rem;font-weight:600;color:var(--muted);cursor:pointer;transition:background .16s ease,color .16s ease,border-color .16s ease,transform .16s ease}.filter-chip:hover{transform:translateY(-1px);border-color:var(--border-alpha-20);color:var(--text)}.filter-chip.is-active{background:var(--accent-a-08, var(--accent));border-color:var(--accent-a-18, var(--accent));color:var(--accent);box-shadow:0 8px 18px var(--accent-a-12, rgba(0,0,0,.18))}.filter-advanced-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}.filter-advanced-grid label{display:flex;flex-direction:column;gap:6px;font-size:.85rem;color:var(--muted)}.filter-advanced-grid select,.filter-advanced-grid input{width:100%;padding:8px 10px;border:1px solid var(--border-alpha-06);border-radius:8px;background:var(--surface-muted);color:var(--text)}.filters-reset{align-self:flex-start;background:var(--danger);color:var(--white);border:none;border-radius:999px;padding:6px 14px;font-weight:600;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease}.filters-reset:hover{transform:translateY(-1px);box-shadow:var(--shadow-soft)}.deckbuilder-center{display:flex;flex-direction:column;gap:18px}.card-pool-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;font-weight:700;color:var(--muted)}.card-pool-summary{flex:1 1 220px;min-width:200px}.card-pool-search{flex:0 1 320px;display:flex;align-items:center}.card-pool-search input{width:100%;padding:10px 12px;border:1px solid var(--border-alpha-08);border-radius:10px;background:var(--surface);color:var(--text);box-shadow:inset 0 1px 0 var(--white-a-08);transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}.card-pool-search input::placeholder{color:var(--muted);opacity:.85}.card-pool-search input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-a-06, rgba(16,185,129,.2));background:var(--surface)}.card-pool-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}.left-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.left-search{margin-top:8px;margin-bottom:8px}.card-pool-empty{padding:40px 20px;border:1px dashed var(--border-alpha-08);color:var(--muted);border-radius:12px;text-align:center;background:var(--surface)}.card-pool-tile{position:relative;border-radius:12px;border:1px solid var(--border-alpha-06);background:var(--surface);box-shadow:var(--card-elevation);display:flex;flex-direction:column;gap:10px;padding:12px;cursor:pointer;transition:box-shadow .18s ease,transform .18s ease,border-color .18s ease}.card-pool-tile:hover{transform:translateY(-4px);box-shadow:var(--card-elevation-hover)}.card-pool-tile.has-count{border-color:var(--accent);box-shadow:0 12px 28px var(--accent-a-12, rgba(0,0,0,.18))}.card-thumb{border-radius:10px;overflow:hidden;background:var(--surface-muted);aspect-ratio:3 / 4;display:flex;align-items:center;justify-content:center;box-shadow:inset 0 1px 0 var(--white-a-06)}.card-thumb img{width:100%;height:100%;object-fit:cover;display:block}.card-thumb-placeholder{padding:12px;color:var(--muted);font-size:.88rem;text-align:center}.card-tile-footer{display:flex;flex-direction:column;gap:4px}.card-tile-footer .card-name{font-weight:700;color:var(--text);font-size:.95rem}.card-type{font-size:.82rem;color:var(--muted);text-transform:capitalize}.card-count-badge{position:absolute;top:10px;right:12px;border-radius:999px;background:var(--accent);color:var(--white);font-weight:700;font-size:.85rem;padding:2px 10px;box-shadow:0 8px 18px var(--accent-a-16, rgba(0,0,0,.18))}.card-pool-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:12px 16px;border:1px solid var(--border-alpha-06);border-radius:12px;background:var(--surface)}.cards-shown-control{display:flex;align-items:center;gap:10px;font-size:.9rem;color:var(--muted)}.cards-shown-control input[type=range]{width:180px}.cards-shown-value{font-weight:700;color:var(--text)}.pagination-controls{display:flex;align-items:center;gap:12px;font-weight:600;color:var(--muted)}.pagination-controls button{padding:6px 12px;border-radius:8px;border:1px solid var(--border-alpha-06);background:var(--surface);cursor:pointer;font-weight:600;transition:transform .16s ease,box-shadow .16s ease}.pagination-controls button:hover:not(:disabled){transform:translateY(-1px);box-shadow:var(--shadow-soft)}.deck-hub-sidebar{display:flex;flex-direction:column;gap:16px;position:sticky;top:12px}.deck-hub-section{background:var(--surface);border:1px solid var(--border-alpha-04);border-radius:12px;padding:16px;box-shadow:var(--shadow-soft);display:flex;flex-direction:column;gap:14px}.deck-hub-section-header{font-weight:800;font-size:1rem;display:flex;align-items:center;justify-content:space-between;color:var(--text)}.deck-field{display:flex;flex-direction:column;gap:6px;font-size:.85rem;color:var(--muted)}.deck-field select,.deck-field input{width:100%;padding:8px 10px;border-radius:8px;border:1px solid var(--border-alpha-06);background:var(--surface-muted);color:var(--text)}.deck-color-choices{display:flex;flex-direction:column;gap:8px;font-size:.85rem;color:var(--muted)}.deck-color-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(48px,1fr));gap:8px}.color-choice{display:grid;place-items:center;padding:8px;border-radius:10px;border:1px solid var(--border-alpha-06);background:var(--surface);cursor:pointer;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.color-choice img{width:36px;height:36px;object-fit:contain;display:block}.color-choice:hover{transform:translateY(-2px);box-shadow:var(--shadow-soft)}.color-choice.is-selected{border-color:var(--accent);box-shadow:0 10px 24px var(--accent-a-12, rgba(0,0,0,.18))}.deck-action-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.deck-action-row button{padding:8px 10px;border-radius:8px;border:1px solid var(--border-alpha-06);background:var(--surface-muted);font-weight:600;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease;color:var(--on-surface, var(--white))}.deck-action-row button:hover:not(:disabled){transform:translateY(-1px);box-shadow:var(--shadow-soft)}.deck-action-row button:disabled{opacity:.5;cursor:not-allowed}.deck-status-message{padding:10px;border-radius:8px;background:var(--accent-a-06, var(--accent));color:var(--accent);font-weight:600;text-align:center}.deck-total{font-weight:800;color:var(--muted)}.deck-total.is-complete{color:var(--accent)}.deck-list-scroll{max-height:none;overflow:visible;display:flex;flex-direction:column;gap:12px;padding-right:0}.deck-list-empty{padding:20px 12px;border:1px dashed var(--border-alpha-08);border-radius:10px;background:var(--surface-muted);color:var(--muted);text-align:center}.deck-list-group{display:flex;flex-direction:column;gap:8px}.deck-list-group-header{font-weight:700;color:var(--text);font-size:.92rem}.deck-list-group ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.deck-list-item{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border-radius:8px;background:var(--surface-muted);border:1px solid var(--border-alpha-04);transition:background .16s ease}.deck-list-item:hover{background:var(--surface)}.deck-list-name{font-weight:600;color:var(--text);flex:1 1 auto;min-width:0}.deck-list-controls{display:flex;align-items:center;gap:8px}.deck-list-controls button{width:28px;height:28px;border-radius:6px;border:1px solid var(--border-alpha-06);background:var(--surface);cursor:pointer;font-weight:700;transition:transform .16s ease,box-shadow .16s ease}.deck-list-controls button:hover{transform:translateY(-1px);box-shadow:var(--shadow-soft)}.deck-list-controls button:disabled{opacity:.5;cursor:not-allowed}.deck-list-controls span{min-width:20px;text-align:center;font-weight:700;color:var(--text)}.deck-list-grid{display:grid;grid-template-columns:repeat(var(--deck-list-cols, 5),120px);gap:10px;justify-content:flex-start}.deck-list-grid .card-pool-tile{width:120px}.deckbuilder .deck-list-grid .card-pool-tile .card-thumb{aspect-ratio:63 / 88;width:100%;height:auto}.deckbuilder .deck-list-grid .card-pool-tile .card-thumb img{object-fit:contain}.deck-stat-line{display:flex;align-items:center;justify-content:space-between;font-weight:600;color:var(--text)}.deck-stat-line .is-complete{color:var(--accent)}.deck-stat-subheading{font-weight:700;color:var(--muted);font-size:.86rem;margin-top:4px}.level-curve{display:flex;flex-direction:column;gap:8px}.level-row{display:grid;grid-template-columns:48px 1fr 32px;gap:8px;align-items:center}.level-label{font-weight:600;color:var(--muted)}.level-bar{height:10px;background:var(--surface-muted);border-radius:999px;overflow:hidden;border:1px solid var(--border-alpha-08)}.level-bar div{height:100%;background:var(--accent)}.level-value{font-weight:700;color:var(--text);text-align:right}.color-distribution{display:flex;flex-direction:column;gap:8px}.color-row{display:grid;grid-template-columns:16px 1fr 1fr 32px;gap:8px;align-items:center}.color-dot{width:12px;height:12px;border-radius:999px;background:var(--accent);box-shadow:0 2px 6px var(--black-a-10)}.color-dot.color-R{background:#ff6b6b}.color-dot.color-B{background:#5aa4ff}.color-dot.color-G{background:#59c17a}.color-dot.color-Y{background:#ffd44d}.color-dot.color-P{background:#b77bff}.color-dot.color-W{background:#e3e6ed;box-shadow:0 0 0 1px var(--border-alpha-20)}.color-label{font-weight:600;color:var(--text)}.color-bar{height:10px;background:var(--surface-muted);border-radius:999px;overflow:hidden;border:1px solid var(--border-alpha-08)}.color-bar div{height:100%;background:linear-gradient(90deg,var(--accent-a-06, var(--accent)),var(--accent-a-18, var(--accent)))}.color-value{font-weight:700;color:var(--text);text-align:right}.color-empty{padding:16px 12px;border-radius:10px;border:1px dashed var(--border-alpha-08);color:var(--muted);text-align:center;background:var(--surface-muted)}@media (max-width:960px){.deck-hub-section{position:static}.deck-list-scroll{max-height:none}}@media (max-width:720px){.card-pool-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.deck-action-row{grid-template-columns:1fr}.deckbuilder-header{flex-direction:column;align-items:flex-start}}.main-dashboard{display:flex;flex-direction:column;gap:24px}.dashboard-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding-bottom:8px;border-bottom:1px solid var(--border-alpha-06)}.brand-block{display:flex;align-items:center;gap:16px}.brand-logo{width:60px;height:60px;object-fit:contain;border-radius:12px;box-shadow:var(--shadow-soft)}.brand-title{margin:0;font-size:1.5rem}.brand-subtitle{margin:4px 0 0;color:var(--muted)}.auth-slot{flex:0 0 auto}.dashboard-body{display:flex;gap:24px;align-items:flex-start}.main-nav-sidebar{width:230px;flex:0 0 auto;background:var(--surface);border:1px solid var(--border-alpha-06);border-radius:14px;padding:16px;box-shadow:var(--shadow-soft);position:sticky;top:12px;max-height:calc(100vh - 150px);overflow:auto}.dashboard-status{margin:12px 0 16px;padding:10px 12px;border-radius:10px;background:var(--surface-muted);border:1px solid var(--border-alpha-06);color:var(--text);font-weight:600}.dashboard-status.is-error{background:#ef44441f;border-color:#ef444459;color:var(--danger)}.dashboard-status.is-loading{color:var(--muted);font-weight:500}.main-nav-sidebar ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.nav-item{width:100%;display:grid;grid-template-columns:40px 1fr;align-items:center;gap:12px;padding:12px;border-radius:12px;background:transparent;border:1px solid transparent;cursor:pointer;transition:transform .14s ease,box-shadow .18s ease,border-color .18s ease;text-align:left}.nav-item:hover{transform:translateY(-2px);border-color:var(--border-alpha-08);box-shadow:var(--shadow-soft);background:var(--surface-muted)}.nav-item.is-active{border-color:var(--accent);background:var(--accent-a-08, var(--surface-muted));box-shadow:0 10px 26px var(--accent-a-12, rgba(0,0,0,.18))}.nav-icon{font-size:1.35rem;display:flex;align-items:center;justify-content:center;width:32px;height:32px;justify-self:center;overflow:hidden;border-radius:8px}.nav-icon img{width:100%;height:100%;object-fit:contain;display:block}.nav-icon-text{font-size:1.35rem;line-height:1;display:block}.nav-text{display:flex;flex-direction:column;gap:2px;align-items:flex-start}.nav-label{display:block;font-weight:700;color:var(--text)}.nav-description{display:block;font-size:.78rem;color:var(--muted);margin-top:2px}.dashboard-main-panel{flex:1 1 auto;display:flex;flex-direction:column;gap:24px}.dashboard-section{display:flex;flex-direction:column;gap:24px}.dashboard-banner{font-size:.85rem;color:var(--muted);padding:10px 14px;border-radius:10px;background:var(--surface-muted);border:1px solid var(--border-alpha-06)}.content-card{background:var(--surface);border:1px solid var(--border-alpha-06);border-radius:16px;padding:18px;box-shadow:var(--shadow-soft);display:flex;flex-direction:column;gap:16px}.card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.card-title{font-weight:800;color:var(--text)}.card-subtitle{font-size:.88rem;color:var(--muted);margin-top:4px}.card-pill{align-self:flex-start;background:var(--accent-a-06, var(--accent));color:var(--accent);border-radius:999px;padding:4px 10px;font-size:.75rem;font-weight:700}.primary-button,.secondary-button,.ghost-button{border-radius:10px;padding:10px 16px;font-weight:700;cursor:pointer;transition:transform .14s ease,box-shadow .18s ease;border:1px solid transparent}.primary-button{background:var(--btn-primary-bg);color:var(--btn-primary-fg);border-color:var(--btn-primary-bg)}.primary-button:hover{transform:translateY(-2px);box-shadow:var(--shadow-soft)}.secondary-button{background:var(--surface-muted);color:var(--text);border-color:var(--border-alpha-06)}.secondary-button:hover{transform:translateY(-2px);box-shadow:var(--shadow-soft)}.ghost-button{background:transparent;color:var(--text);border-color:var(--border-alpha-06)}.ghost-button:hover{transform:translateY(-2px);box-shadow:var(--shadow-soft);background:var(--surface-muted)}.ghost-button:disabled,.secondary-button:disabled,.primary-button:disabled{opacity:.5;cursor:not-allowed;transform:none;box-shadow:none}.home-overview-grid{display:grid;grid-template-columns:320px minmax(0,1fr) minmax(0,1fr);gap:18px}.profile-card .avatar-circle{width:64px;height:64px;border-radius:16px;background:var(--accent-a-06, var(--surface-muted));color:var(--accent);font-weight:800;display:grid;place-items:center;font-size:1.2rem}.profile-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}.profile-stats dt{font-size:.75rem;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.profile-stats dd{margin:4px 0 0;font-weight:700;color:var(--text)}.quest-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}.quest-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px;border-radius:10px;background:var(--surface-muted)}.quest-list li div{display:flex;flex-direction:column;gap:4px}.quest-list li span{font-size:.8rem;color:var(--muted)}.news-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}.news-list li{display:flex;align-items:flex-start;gap:12px;padding:10px;border-radius:10px;background:var(--surface-muted)}.news-card{max-width:420px}.news-tag{font-size:.7rem;text-transform:uppercase;letter-spacing:.06em;background:var(--accent-a-06, var(--accent));color:var(--accent);border-radius:999px;padding:4px 8px;font-weight:700}.quick-links-card{gap:12px}.battle-grid,.decks-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.hero-card{gap:16px;background:linear-gradient(135deg,var(--surface),var(--surface-muted));border:1px solid var(--border-alpha-06);box-shadow:0 18px 40px var(--shadow-alpha-04)}.hero-content{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start;justify-content:space-between}.hero-text{flex:1 1 320px;display:flex;flex-direction:column;gap:10px}.hero-media{flex:0 0 240px;max-width:320px;border-radius:16px;overflow:hidden;box-shadow:var(--shadow-medium);background:var(--surface-muted)}.hero-media img{width:100%;height:100%;object-fit:cover;display:block}.hero-meta-row{width:100%;display:flex;flex-wrap:wrap;gap:10px;align-items:center;font-size:.85rem;color:var(--muted);margin-top:8px}.hero-content h2{margin:4px 0;font-size:1.4rem}.hero-content p{margin:0;color:var(--muted)}.hero-eyebrow{font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}.tournament-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}.tournament-card ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;font-size:.88rem;color:var(--muted)}.tournament-links-row{display:flex;flex-wrap:wrap;gap:12px}.content-tags-row{display:flex;flex-wrap:wrap;gap:10px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.section-heading h3{margin:0}.content-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.media-card{gap:10px}.content-card.media-card{padding:12px}.media-thumb{width:100%;aspect-ratio:21/9;border-radius:12px;display:grid;place-items:center;font-size:2rem;background:var(--surface-muted);overflow:hidden}.media-thumb.has-image{padding:0;display:block}.media-thumb.has-image img{width:100%;height:100%;object-fit:cover;display:block}@media (max-width:1100px){.dashboard-body{flex-direction:column}.main-nav-sidebar{position:static;max-height:none;width:100%}.home-overview-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}}@media (max-width:720px){.dashboard-header,.quick-links-row{flex-direction:column}.hero-actions{width:100%;justify-content:flex-start}}.deck-view-grid{align-items:start;padding:8px}.modal--deck-view{position:relative;width:75vw;height:75vh;max-width:calc(100vw - 40px);max-height:calc(100vh - 40px);padding:8px;display:flex;flex-direction:column;box-sizing:border-box;border-radius:12px}.modal--deck-view .modal-body{flex:1 1 auto;overflow:hidden;display:flex;padding:0}.deck-view-grid{align-items:start;padding:0;height:100%;width:100%;box-sizing:border-box;gap:0}.deck-modal-grid-wrap{display:flex;gap:12px;align-items:stretch;width:100%;height:100%;box-sizing:border-box}.deck-modal-sidebar{width:320px;max-width:40vw;background:var(--surface);border-left:1px solid var(--border-alpha-04);box-shadow:none;overflow:auto}.deck-view-card{position:relative;border:2px solid var(--border-alpha-04);border-radius:8px;overflow:hidden;background:linear-gradient(180deg,var(--surface),var(--surface-muted));box-shadow:0 6px 18px var(--shadow-alpha-04);display:flex;align-items:flex-end;justify-content:center}.deck-view-card img{width:100%;height:100%;object-fit:cover;display:block}.deck-view-badge{position:absolute;top:6px;right:6px;background:var(--danger);color:var(--white);width:26px;height:26px;border-radius:999px;display:grid;place-items:center;font-weight:700;font-size:12px;box-shadow:var(--shadow-soft)}.deck-view-name{position:absolute;left:6px;right:6px;bottom:6px;background:linear-gradient(180deg,var(--black-a-05),var(--black-a-10));color:var(--text);padding:6px 8px;border-radius:6px;font-weight:700;font-size:12px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}@media (max-width:700px){.modal--deck-view{width:98vw;height:92vh;padding:6px}.modal--deck-view .modal-body,.deck-view-grid{padding:0}}.deck-view-tile{border:none;background:transparent;padding:0;border-radius:0;display:flex;align-items:center;justify-content:center;overflow:visible;box-sizing:border-box;transition:transform .18s cubic-bezier(.2,.9,.3,1),box-shadow .18s ease,filter .18s ease}.deck-view-tile img,.deck-view-card img{width:100%;height:100%;object-fit:cover;object-position:top center;display:block;border-radius:0;transition:transform .18s cubic-bezier(.2,.9,.3,1),box-shadow .18s ease,filter .18s ease}.deck-view-card{position:relative;overflow:hidden}.deck-view-badge{position:absolute;top:8px;right:8px;width:36px;height:36px;background:#000!important;color:#fff!important;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;line-height:1;border-radius:4px;box-shadow:0 6px 18px #00000040;z-index:30}.deck-view-name{position:absolute;left:8px;right:8px;bottom:8px;background:linear-gradient(180deg,transparent,var(--black-a-80));color:var(--white);padding:6px 8px;font-size:12px;font-weight:700;border-radius:6px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;z-index:25;text-shadow:0 2px 6px var(--black-a-80)}.deck-view-tile:hover,.deck-view-tile:focus-within{transform:translateY(-8px) scale(1.02);z-index:40;box-shadow:0 18px 40px var(--black-a-08),0 6px 18px var(--primary-a-06)}.deck-view-tile:hover img,.deck-view-tile:focus-within img{transform:translateY(-2px) scale(1.01);filter:drop-shadow(0 8px 20px var(--primary-a-08))}.deck-view-tile:active{transform:translateY(-2px) scale(1)}.facedown-card{display:block;overflow:hidden;border-radius:6px;background:var(--surface-muted)}.facedown-card img{width:100%;height:100%;object-fit:cover;display:block}.deck-view-fallback{color:var(--muted);font-weight:600}@media (prefers-reduced-motion: reduce){.option-card,.option-card *{transition:none!important;animation:none!important}}.bf-row .card-frame{transition:transform .16s cubic-bezier(.2,.9,.2,1)}.bf-row .card-frame:hover{--card-translate-y:-6px;--card-scale:1.01;transform:rotate(var(--card-rot)) translateY(var(--card-translate-y)) scale(var(--card-scale))}.zoom-img{max-width:85vw;max-height:85vh}@media (max-width: 900px){:root{--card-width: 120px;--card-height: 160px;--hand-thumb-width: 96px;--hand-thumb-height: 70px }.site-title{font-size:16px}.site-logo{width:40px;height:40px}}.card-pool-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px}@media (max-width:700px){.card-pool-grid{grid-template-columns:repeat(3,1fr)!important;gap:4px}}.pre-game-modal{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;gap:18px;align-items:center;justify-content:center;background:var(--overlay-50);z-index:2000;padding:18px;pointer-events:auto}.pre-game-modal .pre-pane,.pre-game-modal .pre-center{background:var(--surface);padding:16px;border-radius:8px;box-shadow:var(--shadow-medium);display:flex;flex-direction:column;gap:12px;align-items:flex-start;width:340px;min-height:68vh;box-sizing:border-box;pointer-events:auto}.pre-game-modal .pre-center{align-items:center;text-align:center}.pre-game-modal .btn-ghost,.pre-game-modal .btn-primary{padding:12px 16px;font-size:15px}.pre-game-modal .choose-first{display:inline-flex;gap:8px;align-items:center;justify-content:center;min-width:120px}.pre-game-modal .choose-first.full{width:100%}@media (max-width: 900px){.pre-game-modal{padding:12px;gap:12px;flex-direction:column;align-items:stretch;justify-content:flex-start;overflow:auto}.pre-game-modal .pre-pane,.pre-game-modal .pre-center{width:100%;min-height:56vh}.pre-game-modal .pre-center{order:2}.pre-game-modal .pre-pane:first-child{order:1}.pre-game-modal .pre-pane:last-child{order:3}.pre-game-modal .choose-first{width:48%}}.lightbox-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:var(--overlay);z-index:1320;display:grid;place-items:center}.lightbox-modal{background:var(--surface);border-radius:8px;padding:12px;box-shadow:var(--shadow-medium);z-index:1330;max-width:90vw;max-height:90vh;overflow:auto}@media (max-height: 640px){.modal{max-height:calc(100vh - 12px)}.modal .modal-body{padding-bottom:12px}}.modal{animation:pop .14s cubic-bezier(.2,.9,.2,1)}@keyframes pop{0%{transform:translateY(6px) scale(.995);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}.context-menu{background:var(--surface);border:1px solid var(--border);border-radius:6px;box-shadow:var(--shadow-soft);overflow:hidden;z-index:1000;max-width:calc(100vw - 16px)}.context-menu .menu-item{padding:8px 10px;cursor:pointer}.context-menu .menu-item:hover{background:var(--primary-a-04)}.menu-divider{height:1px;background:var(--border);margin:4px 0}.menu-panel{margin-top:8px;min-width:220px;background:var(--surface);border:1px solid var(--border);border-radius:6px;box-shadow:var(--shadow-soft);overflow:hidden}.menu-panel .menu-header{padding:8px;border-bottom:1px solid var(--border);font-weight:700}.menu-panel .menu-body{padding:8px;display:flex;flex-direction:column;gap:8px}.spectator-banner{background:var(--surface-muted);color:var(--white);padding:8px 12px;border-radius:8px;display:flex;align-items:center;gap:12px;margin-bottom:8px}.spectator-banner .leave-btn{margin-left:auto;background:var(--danger);color:var(--white);border:none;padding:6px 10px;border-radius:6px;cursor:pointer}.practice-panel{margin-top:8px;padding:8px;border:1px dashed var(--border);border-radius:6px;background:var(--surface-muted)}.modal .modal-header .modal-title{font-weight:700}.modal .modal-body{display:flex;gap:8px;flex-wrap:wrap;align-items:flex-start;justify-content:center;background:var(--surface-muted);padding:8px;overflow:auto;flex:1 1 auto}.modal .modal-actions{text-align:right;flex:0 0 auto;padding-top:8px}.form-grid{display:grid;grid-template-columns:130px 1fr;gap:10px 12px;align-items:center;width:100%}@media (max-width:600px){.form-grid{grid-template-columns:1fr}.form-grid .form-label{margin-bottom:-6px}}.form-label{font-weight:700;color:var(--text)}.form-input{width:100%;max-width:100%;box-sizing:border-box;padding:8px 10px;border-radius:8px;border:1px solid var(--border-alpha-06);background:var(--white);color:var(--black)}.modal .form-input{background:#fff;color:#111;-webkit-text-fill-color:#111}.form-input:-webkit-autofill{-webkit-text-fill-color:#111!important;-webkit-box-shadow:0 0 0px 1000px #fff inset!important;box-shadow:0 0 0 1000px #fff inset!important}.form-input:focus{outline:3px solid var(--focus-ring);outline-offset:2px}.form-input::placeholder{color:var(--muted)}.modal--sm{width:480px;max-width:calc(100vw - 40px)}.trash-card{padding:8px}.trash-card .trash-card-img{height:120px;background:var(--surface-muted);display:grid;place-items:center;overflow:hidden}.trash-card .trash-card-title{font-size:12px;margin-top:4px;text-align:center}.trash-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px;justify-content:center}.zoom-label{font-size:24px}.zone-header{display:flex;justify-content:space-between;align-items:center;margin-top:8px;font-weight:600}.zone-right{color:var(--muted);font-size:13px}.zone-body{margin-top:6px}.match-chat{position:relative;width:300px;height:100%;max-height:none;background:var(--surface);border:1px solid var(--border-alpha-06);border-radius:8px;display:flex;flex-direction:column;box-shadow:var(--card-elevation)}.match-chat-header{display:flex;align-items:center;gap:8px;padding:8px 10px;border-bottom:1px solid var(--border-alpha-04);font-weight:700}.match-chat-body{padding:8px;overflow:auto;flex:1 1 auto;display:flex;flex-direction:column;gap:6px}.chat-msg{display:flex;gap:8px;align-items:flex-start}.chat-audit{display:flex;gap:8px;align-items:flex-start;opacity:.85;font-size:12px;color:var(--muted)}.chat-from{min-width:44px;font-weight:700;font-size:12px}.chat-text{background:linear-gradient(180deg,var(--white-a-90),var(--white));padding:6px 8px;border-radius:6px;border:1px solid var(--border-alpha-03);white-space:pre-wrap;word-break:break-word;overflow-wrap:anywhere}.chat-ts{color:var(--muted);font-size:11px;display:none}.chat-msg.show-ts .chat-ts,.chat-audit.show-ts .chat-ts{display:block}.match-chat-input{display:flex;gap:8px;padding:8px;border-top:1px solid var(--border-alpha-03)}.match-chat-input input{flex:1 1 auto;padding:8px;border:1px solid var(--border-alpha-06);border-radius:6px}.duel-layout{display:flex;gap:12px;align-items:stretch;min-height:calc(100vh - 180px)}.duel-chat-column{flex:0 0 320px;display:flex;flex-direction:column}.duel-main{flex:1 1 auto}@media (max-width:900px){.duel-layout{flex-direction:column}.duel-chat-column{order:0;width:100%}}.chat-toggle-btn{display:none}@media (max-width:900px){.duel-chat-column{display:none}.chat-toggle-btn{display:inline-flex;padding:6px 10px;border-radius:8px;background:var(--surface);border:1px solid var(--border-alpha-06)}}.chat-drawer{position:fixed;left:0;top:0;bottom:0;width:100%;max-width:420px;background:var(--surface);transform:translate(-110%);transition:transform .22s cubic-bezier(.2,.9,.2,1);z-index:1400;box-shadow:var(--shadow-medium);display:flex;flex-direction:column}.chat-drawer.open{transform:translate(0)}.chat-drawer-body{flex:1 1 auto;overflow:auto}.chat-drawer-footer{flex:0 0 auto}.chat-drawer-backdrop{display:none}.chat-drawer-backdrop.open{display:block;position:fixed;top:0;right:0;bottom:0;left:0;background:var(--overlay-45);z-index:1399}.match-chat{position:relative;width:300px;background:var(--surface);border:1px solid var(--border-alpha-06);border-radius:8px;display:flex;flex-direction:column;box-shadow:var(--card-elevation);height:100%}.match-chat .match-chat-body{padding:8px;overflow:auto;flex:1 1 auto;display:flex;flex-direction:column;gap:6px}.btn-primary.pressed{background:var(--color-primary-variant);opacity:.95;box-shadow:var(--shadow-medium);transform:translateY(0)}.btn-ghost.pressed{background:var(--primary-a-08);border-color:var(--primary-a-18)}.btn-primary:active,.btn-ghost:active{transform:translateY(0);opacity:.95}.btn-primary.clicked,.btn-ghost.clicked{box-shadow:0 10px 30px var(--primary-a-12);transform:translateY(-1px)}.turn-chip{display:inline-block;margin-left:8px;padding:0 8px;border-radius:9999px;background:var(--black-a-06);color:var(--muted);font-weight:700;font-size:12px}.turn-chip--active{background:linear-gradient(90deg,var(--color-secondary),var(--color-accent));color:var(--white)}.turn-toast{position:fixed;right:20px;top:80px;z-index:2200}.turn-toast .body{background:linear-gradient(90deg,var(--color-primary),var(--color-accent));color:var(--white);padding:10px 14px;border-radius:8px;box-shadow:var(--shadow-medium);font-weight:700}.zone-desc{font-size:12px;color:var(--muted);margin-bottom:6px}stage-tile{border:1px solid var(--border-alpha-04);padding:8px;width:160px;border-radius:8px;background:linear-gradient(180deg,var(--surface),var(--surface-muted))}stage-title{font-weight:600;margin-bottom:6px}stage-preview{height:90px;display:grid;place-items:center;background:var(--surface-muted);overflow:hidden;border-radius:6px}stage-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}.card-frame--target{box-shadow:none}.card-img--tapped{transform:rotate(90deg);opacity:.86}.trash-preview{height:90px;background:var(--surface-muted);display:grid;place-items:center;overflow:hidden;margin-top:6px;border-radius:6px}.trash-empty{height:90px;background:var(--surface-muted);display:grid;place-items:center;overflow:hidden;margin-top:6px;border:1px dashed var(--border);border-radius:4px}.context-panel{background:var(--surface);border:1px solid var(--border);border-radius:6px;box-shadow:var(--shadow-soft);overflow:hidden;z-index:1200}.context-panel .cp-item{padding:8px 10px;cursor:pointer}.context-panel .cp-item:hover{background:var(--primary-a-04)}.break-stack{position:relative;padding-left:8px}.break-card{position:absolute;left:8px;width:96px;height:128px;border-radius:6px;overflow:hidden;background:var(--surface);border:1px solid var(--border-alpha-04);box-shadow:0 6px 12px var(--shadow-alpha-04)}.break-card img{max-width:100%;max-height:100%;display:block}.card-frame.battlefield{position:relative}.hp-stack{position:absolute;left:calc(100% + 6px);top:0;height:100%;width:auto;pointer-events:none}.hp-card{position:absolute;width:28px;height:40px;background:linear-gradient(180deg,var(--surface-muted),var(--surface));border-radius:4px;box-shadow:var(--shadow-soft);transform:rotate(90deg);transform-origin:center;border:1px solid var(--border);background-image:url(/assets/card-back.png);background-size:cover;background-position:center}.hp-card.hidden{display:none}.phase{padding:6px 8px;border-radius:8px;border:1px solid var(--border-alpha-06);background:transparent;cursor:pointer}.phase.active{background:var(--color-secondary);color:var(--white);box-shadow:var(--shadow-soft)}.practice-panel{margin-top:8px;padding:8px;border:1px dashed var(--border);border-radius:6px;display:flex;gap:8px;align-items:center}.field-title{margin:6px 0}.match-card{position:relative;display:grid;grid-template-columns:1fr auto;grid-template-areas:"info meta";align-items:center;gap:12px;padding:12px;border-radius:8px;background:var(--surface);border:1px solid var(--border-alpha-04);box-shadow:var(--card-elevation)}.match-card__info{display:flex;flex-direction:column;gap:6px;min-width:0;grid-column:1;grid-area:info}.match-card__title{display:flex;align-items:center;gap:8px}.match-card__name{font-weight:800;font-size:1rem;color:var(--text)}.match-card__info-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:2px}.match-card__info-row .badge{position:static;margin:0}.match-card__players{display:flex;gap:8px;flex-wrap:wrap}.player-chip{background:linear-gradient(90deg,var(--primary-a-08),var(--secondary-a-04));padding:6px 8px;border-radius:9999px;font-size:.9rem;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.match-card__meta{display:flex;gap:12px;align-items:center;grid-column:2;grid-area:meta}.match-card__count{color:var(--muted);font-size:.95rem}.match-card__actions{display:flex;gap:8px}.match-card{transition:var(--card-transition)}.match-card:hover{transform:translateY(-3px);box-shadow:var(--card-elevation-hover),0 10px 26px var(--secondary-a-18);border-color:var(--border-alpha-20)}.badge--private{background:var(--black);color:var(--white);box-shadow:0 6px 16px var(--black-a-08)}.badge--legality{background:var(--surface-muted);color:var(--text);border:1px solid var(--border-alpha-06);box-shadow:none}.lobby-panel{display:flex;flex-direction:column;gap:28px}.lobby-header-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px;align-items:stretch}.lobby-section-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.lobby-section-header h3{margin:0;font-weight:800;font-size:1.12rem;color:var(--text)}.lobby-refresh{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:8px;border:1px solid var(--border-alpha-06);background:var(--surface);color:var(--muted);font-weight:600;cursor:pointer;transition:background .12s ease,color .12s ease,border-color .12s ease,transform .12s ease}.lobby-refresh:hover{background:var(--surface-muted);border-color:var(--border-alpha-16);color:var(--text);transform:translateY(-1px)}.lobby-user-options{display:flex;flex-direction:column;gap:16px}.lobby-user-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.lobby-card{position:relative;background:var(--surface);border:1px solid var(--border-alpha-04);border-radius:14px;padding:16px;display:flex;gap:16px;align-items:flex-start;box-shadow:var(--card-elevation);text-align:left;color:var(--text);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,opacity .16s ease}.lobby-card__icon{width:60px;height:60px;border-radius:14px;background:linear-gradient(145deg,var(--surface-muted),var(--surface));display:grid;place-items:center;box-shadow:inset 0 1px 0 var(--white-a-06);flex-shrink:0}.lobby-card__icon img{width:100%;height:100%;padding:10px;object-fit:contain}.lobby-icon-placeholder{font-size:.85rem;font-weight:800;letter-spacing:.08em;color:var(--muted);text-transform:uppercase}.lobby-card__body{display:flex;flex-direction:column;gap:6px;min-width:0}.lobby-card__body h2,.lobby-card__body h3,.lobby-card__body h4{margin:0;font-weight:800;font-size:1.05rem;color:var(--text)}.lobby-card__body p{margin:0;color:var(--muted);font-size:.95rem}.lobby-card__meta{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;gap:6px;font-size:.85rem;color:var(--muted)}.lobby-card--action{cursor:pointer}.lobby-card--action:hover{transform:translateY(-4px);box-shadow:var(--card-elevation-hover);border-color:var(--border-alpha-16)}.lobby-card--action:disabled{cursor:not-allowed;opacity:.6;transform:none;box-shadow:var(--card-elevation)}.lobby-card--action:focus-visible{outline:3px solid var(--focus-ring);outline-offset:3px}.lobby-card.is-primary{background:linear-gradient(160deg,var(--primary-a-08),var(--surface));border-color:var(--primary-a-20)}.lobby-card.is-disabled{opacity:.5;cursor:not-allowed}.lobby-card.is-disabled:hover{transform:none;box-shadow:var(--card-elevation);border-color:var(--border-alpha-04)}.lobby-pill{display:inline-flex;align-items:center;justify-content:center;padding:4px 10px;border-radius:999px;background:var(--surface-muted);color:var(--muted);font-weight:700;text-transform:uppercase;font-size:.75rem;letter-spacing:.06em}.lobby-status-note{color:var(--accent);font-weight:700;font-size:.8rem}.lobby-status{padding:12px 14px;border-radius:12px;background:var(--surface-muted);border:1px solid var(--border-alpha-06);color:var(--text);font-weight:600}.deck-color-chip{width:18px;height:18px;border-radius:50%;margin-left:auto;margin-top:4px;box-shadow:0 0 0 2px var(--surface);border:1px solid var(--border-alpha-08);background:var(--surface-muted);flex-shrink:0}.deck-icon{width:48px;height:48px;border-radius:14px;background:var(--surface-muted);box-shadow:inset 0 1px 0 var(--white-a-06);display:grid;place-items:center;color:var(--text);font-weight:800;font-size:.9rem;letter-spacing:.08em}.deck-color-chip--red,.deck-icon--red{background:linear-gradient(135deg,#f06449,#d63c2b);color:#fff}.deck-color-chip--blue,.deck-icon--blue{background:linear-gradient(135deg,#4f7cff,#3756d7);color:#fff}.deck-color-chip--green,.deck-icon--green{background:linear-gradient(135deg,#6bc46d,#238636);color:#0b2c0b}.deck-color-chip--yellow,.deck-icon--yellow{background:linear-gradient(135deg,#f9d64d,#f3b229);color:#6b4c00}.deck-color-chip--purple,.deck-icon--purple{background:linear-gradient(135deg,#b388ff,#7f4bff);color:#fff}.deck-color-chip--white,.deck-icon--white{background:linear-gradient(135deg,#fcfcfc,#d8d8d8);color:#4a4a4a;border:1px solid var(--border-alpha-10, rgba(0,0,0,.08))}.deck-color-chip--neutral,.deck-icon--neutral{background:linear-gradient(135deg,var(--surface-muted),var(--surface));color:var(--muted)}.lobby-available-games{display:flex;flex-direction:column;gap:16px}.game-list-container{display:flex;flex-direction:column;gap:12px}.game-list-item{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) auto auto;align-items:center;gap:16px;padding:14px 16px;border-radius:14px;background:var(--surface);border:1px solid var(--border-alpha-04);box-shadow:var(--card-elevation);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.game-list-item:hover{transform:translateY(-2px);box-shadow:var(--card-elevation-hover);border-color:var(--border-alpha-16)}.game-list-item.is-live{border-color:var(--secondary-a-16);box-shadow:var(--card-elevation-hover)}.game-list-item__host{display:flex;gap:12px;align-items:center;min-width:0}.game-list-item__host-text{display:flex;flex-direction:column;gap:4px;min-width:0}.game-list-item__host-text strong{font-size:1rem;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game-list-item__host-text span{font-size:.85rem;color:var(--muted)}.game-list-item__info{display:grid;grid-template-columns:repeat(2,minmax(120px,1fr));gap:12px 24px;font-size:.92rem;color:var(--muted);align-items:flex-start}.game-list-item__info>div{display:flex;flex-direction:column;gap:4px;min-width:0}.game-list-item__info>div span:last-child{color:var(--text);font-weight:500}.game-list-item__info .label{display:block;font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:2px}.game-list-item__status{justify-self:start}.status-pill{padding:6px 12px;border-radius:999px;font-weight:700;font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;background:var(--surface-muted);color:var(--muted)}.status-pill--waiting{background:var(--accent-a-12, rgba(16,185,129,.16));color:var(--accent, #0f9d58)}.status-pill--in-progress{background:var(--secondary-a-12, rgba(59,130,246,.16));color:var(--secondary, #2563eb)}.game-list-item__actions{display:flex;justify-content:flex-end}.lobby-action{padding:8px 12px;border-radius:10px;background:var(--btn-ghost-bg);color:var(--btn-ghost-fg);border:1px solid var(--btn-ghost-border);font-weight:700;cursor:pointer;transition:background .12s ease,transform .12s ease,box-shadow .12s ease}.lobby-action:hover:not(:disabled){background:var(--btn-ghost-hover-bg);transform:translateY(-1px);box-shadow:var(--shadow-soft)}.lobby-action:disabled{opacity:.5;cursor:not-allowed}.game-list-empty{padding:20px;text-align:center;border-radius:12px;border:1px dashed var(--border-alpha-08);background:var(--surface-muted);color:var(--muted);font-weight:600}@media (max-width: 1024px){.game-list-item{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) auto}}@media (max-width: 820px){.lobby-header-actions{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}.game-list-item{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto}.game-list-item__status{justify-self:end}.game-list-item__info{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}@media (max-width: 640px){.lobby-header-actions,.lobby-user-grid{grid-template-columns:1fr}.game-list-item{grid-template-columns:minmax(0,1fr);gap:12px}.game-list-item__status{justify-self:start}.game-list-item__actions{justify-content:flex-start}.game-list-item__info{grid-template-columns:minmax(0,1fr)}.content-panel{padding-left:12px;padding-right:12px}}.deckbuilder .card-pool-grid{grid-template-columns:repeat(7,1fr)!important;gap:6px}.deckbuilder .card-pool-tile{position:relative;overflow:hidden;display:block;padding:0;background:transparent;border:none;box-shadow:none;transition:transform .16s cubic-bezier(.2,.9,.2,1),box-shadow .18s ease}.deckbuilder .card-pool-tile .card-thumb{background:transparent!important;aspect-ratio:63 / 88;width:100%;height:auto}.deckbuilder .card-pool-tile .card-thumb img{width:100%;height:100%;object-fit:contain;display:block;transition:transform .16s cubic-bezier(.2,.9,.2,1)}.deckbuilder .card-pool-tile:hover{transform:translateY(-4px);box-shadow:0 12px 28px var(--secondary-a-18)}.deckbuilder .card-pool-tile:hover .card-thumb img{transform:translateY(-2px) scale(1.01)}.deckbuilder .card-hover-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:linear-gradient(to bottom,#0000,#00000061 40%);opacity:0;pointer-events:none;transition:opacity .16s ease}.deckbuilder .card-pool-tile:hover .card-hover-overlay,.deckbuilder .card-pool-tile:focus-within .card-hover-overlay{opacity:1;pointer-events:auto}.deckbuilder .overlay-btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid var(--border-alpha-12);background:var(--surface);color:var(--text);padding:6px 10px;border-radius:999px;font-weight:700;font-size:13px;box-shadow:var(--shadow-soft);cursor:pointer;transition:transform .12s ease,background .12s ease,color .12s ease,border-color .12s ease}.deckbuilder .overlay-btn:hover{transform:translateY(-1px);background:var(--accent);color:var(--white);border-color:var(--accent)}.deckbuilder .overlay-preview{background:var(--color-primary);color:var(--white);border-color:var(--color-primary)}.deckbuilder .overlay-count-controls{display:flex;align-items:center;justify-content:center;gap:10px;padding:6px 10px;border-radius:999px;background:#00000080;color:var(--white);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);margin-top:14px}.deckbuilder .overlay-count{min-width:22px;text-align:center;font-weight:800}.deckbuilder .overlay-minus,.deckbuilder .overlay-plus{width:28px;height:28px;display:grid;place-items:center;border-radius:999px;padding:0}@media (max-width: 1100px){.deckbuilder .card-pool-grid{grid-template-columns:repeat(5,1fr)!important}}@media (max-width: 900px){.deckbuilder .card-pool-grid{grid-template-columns:repeat(4,1fr)!important}}@media (max-width: 700px){.deckbuilder .card-pool-grid{grid-template-columns:repeat(3,1fr)!important;gap:4px}}.filters-compact{display:grid;gap:8px}.filters-compact input,.filters-compact select{padding:6px 8px;border-radius:6px;font-size:13px;height:auto}.filters-compact label>span{font-size:11px;color:var(--muted)}.deckbuilder label:has(>input[placeholder="e.g. 100"]){display:none!important}.deckbuilder .side-panel button{padding:6px 10px;font-size:12px;border-radius:6px}.deckbuilder .side-panel input,.deckbuilder .side-panel select{padding:6px 8px;font-size:13px;height:32px}.filters-drawer input,.filters-drawer select{width:100%;box-sizing:border-box}.deckbuilder .side-panel input[type=range],.filters-drawer input[type=range]{width:100%}.admin-panel{display:flex;flex-direction:column;gap:24px}.admin-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:16px;border-bottom:1px solid var(--border-alpha-06)}.admin-header h1{margin:0;font-size:1.7rem;color:var(--text)}.admin-header p{margin:4px 0;color:var(--muted)}.admin-meta{display:flex;flex-direction:column;align-items:flex-end;gap:10px}.admin-label{font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.admin-status{margin-top:12px;padding:10px 12px;border-radius:10px;background:var(--surface-muted);color:var(--text);font-weight:600}.admin-status.is-loading{background:var(--accent-a-08, var(--surface-muted));color:var(--accent)}.admin-body{display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px;align-items:flex-start}.admin-sidebar{position:sticky;top:18px;display:flex;flex-direction:column;gap:12px;background:var(--surface);border:1px solid var(--border-alpha-06);border-radius:12px;padding:16px;box-shadow:var(--shadow-soft)}.admin-sidebar nav{display:flex;flex-direction:column;gap:10px;font-weight:600}.admin-sidebar a{color:var(--text);text-decoration:none;padding:8px 10px;border-radius:10px;transition:background .16s ease,transform .12s ease}.admin-sidebar a:hover{background:var(--surface-muted);transform:translate(4px)}.admin-main{display:flex;flex-direction:column;gap:28px}.admin-section{background:var(--surface);border:1px solid var(--border-alpha-06);border-radius:16px;padding:20px;box-shadow:var(--shadow-soft)}.admin-section header{margin-bottom:16px}.admin-section h2{margin:0 0 8px;font-size:1.35rem;color:var(--text)}.admin-section p{margin:0;color:var(--muted)}.admin-form{display:flex;flex-direction:column;gap:16px;margin-bottom:18px}.admin-form .form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px 16px}.admin-form .form-wide{grid-column:1 / -1}.admin-form label{display:flex;flex-direction:column;gap:6px;font-size:.84rem;color:var(--muted)}.admin-form input,.admin-form select,.admin-form textarea{padding:10px 12px;border:1px solid var(--border-alpha-06);border-radius:10px;background:var(--surface-muted);color:var(--text);box-shadow:inset 0 1px 0 var(--white-a-06)}.admin-form textarea{resize:vertical;min-height:96px}.admin-form input:focus,.admin-form select:focus,.admin-form textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-a-08, rgba(16,185,129,.22))}.admin-table{overflow:auto;border-radius:12px;border:1px solid var(--border-alpha-04)}.admin-table table{width:100%;border-collapse:separate;border-spacing:0}.admin-table th,.admin-table td{padding:10px 12px;text-align:left;border-bottom:1px solid var(--border-alpha-04);background:var(--surface)}.admin-table tbody tr:nth-child(odd) td{background:var(--surface-muted)}.admin-table tbody tr:hover td{background:var(--surface)}.admin-table .cell-link a{color:var(--accent);font-weight:600}.admin-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-bottom:12px}.admin-hint{font-size:.78rem;color:var(--muted);margin-top:6px}.brand-settings-note{font-size:.85rem;color:var(--muted);margin:0 0 12px}.brand-fieldset{border:1px solid var(--border-alpha-06);border-radius:12px;padding:12px 16px;background:var(--surface);margin:16px 0}.brand-fieldset legend{padding:0 6px;font-weight:700}.brand-icon-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.brand-icon-field{display:flex;flex-direction:column;gap:6px}.brand-icon-field--full{margin-bottom:12px}.brand-icon-input{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.brand-icon-input input{flex:1 1 220px}.brand-icon-actions{display:flex;gap:6px}.brand-upload-button{padding:8px 12px;border-radius:8px;border:1px solid var(--border-alpha-06);background:var(--surface);color:var(--text);font-weight:600;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease}.brand-upload-button:hover{transform:translateY(-1px);box-shadow:var(--shadow-soft)}.brand-icon-preview{width:40px;height:40px;border-radius:10px;background:var(--surface-muted);border:1px solid var(--border-alpha-06);display:flex;align-items:center;justify-content:center;font-size:1.1rem;color:var(--muted);overflow:hidden}.brand-icon-preview img{width:100%;height:100%;object-fit:contain;display:block}.brand-actions{gap:12px;justify-content:flex-start}.modal--form{width:620px;max-width:96vw}.modal-body--form{padding:0;overflow:auto}.form-grid--stacked{display:flex;flex-direction:column;gap:14px}.form-fieldset{border:1px solid var(--border-alpha-06);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:10px;background:var(--surface-muted)}.form-fieldset legend{font-weight:700;color:var(--text);margin-bottom:6px}.form-fieldset label{display:flex;flex-direction:column;gap:6px;font-size:.86rem;color:var(--muted)}.form-fieldset input,.form-fieldset select,.form-fieldset textarea{width:100%;padding:9px 10px;border-radius:8px;border:1px solid var(--border-alpha-06);background:var(--surface);color:var(--text);box-shadow:inset 0 1px 0 var(--white-a-06)}.form-fieldset textarea{resize:vertical;min-height:80px}.form-fieldset input:focus,.form-fieldset select:focus,.form-fieldset textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-a-08, rgba(16,185,129,.18))}.checkbox-inline{display:flex;align-items:center;gap:8px;font-size:.82rem;color:var(--text);line-height:1.4}.checkbox-inline input{width:16px;height:16px}.form-error{border:1px solid rgba(225,29,72,.4);background:#e11d481f;color:var(--danger);padding:10px 12px;border-radius:10px;font-weight:600}.form-success{border:1px solid rgba(16,185,129,.35);background:#10b9811f;color:var(--accent);padding:10px 12px;border-radius:10px;font-weight:600}.modal-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:12px}.content-card.creator-cta{display:flex;justify-content:space-between;align-items:center;gap:16px;background:linear-gradient(120deg,var(--secondary-a-10),var(--surface));border:1px solid var(--secondary-a-20);box-shadow:var(--shadow-soft)}.content-card.creator-cta .card-eyebrow{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:var(--secondary);font-weight:700;margin-bottom:6px;display:inline-block}.content-card.creator-cta p{max-width:520px}.creator-application{display:flex;flex-direction:column;gap:20px}.creator-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.creator-header h1{margin:0;font-size:1.6rem}.creator-header p{margin:6px 0 0;color:var(--muted)}.creator-body{display:grid;grid-template-columns:minmax(0,2.1fr) minmax(0,1fr);gap:20px}.creator-form{display:flex;flex-direction:column;gap:14px}.accordion-item{border:1px solid var(--border-alpha-06);border-radius:14px;background:var(--surface);box-shadow:var(--shadow-soft);overflow:hidden}.accordion-toggle{width:100%;padding:14px 16px;background:transparent;border:none;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;text-align:left;color:var(--text);cursor:pointer;font:inherit}.accordion-toggle h2{margin:0 0 4px;font-size:1.1rem}.accordion-toggle p{margin:0;color:var(--muted);font-size:.92rem}.accordion-body{padding:0 16px 16px;display:flex;flex-direction:column;gap:12px;border-top:1px solid var(--border-alpha-04);background:var(--surface)}.accordion-item:not(.is-open) .accordion-body{display:none}.checkbox-group{display:flex;flex-direction:column;gap:8px;padding:10px 12px;border-radius:10px;background:var(--surface-muted);border:1px solid var(--border-alpha-06)}.checkbox-group-label{font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.sample-links-group{display:flex;flex-direction:column;gap:10px}.sample-links-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.sample-link-row{display:flex;gap:8px;align-items:center}.sample-link-row input{flex:1;padding:8px 10px;border-radius:8px;border:1px solid var(--border-alpha-06);background:var(--surface);color:var(--text)}.creator-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:6px}.creator-summary-panel{display:flex;flex-direction:column}.summary-card{background:var(--surface);border:1px solid var(--border-alpha-06);border-radius:14px;padding:18px;box-shadow:var(--shadow-soft);display:flex;flex-direction:column;gap:18px}.summary-card header{display:flex;align-items:center;justify-content:space-between;gap:12px}.summary-score{display:flex;flex-direction:column;align-items:center;background:var(--surface-muted);border-radius:12px;padding:10px 14px;border:1px solid var(--border-alpha-06)}.summary-score span{font-size:1.8rem;font-weight:800;line-height:1}.summary-score small{font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.summary-card dl{display:flex;flex-direction:column;gap:10px;margin:0}.summary-card dl div{display:flex;flex-direction:column;gap:2px}.summary-card dt{font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.summary-card dd{margin:0;font-weight:600}.summary-footer{font-size:.82rem;color:var(--muted)}.admin-toolbar{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:16px;align-items:flex-end}.admin-toolbar label{display:flex;flex-direction:column;gap:6px;font-size:.78rem;color:var(--muted)}.admin-toolbar select,.admin-toolbar input{padding:8px 10px;border-radius:8px;border:1px solid var(--border-alpha-06);background:var(--surface-muted);color:var(--text);min-width:150px}.admin-toolbar input:focus,.admin-toolbar select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-a-08, rgba(16,185,129,.18))}.toolbar-search{flex:1 1 240px;min-width:220px}.admin-card-grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.admin-card{background:var(--surface);border:1px solid var(--border-alpha-06);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:12px;box-shadow:var(--shadow-soft)}.admin-card header h3{margin:0;font-size:1.05rem}.pill-row{display:flex;flex-wrap:wrap;gap:8px}.pill{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em}.pill--muted{background:var(--surface-muted);color:var(--muted);border:1px solid var(--border-alpha-04)}.pill--new{background:var(--secondary-a-12);color:var(--secondary)}.pill--in-review{background:var(--accent-a-12);color:var(--accent)}.pill--resolved{background:#10b9812e;color:var(--accent-dark, #047857)}.pill--archived{background:#94a3b829;color:var(--muted)}.pill--reviewing{background:var(--accent-a-12);color:var(--accent)}.pill--approved{background:#3b82f62e;color:var(--secondary)}.pill--rejected{background:#ef444429;color:var(--danger)}.pill--severity-low{background:#94a3b82e;color:var(--muted)}.pill--severity-medium{background:#3b82f62e;color:var(--secondary)}.pill--severity-high{background:#f973162e;color:#f97316}.pill--severity-critical{background:#e11d482e;color:var(--danger)}.card-snippet{color:var(--muted);font-size:.9rem;line-height:1.5}.feedback-footer{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;font-size:.82rem;color:var(--muted)}.feedback-footer strong{display:block;color:var(--text);margin-bottom:2px}.feedback-footer span{display:block}.card-actions{display:flex;gap:8px;flex-wrap:wrap}.empty-state{padding:24px;border-radius:12px;border:1px dashed var(--border-alpha-08);background:var(--surface-muted);text-align:center;color:var(--muted);font-weight:600}.modal--detail{width:960px;max-width:96vw}.modal-subtitle{margin:6px 0 0;font-weight:600;color:var(--text)}.modal-meta{margin:2px 0 0;color:var(--muted);font-size:.82rem}.modal-body--detail{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(220px,.8fr);gap:16px;padding:0 4px 12px}.detail-primary{display:flex;flex-direction:column;gap:16px;overflow:auto;max-height:70vh;padding-right:4px}.detail-sidebar{display:flex;flex-direction:column;gap:12px}.detail-meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;background:var(--surface-muted);border-radius:12px;border:1px solid var(--border-alpha-06);padding:12px}.detail-meta dt{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:2px}.detail-meta dd{margin:0;font-weight:600;color:var(--text)}.detail-two-column{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}.bullet-list{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:4px}.link-list{margin:0;padding-left:16px;display:flex;flex-direction:column;gap:6px}.link-list a{color:var(--accent);font-weight:600;word-break:break-all}.modal-body--detail section{background:var(--surface);border-radius:12px;padding:12px;border:1px solid var(--border-alpha-04)}.modal-body--detail h3,.modal-body--detail h4{margin:0 0 8px;font-size:1rem}.detail-sidebar select,.detail-sidebar textarea{padding:10px 12px;border-radius:10px;border:1px solid var(--border-alpha-06);background:var(--surface-muted);color:var(--text)}.detail-sidebar textarea{min-height:140px;resize:vertical}.detail-sidebar select:focus,.detail-sidebar textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-a-08, rgba(16,185,129,.18))}@media (max-width: 980px){.modal--detail{width:92vw}.modal-body--detail{grid-template-columns:minmax(0,1fr);max-height:80vh}.detail-primary{max-height:none}}@media (max-width: 900px){.creator-body{grid-template-columns:minmax(0,1fr)}.creator-summary-panel{order:-1}}@media (max-width: 720px){.creator-header{flex-direction:column;align-items:flex-start}.admin-toolbar{flex-direction:column;align-items:stretch}.toolbar-search{width:100%;min-width:0}.modal--form{width:96vw}}@media (max-width: 1024px){.admin-body{grid-template-columns:minmax(0,1fr)}.admin-sidebar{position:static;flex-direction:row;flex-wrap:wrap}.admin-sidebar nav{flex-direction:row;flex-wrap:wrap;gap:8px}.admin-sidebar a{padding:6px 10px}}@media (max-width: 720px){.admin-header{flex-direction:column;align-items:flex-start;gap:12px}.admin-meta{align-items:flex-start}.admin-form .form-grid{grid-template-columns:minmax(0,1fr)}}:root{--color-primary: #3B82F6;--color-accent: #10B981;--bg: #F8FAFC;--surface: #FFFFFF;--text: #0F172A;--muted: #64748B;--radius: 10px;--shadow-soft: 0 6px 18px rgba(0,0,0,.12);--border: #E5E7EB;--border-alpha-04: rgba(15,23,42,.04);--shadow-alpha-04: rgba(2,6,23,.04);--overlay: rgba(0,0,0,.6);--danger: #e11d48;--white: #ffffff;--surface-muted: #fafafa}.btn-primary{background:var(--color-primary);color:var(--white);border-radius:var(--radius);box-shadow:var(--shadow-soft)}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}.modal{background:var(--surface);border-radius:12px;box-shadow:0 12px 28px #0000002e}.badge{background:var(--color-accent);color:var(--white);border-radius:9999px}:root[data-theme=dark]{--color-bg: var(--color-bg, #0A0E14);--color-surface: var(--color-surface, #151922);--color-surface-hover: var(--color-surface-hover, #1C212B);--color-border: var(--color-border, #252A35);--color-text: var(--color-text-primary, #F8FAFC);--color-muted: var(--color-text-muted, #64748B);--color-primary: var(--color-primary, #4F9EFF);--color-success: var(--color-success, #10B981);--color-warning: var(--color-warning, #F59E0B);--color-error: var(--color-error, #EF4444);--radius: var(--radius-md, 12px);--shadow-soft: var(--shadow-md);--border: var(--color-border, #252A35);--border-alpha-04: rgba(255,255,255,.04);--shadow-alpha-04: rgba(0,0,0,.6);--overlay: rgba(0,0,0,.6);--danger: var(--color-error, #EF4444);--white: #ffffff;--surface-muted: var(--color-bg-alt, #0E1117);--on-surface: var(--color-text-primary, #F8FAFC);--surface-on: var(--color-text-inverse, #0F172A)}.admin-form input,.admin-form select,.admin-form textarea{background:#fff!important;color:#1e293b!important;border:1px solid #d1d5db!important}.admin-form input::placeholder,.admin-form textarea::placeholder{color:#6b7280!important;opacity:1}.admin-form input:focus,.admin-form select:focus,.admin-form textarea:focus{outline:none!important;border-color:#3b82f6!important;box-shadow:0 0 0 2px #3b82f633!important;background:#fff!important;color:#1e293b!important}:root[data-theme=dark] .admin-form input,:root[data-theme=dark] .admin-form select,:root[data-theme=dark] .admin-form textarea{background:#1f2937!important;color:#f9fafb!important;border:1px solid #4b5563!important}:root[data-theme=dark] .admin-form input::placeholder,:root[data-theme=dark] .admin-form textarea::placeholder{color:#9ca3af!important;opacity:1}:root[data-theme=dark] .admin-form input:focus,:root[data-theme=dark] .admin-form select:focus,:root[data-theme=dark] .admin-form textarea:focus{outline:none!important;border-color:#3b82f6!important;box-shadow:0 0 0 2px #3b82f633!important;background:#1f2937!important;color:#f9fafb!important}.admin-form .primary-button,.admin-form button[type=submit]{background:#3b82f6!important;color:#fff!important;border:1px solid #3b82f6!important;padding:10px 16px;border-radius:10px;font-weight:600;cursor:pointer;transition:all .2s ease}.admin-form .primary-button:hover,.admin-form button[type=submit]:hover{background:#2563eb!important;border-color:#2563eb!important;transform:translateY(-1px);box-shadow:0 4px 12px #3b82f64d}.admin-form .primary-button:active,.admin-form button[type=submit]:active{transform:translateY(0);box-shadow:0 2px 6px #3b82f633}:root{--v5-bg-primary: #0a0a0a;--v5-bg-secondary: #1a1a1a;--v5-bg-tertiary: #242424;--v5-bg-zone: rgba(20, 20, 20, .95);--v5-neon-cyan: #00ffff;--v5-neon-pink: #ff007f;--v5-neon-purple: #bf00ff;--v5-neon-green: #00ff88;--v5-border-color: rgba(0, 255, 255, .3);--v5-shadow-sm: 0 2px 8px rgba(0, 0, 0, .8);--v5-shadow-md: 0 4px 16px rgba(0, 0, 0, .9);--v5-shadow-lg: 0 8px 32px rgba(0, 0, 0, .95);--v5-glow-cyan: 0 0 20px rgba(0, 255, 255, .6), 0 0 40px rgba(0, 255, 255, .3);--v5-glow-pink: 0 0 20px rgba(255, 0, 127, .6), 0 0 40px rgba(255, 0, 127, .3);--v5-glow-purple: 0 0 20px rgba(191, 0, 255, .6), 0 0 40px rgba(191, 0, 255, .3);--v5-text-primary: #ffffff;--v5-text-secondary: #b0b0b0;--v5-text-muted: #707070}.main-menu.main-dashboard{position:fixed;top:0;right:0;bottom:0;left:0;background:var(--v5-bg-primary);color:var(--v5-text-primary);display:flex;flex-direction:column;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.dashboard-header{background:var(--v5-bg-secondary);border-bottom:2px solid var(--v5-border-color);padding:12px 16px;display:flex;flex-direction:column;gap:12px;box-shadow:var(--v5-shadow-md);position:relative;z-index:100;flex-shrink:0}.brand-block{display:flex;align-items:center;gap:12px}.brand-logo{width:48px;height:48px;border-radius:8px;object-fit:contain;border:2px solid var(--v5-border-color);background:var(--v5-bg-tertiary)}.brand-title{font-size:20px;font-weight:800;margin:0;color:var(--v5-neon-cyan);text-shadow:var(--v5-glow-cyan);letter-spacing:.5px;line-height:1.2}.brand-subtitle{font-size:12px;color:var(--v5-text-secondary);margin:2px 0 0;line-height:1.3}.auth-slot{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end;min-width:0}@media (min-width: 768px){.auth-slot{flex-wrap:nowrap;margin-left:auto}}.dashboard-status{padding:12px 16px;background:#00ffff1a;border-left:3px solid var(--v5-neon-cyan);color:var(--v5-text-primary);font-size:14px;animation:slideIn .3s ease}.dashboard-status.is-loading{background:#00ffff0d;color:var(--v5-text-secondary)}.dashboard-status.is-error{background:#ff00401a;border-left-color:#ff0040}@keyframes slideIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.dashboard-body{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden}.dashboard-content{flex:1;overflow-y:auto;overflow-x:hidden;min-height:0;-webkit-overflow-scrolling:touch;height:100%}.dashboard-content::-webkit-scrollbar{width:8px}.dashboard-content::-webkit-scrollbar-track{background:var(--v5-bg-primary)}.dashboard-content::-webkit-scrollbar-thumb{background:var(--v5-border-color);border-radius:4px}.dashboard-content::-webkit-scrollbar-thumb:hover{background:var(--v5-neon-cyan)}.dashboard-section{padding:16px 16px 32px;max-width:100%;animation:fadeInUp .6s ease forwards}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.content-card:nth-child(1){animation-delay:.1s;opacity:0;animation:fadeInUp .5s ease .1s forwards}.content-card:nth-child(2){animation-delay:.2s;opacity:0;animation:fadeInUp .5s ease .2s forwards}.content-card:nth-child(3){animation-delay:.3s;opacity:0;animation:fadeInUp .5s ease .3s forwards}.content-card:nth-child(4){animation-delay:.4s;opacity:0;animation:fadeInUp .5s ease .4s forwards}.content-card{background:var(--v5-bg-secondary);border:2px solid var(--v5-border-color);border-radius:12px;padding:20px;margin-bottom:16px;box-shadow:var(--v5-shadow-md);transition:all .3s cubic-bezier(.34,1.56,.64,1);position:relative;overflow:hidden}.content-card:before{content:"";position:absolute;top:0;left:0;right:0;height:2px;background:linear-gradient(90deg,var(--v5-neon-cyan),var(--v5-neon-purple),var(--v5-neon-pink));opacity:0;transition:opacity .3s ease}.content-card:hover{border-color:var(--v5-neon-cyan);box-shadow:var(--v5-shadow-lg),var(--v5-glow-cyan);transform:translateY(-4px)}.content-card:hover:before{opacity:1}.hero-card{background:linear-gradient(135deg,var(--v5-bg-secondary) 0%,var(--v5-bg-tertiary) 100%);border:2px solid var(--v5-neon-purple);padding:20px}.hero-eyebrow{font-size:11px;font-weight:800;text-transform:uppercase;color:var(--v5-neon-purple);letter-spacing:1px;margin-bottom:8px}.hero-card h2{font-size:24px;font-weight:800;color:var(--v5-text-primary);margin:0 0 12px;line-height:1.2}.hero-card p{font-size:14px;color:var(--v5-text-secondary);line-height:1.5;margin:0 0 16px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap}.hero-media{margin-top:16px;border-radius:8px;overflow:hidden;border:1px solid var(--v5-border-color)}.hero-media img{width:100%;height:auto;display:block}.section-heading{margin:24px 0 16px}.section-heading h3{font-size:18px;font-weight:800;color:var(--v5-neon-cyan);text-transform:uppercase;letter-spacing:1.5px;margin:0;text-shadow:var(--v5-glow-cyan);position:relative;padding-bottom:12px}.section-heading h3:after{content:"";position:absolute;bottom:0;left:0;width:60px;height:2px;background:linear-gradient(90deg,var(--v5-neon-cyan),transparent);box-shadow:var(--v5-glow-cyan)}.quick-actions-grid{display:grid;grid-template-columns:1fr;gap:12px;margin-bottom:24px}.quick-action-card{background:var(--v5-bg-tertiary);border:2px solid var(--v5-border-color);border-radius:8px;padding:16px;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;gap:12px}.quick-action-card:hover{border-color:var(--v5-neon-cyan);background:#00ffff0d;transform:translate(4px)}.quick-action-icon{font-size:32px;line-height:1}.quick-action-content h4{font-size:16px;font-weight:700;color:var(--v5-text-primary);margin:0 0 4px}.quick-action-content p{font-size:13px;color:var(--v5-text-secondary);margin:0;line-height:1.4}.primary-button,.secondary-button,.ghost-button{padding:12px 20px;border-radius:8px;font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;cursor:pointer;transition:all .2s ease;border:2px solid transparent;white-space:nowrap}.primary-button{background:linear-gradient(135deg,var(--v5-neon-cyan) 0%,var(--v5-neon-purple) 100%);color:var(--v5-bg-primary);border-color:var(--v5-neon-cyan);box-shadow:var(--v5-glow-cyan);font-weight:800;position:relative;overflow:hidden}.primary-button:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(135deg,var(--v5-neon-pink) 0%,var(--v5-neon-purple) 100%);opacity:0;transition:opacity .3s ease}.primary-button span{position:relative;z-index:1}.primary-button:hover:not(:disabled){border-color:var(--v5-neon-pink);box-shadow:var(--v5-glow-pink),var(--v5-shadow-lg);transform:translateY(-2px) scale(1.05)}.primary-button:hover:not(:disabled):before{opacity:1}.secondary-button{background:var(--v5-bg-tertiary);color:var(--v5-text-primary);border-color:var(--v5-border-color)}.secondary-button:hover:not(:disabled){border-color:var(--v5-neon-cyan);background:#00ffff1a}.ghost-button{background:transparent;color:var(--v5-text-secondary);border-color:transparent;position:relative;overflow:hidden}.ghost-button:before{content:"";position:absolute;top:50%;left:50%;width:0;height:0;border-radius:50%;background:#0ff3;transform:translate(-50%,-50%);transition:width .4s ease,height .4s ease}.ghost-button:hover:not(:disabled){color:var(--v5-neon-cyan);text-shadow:var(--v5-glow-cyan)}.ghost-button:hover:not(:disabled):before{width:300%;height:300%}button:disabled{opacity:.5;cursor:not-allowed}.news-feed{display:flex;flex-direction:column;gap:12px}.news-item{background:var(--v5-bg-tertiary);border:1px solid var(--v5-border-color);border-radius:8px;padding:12px;cursor:pointer;transition:all .2s ease}.news-item:hover{border-color:var(--v5-neon-cyan);background:#00ffff0d}.news-item-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:8px}.news-item h4{font-size:15px;font-weight:700;color:var(--v5-text-primary);margin:0;line-height:1.3}.news-item-date{font-size:11px;color:var(--v5-text-muted);white-space:nowrap;margin-left:8px}.news-item p{font-size:13px;color:var(--v5-text-secondary);margin:0;line-height:1.4}.content-grid{display:grid;grid-template-columns:1fr;gap:12px}.media-card{display:flex;gap:12px;padding:12px}.media-thumb{width:80px;height:80px;border-radius:6px;background:var(--v5-bg-tertiary);border:1px solid var(--v5-border-color);flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:32px;overflow:hidden}.media-thumb.has-image img{width:100%;height:100%;object-fit:cover}.media-content h4{font-size:14px;font-weight:700;color:var(--v5-text-primary);margin:0 0 6px;line-height:1.3}.media-content p{font-size:12px;color:var(--v5-text-secondary);margin:0;line-height:1.4}.card-eyebrow{display:inline-block;font-size:10px;font-weight:800;text-transform:uppercase;color:var(--v5-neon-pink);background:#ff007f1a;padding:2px 8px;border-radius:4px;margin-bottom:8px;letter-spacing:.5px}.content-tags-row{display:flex;gap:8px;overflow-x:auto;padding:8px 0;margin:16px 0;scrollbar-width:none}.content-tags-row::-webkit-scrollbar{display:none}.content-tags-row .secondary-button{padding:8px 16px;font-size:12px;flex-shrink:0}@media (min-width: 768px){.dashboard-header{flex-direction:row;justify-content:space-between;align-items:center;padding:16px 24px;gap:24px}.brand-title{font-size:24px}.brand-subtitle{font-size:13px}.dashboard-section{padding:24px}.quick-actions-grid,.content-grid{grid-template-columns:repeat(2,1fr)}.hero-card h2{font-size:32px}}@media (min-width: 1024px){.dashboard-section{padding:32px;max-width:1200px;margin:0 auto}.quick-actions-grid,.content-grid{grid-template-columns:repeat(3,1fr)}.hero-content{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:center}.hero-media{margin-top:0}}.news-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.news-list li{display:flex;align-items:flex-start;gap:12px;padding:14px;border-radius:10px;background:var(--v5-bg-tertiary);border:1px solid var(--v5-border-color);transition:all .3s ease;cursor:pointer;position:relative;overflow:hidden}.news-list li:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:linear-gradient(180deg,var(--v5-neon-cyan),var(--v5-neon-purple));opacity:0;transition:opacity .3s ease}.news-list li:hover{background:#00ffff0d;border-color:var(--v5-neon-cyan);transform:translate(4px)}.news-list li:hover:before{opacity:1}.news-tag{font-size:10px;text-transform:uppercase;letter-spacing:.8px;background:linear-gradient(135deg,var(--v5-neon-pink),var(--v5-neon-purple));color:var(--v5-bg-primary);border-radius:6px;padding:4px 10px;font-weight:800;white-space:nowrap;box-shadow:var(--v5-glow-pink);flex-shrink:0}.news-list li strong{color:var(--v5-text-primary);font-size:14px;font-weight:700;display:block;margin-bottom:4px}.news-list li span{color:var(--v5-text-secondary);font-size:12px;line-height:1.5}.quick-links-card{background:linear-gradient(135deg,var(--v5-bg-secondary) 0%,var(--v5-bg-tertiary) 100%);border:2px solid var(--v5-neon-cyan);box-shadow:var(--v5-shadow-md),inset 0 1px #0ff3}.quick-links-card .card-title{color:var(--v5-neon-cyan);text-shadow:var(--v5-glow-cyan);font-weight:800;text-transform:uppercase;letter-spacing:1.2px;font-size:16px}.quick-links-row{display:flex;flex-wrap:wrap;gap:12px}.quick-links-row .primary-button{flex:1;min-width:140px;justify-content:center;display:inline-flex;align-items:center}.card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid var(--v5-border-color)}.card-title{color:var(--v5-neon-cyan);font-weight:800;text-transform:uppercase;letter-spacing:1px;font-size:14px;margin:0;text-shadow:var(--v5-glow-cyan)}.home-overview-grid{display:grid;grid-template-columns:1fr;gap:16px;margin-top:16px}@media (min-width: 768px){.home-overview-grid{grid-template-columns:repeat(2,1fr)}}@media (min-width: 1024px){.home-overview-grid{grid-template-columns:repeat(3,1fr)}}.card-grid{display:grid;grid-template-columns:1fr;gap:16px}@media (min-width: 640px){.card-grid{grid-template-columns:repeat(2,1fr)}}@media (min-width: 1024px){.card-grid.battle-grid,.card-grid.decks-grid{grid-template-columns:repeat(2,1fr)}.card-grid.tournaments-grid{grid-template-columns:repeat(3,1fr)}}.tournament-card,.featured-tournament{background:var(--v5-bg-tertiary);border:2px solid var(--v5-border-color);border-radius:12px;padding:18px;transition:all .3s cubic-bezier(.34,1.56,.64,1);cursor:pointer;position:relative;overflow:hidden}.featured-tournament{background:linear-gradient(135deg,#00ffff1a,#bf00ff1a);border-color:var(--v5-neon-purple);box-shadow:var(--v5-glow-purple)}.tournament-card:hover,.featured-tournament:hover{border-color:var(--v5-neon-cyan);box-shadow:var(--v5-shadow-lg),var(--v5-glow-cyan);transform:translateY(-4px) scale(1.02)}.tournament-status{display:inline-block;font-size:10px;font-weight:800;text-transform:uppercase;padding:4px 10px;border-radius:6px;margin-bottom:10px;letter-spacing:.8px}.tournament-status.live{background:var(--v5-neon-green);color:var(--v5-bg-primary);box-shadow:var(--v5-glow-cyan);animation:pulse 2s ease-in-out infinite}.tournament-status.upcoming{background:var(--v5-neon-cyan);color:var(--v5-bg-primary);box-shadow:var(--v5-glow-cyan)}.tournament-status.ended{background:var(--v5-bg-secondary);color:var(--v5-text-muted);border:1px solid var(--v5-border-color)}@keyframes pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.8;transform:scale(.98)}}.empty-state{text-align:center;padding:40px 20px;color:var(--v5-text-secondary)}.empty-state-icon{font-size:64px;margin-bottom:16px;opacity:.3}.empty-state h3{color:var(--v5-text-primary);font-size:20px;font-weight:700;margin:0 0 8px}.empty-state p{color:var(--v5-text-secondary);font-size:14px;margin:0;line-height:1.5}@keyframes glowLine{0%,to{opacity:.3;transform:translate(-100%)}50%{opacity:1;transform:translate(100%)}}.content-card.featured:after{content:"";position:absolute;top:0;left:0;right:0;height:100%;background:linear-gradient(90deg,transparent,var(--v5-neon-cyan),transparent);opacity:0;animation:glowLine 3s ease-in-out infinite;pointer-events:none}.option-card{background:var(--v5-bg-tertiary);border:2px solid var(--v5-border-color);border-radius:12px;padding:18px;display:flex;align-items:center;gap:16px;cursor:pointer;transition:all .3s cubic-bezier(.34,1.56,.64,1);position:relative;overflow:hidden}.option-card:before{content:"";position:absolute;top:0;left:0;width:4px;height:100%;background:linear-gradient(180deg,var(--v5-neon-cyan),var(--v5-neon-purple));opacity:0;transition:opacity .3s ease}.option-card:hover{border-color:var(--v5-neon-cyan);background:#00ffff0d;transform:translateY(-4px) scale(1.02);box-shadow:var(--v5-shadow-lg),var(--v5-glow-cyan)}.option-card:hover:before{opacity:1}.option-card--primary{border-color:var(--v5-neon-cyan);background:linear-gradient(135deg,rgba(0,255,255,.1) 0%,var(--v5-bg-tertiary) 100%)}.option-card--primary:hover{box-shadow:var(--v5-shadow-lg),var(--v5-glow-cyan)}.option-card--secondary{border-color:var(--v5-neon-purple);background:linear-gradient(135deg,rgba(191,0,255,.1) 0%,var(--v5-bg-tertiary) 100%)}.option-card--secondary:hover{border-color:var(--v5-neon-purple);box-shadow:var(--v5-shadow-lg),var(--v5-glow-purple)}.option-card__media{flex-shrink:0;width:48px;height:48px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:var(--v5-bg-secondary);border:1px solid var(--v5-border-color);transition:all .3s ease}.option-card:hover .option-card__media{transform:scale(1.1) rotate(5deg);border-color:var(--v5-neon-cyan);box-shadow:var(--v5-glow-cyan)}.option-card__media img{width:32px;height:32px;object-fit:contain}.option-card__content{flex:1;min-width:0}.option-card__title{font-size:16px;font-weight:800;color:var(--v5-text-primary);margin-bottom:4px;letter-spacing:.5px}.option-card__desc{font-size:13px;color:var(--v5-text-secondary);line-height:1.4}.option-card__cta{flex-shrink:0;color:var(--v5-neon-cyan);font-size:20px;transition:transform .3s ease}.option-card:hover .option-card__cta{transform:translate(4px)}:root{--icon-bg-primary: var(--v5-neon-cyan);--icon-fg-primary: var(--v5-bg-primary);--icon-bg-secondary: var(--v5-neon-purple);--icon-fg-secondary: var(--v5-bg-primary);--icon-bg-accent: var(--v5-neon-pink);--icon-fg-accent: var(--v5-bg-primary)}.btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:none;font-family:var(--font-primary);font-weight:var(--font-semibold);line-height:var(--leading-tight);text-align:center;text-decoration:none;cursor:pointer;-webkit-user-select:none;user-select:none;display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);transition:background-color var(--duration-base) var(--ease-out),color var(--duration-base) var(--ease-out),border-color var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out),box-shadow var(--duration-base) var(--ease-out);border-radius:var(--radius-base);white-space:nowrap;position:relative;overflow:hidden}.btn:focus-visible{outline:none;box-shadow:0 0 0 3px var(--color-primary-alpha-30)}.btn:disabled{cursor:not-allowed;opacity:.5}.btn-xs{padding:var(--space-1) var(--space-2);font-size:var(--text-xs);border-radius:var(--radius-sm);min-height:24px}.btn-sm{padding:var(--space-2) var(--space-3);font-size:var(--text-sm);min-height:32px}.btn-md{padding:var(--space-3) var(--space-4);font-size:var(--text-base);min-height:40px}.btn-lg{padding:var(--space-4) var(--space-6);font-size:var(--text-lg);min-height:48px}.btn-xl{padding:var(--space-5) var(--space-8);font-size:var(--text-xl);min-height:56px}.btn-icon-only.btn-xs{padding:var(--space-1);width:24px;min-height:24px}.btn-icon-only.btn-sm{padding:var(--space-2);width:32px;min-height:32px}.btn-icon-only.btn-md{padding:var(--space-3);width:40px;min-height:40px}.btn-icon-only.btn-lg{padding:var(--space-4);width:48px;min-height:48px}.btn-icon-only.btn-xl{padding:var(--space-5);width:56px;min-height:56px}.btn-primary{background:var(--gradient-primary);color:var(--color-text-inverse);box-shadow:var(--shadow-base)}.btn-primary:hover:not(:disabled){transform:translateY(-1px);box-shadow:var(--shadow-md),var(--glow-primary)}.btn-primary:active:not(:disabled){transform:translateY(0);box-shadow:var(--shadow-sm)}.btn-primary:focus-visible{box-shadow:0 0 0 3px var(--color-primary-alpha-30)}.btn-secondary{background:var(--gradient-secondary);color:var(--color-text-inverse);box-shadow:var(--shadow-base)}.btn-secondary:hover:not(:disabled){transform:translateY(-1px);box-shadow:var(--shadow-md),var(--glow-secondary)}.btn-secondary:active:not(:disabled){transform:translateY(0);box-shadow:var(--shadow-sm)}.btn-secondary:focus-visible{box-shadow:0 0 0 3px var(--color-secondary-alpha-30)}.btn-ghost{background:transparent;color:var(--color-text-secondary);box-shadow:none}.btn-ghost:hover:not(:disabled){background:var(--color-surface-hover);color:var(--color-text-primary)}.btn-ghost:active:not(:disabled){background:var(--color-surface-active)}.btn-danger{background:var(--color-error);color:var(--color-text-inverse);box-shadow:var(--shadow-base)}.btn-danger:hover:not(:disabled){background:var(--color-error-dark);transform:translateY(-1px);box-shadow:var(--shadow-md),var(--glow-error)}.btn-danger:active:not(:disabled){transform:translateY(0);box-shadow:var(--shadow-sm)}.btn-danger:focus-visible{box-shadow:0 0 0 3px #ef44444d}.btn-success{background:var(--gradient-secondary);color:var(--color-text-inverse);box-shadow:var(--shadow-base)}.btn-success:hover:not(:disabled){transform:translateY(-1px);box-shadow:var(--shadow-md),var(--glow-secondary)}.btn-success:active:not(:disabled){transform:translateY(0);box-shadow:var(--shadow-sm)}.btn-outline{background:transparent;color:var(--color-text-primary);border:2px solid var(--color-border-light);box-shadow:none}.btn-outline:hover:not(:disabled){background:var(--color-surface-hover);border-color:var(--color-primary);color:var(--color-primary)}.btn-outline:active:not(:disabled){background:var(--color-surface-active)}.btn-full-width{width:100%}.btn-loading{pointer-events:none}.btn-loading .btn-content{opacity:0}.btn-spinner{position:absolute;display:flex;align-items:center;justify-content:center}.btn .loading-spinner{width:16px;height:16px}.btn-sm .loading-spinner{width:14px;height:14px}.btn-xs .loading-spinner{width:12px;height:12px}.btn-lg .loading-spinner,.btn-xl .loading-spinner{width:20px;height:20px}.btn-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.btn-icon svg{width:var(--size-icon-base);height:var(--size-icon-base)}.btn-xs .btn-icon svg{width:var(--size-icon-xs);height:var(--size-icon-xs)}.btn-sm .btn-icon svg{width:var(--size-icon-sm);height:var(--size-icon-sm)}.btn-lg .btn-icon svg{width:var(--size-icon-md);height:var(--size-icon-md)}.btn-xl .btn-icon svg{width:var(--size-icon-lg);height:var(--size-icon-lg)}.btn-group{display:inline-flex;gap:var(--space-2)}.btn-group-attached{display:inline-flex;gap:0}.btn-group-attached>.btn{border-radius:0}.btn-group-attached>.btn:first-child{border-top-left-radius:var(--radius-base);border-bottom-left-radius:var(--radius-base)}.btn-group-attached>.btn:last-child{border-top-right-radius:var(--radius-base);border-bottom-right-radius:var(--radius-base)}@media (max-width: 768px){.btn-lg{padding:var(--space-3) var(--space-5);font-size:var(--text-base);min-height:44px}.btn-xl{padding:var(--space-4) var(--space-6);font-size:var(--text-lg);min-height:48px}}.card{display:flex;flex-direction:column;background:var(--color-surface);border-radius:var(--radius-md);overflow:hidden;transition:transform var(--duration-base) var(--ease-out),box-shadow var(--duration-base) var(--ease-out),border-color var(--duration-base) var(--ease-out)}.card-elevated{box-shadow:var(--shadow-base)}.card-flat{box-shadow:none}.card-outlined{box-shadow:none;border:2px solid var(--color-border)}.card-interactive{cursor:pointer}.card-interactive:focus-visible{outline:none;box-shadow:0 0 0 3px var(--color-primary-alpha-30)}.card-hover-lift:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg)}.card-hover-glow:hover{box-shadow:var(--shadow-md),var(--glow-primary)}.card-hover-scale:hover{transform:scale(1.02)}.card-selected{border:2px solid var(--color-primary);box-shadow:var(--shadow-md),var(--glow-primary)}.card-outlined.card-selected{border-color:var(--color-primary)}.card-disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.card-header{padding:var(--space-4);border-bottom:1px solid var(--color-border)}.card-header:last-child{border-bottom:none}.card-title{margin:0;font-family:var(--font-display);font-size:var(--text-xl);font-weight:var(--font-semibold);line-height:var(--leading-tight);color:var(--color-text-primary)}.card-subtitle{margin:var(--space-1) 0 0 0;font-size:var(--text-sm);font-weight:var(--font-normal);line-height:var(--leading-normal);color:var(--color-text-secondary)}.card-body{padding:var(--space-4);flex:1;color:var(--color-text-secondary)}.card-body p{margin:0 0 var(--space-3) 0;line-height:var(--leading-normal)}.card-body p:last-child{margin-bottom:0}.card-footer{padding:var(--space-4);border-top:1px solid var(--color-border);display:flex;align-items:center;gap:var(--space-3)}.card-footer:first-child{border-top:none}.card-image{width:100%;height:auto;display:block;object-fit:cover}.card-horizontal{flex-direction:row}.card-horizontal .card-image{width:200px;height:100%;object-fit:cover}.card-horizontal .card-body{flex:1}.card-compact .card-header,.card-compact .card-body,.card-compact .card-footer{padding:var(--space-3)}.card-grid{display:grid;gap:var(--space-4);grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}.card-grid-2{grid-template-columns:repeat(2,1fr)}.card-grid-3{grid-template-columns:repeat(3,1fr)}.card-grid-4{grid-template-columns:repeat(4,1fr)}@media (max-width: 1024px){.card-grid-4{grid-template-columns:repeat(3,1fr)}}@media (max-width: 768px){.card-grid-3,.card-grid-4{grid-template-columns:repeat(2,1fr)}.card-horizontal{flex-direction:column}.card-horizontal .card-image{width:100%;height:200px}}@media (max-width: 480px){.card-grid,.card-grid-2,.card-grid-3,.card-grid-4{grid-template-columns:1fr}}.card-content .card-image{aspect-ratio:16 / 9}.card-content .card-title{font-size:var(--text-2xl);margin-bottom:var(--space-2)}.card-content .card-body{padding-top:var(--space-3)}.card-profile{text-align:center}.card-profile .card-header{border-bottom:none;padding-bottom:var(--space-2)}.card-profile .card-image{width:var(--size-avatar-xl);height:var(--size-avatar-xl);border-radius:var(--radius-full);margin:0 auto var(--space-3);object-fit:cover}.card-stats{padding:var(--space-4)}.card-stats-value{font-size:var(--text-4xl);font-weight:var(--font-bold);color:var(--color-text-primary);line-height:var(--leading-none);margin:0}.card-stats-label{font-size:var(--text-sm);color:var(--color-text-muted);margin:var(--space-1) 0 0 0;text-transform:uppercase;letter-spacing:var(--tracking-wide)}.card-stats-trend{margin-top:var(--space-2);font-size:var(--text-sm);font-weight:var(--font-semibold)}.card-stats-trend.positive{color:var(--color-success)}.card-stats-trend.negative{color:var(--color-error)}.card-match{border-left:4px solid var(--color-primary)}.card-match.waiting{border-left-color:var(--color-warning)}.card-match.in-progress{border-left-color:var(--color-success)}.card-match.completed{border-left-color:var(--color-text-muted)}.card-deck{position:relative}.card-deck .card-image{aspect-ratio:63 / 88;object-fit:cover}.card-deck-overlay{position:absolute;bottom:0;left:0;right:0;padding:var(--space-3);background:linear-gradient(to top,rgba(0,0,0,.9) 0%,transparent 100%);color:var(--color-text-primary)}.card-deck-name{font-weight:var(--font-semibold);font-size:var(--text-base);margin:0}.card-deck-cards{font-size:var(--text-sm);color:var(--color-text-secondary);margin:var(--space-1) 0 0 0}.card-skeleton{animation:pulse 1.5s ease-in-out infinite}.card-skeleton .card-title,.card-skeleton .card-subtitle,.card-skeleton .card-body p{background:var(--color-surface-hover);color:transparent;border-radius:var(--radius-sm)}.card-skeleton .card-image{background:var(--color-surface-hover)}.input-container{position:relative;display:inline-flex;flex-direction:column;gap:var(--spacing-xs);font-family:var(--font-family-base)}.input-container.input-full-width{width:100%}.input-wrapper{position:relative;display:flex;align-items:center}.input-field{width:100%;font-family:var(--font-family-base);font-weight:var(--font-weight-regular);color:var(--color-text-primary);background:transparent;border:none;outline:none;transition:all var(--transition-normal);-webkit-appearance:none;-moz-appearance:none;appearance:none}.input-field::placeholder{color:var(--color-text-tertiary);opacity:1}.input-field:disabled{cursor:not-allowed;opacity:.6}.input-field:disabled::placeholder{color:var(--color-text-disabled)}.input-size-sm .input-field{padding:var(--spacing-sm) var(--spacing-md);font-size:var(--font-size-sm);line-height:var(--line-height-sm);height:36px}.input-size-md .input-field{padding:10px 14px;font-size:var(--font-size-base);line-height:var(--line-height-base);height:40px}.input-size-lg .input-field{padding:var(--spacing-lg) var(--spacing-xl);font-size:var(--font-size-lg);line-height:var(--line-height-lg);height:52px}.input-size-sm.input-with-icons .input-field{padding-left:var(--spacing-2xl)}.input-size-sm.input-with-icons .input-field:not([type=search]){padding-right:var(--spacing-2xl)}.input-size-md.input-with-icons .input-field{padding-left:var(--spacing-3xl)}.input-size-md.input-with-icons .input-field:not([type=search]){padding-right:var(--spacing-3xl)}.input-size-lg.input-with-icons .input-field{padding-left:var(--spacing-4xl)}.input-size-lg.input-with-icons .input-field:not([type=search]){padding-right:var(--spacing-4xl)}.input-field[type=search]{padding-left:var(--spacing-3xl)}.input-variant-default .input-wrapper{background:transparent;border:none;border-bottom:2px solid rgba(148,163,184,.3);border-radius:0;transition:all var(--transition-normal)}.input-variant-default.input-focused .input-wrapper{background:transparent;border-bottom-color:var(--color-primary);box-shadow:none}.input-variant-default.input-error .input-wrapper{border-color:var(--color-danger)}.input-variant-default.input-error.input-focused .input-wrapper{box-shadow:0 0 0 3px var(--color-danger-alpha)}.input-variant-default.input-disabled .input-wrapper{background:var(--color-surface-tertiary);border-color:var(--color-border)}.input-variant-filled .input-wrapper{background:var(--color-surface-secondary);border:2px solid transparent;border-radius:var(--border-radius-md);border-bottom-color:var(--color-border);border-bottom-left-radius:0;border-bottom-right-radius:0}.input-variant-filled.input-focused .input-wrapper{border-bottom-color:var(--color-primary);background:var(--color-surface)}.input-variant-filled.input-error .input-wrapper{border-bottom-color:var(--color-danger)}.input-variant-filled.input-disabled .input-wrapper{background:var(--color-surface-tertiary)}.input-variant-outlined .input-wrapper{background:transparent;border:2px solid var(--color-border);border-radius:var(--border-radius-md)}.input-variant-outlined.input-focused .input-wrapper{border-color:var(--color-primary);border-width:2px}.input-variant-outlined.input-error .input-wrapper{border-color:var(--color-danger)}.input-variant-outlined.input-disabled .input-wrapper{border-color:var(--color-border);background:var(--color-surface-tertiary)}.input-label{position:absolute;left:var(--spacing-lg);top:50%;transform:translateY(-50%);pointer-events:none;color:var(--color-text-secondary);font-size:var(--font-size-base);font-weight:var(--font-weight-medium);transition:all var(--transition-normal);background:transparent;padding:0 var(--spacing-xs);z-index:1;white-space:nowrap;overflow:visible}.input-size-sm .input-label{left:var(--spacing-md);font-size:var(--font-size-sm)}.input-size-lg .input-label{left:var(--spacing-xl);font-size:var(--font-size-lg)}.input-label-floating{top:0;font-size:var(--font-size-xs);color:var(--color-text-tertiary);transform:translateY(-50%);background:var(--color-background);padding:0 var(--spacing-xs)}.input-size-sm .input-label-floating{font-size:var(--font-size-2xs)}.input-size-lg .input-label-floating{font-size:var(--font-size-sm)}.input-focused .input-label-floating{color:var(--color-primary)}.input-error .input-label-floating{color:var(--color-danger)}.input-with-icons .input-label{left:var(--spacing-3xl)}.input-size-sm.input-with-icons .input-label{left:var(--spacing-2xl)}.input-size-lg.input-with-icons .input-label{left:var(--spacing-4xl)}.input-variant-outlined .input-label-floating{background:var(--color-background)}.input-icon{position:absolute;display:flex;align-items:center;justify-content:center;color:var(--color-text-tertiary);pointer-events:none;transition:color var(--transition-normal);z-index:2}.input-focused .input-icon{color:var(--color-primary)}.input-error .input-icon{color:var(--color-danger)}.input-icon-left{left:var(--spacing-md)}.input-icon-right{right:var(--spacing-md)}.input-size-sm .input-icon{width:16px;height:16px}.input-size-sm .input-icon-left{left:var(--spacing-sm)}.input-size-sm .input-icon-right{right:var(--spacing-sm)}.input-size-md .input-icon{width:20px;height:20px}.input-size-lg .input-icon{width:24px;height:24px}.input-size-lg .input-icon-left{left:var(--spacing-lg)}.input-size-lg .input-icon-right{right:var(--spacing-lg)}.input-password-toggle{all:unset;pointer-events:all;cursor:pointer;border-radius:var(--border-radius-sm);transition:all var(--transition-fast)}.input-password-toggle:hover{color:var(--color-text-primary);background:var(--color-surface-secondary)}.input-password-toggle:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}.input-message{display:block;font-size:var(--font-size-sm);line-height:var(--line-height-sm);padding-left:var(--spacing-sm);margin-top:var(--spacing-xs)}.input-error-message{color:var(--color-danger);font-weight:var(--font-weight-medium);animation:slideDown var(--transition-normal)}.input-helper-text{color:var(--color-text-tertiary)}.input-light .input-wrapper{background:#ffffffb3!important;border:2px solid rgba(226,232,240,.8)!important;border-radius:var(--border-radius-md)!important;box-shadow:none!important;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.input-light.input-focused .input-wrapper{background:#ffffffe6!important;border-color:#3b82f6!important;box-shadow:0 0 0 3px #3b82f61a!important}.input-light .input-field{color:#0f172a!important;font-weight:400!important}.input-light .input-field::placeholder{color:#94a3b8!important}.input-light .input-label{color:#475569!important;font-weight:600!important;font-size:.875rem!important;text-transform:uppercase;letter-spacing:.025em}.input-light .input-label-floating{color:#64748b!important;background:transparent!important;font-weight:500!important}.input-light .input-helper-text{color:#64748b!important;font-size:.8125rem!important}.input-required{color:var(--color-danger);margin-left:var(--spacing-2xs);font-weight:var(--font-weight-bold)}input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:16px;width:16px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23666'%3E%3Cpath d='M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z'/%3E%3C/svg%3E");cursor:pointer;background-size:contain}input[type=search]::-webkit-search-cancel-button:hover{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23333'%3E%3Cpath d='M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z'/%3E%3C/svg%3E")}@media (max-width: 768px){.input-size-md .input-field{font-size:16px}}@media (prefers-reduced-motion: reduce){.input-field,.input-wrapper,.input-label,.input-icon{transition:none}.input-error-message{animation:none}}.select-container{position:relative;display:inline-flex;flex-direction:column;gap:var(--spacing-xs);font-family:var(--font-family-base)}.select-container.select-full-width{width:100%}.select-hidden{position:absolute;opacity:0;pointer-events:none;width:0;height:0}.select-label{display:block;font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);color:var(--color-text-secondary);margin-bottom:var(--spacing-xs)}.select-required{color:var(--color-danger);margin-left:var(--spacing-2xs);font-weight:var(--font-weight-bold)}.select-trigger{position:relative;display:flex;align-items:center;gap:var(--spacing-sm);cursor:pointer;-webkit-user-select:none;user-select:none;transition:all var(--transition-normal);font-family:var(--font-family-base);font-weight:var(--font-weight-regular);color:var(--color-text-primary)}.select-trigger:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}.select-disabled .select-trigger{cursor:not-allowed;opacity:.6}.select-size-sm .select-trigger{padding:var(--spacing-sm) var(--spacing-md);font-size:var(--font-size-sm);line-height:var(--line-height-sm);height:36px}.select-size-md .select-trigger{padding:10px 14px;font-size:var(--font-size-base);line-height:var(--line-height-base);height:40px}.select-size-lg .select-trigger{padding:var(--spacing-lg) var(--spacing-xl);font-size:var(--font-size-lg);line-height:var(--line-height-lg);height:52px}.select-variant-default .select-trigger{background:transparent;border:none;border-bottom:2px solid rgba(148,163,184,.3);border-radius:0;transition:all var(--transition-normal)}.select-variant-default.select-open .select-trigger,.select-variant-default .select-trigger:hover:not(.select-disabled .select-trigger){background:transparent;border-bottom-color:var(--color-primary);box-shadow:none}.select-variant-default.select-error .select-trigger{border-color:var(--color-danger)}.select-light .select-trigger{background:#ffffffb3!important;border:2px solid rgba(226,232,240,.8)!important;border-radius:var(--border-radius-md)!important;color:#0f172a!important;font-weight:400!important;box-shadow:none!important;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.select-light.select-open .select-trigger,.select-light .select-trigger:hover{background:#ffffffe6!important;border-color:#3b82f6!important;box-shadow:0 0 0 3px #3b82f61a!important}.select-light .select-label{color:#475569!important;font-weight:600!important;font-size:.875rem!important;text-transform:uppercase;letter-spacing:.025em}.select-light .select-dropdown{background:#fff!important;z-index:9999!important;border:1px solid rgba(226,232,240,.8);box-shadow:0 10px 40px #00000026}.select-light .select-option{color:#0f172a!important}.select-light .select-option:hover{background:#3b82f61a!important;color:#0f172a!important}.select-light .select-option-selected{background:#3b82f626!important;color:#1d4ed8!important}.select-variant-default.select-disabled .select-trigger{background:var(--color-surface-tertiary)}.select-variant-filled .select-trigger{background:var(--color-surface-secondary);border:2px solid transparent;border-radius:var(--border-radius-md);border-bottom-color:var(--color-border);border-bottom-left-radius:0;border-bottom-right-radius:0}.select-variant-filled.select-open .select-trigger,.select-variant-filled .select-trigger:hover:not(.select-disabled .select-trigger){border-bottom-color:var(--color-primary);background:var(--color-surface)}.select-variant-filled.select-error .select-trigger{border-bottom-color:var(--color-danger)}.select-variant-outlined .select-trigger{background:transparent;border:2px solid var(--color-border);border-radius:var(--border-radius-md)}.select-variant-outlined.select-open .select-trigger,.select-variant-outlined .select-trigger:hover:not(.select-disabled .select-trigger){border-color:var(--color-primary)}.select-variant-outlined.select-error .select-trigger{border-color:var(--color-danger)}.select-value{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select-placeholder{color:var(--color-text-tertiary)}.select-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--color-text-tertiary);transition:color var(--transition-normal)}.select-open .select-icon{color:var(--color-primary)}.select-icon-left,.select-icon-right{width:20px;height:20px}.select-arrow{transition:transform var(--transition-normal)}.select-open .select-arrow{transform:rotate(180deg)}.select-dropdown{position:absolute;top:calc(100% + var(--spacing-xs));left:0;right:0;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--border-radius-md);box-shadow:var(--shadow-lg);overflow:hidden;z-index:var(--z-dropdown);animation:dropdownSlideDown var(--transition-normal)}@keyframes dropdownSlideDown{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.select-search{position:relative;padding:var(--spacing-sm);border-bottom:1px solid var(--color-border);background:var(--color-surface-secondary)}.select-search-input{width:100%;padding:var(--spacing-sm) var(--spacing-md);padding-left:var(--spacing-2xl);font-family:var(--font-family-base);font-size:var(--font-size-sm);color:var(--color-text-primary);background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--border-radius-sm);outline:none;transition:border-color var(--transition-fast)}.select-search-input:focus{border-color:var(--color-primary)}.select-search svg{position:absolute;left:var(--spacing-lg);top:50%;transform:translateY(-50%);color:var(--color-text-tertiary);pointer-events:none}.select-options{max-height:inherit;overflow-y:auto;padding:var(--spacing-xs)}.select-options::-webkit-scrollbar{width:8px}.select-options::-webkit-scrollbar-track{background:var(--color-surface-secondary);border-radius:var(--border-radius-sm)}.select-options::-webkit-scrollbar-thumb{background:var(--color-border);border-radius:var(--border-radius-sm)}.select-options::-webkit-scrollbar-thumb:hover{background:var(--color-text-tertiary)}.select-group-label{padding:var(--spacing-sm) var(--spacing-md);font-size:var(--font-size-xs);font-weight:var(--font-weight-bold);color:var(--color-text-tertiary);text-transform:uppercase;letter-spacing:.05em;margin-top:var(--spacing-sm)}.select-group-label:first-child{margin-top:0}.select-option{display:flex;align-items:center;gap:var(--spacing-sm);padding:var(--spacing-sm) var(--spacing-md);cursor:pointer;border-radius:var(--border-radius-sm);transition:all var(--transition-fast);font-size:var(--font-size-sm);color:var(--color-text-primary)}.select-option:hover:not(.select-option-disabled){background:var(--color-surface-secondary)}.select-option-focused{background:var(--color-surface-secondary);outline:2px solid var(--color-primary-alpha);outline-offset:-2px}.select-option-selected{background:var(--color-primary-alpha);color:var(--color-primary);font-weight:var(--font-weight-medium)}.select-option-disabled{cursor:not-allowed;opacity:.5;pointer-events:none}.select-option-empty{cursor:default;color:var(--color-text-tertiary);text-align:center;padding:var(--spacing-lg);pointer-events:none}.select-option-label{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select-checkbox{display:flex;align-items:center;justify-content:center;width:18px;height:18px;border:2px solid var(--color-border);border-radius:var(--border-radius-sm);flex-shrink:0;transition:all var(--transition-fast)}.select-option-selected .select-checkbox{background:var(--color-primary);border-color:var(--color-primary);color:#fff}.select-check-icon{display:flex;align-items:center;justify-content:center;width:18px;height:18px;color:var(--color-primary);flex-shrink:0}.select-message{display:block;font-size:var(--font-size-sm);line-height:var(--line-height-sm);padding-left:var(--spacing-sm)}.select-error-message{color:var(--color-danger);font-weight:var(--font-weight-medium);animation:slideDown var(--transition-normal)}.select-helper-text{color:var(--color-text-tertiary)}@keyframes slideDown{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}@media (max-width: 768px){.select-dropdown{max-height:60vh!important}}@media (prefers-reduced-motion: reduce){.select-trigger,.select-arrow,.select-option,.select-dropdown{transition:none;animation:none}}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000bf;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:var(--spacing-lg);z-index:var(--z-modal);animation:fadeIn var(--transition-normal);overflow-y:auto}.modal-content{position:relative;background:var(--color-background);border-radius:var(--border-radius-lg);box-shadow:var(--shadow-2xl);display:flex;flex-direction:column;max-height:calc(100vh - var(--spacing-2xl));animation:modalSlideUp var(--transition-normal);outline:none}@keyframes modalSlideUp{0%{opacity:0;transform:translateY(20px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}.modal-size-sm{width:100%;max-width:400px}.modal-size-md{width:100%;max-width:600px}.modal-size-lg{width:100%;max-width:800px}.modal-size-xl{width:100%;max-width:1200px}.modal-size-full{width:calc(100vw - var(--spacing-2xl));height:calc(100vh - var(--spacing-2xl));max-width:none;max-height:none}.modal-header{display:flex;align-items:center;justify-content:space-between;gap:var(--spacing-lg);padding:var(--spacing-xl);border-bottom:1px solid var(--color-border);flex-shrink:0}.modal-title{margin:0;font-size:var(--font-size-xl);font-weight:var(--font-weight-semibold);color:var(--color-text-primary);line-height:var(--line-height-xl);font-family:var(--font-family-heading)}.modal-close-button{all:unset;display:flex;align-items:center;justify-content:center;width:32px;height:32px;color:var(--color-text-secondary);border-radius:var(--border-radius-md);cursor:pointer;transition:all var(--transition-fast);flex-shrink:0}.modal-close-button:hover{background:var(--color-surface-secondary);color:var(--color-text-primary)}.modal-close-button:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}.modal-close-button:active{transform:scale(.95)}.modal-body{flex:1;padding:var(--spacing-xl);overflow-y:auto;overflow-x:visible;color:var(--color-text-primary);font-size:var(--font-size-base);line-height:var(--line-height-base)}.modal-body .select-container.select-open{overflow:visible}.modal-body::-webkit-scrollbar{width:8px}.modal-body::-webkit-scrollbar-track{background:var(--color-surface-secondary);border-radius:var(--border-radius-sm)}.modal-body::-webkit-scrollbar-thumb{background:var(--color-border);border-radius:var(--border-radius-sm)}.modal-body::-webkit-scrollbar-thumb:hover{background:var(--color-text-tertiary)}.modal-footer{display:flex;align-items:center;justify-content:flex-end;gap:var(--spacing-md);padding:var(--spacing-xl);border-top:1px solid var(--color-border);flex-shrink:0;flex-wrap:wrap}@media (max-width: 768px){.modal-overlay{padding:var(--spacing-md)}.modal-content{max-height:calc(100vh - var(--spacing-lg))}.modal-size-sm,.modal-size-md,.modal-size-lg,.modal-size-xl{max-width:100%}.modal-size-full{width:calc(100vw - var(--spacing-lg));height:calc(100vh - var(--spacing-lg))}.modal-header{padding:var(--spacing-lg)}.modal-title{font-size:var(--font-size-lg)}.modal-body{padding:var(--spacing-lg)}.modal-footer{padding:var(--spacing-lg);flex-direction:column-reverse}.modal-footer>*{width:100%}}@media (max-width: 480px){.modal-overlay{padding:0;align-items:flex-end}.modal-content{border-bottom-left-radius:0;border-bottom-right-radius:0;max-height:90vh}.modal-size-full{width:100vw;height:100vh;border-radius:0}}@media (prefers-reduced-motion: reduce){.modal-overlay,.modal-content{animation:none}.modal-close-button{transition:none}}@media (prefers-color-scheme: dark){.modal-overlay{background:#000000d9}}@media print{.modal-overlay{display:none}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.spinner{display:inline-block;position:relative}.spinner-sm{width:20px;height:20px}.spinner-md{width:32px;height:32px}.spinner-lg{width:48px;height:48px}.spinner-xl{width:64px;height:64px}.spinner-svg{animation:spin 1s linear infinite;width:100%;height:100%}.spinner-circle{stroke:var(--color-primary);stroke-linecap:round;stroke-dasharray:90,150;stroke-dashoffset:0;animation:spinnerDash 1.5s ease-in-out infinite}.spinner-primary .spinner-circle{stroke:var(--color-primary)}.spinner-secondary .spinner-circle{stroke:var(--color-secondary)}.spinner-white .spinner-circle{stroke:var(--color-text-primary)}@keyframes spinnerDash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}.spinner-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;-webkit-backdrop-filter:var(--backdrop-blur-base);backdrop-filter:var(--backdrop-blur-base);display:flex;align-items:center;justify-content:center;z-index:var(--z-modal);animation:fadeIn var(--duration-base) var(--ease-out)}.dots-loader{display:inline-flex;align-items:center;gap:var(--space-2)}.dots-loader-dot{border-radius:var(--radius-full);animation:dotsPulse 1.4s ease-in-out infinite}.dots-loader-sm .dots-loader-dot{width:6px;height:6px}.dots-loader-md .dots-loader-dot{width:8px;height:8px}.dots-loader-lg .dots-loader-dot{width:10px;height:10px}.dots-loader-primary .dots-loader-dot{background:var(--color-primary)}.dots-loader-secondary .dots-loader-dot{background:var(--color-secondary)}.dots-loader-white .dots-loader-dot{background:var(--color-text-primary)}.dots-loader-dot:nth-child(2){animation-delay:.2s}.dots-loader-dot:nth-child(3){animation-delay:.4s}@keyframes dotsPulse{0%,80%,to{opacity:.3;transform:scale(.8)}40%{opacity:1;transform:scale(1)}}.progress-bar-container{width:100%}.progress-bar-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--space-2)}.progress-bar-label{font-size:var(--text-sm);font-weight:var(--font-medium);color:var(--color-text-primary)}.progress-bar-percentage{font-size:var(--text-sm);font-weight:var(--font-semibold);color:var(--color-text-secondary)}.progress-bar{width:100%;background:var(--color-surface-hover);border-radius:var(--radius-full);overflow:hidden}.progress-bar-sm{height:4px}.progress-bar-md{height:8px}.progress-bar-lg{height:12px}.progress-bar-fill{height:100%;border-radius:var(--radius-full);transition:width var(--duration-medium) var(--ease-out)}.progress-bar-fill-primary{background:var(--gradient-primary)}.progress-bar-fill-secondary{background:var(--gradient-secondary)}.progress-bar-fill-success{background:var(--color-success)}.progress-bar-fill-warning{background:var(--color-warning)}.progress-bar-fill-error{background:var(--color-error)}.progress-circle{position:relative;display:inline-flex;align-items:center;justify-content:center}.progress-circle-sm{width:40px;height:40px}.progress-circle-md{width:60px;height:60px}.progress-circle-lg{width:80px;height:80px}.progress-circle-xl{width:120px;height:120px}.progress-circle-svg{transform:rotate(-90deg);width:100%;height:100%}.progress-circle-bg{stroke:var(--color-surface-hover)}.progress-circle-fill{transition:stroke-dashoffset var(--duration-medium) var(--ease-out);stroke-linecap:round}.progress-circle-fill-primary{stroke:var(--color-primary)}.progress-circle-fill-secondary{stroke:var(--color-secondary)}.progress-circle-fill-success{stroke:var(--color-success)}.progress-circle-fill-warning{stroke:var(--color-warning)}.progress-circle-fill-error{stroke:var(--color-error)}.progress-circle-text{position:absolute;font-size:var(--text-sm);font-weight:var(--font-bold);color:var(--color-text-primary)}.progress-circle-lg .progress-circle-text,.progress-circle-xl .progress-circle-text{font-size:var(--text-base)}.skeleton{background:linear-gradient(90deg,var(--color-surface) 25%,var(--color-surface-hover) 50%,var(--color-surface) 75%);background-size:200% 100%;animation:shimmer 1.5s ease-in-out infinite;border-radius:var(--radius-base);margin-bottom:var(--space-2)}.skeleton:last-child{margin-bottom:0}.skeleton-circle{border-radius:var(--radius-full)}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.skeleton-text{display:flex;flex-direction:column;gap:var(--space-2)}.skeleton-card{background:var(--color-surface);border-radius:var(--radius-md);overflow:hidden;box-shadow:var(--shadow-base)}.skeleton-card-image{width:100%;margin-bottom:0;border-radius:0}.skeleton-card-content{padding:var(--space-4)}.skeleton-card-header{display:flex;align-items:center;gap:var(--space-3);margin-bottom:var(--space-3)}.skeleton-card-header-text{flex:1;display:flex;flex-direction:column;gap:var(--space-2)}.skeleton-list{display:flex;flex-direction:column;gap:var(--space-3)}.skeleton-list-item{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-3);background:var(--color-surface);border-radius:var(--radius-base)}.skeleton-list-content{flex:1;display:flex;flex-direction:column;gap:var(--space-2)}.skeleton-table{background:var(--color-surface);border-radius:var(--radius-md);padding:var(--space-4)}.skeleton-table-header{display:grid;gap:var(--space-3);grid-template-columns:repeat(auto-fit,minmax(100px,1fr));margin-bottom:var(--space-4);padding-bottom:var(--space-3);border-bottom:1px solid var(--color-border)}.skeleton-table-row{display:grid;gap:var(--space-3);grid-template-columns:repeat(auto-fit,minmax(100px,1fr));padding:var(--space-3) 0;border-bottom:1px solid var(--color-border)}.skeleton-table-row:last-child{border-bottom:none}.loading-page{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;padding:var(--space-8);gap:var(--space-4)}.loading-page-message{font-size:var(--text-lg);font-weight:var(--font-medium);color:var(--color-text-secondary);margin:0}.container{width:100%;margin-left:auto;margin-right:auto;padding-left:var(--space-4);padding-right:var(--space-4)}.container-sm{max-width:var(--container-sm)}.container-md{max-width:var(--container-md)}.container-lg{max-width:var(--container-lg)}.container-xl{max-width:var(--container-xl)}.container-2xl{max-width:var(--container-2xl)}.container-full{max-width:100%}.stack{display:flex}.stack-direction-row{flex-direction:row}.stack-direction-column{flex-direction:column}.stack-align-start{align-items:flex-start}.stack-align-center{align-items:center}.stack-align-end{align-items:flex-end}.stack-align-stretch{align-items:stretch}.stack-justify-start{justify-content:flex-start}.stack-justify-center{justify-content:center}.stack-justify-end{justify-content:flex-end}.stack-justify-between{justify-content:space-between}.stack-justify-around{justify-content:space-around}.stack-justify-evenly{justify-content:space-evenly}.stack-spacing-0{gap:var(--space-0)}.stack-spacing-1{gap:var(--space-1)}.stack-spacing-2{gap:var(--space-2)}.stack-spacing-3{gap:var(--space-3)}.stack-spacing-4{gap:var(--space-4)}.stack-spacing-5{gap:var(--space-5)}.stack-spacing-6{gap:var(--space-6)}.stack-spacing-8{gap:var(--space-8)}.stack-spacing-10{gap:var(--space-10)}.stack-spacing-12{gap:var(--space-12)}.stack-wrap{flex-wrap:wrap}.grid{display:grid}.grid-columns-1{grid-template-columns:repeat(1,1fr)}.grid-columns-2{grid-template-columns:repeat(2,1fr)}.grid-columns-3{grid-template-columns:repeat(3,1fr)}.grid-columns-4{grid-template-columns:repeat(4,1fr)}.grid-columns-6{grid-template-columns:repeat(6,1fr)}.grid-columns-12{grid-template-columns:repeat(12,1fr)}.grid-spacing-0{gap:var(--space-0)}.grid-spacing-1{gap:var(--space-1)}.grid-spacing-2{gap:var(--space-2)}.grid-spacing-3{gap:var(--space-3)}.grid-spacing-4{gap:var(--space-4)}.grid-spacing-5{gap:var(--space-5)}.grid-spacing-6{gap:var(--space-6)}.grid-spacing-8{gap:var(--space-8)}@media (max-width: 1024px){.grid-responsive.grid-columns-4,.grid-responsive.grid-columns-6,.grid-responsive.grid-columns-12{grid-template-columns:repeat(3,1fr)}}@media (max-width: 768px){.grid-responsive.grid-columns-3,.grid-responsive.grid-columns-4,.grid-responsive.grid-columns-6,.grid-responsive.grid-columns-12{grid-template-columns:repeat(2,1fr)}}@media (max-width: 480px){.grid-responsive.grid-columns-2,.grid-responsive.grid-columns-3,.grid-responsive.grid-columns-4,.grid-responsive.grid-columns-6,.grid-responsive.grid-columns-12{grid-template-columns:1fr}}.grid-item{display:block}.spacer{flex-shrink:0}.spacer-vertical{width:100%}.spacer-horizontal{height:100%}.spacer-both{display:block}.spacer-1{--spacer-size: var(--space-1)}.spacer-2{--spacer-size: var(--space-2)}.spacer-3{--spacer-size: var(--space-3)}.spacer-4{--spacer-size: var(--space-4)}.spacer-5{--spacer-size: var(--space-5)}.spacer-6{--spacer-size: var(--space-6)}.spacer-8{--spacer-size: var(--space-8)}.spacer-10{--spacer-size: var(--space-10)}.spacer-12{--spacer-size: var(--space-12)}.spacer-16{--spacer-size: var(--space-16)}.spacer-20{--spacer-size: var(--space-20)}.spacer-24{--spacer-size: var(--space-24)}.spacer-vertical{height:var(--spacer-size)}.spacer-horizontal{width:var(--spacer-size)}.spacer-both{width:var(--spacer-size);height:var(--spacer-size)}.divider{border:none;background:var(--color-border)}.divider-horizontal{width:100%;height:1px}.divider-vertical{width:1px;height:100%}.divider-spacing-0{margin:var(--space-0)}.divider-spacing-1{margin:var(--space-1) 0}.divider-spacing-2{margin:var(--space-2) 0}.divider-spacing-3{margin:var(--space-3) 0}.divider-spacing-4{margin:var(--space-4) 0}.divider-spacing-6{margin:var(--space-6) 0}.divider-spacing-8{margin:var(--space-8) 0}.divider-with-label{display:flex;align-items:center;gap:var(--space-3)}.divider-with-label .divider{flex:1;margin:0}.divider-label{font-size:var(--text-sm);font-weight:var(--font-medium);color:var(--color-text-muted);white-space:nowrap}.box{display:block}.box-padding-0{padding:var(--space-0)}.box-padding-1{padding:var(--space-1)}.box-padding-2{padding:var(--space-2)}.box-padding-3{padding:var(--space-3)}.box-padding-4{padding:var(--space-4)}.box-padding-5{padding:var(--space-5)}.box-padding-6{padding:var(--space-6)}.box-padding-8{padding:var(--space-8)}.center{display:flex;align-items:center;justify-content:center}:root{--v5-bg-dark: #0a0a0a;--v5-bg-darker: #0a0a0a;--v5-bg-card: #1a1a1a;--v5-bg-card-hover: #242424;--v5-neon-cyan: #00ffff;--v5-neon-pink: #ff007f;--v5-neon-purple: #bf00ff;--v5-neon-blue: #4a9eff;--v5-neon-green: #00ff88;--v5-text-primary: #ffffff;--v5-text-secondary: #b0b0b0;--v5-text-muted: #6b7280;--v5-border: rgba(255, 255, 255, .1);--v5-border-bright: rgba(0, 255, 255, .3);--v5-gradient-1: linear-gradient(135deg, #1e3a8a, #7c3aed);--v5-gradient-2: linear-gradient(135deg, #065f46, #059669);--v5-gradient-3: linear-gradient(135deg, #7c2d12, #ea580c)}.lobby-container{min-height:100vh;background:var(--v5-bg-dark);padding:12px 12px 80px;color:var(--v5-text-primary);overflow-x:hidden}@media (min-width: 768px){.lobby-container{padding:24px}}.lobby-action-cards-grid{display:grid;grid-template-columns:1fr;gap:12px;max-width:1200px;margin:0 auto 24px}@media (min-width: 480px){.lobby-action-cards-grid{grid-template-columns:repeat(2,1fr);gap:12px}}@media (min-width: 768px){.lobby-action-cards-grid{grid-template-columns:repeat(4,1fr);gap:16px}}.lobby-action-btn{position:relative;width:100%;min-height:100px;padding:20px;background:linear-gradient(135deg,var(--v5-bg-card) 0%,var(--v5-bg-darker) 100%);border:2px solid var(--v5-border);border-radius:16px;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 16px #00000080;overflow:visible}.lobby-action-btn:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,var(--v5-neon-cyan),var(--v5-neon-purple),var(--v5-neon-pink));opacity:0;transition:opacity .3s ease;border-radius:16px 16px 0 0}.lobby-action-btn:hover{transform:translateY(-4px);border-color:var(--v5-border-bright);box-shadow:0 8px 24px #0009,0 0 30px #0ff3}.lobby-action-btn:hover:before{opacity:1}.lobby-action-btn:active{transform:translateY(-2px)}.lobby-action-btn:disabled{opacity:.6;cursor:not-allowed;transform:none}.lobby-action-btn-content{display:flex;align-items:center;gap:12px;width:100%}@media (max-width: 479px){.lobby-action-btn-content{justify-content:center}}.lobby-action-btn-icon{width:32px;height:32px;flex-shrink:0;filter:drop-shadow(0 0 10px rgba(0,255,255,.4));transition:filter .3s ease}@media (min-width: 768px){.lobby-action-btn-icon{width:40px;height:40px}}.lobby-action-btn:hover .lobby-action-btn-icon{filter:drop-shadow(0 0 20px rgba(0,255,255,.8))}.lobby-action-btn-text{font-size:15px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;background:linear-gradient(135deg,var(--v5-neon-cyan),var(--v5-neon-purple));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;white-space:nowrap}@media (min-width: 768px){.lobby-action-btn-text{font-size:16px}}.lobby-action-btn--primary .lobby-action-btn-icon{filter:drop-shadow(0 0 10px rgba(0,255,255,.5))}.lobby-action-btn--primary:hover .lobby-action-btn-icon{filter:drop-shadow(0 0 20px rgba(0,255,255,.8))}.lobby-action-btn--secondary .lobby-action-btn-icon{filter:drop-shadow(0 0 10px rgba(0,255,136,.5))}.lobby-action-btn--secondary:hover .lobby-action-btn-icon{filter:drop-shadow(0 0 20px rgba(0,255,136,.8))}.lobby-action-btn--tertiary .lobby-action-btn-icon{filter:drop-shadow(0 0 10px rgba(255,0,127,.5))}.lobby-action-btn--tertiary:hover .lobby-action-btn-icon{filter:drop-shadow(0 0 20px rgba(255,0,127,.8))}.lobby-action-btn--quaternary .lobby-action-btn-icon{filter:drop-shadow(0 0 10px rgba(191,0,255,.5))}.lobby-action-btn--quaternary:hover .lobby-action-btn-icon{filter:drop-shadow(0 0 20px rgba(191,0,255,.8))}.lobby-status-banner{max-width:1200px;margin:0 auto 24px;padding:14px 20px;background:#00ffff1a;border:1px solid rgba(0,255,255,.3);border-radius:10px;font-size:14px;font-weight:500;color:var(--v5-neon-cyan);text-align:center;box-shadow:0 0 20px #00ffff1a}.lobby-section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;margin-top:24px;padding:0 4px}.lobby-section-title{font-size:18px;font-weight:700;margin:0;text-transform:uppercase;letter-spacing:.5px;background:linear-gradient(135deg,var(--v5-text-primary),var(--v5-text-secondary));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}@media (min-width: 768px){.lobby-section-title{font-size:24px}}.lobby-match-card{background:var(--v5-bg-card);border:1px solid var(--v5-border);border-radius:12px;overflow:hidden;transition:all .3s ease;box-shadow:0 2px 8px #0006}.lobby-match-card:hover{border-color:var(--v5-border-bright);box-shadow:0 4px 16px #0009,0 0 20px #00ffff1a;transform:translateY(-2px)}.lobby-match-card--live{border-color:#ff007f66;background:linear-gradient(135deg,var(--v5-bg-card) 0%,rgba(255,0,127,.05) 100%)}.lobby-match-card--live:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--v5-neon-pink),var(--v5-neon-purple));animation:pulse-glow 2s ease-in-out infinite}@keyframes pulse-glow{0%,to{opacity:.6}50%{opacity:1}}.lobby-match-content{display:grid;grid-template-columns:auto 1fr auto auto;gap:16px;padding:20px;align-items:center}@media (max-width: 768px){.lobby-match-content{grid-template-columns:auto 1fr;gap:12px}.lobby-match-meta,.lobby-match-status{grid-column:1 / -1}}.lobby-match-host{flex-shrink:0}.lobby-match-avatar{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:700;background:linear-gradient(135deg,var(--v5-neon-cyan),var(--v5-neon-purple));color:var(--v5-bg-dark);box-shadow:0 0 20px #0ff6;border:2px solid var(--v5-bg-dark)}.lobby-match-avatar--blue{background:linear-gradient(135deg,#3b82f6,#1d4ed8)}.lobby-match-avatar--green{background:linear-gradient(135deg,#10b981,#059669)}.lobby-match-avatar--red{background:linear-gradient(135deg,#ef4444,#dc2626)}.lobby-match-avatar--purple{background:linear-gradient(135deg,#a855f7,#7c3aed)}.lobby-match-avatar--yellow{background:linear-gradient(135deg,#f59e0b,#d97706)}.lobby-match-avatar--neutral{background:linear-gradient(135deg,#6b7280,#4b5563)}.lobby-match-info{min-width:0}.lobby-match-host-name{font-size:18px;font-weight:600;margin:0 0 4px;color:var(--v5-text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lobby-match-game-type{font-size:13px;color:var(--v5-text-muted);margin:0;font-weight:500}.lobby-match-meta{display:flex;gap:16px;align-items:center}@media (max-width: 768px){.lobby-match-meta{display:flex;justify-content:space-between;width:100%}}.lobby-match-meta-item{font-size:13px;color:var(--v5-text-secondary);display:flex;align-items:center;gap:4px}.lobby-match-meta-item strong{color:var(--v5-text-primary);font-weight:600}.lobby-match-status{display:flex;align-items:center;gap:12px}@media (max-width: 768px){.lobby-match-status{width:100%;justify-content:space-between}}.lobby-status-badge{padding:6px 12px;border-radius:6px;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;white-space:nowrap}.lobby-status-badge--waiting{background:#10b98126;color:#10b981;border:1px solid rgba(16,185,129,.3)}.lobby-status-badge--in-progress{background:#ff007f26;color:var(--v5-neon-pink);border:1px solid rgba(255,0,127,.3);animation:pulse-badge 2s ease-in-out infinite}@keyframes pulse-badge{0%,to{opacity:.8}50%{opacity:1}}.lobby-empty-state{padding:60px 20px;text-align:center;background:var(--v5-bg-card);border:1px dashed var(--v5-border);border-radius:12px}.lobby-empty-icon{font-size:64px;margin-bottom:16px;opacity:.5}.lobby-empty-state h3{font-size:20px;font-weight:600;margin:0 0 8px;color:var(--v5-text-primary)}.lobby-empty-state p{font-size:14px;color:var(--v5-text-muted);margin:0 0 24px}@media (max-width: 480px){.lobby-container{padding:12px 12px 80px}.lobby-section-title{font-size:18px}.lobby-match-content{padding:14px}.lobby-match-avatar{width:40px;height:40px;font-size:18px}.lobby-match-host-name{font-size:15px}}@keyframes shimmer{0%{background-position:-1000px 0}to{background-position:1000px 0}}.lobby-container::-webkit-scrollbar{width:10px}.lobby-container::-webkit-scrollbar-track{background:var(--v5-bg-darker)}.lobby-container::-webkit-scrollbar-thumb{background:linear-gradient(180deg,var(--v5-neon-cyan),var(--v5-neon-purple));border-radius:5px}.lobby-container::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,var(--v5-neon-cyan),var(--v5-neon-pink))}.lobby-modal-section{display:flex;flex-direction:column;gap:8px;position:relative}.lobby-modal-section .select-container{position:relative}.lobby-modal-label{font-size:.875rem;font-weight:600;color:var(--v5-text-secondary);text-transform:uppercase;letter-spacing:.05em}.lobby-modal-help-text{font-size:.8125rem;color:var(--v5-text-muted);margin:0}.lobby-modal-footer{display:flex;gap:12px;width:100%;margin-top:8px}.lobby-modal-footer>button:first-child{flex:1}.lobby-modal-footer>button:last-child{flex:2}.deckbuilder.content-panel{padding:var(--page-padding);min-height:100vh;background:var(--color-bg)}.deckbuilder-header{margin-bottom:var(--section-gap)}.deckbuilder-header h2{font-size:var(--text-heading-1);font-weight:var(--font-bold);color:var(--color-text-primary);margin:0}.deckbuilder-layout{display:grid;grid-template-columns:320px 360px 1fr 340px;gap:var(--space-6);align-items:start;max-width:1920px;margin:0 auto}.deckbuilder-column,.deckbuilder-center,.deck-hub-sidebar{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);overflow:hidden;display:flex;flex-direction:column}.deckbuilder-filters{height:calc(100vh - 140px);position:sticky;top:var(--space-4)}.card-pool-search{display:block;padding:4px 12px;border-bottom:1px solid var(--color-border);margin:0;line-height:1;flex:0 0 auto;min-height:0;max-height:fit-content}.card-pool-search input{width:100%;padding:6px 8px;background:var(--color-bg);border:1px solid var(--color-border);border-radius:var(--radius-base);color:var(--color-text-primary);font-size:var(--text-base)}.card-pool-search input:focus{outline:none;border-color:var(--color-primary)}.left-card-grid{flex:1;overflow-y:auto;padding:var(--space-3);display:grid;grid-template-columns:repeat(2,1fr);gap:var(--space-2);align-content:start;min-height:400px}.card-pool-empty{grid-column:span 2;padding:var(--space-8);text-align:center;color:var(--color-text-tertiary)}.card-pool-tile{position:relative;border-radius:var(--radius-md);overflow:hidden;background:var(--color-bg);cursor:pointer;transition:var(--transition-base);min-height:200px}.card-pool-tile:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}.card-pool-tile:focus{outline:2px solid var(--color-primary);outline-offset:2px}.card-thumb{width:100%;aspect-ratio:5 / 7;background:var(--color-surface-hover);display:flex;align-items:center;justify-content:center;overflow:hidden}.card-thumb img{width:100%;height:100%;object-fit:cover;transition:var(--transition-base)}.card-pool-tile:hover .card-thumb img{filter:brightness(.9)}.card-thumb-placeholder{padding:var(--space-2);font-size:var(--text-xs);color:var(--color-text-muted);text-align:center}.card-hover-overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(to top,#000c,#0000 50%);display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:var(--space-3);gap:var(--space-2);opacity:0;transition:opacity var(--duration-base);pointer-events:none}.card-pool-tile:hover .card-hover-overlay,.card-pool-tile:focus-within .card-hover-overlay{opacity:1;pointer-events:auto}.overlay-btn{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-sm);padding:var(--space-2) var(--space-3);color:var(--color-text-primary);font-size:var(--text-sm);font-weight:var(--font-semibold);cursor:pointer;transition:var(--transition-colors)}.overlay-btn:hover{background:var(--color-primary);border-color:var(--color-primary);color:#fff}.overlay-btn:disabled{opacity:.5;cursor:not-allowed}.overlay-count-controls{display:flex;align-items:center;gap:var(--space-2);background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-sm);padding:var(--space-1)}.overlay-count{min-width:24px;text-align:center;font-weight:var(--font-bold);color:var(--color-text-primary)}.overlay-minus,.overlay-plus{width:28px;height:28px;padding:0;display:flex;align-items:center;justify-content:center;font-size:var(--text-lg)}.card-count-badge{position:absolute;top:var(--space-2);right:var(--space-2);width:28px;height:28px;display:flex;align-items:center;justify-content:center;background:var(--color-primary);color:#fff;font-size:var(--text-sm);font-weight:var(--font-bold);border-radius:var(--radius-full);box-shadow:var(--shadow-base);pointer-events:none}.card-pool-footer{padding:var(--space-4);border-top:1px solid var(--color-border);display:flex;flex-direction:column;gap:var(--space-3)}.cards-shown-control{display:flex;align-items:center;gap:var(--space-2);font-size:var(--text-sm)}.cards-shown-control label{color:var(--color-text-secondary)}.cards-shown-control input[type=range]{flex:1}.cards-shown-value{min-width:32px;text-align:center;font-weight:var(--font-semibold);color:var(--color-text-primary)}.pagination-controls{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2)}.pagination-controls button{padding:var(--space-2) var(--space-4);background:var(--color-surface-hover);border:1px solid var(--color-border);border-radius:var(--radius-base);color:var(--color-text-primary);font-size:var(--text-sm);cursor:pointer;transition:var(--transition-colors)}.pagination-controls button:hover:not(:disabled){background:var(--color-primary);border-color:var(--color-primary);color:#fff}.pagination-controls button:disabled{opacity:.4;cursor:not-allowed}.pagination-controls span{font-size:var(--text-sm);color:var(--color-text-secondary)}.deckbuilder-viewer{height:calc(100vh - 140px);position:sticky;top:var(--space-4)}.card-preview-shell{padding:var(--space-4);border-bottom:1px solid var(--color-border);display:flex;flex-direction:column;gap:var(--space-3)}.card-preview-media{width:100%;aspect-ratio:5 / 7;background:var(--color-bg);border-radius:var(--radius-md);overflow:hidden;display:flex;align-items:center;justify-content:center}.card-preview-media img{width:100%;height:100%;object-fit:contain}.card-preview-placeholder,.card-preview-empty{padding:var(--space-6);text-align:center;color:var(--color-text-tertiary);font-size:var(--text-sm)}.card-preview-info{display:flex;flex-direction:column;gap:var(--space-2)}.card-preview-name{font-size:var(--text-lg);font-weight:var(--font-semibold);color:var(--color-text-primary)}.card-preview-meta{display:flex;gap:var(--space-3);font-size:var(--text-sm);color:var(--color-text-tertiary)}.filters-body{flex:1;overflow-y:auto;padding:var(--space-4)}.filter-group{display:flex;flex-direction:column;gap:var(--space-3)}.filter-options{display:flex;flex-wrap:wrap;gap:var(--space-2)}.filter-chip{padding:var(--space-2) var(--space-3);background:var(--color-surface-hover);border:1px solid var(--color-border);border-radius:var(--radius-base);color:var(--color-text-secondary);font-size:var(--text-sm);font-weight:var(--font-medium);cursor:pointer;transition:var(--transition-colors)}.filter-chip:hover{background:var(--color-surface-active);color:var(--color-text-primary)}.filter-chip.is-active{background:var(--color-primary);border-color:var(--color-primary);color:#fff}.filter-advanced-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--space-3)}.filter-advanced-grid label{display:flex;flex-direction:column;gap:var(--space-2);font-size:var(--text-sm);color:var(--color-text-secondary)}.filter-advanced-grid select,.filter-advanced-grid input{padding:var(--space-2);background:var(--color-bg);border:1px solid var(--color-border);border-radius:var(--radius-base);color:var(--color-text-primary);font-size:var(--text-sm)}.filters-reset{width:100%;padding:var(--space-3);background:var(--color-surface-hover);border:1px solid var(--color-border);border-radius:var(--radius-base);color:var(--color-text-primary);font-size:var(--text-sm);font-weight:var(--font-semibold);cursor:pointer;transition:var(--transition-colors)}.filters-reset:hover{background:var(--color-error);border-color:var(--color-error);color:#fff}.deckbuilder-center{min-height:calc(100vh - 140px)}.deck-list-section{height:100%;display:flex;flex-direction:column}.deck-hub-section-header{padding:var(--space-4);border-bottom:1px solid var(--color-border);display:flex;align-items:center;justify-content:space-between;font-size:var(--text-lg);font-weight:var(--font-semibold);color:var(--color-text-primary)}.deck-total{font-size:var(--text-2xl);font-weight:var(--font-bold);color:var(--color-text-tertiary)}.deck-total.is-complete{color:var(--color-success)}.deck-list-scroll{flex:1;overflow-y:auto;padding:var(--space-4)}.deck-list-empty{padding:var(--space-8);text-align:center;color:var(--color-text-tertiary)}.deck-list-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:var(--space-3)}.deck-list-grid .card-count-badge{background:#000000d9;border:1px solid rgba(255,255,255,.2)}.deck-hub-sidebar{height:calc(100vh - 140px);position:sticky;top:var(--space-4);overflow-y:auto}.deck-hub-section{padding:var(--space-4);border-bottom:1px solid var(--color-border)}.deck-hub-section:last-child{border-bottom:none}.deck-info-section,.deck-stats-section{display:flex;flex-direction:column;gap:var(--space-4)}.deck-field{display:flex;flex-direction:column;gap:var(--space-2);font-size:var(--text-sm);color:var(--color-text-secondary)}.deck-field select,.deck-field input{padding:var(--space-3);background:var(--color-bg);border:1px solid var(--color-border);border-radius:var(--radius-base);color:var(--color-text-primary);font-size:var(--text-base)}.deck-color-choices{display:flex;flex-direction:column;gap:var(--space-2);font-size:var(--text-sm);color:var(--color-text-secondary)}.deck-color-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:var(--space-2)}.color-choice{aspect-ratio:1;background:var(--color-bg);border:2px solid var(--color-border);border-radius:var(--radius-md);padding:var(--space-2);cursor:pointer;transition:var(--transition-base);display:flex;align-items:center;justify-content:center}.color-choice:hover{border-color:var(--color-primary);transform:scale(1.05)}.color-choice.is-selected{border-color:var(--color-primary);box-shadow:0 0 0 2px var(--color-primary-alpha-30)}.color-choice img{width:100%;height:100%;object-fit:contain}.deck-action-row{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--space-2)}.deck-action-row button{padding:var(--space-3);background:var(--color-surface-hover);border:1px solid var(--color-border);border-radius:var(--radius-base);color:var(--color-text-primary);font-size:var(--text-sm);font-weight:var(--font-semibold);cursor:pointer;transition:var(--transition-colors)}.deck-action-row button:hover:not(:disabled){background:var(--color-primary);border-color:var(--color-primary);color:#fff}.deck-action-row button:disabled{opacity:.4;cursor:not-allowed}.deck-status-message{padding:var(--space-3);background:var(--color-info-alpha-10);border:1px solid var(--color-info);border-radius:var(--radius-base);color:var(--color-text-secondary);font-size:var(--text-sm)}.deck-stat-line{display:flex;justify-content:space-between;align-items:center;padding:var(--space-2) 0;font-size:var(--text-sm);color:var(--color-text-secondary)}.deck-stat-line span:last-child{font-weight:var(--font-semibold);color:var(--color-text-primary)}.deck-stat-line .is-complete{color:var(--color-success)}.deck-stat-subheading{font-size:var(--text-sm);font-weight:var(--font-semibold);color:var(--color-text-tertiary);text-transform:uppercase;letter-spacing:var(--tracking-wide);margin-top:var(--space-2)}.level-curve,.color-distribution{display:flex;flex-direction:column;gap:var(--space-2)}.level-row,.color-row{display:grid;grid-template-columns:auto 1fr auto;gap:var(--space-3);align-items:center;font-size:var(--text-sm)}.level-label,.color-label{min-width:40px;color:var(--color-text-secondary)}.level-bar,.color-bar{height:8px;background:var(--color-surface-hover);border-radius:var(--radius-full);overflow:hidden}.level-bar>div,.color-bar>div{height:100%;background:var(--color-primary);transition:width var(--duration-medium)}.level-value,.color-value{min-width:28px;text-align:right;font-weight:var(--font-semibold);color:var(--color-text-primary)}.color-dot{width:12px;height:12px;border-radius:var(--radius-full);margin-right:var(--space-2)}.color-dot.color-R{background:#ef4444}.color-dot.color-B{background:#3b82f6}.color-dot.color-G{background:#10b981}.color-dot.color-Y{background:#f59e0b}.color-dot.color-P{background:#a855f7}.color-dot.color-W{background:#e5e7eb}.color-dot.color-U{background:#06b6d4}.color-empty{padding:var(--space-4);text-align:center;color:var(--color-text-muted);font-size:var(--text-sm)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000bf;display:flex;align-items:center;justify-content:center;z-index:var(--z-modal);padding:var(--space-4)}.modal{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);box-shadow:var(--shadow-2xl);max-height:90vh;overflow-y:auto}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:var(--space-4);border-bottom:1px solid var(--color-border)}.modal-header button{width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:var(--color-surface-hover);border:1px solid var(--color-border);border-radius:var(--radius-base);color:var(--color-text-primary);font-size:var(--text-lg);cursor:pointer;transition:var(--transition-colors)}.modal-header button:hover{background:var(--color-error);border-color:var(--color-error);color:#fff}.modal-body{padding:var(--space-4)}@media (max-width: 1279px) and (min-width: 768px){.deckbuilder-layout{grid-template-columns:280px minmax(280px,320px) 1fr;gap:var(--space-4)}.deck-hub-sidebar{position:fixed;right:-380px;top:0;bottom:0;width:360px;height:100vh;z-index:100;transition:right .3s ease-in-out;box-shadow:-4px 0 12px #0000004d;border-radius:0;border-right:none;overflow-y:auto}.deck-hub-sidebar.drawer-open{right:0}.drawer-toggle{position:absolute;left:-48px;top:20px;width:48px;height:48px;background:var(--color-surface);border:1px solid var(--color-border);border-right:none;border-radius:var(--radius-base) 0 0 var(--radius-base);color:var(--color-text-primary);font-size:var(--text-xl);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:var(--transition-colors);z-index:1}.drawer-toggle:hover{background:var(--color-surface-hover)}.deck-hub-sidebar.drawer-open:before{content:"";position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;z-index:-1}.deck-list-grid{grid-template-columns:repeat(3,1fr)!important;gap:var(--space-3);min-width:0}.deckbuilder-viewer .card-preview-placeholder,.deckbuilder-viewer .large-card-container img{max-width:100%;height:auto}}@media (max-width: 767px){.deckbuilder.content-panel{padding:0}.deckbuilder-header{padding:var(--space-4);margin-bottom:0;background:var(--color-surface);border-bottom:1px solid var(--color-border);position:sticky;top:0;z-index:10}.deckbuilder-header h2{font-size:var(--text-xl)}.deckbuilder-layout{display:flex;flex-direction:column;gap:0}.deckbuilder-column,.deckbuilder-center,.deck-hub-sidebar{height:auto;position:static;border-radius:0;border-left:none;border-right:none}.mobile-tabs{display:flex;background:var(--color-surface);border-bottom:1px solid var(--color-border);overflow-x:auto;position:sticky;top:64px;z-index:9}.mobile-tab{flex:1;min-width:80px;padding:var(--space-3);background:transparent;border:none;border-bottom:2px solid transparent;color:var(--color-text-tertiary);font-size:var(--text-sm);font-weight:var(--font-semibold);cursor:pointer;transition:var(--transition-colors);white-space:nowrap}.mobile-tab.is-active{color:var(--color-primary);border-bottom-color:var(--color-primary)}.deckbuilder-filters,.deckbuilder-viewer,.deckbuilder-center,.deck-hub-sidebar{display:none}.deckbuilder-filters.is-active,.deckbuilder-viewer.is-active,.deckbuilder-center.is-active,.deck-hub-sidebar.is-active{display:flex!important;flex-direction:column}.deckbuilder-filters{height:calc(100vh - 128px)}.left-card-grid{grid-template-columns:repeat(2,1fr);gap:var(--space-3);padding:var(--space-3)}.card-pool-tile{border-radius:var(--radius-sm)}.card-thumb{aspect-ratio:5 / 7;min-height:280px}.card-thumb img{width:100%;height:100%;object-fit:contain}.card-hover-overlay{opacity:1;pointer-events:auto;background:linear-gradient(to top,#000000f2,#0000 70%)}.overlay-btn{font-size:var(--text-xs);padding:var(--space-1) var(--space-2)}.overlay-count{font-size:var(--text-sm)}.deckbuilder-viewer{height:calc(100vh - 128px)}.card-preview-shell{padding:var(--space-3)}.deck-list-grid{grid-template-columns:repeat(3,1fr);gap:var(--space-2)}.deck-list-scroll{padding:var(--space-3)}.deck-hub-sidebar{height:auto;max-height:calc(100vh - 128px)}.deck-hub-section{padding:var(--space-3)}.filter-advanced-grid,.deck-action-row{grid-template-columns:1fr}.card-pool-footer{padding:var(--space-3)}.pagination-controls{flex-wrap:wrap}.modal-backdrop{padding:0}.modal{width:100vw!important;max-width:none;max-height:100vh;border-radius:0;border:none}.modal-body{padding:var(--space-3)}}:root{--dbv2-bg-dark: #0a0a0a;--dbv2-bg-card: #1a1a1a;--dbv2-bg-tertiary: #242424;--dbv2-neon-cyan: #00ffff;--dbv2-neon-pink: #ff007f;--dbv2-neon-purple: #bf00ff;--dbv2-neon-green: #00ff88;--dbv2-text-primary: #ffffff;--dbv2-text-secondary: #b0b0b0;--dbv2-text-muted: #6b7280;--dbv2-border: rgba(0, 255, 255, .3);--dbv2-border-dim: rgba(255, 255, 255, .1);--dbv2-shadow-sm: 0 2px 8px rgba(0, 0, 0, .8);--dbv2-shadow-md: 0 4px 16px rgba(0, 0, 0, .9);--dbv2-glow-cyan: 0 0 20px rgba(0, 255, 255, .6);--dbv2-glow-pink: 0 0 20px rgba(255, 0, 127, .6);--dbv2-glow-purple: 0 0 20px rgba(191, 0, 255, .6);--dbv2-glow-green: 0 0 20px rgba(0, 255, 136, .6)}.deckbuilder-v2{min-height:100vh;background:var(--dbv2-bg-dark);color:var(--dbv2-text-primary);display:flex;flex-direction:column;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}.dbv2-header{padding:16px 20px;background:var(--dbv2-bg-card);border-bottom:1px solid var(--dbv2-border-dim);position:sticky;top:0;z-index:100}.dbv2-header h1{margin:0 0 8px;font-size:24px;font-weight:700}.dbv2-message{padding:8px 12px;border-radius:8px;font-size:14px;font-weight:500}.dbv2-message.success{background:var(--dbv2-neon-green);color:#fff}.dbv2-message.error{background:var(--dbv2-neon-pink);color:#fff}.dbv2-tabs{display:flex;background:var(--dbv2-bg-card);border-bottom:1px solid var(--dbv2-border-dim);position:sticky;top:65px;z-index:99;padding:0 4px}.dbv2-tabs button{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 8px;border:none;background:none;color:var(--dbv2-text-secondary);font-size:12px;cursor:pointer;transition:all .2s ease;border-radius:8px;margin:4px;min-height:60px}.dbv2-tabs button:active{transform:scale(.95)}.dbv2-tabs button.active{background:var(--dbv2-neon-cyan);color:#fff}.dbv2-tabs button span:first-child{font-size:18px}.tab-count{background:var(--dbv2-bg-dark);color:var(--dbv2-text-primary);padding:2px 6px;border-radius:12px;font-size:11px;font-weight:700;min-width:20px}.dbv2-tabs button.active .tab-count{background:#fff3;color:#fff}.tab-count.complete{background:var(--dbv2-neon-green);color:#fff}.dbv2-content{flex:1;padding:16px 20px 24px;overflow-y:auto}.dbv2-search-tab{display:flex;flex-direction:column;gap:16px}.dbv2-search-bar{display:flex;gap:8px;align-items:center}.dbv2-search-input{flex:1;padding:12px 16px;border:1px solid var(--dbv2-border-dim);border-radius:12px;background:var(--dbv2-bg-card);color:var(--dbv2-text-primary);font-size:16px}.dbv2-search-input::placeholder{color:var(--dbv2-text-secondary)}.dbv2-search-input[style*="background: white"],.dbv2-search-input[style*="background: #fff"],.dbv2-search-input[style*="background-color: white"],.dbv2-search-input[style*="background-color: #fff"]{color:#000!important}.dbv2-search-input[style*="background: white"]::placeholder,.dbv2-search-input[style*="background: #fff"]::placeholder,.dbv2-search-input[style*="background-color: white"]::placeholder,.dbv2-search-input[style*="background-color: #fff"]::placeholder{color:#666!important}.dbv2-search-input:focus{outline:none;border-color:var(--dbv2-neon-cyan)}.dbv2-filter-toggle{padding:12px;border:1px solid var(--dbv2-border-dim);border-radius:12px;background:var(--dbv2-bg-card);color:var(--dbv2-text-primary);cursor:pointer;font-size:16px}.dbv2-filters{background:var(--dbv2-bg-card);border:1px solid var(--dbv2-border-dim);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:12px}.dbv2-filter-row{display:flex;align-items:center;gap:12px}.dbv2-filter-row label{font-weight:600;min-width:60px;font-size:14px}.dbv2-filter-row select{flex:1;padding:8px 12px;border:1px solid var(--color-border, var(--dbv2-border-dim));border-radius:8px;background:#fff;color:#0f172a;font-size:14px}[data-theme=dark] .dbv2-filter-row select{background:var(--color-bg, var(--dbv2-bg-dark));color:var(--color-text-primary, var(--dbv2-text-primary))}.dbv2-filter-row select option{color:#0f172a;background:#fff}[data-theme=dark] .dbv2-filter-row select option{color:var(--dbv2-text-primary);background:var(--dbv2-bg-dark)}.dbv2-reset-filters{padding:8px 16px;border:1px solid var(--color-border, var(--dbv2-border-dim));border-radius:8px;background:#f8f9fa;color:#0f172a;cursor:pointer;font-size:14px;align-self:flex-start;transition:background .2s ease}.dbv2-reset-filters:hover{background:#e9ecef}[data-theme=dark] .dbv2-reset-filters{background:var(--color-bg, var(--dbv2-bg-dark));color:var(--color-text-primary, var(--dbv2-text-primary))}[data-theme=dark] .dbv2-reset-filters:hover{background:var(--color-surface-hover, #1C212B)}.dbv2-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}.dbv2-card{background:var(--dbv2-bg-card);border:1px solid var(--dbv2-border-dim);border-radius:12px;overflow:hidden;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);transform:translateY(0);position:relative;z-index:1}.dbv2-card:hover{transform:translateY(-8px);box-shadow:0 8px 25px #22c55e4d,0 4px 12px #22c55e33,0 2px 6px #0000001a;z-index:10;border-color:#22c55e66}.dbv2-card:hover .dbv2-card-image{transform:scale(1.02)}.dbv2-card:active{transform:translateY(-4px) scale(.98);box-shadow:0 4px 15px #22c55e40,0 2px 8px #22c55e26}.dbv2-card.in-deck{border-color:var(--dbv2-neon-cyan);box-shadow:0 0 0 2px rgba(var(--color-primary-rgb),.2)}.dbv2-card.in-deck:hover{border-color:#22c55e;box-shadow:0 8px 30px #22c55e66,0 4px 15px #22c55e4d,0 2px 8px #0000001a,0 0 0 3px #22c55e4d;transform:translateY(-10px)}.dbv2-card-image{aspect-ratio:63/88;position:relative;overflow:hidden}.dbv2-card-image img{width:100%;height:100%;object-fit:cover;transition:transform .3s cubic-bezier(.4,0,.2,1)}.dbv2-card-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:var(--dbv2-bg-dark);color:var(--dbv2-text-secondary);font-size:12px;text-align:center;padding:8px;word-break:break-word}.dbv2-card-info{padding:8px}.dbv2-card-name{font-size:12px;font-weight:600;margin-bottom:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dbv2-card-controls{display:flex;align-items:center;gap:4px}.dbv2-btn-remove,.dbv2-btn-add{width:28px;height:28px;border:1px solid var(--dbv2-border-dim);border-radius:6px;background:var(--dbv2-bg-dark);color:var(--dbv2-text-primary);cursor:pointer;font-size:16px;font-weight:700;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.dbv2-btn-remove:disabled,.dbv2-btn-add:disabled{opacity:.4;cursor:not-allowed}.dbv2-btn-add:not(:disabled):active,.dbv2-btn-remove:not(:disabled):active{background:var(--dbv2-neon-cyan);color:#fff;transform:scale(.9)}.dbv2-count{flex:1;text-align:center;font-weight:700;font-size:14px}.dbv2-pagination{display:flex;align-items:center;justify-content:center;gap:16px;padding:16px 0}.dbv2-pagination button{padding:8px 16px;border:1px solid var(--dbv2-border-dim);border-radius:8px;background:var(--dbv2-bg-card);color:var(--dbv2-text-primary);cursor:pointer;font-size:14px;min-width:60px}.dbv2-pagination button:disabled{opacity:.4;cursor:not-allowed}.dbv2-pagination span{font-size:14px;color:var(--dbv2-text-secondary)}.dbv2-deck-tab{display:flex;flex-direction:column;gap:16px}.dbv2-deck-header{display:flex;align-items:center;gap:12px}.dbv2-deck-header h2{margin:0;font-size:20px;font-weight:700}.dbv2-complete-badge{background:var(--dbv2-neon-green);color:#fff;padding:4px 8px;border-radius:6px;font-size:12px;font-weight:600}.dbv2-empty{padding:40px 20px;text-align:center;color:var(--dbv2-text-secondary);font-style:italic}.dbv2-deck-list{display:flex;flex-direction:column;gap:8px}.dbv2-deck-item{display:flex;align-items:center;gap:12px;padding:12px;background:var(--dbv2-bg-card);border:1px solid var(--dbv2-border-dim);border-radius:12px;cursor:pointer;transition:all .2s ease}.dbv2-deck-item:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000026;border-color:var(--color-primary, #4F9EFF)}.dbv2-deck-item-image{width:40px;height:56px;border-radius:4px;overflow:hidden;flex-shrink:0}.dbv2-deck-item-image img{width:100%;height:100%;object-fit:cover}.dbv2-deck-item-info{flex:1;min-width:0}.dbv2-deck-item-name{font-weight:600;font-size:14px;margin-bottom:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dbv2-deck-item-type{font-size:12px;color:var(--dbv2-text-secondary)}.dbv2-deck-item-controls{display:flex;align-items:center;gap:8px;flex-shrink:0}.dbv2-deck-item-controls button{width:32px;height:32px;border:1px solid var(--dbv2-border-dim);border-radius:8px;background:var(--dbv2-bg-dark);color:var(--dbv2-text-primary);cursor:pointer;font-size:18px;font-weight:700;display:flex;align-items:center;justify-content:center}.dbv2-deck-item-controls span{font-weight:700;font-size:16px;min-width:20px;text-align:center}.dbv2-stats-tab{display:flex;flex-direction:column;gap:24px}.dbv2-stats-tab h2{margin:0 0 16px;font-size:20px;font-weight:700}.dbv2-stat-section{background:var(--dbv2-bg-card);border:1px solid var(--dbv2-border-dim);border-radius:12px;padding:16px}.dbv2-stat-section h3{margin:0 0 12px;font-size:16px;font-weight:600;color:var(--dbv2-text-secondary)}.dbv2-total-display{font-size:32px;font-weight:900;text-align:center;padding:16px;border-radius:8px;background:var(--dbv2-bg-dark)}.dbv2-total-display.complete{background:var(--dbv2-neon-green);color:#fff}.dbv2-level-bars,.dbv2-color-bars{display:flex;flex-direction:column;gap:8px}.dbv2-stat-bar{display:grid;grid-template-columns:40px 1fr 30px;align-items:center;gap:12px;font-size:14px}.dbv2-bar{height:20px;background:var(--dbv2-bg-dark);border-radius:10px;overflow:hidden;position:relative}.dbv2-bar-fill{height:100%;background:var(--dbv2-neon-cyan);border-radius:10px;transition:width .3s ease}.dbv2-color-dot{width:12px;height:12px;border-radius:50%;margin-right:8px}.color-R,.dbv2-bar-fill.color-R{background-color:var(--dbv2-neon-pink)}.color-B,.dbv2-bar-fill.color-B{background-color:#3b82f6}.color-G,.dbv2-bar-fill.color-G{background-color:var(--dbv2-neon-green)}.color-Y,.dbv2-bar-fill.color-Y{background-color:#f59e0b}.color-P,.dbv2-bar-fill.color-P{background-color:#8b5cf6}.color-W,.dbv2-bar-fill.color-W{background-color:#6b7280}.dbv2-settings-tab{display:flex;flex-direction:column;gap:20px}.dbv2-settings-tab h2{margin:0;font-size:20px;font-weight:700}.dbv2-setting-group{background:var(--dbv2-bg-card);border:1px solid var(--dbv2-border-dim);border-radius:12px;padding:16px}.dbv2-setting-group label{display:block;font-weight:600;margin-bottom:8px;font-size:14px}.dbv2-setting-group select,.dbv2-setting-group input{width:100%;padding:12px;border:1px solid var(--color-border, var(--dbv2-border-dim));border-radius:8px;background:#fff;color:#0f172a;font-size:16px}[data-theme=dark] .dbv2-setting-group select,[data-theme=dark] .dbv2-setting-group input{background:var(--color-bg, var(--dbv2-bg-dark));color:var(--color-text-primary, var(--dbv2-text-primary))}.dbv2-setting-group select option{color:#0f172a;background:#fff}[data-theme=dark] .dbv2-setting-group select option{color:var(--dbv2-text-primary);background:var(--dbv2-bg-dark)}.dbv2-setting-group input::placeholder{color:#64748b}[data-theme=dark] .dbv2-setting-group input::placeholder{color:var(--color-text-secondary, #CBD5E1)}.dbv2-color-icons{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:8px}.dbv2-color-icon{aspect-ratio:1;padding:8px;border:2px solid var(--dbv2-border-dim);border-radius:8px;background:var(--dbv2-bg-card);cursor:pointer;transition:all .2s ease}.dbv2-color-icon.selected{border-color:var(--dbv2-neon-cyan);background:rgba(var(--color-primary-rgb),.1)}.dbv2-color-icon img{width:100%;height:100%;object-fit:contain}.dbv2-export-buttons{display:flex;gap:12px;margin-top:8px}.dbv2-btn-export{flex:1;padding:12px 16px;border:1px solid var(--color-border, var(--dbv2-border-dim));border-radius:8px;background:#fff;color:#0f172a;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center;gap:8px}.dbv2-btn-export:hover:not(:disabled){background:#f8f9fa;border-color:var(--color-primary, #4F9EFF);transform:translateY(-1px)}.dbv2-btn-export:active:not(:disabled){transform:translateY(0)}.dbv2-btn-export:disabled{opacity:.5;cursor:not-allowed;background:#f5f5f5;color:#999}[data-theme=dark] .dbv2-btn-export{background:var(--color-bg, var(--dbv2-bg-dark));color:var(--color-text-primary, var(--dbv2-text-primary))}[data-theme=dark] .dbv2-btn-export:hover:not(:disabled){background:var(--color-surface-hover, #1C212B)}[data-theme=dark] .dbv2-btn-export:disabled{background:var(--color-surface, var(--dbv2-bg-card));color:var(--color-text-muted, #64748B)}.dbv2-actions{display:flex;flex-direction:column;gap:12px;padding-top:8px}.dbv2-btn-primary,.dbv2-btn-secondary{padding:16px 24px;border-radius:12px;font-size:16px;font-weight:600;cursor:pointer;transition:all .2s ease}.dbv2-btn-primary{background:var(--dbv2-neon-cyan);color:#fff;border:none}.dbv2-btn-primary:disabled{background:var(--dbv2-border-dim);color:var(--dbv2-text-secondary);cursor:not-allowed}.dbv2-btn-primary:not(:disabled):active{transform:scale(.98)}.dbv2-btn-secondary{background:var(--dbv2-bg-card);color:var(--dbv2-text-primary);border:1px solid var(--dbv2-border-dim)}.dbv2-btn-secondary:active{background:var(--dbv2-bg-dark);transform:scale(.98)}.dbv2-modal{position:fixed;top:0;left:0;right:0;bottom:0;background:#000c;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.dbv2-modal-content{background:var(--dbv2-bg-card);border-radius:16px;max-width:90vw;max-height:90vh;overflow:hidden;position:relative;display:flex;flex-direction:column}.dbv2-modal-close{position:absolute;top:16px;right:16px;width:40px;height:40px;border:none;background:#00000080;color:#fff;border-radius:50%;font-size:18px;cursor:pointer;z-index:10}.dbv2-preview-image{max-width:300px;max-height:420px;margin:0 auto}.dbv2-preview-image img{width:100%;height:100%;object-fit:contain}.dbv2-preview-info{padding:16px;text-align:center}.dbv2-preview-info h3{margin:0 0 8px;font-size:18px;font-weight:700}.dbv2-preview-info p{margin:4px 0;color:var(--dbv2-text-secondary);font-size:14px}.dbv2-preview-controls{display:flex;align-items:center;justify-content:center;gap:16px;padding:16px;border-top:1px solid var(--dbv2-border-dim)}.dbv2-preview-controls button{width:44px;height:44px;border:2px solid var(--dbv2-border-dim);border-radius:12px;background:var(--dbv2-bg-dark);color:var(--dbv2-text-primary);cursor:pointer;font-size:20px;font-weight:700;display:flex;align-items:center;justify-content:center}.dbv2-preview-controls span{font-weight:700;font-size:18px;min-width:40px;text-align:center}@media (min-width: 768px){.dbv2-content{padding:24px 32px}.dbv2-card-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:16px}.dbv2-tabs{position:static;justify-content:center;max-width:600px;margin:0 auto 8px;border-radius:16px}.dbv2-tabs button{min-height:70px;font-size:14px}.dbv2-actions{flex-direction:row}.dbv2-color-icons{max-width:300px}}@media (min-width: 1024px){.deckbuilder-v2{max-width:1200px;margin:0 auto}.dbv2-card-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}}input,select,textarea{color:inherit}input[style*="background: white"],input[style*="background: #fff"],input[style*="background-color: white"],input[style*="background-color: #fff"],select[style*="background: white"],select[style*="background: #fff"],select[style*="background-color: white"],select[style*="background-color: #fff"],input[style*="background: #f"],input[style*="background-color: #f"],select[style*="background: #f"],select[style*="background-color: #f"]{color:#000!important}@media (prefers-reduced-motion: reduce){.dbv2-card,.dbv2-tabs button,.dbv2-btn-primary,.dbv2-btn-secondary,.dbv2-bar-fill{transition:none}}button,.dbv2-card,.dbv2-color-icon{min-height:44px;min-width:44px}@media (prefers-contrast: high){.dbv2-card{border-width:2px}.dbv2-tabs button.active{border:2px solid white}}.dbv2-header{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.dbv2-header h1{flex:1 1 auto;margin:0}.dbv2-header-actions{display:flex;gap:8px;flex-wrap:wrap}.dbv2-header-btn{display:flex;align-items:center;gap:6px;padding:10px 16px;border-radius:8px;border:1px solid var(--dbv2-border);background:var(--dbv2-bg-tertiary);color:var(--dbv2-text-primary);font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease;white-space:nowrap}.dbv2-header-btn:hover:not(:disabled){background:var(--dbv2-bg-card);border-color:var(--dbv2-neon-cyan);box-shadow:var(--dbv2-glow-cyan)}.dbv2-header-btn:disabled{opacity:.5;cursor:not-allowed}.dbv2-header-btn--primary{background:linear-gradient(135deg,var(--dbv2-neon-cyan),var(--dbv2-neon-purple));border-color:transparent;color:#fff}.dbv2-header-btn--primary:hover:not(:disabled){background:linear-gradient(135deg,var(--dbv2-neon-purple),var(--dbv2-neon-pink));box-shadow:var(--dbv2-glow-purple)}.dbv2-modal-lg{max-width:600px;width:95%}.dbv2-modal-sm{max-width:400px;width:90%}.dbv2-modal-content h2{margin:0 0 20px;font-size:20px;font-weight:700;color:var(--dbv2-neon-cyan)}.dbv2-modal-tabs{display:flex;gap:4px;margin-bottom:16px;border-bottom:1px solid var(--dbv2-border-dim);padding-bottom:8px}.dbv2-modal-tabs button{flex:1;padding:10px 16px;border:none;background:transparent;color:var(--dbv2-text-secondary);font-size:14px;font-weight:500;cursor:pointer;border-radius:8px 8px 0 0;transition:all .2s ease}.dbv2-modal-tabs button:hover{background:var(--dbv2-bg-tertiary);color:var(--dbv2-text-primary)}.dbv2-modal-tabs button.active{background:var(--dbv2-neon-cyan);color:#fff}.dbv2-modal-footer{display:flex;justify-content:flex-end;gap:12px;margin-top:20px;padding-top:16px;border-top:1px solid var(--dbv2-border-dim)}.dbv2-deck-list-modal{max-height:300px;overflow-y:auto;display:flex;flex-direction:column;gap:8px;padding:4px}.dbv2-deck-option{display:flex;align-items:center;gap:12px;padding:12px 16px;background:var(--dbv2-bg-tertiary);border:1px solid var(--dbv2-border-dim);border-radius:8px;cursor:pointer;transition:all .2s ease}.dbv2-deck-option:hover{background:var(--dbv2-bg-card);border-color:var(--dbv2-border)}.dbv2-deck-option.selected{border-color:var(--dbv2-neon-cyan);box-shadow:var(--dbv2-glow-cyan)}.dbv2-deck-icon{width:32px;height:32px;object-fit:contain}.dbv2-deck-name{flex:1;font-size:14px;font-weight:500}.dbv2-empty-state{text-align:center;padding:32px 16px;color:var(--dbv2-text-muted);font-style:italic}.dbv2-deck-status{display:flex;align-items:center;gap:12px;padding:12px 16px;background:var(--dbv2-bg-tertiary);border-radius:8px;margin-top:16px}.dbv2-deck-status .complete{color:var(--dbv2-neon-green);font-weight:600}.dbv2-deck-status .incomplete{color:var(--dbv2-neon-pink);font-weight:600}.dbv2-warning{font-size:12px;color:var(--dbv2-neon-pink)}.dbv2-export-options{display:flex;flex-direction:column;gap:12px}.dbv2-export-option{display:flex;flex-direction:column;align-items:center;gap:8px;padding:20px;background:var(--dbv2-bg-tertiary);border:1px solid var(--dbv2-border-dim);border-radius:12px;cursor:pointer;transition:all .2s ease;text-align:center}.dbv2-export-option:hover{background:var(--dbv2-bg-card);border-color:var(--dbv2-neon-cyan);box-shadow:var(--dbv2-glow-cyan)}.dbv2-export-icon{font-size:32px}.dbv2-export-label{font-size:16px;font-weight:600;color:var(--dbv2-text-primary)}.dbv2-export-desc{font-size:12px;color:var(--dbv2-text-muted)}@media (max-width: 600px){.dbv2-header{flex-direction:column;align-items:flex-start}.dbv2-header-actions{width:100%;justify-content:space-between}.dbv2-header-btn{flex:1;justify-content:center;padding:8px 12px;font-size:12px}}@media (min-width: 768px){.dbv2-header h1{flex:0 0 auto}}:root{--v5-bg-primary: #0a0a0a;--v5-bg-secondary: #1a1a1a;--v5-bg-tertiary: #242424;--v5-bg-zone: rgba(20, 20, 20, .95);--v5-neon-cyan: #00ffff;--v5-neon-pink: #ff007f;--v5-neon-purple: #bf00ff;--v5-neon-green: #00ff88;--v5-border-color: rgba(0, 255, 255, .3);--v5-shadow-sm: 0 2px 8px rgba(0, 0, 0, .8);--v5-shadow-md: 0 4px 16px rgba(0, 0, 0, .9);--v5-shadow-lg: 0 8px 32px rgba(0, 0, 0, .95);--v5-glow-cyan: 0 0 20px rgba(0, 255, 255, .6), 0 0 40px rgba(0, 255, 255, .3);--v5-glow-pink: 0 0 20px rgba(255, 0, 127, .6), 0 0 40px rgba(255, 0, 127, .3);--v5-glow-purple: 0 0 20px rgba(191, 0, 255, .6), 0 0 40px rgba(191, 0, 255, .3);--v5-glow-green: 0 0 20px rgba(0, 255, 136, .6), 0 0 40px rgba(0, 255, 136, .3);--v5-text-primary: #ffffff;--v5-text-secondary: #b0b0b0;--v5-text-muted: #707070}.decklists-screen-v2{min-height:100vh;background:var(--v5-bg-primary);color:var(--v5-text-primary);padding:24px 16px}.decklists-header-v2{max-width:1400px;margin:0 auto 32px;text-align:center}.decklists-header-v2 h1{font-size:42px;font-weight:800;margin:0 0 12px;color:var(--v5-neon-cyan);text-shadow:var(--v5-glow-cyan);letter-spacing:1px;text-transform:uppercase}.decklists-header-v2 p{font-size:16px;color:var(--v5-text-secondary);margin:0}.decklists-toolbar-v2{max-width:1400px;margin:0 auto 32px;display:flex;flex-direction:column;gap:16px;background:var(--v5-bg-secondary);border:2px solid var(--v5-border-color);border-radius:12px;padding:20px;box-shadow:var(--v5-shadow-md)}.toolbar-search-v2{display:flex;align-items:center;gap:12px;background:var(--v5-bg-tertiary);border:2px solid var(--v5-border-color);border-radius:8px;padding:12px 16px;transition:all .3s ease}.toolbar-search-v2:focus-within{border-color:var(--v5-neon-cyan);box-shadow:var(--v5-glow-cyan)}.toolbar-search-v2 .toolbar-icon{font-size:20px;color:var(--v5-neon-cyan)}.toolbar-search-v2 input{flex:1;background:transparent;border:none;color:var(--v5-text-primary);font-size:16px;outline:none;font-weight:500}.toolbar-search-v2 input::placeholder{color:var(--v5-text-muted)}.toolbar-filters-v2{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.affinity-button-v2{display:flex;align-items:center;gap:8px;padding:10px 16px;border-radius:8px;border:2px solid var(--v5-border-color);background:var(--v5-bg-tertiary);color:var(--v5-text-primary);font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;cursor:pointer;transition:all .3s ease}.affinity-button-v2:hover{transform:translateY(-2px);border-color:var(--v5-neon-cyan);background:#00ffff1a;box-shadow:var(--v5-glow-cyan)}.affinity-button-v2.is-active{border-color:var(--v5-neon-pink);background:linear-gradient(135deg,#ff007f33,#bf00ff33);box-shadow:var(--v5-glow-pink)}.affinity-glyph{font-size:18px}.toolbar-clear-v2{padding:10px 16px;border-radius:8px;border:2px solid var(--v5-neon-purple);background:transparent;color:var(--v5-neon-purple);font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;cursor:pointer;transition:all .3s ease}.toolbar-clear-v2:hover{background:#bf00ff33;box-shadow:var(--v5-glow-purple);transform:translateY(-2px)}.toolbar-sort-v2{margin-left:auto}.toolbar-sort-v2 select{background:var(--v5-bg-tertiary);border:2px solid var(--v5-border-color);border-radius:8px;padding:10px 14px;color:var(--v5-text-primary);font-size:14px;font-weight:600;cursor:pointer;transition:all .3s ease}.toolbar-sort-v2 select:hover{border-color:var(--v5-neon-cyan);box-shadow:var(--v5-glow-cyan)}.user-filter-notice-v2{max-width:1400px;margin:0 auto 24px;padding:16px 20px;background:linear-gradient(135deg,#00ffff1a,#bf00ff1a);border:2px solid var(--v5-neon-cyan);border-radius:12px;box-shadow:var(--v5-glow-cyan)}.user-filter-notice-v2 p{margin:0 0 12px;font-size:14px;color:var(--v5-text-primary);font-weight:600}.user-filter-notice-v2 strong{color:var(--v5-neon-cyan);text-shadow:var(--v5-glow-cyan)}.user-filter-notice-v2 button{padding:8px 16px;background:transparent;border:2px solid var(--v5-neon-cyan);border-radius:6px;color:var(--v5-neon-cyan);font-size:12px;font-weight:700;text-transform:uppercase;cursor:pointer;transition:all .3s ease}.user-filter-notice-v2 button:hover{background:#0ff3;box-shadow:var(--v5-glow-cyan);transform:translateY(-2px)}.decklists-empty-v2{max-width:1400px;margin:80px auto;text-align:center;padding:60px 20px;background:var(--v5-bg-secondary);border:2px solid var(--v5-border-color);border-radius:12px;color:var(--v5-text-secondary);font-size:16px}.decks-grid-v2{max-width:1400px;margin:0 auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:20px;animation:fadeIn .6s ease}@keyframes fadeIn{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.deck-card-v2{background:var(--v5-bg-secondary);border:2px solid var(--v5-border-color);border-radius:12px;padding:20px;display:flex;flex-direction:column;gap:14px;cursor:pointer;transition:all .3s cubic-bezier(.34,1.56,.64,1);position:relative;overflow:hidden}.deck-card-v2:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--v5-neon-cyan),var(--v5-neon-purple),var(--v5-neon-pink));opacity:0;transition:opacity .3s ease}.deck-card-v2:hover{border-color:var(--v5-neon-cyan);box-shadow:var(--v5-shadow-lg),var(--v5-glow-cyan);transform:translateY(-6px) scale(1.02)}.deck-card-v2:hover:before{opacity:1}.deck-card-header-v2{display:flex;align-items:flex-start;gap:12px}.deck-icon-v2{width:48px;height:48px;border-radius:8px;background-size:cover;background-position:center;border:2px solid var(--v5-border-color);flex-shrink:0;transition:all .3s ease}.deck-card-v2:hover .deck-icon-v2{border-color:var(--v5-neon-cyan);box-shadow:var(--v5-glow-cyan);transform:rotate(5deg) scale(1.1)}.deck-info-v2{flex:1;min-width:0}.deck-title-v2{font-size:18px;font-weight:800;margin:0 0 4px;color:var(--v5-text-primary);text-transform:uppercase;letter-spacing:.5px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.deck-author-v2{font-size:13px;color:var(--v5-neon-cyan);margin:0;font-weight:600}.deck-description-v2{font-size:14px;color:var(--v5-text-secondary);line-height:1.5;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.deck-stats-v2{display:flex;gap:16px;flex-wrap:wrap;font-size:13px;color:var(--v5-text-muted)}.deck-stats-v2 .stat{display:flex;align-items:center;gap:6px;font-weight:600}.deck-actions-v2{display:flex;gap:8px;margin-top:4px;flex-wrap:wrap}.view-button-v2{flex:1;min-width:0;padding:12px 10px;background:linear-gradient(135deg,var(--v5-neon-cyan),var(--v5-neon-purple));border:2px solid var(--v5-neon-cyan);border-radius:8px;color:var(--v5-bg-primary);font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.5px;cursor:pointer;transition:all .3s ease;position:relative;overflow:hidden;white-space:nowrap}.view-button-v2:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(135deg,var(--v5-neon-pink),var(--v5-neon-purple));opacity:0;transition:opacity .3s ease}.view-button-v2 span{position:relative;z-index:1}.view-button-v2:hover{transform:scale(1.05);box-shadow:var(--v5-glow-cyan),var(--v5-shadow-lg)}.view-button-v2:hover:before{opacity:1}.subscribe-button-v2{flex:1;min-width:0;padding:12px 10px;background:var(--v5-bg-tertiary);border:2px solid var(--v5-neon-green);border-radius:8px;color:var(--v5-neon-green);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.5px;cursor:pointer;transition:all .3s ease;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.subscribe-button-v2:hover:not(:disabled){background:#0f83;box-shadow:var(--v5-glow-green);transform:scale(1.05)}.subscribe-button-v2:disabled{opacity:.3;cursor:not-allowed}.delete-button-v2{flex-shrink:0;padding:12px 14px;background:transparent;border:2px solid var(--v5-neon-pink);border-radius:8px;color:var(--v5-neon-pink);font-size:12px;font-weight:700;text-transform:uppercase;cursor:pointer;transition:all .3s ease;white-space:nowrap}.delete-button-v2:hover{background:#ff007f33;box-shadow:var(--v5-glow-pink);transform:scale(1.05)}@media (max-width: 768px){.decklists-header-v2 h1{font-size:32px}.decklists-toolbar-v2{padding:16px}.toolbar-filters-v2{width:100%}.toolbar-sort-v2{margin-left:0;width:100%}.toolbar-sort-v2 select{width:100%}.decks-grid-v2{grid-template-columns:1fr;gap:16px}.deck-actions-v2{flex-direction:column}}@media (min-width: 769px) and (max-width: 1024px){.decks-grid-v2{grid-template-columns:repeat(2,1fr)}}.deck-card-v2:nth-child(1){animation-delay:.05s}.deck-card-v2:nth-child(2){animation-delay:.1s}.deck-card-v2:nth-child(3){animation-delay:.15s}.deck-card-v2:nth-child(4){animation-delay:.2s}.deck-card-v2:nth-child(5){animation-delay:.25s}.deck-card-v2:nth-child(6){animation-delay:.3s}.tournament-creation-header{background:linear-gradient(135deg,var(--color-primary) 0%,var(--color-accent) 100%);border-radius:16px;padding:24px;margin-bottom:24px;position:relative;overflow:hidden}.tournament-creation-header:before{content:"";position:absolute;top:0;right:0;width:100px;height:100px;background:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"><path d="M6 9H4.5a2.5 2.5 0 0 1 0-5H6"/><path d="M18 9h1.5a2.5 2.5 0 0 0 0-5H18"/><path d="M4 22h16"/><path d="M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22"/><path d="M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22"/><path d="M18 2H6v7a6 6 0 0 0 12 0V2Z"/></svg>') center/contain no-repeat;opacity:.3}.tournament-creation-content{display:flex;align-items:center;justify-content:space-between;gap:20px;position:relative;z-index:1}.tournament-creation-text h3{color:#fff;margin:0 0 8px;font-size:24px;font-weight:600}.tournament-creation-text p{color:#ffffffe6;margin:0;font-size:16px;opacity:.85}.create-tournament-btn{background:#fff;color:var(--color-primary);border:none;border-radius:12px;padding:14px 24px;font-size:16px;font-weight:600;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;gap:8px;box-shadow:0 4px 12px #00000026;white-space:nowrap}.create-tournament-btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px #0003;background:#fffffff2}.create-tournament-btn:active{transform:translateY(0)}.btn-icon{font-size:18px}.tournament-modal-content{max-height:70vh;overflow-y:auto;padding-right:4px}.tournament-modal-content::-webkit-scrollbar{width:6px}.tournament-modal-content::-webkit-scrollbar-track{background:var(--surface-muted);border-radius:3px}.tournament-modal-content::-webkit-scrollbar-thumb{background:var(--border);border-radius:3px}.tournament-modal-content::-webkit-scrollbar-thumb:hover{background:var(--color-muted)}.form-section{margin-bottom:32px}.form-section:last-child{margin-bottom:0}.section-title{font-size:18px;font-weight:600;color:var(--color-text);margin:0 0 16px;padding-bottom:8px;border-bottom:2px solid var(--color-primary);display:flex;align-items:center;gap:8px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}@media (max-width: 768px){.form-grid{grid-template-columns:1fr;gap:16px}.tournament-creation-content{flex-direction:column;text-align:center;gap:16px}.create-tournament-btn{width:100%;justify-content:center}}.form-field{display:flex;flex-direction:column;gap:6px}.field-label{font-weight:500;color:var(--color-text);font-size:14px}.field-input,.field-select,.field-textarea{padding:12px 16px;border:2px solid var(--border);border-radius:8px;font-size:14px;transition:all .2s ease;background:var(--surface);color:var(--color-text)}.field-input:focus,.field-select:focus,.field-textarea:focus{outline:none;border-color:var(--color-primary);box-shadow:0 0 0 3px rgba(var(--color-primary-rgb),.1)}.field-textarea{resize:vertical;min-height:80px;font-family:inherit}.field-hint{font-size:12px;color:var(--color-muted);margin-top:2px}.checkbox-group{display:flex;flex-direction:column;gap:16px}.checkbox-field{display:flex;align-items:flex-start;gap:12px;cursor:pointer;padding:16px;border:2px solid var(--border);border-radius:8px;transition:all .2s ease;background:var(--surface)}.checkbox-field:hover{border-color:var(--color-primary);background:var(--surface-muted)}.checkbox-field input[type=checkbox]{margin:0;width:18px;height:18px;accent-color:var(--color-primary)}.checkbox-content{display:flex;flex-direction:column;gap:4px}.checkbox-content strong{color:var(--color-text);font-weight:500}.checkbox-content small{color:var(--color-muted);font-size:12px}.secondary-button{background:var(--surface);color:var(--color-text);border:2px solid var(--border);border-radius:8px;padding:10px 20px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease}.secondary-button:hover:not(:disabled){background:var(--surface-muted);border-color:var(--color-primary)}.secondary-button:disabled{opacity:.5;cursor:not-allowed}.tournaments-list-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;padding:0 4px}.tournaments-list-header h4{font-size:20px;font-weight:600;color:var(--color-text);margin:0}.tournaments-stats{display:flex;gap:8px;align-items:center}.stat-badge{background:var(--color-primary);color:#fff;padding:4px 12px;border-radius:12px;font-size:12px;font-weight:500;white-space:nowrap}.primary-button{position:relative;overflow:hidden}.primary-button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 12px rgba(var(--color-primary-rgb),.3)}.primary-button:active:not(:disabled){transform:translateY(0)}.primary-button.loading{pointer-events:none}.primary-button.loading:after{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);animation:loading-shine 1.5s infinite}@keyframes loading-shine{0%{left:-100%}to{left:100%}}.th3-container{display:flex;flex-direction:column;gap:16px;font-family:var(--font-system,system-ui,sans-serif)}.th3-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.th3-title{font-weight:800;font-size:1.4rem}.th3-sub{font-size:.85rem;color:var(--muted)}.th3-status{font-size:.75rem;padding:6px 10px;background:var(--accent-a-08);border-radius:6px}.th3-content{display:grid;grid-template-columns:1fr 320px;gap:20px;align-items:start}.th3-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}.th3-card{display:flex;flex-direction:column;gap:8px;padding:14px;background:var(--panel-bg,#1e1f22);border-radius:12px;box-shadow:var(--card-elevation);min-height:200px}.th3-card-thumb{height:80px;background:linear-gradient(135deg,var(--accent-a-04),var(--secondary-a-02));border-radius:8px}.th3-card-title{margin:0;font-size:1rem;font-weight:700;letter-spacing:.25px}.th3-card-desc{margin:0;font-size:.72rem;line-height:1.15;color:var(--muted);min-height:32px}.th3-card-meta{display:flex;flex-wrap:wrap;gap:8px;font-size:.65rem;color:var(--muted)}.th3-card-actions{margin-top:auto;display:flex}.th3-btn{font-size:.7rem;padding:6px 10px;border-radius:6px;background:var(--panel-bg-2,#292b2f);border:1px solid var(--border,#333);cursor:default;color:var(--text-muted,#aaa)}.th3-btn-primary{background:var(--accent,#3b82f6);color:#fff;border:none;cursor:pointer}.th3-btn-primary:hover{filter:brightness(1.08)}.th3-select{width:100%;padding:6px 8px;font-size:.7rem;border-radius:6px;background:#1c1d20;color:#fff;border:1px solid #333}.th3-sidebar{display:flex;flex-direction:column;gap:16px}.th3-panel{background:var(--panel-bg,#1e1f22);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:10px}.th3-panel-header{display:flex;justify-content:space-between;align-items:center;font-size:.75rem;font-weight:600}.th3-pairings{display:flex;flex-direction:column;gap:4px}.th3-pairings-head{display:grid;grid-template-columns:40px 1fr 70px;font-size:.65rem;color:var(--muted);padding:2px 4px}.th3-pairing-row{display:grid;grid-template-columns:40px 1fr 70px;align-items:center;font-size:.7rem;padding:4px 6px;border-radius:6px;background:#23252a}.th3-chip{font-size:.6rem;padding:2px 4px;border-radius:4px;background:var(--accent-a-06)}.th3-decklist{display:grid;gap:8px}.th3-archive{display:flex;flex-direction:column;gap:6px;max-height:220px;overflow:auto}.th3-archive-row{display:flex;gap:8px;align-items:center;font-size:.65rem;padding:4px 6px;border-radius:6px;background:#23252a}.th3-avatar{width:24px;height:24px;border-radius:6px;background:linear-gradient(135deg,var(--accent-a-06),var(--secondary-a-04))}.th3-archive-text{flex:1}.th3-empty{font-size:.7rem;color:var(--muted);padding:6px 0}.th3-empty.small{font-size:.65rem}@media (max-width:1000px){.th3-content{grid-template-columns:1fr}.th3-sidebar{flex-direction:row;overflow-x:auto}.th3-panel{min-width:280px}}:root{--mobile-tab-height: 60px;--mobile-phase-button-height: 48px;--desktop-card-viewer-width: 280px;--desktop-match-chat-width: 280px;--column-gap-outer: 20px;--header-height: 40px;--footer-height: 80px;--card-width-small: 50px;--card-height-small: 70px;--card-width-hand: 70px;--card-height-hand: 95px;--card-overlap-hand: -15px;--card-width-small-desktop: 70px;--card-height-small-desktop: 100px;--card-width-hand-desktop: 90px;--card-height-hand-desktop: 120px;--card-overlap-hand-desktop: -20px;--zone-padding-inner: 8px;--zone-gap-horizontal: 8px;--zone-gap-vertical: 8px;--battle-lane-divider-width: 12px;--font-size-small: 14px;--font-size-medium: 16px;--font-size-large: 20px;--font-size-phase: 18px;--border-radius-default: 12px;--color-border: rgba(255, 255, 255, .1);--color-background-zone: #22252a;--color-tab-active: #4ade80;--color-tab-inactive: #6b7280}.duel-container{display:flex;flex-direction:column;position:absolute;top:0;left:0;width:100vw;height:100vh;background-color:#1a1d21;overflow:hidden;padding:8px 8px 0;box-sizing:border-box}.mobile-game-area{flex:1;display:flex;flex-direction:column;overflow:hidden;margin-bottom:var(--mobile-tab-height)}.mobile-bottom-tabs{position:fixed;bottom:0;left:0;right:0;height:var(--mobile-tab-height);background:linear-gradient(to top,#1a1d21fa,#1a1d21f2);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-top:1px solid var(--color-border);display:flex;z-index:1000}.mobile-tab{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;background:none;border:none;color:var(--color-tab-inactive);font-size:12px;font-weight:600;cursor:pointer;transition:all .2s ease;gap:4px}.mobile-tab.active{color:var(--color-tab-active)}.mobile-tab:hover{background:#ffffff0d}.mobile-tab-icon{font-size:20px}@media (min-width: 768px){.duel-container{display:grid;grid-template-columns:var(--desktop-card-viewer-width) 1fr var(--desktop-match-chat-width);grid-template-rows:1fr;gap:var(--column-gap-outer);padding:12px}.mobile-game-area{margin-bottom:0}.mobile-bottom-tabs{display:none}:root{--card-width-small: var(--card-width-small-desktop);--card-height-small: var(--card-height-small-desktop);--card-width-hand: var(--card-width-hand-desktop);--card-height-hand: var(--card-height-hand-desktop);--card-overlap-hand: var(--card-overlap-hand-desktop)}}.card-viewer-panel,.game-board-panel,.match-chat-panel{height:100%;display:flex;flex-direction:column;overflow:hidden}.card-viewer-panel,.match-chat-panel{background-color:var(--color-background-zone);border-radius:var(--border-radius-default);padding:var(--zone-padding-inner);border:1px solid var(--color-border)}.game-board-panel{display:flex;flex-direction:column;justify-content:space-between}.global-header-stats{height:var(--header-height);display:flex;justify-content:space-between;align-items:center;padding:0 var(--zone-padding-inner);background-color:var(--color-background-zone);border-radius:var(--border-radius-default);border:1px solid var(--color-border);flex-shrink:0;margin-bottom:var(--zone-gap-vertical)}.game-board-content{flex-grow:1;display:flex;flex-direction:column;justify-content:space-around;gap:var(--zone-gap-vertical);overflow-y:auto;padding:var(--zone-padding-inner);background-color:var(--color-background-zone);border-radius:var(--border-radius-default);border:1px solid var(--color-border)}.player-hand-area{min-height:calc(var(--card-height-hand) + (var(--zone-padding-inner) * 2));flex-shrink:0;display:flex;overflow-x:auto;align-items:center;padding:var(--zone-padding-inner);background-color:var(--color-background-zone);border-radius:var(--border-radius-default);border:1px solid var(--color-border);margin-top:var(--zone-gap-vertical)}.battlefield-you,.battlefield-opponent{display:flex;flex-direction:column;gap:var(--zone-gap-vertical);flex-grow:1;padding:var(--zone-padding-inner);border:1px solid var(--color-border);border-radius:var(--border-radius-default)}.player-board-top-row,.player-board-middle-row{display:flex;justify-content:space-between;align-items:flex-start;gap:var(--zone-gap-horizontal);flex-grow:1}.left-col-break-stage{display:flex;flex-direction:column;gap:6px;width:calc(var(--card-width-small) + (var(--zone-padding-inner) * 2));flex-shrink:0}.stage-slot-box{width:calc(var(--card-width-small) + (var(--zone-padding-inner) * 2));min-height:calc(var(--card-height-small) + (var(--zone-padding-inner) * 2));display:flex;align-items:center;justify-content:center;border:1px dashed var(--color-border);border-radius:var(--border-radius-default);background-color:#ffffff08;transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease}.stage-slot-box:hover{background-color:#ffffff0f;border-color:#fff3;box-shadow:0 0 12px #8b5cf633}.break-zone,.deck-area,.trash-area{width:calc(var(--card-width-small) + (var(--zone-padding-inner) * 2));min-height:calc(var(--card-height-small) + (var(--zone-padding-inner) * 2));display:flex;flex-direction:column;justify-content:center;align-items:center;border:1px dashed var(--color-border);border-radius:var(--border-radius-default);padding:var(--zone-padding-inner);flex-shrink:0;background-color:#ffffff08;font-size:var(--font-size-small);position:relative;transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease}.break-zone:hover,.deck-area:hover,.trash-area:hover{background-color:#ffffff0d;border-color:#fff3}.support-area{flex-grow:1;min-height:calc(var(--card-height-small) + (var(--zone-padding-inner) * 2));border:1px dashed var(--color-border);border-radius:var(--border-radius-default);padding:var(--zone-padding-inner);display:flex;flex-wrap:wrap;gap:5px;justify-content:center;align-items:center;background-color:#ffffff08;font-size:var(--font-size-small);position:relative;transition:background-color .18s ease,border-color .18s ease}.support-area:hover{background-color:#ffffff0d;border-color:#fff3}.battle-area{flex-grow:2;min-height:calc(var(--card-height-small) + (var(--zone-padding-inner) * 2));border:1px dashed var(--color-border);border-radius:var(--border-radius-default);padding:var(--zone-padding-inner);display:flex;justify-content:center;align-items:center;gap:var(--battle-lane-divider-width);background-color:#ffffff08;position:relative;transition:background-color .18s ease,border-color .18s ease}.battle-area:hover{background-color:#ffffff0d}.battle-area-left-lane,.battle-area-right-lane{flex-grow:1;min-width:calc(var(--card-width-small) * 2);min-height:calc(var(--card-height-small) + (var(--zone-padding-inner) * 2));border:1px solid var(--color-border);border-radius:var(--border-radius-default);display:flex;justify-content:center;align-items:center;gap:5px;padding:var(--zone-padding-inner);background-color:#ffffff0d;transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease}.battle-area-left-lane:hover,.battle-area-right-lane:hover{background-color:#ffffff14;border-color:#ffffff2e;box-shadow:0 0 12px #3882f626}.battle-area-label{flex-shrink:0;font-size:var(--font-size-small);text-align:center;min-width:60px}.card{width:var(--card-width-small);height:var(--card-height-small);flex-shrink:0;border-radius:5px;background-color:#555;display:flex;justify-content:center;align-items:center;font-size:var(--font-size-small);transition:transform .15s cubic-bezier(.34,1.56,.64,1),opacity .12s ease,box-shadow .18s ease,filter .15s ease;overflow:visible;cursor:pointer}.card:hover{transform:translateY(-2px) scale(1.02);box-shadow:0 0 0 2px #32cd3259,0 8px 20px #00000080;filter:brightness(1.1)}.card>img{width:100%;height:100%;object-fit:cover;display:block;border-radius:5px;background:#ffffff0a}.player-hand-area .card{width:var(--card-width-hand);height:var(--card-height-hand);margin-right:var(--card-overlap-hand)}.player-hand-area .card:last-child{margin-right:0}#chat-log{flex:1 1 auto;overflow-y:auto}.opponent-hand-area{min-height:calc(var(--card-height-small) + (var(--zone-padding-inner) * 2));flex-shrink:0;display:flex;align-items:center;gap:6px;padding:var(--zone-padding-inner);background-color:var(--color-background-zone);border-radius:var(--border-radius-default);border:1px solid var(--color-border)}.opponent-hand-area .mobile-opponent-area{flex-shrink:0;margin-bottom:var(--zone-gap-vertical)}.opponent-hand-area .mobile-game-board{flex:1;display:flex;flex-direction:column;gap:var(--zone-gap-vertical)}.opponent-hand-area .mobile-phase-buttons{display:flex;gap:8px;padding:8px;background:#22252acc;border-radius:var(--border-radius-default);border:1px solid var(--color-border);margin:var(--zone-gap-vertical) 0}.opponent-hand-area .mobile-phase-button{flex:1;height:var(--mobile-phase-button-height);background:linear-gradient(145deg,#4b5563cc,#374151cc);border:1px solid rgba(156,163,175,.3);border-radius:8px;color:#d1d5db;font-weight:600;font-size:var(--font-size-phase);cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center;text-transform:uppercase;letter-spacing:.5px}.opponent-hand-area .mobile-phase-button:hover{background:linear-gradient(145deg,#60a5fa99,#3b82f699);border-color:#60a5fab3;color:#fff;transform:translateY(-1px);box-shadow:0 4px 12px #3b82f64d}.opponent-hand-area .mobile-phase-button.active{background:linear-gradient(145deg,#10b981,#059669);border-color:#10b981;color:#fff;box-shadow:0 0 20px #10b98166}.opponent-hand-area .mobile-phase-button:disabled{background:#37415180;border-color:#4b55634d;color:#9ca3af80;cursor:not-allowed;transform:none;box-shadow:none}.opponent-hand-area .mobile-player-area{flex-shrink:0;margin-top:var(--zone-gap-vertical)}.opponent-hand-area .mobile-tab-content{height:180px;background:#1a1d21f2;border:1px solid var(--color-border);border-bottom:none;border-radius:var(--border-radius-default) var(--border-radius-default) 0 0;margin-bottom:0;overflow:hidden;z-index:998;display:none}.opponent-hand-area .mobile-tab-content.active{display:block}.opponent-hand-area .mobile-game-area.with-tab-content{margin-bottom:calc(var(--mobile-tab-height) + 180px)}.opponent-hand-area .mobile-hand-content{padding:16px;display:flex;gap:8px;overflow-x:auto;align-items:center}.opponent-hand-area .mobile-chat-content{padding:16px;display:flex;flex-direction:column;height:100%}.opponent-hand-area .mobile-stats-content,.opponent-hand-area .mobile-settings-content{padding:16px;overflow-y:auto}@media (min-width: 768px){.opponent-hand-area .mobile-opponent-area,.opponent-hand-area .mobile-game-board,.opponent-hand-area .mobile-phase-buttons,.opponent-hand-area .mobile-player-area,.opponent-hand-area .mobile-tab-content{display:none}}.card-back{background-image:url(https://pub-a12a1ec7015e42afb757260ac979da98.r2.dev/card-back.png);background-size:cover;background-position:center;background-repeat:no-repeat;border:1px solid rgba(255,255,255,.15)}.deck-stack{position:relative;width:var(--card-width-small);height:var(--card-height-small)}.deck-stack .stack{position:absolute;top:0;left:0;transform-origin:center;opacity:.9}.deck-stack .s0{transform:translate(-4px,-4px) rotate(-2deg)}.deck-stack .s1{transform:translate(0) rotate(0)}.deck-stack .s2{transform:translate(4px,4px) rotate(2deg)}.zone-header{position:absolute;top:4px;left:6px;font-size:var(--font-size-small);opacity:.9;pointer-events:none}.hp-chip{position:absolute;top:-6px;right:-6px;background:linear-gradient(135deg,#34a853,#2d8a34);color:#fff;font-size:11px;line-height:1;padding:3px 6px;border-radius:12px;border:1.5px solid rgba(255,255,255,.4);box-shadow:0 2px 6px #0006,0 0 12px #34a85366;z-index:2;font-weight:700;transition:transform .12s ease,box-shadow .12s ease}.hp-chip:hover{transform:scale(1.1);box-shadow:0 3px 8px #00000080,0 0 16px #34a85399}.card.with-chip{position:relative;overflow:visible}.drop-target-over{box-shadow:inset 0 0 0 3px #3882f6cc;background-color:#3882f61f;animation:dropZonePulse 1.5s ease-in-out infinite}@keyframes dropZonePulse{0%,to{box-shadow:inset 0 0 0 3px #3882f6cc}50%{box-shadow:inset 0 0 0 3px #3882f680}}.stage-slot{display:inline-flex;align-items:center;justify-content:center;margin-left:6px}.card.rested{transform:rotate(90deg) scale(.96);opacity:.85;transition:transform .25s cubic-bezier(.34,1.56,.64,1),opacity .2s ease}.card.targeted{box-shadow:0 0 0 3px #ffd700f2,0 0 16px #ffd70099,0 0 32px #ffd7004d;filter:brightness(1.15)}.card.targeted:after{content:"";position:absolute;top:-6px;right:-6px;bottom:-6px;left:-6px;border-radius:8px;pointer-events:none;box-shadow:0 0 #ffd7008c;animation:targetedPulse 2s ease-out 1}.card[draggable]{cursor:grab}.card[draggable]:active{cursor:grabbing}.context-menu{position:absolute;z-index:1000;min-width:160px;background:#1f2328;color:#fff;border:1px solid rgba(255,255,255,.15);border-radius:10px;box-shadow:0 12px 32px #00000080,0 2px 8px #0000004d;overflow:hidden;animation:contextMenuFadeIn .12s cubic-bezier(.16,1,.3,1)}@keyframes contextMenuFadeIn{0%{opacity:0;transform:scale(.96) translateY(-4px)}to{opacity:1;transform:scale(1) translateY(0)}}.context-menu button{width:100%;text-align:left;background:transparent;color:inherit;border:0;padding:10px 12px;font-size:var(--font-size-small);transition:background .1s ease,padding-left .12s ease;cursor:pointer}.context-menu button:hover{background:#3882f626;padding-left:16px}.context-menu hr{border:0;border-top:1px solid var(--color-border);margin:4px 0;opacity:.5}.hp-stack{position:absolute;right:-12px;top:50%;transform:translateY(-50%);width:18px;height:26px;pointer-events:none;z-index:1}.hp-stack .hp-back{position:absolute;width:18px;height:26px;border-radius:3px;background-image:url(https://pub-a12a1ec7015e42afb757260ac979da98.r2.dev/card-back.png);background-size:cover;background-position:center;box-shadow:0 1px 2px #00000080;border:1px solid rgba(255,255,255,.15)}.hp-stack .hps0{transform:translate(0) rotate(-2deg)}.hp-stack .hps1{transform:translate(2px,2px) rotate(0)}.hp-stack .hps2{transform:translate(4px,4px) rotate(2deg)}.hp-stack .hps3{transform:translate(6px,6px) rotate(3deg)}.card[draggable]:active{cursor:grabbing;opacity:.7;transform:scale(1.05)}@keyframes activePlayerPulse{0%,to{opacity:.9}50%{opacity:1}}button.btn-ghost{position:relative;overflow:hidden}button.btn-ghost:before{content:"";position:absolute;top:50%;left:50%;width:0;height:0;border-radius:50%;background:#3882f633;transform:translate(-50%,-50%);transition:width .3s ease,height .3s ease}button.btn-ghost:hover:before{width:200%;height:200%}.deck-area[role=button],.trash-area[role=button],.break-zone[role=button]{cursor:pointer}.deck-area[role=button]:hover,.trash-area[role=button]:hover,.break-zone[role=button]:hover{box-shadow:0 0 16px #3882f64d}.damage-flip-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:#00000080;z-index:6}.damage-flip-modal{width:400px;padding:14px;border:1px solid var(--color-border);border-radius:10px;background:#141619d9;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);box-shadow:0 12px 32px #00000080;display:flex;flex-direction:column;gap:10px}.damage-flip-header{display:flex;align-items:center;justify-content:space-between}.damage-flip-content img{width:100%;display:block;border-radius:8px;background:#ffffff0d}.damage-flip-footer{text-align:center}:root{--mobile-tab-height: 60px;--mobile-content-height: 200px;--mobile-phase-height: 50px;--card-width-mobile: 60px;--card-height-mobile: 84px;--card-width-hand-mobile: 70px;--card-height-hand-mobile: 98px;display:flex;flex-wrap:wrap;gap:4px;justify-content:flex-start;align-items:center;width:100%;height:100%;padding:20px 8px 8px}:root .content-default{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:#666;text-align:center;padding:20px}:root .content-default-title{font-size:18px;font-weight:600;margin-bottom:12px;color:#333}:root .content-default-message{font-size:14px;line-height:1.4;max-width:280px}.support-cards .card-mobile{width:35px;height:49px;flex-shrink:0}.content-default{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:#666;text-align:center;padding:20px}.content-default-title{font-size:18px;font-weight:600;margin-bottom:12px;color:#333}.content-default-message{font-size:14px;line-height:1.4;max-width:280px}:root{--zone-gap: 8px;--zone-padding: 8px;--zone-border-radius: 12px;--bg-primary: #1a1d21;--bg-secondary: #22252a;--bg-accent: rgba(34, 37, 42, .95);--border-color: rgba(255, 255, 255, .1);--tab-active: #4ade80;--tab-inactive: #6b7280;--text-primary: #ffffff;--text-secondary: rgba(255, 255, 255, .8)}.duel-v4-container{position:fixed;top:0;right:0;bottom:0;left:0;background:var(--bg-primary);display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;color:var(--text-primary);overflow:hidden}.game-area{flex:1;display:flex;flex-direction:column;overflow:hidden;padding:var(--zone-gap);gap:var(--zone-gap)}.opponent-zone{background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:var(--zone-border-radius);padding:var(--zone-padding);display:flex;flex-direction:column;gap:var(--zone-gap)}.opponent-info{display:flex;justify-content:space-between;align-items:center;font-size:14px;font-weight:600;color:var(--text-secondary)}.zone-row{display:flex;justify-content:space-between;align-items:center;gap:var(--zone-gap)}.zone-left{display:flex;flex-direction:column;gap:4px}.stage-zone{width:calc(var(--card-width-mobile) * 1.2);height:calc(var(--card-height-mobile) + var(--zone-padding) * 2);background:#ffffff08;border:1px dashed var(--border-color);border-radius:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:10px;color:var(--text-secondary);cursor:pointer;transition:all .2s ease;position:relative}.stage-zone:hover{background:#ffffff14;border-color:#fff3}.stage-card{width:100%;height:100%;border-radius:4px;position:relative}.hp-counters{position:absolute;bottom:4px;left:4px;display:flex;gap:2px}.hp-counter{width:8px;height:8px;background:#3b82f6;border-radius:2px}.zone-center{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-height:calc(var(--card-height-mobile) + var(--zone-padding) * 2);background:#ffffff08;border:1px dashed var(--border-color);border-radius:8px;position:relative;padding:var(--zone-padding)}.support-cards{display:flex;flex-wrap:wrap;gap:4px;justify-content:center;align-items:flex-start;width:100%;margin-top:20px}.zone-right{display:flex;flex-direction:column;gap:4px}.mini-zone{width:calc(var(--card-width-mobile) + var(--zone-padding));height:calc(var(--card-height-mobile) + var(--zone-padding));background:#ffffff08;border:1px dashed var(--border-color);border-radius:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:10px;color:var(--text-secondary);cursor:pointer;transition:all .2s ease}.mini-zone:hover{background:#ffffff14;border-color:#fff3}.zone-label{font-size:10px;opacity:.7;margin-bottom:2px;text-align:center}.zone-count{font-weight:600;font-size:12px}.phase-controls{display:flex;gap:var(--zone-gap);padding:0 var(--zone-padding);height:var(--mobile-phase-height)}.phase-button{flex:1;background:#374151cc;border:1px solid var(--border-color);border-radius:8px;color:#9ca3afcc;font-weight:600;font-size:16px;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center}.phase-button:hover{background:#4b5563cc;color:#9ca3af}.phase-button.active{background:linear-gradient(145deg,#3b82f6,#2563eb);border-color:#3b82f6;color:#fff;box-shadow:0 0 15px #3b82f666}.battle-zone{background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:var(--zone-border-radius);padding:var(--zone-padding);min-height:120px;display:flex;align-items:center;justify-content:center;position:relative}.battle-label{position:absolute;top:6px;left:10px;font-size:12px;font-weight:600;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px}.player-zone{background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:var(--zone-border-radius);padding:var(--zone-padding);display:flex;flex-direction:column;gap:var(--zone-gap)}.bottom-content{height:var(--mobile-content-height);background:var(--bg-accent);border-top:1px solid var(--border-color);overflow:hidden;display:none}.bottom-content.active{display:block}.content-panel{height:100%;padding:16px;overflow-y:auto}.content-title{font-size:16px;font-weight:600;margin-bottom:12px;color:var(--text-primary)}.bottom-tabs{height:var(--mobile-tab-height);background:var(--bg-accent);border-top:1px solid var(--border-color);display:flex;position:relative}.tab-button{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;background:none;border:none;color:var(--tab-inactive);cursor:pointer;transition:color .2s ease;gap:4px;font-size:11px;font-weight:600}.tab-button.active{color:var(--tab-active)}.tab-icon{font-size:20px;margin-bottom:2px}.hand-cards{display:flex;gap:8px;overflow-x:auto;padding-bottom:8px}.card-mobile{width:var(--card-width-hand-mobile);height:var(--card-height-hand-mobile);border-radius:6px;background:#333;border:1px solid #555;flex-shrink:0;cursor:pointer;transition:transform .2s ease;overflow:hidden}.card-mobile:hover{transform:translateY(-2px)}.card-mobile img{width:100%;height:100%;object-fit:cover}.card-placeholder{display:flex;align-items:center;justify-content:center;color:#ccc;font-size:10px;text-align:center}.chat-messages{flex:1;overflow-y:auto;margin-bottom:12px}.chat-message{margin-bottom:8px;font-size:14px;line-height:1.4}.chat-sender{font-weight:600;color:var(--tab-active)}.chat-input{flex:1;padding:10px 12px;border:1px solid var(--border-color);border-radius:8px;background:#0000004d;color:var(--text-primary);font-size:14px}.chat-send{padding:10px 16px;background:var(--tab-active);color:#fff;border:none;border-radius:8px;font-weight:600;cursor:pointer}.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}.stat-section{background:#0003;padding:12px;border-radius:8px}.stat-header{font-weight:600;margin-bottom:8px;color:var(--text-primary)}.stat-item{display:flex;justify-content:space-between;margin-bottom:4px;font-size:14px;color:var(--text-secondary)}.content-default{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;text-align:center;color:var(--text-secondary);font-size:14px;padding:20px}.content-default-title{font-size:16px;font-weight:600;margin-bottom:8px;color:var(--text-primary)}.content-default-message{opacity:.8;line-height:1.4}.settings-section{margin-bottom:20px}.settings-label{font-size:14px;color:var(--text-secondary);margin-bottom:8px}.settings-buttons{display:flex;gap:8px}.settings-button{padding:10px 16px;border:1px solid var(--border-color);border-radius:8px;background:#0003;color:var(--text-primary);font-size:14px;cursor:pointer;transition:all .2s ease}.settings-button:hover{background:#ffffff1a;border-color:#ffffff4d}.settings-button.active{background:var(--tab-active);border-color:var(--tab-active);color:#fff}.forfeit-button{width:100%;padding:12px;background:#ef4444;color:#fff;border:none;border-radius:8px;font-weight:600;font-size:16px;cursor:pointer;margin-top:16px}@media (min-width: 768px){.duel-v4-container{display:none}}:root{--v5-bg-primary: #0a0a0a;--v5-bg-secondary: #1a1a1a;--v5-bg-tertiary: #242424;--v5-bg-zone: rgba(20, 20, 20, .95);--v5-bg-zone-alt: rgba(30, 30, 30, .95);--v5-neon-cyan: #00ffff;--v5-neon-pink: #ff007f;--v5-neon-purple: #bf00ff;--v5-neon-blue: #0080ff;--v5-neon-green: #00ff88;--v5-neon-orange: #ff6600;--v5-primary: #00ffff;--v5-secondary: #ff007f;--v5-accent: #bf00ff;--v5-success: #00ff88;--v5-warning: #ffaa00;--v5-danger: #ff0040;--v5-border-color: rgba(0, 255, 255, .3);--v5-border-accent: rgba(255, 0, 127, .5);--v5-shadow-sm: 0 2px 8px rgba(0, 0, 0, .8);--v5-shadow-md: 0 4px 16px rgba(0, 0, 0, .9);--v5-shadow-lg: 0 8px 32px rgba(0, 0, 0, .95);--v5-glow-cyan: 0 0 20px rgba(0, 255, 255, .6), 0 0 40px rgba(0, 255, 255, .3);--v5-glow-pink: 0 0 20px rgba(255, 0, 127, .6), 0 0 40px rgba(255, 0, 127, .3);--v5-glow-purple: 0 0 20px rgba(191, 0, 255, .6), 0 0 40px rgba(191, 0, 255, .3);--v5-text-primary: #ffffff;--v5-text-secondary: #b0b0b0;--v5-text-muted: #707070;--v5-text-light: #ffffff;--v5-tab-active: #00ffff;--v5-tab-inactive: #505050;--v5-phase-bg: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);--v5-cookie-bg: linear-gradient(135deg, #1a0a1a 0%, #2a1a2a 100%);--v5-deck-bg: linear-gradient(135deg, #0a1a1a 0%, #1a2a2a 100%);--v5-break-bg: linear-gradient(135deg, #1a0a0a 0%, #2a1a1a 100%)}.duel-v5-container{position:fixed;top:0;right:0;bottom:0;left:0;background:var(--v5-bg-primary);display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;color:var(--v5-text-primary);overflow:hidden;animation:fadeIn .5s ease-in}.zone-row{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;padding:8px}.left-zones{display:flex;flex-direction:column;gap:8px}.center-column{display:flex;flex-direction:column;gap:8px;flex:1;align-items:center}.support-zone{background:var(--v5-bg-secondary);border:2px solid var(--v5-border-color);border-radius:12px;margin:8px;padding:0;position:relative;overflow:hidden;box-shadow:var(--v5-shadow-md),var(--v5-glow-cyan);transition:all .3s ease}.support-zone.opponent-support{min-height:200px;max-height:240px;margin:8px 8px 4px;display:flex;flex-direction:column}.support-zone:hover{border-color:var(--v5-neon-cyan);box-shadow:var(--v5-shadow-lg),0 0 30px #00ffff80;transform:translateY(-1px)}.support-zone .content-body{padding:0}.support-zone .zone-row{padding:12px 8px 8px}.mini-zone{width:70px;height:100px;background:var(--v5-bg-tertiary);border:2px solid var(--v5-border-color);border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:var(--v5-text-primary);cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);box-sizing:border-box;flex-shrink:0;box-shadow:var(--v5-shadow-sm);position:relative;overflow:hidden}.mini-zone:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(135deg,#0ff3,#ff007f1a);opacity:0;transition:opacity .3s ease}.mini-zone:hover{transform:translateY(-2px);box-shadow:var(--v5-glow-cyan);border-color:var(--v5-neon-cyan)}.mini-zone:hover:before{opacity:1}.zone-text{text-align:center;text-transform:uppercase;letter-spacing:.5px;z-index:1}.zone-count{font-size:18px;font-weight:800;color:var(--v5-primary);margin-top:4px;z-index:1}.cookie-slots{display:flex;gap:12px;width:100%;justify-content:center}.cookie-card{width:120px;height:168px;background:var(--v5-bg-tertiary);border:2px solid var(--v5-border-color);border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;color:var(--v5-text-primary);cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);overflow:hidden;position:relative;box-shadow:var(--v5-shadow-md)}.cookie-card:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(135deg,#ff007f4d,#00ffff1a);opacity:0;transition:opacity .3s ease}.cookie-card:hover{transform:translateY(-4px) scale(1.03);box-shadow:var(--v5-glow-pink);border-color:var(--v5-neon-pink)}.cookie-card:hover:after{opacity:1}.cookie-card.filled{background:var(--v5-bg-tertiary);box-shadow:var(--v5-shadow-md),0 0 15px #ff007f66;border-color:var(--v5-neon-pink)}.cookie-card.rested{opacity:.7;transform:rotate(90deg)}.cookie-card img{width:100%;height:100%;object-fit:cover;z-index:1}.cookie-label{text-align:center;text-transform:uppercase;letter-spacing:.5px;z-index:2}.side-zones{display:flex;flex-direction:column;gap:8px}.phase-controls{display:flex;gap:8px;padding:0 16px;height:45px}.phase-button{flex:1;background:linear-gradient(135deg,#1a1a1a,#2a2a2a);border:2px solid var(--v5-neon-cyan);border-radius:6px;color:var(--v5-neon-cyan);font-weight:700;font-size:16px;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);display:flex;align-items:center;justify-content:center;box-shadow:var(--v5-shadow-md),var(--v5-glow-cyan);position:relative;overflow:hidden;text-transform:uppercase;letter-spacing:1.5px}.phase-button:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(135deg,#0ff3,#ff007f1a);opacity:0;transition:opacity .3s ease}.phase-button:hover{transform:translateY(-2px);box-shadow:0 0 30px #0ffc,0 0 60px #0ff6;border-color:var(--v5-neon-cyan);color:#fff}.phase-button:hover:before{opacity:1}.phase-button:active{transform:translateY(0)}.btn-ghost{padding:8px 16px;background:var(--v5-bg-tertiary);border:2px solid var(--v5-border-color);border-radius:8px;color:var(--v5-text-primary);font-weight:600;cursor:pointer;transition:all .2s ease}.btn-ghost:hover{background:var(--v5-bg-secondary);border-color:var(--v5-neon-cyan);box-shadow:var(--v5-glow-cyan);transform:translateY(-1px)}.stage-zone-row{display:none}.stage-card{width:70px;height:100px;background:var(--v5-bg-tertiary);border:2px solid var(--v5-border-accent);border-radius:12px;position:relative;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);overflow:hidden;box-sizing:border-box;flex-shrink:0;box-shadow:var(--v5-shadow-sm)}.stage-card:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(135deg,#ffffff4d,#fff0);opacity:0;transition:opacity .3s ease}.stage-card:hover{transform:translateY(-2px);box-shadow:var(--v5-glow-pink);border-color:var(--v5-neon-pink)}.stage-card:hover:before{opacity:1}.stage-content.rested{opacity:.6;transform:rotate(90deg)}.zone-label-stage{position:absolute;top:2px;left:4px;font-size:9px;font-weight:800;color:var(--v5-bg-primary);background:var(--v5-neon-pink);padding:2px 6px;border-radius:4px;z-index:2;text-transform:uppercase;letter-spacing:.5px;box-shadow:0 0 10px #ff007f99}.stage-image{width:100%;height:100%}.stage-image img{width:100%;height:100%;object-fit:cover}.hp-counters{position:absolute;bottom:4px;left:4px;display:flex;flex-wrap:wrap;gap:2px;max-width:90%;z-index:1}.hp-counter{width:10px;height:10px;background:var(--v5-neon-cyan);border-radius:50%;border:1px solid var(--v5-bg-primary);box-shadow:0 0 10px #0ffc,0 0 20px #0ff6;animation:pulse 2s infinite}.hp-counters:has(>:nth-child(7)) .hp-counter{width:8px;height:8px}.hp-counters:has(>:nth-child(13)) .hp-counter{width:6px;height:6px}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.1)}}.support-zone-container{background:var(--v5-bg-zone);border:2px solid var(--v5-neon-purple);border-radius:8px;padding:8px;box-shadow:var(--v5-shadow-md),0 0 15px #bf00ff4d;position:relative}.support-zone-label{position:absolute;top:-12px;left:50%;transform:translate(-50%);background:var(--v5-bg-primary);color:var(--v5-neon-purple);font-size:14px;font-weight:800;padding:4px 16px;border:2px solid var(--v5-neon-purple);border-radius:6px;text-transform:uppercase;letter-spacing:2px;box-shadow:var(--v5-glow-purple);z-index:10}.battlefield-row{display:flex;gap:6px;margin-left:0;justify-content:center;flex-wrap:wrap}.battlefield-row.support-zone{min-height:80px;padding:4px}.battlefield-card{width:50px;height:70px;background:var(--v5-bg-tertiary);border:2px solid var(--v5-border-color);border-radius:8px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:10px;overflow:hidden;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);box-shadow:var(--v5-shadow-sm);position:relative}.battlefield-card:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(135deg,#bf00ff4d,#0080ff33);opacity:0;transition:opacity .3s ease}.battlefield-card:hover{transform:translateY(-2px) scale(1.05);box-shadow:var(--v5-glow-purple);border-color:var(--v5-neon-purple)}.battlefield-card:hover:before{opacity:1}.battlefield-card.rested{opacity:.5;transform:rotate(90deg)}.battlefield-card.targeted,.stage-content.targeted,.card-hand.targeted,.cookie-card.targeted{box-shadow:0 0 0 3px #ffd700f2,0 0 16px #ffd70099,0 0 32px #ffd7004d!important;filter:brightness(1.15);z-index:10}.battlefield-card.targeted:after,.stage-content.targeted:after,.card-hand.targeted:after,.cookie-card.targeted:after{content:"";position:absolute;top:-6px;right:-6px;bottom:-6px;left:-6px;border-radius:8px;pointer-events:none;box-shadow:0 0 #ffd7008c;animation:targetedPulse 2s ease-out 1}@keyframes targetedPulse{0%{box-shadow:0 0 #ffd7008c;opacity:1}60%{box-shadow:0 0 0 14px #ffd70000;opacity:.85}to{box-shadow:0 0 0 20px #ffd70000;opacity:0}}.battlefield-card img{width:100%;height:100%;object-fit:cover;z-index:1}.content-box{background:var(--v5-bg-secondary);border-top:2px solid var(--v5-border-color);height:198px;overflow-y:auto;padding:0;box-shadow:0 -4px 16px #000c}.content-box-inner{height:100%;display:flex;flex-direction:column}.content-box-inner.no-header{padding-top:0}.content-box-inner.no-header .content-body{flex:1;padding-top:8px}.content-body.hand-content{padding:0}.content-header{background:linear-gradient(135deg,var(--v5-bg-tertiary) 0%,var(--v5-bg-secondary) 100%);color:var(--v5-neon-cyan);font-size:16px;font-weight:800;padding:12px 16px;text-align:center;border-bottom:2px solid var(--v5-neon-cyan);display:flex;letter-spacing:2px;box-shadow:0 0 15px #00ffff4d;align-items:center;justify-content:center;gap:8px;box-shadow:0 2px 8px #0000001a;text-transform:uppercase;letter-spacing:1px}.content-header-image{width:30px;height:42px;border-radius:4px;overflow:hidden;border:2px solid rgba(255,255,255,.8);background:#fff;box-shadow:0 2px 8px #0003}.content-header-image img{width:100%;height:100%;object-fit:cover}.content-body{padding:12px;flex:1;overflow-y:auto}.content-default{display:flex;flex-direction:column;height:100%}.content-default .content-body{display:flex;align-items:center;justify-content:center;text-align:center}.content-default-message{font-size:14px;color:var(--v5-text-secondary);line-height:1.5}.hand-cards{display:flex;gap:12px;overflow-x:auto;padding-bottom:8px}.card-hand{width:80px;height:112px;border-radius:8px;background:#fff;border:3px solid rgba(102,126,234,.3);flex-shrink:0;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);overflow:hidden;box-shadow:var(--v5-shadow-sm);position:relative}.card-hand:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(135deg,#bf00ff33,#0080ff33);opacity:0;transition:opacity .3s ease}.card-hand:hover{transform:translateY(-6px) scale(1.03);border-color:var(--v5-neon-purple);box-shadow:var(--v5-glow-purple)}.card-hand:hover:after{opacity:1}.card-hand img{width:100%;height:100%;object-fit:cover;z-index:1}.card-placeholder{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:var(--v5-text-secondary);font-size:11px;font-weight:600;text-align:center;background:var(--v5-bg-tertiary);z-index:1}.chat-content{display:flex;flex-direction:column;height:100%}.chat-messages{flex:1;overflow-y:auto;margin-bottom:12px;padding:8px;background:var(--v5-bg-tertiary);border-radius:6px;border:1px solid var(--v5-border-color)}.chat-message{margin-bottom:8px;font-size:14px;line-height:1.4;color:var(--v5-text-primary)}.chat-sender{font-weight:700;color:var(--v5-neon-cyan)}.chat-input-row{display:flex;gap:8px}.chat-input{flex:1;padding:10px 12px;border:2px solid var(--v5-border-color);border-radius:6px;background:var(--v5-bg-tertiary);color:var(--v5-text-primary);font-size:14px;font-family:inherit}.chat-input:focus{outline:none;border-color:var(--v5-neon-cyan);box-shadow:var(--v5-glow-cyan)}.chat-send{padding:10px 20px;background:linear-gradient(135deg,var(--v5-bg-tertiary) 0%,var(--v5-bg-secondary) 100%);color:var(--v5-neon-cyan);border:2px solid var(--v5-neon-cyan);border-radius:6px;font-weight:700;font-size:14px;cursor:pointer;transition:all .3s ease;box-shadow:var(--v5-glow-cyan)}.chat-send:hover{background:var(--v5-neon-cyan);color:var(--v5-bg-primary);box-shadow:0 0 20px #0ffc;transform:translateY(-1px)}.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.stat-section{background:var(--v5-bg-tertiary);padding:16px;border-radius:8px;border:2px solid var(--v5-border-color);box-shadow:var(--v5-shadow-sm);transition:all .3s ease}.stat-section:hover{transform:translateY(-1px);box-shadow:var(--v5-glow-cyan);border-color:var(--v5-neon-cyan)}.stat-header{font-weight:700;margin-bottom:8px;font-size:16px;color:var(--v5-neon-cyan);text-transform:uppercase;letter-spacing:1px}.stat-item{display:flex;justify-content:space-between;margin-bottom:6px;font-size:14px;color:var(--v5-text-secondary)}.settings-section{padding:12px}.settings-label{font-size:14px;font-weight:600;color:var(--v5-text-secondary);margin-bottom:12px}.forfeit-button{width:100%;padding:14px;background:var(--v5-bg-tertiary);color:var(--v5-danger);border:2px solid var(--v5-danger);border-radius:8px;font-weight:700;font-size:16px;cursor:pointer;transition:all .3s ease;text-transform:uppercase;letter-spacing:1px}.forfeit-button:hover{background:var(--v5-danger);color:var(--v5-bg-primary);box-shadow:0 0 20px #ff004099,0 0 40px #ff00404d}.bottom-tabs{height:70px;background:var(--v5-bg-primary);border-top:2px solid var(--v5-border-color);display:flex;gap:0;box-shadow:0 -4px 16px #0000004d}.tab-button{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;background:transparent;border:none;color:var(--v5-text-muted);cursor:pointer;transition:all .3s ease;font-size:14px;font-weight:700;border-bottom:3px solid transparent;position:relative}.tab-button:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(135deg,#00ffff1a,#bf00ff1a);opacity:0;transition:opacity .3s ease}.tab-button:hover{color:var(--v5-text-secondary);background:#00ffff0d}.tab-button:hover:before{opacity:1}.tab-button.active{color:var(--v5-neon-cyan);background:#00ffff26;border-bottom:3px solid var(--v5-neon-cyan);box-shadow:0 0 20px #00ffff80}.tab-label{text-transform:uppercase;letter-spacing:1px}.content-box::-webkit-scrollbar,.chat-messages::-webkit-scrollbar,.hand-cards::-webkit-scrollbar{width:8px;height:8px}.content-box::-webkit-scrollbar-track,.chat-messages::-webkit-scrollbar-track,.hand-cards::-webkit-scrollbar-track{background:var(--v5-bg-tertiary);border-radius:4px}.content-box::-webkit-scrollbar-thumb,.chat-messages::-webkit-scrollbar-thumb,.hand-cards::-webkit-scrollbar-thumb{background:var(--v5-border-color);border-radius:4px}.content-box::-webkit-scrollbar-thumb:hover,.chat-messages::-webkit-scrollbar-thumb:hover,.hand-cards::-webkit-scrollbar-thumb:hover{background:var(--v5-neon-cyan);box-shadow:var(--v5-glow-cyan)}.phase-overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:#000000f2;z-index:40;display:flex;align-items:center;justify-content:center;animation:fadeIn .3s ease-in}.phase-dialog{background:linear-gradient(135deg,#fffffff2,#ffffffe6);padding:32px;border-radius:20px;border:3px solid rgba(102,126,234,.3);max-width:90%;width:600px;display:flex;flex-direction:column;align-items:center;gap:20px;box-shadow:0 20px 60px #0006;animation:slideUp .4s cubic-bezier(.4,0,.2,1)}@keyframes slideUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}.phase-dialog h2{margin:0;font-size:28px;font-weight:800;color:var(--v5-neon-cyan);text-transform:uppercase;letter-spacing:2px;text-shadow:0 0 20px rgba(0,255,255,.6)}.damage-popup{background:linear-gradient(135deg,#1a0a1afa,#2a1a2afa);padding:32px;border-radius:20px;border:3px solid rgba(255,0,127,.5);max-width:90%;width:400px;display:flex;flex-direction:column;box-shadow:0 20px 60px #ff007f4d,var(--v5-glow-pink);animation:slideUp .4s cubic-bezier(.4,0,.2,1)}.damage-popup .card{background:var(--v5-bg-tertiary);border:2px solid rgba(255,0,127,.3);border-radius:12px;box-shadow:var(--v5-shadow-md),0 0 30px #ff007f66;transition:transform .3s ease,box-shadow .3s ease}.damage-popup .card:hover{transform:scale(1.05);box-shadow:var(--v5-shadow-lg),0 0 40px #ff007f99}.phase-message{font-size:16px;color:var(--v5-text-secondary);text-align:center}.mulligan-hand{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;margin:20px 0}.card-hand.large{width:100px;height:140px;border-width:3px}.card-hand.clickable{cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1)}.card-hand.clickable:hover{transform:translateY(-6px) scale(1.05);border-color:var(--v5-neon-green);box-shadow:0 0 30px #0f89}.phase-actions{display:flex;gap:16px}.phase-action-btn{padding:14px 32px;border-radius:8px;font-weight:800;font-size:16px;cursor:pointer;border:2px solid;transition:all .3s cubic-bezier(.4,0,.2,1);text-transform:uppercase;letter-spacing:2px;box-shadow:var(--v5-shadow-md)}.phase-action-btn.confirm{background:var(--v5-bg-tertiary);color:var(--v5-neon-green);border-color:var(--v5-neon-green);box-shadow:0 0 20px #0f86}.phase-action-btn.confirm:hover{background:var(--v5-neon-green);color:var(--v5-bg-primary);transform:translateY(-2px);box-shadow:0 0 30px #0f8c}.phase-action-btn.cancel{background:var(--v5-bg-tertiary);color:var(--v5-danger);border-color:var(--v5-danger);box-shadow:0 0 20px #ff004066}.phase-action-btn.cancel:hover{background:var(--v5-danger);color:var(--v5-bg-primary);transform:translateY(-2px);box-shadow:0 0 30px #ff0040cc}.card-viewer-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000e6;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);z-index:100;display:flex;align-items:center;justify-content:center;cursor:pointer;animation:fadeIn .2s ease-in}.card-viewer-content{max-width:90vw;max-height:90vh;padding:20px;animation:zoomIn .3s cubic-bezier(.4,0,.2,1)}@keyframes zoomIn{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}.card-viewer-content img{max-width:100%;max-height:100%;border-radius:16px;box-shadow:0 20px 80px #00000080,0 0 40px #667eea4d;border:4px solid rgba(255,255,255,.2)}.context-menu-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:90;background:transparent}.context-menu{position:fixed;background:var(--v5-bg-secondary);border:2px solid var(--v5-neon-cyan);border-radius:8px;padding:8px;min-width:200px;box-shadow:var(--v5-shadow-lg),var(--v5-glow-cyan);z-index:91;animation:menuSlideIn .2s cubic-bezier(.4,0,.2,1)}@keyframes menuSlideIn{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.menu-item{padding:10px 16px;font-size:14px;font-weight:600;color:var(--v5-text-primary);cursor:pointer;border-radius:6px;transition:all .2s ease;display:flex;align-items:center;gap:8px}.menu-item:hover{background:#00ffff26;color:var(--v5-neon-cyan);transform:translate(4px);box-shadow:0 0 10px #00ffff4d}.menu-item:active{background:#00ffff40}.menu-section-label{padding:6px 12px;font-size:11px;font-weight:700;color:var(--v5-text-secondary);text-transform:uppercase;letter-spacing:.5px;opacity:.7}.menu-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:4px 0}.menu-grid .menu-item{padding:8px 10px;font-size:13px;text-align:center;justify-content:center}.menu-grid .menu-item:hover{transform:scale(1.05)}.menu-hp-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:4px 0}.menu-hp-grid .menu-item{padding:8px 6px;font-size:13px;text-align:center;justify-content:center;font-weight:700}.menu-hp-grid .menu-item:hover{transform:scale(1.08)}.context-menu hr{border:none;border-top:1px solid var(--v5-border-color);margin:4px 0}.rested{transition:all .4s cubic-bezier(.4,0,.2,1)}.deck-selection-modal{background:var(--v5-bg-secondary);border:2px solid var(--v5-neon-cyan);border-radius:12px;padding:20px;max-width:90vw;width:500px;max-height:85vh;display:flex;flex-direction:column;box-shadow:var(--v5-shadow-lg),var(--v5-glow-cyan);animation:modalSlideIn .3s cubic-bezier(.4,0,.2,1)}@keyframes modalSlideIn{0%{opacity:0;transform:translateY(-20px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}.deck-modal-title{color:var(--v5-neon-cyan);font-size:24px;font-weight:800;text-align:center;margin:0 0 8px;text-transform:uppercase;letter-spacing:3px;text-shadow:var(--v5-glow-cyan)}.deck-modal-subtitle{color:var(--v5-text-secondary);font-size:14px;text-align:center;margin-bottom:16px}.deck-picker{display:flex;flex-direction:column;gap:8px;max-height:50vh;overflow-y:auto;padding:8px;background:var(--v5-bg-primary);border:1px solid var(--v5-border-color);border-radius:8px;margin-bottom:16px}.deck-picker::-webkit-scrollbar{width:8px}.deck-picker::-webkit-scrollbar-track{background:var(--v5-bg-tertiary);border-radius:4px}.deck-picker::-webkit-scrollbar-thumb{background:var(--v5-neon-cyan);border-radius:4px}.deck-item{display:flex;align-items:center;gap:12px;padding:12px 16px;border:2px solid var(--v5-border-color);border-radius:8px;background:var(--v5-bg-tertiary);color:var(--v5-text-primary);cursor:pointer;transition:all .2s cubic-bezier(.4,0,.2,1);font-size:15px;font-weight:600;text-align:left}.deck-item:hover{border-color:var(--v5-neon-cyan);background:var(--v5-bg-zone);transform:translate(4px);box-shadow:0 0 15px #00ffff4d}.deck-item-selected{border-color:var(--v5-neon-purple);background:#bf00ff33;box-shadow:var(--v5-glow-purple)}.deck-item-selected:hover{border-color:var(--v5-neon-purple);box-shadow:var(--v5-glow-purple)}.deck-icon{width:32px;height:32px;border-radius:6px;flex-shrink:0;object-fit:cover;border:1px solid var(--v5-border-color)}.deck-icon-placeholder{width:32px;height:32px;border-radius:6px;background:var(--v5-bg-zone);display:inline-block;flex-shrink:0;border:1px solid var(--v5-border-color)}.deck-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.deck-loading,.deck-error,.deck-empty{text-align:center;padding:20px;color:var(--v5-text-secondary);font-size:14px}.deck-error{color:var(--v5-danger)}.deck-status{display:flex;gap:20px;justify-content:center;flex-wrap:wrap;margin-bottom:16px;padding:12px;background:var(--v5-bg-primary);border-radius:8px;border:1px solid var(--v5-border-color)}.deck-status-item{display:flex;flex-direction:column;align-items:center;gap:4px}.deck-status-label{color:var(--v5-text-secondary);font-size:12px;text-transform:uppercase;letter-spacing:1px}.deck-status-ready{color:var(--v5-success);font-weight:700;font-size:14px}.deck-status-waiting{color:var(--v5-text-muted);font-size:14px}.deck-modal-buttons{display:flex;gap:12px;justify-content:center}.deck-button{flex:1;padding:14px 24px;border:2px solid var(--v5-neon-cyan);border-radius:8px;font-weight:700;font-size:16px;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);text-transform:uppercase;letter-spacing:1.5px}.deck-button-ready{background:linear-gradient(135deg,#1a1a1a,#2a2a2a);color:var(--v5-neon-cyan);box-shadow:var(--v5-shadow-md),var(--v5-glow-cyan)}.deck-button-ready:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 0 30px #0ffc;color:#fff}.deck-button-ready:disabled{opacity:.4;cursor:not-allowed;border-color:var(--v5-border-color);color:var(--v5-text-muted);box-shadow:none}.deck-button-ready.active{background:linear-gradient(135deg,#0f8,#00cc6a);color:#000;border-color:#0f8;box-shadow:0 0 20px #0f89;cursor:default}.deck-button-solo{background:linear-gradient(135deg,#64748b,#475569);color:var(--v5-text-primary);border-color:#64748b}.deck-button-solo:hover{transform:translateY(-2px);box-shadow:0 0 20px #64748b80;background:linear-gradient(135deg,#475569,#334155)}.mulligan-modal{background:var(--v5-bg-secondary);border:2px solid var(--v5-neon-cyan);border-radius:12px;padding:20px;max-width:90vw;width:600px;max-height:85vh;display:flex;flex-direction:column;box-shadow:var(--v5-shadow-lg),var(--v5-glow-cyan);animation:modalSlideIn .3s cubic-bezier(.4,0,.2,1)}.mulligan-modal-title{color:var(--v5-neon-cyan);font-size:24px;font-weight:800;text-align:center;margin:0 0 8px;text-transform:uppercase;letter-spacing:3px;text-shadow:var(--v5-glow-cyan)}.mulligan-modal-subtitle{color:var(--v5-text-secondary);font-size:14px;text-align:center;margin-bottom:20px}.mulligan-hand{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;padding:16px;background:var(--v5-bg-primary);border:1px solid var(--v5-border-color);border-radius:8px;margin-bottom:20px;max-height:50vh;overflow-y:auto}.mulligan-card{width:80px;height:112px;border:2px solid var(--v5-border-color);border-radius:8px;overflow:hidden;background:var(--v5-bg-tertiary);transition:all .2s cubic-bezier(.4,0,.2,1);box-shadow:var(--v5-shadow-sm)}.mulligan-card:hover{transform:translateY(-4px) scale(1.05);border-color:var(--v5-neon-cyan);box-shadow:var(--v5-glow-cyan)}.mulligan-card img{width:100%;height:100%;object-fit:cover}.mulligan-buttons{display:flex;gap:12px;justify-content:center}.mulligan-button{flex:1;padding:14px 24px;border:2px solid var(--v5-neon-cyan);border-radius:8px;font-weight:700;font-size:16px;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);text-transform:uppercase;letter-spacing:1.5px;max-width:200px}.mulligan-button-keep{background:linear-gradient(135deg,#1a1a1a,#2a2a2a);color:var(--v5-neon-cyan);box-shadow:var(--v5-shadow-md),var(--v5-glow-cyan)}.mulligan-button-keep:hover{transform:translateY(-2px);box-shadow:0 0 30px #0ffc;color:#fff}.mulligan-button-mulligan{background:linear-gradient(135deg,#ff007f,#bf00ff);color:var(--v5-text-primary);border-color:var(--v5-neon-pink);box-shadow:var(--v5-shadow-md),var(--v5-glow-pink)}.mulligan-button-mulligan:hover{transform:translateY(-2px);box-shadow:0 0 30px #ff007fcc;background:linear-gradient(135deg,#bf00ff,#8b00bf)}.mulligan-waiting{text-align:center;padding:16px 24px;color:var(--v5-text-muted);font-size:1rem;opacity:.8}.starter-modal{background:var(--v5-bg-secondary);border:2px solid var(--v5-neon-cyan);border-radius:12px;padding:20px;max-width:90vw;width:600px;max-height:85vh;display:flex;flex-direction:column;box-shadow:var(--v5-shadow-lg),var(--v5-glow-cyan);animation:modalSlideIn .3s cubic-bezier(.4,0,.2,1)}.starter-modal-title{color:var(--v5-neon-cyan);font-size:24px;font-weight:800;text-align:center;margin:0 0 8px;text-transform:uppercase;letter-spacing:3px;text-shadow:var(--v5-glow-cyan)}.starter-modal-subtitle{color:var(--v5-text-secondary);font-size:14px;text-align:center;margin-bottom:20px}.starter-hand{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;padding:16px;background:var(--v5-bg-primary);border:1px solid var(--v5-border-color);border-radius:8px;max-height:60vh;overflow-y:auto}.starter-card{width:80px;height:112px;border:2px solid var(--v5-border-color);border-radius:8px;overflow:hidden;background:var(--v5-bg-tertiary);transition:all .2s cubic-bezier(.4,0,.2,1);box-shadow:var(--v5-shadow-sm);cursor:pointer}.starter-card:hover{transform:translateY(-6px) scale(1.1);border-color:var(--v5-neon-purple);box-shadow:var(--v5-glow-purple);z-index:10}.starter-card img{width:100%;height:100%;object-fit:cover}@media (min-width: 1600px){.duel-v5-container{font-size:110%}.mini-zone{width:77px;height:110px;font-size:12px}.zone-count{font-size:20px}.cookie-card{width:132px;height:185px}.battlefield-card{width:77px;height:108px}.stage-zone{width:132px;height:185px}.card-hand{width:110px;height:154px}.content-box{height:264px}.phase-btn{padding:12px 18px;font-size:15px}.hp-counter{width:24px;height:24px;font-size:13px}.mulligan-card,.starter-card{width:110px;height:154px}}@media (min-width: 1920px){.duel-v5-container{font-size:125%}.mini-zone{width:88px;height:125px;font-size:14px}.zone-count{font-size:22px}.cookie-card{width:150px;height:210px}.battlefield-card{width:88px;height:123px}.stage-zone{width:150px;height:210px}.card-hand{width:125px;height:175px}.content-box{height:300px}.phase-btn{padding:14px 22px;font-size:17px}.hp-counter{width:28px;height:28px;font-size:15px}.mulligan-card,.starter-card{width:125px;height:175px}.support-zone.opponent-support{min-height:250px;max-height:300px}.cookie-slots{gap:15px}.zone-row{gap:10px;padding:10px}}@media (min-width: 2560px){.duel-v5-container{font-size:150%}.mini-zone{width:105px;height:150px;font-size:16px}.zone-count{font-size:27px}.cookie-card{width:180px;height:252px}.battlefield-card{width:105px;height:147px}.stage-zone{width:180px;height:252px}.card-hand{width:150px;height:210px}.content-box{height:360px}.phase-btn{padding:18px 28px;font-size:20px}.hp-counter{width:33px;height:33px;font-size:17px}.mulligan-card,.starter-card{width:150px;height:210px}.support-zone.opponent-support{min-height:300px;max-height:360px}.cookie-slots{gap:18px}.zone-row{gap:12px;padding:12px}.mulligan-modal,.starter-modal,.deck-selection-modal{max-width:1400px}}@media (min-width: 3840px){.duel-v5-container{font-size:200%}.mini-zone{width:140px;height:200px;font-size:22px}.zone-count{font-size:36px}.cookie-card{width:240px;height:336px}.battlefield-card{width:140px;height:196px}.stage-zone{width:240px;height:336px}.card-hand{width:200px;height:280px}.content-box{height:480px}.phase-btn{padding:24px 36px;font-size:26px}.hp-counter{width:44px;height:44px;font-size:22px}.mulligan-card,.starter-card{width:200px;height:280px}.support-zone.opponent-support{min-height:400px;max-height:480px}.cookie-slots{gap:24px}.zone-row{gap:16px;padding:16px}.mulligan-modal,.starter-modal,.deck-selection-modal{max-width:1800px}}@media (max-width: 768px){.battle-area{gap:6px;padding:8px}.player-zone-row{height:160px;gap:6px}.side-zones{gap:6px}.mini-zone{width:50px;height:70px;font-size:10px;padding:4px}.zone-label{font-size:9px;margin-bottom:2px}.zone-count{font-size:11px}.center-column{gap:6px}.cookie-slots{gap:8px}.cookie-card{width:80px;height:112px;font-size:11px}.cookie-label{font-size:9px}.battlefield-row{gap:6px}.battlefield-row.support-zone{min-height:60px;padding:4px}.support-zone-container{padding:6px;margin-top:4px}.support-zone-label{font-size:11px;padding:3px 12px;top:-10px}.battlefield-card{width:50px;height:70px}.stage-zone{width:80px;height:112px}.stage-zone .zone-label{font-size:10px}.hp-counter{width:16px;height:16px;font-size:10px}.phase-controls{gap:6px;padding:6px;height:40px}.phase-btn{padding:8px;font-size:12px}.content-box{height:216px}.card-hand{width:80px;height:112px}.deck-selection-modal{padding:16px;width:95vw;max-height:90vh}.deck-modal-title{font-size:20px;letter-spacing:2px;margin-bottom:6px}.deck-modal-subtitle{font-size:13px;margin-bottom:12px}.deck-picker{max-height:40vh;padding:6px;gap:6px}.deck-item{padding:10px 12px;gap:10px;font-size:14px}.deck-icon,.deck-icon-placeholder{width:28px;height:28px}.deck-status{gap:12px;padding:10px;margin-bottom:12px}.deck-status-label{font-size:11px}.deck-status-ready,.deck-status-waiting{font-size:13px}.deck-modal-buttons{flex-direction:column;gap:10px}.deck-button{padding:12px 20px;font-size:14px;letter-spacing:1px}.mulligan-modal{padding:16px;width:95vw;max-height:90vh}.mulligan-modal-title{font-size:20px;letter-spacing:2px;margin-bottom:6px}.mulligan-modal-subtitle{font-size:13px;margin-bottom:16px}.mulligan-hand{gap:8px;padding:12px;max-height:45vh}.mulligan-card{width:70px;height:98px}.mulligan-buttons{flex-direction:column;gap:10px}.mulligan-button{padding:12px 20px;font-size:14px;letter-spacing:1px;max-width:100%}.starter-modal{padding:16px;width:95vw;max-height:90vh}.starter-modal-title{font-size:20px;letter-spacing:2px;margin-bottom:6px}.starter-modal-subtitle{font-size:13px;margin-bottom:16px}.starter-hand{gap:8px;padding:12px;max-height:50vh}.starter-card{width:70px;height:98px}}.faq-container{min-height:100vh;background:var(--color-background, #1a1a1a);color:var(--color-text, #e0e0e0);padding:2rem 1rem}.faq-content{max-width:900px;margin:0 auto;background:var(--color-surface, #2a2a2a);border-radius:12px;padding:2rem;box-shadow:0 4px 12px #0000004d}.faq-header{text-align:center;margin-bottom:3rem;padding-bottom:2rem;border-bottom:2px solid var(--color-border, #444)}.faq-header h1{font-size:2.5rem;margin:0 0 1rem;color:var(--color-primary, #ff6b9d);font-weight:700}.faq-subtitle{font-size:1.1rem;color:var(--color-text-secondary, #b0b0b0);margin:0}.faq-toc{background:var(--color-background-alt, #1e1e1e);border-radius:8px;padding:1.5rem;margin-bottom:3rem;border-left:4px solid var(--color-primary, #ff6b9d)}.faq-toc h2{margin-top:0;font-size:1.3rem;color:var(--color-primary, #ff6b9d)}.faq-toc ul{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.5rem}.faq-toc li{margin:0}.faq-toc a{color:var(--color-link, #6db4ff);text-decoration:none;transition:color .2s;display:block;padding:.5rem;border-radius:4px}.faq-toc a:hover{color:var(--color-link-hover, #9fcfff);background:#6db4ff1a}.faq-section{margin-bottom:3rem;scroll-margin-top:2rem}.faq-section h2{font-size:2rem;margin-top:0;margin-bottom:1.5rem;color:var(--color-primary, #ff6b9d);border-bottom:2px solid var(--color-border, #444);padding-bottom:.5rem}.faq-item{margin-bottom:2rem;padding:1.5rem;background:var(--color-background-alt, #1e1e1e);border-radius:8px;border-left:3px solid var(--color-accent, #a78bfa)}.faq-item h3{margin-top:0;font-size:1.3rem;color:var(--color-heading, #ffffff);margin-bottom:1rem}.faq-item h4{font-size:1.1rem;color:var(--color-text, #e0e0e0);margin-top:1.5rem;margin-bottom:.75rem}.faq-item p{line-height:1.6;margin-bottom:1rem;color:var(--color-text-secondary, #b0b0b0)}.faq-item ul,.faq-item ol{line-height:1.8;margin-bottom:1rem;color:var(--color-text-secondary, #b0b0b0);padding-left:1.5rem}.faq-item ul ul,.faq-item ol ul{margin-top:.5rem;margin-bottom:.5rem}.faq-item li{margin-bottom:.5rem}.faq-item code{background:var(--color-background, #1a1a1a);padding:.2rem .4rem;border-radius:4px;font-family:Courier New,monospace;color:var(--color-accent, #a78bfa);font-size:.9em}.faq-item pre{background:var(--color-background, #1a1a1a);padding:1rem;border-radius:6px;overflow-x:auto;margin:1rem 0}.faq-item pre code{background:transparent;padding:0}.faq-note,.faq-tip,.faq-warning{padding:1rem;border-radius:6px;margin-top:1rem;border-left:4px solid}.faq-note{background:#6db4ff1a;border-color:var(--color-info, #6db4ff)}.faq-tip{background:#4ade801a;border-color:var(--color-success, #4ade80)}.faq-warning{background:#fb923c1a;border-color:var(--color-warning, #fb923c)}.faq-tips{background:linear-gradient(135deg,#a78bfa1a,#6db4ff1a);border-radius:8px;padding:2rem}.tips-list{list-style:none;padding:0;margin:0}.tips-list li{padding:.75rem;margin-bottom:.5rem;background:var(--color-background-alt, #1e1e1e);border-radius:6px;transition:transform .2s}.tips-list li:hover{transform:translate(4px)}.faq-footer{text-align:center;padding:2rem;background:var(--color-background-alt, #1e1e1e);border-radius:8px}.faq-happy{font-size:1.3rem;margin-top:1.5rem}.faq-page-footer{text-align:center;margin-top:3rem;padding-top:2rem;border-top:1px solid var(--color-border, #444);color:var(--color-text-secondary, #b0b0b0)}@media (max-width: 768px){.faq-content{padding:1.5rem}.faq-header h1{font-size:1.8rem}.faq-subtitle{font-size:1rem}.faq-toc ul{grid-template-columns:1fr}.faq-section h2{font-size:1.5rem}.faq-item h3{font-size:1.1rem}}@media print{.faq-container{background:#fff;color:#000}.faq-content{box-shadow:none;background:#fff}.faq-toc a{color:#000}}.settings-modal-v5{--v5-bg-primary: #0a0a0a;--v5-bg-secondary: #121212;--v5-bg-tertiary: #1a1a1a;--v5-bg-card: #0f0f0f;--v5-neon-cyan: #00ffff;--v5-neon-pink: #ff007f;--v5-neon-purple: #bf00ff;--v5-neon-blue: #0080ff;--v5-text-primary: #ffffff;--v5-text-secondary: #b0b0b0;--v5-text-muted: #6b7280;--v5-border: rgba(255, 255, 255, .1);--v5-border-focus: rgba(0, 255, 255, .5);--v5-success: #10b981;--v5-danger: #ef4444;--v5-warning: #f59e0b}.settings-modal-v5.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000d9;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;z-index:1000;padding:16px;animation:fadeIn .2s ease-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.settings-modal-v5 .modal-container{background:linear-gradient(135deg,var(--v5-bg-card) 0%,var(--v5-bg-secondary) 100%);border:1px solid var(--v5-border);border-radius:16px;box-shadow:0 0 40px #00ffff26,0 8px 32px #00000080;max-width:600px;width:100%;max-height:90vh;overflow-y:auto;animation:slideUp .3s ease-out;position:relative}@keyframes slideUp{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}.settings-modal-v5 .modal-header{padding:24px;border-bottom:1px solid var(--v5-border);position:sticky;top:0;background:var(--v5-bg-card);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);z-index:10}.settings-modal-v5 .modal-title{margin:0;font-size:24px;font-weight:700;color:var(--v5-text-primary);text-transform:uppercase;letter-spacing:.5px;background:linear-gradient(135deg,var(--v5-neon-cyan),var(--v5-neon-purple));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.settings-modal-v5 .modal-body{padding:24px;display:flex;flex-direction:column;gap:20px}.settings-modal-v5 .setting-section{padding:16px;background:#ffffff05;border:1px solid var(--v5-border);border-radius:12px;transition:all .2s ease}.settings-modal-v5 .setting-section:hover{background:#ffffff0a;border-color:#0ff3;box-shadow:0 0 20px #00ffff1a}.settings-modal-v5 .username-section{display:flex;flex-direction:column;gap:8px}.settings-modal-v5 .input-label{font-size:14px;font-weight:600;color:var(--v5-text-secondary);text-transform:uppercase;letter-spacing:.5px}.settings-modal-v5 .input-field{width:100%;padding:12px 16px;font-size:16px;color:var(--v5-text-primary);background:#0006;border:1px solid var(--v5-border);border-radius:8px;outline:none;transition:all .2s ease;font-family:inherit}.settings-modal-v5 .input-field:focus{border-color:var(--v5-border-focus);box-shadow:0 0 0 3px #00ffff1a,0 0 20px #0ff3;background:#0009}.settings-modal-v5 .input-field::placeholder{color:var(--v5-text-muted)}.settings-modal-v5 .message{padding:10px 14px;border-radius:8px;font-size:13px;font-weight:500;margin-top:8px;animation:slideIn .2s ease-out}@keyframes slideIn{0%{transform:translateY(-5px);opacity:0}to{transform:translateY(0);opacity:1}}.settings-modal-v5 .message.success{color:var(--v5-success);background:#10b98126;border:1px solid rgba(16,185,129,.3)}.settings-modal-v5 .message.error{color:var(--v5-danger);background:#ef444426;border:1px solid rgba(239,68,68,.3)}.settings-modal-v5 .toggle-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.settings-modal-v5 .toggle-label{font-size:16px;font-weight:600;color:var(--v5-text-primary);flex:1}.settings-modal-v5 .toggle-controls{display:flex;align-items:center;gap:12px}.settings-modal-v5 .toggle-status{font-size:13px;color:var(--v5-text-muted);min-width:50px;text-align:right}.settings-modal-v5 .toggle-button{padding:8px 16px;font-size:14px;font-weight:600;color:var(--v5-text-primary);background:#ffffff0d;border:1px solid var(--v5-border);border-radius:6px;cursor:pointer;transition:all .2s ease;text-transform:uppercase;letter-spacing:.5px}.settings-modal-v5 .toggle-button:hover{background:#00ffff1a;border-color:var(--v5-neon-cyan);box-shadow:0 0 15px #0ff3;transform:translateY(-1px)}.settings-modal-v5 .toggle-button:active{transform:translateY(0)}.settings-modal-v5 .setting-description{font-size:13px;color:var(--v5-text-muted);line-height:1.5;margin-top:8px}.settings-modal-v5 .feedback-section{display:flex;align-items:center;justify-content:space-between;gap:16px}.settings-modal-v5 .feedback-info{flex:1}.settings-modal-v5 .feedback-title{font-size:16px;font-weight:600;color:var(--v5-text-primary);margin-bottom:4px}.settings-modal-v5 .btn-primary{padding:10px 20px;font-size:14px;font-weight:600;color:var(--v5-bg-primary);background:linear-gradient(135deg,var(--v5-neon-cyan),var(--v5-neon-blue));border:none;border-radius:8px;cursor:pointer;transition:all .2s ease;text-transform:uppercase;letter-spacing:.5px;white-space:nowrap;box-shadow:0 0 20px #00ffff4d}.settings-modal-v5 .btn-primary:hover{transform:translateY(-2px);box-shadow:0 0 30px #00ffff80,0 4px 12px #0000004d}.settings-modal-v5 .btn-primary:active{transform:translateY(0)}.settings-modal-v5 .btn-primary:disabled{opacity:.5;cursor:not-allowed;transform:none}.settings-modal-v5 .modal-footer{padding:20px 24px;border-top:1px solid var(--v5-border);display:flex;gap:12px;justify-content:flex-end;background:#0003;position:sticky;bottom:0}.settings-modal-v5 .btn-cancel{padding:10px 24px;font-size:14px;font-weight:600;color:var(--v5-text-secondary);background:#ffffff0d;border:1px solid var(--v5-border);border-radius:8px;cursor:pointer;transition:all .2s ease;text-transform:uppercase;letter-spacing:.5px}.settings-modal-v5 .btn-cancel:hover{background:#ffffff1a;border-color:#fff3;color:var(--v5-text-primary)}.settings-modal-v5 .btn-cancel:disabled{opacity:.5;cursor:not-allowed}.settings-modal-v5 .btn-save{padding:10px 24px;font-size:14px;font-weight:600;color:var(--v5-bg-primary);background:linear-gradient(135deg,var(--v5-neon-cyan),var(--v5-neon-blue));border:none;border-radius:8px;cursor:pointer;transition:all .2s ease;text-transform:uppercase;letter-spacing:.5px;box-shadow:0 0 20px #00ffff4d}.settings-modal-v5 .btn-save:hover{transform:translateY(-2px);box-shadow:0 0 30px #00ffff80,0 4px 12px #0000004d}.settings-modal-v5 .btn-save:active{transform:translateY(0)}.settings-modal-v5 .btn-save:disabled{opacity:.5;cursor:not-allowed;transform:none;box-shadow:none}.settings-modal-v5 .modal-container::-webkit-scrollbar{width:8px}.settings-modal-v5 .modal-container::-webkit-scrollbar-track{background:#0000004d;border-radius:8px}.settings-modal-v5 .modal-container::-webkit-scrollbar-thumb{background:linear-gradient(180deg,var(--v5-neon-cyan),var(--v5-neon-purple));border-radius:8px}.settings-modal-v5 .modal-container::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,var(--v5-neon-cyan),var(--v5-neon-pink))}@media (max-width: 768px){.settings-modal-v5 .modal-container{max-width:100%;margin:8px;border-radius:12px}.settings-modal-v5 .modal-header,.settings-modal-v5 .modal-body,.settings-modal-v5 .modal-footer{padding:16px}.settings-modal-v5 .modal-title{font-size:20px}.settings-modal-v5 .feedback-section{flex-direction:column;align-items:stretch}.settings-modal-v5 .btn-primary{width:100%;justify-content:center}.settings-modal-v5 .toggle-row{flex-direction:column;align-items:stretch;gap:8px}.settings-modal-v5 .toggle-controls{justify-content:space-between}}@media (min-width: 769px) and (max-width: 1024px){.settings-modal-v5 .modal-container{max-width:540px}}.settings-modal-v5 .btn-save.loading,.settings-modal-v5 .btn-primary.loading{position:relative;color:transparent}.settings-modal-v5 .btn-save.loading:after,.settings-modal-v5 .btn-primary.loading:after{content:"";position:absolute;width:16px;height:16px;top:50%;left:50%;margin-left:-8px;margin-top:-8px;border:2px solid rgba(255,255,255,.3);border-radius:50%;border-top-color:var(--v5-bg-primary);animation:spin .6s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
