/* ===== FONT ===== */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@400;600;800;900&display=swap');

/* ===== GLOBAL ===== */
html, body {
  height: 100%;
  margin: 0;
  font-family: 'Kanit', system-ui, sans-serif;
  color: #fff;
  overflow: hidden;
}

body.age {
  background: url("../art/PR_web_bg_alert.jpg") no-repeat center center fixed;
  background-size: cover;
}

/* ===== POSTACIE ===== */
.char{
  position: fixed;
  bottom: 0;
  height: 100vh;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.6));
}
.char--left{  left: 0; }
.char--right{ right: 0; }

/* ===== PANEL ===== */
.age-panel{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 4vh 3vw;
  z-index: 2;
}

.age-panel__inner{
  position: relative;
  width: min(70vw, 1120px);
  min-width: 340px;
  padding: clamp(28px, 3vw, 44px) clamp(22px, 2.6vw, 36px);
  text-align: center;

  background:
    linear-gradient(180deg, #4aa6e6 0%, #2f95dc 45%, #2a7bc0 100%),
    url("../art/standalone_age_alert_bg.png") center/cover no-repeat;
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(0,0,0,.35);
  outline: 10px solid rgba(255,255,255,.12);
}

.age-logo{
  width: min(320px, 48%);
  max-width: 380px;
  margin: 0 auto clamp(12px, 2vh, 18px);
  display: block;
}

.age-title{
  margin: 0 0 12px;
  font-weight: 900;
  letter-spacing: .6px;
  color: #ffb200;
  font-size: clamp(24px, 3.2vw, 46px);
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(0,0,0,.25);
}

.age-desc{
  margin: 0 auto clamp(18px, 2.4vh, 26px);
  line-height: 1.55;
  font-weight: 600;
  color: #e9f3ff;
  font-size: clamp(14px, 1.25vw, 18px);
}

/* ===== PRZYCISK ===== */
.age-btn {
  position: relative;
  display: block;
  margin: 0 auto 18px;
  width: 380px;   /* SZERSZY */
  height: 150px;
  text-decoration: none;
  color: #fff;
}

.age-btn__shadow,
.age-btn__bg,
.age-btn__face {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
  border-radius: 999px;
}

.age-btn__shadow {
  background-image: url("../art/standalone_age_alert_green_button_shadow.png");
  transform: translateY(8px);
  z-index: 0;
}

.age-btn__bg {
  background-image: url("../art/standalone_age_alert_green_button_bg.png");
  z-index: 1;
}

.age-btn__face {
  background-image: url("../art/standalone_age_alert_green_button.png");
  z-index: 2;
  transition: transform 180ms ease, filter 180ms ease;
}

/* Tekst */
.age-btn__label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 90%;   /* dodane */
  word-wrap: break-word;
  z-index: 3;
}
.age-btn__label strong {
  display: block;
  font-weight: 900;
  font-size: 28px;   /* lekko powiększony */
  margin-bottom: 4px;
  text-shadow: 0 2px 0 rgba(0,0,0,.25);
}
.age-btn__label em {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: 15px;
  color: #214b1b;
  text-shadow: 0 1px 0 rgba(255,255,255,.65);
}

/* Hover/Active */
.age-btn:hover .age-btn__face {
  transform: scale(1.03);
  filter: brightness(1.08);
}
.age-btn:hover .age-btn__shadow {
  transform: scale(1.05) translateY(8px);
}
.age-btn:active .age-btn__face {
  transform: scale(0.985);
  filter: brightness(0.95);
}
.age-btn:active .age-btn__shadow {
  transform: translateY(6px);
}

/* Link under 18 */
.age-under{
  display: inline-block;
  font-size: clamp(12px, 1vw, 14px);
  color: #d6e8ff;
  text-decoration: none;
}
.age-under:hover{ color:#fff; text-decoration: underline; }

/* ===== FOOTER ===== */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #111c2a;
  color: #ccc;
  font-size: 12px;
  text-align: center;
  padding: 15px 10px;
  z-index: 10;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.site-footer .footer-links { margin-bottom: 8px; }

.site-footer a {
  color: #8aa4d8;
  text-decoration: none;
  margin: 0 6px;
  font-weight: 600;
  transition: color .2s ease, text-decoration-color .2s ease;
}
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-disclaimer {
  color: #999;
  font-size: 11px;
  line-height: 1.4;
  margin-top: 4px;
}

/* ===== RESPONSYWNOŚĆ ===== */
@media (max-width: 1400px){
  .age-panel__inner{ width: min(74vw, 1080px); }
}
@media (max-width: 1200px){
  .age-panel__inner{ width: min(78vw, 980px); }
}
@media (max-width: 992px){
  .age-panel__inner{ width: min(86vw, 920px); }
}
@media (max-width: 820px){
  .char{ height: 92vh; }
  .age-panel__inner{ width: min(90vw, 880px); }
  .age-btn{ width: min(420px, 76%); height: 120px; }
  .age-btn__label strong{ font-size: 24px; }
  .age-btn__label em{ font-size: 14px; }
}
@media (max-width: 680px){
  .char{ opacity:0; visibility:hidden; }
  .age-panel{ margin-bottom: 80px; }
  .age-panel__inner{ width: 92vw; padding: 24px 18px; }
  .age-btn{ width: 86%; height: 100px; }
  .age-btn__label strong{ font-size: 20px; }
  .age-btn__label em{ font-size: 13px; }

  .site-footer{
    position: relative;
    padding: 12px 10px;
  }
  .site-footer a{
    display: inline-block;
    margin: 4px 6px;
  }
}



/* === Cleansheet additive rules (do not override age-gate visuals) === */

/* Page layout with sticky footer at bottom (without overlapping game) */
html, body { height: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; }

/* Sections fill remaining space */
.age-section, .game-section { flex: 1 0 auto; }

/* Game background (original beach) */
body.game-open { background: url("/art/PR_web_bg.jpg") center/cover no-repeat fixed; overflow: hidden; }

/* Side art for GAME screen */
.side-art { position: absolute; top:0; bottom:0; height:100%; max-height:100vh; object-fit: contain; z-index: 2; pointer-events: none; }
.side-art.left { left: 0; }
.side-art.right { right: 0; }

/* Center the game wrapper, keep 16:9 */
.game-section { display: grid; place-items: center; position: relative; min-height: calc(100vh - var(--footer-h, 140px)); }
.game-wrapper { position: relative; width: min(80vw, 1600px); aspect-ratio: 16 / 9; background: #000; border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.6); overflow: hidden; z-index: 3; }
#unity-canvas { width: 100% !important; height: 100% !important; display: block; }
#unity-fullscreen-button { background-image: url('art/fullscreen_icon2.png'); background-position: 0px 0px; width: 84px; height: 84px; text-align: right; z-index: 5; float: right; margin-left:1516px; display: none}
#unity-fullscreen-button:hover { background-position: -84px 0px }
#unity-fullscreen-button:active { background-position: 84px 0px }

/* Footer sits at true bottom */
.site-footer { position: relative; margin-top: auto; width: 100%; background: #0f1722; color: #cbd5e1; text-align: center; padding: 14px 12px; font-size: 12px; line-height: 1.5; box-shadow: 0 -2px 12px rgba(0,0,0,.25); }
.site-footer .footer-links { margin-bottom: 6px; }
.site-footer a { color: #9ed5ff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Toggle visibility of sections */
body.age-open .game-section { display: none; }
body.game-open .age-section { display: none; }