.k5-ad-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .94);
  color: #fff;
  font-family: Helvetica, Arial, sans-serif;
  user-select: none;
}

.k5-ad-card {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(100vw, 56.22vh);
  height: 100vh;
  overflow: hidden;
  background: #08090a;
}

.k5-ad-header {
  min-height: 44px;
  padding: 12px 52px 10px 16px;
  box-sizing: border-box;
  overflow: hidden;
  color: #f4f5f6;
  font-size: 15px;
  line-height: 22px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.k5-ad-media {
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

.k5-ad-media img,
.k5-ad-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.k5-ad-controls {
  display: flex;
  gap: 10px;
  min-height: 72px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  box-sizing: border-box;
  background: #111315;
}

.k5-ad-close,
.k5-ad-sound,
.k5-ad-reward {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
}

.k5-ad-close {
  position: absolute;
  top: max(8px, env(safe-area-inset-top));
  right: 8px;
  z-index: 2;
  width: 40px;
  min-height: 40px;
  background: rgba(26, 28, 30, .86);
  font-size: 28px;
  line-height: 36px;
}

.k5-ad-sound {
  flex: 0 0 auto;
  padding: 0 14px;
  background: #353a3f;
}

.k5-ad-reward {
  flex: 1 1 auto;
  padding: 0 18px;
  background: #c73732;
}

.k5-ad-reward:disabled {
  background: #34383c;
  color: #9da2a7;
  cursor: default;
}

.k5-ad-message {
  position: fixed;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  z-index: 2147483647;
  max-width: calc(100vw - 40px);
  padding: 11px 16px;
  transform: translateX(-50%);
  border-radius: 6px;
  background: rgba(15, 17, 19, .94);
  color: #fff;
  font: 14px/20px Helvetica, Arial, sans-serif;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}
