/* ========== CSS Variables ========== */
:root {
    --bg-primary: #000;
    --bg-mod: #181a21;
    --bg-secondary: #000;
    --bg-tertiary: #1c1f24;
    --bg-input: #1a1c20;
    --bg-hover: #252830;
    --tx-primary: #f0f2f5;
    --text-primary: #ffffff;
    --text-secondary: #8b8f96;
    --text-muted: #5c6068;
    --border-color: #333b47;
    --border-hover: #3a3d43;
    --accent: #00e4fe;
    --accent-hover: #00bcd1;
    --accent-text: #0a0b0d;
    --accent-dim: rgba(10, 230, 255, 0.1);
    --success: #2ecc71;
    --error: #e74c3c;
    --warning: #f39c12;
    --info: #3498db;
    --head: #000;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --transition: all 0.25s ease;
    --nav-height: 64px;
    --max-width: 1200px;
    --bronze: #cd7f32;
    --silver: #c0c0c0;
    --gold: #ffd700;
    --diamond: #b9f2ff;
    --elite: #b566ff;
    --legend: #ff4757;
    --l1: #1a1b23;
    --l2: #212630;
    --blc: #000000;
}

[data-theme="light"] {
    --bg-primary: #f0f2f5;
     --bg-mod: #f0f2f5;
    --tx-primary: #f0f2f5;
    --bg-secondary: #ffffff;
    --head: #ffffff;
    --bg-tertiary: #ebeef2;
    --bg-input: #f5f6f8;
    --bg-hover: #e8eaed;
    --text-primary: #1a1c20;
    --text-secondary: #5c6068;
    --text-muted: #9ca3af;
    --border-color: #dde1e6;
    --border-hover: #cdd1d6;
    --accent: #00e4fe;
    --accent-hover: #00a6b9;
    --accent-text: #0a0b0d;
    --accent-dim: rgba(255, 214, 10, 0.15);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --l1: #fefefe;
    --l2: #fefefe;
    --blc: #faf7f7;

}

/* ========== Reset ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
}

body[dir="rtl"] {
    font-family: 'Vazirmatn', 'Inter', sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

ul {
    list-style: none;
}

/* ========== Layout ========== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    padding-top: 80px;
    min-height: 100vh;
}

/* ========== Navbar ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--head);
    border-bottom:none;
    z-index: 1000;
    transition: var(--transition);
}

.navbar-inner {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--accent);
    text-decoration: none;
    line-height: 1;
}

.nav-logo span {
    color: var(--text-primary);
}

.nav-tagline {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-top: 3px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-xs);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-link.active {
    color: var(--accent);
    background: var(--accent-dim);
}

.nav-link.logout-link {
    color: var(--error);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Theme Toggle */
.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
}

.theme-toggle:hover {
    border-color: var(--accent);
}

.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: flex; }

[data-theme="light"] .theme-toggle .sun-icon { display: flex; }
[data-theme="light"] .theme-toggle .moon-icon { display: none; }

/* Avatar */
.nav-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-secondary);
    cursor: pointer;
    background-image: url('https://api.dicebear.com/7.x/avataaars/svg?seed=Magven');
    background-size: cover;
    background-position: center;
}

/* Burger Menu */
.mobile-burger {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0 4px;
}

/* Language Selector */
.lang-selector { position: relative; }
.lang-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    cursor: pointer;
}
.lang-btn:hover { border-color: var(--accent); }

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1001;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.lang-option:hover { background: var(--bg-hover); color: var(--text-primary); }
.lang-option.active { color: var(--accent); background: var(--accent-dim); }
.lang-option .flag { font-size: 1.3rem; }

/* Responsive */
@media (max-width: 900px) {
    .mobile-burger { display: block; }
    .nav-tagline { display: none; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        padding: 16px;
        gap: 4px;
        box-shadow: var(--shadow-md);
    }
    
    .nav-links.show { display: flex; }
    .nav-link { width: 100%; padding: 12px 16px; }
    .nav-avatar { display: none; }
}
/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-text);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 214, 10, 0.3);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-hover);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== Cards ========== */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border-hover);
}

