        :root {
            --gc-bg: #0a120a;
            --gc-bg-muted: rgba(0, 0, 0, 0.3);
            --gc-surface: rgba(255, 255, 255, 0.05);
            --gc-surface-strong: rgba(255, 255, 255, 0.1);
            --gc-border: rgba(255, 255, 255, 0.1);
            --gc-border-accent: rgba(16, 124, 16, 0.3);
            --gc-text: rgb(241, 245, 249);
            --gc-text-muted: rgb(148, 163, 184);
            --gc-text-soft: rgb(203, 213, 225);
            --gc-header-bg: rgba(0, 0, 0, 0.7);
            --gc-footer-bg: rgba(0, 0, 0, 0.4);
            --gc-input-bg: rgba(0, 0, 0, 0.5);
            --gc-card-hover: rgba(255, 255, 255, 0.1);
            --gc-title: #ffffff;
        }

        html[data-theme="light"] {
            --gc-bg: #f4f7fb;
            --gc-bg-muted: rgba(255, 255, 255, 0.85);
            --gc-surface: rgba(255, 255, 255, 0.92);
            --gc-surface-strong: #ffffff;
            --gc-border: rgba(15, 23, 42, 0.12);
            --gc-border-accent: rgba(16, 124, 16, 0.28);
            --gc-text: rgb(15, 23, 42);
            --gc-text-muted: rgb(100, 116, 139);
            --gc-text-soft: rgb(71, 85, 105);
            --gc-header-bg: rgba(255, 255, 255, 0.92);
            --gc-footer-bg: rgba(255, 255, 255, 0.95);
            --gc-input-bg: #ffffff;
            --gc-card-hover: rgba(16, 124, 16, 0.06);
            --gc-title: rgb(15, 23, 42);
        }

        body {
            background-color: var(--gc-bg);
            color: var(--gc-text);
        }

        .gc-header {
            background-color: var(--gc-header-bg);
            border-color: var(--gc-border-accent);
        }

        .gc-footer {
            background-color: var(--gc-footer-bg);
            border-color: var(--gc-border-accent);
        }

        .gc-footer a {
            transition: color 180ms ease;
        }

        .gc-footer a:hover {
            color: #52b043;
        }

        .gc-surface {
            background-color: var(--gc-surface);
            border-color: var(--gc-border);
        }

        .gc-surface-muted {
            background-color: var(--gc-bg-muted);
            border-color: var(--gc-border);
        }

        .gc-input {
            background-color: var(--gc-input-bg);
            color: var(--gc-text);
            border-color: var(--gc-border-accent);
        }

        .gc-empty-state {
            border-radius: 1rem;
            border: 1px dashed var(--gc-border);
            background-color: var(--gc-surface);
            padding: 2.5rem;
            text-align: center;
            color: var(--gc-text-muted);
            font-size: 0.875rem;
            line-height: 1.25rem;
        }

        .gc-loading-status {
            grid-column: 1 / -1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            padding: 1rem 1.25rem;
            margin-bottom: 0.25rem;
            border-radius: 1rem;
            border: 1px solid var(--gc-border-accent);
            background-color: var(--gc-surface);
            color: var(--gc-text-soft);
            font-size: 0.875rem;
            font-weight: 500;
        }

        .gc-loading-spinner {
            width: 1.25rem;
            height: 1.25rem;
            border-radius: 9999px;
            border: 2px solid rgba(16, 124, 16, 0.2);
            border-top-color: rgb(34, 197, 94);
            animation: gc-spin 0.75s linear infinite;
            flex-shrink: 0;
        }

        @keyframes gc-spin {
            to {
                transform: rotate(360deg);
            }
        }

        .gc-toast-root {
            position: fixed;
            right: 1rem;
            bottom: 1rem;
            z-index: 80;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            max-width: min(22rem, calc(100vw - 2rem));
            pointer-events: none;
        }

        .gc-toast {
            border-radius: 0.875rem;
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: rgba(15, 23, 42, 0.96);
            color: #f8fafc;
            padding: 0.75rem 1rem;
            font-size: 0.875rem;
            line-height: 1.4;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
            opacity: 0;
            transform: translateY(0.5rem);
            transition: opacity 0.2s ease, transform 0.2s ease;
        }

        .gc-toast-visible {
            opacity: 1;
            transform: translateY(0);
        }

        .gc-toast-error {
            border-color: rgba(248, 113, 113, 0.35);
            background: rgba(69, 10, 10, 0.96);
        }

        .gc-toast-success {
            border-color: rgba(74, 222, 128, 0.35);
            background: rgba(5, 46, 22, 0.96);
        }

        html[data-theme="light"] .gc-toast {
            background: rgba(255, 255, 255, 0.98);
            color: #0f172a;
            border-color: rgba(15, 23, 42, 0.12);
        }

        .gc-loading-card {
            display: flex;
            flex-direction: column;
            overflow: hidden;
            border-radius: 1rem;
            border: 1px solid var(--gc-border);
            background-color: var(--gc-surface);
            min-height: 100%;
        }

        .gc-loading-card-image,
        .gc-loading-line {
            background: linear-gradient(
                90deg,
                var(--gc-bg-muted) 0%,
                var(--gc-surface-strong) 50%,
                var(--gc-bg-muted) 100%
            );
            background-size: 200% 100%;
            animation: gc-shimmer 1.4s ease-in-out infinite;
        }

        .gc-loading-card-image {
            aspect-ratio: 3 / 4;
            width: 100%;
        }

        .gc-loading-card-body {
            display: flex;
            flex-direction: column;
            gap: 0.625rem;
            padding: 1rem 1.25rem 1.25rem;
        }

        .gc-loading-line {
            height: 0.875rem;
            border-radius: 0.375rem;
        }

        .gc-loading-line-title {
            width: 78%;
        }

        .gc-loading-line-short {
            width: 42%;
        }

        .gc-loading-line-heading {
            width: 12rem;
            height: 1.125rem;
        }

        .gc-loading-line-label {
            width: 38%;
            height: 0.75rem;
        }

        .gc-loading-line-value {
            width: 56%;
            height: 1.75rem;
        }

        .gc-loading-line-chip {
            width: 3.5rem;
            height: 1.25rem;
            border-radius: 9999px;
        }

        .gc-loading-line-inline,
        .gc-loading-line-summary {
            display: inline-block;
            vertical-align: middle;
            height: 0.875rem;
        }

        .gc-loading-line-summary {
            width: 8rem;
        }

        .gc-loading-panel {
            border-radius: 1rem;
            border: 1px solid var(--gc-border);
            background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.2));
            padding: 1rem 1.25rem;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
        }

        .gc-cart-item {
            display: grid;
            grid-template-columns: auto minmax(0, 1fr);
            grid-template-rows: 9.75rem auto;
            align-items: stretch;
            overflow: hidden;
            border-radius: 0.75rem;
            border: 1px solid var(--gc-border);
            background: rgba(255, 255, 255, 0.035);
            transition: border-color 0.2s ease, background-color 0.2s ease;
        }

        .gc-cart-item:hover {
            border-color: rgba(16, 124, 16, 0.35);
            background: rgba(255, 255, 255, 0.055);
        }

        .gc-cart-item-cover {
            display: flex;
            align-items: center;
            justify-content: center;
            align-self: stretch;
            height: 100%;
            padding: 0.75rem 0 0.75rem 0.75rem;
        }

        .gc-cart-item-cover a {
            display: block;
            width: 4.5rem;
            aspect-ratio: 3 / 4;
            overflow: hidden;
            border-radius: 0.5rem;
            background: rgba(0, 0, 0, 0.35);
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
        }

        .gc-cart-item-cover img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .gc-cart-item:hover .gc-cart-item-cover img {
            transform: scale(1.05);
        }

        .gc-cart-item-cover-empty {
            display: flex;
            height: 100%;
            align-items: center;
            justify-content: center;
            padding: 0.5rem;
            text-align: center;
            font-size: 0.625rem;
            color: var(--gc-text-muted);
        }

        .gc-cart-item-meta {
            display: flex;
            min-width: 0;
            height: 100%;
            flex-direction: column;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.875rem 0.875rem 0.875rem 0.75rem;
        }

        .gc-cart-item-meta-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
        }

        .gc-cart-item-remove {
            display: inline-flex;
            height: 2rem;
            width: 2rem;
            flex-shrink: 0;
            align-items: center;
            justify-content: center;
            border-radius: 0.5rem;
            border: 1px solid rgba(248, 113, 113, 0.25);
            background: rgba(239, 68, 68, 0.1);
            color: rgb(254, 202, 202);
            font-size: 1rem;
            line-height: 1;
            transition: border-color 0.15s ease, background-color 0.15s ease;
        }

        .gc-cart-item-remove:hover {
            border-color: rgba(248, 113, 113, 0.55);
            background: rgba(239, 68, 68, 0.2);
        }

        .gc-cart-item-remove:disabled {
            cursor: wait;
            opacity: 0.5;
        }

        .gc-cart-item-title {
            margin: 0;
            font-size: 0.975rem;
            font-weight: 600;
            line-height: 1.3;
            color: var(--gc-title);
        }

        .gc-cart-item-title a {
            display: -webkit-box;
            overflow: hidden;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
            transition: color 0.15s ease;
        }

        .gc-cart-item-title a:hover {
            color: rgb(74, 222, 128);
        }

        .gc-cart-item-price {
            margin: 0;
            font-size: 0.75rem;
            color: var(--gc-text-muted);
        }

        .gc-cart-item-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-top: 0.35rem;
        }

        .gc-cart-item-bought {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 0.5rem;
            border: 1px solid rgba(34, 197, 94, 0.35);
            background: rgba(22, 163, 74, 0.15);
            color: rgb(187, 247, 208);
            padding: 0.35rem 0.65rem;
            font-size: 0.7rem;
            font-weight: 600;
            line-height: 1.2;
            transition: border-color 0.15s ease, background-color 0.15s ease;
        }

        .gc-cart-item-bought:hover {
            border-color: rgba(34, 197, 94, 0.6);
            background: rgba(22, 163, 74, 0.28);
        }

        .gc-cart-item-bought:disabled {
            opacity: 0.55;
            cursor: not-allowed;
        }

        .gc-cart-item-offers {
            display: flex;
            min-width: 0;
            height: 7.75rem;
            flex-direction: column;
            justify-content: center;
            gap: 0.375rem;
            grid-column: 1 / -1;
            overflow: hidden;
            border-top: 1px solid var(--gc-border);
            background: rgba(0, 0, 0, 0.12);
            padding: 0.75rem;
        }

        @media (min-width: 768px) {
            .gc-cart-item {
                grid-template-columns: auto minmax(0, 1fr) minmax(15rem, 18rem);
                grid-template-rows: 10.5rem;
                height: 10.5rem;
            }

            .gc-cart-item-cover {
                padding: 0 0 0 1rem;
            }

            .gc-cart-item-cover a {
                width: 5.75rem;
            }

            .gc-cart-item-meta {
                padding: 1rem 1rem 1rem 0.875rem;
            }

            .gc-cart-item-offers {
                grid-column: auto;
                height: 100%;
                border-top: 0;
                border-left: 1px solid var(--gc-border);
                padding: 1rem;
            }
        }

        .gc-loading-insight-card,
        .gc-loading-route-card {
            display: flex;
            flex-direction: column;
            border-radius: 0.75rem;
            border: 1px solid var(--gc-border);
            background-color: var(--gc-bg-muted);
            padding: 1rem;
            min-height: 7.5rem;
        }

        .gc-loading-route-card {
            min-height: 26rem;
            height: 100%;
        }

        .gc-loading-route-panel {
            margin-top: auto;
            flex: 1 1 auto;
            min-height: 11rem;
            border-top: 1px solid var(--gc-border);
            padding-top: 0.75rem;
        }

        .gc-route-scroll {
            overflow-y: scroll;
            scrollbar-gutter: stable;
            scrollbar-width: thin;
            scrollbar-color: rgba(148, 163, 184, 0.7) rgba(0, 0, 0, 0.35);
        }

        .gc-route-scroll::-webkit-scrollbar {
            width: 0.65rem;
        }

        .gc-route-scroll::-webkit-scrollbar-track {
            margin: 0.25rem 0;
            background: rgba(0, 0, 0, 0.35);
            border-radius: 999px;
        }

        .gc-route-scroll::-webkit-scrollbar-thumb {
            background: rgba(148, 163, 184, 0.7);
            border-radius: 999px;
            border: 2px solid transparent;
            background-clip: content-box;
        }

        .gc-route-scroll::-webkit-scrollbar-thumb:hover {
            background: rgba(226, 232, 240, 0.9);
            background-clip: content-box;
        }

        .gc-loading-list-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            border-radius: 0.5rem;
            border: 1px solid var(--gc-border);
            background-color: var(--gc-surface);
            padding: 0.625rem 0.75rem;
            list-style: 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: 0;
        }

        @keyframes gc-shimmer {
            0% {
                background-position: 200% 0;
            }
            100% {
                background-position: -200% 0;
            }
        }

        .view-toggle-btn {
            color: rgb(203, 213, 225);
        }

        .view-toggle-btn[aria-selected="true"] {
            background-color: rgba(16, 124, 16, 0.18);
            color: rgb(187, 247, 208);
            box-shadow: inset 0 0 0 1px rgba(16, 124, 16, 0.35);
        }

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

        .gc-text-soft {
            color: var(--gc-text-soft);
        }

        .gc-title {
            color: var(--gc-title);
        }

        .header-control {
            display: inline-flex;
            min-height: 2.5rem;
            max-width: 100%;
            align-items: center;
            justify-content: center;
            gap: 0.375rem;
            border-radius: 0.625rem;
            border: 1px solid var(--gc-border);
            background-color: var(--gc-bg-muted);
            padding: 0.375rem 0.625rem;
            font-size: 0.8125rem;
            line-height: 1.125rem;
            transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
        }

        .gc-header-actions {
            width: 100%;
            min-width: 0;
        }

        .gc-user-menu {
            flex-wrap: wrap;
        }

        @media (max-width: 639px) {
            .header-control {
                min-height: 2.25rem;
                padding: 0.375rem 0.5rem;
            }
        }

        .game-card-header {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        @media (min-width: 480px) {
            .game-card-header {
                flex-direction: row;
                align-items: flex-start;
                justify-content: space-between;
                gap: 0.75rem;
            }
        }

        .game-card-price {
            align-self: flex-start;
            text-align: left;
        }

        @media (min-width: 480px) {
            .game-card-price {
                text-align: right;
            }
        }

        #game-grid,
        #missing-grid {
            width: 100%;
            min-width: 0;
        }

        .header-control:hover {
            border-color: rgba(82, 176, 67, 0.5);
        }

        .header-control-active {
            border-color: rgba(16, 124, 16, 0.4);
            background-color: rgba(16, 124, 16, 0.1);
            color: rgb(134, 239, 172);
        }

        .language-toggle {
            padding: 0.375rem 0.375rem;
            gap: 0.0625rem;
        }

        .language-toggle [data-language-option] {
            min-width: 1.75rem;
            border-radius: 0.375rem;
            padding: 0.125rem 0.375rem;
            font-size: 0.6875rem;
            font-weight: 600;
            letter-spacing: 0.02em;
            color: rgb(148, 163, 184);
            transition: color 0.15s ease, background-color 0.15s ease;
        }

        .language-toggle [data-language-option].header-control-active {
            color: rgb(134, 239, 172);
        }

        html[data-theme="light"] .language-toggle [data-language-option].header-control-active {
            color: rgb(21, 128, 61);
        }

        html[data-theme="light"] .header-control-active {
            color: rgb(21, 128, 61);
        }

        html[data-theme="light"] .text-white,
        html[data-theme="light"] .game-card-title,
        html[data-theme="light"] h1.gc-title,
        html[data-theme="light"] h2.text-white,
        html[data-theme="light"] h3.text-white,
        html[data-theme="light"] .font-semibold.text-white {
            color: var(--gc-title) !important;
        }

        html[data-theme="light"] .text-slate-300,
        html[data-theme="light"] .text-slate-400,
        html[data-theme="light"] .text-slate-500 {
            color: var(--gc-text-muted) !important;
        }

        html[data-theme="light"] .bg-black\/30,
        html[data-theme="light"] .bg-black\/20,
        html[data-theme="light"] .bg-black\/50,
        html[data-theme="light"] .bg-black\/70,
        html[data-theme="light"] .bg-black\/40 {
            background-color: var(--gc-bg-muted) !important;
        }

        html[data-theme="light"] .bg-white\/5,
        html[data-theme="light"] .bg-white\/10 {
            background-color: var(--gc-surface) !important;
        }

        html[data-theme="light"] .border-white\/10,
        html[data-theme="light"] .border-white\/15,
        html[data-theme="light"] .border-dashed.border-white\/15 {
            border-color: var(--gc-border) !important;
        }

        html[data-theme="light"] .game-card {
            box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
        }

        html[data-theme="light"] .game-card-badge-platform,
        html[data-theme="light"] .game-card-badge-shop {
            color: rgb(146, 64, 14);
        }

        html[data-theme="light"] .game-card-badge-rare {
            color: rgb(107, 33, 168);
        }

        html[data-theme="light"] .game-card-badge-sought {
            color: rgb(157, 23, 77);
        }

        .game-card-title {
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
            overflow: hidden;
            word-break: break-word;
            min-height: 2.5rem;
        }

        .game-card-body {
            display: flex;
            flex: 1 1 auto;
            flex-direction: column;
            min-height: 0;
        }

        .game-card-content {
            flex-shrink: 0;
        }

        .game-card-push {
            flex: 1 1 auto;
            min-height: 0.75rem;
        }

        .game-card-footer {
            display: flex;
            flex-shrink: 0;
            flex-direction: column;
            gap: 0.75rem;
        }

        .game-card-action {
            flex-shrink: 0;
        }

        .game-card-badges {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.375rem;
            overflow: visible;
            width: 100%;
            min-height: 2.25rem;
        }

        .game-card {
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
        }

        .game-card:hover {
            box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
        }

        .game-card-badge {
            flex-shrink: 0;
            display: inline-flex;
            align-items: center;
            border-radius: 9999px;
            border-width: 1px;
            padding: 0.125rem 0.625rem;
            font-size: 0.75rem;
            line-height: 1rem;
            font-weight: 500;
        }

        .game-card-badge-platform {
            border-color: rgba(251, 191, 36, 0.5);
            background-color: rgba(245, 158, 11, 0.18);
            color: rgb(253, 230, 138);
        }

        .game-card-badge-shop {
            border-color: rgba(251, 191, 36, 0.35);
            background-color: rgba(245, 158, 11, 0.1);
            color: rgba(253, 230, 138, 0.95);
        }

        .game-card-badge-more {
            border-color: rgba(255, 255, 255, 0.15);
            background-color: rgba(255, 255, 255, 0.05);
            color: rgb(148, 163, 184);
        }

        .game-card-badge-rare {
            border-color: rgba(168, 85, 247, 0.5);
            background-color: rgba(147, 51, 234, 0.18);
            color: rgb(233, 213, 255);
        }

        .game-card-badge-owned {
            border-color: rgba(34, 197, 94, 0.45);
            background-color: rgba(16, 124, 16, 0.22);
            color: rgb(187, 247, 208);
        }

        .game-card-badge-sought {
            border-color: rgba(244, 114, 182, 0.5);
            background-color: rgba(219, 39, 119, 0.18);
            color: rgb(251, 207, 232);
        }

        .game-card-badge-grade {
            border-color: rgba(34, 211, 238, 0.4);
            background-color: rgba(6, 182, 212, 0.16);
            color: rgb(207, 250, 254);
        }

        html[data-theme="light"] .game-card-badge-grade {
            color: rgb(14, 116, 144);
        }

        .game-card-badge-condition {
            border-color: rgba(56, 189, 248, 0.45);
            background-color: rgba(14, 165, 233, 0.16);
            color: rgb(186, 230, 253);
        }

        html[data-theme="light"] .game-card-badge-condition {
            color: rgb(3, 105, 161);
        }

        .game-card-unavailable .game-card-title {
            color: rgb(203, 213, 225);
        }

        .game-card-badge-unavailable {
            border-color: rgba(100, 116, 139, 0.45);
            background-color: rgba(100, 116, 139, 0.18);
            color: rgb(148, 163, 184);
        }

        html[data-theme="light"] .game-card-unavailable {
            border-color: rgba(100, 116, 139, 0.35) !important;
            background-color: rgba(248, 250, 252, 0.9) !important;
        }

        html[data-theme="light"] .game-card-badge-unavailable {
            color: rgb(100, 116, 139);
        }

        .legal-content section + section {
            margin-top: 2rem;
            padding-top: 2rem;
            border-top: 1px solid var(--gc-border);
        }

        .legal-content h2 {
            margin-bottom: 0.75rem;
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--gc-title);
        }

        .legal-content h3 {
            margin-top: 1.25rem;
            margin-bottom: 0.5rem;
            font-size: 1rem;
            font-weight: 600;
            color: var(--gc-text-soft);
        }

        .legal-content p,
        .legal-content li {
            font-size: 0.9375rem;
            line-height: 1.7;
            color: var(--gc-text-soft);
        }

        .legal-content p + p,
        .legal-content ul,
        .legal-content ol {
            margin-top: 0.75rem;
        }

        .legal-content ul,
        .legal-content ol {
            padding-left: 1.25rem;
        }

        .legal-content li + li {
            margin-top: 0.375rem;
        }

        .legal-content a {
            color: rgb(82, 176, 67);
            text-decoration: underline;
            text-underline-offset: 2px;
            transition: color 0.15s ease;
        }

        .legal-content a:hover {
            color: rgb(134, 239, 172);
        }

        html[data-theme="light"] .legal-content a:hover {
            color: rgb(21, 128, 61);
        }

        .legal-content code {
            border-radius: 0.375rem;
            border: 1px solid var(--gc-border);
            background-color: var(--gc-bg-muted);
            padding: 0.125rem 0.375rem;
            font-size: 0.8125rem;
            color: var(--gc-text);
            word-break: break-all;
        }

        .cookie-consent-banner {
            position: fixed;
            right: 0;
            bottom: 0;
            left: 0;
            z-index: 50;
            border-top: 1px solid rgba(16, 124, 16, 0.35);
            background-color: rgba(0, 0, 0, 0.88);
            backdrop-filter: blur(12px);
            box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
        }

        html[data-theme="light"] .cookie-consent-banner {
            background-color: rgba(255, 255, 255, 0.96);
            box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.08);
        }

        body.cookie-banner-open {
            padding-bottom: 7.5rem;
        }

        @media (min-width: 640px) {
            body.cookie-banner-open {
                padding-bottom: 5.5rem;
            }
        }


