@font-face {
  font-family: Anton;
  src: url(assets/anton.woff2) format('woff2');
  font-display: swap;
}

body { margin: 0; background: #141513; }
#recreated-opening {
  --amber: #ffba62;
  --stub: #ff925b;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --shade: .43;
  --angle: -2deg;
  color: #fff9ee;
  font: 500 16px/1.35 -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  position: relative;
  isolation: isolate;
  overflow: clip;
}
#recreated-opening::before {
  content: "";
  position: absolute;
  inset: -5% 0;
  pointer-events: none;
  z-index: -1;
  transform: translateY(var(--station-offset, 0px));
  background:
    linear-gradient(180deg, #0e0f11aa, transparent 28%, transparent 62%, #141513 95%),
    linear-gradient(rgb(12 12 13 / var(--shade)), rgb(12 12 13 / var(--shade))),
    url(assets/rail-yard.jpg) center / cover;
}
#recreated-opening * { box-sizing: border-box; }
#recreated-opening .stage {
  width: min(100%, 1370px, max(800px, 172svh));
  min-height: 100svh;
  margin: 0 auto;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#recreated-opening .brand, .site-footer .brand {
  display: flex;
  align-items: center;
  align-self: start;
  margin: max(22px, 3.4cqw) 5.5cqw auto;
  font: 900 clamp(17px, 2.2cqw, 28px)/1 'Arial Black', Arial, sans-serif;
  letter-spacing: -.075em;
}
#recreated-opening .brand::before, .site-footer .brand::before {
  content: '';
  width: 1.55em;
  height: 1.55em;
  margin-right: .42em;
  background: url(assets/walrus.png) center / contain no-repeat;
}
#recreated-opening .brand b, .site-footer .brand b { color: var(--amber); }
#recreated-opening .ticket {
  width: 86%;
  display: grid;
  grid-template-columns: 76% 24%;
  margin: 4.5cqw 0 3.5cqw;
  transform: rotate(var(--angle));
  filter: drop-shadow(0 1.6cqw 1.7cqw #030405b0);
  color: #242421;
}
#recreated-opening .paper {
  padding: 1.2cqw;
  border-radius: .8cqw 0 0 .8cqw;
  background: #fff0d3;
  mask:
    radial-gradient(circle at right top, transparent 1.1cqw, black 1.16cqw) top / 100% 51% no-repeat,
    radial-gradient(circle at right bottom, transparent 1.1cqw, black 1.16cqw) bottom / 100% 51% no-repeat;
}
#recreated-opening .panorama {
  display: grid;
  align-content: center;
  gap: 1.2cqw;
  height: 18cqw;
  padding: 2.2cqw 2.6cqw;
  color: #fff2d7;
  background:
    linear-gradient(90deg, #171916ed, #1a1c209e 34%, transparent 73%),
    url(assets/morning-train.jpg) 76% 57% / cover;
}
#recreated-opening .destination,
#recreated-opening .until,
#recreated-opening .stub-label {
  font: 600 clamp(11px, 1.45cqw, 19px)/1.2 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}
#recreated-opening h1 {
  font: 400 8.4cqw/1 Anton, Impact, sans-serif;
  margin: 0;
  color: inherit;
  letter-spacing: -.025em;
  white-space: nowrap;
}
#recreated-opening .schedule { padding: 1.7cqw 2.6cqw .7cqw; }
#recreated-opening .until {
  border-bottom: 1px solid #26231e77;
  padding-bottom: 1cqw;
  margin-bottom: 1.1cqw;
}
#recreated-opening .clock {
  display: flex;
  justify-content: space-between;
  font: 500 clamp(11px, 1.2cqw, 16px)/1.3 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}
#recreated-opening .clock div {
  display: grid;
  position: relative;
  justify-items: center;
  gap: .5cqw;
  width: 7.6cqw;
}
#recreated-opening .clock b {
  font: 400 6.6cqw/1 Anton, Impact, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}
#recreated-opening .clock div:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 5%;
  left: calc(50% + 8.25cqw);
  height: 90%;
  width: 1px;
  background: #2823164d;
}
#recreated-opening .stub {
  background: var(--stub);
  border-radius: 0 .8cqw .8cqw 0;
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  mask:
    radial-gradient(circle at left top, transparent 1.1cqw, black 1.16cqw) top / 100% 51% no-repeat,
    radial-gradient(circle at left bottom, transparent 1.1cqw, black 1.16cqw) bottom / 100% 51% no-repeat;
}
#recreated-opening .stub::before {
  content: '';
  position: absolute;
  inset: 1cqw auto 1cqw 0;
  border-left: 2px dashed #27251fa6;
}
#recreated-opening time { display: flex; flex-direction: column; text-align: center; }
#recreated-opening time strong { font: 400 7.4cqw/1 Anton, Impact, sans-serif; margin: 1.5cqw 0 .5cqw; }
#recreated-opening time span { font: 700 2.2cqw/1 var(--mono); letter-spacing: .16em; }
#recreated-opening time b { font: 800 2.2cqw/1.2 Arial, sans-serif; margin: 2cqw 0 0; }
#recreated-opening .actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  width: 85%;
  margin-bottom: auto;
  padding-bottom: 3cqw;
  font-size: clamp(13px, 1.65cqw, 20px);
  text-shadow: 0 1px 4px #000, 0 2px 16px #000;
}
#recreated-opening .actions p { margin: 0; }
#recreated-opening button {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--amber);
  text-shadow: inherit;
  font: 700 clamp(14px, 1.55cqw, 19px)/1.25 -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  min-height: 44px;
}
#recreated-opening button:hover { color: #ffdda5; }
#recreated-opening button span { font-size: 1.3em; }
#recreated-opening dialog {
  width: min(92%, 510px);
  padding: clamp(18px, 4cqw, 40px);
  color: #fff9ee;
  background: #1c1b19;
  border: 1px solid #57534b;
  border-radius: 8px;
  line-height: 1.5;
  font-size: clamp(14px, 1.7cqw, 17px);
}
#recreated-opening dialog::backdrop { background: #0a0a0bbb; backdrop-filter: blur(7px); }
#recreated-opening dialog h2 { margin: 0; color: inherit; font-size: 1.55em; font-weight: 750; line-height: 1.2; }
#recreated-opening dialog ol { padding-left: 1.4em; }
#recreated-opening dialog li { margin-bottom: .6em; }
#recreated-opening dialog li::marker { color: var(--amber); }

