*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #F79B72;
  --secondary: #2A4759;
  --bg: #FFF9F9;
  --text: #222;
  --muted: #555;
  --card-bg: #fff;
  --radius: 10px;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* PAGES */
.page {
  display: none;
  flex: 1;
  height: 100%;
}

.page.active {
  display: flex;
  flex-direction: column;
}

/* HERO */
.hero-wrap {
  position: relative;
  width: 100%;
  flex: 1;
  overflow: hidden;
}

.hero {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.hero-soon-btn {
  position: absolute;
  left: 50%;
  bottom: calc(22% + 4cm);
  transform: translateX(-50%);
  padding: 42px 84px;
  font-size: 54px;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: #ffcc00;
  color: #111;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero-soon-btn:hover {
  transform: translateX(-50%) scale(1.04);
  opacity: 0.95;
}

/* CONTAINER */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* GAMES PAGE */
.games-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.game-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  scroll-margin-top: 70px;
}

.game-detail.reverse {
  direction: rtl;
}

.game-detail.reverse > * {
  direction: ltr;
}

.game-detail h2 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.game-detail p {
  color: var(--muted);
  line-height: 1.7;
  white-space: pre-line;
}

.game-detail-imgs {
  display: flex;
  gap: 6px;
  border-radius: var(--radius);
  overflow: hidden;
  height: 300px;
}

.game-detail-imgs img {
  width: 50%;
  height: 100%;
  object-fit: cover;
}

.game-detail-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
}

.availability-note {
  background: #fff3e0;
  border-left: 4px solid var(--primary);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 2rem;
  color: var(--muted);
  font-style: italic;
}

/* CONTACT GAMES SIDEBAR */
.contact-games {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-game h2 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.contact-game-imgs {
  display: flex;
  gap: 6px;
  margin-bottom: 0.75rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.contact-game-imgs img {
  width: 50%;
  object-fit: cover;
  display: block;
}

.contact-game p {
  color: var(--muted);
  line-height: 1.7;
  white-space: pre-line;
}

/* CONTACT PAGE */
#page-contact.active {
  overflow-y: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-grid h1 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.btn-send {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.7rem 2rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-send:hover {
  opacity: 0.85;
}

.btn-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-msg {
  padding: 0.65rem 0.9rem;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.form-msg--success {
  background: #e6f4ea;
  color: #2e7d32;
}

.form-msg--error {
  background: #fdecea;
  color: #c62828;
}

/* FOOTER */
footer {
  background: var(--secondary);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .game-detail,
  .game-detail.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}