:root {
  --c3d-gold: #d8b56b;
  --c3d-gold-bright: #f2d795;
  --c3d-ink: #070a09;
  --c3d-panel: rgba(8, 13, 12, 0.88);
  --c3d-green: #123a31;
  --c3d-safe-top: max(12px, env(safe-area-inset-top));
  --c3d-safe-right: max(12px, env(safe-area-inset-right));
  --c3d-safe-bottom: max(12px, env(safe-area-inset-bottom));
  --c3d-safe-left: max(12px, env(safe-area-inset-left));
}

.c3d-central-entry {
  position: relative;
  border-color: rgba(216, 181, 107, .58) !important;
  background:
    radial-gradient(circle at 50% 22%, rgba(242, 215, 149, .24), transparent 38%),
    linear-gradient(180deg, rgba(23, 58, 49, .98), rgba(7, 15, 12, .98)) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 8px 22px rgba(0,0,0,.2);
}

.c3d-central-entry::after {
  content: "COTTBUS";
  position: absolute;
  right: 5px;
  bottom: 4px;
  padding: 2px 5px;
  border: 1px solid rgba(242,215,149,.38);
  border-radius: 999px;
  color: #f2d795;
  background: rgba(4,12,10,.8);
  font-size: 7px;
  font-weight: 950;
  letter-spacing: .08em;
}

.c3d-central-entry > b {
  color: #f2d795 !important;
  font-size: 1.28rem !important;
  text-shadow: 0 0 14px rgba(216,181,107,.38);
}

.c3d-central-entry:hover,
.c3d-central-entry:focus-visible {
  border-color: rgba(242,215,149,.9) !important;
  filter: brightness(1.08);
}

.c3d-overlay[hidden] { display: none !important; }

.c3d-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  overflow: hidden;
  color: white;
  background: #111918;
  overscroll-behavior: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.c3d-overlay * { box-sizing: border-box; }

.c3d-stage,
.c3d-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.c3d-stage canvas {
  cursor: grab;
  outline: none;
  touch-action: none;
}

.c3d-overlay.is-pointer-locked .c3d-stage canvas { cursor: none; }
.c3d-stage canvas:active { cursor: grabbing; }

.c3d-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 48%, transparent 46%, rgba(0, 0, 0, .28) 100%);
}

.c3d-topbar {
  position: absolute;
  top: var(--c3d-safe-top);
  left: var(--c3d-safe-left);
  right: var(--c3d-safe-right);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.c3d-brand,
.c3d-top-actions,
.c3d-role-card,
.c3d-level-card {
  pointer-events: auto;
}

.c3d-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 13px 9px 9px;
  border: 1px solid rgba(216,181,107,.38);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(5,12,11,.92), rgba(11,30,25,.84));
  box-shadow: 0 10px 35px rgba(0,0,0,.28);
  backdrop-filter: blur(12px);
}

.c3d-brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid rgba(242,215,149,.65);
  border-radius: 50%;
  color: #f5d78d;
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 900;
  box-shadow: inset 0 0 14px rgba(216,181,107,.16);
}

.c3d-brand small,
.c3d-role-card small,
.c3d-level-card small {
  display: block;
  color: rgba(242,215,149,.77);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
}

