@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Montserrat:wght@400;500;600;700&family=EB+Garamond:ital,wght@0,400;0,600;1,400;1,600&display=swap');

:root {
    --blood-red: #b20710;
    --deep-black: #050505;
    --surface-dark: #121212;
    --text-white: #e0e0e0;
    --text-gray: #a0a0a0;
    --ad-label-color: #555;
    --card-transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Font Stacks - 묵직하고 깔끔한 구성 */
    --font-heading: 'Cinzel', serif; /* 무거운 권위감 */
    --font-body: 'Montserrat', sans-serif; /* 현대적 가독성 */
    --font-accent: 'EB Garamond', serif; /* 클래식한 아카이브 느낌 */
}

/* Global Reset & Typography Smoothing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    background-color: var(--deep-black);
}

body {
    background-color: var(--deep-black);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 500; /* 전체적으로 약간 굵게 설정하여 무게감 부여 */
}

/* --- Header & Navigation --- */
header {
    background: #000;
    padding: 25px 0;
    text-align: center;
    border-bottom: 3px solid var(--blood-red);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.9);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--blood-red);
    text-decoration: none;
    letter-spacing: 5px;
    text-transform: uppercase;
    transition: 0.3s;
}

.logo:hover {
    text-shadow: 0 0 15px rgba(178, 7, 16, 0.6);
}

nav {
    background: #0a0a0a;
    padding: 15px 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    border-bottom: 1px solid #1a1a1a;
}

nav a {
    color: #888;
    text-decoration: none;
    transition: all 0.3s ease;
}

nav a:hover {
    color: #fff;
    letter-spacing: 4px;
}

/* --- Main Layout --- */
main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- AdSense Compliance --- */
.ad-container {
    width: 100%;
    margin: 40px auto;
    padding: 10px;
    text-align: center;
}

.ad-label {
    display: block;
    font-size: 11px;
    color: var(--ad-label-color);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

/* --- Tournament Section --- */
.game-info {
    background: #0d0d0d;
    padding: 20px 0;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    border-bottom: 1px solid #1a1a1a;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.round-tag {
    color: var(--blood-red);
    margin-right: 15px;
    font-family: var(--font-heading);
}

#battle-screen {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    position: relative;
    background: #000;
}

@media (min-width: 768px) {
    #battle-screen { flex-direction: row; }
}

.choice-item {
    flex: 1;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.choice-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease, filter 0.8s ease;
    filter: brightness(0.4) contrast(1.1);
}

.choice-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.7) contrast(1.2);
}

.choice-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    z-index: 2;
}

.choice-details {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 60px 30px;
    text-align: center;
}

.choice-name {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 15px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 2px 2px 10px rgba(0,0,0,1);
}

.choice-desc {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.2rem;
    color: #bbb;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

.vs-divider {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    background: var(--blood-red);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    border: 5px solid #000;
    box-shadow: 0 0 40px rgba(178, 7, 16, 0.4);
    color: #fff;
}

/* --- Result View --- */
#result-screen {
    display: none;
    padding: 100px 20px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.winner-name-final {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 8px;
    text-shadow: 0 0 30px var(--blood-red);
}

.winner-box {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 50px;
    border: 8px solid #1a1a1a;
    outline: 2px solid var(--blood-red);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 100px rgba(0,0,0,1);
}

/* --- Encyclopedia Section --- */
#encyclopedia-section {
    background: #050505;
    padding: 120px 25px;
    border-top: 1px solid #1a1a1a;
}

.encyclopedia-wrapper h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    text-align: center;
    margin-bottom: 80px;
    letter-spacing: 6px;
    text-transform: uppercase;
}

.mystery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 50px;
}

.mystery-card {
    background: #0d0d0d;
    border: 1px solid #1a1a1a;
    transition: 0.5s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.mystery-card:hover {
    transform: translateY(-10px);
    border-color: var(--blood-red);
    background: #111;
}

.mystery-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    filter: grayscale(0.5) brightness(0.6);
    transition: 0.5s;
}

.mystery-card:hover img {
    filter: grayscale(0) brightness(0.9);
}

.mystery-card-content {
    padding: 30px;
}

.mystery-card-content h3 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mystery-card-content p {
    color: #888;
    font-size: 1rem;
    line-height: 1.7;
    height: 5.1em;
    overflow: hidden;
}

.read-more {
    display: inline-block;
    margin-top: 25px;
    color: var(--blood-red);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}

.mystery-card:hover .read-more {
    border-color: var(--blood-red);
}

/* --- Footer --- */
footer {
    background: #000;
    padding: 100px 25px;
    text-align: center;
    border-top: 2px solid #1a1a1a;
}

.footer-links {
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--blood-red);
}

footer p {
    color: #333;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- Mystery Detail Pages --- */
article {
    max-width: 800px;
    margin: 80px auto;
    padding: 0 30px;
}

article h1 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 30px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 2px;
}

article h2 {
    font-family: var(--font-heading);
    color: var(--blood-red);
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 60px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-left: 4px solid var(--blood-red);
    padding-left: 20px;
}

article p {
    margin-bottom: 30px;
    font-size: 1.2rem;
    line-height: 1.9;
    color: #ccc;
    font-weight: 400; /* 본문 가독성을 위해 400으로 유지하되 굵기 조절 */
}

.hero-img {
    width: 100%;
    border-radius: 0;
    margin-bottom: 50px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    border: 1px solid #1a1a1a;
}

.quote {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.4rem;
    color: #999;
    border: 1px solid #1a1a1a;
    border-left: 6px solid var(--blood-red);
    padding: 40px;
    margin: 60px 0;
    background: #080808;
    line-height: 1.8;
}

.back-link {
    display: inline-block;
    margin-bottom: 40px;
    color: var(--blood-red);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    border: 1px solid var(--blood-red);
    padding: 10px 20px;
}

.back-link:hover {
    background: var(--blood-red);
    color: #fff;
}

/* --- Mobile Specific Optimization --- */
@media (max-width: 600px) {
    .logo { font-size: 1.4rem; letter-spacing: 3px; }
    .choice-name { font-size: 2rem; letter-spacing: 2px; }
    .choice-desc { font-size: 1.1rem; }
    .winner-name-final { font-size: 2.5rem; letter-spacing: 4px; }
    .encyclopedia-wrapper h2 { font-size: 2rem; letter-spacing: 4px; }
    nav { gap: 15px; font-size: 0.7rem; letter-spacing: 1px; }
    .vs-divider { width: 60px; height: 60px; font-size: 1.2rem; }
    
    article h1 { font-size: 2.2rem; }
    article h2 { font-size: 1.5rem; }
    article p { font-size: 1.1rem; }
    .quote { font-size: 1.2rem; padding: 25px; }
}
