:root {
    --nintendo-red: #e60012;
    --dark-bg: #0a0a0a;
    --card-bg: #1c1c1c;
    --glow: rgba(230, 0, 18, 0.4);
}

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

body {
    background-color: var(--dark-bg);
    color: #ffffff;
    font-family: 'Press Start 2P', monospace;
    min-height: 100vh;
    overflow-x: hidden;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.12) 0px,
            rgba(0, 0, 0, 0.12) 1px,
            transparent 1px,
            transparent 3px);
    pointer-events: none;
    z-index: 9999;
}

.pixel-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.04;
    background-image:
        radial-gradient(circle, var(--nintendo-red) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: bgScroll 25s linear infinite;
}

@keyframes bgScroll {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 30px 30px;
    }
}

.wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    min-height: 100vh;
}

header {
    text-align: center;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(-20px);
    animation: slideDown 0.6s ease 0.1s forwards;
}

@keyframes slideDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-logo {
    max-width: 140px;
    height: auto;
    margin-bottom: 18px;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 12px var(--glow));
}

h1 {
    font-size: 1.4rem;
    letter-spacing: 3px;
    text-shadow: 3px 3px 0px #000;
    line-height: 1.8;
}

h1 .red {
    color: var(--nintendo-red);
}

h1 .white {
    color: #ffffff;
}

.divider {
    width: 100%;
    max-width: 700px;
    height: 4px;
    background: repeating-linear-gradient(90deg,
            var(--nintendo-red) 0px,
            var(--nintendo-red) 10px,
            transparent 10px,
            transparent 15px);
    margin-bottom: 35px;
    opacity: 0.5;
}

.content {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-label {
    font-size: 0.5rem;
    color: #555;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 25px;
    margin-bottom: 5px;
    padding-left: 4px;
    opacity: 0;
    transform: translateY(15px);
    animation: slideUp 0.5s ease forwards;
}

.section-label.delay-1 {
    animation-delay: 0.2s;
}

.section-label.delay-2 {
    animation-delay: 0.35s;
}

.section-label.delay-3 {
    animation-delay: 0.65s;
}

.section-label::before {
    content: '>';
    color: var(--nintendo-red);
    margin-right: 8px;
}

.hero-card {
    background-color: var(--card-bg);
    border: 3px solid #444;
    padding: 30px 25px;
    display: flex;
    align-items: center;
    gap: 25px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    clip-path: polygon(0 10px, 10px 10px, 10px 0,
            calc(100% - 10px) 0, calc(100% - 10px) 10px, 100% 10px,
            100% calc(100% - 10px), calc(100% - 10px) calc(100% - 10px), calc(100% - 10px) 100%,
            10px 100%, 10px calc(100% - 10px), 0 calc(100% - 10px));
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.5s ease 0.25s forwards;
}

.hero-card:hover {
    border-color: var(--nintendo-red);
    box-shadow: 0 0 25px var(--glow), inset 0 0 30px rgba(230, 0, 18, 0.03);
}

.hero-card .hero-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--nintendo-red);
}

.hero-card .hero-icon {
    width: 90px;
    height: 90px;
    object-fit: contain;
    image-rendering: pixelated;
    border: 3px solid #444;
    padding: 6px;
    background: #111;
    flex-shrink: 0;
    transition: border-color 0.3s ease;
}

.hero-card:hover .hero-icon {
    border-color: var(--nintendo-red);
}

.hero-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-badge {
    display: inline-block;
    background: var(--nintendo-red);
    color: #fff;
    font-size: 0.4rem;
    padding: 4px 10px;
    letter-spacing: 1px;
    align-self: flex-start;
    clip-path: polygon(0 3px, 3px 3px, 3px 0,
            calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px,
            100% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 100%,
            3px 100%, 3px calc(100% - 3px), 0 calc(100% - 3px));
}

.hero-info h2 {
    font-size: 0.85rem;
    text-shadow: 2px 2px 0 #000;
    letter-spacing: 1px;
}

.hero-info p {
    font-size: 0.45rem;
    color: #999;
    line-height: 1.8;
}

