/* ===================================
   gamelicen.se — Styles
   Maximalist, horizontal-scroll,
   sunset-warm, bokeh, tropical fish
   =================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --sunset-gold: #E8A840;
    --warm-coral: #D46B5A;
    --twilight-purple: #5C3D6E;
    --cream-base: #FAF3E6;
    --slate-dark: #2A2A34;
    --tropical-teal: #2AADAD;
    --berry-magenta: #C44A8A;
}

html {
    scroll-behavior: smooth;
    overflow: hidden;
    height: 100%;
}

body {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.7;
    color: var(--slate-dark);
    background: var(--cream-base);
    height: 100%;
    overflow: hidden;
}

/* --- Horizontal Shelf --- */
.horizontal-shelf {
    display: flex;
    width: fit-content;
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.horizontal-shelf::-webkit-scrollbar {
    height: 6px;
}

.horizontal-shelf::-webkit-scrollbar-track {
    background: var(--cream-base);
}

.horizontal-shelf::-webkit-scrollbar-thumb {
    background: var(--sunset-gold);
    border-radius: 3px;
}

/* --- Panel Base --- */
.panel {
    flex: 0 0 100vw;
    width: 100vw;
    height: 100vh;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1400px;
    padding: 40px;
}

/* --- Bokeh Layer --- */
.bokeh-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bokeh-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: bokehFadeIn 1.2s ease-out forwards;
}

/* Hero bokeh circles */
.bokeh-1 { width: 260px; height: 260px; top: 10%; left: 5%; background: radial-gradient(circle, rgba(232,168,64,0.1) 0%, transparent 70%); animation-delay: 0.5s; }
.bokeh-2 { width: 180px; height: 180px; top: 60%; left: 20%; background: radial-gradient(circle, rgba(212,107,90,0.08) 0%, transparent 70%); animation-delay: 0.6s; }
.bokeh-3 { width: 300px; height: 300px; top: 20%; right: 10%; background: radial-gradient(circle, rgba(196,74,138,0.07) 0%, transparent 70%); animation-delay: 0.7s; }
.bokeh-4 { width: 140px; height: 140px; top: 70%; right: 25%; background: radial-gradient(circle, rgba(232,168,64,0.09) 0%, transparent 70%); animation-delay: 0.8s; }
.bokeh-5 { width: 220px; height: 220px; bottom: 10%; left: 40%; background: radial-gradient(circle, rgba(42,173,173,0.06) 0%, transparent 70%); animation-delay: 0.9s; }
.bokeh-6 { width: 160px; height: 160px; top: 5%; left: 50%; background: radial-gradient(circle, rgba(92,61,110,0.08) 0%, transparent 70%); animation-delay: 1.0s; }
.bokeh-7 { width: 200px; height: 200px; bottom: 20%; right: 5%; background: radial-gradient(circle, rgba(212,107,90,0.1) 0%, transparent 70%); animation-delay: 1.1s; }
.bokeh-8 { width: 120px; height: 120px; top: 40%; left: 15%; background: radial-gradient(circle, rgba(232,168,64,0.12) 0%, transparent 70%); animation-delay: 1.2s; }

/* Panel 2 bokeh */
.bokeh-a1 { width: 200px; height: 200px; top: 8%; right: 12%; background: radial-gradient(circle, rgba(42,173,173,0.09) 0%, transparent 70%); animation-delay: 0.3s; }
.bokeh-a2 { width: 280px; height: 280px; bottom: 15%; left: 8%; background: radial-gradient(circle, rgba(232,168,64,0.07) 0%, transparent 70%); animation-delay: 0.5s; }
.bokeh-a3 { width: 150px; height: 150px; top: 50%; right: 30%; background: radial-gradient(circle, rgba(196,74,138,0.08) 0%, transparent 70%); animation-delay: 0.7s; }
.bokeh-a4 { width: 180px; height: 180px; top: 25%; left: 25%; background: radial-gradient(circle, rgba(212,107,90,0.06) 0%, transparent 70%); animation-delay: 0.4s; }
.bokeh-a5 { width: 240px; height: 240px; bottom: 5%; right: 5%; background: radial-gradient(circle, rgba(92,61,110,0.07) 0%, transparent 70%); animation-delay: 0.6s; }

