/* Mainhattan Games – Startseite (alle Sprachen). Ergänzt style.css. Dunkles Design, Bewegung mit prefers-reduced-motion-Schutz. */
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/BarlowCondensed-Bold.woff") format("woff"); }
:root { --display: "Barlow Condensed", "Arial Narrow", "Segoe UI", system-ui, sans-serif; }
html[lang^="ru"], html[lang^="ar"], html[lang^="zh"] { --display: "Segoe UI", system-ui, -apple-system, "Noto Sans", Arial, sans-serif; }
body { overflow-x: hidden; }
.skip { position: absolute; inset-inline-start: 12px; top: -48px; background: var(--signal); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; text-decoration: none; }
.skip:focus { top: 10px; }

/* Kopf (fest) */
.bar { position: sticky; top: 0; z-index: 50; background: rgba(11, 16, 32, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, background .25s; }
.bar.scrolled { border-color: var(--line); background: rgba(11, 16, 32, .9); }
.bar .top { padding-block: 10px; }
.brand img { height: 36px; width: auto; display: block; }
.bar nav { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; justify-content: flex-end; }
.bar nav a.nl { color: var(--muted); text-decoration: none; font-size: 15px; padding: 6px 2px; position: relative; }
.bar nav a.nl::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--signal); transform: scaleX(0); transition: transform .25s; transform-origin: center; }
.bar nav a.nl:hover { color: var(--text); }
.bar nav a.nl:hover::after { transform: scaleX(1); }
@media (max-width: 860px) { .bar nav a.nl { display: none; } }

/* Sprachwahl */
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text); font-size: 14px; font-weight: 600; user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: 7px; height: 7px; border-inline-end: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.lang[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.lang summary:hover, .lang[open] summary { border-color: var(--signal); }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; min-width: 210px; box-shadow: 0 18px 50px rgba(0,0,0,.5); display: grid; gap: 2px; z-index: 60; animation: pop .18s ease-out; }
.lang li a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 15px; }
.lang li a:hover, .lang li a:focus-visible { background: var(--panel-2); }
.lang li a[aria-current="true"] { color: var(--signal); font-weight: 700; }
.flag { width: 24px; height: 16px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.18); display: block; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }

/* Hero */
.hero2 { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background:
  radial-gradient(900px 420px at 80% -10%, rgba(255,106,61,.22), transparent 60%),
  radial-gradient(700px 380px at 5% 30%, rgba(77,139,255,.16), transparent 60%), var(--ink); }
