
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Russo+One&display=swap');

:root{--bg:#130d09;--panel:#1d1510;--panel2:#251a12;--text:#f4eee5;--muted:#b4a99c;--green:#8ba66b;--green2:#315b36;--orange:#ef963c;--line:rgba(244,238,229,.13);--font:'Russo One', sans-serif
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  color: var(--text);
  font-family: "Nunito", sans-serif;
  background-image: url("assets/images/raff.webp");
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;	

}

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

/* HEADER */

.site-header {
  height: 82px;
  width: 100%;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: transparent;
  border-bottom: 1px solid white;
  position:fixed;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
}

.brand{
    display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 5px;
}


.brand img {
  display: block;
  width: 185px;
  max-height: 65px;
  object-fit: contain;
}

.brand-mark{
   grid-column: 1;
  justify-self: start;
  color: var(--orange);
  font-family: "Russo One", sans-serif;
  font-size: 28px;
}

.brand-mark span{
    color:var(--green)
}

.brand-sub{
  font:800 9px var(--font);
  letter-spacing:2px;
  display:block;
  font-style:normal;
  color:var(--orange);
  position: center;
}

.main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  color: #d8d4da;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange);
}

.header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 30px;
  background: var(--orange);
  color: #171016;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(255, 148, 28, 0.4);
}

.menu-toggle {
  display: none;
}

/* HERO */

.hero {
  min-height: 650px;
  height: calc(100svh - 82px);
  max-height: 900px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}


.hero-content {
  width: min(500px, 100%);
  margin-left: 8%;
  margin-top: 10%;
  padding: 60px 0;
  animation: rise-in 0.8s ease both;
}



.hero h1,
.section-heading h2,
.raff-section h2,
.gallery-section h2 {
  font-family: "Russo One", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.08;
  text-shadow:         2px 2px 0 #000,
        0 0 10px rgba(0, 220, 255, 0.35);
}

.hero h1 {
  font-size: clamp(24px, 5.4vw, 54px);
  text-shadow:         2px 2px 0 #000,
        0 0 10px rgba(0, 220, 255, 0.35);
}

.hero h1 span,
.section-heading h2 span,
.raff-section h2 span {
  color: var(--orange);
  text-shadow:         2px 2px 0 #000,
        0 0 10px rgba(0, 220, 255, 0.35);
}

