:root {
  --canvas-opacity: 1;
}

* {
  margin: 0;
  padding: 0;
}

body {
  overflow: hidden;
  font-family: "Arial", sans-serif;
  -moz-user-select: none;
       user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

canvas {
  opacity: var(--canvas-opacity);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

.hidden {
  display: none !important;
}

.spacer {
  flex-grow: 1;
}

#ui {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#ui * {
  pointer-events: auto;
}

.walkHint {
  position: absolute;
  top: max(60px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  pointer-events: auto;
  white-space: nowrap;
}

/* branding link for third-party embeds */
#supersplatBranding {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  left: max(16px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  color: #fff;
}
#supersplatBranding > svg {
  height: 16px;
  width: auto;
  flex-shrink: 0;
  padding: 8px;
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.3);
}
#supersplatBranding > svg > g.stroke {
  fill: black;
  stroke: black;
  stroke-width: 2;
  stroke-linejoin: round;
  opacity: 0.4;
}
#supersplatBranding > svg > g.fill {
  fill: currentColor;
  stroke: none;
}
#supersplatBranding > span {
  font-size: 14px;
  font-weight: bold;
  text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.4), 1px -1px 0 rgba(0, 0, 0, 0.4), -1px 1px 0 rgba(0, 0, 0, 0.4), 1px 1px 0 rgba(0, 0, 0, 0.4);
}

/* poster */
#poster {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--poster-url);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* loadingWrap */
#loadingWrap {
  position: fixed;
  bottom: 120px;
  left: 50%;
  transform: translate(-50%, 0);
  width: min(380px, 100vw - 32px);
  display: flex;
  flex-direction: column;
  padding: 16px;
}
#loadingWrap > #loadingText {
  font-size: 18px;
  color: #fff;
  text-align: center;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}
#loadingWrap > #loadingBar {
  width: 100%;
  height: 10px;
  margin-top: 8px;
  border-radius: 4px;
  overflow: hidden;
}

/* controlsWrap */
#controlsWrap {
  position: absolute;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}
#controlsWrap.faded-in {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}
#controlsWrap.faded-out {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 0.5s, opacity 0.5s ease-out;
}
#controlsWrap > #timelineContainer {
  height: 30px;
  cursor: pointer;
}
#controlsWrap > #timelineContainer > #line {
  width: 100%;
  height: 50%;
  border-bottom: 4px solid #d9d9d9;
}
#controlsWrap > #timelineContainer > #handle {
  position: absolute;
  top: 16.5px;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border: 2px solid #d9d9d9;
  border-radius: 50%;
  background-color: #FFAF50;
}
#controlsWrap > #timelineContainer > #time {
  position: absolute;
  top: 0;
  padding: 2px 4px;
  transform: translate(-50%, -100%);
  font-size: 12px;
  border-radius: 4px;
  color: #fff;
  background-color: rgba(40, 40, 40, 0.5);
}
#controlsWrap > #buttonsContainer {
  display: flex;
  align-items: center;
  gap: 8px;
}
#controlsWrap > #buttonsContainer .buttonGroup {
  display: flex;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
}
#controlsWrap > #buttonsContainer .buttonGroup:not(:has(> :not(.hidden))) {
  display: none;
}
#controlsWrap > #buttonsContainer {
  /* controlButton */
}
#controlsWrap > #buttonsContainer .controlButton {
  width: 34px;
  height: 34px;
  padding: 0;
  margin: 0;
  border: 0;
  cursor: pointer;
  color: #E0DCDD;
  background-color: transparent;
}
#controlsWrap > #buttonsContainer .controlButton:hover {
  color: #fff;
}
#controlsWrap > #buttonsContainer .controlButton {
  /* icon styling */
}
#controlsWrap > #buttonsContainer .controlButton > svg {
  display: block;
  margin: auto;
}
#controlsWrap > #buttonsContainer .controlButton > svg > g.stroke {
  fill: none;
  stroke: black;
  stroke-width: 2;
  stroke-linejoin: round;
  opacity: 0.4;
}
#controlsWrap > #buttonsContainer .controlButton > svg > g.fill {
  fill: currentColor;
  stroke: none;
}
#controlsWrap > #buttonsContainer .controlButton {
  /* active highlight for simple toggle buttons (e.g. voxel overlay) */
}
#controlsWrap > #buttonsContainer .controlButton.active:not(.toggle) {
  color: #F60;
}
#controlsWrap > #buttonsContainer .controlButton {
  /* camera toggle styling */
}
#controlsWrap > #buttonsContainer .controlButton.toggle {
  background: linear-gradient(90deg, transparent 0%, transparent 50%, #F60 50%, #F60 100%);
  background-size: 200% 100%;
  background-position: 100% 0%;
  background-repeat: no-repeat;
  transition: background-position 0.1s ease-in-out;
}
#controlsWrap > #buttonsContainer .controlButton.toggle.left {
  border-radius: 4px 0px 0px 4px;
}
#controlsWrap > #buttonsContainer .controlButton.toggle.left:not(.active) {
  background-position: 0% 0%;
}
#controlsWrap > #buttonsContainer .controlButton.toggle.middle {
  border-radius: 0;
}
#controlsWrap > #buttonsContainer .controlButton.toggle.middle:not(.active) {
  background-position: 0% 0%;
}
#controlsWrap > #buttonsContainer .controlButton.toggle.right {
  border-radius: 0px 4px 4px 0px;
}
#controlsWrap > #buttonsContainer .controlButton.toggle.right:not(.active) {
  background-position: 200% 0%;
}

