.swift-tool-main-wrapper { 
    font-family: 'Inter', system-ui, sans-serif !important; 
    background-color: #f8fafc !important; 
    padding: 20px 15px !important; 
    max-width: 1000px !important; 
    margin: 15px auto !important; 
    box-sizing: border-box !important;
    display: block !important;
    clear: both !important;
}

.tool-hero-section { text-align: center; margin-bottom: 20px; padding-top: 10px; }
.tool-title-main { font-size: 28px !important; font-weight: 800 !important; color: #0f172a !important; display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 8px; margin-top: 0 !important; }
.hero-icon-svg { width: 36px; height: 36px; display: inline-block; }
.tool-subtitle-main { font-size: 15px !important; color: #475569 !important; font-weight: 500 !important; max-width: 700px; margin: 0 auto; line-height: 1.5; }

/* Mode Switcher Buttons */
.mode-selector-wrapper { display: flex; justify-content: center; gap: 12px; margin-bottom: 20px; }
.mode-btn { background: #e2e8f0; border: 2px solid #cbd5e1; color: #475569; font-weight: 700; font-size: 14px; padding: 10px 20px; border-radius: 30px; cursor: pointer; transition: all 0.2s; }
.mode-btn:hover { background: #cbd5e1; }
.active-mode { background: #0f172a !important; color: #38bdf8 !important; border-color: #0f172a !important; box-shadow: 0 4px 12px rgba(15,23,42,0.2); }

/* Scoreboard Bar Styles */
.game-scoreboard-bar { display: flex; justify-content: space-between; align-items: center; background: #0f172a; border: 2px solid #1e293b; border-radius: 12px; padding: 14px 24px; margin-bottom: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.3); gap: 15px; flex-wrap: wrap; }
.score-node { display: flex; flex-direction: column; align-items: center; }
.score-lbl { font-size: 11px; font-weight: 800; color: #64748b; letter-spacing: 1px; }
.score-val { font-size: 24px; font-weight: 900; font-family: monospace; }
.cyan-neon { color: #38bdf8 !important; text-shadow: 0 0 10px rgba(56,189,248,0.5); }
.pink-neon { color: #f43f5e !important; text-shadow: 0 0 10px rgba(244,63,94,0.5); }
.gold-neon { color: #f59e0b !important; text-shadow: 0 0 10px rgba(245,158,11,0.5); }

.sound-btn { background: #1e293b; border: 1px solid #334155; color: #cbd5e1; font-weight: 700; font-size: 13px; padding: 8px 16px; border-radius: 8px; cursor: pointer; transition: all 0.2s; }
.restart-accent { background: linear-gradient(135deg, #0284c7, #2563eb); color: #fff; border: none; }
.restart-accent:hover { opacity: 0.9; }

/* Grid Arena Area */
.game-stage-wrapper { display: flex; flex-direction: column; align-items: center; }
.ttt-board-container { background: #0f172a; padding: 20px; border-radius: 20px; border: 3px solid #1e293b; box-shadow: 0 15px 35px rgba(0,0,0,0.4); width: 100%; max-width: 340px; box-sizing: border-box; }

.ttt-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 12px; width: 100%; aspect-ratio: 1 / 1; }

.cell { background: #1e293b; border: 2px solid #334155; border-radius: 14px; font-size: 42px; font-weight: 900; font-family: monospace; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.15s ease-in-out; outline: none; user-select: none; }
.cell:hover { background: #334155; }
.cell.x { color: #38bdf8; text-shadow: 0 0 15px rgba(56,189,248,0.8); }
.cell.o { color: #f43f5e; text-shadow: 0 0 15px rgba(244,63,94,0.8); }
.cell.winner { background: #0284c7; color: #ffffff !important; border-color: #38bdf8; animation: pulseWin 0.6s infinite alternate; }

@keyframes pulseWin {
    from { transform: scale(0.96); }
    to { transform: scale(1.04); }
}

.status-message { text-align: center; margin-top: 18px; font-size: 16px; font-weight: 800; color: #94a3b8; height: 24px; }

.seo-guide-section { width: 100%; margin-top: 50px; }
.step-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 20px; }
@media (min-width: 768px) { .step-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card { background: #fff; border: 1px solid #e2e8f0; padding: 22px; border-radius: 12px; position: relative; }
.step-num { position: absolute; top: -14px; left: 20px; color: #fff; font-weight: 800; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 12px; }

.step-card h4 { margin: 8px 0 6px 0; font-size: 15px; font-weight: 700; color: #0f172a; }
.step-card p { margin: 0; font-size: 13px; color: #475569; line-height: 1.5; }

.faq-section { width: 100%; margin-top: 40px; }
.faq-main-title { font-size: 22px !important; font-weight: 800 !important; color: #0f172a; text-align: center; margin-bottom: 20px; }
.faq-item { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 18px; margin-bottom: 12px; }
.faq-question { font-size: 15px !important; font-weight: 700 !important; color: #0f172a; margin: 0 0 6px 0; }
.faq-answer { font-size: 13.5px; color: #475569; line-height: 1.5; margin: 0; }