.hero-description {
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  max-width: 470px;
  margin-top: 22px;
        text-shadow:   2px 2px 0 #000,
        0 0 10px rgba(0, 220, 255, 0.35);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  min-height: 54px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.button-primary {
  color: #1b1110;
  background: var(--orange);
  box-shadow: 0 0 24px rgba(255, 148, 28, 0.28);
}

.button-primary:hover {
  box-shadow: 0 0 34px rgba(255, 148, 28, 0.48);
}

.button-arrow {
  font-size: 20px;
  margin-left: 8px;
}

.button-secondary {
  border: 1px solid var(--green);
  color: white;
  background: rgba(12, 14, 15, 0.55);
}

.button-secondary:hover {
  background: rgba(32, 198, 83, 0.12);
  box-shadow: 0 0 22px rgba(32, 198, 83, 0.18);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: #d4cdd6;
  font-size: 13px;
  font-weight: 700;
  
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d0c9d1;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.scroll-cue > span:first-child {
  width: 22px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  position: relative;
}

.scroll-cue > span:first-child::after {
  content: "";
  width: 4px;
  height: 7px;
  background: var(--orange);
  border-radius: 5px;
  position: absolute;
  top: 6px;
  left: 8px;
  animation: scroll-dot 1.4s infinite;
}

/* GAMES */

.game-page{
  background-image: url(assets/games_info/raffox_background.webp);
}

.games-section {
  padding: 100px 8%;
  background:transparent;
  backdrop-filter: blur(14px);
  border-top: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
}

.section-heading {
  display:flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 38px;
  z-index: 1000;
}

.section-heading .eyebrow {
  margin-bottom: 10px;
}

.gallery-section .eyebrow{

  text-shadow:         2px 2px 0 #000,
        0 0 10px rgba(0, 220, 255, 0.35);
}

.section-heading h2,
.raff-section h2,
.gallery-section h2 {
  font-size: clamp(32px, 4vw, 48px);
}

.section-description {
  max-width: 350px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.game-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.game-card:hover {
  transform: scale(1.05);
}

.game-art {
  min-height: 260px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.raffox-art {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at center, rgba(32, 198, 83, 0.22), transparent 65%),
    #101b1b;
}

.raffox-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.tetris-art {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at center, rgba(32, 198, 83, 0.22), transparent 65%),
    #101b1b;
}

.tetris-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.game-symbol {
  color: var(--orange);
  font-family: "Russo One", sans-serif;
  font-size: clamp(60px, 8vw, 110px);
  text-shadow: 0 5px 0 #51270e, 0 0 28px rgba(255, 148, 28, 0.3);
  transform: rotate(-8deg);
}

.game-symbol span {
  color: var(--green);
  display: inline-block;
  transform: rotate(12deg);
}

.art-label {
  position: absolute;
  bottom: 18px;
  left: 22px;
  color: rgba(255, 255, 255, 0.8);
  font-family: "Russo One", sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
}

.tetris-block {
  width: 62px;
  height: 62px;
  border: 5px solid rgba(255, 255, 255, 0.28);
  border-radius: 9px;
  position: absolute;
  box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.2),
              0 8px 18px rgba(0, 0, 0, 0.25);
}

.block-one {
  background: #ff8b16;
  transform: translate(-55px, -25px) rotate(-12deg);
}

.block-two {
  background: #21c65b;
  transform: translate(25px, 20px) rotate(10deg);
}

.block-three {
  background: #087bff;
  transform: translate(75px, -55px) rotate(8deg);
}

.game-info {
  padding: 24px;
}

.game-category {
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.game-info h3 {
  font-family: "Russo One", sans-serif;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 8px;
}

.game-info > p:not(.game-category) {
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.game-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  color: var(--orange);
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
}

.game-link span {
  font-size: 20px;
  transition: transform 0.2s ease;
}

.game-link:hover span {
  transform: translateX(5px);
}

/* RAFF AND GALLERY */


.gallery-section {
  padding: 90px 8%;
  text-align: center;
  backdrop-filter: blur(14px);
  border-top: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
}

.raff-section{
padding: 90px 8%;
  text-align: center;

}

.raff-section {
  background:transparent;
  
}

.raff-section p:not(.eyebrow),
.gallery-section > p:not(.eyebrow) {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--text);
  line-height: 1.7;
  text-shadow:         2px 2px 0 #000,
        0 0 10px rgba(0, 220, 255, 0.35);
}

.gallery-section {
  background: transparent;
}

footer {
  padding: 35px 8%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  background: #0b090d;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
}

.footer-brand {
  grid-column: 1;
  justify-self: start;
  color: var(--orange);
  font-family: "Russo One", sans-serif;
  font-size: 18px;
}

.footerCopyright {
  grid-column: 2;
  justify-self: center;
  display: block;
  width: auto;
  text-align: center;
font-family: "Russo One", sans-serif;
}

.back {
    grid-column: 1;
    justify-self: stretch;

    position: relative;
    display: block;
    width: 100%;
    height: 40px;
}

.back-album {
    display: block;
    width: 100%;
    left: 20px;
    color: var(--green);
    font-family: "Russo One", sans-serif;
    font-size: 16px;

    text-align: center;
    line-height: 40px;
}

.back:hover{
transform: scale(1.2);
text-shadow:0 0 10px rgb(0, 0, 0);
}

/* ANIMATIONS */

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}


.buycoffee-button {
    display: inline-flex;
    align-items: center;
    padding: 0;
    background: transparent;
    border: none;
    transition: transform 0.2s ease;
}

.buycoffee-button:hover {
    background: transparent;
    transform: scale(1.1);
}

.buycoffee-button img {
    display: block;
    width: 145px;
    height: auto;
    object-fit: contain;
}



