:root{
  --bg:#061a33;
  --panel:rgba(0,0,0,.55);
  --text:#eaf6ff;
  --accent:#ff3b3b;
  --stroke:rgba(255,255,255,.85);
  --shadow:rgba(0,0,0,.35);
  --ui: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --posterfont: Impact, Haettenschweiler, "Arial Black", system-ui, sans-serif;
}

*{ box-sizing:border-box; }

html,body{ height:100%; }
body{
  margin:0;
  background: radial-gradient(1200px 700px at 50% 20%, #0b2b55, var(--bg));
  color:var(--text);
  font-family:var(--ui);
}

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(3,12,28,.55);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.topbar__inner{
  max-width: 1200px;
  margin:0 auto;
  padding:10px 12px;
  display:flex;
  align-items:center;
  gap:12px;
  justify-content:space-between;
}

.debug{
  display:flex;
  align-items:center;
  gap:10px;
}
.debug__item{
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:10px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.10);
}
.debug__range input{ width:140px; }

.btn{
  cursor:pointer;
  border:0;
  border-radius:10px;
  padding:8px 10px;
  background: rgba(255,255,255,.16);
  color:var(--text);
  font-weight:700;
}
.btn:hover{ filter: brightness(1.08); }
.btn--ghost{ background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); }

.hint{
  opacity:.85;
  font-size:13px;
  display:none;
}
@media (min-width: 980px){
  .hint{ display:block; }
}

.stage{
  min-height: calc(100vh - 54px);
  display:grid;
  place-items:center;
  padding: 16px;
}

.posterShell{
  width: min(1080px, 100vw);
  /* wysokość wynika z aspect ratio plakatu */
  aspect-ratio: 1448 / 2048;
  position:relative;
  box-shadow: 0 18px 60px var(--shadow);
  border-radius: 14px;
  overflow:hidden;
  background: #0b2b55;
}

/* SVG mount */
#svgMount, #svgMount svg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
}

/* Hotspoty (SVG rect) */
svg .hs{
  fill: rgba(255, 0, 0, 0); /* domyślnie niewidoczny */
  stroke: rgba(255,255,255,0);
  stroke-width: 3;
  cursor:pointer;
  rx: 10;
  ry: 10;
}

svg .hs:hover{
  stroke: rgba(255,255,255,.7);
}

/* DEBUG view */
body.debug svg .hs{
  fill: rgba(255, 0, 0, .35);
  stroke: rgba(255,255,0,.9);
}

svg .handle{
  display:none;
}
body.debug svg .handle{
  display:block;
  fill: rgba(255,255,255,.95);
  stroke: rgba(0,0,0,.35);
  stroke-width: 2;
  cursor:nwse-resize;
}

/* Menu (SVG) */
svg .menuBox{
  display:none;
}
svg .menuBox.open{
  display:block;
}

/* Kontakt “plakatowy” */
svg .kontaktText{
  font-family: var(--posterfont);
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  fill: rgba(255,255,255,.92);
  paint-order: stroke;
  stroke: rgba(0,0,0,.35);
  stroke-width: 6;
}

/* Edytor hotspotów */
.editor{
  position:absolute;
  right:12px;
  top:12px;
  width: 270px;
  background: rgba(0,0,0,.70);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 12px;
  display:none;
  z-index:10;
}
body.debug .editor{ display:block; }
.editor__title{
  font-family: var(--posterfont);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom:10px;
}
.editor__row{
  display:grid;
  grid-template-columns: 60px 1fr;
  align-items:center;
  gap:10px;
  margin:8px 0;
}
.editor input{
  width:100%;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color:var(--text);
  padding:8px 10px;
  outline:none;
}
.editor code{ opacity:.95; }

