/* ==================== VARIABLES & THEME ==================== */
:root {
    --bg-color: #0f172a;
    --bg-alt: #1e293b;
    --card-bg: rgba(30, 41, 59, 0.6);
    --card-bg-hover: rgba(30, 41, 59, 0.8);
    --primary-color: #38bdf8;
    --primary-dark: #0284c7;
    --secondary-color: #818cf8;
    --accent-color: #fb7185;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-secondary: #cbd5e1;
    --tile-bg: #1e293b;
    --tile-hover: #334155;
    --tile-empty: #0f172a;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

[data-theme="light"] {
    --bg-color: #f8fafc;
    --bg-alt: #e2e8f0;
    --card-bg: rgba(248, 250, 252, 0.7);
    --card-bg-hover: rgba(248, 250, 252, 0.9);
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-secondary: #64748b;
    --tile-bg: #e2e8f0;
    --tile-hover: #cbd5e1;
    --tile-empty: #f8fafc;
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-border-hover: rgba(0, 0, 0, 0.15);
}

/* ==================== GLOBAL ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, var(--bg-alt), var(--bg-color));
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==================== BACKGROUND ANIMATION ==================== */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    animation: moveBlob 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    bottom: -50px;
    right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: var(--accent-color);
    top: 40%;
    right: -50px;
    opacity: 0.08;
    animation: moveBlob 25s infinite alternate-reverse;
}

@keyframes moveBlob {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(100px, 100px) scale(1.1); }
}

/* ==================== SPLASH SCREEN ==================== */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, var(--bg-alt), var(--bg-color));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    animation: splashFadeIn 0.5s ease-out;
}

.splash-content {
    text-align: center;
    animation: splashScale 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.splash-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.splash-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 3rem;
    letter-spacing: 1px;
}

.splash-credits {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.credits-by {
    font-weight: 400;
}

.credits-name {
    font-weight: 600;
    color: var(--primary-color);
}

@keyframes splashFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes splashScale {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.splash-screen.fade-out {
    animation: splashFadeOut 0.5s ease-out forwards;
}

@keyframes splashFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ==================== APP CONTAINER ==================== */
.app-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    animation: containerFadeIn 0.6s ease-out 2.5s forwards;
}

@keyframes containerFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== HEADER ==================== */
.app-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.app-header:hover {
    background: var(--card-bg-hover);
    border-color: var(--glass-border-hover);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    margin: 0;
}

.header-controls {
    display: flex;
    gap: 0.75rem;
}

.theme-toggle,
.stats-toggle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover,
.stats-toggle:hover {
    background: rgba(56, 189, 248, 0.2);
    transform: scale(1.05);
}

/* ==================== STATS BAR ==================== */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 0;
    height: 100%;
    width: 1px;
    background: var(--glass-border);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

/* ==================== DIFFICULTY MENU ==================== */
.difficulty-menu {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    text-align: center;
}

.difficulty-menu h2 {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.difficulty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.difficulty-btn {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 2rem 1.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    color: var(--text-main);
}

.difficulty-btn:hover {
    background: var(--card-bg-hover);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(56, 189, 248, 0.2);
}

.difficulty-btn:active {
    transform: translateY(-3px);
}

.diff-size {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.diff-level {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.diff-time {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 600;
}

/* ==================== GAME SECTION ==================== */
.game-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.difficulty-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(56, 189, 248, 0.2);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.time-limit {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    min-width: 80px;
    text-align: right;
}

.time-limit.warning {
    animation: pulse 0.6s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ==================== PUZZLE CONTAINER ==================== */
.puzzle-container {
    display: flex;
    justify-content: center;
    perspective: 1000px;
    padding: 2rem 1rem;
}

.grid {
    display: grid;
    gap: 24px;
    padding: 24px;
    background: var(--tile-empty);
    border-radius: 20px;
    box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.3);
    user-select: none;
}

    /* ==================== PUZZLE SIZING (Compact & Responsive) ==================== */
    /* Keep the puzzle a compact square so 3×3–6×6 boards remain short vertically */
    .grid {
        /* Limit overall board size while remaining responsive to viewport */
        width: min(360px, 60vmin);
        height: min(360px, 60vmin);
        max-width: 70vmin;
        max-height: 70vmin;
        display: grid;
        grid-auto-rows: 1fr; /* each row will take equal fraction of height */
        gap: 6px;
        padding: 6px;
    }

    .grid[data-size] {
        /* ensure explicit columns defined by inline style remain, but rows scale */
        grid-template-rows: repeat(var(--grid-rows, 3), 1fr);
    }

    .grid .tile {
        aspect-ratio: 1 / 1; /* keep tiles square */
        width: 100%;
        height: 100%;
        font-size: calc(10px + 1.0vmin); /* smaller responsive font sizing */
    }

    @media (max-width: 420px) {
        .grid {
            width: min(360px, 92vmin);
            height: min(360px, 92vmin);
            gap: 6px;
            padding: 6px;
        }
        .grid .tile {
            font-size: calc(11px + 1.0vmin);
        }
    }

/* Grid size variations */

.grid[data-size="3"] { grid-template-columns: repeat(3, 1fr); }
.grid[data-size="4"] { grid-template-columns: repeat(4, 1fr); }
.grid[data-size="5"] { grid-template-columns: repeat(5, 1fr); }
.grid[data-size="6"] { grid-template-columns: repeat(6, 1fr); }

.tile {
    aspect-ratio: 1;
    min-width: 40px;
    min-height: 40px;
    background: var(--tile-bg);
    border: 2px solid transparent;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
    user-select: none;
}

.tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    pointer-events: none;
    border-radius: 12px;
}

.tile:not(.empty):hover {
    background: var(--tile-hover);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.tile:not(.empty):active {
    transform: scale(0.98);
}

.tile.empty {
    background: transparent;
    cursor: default;
    box-shadow: none;
    border: none;
}

.tile.correct {
    border-color: var(--success-color);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    animation: tileSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tile.hint {
    animation: hintPulse 1.2s ease-in-out;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.6), inset 0 0 10px rgba(56, 189, 248, 0.3);
}

@keyframes tileSlideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes hintPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
    50% { box-shadow: 0 0 0 15px rgba(56, 189, 248, 0); }
}

/* ==================== GAME CONTROLS ==================== */
.game-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-main);
}

.btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-hint {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--bg-color);
    border: none;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
    font-weight: 700;
}

