@font-face {
  font-family:Rubik;
  src:url("/assets/fonts/rubik-regular.woff") format("woff");
  font-weight:400;
  font-style:normal;
  font-display:swap;
}

@font-face {
  font-family:Rubik;
  src:url("/assets/fonts/rubik-bold.woff") format("woff");
  font-weight:650 900;
  font-style:normal;
  font-display:swap;
}

:root {
  color-scheme:dark;
  --bg:#0c0d15;
  --surface:#181923;
  --line:#30303e;
  --muted:#b6b5c6;
  --white:#f7f7fc;
  --lilac:#b398ff;
  --lime:#cefa66;
  --pad:clamp(18px,4.9vw,76px);
  font:16px/1.5 Rubik,Arial,sans-serif;
  font-weight:400;
  background:var(--bg);
  color:var(--white);
  scroll-behavior:smooth;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  background:radial-gradient(800px 500px at 50% 22%,#13122144,transparent),var(--bg);
}

main {
  flex:1;
}

a {
  color:inherit;
  text-decoration:none;
}

button,input {
  font:inherit;
}

button {
  cursor:pointer;
  color:inherit;
}

button:disabled {
  cursor:default;
}

button:focus-visible,a:focus-visible,input:focus-visible,canvas:focus-visible {
  outline:3px solid #e2fc86;
  outline-offset:4px;
}

[hidden] {
  display:none!important;
}

h1,h2,h3,p {
  margin:0;
}

h1,h2,h3,.brand {
  font-weight:700;
}

img,svg {
  display:block;
}

img {
  max-width:100%;
}

.wrap {
  width:calc(100% - var(--pad)*2);
  max-width:1320px;
  margin-inline:auto;
}

.ico {
  width:1.18em;
  height:1.18em;
  flex:none;
  display:inline-block;
  vertical-align:middle;
}

.sr,.skip:not(:focus) {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
}

.skip:focus {
  position:fixed;
  left:12px;
  top:10px;
  z-index:50;
  padding:10px;
  background:var(--lime);
  color:#141510;
}

.topbar {
  position:relative;
  z-index:5;
  background:#101018;
  border-bottom:1px solid #292936;
}

.bar-inner {
  height:77px;
  display:flex;
  align-items:center;
  gap:clamp(28px,5vw,80px);
}

.brand {
  min-height:44px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  line-height:1;
  font-size:1.46rem;
  letter-spacing:-1.25px;
  white-space:nowrap;
}

.brand-accent {
  color:#bba5fc;
}

.mark {
  width:37px;
  height:33px;
}

.desktop-nav {
  display:flex;
  height:100%;
  gap:31px;
  align-items:stretch;
}

.desktop-nav a {
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:44px;
  font-size:.98rem;
  color:#b7b6c7;
}

.desktop-nav a.active,.desktop-nav a:hover {
  color:#eee9ff;
}

.desktop-nav a.active:after {
  content:"";
  position:absolute;
  bottom:0;
  height:3px;
  border-radius:2px;
  background:var(--lilac);
  left:0;
  right:0;
}

.bar-end {
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:7px;
}

.records-btn,.secondary,.icon-button,.mobile-toggle,.quiet-action,.pause-button {
  border:1px solid #403b52;
  background:#21202d;
  border-radius:8px;
  color:var(--white);
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:0 16px;
  font-weight:600;
  font-size:.94rem;
}

.records-btn {
  background:#191921;
  border-color:#383640;
  font-weight:400;
  min-height:44px;
}

.records-btn .ico {
  color:#c9b5ff;
}

.records-btn:hover,.secondary:hover,.quiet-action:hover,.pause-button:hover {
  background:#302d40;
  border-color:#756986;
}

.mobile-toggle {
  display:none;
  padding:0;
  width:44px;
  background:transparent;
}

.mobile-nav {
  position:absolute;
  right:var(--pad);
  top:62px;
  background:#21212d;
  border:1px solid var(--line);
  border-radius:10px;
  padding:7px;
  box-shadow:0 14px 40px #0009;
}

.mobile-nav a {
  display:block;
  padding:12px 24px;
  min-height:44px;
}

.mobile-nav .active {
  color:var(--lilac);
}

.home {
  padding-top:clamp(20px,2.05vw,32px);
}

.hero {
  isolation:isolate;
  overflow:hidden;
  position:relative;
  display:flex;
  align-items:center;
  min-height:clamp(360px,31.7vw,442px);
  background:#1b172e;
  border:1px solid #3a304e;
  border-radius:20px;
}

.hero-visual,.hero-wash {
  position:absolute;
  inset:0;
  z-index:-2;
}

.hero-visual {
  left:34%;
  overflow:hidden;
}

.hero-visual img {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 57%;
  filter:saturate(1.37) contrast(1.08);
}

.hero-wash {
  z-index:-1;
  background:linear-gradient(90deg,#191626 0%,#1b162a 30%,rgba(28,22,43,.98) 35%,rgba(32,23,47,.83) 42%,rgba(37,21,55,.25) 56%,transparent 72%),linear-gradient(0deg,#16112255 0%,transparent 24%);
}

.hero-inner {
  position:relative;
  padding:39px clamp(22px,3.25vw,53px);
  width:64%;
}

.eyebrow,.genre {
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.115em;
  font-size:.73rem;
  line-height:1.3;
}

.eyebrow {
  color:#d0baff;
  letter-spacing:.16em;
  margin-bottom:16px;
}

.pixel-spark {
  font-size:1.11rem;
  line-height:1;
}

.hero h1 {
  font-size:clamp(3.1rem,4.65vw,4.8rem);
  line-height:.99;
  letter-spacing:-.062em;
  color:#faf8ff;
  margin-bottom:17px;
}

.hero h1 em {
  font-style:normal;
  color:#b398ff;
}

.hero-inner>p {
  color:#c6c3d3;
  font-size:clamp(1rem,1.12vw,1.09rem);
  max-width:440px;
  line-height:1.55;
}

.hero-actions,.dialog-actions,.overlay-actions {
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:23px;
}

.primary {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:46px;
  padding:11px 17px;
  border:1px solid #d2f99a;
  border-radius:8px;
  background:var(--lime);
  color:#202713;
  font-size:.95rem;
  font-weight:700;
  line-height:1.35;
  transition:background .15s,transform .15s;
}

.primary:hover {
  background:#deff91;
  transform:translateY(-1px);
}

.secondary {
  min-height:46px;
}

.hero-actions .secondary {
  background:#221e2ec9;
}

.hero-actions .secondary:hover {
  background:#332c44;
}

.hero-hud {
  display:flex;
  align-items:center;
  gap:8px;
  position:absolute;
  bottom:16px;
  right:20px;
  padding:6px 10px;
  border:1px solid #b3a7cb66;
  background:#151122bb;
  border-radius:6px;
  color:#f5efff;
  font-size:.78rem;
}

.hero-hud .ico {
  color:#d3b7ff;
}

.hero-hud i {
  width:1px;
  height:12px;
  background:#8b8198;
}

.library {
  padding-top:clamp(32px,3.1vw,48px);
  scroll-margin-top:18px;
}

.library-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:22px;
}

.library-head h2,.guide-strip h2 {
  font-size:clamp(1.74rem,2.38vw,2.3rem);
  letter-spacing:-.05em;
  line-height:1.1;
}

.filters {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
}

.filter {
  min-height:44px;
  padding:7px 13px;
  line-height:1.25;
  border-radius:7px;
  background:transparent;
  color:#bbb9ca;
  border:1px solid transparent;
  font-size:.88rem;
}

.filter:hover {
  color:#f7f4ff;
  border-color:#373344;
}

.filter[aria-pressed=true] {
  background:#2d2541;
  color:#d0b9ff;
  border-color:#504166;
}

.card-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:clamp(12px,1.5vw,24px);
}

