.topline-with-admin > .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
}

.topline .topline-login {
  grid-column: 2;
  justify-content: center;
  min-height: 26px;
  padding-inline: 11px;
  border: 1px solid rgb(255 154 79 / .55);
  border-radius: 6px;
  color: #fff;
  font-weight: 700;
  line-height: 1;
}

.topline .topline-login:is(:hover, :focus-visible) {
  border-color: #ff9a4f;
  background: rgb(255 154 79 / .14);
}

.topline .topline-login:focus-visible {
  outline: 2px solid #ffb27a;
  outline-offset: 1px;
}

.topline-with-admin > .container > a:last-child {
  grid-column: 3;
  justify-self: end;
}

@media (max-width: 540px) {
  .topline.topline-with-admin { display: block; }
  .topline-with-admin > .container { height: 36px; }
  .topline-with-admin > .container > span { display: none; }
  .topline .topline-login { min-height: 30px; font-size: 12px; }
  .topline-with-admin > .container > a:last-child { gap: 4px; font-size: 10px; }
}

.site-header {
  background: rgb(255 254 251 / .88);
  border-bottom-color: rgb(255 255 255 / .58);
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header {
    background: rgb(255 254 251 / .68);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    backdrop-filter: blur(18px) saturate(1.2);
  }
}

@media (min-width: 1101px) {
  #main > .pecron-hero {
    --header-overlap: 91px;
    margin-block-start: calc(-1 * var(--header-overlap));
    min-height: calc(min(40vw, 680px) + var(--header-overlap));
    padding-block-start: calc(16px + var(--header-overlap));
  }
  #main > .pecron-hero .pecron-hero-art > .volt-scene { top: calc(50% + 42px); }
}

@media (1101px <= width <= 1350px) {
  #main > .pecron-hero { --header-overlap: 83px; }
}

.scenario-card .scenario-top { margin-bottom: 16px; }

.scenario-emblem {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 1px solid #efd7c3;
  border-radius: 14px;
  color: #223d52;
  background: linear-gradient(147deg, #fffaf3 11%, #f8dcc2 100%);
  box-shadow: inset 0 1px 1px #fffdf8, 0 3px 7px rgb(130 74 35 / .12);
}

.scenario-emblem .icon { width: 28px; height: 28px; }
.scenario-emblem .emblem-tint { fill: #f58a3c; fill-opacity: .25; stroke: none; }
.scenario-emblem :is(.emblem-light, .emblem-lights) { fill: #f28434; stroke: none; }
.scenario-emblem .emblem-rays { stroke: #b84b0c; }

.scenario-card:focus-visible .scenario-emblem,
.scenario-card:active .scenario-emblem {
  border-color: #e79f64;
  background: linear-gradient(147deg, #fff8eb 11%, #ffd19f 100%);
}

@media (hover: hover) and (pointer: fine) {
  .scenario-card:hover .scenario-emblem {
    border-color: #e79f64;
    background: linear-gradient(147deg, #fff8eb 11%, #ffd19f 100%);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .scenario-emblem { transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease; }
  .scenario-emblem :is(.emblem-awning, .emblem-roof, .emblem-rays) { transition: transform .36s ease; }
  .scenario-emblem .emblem-rays { transform-box: fill-box; transform-origin: center; }

  .scenario-card:is(:focus-visible, :active) .scenario-emblem {
    transform: translateY(-2px) rotate(-5deg) scale(1.08);
  }

  @media (hover: hover) and (pointer: fine) {
    .scenario-card:hover .scenario-emblem {
      transform: translateY(-2px) rotate(-5deg) scale(1.08);
      box-shadow: inset 0 1px 1px #fffdf8, 0 6px 12px rgb(130 74 35 / .19);
    }
    .scenario-card:hover .emblem-roof { transform: translateY(-1.5px); }
    .scenario-card:hover .emblem-awning { transform: translateY(-1px); }
    .scenario-card:hover .emblem-rays { transform: rotate(40deg); }
    .scenario-card:hover :is(.emblem-light, .emblem-lights rect) { animation: emblem-light .46s ease both; }
    .scenario-card:hover .emblem-lights rect:nth-child(even) { animation-delay: .085s; }
  }
}

@keyframes emblem-light {
  50% { fill: #b84b0c; filter: drop-shadow(0 0 2px #ff9c54); }
}

.site-footer {
  display: flex;
  flex-direction: column;
  background: #f5f5ef;
  border-top: 1px solid #dce3df;
  padding-block: 0;
}

.footer-scenes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  order: 1;
  width: min(calc(100% - 32px), 480px);
  margin: 0 auto 10px;
  gap: 10px;
}

.footer-visual {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid #d9ded9;
  border-radius: clamp(9px, 1vw, 14px);
  background: #ebe4da;
  box-shadow: 0 2px 7px rgb(20 43 67 / .10);
}

.footer-scene-media {
  position: absolute;
  inset: 0 0 auto;
  aspect-ratio: 3 / 2;
}

.footer-scene-media img { width: 100%; height: auto; }
.footer-motion { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; }
.footer-motion.is-playing { opacity: 1; }
.footer-lcd-ink { filter: drop-shadow(0 0 2px #20e5d4); }
.footer-power-indicator { filter: drop-shadow(0 0 3px #ff9e41); }

@media (prefers-reduced-motion: no-preference) {
  .footer-motion { transition: opacity .18s ease; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .footer-scene-media { transition: scale .34s ease; transform-origin: 50% 35%; }
  .footer-visual:hover .footer-scene-media { scale: 1.035; }
}

.site-footer > .container { max-width: 1120px; padding-top: 18px; }
.site-footer .footer-grid {
  grid-template-columns: minmax(176px, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 24px);
}
.site-footer :is(.footer-brand, .footer-col:last-child) { grid-column: auto; grid-row: auto; }

.site-footer .footer-col h3 { margin: 0 0 8px; }
.site-footer .footer-col a { min-height: 36px; color: #233e50; }
.site-footer .footer-col a:hover { color: #ad4609; text-decoration: underline; text-underline-offset: 4px; }
.site-footer .footer-brand .brand { width: min(100%, 195px); }
.site-footer .footer-brand p { margin-block: 12px; }
.site-footer .footer-phone { margin-top: 12px; }
.site-footer .footer-bottom { margin-top: 12px; padding: 6px 0; }

@media (min-width: 1024px) {
  .site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(60vw, 780px) minmax(0, 1fr);
    column-gap: clamp(10px, 1vw, 18px);
    padding-inline: clamp(12px, 1.5vw, 26px);
  }
  .footer-scenes { display: contents; }
  .footer-visual { grid-row: 1; align-self: center; width: 100%; max-width: 420px; }
  .footer-workshop { grid-column: 1; justify-self: end; }
  .footer-handshake { grid-column: 3; justify-self: start; }
  .site-footer > .container { grid-column: 2; grid-row: 1; width: 100%; padding-inline: clamp(12px, 1.2vw, 20px); }
}

@media (max-width: 680px) {
  .site-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .site-footer .footer-col a { min-height: 44px; }
  .site-footer .footer-phone { font-size: clamp(14px, 4vw, 17px); }
}

