/* ==========================================
   MINIMALIST EDITORIAL PORTFOLIO SYSTEM
   ========================================== */
:root {
    --bg-dark: #191919;
    --cobalt-blue: #0033FF;
    --card-bg: rgba(30, 30, 30, 0.7);
    --border-clean: rgba(0, 51, 255, 0.15);
    --text-pure: #F2F2F2;
    --text-muted: #A0A0A0;
    --text-dimmed: #686868;
    --accent-blue: #0033FF;
    --accent-cyan: #0033FF;
    
    /* Font Families */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Playfield Console specific colors */
    --console-frame: #121212;
    --console-screen: #0d0d0d;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--cobalt-blue) var(--bg-dark);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 51, 255, 0.05) 0%, transparent 60%);
    color: var(--text-pure);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* Crisp Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--cobalt-blue);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ffffff;
}

/* ==========================================
   PERRY WANG INSPIRED NAVIGATION HEADER
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(11, 11, 13, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
    padding: 14px 6%;
    background: rgba(11, 11, 13, 0.85);
    border-bottom: 1px solid rgba(0, 51, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Esquerda: Logo + Cargo */
.navbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-left .logo {
    display: flex;
    align-items: center;
    font-size: 24px;
}

.navbar-left .logo svg {
    height: 14px;
    width: auto;
    display: block;
}

.nav-author-title {
    font-size: 13px;
    color: #8E8E93;
    font-weight: 400;
    letter-spacing: 0.2px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 14px;
    line-height: 1;
}

