:root {
  --sb-cyan: #00dce7;
  --sb-blue: #087ad5;
  --sb-deep: #00469f;
  --sb-purple: #5c087f;
  --sb-pink: #f3279d;
  --sb-lime: #8bec3c;
  --sb-sand: #ffe47e;
  --sb-ink: #11131a;
  --sb-paper: #f3f3f1;
  --sb-line: rgba(17, 19, 26, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.sea-blast-case { margin: 0; overflow-x: clip; background: var(--sb-paper); color: var(--sb-ink); }
.sea-blast-case .site-header { background: #18191b; }
.sea-blast-case .button { border-color: #1680dc; background: #1680dc; color: #fff; }
.sb-shell { width: min(1540px, calc(100% - 96px)); margin-inline: auto; }
.sb-section { padding: clamp(104px, 10vw, 184px) 0; }
.sb-eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 700; }
.sb-section h2,
.sb-world h2,
.sb-play h2,
.sb-motion h2,
.sb-result h2 {
  margin: 0;
  font-family: "Lebowski GB Preview", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(64px, 7vw, 132px);
  font-weight: 400;
  line-height: .88;
  letter-spacing: -.045em;
}
.sb-section p,
.sb-world p,
.sb-play p,
.sb-motion p,
.sb-result p { font-size: clamp(17px, 1.13vw, 22px); line-height: 1.48; }
.sb-heading-grid { display: grid; grid-template-columns: .72fr 2fr 1fr; gap: 4.5vw; align-items: start; }
.sb-heading-grid > p:last-child,
.sb-copy { max-width: 590px; }
.sb-copy p:first-child,
.sb-heading-grid > p:last-child { margin-top: 0; }

.sb-hero { position: relative; min-height: calc(100svh - var(--header-h)); overflow: hidden; background: var(--sb-cyan); }
.sb-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 16% 13%, rgba(255,255,255,.5), transparent 28%), linear-gradient(125deg, #00e1df, #009fe5 62%, #006ccd); pointer-events: none; }
.sb-hero__meta { position: absolute; z-index: 4; top: 28px; right: var(--gutter); left: var(--gutter); display: flex; justify-content: space-between; color: rgba(0,48,105,.72); text-transform: uppercase; letter-spacing: .13em; font-size: 10px; }
.sb-hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(30px, 5vw, 90px); align-items: center; min-height: calc(100svh - var(--header-h)); padding: 88px 0 54px; }
.sb-hero__copy { position: relative; z-index: 3; }
.sb-hero h1 { margin: 22px 0 32px; font-family: "Lebowski GB Preview", "Helvetica Neue", Arial, sans-serif; font-size: clamp(86px, 8vw, 152px); font-weight: 400; line-height: .78; letter-spacing: -.05em; }
.sb-hero__copy > p:last-of-type { max-width: 600px; font-size: clamp(18px, 1.28vw, 25px); line-height: 1.42; }
.sb-store-link { display: inline-block; margin-top: 28px; padding-bottom: 4px; border-bottom: 1px solid currentColor; color: inherit; text-decoration: none; }
.sb-hero__art { position: relative; margin: 0; overflow: hidden; border-radius: 46% 54% 49% 51% / 58% 45% 55% 42%; box-shadow: 0 50px 110px rgba(0,49,122,.22); transform: rotate(1.5deg); }
.sb-hero__art::before { content: ""; position: absolute; z-index: 2; inset: 0; border: 2px solid rgba(255,255,255,.44); border-radius: inherit; pointer-events: none; }
.sb-hero__art img { display: block; width: 100%; aspect-ratio: 1.18; object-fit: cover; }

.sb-index { position: sticky; z-index: 20; top: var(--header-h); display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--sb-line); background: rgba(248,248,246,.94); backdrop-filter: blur(14px); }
.sb-index a { min-width: 0; padding: 17px 24px; border-right: 1px solid var(--sb-line); color: inherit; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; text-align: center; }
.sb-index a:last-child { border-right: 0; }
.sb-index span { margin-right: 12px; color: var(--sb-blue); font-size: 9px; }

.sb-context { background: var(--sb-paper); }
.sb-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 100px; border-top: 1px solid var(--sb-line); border-left: 1px solid var(--sb-line); }
.sb-facts article { min-height: 300px; padding: 30px; border-right: 1px solid var(--sb-line); border-bottom: 1px solid var(--sb-line); }
.sb-facts strong { display: block; margin-bottom: 92px; color: var(--sb-blue); font-family: "Lebowski GB Preview", "Arial Narrow", sans-serif; font-size: clamp(82px, 8vw, 140px); font-weight: 400; line-height: .7; }
.sb-facts span { display: block; max-width: 220px; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; line-height: 1.45; }

