/* ══ PAGE: arcade ══ */
body {
    --nav-accent: #ff2e9c;
    --nav-brand: #ff2e9c;
    --nav-glow: rgba(255,46,156,0.4);
    --nav-brand-glow: rgba(255,46,156,0.7);
    background: #0a0612;
}

.breadcrumb {
    font-family: 'Press Start 2P', monospace;
    font-size: 7px;
    color: #8a7fa8;
    letter-spacing: 0.1em;
    margin-top: -8px;
    margin-bottom: 16px;
    align-self: flex-start;
}
.breadcrumb a { color: #8a7fa8; text-decoration: none; transition: color 0.15s; }
.breadcrumb a:hover { color: #00f0ff; }
.breadcrumb .sep { margin: 0 8px; color: #00f0ff; opacity: 0.7; }
.breadcrumb .current { color: #00f0ff; }

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 20px 60px;
}

/* ── HEADER ── */
.arcade-header {
    text-align: center;
    margin-bottom: 8px;
    animation: none;
    opacity: 0;
    animation: arcadeIn 0.6s ease forwards;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
@keyframes arcadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.arcade-title-ascii-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    overflow-x: auto;
}

.arcade-title-ascii {
    display: inline-block;
    font-family: 'Courier Prime', monospace;
    font-size: 7px;
    line-height: 1.25;
    color: #00f0ff;
    text-shadow: 0 0 8px rgba(0,240,255,0.5);
    white-space: pre;
    text-align: left;
    margin: 0;
    flex-shrink: 0;
}

@media (max-width: 1200px) { .arcade-title-ascii { font-size: 5.5px; } }
@media (max-width: 900px)  { .arcade-title-ascii { font-size: 4px; } }
@media (max-width: 600px)  { .arcade-title-ascii { font-size: 3px; } }

.arcade-subtitle {
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    color: #ff2e9c;
    letter-spacing: 0.15em;
    margin-top: 10px;
    text-shadow: 0 0 8px rgba(255,46,156,0.6);
}

/* ── COIN + INSERT COIN ── */
.coin-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 24px 0 36px;
    animation: fadeUp 0.5s 0.1s ease both;
}

#coinCanvas, #coinCanvas2 {
    image-rendering: pixelated;
    width: 48px;
    height: 48px;
}

.insert-coin {
    font-family: 'Press Start 2P', monospace;
    font-size: 11px;
    color: #fff733;
    letter-spacing: 0.15em;
    text-shadow: 0 0 12px rgba(255,247,51,0.8);
    animation: blink 1s step-end infinite;
}

/* ── GAME GRID ── */
.game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1100px;
    margin-bottom: 40px;
    animation: fadeUp 0.5s 0.2s ease both;
}

@media (min-width: 1100px) {
    .game-grid { grid-template-columns: repeat(4, 1fr); }
}

.game-card {
    display: block;
    text-decoration: none;
    border: 2px solid #3a2d5c;
    background: #150b29;
    padding: 0;
    position: relative;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    overflow: hidden;
    cursor: pointer;
}

