/* ==========================================================
   MATHZZLE
   PART 1
==========================================================*/

:root{

--bg:#060913;
--bg2:#0d1322;
--card:rgba(255,255,255,.05);

--purple:#8b5cf6;
--green:#22c55e;

--text:#ffffff;
--text2:#c8d1df;

--border:rgba(255,255,255,.08);

--radius:24px;

}

*{

margin:0;
padding:0;
box-sizing:border-box;

}

html{

scroll-behavior:smooth;

}

body{

font-family:
Inter,
Segoe UI,
Arial,
sans-serif;

background:
linear-gradient(
180deg,
#060913,
#0d1322
);

color:white;

overflow-x:hidden;

    background-image: url(../images/bg.png);
    background-position: 50% 50% !important;
    -webkit-background-size: 100%;
    -moz-background-size: 100%;
    -o-background-size: 100%;
    background-size: 100%;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-attachment: fixed !important;

}

/* ==========================================================
CONTAINER
==========================================================*/

.container{

width:min(1400px,92%);
margin:auto;

}

/* ==========================================================
HEADER
==========================================================*/

/*header{

position:sticky;

top:0;

z-index:1000;

padding:18px 0;

backdrop-filter:blur(18px);

background:rgba(6,9,19,.55);

border-bottom:1px solid rgba(255,255,255,.05);

}*/

header{

position:relative;

padding:18px 0;

background:none;

backdrop-filter:blur(18px);

background:rgba(6,9,19,.55);

border-bottom:1px solid rgba(255,255,255,.05);
}

header .container{

display:flex;

justify-content:space-between;

align-items:center;

}

.header-left{

display:flex;

align-items:center;

gap:18px;

}

.logo{

width:78px;

height:78px;

border-radius:22px;

object-fit:cover;

box-shadow:

0 20px 45px rgba(0,0,0,.35);

}

.game-title{

font-size:34px;

font-weight:800;

line-height:1;

}

.game-subtitle{

margin-top:6px;

font-size:15px;

letter-spacing:3px;

text-transform:uppercase;

color:#9fb0ca;

}

.google-btn{

display:inline-block;

}

.google-btn img{

height:68px;

transition:.3s;

}

.google-btn img:hover{

transform:translateY(-3px);

}

/* ==========================================================
BACKGROUND
==========================================================*/

.background{

position:fixed;

left:0;
top:0;

width:100%;
height:100%;

overflow:hidden;

pointer-events:none;

z-index:-5;

}

.glow{

position:absolute;

width:600px;
height:600px;

border-radius:50%;

filter:blur(180px);

opacity:.28;

}

.glow-left{

background:#8b5cf6;

left:-220px;
top:-120px;

}

.glow-right{

background:#22c55e;

right:-220px;
bottom:-120px;

}

.numbers{

position:absolute;

left:0;
top:0;

width:100%;
height:100%;

overflow:hidden;

}

.floating-number{

position:absolute;

bottom:-120px;

font-weight:800;

color:white;

user-select:none;

text-shadow:

0 0 12px rgba(255,255,255,.1);

animation:floatNumber linear infinite;

}

@keyframes floatNumber{

0%{

transform:
translateY(0)
rotate(0deg);

}

100%{

transform:
translateY(-130vh)
rotate(5deg);

}

}

/* ==========================================================
WEBGL
==========================================================*/

.webgl-section{

padding:35px 0 50px;

}

.webgl-card{

background:rgba(255,255,255,.05);

border:1px solid var(--border);

border-radius:28px;

padding:28px;

backdrop-filter:blur(16px);

box-shadow:

0 30px 70px rgba(0,0,0,.35);

}

.webgl-top{

display:flex;

justify-content:space-between;

align-items:center;

gap:30px;

margin-bottom:25px;

}

.webgl-top h2{

font-size:42px;

margin-bottom:14px;

line-height:1.1;

}

.webgl-top p{

color:var(--text2);

font-size:18px;

line-height:1.7;

max-width:650px;

}

.mobile-btn{

display:inline-flex;

align-items:center;

justify-content:center;

padding:18px 32px;

border-radius:999px;

text-decoration:none;

background:linear-gradient(
135deg,
#22c55e,
#1da851
);

color:white;

font-weight:700;

transition:.3s;

white-space:nowrap;

}

.mobile-btn:hover{

transform:

translateY(-3px);

box-shadow:

0 20px 40px rgba(34,197,94,.35);

}

#unity-container{

position:relative;

width:100%;

height:auto;

min-height:600px;

overflow:hidden;

border-radius:22px;

