@font-face { font-family: Outfit; src: url("assets/outfit-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Outfit; src: url("assets/outfit-latin-ext.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: Outfit; src: url("assets/outfit-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Outfit; src: url("assets/outfit-bold-ext.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: Cinzel; src: url("assets/cinzel.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Cinzel; src: url("assets/cinzel-ext.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }

:root {
  color-scheme: light;
  --paper: #f6f4ee;
  --ink: #1f211f;
  --muted: #5d6259;
  --line: #e2ded3;
  --kw-bg: #15171c;
  --kw-ink: #ece4d2;
  --kw-muted: #b3ab9b;
  --gold: #e2c27f;
  --gold-deep: #b8913f;
  --gk-bg: #eaf4e2;
  --purple: #5a3fbf;
  --purple-deep: #452e9b;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 48px);
  font-family: Outfit, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; background: var(--paper); overflow-x: hidden; }
p, h1, h2 { margin: 0; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a:focus-visible, button:focus-visible { outline: 3px solid #8f74e8; outline-offset: 4px; border-radius: 6px; }

.skip-link { position: fixed; left: 16px; top: -80px; z-index: 20; padding: 12px 16px; background: #fff; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* Nagłówek */
.header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: 1440px; margin: 0 auto; padding: 22px var(--gutter) 18px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: auto; height: 46px; }
.brand-name { display: flex; flex-direction: column; font-weight: 700; font-size: 21px; letter-spacing: 0.06em; line-height: 1.1; }
.brand-caption { font-size: 11px; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; gap: 6px; }
.nav a { padding: 12px 14px; border-radius: 10px; font-size: 15px; color: var(--muted); transition: color 160ms, background 160ms; }
.nav a:hover { color: var(--ink); background: #ece9df; }

/* Wstęp */
.intro {
  max-width: 1440px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) var(--gutter) clamp(22px, 3vw, 34px);
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "eyebrow eyebrow" "title note"; align-items: end; gap: 12px 40px;
}
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.intro .eyebrow { grid-area: eyebrow; }
.intro h1 { grid-area: title; font-size: clamp(38px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.02em; }
.intro h1 span { color: #6f7a5c; }
.intro-note { grid-area: note; max-width: 300px; font-size: 16px; line-height: 1.5; color: var(--muted); text-align: right; }

.mobile-worlds { display: none; }

/* Dwa światy */
.worlds {
  max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.6vw, 22px);
}
.world { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; }
.world-dark { background: var(--kw-bg); color: var(--kw-ink); }
.world-bright { background: var(--gk-bg); }

.scene { position: relative; aspect-ratio: 1.65; overflow: hidden; background: #0e0f12; }
.world-bright .scene { background: #8fd0f5; }
.scene-art, .scene-motion { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene-motion { opacity: 0; transition: opacity 400ms ease; }
.scene-motion.is-ready { opacity: 1; }
.world-label {
  position: absolute; left: 18px; top: 16px; padding: 7px 11px; border-radius: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: #f3ecdd; background: rgba(12, 13, 16, 0.55); backdrop-filter: blur(4px);
}
.scene-pause {
  position: absolute; right: 14px; top: 14px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 8px;
  font-size: 13px; color: #e9e2d3; background: rgba(12, 13, 16, 0.5); backdrop-filter: blur(4px); opacity: 0.75; transition: opacity 160ms;
}
.scene-pause:hover, .scene-pause:focus-visible { opacity: 1; }
.world-bright .scene-pause { color: #2b2f4a; background: rgba(255, 255, 255, 0.7); }
.world-bright .world-label { color: #2b2f4a; background: rgba(255, 255, 255, 0.72); }

.world-content { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 2.6vw, 36px); flex: 1; }
.genre { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--kw-muted); }
.world-bright .genre { color: #5f7a55; }
.genre span[aria-hidden] { opacity: 0.5; margin: 0 6px; }
.nw { white-space: nowrap; }
.world h2 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.05; }
.world-dark h2 { font-family: Cinzel, Georgia, serif; color: var(--gold); letter-spacing: 0.01em; }
.world-bright h2 { color: #262a3f; letter-spacing: -0.01em; }
.world-description { max-width: 480px; font-size: 17px; line-height: 1.55; color: var(--kw-muted); }
.world-bright .world-description { color: #4a5548; }
.world-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 6px; }
.platforms { margin-top: auto; padding-top: 8px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--kw-muted); opacity: 0.8; }
.world-bright .platforms { color: #5f6b5a; }

/* Przyciski */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: 10px;
  font-size: 16px; font-weight: 700; transition: background 170ms, transform 170ms;
}
.button span { transition: transform 170ms; }
.button:hover span { transform: translate(3px, -3px); }
.button-gold { background: var(--gold); color: #1d1a12; }
.button-gold:hover { background: #ecd197; }
.button-purple { background: var(--purple); color: #fff; }
.button-purple:hover { background: var(--purple-deep); }
.text-button {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 4px;
  border: 0; background: none; font-size: 16px; font-weight: 700;
}
.text-button span { font-size: 11px; transition: transform 170ms; }
.text-button:hover span { transform: translateX(3px); }
.world-dark .text-button { color: var(--kw-ink); }
.world-bright .text-button { color: #2f3350; }

/* Studio i kontakt */
.studio, .contact { max-width: 1440px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter) 0; }
.studio-copy { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; margin-top: 18px; }
.studio h2, .contact h2 { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.08; letter-spacing: -0.015em; }
.studio-text { display: flex; flex-direction: column; gap: 14px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.inline-link { align-self: flex-start; margin-top: 6px; padding: 10px 0; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--ink); }
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; padding-bottom: clamp(56px, 8vw, 96px); }
.contact h2 { margin-top: 18px; }
.contact-options { display: flex; flex-direction: column; }
.contact-options a {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; border-top: 1px solid var(--line); font-size: 20px; font-weight: 700; transition: padding 170ms;
}
.contact-options a:last-child { border-bottom: 1px solid var(--line); }
.contact-options a:hover { padding-left: 12px; }
.contact-options small { display: block; margin-top: 4px; font-size: 15px; font-weight: 400; color: var(--muted); }

.footer {
  max-width: 1440px; margin: 0 auto; padding: 24px var(--gutter) 32px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 14px; color: var(--muted);
}

/* Okna */
dialog { border: 0; padding: 0; color: inherit; }
dialog::backdrop { background: rgba(14, 15, 18, 0.72); backdrop-filter: blur(3px); }
dialog[open] { animation: okno 200ms ease-out; }
@keyframes okno { from { opacity: 0; transform: translateY(10px); } }
.dialog-close {
  position: absolute; right: 12px; top: 12px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%;
  font-size: 26px; line-height: 1; background: rgba(255, 255, 255, 0.14); color: inherit;
}
.dialog-close:hover { background: rgba(255, 255, 255, 0.26); }

.game-dialog {
  width: min(1120px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border-radius: var(--radius); overflow: hidden;
  background: var(--kw-bg); color: var(--kw-ink);
  display: none; grid-template-columns: 1.55fr 1fr;
}
.game-dialog[open] { display: grid; }
.game-dialog--bright { background: #f7fbf3; color: var(--ink); grid-template-columns: auto 1fr; width: min(900px, calc(100vw - 32px)); }
.game-dialog--bright .dialog-close { background: rgba(31, 33, 31, 0.08); }
.dialog-media { position: relative; background: #000; display: flex; flex-direction: column; justify-content: center; }
.dialog-media video { width: 100%; height: auto; }
.dialog-media--phone { background: linear-gradient(160deg, #cfe9ff, #e6dcff); padding: 24px; align-items: center; }
.dialog-media--phone video { width: auto; height: min(560px, calc(100dvh - 96px)); aspect-ratio: 9 / 16; border-radius: 22px; border: 6px solid #1e1f2b; background: #1e1f2b; }
.media-note { padding: 10px 16px; font-size: 13px; color: var(--kw-muted); }
.dialog-copy { display: flex; flex-direction: column; gap: 14px; padding: 40px 32px 32px; overflow-y: auto; }
.dialog-copy .eyebrow { color: var(--kw-muted); }
.game-dialog--bright .dialog-copy .eyebrow { color: #5f7a55; }
.dialog-copy h2 { font-size: 34px; }
.game-dialog:not(.game-dialog--bright) h2 { font-family: Cinzel, Georgia, serif; color: var(--gold); }
.dialog-copy p { font-size: 16px; line-height: 1.6; opacity: 0.88; }
.dialog-copy ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.5; }
.dialog-copy .button { align-self: flex-start; margin-top: auto; }

.store-dialog { width: min(440px, calc(100vw - 32px)); padding: 36px 28px 28px; border-radius: var(--radius); background: #fff; position: relative; }
.store-dialog[open] { display: flex; flex-direction: column; gap: 12px; }
.store-dialog .dialog-close { background: #f0eee8; }
.store-dialog h2 { font-size: 28px; margin-bottom: 8px; }
.store-link {
  display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 12px 18px;
  border: 1px solid var(--line); border-radius: 12px; font-size: 14px; color: var(--muted); transition: border-color 160ms, background 160ms;
}
.store-link strong { display: block; font-size: 18px; color: var(--ink); }
.store-link:hover { border-color: var(--purple); background: #f6f3ff; }

/* Telefon i tablet */
@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; grid-template-areas: "eyebrow" "title" "note"; }
  .intro-note { text-align: left; }
  .worlds { grid-template-columns: 1fr; }
  .mobile-worlds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 var(--gutter) 16px; }
  .mobile-worlds a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 16px; border-radius: 10px; font-weight: 700; }
  .mobile-worlds a:first-child { background: var(--kw-bg); color: var(--gold); }
  .mobile-worlds a:last-child { background: var(--gk-bg); color: #2f3350; }
  .studio-copy, .contact { grid-template-columns: 1fr; gap: 20px; }
  .game-dialog, .game-dialog--bright { grid-template-columns: 1fr; overflow-y: auto; }
  .dialog-media--phone { padding: 16px; }
  .dialog-media--phone video { height: min(400px, 48dvh); }
  .dialog-copy { padding: 24px 20px 24px; overflow: visible; }
}
@media (max-width: 560px) {
  .nav a:not(:last-child) { display: none; }
  .brand-mark { height: 40px; }
  .brand-name { font-size: 18px; }
  .world-actions .button { flex: 1 1 100%; }
  .contact-options a { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}

/* 13.11.2026: na telefonie i tablecie oba światy obok siebie, równe kafle */
@media (max-width: 900px) {
  .worlds { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mobile-worlds { display: none; }
}
@media (max-width: 700px) {
  .scene { aspect-ratio: 0.95; }
  .world-label { left: 8px; top: 8px; padding: 5px 7px; font-size: 9px; letter-spacing: 0.12em; }
  .scene-pause { display: none; }
  .world-content { gap: 8px; padding: 14px 12px 16px; }
  .genre { font-size: 10px; letter-spacing: 0.1em; line-height: 1.35; }
  .world h2 { font-size: clamp(19px, 5.6vw, 26px); }
  .world-description { font-size: 14px; line-height: 1.4; }
  .world-actions { flex-direction: column; align-items: stretch; gap: 4px; margin-top: auto; }
  .world-actions .button { flex: none; min-height: 44px; padding: 0 10px; font-size: 14px; gap: 6px; }
  .world-actions .text-button { justify-content: center; min-height: 44px; font-size: 13px; }
  .platforms { display: none; }
}
@media (max-width: 380px) {
  .world-description { display: none; }
}