@container (max-width: 620px) {
  #recreated-opening .ticket { grid-template-columns: 1fr; width: 88%; margin: 38px 0 26px; }
  #recreated-opening .paper {
    padding: 2cqw;
    border-radius: 6px 6px 0 0;
    mask:
      radial-gradient(circle at left bottom, transparent 7px, black 8px) left / 51% 100% no-repeat,
      radial-gradient(circle at right bottom, transparent 7px, black 8px) right / 51% 100% no-repeat;
  }
  #recreated-opening .panorama { height: clamp(124px, 35cqw, 180px); gap: 10px; padding: 4cqw; }
  #recreated-opening h1 { font-size: 11cqw; }
  #recreated-opening .schedule { padding: 14px 3cqw; }
  #recreated-opening .until { margin-bottom: 12px; padding-bottom: 8px; }
  #recreated-opening .clock { letter-spacing: .02em; }
  #recreated-opening .clock div { gap: 5px; width: 16cqw; }
  #recreated-opening .clock div:not(:last-child)::after { left: calc(50% + 10.33cqw); }
  #recreated-opening .clock b { font-size: 10cqw; }
  #recreated-opening .stub {
    border-radius: 0 0 6px 6px;
    flex-direction: row;
    justify-content: center;
    padding: 4cqw 5cqw;
    border-top: 2px dashed #29211999;
    mask:
      radial-gradient(circle at left top, transparent 7px, black 8px) left / 51% 100% no-repeat,
      radial-gradient(circle at right top, transparent 7px, black 8px) right / 51% 100% no-repeat;
  }
  #recreated-opening .stub::before, #recreated-opening .stub-label { display: none; }
  #recreated-opening time { display: grid; grid-template-columns: auto auto; align-items: center; gap: 3px 5px; }
  #recreated-opening time strong { font-size: 7cqw; margin: 0; }
  #recreated-opening time span { font-size: 4.2cqw; letter-spacing: 0; }
  #recreated-opening time b { font-size: 4.2cqw; grid-column: 1/-1; margin: 0; }
  #recreated-opening .actions { flex-direction: column; gap: 3px; width: 94%; text-align: center; padding-bottom: 24px; }
}
#recreated-opening .ticket { position:relative; }
#recreated-opening .glint {
  pointer-events:none; position:absolute; inset:0; overflow:hidden; border-radius:9px;
}
#recreated-opening .glint i {
  display:block; position:absolute; inset:0;
  background:linear-gradient(112deg,transparent 34%,#fff7d92e 46%,#fffdf776 50%,#fff9de22 54%,transparent 63%);
  transform:translateX(-110%);
}
#recreated-opening .clock b { position:relative; perspective:240px; }
#recreated-opening .flap {
  position:absolute; inset:0; text-align:center; background:#fff0d3;
  backface-visibility:hidden; pointer-events:none;
}
#recreated-opening .flap.upper { clip-path:inset(0 0 50% 0); }
#recreated-opening .flap.lower { clip-path:inset(50% 0 0 0); }
@media (prefers-reduced-motion:reduce) {
  #recreated-opening::before { transform:none }
}
#recreated-opening [hidden] { display:none!important }
#recreated-opening .actions p { max-width:49ch; line-height:1.45 }
#recreated-opening .actions button { flex:none }
#recreated-opening .launch-links { display:flex; gap:10px; width:85%; margin:0 0 18px; flex-wrap:wrap }
#recreated-opening .launch-links a,.site-footer .follow a { display:flex; align-items:center; justify-content:center; min-height:48px; gap:.45em; text-decoration:none; color:#201a13; background:#ffba62; font:700 clamp(15px,1.8cqw,21px)/1.2 Arial,sans-serif; border-radius:7px; padding:12px 15px; transition:transform .2s }
#recreated-opening .launch-links a { flex:1 1 180px; white-space:nowrap }
#recreated-opening .launch-links a:last-child { background:#f9ebcf }
#recreated-opening .launch-links a:hover,.site-footer .follow a:hover { transform:translateY(-2px) }
#recreated-opening .schedule .launch-links { width:100%; margin:1.5cqw 0 }
#recreated-opening .schedule .launch-links a:last-child { color:#fff6e8; background:#252420 }
#recreated-opening[data-style=board][data-phase="2"] .schedule { background:#242522; padding:3cqw; color:#ffbe65; text-align:center }
#recreated-opening[data-style=board][data-phase="2"] .until { font-size:clamp(16px,2.6cqw,32px); margin:0; border:0 }
#recreated-opening[data-style=punch][data-phase="2"] .stub::after { content:'✓ ВХОД ОТКРЫТ'; border:3px double; padding:.45em; transform:rotate(-8deg); font:800 clamp(10px,1.5cqw,20px) monospace }
#recreated-opening[data-style=punch] .launch-links a { border-radius:0; border:2px dashed #45331f }
@media (min-width: 800px) { #recreated-opening .stage { max-width: 152svh; } #recreated-opening .ticket { margin: 2.7cqw 0; } #recreated-opening .actions { padding-bottom: 1.5cqw; } }
