* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(180deg, rgba(16, 16, 16, 1) 0%, rgba(15, 15, 15, 1) 100%);
    margin: 0;
    padding: 0;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #694fa8 0%, #9772F2 100%);
    border-radius: 5px;
    border: 2px solid #1a1a1a;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7b5bc4 0%, #a989ff 100%);
}

::-webkit-scrollbar-button {
    display: none;
}

::-webkit-scrollbar-corner {
    background: #1a1a1a;
}

/* Primeira seção - Cards centralizados */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: 340px 630px 270px;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: center;
}

.grid-bottom {
    display: grid;
    grid-template-columns: 630px 630px;
    gap: 20px;
    justify-content: center;
}

/* Card Logo */
.card-logo {
    width: 340px;
    height: 240px;
    background: #7B47FF;
    border: 1px solid rgba(235, 235, 245, 0.1);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    box-shadow: none;
    cursor: pointer;
    position: relative;
}

.card-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

/* Tooltip Card Logo */
.card-logo .card-tooltip-logo {
    position: absolute;
    top: -50px;
    right: 0;
    background: #ffffff;
    color: #000000;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 100;
    transform: translateY(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.card-logo .card-tooltip-logo::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #ffffff;
}

.card-logo:hover .card-tooltip-logo {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Card IP */
.card-ip {
    width: 340px;
    height: 60px;
    background: #25262F;
    border: 1px solid rgba(235, 235, 245, 0.1);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    box-shadow: none;
    cursor: pointer;
    position: relative;
}

.copy-icon {
    width: 28px;
    height: 28px;
    margin-right: 14px;
    fill: #9772F2;
}

.ip-text {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Card Loja */
.card-loja {
    width: 630px;
    height: 320px;
    border-radius: 24px;
    position: relative;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(151, 114, 242, 0.15);
    cursor: pointer;
    border: 1px solid rgba(151, 114, 242, 0.5);
    animation: shadowPulse 3s ease-in-out infinite;
}

@keyframes shadowPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(151, 114, 242, 0.15);
    }
    50% {
        box-shadow: 0 4px 25px rgba(151, 114, 242, 0.25);
    }
}

.card-loja::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../pics/loja.png') center/cover, linear-gradient(135deg, #694fa8 0%, #9772F2 100%);
    z-index: 1;
    border-radius: 24px;
}

