/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
    background-attachment: fixed;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(139, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(75, 0, 130, 0.1) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><defs><filter id="noise"><feTurbulence baseFrequency="0.9" numOctaves="1" result="noise"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"/></filter></defs><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.05"/></svg>');
    pointer-events: none;
    z-index: -1;
}

/* Navigation */
.navbar {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #8b0000;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff6b6b;
    text-shadow: 2px 2px 4px rgba(139, 0, 0, 0.5);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ff6b6b;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.nav-link:hover::before {
    width: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="fog" cx="50%" cy="50%"><stop offset="0%" style="stop-color:%23333;stop-opacity:0.8"/><stop offset="100%" style="stop-color:%23000;stop-opacity:1"/></radialGradient></defs><rect width="100%" height="100%" fill="url(%23fog)"/></svg>');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 2rem;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-left {
    text-align: left;
    animation: fadeInUp 1s ease-out;
}

.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-image {
    width: 100%;
    max-width: 500px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    border: 2px solid #8b0000;
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.05);
}

.hero-left h1 {
    font-size: 4rem;
    font-weight: bold;
    color: #ff6b6b;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    line-height: 1.2;
}

.hero-left p {
    font-size: 1.5rem;
    color: #cccccc;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.6;
}

.hero-button {
    display: inline-block;
    background: linear-gradient(145deg, #8b0000, #ff6b6b);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid #8b0000;
    box-shadow: 0 10px 20px rgba(139, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-button:hover {
    background: linear-gradient(145deg, #ff6b6b, #8b0000);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.4);
    color: white;
}

/* Walkthrough Hero Section */
.walkthrough-hero-section {
    min-height: 100vh;
    padding: 6rem 2rem;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="darkfog" cx="50%" cy="50%"><stop offset="0%" style="stop-color:%23222;stop-opacity:0.9"/><stop offset="100%" style="stop-color:%23000;stop-opacity:1"/></radialGradient></defs><rect width="100%" height="100%" fill="url(%23darkfog)"/></svg>');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    border-top: 1px solid #444;
    border-bottom: 1px solid #444;
}

.walkthrough-hero-content {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 1s ease-out;
}

.walkthrough-hero-content h2 {
    font-size: 4rem;
    color: #ff6b6b;
    margin-bottom: 2rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
    position: relative;
}

.walkthrough-hero-content h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #8b0000, #ff6b6b, #8b0000, transparent);
    border-radius: 2px;
}

.walkthrough-hero-content p {
    font-size: 1.8rem;
    color: #cccccc;
    line-height: 1.8;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    max-width: 900px;
    margin: 0 auto;
    font-weight: 300;
}

.walkthrough-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.walkthrough-card {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 15px;
    padding: 2rem;
    border: 2px solid #444;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.walkthrough-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(139, 0, 0, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.walkthrough-card:hover {
    transform: translateY(-10px);
    border-color: #8b0000;
    box-shadow: 
        0 25px 50px rgba(139, 0, 0, 0.3),
        0 0 30px rgba(255, 107, 107, 0.2);
}

.walkthrough-card:hover::before {
    opacity: 1;
}

.walkthrough-card h3 {
    font-size: 1.8rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
}

.walkthrough-card p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

.walkthrough-button {
    display: inline-block;
    background: linear-gradient(145deg, #8b0000, #ff6b6b);
    color: white;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 25px;
    border: 2px solid #8b0000;
    box-shadow: 0 8px 16px rgba(139, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
}

.walkthrough-button:hover {
    background: linear-gradient(145deg, #ff6b6b, #8b0000);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 107, 107, 0.4);
    color: white;
}

/* Puzzle Cards Section */
.puzzle-cards-section {
    padding: 6rem 2rem;
    background: rgba(0, 0, 0, 0.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.puzzle-cards-section h2 {
    text-align: center;
    font-size: 3rem;
    color: #ff6b6b;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.section-description {
    text-align: center;
    font-size: 1.6rem;
    color: #cccccc;
    line-height: 1.8;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    max-width: 900px;
    margin: 0 auto 3rem auto;
    font-weight: 300;
}

.puzzle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.puzzle-card {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #444;
}

.puzzle-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(139, 0, 0, 0.3),
        0 0 20px rgba(255, 107, 107, 0.2);
    border-color: #8b0000;
}

.card-image {
    height: 200px;
    background: linear-gradient(45deg, #333, #555);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.puzzle-card:hover .card-image img {
    transform: scale(1.1);
}

.card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(139, 0, 0, 0.3));
    z-index: 1;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.5rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.card-content p {
    color: #cccccc;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.card-link {
    color: #ff6b6b;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.card-link:hover {
    text-decoration: underline;
}

.puzzle-card:hover .card-link {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.8);
}

/* Puzzle Details Modal */
.puzzle-details {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.puzzle-details.hidden {
    display: none;
}

.puzzle-content {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 15px;
    padding: 2rem;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 2px solid #8b0000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #8b0000;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: #ff6b6b;
    transform: scale(1.1);
}

.puzzle-content h2 {
    color: #ff6b6b;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.puzzle-content h3 {
    color: #ffaa44;
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.difficulty-section, .locker-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid #8b0000;
}

.puzzle-step {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.puzzle-step img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.tips-section {
    background: rgba(139, 0, 0, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid #8b0000;
}

.tips-section ul {
    margin-left: 1.5rem;
}

.tips-section li {
    margin: 0.5rem 0;
    color: #cccccc;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 2rem;
    text-align: center;
    border-top: 2px solid #8b0000;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff6b6b;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-left {
        text-align: center;
        order: 2;
    }
    
    .hero-right {
        order: 1;
    }
    
    .hero-left h1 {
        font-size: 2.5rem;
    }
    
    .hero-left p {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-button {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
    
    .walkthrough-hero-section {
        padding: 4rem 1rem;
        min-height: auto;
    }
    
    .walkthrough-hero-content {
        margin-bottom: 3rem;
    }
    
    .walkthrough-hero-content h2 {
        font-size: 2.5rem;
    }
    
    .walkthrough-hero-content p {
        font-size: 1.3rem;
    }
    
    .walkthrough-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .walkthrough-card {
        padding: 1.5rem;
    }
    
    .walkthrough-card h3 {
        font-size: 1.5rem;
    }
    
    .puzzle-cards-section {
        padding: 4rem 1rem;
    }
    
    .puzzle-cards-section h2 {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1.3rem;
        margin-bottom: 2rem;
    }
    
    .puzzle-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .puzzle-details {
        padding: 1rem;
    }
    
    .puzzle-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .puzzle-content h2 {
        font-size: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        gap: 1.5rem;
    }
    
    .hero-left h1 {
        font-size: 2rem;
    }
    
    .hero-left p {
        font-size: 1rem;
    }
    
    .hero-button {
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
    }
    
    .walkthrough-hero-section {
        padding: 3rem 1rem;
    }
    
    .walkthrough-hero-content {
        margin-bottom: 2rem;
    }
    
    .walkthrough-hero-content h2 {
        font-size: 2rem;
    }
    
    .walkthrough-hero-content p {
        font-size: 1.1rem;
    }
    
    .walkthrough-cards {
        gap: 1rem;
    }
    
    .walkthrough-card {
        padding: 1.2rem;
    }
    
    .walkthrough-card h3 {
        font-size: 1.3rem;
    }
    
    .walkthrough-button {
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
    }
    
    .section-description {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .puzzle-content {
        padding: 1rem;
    }
    
    .nav-logo {
        font-size: 1.5rem;
    }
}

/* Loading and Performance */
.puzzle-step img[loading="lazy"] {
    transition: opacity 0.3s ease;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Guide Page Styles */
.guide-page {
    padding-top: 120px;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
}

.guide-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    border: 1px solid #444;
}

.guide-header {
    margin-bottom: 2rem;
}

.guide-hero-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    border: 2px solid #8b0000;
}

.guide-content h1 {
    font-size: 3rem;
    color: #ff6b6b;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.guide-intro {
    font-size: 1.3rem;
    color: #cccccc;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(139, 0, 0, 0.1);
    border-radius: 10px;
    border-left: 4px solid #8b0000;
}

.guide-section {
    margin-bottom: 2.5rem;
}

.guide-section h2 {
    font-size: 2rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    border-bottom: 2px solid #444;
    padding-bottom: 0.5rem;
}

.guide-section p {
    color: #cccccc;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.guide-section ul,
.guide-section ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.guide-section li {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.guide-section li strong {
    color: #ff6b6b;
}

.guide-note {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid #8b0000;
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
    color: #cccccc;
}

.guide-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.guide-table th {
    background: linear-gradient(145deg, #8b0000, #ff6b6b);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.guide-table td {
    padding: 1rem;
    border-bottom: 1px solid #444;
    color: #cccccc;
    vertical-align: top;
}

.guide-table tr:last-child td {
    border-bottom: none;
}

.guide-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.guide-table tr:hover {
    background: rgba(139, 0, 0, 0.1);
}

.guide-grid {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.guide-grid.columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

.guide-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid #444;
    transition: border-color 0.3s ease;
}

.guide-grid img:hover {
    border-color: #8b0000;
}

.list-with-icons {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.list-with-icons li {
    display: flex;
    align-items: center;
    margin: 0.8rem 0;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #8b0000;
}

.list-with-icons img {
    width: 24px;
    height: 24px;
    margin-right: 0.8rem;
    border-radius: 4px;
}

.guide-divider {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8b0000, #ff6b6b, #8b0000, transparent);
    margin: 2rem 0;
}

.guide-sources {
    text-align: center;
    margin-bottom: 2rem;
}

.guide-sources small {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.4;
}

.guide-navigation {
    text-align: center;
    margin-top: 2rem;
}

.back-button {
    display: inline-block;
    background: linear-gradient(145deg, #8b0000, #ff6b6b);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 25px;
    border: 2px solid #8b0000;
    box-shadow: 0 10px 20px rgba(139, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.back-button:hover {
    background: linear-gradient(145deg, #ff6b6b, #8b0000);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.4);
    color: white;
}

/* Guide Page Responsive */
@media (max-width: 768px) {
    .guide-page {
        padding-top: 100px;
    }
    
    .guide-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .guide-content h1 {
        font-size: 2.2rem;
    }
    
    .guide-intro {
        font-size: 1.1rem;
        padding: 1rem;
    }
    
    .guide-section h2 {
        font-size: 1.6rem;
    }
    
    .guide-section p,
    .guide-section li {
        font-size: 1rem;
    }
    
    .guide-table {
        font-size: 0.9rem;
    }
    
    .guide-table th,
    .guide-table td {
        padding: 0.8rem;
    }
    
    .guide-grid.columns-6 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .list-with-icons li {
        padding: 0.4rem;
    }
}

@media (max-width: 480px) {
    .guide-content h1 {
        font-size: 1.8rem;
    }
    
    .guide-section h2 {
        font-size: 1.4rem;
    }
    
    .back-button {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
    
    .guide-table {
        font-size: 0.8rem;
    }
    
    .guide-table th,
    .guide-table td {
        padding: 0.6rem;
    }
    
    .guide-grid.columns-6 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .list-with-icons li {
        padding: 0.3rem;
        font-size: 0.9rem;
    }
    
    .list-with-icons img {
        width: 20px;
        height: 20px;
        margin-right: 0.6rem;
    }
}

/* Focus styles for keyboard navigation */
.nav-link:focus,
.puzzle-card:focus,
.close-btn:focus,
.back-button:focus {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    body {
        background: #000;
        color: #fff;
    }
    
    .puzzle-card {
        border: 2px solid #fff;
    }
}

/* 仅为保证 <a class="puzzle-card"> 外观与原来一致 */
a.puzzle-card {
    display: block;               /* 链接当作块级卡片 */
    text-decoration: none;        /* 去掉默认下划线 */
    color: inherit;               /* 继承颜色 */
}