:root {
    --primary: #ff9f1c;
    --secondary: #2ec4b6;
    --accent: #e71d36;
    --dark: #011627;
    --light: #fdfffc;
    --gray: #f8f9fa;
    --text-main: #333;
    --rounded: 20px;
    --shadow: 0 12px 30px rgba(0,0,0,0.08);
}

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

body {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    color: var(--text-main);
    background-color: var(--light);
    line-height: 1.7;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Header */
header {
    background: rgba(253, 255, 252, 0.95);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.logo {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
}

/* Hero */
.hero {
    background: radial-gradient(circle at top right, #ff9a30, #ff9f1c);
    background-attachment: fixed;
    padding: 100px 20px;
    text-align: center;
    color: white;
    border-radius: 0 0 100px 100px;
    margin-bottom: 40px;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.2);
    display: inline-block;
    padding: 5px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    font-weight: 800;
}

/* Section General */
.section { padding: 100px 0; }
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-weight: 800;
}

.alt-bg { background-color: var(--gray); }
.dark-bg { background-color: var(--dark); color: white; }
.dark-bg .section-title { color: white; }

/* Game Cards */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.game-card {
    background: white;
    border-radius: var(--rounded);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.4s;
    position: relative;
    border: 1px solid #eee;
}

.game-card.highlight { border: 3px solid var(--primary); }
.game-card:hover { transform: translateY(-15px); }

.game-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--dark);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    z-index: 10;
}

.game-thumb {
    aspect-ratio: 16 / 9;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eee;
}

.game-info { padding: 30px; }
.game-info h3 { margin-bottom: 12px; font-size: 1.4rem; }
.game-info p { color: #666; font-size: 0.95rem; margin-bottom: 25px; }

.play-btn {
    display: block;
    text-align: center;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 15px;
    border-radius: 15px;
    font-weight: 800;
}

/* Story/Data sections */
.story-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.visual-card {
    background: white;
    padding: 40px;
    border-radius: var(--rounded);
    border: 2px dashed var(--primary);
    text-align: center;
    font-weight: 700;
    color: var(--primary);
}

.story-image-card {
    background: white;
    padding: 14px;
    border-radius: var(--rounded);
    box-shadow: var(--shadow);
}

.story-image {
    display: block;
    width: 100%;
    border-radius: 14px;
}

footer { padding: 60px 0; text-align: center; background: var(--gray); }

.footer-links {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 768px) {
    .hero h2 { font-size: 1.8rem; }
    .story-item { grid-template-columns: 1fr; }
    nav ul { display: none; }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--light);
    border-radius: var(--rounded);
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: var(--shadow);
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.4s ease-out 0.1s forwards;
    overflow: hidden;
}

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

.modal-body {
    padding: 40px;
    text-align: center;
}

.modal-body h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.modal-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.modal-body p {
    margin-bottom: 30px;
    font-size: 1rem;
    color: #555;
    text-align: left;
}

.play-btn.large {
    font-size: 1.1rem;
    padding: 18px 30px;
}

/* New Dashboard & Stats Styles */
.data-dashboard {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--rounded);
    padding: 40px;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
}

.dashboard-header h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.dashboard-note {
    margin-top: 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s;
}

.stat-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-value .unit {
    font-size: 1.2rem;
    margin-left: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #ddd;
    line-height: 1.4;
}

/* Trend Graph */
.trend-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
}

.trend-text h4 {
    font-size: 1.4rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.trend-text p {
    color: #ccc;
    font-size: 0.95rem;
}

.line-chart {
    width: 100%;
    height: auto;
    overflow: visible;
}

.chart-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: dash 2s ease-out forwards;
}

@keyframes dash {
    to { stroke-dashoffset: 0; }
}

.chart-point {
    opacity: 0;
    animation: fadeIn 0.5s ease-out 1.5s forwards;
}

/* Roles Grid */
.games-roles h4 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--secondary);
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.role-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid var(--secondary);
}

.role-item h5 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: white;
}

.role-item p {
    font-size: 0.9rem;
    color: #ccc;
}

.role-item strong {
    color: var(--primary);
}

/* Concept Section */
.concept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.concept-card {
    background: white;
    color: var(--text-main);
    padding: 35px;
    border-radius: var(--rounded);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.concept-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent);
}

.concept-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.concept-card p {
    font-size: 0.95rem;
    color: #555;
}

/* Text Highlight & Underline Utilities */
.text-highlight {
    background: linear-gradient(transparent 60%, rgba(255, 159, 28, 0.4) 60%);
    font-weight: 700;
    padding: 0 2px;
}

.underline-key {
    text-decoration: underline;
    text-decoration-color: var(--primary);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    font-weight: 700;
    color: white;
}

.underline-dark {
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    font-weight: 700;
}

/* Data List (trend section) */
.data-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.data-list li {
    color: #ccc;
    font-size: 0.95rem;
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
}

.data-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.85rem;
}

/* Role List */
.role-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.role-list li {
    font-size: 0.9rem;
    color: #ccc;
    padding-left: 16px;
    position: relative;
    line-height: 1.4;
}

.role-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: 700;
}

.role-list strong {
    color: var(--primary);
}

/* Concept Card Lists */
.concept-lead {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.concept-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.concept-list li {
    font-size: 0.9rem;
    color: #555;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}

.concept-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.concept-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
}

.concept-list strong {
    color: var(--dark);
}

.profile-section {
    margin-top: 80px;
}

.profile-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: white;
}

.profile-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 36px;
    align-items: center;
    background: white;
    border-radius: var(--rounded);
    padding: 36px;
    box-shadow: var(--shadow);
}

.profile-image-wrap {
    width: 100%;
}

.profile-image {
    width: 100%;
    display: block;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.profile-content h4 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 20px;
}

.profile-subtitle {
    font-size: 1.05rem;
    color: var(--dark);
    margin: 6px 0 14px;
}

.profile-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-list li {
    color: #555;
    line-height: 1.7;
    padding-left: 18px;
    position: relative;
}

.profile-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.profile-link {
    display: inline-block;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 14px;
    font-weight: 800;
}

.policy-page {
    background: linear-gradient(180deg, #fff8ef 0%, #fdfffc 240px);
    min-height: 100vh;
}

.policy-main {
    padding: 80px 0 100px;
}

.policy-card {
    max-width: 920px;
    margin: 0 auto;
    background: white;
    border-radius: var(--rounded);
    box-shadow: var(--shadow);
    padding: 48px;
}

.policy-header {
    margin-bottom: 36px;
}

.policy-header h1 {
    font-size: 2.3rem;
    color: var(--dark);
    margin-bottom: 14px;
}

.policy-header p {
    color: #666;
}

.policy-content section + section {
    margin-top: 32px;
}

.policy-content h2 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 12px;
}

.policy-content p,
.policy-content li {
    color: #555;
}

.policy-content ul {
    margin: 12px 0 0 20px;
}

.policy-back {
    margin-top: 36px;
}

@media (max-width: 768px) {
    .trend-section {
        grid-template-columns: 1fr;
    }

    .profile-card {
        grid-template-columns: 1fr;
        padding: 28px;
    }

    .policy-main {
        padding: 60px 0 80px;
    }

    .policy-card {
        padding: 30px 24px;
    }

    .policy-header h1 {
        font-size: 1.8rem;
    }
}
