/* --- Blue, Yellow, Green & White Theme --- */
:root {
    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --bg-card: #f1f5f9;
    --accent-blue: #2563eb;
    --accent-yellow: #eab308;
    --accent-green: #16a34a;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

/* --- General Styles --- */
body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Pixelify Sans', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    opacity: 0;
    animation: pageFadeIn 0.45s ease forwards;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* --- Home Page Background --- */
.home-page {
    position: relative;
    background-image: url('../assets/bg1.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.home-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.28);
    z-index: 0;
    pointer-events: none;
}

.home-page .container {
    position: relative;
    z-index: 1;
}

.home-page nav {
    position: sticky;
    top: 0;
    z-index: 10;
}

.home-page .container {
    display: flex;
    flex-direction: column;
    min-height: auto;
    align-items: center;
    justify-content: flex-start;
    padding-top: 2rem;
    width: 100%;
    max-width: 1180px;
}

.home-page .container > section:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: min(680px, calc(100vh - 90px));
    padding: 4rem 1.5rem !important;
    width: 100%;
}

.home-page .container > section:not(:first-child) {
    position: relative;
    z-index: 1;
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.home-page p {
    color: #f8fafc !important;
    text-shadow: 0 2px 8px rgba(15, 23, 42, 0.8);
    font-weight: 700;
    font-size: 1.35rem;
    line-height: 1.6;
    max-width: 760px;
}

/* --- General Styles --- */
body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Pixelify Sans', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    opacity: 0;
    animation: pageFadeIn 0.45s ease forwards;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Non-home page styles */
body:not(.home-page) {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow-x: hidden;
}

body:not(.home-page)::-webkit-scrollbar {
    display: none;
}

body:not(.home-page)::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    z-index: 0;
    pointer-events: none;
}

body:not(.home-page) > * {
    position: relative;
    z-index: 1;
}

body:not(.home-page) nav {
    position: sticky;
    top: 0;
    z-index: 10;
}

/* --- Navigation --- */
nav {
    background: linear-gradient(90deg, var(--accent-blue), #1d4ed8);
    padding: 1.25rem 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
    position: sticky;
    top: 0;
    z-index: 10;
    flex-wrap: wrap;
    justify-content: center;
    isolation: isolate;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.25s ease, background 0.25s ease, text-shadow 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
    white-space: nowrap;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-yellow);
    transform: translateY(-1px);
}

nav a.active {
    background: var(--accent-yellow);
    color: var(--text-main);
    box-shadow: 0 4px 10px rgba(234, 179, 8, 0.25);
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

nav a[href*="admin.html"] {
    margin-left: auto;
    background: transparent;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    padding-right: 0.25rem;
    padding-left: 0.25rem;
}

nav a[href*="admin.html"]:hover {
    background: transparent;
    color: #f8fafc;
}

/* --- Container & Buttons --- */
.container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.btn {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: white;
    padding: 16px 32px;
    min-width: 190px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Pixelify Sans', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
    box-shadow: 0 5px 12px rgba(37, 99, 235, 0.2);
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.05);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.3);
}

/* --- Video Section --- */
.video-section {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.video-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: #ffffff;
    text-shadow: 0 3px 10px rgba(15, 23, 42, 0.7);
    margin-bottom: 1.5rem;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.video-frame {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Game Features on Home Page --- */
.game-features-home {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.5rem 2rem 3rem;
    text-align: center;
}

.home-page .game-features-home {
    margin-top: 0.5rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #ffffff;
    text-shadow: 0 3px 10px rgba(15, 23, 42, 0.7);
    margin-bottom: 0.5rem;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
}

.section-subtitle {
    font-size: 1.15rem;
    color: black;
    text-shadow: 0 2px 8px rgba(15, 23, 42, 0.7);
    margin-bottom: 2rem;
    margin-top: 0;
}

/* --- Form Styles --- */
input, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem;
    background: var(--bg-main);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-main);
    box-sizing: border-box;
    font-size: 1rem;
    font-family: 'Pixelify Sans', sans-serif;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* --- Table Styles --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    background: var(--bg-main);
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    display: table;
    font-size: 1rem;
}

th, td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

th {
    background: var(--accent-blue);
    color: white;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: bold;
}

td {
    font-size: 1.05rem;
}

tr:hover {
    background: var(--bg-light);
}

