: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: 'Inter', system-ui, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

h1,
.section-label,
.hero-badge,
.hero-info h2,
.card h2,
.link-info .link-title,
.guide-mini-content h3,
.hero-btn,
.btn,
.guide-mini-btn {
    font-family: 'Oxanium', system-ui, sans-serif;
}

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;
    }
}

#app {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

body.maintenance-theme {
    background:
        radial-gradient(circle at top, rgba(230, 0, 18, 0.22), transparent 30rem),
        linear-gradient(135deg, #080808 0%, #121212 50%, #080808 100%);
}

body.maintenance-theme::before {
    background:
        linear-gradient(115deg, transparent 0 42%, rgba(230, 0, 18, 0.08) 42% 43%, transparent 43% 100%),
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: auto, 72px 72px, 72px 72px;
}

.maintenance-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.maintenance-box {
    width: min(100%, 620px);
    padding: 34px 28px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(28, 28, 28, 0.86);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36), 0 0 34px rgba(230, 0, 18, 0.12);
}

.maintenance-badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(230, 0, 18, 0.18);
    color: #ffb4bb;
    font-family: 'Oxanium', system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.maintenance-box h1 {
    margin-bottom: 12px;
    font-size: clamp(2rem, 7vw, 4rem);
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 8px 32px rgba(0, 0, 0, 0.56);
}

.maintenance-box p {
    color: #d7d7d7;
    font-size: 1rem;
    line-height: 1.7;
}

.home-page.wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    min-height: 100vh;
}

.home-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 {
    display: block;
    max-width: 140px;
    height: auto;
    margin: 0 auto 18px;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 12px var(--glow));
}

.home-page h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 3px 3px 0px #000;
    line-height: 1.3;
}

.home-page 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;
}

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

.home-page .section-label {
    font-size: 0.75rem;
    color: #888;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-weight: 600;
    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;
}

.home-page .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.65rem;
    font-weight: 700;
    padding: 4px 12px;
    letter-spacing: 0.6px;
    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: 1.15rem;
    font-weight: 700;
    text-shadow: 2px 2px 0 #000;
    letter-spacing: 0.5px;
}

.hero-info p {
    font-size: 0.9rem;
    color: #b3b3b3;
    line-height: 1.6;
    font-weight: 400;
}

.hero-btn {
    background-color: var(--nintendo-red);
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    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(2, 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: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.95rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
    min-height: 40px;
    display: flex;
    align-items: center;
    text-shadow: 2px 2px 0 #000;
}

.card-desc {
    font-size: 0.85rem;
    color: #a8a8a8;
    margin-bottom: 16px;
    line-height: 1.55;
    font-weight: 400;
}

.btn {
    background-color: var(--nintendo-red);
    color: white;
    text-decoration: none;
    padding: 10px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    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(3, 1fr);
    gap: 16px;
    align-items: start;
}

.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);
}

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

.grid-links>.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.72rem;
    color: var(--nintendo-red);
    letter-spacing: 0.6px;
    text-transform: uppercase;
    font-weight: 700;
}

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

.link-info .link-url {
    font-size: 0.8rem;
    color: #969696;
    margin-top: 2px;
    font-weight: 400;
}

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

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

/* STACK GUIDE */
.guide-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.5s ease 0.9s forwards;
}

/* Main card (sito guide) - reso coerente con mini-card */
.guide-main-card {
    background-color: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    border: 2px solid #2f2f2f;
    padding: 14px 16px;
    display: block;
    text-decoration: none;
    color: #fff;
    position: relative;
    clip-path: polygon(0 6px, 6px 6px, 6px 0,
            calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px,
            100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%,
            6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px));
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    opacity: 1;
    transform: none;
    animation: none;
}

.guide-main-card,
.guide-main-card * {
    cursor: pointer !important;
}

.guide-main-card:hover {
    border-color: var(--nintendo-red);
    background-color: rgba(230, 0, 18, 0.06);
    box-shadow: 0 0 12px rgba(230, 0, 18, 0.18);
}

.guide-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.guide-main-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guide-main-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}

.guide-main-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.guide-mini-label,
.guide-main-content .guide-mini-label {
    font-size: 0.68rem;
    color: var(--nintendo-red);
    letter-spacing: 0.6px;
    text-transform: uppercase;
    font-weight: 700;
}

.guide-main-content h3 {
    font-size: 0.82rem;
    font-weight: 700;
    text-shadow: 2px 2px 0 #000;
}

.guide-main-content p {
    font-size: 0.76rem;
    color: #9e9e9e;
    line-height: 1.45;
}