.c3d-brand strong {
  display: block;
  overflow: hidden;
  color: #fff4d3;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(15px, 2.1vw, 21px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.c3d-top-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.c3d-role-card,
.c3d-level-card {
  min-width: 92px;
  padding: 8px 12px;
  border: 1px solid rgba(216,181,107,.32);
  border-radius: 14px;
  background: rgba(6, 12, 11, .83);
  text-align: right;
  backdrop-filter: blur(10px);
}

.c3d-role-card strong,
.c3d-level-card strong {
  display: block;
  margin-top: 2px;
  color: white;
  font-size: 13px;
}

.c3d-role-card.owner {
  border-color: rgba(242,215,149,.82);
  background: linear-gradient(145deg, rgba(48,37,10,.9), rgba(8,15,13,.9));
  box-shadow: 0 0 28px rgba(216,181,107,.17);
}

.c3d-icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(216,181,107,.42);
  border-radius: 14px;
  color: #fff1c9;
  background: rgba(6, 12, 11, .84);
  font-size: 20px;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.c3d-icon-button:hover,
.c3d-icon-button:focus-visible {
  border-color: rgba(242,215,149,.85);
  background: rgba(23,55,46,.94);
}

.c3d-loading {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(2,6,5,.72), rgba(2,6,5,.86)),
    url('assets/cottbus/spremberger-historisch.jpg') center/cover;
  transition: opacity .38s ease, visibility .38s ease;
}

.c3d-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.c3d-loading-card {
  width: min(440px, 100%);
  padding: 26px;
  border: 1px solid rgba(216,181,107,.55);
  border-radius: 24px;
  background: rgba(4,12,10,.91);
  box-shadow: 0 28px 90px rgba(0,0,0,.46);
  text-align: center;
  backdrop-filter: blur(12px);
}

.c3d-loading-emblem {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  border: 2px solid rgba(242,215,149,.78);
  border-radius: 50%;
  color: #f4d587;
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 0 34px rgba(216,181,107,.16), inset 0 0 28px rgba(216,181,107,.09);
  animation: c3dPulse 1.8s ease-in-out infinite;
}

@keyframes c3dPulse {
  0%,100% { transform: scale(.97); box-shadow: 0 0 24px rgba(216,181,107,.12); }
  50% { transform: scale(1.025); box-shadow: 0 0 46px rgba(216,181,107,.24); }
}

.c3d-loading-card small {
  color: #e5c77c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
}

.c3d-loading-card h2 {
  margin: 7px 0 6px;
  color: #fff4d4;
  font-family: Georgia, serif;
  font-size: clamp(25px, 5vw, 36px);
}

.c3d-loading-card p {
  margin: 0;
  color: rgba(255,255,255,.69);
  font-size: 13px;
}

.c3d-loading-bar {
  height: 7px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(216,181,107,.26);
  border-radius: 99px;
  background: rgba(255,255,255,.06);
}

.c3d-loading-bar span {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7e682f, #f2d795);
  transition: width .22s ease;
}

.c3d-side-panel {
  position: absolute;
  top: calc(var(--c3d-safe-top) + 66px);
  right: var(--c3d-safe-right);
  z-index: 12;
  width: min(360px, calc(100vw - 24px));
  max-height: calc(100vh - var(--c3d-safe-top) - var(--c3d-safe-bottom) - 86px);
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(216,181,107,.45);
  border-radius: 20px;
  background: rgba(5, 12, 11, .92);
  box-shadow: 0 22px 70px rgba(0,0,0,.42);
  backdrop-filter: blur(14px);
  transform: translateX(calc(100% + 24px));
  opacity: 0;
  pointer-events: none;
  transition: transform .24s ease, opacity .24s ease;
}

.c3d-side-panel.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.c3d-side-panel header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.c3d-side-panel small {
  color: #d8b56b;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
}

.c3d-side-panel h2 {
  margin: 3px 0 0;
  color: #fff2cc;
  font-family: Georgia, serif;
  font-size: 24px;
}

.c3d-side-panel p,
.c3d-side-panel li {
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.52;
}

.c3d-side-panel ul {
  display: grid;
  gap: 7px;
  margin: 13px 0 0;
  padding-left: 18px;
}

.c3d-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.c3d-photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(216,181,107,.35);
  border-radius: 10px;
  filter: grayscale(.2) sepia(.1);
}

.c3d-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 6;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  pointer-events: none;
  opacity: .78;
}

.c3d-crosshair::before,
.c3d-crosshair::after {
  content: "";
  position: absolute;
  background: rgba(255,245,211,.86);
  box-shadow: 0 0 4px rgba(0,0,0,.75);
}