/* Centro: Floating Glass Pill Container */
.nav-pill-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(28, 28, 30, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 4px 6px;
    border-radius: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.nav-pill-item {
    position: relative;
    color: #8E8E93;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    padding: 8px 22px;
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-pill-item:hover {
    color: #FFFFFF;
}

.nav-pill-item.active {
    color: #FFFFFF;
    background: transparent;
    font-weight: 600;
    box-shadow: none;
}

/* Pino/Luz indicadora no topo da pill ativa */
.nav-pill-item.active::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 3px;
    background: #FFFFFF;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 4px var(--cobalt-blue);
}

/* Direita: Links Externos */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-ext-link {
    color: #F2F2F7;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    opacity: 0.85;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-ext-link:hover {
    opacity: 1;
    color: #FFFFFF;
    transform: translateY(-1px);
}

@media (max-width: 850px) {
    .nav-author-title {
        display: none;
    }
    .navbar {
        padding: 16px 4%;
    }
    .nav-pill-item {
        padding: 6px 14px;
        font-size: 12.5px;
    }
    .navbar-right {
        gap: 14px;
    }
    .nav-ext-link {
        font-size: 12.5px;
    }
}

@media (max-width: 600px) {
    .navbar {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
        padding: 12px 16px;
    }
    .navbar-left {
        width: 100%;
        justify-content: center;
    }
    .navbar-right {
        display: none;
    }
}

/* ==========================================
   PERRY WANG INSPIRED DARK HERO SECTION
   ========================================== */
.hero-container {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #0A0A0C;
    background-image: 
        radial-gradient(
            circle 750px at var(--mouse-x, 50%) var(--mouse-y, 40%),
            rgba(0, 80, 255, 0.16) 0%,
            rgba(0, 51, 255, 0.05) 45%,
            transparent 80%
        ),
        radial-gradient(
            circle 1000px at 50% 35%,
            rgba(0, 51, 255, 0.08) 0%,
            rgba(10, 10, 12, 1) 85%
        );
    overflow: hidden;
    padding: 140px 6% 80px;
}

.hero-container::before {
    display: none;
}

.hero-background-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: clamp(1100px, 80vw, 1540px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.hero-headline-wrapper {
    margin-bottom: 50px;
    text-align: left;
}

.hero-headline {
    font-family: var(--font-sans);
    font-size: clamp(38px, 5.5vw, 92px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #F2F2F7;
    text-shadow: 0 0 50px rgba(255, 255, 255, 0.08);
}

.hero-headline .highlight-serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: #FFFFFF;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #FFFFFF 30%, #9EB7FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 24px rgba(0, 51, 255, 0.4));
}

.hero-subtext-grid {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    margin-top: 84px;
}

.hero-bio-badge {
    max-width: clamp(580px, 48vw, 840px);
    padding-left: 24px;
    border-left: 2px solid rgba(0, 51, 255, 0.6);
    text-align: left;
}

.hero-role-main {
    font-size: clamp(18px, 1.3vw, 24px);
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 8px;
    line-height: 1.4;
}

.hero-role-desc {
    font-size: clamp(14px, 1.05vw, 18px);
    font-weight: 400;
    color: #8E8E93;
    line-height: 1.65;
}

@media (max-width: 768px) {
    .hero-subtext-grid {
        justify-content: flex-start;
    }
    .hero-bio-badge {
        max-width: 100%;
    }
}

.scroll-indicator {
    margin-top: 210px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.scroll-indicator p {
    font-size: 9.5px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    font-weight: 600;
}

.mouse-wheel {
    width: 20px;
    height: 34px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
}

.mouse-wheel::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #ffffff;
    border-radius: 50%;
    animation: scroll-wheel 1.6s infinite;
}

@keyframes scroll-wheel {
    0% { top: 5px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* ==========================================
   BIOGRAPHY SECTION (GRID)
   ========================================== */
.about-section {
    padding: 150px 6%;
    background-color: var(--bg-dark);
    position: relative;
    border-top: 1px solid var(--border-clean);
    scroll-margin-top: 90px;
}

.bio-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(48px, 4vw, 80px);
    align-items: center;
    max-width: clamp(980px, 72vw, 1340px);
    margin: 0 auto;
}

@media (max-width: 992px) {
    .bio-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.bio-image-wrapper {
    position: relative;
    width: 100%;
    max-width: clamp(380px, 25vw, 480px);
    margin: 0 auto;
}

.bio-avatar {
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 1px solid var(--border-clean);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    transition: all 0.4s ease;
}

.bio-image-wrapper:hover .bio-avatar {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.15);
}

.bio-text-wrapper {
    max-width: clamp(500px, 45vw, 700px);
}

.bio-text-wrapper h2 {
    font-family: var(--font-serif);
    font-size: 38px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 22px;
    color: var(--text-pure);
}

.highlight-serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: #8f929d;
    font-size: 0.94em;
}

.bio-desc {
    font-size: 15px;
    color: #d8d8e0;
    margin-bottom: 18px;
    line-height: 1.7;
}

.bio-desc.secondary {
    font-size: 14.5px;
    color: var(--text-dimmed);
    border-left: 2px solid var(--cobalt-blue);
    padding-left: 15px;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 35px;
}

.skill-tag {
    font-size: 12.5px;
    font-weight: 500;
    background: transparent;
    border: 1px solid var(--border-clean);
    color: var(--text-muted);
    padding: 7px 15px;
    border-radius: 30px;
    transition: all 0.25s ease;
}

.skill-tag:hover {
    border-color: var(--text-pure);
    color: var(--text-pure);
}

/* ==========================================
   CASE STUDIES & WORK SHOWCASE
   ========================================== */
.features-section {
    padding: 130px 6%;
    background-color: #121212;
    border-top: 1px solid var(--border-clean);
}

.container {
    max-width: clamp(1200px, 82vw, 1560px);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header.align-left {
    text-align: left;
    margin-bottom: 70px;
    max-width: clamp(1140px, 82vw, 1560px);
    margin-left: auto;
    margin-right: auto;
}

.section-header.align-left p {
    margin-left: 0;
    margin-right: 0;
}

.section-header h2 {
    font-family: var(--font-sans);
    font-size: clamp(42px, 3.2vw, 60px);
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-pure);
}

.section-header p {
    font-size: clamp(15.5px, 1.15vw, 20px);
    color: var(--text-muted);
    margin-top: 14px;
    max-width: clamp(580px, 45vw, 780px);
    line-height: 1.65;
}

/* Stacked Cards on Scroll System */
.stacked-cards-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-bottom: 80px;
    max-width: clamp(1140px, 82vw, 1560px);
    margin: 0 auto;
}

.stacked-card {
    position: sticky;
    margin-bottom: 24px;
    background-color: rgba(18, 18, 22, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.85), 0 0 1px rgba(255, 255, 255, 0.15);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    min-height: 420px;
    will-change: top;
}

/* Offsets progressivos de stacking por card (navbar ~80px) */
#card-1 {
    top: 100px;
    z-index: 1;
}

