/* Palette */
:root {
    --bg: #050505;
    --panel: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.12);
    --text: #f4f4f4;
    --text-muted: rgba(244, 244, 244, 0.68);
    --text-soft: rgba(244, 244, 244, 0.4);
    --accent: #ffffff;
    --danger: #ff5656;
    --success: #49c772;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow: 0 35px 70px rgba(0, 0, 0, 0.5);
    --shadow-soft: 0 24px 44px rgba(0, 0, 0, 0.35);
    --transition: 180ms ease-out;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Noto Kufi Arabic", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 60%), var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    direction: rtl;
    text-align: right;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity var(--transition);
}

a:hover {
    opacity: 0.85;
}

.page-shell {
    width: min(720px, 100%);
    margin: 0 auto;
    padding: 72px 22px 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
}

.home-shell {
    gap: 32px;
}

.page-admin .page-shell,
.page-admin-login .page-shell {
    width: min(960px, 100%);
}

.home-header h1 {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 3.2rem);
    letter-spacing: -0.03em;
}

.home-header p {
    margin: 12px 0 0;
    color: var(--text-muted);
    max-width: 420px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.stat-stack {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.stat-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 18px;
    box-shadow: var(--shadow-soft);
    width: 100%;
}

.stat-label {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 12px;
}

.stat-heading {
    margin: 4px 0 0;
    font-size: 1.6rem;
}

.stat-detail {
    margin: 12px auto 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Statistics Dashboard */
.statistics-dashboard {
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px 20px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
}

.statistics-dashboard h2 {
    margin: 0 0 20px;
    font-size: 1.4rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.55));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.statistics-dashboard .stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 18px;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.statistics-dashboard .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.statistics-dashboard .stat-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 8px;
}

.statistics-dashboard .stat-value {
    margin: 8px 0;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.statistics-dashboard .stat-value.stat-success {
    color: var(--success);
}

.statistics-dashboard .stat-value.stat-warning {
    color: #ffa726;
}

.statistics-dashboard .stat-value.stat-info {
    color: #42a5f5;
}

.statistics-dashboard .stat-detail {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.progress-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.progress-percent {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.progress-detail {
    margin: 12px 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    overflow: hidden;
}

.progress-bar.small {
    height: 7px;
}

.progress-bar.large {
    height: 10px;
}

.progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.55));
    transition: width 220ms ease-in-out;
}

button,
.game-link,
.back-link,
.secondary-button {
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 24px;
    background: var(--accent);
    color: #050505;
    font-weight: 600;
    font-family: "Noto Kufi Arabic", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

button:hover,
.game-link:hover,
.back-link:hover,
.secondary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(255, 255, 255, 0.22);
}

