:root {
  --text: #f8f8f8;
  --shadow: #1a1a1a;
  --button: #777777;
  --button-top: #bdbdbd;
  --button-bottom: #2b2b2b;
  --button-hover: #8f8f8f;
  --yellow: #ffff55;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background: #111;
  font-family: "Courier New", Consolas, monospace;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.menu-screen {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  padding: clamp(18px, 3vh, 34px) 18px 16px;
}

.background {
  position: absolute;
  inset: 0;
  background-image: url("./assets/bg-end.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  filter: saturate(1.08) contrast(1.04);
}

.shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.46));
}

.title-area,
.main-menu,
.quick-panel,
.footer {
  position: relative;
  z-index: 1;
}

.title-area {
  width: min(820px, 96vw);
  margin: 0 auto;
  padding-top: 4px;
  text-align: center;
}

.logo {
  position: relative;
  display: inline-block;
  color: #e7e7e7;
  font-family: Impact, "Arial Black", "Courier New", monospace;
  font-size: clamp(56px, 10vw, 128px);
  font-weight: 900;
  line-height: 0.78;
  transform: skewX(-8deg);
  text-shadow:
    0 4px 0 #9a9a9a,
    0 8px 0 #5f5f5f,
    0 12px 0 #252525,
    5px 0 0 #111,
    -5px 0 0 #111,
    0 -5px 0 #fff,
    12px 17px 0 rgba(0, 0, 0, 0.42);
}

.logo::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -8px;
  height: 9px;
  background: #252525;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.5);
}

.logo span {
  display: block;
}

.edition {
  width: fit-content;
  margin: 4px auto 0;
  padding: 1px 12px 2px;
  color: #f5f5f5;
  background: rgba(0, 0, 0, 0.5);
  border: 3px solid #1f1f1f;
  font-size: clamp(16px, 2.5vw, 30px);
  font-weight: 900;
  text-shadow: 2px 2px 0 #000;
  transform: translateY(-2px);
}

.splash {
  position: absolute;
  left: 62%;
  top: clamp(58px, 11vw, 126px);
  margin: 0;
  color: var(--yellow);
  font-size: clamp(15px, 2.2vw, 29px);
  font-weight: 900;
  white-space: nowrap;
  text-shadow: 2px 2px 0 #3c3300;
  transform: rotate(-18deg);
  animation: splash-pop 0.75s steps(2, end) infinite;
}

.main-menu {
  width: min(400px, calc(100vw - 32px));
  margin: clamp(28px, 4.8vh, 54px) auto 0;
  display: grid;
  gap: 10px;
}

.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mc-button {
  display: grid;
  place-items: center;
  min-height: 41px;
  padding: 7px 12px 8px;
  color: #f6f6f6;
  background: var(--button);
  border: 3px solid;
  border-color: var(--button-top) var(--button-bottom) var(--button-bottom) var(--button-top);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.32),
    0 3px 0 rgba(0, 0, 0, 0.36);
  font-size: 18px;
  line-height: 1.15;
  text-align: center;
  text-shadow: 2px 2px 0 #202020;
}

.mc-button:hover,
.mc-button:focus-visible {
  color: #ffffa0;
  background: var(--button-hover);
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.mc-button:active {
  transform: translateY(2px);
  border-color: var(--button-bottom) var(--button-top) var(--button-top) var(--button-bottom);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.42);
}

.mc-button.small {
  min-height: 39px;
  font-size: 16px;
}

.quick-panel {
  align-self: end;
  width: min(760px, calc(100vw - 32px));
  margin: clamp(24px, 5vh, 52px) auto 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.entry {
  min-height: 88px;
  padding: 12px;
  background: rgba(20, 20, 20, 0.58);
  border: 3px solid rgba(210, 210, 210, 0.8);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.82),
    0 4px 0 rgba(0, 0, 0, 0.32);
  text-shadow: 2px 2px 0 #000;
}

.entry:hover,
.entry:focus-visible {
  border-color: #fff;
  background: rgba(70, 70, 70, 0.66);
  outline: none;
}

.entry strong,
.entry span {
  display: block;
}

.entry strong {
  margin-bottom: 8px;
  color: #ffffa0;
  font-size: 17px;
}

.entry span {
  color: #e4e4e4;
  font-size: 13px;
  line-height: 1.5;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 2px 2px 0 #000;
  font-size: 14px;
}

@keyframes splash-pop {
  0%, 100% {
    transform: rotate(-18deg) scale(1);
  }
  50% {
    transform: rotate(-18deg) scale(1.1);
  }
}

@media (max-width: 760px) {
  .menu-screen {
    grid-template-rows: auto auto auto 1fr;
    padding-top: 34px;
  }

  .background {
    background-position: 62% center;
  }

  .splash {
    left: 48%;
    top: 118px;
    font-size: 18px;
  }

  .main-menu {
    margin-top: 48px;
  }

  .quick-panel {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .logo {
    font-size: 48px;
  }

  .edition {
    font-size: 15px;
  }

  .split-row {
    grid-template-columns: 1fr;
  }
}