#card-2 {
    top: 120px;
    z-index: 2;
}

#card-3 {
    top: 140px;
    z-index: 3;
}

.stacked-card:hover {
    border-color: rgba(0, 51, 255, 0.5);
    box-shadow: 0 -20px 60px rgba(0, 51, 255, 0.25), 0 0 1px rgba(255, 255, 255, 0.2);
}

.stacked-card-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    align-items: stretch;
    height: 100%;
}

@media (max-width: 900px) {
    .stacked-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 901px) {
    .stacked-card {
        height: clamp(520px, 40vw, 680px);
    }
}

@media (max-width: 768px) {
    .stacked-card {
        position: relative;
        top: auto !important;
        margin-bottom: 24px;
        min-height: auto;
    }
    #card-3 {
        margin-bottom: 24px;
    }
}

.stacked-card-left {
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.stacked-card-left .card-cover {
    width: 100%;
    height: 100%;
    min-height: 280px;
    flex: 1;
    overflow: hidden;
    position: relative;
    background-color: #0b0d12;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
    .stacked-card-left .card-cover {
        height: 260px;
        min-height: 260px;
    }
}

.stacked-card-left .card-cover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stacked-card:hover .card-cover-img {
    transform: scale(1.04);
}

.stacked-card-header {
    padding: clamp(28px, 2.2vw, 42px) clamp(32px, 2.5vw, 48px);
}

.stacked-card-header .card-category {
    font-size: clamp(11px, 0.8vw, 13px);
    font-weight: 700;
    letter-spacing: 1.4px;
    color: var(--text-dimmed);
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.stacked-card-header h3 {
    font-family: var(--font-serif);
    font-size: clamp(30px, 2.3vw, 44px);
    font-weight: 700;
    color: var(--text-pure);
}

.stacked-card-right {
    padding: clamp(36px, 2.6vw, 56px) clamp(40px, 3vw, 60px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.01);
}

.stacked-index {
    font-family: var(--font-sans);
    font-size: clamp(13px, 0.9vw, 16px);
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-dimmed);
    text-align: right;
    margin-bottom: 18px;
}

.stacked-desc {
    font-size: clamp(15px, 1.15vw, 19px);
    color: #d8d8e0;
    line-height: 1.7;
    margin-bottom: 28px;
}

.stacked-deliverables {
    margin-bottom: 32px;
}

.stacked-deliverables h4 {
    font-size: clamp(11px, 0.8vw, 13px);
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-dimmed);
    margin-bottom: 14px;
}

.stacked-deliverables ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stacked-deliverables li {
    font-size: clamp(14px, 1.05vw, 17px);
    color: var(--text-pure);
    display: flex;
    align-items: center;
    gap: 10px;
}

.stacked-deliverables li::before {
    content: '—';
    color: var(--cobalt-blue);
    font-weight: bold;
}

.stacked-action {
    padding-top: 16px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.btn-open-case {
    display: inline-flex;
    align-items: center;
    font-size: clamp(13px, 0.95vw, 16px);
    font-weight: 600;
    color: var(--text-pure);
    transition: color 0.3s ease, transform 0.3s ease;
}

.stacked-card:hover .btn-open-case {
    color: var(--cobalt-blue);
    transform: translateX(4px);
}

/* Glass Card Overlay Base */
.glass-card {
    background-color: rgba(18, 18, 22, 0.95);
    border: 1px solid var(--border-clean);
    border-radius: 24px;
    overflow: hidden;
}
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.card h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-pure);
}

.card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    padding-top: 18px;
}

.card-footer-tags span {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dimmed);
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.glass-card:hover .card-footer-tags span {
    border-color: rgba(0, 51, 255, 0.4);
    color: var(--text-pure);
}

.card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 15px 35px rgba(0, 51, 255, 0.2);
}

