:root{
  --bg0:#070A12;
  --bg1:#0B1330;
  --stroke:rgba(255,255,255,.12);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.72);
  --shadow:0 18px 60px rgba(0,0,0,.55);
}

*{box-sizing:border-box}
html,body{height:100%}

html{
  background:
    radial-gradient(1200px 700px at 15% 10%, rgba(0,229,255,.20), transparent 60%),
    radial-gradient(900px 650px at 90% 20%, rgba(138,92,255,.18), transparent 60%),
    radial-gradient(900px 650px at 55% 95%, rgba(255,79,216,.14), transparent 60%),
    linear-gradient(180deg,var(--bg0),var(--bg1));
  background-attachment:fixed;
  background-size:cover;
  background-repeat:no-repeat;
}

body{
  margin:0;
  color:var(--text);
  background:transparent;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  line-height:1.55;
}

@media (hover:none) and (pointer:coarse){
  html{background-attachment:scroll}
}

.page{
  width:min(1140px,100%);
  margin:0 auto;
  padding:20px 14px 60px;
}

.hero{
  position:relative;
  border:1px solid var(--stroke);
  background:
    radial-gradient(800px 360px at 10% 10%, rgba(0,229,255,.18), transparent 60%),
    radial-gradient(700px 340px at 70% 25%, rgba(255,79,216,.16), transparent 60%),
    radial-gradient(800px 380px at 95% 70%, rgba(255,213,74,.10), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-radius:18px;
  overflow:hidden;
  box-shadow:var(--shadow);
}

.hero::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:linear-gradient(90deg, rgba(0,229,255,0), rgba(0,229,255,.18), rgba(138,92,255,.18), rgba(255,79,216,.18), rgba(0,229,255,0));
  filter:blur(18px);
  opacity:.9;
  pointer-events:none;
}

.hero-inner{
  position:relative;
  padding:18px 18px 16px;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.18);
  border-radius:14px;
  backdrop-filter:blur(10px);
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.brand-logo{
  width:46px;
  height:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.brand-logo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.brand-title{
  display:flex;
  flex-direction:column;
  min-width:0;
}

.brand-title strong{
  font-size:14px;
  letter-spacing:.3px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.brand-title span{
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.top-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  color:var(--text);
  text-decoration:none;
  font-size:13px;
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}

.chip:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.08);
  border-color:rgba(0,229,255,.26);
}

.chip img{
  display:block;
  width:20px;
  height:26px;
  object-fit:contain;
  filter:drop-shadow(0 0 4px rgba(0,229,255,.6));
  transition:transform .25s ease, filter .25s ease;
}

.chip-run:hover img{
  transform:translateX(2px) scale(1.1);
  filter:drop-shadow(0 0 6px rgba(0,229,255,.9)) drop-shadow(0 0 12px rgba(0,229,255,.6));
}

.chip-slope:hover img{
  transform:rotate(-10deg) scale(1.1);
  filter:drop-shadow(0 0 6px rgba(255,79,216,.9)) drop-shadow(0 0 12px rgba(255,79,216,.6));
}

.hero-main{
  display:grid;
  grid-template-columns:minmax(200px,300px) 1fr;
  gap:28px;
  align-items:center;
  margin-top:22px;
}

.hero-logo{
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
}

.hero-logo img{
  width:100%;
  max-width:300px;
  height:auto;
  filter:drop-shadow(0 0 18px rgba(0,229,255,.35)) drop-shadow(0 0 30px rgba(255,79,216,.25));
}

.hero-logo::before{
  content:"";
  position:absolute;
  inset:-12px;
  background:
    radial-gradient(60% 60% at 30% 30%, rgba(0,229,255,.35), transparent 60%),
    radial-gradient(60% 60% at 70% 70%, rgba(255,79,216,.25), transparent 65%);
  filter:blur(26px);
  opacity:.9;
  z-index:-1;
}

.hero-text h1{
  margin:0 0 10px 0;
  font-size:clamp(26px,3.2vw,38px);
  line-height:1.15;
}

.hero-text p{
  margin:10px 0;
  font-size:15.5px;
  color:var(--muted);
}

@media (max-width:900px){
  .hero-main{grid-template-columns:1fr;text-align:center}
  .hero-logo img{max-width:280px}
}

.content{margin-top:18px}