.c3d-crosshair::before { left: 8px; top: 2px; width: 2px; height: 14px; }
.c3d-crosshair::after { left: 2px; top: 8px; width: 14px; height: 2px; }
.c3d-overlay.is-third-person .c3d-crosshair { opacity: .28; }

.c3d-location {
  position: absolute;
  left: 50%;
  bottom: calc(var(--c3d-safe-bottom) + 20px);
  z-index: 8;
  min-width: min(420px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  padding: 11px 16px;
  border: 1px solid rgba(216,181,107,.34);
  border-radius: 14px;
  color: rgba(255,255,255,.8);
  background: rgba(5,10,9,.74);
  text-align: center;
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
  pointer-events: none;
}

.c3d-location strong {
  display: block;
  color: #fff1c7;
  font-family: Georgia, serif;
  font-size: 16px;
}

.c3d-location span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
}

.c3d-interact {
  position: absolute;
  left: 50%;
  bottom: calc(var(--c3d-safe-bottom) + 86px);
  z-index: 9;
  display: none;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 10px 14px;
  border: 1px solid rgba(242,215,149,.58);
  border-radius: 14px;
  color: #fff0c2;
  background: rgba(9, 19, 16, .9);
  box-shadow: 0 16px 42px rgba(0,0,0,.34);
  transform: translateX(-50%);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.c3d-interact.is-visible { display: flex; }
.c3d-interact kbd {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border: 1px solid rgba(255,255,255,.25);
  border-bottom-width: 3px;
  border-radius: 7px;
  color: white;
  background: rgba(255,255,255,.08);
  font: 800 11px/1 system-ui, sans-serif;
}

.c3d-controls-hint {
  position: absolute;
  left: var(--c3d-safe-left);
  bottom: var(--c3d-safe-bottom);
  z-index: 8;
  display: flex;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(216,181,107,.25);
  border-radius: 13px;
  background: rgba(5,10,9,.66);
  backdrop-filter: blur(9px);
  pointer-events: none;
}

.c3d-controls-hint span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,.7);
  font-size: 10px;
}

.c3d-controls-hint kbd {
  min-width: 22px;
  padding: 4px 5px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 5px;
  color: white;
  background: rgba(255,255,255,.07);
  text-align: center;
  font: 800 10px/1 system-ui, sans-serif;
}

.c3d-mobile-controls { display: none; }