.guide-main-arrow {
    color: var(--nintendo-red);
    font-size: 1rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.guide-main-card:hover .guide-main-arrow {
    transform: translateX(3px);
}

/* Mini card (Telegram aggiornamenti) */
.guide-mini-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 2px solid #2f2f2f;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    clip-path: polygon(0 6px, 6px 6px, 6px 0,
            calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px,
            100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%,
            6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px));
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.guide-mini-card:hover {
    border-color: var(--nintendo-red);
    background-color: rgba(230, 0, 18, 0.06);
    box-shadow: 0 0 12px rgba(230, 0, 18, 0.18);
}

.guide-mini-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.guide-mini-content h3 {
    font-size: 0.82rem;
    font-weight: 700;
    text-shadow: 2px 2px 0 #000;
}

.guide-mini-content p {
    font-size: 0.76rem;
    color: #9e9e9e;
    line-height: 1.45;
}

.guide-mini-btn {
    background-color: transparent;
    border: 2px solid var(--nintendo-red);
    color: #fff;
    text-decoration: none;
    padding: 9px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
    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));
}

.guide-mini-btn:hover {
    background-color: var(--nintendo-red);
    transform: translateY(-1px);
    box-shadow: 0 3px 0 #990000;
}

footer {
    margin-top: auto;
    padding: 35px 0 15px;
    font-size: 0.75rem;
    color: #777;
    text-align: center;
    line-height: 1.8;
    opacity: 0;
    animation: slideUp 0.5s ease 1s forwards;
}

/* ========================================
   HOME REFRESH
======================================== */

body {
    background:
        radial-gradient(circle at top left, rgba(230, 0, 18, 0.22), transparent 34rem),
        radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.08), transparent 22rem),
        linear-gradient(135deg, #080808 0%, #121212 48%, #080808 100%);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(115deg, transparent 0 42%, rgba(230, 0, 18, 0.08) 42% 43%, transparent 43% 100%),
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: auto, 72px 72px, 72px 72px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
}

body.guide-theme {
    background:
        radial-gradient(circle at top left, rgba(88, 194, 74, 0.22), transparent 34rem),
        radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.08), transparent 22rem),
        linear-gradient(135deg, #080808 0%, #121212 48%, #080808 100%);
}

body.guide-theme::before {
    background:
        linear-gradient(115deg, transparent 0 42%, rgba(88, 194, 74, 0.09) 42% 43%, transparent 43% 100%),
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: auto, 72px 72px, 72px 72px;
}

body.guide-theme .pixel-bg {
    background-image:
        radial-gradient(circle, rgba(88, 194, 74, 0.9) 1px, transparent 1px);
}