/* --- Utility Classes --- */
.gradient-text {
    font-size: 3rem; 
    margin: 0 auto 1rem auto;
    display: inline-block;
    width: min(100%, 900px);
    min-height: 170px;
    padding: 1.5rem 2.5rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: black;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
}

.brand-logo {
    display: block;
    width: min(100%, 760px);
    max-width: 100%;
    height: auto;
    margin: 0 auto 1rem auto;
    filter: drop-shadow(0 10px 24px rgba(15, 23, 42, 0.35));
}

/* --- Contact Page Styles --- */
.contact-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.contact-header {
    width: min(100%, 1100px);
    margin: 1rem auto 1.5rem;
    padding: 1.5rem 1.25rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 18px;
    box-shadow: none;
}

.contact-title {
    font-size: clamp(2.2rem, 4vw, 4.2rem);
    line-height: 1.1;
    margin: 0 auto 0.6rem;
    color: #ffffff;
    text-shadow: none;
    letter-spacing: 1px;
    font-weight: 800;
}

.contact-subtitle {
    max-width: 820px;
    margin: 0 auto;
    font-size: clamp(1rem, 1.5vw, 1.35rem);
    color: #e2e8f0;
    text-shadow: none;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 1.5rem;
    width: min(100%, 980px);
    margin-top: 1rem;
}

.contact-panel {
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    padding: 2rem 1.75rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    text-align: left;
}

.contact-panel h2 {
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-size: clamp(1.8rem, 2vw, 2.3rem);
    color: #0f172a;
}

.contact-item {
    margin-bottom: 1.25rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-label {
    display: block;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.contact-item a,
.contact-item p {
    margin: 0;
    color: #475569;
    font-size: 1rem;
    text-decoration: none;
    line-height: 1.6;
}

.contact-item a:hover {
    color: #1d4ed8;
}

.faq-item {
    padding: 1rem 0;
    border-top: 1px solid rgba(148, 163, 184, 0.45);
}

.faq-item:first-of-type {
    border-top: none;
    padding-top: 0;
}

.faq-item h3 {
    margin: 0 0 0.5rem;
    color: #0f172a;
    font-size: 1.1rem;
}

.faq-item p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

.about-page {
    text-align: center;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.game-feature-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    width: 100%;
    margin: 2rem 0 0;
}

.home-page .game-feature-content .info-card h2,
.home-page .game-feature-content .mission-card h2,
.home-page .game-feature-content .vision-card h2,
.home-page .game-feature-content .info-card p,
.home-page .game-feature-content .mission-card p,
.home-page .game-feature-content .vision-card p,
.home-page .values-section .value-item h3,
.home-page .values-section .value-item p {
    color: #0f172a !important;
    text-shadow: none !important;
}

.home-page .game-feature-content .info-card p,
.home-page .game-feature-content .mission-card p,
.home-page .game-feature-content .vision-card p,
.home-page .values-section .value-item p {
    color: #475569 !important;
}

.credits-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.info-card {
    background: rgba(248, 250, 252, 0.93);
    padding: 2rem 2.25rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
}

.info-card h2 {
    margin-top: 0;
    font-size: 1.8rem;
    color: #0f172a;
}

.info-card p {
    color: #475569;
    font-size: 1rem;
    margin-bottom: 0;
}

.mission-card h2,
.vision-card h2 {
    margin-top: 0;
    font-size: 1.8rem;
    color: #0f172a;
}

.mission-card p,
.vision-card p {
    color: #475569;
    font-size: 1rem;
}

/* --- About Page Hero and Values --- */
.about-hero {
    width: min(100%, 1100px);
    margin: 1rem auto 1.5rem;
    padding: 1.5rem 1.25rem 1rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 18px;
    box-shadow: none;
}

.about-title {
    font-size: clamp(2.2rem, 4vw, 4.2rem);
    line-height: 1.1;
    margin: 0 auto 0.6rem;
    color: #ffffff;
    text-shadow: none;
    letter-spacing: 1px;
    font-weight: 800;
}

.about-subtitle {
    max-width: 820px;
    margin: 0 auto;
    font-size: clamp(1rem, 1.5vw, 1.35rem);
    color: #e2e8f0;
    text-shadow: none;
}

.values-section {
    width: 100%;
    background: rgba(248, 250, 252, 0.93);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    margin: 2rem 0 0;
}

.admin-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 1.5rem 2rem 3rem;
}

.admin-hero {
    width: min(100%, 900px);
    margin: 0 auto 1.75rem;
    padding: 2rem 1.5rem;
    background: rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(8px);
}

.admin-hero .about-title {
    font-family: 'Press Start 2P', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.6rem);
}

