/* Small integration/accessibility fixes; the visual rules live in reference.css. */
body.cd-key{position:relative;isolation:isolate;display:flex;flex-direction:column;min-height:100vh;background:linear-gradient(216deg,#E8FAF7 1%,#fff 62%)}

.redeem-content {
  position: relative;
}

.floating-shapes {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.floating-shapes > * {
  position: absolute;
  --drift-x: clamp(16px, 4vw, 62px);
  --drift-y: -28px;
  --turn: 24deg;
  animation: redeem-shape-drift var(--period, 16s) ease-in-out var(--delay, 0s) infinite alternate;
}

.float-mint {
  left: 3%;
  bottom: 9%;
  width: clamp(130px, 17vw, 260px);
  fill: rgb(92 204 157 / 8%);
  --period: 24s;
}
.float-peach {
  top: 12%;
  right: 4%;
  width: clamp(105px, 14vw, 205px);
  fill: rgb(255 177 119 / 10%);
  --period: 26s;
  --delay: -13s;
}
.float-ring {
  top: 47%;
  right: 9%;
  width: 12px;
  height: 12px;
  border: 2px solid #61CFC3;
  border-radius: 50%;
  --delay: -6s;
}
.float-square {
  top: 26%;
  left: 12%;
  width: 15px;
  height: 15px;
  border-radius: 4px;
  background: linear-gradient(135deg, #B5EEE7, #75C2B8);
  opacity: .58;
  --period: 19s;
  --delay: -8s;
}
.float-dash {
  right: 15%;
  bottom: 16%;
  width: 38px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #BAEEE7, #75D1C7);
  --turn: 65deg;
  --delay: -12s;
}
.float-dash-warm {
  top: 54%;
  left: 7%;
  right: auto;
  bottom: auto;
  width: 26px;
  background: linear-gradient(90deg, #ffe2ae, #ffb7ae);
  --period: 13s;
  --delay: -4s;
}
.float-outline {
  bottom: 7%;
  right: 28%;
  width: 19px;
  fill: none;
  stroke: #95dec9;
  stroke-width: 2;
  stroke-linejoin: round;
  --delay: -9s;
}
.float-dot {
  top: 11%;
  left: 29%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #B1E3DB;
  --period: 11s;
}

@keyframes redeem-shape-drift {
  0% { transform: translate(0, 0) rotate(-12deg); }
  48% { transform: translate(var(--drift-x), var(--drift-y)) rotate(var(--turn)); }
  100% { transform: translate(0, 16px) rotate(8deg); }
}

@media (max-width: 600px) {
  .float-mint { left: -50px; bottom: 13%; }
  .float-peach { right: -38px; top: 14%; }
  .float-outline, .float-dash-warm, .float-dot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .floating-shapes > * { animation: none; }
}
body.cd-key .main .pc-header{max-width:100%;}
.demo-badge{font-size:11px;line-height:22px;padding:0 9px;border:1px solid #d0d5dd;border-radius:20px;color:#667085;font-weight:400;background:#ffffffa6}
.pc-header .demo-badge{margin-left:auto}.bem-topbar .demo-badge{justify-self:end;font-size:10px;padding:0 6px;white-space:nowrap}
.text-button{font:inherit;color:#008077;background:transparent;line-height:24px;white-space:nowrap}.text-button:hover{text-decoration:underline}
.demo-shortcut{display:flex;align-items:center;justify-content:center;gap:16px;margin:20px auto 0;color:#98a2b3;font-size:12px}
.demo-shortcut .text-button{font-size:12px}.demo-footer{margin-top:auto;padding:36px 16px 20px;text-align:center;color:#98a2b3;font-size:12px;line-height:20px}
.footer-actions{display:flex;justify-content:center;align-items:flex-start;gap:20px;margin-top:6px}.footer-actions .text-button{font-size:12px;color:#667085;line-height:20px}
details{position:relative}summary{cursor:pointer;color:#667085;list-style:none}summary::-webkit-details-marker{display:none}summary:after{content:' ⌄'}details[open] summary:after{content:' ⌃'}
.scenario-list{position:absolute;z-index:10;bottom:28px;left:50%;transform:translateX(-50%);width:240px;border:1px solid #eaecf0;border-radius:12px;padding:14px;background:white;box-shadow:0 8px 32px #10182818;text-align:left}.scenario-list p{margin-bottom:10px}.scenario-list button{font:inherit;padding:6px 9px;border-radius:6px;color:#475467}.scenario-list button:hover{background:#E8F9F6;color:#008077}
body.cd-key .main .step2 .input-wrapper .label{display:block}.input-wrapper.has-error .error-info{display:block!important}
body.cd-key .main .step2 .award-card .ac-user-name,body.cd-key .main .step2 .award-card .ac-user-mail{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sample-button,.return-button{font-size:12px}
body.cd-key .main .step3 .loading-icon{animation:loadingCircle 2s linear infinite}.processing-demo{margin-top:22px;color:#98a2b3;font-size:12px}
body.cd-key .main .step4 .cc-item-content{min-width:0;overflow-wrap:anywhere}body.cd-key .main .step4 .common-card .user-content{font-family:inherit}
body.cd-key .main .step-error{max-width:calc(100% - 32px)}#restart-status{margin-top:28px}
body.cd-key .pop-tips-success{max-width:calc(100vw - 32px);white-space:normal;width:max-content}body.cd-key .pop-tips-success.is-error{background:#f04438}
.noscript{padding:24px;text-align:center;background:#fef3f2;color:#b42318}
@media(max-width:384px){body.cd-key .main .step-error .step-info{width:100%;max-width:100%}}
@media(max-width:1199px){.demo-footer{padding-top:32px}body.cd-key .main .step4 .opt-groups{flex-wrap:wrap;gap:12px}body.cd-key .main .step4 .opt-groups .opt-btns{margin:0}}
@media(max-width:384px){body.cd-key .main .step1,body.cd-key .main .step3,body.cd-key .main .step4 .done-info-card,body.cd-key .main .step4 .info-card{width:calc(100vw - 32px)}body.cd-key .main .step1 .input-cdkey .desc{font-size:18px}body.cd-key .main .step1 .input-cdkey .cdkey-input,body.cd-key .main .step1 .input-cdkey .cdkey-next-btn{width:calc(100% - 40px)}body.cd-key .main .step1 .input-cdkey .cdkey-input input{width:100%}body.cd-key .main .step2 .user-info-input-card .input-wrapper,body.cd-key .main .step2 .user-info-input-card .input-wrapper input,body.cd-key .main .step2 .user-info-input-card .award-card,body.cd-key .main .step3 .time-card,body.cd-key .main .step4 .common-card{width:100%}body.cd-key .main .step4 .common-card{padding:16px}.bem-topbar{font-size:14px}}
@media(prefers-reduced-motion:reduce){*{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important}}

.miyu-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.miyu-brand-wordmarks {
  display: grid;
  gap: 3px;
  width: 100px;
}

body.cd-key .miyu-brand-wordmarks img {
  display: block;
  width: 100%;
  height: auto;
}

.site-name{max-width:16em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.miyu-brand-icon{object-fit:contain}
.pc-header .miyu-brand {
  margin-right: 20px;
}

@media (max-width: 1199px) {
  .bem-topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    padding: 0 12px;
  }

  .bem-topbar .miyu-brand {
    gap: 6px;
    justify-self: start;
  }

  body.cd-key .bem-topbar .miyu-brand-icon {
    height: 32px;
  }

  .bem-topbar .miyu-brand-wordmarks {
    width: 72px;
    gap: 2px;
  }

  .mobile-page-name {
    white-space: nowrap;
  }
}

body.cd-key .main .step2 {
  --details-width: min(353px, calc(100% - 32px));
  padding-bottom: 0;
}

body.cd-key .main .step2 .info-card,
body.cd-key .main .step2 .user-info-input-card,
body.cd-key .main .step2 .details-actions {
  width: var(--details-width);
}

.details-actions {
  margin: 0 auto 24px;
}

.details-secondary-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

body.cd-key .main .step2 .details-actions .check-btn {
  display: flex;
  width: 100%;
  margin: 0;
  gap: 6px;
}

@keyframes email-confirm-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.email-confirm-fields {
  padding: 20px;
  margin-bottom: 12px;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  background: #fff;
  animation: email-confirm-in .65s ease-in-out both;
}

.email-confirm-fields .label {
  display: block;
}

body.cd-key .main .step2 :is(.input-wrapper, .email-confirm-fields) > .label + input {
  margin-top: 6px;
}

.email-confirm-fields input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  color: #101828;
  font-size: 16px;
}

body.cd-key .main .email-confirm-fields input[aria-invalid="true"] {
  border-color: #d92d20 !important;
}

.email-confirm-error {
  margin-top: 8px;
  color: #b42318;
  font-size: 13px;
}

.email-confirm-error:empty {
  margin-top: 0;
}

@media (min-width: 1200px) {
  body.cd-key .main .step2 {
    --details-width: min(730px, calc(100% - 32px));
  }
}

#result-screen .done-info-card,
#result-screen .info-card {width:min(480px,calc(100% - 32px));height:auto;margin:0 auto 18px;padding:22px}
#result-screen .common-card {width:100%;min-width:0;height:auto;margin:0;padding:8px 20px}
#result-screen .common-card .cc-item {display:block;text-align:center;padding:15px 0}
#result-screen .cc-item-disc {margin-bottom:8px;text-align:center}
#result-screen .cc-item-content {display:block;margin:0;text-align:center}
#result-screen .user-content,#result-screen .cdkey-code {width:100%;text-align:center;overflow-wrap:anywhere}
#result-screen .cdkey-code {font-size:16px;line-height:1.6}
#result-screen .opt-groups {display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 0}
#result-screen .opt-groups .opt-btns {flex:1 1 0;width:auto;min-width:0;margin:0}
#result-screen #copy-button {flex-basis:100%}
#result-screen .info-card .content {margin-top:16px}
#result-screen .info-card img {object-fit:contain}
#another-code {display:block;margin:0 auto 24px}