.card:hover .card-icon {
    border-color: var(--text-pure);
    color: var(--text-pure);
}

/* ==========================================
   FLAT OBSERVATORY COURT FOOTER GAME (INTEGRATED & NATURAL)
   ========================================== */
.arcade-footer {
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-clean);
    padding: 100px 6% 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arcade-cabinet {
    width: 100%;
    max-width: 800px; /* matched to canvas width */
    background: transparent;
    border: none;
    box-shadow: none;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Integrated Header */
.cabinet-top {
    background: transparent;
    padding: 0 0 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    order: 1;
}

.marquee {
    text-align: center;
}

.glow-text {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-pure);
    letter-spacing: 0.5px;
}

.arcade-status {
    display: none;
}

/* Sleek Floating Screen Bezel */
.cabinet-screen-wrapper {
    position: relative;
    background-color: #040306;
    padding: 0;
    border: 1px solid var(--border-clean);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 51, 255, 0.05);
    order: 3;
}

/* Console Canvas screen */
#tennis-canvas {
    width: 100%;
    height: auto;
    max-height: 450px;
    display: block;
    background-color: #040306;
    border-radius: 20px;
}

/* Canvas Instructions overlay */
.screen-instructions {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 3, 7, 0.96);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 6;
    padding: 40px;
    transition: opacity 0.5s ease;
}

.arcade-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-pure);
    margin-bottom: 4px;
}

.arcade-sub {
    font-size: 12px;
    color: var(--cobalt-blue);
    margin-bottom: 25px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.game-intro-desc {
    max-width: 500px;
    text-align: center;
    margin-bottom: 30px;
}

.game-intro-desc p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.game-intro-desc strong {
    color: var(--text-pure);
}

.controls-guide {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 35px;
    background: rgba(255, 255, 255, 0.01);
    padding: 15px 25px;
    border-radius: 8px;
    border: 1px dashed var(--border-clean);
}

.controls-guide div {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.controls-guide span {
    color: var(--text-pure);
    font-weight: 600;
}

.btn-arcade-start {
    font-weight: 700;
    font-size: 12.5px;
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 13px 30px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-arcade-start:hover {
    background: var(--cobalt-blue);
    color: #ffffff;
}

/* Use display contents to flatten flex items so they participate in arcade-cabinet ordering */
.cabinet-dashboard {
    display: contents;
}

.score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: rgba(255, 255, 255, 0.02);
    padding: 12px 36px;
    border-radius: 16px;
    border: 1px solid var(--border-clean);
    margin: 0 auto 20px auto;
    width: fit-content;
    order: 2;
}

.score-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
}

.player-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-dimmed);
    margin-bottom: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.score {
    font-family: 'Press Start 2P', monospace;
    font-size: 22px;
    color: #ffffff;
}

.vs-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dimmed);
    letter-spacing: 1.5px;
}

/* Minimalist Integrated Controls */
.game-controls {
    display: flex;
    gap: 30px;
    align-items: flex-end;
    justify-content: center;
    margin-top: 24px;
    order: 4;
}

@media (max-width: 600px) {
    .game-controls {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

.control-knob-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.control-knob-group label {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-dimmed);
    letter-spacing: 1px;
}

.arcade-select {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-pure);
    border: 1px solid var(--border-clean);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.25s ease;
}

.arcade-select:hover {
    border-color: var(--accent-cyan);
    background-color: rgba(0, 51, 255, 0.05);
}

.btn-arcade-toggle {
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-clean);
    color: var(--text-muted);
    padding: 8px 18px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.btn-arcade-toggle:hover {
    border-color: var(--accent-cyan);
    color: var(--text-pure);
    background-color: rgba(0, 51, 255, 0.05);
}

.btn-arcade-toggle.active {
    background: var(--cobalt-blue);
    color: #ffffff;
    border-color: var(--cobalt-blue);
    box-shadow: 0 0 15px rgba(0, 51, 255, 0.35);
}

.btn-arcade-reset {
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border-clean);
    color: var(--text-muted);
    padding: 8px 18px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.btn-arcade-reset:hover {
    border-color: var(--accent-cyan);
    color: var(--text-pure);
    background-color: rgba(0, 51, 255, 0.05);
}

