/* Co-Mic Studios - landing page. One screen.
   The brand: a deep violet studio, white wide letters, a gradient microphone for the I.
   The one guest, and the point of the page: Universe, in its own colours (night sky, yellow sticky note, red ribbon, Handjet). */

@font-face { font-family: "Handjet"; src: url("../assets/fonts/handjet-600.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --bg: #14051f;
  --violet: #a513f8;
  --magenta: #c200b8;
  --lav: #d9b8ff;
  --lav-2: #c65bff;
  --text: #f7f1ff;
  --text-dim: #bba9d8;
  --line: rgba(197, 89, 255, 0.3);
  --grad: linear-gradient(135deg, #a513f8, #c200b8);

  /* Universe's own tokens */
  --u-space: #0b0c14;
  --u-sticky: #ffe88c;
  --u-ink: #19213d;
  --u-red: #b82929;
  --u-ribbon: #9e1f24;
  --u-blue: #80d4ff;
  --u-tape: rgba(237, 227, 189, 0.85);

  --font: "Rubik", "Segoe UI", "Arial Hebrew", Arial, system-ui, sans-serif;
  --pixel: "Handjet", "Rubik", monospace;
  --gutter: clamp(18px, 4vw, 44px);
  --max: 1240px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text); font: 400 18px/1.55 var(--font); -webkit-font-smoothing: antialiased;
  overflow-x: hidden; transition: opacity 0.25s;
}
html.i18n-pending body { opacity: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--u-sticky); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
html[lang="he"] .only-en, html[lang="en"] .only-he { display: none !important; }
.skip { position: absolute; inset-inline-start: 16px; top: -90px; z-index: 200; background: var(--u-sticky); color: var(--u-red); padding: 8px 18px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* custom-property hooks so icon colours can change on hover (custom properties cross the <use> boundary) */
.acc { fill: var(--acc, url(#gAcc)); }
.accs { stroke: var(--accs, #c65bff); }
.ico { width: 26px; height: 26px; color: #fff; flex: none; }
.arr { width: 1.1em; height: 1.1em; flex: none; transition: transform 0.2s var(--ease); }
[dir="rtl"] .arr { transform: scaleX(-1); }

/* ---------- Top bar ---------- */
.nav { flex: none; height: 60px; background: rgba(20, 5, 31, 0.92); border-bottom: 1px solid rgba(197, 89, 255, 0.2); position: relative; z-index: 10; }
.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-logo { display: block; flex: none; }
.nav-logo img { height: 28px; width: auto; }
.nav-end { display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; gap: 2px; border: 0; background: none; padding: 4px; border-radius: 10px; font-size: 15px; color: var(--text-dim); }
.lang b { font-weight: 500; padding: 4px 9px; border-radius: 8px; }
.lang b.on { background: rgba(165, 19, 248, 0.38); color: #fff; }
.lang:hover { color: #fff; }
.nav-site { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 12px; text-decoration: none; font-weight: 500; font-size: 16px; color: var(--lav); border: 1px solid var(--line); transition: background 0.15s, color 0.15s; }
.nav-site:hover { background: rgba(165, 19, 248, 0.25); color: #fff; }
.nav-site:hover .arr { transform: translateX(3px); }
[dir="rtl"] .nav-site:hover .arr { transform: scaleX(-1) translateX(3px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; position: relative;
  padding: 12px 24px; border: 0; border-radius: 16px; font-family: inherit; font-weight: 700; font-size: 18px; line-height: 1.2;
  text-decoration: none; text-align: center; transition: transform 0.18s var(--ease), box-shadow 0.18s, filter 0.18s;
}
.btn:hover .arr { transform: translateX(4px); }
[dir="rtl"] .btn:hover .arr { transform: scaleX(-1) translateX(4px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 28px rgba(165, 19, 248, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25); white-space: nowrap; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(194, 0, 184, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3); filter: brightness(1.08); }
.btn-sticky {
  padding: clamp(14px, 2.2vh, 20px) clamp(28px, 3vw, 44px) clamp(15px, 2.4vh, 22px); font-size: clamp(24px, calc(0.5vw + 2.6vh), 34px);
  background: var(--u-sticky); color: var(--u-red); border-radius: 6px; transform: rotate(-1.4deg);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25), 0 16px 34px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(255, 232, 140, 0.55); animation: halo 2.6s ease-out 1.2s infinite;
}
.btn-sticky:hover { transform: rotate(0deg) translateY(-3px); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25), 0 22px 40px rgba(0, 0, 0, 0.55); animation: none; }

.page { flex: 1; display: flex; flex-direction: column; min-height: 0; }

/* ---------- The game ---------- */
.game {
  position: relative; isolation: isolate; overflow: hidden; flex: 1; display: flex; align-items: center; padding-block: clamp(14px, 3vh, 44px);
  background:
    radial-gradient(60% 55% at 82% 20%, rgba(70, 52, 140, 0.5), transparent 70%),
    radial-gradient(55% 50% at 8% 85%, rgba(28, 78, 140, 0.45), transparent 70%),
    radial-gradient(40% 30% at 55% 110%, rgba(120, 60, 110, 0.3), transparent 70%),
    var(--u-space);
}
.stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; image-rendering: pixelated; pointer-events: none; }
.game-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: clamp(24px, 5vw, 80px); align-items: center; }

.ribbon {
  position: relative; display: inline-flex; align-items: center; gap: 12px; margin-bottom: clamp(10px, 2vh, 20px); padding: 4px 36px 8px;
  font: 700 clamp(28px, calc(0.3vw + 3.4vh), 40px)/1 var(--pixel); letter-spacing: 0.04em; color: #fff;
  background: linear-gradient(180deg, var(--u-red), var(--u-ribbon)); rotate: -1.6deg;
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 50%, 100% 100%, 0 100%, 16px 50%);
}
.pulse { width: 14px; height: 14px; border-radius: 50%; background: var(--u-sticky); animation: beacon 1.8s ease-out infinite; flex: none; }
h1 { font-weight: 800; font-size: clamp(34px, calc(1.5vw + 4.4vh), 74px); line-height: 1.04; letter-spacing: -0.012em; text-shadow: 0 0 44px rgba(60, 150, 255, 0.4); }
.g-sub { margin-top: clamp(8px, 1.6vh, 16px); font-size: clamp(20px, calc(0.6vw + 2vh), 30px); font-weight: 500; color: #dfe6ff; line-height: 1.3; }
.g-sub b { font-weight: 800; color: var(--u-blue); text-shadow: 0 0 22px rgba(60, 150, 255, 0.6); }
.g-text { margin-top: clamp(6px, 1.2vh, 14px); max-width: 34em; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: #cfd4ec; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(12px, 2.2vh, 22px); }
.chips li { padding: 1px 13px 4px; border-radius: 4px; font: 600 clamp(20px, 2.8vh, 24px)/1.25 var(--pixel); color: #f9e4a7; background: rgba(249, 246, 238, 0.09); border: 1px dashed rgba(249, 228, 167, 0.55); }
.g-cta { margin-top: clamp(16px, 3.2vh, 34px); display: flex; flex-direction: column; align-items: flex-start; gap: clamp(8px, 1.6vh, 14px); }
.go-now { font-size: clamp(19px, calc(0.4vw + 2.1vh), 26px); font-weight: 700; color: var(--u-sticky); line-height: 1.3; }
.url { color: var(--lav); font-size: 17px; font-weight: 500; text-underline-offset: 4px; }
.url:hover { color: #fff; }
.g-cta .url { color: var(--u-blue); font-size: clamp(18px, 2.6vh, 22px); font-weight: 600; }

/* the logo with the game's pictures pinned under it */
.game-art { position: relative; width: min(100%, calc(56vh * 1.24)); aspect-ratio: 1.24 / 1; margin-inline: auto; }
.g-logo { position: absolute; z-index: 5; top: 0; inset-inline: 0; width: 64%; margin-inline: auto; display: block; filter: drop-shadow(0 0 44px rgba(60, 150, 255, 0.55)); animation: bob 8s ease-in-out infinite; transition: scale 0.3s var(--ease); }
.g-logo:hover { scale: 1.05; }
.g-logo img { width: 100%; height: auto; image-rendering: pixelated; }
.polaroids { position: absolute; inset-inline: 0; bottom: 0; height: 58%; }
.pol { position: absolute; width: 41%; padding: 7px 7px 20px; background: #fbfaf6; box-shadow: 0 16px 34px rgba(0, 0, 0, 0.55); transition: transform 0.35s var(--ease); }
.pol::before {
  content: ""; position: absolute; top: -10px; inset-inline-start: 50%; width: 64px; height: 20px; margin-inline-start: -32px; background: var(--u-tape); transform: rotate(-2.5deg);
  clip-path: polygon(0 0, 100% 0, 97% 25%, 100% 50%, 97% 75%, 100% 100%, 0 100%, 3% 75%, 0 50%, 3% 25%);
}
.pol img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; image-rendering: pixelated; }
.p1 { top: 18%; inset-inline-start: 0; transform: rotate(-6deg); z-index: 1; }
.p2 { top: 38%; inset-inline-start: 29.5%; transform: rotate(3.5deg); z-index: 3; }
.p3 { top: 2%; inset-inline-start: 59%; transform: rotate(-2.5deg); z-index: 2; }
.game-art:hover .p1 { transform: rotate(-3deg) translateX(-6px); }
.game-art:hover .p2 { transform: rotate(0deg); }
.game-art:hover .p3 { transform: rotate(2deg) translateX(6px); }

/* ---------- The studio: dubbing first ---------- */
.studio { position: relative; isolation: isolate; overflow: hidden; flex: none; padding-block: clamp(12px, 2.2vh, 22px); border-top: 2px solid rgba(214, 120, 255, 0.4); background: linear-gradient(180deg, #1d0833, var(--bg)); }
.waves { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.55; pointer-events: none; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 16px clamp(20px, 3vw, 40px); align-items: center; }
.dub {
  display: flex; align-items: center; gap: 18px; padding: 14px 20px; border-radius: 26px; text-decoration: none;
  background: linear-gradient(150deg, rgba(165, 19, 248, 0.34), rgba(194, 0, 184, 0.14)); border: 1px solid rgba(214, 120, 255, 0.65);
  box-shadow: 0 0 36px rgba(165, 19, 248, 0.3); transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.dub:hover { transform: translateY(-3px); box-shadow: 0 14px 44px rgba(194, 0, 184, 0.5); }
.ico-tile { position: relative; flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 18px; background: rgba(20, 5, 31, 0.75); border: 1px solid rgba(214, 120, 255, 0.5); transition: background 0.25s; }
.ico-tile.big { width: 76px; height: 76px; border-radius: 26px; background: var(--grad); border-color: rgba(255, 255, 255, 0.35); }
.ico-tile.big .ico { width: 46px; height: 46px; --acc: #fff; }
.dub-text { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.dub-head { display: flex; align-items: center; gap: 12px; }
.badge { padding: 1px 11px 2px; border-radius: 999px; background: var(--u-sticky); color: var(--u-red); font-size: 13px; font-weight: 700; letter-spacing: 0.01em; }
.dub h2 { font-weight: 800; font-size: clamp(28px, 3.4vh + 0.6vw, 38px); line-height: 1.1; }
.dub-p { font-size: 15.5px; line-height: 1.45; color: #e6d8fa; }
.also-h { margin-bottom: 8px; font-size: 15px; color: var(--text-dim); }
.also-h span:first-child { color: var(--lav); font-weight: 600; }
.svc { display: flex; flex-wrap: wrap; gap: 8px; }
.svc a {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 11px; border-radius: 14px; text-decoration: none; font-size: 16px; font-weight: 500;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); transition: background 0.2s, transform 0.2s var(--ease), border-color 0.2s;
}
.svc a:hover { background: var(--grad); border-color: transparent; transform: translateY(-2px); }
.svc a:hover .ico { --acc: #fff; --accs: #fff; }
.studio-cta { display: flex; flex-direction: column; align-items: center; gap: 6px; }

.foot { flex: none; padding: 7px 0 9px; background: #0d0316; text-align: center; font-size: 13px; color: var(--text-dim); }

/* ---------- Motion ---------- */
.rise { animation: rise 0.7s var(--ease) var(--d, 0s) both; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
@keyframes beacon { 0% { box-shadow: 0 0 0 0 rgba(255, 232, 140, 0.8); } 80%, 100% { box-shadow: 0 0 0 14px rgba(255, 232, 140, 0); } }
@keyframes halo { 0% { box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25), 0 16px 34px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(255, 232, 140, 0.55); } 70%, 100% { box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25), 0 16px 34px rgba(0, 0, 0, 0.5), 0 0 0 22px rgba(255, 232, 140, 0); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Short screens: keep everything on one screen ---------- */
@media (min-width: 921px) and (max-height: 800px) {
  .g-text { display: none; }
  .dub-p { font-size: 14.5px; }
  .dub { padding-block: 8px; }
  .ico-tile.big { width: 60px; height: 60px; }
}

/* ---------- Tablets and phones: stack, game first, studio below ---------- */
@media (max-width: 1100px) {
  .studio-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .studio-cta { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 18px; }
}
@media (max-width: 920px) {
  .game-grid { grid-template-columns: 1fr; gap: 18px; }
  .game-art { order: -1; aspect-ratio: auto; width: 100%; }
  .g-logo { position: static; width: min(58%, 270px); }
  .polaroids { display: none; }
  .game-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .g-cta { align-items: center; width: 100%; }
  .chips { justify-content: center; }
  .g-text { display: block; }
  .studio-grid { grid-template-columns: 1fr; }
  .also { text-align: center; }
  .svc { justify-content: center; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .nav-site span { display: none; }
  .nav-site { padding: 7px 10px; }
  .g-text { font-size: 16.5px; }
  .g-cta .btn { width: 100%; }
  .studio-cta { flex-direction: column; gap: 6px; }
  .studio-cta .btn { width: 100%; }
  .dub { gap: 14px; padding: 14px; }
  .ico-tile.big { width: 62px; height: 62px; border-radius: 22px; }
}