/* settingsPanel */
#settingsPanel {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(max(16px, env(safe-area-inset-bottom)) + 70px);
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 14px;
  color: #E0DCDD;
  background-color: rgba(51, 51, 51, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
#settingsPanel > .settingsRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  width: 100%;
}
#settingsPanel > .settingsRow > button {
  flex-grow: 1;
  height: 34px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  color: #AAA;
  background-color: rgba(255, 255, 255, 0.04);
  transition: background-color 250ms ease, color 250ms ease;
}
#settingsPanel > .settingsRow > button:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}
#settingsPanel > .settingsRow > div {
  height: 34px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  cursor: pointer;
  color: #AAA;
}
#settingsPanel > .settingsRow > div.toggleSwitch {
  padding: 0 4px;
}
#settingsPanel > .settingsRow > div.toggleSwitch .toggleTrack {
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.15);
  position: relative;
  transition: background-color 200ms ease;
}
#settingsPanel > .settingsRow > div.toggleSwitch .toggleTrack .toggleThumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #777;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 200ms ease, background-color 200ms ease;
}
#settingsPanel > .settingsRow > div.toggleSwitch.active .toggleTrack {
  background-color: rgba(255, 102, 0, 0.35);
}
#settingsPanel > .settingsRow > div.toggleSwitch.active .toggleTrack .toggleThumb {
  transform: translateX(16px);
  background-color: #F60;
}
#settingsPanel > .settingsRow > div:hover {
  color: #E0DCDD;
}
#settingsPanel > .divider {
  width: 100%;
  height: 1px;
  margin: 8px 0;
  background-color: rgba(255, 255, 255, 0.08);
}

/* infoPanel */
#infoPanel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
}
#infoPanel > #infoPanelContent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-height: 280px;
  min-width: 320px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  color: #E0DCDD;
  background-color: rgba(51, 51, 51, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
#infoPanel > #infoPanelContent > #tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background-color: #282828;
}
#infoPanel > #infoPanelContent > #tabs > .tab {
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  flex-grow: 1;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  color: #AAA;
  transition: background-color 250ms ease, color 250ms ease;
}
#infoPanel > #infoPanelContent > #tabs > .tab:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.06);
}
#infoPanel > #infoPanelContent > #tabs > .tab.active {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}
#infoPanel > #infoPanelContent > #infoPanels {
  padding: 16px;
}
#infoPanel > #infoPanelContent > #infoPanels h1 {
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 0 8px 0;
  color: #F60;
}
#infoPanel > #infoPanelContent > #infoPanels .control-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 5px 8px;
  margin: 0 -8px;
  border-radius: 6px;
  font-size: 13px;
}
#infoPanel > #infoPanelContent > #infoPanels .control-item > .control-action {
  text-align: left;
}
#infoPanel > #infoPanelContent > #infoPanels .control-item > .control-key {
  text-align: right;
  color: #AAA;
  font-size: 12px;
}
#infoPanel > #infoPanelContent > #infoPanels .control-item:nth-child(odd) {
  background-color: rgba(255, 255, 255, 0.03);
}
#infoPanel > #infoPanelContent > #infoPanels .control-spacer {
  margin: 14px 0;
}