body.home-theme {
    background:
        linear-gradient(180deg, rgba(5, 5, 5, 0.28) 0%, rgba(5, 5, 5, 0.78) 72%, #080808 100%),
        radial-gradient(circle at 50% 18%, rgba(230, 0, 18, 0.08), transparent 34rem),
        url('/assets/backgrounds/home-bg-desktop.webp') center top / cover fixed no-repeat,
        #080808;
}

body.home-theme::before {
    background:
        linear-gradient(115deg, transparent 0 42%, rgba(230, 0, 18, 0.055) 42% 43%, transparent 43% 100%),
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: auto, 72px 72px, 72px 72px;
}

body.home-theme .pixel-bg {
    opacity: 0.012;
}

@media (max-width: 1100px) {
    body.home-theme {
        background:
            linear-gradient(180deg, rgba(5, 5, 5, 0.3) 0%, rgba(5, 5, 5, 0.8) 72%, #080808 100%),
            radial-gradient(circle at 50% 15%, rgba(230, 0, 18, 0.07), transparent 28rem),
            url('/assets/backgrounds/home-bg-tablet.webp') center top / cover fixed no-repeat,
            #080808;
    }
}

@media (max-width: 700px) {
    body.home-theme {
        background:
            linear-gradient(180deg, rgba(5, 5, 5, 0.22) 0%, rgba(5, 5, 5, 0.72) 58%, #080808 100%),
            url('/assets/backgrounds/home-bg-mobile.webp') center top / cover scroll no-repeat,
            #080808;
    }
}

.pixel-bg {
    opacity: 0.025;
    background-size: 42px 42px;
}

.home-page.wrapper {
    width: 100%;
    padding: 48px 20px 28px;
}

.home-header {
    width: min(100%, 980px);
    margin-bottom: 32px;
}

.main-logo {
    display: block;
    max-width: 132px;
    margin: 0 auto 20px;
    border-radius: 26px;
    image-rendering: auto;
    filter: drop-shadow(0 18px 34px rgba(230, 0, 18, 0.36));
}

.home-page h1 {
    font-size: clamp(2.5rem, 8vw, 5.4rem);
    line-height: 0.95;
    letter-spacing: 0;
    text-transform: uppercase;
    text-shadow: 0 8px 32px rgba(0, 0, 0, 0.56);
}

.home-page h1 .red {
    display: inline-block;
    color: #ff2434;
}

.home-subtitle {
    max-width: 760px;
    margin: 18px auto 0;
    color: #d7d7d7;
    font-size: 1rem;
    line-height: 1.75;
}

.console-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.console-pills span {
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: #eeeeee;
    font-size: 0.78rem;
    font-weight: 700;
}

.home-page .content {
    max-width: 1120px;
    gap: 18px;
}

.home-page .section-label {
    margin-top: 32px;
    color: #c8c8c8;
    letter-spacing: 1.8px;
}

.home-page .section-label::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 2px;
    margin-right: 10px;
    vertical-align: middle;
    background: var(--nintendo-red);
}

.home-page .hero-card,
.home-page .card,
.home-page .link-card,
.home-page .guide-main-card,
.home-page .guide-mini-card {
    clip-path: none;
    border-radius: 8px;
}

.home-page .hero-card {
    min-height: 250px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(135deg, rgba(230, 0, 18, 0.22), rgba(28, 28, 28, 0.9) 42%),
        rgba(28, 28, 28, 0.86);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
}

.home-page .hero-card:hover {
    border-color: rgba(230, 0, 18, 0.62);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42), 0 0 34px rgba(230, 0, 18, 0.16);
}

.home-page .hero-card .hero-accent {
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--nintendo-red), #ff6a6a, transparent);
}