.card-grid:has(.game-card[hidden]) {
  min-height:180px;
}

.pink {
  --accent:#ff9bbd;
}

.purple {
  --accent:#c3a2ff;
}

.teal {
  --accent:#6de2ce;
}

.gold {
  --accent:#ffd779;
}

.game-card {
  min-width:0;
  overflow:hidden;
  border-radius:13px;
  border:1px solid #30303f;
  background:#181821;
  transition:transform .18s,border-color .18s;
}

.game-card:hover,.game-card:focus-within {
  transform:translateY(-3px);
  border-color:var(--accent);
}

.card-link {
  display:flex;
  flex-direction:column;
  height:100%;
}

.card-link:focus-visible {
  outline-offset:-3px;
}

.card-pic {
  width:100%;
  aspect-ratio:1.72;
  overflow:hidden;
  background:#242031;
  border-bottom:1px solid #33313d;
}

.card-pic img {
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .23s;
}

.game-card:hover .card-pic img {
  transform:scale(1.035);
}

.card-body {
  padding:clamp(14px,1.22vw,20px);
  display:flex;
  flex-direction:column;
  flex:1;
}

.genre {
  color:var(--accent,#bdabeb);
  font-size:.7rem;
  letter-spacing:.09em;
}

.genre .ico {
  width:14px;
  height:14px;
}

.card-body h3 {
  margin:8px 0 5px;
  font-size:clamp(1.25rem,1.56vw,1.61rem);
  line-height:1.15;
  letter-spacing:-.036em;
}

.card-body p {
  font-size:.92rem;
  color:var(--muted);
  line-height:1.48;
  flex:1;
}

.card-foot {
  margin-top:16px;
  padding-top:12px;
  border-top:1px solid #32313e;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  font-size:.8rem;
  color:#b2aebf;
}

.card-play {
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#f0eff6;
  font-weight:700;
  font-size:.9rem;
}

.card-play .ico {
  color:var(--accent);
  width:13px;
}

.guide-strip {
  display:flex;
  gap:18px;
  align-items:center;
  margin:36px 0 42px;
  padding:24px 28px;
  background:#14151f;
  border:1px solid #2d2c3b;
  border-radius:12px;
}

.guide-icon,.dialog-glyph {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:49px;
  height:49px;
  border-radius:12px;
  background:#2b2440;
  color:var(--lilac);
  flex:none;
}

.guide-icon .ico,.dialog-glyph .ico {
  width:25px;
  height:25px;
}

.guide-strip h2 {
  font-size:1.32rem;
}

.guide-strip p {
  color:var(--muted);
  font-size:.95rem;
  margin-top:5px;
}

.guide-strip .secondary {
  margin-left:auto;
}

footer {
  background:#101018;
  border-top:1px solid #2a2936;
}

.footer-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-block:25px;
  gap:20px;
}