.hero-btn {
    background-color: var(--nintendo-red);
    color: white;
    text-decoration: none;
    padding: 14px 24px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
    text-align: center;
    flex-shrink: 0;
    clip-path: polygon(0 5px, 5px 5px, 5px 0,
            calc(100% - 5px) 0, calc(100% - 5px) 5px, 100% 5px,
            100% calc(100% - 5px), calc(100% - 5px) calc(100% - 5px), calc(100% - 5px) 100%,
            5px 100%, 5px calc(100% - 5px), 0 calc(100% - 5px));
}

.hero-btn:hover {
    background-color: #ff3333;
    transform: translateY(-2px);
    box-shadow: 0 4px 0 #990000;
}

.hero-btn:active {
    transform: translateY(0);
    box-shadow: 0 0 0 #990000;
}

.grid-secondary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    background-color: var(--card-bg);
    border: 3px solid #333;
    padding: 22px 18px;
    text-align: center;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    clip-path: polygon(0 8px, 8px 8px, 8px 0,
            calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px,
            100% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 100%,
            8px 100%, 8px calc(100% - 8px), 0 calc(100% - 8px));
    opacity: 0;
    transform: translateY(20px);
}

.card:nth-child(1) {
    animation: slideUp 0.5s ease 0.4s forwards;
}

.card:nth-child(2) {
    animation: slideUp 0.5s ease 0.5s forwards;
}

.card:nth-child(3) {
    animation: slideUp 0.5s ease 0.6s forwards;
}

.card:hover {
    border-color: var(--nintendo-red);
    background-color: #1f1212;
    box-shadow: 0 0 18px var(--glow);
}

.card-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 12px;
    image-rendering: pixelated;
    border: 2px solid #333;
    padding: 4px;
    background: #111;
    transition: border-color 0.3s ease;
}

.card:hover .card-icon {
    border-color: var(--nintendo-red);
}

.card h2 {
    font-size: 0.6rem;
    line-height: 1.8;
    margin-bottom: 6px;
    min-height: 40px;
    display: flex;
    align-items: center;
    text-shadow: 2px 2px 0 #000;
}

.card-desc {
    font-size: 0.4rem;
    color: #888;
    margin-bottom: 16px;
    line-height: 1.7;
}

.btn {
    background-color: var(--nintendo-red);
    color: white;
    text-decoration: none;
    padding: 10px 16px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
    text-align: center;
    clip-path: polygon(0 4px, 4px 4px, 4px 0,
            calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px,
            100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%,
            4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px));
}

.btn:hover {
    background-color: #ff3333;
    transform: translateY(-2px);
    box-shadow: 0 4px 0 #990000;
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 0 0 #990000;
}

.grid-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.link-card {
    background-color: var(--card-bg);
    border: 3px solid #333;
    padding: 22px 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    clip-path: polygon(0 8px, 8px 8px, 8px 0,
            calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px,
            100% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 100%,
            8px 100%, 8px calc(100% - 8px), 0 calc(100% - 8px));
    opacity: 0;
    transform: translateY(20px);
}

.link-card:nth-child(1) {
    animation: slideUp 0.5s ease 0.7s forwards;
}

.link-card:nth-child(2) {
    animation: slideUp 0.5s ease 0.8s forwards;
}

.link-card:hover {
    border-color: var(--nintendo-red);
    background-color: #1f1212;
    box-shadow: 0 0 18px var(--glow);
}

.link-icon-box {
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.3s ease;
    overflow: hidden;
}

.link-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.link-icon-box svg {
    width: 30px;
    height: 30px;
}

.link-card:hover .link-icon-box {
    border-color: var(--nintendo-red);
}

.link-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.link-info .link-tag {
    font-size: 0.35rem;
    color: var(--nintendo-red);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.link-info .link-title {
    font-size: 0.55rem;
    text-shadow: 2px 2px 0 #000;
}

.link-info .link-url {
    font-size: 0.35rem;
    color: #666;
    margin-top: 2px;
}

.link-arrow {
    color: #555;
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: color 0.3s ease, transform 0.2s ease;
}

.link-card:hover .link-arrow {
    color: var(--nintendo-red);
    transform: translateX(3px);
}

footer {
    margin-top: auto;
    padding: 35px 0 15px;
    font-size: 0.4rem;
    color: #333;
    text-align: center;
    line-height: 2.2;
    opacity: 0;
    animation: slideUp 0.5s ease 0.9s forwards;
}