.card-title {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Tooltip Card Loja */
.card-loja .card-tooltip-loja {
    position: absolute;
    top: -50px;
    right: 0;
    background: #ffffff;
    color: #000000;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 100;
    transform: translateY(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.card-loja .card-tooltip-loja::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #ffffff;
}

.card-loja:hover .card-tooltip-loja {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Badge Promoção Loja */
.card-loja .badge-promo {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #9772F2;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    z-index: 101;
    border: 1px solid rgba(151, 114, 242, 0.4);
    backdrop-filter: blur(10px);
    white-space: nowrap;
    text-transform: uppercase;
}

/* Tooltip Card IP */
.card-ip .card-tooltip-ip {
    position: absolute;
    top: -50px;
    right: 0;
    background: #ffffff;
    color: #000000;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 100;
    transform: translateY(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.card-ip .card-tooltip-ip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #ffffff;
}

.card-ip:hover .card-tooltip-ip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Tooltip Card Discord */
.card-discord .card-tooltip-discord {
    position: absolute;
    top: -50px;
    right: 0;
    background: #ffffff;
    color: #000000;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 100;
    transform: translateY(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.card-discord .card-tooltip-discord::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #ffffff;
}

.card-discord:hover .card-tooltip-discord {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Tooltip Card Wiki */
.card-wiki .card-tooltip-wiki {
    position: absolute;
    top: -50px;
    right: 0;
    background: #ffffff;
    color: #000000;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 100;
    transform: translateY(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.card-wiki .card-tooltip-wiki::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #ffffff;
}

.card-wiki:hover .card-tooltip-wiki {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Tooltip Card Jogar */
.card-jogar .card-tooltip-jogar {
    position: absolute;
    top: -50px;
    right: 0;
    background: #ffffff;
    color: #000000;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 100;
    transform: translateY(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.card-jogar .card-tooltip-jogar::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #ffffff;
}

.card-jogar:hover .card-tooltip-jogar {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Card Discord */
.card-discord {
    width: 270px;
    height: 320px;
    background: #5865F2;
    border: 1px solid rgba(235, 235, 245, 0.1);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    cursor: pointer;
    text-align: center;
    padding: 20px;
    position: relative;
    overflow: visible;
}

.discord-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.discord-count {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.discord-text {
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.online-badge {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #67C05F;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(103, 192, 95, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 2px rgba(103, 192, 95, 0.3);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(103, 192, 95, 0.2);
    }
}

/* Card Wiki */
.card-wiki {
    width: 630px;
    height: 320px;
    border-radius: 24px;
    position: relative;
    overflow: visible;
    box-shadow: none;
    cursor: pointer;
    border: 1px solid rgba(235, 235, 245, 0.1);
}

.card-wiki::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../pics/wiki.png') center/cover, linear-gradient(135deg, #9772F2 0%, #b70bce 100%);
    z-index: 1;
    border-radius: 24px;
}

/* Card Jogar */
.card-jogar {
    width: 630px;
    height: 320px;
    border-radius: 24px;
    position: relative;
    overflow: visible;
    box-shadow: none;
    cursor: pointer;
    border: 1px solid rgba(235, 235, 245, 0.1);
}

.card-jogar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../pics/jogar.png') center/cover, linear-gradient(135deg, #694fa8 0%, #9772F2 100%);
    z-index: 1;
    border-radius: 24px;
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.01);
    padding: 40px 20px;
    margin-top: 64px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.footer-description {
    font-weight: 600;
    font-size: 18px;
    line-height: 1.6;
    color: #ffffff;
    margin: 0;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.25);
    font-size: 14px;
    margin: 0;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
}

.footer-social {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.footer-credits {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    text-align: right;
    margin: 0;
    line-height: 1.6;
}

/* Responsivo Footer */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-left {
        text-align: center;
    }

    .footer-right {
        align-items: center;
    }

    .footer-credits {
        text-align: center;
    }
}

/* Modal História */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: #25262F;
    border: 1px solid rgba(235, 235, 245, 0.1);
    border-radius: 16px;
    padding: 30px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-title {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.modal-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.timeline-item {
    display: flex;
    gap: 24px;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 34px;
    top: 70px;
    height: calc(100% + 24px);
    width: 2px;
    background: linear-gradient(180deg, #7B47FF 0%, rgba(123, 71, 255, 0.3) 100%);
}

.timeline-year {
    min-width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #7B47FF 0%, #9772F2 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
    padding-top: 4px;
}

.timeline-heading {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.timeline-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
}

/* Modal CTA */
.modal-cta {
    margin-top: 32px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(123, 71, 255, 0.1) 0%, rgba(151, 114, 242, 0.1) 100%);
    border: 2px solid rgba(123, 71, 255, 0.3);
    border-radius: 16px;
    text-align: center;
}

.cta-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #7B47FF 0%, #9772F2 100%);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(123, 71, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 71, 255, 0.5);
    background: linear-gradient(135deg, #8b57ff 0%, #a782ff 100%);
}

.cta-button svg {
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: translateX(4px);
}

/* Scrollbar do Modal */
.modal-container::-webkit-scrollbar {
    width: 8px;
}

.modal-container::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.modal-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #7B47FF 0%, #9772F2 100%);
    border-radius: 4px;
}

/* Responsivo Modal */
@media (max-width: 768px) {
    .modal-container {
        padding: 20px;
        width: 95%;
        max-height: 90vh;
    }

    .modal-close {
        top: 16px;
        right: 16px;
        font-size: 28px;
        width: 36px;
        height: 36px;
    }

    .modal-title {
        font-size: 22px;
        padding-right: 30px;
    }

    .modal-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .timeline {
        gap: 20px;
    }

    .timeline-item {
        gap: 16px;
    }

    .timeline-item:not(:last-child)::after {
        left: 27px;
        top: 58px;
        height: calc(100% + 20px);
    }

    .timeline-year {
        min-width: 56px;
        width: 56px;
        height: 56px;
        font-size: 15px;
        border-radius: 16px;
    }

    .timeline-heading {
        font-size: 16px;
    }

    .timeline-text {
        font-size: 13px;
    }

    .modal-cta {
        margin-top: 24px;
        padding: 20px;
    }

    .cta-title {
        font-size: 18px;
    }

    .cta-subtitle {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Coluna esquerda */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Responsivo Geral */
@media (max-width: 1320px) {
    .grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .grid-bottom {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .left-column {
        width: 100%;
        max-width: 630px;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .card-logo,
    .card-ip,
    .card-discord,
    .card-loja,
    .card-wiki,
    .card-jogar {
        width: 100% !important;
        max-width: 630px !important;
    }

    .card-logo,
    .card-discord,
    .card-loja,
    .card-wiki,
    .card-jogar {
        height: 320px !important;
    }

    .card-ip {
        height: 60px !important;
    }

    .footer-container {
        max-width: 630px;
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-left {
        text-align: center;
    }

    .footer-right {
        align-items: center;
    }

    .footer-credits {
        text-align: center;
    }
}

/* =========================================================
   NEON BORDER FOLLOW MOUSE (cards)
   (FICA FORA DO @media - CORRIGIDO)
========================================================= */
:root{
  --neon1: rgba(123,71,255,.95);
  --neon2: rgba(61,220,255,.70);
  --neon3: rgba(151,114,242,.85);
}

.card-logo,
.card-ip,
.card-loja,
.card-discord,
.card-wiki,
.card-jogar{
  position: relative;
  isolation: isolate;
  transform: translateZ(0);
}

.card-logo::after,
.card-ip::after,
.card-loja::after,
.card-discord::after,
.card-wiki::after,
.card-jogar::after{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: 24px;
  pointer-events:none;
  opacity: 0;
  transition: opacity .18s ease, filter .18s ease;
  filter: blur(.2px);

  background:
    radial-gradient(240px 180px at var(--mx, 50%) var(--my, 50%),
      rgba(123,71,255,.55), transparent 65%),
    radial-gradient(220px 160px at calc(var(--mx, 50%) + 12px) calc(var(--my, 50%) - 10px),
      rgba(61,220,255,.30), transparent 70%),
    linear-gradient(135deg,
      rgba(123,71,255,.35),
      rgba(61,220,255,.18),
      rgba(151,114,242,.28));

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  padding: 1px;
}

.card-logo:hover::after,
.card-ip:hover::after,
.card-loja:hover::after,
.card-discord:hover::after,
.card-wiki:hover::after,
.card-jogar:hover::after{
  opacity: 1;
}

/* glow interno só nos cards SEM ::before de imagem */
.card-logo::before,
.card-ip::before,
.card-discord::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: 24px;
  pointer-events:none;
  opacity: 0;
  transition: opacity .18s ease;
  background:
    radial-gradient(320px 220px at var(--mx, 50%) var(--my, 50%),
      rgba(151,114,242,.14), transparent 60%);
  z-index: 0;
}

.card-logo:hover::before,
.card-ip:hover::before,
.card-discord:hover::before{
  opacity: 1;
}

.card-logo > *,
.card-ip > *,
.card-loja > *,
.card-discord > *,
.card-wiki > *,
.card-jogar > *{
  position: relative;
  z-index: 2;
}

@media (hover: none){
  .card-logo::after,
  .card-ip::after,
  .card-loja::after,
  .card-discord::after,
  .card-wiki::after,
  .card-jogar::after{
    opacity: .35;
  }
}
