* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Unbounded', sans-serif;
    background: linear-gradient(180deg, #000000 0%, #000000 50%, #0054FA 100%);
    background-attachment: fixed;
    min-height: 100vh;
    min-height: 100dvh;
    color: #ffffff;
    overflow-x: hidden;
}

.game-screen {
    position: relative;
    height: 100vh;
    height: 100dvh;
    overflow: visible;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background-color: #0E1350;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
}

.logo-link {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 36px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.dropdown {
    position: relative;
}

.dropdown-button {
    background: transparent;
    border: none;
    color: #29FBCD;
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    padding: 8px 16px;
    transition: opacity 0.2s ease;
}

.dropdown-button:hover {
    opacity: 0.8;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #0E1350;
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    overflow: visible;
    padding-top: 4px;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 14px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: #29FBCD;
    text-decoration: none;
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    font-weight: 400;
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(41, 251, 205, 0.1);
}

.dropdown-item.active {
    background: rgba(41, 251, 205, 0.15);
}

.nav-link {
    color: #29FBCD;
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    padding: 8px 16px;
    transition: opacity 0.2s ease;
}

.nav-link:hover {
    opacity: 0.8;
}

/* Title row with hamburger */
.title-row {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Hamburger button - hidden on desktop, shown on mobile */
.hamburger-button {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #29FBCD;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Side menu overlay */
.side-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1500;
}

.side-menu-overlay.open {
    display: block;
}

/* Side menu */
.side-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: #0E1350;
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 24px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
}

.side-menu.open {
    right: 0;
}

.side-menu-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    line-height: 1;
}

.side-menu-close:hover {
    opacity: 1;
}

.side-menu-logo {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
    margin-top: 8px;
}

.side-menu-logo .site-logo {
    height: 32px;
}

.side-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.side-menu-link {
    color: #29FBCD;
    font-family: 'Unbounded', sans-serif;
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.side-menu-link:hover,
.side-menu-link.active {
    background: rgba(41, 251, 205, 0.1);
}

.side-menu-store {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 24px;
    border-top: 1px solid rgba(41, 251, 205, 0.2);
}

.side-menu-store-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    margin-bottom: 4px;
}

.side-menu-badge {
    width: 130px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.side-menu-badge:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .site-header {
        display: none;
    }

    .hamburger-button {
        display: flex;
    }
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
    padding-top: 72px;
}

header {
    text-align: center;
    padding: 12px 0;
}

.title {
    font-size: 2rem;
    font-weight: 900;
    color: #FFEA00;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(255, 234, 0, 0.3);
}

.daily-info {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.daily-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #24D6FE;
}

.date-display {
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
}

.game-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    overflow: visible;
    position: relative;
    touch-action: none;
}

@media (max-width: 768px) {
    .container {
        padding-top: 8px;
    }

    header {
        padding: 4px 0;
    }
}

.pieces-top,
.pieces-bottom {
    display: none;
}

.board-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#gameBoard {
    border-radius: 8px;
    touch-action: none;
}

.piece {
    position: absolute;
    cursor: grab;
    touch-action: none;
    -webkit-touch-callout: none;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    z-index: 10;
}

.piece:hover {
    transform: scale(1.05);
}

.piece.dragging {
    cursor: grabbing;
    z-index: 1000;
}

.piece.locked {
    cursor: not-allowed;
    opacity: 0.9;
}

.piece-cell {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    font-weight: 700;
    color: #000000;
    background: #ffffff;
    user-select: none;
    transition: background 0.15s ease;
}

.piece.dragging .piece-cell {
    background: #59F4FF;
}

.piece-cell.locked {
    background: #95A2BC;
}

.piece-cell.conflict {
    background: #ED5454;
}

.status-bar {
    text-align: center;
    padding: 8px;
    min-height: 24px;
}

.status-message {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 300;
}

.undo-redo-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.action-button {
    background: transparent;
    border: 2px solid #FFFFFF;
    border-radius: 8px;
    padding: 8px 16px;
    color: #FFFFFF;
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 1.0;
}