.c3d-toast {
  position: absolute;
  top: calc(var(--c3d-safe-top) + 75px);
  left: 50%;
  z-index: 20;
  max-width: min(520px, calc(100vw - 28px));
  padding: 11px 15px;
  border: 1px solid rgba(216,181,107,.46);
  border-radius: 13px;
  color: #fff0c5;
  background: rgba(6,13,11,.93);
  box-shadow: 0 18px 52px rgba(0,0,0,.36);
  text-align: center;
  font-size: 12px;
  transform: translate(-50%, -14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.c3d-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 820px), (pointer: coarse) {
  .c3d-controls-hint { display: none; }
  .c3d-role-card { display: none; }
  .c3d-level-card { min-width: 72px; padding-inline: 9px; }
  .c3d-brand { max-width: calc(100vw - 188px); }
  .c3d-brand-mark { width: 34px; height: 34px; flex-basis: 34px; }
  .c3d-icon-button { width: 42px; height: 42px; }
  .c3d-location {
    bottom: calc(var(--c3d-safe-bottom) + 8px);
    min-width: 0;
    width: min(340px, calc(100vw - 150px));
    padding: 8px 10px;
  }
  .c3d-location strong { font-size: 13px; }
  .c3d-location span { font-size: 9px; }
  .c3d-interact { bottom: calc(var(--c3d-safe-bottom) + 66px); }
  .c3d-mobile-controls {
    position: absolute;
    inset: 0;
    z-index: 11;
    display: block;
    pointer-events: none;
  }
  .c3d-joystick {
    position: absolute;
    left: calc(var(--c3d-safe-left) + 6px);
    bottom: calc(var(--c3d-safe-bottom) + 10px);
    width: 116px;
    height: 116px;
    border: 1px solid rgba(242,215,149,.22);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.055) 0 30%, rgba(4,9,8,.42) 32% 100%);
    box-shadow: inset 0 0 28px rgba(0,0,0,.24);
    pointer-events: auto;
    touch-action: none;
  }
  .c3d-joystick-knob {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    border: 1px solid rgba(242,215,149,.55);
    border-radius: 50%;
    background: rgba(18,48,40,.84);
    box-shadow: 0 6px 18px rgba(0,0,0,.36), inset 0 0 14px rgba(255,255,255,.05);
  }
  .c3d-mobile-actions {
    position: absolute;
    right: calc(var(--c3d-safe-right) + 6px);
    bottom: calc(var(--c3d-safe-bottom) + 12px);
    display: grid;
    grid-template-columns: repeat(2, 54px);
    gap: 9px;
    pointer-events: auto;
  }
  .c3d-mobile-actions button {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(242,215,149,.42);
    border-radius: 16px;
    color: #fff0c1;
    background: rgba(5,13,11,.74);
    font-size: 19px;
    box-shadow: 0 10px 24px rgba(0,0,0,.24);
    backdrop-filter: blur(8px);
    touch-action: none;
  }
  .c3d-mobile-actions button.is-active {
    border-color: rgba(242,215,149,.9);
    background: rgba(44,68,28,.86);
  }
  .c3d-side-panel {
    top: calc(var(--c3d-safe-top) + 60px);
    right: var(--c3d-safe-right);
    left: var(--c3d-safe-left);
    width: auto;
    max-height: calc(100vh - var(--c3d-safe-top) - var(--c3d-safe-bottom) - 78px);
  }
  .c3d-crosshair { width: 14px; height: 14px; margin: -7px 0 0 -7px; }
  .c3d-crosshair::before { left: 6px; top: 1px; height: 12px; }
  .c3d-crosshair::after { left: 1px; top: 6px; width: 12px; }
}

@media (max-width: 520px) {
  .c3d-topbar { gap: 6px; }
  .c3d-brand { padding: 7px 9px 7px 7px; border-radius: 14px; max-width: calc(100vw - 150px); }
  .c3d-brand small { display: none; }
  .c3d-brand strong { font-size: 13px; }
  .c3d-level-card { display: none; }
  .c3d-top-actions { gap: 6px; }
  .c3d-icon-button { width: 39px; height: 39px; border-radius: 12px; font-size: 18px; }
  .c3d-photo-grid { grid-template-columns: 1fr; }
}