/* Panel 3 bokeh */
.bokeh-b1 { width: 220px; height: 220px; top: 15%; left: 10%; background: radial-gradient(circle, rgba(196,74,138,0.09) 0%, transparent 70%); animation-delay: 0.3s; }
.bokeh-b2 { width: 180px; height: 180px; bottom: 20%; right: 15%; background: radial-gradient(circle, rgba(42,173,173,0.08) 0%, transparent 70%); animation-delay: 0.5s; }
.bokeh-b3 { width: 260px; height: 260px; top: 5%; right: 25%; background: radial-gradient(circle, rgba(232,168,64,0.06) 0%, transparent 70%); animation-delay: 0.7s; }
.bokeh-b4 { width: 140px; height: 140px; bottom: 10%; left: 35%; background: radial-gradient(circle, rgba(212,107,90,0.1) 0%, transparent 70%); animation-delay: 0.4s; }

/* Panel 4 bokeh */
.bokeh-c1 { width: 240px; height: 240px; top: 10%; right: 8%; background: radial-gradient(circle, rgba(232,168,64,0.08) 0%, transparent 70%); animation-delay: 0.3s; }
.bokeh-c2 { width: 160px; height: 160px; bottom: 25%; left: 15%; background: radial-gradient(circle, rgba(92,61,110,0.09) 0%, transparent 70%); animation-delay: 0.5s; }
.bokeh-c3 { width: 200px; height: 200px; top: 40%; left: 5%; background: radial-gradient(circle, rgba(42,173,173,0.07) 0%, transparent 70%); animation-delay: 0.6s; }
.bokeh-c4 { width: 180px; height: 180px; top: 5%; left: 40%; background: radial-gradient(circle, rgba(196,74,138,0.06) 0%, transparent 70%); animation-delay: 0.4s; }
.bokeh-c5 { width: 140px; height: 140px; bottom: 8%; right: 30%; background: radial-gradient(circle, rgba(212,107,90,0.08) 0%, transparent 70%); animation-delay: 0.7s; }

/* Panel 5 bokeh */
.bokeh-d1 { width: 200px; height: 200px; top: 12%; left: 8%; background: radial-gradient(circle, rgba(212,107,90,0.09) 0%, transparent 70%); animation-delay: 0.3s; }
.bokeh-d2 { width: 260px; height: 260px; bottom: 10%; right: 12%; background: radial-gradient(circle, rgba(232,168,64,0.07) 0%, transparent 70%); animation-delay: 0.5s; }
.bokeh-d3 { width: 150px; height: 150px; top: 50%; right: 20%; background: radial-gradient(circle, rgba(42,173,173,0.08) 0%, transparent 70%); animation-delay: 0.6s; }
.bokeh-d4 { width: 180px; height: 180px; top: 20%; left: 40%; background: radial-gradient(circle, rgba(196,74,138,0.06) 0%, transparent 70%); animation-delay: 0.4s; }

/* Panel 6 bokeh */
.bokeh-e1 { width: 220px; height: 220px; top: 8%; right: 10%; background: radial-gradient(circle, rgba(42,173,173,0.09) 0%, transparent 70%); animation-delay: 0.3s; }
.bokeh-e2 { width: 180px; height: 180px; bottom: 15%; left: 20%; background: radial-gradient(circle, rgba(232,168,64,0.07) 0%, transparent 70%); animation-delay: 0.5s; }
.bokeh-e3 { width: 160px; height: 160px; top: 35%; left: 5%; background: radial-gradient(circle, rgba(196,74,138,0.08) 0%, transparent 70%); animation-delay: 0.6s; }
.bokeh-e4 { width: 240px; height: 240px; bottom: 5%; right: 25%; background: radial-gradient(circle, rgba(92,61,110,0.06) 0%, transparent 70%); animation-delay: 0.4s; }

