:root {
    --bg-dark: #000000;
    --tv-blue: #0b183b;
    --border-gold: #d4af37;
    --text-white: #ffffff;
    --highlight-orange: #ff9900;
    --correct-green: #28a745;
    --wrong-red: #dc3545;
}

* { box-sizing: border-box; }
body {
    margin: 0; background: radial-gradient(circle at center, #1a2f5c 0%, #000 100%);
    color: white; font-family: 'Verdana', sans-serif; height: 100vh; overflow: hidden;
}

/* --- YENİ MODERN GİRİŞ EKRANI --- */
.ambient-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 100vw; height: 100vh; z-index: -2;
    background: radial-gradient(circle, rgba(16, 36, 71, 1) 0%, rgba(2, 11, 32, 1) 80%);
}
.hero-logo {
    position: relative; width: 280px; height: 280px; margin-bottom: 40px;
    animation: popIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.logo-rays {
    position: absolute; width: 100%; height: 100%; border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, rgba(212, 175, 55, 0.1) 0deg 10deg, transparent 10deg 20deg);
    animation: spinRays 20s linear infinite; z-index: -1;
}
.logo-inner {
    width: 100%; height: 100%; border-radius: 50%;
    background: radial-gradient(circle, #0f2b5a 40%, #000 100%);
    border: 6px solid #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6), inset 0 0 20px rgba(0,0,0,0.8);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    position: relative; overflow: hidden;
}
.question-marks i {
    position: absolute; font-size: 8rem; color: rgba(255, 255, 255, 0.05); z-index: 0;
}
.question-marks i:first-child { top: -20px; left: 20px; transform: rotate(-15deg); }
.question-marks i:last-child { bottom: -20px; right: 20px; transform: rotate(15deg); }
.logo-text { z-index: 2; text-align: center; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.logo-text span { display: block; font-size: 1.5rem; color: #fff; letter-spacing: 3px; font-weight: 300; }
.logo-text strong {
    display: block; font-size: 2.2rem; color: #d4af37;
    background: linear-gradient(to bottom, #f3e5ab, #d4af37);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    font-family: 'Arial Black', sans-serif; letter-spacing: 1px;
}
.login-panel {
    background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1); padding: 30px 40px;
    border-radius: 20px; width: 90%; max-width: 450px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: slideUp 0.8s ease-out 0.3s forwards; opacity: 0; transform: translateY(20px);
}
.panel-header { text-align: center; margin-bottom: 25px; }
.panel-header h3 { color: #fff; margin: 0; letter-spacing: 2px; font-weight: 400; }
.gold-line { width: 50px; height: 3px; background: #d4af37; margin: 10px auto 0; border-radius: 2px; }
.input-wrapper { position: relative; margin-bottom: 25px; }
.input-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #d4af37; }
.login-panel input[type="text"] {
    width: 100%; padding: 15px 15px 15px 45px; background: rgba(0, 0, 0, 0.3);
    border: 1px solid #444; color: white; border-radius: 10px; font-size: 1.1rem; transition: 0.3s;
}
.login-panel input[type="text"]:focus { border-color: #d4af37; box-shadow: 0 0 10px rgba(212, 175, 55, 0.3); outline: none; }
.class-selector-wrapper { text-align: center; margin-bottom: 25px; }
.class-selector-wrapper p { color: #aaa; margin-bottom: 10px; font-size: 0.9rem; }
.class-selection { display: flex; justify-content: center; gap: 10px; }
.class-btn {
    width: 50px; height: 50px; border-radius: 50%; background: #111; border: 2px solid #333;
    color: #fff; font-size: 1.2rem; font-weight: bold; cursor: pointer; transition: 0.3s;
}
.class-btn:hover { border-color: #d4af37; transform: translateY(-3px); }
.class-btn.selected { background: #d4af37; color: #000; border-color: #fff; box-shadow: 0 0 15px #d4af37; }
.start-btn {
    width: 100%; padding: 16px; background: linear-gradient(90deg, #d4af37, #f3e5ab, #d4af37);
    background-size: 200% auto; border: none; border-radius: 10px;
    color: #000; font-weight: 800; font-size: 1.2rem; cursor: pointer; transition: 0.5s;
    display: flex; justify-content: center; align-items: center; gap: 10px;
}
.start-btn:hover:not(:disabled) { background-position: right center; box-shadow: 0 0 20px rgba(212, 175, 55, 0.6); }
.start-btn:disabled { background: #333; color: #777; cursor: not-allowed; }
.footer-credit { position: absolute; bottom: 10px; color: #444; font-size: 0.8rem; }

/* --- OYUN ALANI (TV ŞEKLİ) --- */
.screen { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hidden { display: none !important; }
.tv-shape {
    background: linear-gradient(90deg, #000 0%, var(--tv-blue) 35%, var(--tv-blue) 65%, #000 100%);
    border: 2px solid #555; border-radius: 40px; color: white; text-align: center;
    position: relative; box-shadow: 0 0 15px rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center;
}
.tv-line, .tv-line-sm { height: 2px; background: #555; flex-grow: 1; }
.tv-line { margin: 0 10px; } .tv-line-sm { width: 20px; }
.game-layout { display: flex; width: 100%; height: 100vh; padding: 20px; }
.main-game-area { flex: 3; display: flex; flex-direction: column; justify-content: center; padding-right: 20px; }
.sidebar { flex: 1; background: rgba(0,0,0,0.6); border-left: 2px solid #333; border-radius: 15px; display: flex; flex-direction: column; align-items: center; padding: 20px; }
.timer-circle { width: 70px; height: 70px; border-radius: 50%; border: 3px solid var(--border-gold); display: flex; justify-content: center; align-items: center; font-size: 2rem; font-weight: bold; margin: 0 auto 20px auto; }
.question-wrapper { display: flex; align-items: center; margin-bottom: 30px; }
.question-box { width: 100%; min-height: 120px; font-size: 1.3rem; padding: 20px; border-color: #fff; }
.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.option-wrapper { display: flex; align-items: center; }
.option-btn { width: 100%; padding: 15px; font-size: 1.1rem; cursor: pointer; border: 2px solid #777; justify-content: flex-start; transition: 0.2s; }
.opt-prefix { color: var(--border-gold); font-weight: bold; margin-right: 10px; }
.option-btn:hover { border-color: var(--border-gold); background: #1a2f5c; }
.option-btn.selected { background: var(--highlight-orange); color: black; border-color: white; }
.option-btn.correct { background: var(--correct-green); animation: blink 0.5s infinite; }
.option-btn.wrong { background: var(--wrong-red); }
.jokers-area { display: flex; gap: 10px; margin-bottom: 20px; }
.joker-btn { width: 50px; height: 50px; border-radius: 50%; border: 2px solid #fff; background: #102447; color: #fff; cursor: pointer; font-size: 1.2rem; position: relative; }
.joker-btn:hover { border-color: var(--border-gold); color: var(--border-gold); }
.joker-btn.used { opacity: 0.5; cursor: not-allowed; }
.joker-btn.used::after { content: ''; position: absolute; top:0; left:0; width:100%; height:100%; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><line x1='10' y1='10' x2='90' y2='90' stroke='red' stroke-width='10'/><line x1='90' y1='10' x2='10' y2='90' stroke='red' stroke-width='10'/></svg>") no-repeat center; background-size: 80%; }
.money-ladder-container { width: 100%; overflow-y: auto; }
#money-ladder { list-style: none; padding: 0; display: flex; flex-direction: column-reverse; gap: 2px; }
#money-ladder li { display: flex; justify-content: space-between; padding: 5px 10px; border-radius: 5px; color: var(--border-gold); font-size: 0.9rem; }
#money-ladder li.active { background: var(--highlight-orange); color: black; border-radius: 15px; }
#money-ladder li.active * { color: black; }
#money-ladder li.passed .ladder-val { color: var(--correct-green); }
#money-ladder li.safe-haven { color: white; font-weight: bold; }
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 1000; display: flex; justify-content: center; align-items: center; }
.modal-content { background: var(--tv-blue); padding: 30px; border: 3px solid var(--border-gold); width: 90%; max-width: 500px; flex-direction: column; }
.modal-buttons { display: flex; gap: 20px; justify-content: center; }
.action-btn { padding: 10px 30px; border: none; cursor: pointer; font-weight: bold; color: white; border-radius: 5px; }
.btn-green { background: var(--correct-green); } .btn-red { background: var(--wrong-red); }
.restart-btn { padding: 10px 30px; background: var(--border-gold); border: none; cursor: pointer; font-weight: bold; }
@keyframes spinRays { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes popIn { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 50% { opacity: 0.5; } }
@media (max-width: 768px) { .game-layout { flex-direction: column; overflow-y: scroll; } .sidebar { flex-direction: row; justify-content: space-between; margin-top: 20px; } .options-grid { grid-template-columns: 1fr; } }