/* =========================================
   MRJKGAMES — WYSUWANA POLITYKA PRYWATNOŚCI
========================================= */


/* Przycisk Privacy w site-header obok BuyCoffee */

.privacy-float {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-top: 5px;
    width: 64px;
    height: 52px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;

    transition: transform 0.2s ease;
}

.privacy-float img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.8;
}

.privacy-float:hover {
    transform: scale(1.06);
}


.privacy-float:focus-visible,
.privacy-close:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 4px;
}

/* Przyciemnienie strony */

.privacy-overlay {
    position: fixed;
    inset: 0;
    z-index: 1190;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.privacy-overlay.is-visible {
    opacity: 1;
}

/* Panel wysuwany z prawej strony */

.privacy-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1200;

    width: min(420px, 90vw);
    height: 100vh;
    height: 100dvh;
    padding: 26px;

    display: flex;
    flex-direction: column;
    gap: 20px;

    color: var(--text);
    background: #130d09;
    border-left: 1px solid rgba(244, 238, 229, 0.18);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);

    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease;
}

.privacy-panel.is-open {
    transform: translateX(0);
    visibility: visible;
}

.privacy-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.privacy-panel-header h2 {
    margin: 0;
    color: var(--orange);
    font-family: var(--font);
    font-size: 21px;
    line-height: 1.35;
}

.privacy-close {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--text);
    background: var(--panel);
    font: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.privacy-content {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 5px;
}

.privacy-content h3 {
    margin: 22px 0 8px;
    color: var(--green);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
}

.privacy-content p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
    overflow-wrap: anywhere;
    text-align: justify;
}

