/* BragBoard.gg - Custom CSS */
/* Designed to match the NextJS/Tailwind styling */

:root {
    /* BragBoard.gg Brand Colors */
    --bragboard-gold: #FFD700;
    --bragboard-blue: #00AEEF;
    --bragboard-charcoal: hsl(0, 0%, 10.2%);

    /* Theme Colors */
    --background: hsl(0, 0%, 10.2%);
    --foreground: hsl(0 0% 100%);
    --card: hsl(0 0% 12%);
    --card-foreground: hsl(0 0% 100%);
    --popover: hsl(0 0% 100%);
    --popover-foreground: hsl(0 0% 3.9%);
    --primary: hsl(0 0% 9%);
    --primary-foreground: hsl(0 0% 98%);
    --secondary: hsl(0 0% 96.1%);
    --secondary-foreground: hsl(0 0% 9%);
    --muted: hsl(0 0% 96.1%);
    --muted-foreground: hsl(0 0% 45.1%);
    --accent: hsl(0 0% 96.1%);
    --accent-foreground: hsl(0 0% 9%);
    --destructive: hsl(0 84.2% 60.2%);
    --destructive-foreground: hsl(0 0% 98%);
    --border: hsl(0 0% 20%);
    --input: hsl(0 0% 89.8%);
    --ring: hsl(0 0% 3.9%);
    --radius: 0.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bragboard-charcoal), hsl(0, 0%, 8%), hsl(0, 0%, 12%));
    color: var(--foreground);
    min-height: 100vh;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Layout utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-1 { flex: 1 1 0%; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-7 { gap: 1.75rem; }
.gap-8 { gap: 2rem; }
.gap-9 { gap: 2.25rem; }
.gap-10 { gap: 2.5rem; }
.gap-11 { gap: 2.75rem; }
.gap-12 { gap: 3rem; }
.gap-13 { gap: 3.25rem; }
.gap-14 { gap: 3.5rem; }
.gap-15 { gap: 3.75rem; }
.gap-16 { gap: 4rem; }
/* Spacing */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }
.p-8 { padding: 2rem; }
.p-9 { padding: 2.25rem; }
.p-10 { padding: 2.5rem; }
.p-11 { padding: 2.75rem; }
.p-12 { padding: 3rem; }
.p-13 { padding: 3.25rem; }
.p-14 { padding: 3.5rem; }
.p-15 { padding: 3.75rem; }
.p-16 { padding: 4rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
.px-9 { padding-left: 2.25rem; padding-right: 2.25rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.px-11 { padding-left: 2.75rem; padding-right: 2.75rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }
.px-13 { padding-left: 3.25rem; padding-right: 3.25rem; }
.px-14 { padding-left: 3.5rem; padding-right: 3.5rem; }
.px-15 { padding-left: 3.75rem; padding-right: 3.75rem; }
.px-16 { padding-left: 4rem; padding-right: 4rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-7 { padding-top: 1.75rem; padding-bottom: 1.75rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-9 { padding-top: 2.25rem; padding-bottom: 2.25rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-11 { padding-top: 2.75rem; padding-bottom: 2.75rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-13 { padding-top: 3.25rem; padding-bottom: 3.25rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.py-15 { padding-top: 3.75rem; padding-bottom: 3.75rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pt-16 { padding-top: 4rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-12 { padding-bottom: 3rem; }

.m-0 { margin: 0; }
.m-auto { margin: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-auto { margin-top: auto; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }
.my-12 { margin-top: 3rem; margin-bottom: 3rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-2 { margin-left: 0.5rem; }

/* Sizing */
.w-full { width: 100%; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-16 { width: 4rem; }
.w-12 { width: 3rem; }
.w-24 { width: 6rem; }
.w-32 { width: 8rem; }
.h-5 { height: 1.25rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-16 { height: 4rem; }
.h-12 { height: 3rem; }
.h-24 { height: 6rem; }
.h-32 { height: 8rem; }
.h-screen { height: 100vh; }
.min-h-screen { min-height: 100vh; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-\[calc\(100vw-2rem\)\] { max-width: calc(100vw - 2rem); }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.uppercase { text-transform: uppercase; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Colors */
.text-white { color: #fff; }
.text-gray-300 { color: rgb(209 213 219); }
.text-gray-400 { color: rgb(156 163 175); }
.text-gray-500 { color: rgb(107 114 128); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-card-foreground { color: var(--card-foreground); }
.text-foreground { color: var(--foreground); }
.text-popover-foreground { color: var(--popover-foreground); }

.text-bragboard-gold { color: var(--bragboard-gold); }
.text-bragboard-blue { color: var(--bragboard-blue); }
.text-bragboard-charcoal { color: var(--bragboard-charcoal); }

.bg-background { background-color: var(--background); }
.bg-card { background-color: var(--card); }
.bg-popover { background-color: var(--popover); }
.bg-border { background-color: var(--border); }
.bg-bragboard-gold { background-color: var(--bragboard-gold); }
.bg-bragboard-gold\/5 { background-color: rgba(255, 215, 0, 0.05); }
.bg-bragboard-blue { background-color: var(--bragboard-blue); }
.bg-bragboard-charcoal { background-color: var(--bragboard-charcoal); }
.bg-black\/50 { background-color: rgba(0, 0, 0, 0.5); }
.bg-black\/60 { background-color: rgba(0, 0, 0, 0.6); }
.bg-muted\/30 { background-color: hsl(0 0% 96.1% / 0.3); }

/* Borders */
.border { border-width: 1px; border-style: solid; }
.border-0 { border-width: 0; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-l { border-left-width: 1px; border-left-style: solid; }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.border-border { border-color: var(--border); }
.border-border\/50 { border-color: rgba(51, 51, 51, 0.5); }
.border-input { border-color: var(--input); }
.border-bragboard-gold { border-color: var(--bragboard-gold); }
.border-bragboard-gold\/30 { border-color: rgba(255, 215, 0, 0.3); }
.border-bragboard-gold\/50 { border-color: rgba(255, 215, 0, 0.5); }
.border-bragboard-blue { border-color: var(--bragboard-blue); }

.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }

/* Icon / positioning utilities for search input */
.h-px { height: 1px; }
.h-4 { height: 1rem; font-size: 1rem; }
.w-4 { width: 1rem; }
.h-5 { height: 1.25rem; font-size: 1.25rem; }
.w-5 { width: 1.25rem; }
.h-8 { height: 2rem; font-size: 2rem; }
.w-8 { width: 2rem; }
.left-2 { left: 0.5rem; }
.left-3 { left: 0.75rem; }
.top-1\/2 { top: 50%; }
.transform { transform: translateZ(0); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-t-lg { border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; }

/* Background effects */
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }

/* Shadows */
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.top-2 { top: 0.5rem; }
.top-3 { top: 0.75rem; }
.right-2 { right: 0.5rem; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.z-100 { z-index: 100; }

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* Grid */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-visible { overflow: visible; }

/* Object fit */
.object-cover { object-fit: cover; }

/* Transitions */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }

/* Transforms */
.scale-105 { transform: scale(1.05); }

/* Opacity */
.opacity-50 { opacity: 0.5; }
.opacity-90 { opacity: 0.9; }

/* Hover states */
.hover\:bg-card\/70:hover { background-color: rgba(31, 31, 31, 0.7); }
.hover\:bg-bragboard-gold\/90:hover { background-color: rgba(255, 215, 0, 0.9); }
.hover\:bg-bragboard-blue\/10:hover { background-color: rgba(0, 174, 239, 0.1); }
.hover\:bg-bragboard-blue\/10:hover { background-color: rgba(0, 174, 239, 0.1); }
.hover\:text-foreground:hover { color: var(--foreground); }
.hover\:text-bragboard-gold:hover { color: var(--bragboard-gold); }
.hover\:border-bragboard-gold\/50:hover { border-color: rgba(255, 215, 0, 0.5); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.hover\:scale-105:hover { transform: scale(1.05); }

/* Group hover */
.group:hover .group-hover\:text-bragboard-gold { color: var(--bragboard-gold); }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:border-bragboard-gold\/50 { border-color: rgba(255, 215, 0, 0.5); }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* Aspect ratio */
.aspect-square { aspect-ratio: 1 / 1; }

/* Animations */
.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

/* Component styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    height: 2.5rem;
    transition: all 150ms ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

.btn:disabled {
    pointer-events: none;
    opacity: 0.5;
}

.btn-primary {
    background-color: var(--bragboard-gold);
    color: var(--bragboard-charcoal);
}

.btn-primary:hover {
    background-color: rgba(255, 215, 0, 0.9);
}

.btn-secondary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-secondary:hover {
    opacity: 0.9;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--bragboard-blue);
    color: var(--bragboard-blue);
}

.btn-outline:hover {
    background-color: rgba(0, 174, 239, 0.1);
}

.btn-ghost {
    background-color: transparent;
    color: var(--foreground);
}

.btn-ghost:hover {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

.btn-sm {
    height: 2.25rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

.btn-lg {
    height: 2.75rem;
    padding: 0.5rem 2rem;
    font-size: 1.125rem;
}

/* Card component */
.card {
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    background-color: var(--card);
    color: var(--card-foreground);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.card-content {
    padding: 1.5rem;
    padding-top: 0;
}

.gaming-card {
    color: var(--card-foreground);
    border-color: var(--border);
    border-width: 1px;
    border-radius: 0.5rem;
    background-color: var(--card);
    backdrop-filter: blur(4px);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.125rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    transition: colors 150ms ease;
}

.badge-primary {
    background-color: var(--bragboard-gold);
    color: var(--bragboard-charcoal);
}

.badge-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

/* Input */
.input {
    display: flex;
    height: 2.5rem;
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid var(--input);
    background-color: transparent;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--foreground);
}

.input.border-0 {
    border: 0;
}

/* Extra padding utilities */
.pl-10 { padding-left: 2.5rem; }

.input:focus {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

.input:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.input::placeholder {
    color: var(--muted-foreground);
}

/* Avatar */
.avatar {
    position: relative;
    display: flex;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 9999px;
}

.avatar-fallback {
    display: flex;
    height: 100%;
    width: 100%;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background-color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.avatar-fallback.bg-bragboard-gold {
    background-color: var(--bragboard-gold) !important;
}

/* Details / summary chevron rotation */
details summary::-webkit-details-marker {
    display: none;
}

.chevron {
    transition: transform 150ms ease;
}

details[open] .chevron {
    transform: rotate(180deg);
}

/* Container */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Responsive utilities */
@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:flex-row { flex-direction: row; }
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:border-b-0 { border-bottom-width: 0; }
}

@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:block { display: block; }
    .md\:flex-row { flex-direction: row; }
    .md\:hidden { display: none; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
    .md\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
    .md\:h-32 { height: 8rem; }
    .md\:w-32 { width: 8rem; }
}

@media (min-width: 1024px) {
    .lg\:flex { display: flex; }
    .lg\:flex-row { flex-direction: row; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:col-span-1 { grid-column: span 1 / span 1; }
    .lg\:col-span-2 { grid-column: span 2 / span 2; }
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\:text-7xl { font-size: 4.5rem; line-height: 1; }
    .lg\:block { display: block; }
    .lg\:hidden { display: none; }
    .lg\:w-80 { width: 20rem; }
}

@media (min-width: 1280px) {
    .xl\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Link styles */
a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    color: inherit;
}

/* Gold bullet list items */
ul.gold-bullets {
    list-style: none;
    padding-left: 0;
}

ul.gold-bullets > li {
    position: relative;
    padding-left: 1.5rem;
}

ul.gold-bullets > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 0.625rem;
    height: 0.625rem;
    background-color: var(--bragboard-gold);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(to right, #FFD700, #00AEEF, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Icon sizing helpers */
.icon-sm { width: 1rem; height: 1rem; }
.icon-md { width: 1.25rem; height: 1.25rem; }
.icon-lg { width: 1.5rem; height: 1.5rem; }

/* Accessibility helpers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Star filled */
.star-filled {
    fill: currentColor;
}

/* Space utilities */
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* Fill current color */
.fill-current { fill: currentColor; }

/* Pointer events */
.pointer-events-none { pointer-events: none; }

#components-reconnect-modal {
    display: none;
}

.connection-toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    margin-left: calc((100% - 100vw) / 2);
    transform: translateX(-50%) translateY(0.5rem);
    background-color: var(--card);
    color: var(--foreground);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 150ms ease, transform 150ms ease;
    max-width: min(90vw, 26rem);
}

.connection-toast--visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.connection-toast__message {
    font-size: 0.875rem;
}

.connection-toast--refreshing [data-connection-refresh] {
    display: none;
}

.connection-toast__spinner {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    border: 2px solid var(--border);
    border-top-color: var(--bragboard-gold);
    animation: spin 1s linear infinite;
}

.connection-toast--refreshing .connection-toast__spinner {
    display: inline-flex;
}