#joystickBase {
  position: absolute;
  width: 56px;
  height: 100px;
  transform: translate(-50%, -50%);
  border-radius: 28px;
  touch-action: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2666666667) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.2666666667) 100%);
  background-color: rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: width 0.2s ease, height 0.2s ease, border-radius 0.2s ease;
}
#joystickBase > #joystick {
  position: absolute;
  left: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  touch-action: none;
  background-color: rgba(255, 255, 255, 0.5333333333);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: left 0.1s ease;
}
#joystickBase.mode-2d {
  width: 100px;
  height: 100px;
  border-radius: 50px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.2666666667) 100%);
  background-color: rgba(0, 0, 0, 0.2);
}
#joystickBase.mode-2d > #joystick {
  left: 30px;
}

#tooltip {
  display: none;
  position: absolute;
  border-radius: 4px;
  padding: 4px 4px;
  font-size: 12px;
  color: #E0DCDD;
  background-color: #282828;
}

#annotations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#annotations .pc-annotation-hotspot {
  z-index: -1;
}

#annotations * {
  pointer-events: auto;
}

/* annotationNav */
#annotationNav {
  pointer-events: none;
}
#annotationNav.faded-in {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}
#annotationNav.faded-out {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 0.5s, opacity 0.5s ease-out;
}
#annotationNav > button {
  pointer-events: auto;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E0DCDD;
  background-color: rgba(0, 0, 0, 0.3);
}
#annotationNav > button:hover {
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
}
#annotationNav > button > svg {
  display: block;
}
#annotationNav > button > svg > g.stroke {
  fill: none;
  stroke: black;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.4;
}
#annotationNav > button > svg > g.fill {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#annotationNav.desktop {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 6px;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.6);
}
#annotationNav.desktop > button {
  width: 34px;
  height: 34px;
  background-color: transparent;
}
#annotationNav.desktop > button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
#annotationNav.desktop > #annotationInfo {
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  white-space: nowrap;
  width: 240px;
}
#annotationNav.desktop > #annotationInfo > #annotationNavTitle {
  font-size: 14px;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
}
#annotationNav.touch {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
#annotationNav.touch > #annotationInfo {
  display: none;
}
#annotationNav.touch > button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 80px;
  background-color: rgba(0, 0, 0, 0.3);
}
#annotationNav.touch > button:active {
  background-color: rgba(0, 0, 0, 0.4);
}
#annotationNav.touch > #annotationPrev {
  left: max(0px, env(safe-area-inset-left));
  border-radius: 0 6px 6px 0;
}
#annotationNav.touch > #annotationNext {
  right: max(0px, env(safe-area-inset-right));
  border-radius: 6px 0 0 6px;
}

/* ================================================================
   MANUELLE ÄNDERUNGEN
   ================================================================ */

/* Loading Screen und Start Screen Overlay */
.screen-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.5s ease-out;
  box-sizing: border-box;
}

.screen-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Loading Screen */
.loading-content {
  text-align: center;
  color: white;
  max-width: 600px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  border-radius: 12px;
}

.loading-content .title,
.loading-content .subtitle {
  background: none;
  padding: 0;
  border-radius: 0;
  backdrop-filter: none;
}

.title {
  font-size: clamp(1.3rem, 3.5vw + 0.5vh, 2.3rem);
  font-weight: 700;
  margin-bottom: 0;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.subtitle {
  font-size: clamp(0.7rem, 1.5vw + 0.3vh, 1rem);
  font-weight: 300;
  margin-bottom: 0;
  opacity: 0.8;
}

.progress-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
  margin-top: clamp(24px, 5vh, 48px);
  margin-bottom: 20px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4facfe 0%, #00f2fe 40%, #f857a6 100%);
  background-size: 200% 100%;
  width: 100%;
  animation: progressSlide 1.8s linear infinite;
  box-shadow: 0 0 10px rgba(248, 87, 166, 0.4);
}

@keyframes progressSlide {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.loading-text {
  font-size: 0.9rem;
  opacity: 0.7;
  letter-spacing: 1px;
}

/* Start Screen */
#startScreen {
  overflow-y: auto;
  align-items: flex-start;
}

.start-content {
  text-align: center;
  color: white;
  max-width: min(700px, 95vw);
  width: min(700px, 95vw);
  padding: clamp(5px, 1vh, 10px);
  box-sizing: border-box;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(3px, 0.6vh, 8px);
}

.info-container {
  background: rgba(10, 10, 15, 0.55);
  padding: clamp(8px, 1.2vh, 16px);
  border-radius: 8px;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: clamp(3px, 0.6vh, 8px);
}

.start-content .title,
.start-content .subtitle {
  display: inline-block;
  align-self: center;
  background: none;
  padding: clamp(4px, 0.7vh, 8px) clamp(8px, 1.5vw, 14px);
  border-radius: 0;
  backdrop-filter: none;
}