.cabinet-info {
    order: 5;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    text-align: center;
    width: 100%;
}

.cabinet-info p {
    font-size: 10.5px;
    color: var(--text-dimmed);
}

/* ==========================================
   PORTFOLIO DETAIL MODAL (DRIPBBLE STYLE)
   ========================================== */
body.modal-open {
    overflow: hidden; /* Prevent background scroll */
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 4, 9, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    padding: 0;
}

/* Crisp Modal Scrollbar */
.modal-body-content::-webkit-scrollbar {
    width: 6px;
}
.modal-body-content::-webkit-scrollbar-track {
    background: transparent;
}
.modal-body-content::-webkit-scrollbar-thumb {
    background: var(--border-clean);
    border-radius: 10px;
}
.modal-body-content::-webkit-scrollbar-thumb:hover {
    background: var(--cobalt-blue);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-wrapper {
    background-color: #191919;
    border-top: 1px solid var(--border-clean);
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 100%;
    margin-top: 10vh;
    height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-wrapper {
    transform: translateY(0);
}

.modal-close-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-clean);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-pure);
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
    align-self: flex-end;
    margin: 24px 24px 0 0;
    z-index: 10;
    outline: none;
}

.modal-close-btn:hover {
    border-color: var(--text-pure);
    background: rgba(255, 255, 255, 0.06);
    transform: scale(1.05);
}

/* Modal Body Content (internal scroll) */
.modal-body-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 56px 4% 100px;
    max-width: clamp(1000px, 85vw, 1340px);
    margin: 0 auto;
}

@media (max-width: 768px) {
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
    
    .modal-wrapper {
        width: 100%;
        margin-top: 10vh;
        height: 90vh;
        border-radius: 24px 24px 0 0;
        border-bottom: none;
        border-left: none;
        border-right: none;
        transform: translateY(100%);
    }
    
    .modal-overlay.active .modal-wrapper {
        transform: translateY(0);
    }

    .modal-close-btn {
        margin: 20px 20px 0 0;
    }

    .modal-body-content {
        padding: 40px 24px 72px;
    }
}

.modal-category {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--cobalt-blue);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 46px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--text-pure);
}

@media (max-width: 768px) {
    .modal-title {
        font-size: 32px;
    }
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 35px;
}

.modal-tags span {
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 5px 12px;
    border-radius: 30px;
    border: 1px solid var(--border-clean);
}

/* Editorial Mockup Graphic Area */
.modal-mockup-box {
    background: linear-gradient(135deg, #1f1f1f 0%, #121212 100%);
    border-radius: 16px;
    height: 380px;
    margin-bottom: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 51, 255, 0.3);
    box-shadow: 0 0 25px rgba(0, 51, 255, 0.15), inset 0 0 40px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .modal-mockup-box {
        height: 240px;
    }
}

/* Stylized interactive vectors inside mockups */
.mockup-inner {
    width: 85%;
    height: 80%;
    background-color: #050409;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: translateY(20px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .mockup-inner {
    transform: translateY(0);
}

.mockup-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
}

.mockup-dot:first-child { background-color: var(--cobalt-blue); }

.mockup-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.mockup-title {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-pure);
}

.mockup-desc {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 320px;
    line-height: 1.5;
}

.mockup-btn {
    font-size: 11px;
    font-weight: 600;
    color: #000;
    background: #fff;
    padding: 7px 18px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Case Phase Section Images */
.case-section-image {
    margin: 30px 0 20px 0;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    background-color: #0b0d12;
    transition: transform 0.4s ease, border-color 0.4s ease;
    display: block;
    min-height: 180px;
}

.case-section-image:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 51, 255, 0.4);
}

.case-phase-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

/* Gallery Section and Header inside Modal */
.modal-gallery-section {
    margin-top: 50px;
    border-top: 1px solid var(--border-clean);
    padding-top: 40px;
    width: 100%;
}

.gallery-section-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-pure);
    letter-spacing: 0.5px;
}

/* Gallery Slideshow in Modal */
.modal-gallery {
    margin-bottom: 45px;
    position: relative;
    width: 100%;
}