/* === Breakpointy (popularne tablety/telefony) === */
/* Tablet landscape (1024) */
@media (max-width: 1024px){
  .topbar__inner{ gap:10px; }
  .debug__range input{ width:120px; }
}
/* Tablet portrait (768) */
@media (max-width: 768px){
  .topbar__inner{ flex-wrap:wrap; justify-content:flex-start; }
  .hint{ display:none; }
}
/* Telefon (480) */
@media (max-width: 480px){
  .debug{ width:100%; justify-content:space-between; }
  .debug__item{ padding:6px 8px; }
  .debug__range input{ width:110px; }
}
/* Mały telefon (360) */
@media (max-width: 360px){
  .btn{ padding:7px 8px; }
}
/* ===== Hamburger + drawer ===== */

.hamburger{
  position: fixed;
  top: 34px;
  right: calc((100vw - min(1080px, 100vw)) / 2 + 14px);
  z-index: 120;
  width: 54px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 10px 12px;
  box-shadow: 0 16px 45px rgba(0,0,0,.35);
}

.hamburger span{
  display:block;
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,.92);
  border-radius: 10px;
  transform-origin: center;
  transition: transform .18s ease, opacity .18s ease;
}

body.drawerOpen .hamburger span:nth-child(1){ transform: translateY(9px) rotate(45deg); }
body.drawerOpen .hamburger span:nth-child(2){ opacity: 0; }
body.drawerOpen .hamburger span:nth-child(3){ transform: translateY(-9px) rotate(-45deg); }

.drawerOverlay{
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
}

.drawer{
  position: fixed;
  top: 0;
  right: 0;
  z-index: 115;
  height: 100vh;
  width: min(420px, 92vw);
  background: rgba(6,20,42,.92);
  border-left: 1px solid rgba(255,255,255,.14);
  box-shadow: -18px 0 60px rgba(0,0,0,.45);
  transform: translateX(102%);
  transition: transform .22s ease;
  display: grid;
  grid-template-rows: auto 1fr;
  -webkit-transition: transform .22s ease;
  -moz-transition: transform .22s ease;
  -ms-transition: transform .22s ease;
  -o-transition: transform .22s ease;
}

body.drawerOpen .drawer{
  transform: translateX(0);
}

.drawer__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.drawer__title{
  font-family: var(--posterfont);
  font-weight: 900;
  letter-spacing: .12em;
}

.drawer__close{
  cursor:pointer;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
  padding: 8px 10px;
}

.drawer__nav{
  overflow:auto;
  padding: 12px 14px 16px;
}

.drawer__group{
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  overflow:hidden;
  margin-bottom: 12px;
  background: rgba(0,0,0,.18);
}

.drawer__groupTitle{
  width: 100%;
  text-align:left;
  cursor:pointer;
  padding: 12px 12px;
  border: 0;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  font-family: var(--posterfont);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.drawer__groupTitle::after{
  content:"▾";
  opacity:.9;
  transform: rotate(0deg);
  transition: transform .18s ease;
}

.drawer__groupTitle[aria-expanded="false"]::after{
  transform: rotate(-90deg);
}

.drawer__links{
  padding: 10px 10px 12px;
  display:grid;
  gap: 8px;
}

.drawer__links a{
  text-decoration:none;
  color: rgba(255,255,255,.92);
  padding: 10px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  font-weight: 700;
}

.drawer__links a:hover{
  filter: brightness(1.07);
}

/* drobne na telefon */
@media (max-width: 480px){
  .hamburger{ top: 10px; right: 10px; width: 50px; height: 44px; }
}
/* Hamburger znika gdy drawer otwarty */
body.drawerOpen .hamburger{
  opacity: 0;
  pointer-events: none;
  transform: scale(.85);
}
.hamburger{
  transition: opacity .2s ease, transform .2s ease;
}

#patrons{
  background-color: #ffffff;
  position: relative;
  top: -70px;
  padding: 20px;;
    width: min(1080px, 100vw);
}

#patrons .title {
  color: #061a33;
  font-size: xx-large;
}
.subpage #patrons{
  position: relative !important;
  bottom: auto !important;
  margin: 70px auto 0;
  max-width: 1080px;
}
