/* Tisa Innovations: the whole site's styles. Colours and sizes are set once in :root. */
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/ChakraPetch-500.woff2) format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/ChakraPetch-700.woff2) format('woff2'); }

:root {
  --bg: #06070d;
  --bg-2: #090b14;
  --surface: #0e111d;
  --surface-2: #131829;
  --line: rgba(150, 170, 255, .12);
  --line-2: rgba(150, 170, 255, .24);
  --text: #eef1f8;
  --muted: #a3acc3;
  --dim: #6c7590;
  --cyan: #2ee6f6;
  --violet: #7c5cff;
  --amber: #ffb43c;
  --orange: #ff6a3d;
  --grad: linear-gradient(100deg, var(--cyan), var(--violet));
  --grad-game: linear-gradient(100deg, var(--amber), var(--orange));
  --head: 'Chakra Petch', system-ui, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Code', 'SF Mono', Consolas, monospace;
  --radius: 18px;
  --wrap: 1180px;
  --gutter: 20px;
  --nav-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #8ff4fb; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--cyan); color: #04121a; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
@media (max-width: 600px) { :root { --gutter: 16px; } body { font-size: 16px; } }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.game-text { background: var(--grad-game); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 .8rem/1 var(--head); text-transform: uppercase; letter-spacing: .2em; color: var(--cyan); margin: 0 0 18px; }
.eyebrow::before { content: ''; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow-game { color: var(--amber); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 12px; border: 0;
  background: var(--grad); color: #050711; font: 700 .95rem/1 var(--head); text-transform: uppercase; letter-spacing: .06em; text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(46, 230, 246, .55); transition: transform .2s, box-shadow .2s, filter .2s; cursor: pointer; }
.btn:hover { color: #050711; transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(124, 92, 255, .7); filter: brightness(1.08); }
.btn-ghost { background: rgba(255, 255, 255, .03); color: var(--text); border: 1px solid var(--line-2); box-shadow: none; }
.btn-ghost:hover { color: var(--text); border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(46, 230, 246, .08); }
.btn-game { background: var(--grad-game); box-shadow: 0 10px 30px -10px rgba(255, 140, 60, .6); }
.btn-game:hover { box-shadow: 0 16px 36px -10px rgba(255, 120, 60, .75); }
.btn-sm { padding: 11px 16px; font-size: .82rem; }
.btn-lg { padding: 18px 28px; font-size: 1.02rem; overflow-wrap: anywhere; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* header */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgba(6, 7, 13, .55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.nav.scrolled { background: rgba(6, 7, 13, .86); border-bottom-color: var(--line); }
.nav-row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { width: 36px; height: 36px; }
.brand-word { display: flex; flex-direction: column; line-height: 1; font-family: var(--head); }
.brand-word b { font-size: 1.3rem; letter-spacing: .14em; }
.brand-word i { font-style: normal; font-weight: 500; font-size: .6rem; letter-spacing: .38em; color: var(--muted); margin-top: 4px; }
.menu { display: flex; align-items: center; gap: 30px; }
.menu a:not(.btn) { color: var(--muted); text-decoration: none; font: 500 .95rem/1 var(--head); letter-spacing: .04em; transition: color .2s; }
.menu a:not(.btn):hover { color: var(--text); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; position: relative; cursor: pointer; }
.menu-btn span:not(.sr) { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, top .25s; }
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 25px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .menu { position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px;
    background: rgba(6, 7, 13, .97); border-bottom: 1px solid var(--line); display: none; }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .menu .btn { margin-top: 16px; padding: 15px 22px; font-size: .92rem; }
  html:not(.js) .menu-btn { display: none; }
  html:not(.js) .nav { height: auto; position: static; }
  html:not(.js) .menu { display: flex; position: static; flex-direction: row; flex-wrap: wrap; gap: 4px 18px; background: none; border: 0; padding: 0 0 12px; }
  html:not(.js) .nav-row { flex-wrap: wrap; padding-top: 14px; }
}

/* hero */
.hero { position: relative; margin-top: calc(-1 * var(--nav-h)); padding: calc(var(--nav-h) + 72px) 0 96px; min-height: min(100vh, 900px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 18% 45%, rgba(6, 7, 13, .9), rgba(6, 7, 13, .35) 70%, transparent),
              linear-gradient(180deg, rgba(6, 7, 13, .2), transparent 30%, transparent 70%, var(--bg)); }
.hero-grid { width: 100%; display: grid; grid-template-columns: 1.12fr .88fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.9rem); margin-bottom: 24px; }
.hero h1 .grad-text { display: inline; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.24rem); color: var(--muted); max-width: 35rem; margin-bottom: 32px; }
.hero-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 34px 0 0; color: var(--dim); font: 500 .85rem/1 var(--head); text-transform: uppercase; letter-spacing: .14em; }
.hero-tags li { display: inline-flex; align-items: center; gap: 10px; }
.hero-tags li::before { content: ''; width: 6px; height: 6px; border-radius: 1px; background: var(--cyan); transform: rotate(45deg); }
.hero-tags li:nth-child(n+3)::before { background: var(--amber); }

.hero-stage { position: relative; height: 580px; }
.phone { position: absolute; right: 6%; top: 0; width: 280px; padding: 9px; border-radius: 40px; background: linear-gradient(160deg, #1d2236, #0a0c15);
  border: 1px solid var(--line-2); transform: rotate(4deg); animation: float 7s ease-in-out infinite;
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .8), 0 0 80px -10px rgba(124, 92, 255, .45); }
.phone img { border-radius: 32px; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.chip-float { position: absolute; right: 0; top: 70px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 999px;
  background: rgba(14, 17, 29, .88); border: 1px solid rgba(255, 180, 60, .35); font: 700 .78rem/1 var(--head); letter-spacing: .06em; text-transform: uppercase;
  color: var(--amber); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .8); animation: float 6s ease-in-out -2s infinite; }
.chip-float .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(255, 180, 60, .2); }
.code-card { position: absolute; left: 0; bottom: 30px; width: 330px; border-radius: 14px; overflow: hidden; background: rgba(12, 15, 26, .9);
  border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transform: rotate(-3deg);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .85), 0 0 60px -20px rgba(46, 230, 246, .4); animation: float 8s ease-in-out -4s infinite; }
