/* Inline xterm.css minified content */
.terminal {
  position: relative;
  overflow: hidden;
  font-family: monospace;
  font-size: 14px;
  line-height: 1.2;
  color: #fff;
  background-color: #000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  -webkit-touch-callout: default;
  -webkit-tap-highlight-color: transparent;
}
.terminal * {
  box-sizing: border-box;
}
.terminal .xterm-viewport {
  overflow-y: scroll;
  overflow-x: hidden;
  height: 100%;
  width: 100%;
  outline: none;
  position: relative;
  -webkit-overflow-scrolling: touch;
}
.terminal .xterm-screen {
  position: relative;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
.terminal .xterm-scroll-area {
  position: absolute;
  width: 1px;
  height: 100%;
  top: 0;
  right: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
.terminal .xterm-scrollbar {
  position: absolute;
  width: 10px;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
.terminal .xterm-scrollbar-thumb {
  position: absolute;
  width: 100%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  cursor: pointer;
}
.terminal .xterm-cursor {
  position: absolute;
  background-color: #fff;
  animation: xterm-blink 1s step-start 0s infinite;
}
@keyframes xterm-blink {
  0%, 50% {
    opacity: 1;
  }
  50.01%, 100% {
    opacity: 0;
  }
}
/* Additional xterm.css styles omitted for brevity */

/* Retro terminal styles with scanlines and refresh animation */
.terminal-container {
  position: relative;
  width: 100%;
  height: 300px;
  background: black;
  overflow: hidden;
  font-family: monospace;
  color: #0f0;
}

.terminal-container::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(0,0,0,0.1) 50%, transparent 50%) 0 0,
    linear-gradient(rgba(0,0,0,0.1) 50%, transparent 50%) 0 1px;
  background-size: 100% 2px;
  -webkit-animation: scanline 7.5s linear infinite;
  animation: scanline 7.5s linear infinite;
  z-index: 2;
}

@-webkit-keyframes scanline {
  0% { background-position: 0 0, 0 1px; }
  100% { background-position: 0 2px, 0 3px; }
}
@keyframes scanline {
  0% { background-position: 0 0, 0 1px; }
  100% { background-position: 0 2px, 0 3px; }
}

.terminal-refresh {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  background: rgba(255,255,255,0.05);
  -webkit-animation: refresh 0.15s linear infinite;
  animation: refresh 0.15s linear infinite;
  z-index: 3;
}

@-webkit-keyframes refresh {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0; }
}
@keyframes refresh {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0; }
}

/* ------------------------------------------------------------
   Game dashboard shell + glass panels
------------------------------------------------------------- */
.game-interface-shell {
  background: rgba(8, 10, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
}

.glass-panel,
.game-interface-shell .card {
  background: rgba(13, 16, 25, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.game-panel-eyebrow {
  display: block;
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
}

.game-panel-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.game-panel-alert {
  border-radius: 0.75rem;
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

/* ------------------------------------------------------------
   Player stats
------------------------------------------------------------- */
.player-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.player-stat-pill {
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.player-stat-pill span {
  color: rgba(255, 255, 255, 0.65);
}

.player-stat-pill strong {
  color: #fff;
}

/* ------------------------------------------------------------
   Room card / exits
------------------------------------------------------------- */
.game-room-card__description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.game-room-card__media .room-image {
  max-height: 260px;
  object-fit: cover;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
}

.exit-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.exit-chip {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 255, 213, 0.1);
  border: 1px solid rgba(0, 255, 213, 0.35);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.game-panel-section + .game-panel-section {
  margin-top: 1.5rem;
}

/* ------------------------------------------------------------
   Inventory panel
------------------------------------------------------------- */
.player-inventory-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.player-inventory-panel__eyebrow {
  display: block;
  text-transform: uppercase;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.55);
}

.player-inventory-panel__grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 768px) {
  .player-inventory-panel__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.player-inventory-panel__empty {
  border-radius: 0.75rem;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.inventory-card-wrapper .entity-card {
  height: 100%;
}

.inventory-entity-card .entity-card__image-wrapper,
.room-entity-card .entity-card__image-wrapper {
  min-height: 160px;
}

.player-inventory-panel {
  border-radius: 0.75rem;
}

.game-room-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
