[data-mobile-deck][hidden] { display: none !important; }
.deck-mode { overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: auto; }
.deck-mode #app {
  position: relative; inset: auto; height: auto; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; padding: 94px 0 max(20px, env(safe-area-inset-bottom));
}
.deck-mode .catalog-label {
  position: static; margin: 8px 24px 0; font-size: 11px; letter-spacing: 0;
}
.deck-mode .catalog-label h1 { font-size: 14px; font-weight: 400; }
.deck-mode .catalog-label__index { margin-left: auto; }
.deck-mode #canvasSlot, .deck-mode .nav-wrapper, .deck-mode .mobile-name,
.deck-mode .mobile-hint, .deck-mode .catalog-note, .deck-mode .seo-concept-links,
.deck-mode #openProject, .deck-mode #scrollTrack, .deck-mode #app > .footer { display: none !important; }
.deck-mode .tc-access-footer { position: relative; margin: 0 24px; padding: 20px 0; }
.deck-mode #catalog-menu { max-height: calc(100svh - 92px); overflow-y: auto; }
.deck-mode #catalog-menu button { min-height: 44px; }
.mobile-deck { display: flex; flex-direction: column; justify-content: center; flex: 1; padding: 26px 0 0; }
.deck-rail {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 32px 14px; margin: 0; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-padding-inline: 32px;
  scrollbar-width: none; overscroll-behavior-x: contain; touch-action: pan-x pan-y;
}
.deck-rail::-webkit-scrollbar { display: none; }
.deck-rail:focus-visible { outline: 2px solid var(--acid); outline-offset: -3px; }
.deck-screen {
  position: relative; flex: 0 0 100%; min-width: 0; aspect-ratio: 8 / 5;
  scroll-snap-align: center;
}
.deck-screen__surface {
  position: absolute; inset: 0;
  border-radius: 14px; background: #151715; border: 1px solid #ffffff29;
  transform-origin: center; overflow: hidden;
}
.deck-screen__link { position: absolute; inset: 0; display: block; }
.deck-screen__link:focus-visible { outline-offset: -4px; border-radius: 13px; }
.deck-screen img, .deck-screen video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.deck-screen video { opacity: 0; pointer-events: none; }
.deck-screen.has-video video { opacity: 1; }
.deck-screen__unavailable { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; font-size: 18px; text-align: center; }
.deck-screen__unavailable[hidden], .deck-screen img[hidden] { display: none; }
.deck-video-toggle {
  position: absolute; right: 8px; top: 8px; display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 1px solid #ffffff55;
  background: #050505d9; color: #f2f2f2; border-radius: 50%;
}
.deck-video-toggle[hidden] { display: none; }
.deck-video-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.deck-video-toggle .deck-play { fill: currentColor; stroke: none; }
.deck-video-toggle[data-playing=true] .deck-play, .deck-video-toggle[data-playing=false] .deck-pause { display: none; }
.deck-info { padding: 18px 24px 0; }
.deck-title {
  margin: 0 0 10px; font-family: Arial Black, Helvetica Neue, Arial, sans-serif;
  font-size: clamp(27px, 7.4vw, 48px); font-weight: 950; letter-spacing: -.04em; line-height: 1.05;
}
.deck-description { min-height: 44px; max-width: 40ch; margin: 0; font-size: 14px; line-height: 1.55; color: #b7bcb4; }
.deck-open {
  display: flex; align-items: center; justify-content: center; min-height: 48px;
  margin: 20px 24px 0; padding: 12px 20px; border-radius: 100px; background: var(--acid);
  color: #050505; font-size: 14px; line-height: 1.5;
  transition: background 160ms ease;
}
.deck-controls { display: flex; align-items: center; justify-content: space-between; margin: 14px 24px 0; }
.deck-controls button {
  min-width: 70px; min-height: 44px; padding: 10px 0; border: 0; background: transparent;
  color: #f2f2f2; font-size: 13px; text-align: left;
}
.deck-controls button:last-child { text-align: right; }
.deck-controls button:disabled { color: #6e736b; cursor: default; }
.deck-counter { color: #b7bcb4; font-size: 12px; font-variant-numeric: tabular-nums; }
.deck-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 20px 24px 0; padding-top: 12px; border-top: 1px solid #ffffff26; }
.deck-bottom a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; color: #b7bcb4; }
.deck-bottom > span { font-size: 12px; color: #b7bcb4; }
.deck-bottom .deck-contact { color: var(--acid); font-size: 13px; }
@media(max-height:700px) {
  .deck-mode #app { padding-top: 76px; padding-bottom: 12px; }
  .deck-mode .catalog-label { margin-top: 6px; }
  .mobile-deck { padding-top: 16px; }
  .deck-info { padding-top: 10px; }
  .deck-open { margin-top: 12px; }
  .deck-controls { margin-top: 6px; }
  .deck-bottom { margin-top: 8px; padding-top: 4px; }
}
@media(hover:hover) and (pointer:fine) {
  .deck-open:hover { background: #c5ff61; }
  .deck-controls button:not(:disabled):hover, .deck-bottom a:hover { color: var(--acid); }
}
@media(prefers-reduced-motion:reduce) {
  .deck-screen__surface { transform: none !important; }
  .deck-rail { scroll-behavior: auto; }
}
