/* 2OP Games — site styles. Brand: red #E60012, white, near-black #111. Fonts: Anton (display), Inter (text). */
:root {
  --red: #e60012;
  --red-deep: #b8000e;
  --ink: #111318;
  --text: #22262e;
  --muted: #5d6573;
  --line: #e4e7ee;
  --bg: #ffffff;
  --soft: #f5f6f9;
  --sky: #2f8cff;
  --sky-deep: #1457d6;
  --gold: #ffc61a;
  --radius: 18px;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
@font-face { font-family: "Anton"; src: url("fonts/Anton-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--sky-deep); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.display { font-family: "Anton", Impact, "Arial Narrow", sans-serif; font-weight: 400; letter-spacing: .01em; line-height: 1.02; text-transform: uppercase; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 16px; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { border: 2px solid rgba(255,255,255,.7); color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.btn small { font-weight: 500; opacity: .75; }
.tag { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.18); color: #fff; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { height: 34px; width: auto; }
.brand span { font-family: "Anton", Impact, sans-serif; font-size: 22px; letter-spacing: .04em; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--red); }

/* studio hero */
.hero-red { background: radial-gradient(120% 90% at 50% 20%, #ff2a39 0%, var(--red) 45%, var(--red-deep) 100%); color: #fff; overflow: hidden; }
.hero-red .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero-red h1 { font-size: clamp(46px, 7vw, 92px); margin: 18px 0 18px; }
.hero-red p { font-size: 19px; max-width: 520px; opacity: .95; margin: 0 0 28px; }
.hero-red .logo-big { width: min(440px, 100%); margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(80,0,0,.35)); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* sections */
section { padding: 84px 0; }
.section-title { font-size: clamp(34px, 4.6vw, 54px); color: var(--ink); margin: 0 0 14px; }
.lead { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 0 36px; }
.soft { background: var(--soft); }

/* game card on home */
.game-card { display: grid; grid-template-columns: 1.25fr 1fr; border-radius: 28px; overflow: hidden; background: #0d3fa8; color: #fff; box-shadow: 0 30px 60px -30px rgba(10,40,120,.55); }
.game-card .art { min-height: 360px; background: url("img/2op-header-marble.webp") center/cover no-repeat; }
.game-card .info { padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 16px; background: linear-gradient(160deg, #1d6dff 0%, #0b3a9c 100%); }
.game-card .head { display: flex; align-items: center; gap: 16px; }
.game-card .head img { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.game-card h3 { font-size: 34px; margin: 0; }
.game-card p { margin: 0; opacity: .92; }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.pillar .num { font-family: "Anton", Impact, sans-serif; font-size: 40px; color: var(--red); line-height: 1; }
.pillar h3 { margin: 12px 0 8px; font-size: 20px; color: var(--ink); }
.pillar p { margin: 0; color: var(--muted); }

/* contact */
.contact { text-align: center; }
.contact .mail { font-family: "Anton", Impact, sans-serif; font-size: clamp(26px, 4vw, 40px); color: var(--ink); text-decoration: none; letter-spacing: .02em; }
.contact .mail:hover { color: var(--red); }

/* game page hero */
.hero-sky { background: linear-gradient(180deg, #1b74ff 0%, #4fb2ff 62%, #8fd4ff 100%); color: #fff; position: relative; overflow: hidden; }
.hero-sky::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(180deg, transparent, rgba(40,120,30,.0)); }
.hero-sky .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.hero-sky .mr-logo { width: min(560px, 100%); filter: drop-shadow(0 14px 22px rgba(0,30,90,.35)); margin-bottom: 18px; }
.hero-sky p { font-size: 20px; max-width: 540px; margin: 0 0 26px; text-shadow: 0 1px 2px rgba(0,30,90,.25); }
.hero-sky .icon-big { width: min(320px, 80%); border-radius: 22%; box-shadow: 0 30px 60px -20px rgba(0,30,90,.6); margin: 0 auto; }
.note { font-size: 14px; opacity: .9; margin-top: 12px; }

/* trailer + features */
.split { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center; }
.phone { border-radius: 34px; padding: 10px; background: #0d1117; box-shadow: 0 30px 60px -25px rgba(0,0,0,.6); }
.phone video { border-radius: 26px; width: 100%; aspect-ratio: 9/16; background: #000; object-fit: cover; }
.features { display: grid; gap: 22px; }
.feature { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.feature .dot { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; background: #eaf3ff; }
.feature h3 { margin: 2px 0 4px; font-size: 20px; color: var(--ink); }
.feature p { margin: 0; color: var(--muted); }

/* modes */
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mode { border-radius: var(--radius); padding: 24px; color: #fff; min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; }
.mode h3 { font-family: "Anton", Impact, sans-serif; font-weight: 400; font-size: 28px; margin: 0 0 6px; text-transform: uppercase; letter-spacing: .02em; }
.mode p { margin: 0; font-size: 15px; opacity: .95; }
.m1 { background: linear-gradient(160deg, #ff4d5e, #c3001a); }
.m2 { background: linear-gradient(160deg, #3fa1ff, #1450c8); }
.m3 { background: linear-gradient(160deg, #ffb72a, #e1660b); }
.m4 { background: linear-gradient(160deg, #3bd16f, #138a43); }

/* screenshots */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: 230px; gap: 16px; overflow-x: auto; padding: 4px 4px 18px; scroll-snap-type: x mandatory; }
.shots img { width: 230px; border-radius: 18px; scroll-snap-align: start; box-shadow: 0 14px 30px -18px rgba(0,0,0,.5); aspect-ratio: 9/16; object-fit: cover; }

/* fair play + faq */
.fair { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fair div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.fair h3 { margin: 0 0 8px; color: var(--ink); font-size: 19px; }
.fair p { margin: 0; color: var(--muted); }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details summary { cursor: pointer; font-weight: 700; color: var(--ink); font-size: 18px; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--red); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--muted); }

/* legal pages */
.legal { max-width: 780px; margin: 0 auto; padding: 48px 20px 80px; }
.legal h1 { font-size: 34px; line-height: 1.2; color: var(--ink); margin: 0 0 6px; }
.legal h2 { font-size: 21px; margin: 32px 0 8px; color: var(--ink); }
.legal .muted { color: var(--muted); }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal .box { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin: 16px 0; }

/* footer */
footer { background: var(--ink); color: #c9ced8; padding: 44px 0; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
footer a { color: #fff; text-decoration: none; margin-right: 18px; }
footer a:hover { color: #ff6b76; }
footer .fbrand { display: flex; align-items: center; gap: 12px; }
footer .fbrand img { height: 30px; }

@media (max-width: 860px) {
  .hero-red .wrap, .hero-sky .wrap, .game-card, .split { grid-template-columns: 1fr; }
  .hero-red .wrap { padding-top: 48px; padding-bottom: 56px; text-align: center; }
  .hero-red p { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .hero-red .logo-big { width: 190px; order: -1; }
  .hero-sky .wrap { text-align: center; }
  .hero-sky .mr-logo, .hero-sky p { margin-left: auto; margin-right: auto; }
  .hero-sky .icon-big { width: 200px; }
  .game-card .art { min-height: 220px; }
  .game-card .info { padding: 28px; }
  .pillars, .fair { grid-template-columns: 1fr; }
  .modes { grid-template-columns: 1fr 1fr; }
  .phone { max-width: 300px; margin: 0 auto; }
  section { padding: 60px 0; }
  .nav { gap: 14px; }
  .nav a.hide-sm { display: none; }
}

/* ---- signature hero: the Overpowered Flick ---- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.hero-x { min-height: min(92vh, 860px); display: flex; align-items: center; position: relative; }
.hero-x .wrap { width: 100%; grid-template-columns: 1fr 1.05fr; padding-top: 40px; padding-bottom: 40px; }
.hero-x h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-x h1 .w > span, .section-title .w > span { display: inline-block; will-change: transform; }
.section-title .w { display: inline-block; overflow: hidden; vertical-align: top; }
.stage { position: relative; width: 100%; aspect-ratio: 1 / 0.92; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.logo2op { position: absolute; left: 9%; right: 9%; top: 6%; }
.logo2op .pc { position: absolute; height: auto; max-width: none; will-change: transform; pointer-events: none; filter: drop-shadow(0 10px 18px rgba(90,0,8,.28)) brightness(1); }
.pc-two { z-index: 3; } .pc-o, .pc-p { z-index: 2; } .pc-games { z-index: 2; }
.stage canvas { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.floorpad { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; touch-action: none; z-index: 5; }
.stage.is-live { cursor: grab; }
.stage.is-live:active { cursor: grabbing; }
.flick-hint { font-size: 14px !important; opacity: .9; margin: 22px 0 0 !important; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.flick-hint button { font: inherit; font-weight: 700; color: var(--red); background: #fff; border: 0; border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.flick-hint button:focus-visible, .btn:focus-visible, .nav a:focus-visible, footer a:focus-visible { outline: 3px solid #ffd84d; outline-offset: 3px; }
.flick-hint { visibility: hidden; }   /* hero.js shows it once there are marbles to flick */
@media (prefers-reduced-motion: reduce) { .flick-hint { display: none !important; } .stage { cursor: default; } }
@media (max-width: 860px) {
  .hero-x { min-height: 0; }
  .hero-x .wrap { grid-template-columns: 1fr; gap: 8px; padding-top: 20px; }
  .hero-x .stage { order: -1; max-width: 440px; margin: 0 auto; }
  .flick-hint { justify-content: center; }
}
.stage::after { content: ""; position: absolute; left: -4%; right: -4%; bottom: -2%; height: 14%; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 60%, rgba(90,0,10,.32), rgba(90,0,10,0) 70%); }
.hero-x h1 { font-size: clamp(44px, 5.4vw, 78px); }