.footer-row .brand {
  font-size:1.13rem;
}

.footer-row .mark {
  width:28px;
  height:24px;
}

.footer-row small {
  display:block;
  color:#9b98ad;
  margin-top:9px;
  font-size:.78rem;
}

.footer-row nav {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
  gap:5px 19px;
  color:#b5b2c6;
  font-size:.86rem;
}

.footer-row nav a,.footer-row nav button {
  min-height:44px;
  display:inline-flex;
  align-items:center;
}

.footer-row nav a:hover,.footer-row nav button:hover {
  color:#eee3ff;
}

.footer-row nav button {
  padding:0;
  border:0;
  background:none;
  color:inherit;
  font:inherit;
}

dialog {
  border:1px solid #494257;
  border-radius:16px;
  padding:25px;
  width:min(450px,calc(100% - 32px));
  max-height:85dvh;
  overflow:auto;
  background:#1b1b28;
  color:var(--white);
  box-shadow:0 20px 80px #0009;
}

dialog::backdrop {
  background:#080710b8;
  backdrop-filter:blur(3px);
}

.dialog-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:17px;
}

.icon-button {
  padding:0;
  width:44px;
  background:transparent;
}

dialog h2,.info-article h2 {
  letter-spacing:-.035em;
}

dialog p {
  color:#bdbacc;
  margin:8px 0;
}

dialog ul {
  list-style:none;
  padding:0;
  margin:15px 0;
}

dialog li {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border-top:1px solid #34313f;
  min-height:52px;
}

dialog li a:hover {
  text-decoration:underline;
}

dialog li strong {
  font-size:.86rem;
  color:var(--lilac);
}

dialog p:empty {
  display:none;
}

.consent-banner {
  z-index:12;
  position:fixed;
  bottom:16px;
  left:16px;
  right:16px;
  max-width:570px;
  background:#23212e;
  border:1px solid #484351;
  border-radius:12px;
  padding:15px;
  box-shadow:0 10px 45px #0006;
}

.consent-banner>div {
  display:flex;
  gap:8px;
  margin-top:10px;
}

.back-link {
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:44px;
  color:#c2b5df;
  font-size:.92rem;
}

.back-link .ico {
  width:16px;
  height:16px;
}

.info-page {
  padding-block:20px 50px;
}