.admin-hero .about-subtitle {
    color: #f8fafc;
}

.admin-login-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem 1rem;
}

.login-card {
    width: min(100%, 460px);
    background: rgba(248, 250, 252, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 22px;
    padding: 2rem 1.5rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    text-align: center;
}

.login-badge {
    display: inline-block;
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.login-card h2 {
    margin: 0 0 0.5rem;
    color: #0f172a;
    font-size: clamp(2rem, 3vw, 2.8rem);
}

.login-card p {
    margin: 0 0 1.5rem;
    color: #475569;
    font-size: 1rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.login-form label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.95rem;
}

.login-form input {
    margin: 0;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    padding: 0.9rem 1rem;
    font-size: 1rem;
}

.login-btn {
    margin-top: 0.5rem;
    border: none;
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.3);
}

.hidden {
    display: none !important;
}

.admin-dashboard {
    display: block;
}

.admin-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin: 0 auto 1.75rem;
    max-width: 980px;
}

.stat-card {
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.stat-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #475569;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card strong {
    color: #0f172a;
    font-size: clamp(1.5rem, 2vw, 2.2rem);
}

.admin-panel {
    background: rgba(248, 250, 252, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
}

.admin-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-panel-header h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.5rem, 2vw, 2.2rem);
}

.panel-chip {
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.admin-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #dbe4f0;
}

.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
}

.admin-table th,
.admin-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    text-align: left;
    color: #0f172a;
    font-size: 0.95rem;
}

.admin-table th {
    background: #e8f0ff;
    color: #0f172a;
    font-weight: 700;
}

.admin-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-review {
    background: #fef3c7;
    color: #92400e;
}

.status-flagged {
    background: #fee2e2;
    color: #991b1b;
}

.status-pending {
    background: #e2e8f0;
    color: #334155;
}