/* Panel 7 bokeh */
.bokeh-f1 { width: 200px; height: 200px; top: 10%; left: 15%; background: radial-gradient(circle, rgba(232,168,64,0.1) 0%, transparent 70%); animation-delay: 0.3s; }
.bokeh-f2 { width: 250px; height: 250px; bottom: 20%; right: 10%; background: radial-gradient(circle, rgba(42,173,173,0.07) 0%, transparent 70%); animation-delay: 0.5s; }
.bokeh-f3 { width: 170px; height: 170px; top: 50%; right: 35%; background: radial-gradient(circle, rgba(196,74,138,0.08) 0%, transparent 70%); animation-delay: 0.6s; }

/* Panel 8 bokeh */
.bokeh-g1 { width: 240px; height: 240px; top: 5%; left: 10%; background: radial-gradient(circle, rgba(232,168,64,0.09) 0%, transparent 70%); animation-delay: 0.3s; }
.bokeh-g2 { width: 180px; height: 180px; top: 60%; right: 8%; background: radial-gradient(circle, rgba(212,107,90,0.07) 0%, transparent 70%); animation-delay: 0.5s; }
.bokeh-g3 { width: 200px; height: 200px; bottom: 10%; left: 30%; background: radial-gradient(circle, rgba(42,173,173,0.08) 0%, transparent 70%); animation-delay: 0.6s; }
.bokeh-g4 { width: 160px; height: 160px; top: 30%; left: 50%; background: radial-gradient(circle, rgba(196,74,138,0.06) 0%, transparent 70%); animation-delay: 0.4s; }
.bokeh-g5 { width: 140px; height: 140px; top: 15%; right: 30%; background: radial-gradient(circle, rgba(92,61,110,0.09) 0%, transparent 70%); animation-delay: 0.7s; }
.bokeh-g6 { width: 280px; height: 280px; bottom: 5%; right: 20%; background: radial-gradient(circle, rgba(232,168,64,0.06) 0%, transparent 70%); animation-delay: 0.8s; }