.gallery-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 15px;
    -webkit-overflow-scrolling: touch;
}

.gallery-track::-webkit-scrollbar {
    height: 6px;
}

.gallery-track::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}

.gallery-track::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.gallery-track::-webkit-scrollbar-thumb:hover {
    background: var(--cobalt-blue);
}

.gallery-item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #0d0f14;
    border: 1px solid var(--border-clean);
    display: flex;
    flex-direction: column;
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.gallery-caption {
    background: rgba(7, 6, 11, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-clean);
    padding: 14px 20px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-pure);
    line-height: 1.5;
}

.gallery-nav-hint {
    text-align: center;
    font-size: 10px;
    color: var(--text-dimmed);
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* Horizontal Metadata Strip (Dribbble/Behance Style) */
.modal-meta-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-clean);
    border-radius: 20px;
    padding: 24px 32px;
    margin-bottom: 45px;
}

@media (max-width: 900px) {
    .modal-meta-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 20px;
    }
}

@media (max-width: 550px) {
    .modal-meta-strip {
        grid-template-columns: 1fr;
    }
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meta-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-dimmed);
    text-transform: uppercase;
}

.meta-val {
    font-size: 14px;
    color: var(--text-pure);
    font-weight: 500;
    line-height: 1.5;
}

/* Full-Width Narrative & High-Impact Case Shots */
.modal-main-desc.full-width-layout {
    width: 100%;
    max-width: 100%;
}

.modal-main-desc h4 {
    font-family: var(--font-serif);
    font-size: clamp(24px, 2.2vw, 34px);
    font-weight: 700;
    margin: 50px 0 20px 0;
    color: var(--text-pure);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 14px;
}

.modal-main-desc p {
    font-size: clamp(15.5px, 1.15vw, 18.5px);
    color: #d8d8e0;
    line-height: 1.8;
    margin-bottom: 24px;
    max-width: 100%;
}

/* Editorial Case Layout (Image + Short Text Rhythm) */
.case-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    border: 1px solid var(--border-clean);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    margin: 55px 0;
}

.case-block {
    margin-bottom: 48px;
}

.case-block h4 {
    font-family: var(--font-serif);
    font-size: clamp(22px, 1.9vw, 28px);
    font-weight: 700;
    color: var(--text-pure);
    margin-bottom: 14px;
    letter-spacing: 0.2px;
}

.case-block p {
    font-size: clamp(15px, 1.1vw, 17.5px);
    color: #c9c9d3;
    line-height: 1.8;
    margin-bottom: 16px;
}

.modal-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(18px, 1.4vw, 24px);
    color: var(--text-pure);
    border-left: 3px solid var(--cobalt-blue);
    padding-left: 24px;
    margin: 40px 0;
    line-height: 1.6;
    background: rgba(0, 51, 255, 0.03);
    padding-top: 18px;
    padding-bottom: 18px;
    border-radius: 0 12px 12px 0;
}

/* ==========================================
   ADDITIONAL MOBILE RESPONSIVENESS OVERRIDES
   ========================================== */
@media (max-width: 768px) {
    .about-section {
        padding: 80px 6%;
    }
    .features-section {
        padding: 80px 6%;
    }
    .bio-text-wrapper h2 {
        font-size: 30px;
    }
    .section-header h2 {
        font-size: 30px;
    }
    .section-header {
        margin-bottom: 50px;
    }
    .arcade-footer {
        padding: 80px 4% 40px;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 60px 5%;
    }
    .features-section {
        padding: 60px 5%;
    }
    .bio-text-wrapper h2 {
        font-size: 26px;
    }
    .section-header h2 {
        font-size: 26px;
    }
    .arcade-title {
        font-size: 24px;
    }
    .screen-instructions {
        padding: 20px;
    }
    .controls-guide {
        width: 100%;
        padding: 10px 15px;
    }
    .controls-guide div {
        font-size: 11.5px;
        gap: 15px;
    }
}

/* ==========================================
   FULL-PAGE EDITORIAL CONTACT CTA SECTION (100VH POSTER)
   ========================================== */
.contact-cta-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #100E0F;
    border-top: 1px solid var(--border-clean);
    overflow: hidden;
    padding: 0 8%;
}

