@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0f0d0a;
  color: #eee;
  font-family: 'Rajdhani', 'Segoe UI', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 2.5rem;
  text-align: center;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 0.15s forwards;
}

.title {
  font-size: 4.25rem;
  font-weight: 700;
  color: #c45a3c;
  letter-spacing: 0.375rem;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6);
}

.sub {
  color: #8a7e6e;
  font-size: 0.875rem;
  letter-spacing: 0.1875rem;
  text-transform: uppercase;
  margin-top: -0.25rem;
}

.divider {
  width: 7.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 90, 60, 0.4), transparent);
  margin: 0.25rem 0;
}

.btn {
  background: #2a1e12;
  color: #eee;
  border: 1px solid rgba(140, 120, 80, 0.4);
  padding: 0.889em 2.667em;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.125rem;
  transition: all 0.15s;
  text-decoration: none;
  display: block;
  min-width: 16.25rem;
  text-align: center;
  outline: none;
}

.btn:hover {
  background: #3a2a1a;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: none;
  transition: transform 0.04s;
}

.btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(184, 148, 62, 0.6);
  outline: none;
}

.btn-host {
  background: #a3472e;
  border-color: rgba(196, 90, 60, 0.5);
  animation: pulse 2.5s ease-in-out infinite;
}

.btn-host:hover {
  background: #c45a3c;
  box-shadow: 0 4px 20px rgba(196, 90, 60, 0.35);
}

.btn-host:active {
  background: #8a3a24;
}

.btn-join {
  background: #2a3a28;
  border-color: rgba(126, 168, 121, 0.4);
}

.btn-join:hover {
  background: #3a5a35;
  box-shadow: 0 4px 16px rgba(126, 168, 121, 0.2);
}

.btn-join:active {
  background: #1e2a1c;
}

.btn-tutorial {
  background: #1a2040;
  border-color: rgba(107, 140, 174, 0.4);
  font-size: 0.875rem !important;
  padding: 0.857em 2.571em !important;
  color: #6b8cae;
}

.btn-tutorial:hover {
  background: #2a3060;
  box-shadow: 0 4px 16px rgba(107, 140, 174, 0.15);
}

.btn-tutorial:active {
  background: #141830;
}

.hint {
  color: #666;
  font-size: 0.6875rem;
  letter-spacing: 0.0625rem;
  text-transform: uppercase;
  max-width: 20rem;
  line-height: 1.6;
}

.ver {
  color: #555;
  font-size: 0.5625rem;
  letter-spacing: 0.0625rem;
  margin-top: 1rem;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 2px 12px rgba(196, 90, 60, 0.25); }
  50% { box-shadow: 0 4px 24px rgba(196, 90, 60, 0.45); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(0.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .content { animation: none; opacity: 1; }
  .btn-host { animation: none; }
}

@media (max-width: 47.9375rem) {
  .title {
    font-size: 3rem;
    letter-spacing: 0.25rem;
  }
  .btn {
    padding: 0.778em 2em;
    font-size: 1rem;
    min-width: 13.75rem;
  }
}
