/* --- 1. CSS DEĞİŞKENLERİ --- */
:root {
    --bg-color: #f0f0f5; --glass-layer: rgba(255, 255, 255, 0.85); --glass-border: rgba(255, 255, 255, 0.5);
    --text-main: #111111; --text-muted: #555555; --input-bg: #ffffff; --input-border: #cccccc;
    --card-glass: rgba(255, 255, 255, 0.6); --btn-bg: #111111; --btn-text: #ffffff; --btn-hover: #333333; 
    --shadow-color: rgba(0, 0, 0, 0.08); --accent: #3B82F6;
}
[data-theme="dark"] {
    --bg-color: #12141c; --glass-layer: rgba(30, 32, 38, 0.85); --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #f0f0f0; --text-muted: #aaaaaa; --input-bg: rgba(0, 0, 0, 0.5); --input-border: rgba(255, 255, 255, 0.2);
    --card-glass: rgba(0, 0, 0, 0.4); --btn-bg: #f0f0f0; --btn-text: #111111; --btn-hover: #ffffff; 
    --shadow-color: rgba(0, 0, 0, 0.5); --accent: #38BDF8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: -apple-system, BlinkMacSystemFont, "San Francisco", "Helvetica Neue", Helvetica, Arial, sans-serif; 
    background: var(--bg-color); color: var(--text-main); min-height: 100vh; 
    display: flex; flex-direction: column; align-items: center; padding: 40px 20px; 
    transition: background 0.4s ease, color 0.4s ease; 
}

.container, .suggestions-box, .card-showcase, .multi-results-grid, .deck-section, .ai-box, .related-cards-section, .dashboard-box, .hand-modal-content {
    background: var(--glass-layer); backdrop-filter: blur(25px) saturate(180%); -webkit-backdrop-filter: blur(25px) saturate(180%); border: 1px solid var(--glass-border); box-shadow: 0 15px 35px var(--shadow-color);
}
.container { width: 100%; max-width: 960px; border-radius: 28px; padding: 50px 40px; position: relative; transition: all 0.4s ease; }
.theme-toggle-btn { position: absolute; top: 20px; right: 25px; background: var(--input-bg); border: 1px solid var(--input-border); color: var(--text-main); padding: 8px 15px; border-radius: 20px; font-size: 0.9rem; font-weight: 600; cursor: pointer; z-index: 1001; }

