/* Świąteczna Gala Grupy ASTA 2026 – strona startowa, agenda i dolne menu (wspólne).
   Mobile first. Szerszy układ (kolumna ok. 680 px) od 760 px. Dolne menu tylko do 899 px.
   Fonty bierzemy z folderu menu, żeby telefon pobrał je raz dla wszystkich stron. */

@font-face { font-family: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../../menu/assets/fonts/marcellus-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../../menu/assets/fonts/marcellus-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../../menu/assets/fonts/montserrat-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../../menu/assets/fonts/montserrat-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../../menu/assets/fonts/montserrat-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../../menu/assets/fonts/montserrat-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../../menu/assets/fonts/montserrat-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../../menu/assets/fonts/montserrat-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --cream: #f5f0ec;
  --sand: #e9ddd0;
  --panel: #fbf8f5;
  --plum: #4d0a0a;
  --plum-deep: #380707;
  --gold: #c8a47c;
  --gold-deep: #a8804f;
  --gold-text: #8a6436;
  --ink: #4d0a0a;
  --ink-label: #5c3d3d;
  --ink-body: #6b4a4a;
  --ink-muted: #7a5555;
  --on-plum: #efe6e0;
  --on-plum-body: #e6dcd6;
  --live: #5f7a4a;
  --rule: rgba(77, 10, 10, .15);
  --serif: "Marcellus", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--cream); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul { margin: 0; }
a { color: var(--ink); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.g-page { max-width: 520px; margin: 0 auto; }

/* ---------------------------------------------------------------- strzałka */
.ar { flex: none; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round;
  width: 56px; height: 16px; color: var(--gold-deep); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.ar .ar-d { fill: currentColor; stroke: none; }
a:hover .ar, a:focus-visible .ar { transform: translateX(6px); }
.ar--back { transform: none; }
a:hover .ar--back, a:focus-visible .ar--back { transform: translateX(-6px); }

.live { width: 8px; height: 8px; border-radius: 50%; background: var(--live); flex: none; animation: g-pulse 2s ease-in-out infinite; }
@keyframes g-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.orn { display: flex; align-items: center; gap: 12px; }
.orn i { width: 44px; height: 1px; background: var(--gold); }
.orn svg { width: 12px; height: 12px; fill: var(--gold); }

/* ---------------------------------------------------------------- strona startowa: hero */
/* Wysokość jak proporcje zdjęcia (3:4): widać całą ciemną górę sali, więc napisy mają spokojne tło. */
.hero { position: relative; margin: 12px 12px 0; min-height: 490px; min-height: calc((min(100vw, 520px) - 24px) * 1.34); overflow: hidden; background: var(--plum-deep);
  outline: 1px solid rgba(200,164,124,.6); outline-offset: -8px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31,3,3,.85) 0%, rgba(31,3,3,.65) 38%, rgba(31,3,3,0) 64%); }
.hero__in { position: relative; padding: calc(30px + env(safe-area-inset-top, 0px)) 32px 0; display: flex; flex-direction: column; align-items: center; }
.hero__logo { width: 76px; height: auto; margin-bottom: 26px; }
.hero__event { font: 400 15px/1.4 var(--serif); color: var(--gold); }
.hero__title { margin-top: 10px; font: 400 38px/1.06 var(--serif); color: var(--cream); text-wrap: balance; }
.hero .orn { margin: 16px 0 12px; }
.hero__meta { font: 400 13px/1.45 var(--sans); color: var(--on-plum); }

