/* «Филидор» — премьера: одна афиша на тёмной сцене. Палитра — «Графит» и золотая кнопка из приложения (ui/Theme.kt). */
@font-face { font-family: "Playfair"; src: url("fonts/playfair.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Playfair"; src: url("fonts/playfair-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0B0A09; --text: #F2EBD9; --muted: #BDB8AE; --faint: #8C877E;
  --gold: #E2BE72; --gold-hi: #F6E2AE; --gold-lo: #B8893F; --line: rgba(226, 190, 114, .55);
  --serif: "Playfair", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }

/* the stage: art on the right, the playbill on the left, the programme along the bottom */
.stage { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; overflow: hidden; isolation: isolate; }
.art { position: absolute; inset: 0; z-index: -2; }
.art img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 40%; display: block; }
.stage::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(11,10,9,.85) 28%, rgba(11,10,9,0) 52%),
              linear-gradient(0deg, rgba(11,10,9,.92) 0%, rgba(11,10,9,0) 26%); }
/* a slow breath of the spotlight over the bust */
.stage::after { content: ""; position: absolute; z-index: -1; pointer-events: none; width: 70vmax; height: 70vmax; right: -8vmax; top: -22vmax;
  background: radial-gradient(closest-side, rgba(246,226,174,.10), transparent 70%); animation: breathe 9s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .35; transform: scale(1.06); } }

.bill { align-self: center; width: min(48vw, 720px); margin-left: clamp(24px, 7vw, 120px); padding: 48px 0 24px; text-align: center; }
.seal { display: inline-grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; margin-bottom: 26px;
  border: 1px solid var(--line); box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 5px rgba(226,190,114,.35);
  font: 500 40px/1 var(--serif); }
.eyebrow { display: flex; align-items: center; gap: 22px; margin: 0; font: 500 15px/1 var(--serif); letter-spacing: .55em; color: var(--gold); text-transform: uppercase; }
.eyebrow::before, .eyebrow::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
.eyebrow::after { transform: scaleX(-1); }
.eyebrow span { margin-right: -.55em; }
/* inline-block and padding: the gold gradient must cover the whole word, descenders of «р» and «д» included (Safari clips them otherwise) */
h1 { display: inline-block; margin: 18px 0 calc(8px - .2em); padding: .04em .05em .24em; font: 600 clamp(64px, 8.2vw, 136px)/1.04 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.gold { color: var(--gold); background: linear-gradient(178deg, var(--gold-hi) 8%, var(--gold) 46%, var(--gold-lo) 78%, #E8C886 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.flourish { display: block; width: min(100%, 520px); height: 34px; margin: 0 auto; color: var(--gold); }
.tag { margin: 26px 0 14px; font: 400 clamp(24px, 2.5vw, 38px)/1.25 var(--serif); color: var(--text); }
/* the promise of the game review: plain words under the motto, quieter than it */
.lead { margin: 0 auto 40px; font: 400 clamp(17px, 1.35vw, 21px)/1.45 var(--sans); color: var(--muted); letter-spacing: .01em; text-wrap: balance; }
.store { display: inline-flex; align-items: center; gap: 16px; min-height: 64px; padding: 0 30px 0 34px; border-radius: 999px;
  border: 1.5px solid var(--gold); background: rgba(11,10,9,.55); color: var(--gold-hi); font: 400 clamp(20px, 1.8vw, 26px)/1 var(--serif);
  box-shadow: 0 0 0 5px rgba(226,190,114,.07), 0 10px 40px rgba(0,0,0,.5); }
.store img { width: 30px; height: 30px; border-radius: 8px; }
.m { display: none; }

/* «В программе»: what the app holds, in playbill caps */
.programme { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 0; margin: 0; padding: 22px 24px 14px;
  list-style: none; font: 500 13px/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.programme li { padding: 0 clamp(14px, 2.4vw, 40px); border-left: 1px solid var(--line); white-space: nowrap; }
.programme li:first-child { border-left: 0; color: var(--gold); font-family: var(--serif); letter-spacing: .3em; }
.programme b { color: var(--text); font-weight: 600; letter-spacing: .12em; }
.foot { display: flex; flex-wrap: wrap; justify-content: center; text-align: center; gap: 6px 22px; padding: 6px 24px 18px; font: 13px/1.5 var(--sans); color: var(--faint); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--gold); }

/* curtain up: the bill rises out of the dark */
.bill > *, .programme { animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both; }
.bill > :nth-child(2) { animation-delay: .12s; } .bill > :nth-child(3) { animation-delay: .24s; } .bill > :nth-child(4) { animation-delay: .36s; }
.bill > :nth-child(5) { animation-delay: .48s; } .bill > :nth-child(6) { animation-delay: .6s; } .bill > :nth-child(7) { animation-delay: .72s; } .programme { animation-delay: .8s; }
.art img { animation: lights 2.4s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes lights { from { opacity: 0; filter: brightness(.4); } }
@media (prefers-reduced-motion: reduce) { *, ::before, ::after { animation: none !important; } }

/* phone: the scene on top, the bill below it in the dark */
@media (max-width: 760px), (max-aspect-ratio: 5/4) {
  .art img { object-position: 50% 0; }
  .stage::before { background: linear-gradient(0deg, var(--bg) 0%, var(--bg) 36%, rgba(11,10,9,.6) 50%, rgba(11,10,9,0) 64%); }
  .stage::after { display: none; }
  .bill { align-self: end; width: auto; max-width: 640px; margin: 0 auto; padding: 52vh 16px 8px; }
  .seal { width: 54px; height: 54px; font-size: 29px; margin-bottom: 16px; }
  .eyebrow { font-size: 13px; letter-spacing: .5em; gap: 16px; }
  h1 { margin: 10px 0 calc(4px - .2em); font-size: clamp(58px, 18vw, 84px); }
  .flourish { height: 26px; width: 80%; }
  .tag { margin: 16px 0 10px; font-size: 22px; }
  .lead { margin-bottom: 26px; font-size: 16px; }
  .m { display: inline; }
  .store { min-height: 54px; padding: 0 24px 0 26px; font-size: 20px; }
  .store img { width: 26px; height: 26px; }
  .programme { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 0; padding: 26px 16px 10px; font-size: 11px; letter-spacing: .2em; }
  .programme li { text-align: center; white-space: normal; }
  .programme li:first-child { grid-column: 1 / -1; }
  .programme li:nth-child(2), .programme li:nth-child(4) { border-left: 0; }
}