.hero-icon-wrap {
    display: grid;
    place-items: center;
    width: 128px;
    height: 128px;
    flex: 0 0 auto;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.home-page .hero-card .hero-icon {
    width: 96px;
    height: 96px;
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: transparent;
    image-rendering: auto;
}

.home-page .hero-info {
    gap: 10px;
}

.home-page .hero-badge {
    clip-path: none;
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(230, 0, 18, 0.18);
    color: #ffb4bb;
}

.home-page .hero-info h2 {
    font-size: clamp(1.45rem, 3vw, 2.35rem);
    letter-spacing: 0;
    text-shadow: none;
}

.home-page .hero-info p {
    max-width: 580px;
    color: #dedede;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #f0f0f0;
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-meta i {
    color: #ff3a49;
}

.home-page .hero-btn,
.home-page .btn,
.home-page .guide-mini-btn {
    clip-path: none;
    border-radius: 999px;
}

.home-page .hero-btn {
    padding: 15px 30px;
    box-shadow: 0 12px 28px rgba(230, 0, 18, 0.3);
}

.home-page .grid-secondary,
.home-page .grid-links {
    gap: 18px;
}

.home-page .card,
.home-page .link-card,
.home-page .guide-main-card,
.home-page .guide-mini-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.055);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

.home-page .card {
    min-height: 215px;
    padding: 24px;
}

.home-page .card:hover,
.home-page .link-card:hover,
.home-page .guide-main-card:hover,
.home-page .guide-mini-card:hover {
    border-color: rgba(230, 0, 18, 0.58);
    background: rgba(230, 0, 18, 0.09);
}

.home-page .card-icon {
    width: 68px;
    height: 68px;
    border: 0;
    border-radius: 20px;
    padding: 0;
    background: transparent;
    image-rendering: auto;
}

.home-page .card h2,
.home-page .link-info .link-title,
.home-page .guide-main-content h3,
.home-page .guide-mini-content h3 {
    min-height: 0;
    text-shadow: none;
    letter-spacing: 0;
}

.home-page .card-desc {
    max-width: 420px;
    color: #c2c2c2;
}

.home-page .btn {
    width: auto;
    min-width: 132px;
    padding: 11px 18px;
}

.home-page .link-card {
    min-height: 118px;
    padding: 20px;
}

.home-page .link-icon-box {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.link-icon-img {
    width: 82%;
    height: 82%;
    object-fit: contain;
    border-radius: 12px;
}

.home-page .link-info .link-url,
.home-page .guide-main-content p,
.home-page .guide-mini-content p {
    color: #b8b8b8;
}

.home-page .link-arrow,
.home-page .guide-main-arrow {
    color: #ff3a49;
    font-size: 1.8rem;
    line-height: 1;
}

.home-page .guide-stack {
    gap: 12px;
}

.home-page .guide-main-card,
.home-page .guide-mini-card {
    padding: 18px;
}

.home-page .guide-main-card {
    min-height: 118px;
    display: flex;
    align-items: center;
}

.home-page .guide-main-inner {
    width: 100%;
}

.home-page .guide-main-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.home-page .guide-main-icon img {
    width: 82%;
    height: 82%;
    object-fit: contain;
    image-rendering: auto;
    border-radius: 12px;
}

.home-page .guide-mini-btn {
    border-color: rgba(230, 0, 18, 0.75);
}

/* ========================================
   LANGUAGE FLOATING SELECTOR
======================================== */

.lang-floating {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.lang-floating-toggle {
    width: 48px;
    height: 48px;
    border: 2px solid #333;
    background: var(--card-bg);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    clip-path: polygon(0 6px, 6px 6px, 6px 0,
            calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px,
            100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%,
            6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px));
}

.lang-floating-toggle:hover {
    border-color: var(--nintendo-red);
    transform: scale(1.08);
    box-shadow: 0 4px 24px var(--glow);
}

.lang-floating.open .lang-floating-toggle {
    border-color: var(--nintendo-red);
    background: rgba(230, 0, 18, 0.15);
}

.lang-floating-menu {
    position: absolute;
    bottom: 58px;
    right: 0;
    background: var(--card-bg);
    border: 2px solid #333;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 165px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.95);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    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));
}

.lang-floating.open .lang-floating-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lang-floating-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: none;
    background: none;
    color: #ccc;
    font-family: 'Oxanium', system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    width: 100%;
    text-align: left;
}

.lang-floating-option:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.lang-floating-option.active {
    background: rgba(230, 0, 18, 0.15);
    color: var(--nintendo-red);
}

.lang-floating-flag {
    font-size: 1.3rem;
    line-height: 1;
}

.lang-floating-name {
    flex: 1;
}

@media (max-width: 500px) {
    .lang-floating {
        bottom: 16px;
        right: 16px;
    }

    .lang-floating-toggle {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }

    .lang-floating-menu {
        bottom: 54px;
        min-width: 150px;
    }

    .lang-floating-option {
        padding: 9px 12px;
        font-size: 0.78rem;
    }
}

@media (max-width: 900px) {

    .grid-secondary,
    .grid-links {
        grid-template-columns: 1fr;
    }

    .hero-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
        padding: 25px 20px;
    }

    .hero-card .hero-accent {
        width: 100%;
        height: 5px;
        top: 0;
        left: 0;
    }

    .hero-info {
        align-items: center;
    }

    .hero-badge {
        align-self: center;
    }

    .hero-btn {
        width: 100%;
    }

    .guide-mini-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .guide-mini-btn {
        width: 100%;
        text-align: center;
    }
}

/* ========================================
   DESKTOP VISUAL SCALE
======================================== */

@media (min-width: 901px) {
    .home-page.wrapper {
        padding-top: 58px;
    }

    .home-header {
        width: min(100%, 1160px);
        margin-bottom: 42px;
    }

    .main-logo {
        max-width: 158px;
    }

    .home-page h1 {
        font-size: clamp(3.2rem, 7.2vw, 6.6rem);
    }

    .home-subtitle {
        max-width: 860px;
        font-size: 1.08rem;
    }

    .home-page .content {
        max-width: 1240px;
        gap: 22px;
    }

    .home-page .hero-card {
        min-height: 285px;
        padding: 36px;
        gap: 32px;
    }

    .hero-icon-wrap {
        width: 150px;
        height: 150px;
    }

    .home-page .hero-card .hero-icon {
        width: 116px;
        height: 116px;
    }

    .home-page .hero-info h2 {
        font-size: clamp(1.8rem, 3vw, 2.7rem);
    }

    .home-page .hero-info p {
        font-size: 0.98rem;
    }

    .home-page .hero-btn {
        padding: 16px 34px;
        font-size: 0.9rem;
    }

    .home-page .card {
        min-height: 245px;
        padding: 30px;
    }

    .home-page .card-icon {
        width: 78px;
        height: 78px;
    }

    .home-page .link-card {
        min-height: 132px;
        padding: 24px;
    }

    .home-page .guide-main-card {
        min-height: 132px;
        padding: 24px;
    }

    .home-page .link-icon-box,
    .home-page .guide-main-icon {
        width: 64px;
        height: 64px;
    }
}