.start-content .start-copy {
  display: inline-block;
  align-self: center;
  background: none;
  padding: 10px clamp(8px, 1.5vw, 14px);
  border-radius: 0;
  backdrop-filter: none;
  font-size: clamp(0.6rem, 1.1vw + 0.2vh, 0.9rem);
  line-height: 1.5;
  letter-spacing: 0.3px;
}

.start-copy .event-title {
  font-weight: 600;
  font-size: clamp(0.65rem, 1.2vw + 0.2vh, 0.95rem);
  display: block;
  margin-bottom: clamp(2px, 0.3vh, 4px);
}

.start-copy .event-info {
  display: block;
  margin: clamp(1px, 0.2vh, 2px) 0;
}

.play-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: fit-content;
  gap: clamp(4px, 0.6vh, 9px);
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  margin: 0;
  padding: clamp(5px, 0.7vh, 10px);
  transition: transform 0.3s ease;
}

.play-button:hover {
  transform: scale(1.1);
}

.play-button svg {
  width: clamp(34px, 5.5vw + 0.8vh, 58px);
  height: clamp(34px, 5.5vw + 0.8vh, 58px);
  filter: drop-shadow(0 4px 10px rgba(255, 255, 255, 0.3));
  transition: filter 0.3s ease;
}

.play-button:hover svg {
  filter: drop-shadow(0 6px 15px rgba(255, 255, 255, 0.5));
}

.play-button span {
  font-size: clamp(0.8rem, 1.7vw + 0.25vh, 1.1rem);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #4facfe 0%, #00f2fe 40%, #f857a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Controls Info in Start Screen */
.controls-info {
  margin: 0;
  padding: clamp(6px, 1vh, 14px);
  background: none;
  border-radius: 0;
  backdrop-filter: none;
  width: 100%;
  max-width: 520px;
  align-self: center;
}

.controls-info .tabs {
  display: flex;
  justify-content: space-between;
  column-gap: 10px;
}
.controls-info .tabs div {
  flex-grow: 1;
  text-align: left;
  border-bottom: 3px solid;
  padding-bottom: 5px;
  cursor: pointer;
}
.controls-info .tabs div:hover,
.controls-info.fly .tabs div.fly,
.controls-info.walk .tabs div.walk,
.controls-info.orbit .tabs div.orbit {
  border-image: linear-gradient(to right, #4facfe 0%, #00f2fe 40%, #f857a6 100%) 1;
}
.controls-info.fly .control-item:not(.fly),
.controls-info.walk .control-item:not(.walk),
.controls-info.orbit .control-item:not(.orbit) {
  display: none;
}
.controls-info .tabs div > svg {
  vertical-align: bottom;
}
.controls-info .tabs div > svg > g.stroke {
  fill: none;
  stroke: black;
  stroke-width: 2;
  stroke-linejoin: round;
  opacity: 0.4;
}
.controls-info .tabs div > svg > g.fill {
  fill: currentColor;
  stroke: none;
}

@media not (pointer: coarse) {
  .controls-info .control-item.touch-controls   { display: none; }
  .controls-info { min-height: 330px };
}

@media (pointer: coarse) {
  .controls-info .control-item.desktop-controls { display: none; }
}

.touch-key {
  font-family: 'Arial', sans-serif;
  font-size: clamp(0.8rem, 1.8vw + 0.3vh, 0.95rem);
  font-weight: 600;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
  padding: clamp(6px, 1vh, 8px) clamp(8px, 1.5vw, 12px);
  border-radius: 5px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
  flex-shrink: 0;
}

.controls-info h2 {
  font-size: 1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

/* Splash-Screen control-item (nicht das infoPanel .control-item) */
.controls-info .control-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  gap: clamp(6px, 1vw, 12px);
}

.controls-info .control-item:last-child {
  border-bottom: none;
}

.key {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
  padding: 7px 10px;
  border-radius: 5px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
  flex-shrink: 0;
}

.wasd-item  { align-items: center; }

.wasd-keys {
  display: flex;
  flex-direction: column;
  gap: clamp(3px, 0.5vh, 4px);
  align-items: center;
}

.key-row {
  display: flex;
  gap: clamp(3px, 0.5vh, 4px);
}

.wasd-keys .key {
  min-width: clamp(28px, 5vw + 0.5vh, 42px);
  width:     clamp(28px, 5vw + 0.5vh, 42px);
  height:    clamp(28px, 5vw + 0.5vh, 42px);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.9rem, 1.8vw + 0.3vh, 1.2rem);
}

.qe-item { align-items: center; }

.qe-keys {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qe-keys .key {
  min-width: clamp(28px, 5vw + 0.5vh, 42px);
  width:     clamp(28px, 5vw + 0.5vh, 42px);
  height:    clamp(28px, 5vw + 0.5vh, 42px);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.9rem, 1.8vw + 0.3vh, 1.2rem);
}

.key-separator {
  font-size: clamp(0.9rem, 1.8vw + 0.3vh, 1.2rem);
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  padding: 0 4px;
}

.shift-arrow {
  font-size: 1.3rem;
  margin-left: 4px;
  opacity: 0.8;
}

.desc {
  font-size: 0.9rem;
  opacity: 0.9;
  text-align: right;
  font-weight: 500;
}

.tour-info {
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: clamp(0.65rem, 1.4vw + 0.2vh, 0.9rem);
  line-height: 1.3;
  opacity: 0.8;
  font-style: italic;
}

.braincraft-info {
  margin-top: 0;
  padding-top: clamp(6px, 1vh, 12px);
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: clamp(0.6rem, 1.2vw + 0.2vh, 0.85rem);
  opacity: 0.85;
}

.braincraft-info strong {
  font-weight: 700;
  letter-spacing: 1px;
}

/* Braincraft Logo in Button-Leiste */
.braincraft-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: white;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  padding: 8px 12px;
  border-radius: 4px;
}