.hero2::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg at 70% 20%, rgba(255,106,61,.10), transparent 25%, rgba(77,139,255,.10) 50%, transparent 75%, rgba(255,106,61,.10)); animation: spin 40s linear infinite; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero2 .hero-inner { padding-block: 70px 0; gap: 20px; }
.rot { height: 1.3em; overflow: hidden; font-family: var(--display); font-weight: 700; font-size: clamp(20px, 3.2vw, 30px); color: var(--text); line-height: 1.3em; display: flex; align-items: center; gap: 10px; }
.rot .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--signal); flex: none; box-shadow: 0 0 14px var(--signal); }
.rot .words { display: block; height: 1.3em; overflow: hidden; }
.rot .words span { display: block; height: 1.3em; color: var(--signal); animation: roll 7.5s cubic-bezier(.7,0,.2,1) infinite; }
@keyframes roll { 0%, 26% { transform: translateY(0); } 33%, 59% { transform: translateY(-100%); } 66%, 92% { transform: translateY(-200%); } 100% { transform: translateY(-300%); } }
.hero2 h1 { font-size: clamp(44px, 9vw, 104px); max-width: 12ch; line-height: .98; text-transform: uppercase; letter-spacing: -.01em; }
html[lang^="ru"] .hero2 h1, html[lang^="ar"] .hero2 h1, html[lang^="zh"] .hero2 h1 { text-transform: none; letter-spacing: 0; font-size: clamp(36px, 5.2vw, 76px); max-width: 16ch; }
.hero2 h1 .hl { color: var(--signal); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn.big { padding: 14px 24px; font-size: 16px; }
.btn.fill { background: var(--signal); color: var(--ink); border-color: var(--signal); transition: transform .2s, filter .2s; }
.btn.fill:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn.ghost { transition: transform .2s, border-color .2s; }
.btn.ghost:hover { transform: translateY(-2px); }
.sky { display: block; width: 100%; height: auto; margin-top: 30px; transform: translateY(calc(var(--py, 0) * .12px)); will-change: transform; }
.sky .w { fill: #ffb347; opacity: 0; animation: tw 5s ease-in-out infinite; }
@keyframes tw { 0%, 100% { opacity: .08; } 50% { opacity: .85; } }

/* Marquee */
.strip { border-bottom: 1px solid var(--line); background: var(--panel); overflow: hidden; padding-block: 18px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; gap: 22px; width: max-content; animation: slide 38s linear infinite; }
.strip:hover .track { animation-play-state: paused; }
.track img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 6px 18px rgba(0,0,0,.4); transition: transform .25s; }
.track a:hover img { transform: translateY(-4px) scale(1.06); }
@keyframes slide { to { transform: translateX(-50%); } }
[dir="rtl"] .track { animation-name: slide-rtl; }
@keyframes slide-rtl { to { transform: translateX(50%); } }

/* Abschnitte + Karten */
.sec { padding-block: 76px 8px; scroll-margin-top: 60px; }
.sec:last-of-type { padding-bottom: 76px; }
.sec h2 { font-size: clamp(30px, 5vw, 52px); text-transform: uppercase; letter-spacing: .005em; display: flex; align-items: center; gap: 14px; }
.sec h2::before { content: ""; width: 10px; height: .8em; border-radius: 3px; background: var(--signal); flex: none; }
html[lang^="ru"] .sec h2, html[lang^="ar"] .sec h2, html[lang^="zh"] .sec h2 { text-transform: none; }
.sec .sub { margin-bottom: 30px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.gcard { --c: var(--signal); position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .25s, box-shadow .3s; }
.gcard:hover { transform: translateY(-6px); border-color: var(--c); box-shadow: 0 22px 50px rgba(0,0,0,.45), 0 0 0 1px var(--c); }
.gcard .shot { position: relative; aspect-ratio: 820 / 400; overflow: hidden; background: var(--panel-2); }
.gcard .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.gcard:hover .shot img { transform: scale(1.06); }
.gcard .shot::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(to top, var(--panel), transparent); pointer-events: none; }
.pill { position: absolute; inset-inline-start: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .02em; padding: 6px 11px; border-radius: 999px; background: rgba(11,16,32,.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--text); border: 1px solid rgba(255,255,255,.14); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); animation: beat 2s ease-in-out infinite; }
@keyframes beat { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
.gcard .info { padding: 0 22px 24px; display: grid; gap: 10px; align-content: start; margin-top: -34px; position: relative; z-index: 1; }
.gcard .head { display: flex; align-items: flex-end; gap: 14px; }
.gcard .ico { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 8px 22px rgba(0,0,0,.5); border: 2px solid var(--panel); flex: none; background: var(--panel-2); }
.gcard .tag { display: block; font-size: 13px; font-weight: 700; color: var(--c); letter-spacing: .03em; }
.gcard h3 { font-size: 28px; line-height: 1.05; text-transform: uppercase; }
html[lang^="ru"] .gcard h3, html[lang^="ar"] .gcard h3, html[lang^="zh"] .gcard h3 { text-transform: none; }
.gcard p { margin: 0; color: var(--muted); font-size: 16px; }

/* Studio */
.studio { padding-block: 76px; }
.studio .split { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.facts { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 10px; }
.facts div { display: grid; gap: 0; color: var(--muted); font-size: 14px; }
.facts b { font-family: var(--display); font-size: 44px; line-height: 1; color: var(--signal); }
.mail { display: block; font-family: var(--body); font-weight: 700; letter-spacing: 0; }
.legal-note { color: var(--muted); font-size: 13px; margin: 0; }
.soc { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 6px; }
.soc a { color: var(--muted); font-size: 14px; text-decoration: none; border-bottom: 1px solid var(--line); }
.soc a:hover { color: var(--text); border-color: var(--signal); }

/* Einblenden beim Scrollen */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i, 0) * 70ms); }
.js .rv.in { opacity: 1; transform: none; }
.js .gcard.rv.in:hover { transform: translateY(-6px); transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  .hero2::before, .track, .rot .words span, .pill::before, .sky .w { animation: none !important; }
  .rot .words span:not(:first-child) { display: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .sky { transform: none; }
  .strip { overflow-x: auto; }
}

/* Schwebende Karten im Hero */
.hero2 .wrap { position: relative; }
.stack { position: absolute; inset-inline-end: 0; top: 50px; width: min(40%, 470px); aspect-ratio: 1.1; pointer-events: none; }
.stack .fc { position: absolute; width: 74%; height: auto; aspect-ratio: 820 / 400; object-fit: cover; border-radius: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.14); animation: bob 7s ease-in-out infinite; }
.stack .fc:nth-child(1) { inset-inline-end: 0; top: 0; transform: rotate(5deg); animation-delay: -1s; }
.stack .fc:nth-child(2) { inset-inline-start: 0; top: 32%; transform: rotate(-6deg); animation-delay: -3s; z-index: 2; }
.stack .fc:nth-child(3) { inset-inline-end: 4%; bottom: 0; transform: rotate(2deg); animation-delay: -5s; z-index: 1; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@media (min-width: 1081px) { .hero2 .hero-inner { max-width: 56%; } }
@media (max-width: 1080px) { .stack { display: none; } }
@media (prefers-reduced-motion: reduce) { .stack .fc { animation: none !important; } }

.gcard h3 .zs { display: block; font-size: .56em; color: var(--c); letter-spacing: .02em; margin-top: 3px; }
.pill.live { background: rgba(22,163,74,.85); border-color: rgba(255,255,255,.3); }
.pill.live::before { background: #fff; }
.gcard .get { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 9px 16px; border-radius: 999px; background: var(--c); color: #0b1020; font-weight: 800; text-decoration: none; font-size: 14px; }
.gcard .get:hover, .gcard .get:focus-visible { filter: brightness(1.1); }
.gcard .badges { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; }
.gcard .badge { display: inline-flex; line-height: 0; }
.gcard .badge.ios img { height: 44px; width: auto; }
.gcard .badge.gp img { height: 66px; width: auto; margin: -11px -10px; }
.gcard .badge:hover img, .gcard .badge:focus-visible img { filter: brightness(1.12); }
.gcard h3 a.more { color: inherit; text-decoration: none; }
.gcard h3 a.more:hover, .gcard h3 a.more:focus-visible { text-decoration: underline; text-decoration-color: var(--c); }
.gcard .shot a { display: block; }
