.page-tank .play-panel.reveal {
    opacity: 1;
    transform: none;
}

.page-tank .tank-hero,
.page-tank-list .tank-hero,
.page-tank-leaderboard .tank-hero {
    padding-top: 48px;
    padding-bottom: 24px;
}

.tank-shell {
    border-color: rgba(74, 90, 56, 0.4);
    background: linear-gradient(180deg, rgba(8, 12, 10, 0.98), rgba(4, 8, 6, 1));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tank-topbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.45);
}

.tank-canvas-wrap {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    min-height: 420px;
    aspect-ratio: 16 / 10;
}

.tank-scene {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #0a0e0c;
}

.tank-layer {
    position: absolute;
    pointer-events: none;
}

/* Dis gorunum - periskop penceresinden */
.tank-viewport {
    left: 27%;
    top: 10%;
    width: 46%;
    height: 42%;
    object-fit: cover;
    z-index: 1;
    filter: contrast(1.15) saturate(1.05) brightness(0.95);
    border-radius: 2px;
}

.tank-scene.era-modern .tank-viewport,
.tank-scene.ic-modern_dijital .tank-viewport {
    left: 6%;
    top: 8%;
    width: 88%;
    height: 54%;
    filter: contrast(1.2) saturate(0.85) brightness(0.9) hue-rotate(-8deg);
}

.tank-scene.era-ww1 .tank-viewport {
    left: 30%;
    top: 12%;
    width: 40%;
    height: 36%;
    filter: sepia(0.35) contrast(1.1);
}

/* Kabin cercevesi */
.tank-interior {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

.tank-scene.ic-modern_dijital .tank-interior {
    object-fit: cover;
    object-position: center 40%;
}

/* HUD animasyon katmani */
.tank-hud {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
    mix-blend-mode: screen;
    z-index: 3;
}

.tank-scene.ic-modern_dijital .tank-hud {
    opacity: 0.45;
}

.tank-scanlines {
    inset: 0;
    z-index: 4;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.12) 2px,
        rgba(0, 0, 0, 0.12) 4px
    );
    opacity: 0.35;
}

.tank-vignette {
    inset: 0;
    z-index: 5;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.65) 100%);
}

.tank-canvas-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    width: 100% !important;
    height: 100% !important;
    cursor: crosshair;
    touch-action: none;
    background: transparent;
}

.tank-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
}

.tank-overlay[hidden] {
    display: none !important;
}

.tank-overlay-card {
    text-align: center;
    padding: 28px 36px;
    border-radius: var(--radius);
    background: rgba(10, 18, 14, 0.92);
    border: 1px solid rgba(80, 255, 120, 0.2);
    box-shadow: 0 0 40px rgba(45, 155, 115, 0.15);
}

.tank-overlay-card h3 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    color: #a8e6c0;
}

.tank-stats-bar {
    display: flex;
    justify-content: space-around;
    gap: 12px;
    padding: 12px 0;
    font-size: 0.9rem;
    color: var(--muted);
    background: rgba(0, 0, 0, 0.3);
}

.tank-stats-bar strong {
    color: #b8e0a8;
}

.tank-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.tank-select {
    flex: 1;
    min-width: 180px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(80, 120, 80, 0.3);
    background: rgba(0, 0, 0, 0.5);
    color: var(--text);
    font-family: inherit;
    font-weight: 600;
}

.side-card.is-warning {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.08);
}

.side-card code {
    display: block;
    margin-top: 8px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    font-size: 0.82rem;
}

/* Tank listesi */
.tank-era-block { margin-bottom: 48px; }
.tank-era-block h2 { margin-bottom: 20px; font-size: 1.4rem; }

.tank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.tank-card {
    position: relative;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--line);
    transition: transform 0.2s, border-color 0.2s;
}

.tank-card:hover {
    transform: translateY(-2px);
    border-color: rgba(45, 155, 115, 0.35);
}

.tank-card.is-locked { opacity: 0.65; }

.tank-card-rank {
    position: absolute;
    top: 14px;
    right: 14px;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent);
}

.tank-card-color {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.tank-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.tank-card-meta { margin: 0 0 12px; color: var(--muted); font-size: 0.88rem; }

.tank-specs {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    font-size: 0.82rem;
}

.tank-specs li { display: flex; justify-content: space-between; gap: 8px; }
.tank-specs span { color: var(--muted); }
.tank-card-desc { margin: 0 0 10px; font-size: 0.85rem; color: var(--muted); line-height: 1.45; }

.tank-ic-badge, .tank-done-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(45, 155, 115, 0.15);
    color: var(--primary);
    margin-right: 6px;
}

.tank-done-badge {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent);
}

.leaderboard-table {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--panel);
}

.leaderboard-table table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.leaderboard-table th, .leaderboard-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}
.leaderboard-table th {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
}
.leaderboard-table tr:last-child td { border-bottom: none; }

@media (max-width: 640px) {
    .tank-controls { flex-direction: column; }
    .tank-select { width: 100%; }
    .tank-canvas-wrap { min-height: 280px; }
}
