:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: #070b16;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: radial-gradient(circle at top, #25345a 0%, #111827 45%, #070b16 100%);
}

body {
  display: grid;
  place-items: center;
}

#game-shell {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

#game-container {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

#game-container {
  position: relative;
  overflow: hidden;
}

#game-container canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 0 40px rgb(0 0 0 / 45%);
}

#game-container > div {
  overflow: hidden;
}

.idlemon-auth-panel {
  width: 560px;
  max-width: calc(100% - 64px);
  padding: 34px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 24px;
  background: rgb(10 17 34 / 94%);
  box-shadow: 0 28px 70px rgb(0 0 0 / 48%);
  color: #f8fafc;
  backdrop-filter: blur(10px);
}

.idlemon-auth-form {
  display: grid;
  gap: 18px;
}

.idlemon-auth-field {
  display: grid;
  gap: 8px;
}

.idlemon-auth-field label {
  color: #cbd5e1;
  font-size: 18px;
  font-weight: 700;
}

.idlemon-auth-field input {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid #475569;
  border-radius: 12px;
  outline: none;
  background: #0f172a;
  color: #f8fafc;
  font: inherit;
  font-size: 20px;
}

.idlemon-auth-field input:focus {
  border-color: #67e8f9;
  box-shadow: 0 0 0 3px rgb(103 232 249 / 16%);
}

.idlemon-auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 4px;
}

.idlemon-auth-button {
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
}

.idlemon-auth-button[data-action="login"] {
  background: linear-gradient(135deg, #22d3ee, #38bdf8);
  color: #082f49;
}

.idlemon-auth-button[data-action="register"] {
  border: 1px solid #64748b;
  background: #1e293b;
  color: #f8fafc;
}

.idlemon-auth-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.idlemon-auth-status {
  min-height: 28px;
  margin-top: 4px;
  color: #fbbf24;
  font-size: 17px;
  line-height: 1.45;
  text-align: center;
}

.idlemon-auth-status[data-kind="error"] {
  color: #fca5a5;
}

.idlemon-auth-status[data-kind="success"] {
  color: #86efac;
}

@media (max-width: 520px) {
  .idlemon-auth-panel {
    width: calc(100vw - 32px);
    padding: 24px;
  }

  .idlemon-auth-actions {
    grid-template-columns: 1fr;
  }
}