.header { text-align: center; margin-bottom: 35px; } .header h1 { font-weight: 800; font-size: 3rem; color: var(--text-main); letter-spacing: -1px; margin-bottom: 5px; } .header p { color: var(--text-muted); font-size: 1.1rem; font-weight: 500; }
.search-section { display: flex; justify-content: center; margin-bottom: 20px; } .search-box { position: relative; display: flex; width: 100%; flex-wrap: wrap; gap: 12px; }
input, select { flex: 1; min-width: 250px; padding: 14px 18px; background: var(--input-bg) !important; border: 1px solid var(--input-border) !important; border-radius: 14px; color: var(--text-main); font-size: 1rem; font-family: inherit; transition: all 0.2s ease; }
input:focus, select:focus { outline: none; border-color: var(--text-main) !important; box-shadow: 0 0 0 3px var(--shadow-color); }
button { padding: 0 24px; height: 50px; background: var(--btn-bg); color: var(--btn-text); border: none; border-radius: 14px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: all 0.2s ease; font-family: inherit; }
button:hover { transform: translateY(-2px); box-shadow: 0 4px 12px var(--shadow-color); background: var(--btn-hover); }
.filter-section { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.suggestions-box { position: absolute; top: calc(100% + 8px); left: 0; width: 100%; max-width: 450px; border-radius: 14px; max-height: 300px; overflow-y: auto; z-index: 1000; display: none; }
.suggestion-item { padding: 12px 18px; cursor: pointer; border-bottom: 1px solid var(--input-border); display: flex; align-items: center; gap: 15px; color: var(--text-main); transition: all 0.1s;}
.suggestion-item:hover { background: var(--input-bg); padding-left: 22px; } .suggestion-img { width: 38px; border-radius: 6px; }
.loading { text-align: center; color: var(--text-main); font-size: 1.2rem; margin: 20px 0; font-weight: 600; }

.card-showcase { border-radius: 24px; padding: 35px; margin-top: 20px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; justify-content: center; }
.card-image-container { flex: 1 1 300px; max-width: 350px; display: flex; flex-direction: column; gap: 15px; }
.card-image-container img { width: 100%; border-radius: 12px; box-shadow: 0 15px 30px var(--shadow-color); cursor: pointer; transition: all 0.3s; border: 2px solid transparent; }
.card-image-container img:hover, .grid-card-img:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 20px 40px var(--shadow-color); border-color: var(--text-main); }
.action-buttons { display: flex; gap: 12px; width: 100%; }
.add-btn { flex: 1; padding: 12px 5px; border-radius: 12px; font-weight: 600; cursor: pointer; transition: 0.2s; font-family: inherit; font-size: 0.95rem; display: flex; justify-content: center; align-items: center; white-space: nowrap; background: transparent; border: 2px solid var(--text-main); color: var(--text-main); box-shadow: none; }
.add-btn:hover { background: var(--text-main); color: var(--bg-color); transform: translateY(-2px); } .add-btn.active { background: var(--text-muted); border-color: var(--text-muted); color: var(--bg-color); }
.card-details { flex: 2 1 300px; min-width: 0; width: 100%; } 
.card-details h2 { font-weight: 800; font-size: 2.2rem; color: var(--text-main); margin-bottom: 8px; word-wrap: break-word; overflow-wrap: break-word; }
.original-name-badge { display: inline-block; background: var(--text-main); color: var(--bg-color); padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 25px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 25px; }
.stat-box { background: var(--input-bg); border: 1px solid var(--glass-border); padding: 15px; border-radius: 16px; display: flex; flex-direction: column; gap: 6px; }
.stat-box:hover { transform: translateY(-2px); border-color: var(--text-muted); } .stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; font-weight: 800; letter-spacing: 1px; } .stat-value { font-size: 1.1rem; color: var(--text-main); font-weight: 700; }
.banlist-badge { display: inline-block; padding: 6px 14px; border-radius: 20px; font-weight: 700; font-size: 0.85rem; margin-bottom: 25px; text-transform: uppercase; border: 2px solid var(--text-main); color: var(--text-main); }
.ban-banned { background: rgba(231, 76, 60, 0.2); } .ban-limited { background: rgba(230, 126, 34, 0.2); } .ban-semi { background: rgba(241, 196, 15, 0.2); }
.price-box { background: var(--input-bg); border: 1px solid var(--glass-border); padding: 20px; border-radius: 20px; margin: 25px 0; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 15px; align-items: center; }
.price-header { width: 100%; font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; font-weight: 800; margin-bottom: 5px; } .price-value { font-size: 1.1rem; font-weight: 800; color: #27ae60; background: rgba(39, 174, 96, 0.1); padding: 8px 16px; border-radius: 12px; border: 1px solid rgba(39, 174, 96, 0.3); }
.card-desc-box { background: var(--input-bg); padding: 25px; border-radius: 20px; border-top: 4px solid var(--text-main); margin-top: 20px; }
.desc-header { font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; } .desc-content { line-height: 1.7; font-size: 1.05rem; color: var(--text-main); font-weight: 500; }

.ai-box { border: 2px solid var(--text-main); border-radius: 20px; padding: 25px; margin-top: 30px; }
.ai-header { font-weight: 800; font-size: 1.4rem; color: var(--text-main); margin-bottom: 20px; display: flex; align-items: center; gap: 8px;}
.ai-quick-prompts { display: flex; gap: 8px; margin-bottom: 15px; flex-wrap: wrap; }
.ai-btn { background: transparent; border: 2px solid var(--text-main); color: var(--text-main); border-radius: 25px; padding: 8px 18px; font-weight: 600; height: auto; box-shadow: none;} .ai-btn:hover { background: var(--text-main); color: var(--bg-color); transform: translateY(-2px); }
.ai-input-group { display: flex; gap: 10px; } .ai-input-group input { background: var(--input-bg) !important; border: 2px solid var(--input-border) !important; color: var(--text-main) !important; } .ai-input-group input:focus { border-color: var(--text-main) !important; }
.ai-send-btn { background: var(--text-main); color: var(--bg-color); border: none; }
.ai-response { margin-top: 20px; padding: 20px; background: var(--input-bg); border-radius: 12px; color: var(--text-main); font-size: 1rem; line-height: 1.6; border: 1px solid var(--input-border); } .ai-response strong { color: var(--text-main); font-weight: 800; }

.related-cards-section { padding: 20px 25px; border-radius: 20px; margin-top: 30px; width: 100%; overflow: hidden; }
.related-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 15px; margin-top: 15px; scroll-behavior: smooth; }
.related-card-img { width: 85px; flex-shrink: 0; border-radius: 8px; cursor: pointer; transition: transform 0.2s ease; box-shadow: 0 4px 10px var(--shadow-color); border: 2px solid transparent; } .related-card-img:hover { transform: translateY(-5px) scale(1.05); border-color: var(--text-main); }
.related-scroll::-webkit-scrollbar { height: 8px; } .related-scroll::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.05); border-radius: 10px; } .related-scroll::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 10px; }