.section-title{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin:18px 2px 10px;
}

.section-title h2{
  margin:0;
  font-size:16px;
  letter-spacing:.3px;
  color:rgba(255,255,255,.88);
}

.section-title span{
  color:var(--muted);
  font-size:12.5px;
}

.grid{display:grid;gap:14px}

@media (min-width:1180px){.grid{grid-template-columns:repeat(5,1fr)}}
@media (min-width:920px) and (max-width:1179px){.grid{grid-template-columns:repeat(4,1fr)}}
@media (min-width:640px) and (max-width:919px){.grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:639px){.grid{grid-template-columns:repeat(2,1fr)}}

.card{
  position:relative;
  border-radius:16px;
  overflow:hidden;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 14px 40px rgba(0,0,0,.40);
  transition:transform .16s ease, border-color .16s ease, background .16s ease;
}

.card:hover{
  transform:translateY(-3px);
  border-color:rgba(0,229,255,.24);
  background:rgba(255,255,255,.07);
}

.card a{
  color:inherit;
  text-decoration:none;
  display:block;
}

.thumb{
  aspect-ratio:3/2;
  width:100%;
  background:rgba(0,0,0,.25);
}

.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform:scale(1.02);
  transition:transform .25s ease;
}

.card:hover .thumb img{transform:scale(1.06)}

.card::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(220px 140px at 15% 20%, rgba(0,229,255,.18), transparent 60%),
    radial-gradient(240px 160px at 85% 25%, rgba(255,79,216,.14), transparent 60%),
    linear-gradient(180deg, transparent 45%, rgba(0,0,0,.55));
  opacity:.95;
  pointer-events:none;
}

.meta{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding:10px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  z-index:2;
}

.title{
  font-size:13px;
  font-weight:700;
  letter-spacing:.2px;
  margin:0;
  line-height:1.15;
}

.play{
  font-size:12px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(0,0,0,.20);
  color:rgba(255,255,255,.90);
  white-space:nowrap;
}

@media (hover:hover) and (pointer:fine){
  .card-run a{cursor:url("run.png") 6 6, pointer}
  .card-slope a{cursor:url("slope.png") 6 6, pointer}
}

.content-section{
  margin-top:18px;
  padding:18px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(520px 260px at 10% 20%, rgba(0,229,255,.10), transparent 60%),
    radial-gradient(520px 260px at 90% 30%, rgba(255,79,216,.08), transparent 60%),
    rgba(255,255,255,.04);
  box-shadow:0 14px 40px rgba(0,0,0,.35);
}

.content-section h2{
  margin:0 0 10px 0;
  font-size:18px;
  letter-spacing:.2px;
}

.content-section h3{
  margin:16px 0 8px 0;
  font-size:15px;
  letter-spacing:.2px;
  color:rgba(255,255,255,.90);
}

.content-section p{
  margin:10px 0;
  color:var(--muted);
  font-size:15px;
}

.content-section a{
  color:rgba(0,229,255,.95);
  text-decoration:none;
  border-bottom:1px solid rgba(0,229,255,.35);
}

.content-section a:hover{
  border-bottom-color:rgba(255,79,216,.55);
}

.faq{
  margin-top:16px;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.10);
}

.faq h3{margin:0 0 10px 0}

.faq details{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.14);
  border-radius:14px;
  padding:10px 12px;
  margin:10px 0;
}

.faq summary{
  cursor:pointer;
  font-weight:700;
  color:rgba(255,255,255,.90);
  list-style:none;
}

.faq summary::-webkit-details-marker{display:none}

.faq details p{
  margin:8px 0 0;
  color:var(--muted);
}