.values-section h2 {
    text-align: center;
    color: #0f172a;
    font-size: 2rem;
    margin-bottom: 2rem;
    margin-top: 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.value-item {
    text-align: center;
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.value-item h3 {
    color: #0f172a;
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.value-item p {
    color: #334155;
    font-size: 1rem;
    margin: 0;
}

/* --- Footer Styles --- */
footer {
    text-align: center;
    padding: 2rem;
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    margin: 3rem auto 0;
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-footer,
.home-page footer {
    width: 100%;
    max-width: none;
    margin: 3rem 0 0 0;
    background: rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

footer p {
    margin: 0;
    text-align: center;
    color: #ffffff;
}

/* --- Success Message --- */
.success-msg {
    background: #dcfce7;
    color: var(--accent-green);
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid var(--accent-green);
    margin-top: 1.5rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .home-page {
        background-color: #0877c8;
        background-image: none;
        min-height: auto;
        overflow-y: auto;
    }

    .home-page::before {
        position: fixed;
        background-color: #0877c8;
        background-image:
            linear-gradient(rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.35)),
            url('../assets/Mbg1.png');
        background-size: cover, auto 100%;
        background-position: center, 65% top;
        background-repeat: no-repeat;
    }

    .home-page .container {
        min-height: auto;
        padding-top: 1rem;
    }

    .home-page section:first-child {
        min-height: calc(100vh - 70px);
    }

    .home-page p {
        font-size: 1.05rem;
    }

    .container {
        max-width: 100%;
        padding: 0 1rem;
        margin: 1.25rem auto;
    }

    nav {
        padding: 0.65rem 0.5rem;
        gap: 0.25rem;
        overflow: visible;
        justify-content: flex-start;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    nav::-webkit-scrollbar {
        display: none;
    }

    nav a {
        font-size: 0.8rem;
        padding: 0.45rem 0.65rem;
        letter-spacing: 0.35px;
        line-height: 1.2;
    }

    .btn {
        display: inline-block;
        width: auto;
        text-align: center;
    }

    .gradient-text {
        width: min(100%, 700px);
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        min-height: 110px;
        padding: 0.9rem 1rem;
        background-size: contain;
    }

    .about-content,
    .game-feature-content,
    .credits-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 2rem 0;
    }

    .values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .about-hero {
        padding: 2rem 1rem !important;
    }

    .about-title {
        font-size: 2rem !important;
    }
    
    .stat div:first-child {
        font-size: 2rem !important;
    }

    table {
        display: table;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 1rem;
    }

    th, td {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .video-section {
        margin: 0;
        padding: 1.5rem 1rem;
    }

    .video-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .video-container {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .home-page {
        min-height: auto;
        overflow-y: auto;
    }

    .home-page .container {
        min-height: auto;
        padding-top: 60px;
    }

    .home-page section:first-child {
        min-height: calc(100vh - 60px);
    }

    .container {
        padding: 0 0.85rem;
    }

    .btn {
        display: block;
        width: 100%;
    }

    input, textarea {
        font-size: 0.95rem;
    }

    nav {
        padding: 0.6rem 0.4rem;
        gap: 0.18rem;
        overflow: visible;
        justify-content: center;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    nav::-webkit-scrollbar {
        display: none;
    }

    nav a {
        font-size: 0.72rem;
        padding: 0.42rem 0.55rem;
        letter-spacing: 0.35px;
        line-height: 1.2;
    }

    table {
        margin-top: 1rem;
        font-size: 0.95rem;
    }

    th, td {
        padding: 13px 12px;
        font-size: 0.85rem;
    }

    .about-content,
    .game-feature-content,
    .credits-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1rem 0;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .video-section {
        margin: 0;
        padding: 1.5rem 0.85rem;
    }

    .video-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .video-container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .admin-container {
        margin: 0 auto;
        padding: 1rem 1rem 2rem;
    }

    .admin-login-panel {
        min-height: calc(100vh - 150px);
        padding: 1rem 0;
    }

    .login-card {
        padding: 1.75rem 1.25rem;
    }

    .admin-hero {
        margin-bottom: 1.25rem;
        padding: 1.5rem 1rem;
    }

    .admin-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
        margin-bottom: 1.25rem;
    }

    .admin-overview .stat-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .stat-card {
        padding: 1.2rem 0.75rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .admin-panel {
        padding: 1rem;
    }

    .admin-panel-header h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .admin-container {
        padding: 0.75rem 0.75rem 1.5rem;
    }

    .admin-page nav {
        gap: 0.15rem;
        padding: 0.6rem 0.35rem;
    }

    .admin-page nav a {
        padding: 0.42rem 0.48rem;
        font-size: 0.7rem;
        letter-spacing: 0.2px;
    }

    .admin-page nav a[href*="admin.html"] {
        margin-left: 0;
    }

    .admin-login-panel {
        min-height: calc(100vh - 125px);
    }

    .login-card {
        border-radius: 18px;
        padding: 1.5rem 1rem;
    }

    .admin-hero .about-title {
        font-size: 1.4rem;
    }

    .admin-hero .about-subtitle {
        font-size: 0.95rem;
    }

    .admin-overview {
        gap: 0.65rem;
    }

    .stat-card {
        border-radius: 14px;
        padding: 1rem 0.5rem;
    }

    .admin-panel {
        padding: 0.85rem;
        border-radius: 16px;
    }

    .admin-panel-header {
        align-items: flex-start;
    }

    .admin-panel-header h2 {
        font-size: 1.2rem;
    }

    .panel-chip {
        padding: 0.35rem 0.65rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 360px) {
    .admin-overview {
        grid-template-columns: 1fr;
    }

    .admin-overview .stat-card:last-child:nth-child(odd) {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    .admin-panel-header {
        align-items: center;
    }

    .admin-table-wrap {
        overflow: visible;
        border: 0;
    }

    .admin-table {
        display: block;
        min-width: 0;
        border: 0;
        background: transparent;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tbody {
        display: grid;
        gap: 0.75rem;
    }

    .admin-table tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: hidden;
        border: 1px solid #dbe4f0;
        border-radius: 12px;
        background: #ffffff;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    }

    .admin-table tbody tr:nth-child(even) {
        background: #ffffff;
    }

    .admin-table tbody td {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
        min-width: 0;
        padding: 0.65rem 0.75rem;
        border-bottom: 1px solid #edf1f7;
        white-space: normal;
        overflow-wrap: anywhere;
        font-size: 0.85rem;
    }

    .admin-table tbody td::before {
        content: attr(data-label);
        color: #64748b;
        font-size: 0.65rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .admin-table tbody td:last-child {
        grid-column: 1 / -1;
        border-bottom: 0;
        background: #f8fafc;
    }
}