/* Semantic visual foundation */
:root {
    --gc-space-page: clamp(1rem, 3vw, 2rem);
    --gc-radius-control: 0.625rem;
    --gc-radius-panel: 1rem;
    --gc-motion-fast: 150ms;
}

.gc-page-shell {
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: var(--gc-space-page);
}

.gc-panel {
    overflow: hidden;
    border: 1px solid var(--gc-border);
    border-radius: var(--gc-radius-panel);
    background-color: var(--gc-surface);
    color: var(--gc-text);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.14);
}

html[data-theme="light"] .gc-panel {
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.gc-panel-inner {
    padding: clamp(1rem, 2.5vw, 1.5rem);
}

.gc-btn {
    display: inline-flex;
    min-height: 2.5rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    border-radius: var(--gc-radius-control);
    padding: 0.5rem 1rem;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--gc-motion-fast) ease,
        border-color var(--gc-motion-fast) ease,
        color var(--gc-motion-fast) ease,
        box-shadow var(--gc-motion-fast) ease,
        transform var(--gc-motion-fast) ease;
}

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

.gc-btn:active {
    transform: translateY(0);
}

.gc-btn:disabled,
.gc-btn[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.gc-btn:focus-visible,
.gc-field:focus-visible,
.gc-nav-tab:focus-visible {
    outline: 3px solid rgba(82, 176, 67, 0.55);
    outline-offset: 2px;
}

.gc-btn-primary {
    background-color: #107c10;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(16, 124, 16, 0.22);
}

.gc-btn-primary:hover {
    background-color: #0b5a0b;
}

.gc-btn-secondary {
    border-color: var(--gc-border);
    background-color: var(--gc-surface-strong);
    color: var(--gc-text);
}

.gc-btn-secondary:hover {
    border-color: var(--gc-border-accent);
    background-color: var(--gc-card-hover);
}

.gc-btn-outline {
    border-color: var(--gc-border-accent);
    background-color: transparent;
    color: var(--gc-text-soft);
}

.gc-btn-outline:hover {
    background-color: var(--gc-card-hover);
    color: var(--gc-text);
}

.gc-btn-danger {
    border-color: rgba(248, 113, 113, 0.4);
    background-color: rgba(185, 28, 28, 0.85);
    color: #ffffff;
}

.gc-btn-danger:hover {
    background-color: rgb(153, 27, 27);
}

.gc-field {
    display: block;
    width: 100%;
    min-height: 2.75rem;
    border: 1px solid var(--gc-border-accent);
    border-radius: var(--gc-radius-control);
    background-color: var(--gc-input-bg);
    color: var(--gc-text);
    padding: 0.625rem 0.75rem;
    font: inherit;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: border-color var(--gc-motion-fast) ease,
        box-shadow var(--gc-motion-fast) ease,
        background-color var(--gc-motion-fast) ease;
}

.gc-field::placeholder {
    color: var(--gc-text-muted);
    opacity: 1;
}

.gc-field:hover {
    border-color: rgba(82, 176, 67, 0.55);
}

.gc-field:focus {
    border-color: #52b043;
    box-shadow: 0 0 0 3px rgba(82, 176, 67, 0.14);
}

.gc-field-sm {
    min-height: 2.25rem;
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
    line-height: 1.125rem;
}

.gc-nav-tab {
    display: inline-flex;
    min-height: 2.5rem;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    border: 1px solid transparent;
    border-radius: var(--gc-radius-control);
    background-color: transparent;
    color: var(--gc-text-muted);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--gc-motion-fast) ease,
        border-color var(--gc-motion-fast) ease,
        color var(--gc-motion-fast) ease;
}