@keyframes bokehFadeIn {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

/* --- Panel Backgrounds (layered texture) --- */
.panel-hero {
    background: linear-gradient(135deg, var(--cream-base) 0%, #F5E6C8 40%, #F0D4A8 100%);
}

.panel-types {
    background:
        linear-gradient(135deg, rgba(92,61,110,0.03) 0%, transparent 50%),
        linear-gradient(180deg, var(--cream-base) 0%, #F8EDD8 100%);
}

.panel-ip {
    background:
        linear-gradient(135deg, rgba(42,173,173,0.04) 0%, transparent 50%),
        linear-gradient(180deg, #FAF3E6 0%, #F3E8D2 100%);
}

.panel-compliance {
    background:
        linear-gradient(135deg, rgba(232,168,64,0.05) 0%, transparent 50%),
        linear-gradient(180deg, var(--cream-base) 0%, #F5E6C8 100%);
}

.panel-agreements {
    background:
        linear-gradient(135deg, rgba(196,74,138,0.03) 0%, transparent 50%),
        linear-gradient(180deg, #FAF3E6 0%, #F0D4A8 100%);
}

.panel-analytics {
    background:
        linear-gradient(135deg, rgba(42,173,173,0.05) 0%, transparent 50%),
        linear-gradient(180deg, var(--cream-base) 0%, #F8EDD8 100%);
}

.panel-enforcement {
    background:
        linear-gradient(135deg, rgba(212,107,90,0.04) 0%, transparent 50%),
        linear-gradient(180deg, #FAF3E6 0%, #F3E8D2 100%);
}

.panel-summary {
    background:
        linear-gradient(135deg, rgba(92,61,110,0.05) 0%, transparent 50%),
        linear-gradient(180deg, var(--cream-base) 0%, #F5E6C8 100%);
}

/* --- Noise texture overlay (CSS-based) --- */
.panel::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 256px 256px;
    pointer-events: none;
}

/* --- Hero Panel --- */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 80vh;
}

.hero-title {
    font-family: 'Albert Sans', sans-serif;
    font-size: clamp(42px, 8vw, 120px);
    letter-spacing: 0.02em;
    line-height: 1.1;
    opacity: 0;
    animation: titleReveal 0.8s ease-out 1.2s forwards;
}

.title-main {
    font-weight: 600;
    color: var(--slate-dark);
}

.title-tld {
    font-weight: 800;
    color: var(--sunset-gold);
    display: inline-block;
    opacity: 0;
    animation: tldPop 0.5s ease-out 1.6s forwards;
}

.hero-subtitle {
    font-family: 'Noto Sans', sans-serif;
    font-size: clamp(16px, 2vw, 24px);
    color: var(--twilight-purple);
    margin-top: 20px;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 2.0s forwards;
}

.scroll-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 2.4s forwards;
}

.scroll-text {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--sunset-gold);
}

.scroll-arrow {
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes titleReveal {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes tldPop {
    0% { opacity: 0; transform: scale(1.15); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes arrowBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}

/* --- Typography --- */
.panel-heading {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 5.5vw, 68px);
    color: var(--slate-dark);
    margin-bottom: 30px;
}

h3 {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(16px, 1.8vw, 22px);
    color: var(--slate-dark);
}

p {
    color: var(--slate-dark);
    line-height: 1.7;
}

code, .license-code {
    font-family: 'Fira Code', monospace;
    font-size: 0.8em;
    color: var(--twilight-purple);
    background: rgba(92,61,110,0.06);
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 8px;
}

/* --- License Cards (Panel 2) --- */
.dense-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.license-card {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(232,168,64,0.15);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.license-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(232,168,64,0.2);
}

.card-icon {
    margin-bottom: 12px;
}

.license-card h3 {
    margin-bottom: 8px;
    font-size: clamp(14px, 1.4vw, 18px);
}

.card-body {
    font-size: clamp(12px, 1.1vw, 15px);
    line-height: 1.6;
    color: #555;
    margin-bottom: 8px;
}

/* --- IP Management (Panel 3) --- */
.ip-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.ip-block {
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(92,61,110,0.12);
    border-radius: 12px;
    padding: 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ip-block:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(92,61,110,0.15);
}

.ip-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ip-badge {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--sunset-gold);
    color: #fff;
}

.badge-coral { background: var(--warm-coral); }
.badge-teal { background: var(--tropical-teal); }
.badge-purple { background: var(--twilight-purple); }

.ip-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.ip-tag {
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(42,42,52,0.06);
    color: var(--slate-dark);
}

/* --- Compliance (Panel 4) --- */
.compliance-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.region-card {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(232,168,64,0.12);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.region-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(42,173,173,0.2);
}

.region-name {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(14px, 1.5vw, 20px);
    color: var(--slate-dark);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--sunset-gold);
}

.region-details {
    margin-bottom: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid rgba(42,42,52,0.06);
    font-size: clamp(11px, 1vw, 14px);
}

.detail-label {
    font-weight: 600;
    color: var(--twilight-purple);
}

.detail-value {
    color: #666;
}

/* --- Agreements (Panel 5) --- */
.agreements-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.agreement-block {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(196,74,138,0.1);
    border-radius: 12px;
    padding: 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.agreement-block:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(196,74,138,0.15);
}

.agreement-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.agreement-status {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 3px 10px;
    border-radius: 20px;
}

.status-active {
    background: rgba(42,173,173,0.15);
    color: var(--tropical-teal);
}

.status-review {
    background: rgba(232,168,64,0.15);
    color: var(--sunset-gold);
}

.agreement-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.agreement-meta strong {
    color: var(--slate-dark);
}

.agreement-desc {
    font-size: clamp(12px, 1.1vw, 15px);
    color: #555;
    margin-bottom: 12px;
}

.agreement-clauses {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.clause {
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(196,74,138,0.08);
    color: var(--berry-magenta);
}

/* --- Analytics (Panel 6) --- */
.analytics-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
}

.analytics-card {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(42,173,173,0.12);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.analytics-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(42,173,173,0.15);
}

.card-large {
    grid-row: span 2;
}

.analytics-card h3 {
    font-size: clamp(13px, 1.2vw, 16px);
    margin-bottom: 16px;
    color: var(--twilight-purple);
}

.revenue-bars {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.revenue-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.revenue-label {
    font-size: clamp(11px, 1vw, 14px);
    font-weight: 600;
    min-width: 130px;
    color: var(--slate-dark);
}

.revenue-bar-track {
    flex: 1;
    height: 10px;
    background: rgba(42,42,52,0.06);
    border-radius: 5px;
    overflow: hidden;
}

.revenue-bar-fill {
    height: 100%;
    border-radius: 5px;
    width: 0%;
    transition: width 1.2s ease-out;
}

.fill-gold { background: var(--sunset-gold); }
.fill-teal { background: var(--tropical-teal); }
.fill-coral { background: var(--warm-coral); }
.fill-magenta { background: var(--berry-magenta); }
.fill-purple { background: var(--twilight-purple); }

.revenue-pct {
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    color: #888;
    min-width: 36px;
    text-align: right;
}

.stat-number {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(28px, 3vw, 42px);
    color: var(--slate-dark);
    margin-bottom: 6px;
}

.stat-change {
    font-family: 'Fira Code', monospace;
    font-size: 12px;
}

.stat-change.positive {
    color: var(--tropical-teal);
}

/* --- Enforcement (Panel 7) --- */
.enforcement-layout {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.enforcement-card {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212,107,90,0.12);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.enforcement-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(232,168,64,0.2);
}

.enforcement-icon {
    margin-bottom: 16px;
}

.enforcement-card h3 {
    margin-bottom: 10px;
    font-size: clamp(14px, 1.3vw, 18px);
}

.enforcement-card p {
    font-size: clamp(12px, 1.1vw, 15px);
    color: #555;
    line-height: 1.6;
    margin-bottom: 14px;
}

.enforcement-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.e-stat {
    font-size: 12px;
    color: #888;
}

.e-stat strong {
    color: var(--sunset-gold);
    font-family: 'Fira Code', monospace;
}

/* --- Portfolio Summary (Panel 8) --- */
.summary-dense-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.summary-cell {
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(232,168,64,0.1);
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.summary-cell:hover {
    transform: scale(1.05);
    box-shadow: 0 0 16px rgba(232,168,64,0.15);
}

.cell-label {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
}

.cell-count {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(18px, 2vw, 28px);
    color: var(--slate-dark);
}

.cell-status {
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    width: fit-content;
}

.cell-status.active {
    background: rgba(42,173,173,0.12);
    color: var(--tropical-teal);
}

.cell-status.pending {
    background: rgba(232,168,64,0.12);
    color: var(--sunset-gold);
}

.summary-footer {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(232,168,64,0.2);
}

.footer-text {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(14px, 1.5vw, 20px);
    color: var(--slate-dark);
}

.footer-text .title-tld {
    animation: none;
    opacity: 1;
}

/* --- Tropical Fish --- */
#fish-container {
    position: fixed;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    overflow: hidden;
}

.fish {
    position: absolute;
    opacity: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.fish-1 {
    top: 30%;
    left: -50px;
    animation: swimAcross1 12s linear 1.8s infinite;
}

.fish-2 {
    top: 55%;
    left: -50px;
    animation: swimAcross2 15s linear 3.5s infinite;
}

.fish-3 {
    top: 20%;
    left: -50px;
    animation: swimAcross3 18s linear 6s infinite;
}

.fish-4 {
    top: 75%;
    left: -50px;
    animation: swimAcross4 14s linear 4.2s infinite;
}

.fish-5 {
    top: 42%;
    left: -50px;
    animation: swimAcross5 16s linear 2.8s infinite;
}

.fish-6 {
    top: 65%;
    left: -50px;
    animation: swimAcross6 20s linear 7s infinite;
}

.fish-7 {
    top: 15%;
    left: -50px;
    animation: swimAcross7 13s linear 5s infinite;
}

@keyframes swimAcross1 {
    0%   { left: -50px;  top: 30%; opacity: 0; transform: scaleX(1) rotate(0deg); }
    5%   { opacity: 0.7; }
    25%  { top: 25%; }
    50%  { top: 35%; }
    75%  { top: 28%; }
    95%  { opacity: 0.7; }
    100% { left: calc(100vw + 50px); top: 32%; opacity: 0; transform: scaleX(1) rotate(2deg); }
}

@keyframes swimAcross2 {
    0%   { left: -50px; top: 55%; opacity: 0; transform: scaleX(1) rotate(0deg); }
    5%   { opacity: 0.6; }
    30%  { top: 50%; }
    60%  { top: 58%; }
    80%  { top: 52%; }
    95%  { opacity: 0.6; }
    100% { left: calc(100vw + 50px); top: 54%; opacity: 0; transform: scaleX(1) rotate(-1deg); }
}

@keyframes swimAcross3 {
    0%   { left: -50px; top: 20%; opacity: 0; transform: scaleX(1) rotate(0deg); }
    5%   { opacity: 0.5; }
    20%  { top: 18%; }
    45%  { top: 24%; }
    70%  { top: 16%; }
    95%  { opacity: 0.5; }
    100% { left: calc(100vw + 50px); top: 22%; opacity: 0; transform: scaleX(1) rotate(3deg); }
}

@keyframes swimAcross4 {
    0%   { left: -50px; top: 75%; opacity: 0; transform: scaleX(1); }
    5%   { opacity: 0.55; }
    35%  { top: 72%; }
    65%  { top: 78%; }
    95%  { opacity: 0.55; }
    100% { left: calc(100vw + 50px); top: 74%; opacity: 0; }
}

@keyframes swimAcross5 {
    0%   { left: -50px; top: 42%; opacity: 0; }
    5%   { opacity: 0.65; }
    25%  { top: 38%; }
    50%  { top: 45%; }
    75%  { top: 40%; }
    95%  { opacity: 0.65; }
    100% { left: calc(100vw + 50px); top: 43%; opacity: 0; }
}

@keyframes swimAcross6 {
    0%   { left: -50px; top: 65%; opacity: 0; }
    5%   { opacity: 0.45; }
    40%  { top: 62%; }
    70%  { top: 68%; }
    95%  { opacity: 0.45; }
    100% { left: calc(100vw + 50px); top: 64%; opacity: 0; }
}

@keyframes swimAcross7 {
    0%   { left: -50px; top: 15%; opacity: 0; transform: scaleX(1) rotate(-1deg); }
    5%   { opacity: 0.6; }
    30%  { top: 12%; }
    55%  { top: 18%; }
    80%  { top: 14%; }
    95%  { opacity: 0.6; }
    100% { left: calc(100vw + 50px); top: 16%; opacity: 0; transform: scaleX(1) rotate(2deg); }
}

/* --- Stagger reveal for cards within panels --- */
.stagger-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.stagger-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive (maintain density at smaller sizes) --- */
@media (max-width: 1200px) {
    .dense-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .compliance-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .enforcement-layout {
        grid-template-columns: repeat(2, 1fr);
    }
    .summary-dense-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .analytics-grid {
        grid-template-columns: 1fr 1fr;
    }
    .card-large {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .dense-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ip-showcase {
        grid-template-columns: 1fr;
    }
    .compliance-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .agreements-layout {
        grid-template-columns: 1fr;
    }
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    .card-large {
        grid-column: span 1;
    }
    .enforcement-layout {
        grid-template-columns: 1fr;
    }
    .summary-dense-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .panel-content {
        padding: 24px;
    }
}