background:#000;

box-shadow:

0 0 70px rgba(139,92,246,.18);
}


#unity-canvas{

display:block;

width:100%;

    aspect-ratio:16/10;

    height:auto;

background:black;

}

#unity-loading-bar{

    position:absolute;

 top:0;
    left:0;
    right:0;
    bottom:0;
  

    background:rgba(5,8,15,.92);

     z-index:999;

}

.loading-content{

    position:absolute;

    top:50%;
    left:50%;

    transform:translate(-50%,-50%);

    width:min(500px,85%);

    text-align:center;

}
.loading-title{

    font-size:30px;

    font-weight:700;
margin-bottom:24px;
    text-align:center;

}

.loading-text{

    text-align:center;

    color:#9fb0ca;

}

#unity-progress-bar-empty{

    width:100%;

    height:14px;

    background:#2b3445;

    border-radius:999px;

    overflow:hidden;


}
#unity-progress-bar-full{

width:0;

height:100%;

background:

linear-gradient(
90deg,
#8b5cf6,
#22c55e
);

}

/* ==========================================================
STATS
==========================================================*/

.stats{

padding:55px 0;

}

.stats-grid{

display:grid;

grid-template-columns:repeat(4,1fr);

gap:22px;

}

.stat{

padding:32px;

text-align:center;

background:rgba(255,255,255,.04);

border:1px solid var(--border);

border-radius:22px;

transition:.3s;

}

.stat:hover{

transform:translateY(-6px);

border-color:#8b5cf6;

}

.stat-number{

font-size:52px;

font-weight:800;

color:#22c55e;

margin-bottom:10px;

}

.stat-title{

font-size:14px;

letter-spacing:2px;

color:#9fb0ca;

}

/* ==========================================================
INTRO
==========================================================*/

.hero-banner{

padding:25px 0 70px;

}

.banner{

display:block;

width:100%;

border-radius:24px;

transition:.35s;

box-shadow:

0 25px 55px rgba(0,0,0,.35);

}

.banner:hover{

transform:

translateY(-8px)
scale(1.01);

}

.intro-banner{

border:1px solid rgba(255,255,255,.08);

}

/* ==========================================================
FEATURE SECTIONS
==========================================================*/

.feature-section{

padding:80px 0;

}

.section-dark{

background:rgba(255,255,255,.02);

}

.feature-grid{

display:grid;

grid-template-columns:1fr 1fr;

gap:60px;

align-items:center;

}

.feature-grid.reverse{

grid-template-columns:1fr 1fr;

}

.feature-grid.reverse .feature-image{

order:1;

}

.feature-grid.reverse .feature-text{

order:2;

}

.feature-text{

max-width:520px;

}

.feature-text h2{

font-size:38px;

margin:15px 0;

line-height:1.2;

}

.feature-text p{

font-size:17px;

color:var(--text2);

line-height:1.8;

margin-bottom:20px;

}

.feature-image{

display:flex;

justify-content:center;

align-items:center;

}

.feature-image img{

width:100%;

max-width:300px;

border-radius:24px;

}

.section-badge{

display:inline-block;

padding:8px 18px;

border-radius:999px;

background:rgba(139,92,246,.15);

border:1px solid rgba(139,92,246,.4);

font-size:13px;

font-weight:700;

letter-spacing:1px;

color:#d7c7ff;

}

/* ==========================================================
FEATURE LIST
==========================================================*/

.feature-list{

list-style:none;

margin-top:25px;

}

.feature-list li{

padding:8px 0;

color:#d8e0ed;

font-size:16px;

}

/* ==========================================================
FEATURE CARDS
==========================================================*/

.cards{

display:grid;

grid-template-columns:repeat(4,1fr);

gap:24px;
}

.feature-card{

padding:30px;

background:rgba(255,255,255,.04);

border:1px solid rgba(255,255,255,.08);

border-radius:24px;

transition:.3s;

text-align:center;

backdrop-filter:blur(14px);

}

.feature-card:hover{

transform:translateY(-8px);

border-color:#8b5cf6;

box-shadow:

0 20px 45px rgba(139,92,246,.2);

}

.icon{

font-size:46px;

margin-bottom:20px;

}

.feature-card h3{

margin-bottom:15px;

font-size:22px;

}

.feature-card p{

font-size:15px;

color:#bfc9d8;

}

/* ==========================================================
DOWNLOAD
==========================================================*/

.download-section{

padding:40px 0 0 0;

}

