.snake-banner-wide {
    max-width: 1200px;
    width: 96vw;
    margin: 0 auto 2.5rem auto;
    border-radius: 32px;
    background: linear-gradient(120deg, #101624 60%, #1a2236 100%);
    box-shadow: 0 8px 32px 0 rgba(88,166,255,0.10);
    padding-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.snake-header-center {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    width: 100%;
}
.snake-back-btn {
    margin-top: 1.2rem;
    margin-bottom: 0.2rem;
    align-self: center;
    font-size: 1.18rem;
    font-weight: 700;
    padding: 0.7rem 2.2rem;
    border-radius: 18px;
    background: linear-gradient(90deg, #58a6ff 60%, #79c0ff 100%);
    color: #101624;
    box-shadow: 0 2px 12px #58a6ff33;
    border: none;
    display: inline-block;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}
.snake-back-btn:hover, .snake-back-btn.active {
    background: linear-gradient(90deg, #79c0ff 60%, #58a6ff 100%);
    color: #181e2a;
    box-shadow: 0 4px 24px #58a6ff33;
}
/* --- Game Hub PC Header & Copyright Styles --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #0a0e16 0%, #0d1117 30%, #161b22 100%);
    color: #e6edf3;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-x: hidden;
    position: relative;
}

#background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(ellipse at center, rgba(88, 166, 255, 0.1) 0%, transparent 70%),
                linear-gradient(135deg, #0a0e16 0%, #0d1117 30%, #161b22 70%, #21262d 100%);
}

header {
    padding: 0;
    text-align: center;
    background: rgba(10, 14, 22, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, transparent, #58a6ff, #79c0ff, #a5a8ff, #58a6ff, transparent) 1;
    margin-bottom: 3rem;
    box-shadow: 0 8px 32px rgba(88, 166, 255, 0.2);
    position: relative;
    overflow: hidden;
    min-height: 200px;
    border-radius: 0 0 32px 32px;
}

.header-content-smooth {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.7rem;
    justify-content: center;
}
.header-content-smooth .back-btn {
    margin-left: 0;
    margin-top: 1.1rem;
    align-self: center;
}

.logo-smooth {
    height: 54px;
    width: 54px;
    border-radius: 50%;
    box-shadow: 0 2px 16px #58a6ff33;
    background: #181e2a;
    padding: 7px;
    margin-bottom: 0.1rem;
}

.header-title-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.site-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #58a6ff;
    letter-spacing: 0.03em;
    line-height: 1.1;
    margin-bottom: 0.1rem;
    text-shadow: 0 2px 12px #101624cc;
}

.site-subtitle {
    color: #a5a8ff;
    font-size: 1.01rem;
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.01em;
    opacity: 0.92;
    text-shadow: 0 1px 8px #101624cc;
}

.back-btn {
    background: linear-gradient(90deg, #58a6ff 60%, #79c0ff 100%);
    color: #101624;
    font-weight: 600;
    font-size: 1.13rem;
    text-decoration: none;
    padding: 0.4rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px #10162433;
    outline: none;
    cursor: pointer;
    border: none;
    margin-left: 2.2rem;
    margin-bottom: 0.2rem;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.back-btn:hover, .back-btn.active {
    background: linear-gradient(90deg, #79c0ff 60%, #58a6ff 100%);
    color: #181e2a;
    box-shadow: 0 4px 24px #58a6ff33;
}

.copyright-footer-box {
    width: 100vw;
    max-width: 100vw;
    margin: 0 auto 0 auto;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}
.copyright-bar {
    width: 100%;
    text-align: center;
    color: #7a8599;
    font-size: 0.97rem;
    padding: 1.1rem 0 1.2rem 0;
    background: none;
    letter-spacing: 0.03em;
    user-select: none;
    margin: 0 auto 0 auto;
    border: none;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}
body {
    background: linear-gradient(135deg, #0a0e16 0%, #161b22 100%);
    color: #e6edf3;
    font-family: 'Segoe UI', Arial, sans-serif;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.snake-header {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}
.logo-smooth {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    background: #181e2a;
    padding: 7px;
    box-shadow: 0 2px 16px #58a6ff33;
}
.site-title {
    font-size: 2rem;
    font-weight: 800;
    color: #58a6ff;
    margin: 0 1.2rem 0 0;
    text-shadow: 0 2px 12px #101624cc;
}
.back-btn {
    background: #58a6ff;
    color: #181e2a;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    font-weight: 600;
    margin-left: auto;
    transition: background 0.2s;
}
.back-btn:hover {
    background: #79c0ff;
}
.snake-flex-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 2.5rem;
    margin: 2.5rem auto 0 auto;
    max-width: 1000px;
}
.snake-game-container {
    background: #181e2a;
    border-radius: 22px;
    box-shadow: 0 4px 32px 0 rgba(40,60,120,0.13);
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 440px;
}

.snake-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 260px;
    max-width: 320px;
}
.snake-info-box, .snake-controls-box, .snake-settings-box {
    background: rgba(8, 12, 20, 0.92);
    border: 1px solid #2d3748;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.13), 0 4px 32px 0 rgba(40,60,120,0.13);
    padding: 1.5rem 2.2rem;
    color: #a5a8ff;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.5rem;
    transition: box-shadow 0.3s, border 0.3s;
}
.snake-info-box:hover, .snake-controls-box:hover, .snake-settings-box:hover {
    border-color: #58a6ff;
    box-shadow: 0 15px 30px rgba(88, 166, 255, 0.15), 0 8px 16px rgba(88, 166, 255, 0.1), 0 4px 32px 0 rgba(40,60,120,0.13);
}
.snake-info-box {
    margin-bottom: 0.5rem;
}
.snake-score-box {
    background: rgba(22, 27, 44, 0.98);
    border: 1.5px solid #58a6ff;
    border-radius: 14px;
    box-shadow: 0 2px 8px #58a6ff44;
    color: #a5a8ff;
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
    padding: 0.5rem 1.2rem;
    min-width: 120px;
    text-align: center;
    font-weight: 500;
}
.snake-score-box span {
    color: #ffd700;
    font-weight: 700;
    font-size: 1.15em;
}
.snake-info-box button {
    background: linear-gradient(135deg, #58a6ff, #79c0ff);
    color: #181e2a;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    border-radius: 18px;
    padding: 0.7rem 2.2rem;
    box-shadow: 0 2px 12px #58a6ff44;
    cursor: pointer;
    margin-top: 1.2rem;
    margin-bottom: 0.2rem;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.snake-info-box button:hover {
    background: linear-gradient(135deg, #79c0ff, #58a6ff);
    color: #101624;
    box-shadow: 0 4px 16px #58a6ff55;
}
.snake-controls-box h2, .snake-settings-box h2 {
    color: #58a6ff;
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}
.snake-controls-box ul {
    padding-left: 1.2rem;
    margin: 0.7rem 0 0 0;
}
.snake-settings-box select {
    background: #101624;
    color: #58a6ff;
    border: 2px solid #58a6ff;
    border-radius: 12px;
    font-size: 1.1rem;
    padding: 0.4rem 1.2rem;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px #58a6ff22;
    outline: none;
    transition: border 0.2s;
}
.snake-settings-box select:focus {
    border-color: #79c0ff;
}
#snake-canvas {
    background: #222b3a;
    border-radius: 8px;
    box-shadow: 0 2px 16px #58a6ff33;
    margin-bottom: 1.5rem;
    display: block;
}
.snake-info {
    color: #a5a8ff;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    text-align: left;
    background: rgba(8, 12, 20, 0.92);
    border: 1.5px solid #2d3748;
    border-radius: 22px;
    box-shadow: 0 4px 32px 0 rgba(40,60,120,0.13);
    padding: 1.2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.snake-info div {
    background: rgba(22, 27, 34, 0.92);
    border: 1px solid #30363d;
    border-radius: 14px;
    box-shadow: 0 2px 8px #58a6ff22;
    color: #a5a8ff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem 1.2rem;
    min-width: 120px;
    text-align: center;
    font-weight: 500;
}
.snake-info div span {
    color: #ffd700;
    font-weight: 700;
    font-size: 1.15em;
}
#start-btn {
    background: linear-gradient(135deg, #238636, #2ea043);
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    border-radius: 18px;
    padding: 0.7rem 2.2rem;
    box-shadow: 0 2px 12px #58a6ff44;
    cursor: pointer;
    margin-top: 1.2rem;
    margin-bottom: 0.2rem;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
#start-btn:hover {
    background: linear-gradient(135deg, #2ea043, #238636);
    color: #e6edf3;
    box-shadow: 0 4px 16px #2ea04355;
}
.snake-controls {
    background: rgba(8, 12, 20, 0.92);
    border: 1.5px solid #2d3748;
    border-radius: 22px;
    box-shadow: 0 4px 32px 0 rgba(40,60,120,0.13);
    padding: 1.2rem 2rem;
    min-width: 220px;
    max-width: 260px;
    color: #a5a8ff;
}
.snake-controls h2 {
    color: #58a6ff;
    font-size: 1.2rem;
    margin-top: 0;
}
.snake-controls ul {
    padding-left: 1.2rem;
    margin: 0.7rem 0 0 0;
}
.snake-footer {
    background: #181e2a;
    color: #a5a8ff;
    text-align: center;
    padding: 1.2rem 0 1.2rem 0;
    margin-top: 3rem;
    font-size: 1rem;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 -2px 16px #58a6ff22;
}