.footer-note{
  margin-top:18px;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:var(--muted);
}
.contact-form{
  max-width:520px;
  margin:16px auto 0;
}
.form-row{display:flex;flex-direction:column;gap:6px;margin:12px 0}
.form-row label{font-size:13px;color:rgba(255,255,255,.88);font-weight:700}
.form-row input,.form-row select,.form-row textarea{
  width:100%;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.18);
  color:var(--text);
  padding:10px 12px;
  font:inherit;
  outline:none
}
.form-row textarea{resize:vertical;min-height:120px}
.form-row input:focus,.form-row select:focus,.form-row textarea:focus{
  border-color:rgba(0,229,255,.30);
  box-shadow:0 0 0 3px rgba(0,229,255,.10)
}
.form-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:var(--text);
  font-weight:800;
  cursor:pointer
}
.form-btn:hover{border-color:rgba(0,229,255,.26);background:rgba(255,255,255,.09)}
.form-note{margin-top:12px;color:var(--muted);font-size:13px}
.form-note a{color:rgba(0,229,255,.95);text-decoration:none;border-bottom:1px solid rgba(0,229,255,.35)}
.form-note a:hover{border-bottom-color:rgba(255,79,216,.55)}
.game-shell{
      margin-top:18px;
      border-radius:18px;
      overflow:hidden;
      border:1px solid rgba(255,255,255,.10);
      background:rgba(0,0,0,.18);
      box-shadow:0 14px 40px rgba(0,0,0,.35);
    }
    .game-frame{
      width:100%;
      height:740px;
      border:0;
      display:block;
      background:#000;
    }
    @media (max-width: 640px){
      .game-frame{height:620px;}
    }
/* --- Game container (iframe + OpenFL) --- */
.game-shell{
  margin-top:18px;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.18);
  box-shadow:0 14px 40px rgba(0,0,0,.35);
}

/* iframe games */
.game-frame{
  width:100%;
  height:740px;
  border:0;
  display:block;
  background:#000;
}
@media (max-width:640px){
  .game-frame{height:620px;}
}

/* OpenFL games (Run3 Unblocked) - stable responsive sizing */
#openfl-content{
  width:100%;
  height:clamp(420px, 70vh, 720px);
  background:#000;
  position:relative;
  overflow:hidden;
}

/* Make the injected canvas (or wrapper) fill the container */
#openfl-content canvas,
#openfl-content > canvas,
#openfl-content > div{
  width:100% !important;
  height:100% !important;
  display:block;
}
/* ---- OpenFL (Run 3 Unblocked) ---- */
.openfl-wrap{
  width:100%;
  max-width:1000px;
  height:600px;
  margin:0 auto;
  background:#000;
  display:block;
}

#openfl-content{
  width:100%;
  height:100%;
}

#openfl-content canvas{
  width:100% !important;
  height:100% !important;
  display:block;
}
/* --- TOP RIBBON (matches site style) --- */

/* transform the existing .meta into a top ribbon */
.card .meta{
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:auto;

  height:38px;
  padding:0 12px;

  display:flex;
  align-items:center;
  justify-content:center;

  z-index:4;
  pointer-events:none;

  /* glass + dark */
  background:
    linear-gradient(180deg, rgba(0,0,0,.72), rgba(0,0,0,.38));
  border-bottom:1px solid rgba(255,255,255,.10);

  /* hidden state (slide from right) */
  opacity:0;
  transform:translateX(105%);
  transition:
    transform .34s cubic-bezier(.2,.85,.2,1),
    opacity .18s ease;
}

/* glow strip inside ribbon (site-like neon accent) */
.card .meta::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(320px 80px at 12% 50%, rgba(0,229,255,.18), transparent 62%),
    radial-gradient(320px 80px at 88% 50%, rgba(255,79,216,.14), transparent 62%);
  opacity:.9;
  pointer-events:none;
}

/* subtle highlight line on top for “premium” edge */
.card .meta::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:1px;
  background:rgba(255,255,255,.10);
  pointer-events:none;
}

/* title centered perfectly inside the ribbon */
.card .meta .title{
  position:relative;
  z-index:1;
  margin:0;

  font-size:13px;
  font-weight:900;
  letter-spacing:.35px;
  line-height:1;
  color:rgba(255,255,255,.92);

  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:92%;
  text-shadow:0 6px 18px rgba(0,0,0,.55);
}

/* show ribbon on hover */
.card:hover .meta{
  opacity:1;
  transform:translateX(0);
}

/* category-colored border accent (same language as your hover border) */
.card-run:hover .meta{
  box-shadow:inset 0 -1px 0 rgba(0,229,255,.20);
}
.card-slope:hover .meta{
  box-shadow:inset 0 -1px 0 rgba(255,79,216,.18);
}

/* touch devices: ribbon always visible (no hover) */
@media (hover:none) and (pointer:coarse){
  .card .meta{
    opacity:1;
    transform:none;
  }
}