/* ========== Stat Cards ========== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.stat-card-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-card-sub {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 4px;
}

/* ========== Forms ========== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========== Modal ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 460px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.modal-overlay.show .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
    font-size: 1.2rem;
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* ========== Page Header ========== */
.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-links.mobile-open {
        display: flex;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        padding: 12px;
        gap: 2px;
    }

    .nav-link {
        width: 100%;
        padding: 12px 16px;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-card-value {
        font-size: 1.4rem;
    }

    .stat-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .page-title {
        font-size: 1.4rem;
    }

    .modal {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 16px;
    }
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* ========== Utility ========== */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }


/* Footer */
.footer {
    background: var(--head);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 12px;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ========== Mobile Bottom Nav ========== */
.mobile-bottom-nav {
    display: none; /* Hidden on PC */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom, 0); /* For iPhone notches */
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.65rem;
    gap: 4px;
    text-decoration: none;
    width: 60px;
    transition: var(--transition);
}

.bottom-nav-item svg {
    width: 22px;
    height: 22px;
}

.bottom-nav-item.active {
    color: var(--accent);
}

/* The Center Circle (Quantification) */
.bottom-nav-center {
    position: relative;
    margin-top: -38px; /* Pops out from the top edge */
}

.bottom-nav-center .quant-circle {
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: var(--tx-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    --r: 5px; /* the radius */
      aspect-ratio: 1;
  margin: calc(tan(22.5deg)*var(--r));
  clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%) margin-box;
  --_g:/calc(2*var(--r)) calc(2*var(--r)) 
    radial-gradient(#000 70%,#0000 72%);
  --_s:calc(100% - (1 - tan(22.5deg))*var(--r));
  mask:
    conic-gradient(#000 0 0) no-repeat 50%/var(--_s) var(--_s),
    top var(--_g) no-repeat space,left var(--_g) space no-repeat;

}

.bottom-nav-center .quant-circle svg {
    width: 24px;
    height: 24px;
}

.bottom-nav-center .quant-label {
    position: absolute;
    bottom: 2px;
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
}

.bottom-nav-center.active .quant-label {
    color: var(--accent);
}

/* Show bottom nav only on mobile */
@media (max-width: 900px) {
    .mobile-bottom-nav {
        display: flex;
    }
    
    /* Add padding to main content so it doesn't hide behind the bar */
    .main-content {
        padding-bottom: 80px;
    }
    
    /* Hide the burger menu since we have the bottom nav now */
    .mobile-burger {
        display: none;
    }
}
/* Tutorial Button */
.sup-btn {
    position: fixed;
    display: flex;
    align-items: center;
    bottom: 130px;
    gap: 6px;
    padding: 8px 14px;
    background: var(--accent);
    border-radius: 100px;
    color: var(--accent-text);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    z-index: 1000000000;
    right: 10px;
}

.sup-btn:hover {
    background: var(--accent);
    color: var(--accent-text);
}
.slot-btn {
    position: fixed;
    display: flex;
    align-items: center;
    bottom: 80px;
    gap: 6px;
    padding: 8px 14px;
    background: var(--accent);
    border-radius: 100px;
    color: var(--accent-text);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    z-index: 1000000000;
    left: 10px;
}

.slot-btn:hover {
    background: var(--accent);
    color: var(--accent-text);
}
.tutorial-btn {
    position: fixed;
    display: flex;
    align-items: center;
    bottom: 80px;
    gap: 6px;
    padding: 8px 14px;
    background: var(--accent);
    border-radius: 100px;
    color: var(--accent-text);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    z-index: 1000000000;
    right: 10px;
}

.tutorial-btn:hover {
    background: var(--accent);
    color: var(--accent-text);
}

/* Hide text on very small screens to save space */
@media (max-width: 480px) {
    .tutorial-btn {
        padding: 10px 14px;
    }
}
/* ========== Global Page Loader ========== */
.loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    pointer-events: none; 
    opacity: 1;
    /* Smooth fade out over 0.8s */
    transition: opacity 0.8s ease, visibility 0.8s ease; 
}

.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-box {
    width: 130px;
    height: 130px;
    background: var(--bg-mod);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0 10px 40px rgba(3, 3, 3, 0.162);
}

.loader-bar {
    width: 12px;
    background: var(--accent);
    border-radius: 6px;
    animation: frequency 1.2s cubic-bezier(0.4, 0.0, 0.2, 1) infinite alternate;
}

.loader-bar:nth-child(1) { animation-delay: 0s; }
.loader-bar:nth-child(2) { animation-delay: 0.15s; }
.loader-bar:nth-child(3) { animation-delay: 0.3s; }
.loader-bar:nth-child(4) { animation-delay: 0.45s; }
.loader-bar:nth-child(5) { animation-delay: 0.2s; }

@keyframes frequency {
    0% { height: 10%; }
    100% { height: 90%; }
}
.loader {
  --color-1: var(--accent);
  --size: 0.6px;

  position: relative;
  width: calc(80 * var(--size));
  height: calc(50 * var(--size));
  background-repeat: no-repeat;
  background-image:
    linear-gradient(var(--color-1) calc(50 * var(--size)), transparent 0),
    linear-gradient(var(--color-1) calc(50 * var(--size)), transparent 0),
    linear-gradient(var(--color-1) calc(50 * var(--size)), transparent 0),
    linear-gradient(var(--color-1) calc(50 * var(--size)), transparent 0),
    linear-gradient(var(--color-1) calc(50 * var(--size)), transparent 0),
    linear-gradient(var(--color-1) calc(50 * var(--size)), transparent 0);
  background-position:
    0 center,
    calc(15 * var(--size)) center,
    calc(30 * var(--size)) center,
    calc(45 * var(--size)) center,
    calc(60 * var(--size)) center,
    calc(75 * var(--size)) center,
    calc(90 * var(--size)) center;
  animation: rikSpikeRoll 0.65s linear infinite alternate;
}
@keyframes rikSpikeRoll {
  0% {
    background-size: calc(10 * var(--size)) calc(3 * var(--size));
  }
  16% {
    background-size:
      calc(10 * var(--size)) calc(50 * var(--size)),
      calc(10 * var(--size)) calc(3 * var(--size)),
      calc(10 * var(--size)) calc(3 * var(--size)),
      calc(10 * var(--size)) calc(3 * var(--size)),
      calc(10 * var(--size)) calc(3 * var(--size)),
      calc(10 * var(--size)) calc(3 * var(--size));
  }
  33% {
    background-size:
      calc(10 * var(--size)) calc(30 * var(--size)),
      calc(10 * var(--size)) calc(50 * var(--size)),
      calc(10 * var(--size)) calc(3 * var(--size)),
      calc(10 * var(--size)) calc(3 * var(--size)),
      calc(10 * var(--size)) calc(3 * var(--size)),
      calc(10 * var(--size)) calc(3 * var(--size));
  }
  50% {
    background-size:
      calc(10 * var(--size)) calc(10 * var(--size)),
      calc(10 * var(--size)) calc(30 * var(--size)),
      calc(10 * var(--size)) calc(50 * var(--size)),
      calc(10 * var(--size)) calc(3 * var(--size)),
      calc(10 * var(--size)) calc(3 * var(--size)),
      calc(10 * var(--size)) calc(3 * var(--size));
  }
  66% {
    background-size:
      calc(10 * var(--size)) calc(3 * var(--size)),
      calc(10 * var(--size)) calc(10 * var(--size)),
      calc(10 * var(--size)) calc(30 * var(--size)),
      calc(10 * var(--size)) calc(50 * var(--size)),
      calc(10 * var(--size)) calc(3 * var(--size)),
      calc(10 * var(--size)) calc(3 * var(--size));
  }
  83% {
    background-size:
      calc(10 * var(--size)) calc(3 * var(--size)),
      calc(10 * var(--size)) calc(3 * var(--size)),
      calc(10 * var(--size)) calc(10 * var(--size)),
      calc(10 * var(--size)) calc(30 * var(--size)),
      calc(10 * var(--size)) calc(50 * var(--size)),
      calc(10 * var(--size)) calc(3 * var(--size));
  }
  100% {
    background-size:
      calc(10 * var(--size)) calc(3 * var(--size)),
      calc(10 * var(--size)) calc(3 * var(--size)),
      calc(10 * var(--size)) calc(3 * var(--size)),
      calc(10 * var(--size)) calc(10 * var(--size)),
      calc(10 * var(--size)) calc(30 * var(--size)),
      calc(10 * var(--size)) calc(50 * var(--size));
  }
}
/* Disable double-tap to zoom (iOS Safari) */
body {
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
}