*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0 auto;
  padding: 60px 0;
  min-height: 100vh;
  max-width: 600px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #000;
  background: #fff;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

@media (max-width: 768px) {
  .page {
    align-items: flex-start;
  }
}

.text-container {
  max-width: 42rem;
  width: 100%;
}

.text-container p {
  margin: 0 0 1.25em;
  line-height: 1.6;
}

.text-container p:last-child {
  margin-bottom: 0;
}

.text-container p:first-of-type,
.text-container p:last-of-type {
  font-weight: 600;
}

.highlight-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  padding-bottom: 0.15em;
}

.highlight-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-bottom: 1px dotted #FF0AB1;
  transition: border-style 0.2s ease;
}

.highlight-link:hover::after {
  border-bottom-style: solid;
}

.highlight-link-nowrap {
  white-space: nowrap;
}

.highlight-link-icon {
  width: 12px;
  height: 12px;
  margin-left: 0;
  vertical-align: middle;
  display: inline-block;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.overlay-modal {
  position: relative;
  width: 100%;
  max-width: 900px;
  padding: 38px 0;
  overflow: visible;
}

.overlay-close {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 100%;
  background: #fff;
  color: #333;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background-color 0.2s ease;
}

.overlay-close:hover {
  background: #eee;
}

.overlay-close-icon {
  display: block;
}

.overlay-content {
  padding: 0 2rem;
}

.overlay-media.is-hidden {
  display: none;
}

.overlay-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #1a301a;
}

.overlay-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.overlay-link {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.overlay-link:hover {
  background: #eee;
  color: #000;
}

@media (max-width: 768px) {
  .overlay {
    padding: 0;
  }

  .overlay-modal {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  .overlay-content {
    padding-left: 0;
    padding-right: 0;
  }
}

.game-section {
  padding: 2rem 1.5rem 0;
  width: 100%;
  text-align: center;
}

#dino-game {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 0 auto;
  border-radius: 16px;
  cursor: pointer;
  outline: none;
}

.game-footer {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: #666;
}

.game-score {
  color: #FF0AB1;
  margin-left: 0.5em;
}
