:root {
    /* Hextech Dark Theme Colors */
    --bg-primary: #0a1428;     /* Deep Navy / Black */
    --bg-secondary: #091428;   /* Slightly lighter navy */
    --bg-panel: rgba(1, 10, 19, 0.85); /* Transparent panel dark */
    --text-primary: #f0e6d2;   /* Gold/Parchment */
    --text-secondary: #a09b8c; /* Dull Gold */
    --accent-gold: #c89b3c;    /* Hextech Gold */
    --accent-gold-hover: #f0e6d2; 
    --accent-blue: #0ac8b9;    /* Hextech Magic Blue */
    --accent-blue-hover: #03978a;
    --border-color: #463714;   /* Dark Gold Border */
    --font-main: 'Noto Sans KR', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    background-image: radial-gradient(circle at top center, #1e282d 0%, var(--bg-primary) 60%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    position: relative;
}

/* Header & Typography */
header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.visitor-counter {
    text-align: right;
    margin-bottom: 15px;
}

.visitor-counter img {
    height: 20px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.visitor-counter img:hover {
    opacity: 1;
}

.logo {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(200, 155, 60, 0.5);
}

h2 {
    font-size: 1.6rem;
    color: var(--accent-blue);
    margin-bottom: 15px;
    font-weight: 700;
}

h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Screens */
.screen {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(200, 155, 60, 0.1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.intro-content {
    background-color: rgba(30, 35, 40, 0.4);
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid var(--accent-blue);
    margin-bottom: 25px;
    text-align: left;
}

.intro-content p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.feature-list {
    list-style-type: none;
    margin-top: 15px;
    padding-left: 5px;
}

.feature-list li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.screen.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.screen.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.actions.center {
    justify-content: center;
}

button {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary-btn {
    background: linear-gradient(180deg, var(--accent-blue) 0%, #03978a 100%);
    color: #fff;
    border: 1px solid var(--accent-blue);
    box-shadow: 0 0 10px rgba(10, 200, 185, 0.3);
    flex: 1;
}

.primary-btn:hover {
    background: linear-gradient(180deg, var(--accent-blue-hover) 0%, #027a6f 100%);
    box-shadow: 0 0 15px rgba(10, 200, 185, 0.6);
    transform: translateY(-2px);
}

.secondary-btn {
    background: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    flex: 1;
}

.secondary-btn:hover {
    background: rgba(200, 155, 60, 0.1);
    box-shadow: 0 0 10px rgba(200, 155, 60, 0.3);
}

/* Quiz Specifics */
.progress-bar-container {
    width: 100%;
    height: 6px;
    background-color: var(--bg-primary);
    border-radius: 3px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #1e2328;
}

.progress {
    height: 100%;
    background-color: var(--accent-blue);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--accent-blue);
}

.question-container {
    margin-bottom: 25px;
}

.q-num {
    display: inline-block;
    color: var(--accent-gold);
    font-weight: 900;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-btn {
    background-color: rgba(30, 35, 40, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 15px 20px;
    text-align: left;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.option-btn:hover {
    background-color: rgba(200, 155, 60, 0.15);
    border-color: var(--accent-gold);
    transform: translateX(5px);
}

/* Loading Screen */
#loading-screen {
    text-align: center;
    padding: 50px 20px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--bg-primary);
    border-top: 4px solid var(--accent-blue);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
    position: relative;
}

.inner-spin {
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 3px solid transparent;
    border-top: 3px solid var(--accent-gold);
    border-radius: 50%;
    animation: spin-reverse 0.7s linear infinite;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes spin-reverse { 0% { transform: rotate(360deg); } 100% { transform: rotate(0deg); } }

/* Results Screen */
.role-analysis {
    background-color: rgba(30, 35, 40, 0.6);
    border: 1px solid var(--border-color);
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    text-align: center;
}

.role-reason-text {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 0;
    line-height: 1.5;
}

.role-reason-text strong {
    color: var(--accent-gold);
    font-size: 1.2rem;
}

.roles-container {
    margin-bottom: 30px;
}

.role-bar-wrapper {
    margin-bottom: 12px;
}

.role-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.role-progress-bg {
    width: 100%;
    height: 12px;
    background-color: var(--bg-primary);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #1e2328;
}

.role-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #091428 0%, var(--accent-gold) 100%);
    width: 0%;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.champ-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.champ-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 0 15px rgba(200, 155, 60, 0.4);
    object-fit: cover;
}

.champ-role-badge {
    display: inline-block;
    background-color: var(--accent-blue);
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.highlight {
    color: var(--accent-gold);
    font-size: 1.8rem;
    margin-bottom: 0;
    border: none;
}

.reason {
    font-style: italic;
    color: var(--text-primary);
    background-color: rgba(30, 35, 40, 0.8);
    padding: 15px;
    border-left: 4px solid var(--accent-blue);
    border-radius: 4px;
    margin-bottom: 20px;
}

.guide-section, .streamer-section {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

h4 {
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.share-prompt {
    background-color: rgba(10, 200, 185, 0.05);
    border: 1px dashed var(--accent-blue);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.share-prompt p {
    color: var(--accent-blue);
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Site Footer */
.site-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(200, 155, 60, 0.2);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-links {
    margin: 10px 0;
}

.footer-links a {
    color: var(--accent-gold);
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-gold-hover);
    text-decoration: underline;
}

.disclaimer {
    font-size: 0.75rem;
    opacity: 0.7;
}