/* ---------------------------------------------------------------- kafle */
.tiles { padding: 12px 12px 0; display: flex; flex-direction: column; }
.t-menu { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 104px; padding: 12px 24px 14px;
  text-decoration: none; color: var(--ink); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.t-title { display: block; font: 400 44px/1 var(--serif); }
.t-sub { display: block; margin-top: 6px; font: 400 14px/1.45 var(--sans); color: var(--ink-body); }

.t-agenda { margin-top: 12px; padding: 22px 24px 24px; background: var(--sand); outline: 1px solid rgba(200,164,124,.5); outline-offset: -8px;
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.t-agenda__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.t-agenda__body { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 22px; }
.t-row { display: flex; flex-direction: column; gap: 8px; }
.t-lab { display: flex; align-items: center; gap: 8px; font: 500 13px/1 var(--sans); color: var(--ink-label); }
.t-lab--muted { color: var(--ink-muted); }
.t-now { font: 400 26px/1.15 var(--serif); color: var(--ink); }
.t-next { font: 400 20px/1.25 var(--serif); color: var(--ink); }
.t-days { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--rule); display: flex; align-items: flex-end; gap: 16px; }
.t-days__n { font: 400 64px/.82 var(--serif); color: var(--ink); }
.t-days__w { display: block; font: 400 22px/1.1 var(--serif); }
.t-days__s { display: block; margin-top: 4px; font: 400 14px/1.45 var(--sans); color: var(--ink-body); }
html:not([data-gala-phase="live"]) .t-agenda .live { display: none; }
html[data-gala-phase="before"] .t-agenda__body { display: none; }
html:not([data-gala-phase="before"]) .t-days { display: none; }

/* kafel atrakcji */
.t-attr { position: relative; margin-top: 24px; padding: 30px 28px; background: var(--plum); color: var(--cream);
  outline: 1px solid rgba(200,164,124,.6); outline-offset: -6px; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; }
.t-attr--open { outline-color: var(--gold); }
.t-attr__ball { position: absolute; top: -100px; right: -8px; width: 172px; }
.t-attr__ball img { width: 100%; height: auto; filter: brightness(.6) saturate(.85); animation: g-sway 6s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes g-sway { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
.t-attr__lab { position: relative; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; font: 500 13px/1 var(--sans); color: var(--gold); }
.t-attr__lab svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.t-attr__title { position: relative; max-width: 230px; font: 400 34px/1.04 var(--serif); color: var(--cream); }
.t-attr--open .t-attr__title { font-size: 40px; line-height: 1; }
.t-attr__txt { position: relative; margin-top: 12px; max-width: 240px; font: 400 15px/1.5 var(--sans); color: var(--on-plum); }
.t-attr__cta { position: relative; margin-top: 22px; align-self: stretch; display: flex; align-items: center; justify-content: space-between; gap: 28px;
  min-height: 52px; padding: 0 20px; background: var(--cream); color: var(--plum); font: 500 15px/1 var(--sans); transition: background .2s, color .2s; }
.t-attr__cta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.t-attr--open:hover .t-attr__cta, .t-attr--open:focus-visible .t-attr__cta { background: var(--gold); color: var(--plum-deep); }
.t-attr__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: g-pulse 2s ease-in-out infinite; }
.t-attr__em { position: absolute; top: 50%; margin-top: -118px; right: 6px; width: 150px; height: 150px; }

/* emblemat quizu */
.emb { position: relative; display: block; width: 100%; height: 100%; }
.emb svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.emb img { position: absolute; left: 33.67%; top: 22%; width: 32.67%; height: auto; filter: drop-shadow(0 6px 8px rgba(20,2,2,.55)); }
.emb__rays { animation: g-spin-back 90s linear infinite; transform-origin: 300px 300px; }
@keyframes g-spin-back { to { transform: rotate(-360deg); } }

/* stopka */
.g-foot { padding: 72px 36px 48px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.g-foot__claim { font: 400 28px/1.2 var(--serif); color: var(--ink); }
.g-foot p + p { font: 400 16px/1.55 var(--sans); color: var(--ink-body); }
.g-credit { margin: 0 12px; padding: 4px 20px 28px; text-align: center; font: 600 11px/1.4 var(--sans); color: #75696a; }

/* ---------------------------------------------------------------- agenda */
.a-back { display: none; align-items: center; gap: 12px; min-height: 48px; margin-top: 24px; padding: 0 12px; text-decoration: none;
  font: 500 15px/1 var(--sans); color: var(--ink-label); }
.a-head { padding: calc(36px + env(safe-area-inset-top, 0px)) 24px 32px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.a-head__logo { width: 76px; height: auto; margin-bottom: 24px; }
.a-head__event { font: 400 15px/1.4 var(--serif); color: var(--ink-body); }
.a-head__title { margin-top: 10px; font: 400 56px/1 var(--serif); color: var(--ink); }
.a-head .orn { margin: 16px 0 12px; }
.a-head__meta { font: 400 14px/1.45 var(--sans); color: var(--ink-muted); }

.a-list { list-style: none; padding: 0; margin: 0 12px; border-top: 1px solid var(--rule); }
.a-it { border-bottom: 1px solid var(--rule); transition: opacity .3s; }
.a-it.is-now { background: var(--sand); outline: 1px solid rgba(200,164,124,.5); outline-offset: -6px; border-bottom-color: transparent; }
.a-it.is-past { opacity: .45; }
.a-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 0 16px; align-items: baseline; padding: 22px 16px; }
.a-it--brk .a-row { padding: 14px 16px; }
.a-time { display: flex; flex-direction: column; gap: 6px; }
.a-time b { font: 400 24px/1 var(--serif); color: var(--gold-deep); }
.a-time small { font: 400 12px/1.2 var(--sans); color: var(--ink-muted); }
.a-it--brk .a-time b { font: 500 14px/1.3 var(--sans); color: var(--ink-muted); }
.a-body { display: flex; flex-direction: column; gap: 8px; }
.a-now { display: none; align-items: center; gap: 8px; font: 500 13px/1 var(--sans); color: var(--ink-label); }
.a-it.is-now .a-now { display: flex; }
.a-title { font: 400 22px/1.2 var(--serif); color: var(--ink); }
.a-it--star .a-title { font-size: 30px; line-height: 1.05; }
.a-it--brk .a-title { font: 400 14px/1.4 var(--sans); color: var(--ink-body); }
.a-note { font: 400 14px/1.5 var(--sans); color: var(--ink-body); }
.a-x { margin-top: 6px; display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--panel);
  outline: 1px solid rgba(200,164,124,.5); outline-offset: -4px; text-decoration: none; color: var(--ink); }
.a-x__ic { flex: none; width: 26px; height: 26px; color: var(--gold-deep); fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.a-x__t { display: block; font: 400 17px/1.2 var(--serif); color: var(--ink); }
.a-x__s { display: block; margin-top: 4px; font: 400 13px/1.35 var(--sans); color: var(--ink-body); }

@media (prefers-reduced-motion: reduce) {
  .live, .t-attr__dot, .t-attr__ball img, .emb__rays { animation: none; }
  .ar { transition: none; }
}

/* ---------------------------------------------------------------- szerszy ekran */
@media (min-width: 760px) {
  .g-page { max-width: 704px; padding: 0 12px; }
  .hero { margin: 24px 0 0; min-height: 600px; outline-offset: -10px; }
  .hero__in { padding: 48px 48px 0; }
  .hero__shade { background: linear-gradient(180deg, rgba(31,3,3,.88) 0%, rgba(31,3,3,.72) 45%, rgba(31,3,3,0) 72%); }
  .hero__logo { width: 100px; margin-bottom: 36px; }
  .hero__event { font-size: 18px; }
  .hero__title { margin-top: 12px; font-size: 54px; line-height: 1.04; }
  .hero .orn { margin: 22px 0 16px; }
  .hero .orn i { width: 56px; }
  .hero__meta { font-size: 15px; }
  .tiles { padding: 16px 0 0; }
  .t-menu { min-height: 136px; padding: 16px 36px 18px; }
  .t-title { font-size: 56px; }
  .t-sub { margin-top: 8px; font-size: 15px; }
  .ar { width: 72px; height: 21px; }
  .t-agenda { margin-top: 16px; padding: 32px 36px 34px; outline-offset: -10px; }
  .t-agenda__body { margin-top: 26px; padding-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
  .t-now { font-size: 28px; }
  .t-next { font-size: 22px; }
  .t-attr { margin-top: 32px; padding: 44px; outline-offset: -10px; }
  .t-attr__ball { top: -140px; right: 36px; width: 228px; }
  .t-attr__title { max-width: 420px; font-size: 46px; }
  .t-attr--open .t-attr__title { font-size: 50px; }
  .t-attr__txt { max-width: 380px; font-size: 16px; }
  .t-attr--open .t-attr__cta { align-self: flex-start; }
  .t-attr__em { margin-top: -110px; right: 44px; width: 220px; height: 220px; }
  .g-foot { padding: 96px 36px 56px; }
  .g-foot__claim { font-size: 36px; }
  .g-credit { margin: 0; padding: 8px 0 36px; font-size: 12px; }

  .a-back { display: inline-flex; }
  .a-head { padding: 28px 32px 44px; }
  .a-head__logo { width: 96px; margin-bottom: 30px; }
  .a-head__event { font-size: 18px; }
  .a-head__title { font-size: 80px; }
  .a-head .orn { margin: 22px 0 16px; }
  .a-head .orn i { width: 56px; }
  .a-head__meta { font-size: 15px; }
  .a-list { margin: 0; }
  .a-row { grid-template-columns: 96px minmax(0, 1fr); gap: 0 28px; padding: 28px; }
  .a-it--brk .a-row { padding: 16px 28px; }
  .a-time b { font-size: 30px; }
  .a-title { font-size: 27px; }
  .a-it--star .a-title { font-size: 40px; }
  .a-note, .a-it--brk .a-title, .a-it--brk .a-time b { font-size: 15px; }
  .a-x { padding: 14px 18px; }
  .a-x__ic { width: 30px; height: 30px; }
  .a-x__t { font-size: 20px; }
}
