:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  background: #301655;
  color: #fff;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.scene {
  position: relative;
  min-height: 320px;
  height: 100vh;
  height: 100svh;
  isolation: isolate;
  overflow: hidden;
}

.scene-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(88 36 149 / 16%), rgb(108 35 161 / 22%));
}

.claim-button {
  position: absolute;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(280px, 22vw, 450px);
  max-width: calc(100% - 48px);
  min-height: clamp(74px, 5.4vw, 110px);
  padding: 15px 24px;
  border: 6px solid rgb(255 147 206 / 58%);
  border-radius: 999px;
  background: linear-gradient(180deg, #ff5cc6 0%, #f83cba 50%, #ee36aa 100%);
  box-shadow: inset 0 2px 0 rgb(255 255 255 / 20%), inset 0 -5px 6px rgb(160 17 123 / 18%), 0 5px 0 rgb(158 24 140 / 38%), 0 10px 30px rgb(49 9 86 / 20%);
  color: #fff;
  font-size: clamp(22px, 1.9vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  transition: filter 120ms ease, box-shadow 120ms ease;
}

.claim-button:hover { filter: brightness(1.08); }
.claim-button:active { filter: brightness(.96); }
:is(a, button, textarea):focus-visible { outline: 3px solid #fff; outline-offset: 5px; }

#browser-guide {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100svh - max(16px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom)));
  padding: 0;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 24px;
  background: #251335;
  color: #fff;
  box-shadow: 0 24px 80px rgb(0 0 0 / 40%);
  overflow: auto;
  overscroll-behavior: contain;
}

#browser-guide::backdrop { background: rgb(13 4 28 / 72%); }
.guide-content { position: relative; padding: 30px 24px 24px; }
.close-button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #e9dcec;
  font-size: 32px;
  cursor: pointer;
}

.close-button:hover { background: rgb(255 255 255 / 8%); }
h1 { margin: 10px 28px 14px 0; font-size: 26px; line-height: 1.2; overflow-wrap: anywhere; }
#guide-description, .guide-steps { color: #e3d5e9; font-size: 16px; line-height: 1.5; }
.guide-steps { padding-left: 24px; margin: 20px 0 24px; }
.guide-steps li { padding-left: 5px; margin: 10px 0; }
.guide-steps li::marker { color: #ff83d7; font-weight: 700; }
.guide-primary, .guide-secondary {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.guide-primary { background: #ba167c; }
.guide-primary:hover { background: #d11b8e; }
.guide-secondary { margin-top: 12px; background: rgb(255 255 255 / 9%); }
.guide-secondary:hover { background: rgb(255 255 255 / 15%); }
#copy-status { margin: 12px 0 0; color: #f4bce2; font-size: 14px; line-height: 1.5; }
#copy-status:empty { margin: 0; }
#manual-copy { margin: 16px 0; }
#manual-copy label { display: block; margin-bottom: 8px; font-size: 14px; }
#offer-link {
  width: 100%;
  padding: 12px;
  border: 1px solid #86648f;
  border-radius: 10px;
  background: #160c20;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .claim-button {
    width: min(380px, calc(100% - 48px));
    max-width: calc(100% - max(24px, env(safe-area-inset-left)) - max(24px, env(safe-area-inset-right)));
    border-width: 5px;
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .claim-button { transition: none; }
}