.code-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); font: 500 .72rem/1 var(--mono); color: var(--dim); }
.code-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.code-bar i:nth-child(2) { background: #febc2e; }
.code-bar i:nth-child(3) { background: #28c840; margin-right: 8px; }
.code-card pre { margin: 0; padding: 14px 16px 16px; font: .8rem/1.65 var(--mono); color: #d7def0; white-space: pre; overflow: hidden; }
.code-card .c { color: #6c7590; } .code-card .k { color: #b69cff; } .code-card .f { color: var(--cyan); } .code-card .s { color: #ffcf7a; } .code-card .n { color: #ff8a65; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

@media (max-width: 980px) {
  .hero { min-height: 0; padding-top: calc(var(--nav-h) + 48px); padding-bottom: 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero::before { background: linear-gradient(180deg, rgba(6, 7, 13, .78), rgba(6, 7, 13, .55) 45%, rgba(6, 7, 13, .25) 70%, var(--bg)); }
  .hero-stage { height: 470px; max-width: 520px; width: 100%; margin: 0 auto; }
  .phone { width: 230px; right: 8%; }
  .code-card { width: 300px; bottom: 20px; }
}
@media (max-width: 480px) {
  .eyebrow { letter-spacing: .14em; font-size: .74rem; }
  .hero-stage { height: 410px; }
  .phone { width: 196px; right: 2%; padding: 7px; border-radius: 32px; }
  .phone img { border-radius: 26px; }
  .chip-float { top: auto; bottom: 12px; right: 4px; font-size: .68rem; padding: 8px 11px; }
  .code-card { width: 252px; bottom: 64px; }
  .code-card pre { font-size: .68rem; padding: 12px; }
}

/* ticker */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 18px 0; }
.ticker-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: tick 46s linear infinite; }
.ticker span { font: 700 1.05rem/1 var(--head); text-transform: uppercase; letter-spacing: .12em; color: #8a93ad; white-space: nowrap; }
.ticker b { color: var(--cyan); font-size: .7rem; }
.ticker b:nth-of-type(even) { color: var(--amber); }
@keyframes tick { to { transform: translateX(-50%); } }

/* sections */
.section { padding: clamp(80px, 11vw, 136px) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head h2, .why h2, .cta h2 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* services */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pillar { position: relative; padding: clamp(26px, 3.4vw, 40px); border-radius: var(--radius); overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); }
.pillar::before { content: ''; position: absolute; z-index: -1; width: 380px; height: 380px; right: -140px; top: -170px; border-radius: 50%; filter: blur(30px); opacity: .5; }
.pillar-web::before { background: radial-gradient(circle, rgba(46, 230, 246, .45), transparent 65%); }
.pillar-game::before { background: radial-gradient(circle, rgba(255, 160, 60, .45), transparent 65%); }
.pillar-web { border-top: 2px solid rgba(46, 230, 246, .6); }
.pillar-game { border-top: 2px solid rgba(255, 180, 60, .7); }
.pillar-icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); }
.pillar-icon svg { width: 34px; height: 34px; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pillar-web .pillar-icon svg { stroke: var(--cyan); }
.pillar-game .pillar-icon svg { stroke: var(--amber); }
.pillar h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.pillar-lead { color: var(--muted); font-size: 1.05rem; margin-bottom: 18px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: 16px 0 16px 34px; border-top: 1px solid var(--line); }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 22px; width: 14px; height: 8px; border: solid var(--cyan); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.pillar-game .ticks li::before { border-color: var(--amber); }
.ticks strong { display: block; font: 700 1.04rem/1.3 var(--head); letter-spacing: .01em; margin-bottom: 3px; }
.ticks span { color: var(--muted); font-size: .96rem; }
.extras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.extra { padding: 22px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.extra h4 { font-size: 1.08rem; margin-bottom: 6px; }
.extra p { color: var(--muted); font-size: .93rem; margin: 0; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } .extras { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .extras { grid-template-columns: 1fr; } }

/* featured game */
.feature { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 48px); align-items: center; padding: clamp(16px, 2.4vw, 28px); border-radius: 26px;
  background: radial-gradient(ellipse 60% 80% at 100% 0%, rgba(255, 150, 60, .14), transparent 60%), var(--surface); border: 1px solid rgba(255, 180, 60, .22); }
.feature-art { display: block; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.feature-art img { width: 100%; transition: transform .6s; }
.feature-art:hover img { transform: scale(1.03); }
.feature-copy { padding: 8px 8px 8px 0; }
.feature-copy h3 { font-size: clamp(2rem, 3.6vw, 2.9rem); color: var(--amber); }
.feature-copy > p:not(.pill) { color: var(--muted); }
.pill { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255, 180, 60, .4); color: var(--amber); background: rgba(255, 180, 60, .08);
  font: 700 .74rem/1 var(--head); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0 28px; }
.stats div { padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.stats dt { font: 700 1.7rem/1 var(--head); color: var(--text); margin-bottom: 6px; }
.stats dd { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.4; }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 210px); gap: 16px; overflow-x: auto; margin-top: 28px; padding: 4px 2px 14px;
  scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.shots img { border-radius: 16px; border: 1px solid var(--line); scroll-snap-align: start; aspect-ratio: 9 / 16; object-fit: cover; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature-copy { padding: 4px 6px 10px; } }
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } }

/* why */
.why { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.why-copy p { color: var(--muted); font-size: 1.08rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 28px 0 0; }
.chips li { padding: 8px 13px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .025); font: 500 .85rem/1 var(--head); letter-spacing: .03em; color: #cdd4e6; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.value { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .3s; }
.value:hover { border-color: var(--line-2); transform: translateY(-3px); }
.value-n { display: block; font: 700 .9rem/1 var(--head); letter-spacing: .1em; margin-bottom: 18px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.value h3 { font-size: 1.3rem; }
.value p { color: var(--muted); font-size: .96rem; margin: 0; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

/* process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::after { content: ''; position: absolute; left: 24px; right: 24px; top: 0; height: 2px; background: var(--grad); opacity: .7; }
.step-n { display: block; font: 700 2.6rem/1 var(--head); color: transparent; -webkit-text-stroke: 1.5px rgba(150, 170, 255, .45); margin-bottom: 18px; }
.step h3 { font-size: 1.3rem; }
.step p { color: var(--muted); font-size: .96rem; margin: 0; }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* contact */
.cta { text-align: center; padding: clamp(44px, 7vw, 88px) clamp(20px, 5vw, 64px); border-radius: 28px; position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse 70% 90% at 20% 0%, rgba(46, 230, 246, .16), transparent 60%),
              radial-gradient(ellipse 70% 90% at 85% 100%, rgba(124, 92, 255, .24), transparent 60%), var(--surface);
  border: 1px solid var(--line-2); }
.cta .eyebrow { justify-content: center; }
.cta > p:not(.eyebrow):not(.cta-note) { color: var(--muted); font-size: 1.12rem; max-width: 40rem; margin: 0 auto 32px; }
.cta-note { color: var(--dim); font-size: .9rem; margin: 22px auto 0; max-width: 34rem; }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--bg-2); padding: 64px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 32px; }
.foot-brand p { color: var(--muted); font-size: .95rem; margin: 18px 0 12px; max-width: 22rem; }
.foot-mail { display: block; font-weight: 600; overflow-wrap: anywhere; }
.foot-phone { margin-top: 6px; color: var(--text); text-decoration: none; }
.cta-buttons { justify-content: center; }
.foot h2 { font: 700 .8rem/1 var(--head); text-transform: uppercase; letter-spacing: .18em; color: var(--dim); margin: 6px 0 16px; }
.foot nav a { display: block; color: var(--muted); text-decoration: none; padding: 5px 0; font-size: .95rem; }
.foot nav a:hover { color: var(--text); }
.foot-co p { color: var(--muted); font-size: .95rem; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: .86rem; }
.foot-base a { color: var(--muted); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* inner pages */
.page-hero { position: relative; padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse 60% 100% at 85% 0%, rgba(124, 92, 255, .18), transparent 60%), var(--bg); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.page-hero .lead { margin-bottom: 0; }
.prose { max-width: 46rem; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.prose h2 { font-size: 1.35rem; margin-top: 2.2em; }
.prose p, .prose li { color: #c9d0e2; }
.prose ul { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: .45em 0; }
.prose li::marker { color: var(--cyan); }
.prose strong { color: var(--text); }
.prose a { overflow-wrap: anywhere; }

/* Squad Gates page */
.sg-hero { position: relative; padding: clamp(48px, 7vw, 88px) 0 clamp(48px, 7vw, 88px); overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse 60% 90% at 90% 10%, rgba(255, 150, 60, .18), transparent 60%), var(--bg); }
.sg-hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.sg-hero h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); color: var(--amber); }
.sg-hero .sg-tag { font: 700 clamp(1.1rem, 2vw, 1.4rem)/1.3 var(--head); margin-bottom: 14px; }
.sg-hero .lead { margin-bottom: 26px; }
.sg-hero-art { border-radius: 20px; overflow: hidden; border: 1px solid rgba(255, 180, 60, .3); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 80px -30px rgba(255, 140, 60, .5); }
.sg-icon { width: 76px; height: 76px; border-radius: 18px; margin-bottom: 22px; box-shadow: 0 10px 30px -10px rgba(255, 140, 60, .6); }
.sg-status { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
@media (max-width: 900px) { .sg-hero-grid { grid-template-columns: 1fr; } }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.card h3 { font-size: 1.35rem; color: var(--amber); }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.card-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 18px; font: 700 1rem/1 var(--head); color: #1a0d00; background: var(--grad-game); }
@media (max-width: 900px) { .cards3 { grid-template-columns: 1fr; } }
.glitches { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.glitch { position: relative; padding: 22px 22px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--c, var(--amber)); }
.glitch small { display: block; font: 500 .72rem/1 var(--head); text-transform: uppercase; letter-spacing: .16em; color: var(--c, var(--amber)); margin-bottom: 10px; }
.glitch h3 { font-size: 1.2rem; margin-bottom: 6px; }
.glitch p { color: var(--muted); font-size: .93rem; margin: 0 0 12px; }
.glitch .power { display: inline-block; font: 700 .74rem/1 var(--head); text-transform: uppercase; letter-spacing: .08em; padding: 6px 9px; border-radius: 8px;
  color: var(--text); background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); }
.bosses { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.bosses li { display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.bosses .lv { grid-row: span 2; display: grid; place-items: center; height: 44px; border-radius: 10px; font: 700 1rem/1 var(--head); color: var(--amber); background: rgba(255, 180, 60, .08); border: 1px solid rgba(255, 180, 60, .3); }
.bosses b { font: 700 1.02rem/1.2 var(--head); }
.bosses span { color: var(--muted); font-size: .86rem; line-height: 1.2; }
.bosses li.final { border-color: rgba(255, 106, 61, .5); background: radial-gradient(ellipse at 0 0, rgba(255, 106, 61, .14), transparent 70%), var(--surface); }
.note { color: var(--muted); margin-top: 22px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.support { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* 404 */
.lost { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.lost h1 { font-size: clamp(4rem, 14vw, 9rem); line-height: 1; margin-bottom: 12px; }
.lost p { color: var(--muted); font-size: 1.1rem; margin-bottom: 28px; }

/* reveal on scroll (only when scripts run, so nothing is hidden without them) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
