/* Flash Player Styles - Game fills viewport */

/* Main player container - fills available space */
.flash-player {
  width: 100%;
  height: calc(100vh - 100px);
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  overflow: hidden;
  outline: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ruffle player element - scales to fill */
.flash-player ruffle-player {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
}

/* Ruffle canvas sizing */
.flash-player canvas {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

/* Toolbar */
.flash-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

/* Help panel */
.flash-help {
  margin-top: 12px;
}

/* Error display */
.flash-error {
  color: #f2f2f2;
  padding: 24px;
  font-size: 0.95rem;
}

.flash-error h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

/* Status panel */
.flash-status-panel {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  pointer-events: none;
}

/* Stage sizing */
.emu-st-stage-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.emu-st-stage {
  flex: 1;
  position: relative;
  min-height: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile adjustments */
@media (pointer: coarse), (max-width: 768px) {
  .flash-player {
    height: calc(100vh - 120px);
    border-radius: 0;
    border: none;
  }
}
