:root { --gold: #d4af37; --red: #ff4b2b; --dark: #000; }

body { background: var(--dark); color: #fff; font-family: sans-serif; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; overflow: hidden; }

.card { 

    background: #111; width: 95%; max-width: 420px; height: 90vh; border-radius: 35px; border: 3px solid var(--gold); 

    position: relative; display: flex; flex-direction: column; padding: 60px 15px 75px 15px; box-sizing: border-box; 

}

.top-ui { position: absolute; top: 15px; left: 15px; right: 15px; display: flex; justify-content: space-between; align-items: center; z-index: 10; }

.ui-group-left { display: flex; gap: 5px; }

.ui-element { cursor: pointer; background: #222; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--gold); color: var(--gold); font-size: 11px; font-weight: bold; }

.point-box { color: var(--gold); font-weight: bold; font-size: 14px; border: 1px solid var(--gold); padding: 4px 10px; border-radius: 8px; }

.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; position: relative; }

.screen { display: flex; flex-direction: column; height: 100%; width: 100%; overflow-y: auto; padding-bottom: 10px; }

.screen::-webkit-scrollbar { width: 0; }

.hide { display: none !important; }

.title { color: var(--gold); margin: 10px 0 20px 0; font-size: 24px; text-align: center; }

.row { display: flex; gap: 8px; margin-bottom: 10px; }

.toggle-btn { flex: 1; padding: 12px; border-radius: 12px; border: 2px solid var(--gold); background: #111; color: #fff; cursor: pointer; font-weight: bold; }

.toggle-btn.active { background: var(--gold); color: #000; }

.gold-btn { background: linear-gradient(45deg, var(--gold), #fff); color: #000; border: none; padding: 15px; font-size: 18px; font-weight: bold; border-radius: 15px; width: 100%; cursor: pointer; margin-top: 10px; }

.quiz-top { display: flex; justify-content: space-between; color: var(--gold); font-weight: bold; padding: 0 5px; margin-bottom: 10px; }

.timer-circle { background: var(--red); width: 55px; height: 55px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: bold; margin: 0 auto 15px; box-shadow: 0 0 10px rgba(255,75,43,0.5); }

#q-txt { text-align: center; margin-bottom: 15px; min-height: 45px; font-size: 18px; padding: 0 5px; }

.option { background: rgba(255,255,255,0.05); padding: 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); cursor: pointer; margin-bottom: 8px; text-align: right; font-size: 15px; }

.end-btn { background: var(--red); color: white; border: none; padding: 12px; border-radius: 12px; cursor: pointer; font-weight: bold; margin-top: 10px; width: 100%; }

.stats-text { text-align: right; background: rgba(255,255,255,0.03); padding: 15px; border-radius: 15px; margin-bottom: 10px; }

.res-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; border-bottom: 1px dashed rgba(255,255,255,0.1); }

.history-scroll { flex: 1; overflow-y: auto; padding-right: 5px; }

.history-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--gold); padding-bottom: 8px; margin-bottom: 10px; }

.history-item { border-bottom: 1px solid #333; padding: 12px 0; text-align: right; font-size: 14px; }

.social-footer { position: absolute; bottom: 0; left: 0; width: 100%; display: flex; justify-content: space-around; background: #111; padding: 10px 0; border-top: 1px solid rgba(212,175,55,0.2); }

.social-block { display: flex; flex-direction: column; align-items: center; font-size: 10px; }

.social-block i { font-size: 20px; color: var(--gold); margin-bottom: 3px; }

.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); display: flex; align-items: center; justify-content: center; z-index: 100; }

.modal-content { background: #111; padding: 20px; border-radius: 20px; border: 2px solid var(--gold); width: 85%; max-width: 320px; text-align: center; }

.info-social-row { display: flex; justify-content: space-around; margin-top: 15px; font-size: 11px; }

.info-social-row i { color: var(--gold); font-size: 20px; margin-bottom: 4px; }

