/*
 * Englishbuds Games
 * Shared Components
 */

/* Main game container */
.eb-game {
  width: min(100% - 24px, 960px);
  margin: 0 auto;
  padding: var(--eb-space-md);
}

/* Card */
.eb-card {
  background: var(--eb-white);
  border: 1px solid var(--eb-border);
  border-radius: var(--eb-radius-large);
  box-shadow: var(--eb-shadow);
  padding: var(--eb-space-lg);
}

/* Primary button */
.eb-button {
  min-height: 52px;
  padding: 12px 24px;

  border: none;
  border-radius: var(--eb-radius-medium);

  background: var(--eb-green);
  color: var(--eb-white);

  font-weight: 700;
  font-size: 1rem;

  cursor: pointer;

  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

.eb-button:hover {
  transform: translateY(-2px);
}

.eb-button:active {
  transform: translateY(0);
}

.eb-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Secondary button */
.eb-button-secondary {
  background: var(--eb-white);
  color: var(--eb-green-dark);
  border: 2px solid var(--eb-green);
}

/* Icon button */
.eb-icon-button {
  width: 48px;
  height: 48px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 50%;

  background: var(--eb-white);
  box-shadow: var(--eb-shadow);

  cursor: pointer;
}

/* Header */
.eb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: var(--eb-space-md);
  margin-bottom: var(--eb-space-lg);
}

/* Englishbuds logo */
.eb-logo {
  display: block;
  width: min(220px, 55vw);
  height: auto;
}

/* Mascot */
.eb-mascot {
  display: block;
  width: min(220px, 55vw);
  height: auto;
}

/* Score / information display */
.eb-status {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: var(--eb-space-md);

  font-weight: 700;
  font-size: 1.1rem;
}

/* Result message */
.eb-message {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
}

/* Success */
.eb-message-success {
  color: var(--eb-success);
}

/* Error */
.eb-message-error {
  color: var(--eb-error);
}

/* Mobile */
@media (max-width: 600px) {
  .eb-game {
    width: 100%;
    padding: 12px;
  }

  .eb-card {
    padding: var(--eb-space-md);
  }

  .eb-button {
    min-height: 56px;
    width: 100%;
  }
}