/* Ponto grande de luz azul cobalto no lado direito (hemisfério vazado) */
.contact-cta-section::after {
    content: '';
    position: absolute;
    right: -500px;
    top: 50%;
    transform: translateY(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(0, 51, 255, 0.35) 0%, rgba(0, 51, 255, 0.12) 42%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.95;
}

.cta-container {
    width: 100%;
    max-width: clamp(1140px, 85vw, 1600px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    z-index: 3;
}

.cta-content-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    max-width: 900px;
    z-index: 4;
}

.cta-subtitle {
    font-family: 'Syne', var(--font-sans);
    font-size: clamp(14px, 1.1vw, 18px);
    font-weight: 800;
    letter-spacing: 2.5px;
    color: #FFFFFF;
    text-transform: uppercase;
    margin-bottom: 28px;
    display: block;
}

.cta-title {
    font-family: 'Syne', var(--font-sans);
    font-weight: 800;
    font-size: clamp(42px, 4.8vw, 84px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    margin-bottom: 44px;
    text-transform: uppercase;
}

.cta-title .highlight-serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    text-transform: none;
    color: #FFFFFF;
    display: inline-block;
}

.cta-email-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-email {
    font-family: 'Syne', var(--font-sans);
    font-weight: 800;
    font-size: clamp(14px, 1.25vw, 20px);
    color: #FFFFFF;
    text-decoration: underline;
    text-underline-offset: 7px;
    text-decoration-thickness: 1.5px;
    text-decoration-color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
}

.cta-email:hover {
    color: var(--cobalt-blue);
    text-decoration-color: var(--cobalt-blue);
    transform: translateY(-2px);
    text-shadow: 0 0 20px rgba(0, 51, 255, 0.5);
}

.copy-email-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    border-radius: 8px;
    padding: 7px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.copy-email-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.copy-email-btn.copied {
    background: #0033FF;
    border-color: #0033FF;
    color: #FFFFFF;
    box-shadow: 0 0 15px rgba(0, 51, 255, 0.5);
}

@media (max-width: 900px) {
    .contact-cta-section {
        padding: 85px 6%;
    }
    .cta-brand-graphic {
        opacity: 0.3;
        width: 70%;
        right: -15%;
    }
}

@media (max-width: 600px) {
    .contact-cta-section {
        padding: 65px 5%;
    }
    .cta-title {
        font-size: 28px;
    }
    .cta-email {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .contact-cta-section {
        padding: 65px 5%;
    }
    .cta-title {
        font-size: 28px;
    }
    .cta-email {
        font-size: 17px;
    }
}

/* ==========================================
   INTERACTIVE EXTRAVAGANZA (CYBER-CYAN VISUALS)
   ========================================== */

/* Screen Shake Effect for Arcade Tennis Game */
@keyframes screenShake {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-4px, 3px); }
    20% { transform: translate(4px, -3px); }
    30% { transform: translate(-3px, -4px); }
    40% { transform: translate(3px, 4px); }
    50% { transform: translate(-4px, 2px); }
    60% { transform: translate(4px, -2px); }
    70% { transform: translate(-2px, 3px); }
    80% { transform: translate(2px, -3px); }
    90% { transform: translate(-3px, -2px); }
    100% { transform: translate(0, 0); }
}

.screen-shake-effect {
    animation: screenShake 0.35s cubic-bezier(.36,.07,.19,.97) both;
}

/* ==========================================
   ULTRA-WIDE & 2K / 4K DISPLAY RESPONSIVENESS
   ========================================== */
@media (min-width: 1600px) {
    .navbar {
        padding: 24px 8%;
    }
    .modal-body-content {
        max-width: 1140px;
    }
    .arcade-cabinet {
        max-width: 1000px;
    }
    #tennis-canvas {
        max-height: 520px;
    }
}

@media (min-width: 2200px) {
    .navbar {
        padding: 28px 10%;
    }
    .stacked-card {
        border-radius: 36px;
    }
    .modal-body-content {
        max-width: 1300px;
    }
}