.btn-hint:hover:not(:disabled) {
    box-shadow: 0 6px 25px rgba(56, 189, 248, 0.5);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-color);
    border: none;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
    font-weight: 700;
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(56, 189, 248, 0.5);
}

.btn-secondary {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--card-bg-hover);
    border-color: var(--primary-color);
}

/* ==================== HINT TOOLTIP ==================== */
.hint-tooltip {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.1), rgba(56, 189, 248, 0.1));
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 10px;
    text-align: center;
    animation: slideDown 0.3s ease-out;
}

.hint-tooltip p {
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ==================== MODALS ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 450px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    animation: bounceIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
}

.modal-content {
    margin-bottom: 2rem;
}

.victory-message,
.gameover-message {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.victory-stats,
.final-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.victory-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.victory-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.victory-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.final-stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.final-stats p {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.final-stats span {
    font-weight: 700;
    color: var(--primary-color);
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-actions .btn {
    width: 100%;
    justify-content: center;
}

/* ==================== STATISTICS PANEL ==================== */
.stats-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border-left: 1px solid var(--glass-border);
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
    z-index: 999;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.stats-panel.hide {
    animation: slideOutRight 0.3s ease-out forwards;
}

@keyframes slideOutRight {
    from { transform: translateX(0); }
    to { transform: translateX(100%); }
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.stats-header h2 {
    font-size: 1.5rem;
    color: var(--text-main);
}

.close-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

.stats-content {
    padding: 1.5rem;
}

.stats-section {
    margin-bottom: 2rem;
}

.stats-section h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    font-weight: 600;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.stat-name {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.stat-row .stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.difficulty-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.difficulty-stats-item {
    padding: 1rem;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 10px;
}

.difficulty-stats-item strong {
    color: var(--primary-color);
}

.difficulty-stats-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .app-title {
        font-size: 2rem;
    }

    .splash-title {
        font-size: 2.8rem;
    }

    .grid {
        gap: 22px;
        padding: 22px;
    }

    .tile {
        min-width: 150px;
        min-height: 150px;
        font-size: 4.2rem;
    }
}

@media (max-width: 768px) {
    .app-container {
        padding: 1rem;
    }

    .stats-bar {
        gap: 1rem;
    }

    .stat-item:not(:last-child)::after {
        right: -0.5rem;
    }

    .difficulty-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .difficulty-btn {
        padding: 1.5rem 1rem;
    }

    .diff-size {
        font-size: 1.4rem;
    }

    .stats-panel {
        max-width: 100%;
        width: 80%;
    }

    .modal {
        padding: 2rem;
    }

    .grid {
        gap: 16px;
        padding: 16px;
    }

    .tile {
        min-width: 135px;
        min-height: 135px;
        font-size: 3.8rem;
    }
}

@media (max-width: 600px) {
    .app-title {
        font-size: 1.5rem;
    }

    .splash-title {
        font-size: 2rem;
    }

    .splash-subtitle {
        font-size: 1.1rem;
    }

    .header-top {
        flex-direction: column;
        gap: 1rem;
    }

    .difficulty-grid {
        grid-template-columns: 1fr;
    }

    .grid {
        gap: 14px;
        padding: 14px;
    }

    .tile {
        min-width: 120px;
        min-height: 120px;
        font-size: 3.2rem;
    }

    .game-controls {
        gap: 0.5rem;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .stats-bar {
        flex-direction: column;
        gap: 0.5rem;
    }

    .stat-item:not(:last-child)::after {
        display: none;
    }

    .stat-divider {
        display: none;
    }

    .victory-stats,
    .final-stats {
        grid-template-columns: 1fr;
    }

    .stats-panel {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 400px) {
    .app-title {
        font-size: 1.2rem;
    }

    .splash-title {
        font-size: 1.8rem;
    }

    .tile {
        min-width: 95px;
        min-height: 95px;
        font-size: 2.5rem;
    }

    .modal {
        padding: 1.5rem;
        width: 95%;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }
}