/* Shared portal navigation and footer. Loaded by every page, including the game. */
:root { --portal-lime: #c6ff5c; --portal-bg: #090b0b; --portal-line: rgba(226,238,217,.13); --portal-max: 1240px; }
.site-header {
  width: min(100% - 72px, var(--portal-max)); height: 88px; margin: 12px auto 0;
  padding: 0 22px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 12px; z-index: 100; isolation: isolate;
  border: 1px solid rgba(226,238,217,.09); border-radius: 999px;
  background: rgba(10,12,12,.77); box-shadow: 0 14px 45px rgba(0,0,0,.2);
  backdrop-filter: blur(18px); color: #f0f1e9;
}
.site-header .brand { display: inline-flex; align-items: center; gap: 14px; flex: 0 0 auto; color: inherit; text-decoration: none; }
.site-header .brand-mark { font-size: 25px; font-weight: 850; letter-spacing: -.12em; line-height: 1; color: #f0f1e9; }
.site-header .brand-mark > span { color: #f0f1e9; }
.site-header .brand-mark i { color: var(--portal-lime); font-style: normal; }
.site-header .brand-caption { margin-left: 18px; color: #7f8979; font-size: 8px; letter-spacing: .16em; font-weight: 700; white-space: nowrap; }
.site-header .nav { display: flex; align-items: center; gap: 27px; color: #b5b9af; font-size: 12px; }
.site-header .nav a { position: relative; padding-block: 12px; color: #b5b9af; text-decoration: none; white-space: nowrap; transition: color .25s ease; }
.site-header .nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 1px; background: var(--portal-lime); transition: right .3s cubic-bezier(.2,.8,.2,1); }
.site-header .nav a:hover, .site-header .nav a:focus-visible, .site-header .nav a[aria-current="page"], .site-header .nav a[aria-current="location"] { color: #f0f1e9; }
.site-header .nav a:hover::after, .site-header .nav a:focus-visible::after { right: 0; }
.site-header .language-switch { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; color: #71786d; font-size: 10px; font-weight: 750; letter-spacing: .08em; white-space: nowrap; }
.site-header .language-switch span, .site-header .language-switch a { min-width: 1.7em; text-align: center; }
.site-header .language-switch [aria-current="page"] { color: var(--portal-lime); }
.site-header .language-switch a::after { display: none; }
.site-header .nav .nav-play { color: #090b0b !important; padding: 9px 16px; border: 0; border-radius: 999px; background: var(--portal-lime); color: #10120f; font-weight: 650; }
.site-header .nav .nav-play::after, .site-header .nav .nav-contact::after { display: none; }
.site-header .nav .nav-play:hover, .site-header .nav .nav-play:focus-visible { color: #090b0b !important; background: #d0ff86; transform: translateY(-1px); }
.site-header .nav .nav-contact { padding: 11px 16px; border: 1px solid rgba(198,255,92,.42); border-radius: 99px; color: var(--portal-lime); }
.site-header .nav .nav-contact:hover { background: var(--portal-lime); color: #10140c; }
.site-header .menu-toggle { display: none; }
.button.button-primary, .sm-primary, .cta { color: #090b0b !important; }
.site-header a:focus-visible, .site-header button:focus-visible, .portal-footer a:focus-visible { outline: 2px solid var(--portal-lime); outline-offset: 4px; }
.portal-footer {
  width: min(100% - 72px, var(--portal-max)); margin: 3rem auto 0; padding: 25px 0 18px;
  display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 2fr); gap: 20px 36px;
  align-items: start; border-top: 1px solid rgba(232,238,219,.12); color: #f0f1e9;
}
.portal-footer-brand .brand { display: inline-flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.portal-footer-brand .brand-mark { font-size: 22px; font-weight: 850; letter-spacing: -.12em; }
.portal-footer-brand .brand-mark > span { color: #f0f1e9; }
.portal-footer-brand .brand-mark i { color: var(--portal-lime); font-style: normal; }
.portal-footer-brand .brand-caption { color: #7f8979; font-size: 8px; letter-spacing: .16em; font-weight: 700; }
.portal-footer-brand > p { margin: 12px 0 0; color: #72796d; font-size: 10px; letter-spacing: .04em; }
.portal-footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: flex-start; gap: 12px 18px; }
.portal-footer-nav a { color: #b5b9af; font-size: 10px; text-decoration: none; white-space: nowrap; transition: color .2s ease; }
.portal-footer-nav a:hover, .portal-footer-nav a:focus-visible { color: var(--portal-lime); }
.portal-footer-copy { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid rgba(232,238,219,.08); color: #666d62; font-size: 9px; }
.portal-game-controls { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
/* The game app has its own in-app footer actions; its old mini-header is replaced by this shared header. */
#app .sm-shell > .sm-top, #app .sm-skip { display: none !important; }
@media (max-width: 1150px) {
  .site-header .brand-caption { display: none; }
  .site-header .nav { gap: 16px; }
}
@media (max-width: 1100px) {
  .site-header { width: min(100% - 48px, var(--portal-max)); height: 72px; padding-inline: 16px; }
  .site-header .menu-toggle { display: flex; flex-direction: column; gap: 6px; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid var(--portal-line); border-radius: 50%; background: transparent; cursor: pointer; }
  .site-header .menu-toggle span { width: 15px; height: 1px; background: #f0f1e9; }
  .site-header .nav { display: flex; visibility: hidden; opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top right; transition: opacity .2s ease,transform .25s ease,visibility .25s; position: absolute; top: 80px; right: 0; width: min(340px,calc(100vw - 36px)); max-height: min(76svh,620px); overflow-y: auto; padding: 12px; background: rgba(13,16,15,.97); border: 1px solid rgba(226,238,217,.12); border-radius: 16px; flex-direction: column; align-items: stretch; gap: 2px; box-shadow: 0 20px 60px rgba(0,0,0,.48); backdrop-filter: blur(18px); }
  .site-header .nav.open { visibility: visible; opacity: 1; transform: translateY(0) scale(1); }
  .site-header .nav a { padding: 13px 14px; }
  .site-header .nav a::after { display: none; }
  .site-header .nav .nav-contact { text-align: center; margin-top: 7px; }
  .site-header .nav .nav-play { text-align: center; }
}
@media (max-width: 760px) {
  .site-header, .portal-footer { width: min(100% - 36px, var(--portal-max)); }
  .site-header { top: 8px; height: 64px; }
  .portal-footer { grid-template-columns: 1fr; gap: 18px; padding-block: 22px; }
  .portal-footer-nav { justify-content: flex-start; gap: 12px 16px; }
  .portal-footer-copy, .portal-game-controls { grid-column: 1; }
  .portal-game-controls { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header *, .portal-footer * { transition-duration: .01ms !important; }
}


.portal-cookie-overlay { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 20px; background: rgba(5, 7, 6, .78); backdrop-filter: blur(12px); }
.portal-cookie-dialog { position: relative; width: min(560px, 100%); padding: clamp(24px, 5vw, 40px); border: 1px solid rgba(198,255,92,.2); border-radius: 24px; background: radial-gradient(ellipse at 100% 0, rgba(198,255,92,.09), transparent 52%), #111411; color: #f0f1e9; box-shadow: 0 28px 90px rgba(0,0,0,.58); }
.portal-cookie-close { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border: 1px solid rgba(232,238,219,.15); border-radius: 50%; background: transparent; color: #c7cbbf; font-size: 24px; line-height: 1; cursor: pointer; }
.portal-cookie-eyebrow { color: #c6ff5c; font-size: 10px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.portal-cookie-dialog h2 { margin: 10px 48px 12px 0; color: #f0f1e9; font: 400 clamp(25px, 5vw, 34px)/1.12 Georgia, serif; }
.portal-cookie-dialog p { max-width: 56ch; margin: 0; color: #b8beb1; font-size: 14px; line-height: 1.75; }
.portal-cookie-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 25px; }
.portal-cookie-details { color: #d5f6a2; font-size: 13px; text-underline-offset: 4px; }
.portal-cookie-ack { min-height: 44px; padding: 10px 20px; border: 0; border-radius: 999px; background: #c6ff5c; color: #11140e; font-size: 13px; font-weight: 750; cursor: pointer; }
.portal-cookie-close:focus-visible, .portal-cookie-details:focus-visible, .portal-cookie-ack:focus-visible { outline: 2px solid #dfffad; outline-offset: 4px; }
@media (max-width: 480px) { .portal-cookie-overlay { padding: 14px; } .portal-cookie-dialog { border-radius: 19px; } .portal-cookie-actions { align-items: stretch; flex-direction: column; } .portal-cookie-ack { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .portal-cookie-overlay *, .portal-cookie-dialog * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

.portal-cookie-dismiss { min-height: 38px; padding: 7px 10px; border: 0; background: transparent; color: #aeb4a6; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.portal-cookie-dismiss:hover { color: #f0f1e9; }

.portal-cookie-accept { min-height: 44px; padding: 10px 20px; border: 0; border-radius: 999px; background: #c6ff5c; color: #11140e; font-size: 13px; font-weight: 750; cursor: pointer; }
.portal-cookie-reject { min-height: 44px; padding: 10px 20px; border: 1px solid rgba(232,238,219,.24); border-radius: 999px; background: transparent; color: #f0f1e9; font-size: 13px; font-weight: 650; cursor: pointer; }
.portal-cookie-accept:focus-visible, .portal-cookie-reject:focus-visible { outline: 2px solid #dfffad; outline-offset: 4px; }

/* Menu z siedmioma pozycjami: ciaśniejsze odstępy, a na średnich ekranach
   podpis marki ustępuje miejsca nawigacji. */
.site-header .nav { gap: 21px; }
@media (max-width: 1499px) {
  .site-header .brand-caption { display: none; }
}