.dashboard-box { border-radius: 20px; padding: 25px; margin-bottom: 25px; width: 100%; display: flex; flex-direction: column; gap: 20px; }
.deck-action-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.dash-btn { flex: 1; min-width: 150px; padding: 12px; background: transparent; border: 2px solid var(--text-main); color: var(--text-main); font-weight: 700; border-radius: 12px; cursor: pointer; transition: 0.2s; white-space: nowrap; text-align: center; }
.dash-btn:hover { background: var(--text-main); color: var(--bg-color); transform: translateY(-2px); }
.stats-bar-container { width: 100%; background: var(--input-bg); border-radius: 20px; overflow: hidden; display: flex; height: 30px; border: 1px solid var(--input-border); box-shadow: inset 0 2px 5px rgba(0,0,0,0.1); }
.stat-segment { display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 800; color: #fff; transition: width 0.5s ease; text-shadow: 0 1px 2px rgba(0,0,0,0.5); overflow: hidden; white-space: nowrap; }
.seg-monster { background: linear-gradient(90deg, #e67e22, #d35400); } .seg-spell { background: linear-gradient(90deg, #2ecc71, #27ae60); } .seg-trap { background: linear-gradient(90deg, #9b59b6, #8e44ad); }

/* ONLINE DÜELLO SİMÜLATÖRÜ TASARIMI (MASAÜSTÜ) */
.sim-layout { width: 100%; max-width: 1200px; height: 90vh; background: rgba(10, 15, 30, 0.95); backdrop-filter: blur(30px); border: 2px solid var(--glass-border); border-radius: 24px; display: flex; flex-direction: column; padding: 25px; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,0.8); }

.p2p-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; text-align: center; color: #ffffff; }
.p2p-panel h2 { color: #ffffff; margin-bottom: 10px; font-size: 2rem; }
.p2p-panel p { color: #cccccc; margin-bottom: 25px; }

.sim-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid rgba(255,255,255,0.1); padding-bottom: 15px; margin-bottom: 20px; color: #fff; flex-shrink: 0; }
.sim-controls { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;}
.sim-btn { padding: 10px 15px; font-weight: bold; border-radius: 12px; cursor: pointer; border: none; font-size: 0.9rem; transition: 0.2s; color: #fff; }
.draw-btn { background: #3498db; } .search-btn { background: #9b59b6; } .shuffle-btn { background: #16a085; } .restart-btn { background: #f39c12; } .close-btn { background: #e74c3c; }
.sim-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }

.sim-body { display: flex; gap: 20px; flex: 1; overflow: hidden; }
.sim-preview-panel { width: 250px; background: rgba(0,0,0,0.5); border-radius: 16px; padding: 15px; display: flex; flex-direction: column; gap: 10px; border: 1px solid rgba(255,255,255,0.1); overflow-y: auto; color: #fff; flex-shrink: 0; cursor: default;}
.sim-preview-panel img { width: 100%; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.sim-prev-content h3 { color: var(--accent); font-size: 1.1rem; margin-bottom: 5px;}
.sim-prev-stats { font-size: 0.85rem; color: #ccc; font-weight: bold; margin-bottom: 10px; line-height: 1.5; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px;}
.sim-prev-desc { font-size: 0.9rem; color: #aaa; line-height: 1.5; }

.sim-play-area { flex: 1; display: flex; flex-direction: column; overflow-x: auto; overflow-y: hidden; }
.sim-mat { flex: 1; background: rgba(0,0,0,0.4); border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); padding: 20px; display: flex; flex-direction: column; gap: 15px; align-items: center; justify-content: center; position: relative; box-shadow: inset 0 0 50px rgba(0,0,0,0.5); color: #fff; min-width: 600px; }
.sim-row { display: flex; gap: 10px; }
.sim-zone { width: 75px; height: 110px; border: 2px dashed rgba(255,255,255,0.3); border-radius: 8px; background: rgba(255,255,255,0.05); display: flex; justify-content: center; align-items: center; transition: 0.3s; position: relative; cursor: pointer; flex-shrink: 0; }
.sim-zone:hover { border-color: var(--accent); background: rgba(52, 152, 219, 0.2); }
.sim-zone img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); pointer-events: none;}
.card-face-down { filter: brightness(0.8); } .card-defense { transform: rotate(90deg); }

.half-field { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; }
.opponent-field { transform: rotate(180deg); }
.field-divider { width: 100%; height: 2px; background: rgba(255,255,255,0.1); margin: 5px 0; }
.sim-graveyard { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 75px; height: 110px; border: 2px solid #7f8c8d; border-radius: 8px; background: rgba(44, 62, 80, 0.8); display: flex; justify-content: center; align-items: center; font-size: 1.5rem; cursor: pointer; color: #bdc3c7; flex-shrink: 0;}

.sim-hand-area { margin-top: 15px; border-top: 2px solid rgba(255,255,255,0.1); padding-top: 15px; overflow-x: auto; }
.sim-hand { display: flex; justify-content: flex-start; gap: 8px; height: 120px; padding: 0 10px; min-width: max-content; }
.sim-hand-card { width: 85px; border-radius: 8px; cursor: pointer; transition: 0.2s; box-shadow: 0 10px 20px rgba(0,0,0,0.5); flex-shrink: 0; }
.sim-hand-card:hover { transform: translateY(-15px) scale(1.1); z-index: 10; border: 2px solid #f1c40f; box-shadow: 0 15px 30px rgba(241, 196, 15, 0.4);}

.sim-action-menu { position: fixed; background: var(--input-bg); backdrop-filter: blur(15px); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.8); z-index: 9999; border: 2px solid var(--text-main); }
.sim-action-menu button { padding: 10px 15px; background: transparent; border: 1px solid var(--text-muted); border-radius: 8px; font-weight: bold; color: var(--text-main); cursor: pointer; height: auto; font-size: 0.9rem; text-align: left; transition: 0.2s; }
.sim-action-menu button:hover { background: var(--text-main); color: var(--bg-color); border-color: var(--text-main);}

.lp-box { display: flex; flex-direction: column; align-items: center; }
.lp-counter { background: rgba(0,0,0,0.6); border: 2px solid var(--accent); padding: 5px 15px; border-radius: 12px; display: flex; align-items: center; gap: 15px; font-size: 1.5rem; font-weight: 800; color: #fff; text-shadow: 0 0 10px var(--accent); }
.lp-counter button { background: transparent; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; padding: 0; box-shadow: none; height: auto; width: auto;}

/* Modallar, Deste Seçimi, Footer vs... */
.multi-results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 15px; margin-top: 25px; border-radius: 24px; padding: 20px; max-height: 600px; overflow-y: auto; }
.grid-card-img { width: 100%; border-radius: 10px; cursor: pointer; transition: all 0.3s; border: 2px solid transparent; }
.deck-section { margin-top: 25px; padding: 25px; border-radius: 24px; }
.deck-title { font-weight: 800; font-size: 1.5rem; color: var(--text-main); border-bottom: 2px solid var(--input-border); padding-bottom: 10px; margin-bottom: 20px; }
.deck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(75px, 1fr)); gap: 10px; }
.deck-card-wrapper { position: relative; }
.deck-card-count { background: var(--text-main); color: var(--bg-color); font-weight: 700; border-radius: 50%; position: absolute; bottom: -5px; right: -5px; width: 24px; height: 24px; display: flex; justify-content: center; align-items: center; font-size: 0.8rem; z-index: 5;}

.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); justify-content: center; align-items: center; opacity: 0; transition: 0.3s; padding: 20px; }
.modal.show { display: flex; opacity: 1; }
.modal-content { max-width: 90vw; max-height: 90vh; border-radius: 20px; transform: scale(0.8); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.modal.show .modal-content { transform: scale(1); }
.close-modal { position: absolute; top: 20px; right: 30px; color: rgba(255,255,255,0.8); font-size: 40px; transition: all 0.2s ease; font-weight: 300; cursor: pointer; z-index: 2001;}
.close-modal:hover { color: #fff; transform: scale(1.1); }
.sim-list-content { background: var(--glass-layer); border: 1px solid var(--glass-border); backdrop-filter: blur(25px); padding: 30px; max-width: 800px; overflow-y: auto;}

/* İlk El Testi Modalı */
.hand-modal-content { width: 100%; max-width: 800px; padding: 40px; background: var(--card-glass); }
.hand-cards-container { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.hand-card-anim { width: 120px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); animation: drawCard 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; opacity: 0; transform: translateY(50px); }
@keyframes drawCard { to { opacity: 1; transform: translateY(0); } }

.site-footer { width: 100%; display: flex; flex-direction: column; align-items: center; padding: 40px 20px; margin-top: 20px; }
.buy-coffee-btn { background: var(--glass-layer); backdrop-filter: blur(10px); border: 2px solid var(--text-main); color: var(--text-main); padding: 12px 25px; border-radius: 50px; font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 10px; font-size: 0.95rem; transition: all 0.3s ease; box-shadow: 0 4px 15px var(--shadow-color); }
.buy-coffee-btn:hover { background: var(--text-main); color: var(--bg-color); transform: scale(1.05) translateY(-3px); box-shadow: 0 8px 25px var(--shadow-color); }
.footer-legal { text-align: center; font-size: 0.75rem; color: var(--text-muted); margin-top: 20px; max-width: 600px; line-height: 1.5; }

/* 🔴 MOBİL UYUM (TÜM SORUNLAR BURADA ÇÖZÜLDÜ) */
@media (max-width: 768px) {
    body { padding: 15px 10px; }
    
    /* 1. Karanlık Mod Butonu: En tepeye, ferah bir yere alındı */
    .container { padding: 60px 20px 20px 20px; margin-top: 10px; }
    .theme-toggle-btn { 
        top: -15px; /* Konteynerin dışına, en üste çıktı */
        right: 50%; transform: translateX(50%); 
        width: max-content; padding: 6px 16px; 
        box-shadow: 0 4px 10px var(--shadow-color);
        background: var(--glass-layer);
    }
    
    .card-showcase { flex-direction: column; align-items: center; padding: 20px; gap: 20px; }
    .card-image-container { max-width: 100%; }
    .card-details { width: 100%; word-break: break-word; overflow-wrap: break-word; text-align: center;}
    .card-details h2 { font-size: 1.8rem; word-break: normal; }
    .search-box { flex-direction: column; }
    button { width: 100%; }
    
    /* 2. İlk El Testi Modalı Düzeltmesi (Kartlar Yan Yana Izgara) */
    .hand-modal-content { 
        padding: 25px 15px; 
        max-height: 85vh; overflow-y: auto; 
    }
    .hand-cards-container { 
        display: grid; 
        grid-template-columns: repeat(3, 1fr); /* 3 sütunlu ızgara */
        gap: 10px; justify-items: center;
    }
    /* Son iki kartı alt satırda ortala */
    .hand-card-anim:nth-child(4) { grid-column: 1 / 3; justify-self: right; margin-right: -5px;}
    .hand-card-anim:nth-child(5) { grid-column: 2 / 4; justify-self: left; margin-left: -5px;}
    .hand-card-anim { width: 100%; max-width: 85px; } /* Kart boyutları küçültüldü */
    
    /* 3. Simülatör (Saha ve El Üstte, Butonlar Altta) */
    .sim-layout { 
        padding: 10px 0; height: 95vh; 
        overflow-y: auto; overflow-x: hidden;
        display: flex; flex-direction: column; 
    }
    
    .sim-body { 
        flex-direction: column; overflow: visible; 
        order: 1; /* SAHA ÜSTTE */
        width: 100%;
    }
    
    .sim-header { 
        flex-direction: column; gap: 15px; text-align: center; 
        order: 2; /* BUTONLAR ALTA GİDER */
        margin-top: 20px; padding: 20px 15px; 
        border-top: 2px solid rgba(255,255,255,0.1); border-bottom: none;
    }
    
    .sim-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
    .sim-btn { font-size: 0.85rem; padding: 12px 10px; }

    .sim-preview-panel { 
        display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); 
        width: 90%; height: auto; max-height: 80vh; flex-direction: column; align-items: center; 
        padding: 20px; background: rgba(20,25,40,0.98); border: 2px solid #f1c40f; 
        z-index: 3000; box-shadow: 0 0 50px #000; cursor: pointer; 
    }
    .sim-preview-panel::after { content: "(Kapatmak için dokun)"; display: block; margin-top: 10px; font-size: 0.8rem; color: #ccc; }
    .sim-preview-panel img { width: 110px; height: 160px; object-fit: cover; margin-bottom: 10px; }
    .sim-prev-content { width: 100%; text-align: center; overflow-y: auto; }
    
    .sim-play-area { width: 100vw; overflow: visible; }
    .sim-mat { 
        overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; 
        padding: 15px 10px; display: flex; flex-direction: column; 
        align-items: flex-start; justify-content: flex-start; min-width: 100%; 
    }
    .half-field { min-width: 480px; align-items: center; margin: 0 auto; } 
    .sim-zone { width: 65px; height: 95px; }
    .sim-graveyard { width: 65px; height: 95px; right: 0; position: absolute; font-size: 1.2rem; }
    
    .sim-hand-area { 
        width: 100vw; margin-top: 10px; padding-top: 15px; 
        border-top: 1px solid rgba(255,255,255,0.2); flex-shrink: 0; 
    }
    .sim-hand { 
        display: flex; justify-content: flex-start; overflow-x: auto; 
        -webkit-overflow-scrolling: touch; padding: 0 10px 15px 10px; gap: 10px; 
    }
    .sim-hand-card { width: 75px; flex-shrink: 0; }
}