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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #05070a;
  font-family: Arial, Helvetica, sans-serif;
  color: #ffffff;
}

body {
  position: fixed;
  inset: 0;
}

.hidden {
  display: none !important;
}

.mobile-game-frame {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  background:
    linear-gradient(rgba(8, 12, 16, 0.4), rgba(8, 12, 16, 0.62)),
    url("/images/bg.png"),
    linear-gradient(180deg, #52675a 2%, #38483d 34%, #1f2a24 56%, #11171d 80%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.mobile-launcher {
  position: relative;
  width: 100%;
  height: 100%;
}

.mobile-entry-screen {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 7, 10, 0.58);
  backdrop-filter: blur(12px);
}

.mobile-entry-box {
  width: min(88vw, 420px);
  padding: 28px 22px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(13, 18, 22, 0.9) 0%, rgba(7, 10, 14, 0.84) 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.mobile-entry-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mobile-play-btn {
  width: 118px;
  height: 118px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.mobile-play-btn:hover {
  transform: scale(1.03);
  background: rgba(255, 255, 255, 0.08);
}

.mobile-play-icon {
  display: grid;
  place-items: center;
}

.mobile-play-triangle {
  width: 0;
  height: 0;
  margin-left: 8px;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 30px solid #ffffff;
}

.mobile-entry-title {
  font-size: clamp(1.6rem, 5vw, 2rem);
  line-height: 1.1;
  margin-bottom: 10px;
}

.mobile-entry-message {
  font-size: 0.98rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.mobile-game-shell {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #05070a;
}

.mobile-game-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #05070a;
}

.patch-notes-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mobile-install-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 10, 0.62);
  backdrop-filter: blur(10px);
}

.mobile-install-panel {
  position: relative;
  width: min(92vw, 520px);
  padding: 24px 20px 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(13, 18, 22, 0.94) 0%, rgba(7, 10, 14, 0.9) 100%);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
}

.patch-notes-panel {
  width: min(92vw, 560px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mobile-install-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.mobile-install-title {
  margin-top: 14px;
  font-size: clamp(1.55rem, 5vw, 2rem);
  line-height: 1.05;
  color: #fff6df;
}

.mobile-install-copy {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.patch-notes-section {
  margin-top: 18px;
}

.patch-notes-heading {
  font-size: 1rem;
  font-weight: 800;
  color: #fff6df;
}

.patch-notes-list {
  margin-top: 10px;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.mobile-install-actions {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.mobile-install-primary {
  min-height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  color: #081015;
  background: linear-gradient(135deg, #f4c95d 0%, #ffd95f 100%);
  box-shadow: 0 18px 30px rgba(244, 201, 93, 0.22);
}

@media (orientation: landscape) {
  .mobile-entry-box {
    width: min(78vw, 520px);
  }

  .mobile-play-btn {
    width: 104px;
    height: 104px;
  }
}
