.gui-corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
  border-radius: inherit;
}

.gui-corner {
  position: absolute;
  width: 60px;
  height: 60px;
  pointer-events: none;
  user-select: none;
  background-image: var(--gui-corner-url, url('/gui/gui_corner3_dark_50.png'));
  background-size: contain;
  background-repeat: no-repeat;
}

.gui-corner-tl {
  top: 0;
  left: 0;
}

.gui-corner-tr {
  top: 0;
  right: 0;
  transform: rotate(90deg);
}

.gui-corner-br {
  right: 0;
  bottom: 0;
  transform: rotate(180deg);
}

.gui-corner-bl {
  bottom: 0;
  left: 0;
  transform: rotate(270deg);
}

.menu-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 20px;
  min-height: 160px;
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  isolation: isolate;
  background: none;
  border: none;
  box-shadow: none;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gui-corner-url: url('/gui/gui_corner3_dark_50.png');
}

.menu-button:hover {
  box-shadow: none;
  border-color: transparent;
}

.menu-button::before {
  content: "";
  position: absolute;
  inset: 5px;
  background: none;
  border: 8px solid #2a2e35;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 1px 0 0 rgba(255, 255, 255, 0.07),
    inset 0 -2px 0 rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  opacity: 1;
  pointer-events: none;
  z-index: 9;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.menu-button:hover::before {
  border-color: #353a42;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.2),
    inset 1px 0 0 rgba(255, 255, 255, 0.1),
    inset 0 -2px 0 rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.07);
}

.menu-button::after {
  content: "";
  position: absolute;
  inset: 13px;
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.72),
    inset 0 5px 14px rgba(0, 0, 0, 0.45),
    inset 0 -3px 8px rgba(0, 0, 0, 0.3);
  z-index: -1;
  pointer-events: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.menu-button:hover::after {
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.6),
    inset 0 5px 14px rgba(0, 0, 0, 0.35),
    inset 0 -3px 8px rgba(0, 0, 0, 0.22);
}

.menu-button:active::after {
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.85),
    inset 0 6px 18px rgba(0, 0, 0, 0.6),
    inset 0 -2px 6px rgba(0, 0, 0, 0.4);
}

.menu-button .gui-corner {
  width: 65px;
  height: 65px;
}

.menu-button i {
  font-size: 2.8rem;
  transition: transform 0.3s ease;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.65),
    0 0 10px rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 3;
}

.menu-button:hover i {
  transform: scale(1.15) rotateY(10deg);
}

.menu-button .button-title,
.menu-button .button-subtitle {
  position: relative;
  z-index: 3;
  text-align: center;
}

.button-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.2;
  min-height: 2.4em;
  font-family: "Cinzel", serif;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.6),
    0 0 6px rgba(255, 200, 80, 0.2);
}

.button-subtitle {
  font-size: 0.95rem;
  opacity: 0.65;
  font-weight: 500;
  line-height: 1.2;
  min-height: 2.4em;
  letter-spacing: 0.4px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

.primary-button::after {
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.07) 30%, transparent 55%),
    radial-gradient(ellipse at 50% 35%, #ffb347 0%, #e8891a 42%, #3d1e00 100%);
}

.primary-button:hover::after {
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.09) 30%, transparent 55%),
    radial-gradient(ellipse at 50% 35%, #ffc060 0%, #d4891e 55%, #3d1e00 100%);
}

.primary-button:active::after {
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 45%, #e8891a 0%, #b06010 45%, #3d1e00 100%);
}

.primary-button i {
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.65),
    0 0 10px rgba(255, 180, 80, 0.45);
}

.primary-button .button-title {
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.6),
    0 0 6px rgba(255, 200, 100, 0.35);
}

.play-now-button {
  transform: scale(1.06);
}

.play-now-button:hover {
  transform: scale(1.06) translateY(-4px);
}

.play-now-button:active {
  transform: scale(1.06) translateY(-1px);
}

.play-now-button::before {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 1px 0 0 rgba(255, 255, 255, 0.07),
    inset 0 -2px 0 rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 215, 0, 0.28),
    0 0 18px rgba(230, 168, 23, 0.22);
}

.play-now-button:hover::before {
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.2),
    inset 1px 0 0 rgba(255, 255, 255, 0.1),
    inset 0 -2px 0 rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 215, 0, 0.4),
    0 0 24px rgba(230, 168, 23, 0.32);
}