.game-card:hover {
    border-color: var(--card-color, #ff2e9c);
    box-shadow: 0 0 24px var(--card-color, #ff2e9c),
                inset 0 0 40px rgba(0,0,0,0.3);
    transform: translateY(-3px);
}

.game-card:hover::before { height: 6px; }
.game-card:hover .card-arrow { opacity: 1; }

.card-inner { padding: 20px 20px 18px; }

.card-title {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(8px, 1.4vw, 11px);
    color: #f0f8ff;
    line-height: 1.7;
    margin-bottom: 14px;
    letter-spacing: 0.05em;
}

.card-canvas-wrap {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    background: transparent;
}

.card-canvas-wrap canvas {
    image-rendering: pixelated;
    width: 76px;
    height: 76px;
}

.card-desc {
    font-family: 'Courier Prime', monospace;
    font-size: 12px;
    color: #8a7fa8;
    line-height: 1.5;
    margin-bottom: 16px;
}

.card-play {
    font-family: 'Press Start 2P', monospace;
    font-size: 7px;
    color: var(--card-color, #ff2e9c);
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-arrow {
    opacity: 0;
    transition: opacity 0.15s;
    animation: blink 0.6s step-end infinite;
}

/* ── CREDITS ── */
.credits-row {
    font-family: 'Press Start 2P', monospace;
    font-size: 7px;
    color: #8a7fa8;
    letter-spacing: 0.1em;
    text-align: center;
    animation: fadeUp 0.5s 0.35s ease both;
}

.credits-row a {
    color: #00f0ff;
    text-decoration: none;
    transition: color 0.15s, text-shadow 0.15s;
}
.credits-row a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px #00f0ff;
}

/* ── HIGH SCORE BOARD ── */
.scoreboard {
    margin-top: 36px;
    width: 100%;
    max-width: 500px;
    border: 2px solid #fff733;
    background: #150b29;
    box-shadow: 0 0 16px rgba(255,224,58,0.15);
    animation: fadeUp 0.5s 0.4s ease both;
}

.scoreboard-header {
    background: #fff733;
    color: #0a0612;
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    padding: 8px 16px;
    letter-spacing: 0.1em;
    text-align: center;
}

.scoreboard-body {
    padding: 16px;
}

.score-row {
    display: flex;
    justify-content: space-between;
    font-family: 'Press Start 2P', monospace;
    font-size: 7px;
    padding: 6px 0;
    border-bottom: 1px solid #1e1e2e;
    letter-spacing: 0.08em;
}
.score-row:last-child { border-bottom: none; }
.score-rank { color: #ff2e9c; width: 28px; }
.score-name { color: #f0f8ff; flex: 1; }
.score-pts  { color: #fff733; }

/* ── SERVER STATUS + CHAT ── */
.arcade-community {
    width: 100%;
    max-width: 500px;
    margin: 24px auto 36px;
    animation: fadeUp 0.5s 0.25s ease both;
}

.mp-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.mp-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #555;
    transition: background 0.3s, box-shadow 0.3s;
}

.mp-status-dot.online {
    background: #39ff14;
    box-shadow: 0 0 8px rgba(57,255,20,0.6);
}

.mp-status-dot.offline {
    background: #ff3d3d;
    box-shadow: 0 0 8px rgba(255,61,61,0.4);
}

.mp-status-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    color: #8a7fa8;
    letter-spacing: 0.1em;
}

.game-section {
    width: 100%;
    max-width: 1100px;
    margin-bottom: 40px;
}

.section-header {
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    color: #fff733;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    padding: 12px 16px;
    border: 2px solid #fff733;
    background: #150b29;
    text-align: center;
    text-shadow: 0 0 12px rgba(255,224,58,0.6);
}

.section-header-multiplayer {
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    color: #ff2e9c;
    letter-spacing: 0.12em;
    margin: 30px 0 16px;
    padding: 8px 12px;
    border: 1px dashed #ff2e9c;
    background: transparent;
    text-align: center;
    opacity: 0.9;
}

.card-tags {
    font-family: 'Press Start 2P', monospace;
    font-size: 6px;
    letter-spacing: 0.08em;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}
.card-tag {
    padding: 2px 5px;
    border: 1px solid currentColor;
    opacity: 0.7;
}
.card-tag-original  { color: #39ff84; }
.card-tag-demo      { color: #fff733; }

.preview-title-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #080808;
}

.preview-title-large {
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    color: #00f0ff;
    margin: 0 0 4px 0;
    text-shadow: 0 0 10px rgba(0,240,255,0.5);
    line-height: 1;
}

.preview-title-subtitle {
    font-family: 'Courier Prime', monospace;
    font-size: 6px;
    color: #f0f8ff;
    margin: 0;
    letter-spacing: 0.2em;
    opacity: 0.8;
}

/* ── SERVER STATUS ── */
.server-status-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s;
}
.server-status-link:hover {
    transform: translateY(-2px);
}

.server-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 60px;
    animation: fadeUp 0.5s 0.5s ease both;
}

#serverCanvas {
    image-rendering: pixelated;
    width: 128px;
    height: 128px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 16px rgba(0, 245, 255, 0.15));
    transition: filter 0.3s ease;
}

.server-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 7px;
    color: #8a7fa8;
    letter-spacing: 0.1em;
    text-align: center;
    line-height: 1.5;
    transition: color 0.3s, text-shadow 0.3s;
}

.server-status:hover .server-text {
    filter: drop-shadow(0 0 24px rgba(0,240,255,0.4));
    color: #00f0ff;
    text-shadow: 0 0 8px rgba(0,240,255,0.8);
    animation: blink 0.2s step-end 3;
}

/* ── FOOTER ── */
footer { border-top-color: #3a2d5c; }
footer span { color: #ff2e9c; }

@media (max-width: 640px) {
    .insert-coin { font-size: 8px; }
    .game-grid   { grid-template-columns: 1fr; }
    .arcade-community { max-width: 100%; }
}
