* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); min-height: 100vh; }
.page-wrapper { display: grid; grid-template-columns: 160px 1fr 160px; gap: 20px; min-height: 100vh; max-width: 1400px; margin: 0 auto; padding: 20px; }
.sidebar { min-height: 100vh; }
.sidebar-left, .sidebar-right { display: flex; align-items: flex-start; padding-top: 80px; }
.sticky-ad { position: sticky; top: 20px; width: 160px; min-height: 600px; }
.main-content { display: flex; justify-content: center; align-items: flex-start; padding: 20px 0; }
@media (max-width: 1024px) { .page-wrapper { grid-template-columns: 1fr; } .sidebar { display: none; } }
.container { max-width: 520px; width: 100%; }
.header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.back-button { text-decoration: none; color: #333; background: rgba(0,0,0,0.08); padding: 6px 14px; border-radius: 20px; font-size: 1em; }
.back-button:hover { background: rgba(0,0,0,0.15); }
.title { color: #333; font-size: 1.6em; font-weight: 800; }
.rules-card { background: #fff; border-radius: 20px; padding: 32px 24px; text-align: center; box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
.rules-card p { color: #555; font-size: 1em; line-height: 1.7; margin-bottom: 12px; }
.example { font-size: 0.95em; background: #f8f9fa; border-radius: 10px; padding: 10px 14px; }
.start-btn { background: linear-gradient(135deg, #f093fb, #f5576c); color: #fff; border: none; border-radius: 14px; padding: 14px 36px; font-size: 1.1em; font-weight: 700; cursor: pointer; margin-top: 12px; }
.start-btn:hover { opacity: 0.85; }
.stats-bar { display: flex; justify-content: space-between; background: rgba(0,0,0,0.06); border-radius: 14px; padding: 10px 16px; color: #333; font-size: 1em; margin-bottom: 8px; }
.timer-bar-wrap { background: #e0e0e0; border-radius: 10px; height: 7px; margin-bottom: 16px; }
.timer-bar { background: linear-gradient(90deg, #f093fb, #f5576c); border-radius: 10px; height: 7px; width: 100%; transition: width 1s linear; }
.word-display {
    background: #fff; border-radius: 20px; padding: 32px; text-align: center;
    font-size: 2.8em; font-weight: 900; letter-spacing: 4px; margin-bottom: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1); min-height: 100px; display: flex;
    align-items: center; justify-content: center;
}
.color-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.color-btn {
    border: none; border-radius: 16px; padding: 22px 10px; font-size: 1em;
    font-weight: 700; color: #fff; cursor: pointer; transition: transform 0.1s, opacity 0.15s;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3); box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.color-btn:hover { transform: scale(1.04); }
.color-btn:active { transform: scale(0.96); }
.color-btn.correct { box-shadow: 0 0 0 4px #00b894; }
.color-btn.wrong { box-shadow: 0 0 0 4px #d63031; opacity: 0.6; }
.feedback { text-align: center; font-size: 1.5em; min-height: 40px; font-weight: 800; }
.game-over { background: #fff; border-radius: 20px; padding: 36px 24px; text-align: center; box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
.game-over h2 { font-size: 2em; margin-bottom: 10px; }
.game-over p { color: #555; font-size: 1.05em; margin-bottom: 8px; }
.share-btn, .play-again-btn { border: none; border-radius: 12px; padding: 12px 24px; font-size: 1em; font-weight: 700; cursor: pointer; margin: 6px; }
.share-btn { background: linear-gradient(135deg, #f093fb, #f5576c); color: #fff; }
.play-again-btn { background: #f0f0f0; color: #333; }
.hidden { display: none; }