@media (orientation: landscape) and (max-height: 520px) {
  .c3d-topbar { top: max(7px, env(safe-area-inset-top)); }
  .c3d-brand { padding-block: 5px; }
  .c3d-brand-mark { width: 30px; height: 30px; flex-basis: 30px; font-size: 14px; }
  .c3d-icon-button { width: 36px; height: 36px; }
  .c3d-joystick { width: 92px; height: 92px; }
  .c3d-joystick-knob { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .c3d-mobile-actions { grid-template-columns: repeat(4, 46px); }
  .c3d-mobile-actions button { width: 46px; height: 46px; border-radius: 13px; }
  .c3d-location { display: none; }
  .c3d-interact { bottom: calc(var(--c3d-safe-bottom) + 56px); }
}

/* ========================================================================== 
   V69 · Zentrale Online-Welt
   ========================================================================== */
.c3d-online-card {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 108px;
  padding: 7px 11px;
  border: 1px solid rgba(216,181,107,.32);
  border-radius: 14px;
  background: rgba(6,12,11,.84);
  backdrop-filter: blur(10px);
}

.c3d-online-card > i,
.c3d-loading-online > i {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #d6b661;
  box-shadow: 0 0 0 4px rgba(214,182,97,.1), 0 0 14px rgba(214,182,97,.42);
}

.c3d-online-card.is-online > i,
.c3d-loading-online.is-online > i {
  background: #61df91;
  box-shadow: 0 0 0 4px rgba(97,223,145,.1), 0 0 16px rgba(97,223,145,.58);
  animation: c3dOnlinePulse 1.7s ease-in-out infinite;
}

.c3d-online-card.is-offline > i,
.c3d-loading-online.is-offline > i {
  background: #e5776f;
  box-shadow: 0 0 0 4px rgba(229,119,111,.1), 0 0 14px rgba(229,119,111,.45);
}

.c3d-online-card span { min-width: 0; }
.c3d-online-card small {
  display: block;
  color: rgba(242,215,149,.76);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .16em;
}
.c3d-online-card strong {
  display: block;
  margin-top: 1px;
  color: #f4fff8;
  font-size: 11px;
  white-space: nowrap;
}
.c3d-online-card strong b { color: #77e49b; font-size: 13px; }

@keyframes c3dOnlinePulse {
  0%, 100% { transform: scale(.88); opacity: .8; }
  50% { transform: scale(1.12); opacity: 1; }
}

.c3d-loading-card {
  position: relative;
  overflow: hidden;
}

.c3d-loading-card::before {
  content: "";
  position: absolute;
  inset: -45% -30%;
  z-index: -1;
  background: conic-gradient(from 0deg, transparent, rgba(216,181,107,.11), transparent 30%);
  animation: c3dLoadingSweep 4.2s linear infinite;
}

@keyframes c3dLoadingSweep { to { transform: rotate(360deg); } }

.c3d-loading-visual {
  position: relative;
  width: min(360px, 100%);
  height: 112px;
  margin: -5px auto 14px;
  overflow: hidden;
  border: 1px solid rgba(216,181,107,.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 68% 20%, rgba(255,225,157,.28), transparent 20%),
    linear-gradient(180deg, #4b7593 0 48%, #c5ae82 49% 52%, #332f29 53% 100%);
  box-shadow: inset 0 -25px 35px rgba(0,0,0,.28);
}

.c3d-loading-skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 40px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 56px;
  opacity: .94;
}
.c3d-loading-skyline i {
  display: block;
  width: 22%;
  height: 64%;
  background:
    repeating-linear-gradient(90deg, transparent 0 8px, rgba(250,215,145,.22) 9px 12px),
    linear-gradient(180deg, #5d4a3a, #2b2622);
  clip-path: polygon(0 15%, 18% 15%, 18% 0, 72% 0, 72% 12%, 100% 12%, 100% 100%, 0 100%);
}
.c3d-loading-skyline i:nth-child(2) { height: 82%; }
.c3d-loading-skyline i:nth-child(3) { height: 100%; clip-path: polygon(0 22%, 35% 22%, 35% 0, 65% 0, 65% 22%, 100% 22%, 100% 100%, 0 100%); }
.c3d-loading-skyline i:nth-child(4) { height: 75%; }
.c3d-loading-skyline i:nth-child(5) { height: 90%; }

.c3d-loading-tracks {
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 150px;
  height: 70px;
  transform: translateX(-50%);
  background:
    linear-gradient(80deg, transparent 0 37%, #b8afa0 38% 40%, transparent 41%),
    linear-gradient(100deg, transparent 0 59%, #b8afa0 60% 62%, transparent 63%),
    repeating-linear-gradient(0deg, transparent 0 9px, rgba(200,185,155,.4) 10px 12px);
  opacity: .8;
}

.c3d-loading-tram {
  position: absolute;
  left: 50%;
  bottom: 17px;
  width: 58px;
  height: 46px;
  transform: translateX(-50%);
  border: 2px solid #d7b969;
  border-radius: 8px 8px 5px 5px;
  background: linear-gradient(180deg, #8c422f, #4a211a);
  box-shadow: 0 7px 14px rgba(0,0,0,.38), inset 0 0 0 2px rgba(255,255,255,.05);
  animation: c3dTramRide 2.7s ease-in-out infinite;
}
.c3d-loading-tram::before,
.c3d-loading-tram::after {
  content: "";
  position: absolute;
  top: 7px;
  width: 16px;
  height: 15px;
  border: 1px solid rgba(242,215,149,.62);
  background: #17282b;
}
.c3d-loading-tram::before { left: 7px; }
.c3d-loading-tram::after { right: 7px; }
.c3d-loading-tram span {
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 8px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #ffe6a2;
  box-shadow: 0 0 13px #ffe6a2;
}
.c3d-loading-tram b {
  position: absolute;
  left: 50%;
  top: -16px;
  transform: translateX(-50%);
  color: #f2d795;
  font: 900 9px/1 Georgia, serif;
}
@keyframes c3dTramRide {
  0%,100% { transform: translateX(-50%) translateY(2px) scale(.96); }
  50% { transform: translateX(-50%) translateY(-2px) scale(1.03); }
}

.c3d-loading-player {
  position: absolute;
  bottom: 21px;
  width: 7px;
  height: 20px;
  border-radius: 5px 5px 3px 3px;
  background: #171514;
}
.c3d-loading-player::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -7px;
  width: 8px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #ba896b;
}
.c3d-loading-player.one { left: 28%; animation: c3dWalkOne 3.2s ease-in-out infinite; }
.c3d-loading-player.two { right: 25%; animation: c3dWalkTwo 2.8s ease-in-out infinite; }
@keyframes c3dWalkOne { 50% { transform: translateX(18px); } }
@keyframes c3dWalkTwo { 50% { transform: translateX(-15px); } }

.c3d-loading-online {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 32px;
  margin-top: 13px;
  padding: 7px 10px;
  border: 1px solid rgba(216,181,107,.18);
  border-radius: 999px;
  color: rgba(255,255,255,.76);
  background: rgba(255,255,255,.035);
  font-size: 11px;
  font-weight: 750;
}

.c3d-central-entry::after { content: "ONLINE"; }

@media (max-width: 820px), (pointer: coarse) {
  .c3d-online-card { min-width: 92px; padding: 6px 8px; }
  .c3d-online-card small { display: none; }
  .c3d-online-card strong { font-size: 10px; }
  .c3d-brand { max-width: calc(100vw - 292px); }
}

@media (max-width: 620px) {
  .c3d-online-card { position: absolute; top: 50px; right: 0; min-width: 94px; }
  .c3d-brand { max-width: calc(100vw - 110px); }
  .c3d-loading-card { padding: 18px; }
  .c3d-loading-visual { height: 98px; }
  .c3d-loading-emblem { width: 62px; height: 62px; margin-bottom: 11px; font-size: 25px; }
}


/* V70 Stabilitätsmodus: weniger teure Unschärfe- und Compositing-Ebenen. */
.c3d-overlay { contain: layout paint size; }
.c3d-loading-card,
.c3d-topbar,
.c3d-side-panel,
.c3d-location,
.c3d-controls-hint,
.c3d-online-card {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.c3d-stage canvas { touch-action: none; }
@media (max-width: 820px), (pointer: coarse) {
  .c3d-loading-player { display: none; }
  .c3d-loading-tram { animation-duration: 3.4s; }
  .c3d-loading-skyline::after { animation-duration: 5.4s; }
}
@media (prefers-reduced-motion: reduce) {
  .c3d-loading-tram,
  .c3d-loading-player,
  .c3d-loading-emblem,
  .c3d-online-card.is-online i,
  .c3d-loading-skyline::after {
    animation: none !important;
  }
}