.download-card{

display:grid;

grid-template-columns:1.1fr .9fr;

gap:50px;

align-items:center;

padding:45px;

border-radius:28px;

background:

linear-gradient(
145deg,
rgba(139,92,246,.12),
rgba(34,197,94,.06)
);

border:1px solid rgba(255,255,255,.08);

}

.download-left h2{

font-size:42px;

margin:20px 0;

}

.download-left p{

font-size:17px;

margin-bottom:35px;

}

.play-badge img{

height:78px;

transition:.3s;

}

.play-badge img:hover{

transform:scale(1.05);

}

.download-right img{

width:100%;

border-radius:22px;

}

/* ==========================================================
BUTTONS
==========================================================*/

.buttons{

display:flex;

gap:20px;

justify-content:center;

flex-wrap:wrap;

}

.btn{

display:inline-flex;

align-items:center;

justify-content:center;

padding:16px 34px;

border-radius:999px;

text-decoration:none;

font-weight:700;

transition:.3s;

}

.btn-primary{

background:#8b5cf6;

color:white;

}

.btn-primary:hover{

transform:translateY(-3px);

box-shadow:

0 18px 40px rgba(139,92,246,.35);

}

.btn-green{

background:#22c55e;

color:white;

}

.btn-green:hover{

transform:translateY(-3px);

box-shadow:

0 18px 40px rgba(34,197,94,.35);

}



.unity-toolbar{
    display:flex;
    justify-content:flex-end;
    margin-top:15px;
}

.unity-button{

    appearance:none;
    border:none;

    background:linear-gradient(135deg,#8b5cf6,#6d28d9);

    color:#fff;

    font-size:15px;

    font-weight:700;

    padding:12px 22px;

    border-radius:14px;

    cursor:pointer;

    transition:.25s;

    box-shadow:
        0 10px 25px rgba(139,92,246,.35);

}

.unity-button:hover{

    transform:translateY(-2px);

    box-shadow:
        0 15px 35px rgba(139,92,246,.45);

}

.unity-button:active{

    transform:translateY(1px);

}

/* ==========================================================
FOOTER
==========================================================*/

footer{

margin-top:40px;

padding:70px 0;

background:#050913;

border-top:1px solid rgba(255,255,255,.08);

}

.footer-grid{

display:grid;

grid-template-columns:2fr 1fr 1fr 1fr;

gap:40px;

}

.footer-logo{

width:90px;

height:90px;

border-radius:24px;

margin-bottom:18px;

}

footer h4{

margin-bottom:18px;

font-size:18px;

}

footer a{

display:block;

text-decoration:none;

color:#bfc9d8;

margin-bottom:10px;

transition:.25s;

}

footer a:hover{

padding-left:6px;

color:white;

}

footer p{

font-size:15px;

}

/* ==========================================================
ANIMATIONS
==========================================================*/

.hover{

transition:.35s;

}

.hover:hover{

transform:

translateY(-8px)

scale(1.02);

}

.fade{

opacity:0;

transform:translateY(50px);

transition:all .8s;

}

.fade.show{

opacity:1;

transform:none;

}

/* ==========================================================
RESPONSIVE
==========================================================*/

@media(max-width:1200px){

.cards{

grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:992px){

.feature-grid,

.feature-grid.reverse{

grid-template-columns:1fr;

}

.feature-grid.reverse .feature-image,

.feature-grid.reverse .feature-text{

order:unset;

}

.download-card{

grid-template-columns:1fr;

}

.footer-grid{

grid-template-columns:repeat(2,1fr);

}

.stats-grid{

grid-template-columns:repeat(2,1fr);

}

.webgl-top{

flex-direction:column;

align-items:flex-start;

}

}

@media(max-width:768px){

header{

position:relative;

}

header .container{

flex-direction:column;

gap:20px;

}

.header-left{

flex-direction:column;

text-align:center;

}

.logo{

width:70px;

height:70px;

}

.game-title{

font-size:28px;

}

.webgl-top h2{

font-size:30px;

}

.cards{

grid-template-columns:1fr;

}

.stats-grid{

grid-template-columns:1fr;

}

.footer-grid{

grid-template-columns:1fr;

text-align:center;

}

.feature-text{

max-width:100%;

}

.feature-text h2{

font-size:30px;

}

.download-left h2{

font-size:30px;

}

.play-badge img{

height:65px;

}

section{

padding:60px 0;

}

}

@media(max-width:480px){

.webgl-card{

padding:18px;

}

.download-card{

padding:25px;

}

.feature-card{

padding:24px;

}

.mobile-btn{

width:100%;

}

.google-btn img{

height:58px;

}

}