:root {
  --gold: #caa15a;
  --dark: #241407;
  --wine: #5e130d;
  --paper: #ead4aa;
  --paper-soft: rgba(234, 211, 166, 0.88);
  --shadow: rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #120b05;
  font-family: Georgia, "Times New Roman", serif;
  color: #2b1608;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
}

.phone-page {
  width: min(100vw, 520px);
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  background-image: url("pozadie.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.75);
}

.phone-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.04),
    rgba(0, 0, 0, 0.18)
  );
  pointer-events: none;
}

.login-card {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: 86%;
  max-width: 420px;
  padding: 24px 18px 21px;
  border: 2px solid rgba(89, 48, 18, 0.62);
  border-radius: 18px;
  background: var(--paper-soft);
  box-shadow:
    0 10px 25px var(--shadow),
    inset 0 0 22px rgba(94, 49, 16, 0.18);
  z-index: 2;
  text-align: center;
  backdrop-filter: blur(1px);
}

.login-card h1 {
  margin: 0 0 10px;
  font-size: clamp(27px, 6.7vw, 36px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: 0.035em;
  color: #3b200d;
  text-shadow: 0 1px 0 rgba(255, 239, 190, 0.45);
}

.intro {
  margin: 0 0 17px;
  font-size: clamp(14px, 3.6vw, 17px);
  line-height: 1.35;
  color: #2b1608;
}

.game-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.game-button {
  width: 100%;
  min-height: 69px;
  display: grid;
  grid-template-columns: 44px 1fr 20px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-align: left;
  text-decoration: none;
  border: 2px solid #8b5a24;
  border-radius: 14px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045), transparent 46%),
    linear-gradient(#4b2b13, #2b1709);
  color: #f3dfb1;
  box-shadow:
    inset 0 0 12px rgba(0, 0, 0, 0.45),
    0 5px 14px rgba(0, 0, 0, 0.30);
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.game-button:hover,
.game-button:focus {
  color: #fff4d5;
  border-color: #d6b06b;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055), transparent 46%),
    linear-gradient(#5b3216, #341b09);
  transform: translateY(-1px);
  outline: none;
}

.game-button:active {
  transform: translateY(2px);
}

.game-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 176, 107, 0.78);
  border-radius: 50%;
  background: rgba(94, 19, 13, 0.56);
  color: #f1d48d;
  font-size: 22px;
  line-height: 1;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.32);
}

.game-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.game-text strong {
  font-size: clamp(15px, 3.8vw, 18px);
  line-height: 1.16;
  letter-spacing: 0.015em;
}

.game-text small {
  color: #d7bd89;
  font-size: clamp(11px, 2.8vw, 13px);
  line-height: 1.2;
}

.game-arrow {
  color: #d6b06b;
  font-size: 28px;
  line-height: 1;
  text-align: right;
}

.menu-footer {
  margin: 17px 0 0;
  color: #5c1b12;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.025em;
}

@media (max-height: 720px) {
  .login-card {
    top: 50%;
    width: 90%;
    padding-top: 17px;
    padding-bottom: 16px;
  }

  .login-card h1 {
    font-size: 25px;
    margin-bottom: 6px;
  }

  .intro {
    margin-bottom: 11px;
    font-size: 14px;
  }

  .game-menu {
    gap: 7px;
  }

  .game-button {
    min-height: 58px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .game-icon {
    width: 34px;
    height: 34px;
    font-size: 19px;
  }

  .menu-footer {
    margin-top: 10px;
  }
}

@media (max-width: 360px) {
  .login-card {
    width: 91%;
    padding-left: 12px;
    padding-right: 12px;
  }

  .game-button {
    grid-template-columns: 38px 1fr 16px;
    gap: 8px;
    padding-left: 9px;
    padding-right: 9px;
  }

  .game-icon {
    width: 35px;
    height: 35px;
  }
}

@media (min-width: 700px) {
  body {
    padding: 24px 0;
  }

  .phone-page {
    min-height: min(100vh, 920px);
    aspect-ratio: 2 / 3;
    border-radius: 8px;
  }
}