.privacy-content a {
    color: var(--orange);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.privacy-content a:hover,
.privacy-content a:focus-visible {
    color: var(--green);
}

html {
    scrollbar-gutter: stable;
}

body.privacy-open {
    overflow: hidden;
}

/* Mniejsze ekrany */

@media (max-width: 650px) {
    .privacy-float {
        width: 46px;
        top: 42px;
    }

    .privacy-panel {
        width: min(380px, 92vw);
        padding: 22px 18px;
    }

    .privacy-panel-header h2 {
        font-size: 19px;
    }

    .privacy-content p {
        font-size: 13px;
    }
}

/* Ograniczenie animacji zgodnie z ustawieniami systemu */

@media (prefers-reduced-motion: reduce) {
    .privacy-float,
    .privacy-overlay,
    .privacy-panel {
        transition: none;
    }
}



/* RESPONSIVE */

@media (max-width: 1000px) {
  .site-header {
    padding: 0 4%;
    gap: 16px;
  }

  .main-nav {
    .main-nav {
  position: absolute;
  left: auto;
  transform: none;
}
  }

  .nav-link {
    font-size: 12px;
  }

  .brand img {
    width: 155px;
  }

  .header-button {
    padding: 11px 15px;
    font-size: 11px;
  }

  .hero-content {
    margin-left: 6%;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 72px;
    padding: 0 5%;
  }

  .brand img {
    width: 150px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: #1b1720;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    margin-left: auto;
  }

  .menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 5px;
    background: white;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav {
    position: relative;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 5% 20px;
    background: rgba(12, 10, 16, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-link {
    padding: 14px 4px;
    font-size: 13px;
  }

  .header-button {
    display: none;
  }

  .hero {
    height: auto;
    min-height: 680px;
    max-height: none;
    align-items: flex-end;
  }

  .hero-background {
    background-position: 58% center;
  }

  .hero-shade {
    background:
      linear-gradient(0deg,
        rgba(12, 8, 13, 0.98) 0%,
        rgba(12, 8, 13, 0.88) 34%,
        rgba(12, 8, 13, 0.28) 100%),
      linear-gradient(90deg,
        rgba(12, 8, 13, 0.35),
        transparent);
  }

  .hero-content {
    width: 100%;
    margin: 0;
    padding: 250px 7% 90px;
  }

  .hero h1 {
    font-size: clamp(40px, 11vw, 62px);
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-buttons {
    gap: 10px;
  }

  .button {
    min-height: 50px;
    padding: 0 15px;
    font-size: 11px;
  }

  .scroll-cue {
    display: none;
  }

  .games-section {
    padding: 70px 6%;
  }

  .section-heading {
    display: block;
  }

  .section-description {
    margin-top: 14px;
  }

  .games-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .game-art {
    min-height: 230px;
    aspect-ratio: 16 / 9;
    height: auto;
    overflow: hidden;
  }

  .game-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

  .raff-section,
  .gallery-section {
    padding: 70px 6%;
  }

  footer {
  padding: 30px 6%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


.lang-toggle {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 10px 14px;
  background: transparent;
  color: #f5f2f5;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease,
              border-color 0.2s ease;
}

.lang-toggle:hover {
  color: #100d13;
  background: #ff9818;
  border-color: #ff9818;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Pływający przycisk powrotu na górę */
.back-top {
  position: fixed;
  right: 28px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border: 2px solid #f58a16;
  border-radius: 14px;
  background: linear-gradient(135deg, #24160f, #10251b);
  color: #ffd08a;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow:
    0 0 12px rgba(245, 138, 22, 0.3),
    0 0 22px rgba(0, 190, 100, 0.12);

  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Efekt po najechaniu kursorem */
.back-top.is-visible:hover {
  transform: translateY(-5px) scale(1.02);
  color: #20c653;
  border-color: #8ba66b;
  box-shadow:
    0 0 16px rgba(167, 245, 22, 0.5),
    0 0 30px rgba(0, 190, 100, 0.3);
}

/* Efekt podczas kliknięcia */
.back-top.is-visible:active {
  transform: translateY(-1px) scale(0.98);
}

/* Płynne przewijanie strony */
html {
  scroll-behavior: smooth;
}


.game-logo {
  display: block;
  width: 180px;
  max-width: 70%;
  height: 52px;
  object-fit: contain;
  object-position: left center;
  margin: 8px 0 12px;
}

.brand-mr {
  color: #ffffff;
}

.brand-jk {
  color: #8ba66b;
}

.brand-games {
  color: var(--orange);
}

/* GAME DETAILS */

.game-card-link {
  display: block;
}

.game-card-link:hover {
  border-color: rgba(239, 150, 60, 0.65);
}

.game-detail-main {
  padding-top: 82px;
}

.game-detail-hero {
  width: min(900px, 100%);
  min-height: min(700px, calc(100svh - 82px));
  margin: 0 auto;
  padding: clamp(46px, 7vw, 94px) 8%;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 22px;
}

.game-detail-visual {
  width: 100%;
}

.game-detail-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 25px;
  box-shadow: 0px 0px 25px var(--green2);
}

.game-detail-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: -50px;
}

.game-detail-eyebrow,
.game-section-eyebrow {
  color: var(--green);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  margin-bottom: 50px;
}

.game-detail-logo {
  display: block;
  width: min(310px, 82%);
  height: 110px;
  margin: 13px 0 8px;
  object-fit: contain;
  object-position: left center;
}

.game-detail-content h1,
.game-description-section h2,
.game-gallery-section h2,
.game-not-found h1 {
  font-family: "Russo One", sans-serif;
  font-weight: 400;
  line-height: 1.08;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #000, 0 0 10px rgba(0, 220, 255, 0.35);
}

.game-detail-content h1 {
  font-size: clamp(35px, 5vw, 66px);
}

.game-description-section h2,
.game-gallery-section h2,
.game-not-found h1 {
  font-size: clamp(30px, 4vw, 48px);
}

.game-detail-content h1,
.game-description-section h2 span,
.game-gallery-section h2 span {
  color: var(--orange);
}

.game-detail-description {
  max-width: 520px;
  margin-top: 20px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  text-shadow: 2px 2px 0 #000, 0 0 10px rgba(0, 220, 255, 0.35);
}

.game-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
  list-style: none;
}

.game-facts li,
.game-store-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid rgba(244, 238, 229, 0.2);
  border-radius: 999px;
  background: rgba(13, 20, 18, 0.72);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.game-actions {
  margin-top: 28px;
}

.google-play-link {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 196px;
  padding: 11px 18px;
  border: 1px solid var(--orange);
  border-radius: 12px;
  background: linear-gradient(135deg, #29180e, #10251b);
  color: var(--text);
  font-weight: 900;
  line-height: 1.15;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.google-play-link small {
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
}

.google-play-link:hover {
  transform: translateY(-3px);
  border-color: var(--green);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.32), 0 0 22px rgba(32, 198, 83, 0.2);
}

.game-description-section,
.game-gallery-section {
  padding: clamp(64px, 9vw, 110px) 8%;
  border-top: 2px solid var(--text);
  background: rgba(15, 13, 11, 0.42);
  backdrop-filter: blur(14px);
}

.game-description-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1fr);
  align-items: start;
  gap: clamp(28px, 8vw, 120px);
}

.game-description-section > p {
  max-width: 600px;
  color: var(--text);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
  text-shadow: 2px 2px 0 #000, 0 0 10px rgba(0, 220, 255, 0.28);
}

.game-gallery-section {
  border-bottom: 2px solid var(--text);
}

.game-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.game-gallery-card {
  overflow: hidden;
  border: 1px solid rgba(244, 238, 229, 0.16);
  border-radius: 18px;
  background: #101b1b;
}

.game-gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.game-not-found {
  min-height: calc(100svh - 82px);
  padding: 15vh 8%;
  text-align: center;
}

.game-not-found .game-link {
  justify-content: center;
}

@media (max-width: 760px) {
  .game-detail-main {
    padding-top: 72px;
  }

  .game-detail-hero {
    min-height: auto;
    padding: 48px 6% 68px;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .game-detail-visual {
    order: -1;
  }

  .game-detail-logo {
    width: min(270px, 80%);
    height: 86px;
  }

  .game-description-section {
    padding: 66px 6%;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .game-gallery-section {
    padding: 66px 6%;
  }

  .game-gallery-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-detail-content {
    animation: none;
  }
}

/* GAME PAGE MENU AND EXPANDABLE PANELS */

.game-detail-nav {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
}

.game-detail-nav-button {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-family: "Russo One", sans-serif;
  font-size: 11px;
  letter-spacing: 0.07em;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.game-detail-nav-button:hover,
.game-detail-nav-button:focus-visible,
.game-detail-nav-button.is-active {
  border-color: rgba(239, 150, 60, 0.68);
  background: rgba(239, 150, 60, 0.12);
  color: var(--orange);
  outline: none;
}

.game-detail-nav-button:active {
  transform: scale(0.97);
}

.game-panel {
  position: fixed;
  z-index: 900;
  top: 82px;
  right: 0;
  left: 0;
  padding: 24px 6%;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-18px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.game-panel[hidden] {
  display: none;
}

.game-panel.is-open {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.game-panel-card {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100svh - 130px);
  margin: 0 auto;
  overflow-y: auto;
  border: 1px solid rgba(244, 238, 229, 0.2);
  border-radius: 20px;
  background: rgba(20, 17, 13, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.54), 0 0 42px rgba(32, 198, 83, 0.13);
  backdrop-filter: blur(18px);
}

.game-panel-content {
  padding: clamp(32px, 5vw, 58px);
}

.game-panel .game-section-eyebrow {
  margin: 0 44px 12px 0;
  color: var(--green);
  font-size: 11px;
}

.game-panel h2 {
  margin: 0;
  color: var(--text);
  font-family: "Russo One", sans-serif;
  font-size: clamp(28px, 4vw, 43px);
  font-weight: 400;
  line-height: 1.08;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #000, 0 0 10px rgba(0, 220, 255, 0.26);
}

.game-panel h2 span {
  color: var(--orange);
}

.game-panel-close {
  position: absolute;
  z-index: 1;
  top: 15px;
  right: 15px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(244, 238, 229, 0.24);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.game-panel-close:hover,
.game-panel-close:focus-visible {
  border-color: var(--orange);
  background: rgba(239, 150, 60, 0.12);
  color: var(--orange);
  outline: none;
  transform: rotate(90deg);
}

.game-panel-copy {
  max-width: 800px;
  margin-top: 28px;
}

.game-panel-copy p {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

.game-panel-copy p:first-child {
  color: var(--orange);
  font-family: "Russo One", sans-serif;
  font-size: 18px;
  line-height: 1.45;
}

.game-rules {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
  padding-left: 28px;
}

.game-rules li {
  padding-left: 8px;
  color: var(--orange);
}

.game-rules li::marker {
  font-family: "Russo One", sans-serif;
  font-size: 18px;
}

.game-rules h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.4;
}

.game-rules p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.game-panel-gallery .game-gallery-grid {
  margin-top: 28px;
}

@media (max-width: 760px) {
  .game-page .site-header {
    height: 116px;
    padding: 6px 5% 42px;
    align-items: center;
    gap: 8px;
  }

  .game-page .header-actions {
    gap: 5px;
  }

  .game-page .buycoffee-button img {
    width: 92px;
  }

  .game-page .lang-toggle {
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .game-page .privacy-float {
    width: 39px;
    height: 42px;
    margin-top: 0;
  }

  .game-detail-nav {
    bottom: 5px;
    width: calc(100% - 10%);
    justify-content: center;
  }

  .game-detail-nav-button {
    flex: 1;
    max-width: 180px;
    padding: 8px 9px;
    font-size: 9px;
  }

  .game-page .game-detail-main {
    padding-top: 116px;
  }

  .game-page .game-detail-hero {
    padding-top: 28px;
  }

  .game-page .game-detail-content {
    margin-top: 0;
  }

  .game-page .game-detail-eyebrow {
    order: 0;
    max-width: 100%;
    margin: 0 0 14px;
    font-size: clamp(12px, 3.8vw, 20px);
    letter-spacing: 0.1em;
    text-wrap: balance;
  }

  .game-page .game-detail-visual {
    order: 0;
  }

  .game-page .game-facts {
    margin-top: 20px;
  }

  .game-panel {
    top: 116px;
    padding: 12px 4%;
  }

  .game-panel-card {
    max-height: calc(100svh - 134px);
    border-radius: 16px;
  }

  .game-panel-content {
    padding: 31px 23px;
  }

  .game-panel-copy {
    margin-top: 22px;
  }

  .game-panel-copy p {
    font-size: 15px;
  }

  .game-rules {
    padding-left: 24px;
  }
}

/* Jeden wiersz nagłówka na szerszych telefonach i małych tabletach. */
@media (min-width: 601px) and (max-width: 760px) {
  .game-page .site-header {
    height: 72px;
    padding: 0 4%;
    align-items: center;
  }

  .game-detail-nav {
    position: static;
    width: auto;
    margin-left: auto;
    gap: 2px;
    transform: none;
  }

  .game-detail-nav-button {
    flex: initial;
    max-width: none;
    min-height: 34px;
    padding: 7px 8px;
    font-size: 8px;
    white-space: nowrap;
  }

  .game-page .header-actions {
    margin-left: 0;
    gap: 5px;
  }

  .game-page .lang-toggle {
    padding: 7px 9px;
  }

  .game-page .buycoffee-button img {
    width: 78px;
  }

  .game-page .privacy-float {
    width: 36px;
    height: 40px;
  }

  .game-page .game-detail-main {
    padding-top: 72px;
  }

  .game-panel {
    top: 72px;
  }

  .game-panel-card {
    max-height: calc(100svh - 90px);
  }
}

/* Półprzezroczysty pasek przewijania */
html,
.game-panel-card {
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 238, 229, 0.1) transparent;
}

html::-webkit-scrollbar,
.game-panel-card::-webkit-scrollbar {
  width: 1px;
}

html::-webkit-scrollbar-track,
.game-panel-card::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb,
.game-panel-card::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(244, 238, 229, 0.1);
  background-clip: padding-box;
}

html::-webkit-scrollbar-thumb:hover,
.game-panel-card::-webkit-scrollbar-thumb:hover {
  background: rgba(239, 150, 60, 0.1);
  background-clip: padding-box;
}