.sb-world { padding: clamp(104px, 10vw, 184px) 0 0; overflow: hidden; background: var(--sb-deep); color: #fff; }
.sb-world__heading { display: grid; grid-template-columns: .72fr 2fr; gap: 4.5vw; }
.sb-world__heading h2 { max-width: 1200px; color: var(--sb-cyan); }
.sb-world__screen { width: min(1780px, calc(100% - 48px)); margin: clamp(72px, 8vw, 140px) auto 0; }
.sb-world__screen img { display: block; width: 100%; height: auto; }
.sb-world__copy { display: grid; grid-template-columns: 1fr 1fr; gap: 9vw; padding: 80px 0 120px; }
.sb-world__copy p { max-width: 620px; margin: 0; color: rgba(255,255,255,.74); }

.sb-play { padding: clamp(104px, 10vw, 184px) 0; background: #571176; color: #fff; }
.sb-play__heading { display: grid; grid-template-columns: .72fr 2fr 1fr; gap: 4.5vw; align-items: start; }
.sb-play__heading h2 { color: var(--sb-cyan); }
.sb-play__heading > p:last-child { max-width: 560px; margin-top: 0; color: rgba(255,255,255,.72); }
.sb-demo-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, 560px); gap: clamp(60px, 10vw, 180px); align-items: center; margin-top: 100px; }
.sb-demo-note { max-width: 620px; }
.sb-demo-note > p { color: rgba(255,255,255,.75); }
.sb-demo-note ul { margin: 50px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.3); }
.sb-demo-note li { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }

