* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #fc466b 0%, #3f5efb 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: 540px; width: 100%; }
.header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.back-button { text-decoration: none; color: #fff; background: rgba(255,255,255,0.2); padding: 6px 14px; border-radius: 20px; font-size: 1em; }
.back-button:hover { background: rgba(255,255,255,0.35); }
.title { color: #fff; font-size: 1.6em; font-weight: 800; }
.intro-card { background: #fff; border-radius: 20px; padding: 28px 24px; box-shadow: 0 8px 32px rgba(0,0,0,0.15); }
.intro-card h2 { font-size: 1.4em; margin-bottom: 14px; color: #333; }
.intro-card ul { color: #555; padding-left: 20px; margin-bottom: 20px; }
.intro-card li { margin-bottom: 8px; line-height: 1.5; }
.start-btn { background: linear-gradient(135deg, #fc466b, #3f5efb); color: #fff; border: none; border-radius: 14px; padding: 14px 36px; font-size: 1.1em; font-weight: 700; cursor: pointer; width: 100%; }
.start-btn:hover { opacity: 0.85; }
.stats-bar { display: flex; justify-content: space-between; background: rgba(255,255,255,0.2); border-radius: 14px; padding: 10px 18px; color: #fff; font-size: 1em; margin-bottom: 8px; }
.timer-bar-wrap { background: rgba(255,255,255,0.3); border-radius: 10px; height: 7px; margin-bottom: 14px; }
.timer-bar { background: #fff; border-radius: 10px; height: 7px; width: 100%; transition: width 0.5s linear; }
.current-word-card { background: #fff; border-radius: 18px; padding: 20px 24px; text-align: center; box-shadow: 0 6px 24px rgba(0,0,0,0.12); margin-bottom: 12px; }
.current-label { color: #aaa; font-size: 0.8em; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.current-letter { font-size: 3em; font-weight: 900; color: #3f5efb; line-height: 1; text-transform: uppercase; }
.current-word-display { color: #888; font-size: 0.9em; margin-top: 6px; }
.chain-display { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; min-height: 44px; }
.chain-word { background: rgba(255,255,255,0.9); border-radius: 20px; padding: 5px 14px; font-size: 0.88em; font-weight: 600; color: #3f5efb; }
.input-row { display: flex; gap: 10px; margin-bottom: 8px; }
.word-input { flex: 1; padding: 13px 18px; font-size: 1.1em; font-weight: 600; border-radius: 14px; border: 2px solid rgba(255,255,255,0.5); background: rgba(255,255,255,0.9); color: #333; outline: none; }
.word-input:focus { border-color: #fff; background: #fff; }
.submit-btn { background: #fff; color: #3f5efb; border: none; border-radius: 14px; padding: 13px 22px; font-size: 1.2em; font-weight: 700; cursor: pointer; }
.submit-btn:hover { background: rgba(255,255,255,0.85); }
.error-msg { color: #fff; font-weight: 700; font-size: 0.95em; min-height: 22px; text-align: center; background: rgba(214,48,49,0.5); border-radius: 10px; padding: 4px 12px; }
.error-msg:empty { background: transparent; }
.game-over { background: #fff; border-radius: 20px; padding: 36px 24px; text-align: center; box-shadow: 0 8px 32px rgba(0,0,0,0.15); }
.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, #fc466b, #3f5efb); color: #fff; }
.play-again-btn { background: #f0f0f0; color: #333; }
.hidden { display: none; }