button:disabled {
    opacity: 0.5;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

.secondary-button {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font: inherit;
    text-align: center;
    transition: border-color var(--transition), background var(--transition);
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23f4f4f4' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-left: 16px;
    padding-right: 40px;
}

select option {
    background: var(--bg);
    color: var(--text);
    padding: 12px;
}

textarea {
    resize: vertical;
}

.line-edit textarea {
    direction: rtl;
    text-align: right;
    font-family: "Noto Kufi Arabic", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

.line-card.locked {
    border-color: rgba(73, 199, 114, 0.45);
    background: rgba(73, 199, 114, 0.08);
}

.line-card.locked textarea {
    background: rgba(73, 199, 114, 0.12);
    cursor: not-allowed;
    color: rgba(0, 0, 0, 0.75);
    opacity: 1;
}

.line-card.locked button.submit-suggestion {
    background: rgba(73, 199, 114, 0.4);
    color: rgba(0, 0, 0, 0.65);
    cursor: not-allowed;
    opacity: 1;
    box-shadow: none;
}

.line-card.locked button.submit-suggestion:hover {
    transform: none;
    box-shadow: none;
}

.locked-note {
    margin: 0;
    font-size: 0.85rem;
    color: var(--success);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.captcha-wrapper {
    display: flex;
    justify-content: center;
}

.alert {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.alert-success {
    border-color: rgba(73, 199, 114, 0.45);
    color: var(--success);
}

.alert-error {
    border-color: rgba(255, 86, 86, 0.5);
    color: var(--danger);
}

.game-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.game-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 20px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.game-card h2 {
    margin: 0;
    font-size: 1.32rem;
}

.game-note {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.game-lines {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.game-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.empty-card {
    width: 100%;
    padding: 34px 24px;
    border-radius: var(--radius-lg);
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.site-footer {
    width: 100%;
    font-size: 0.9rem;
    color: var(--text-soft);
    padding-bottom: 24px;
    text-align: center;
}

/* Container for dashboard and other pages */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--panel);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    animation: containerSlideIn 0.8s ease-out;
}

@keyframes containerSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.55));
    animation: progressGlow 3s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

h1, h2, h3 {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.55));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 2rem;
    font-size: clamp(2rem, 5vw, 2.5rem);
}

/* Form container */
.form-container {
    background: rgba(255, 255, 255, 0.04);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.form-container:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* File Upload Styling */
.file-upload-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.file-upload-wrapper input[type="file"] {
    width: 100%;
    height: 50px;
    opacity: 0;
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid var(--border);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.file-upload-text {
    color: var(--text-muted);
    flex-grow: 1;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 0.5rem;
}

.file-upload-button {
    background: var(--accent);
    color: #050505;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.file-upload-label:hover .file-upload-button {
    transform: scale(1.05);
}

.file-upload-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.file-upload-label:hover::before {
    left: 100%;
}

.file-upload-wrapper input[type="file"]:focus + .file-upload-label,
.file-upload-wrapper input[type="file"]:active + .file-upload-label {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

/* reCAPTCHA Styling */
.recaptcha-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Table container */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

table th {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    padding: 1.5rem 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    font-size: 0.72rem;
}

table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

table tr:hover td {
    background: rgba(255, 255, 255, 0.08);
}

/* Editable text */
.editable {
    background: rgba(255, 255, 255, 0.06) !important;
    border-radius: var(--radius-sm);
    padding: 0.8rem;
    min-height: 50px;
    transition: all 0.3s ease;
    position: relative;
}

.editable:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    cursor: text;
}

.editable:focus {
    outline: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Loading */
.loading {
    display: none;
    text-align: center;
    padding: 2rem;
    background: var(--panel);
    border-radius: var(--radius-lg);
    margin: 1rem 0;
    box-shadow: var(--shadow-soft);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Links */
a {
    color: var(--accent);
    text-decoration: none;
    padding: 1rem 2rem;
    background: var(--accent);
    color: #050505;
    border-radius: 25px;
    display: inline-block;
    margin-top: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.22);
}

/* Collaboration section */
.collaboration-section {
    margin: 1rem 0;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--panel);
    box-shadow: var(--shadow-soft);
}

.collaboration-section h2 {
    margin-top: 0;
}

.color-box {
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-left: 5px;
    border-radius: 4px;
}

.editable[contenteditable="true"] {
    border: 1px solid transparent;
}

.editable[contenteditable="true"]:hover {
    border: 1px solid var(--border);
}

/* Ad Container */
.ad-container {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.ad-banner {
    display: block;
    max-width: 728px;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ad-banner:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Button group */
.button-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 720px) {
    table thead {
        display: none;
    }

    table tr {
        display: grid;
        gap: 8px;
        padding: 12px 0;
    }

    table td {
        border: none;
        padding: 6px 0;
        font-size: 0.9rem;
    }

    table td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.7rem;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: var(--text-soft);
        margin-bottom: 4px;
    }

    button,
    .game-link,
    .back-link,
    .secondary-button {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .page-shell {
        padding: 60px 18px 48px;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: 100%;
        padding: 56px 18px 40px;
        gap: 24px;
    }

    .home-header {
        gap: 12px;
    }

    .home-header p {
        max-width: 100%;
        font-size: 0.95rem;
    }

    .stat-card,
    .game-card,
    .game-header-card,
    .instructions,
    .line-card,
    .admin-section,
    .login-wrapper,
    .form-card {
        padding: 18px 16px;
        gap: 12px;
    }

    .game-grid {
        grid-template-columns: 1fr;
    }

    .container {
        margin: 1rem;
        padding: 1rem;
        border-radius: var(--radius-md);
    }
    
    h1 {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }
    
    .button-group {
        grid-template-columns: 1fr;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    table th, table td {
        padding: 0.8rem 0.5rem;
    }
    
    .form-container {
        padding: 1rem;
    }

    .ad-banner {
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 0.5rem;
        padding: 0.5rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    input, button, select {
        padding: 0.8rem 1rem;
    }

    .ad-banner {
        max-width: 300px;
    }
}

/* Game page */
.back-link {
    align-self: center;
}

.game-header-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px 22px;
    box-shadow: var(--shadow-soft);
}

.game-header-card h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 2.6rem);
}

.summary-lines,
.user-summary p {
    margin: 0;
    color: var(--text-muted);
}

.user-summary h2 {
    margin: 6px 0 8px;
    font-size: 1rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.instructions {
    width: 100%;
    padding: 24px 20px;
    border-radius: var(--radius-lg);
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.instructions h2 {
    margin: 0 0 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--text-soft);
}

.instructions ol {
    margin: 0;
    padding-left: 0;
    list-style-position: inside;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.line-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.line-card {
    background: var(--panel);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 24px 18px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.line-card header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.line-card h3 {
    margin: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.line-original,
.line-current,
.line-edit {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.line-original h4,
.line-current h4,
.line-edit h4 {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.line-original p,
.line-current p {
    margin: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    min-height: 56px;
    color: var(--text);
}

.placeholder {
    color: var(--text-soft);
    font-style: italic;
}

.feedback {
    min-height: 18px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.feedback.success {
    color: var(--success);
}

.feedback.error {
    color: var(--danger);
}

.pending-note {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.78rem;
}

/* Admin */
.admin-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.admin-header h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.2rem);
}

.admin-section,
.login-wrapper,
.form-card,
.games-list .game-summary-card,
.pending-table,
.users-table,
.log-list {
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px 20px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-card,
.inline-form {
    gap: 12px;
}

.game-admin-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bulk-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.users-table .actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.status-badge.active {
    background: rgba(255, 255, 255, 0.14);
}

.status-badge.banned {
    background: rgba(255, 86, 86, 0.2);
    color: var(--danger);
}

.game-note-display.muted {
    color: var(--text-soft);
}

.log-list {
    list-style: none;
    padding: 20px;
    margin: 0;
    gap: 16px;
}

.log-list li {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.log-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.log-time {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.log-type {
    margin: 6px 0;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-size: 0.85rem;
}

pre {
    margin: 0;
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-sm);
    overflow-x: auto;
    text-align: left;
    font-size: 0.82rem;
    color: var(--text);
}

@media (max-width: 640px) {
    .user-summary p,
    .summary-lines {
        font-size: 0.95rem;
    }

    .game-header-card h1 {
        font-size: clamp(1.8rem, 8vw, 2.2rem);
    }

    .line-card header {
        flex-direction: column;
    }
    
    .statistics-dashboard {
        padding: 18px 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .statistics-dashboard .stat-value {
        font-size: 1.8rem;
    }
    
    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