.braincraft-link:hover {
  opacity: 1;
  background: rgba(255,255,255,0.1);
}

.braincraft-text {
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.braincraft-logo {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
}

@media (max-width: 900px) {
  .braincraft-text { display: none; }
}

/* Volume Control */
#volumeControl {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 6px;
  height: 34px;
  padding: 0 8px;
  margin: 0;
  border: 0;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  box-sizing: border-box;
}

#controlsWrap > #buttonsContainer .volume-control svg {
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

#controlsWrap > #buttonsContainer .volume-control:hover svg {
  opacity: 1;
}

#controlsWrap > #buttonsContainer .volume-slider {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  width: 70px;
  height: 3px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  outline: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

#controlsWrap > #buttonsContainer .volume-slider:hover {
  background: rgba(255,255,255,0.5);
}

#controlsWrap > #buttonsContainer .volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
          appearance: none;
  width: 13px;
  height: 13px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  transition: transform 0.1s;
}

#controlsWrap > #buttonsContainer .volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

#controlsWrap > #buttonsContainer .volume-slider::-moz-range-thumb {
  width: 13px;
  height: 13px;
  background: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.1s;
}

#controlsWrap > #buttonsContainer .volume-slider::-moz-range-thumb:hover {
  transform: scale(1.15);
}

/* Responsive adjustments for small screens / landscape */
@media (max-height: 700px), (max-width: 600px) {
  .start-content { gap: clamp(2px, 0.4vh, 6px); padding: clamp(3px, 0.6vh, 8px); }
  .start-content .title,
  .start-content .subtitle { padding: clamp(3px, 0.5vh, 7px) clamp(6px, 1.2vw, 12px); }
  .start-content .start-copy { padding: 10px clamp(6px, 1.2vw, 12px); font-size: clamp(0.5rem, 0.9vw + 0.12vh, 0.75rem); line-height: 1.1; }
  .play-button { gap: clamp(2px, 0.3vh, 6px); padding: clamp(3px, 0.5vh, 8px); }
  .play-button svg { width: clamp(25px, 4.5vw + 0.6vh, 45px); height: clamp(25px, 4.5vw + 0.6vh, 45px); }
  .play-button span { font-size: clamp(0.7rem, 1.5vw + 0.2vh, 1rem); }
  .controls-info { padding: clamp(4px, 0.7vh, 10px); }
  .title { font-size: clamp(1.1rem, 3vw + 0.4vh, 2rem); }
  .subtitle { font-size: clamp(0.6rem, 1.3vw + 0.25vh, 0.9rem); }
}

@media (pointer: coarse) and (max-width: 768px) {
  .play-button { gap: 7px; padding: 10px; }
  .play-button svg { width: 58px; height: 58px; }
  .play-button span { font-size: 0.95rem; letter-spacing: 2px; }
  .start-content .title { font-size: clamp(1.4rem, 5vw, 2rem); }
  .start-content .start-copy { font-size: clamp(0.85rem, 3.2vw, 1.05rem); line-height: 1.6; }
  .start-copy .event-title { font-size: clamp(0.95rem, 3.5vw, 1.15rem); }
  .tour-info { font-size: clamp(0.85rem, 3.2vw, 1rem); line-height: 1.5; }
}
}