.action-button:hover:not(:disabled) {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

.action-button:active:not(:disabled) {
    transform: translateY(0);
}

.action-button:disabled {
    cursor: not-allowed;
}

.action-button:disabled:hover {
    opacity: 0.3;
}

.store-buttons {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 5;
    pointer-events: auto;
}

.store-badge {
    height: auto;
    width: 120px;
    max-width: 120px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.9;
}

.store-badge:hover {
    transform: scale(1.05);
    opacity: 1;
}

@media (max-width: 768px) {
    .store-buttons {
        bottom: 10px;
        left: 10px;
    }
    
    .store-badge {
        width: 100px;
        max-width: 100px;
    }
}

/* ── Ranking button (fixed, above help button) ── */
.ranking-button {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: transparent;
    border: 3px solid #FFD700;
    color: #FFD700;
    cursor: pointer;
    z-index: 5;
    transition: transform 0.2s ease, background 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.ranking-button:hover {
    transform: scale(1.1);
    background: rgba(255, 215, 0, 0.1);
}

.ranking-button svg {
    width: 22px;
    height: 22px;
}

/* ── Ranking panel (slide-in from right) ── */
.ranking-panel-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1500;
}
.ranking-panel-overlay.open { display: block; }

.ranking-panel {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100%;
    background: linear-gradient(180deg, #1E1E1E 0%, #2D2D2D 100%);
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}
.ranking-panel.open { right: 0; }

.ranking-panel-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    line-height: 1;
}
.ranking-panel-close:hover { opacity: 1; }

.ranking-panel-title {
    font-size: 1.2rem;
    font-weight: 900;
    color: #FFD700;
    margin-bottom: 4px;
    padding-right: 32px;
}

.ranking-panel-date {
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
}

.ranking-panel-table-wrap {
    flex: 1;
    overflow-y: auto;
    border: 1px solid rgba(36, 214, 254, 0.2);
    border-radius: 10px;
}

.ranking-panel .leaderboard-table {
    width: 100%;
    font-size: 0.85rem;
}

.ranking-panel .lb-rank,
.ranking-panel .lb-name,
.ranking-panel .lb-time {
    padding: 8px 6px;
}

.ranking-panel-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    padding: 32px 16px;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .ranking-button {
        bottom: 60px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    .ranking-button svg {
        width: 18px;
        height: 18px;
    }
    .ranking-panel {
        width: 290px;
        right: -290px;
    }
}

.help-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: transparent;
    border: 3px solid #FFFFFF;
    color: #FFFFFF;
    font-family: 'Unbounded', sans-serif;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    z-index: 5;
    transition: transform 0.2s ease, background 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.help-button:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .help-button {
        bottom: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

.help-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.help-overlay.show {
    display: flex;
}

.help-content {
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    margin: 20px;
    background: linear-gradient(135deg, #1E1E1E 0%, #2D2D2D 100%);
    border-radius: 16px;
    border: 2px solid #24D6FE;
    box-shadow: 0 0 40px rgba(36, 214, 254, 0.3);
    position: relative;
}

.help-content h2 {
    font-size: 1.5rem;
    color: #FFD700;
    margin-bottom: 12px;
    margin-top: 20px;
}

.help-content h2:first-of-type {
    margin-top: 0;
}

.help-content p {
    color: #FFFFFF;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.help-content ul {
    color: #FFFFFF;
    font-size: 14px;
    line-height: 1.8;
    padding-left: 20px;
    margin-bottom: 16px;
}

.help-content li {
    margin-bottom: 8px;
}

.help-content strong {
    color: #24D6FE;
}

.help-footer {
    text-align: center;
    color: #24D6FE !important;
    font-weight: 500;
    margin-top: 20px;
    margin-bottom: 0 !important;
}

.help-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #FFFFFF;
    font-size: 28px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.help-close:hover {
    opacity: 1;
}

.win-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.win-overlay.show {
    display: flex;
}

.win-content {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #1E1E1E 0%, #2D2D2D 100%);
    border-radius: 16px;
    border: 2px solid #24D6FE;
    box-shadow: 0 0 40px rgba(36, 214, 254, 0.3);
}

.win-content h2 {
    font-size: 2rem;
    font-weight: 900;
    color: #39FF1B;
    margin-bottom: 16px;
}

.win-content p {
    font-size: 1rem;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 8px;
}

.next-puzzle-info {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 16px;
    margin-bottom: 24px;
}

.play-again-button {
    background: transparent;
    border: 2px solid #24D6FE;
    border-radius: 8px;
    padding: 12px 24px;
    color: #24D6FE;
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.play-again-button:hover {
    transform: translateY(-2px);
    background: rgba(36, 214, 254, 0.1);
}

.play-again-button:active {
    transform: translateY(0);
}

.win-store-buttons {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(36, 214, 254, 0.3);
}

.download-text {
    font-size: 0.9rem;
    color: #24D6FE;
    margin-bottom: 16px;
    font-weight: 500;
}

.win-store-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.win-store-badge {
    width: 140px;
    height: auto;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.9;
}

.win-store-badge:hover {
    transform: scale(1.05);
    opacity: 1;
}

/* Timer display */
.timer-display {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.6rem;
    font-weight: 500;
    color: #FFFFFF;
    text-align: center;
    margin-top: 4px;
    letter-spacing: 2px;
}

/* Win overlay time */
.win-time {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: #FFEA00 !important;
    margin-bottom: 20px !important;
    letter-spacing: 1px;
}

/* Score submission section in win overlay */
.score-submit-section {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid rgba(36, 214, 254, 0.3);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
}

.submit-label {
    font-size: 0.85rem !important;
    color: #24D6FE !important;
    margin-bottom: 12px !important;
    font-weight: 400 !important;
}

.name-input-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.player-name-input {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    width: 140px;
    padding: 10px 12px;
    border: 2px solid #24D6FE;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: #FFFFFF;
    outline: none;
    letter-spacing: 2px;
    transition: border-color 0.2s ease;
}

.player-name-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 3px;
}

.player-name-input:focus {
    border-color: #FFEA00;
}

.submit-score-button {
    font-family: 'Unbounded', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid #39FF1B;
    border-radius: 8px;
    background: rgba(57, 255, 27, 0.15);
    color: #39FF1B;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.submit-score-button:hover {
    transform: translateY(-2px);
    background: rgba(57, 255, 27, 0.25);
}

.submit-score-button:active {
    transform: translateY(0);
}

.submit-score-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.submit-hint {
    font-size: 0.7rem !important;
    color: rgba(255, 255, 255, 0.4) !important;
    margin-top: 8px !important;
    margin-bottom: 0 !important;
}

.submit-status {
    font-size: 0.85rem !important;
    margin-top: 12px !important;
    margin-bottom: 0 !important;
    font-weight: 500 !important;
    min-height: 1.2em;
}

.submit-status.success {
    color: #39FF1B !important;
}

.submit-status.error {
    color: #ED5454 !important;
}

/* Already submitted message */
.score-already-submitted {
    margin: 20px 0;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
}

.already-submitted-text {
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
    margin-bottom: 0 !important;
}

/* Win buttons row */
.win-buttons-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.view-ranking-button {
    background: transparent;
    border: 2px solid #FFEA00;
    border-radius: 8px;
    padding: 12px 24px;
    color: #FFEA00;
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.view-ranking-button:hover {
    transform: translateY(-2px);
    background: rgba(255, 234, 0, 0.1);
}

.view-ranking-button:active {
    transform: translateY(0);
}

/* Leaderboard section */
.leaderboard-section {
    background: linear-gradient(180deg, #000000 0%, #0a0a2e 100%);
    padding: 40px 20px 60px;
}

.leaderboard-inner {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.leaderboard-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #FFEA00;
    margin-bottom: 4px;
}

.leaderboard-date {
    font-family: 'Unbounded', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 24px;
}

.leaderboard-table-wrap {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(36, 214, 254, 0.3);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Unbounded', sans-serif;
}

.leaderboard-table thead {
    background: rgba(36, 214, 254, 0.15);
}

.leaderboard-table th {
    padding: 12px 16px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #24D6FE;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.leaderboard-table td {
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 400;
    color: #FFFFFF;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.leaderboard-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

.leaderboard-table tbody tr:hover {
    background: rgba(36, 214, 254, 0.08);
}

.leaderboard-table tbody tr.lb-highlight {
    background: rgba(255, 234, 0, 0.12);
}

.leaderboard-table tbody tr.lb-highlight td {
    color: #FFEA00;
    font-weight: 600;
}

.lb-rank {
    width: 50px;
    text-align: center;
}

.lb-name {
    text-align: left;
}

.lb-time {
    width: 90px;
    text-align: right;
}

.leaderboard-table td.lb-rank {
    text-align: center;
    font-weight: 600;
    color: #24D6FE;
}

.leaderboard-table td.lb-name {
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.leaderboard-table td.lb-time {
    text-align: right;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}

.lb-empty {
    text-align: center !important;
    color: rgba(255, 255, 255, 0.4) !important;
    padding: 24px !important;
    font-size: 0.85rem !important;
}

.leaderboard-empty-msg {
    font-family: 'Unbounded', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 20px;
}

/* Top 3 styling */
.leaderboard-table tbody tr:nth-child(1) td.lb-rank { color: #FFD700; }
.leaderboard-table tbody tr:nth-child(2) td.lb-rank { color: #C0C0C0; }
.leaderboard-table tbody tr:nth-child(3) td.lb-rank { color: #CD7F32; }

@media (max-width: 768px) {
    .leaderboard-section {
        padding: 30px 16px 40px;
    }

    .leaderboard-title {
        font-size: 1.15rem;
    }

    .leaderboard-table th {
        padding: 10px 12px;
        font-size: 0.7rem;
    }

    .leaderboard-table td {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .win-content {
        padding: 24px 20px;
        margin: 16px;
    }

    .win-time {
        font-size: 1.4rem !important;
    }

    .player-name-input {
        width: 110px;
        font-size: 0.95rem;
        padding: 8px 10px;
    }

    .submit-score-button {
        font-size: 0.75rem;
        padding: 8px 14px;
    }
}

/* Responsive adjustments */
@media (max-width: 400px) {
    .title {
        font-size: 1.5rem;
    }
    
    .pieces-top,
    .pieces-bottom {
        min-height: 60px;
        gap: 8px;
    }
}

@media (min-height: 800px) {
    .pieces-top,
    .pieces-bottom {
        min-height: 100px;
    }
}

/* Landscape mode */
@media (orientation: landscape) and (max-height: 500px) {
    .container {
        padding: 8px;
    }
    
    header {
        padding: 4px 0;
    }
    
    .title {
        font-size: 1.2rem;
    }
    
    .daily-info {
        flex-direction: row;
        gap: 12px;
        margin-top: 4px;
    }
    
    .pieces-top,
    .pieces-bottom {
        min-height: 50px;
    }
}

/* SEO Content Section */
.seo-content {
    background: transparent;
    padding: 60px 20px 80px;
    position: relative;
}

.seo-inner {
    max-width: 720px;
    margin: 0 auto;
}

.seo-content h2 {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #FFEA00;
    margin-bottom: 16px;
    margin-top: 48px;
}

.seo-content h2:first-child {
    margin-top: 0;
}

.seo-content p {
    font-family: 'Unbounded', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
}

.faq-item {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
}

.faq-item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item h3 {
    font-family: 'Unbounded', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #24D6FE;
    margin-bottom: 10px;
}

.faq-item p {
    font-family: 'Unbounded', sans-serif;
    font-size: 0.82rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .seo-content {
        padding: 40px 16px 60px;
    }

    .seo-content h2 {
        font-size: 1.15rem;
        margin-top: 36px;
    }

    .seo-content p {
        font-size: 0.8rem;
    }

    .faq-item h3 {
        font-size: 0.9rem;
    }

    .faq-item p {
        font-size: 0.78rem;
    }
}

/* Related Articles section */
.blog-section {
    max-width: 720px;
    margin: 48px auto 0;
    padding: 0 20px;
}
.blog-section h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #29FBCD;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Unbounded', sans-serif;
}
.blog-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.blog-link-card {
    display: block;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}
.blog-link-card:hover {
    border-color: rgba(41, 251, 205, 0.3);
    background: rgba(41, 251, 205, 0.05);
}
.blog-link-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #29FBCD;
    margin-bottom: 4px;
    font-family: 'Unbounded', sans-serif;
}
.blog-link-excerpt {
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
    font-family: 'Unbounded', sans-serif;
}
