:root {
  --bg: #030604;
  --surface: rgba(5, 10, 7, 0.76);
  --line: rgba(0, 255, 102, 0.35);
  --line-strong: rgba(120, 255, 176, 0.75);
  --text: #d8ffe9;
  --muted: #b8d4c4;
  --accent: #00ff66;
  --accent-dim: #0f7d3f;
  --radius-md: 12px;
  --radius-lg: 16px;
  --motion-fast: 160ms;
  --motion-base: 220ms;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  font-family: "JetBrains Mono", "Consolas", "Roboto Mono", monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

#matrix-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  opacity: 0.45;
}

.container {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, transparent 35%, rgba(0, 0, 0, 0.5) 100%);
}

.main-controls {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.enter-button {
  min-width: 220px;
  padding: 14px 34px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 255, 102, 0.12), rgba(0, 255, 102, 0.03));
  color: #d2f7e0;
  font-family: "Consolas", "JetBrains Mono", "Roboto Mono", monospace;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(0, 255, 102, 0.2), 0 1px 1px rgba(0, 0, 0, 0.8);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.7), 0 0 28px rgba(0, 255, 102, 0.12);
  border-radius: var(--radius-md);
  transition: opacity 420ms ease, border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, transform 420ms ease, filter var(--motion-fast) ease;
}

.enter-button.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.enter-button.is-hidden {
  display: none;
}

.enter-button:hover {
  border-color: var(--accent);
  box-shadow: 0 0 32px rgba(0, 255, 102, 0.26);
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.enter-button:active {
  transform: translateY(0);
  box-shadow: 0 0 14px rgba(0, 255, 102, 0.2);
}

.enter-button:focus-visible {
  outline: 2px solid var(--accent-dim);
  outline-offset: 3px;
}

.action-buttons {
  display: none;
  gap: 10px;
}

.action-buttons.is-visible {
  display: flex;
}

.action-item {
  min-width: 584px;
  min-height: 400px;
  padding: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 255, 102, 0.22);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.45), 0 0 14px rgba(0, 255, 102, 0.07);
  border-radius: var(--radius-lg);
  transition: transform var(--motion-base) ease, border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.action-item:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.45), 0 16px 26px rgba(0, 255, 102, 0.12);
}

.action-item:nth-child(1) {
  background-image: linear-gradient(180deg, rgba(2, 7, 5, 0.56), rgba(2, 7, 5, 0.56)), url("img/deeprp.jpg");
}

.action-item:nth-child(2) {
  background-image: linear-gradient(180deg, rgba(2, 7, 5, 0.56), rgba(2, 7, 5, 0.56)), url("img/deep-dayz.jpg");
}

.action-item:nth-child(3) {
  background-image: linear-gradient(180deg, rgba(2, 7, 5, 0.56), rgba(2, 7, 5, 0.56)), url("img/deep-craft.jpg");
}

.action-button {
  min-width: 73px;
  min-height: 36px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  background: transparent;
  color: #d2f7e0;
  font-family: "Consolas", "JetBrains Mono", "Roboto Mono", monospace;
  font-size: 0.88rem;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(0, 255, 102, 0.18), 0 1px 2px rgba(0, 0, 0, 0.88);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.42), 0 0 16px rgba(0, 255, 102, 0.09);
  border-radius: var(--radius-md);
  transition: transform var(--motion-fast) ease, border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.action-button:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.42), 0 8px 20px rgba(0, 255, 102, 0.14);
}

.action-button:active {
  transform: translateY(0);
}

.action-button:focus-visible {
  outline: 2px solid var(--accent-dim);
  outline-offset: 2px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.72);
  padding: 16px;
}

.modal.hidden {
  display: none;
}

.modal-panel {
  width: min(560px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(4, 9, 6, 0.94);
  box-shadow: 0 0 40px rgba(0, 255, 102, 0.08);
  border-radius: var(--radius-lg);
}

.modal-title {
  margin: 0;
  font-size: 1.2rem;
  font-family: "Consolas", "JetBrains Mono", "Roboto Mono", monospace;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #d2f7e0;
  text-shadow: 0 0 8px rgba(0, 255, 102, 0.16), 0 1px 1px rgba(0, 0, 0, 0.8);
  line-height: 1.4;
}

.modal-text {
  margin: 12px 0 0;
  color: var(--muted);
  font-family: "Consolas", "JetBrains Mono", "Roboto Mono", monospace;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.modal-actions {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.modal-button {
  min-width: 130px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #f4f8ff;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--motion-fast) ease, filter var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.modal-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.modal-button:active {
  transform: translateY(0);
}

.modal-button:focus-visible {
  outline: 2px solid var(--line-strong);
  outline-offset: 2px;
}

.modal-button-blue {
  background: #0c4cc9;
  border-color: #2b6cf0;
}

.modal-button-red {
  background: #a01515;
  border-color: #d13b3b;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.06) 8%, rgba(255, 255, 255, 0.14) 18%, rgba(255, 255, 255, 0.06) 33%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.1s linear infinite;
}

@keyframes skeletonShimmer {
  to {
    background-position-x: -200%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