.sb-phone { position: relative; width: min(100%, 500px); justify-self: center; padding: 18px; border: 7px solid #101216; border-radius: 58px; background: #101216; box-shadow: 0 45px 90px rgba(16,0,30,.38); }
.sb-phone__speaker { position: absolute; z-index: 8; top: 13px; left: 50%; width: 88px; height: 7px; border-radius: 999px; background: #252830; transform: translateX(-50%); }
.sb-game { position: relative; min-height: 810px; overflow: hidden; padding: 52px 26px 30px; border-radius: 44px; background: #08dbe4 url("/ru-v1-case-sea-blast-v1/assets/game/background.png") center / cover no-repeat; color: #fff; font-family: "Arial Rounded MT Bold", "Trebuchet MS", Arial, sans-serif; }
.sb-game::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,77,174,.08), rgba(0,77,174,0) 48%, rgba(0,77,174,.1)); pointer-events: none; }
.sb-game > * { position: relative; z-index: 2; }
.sb-game__logo { display: block; width: 54%; height: auto; margin: 0 auto 12px; filter: drop-shadow(0 8px 12px rgba(0,89,159,.22)); }
.sb-game__hud { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 4px solid #420063; border-radius: 20px; background: #651083; box-shadow: 0 7px 0 rgba(51,0,86,.55); text-align: center; }
.sb-game__hud > div { min-width: 0; padding: 8px 5px 10px; border-right: 1px solid rgba(255,255,255,.18); }
.sb-game__hud > div:last-child { border-right: 0; }
.sb-game__hud span { display: block; color: #88eafa; text-transform: uppercase; letter-spacing: .06em; font-size: 9px; }
.sb-game__hud strong { display: block; margin-top: 2px; font-size: 22px; line-height: 1; }
.sb-game__targets ul { display: flex; justify-content: center; gap: 5px; margin: 2px 0 0; padding: 0; list-style: none; }
.sb-game__targets li { display: flex; align-items: center; gap: 1px; min-width: 0; }
.sb-game__targets li.is-complete { opacity: .35; }
.sb-game__targets img { display: block; width: 23px; height: 23px; object-fit: contain; }
.sb-game__targets strong { margin: 0; font-size: 15px; }
.sb-game__progress { height: 12px; margin: 16px 8px 18px; overflow: hidden; border: 3px solid #5b087b; border-radius: 99px; background: #153f76; box-shadow: 0 0 0 2px rgba(255,45,192,.55); }
.sb-game__progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffef3a, #ff5ec4); transition: width .35s ease; }
.sb-game__rule { margin: -3px 7px 10px; padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,.86); color: #153f76; font-size: 11px !important; font-weight: 700; line-height: 1.3 !important; text-align: center; }
.sb-game__rule strong { margin-right: 5px; color: #71118e; text-transform: uppercase; letter-spacing: .06em; font-size: 8px; }
.sb-board { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; width: 100%; padding: 7px; border: 4px solid rgba(0,89,155,.74); border-radius: 18px; background: rgba(0,157,191,.78); touch-action: manipulation; }
.sb-tile { position: relative; display: grid; place-items: center; min-width: 0; aspect-ratio: 1; padding: 1px; border: 0; border-radius: 13px; background: url("/ru-v1-case-sea-blast-v1/assets/game/cell.png") center / cover no-repeat; cursor: pointer; transition: transform .14s ease, filter .14s ease, opacity .2s ease; -webkit-tap-highlight-color: transparent; }
.sb-tile:hover { transform: translateY(-2px); filter: brightness(1.08); }
.sb-tile:focus-visible { outline: 3px solid #fff; outline-offset: -2px; }
.sb-tile.is-group-preview { z-index: 3; transform: translateY(-2px) scale(1.06); filter: drop-shadow(0 0 6px #fff) brightness(1.12); }
.sb-tile.is-group-preview::before { content: ""; position: absolute; z-index: 2; inset: 1px; border: 2px solid #fff; border-radius: inherit; box-shadow: 0 0 0 2px rgba(64,0,100,.46); pointer-events: none; }
.sb-tile.is-single-preview { filter: saturate(.55) brightness(.84); }
.sb-tile.is-hint { z-index: 3; animation: sb-hint 1.05s ease-in-out infinite; }
.sb-tile.is-clearing { pointer-events: none; animation: sb-pop .23s ease forwards; }
.sb-tile.is-invalid { animation: sb-shake .28s ease; }
.sb-tile img { display: block; width: 96%; height: 96%; object-fit: contain; pointer-events: none; user-select: none; }
.sb-tile[data-special]::after { content: ""; position: absolute; inset: 5%; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 10px #fff; pointer-events: none; }
.sb-game__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.sb-game__footer p { min-height: 34px; margin: 0; color: #163c70; font-size: 12px; font-weight: 700; line-height: 1.3; }
.sb-game__footer button,
.sb-game__result button { flex: 0 0 auto; padding: 10px 13px; border: 3px solid #5a087a; border-radius: 14px; background: #70118d; color: #fff; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.sb-game__result { position: absolute; z-index: 10; inset: 0; display: grid; place-content: center; gap: 15px; padding: 40px; background: rgba(67,0,92,.92); text-align: center; }
.sb-game__result[hidden] { display: none; }
.sb-game__result strong { color: var(--sb-cyan); font-size: 50px; line-height: 1; }
.sb-game__result span { max-width: 270px; }

.sb-interface { background: var(--sb-paper); }
.sb-figure { margin: 0; }
.sb-figure--wide { width: min(1780px, calc(100% - 48px)); margin: 100px auto 0; }
.sb-figure img { display: block; width: 100%; height: auto; }
.sb-figure figcaption { padding-top: 10px; text-transform: uppercase; letter-spacing: .12em; font-size: 9px; }
.sb-figure--items { margin-top: 2px; }

.sb-motion { padding: clamp(104px, 10vw, 184px) 0 0; background: #101216; color: #fff; }
.sb-motion__heading { display: grid; grid-template-columns: .72fr 2fr 1fr; gap: 4.5vw; padding-bottom: 90px; }
.sb-motion__heading h2 { color: var(--sb-cyan); }
.sb-motion__heading > p:last-child { margin-top: 0; color: rgba(255,255,255,.7); }
.sb-motion video { display: block; width: 100%; height: min(64vw, 1050px); object-fit: cover; background: #000; }

.sb-result { padding: clamp(104px, 10vw, 184px) 0; overflow: hidden; background: var(--sb-cyan); }
.sb-result__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(60px, 9vw, 160px); align-items: center; }
.sb-result h2 { margin: 24px 0 36px; }
.sb-result__grid > div > p:not(.sb-eyebrow) { max-width: 650px; }
.sb-app-button { display: inline-flex; align-items: center; gap: 18px; margin-top: 30px; padding: 12px 24px 12px 12px; border: 1px solid rgba(0,48,105,.5); border-radius: 22px; color: inherit; text-decoration: none; }
.sb-app-button img { width: 64px; height: 64px; border-radius: 15px; }
.sb-app-button span { font-weight: 700; }
.sb-app-button small { font-weight: 400; }
.sb-result__cover { display: block; width: 120%; height: auto; max-width: none; border-radius: 50%; transform: rotate(4deg); box-shadow: 0 36px 90px rgba(0,70,159,.25); }
.sb-contact { background: #08080a; }
.sb-contact .contact__main h2 { color: #fff; }

[data-reveal] { opacity: 1; transform: none; }
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s cubic-bezier(.22,1,.36,1); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes sb-pop { 0% { transform: scale(1); opacity: 1; } 60% { transform: scale(1.22); opacity: .9; } 100% { transform: scale(.15); opacity: 0; } }
@keyframes sb-shake { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(-5px); } 65% { transform: translateX(5px); } }
@keyframes sb-hint { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(255,255,255,.2)); } 50% { transform: scale(1.08); filter: drop-shadow(0 0 8px #fff) brightness(1.12); } }

@media (max-width: 1100px) {
  .sb-hero__grid { grid-template-columns: .9fr 1.1fr; }
  .sb-hero h1 { font-size: clamp(74px, 9vw, 112px); }
  .sb-demo-layout { grid-template-columns: .8fr 1.2fr; gap: 50px; }
}

@media (max-width: 900px) {
  .sb-shell { width: calc(100% - 48px); }
  .sb-section { padding: 92px 0; }
  .sb-heading-grid,
  .sb-play__heading,
  .sb-motion__heading { grid-template-columns: 1fr; gap: 28px; }
  .sb-heading-grid > p:last-child,
  .sb-copy { max-width: 720px; }
  .sb-hero { min-height: auto; }
  .sb-hero__grid { grid-template-columns: 1fr; padding: 100px 0 48px; }
  .sb-hero__copy { max-width: 700px; }
  .sb-hero__art { width: 90%; justify-self: end; }
  .sb-index a { padding-inline: 10px; }
  .sb-index a span { display: block; margin: 0 0 5px; }
  .sb-facts { margin-top: 70px; }
  .sb-facts article { min-height: 240px; }
  .sb-facts strong { margin-bottom: 66px; }
  .sb-world__heading { grid-template-columns: 1fr; gap: 28px; }
  .sb-demo-layout { grid-template-columns: 1fr; }
  .sb-demo-note { max-width: 720px; }
  .sb-phone { order: 2; }
  .sb-motion__heading { padding-bottom: 60px; }
  .sb-result__grid { grid-template-columns: 1fr; }
  .sb-result__cover { width: 86%; justify-self: center; }
}

@media (max-width: 600px) {
  .sb-shell { width: calc(100% - 24px); }
  .sb-section h2,
  .sb-world h2,
  .sb-play h2,
  .sb-motion h2,
  .sb-result h2 { font-size: clamp(54px, 16vw, 72px); }
  .sb-hero__meta { top: 18px; font-size: 8px; }
  .sb-hero__meta span:first-child { max-width: 190px; }
  .sb-hero__grid { padding-top: 86px; }
  .sb-hero h1 { font-size: clamp(68px, 22vw, 92px); }
  .sb-hero__art { width: 108%; margin-right: -17%; border-radius: 44% 56% 49% 51% / 55% 45% 55% 45%; }
  .sb-index { grid-template-columns: repeat(5, minmax(66px, 1fr)); overflow-x: auto; }
  .sb-index a { min-width: 74px; padding: 12px 7px; font-size: 9px; }
  .sb-facts { grid-template-columns: 1fr; margin-top: 55px; }
  .sb-facts article { display: grid; grid-template-columns: 112px 1fr; align-items: end; min-height: 150px; }
  .sb-facts strong { margin: 0; font-size: 78px; }
  .sb-world { padding-top: 88px; }
  .sb-world__screen { width: 100%; margin-top: 58px; overflow: hidden; }
  .sb-world__screen img { width: 165%; margin-left: -33%; }
  .sb-world__copy { grid-template-columns: 1fr; gap: 28px; padding: 56px 0 78px; }
  .sb-play { padding: 88px 0; }
  .sb-demo-layout { gap: 52px; margin-top: 60px; }
  .sb-phone { width: 100%; padding: 11px; border-width: 5px; border-radius: 45px; }
  .sb-phone__speaker { top: 9px; }
  .sb-game { min-height: 680px; padding: 43px 14px 22px; border-radius: 34px; }
  .sb-game__logo { width: 51%; margin-bottom: 8px; }
  .sb-game__hud { border-width: 3px; }
  .sb-game__hud strong { font-size: 18px; }
  .sb-game__targets img { width: 19px; height: 19px; }
  .sb-game__targets strong { font-size: 13px; }
  .sb-game__rule { margin-bottom: 8px; padding: 6px 8px; font-size: 10px !important; }
  .sb-board { gap: 1px; padding: 5px; border-width: 3px; }
  .sb-tile { border-radius: 10px; }
  .sb-game__footer { align-items: flex-end; }
  .sb-game__footer p { max-width: 180px; font-size: 10px; }
  .sb-figure--wide { width: 100%; margin-top: 58px; }
  .sb-figure--wide:first-of-type { overflow: hidden; }
  .sb-figure--wide:first-of-type img { width: 150%; margin-left: -25%; }
  .sb-motion { padding-top: 88px; }
  .sb-motion video { height: 66vw; }
  .sb-result__cover { width: 112%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .sb-tile { transition: none; }
  .sb-tile.is-hint { animation: none; outline: 3px solid #fff; outline-offset: -2px; }
}