.info-article {
  max-width:880px;
  margin:14px auto 0;
  padding:clamp(22px,4.5vw,58px);
  border:1px solid #32303e;
  border-radius:16px;
  background:#181923;
}

.info-article h1 {
  font-size:clamp(2rem,4vw,3.5rem);
  line-height:1.04;
  letter-spacing:-.055em;
}

.info-lead {
  color:#d5c9ea!important;
  font-size:1.13rem;
}

.info-article p {
  color:var(--muted);
  margin:.7em 0 1em;
}

.info-article h2 {
  font-size:1.3rem;
  margin:1.3em 0 .35em;
}

.info-article .how-card h2 {
  margin:0;
}

.info-article a:not(.primary) {
  color:#c5adff;
  text-decoration:underline;
  text-underline-offset:3px;
}

.info-article .primary,.info-article .secondary {
  margin-top:4px;
}

.how-card {
  border-top:1px solid var(--line);
  display:flex;
  gap:18px;
  padding:20px 0;
  align-items:flex-start;
}

.how-card img {
  width:110px;
  height:82px;
  object-fit:cover;
  border-radius:8px;
}

.how-card p {
  margin:.35em 0 .5em;
}

.contact-box {
  border:1px solid #423853;
  background:#201e30;
  border-radius:12px;
  padding:22px;
}

@media(min-width:1500px) {
  .hero-inner {
    width:62%;
  }
}

@media(max-width:1050px) {
  .hero-inner {
    width:63%;
    padding-left:30px;
  }
  .hero h1 {
    font-size:3.5rem;
  }
  .hero-actions {
    gap:8px;
  }
  .hero-actions .primary,.hero-actions .secondary {
    font-size:.85rem;
    padding-inline:12px;
  }
  .filters {
    gap:2px;
  }
  .filter {
    padding-inline:9px;
  }
  .card-grid {
    gap:12px;
  }
  .card-body {
    padding:13px;
  }
  .hero {
    min-height:352px;
  }
}

@media(max-width:850px) {
  .bar-inner {
    height:66px;
    gap:30px;
  }
  .desktop-nav {
    gap:19px;
  }
  .hero-inner {
    width:67%;
  }
  .hero h1 {
    font-size:3rem;
  }
  .hero-inner>p {
    max-width:345px;
  }
  .library-head {
    align-items:flex-start;
    flex-direction:column;
    gap:9px;
  }
  .card-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:17px;
  }
  .card-body {
    padding:17px;
  }
  .footer-row {
    align-items:flex-start;
  }
  .guide-strip {
    margin-bottom:30px;
  }
  .hero-wash {
    background:linear-gradient(90deg,#191626 0%,#1b162a 29%,#1c162bf2 40%,#20172f99 54%,transparent 77%);
  }
}

