.house-rewarded-ad {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.88);
  color: #f8fafc;
  font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
}

.house-rewarded-ad__dialog {
  width: min(680px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  border: 1px solid rgba(34, 211, 238, 0.75);
  border-radius: 16px;
  background: #07111f;
  box-shadow: 0 0 36px rgba(34, 211, 238, 0.25);
}

.house-rewarded-ad__header,
.house-rewarded-ad__actions,
.house-rewarded-ad__recruitment {
  padding: 14px 18px;
}

.house-rewarded-ad__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.house-rewarded-ad__label {
  margin: 0;
  color: #67e8f9;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.house-rewarded-ad__close {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 7px 12px;
  background: transparent;
  color: #e2e8f0;
  cursor: pointer;
}

.house-rewarded-ad__close:hover,
.house-rewarded-ad__close:focus-visible {
  border-color: #fff;
  outline: 2px solid rgba(103, 232, 249, 0.55);
  outline-offset: 2px;
}

.house-rewarded-ad__media {
  display: grid;
  place-items: center;
  min-height: 240px;
  background: #020617;
  overflow: hidden;
}

.house-rewarded-ad__media img,
.house-rewarded-ad__media video,
.house-rewarded-ad__media iframe {
  display: block;
  width: 100%;
  max-height: min(48dvh, 430px);
  object-fit: contain;
}

.house-rewarded-ad__media iframe {
  aspect-ratio: 16 / 9;
  border: 0;
}

.house-rewarded-ad__poster {
  position: relative;
  display: grid;
  width: 100%;
  place-items: center;
  border: 0;
  padding: 0;
  background: #020617;
  color: #fff;
  cursor: pointer;
}

.house-rewarded-ad__poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  padding: 10px 18px;
  background: rgba(2, 6, 23, 0.86);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  font-weight: 800;
}

.house-rewarded-ad__poster:hover .house-rewarded-ad__poster-play,
.house-rewarded-ad__poster:focus-visible .house-rewarded-ad__poster-play {
  border-color: #67e8f9;
  color: #67e8f9;
}

.house-rewarded-ad__body {
  padding: 16px 18px 4px;
}

.house-rewarded-ad__title {
  margin: 0 0 6px;
  font-size: clamp(1.25rem, 4vw, 1.75rem);
}

.house-rewarded-ad__description {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.65;
}

.house-rewarded-ad__playback-notice {
  margin: 8px 0 0;
  color: #94a3b8;
  font-size: 0.78rem;
  line-height: 1.5;
}

.house-rewarded-ad__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.house-rewarded-ad__cta,
.house-rewarded-ad__claim {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.house-rewarded-ad__cta {
  border: 1px solid #67e8f9;
  color: #67e8f9;
}

.house-rewarded-ad__claim {
  border: 0;
  background: #22d3ee;
  color: #06202b;
  cursor: pointer;
}

.house-rewarded-ad__claim:disabled {
  background: #334155;
  color: #cbd5e1;
  cursor: wait;
}

.house-rewarded-ad__recruitment {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.7);
  color: #cbd5e1;
  font-size: 0.82rem;
  line-height: 1.6;
  text-align: center;
}

.house-rewarded-ad__recruitment p {
  margin: 0;
}

.house-rewarded-ad__recruitment a {
  color: #67e8f9;
}

@media (max-width: 560px) {
  .house-rewarded-ad {
    padding: 8px;
  }

  .house-rewarded-ad__dialog {
    max-height: calc(100dvh - 16px);
  }

  .house-rewarded-ad__media {
    min-height: 180px;
  }

  .house-rewarded-ad__actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .house-rewarded-ad *,
  .house-rewarded-ad *::before,
  .house-rewarded-ad *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