/* ==========================================
   PLAYGROUND / BONUS STAGE (CYBER TÊNIS EASTER EGG)
   ========================================== */
.playground-section {
    background-color: #0b0c10;
    padding: 100px 5% 80px;
    position: relative;
    border-top: 1px solid var(--border-clean);
}

.playground-container {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header */
.playground-header {
    text-align: center;
    margin-bottom: 40px;
}

.playground-tag {
    font-family: 'Syne', var(--font-sans);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: var(--cobalt-blue);
    text-transform: uppercase;
    margin-bottom: 12px;
    display: inline-block;
}

.playground-title {
    font-family: 'Syne', var(--font-sans);
    font-size: clamp(32px, 3.5vw, 54px);
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.playground-copy {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 500px;
    margin: 0 auto;
}

/* Moldura Integrada do Jogo */
.playground-game-box {
    width: 100%;
    max-width: 900px;
    background: #0d0e14;
    border: 1px solid rgba(0, 51, 255, 0.35);
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 51, 255, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Placar Integrado no Topo */
.playground-scorebar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.score-team {
    display: flex;
    align-items: center;
    gap: 14px;
}

.team-name {
    font-family: 'Syne', var(--font-sans);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.score-num {
    font-family: 'Syne', monospace;
    font-size: 26px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 1px;
}

.vs-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--cobalt-blue);
    background: rgba(0, 51, 255, 0.12);
    border: 1px solid rgba(0, 51, 255, 0.3);
    padding: 3px 9px;
    border-radius: 12px;
    letter-spacing: 1px;
}

/* Quadra Canvas Wrapper */
.playground-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 350px;
    background: #08090d;
}

.playground-canvas-wrapper canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Overlay de Início */
.playground-start-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 9, 13, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 10;
    transition: opacity 0.4s ease;
}

.btn-playground-start {
    font-family: 'Syne', var(--font-sans);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #FFFFFF;
    background: var(--cobalt-blue);
    border: none;
    padding: 14px 36px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(0, 51, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-playground-start:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(0, 51, 255, 0.8);
    background: #1a4aff;
}

.playground-controls-hint {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Toolbar Inferior Compacta */
.playground-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.toolbar-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolbar-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.toolbar-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-clean);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    outline: none;
}

.toolbar-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-clean);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.toolbar-btn.active {
    background: var(--cobalt-blue);
    border-color: var(--cobalt-blue);
}

.toolbar-divider {
    color: rgba(255, 255, 255, 0.15);
    font-size: 12px;
}

/* Encerramento Final */
.portfolio-final-closure {
    background-color: #07080a;
    padding: 40px 5% 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.closure-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.closure-thanks {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 18px;
    color: #FFFFFF;
}

.closure-links {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13.5px;
    color: var(--text-muted);
}

.closure-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.25s ease;
}

.closure-links a:hover {
    color: #FFFFFF;
}

.closure-dot {
    color: rgba(255, 255, 255, 0.2);
}

.back-to-top-btn {
    font-weight: 600;
    color: var(--cobalt-blue) !important;
}

.back-to-top-btn:hover {
    color: #FFFFFF !important;
}

@media (max-width: 768px) {
    .contact-cta-section {
        min-height: auto;
        padding: 100px 6% 80px;
        overflow: hidden;
    }
    .cta-subtitle {
        font-size: 11px;
        letter-spacing: 1.5px;
        white-space: normal;
        margin-bottom: 20px;
        word-break: break-word;
    }
    .cta-title {
        font-size: clamp(28px, 7.5vw, 44px);
        line-height: 1.15;
        margin-bottom: 32px;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    .cta-email-wrapper {
        width: 100%;
        gap: 12px;
    }
    .cta-email {
        font-size: clamp(12px, 4vw, 16px);
        word-break: break-all;
        letter-spacing: 0.5px;
        max-width: 100%;
    }
    .contact-cta-section::after {
        width: 500px;
        height: 500px;
        right: -250px;
        filter: blur(70px);
    }
}

@media (max-width: 600px) {
    .playground-canvas-wrapper {
        height: 260px;
    }
    .playground-toolbar {
        gap: 12px;
    }
    .score-num {
        font-size: 20px;
    }
}