@media(max-width:600px) {
  :root {
    --pad:16px;
    scroll-behavior:auto;
  }
  .bar-inner {
    height:62px;
    gap:10px;
  }
  .mark {
    width:32px;
    height:28px;
  }
  .brand {
    gap:7px;
    font-size:1.24rem;
  }
  .desktop-nav {
    display:none;
  }
  .mobile-toggle {
    display:inline-flex;
  }
  .records-btn {
    width:44px;
    min-height:44px;
    padding:0;
  }
  .records-btn span {
    position:absolute;
    clip:rect(0,0,0,0);
    height:1px;
    width:1px;
    overflow:hidden;
  }
  .home {
    padding-top:16px;
  }
  .hero {
    display:block;
    min-height:0;
    border-radius:15px;
  }
  .hero-visual {
    left:0;
    top:auto;
    height:46%;
    z-index:-2;
  }
  .hero-wash {
    background:linear-gradient(180deg,#1c172c 0%,#1c172c 48%,#1c172ce8 55%,#1c172c40 67%,transparent 77%);
  }
  .hero-inner {
    width:100%;
    padding:24px 21px 0;
    margin-bottom:clamp(148px,41vw,220px);
  }
  .hero h1 {
    font-size:clamp(2.57rem,10vw,3.6rem);
    margin-bottom:12px;
  }
  .hero-inner>p {
    font-size:.94rem;
    line-height:1.44;
    max-width:348px;
  }
  .eyebrow {
    margin-bottom:11px;
    font-size:.67rem;
  }
  .hero-actions {
    margin-top:17px;
    gap:6px;
    align-items:flex-start;
    flex-direction:column;
  }
  .hero-actions .primary {
    font-size:.92rem;
    min-height:44px;
    padding-inline:14px;
  }
  .hero-actions .secondary {
    background:transparent;
    border:0;
    min-height:44px;
    color:#e2d6f8;
    padding:0 1px;
    font-size:.86rem;
  }
  .hero-actions .secondary:hover {
    background:transparent;
  }
  .hero-hud {
    bottom:9px;
    right:10px;
    font-size:.68rem;
    padding:4px 7px;
  }
  .library {
    padding-top:27px;
  }
  .library-head {
    margin-bottom:12px;
  }
  .library-head h2 {
    font-size:1.8rem;
  }
  .filters {
    flex-wrap:nowrap;
    overflow-x:auto;
    max-width:100%;
    scrollbar-width:thin;
    gap:3px;
  }
  .filter {
    font-size:.83rem;
    white-space:nowrap;
    padding-inline:9px;
    min-height:44px;
  }
  .card-grid {
    gap:12px;
  }
  .card-body {
    padding:12px 10px;
  }
  .card-body h3 {
    font-size:1.12rem;
  }
  .card-body p {
    font-size:.85rem;
  }
  .card-pic {
    aspect-ratio:1.42;
  }
  .genre {
    font-size:.62rem;
    letter-spacing:.05em;
    gap:4px;
  }
  .card-foot {
    font-size:.73rem;
    margin-top:12px;
    padding-top:8px;
  }
  .card-play {
    font-size:.84rem;
  }
  .guide-strip {
    padding:17px;
    flex-wrap:wrap;
    gap:10px;
    margin-block:24px;
  }
  .guide-strip>div:nth-child(2) {
    flex:1;
  }
  .guide-strip p {
    font-size:.85rem;
  }
  .guide-strip .secondary {
    margin-left:0;
  }
  .guide-icon {
    width:39px;
    height:39px;
  }
  .footer-row {
    flex-direction:column;
    gap:11px;
  }
  .footer-row nav {
    justify-content:flex-start;
    gap:0 18px;
  }
  .info-page {
    padding-top:10px;
  }
  .how-card {
    display:block;
  }
  .how-card img {
    float:left;
    width:70px;
    height:53px;
    margin:0 12px 7px 0;
  }
  .how-card:after {
    content:"";
    display:block;
    clear:both;
  }
  .info-article {
    margin-top:5px;
  }
}

/* Language switch (EN | PL) and representative-office address */
.lang-switch {
  display:inline-flex;
  border:1px solid #383640;
  border-radius:8px;
  overflow:hidden;
  background:#191921;
}

.lang-switch a,.lang-switch span {
  min-width:44px;
  min-height:42px;
  padding:0 10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:.86rem;
  font-weight:600;
  letter-spacing:.04em;
}

.lang-switch a {
  color:#b7b6c7;
}

.lang-switch a:hover {
  color:#eee9ff;
  background:#302d40;
}

.lang-switch [aria-current] {
  color:#eee9ff;
  background:#2c2745;
}

.mobile-nav .lang-row {
  margin-top:4px;
  border-top:1px solid var(--line);
  border-radius:0;
  color:#b7b6c7;
}

.footer-address {
  display:block;
  margin-top:6px;
  font-style:normal;
  font-size:.78rem;
  line-height:1.5;
  color:#9b98ad;
}

.contact-box .postal {
  margin:.9em 0 1.1em;
  font-style:normal;
  color:var(--muted);
}

.contact-box .postal strong {
  color:var(--white);
  font-weight:600;
}

/* The header (EN | PL + records + menu) needs more room than the old one, so the compact layout starts earlier */
.desktop-nav a,.records-btn {
  white-space:nowrap;
}

@media(max-width:850px) {
  .desktop-nav {
    display:none;
  }
  .mobile-toggle {
    display:inline-flex;
  }
  .records-btn {
    width:44px;
    min-height:44px;
    padding:0;
  }
  .records-btn span {
    position:absolute;
    clip:rect(0,0,0,0);
    height:1px;
    width:1px;
    overflow:hidden;
  }
}

@media(max-width:600px) {
  .lang-switch {
    display:none;
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    scroll-behavior:auto!important;
    transition:none!important;
    animation:none!important;
  }
}