.gc-nav-tab:hover {
    background-color: var(--gc-card-hover);
    color: var(--gc-text);
}

.gc-nav-tab-active,
.gc-nav-tab-active:hover {
    border-color: var(--gc-border-accent);
    background-color: rgba(16, 124, 16, 0.18);
    color: rgb(187, 247, 208);
}

html[data-theme="light"] .gc-nav-tab-active,
html[data-theme="light"] .gc-nav-tab-active:hover {
    color: rgb(21, 128, 61);
}

.gc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    border: 1px solid var(--gc-border);
    border-radius: 9999px;
    background-color: var(--gc-surface);
    color: var(--gc-text-soft);
    padding: 0.125rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1rem;
}

.gc-badge-grade {
    border-color: rgba(82, 176, 67, 0.45);
    background-color: rgba(16, 124, 16, 0.18);
    color: rgb(187, 247, 208);
}

html[data-theme="light"] .gc-badge-grade {
    color: rgb(21, 128, 61);
}

@media (prefers-reduced-motion: reduce) {
    .gc-btn,
    .gc-field,
    .gc-nav-tab,
    .gc-toast {
        transition-duration: 0.01ms;
    }

    .gc-btn:hover,
    .gc-btn:active {
        transform: none;
    }

    .gc-loading-spinner,
    .gc-loading-card-image,
    .gc-loading-line {
        animation: none;
    }

    .game-card,
    .game-card img {
        transition-duration: 0.01ms !important;
        transform: none !important;
    }
}
