@layer portal-current {
  body.gk-portal-current .nova-footer {
    background: var(--current-surface) !important;
    border-top: 1px solid var(--current-line) !important;
    color: var(--current-ink) !important;
  }
  body.gk-portal-current .nova-footer .footer-shell {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 12px 22px; padding-block: 22px;
  }
  body.gk-portal-current .nova-footer .footer-shell small { color: var(--current-muted) !important; }
  body.gk-portal-current .nova-footer .footer-shell nav {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
  }
  body.gk-portal-current .nova-footer nav :is(a,button) {
    background: none; border: 0; padding: 0;
    color: var(--current-blue) !important; font: 650 14px/1.4 'Segoe UI', sans-serif;
    text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
  }

  .cookie-notice, .cookie-dialog {
    box-sizing: border-box; padding: 20px;
    border: 1px solid var(--current-line); border-radius: 16px;
    background: var(--current-surface); color: var(--current-ink);
    box-shadow: 0 12px 40px #06132940;
  }
  .cookie-notice {
    position: fixed; inset: auto 16px 64px; z-index: 100;
    width: min(760px, calc(100% - 32px)); margin: auto;
    display: grid; gap: 14px;
  }
  .cookie-notice[hidden] { display: none !important; }
  .cookie-dialog {
    width: min(500px, calc(100% - 24px)); max-height: calc(100dvh - 24px);
    overflow: auto; margin: auto;
  }
  .cookie-dialog::backdrop { background: #07152ba6; }
  :is(.cookie-notice,.cookie-dialog) :is(h2,p) { margin: 0; color: inherit; }
  :is(.cookie-notice,.cookie-dialog) h2 { font-size: 20px; line-height: 1.3; }
  :is(.cookie-notice,.cookie-dialog) p { margin-top: 6px; line-height: 1.5; font-size: 14px; }
  .cookie-dialog label { display: flex; gap: 8px; align-items: start; margin-top: 16px; }
  .cookie-dialog .cookie-actions { margin-top: 16px; }
  .cookie-notice a, .privacy-page a { color: var(--current-blue) !important; text-decoration: underline; }
  .cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
  .cookie-actions button {
    min-height: 42px; padding: 7px 12px; border: 1px solid var(--current-line);
    border-radius: 8px; background: var(--current-alt); color: var(--current-ink);
    font: 700 13px/1.3 'Segoe UI', sans-serif; cursor: pointer;
  }
  .cookie-actions button:hover { background: var(--current-selected); }
  .privacy-page { max-width: 820px; margin-block: clamp(24px,6vw,64px); }
  .privacy-page header { margin-bottom: 26px; }
  .privacy-page section { padding: 16px 0; border-top: 1px solid var(--current-line); }
  .privacy-page :is(h1,h2,p) { color: var(--current-ink) !important; text-shadow: none !important; }
  .privacy-page h1 { font-size: clamp(30px,5vw,46px); }
  .privacy-page h2 { margin: 0 0 6px; font-size: 20px; }
  .privacy-page p { margin: 0; line-height: 1.65; }

  @media (prefers-reduced-motion: no-preference) {
    body.gk-portal-current :is([data-focus-login],[data-play]):not(:disabled) {
      animation: gk-play-pulse 2.8s ease-out 3 !important;
    }
  }
  @keyframes gk-play-pulse {
    0%, 65%, 100% { outline: 1px solid #ffd99000; outline-offset: 2px; }
    30% { outline: 2px solid #ffd990bf; outline-offset: 5px; }
  }
  body.gk-portal-current .gk-reduce-effects [data-focus-login],
  body.gk-portal-current :is([data-focus-login],[data-play]):focus-visible {
    animation: none !important;
  }
}

@layer portal-current {
  body.gk-portal-current .cookie-notice {
    inset: auto 0 0; width: 100%; margin: 0; padding: 10px 66px 10px 18px;
    border: 0; border-top: 1px solid #d4ab5f; border-radius: 0;
    background: #0e1c33; color: #e1edfa; box-shadow: 0 -3px 16px #06132935;
  }
  .cookie-notice-inner {
    display: flex; align-items: center; justify-content: center; gap: 10px 20px;
    max-width: 1040px; margin-inline: auto;
  }
  body.gk-portal-current .cookie-notice-inner p {
    margin: 0 !important; max-width: 62ch;
    color: #e1edfa !important; font: 400 13px/1.45 "Segoe UI", sans-serif !important;
  }
  body.gk-portal-current .cookie-notice-inner a { color: #9bd5ff !important; }
  .cookie-notice-inner .cookie-actions { flex: none; }
  body.gk-portal-current .cookie-notice-inner .cookie-actions button {
    min-height: 36px; padding: 6px 12px; color: #f2f8ff !important;
    background: #253650; border-color: #526987; box-shadow: none !important;
  }
  body.gk-portal-current .cookie-notice-inner .cookie-actions button:hover { background: #334d72; }
  body.gk-portal-current .cookie-notice-inner .cookie-actions #cookie-accept { background: #215ba0; border-color: #79a7dd; }
  body.gk-portal-current .cookie-notice-inner .cookie-actions #cookie-accept:hover { background: #2c69b2; }
  body.gk-portal-current:has(.cookie-notice:not([hidden])) .site-footer { padding-bottom: 80px; }

  .recharge-promotion {
    position: fixed; inset: 0; width: min(430px, calc(100% - 28px));
    max-height: calc(100dvh - 28px); box-sizing: border-box; margin: auto; padding: 0;
    overflow: auto; background: #10213c; color: #f3f7ff;
    border: 1px solid #dcb568; border-radius: 16px; box-shadow: 0 14px 46px #06102099;
  }
  .recharge-promotion::backdrop { background: #071126c7; }
  .recharge-promo-art {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 136px);
    align-items: center; gap: 12px;
    min-height: 160px; padding: 18px 46px 18px 24px;
    background: radial-gradient(ellipse at 75% 60%, #5266a0, #18335b 65%, #10213c);
    border-bottom: 1px solid #dcb56870;
  }
  .recharge-promo-art img {
    display: block; width: 100%; height: auto; object-fit: contain;
    justify-self: end;
  }
  .recharge-promo-offer { display: grid; justify-items: start; line-height: 1; }
  .recharge-promo-offer span { font: 650 14px/1.4 "Segoe UI", sans-serif; color: #e5eeff; }
  .recharge-promo-offer strong { color: #ffdb87 !important; font: 850 clamp(44px, 11vw, 62px)/1 "Segoe UI", sans-serif; }
  .recharge-promo-close {
    position: absolute; right: 10px; top: 10px; width: 36px; height: 36px;
    border-radius: 50%; border: 1px solid #a4b9da;
    background: #10213c; color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
  }
  .recharge-promo-content { padding: 19px 22px 22px; }
  body.gk-portal-current .recharge-promo-content h2 { color: #f3f7ff !important; font: 750 21px/1.25 "Segoe UI", sans-serif !important; margin: 0 !important; }
  body.gk-portal-current .recharge-promo-content p { color: #cbdaf0 !important; font: 400 14px/1.5 "Segoe UI", sans-serif !important; margin: 7px 0 15px !important; }
  .recharge-promo-content p strong { color: #ffdb87 !important; }
  body.gk-portal-current .recharge-promo-cta {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; min-height: 44px; padding: 9px 13px;
    border: 1px solid #f0cc77; border-radius: 8px;
    background: linear-gradient(#ffe4a5, #edb853); color: #352407 !important;
    font: 750 14px/1.35 "Segoe UI", sans-serif; text-decoration: none;
  }
  body.gk-portal-current .recharge-promo-cta:hover { background: #ffda87; }
  @media (prefers-reduced-motion: no-preference) {
    .recharge-promotion[open] { animation: recharge-promo-enter 260ms ease-out both; }
    .recharge-promotion[open]::backdrop { animation: recharge-promo-backdrop 220ms ease-out both; }
  }
  @keyframes recharge-promo-enter { from { opacity: 0; transform: translateY(12px); } }
  @keyframes recharge-promo-backdrop { from { opacity: 0; } }
  @media (max-width: 600px) {
    .cookie-notice-inner {
      flex-direction: column; gap: 5px;
      text-align: center;
    }
    body.gk-portal-current .cookie-notice-inner p {
      max-width: 44ch; font-size: 12px !important; line-height: 1.35 !important;
    }
    .cookie-notice-inner .cookie-actions { justify-content: center; gap: 6px; }
    body.gk-portal-current .cookie-notice-inner .cookie-actions button {
      min-height: 34px; padding: 4px 10px; font: 700 12px/1.2 "Segoe UI", sans-serif !important;
    }
    body.gk-portal-current:has(.cookie-notice:not([hidden])) .site-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
  }
}
@layer portal-current {
  body.gk-portal-current:has(.cookie-notice:not([hidden])) #portal-opening-music { bottom: 74px !important; }
  @media (max-width: 600px) {
    body.gk-portal-current:has(.cookie-notice:not([hidden])) #portal-opening-music { bottom: calc(108px + env(safe-area-inset-bottom, 0px)) !important; }
    body.gk-portal-current .cookie-notice { padding: 7px 12px calc(7px + env(safe-area-inset-bottom, 0px)); }
  }
}
