#game-rules{
  width:calc(min(100%,var(--route-width)) - 24px);
  max-height:calc(var(--route-visible-height) - 32px);
  border:1px solid var(--route-glass-border);
  border-top-color:var(--route-glass-edge);
  border-radius:25px;
  background:var(--route-glass-reflections),linear-gradient(155deg,rgba(29,51,88,.85),rgba(10,21,43,.92));
  box-shadow:var(--route-glass-shadow);
  -webkit-backdrop-filter:var(--route-glass-filter);
  backdrop-filter:var(--route-glass-filter);
  overscroll-behavior:contain;
  font-size:14px;
}
#game-rules::backdrop{background:rgba(2,12,17,.42)}
#game-rules .sc{padding:22px;gap:14px}
#game-rules h2{margin:0;padding-right:42px;font:700 28px/1.1 var(--serif);color:var(--gold-hi)}
#game-rules p{margin:0}
#game-rules ol{margin:0;padding-left:22px}
#game-rules li+li{margin-top:8px}
.cover-footer{display:grid;justify-items:center}
.cover-rules{
  display:inline-grid;
  place-items:center;
  min-height:44px;
  padding-inline:12px;
  color:var(--mobile-link);
  font:400 13px/1.2 'Golos Text',Arial,sans-serif;
}
@media(prefers-reduced-motion:no-preference){
  #game-rules[open]{animation:rules-in 360ms cubic-bezier(.22,.72,.28,1) both}
  #game-rules[open]::backdrop{animation:rules-backdrop-in 280ms ease-out both}
}
@keyframes rules-in{from{opacity:0;translate:0 18px;scale:.985}}
@keyframes rules-backdrop-in{from{opacity:0}}

.route-page{
  --mobile-unit:calc(100cqw / 360);
  --mobile-gold:#d8ab62;
  --mobile-link:#47dddd;
}
.game-brand{
  position:relative;
  z-index:1;
  display:grid;
  place-items:start center;
}
.game-cover-link{
  width:calc(156 * var(--screen-unit));
  gap:calc(1 * var(--screen-unit));
  translate:0 -1px;
}
@media(min-width:741px) and (any-hover:hover) and (any-pointer:fine){
  .game-cover-link{translate:0 -30px}
}
.game-cover-link .festival-lettering{width:calc(128 * var(--screen-unit))}
.game-cover-link .festival-motto{
  width:100%;
  filter:grayscale(1) contrast(.5) brightness(1.55);
}
.game-controls{
  --caption-height:max(48px,calc(60.28 * var(--screen-unit)));
  --footer-bottom:calc(5.44 * var(--screen-unit));
  /* На низких экранах сокращаем отступ, оставляя место двум строкам управления по 44px и зазору 4px. */
  --city-gap:clamp(0px,calc((var(--route-height) - var(--clock-height)) / 2 - 92px - var(--caption-height) - var(--footer-bottom)),calc(26 * var(--screen-unit)));
  position:relative;
  z-index:1;
  display:grid;
  grid-template-rows:var(--city-gap) auto minmax(4px,1fr) auto;
}
.city-switch{
  display:grid;
  grid-row:2;
  grid-template-columns:44px minmax(0,1fr) 44px;
  align-items:center;
  gap:4px;
  width:min(100%,340px);
  margin-inline:auto;
  color:var(--mobile-gold);
}
#clock-city-name{
  margin:0;
  font:400 clamp(21px,calc(24 * var(--screen-unit)),24px)/1.1 'Yauza TYGRA',var(--serif);
  text-align:center;
  overflow-wrap:anywhere;
}
.clock-arrow{
  display:grid;
  place-items:center;
  min-height:44px;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
}
.clock-arrow:hover{background:rgba(255,215,135,.12)}
.clock-arrow img{display:block}
.clock-prev img{scale:-1 1}
.wonder-number{
  display:block;
  color:#d1ad70;
  font:400 clamp(21px,calc(30.5 * var(--screen-unit)),34px)/1 'Yauza TYGRA',var(--serif);
}
.wonder:hover .wonder-number,.wonder:focus-visible .wonder-number{color:#fff0c1}

.mobile-game-footer{
  position:relative;
  display:grid;
  grid-row:4;
  padding:0 calc(30.64 * var(--screen-unit)) var(--footer-bottom);
  text-align:center;
}
.mobile-game-footer p{
  display:grid;
  place-items:center;
  min-height:var(--caption-height);
  margin:0;
  color:var(--mobile-gold);
  font:400 clamp(13px,calc(14 * var(--screen-unit)),14px)/16px 'Golos Text',Arial,sans-serif;
}
.mobile-game-footer nav{display:flex;flex-wrap:wrap;justify-content:space-between;column-gap:12px}
.mobile-game-footer a,.mobile-game-footer button{
  display:inline-flex;
  align-items:end;
  min-height:44px;
  padding:0 0 max(calc(13 * var(--screen-unit)),env(safe-area-inset-bottom));
  border:0;
  background:none;
  color:var(--mobile-link);
  font:400 13px/1.2 'Golos Text',Arial,sans-serif;
  text-transform:uppercase;
  text-decoration:underline;
}
