.gw-card,
.gw-pop,
.gw-page {
  --gw-a: #8400ff;
  --gw-b: #bb00ff;
  --gw-grad: linear-gradient(252deg, #8400ff, #bb00ff);
  --gw-grad-hover: linear-gradient(109deg, #8400ff, #bb00ff);
  --gw-tile: linear-gradient(135deg, #8400ff, #bb00ff);
  --gw-flag: linear-gradient(180deg, #8400ff, #bb00ff);
  --gw-ink: #fff;
  --gw-soft: rgba(255, 255, 255, .84);
  --gw-mute: rgba(255, 255, 255, .6);
  --gw-panel: rgba(0, 0, 0, .536);
  --gw-solid: #07080d;
  --gw-line: rgba(255, 255, 255, .12);
  --gw-dash: #bc47eb;
  --gw-link: #d18fff;
  --gw-idle: #373737;
  --gw-grey: #454545;
  --gw-win: linear-gradient(137deg, #11fd00, #009703);
  --gw-lose: linear-gradient(137deg, #fd0000, #970000);
  --gw-pad: 18px;
}

.gw-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  overflow: clip;
  border-radius: 24px;
  background: var(--gw-solid);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
  color: var(--gw-ink);
  font-family: var(--ui);
  text-align: left;
}

.gw-aside {
  flex: none;
  min-width: 0;
}

.gw-media {
  position: relative;
  flex: none;
  margin: 12px 12px 0;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
}
.gw-img {
  display: block;
  width: 100%;
  height: auto;
}

.gw-media.is-stage {
  aspect-ratio: 16 / 8;
  min-height: 140px;
  background: var(--gw-tile);
}
.gw-media.is-stage::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 9%;
  height: 14%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .38), transparent);
}
.gw-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gw-stage-pic {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  height: 54%;
  aspect-ratio: 1;
  margin: 0 -3%;
}
.gw-stage-pic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .4));
}
.gw-stage-pic { max-height: 130px; }
.gw-stage-pic.is-main { position: relative; z-index: 1; height: 80%; max-height: 180px; }
.gw-stage.is-n2 .gw-stage-pic { height: 66%; margin: 0 1%; }
.gw-stage.is-n2 .gw-stage-pic:first-child { transform: rotate(-7deg); }
.gw-stage.is-n2 .gw-stage-pic:last-child { transform: rotate(7deg); }
.gw-stage.is-n3 .gw-stage-pic:first-child { transform: translateY(6%) rotate(-10deg); }
.gw-stage.is-n3 .gw-stage-pic:last-child { transform: translateY(6%) rotate(10deg); }

.gw-gift {
  display: block;
  width: 70%;
  height: 70%;
  overflow: visible;
  color: #fff;
}
.gw-gift path,
.gw-gift rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gw-gift .gw-gift-box {
  fill: currentColor;
  fill-opacity: .16;
  stroke: none;
}

.gw-head-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 16px var(--gw-pad) 0;
}

.gw-title {
  max-width: calc(100% + var(--gw-pad));
  margin: 0 0 0 calc(-1 * var(--gw-pad));
  padding: 10px 18px 8px var(--gw-pad);
  box-sizing: border-box;
  border-radius: 0 12px 12px 0;
  background: var(--gw-flag);
  font-family: var(--display);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: .02em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.gw-clock {
  --gw-ring: var(--gw-tile);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  width: 100%;
  min-height: 64px;
  padding: 9px 16px 9px 10px;
  box-sizing: border-box;
  border: 3px solid transparent;
  border-radius: 18px;
  background:
    linear-gradient(var(--gw-solid), var(--gw-solid)) padding-box,
    var(--gw-ring) border-box;
}
.gw-clock-ico {
  flex: none;
  width: 38px;
  height: 38px;
  padding: 7px;
  box-sizing: border-box;
  border-radius: 11px;
  background: var(--gw-ring);
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
}
.gw-clock-label {
  padding-top: .12em;
  color: var(--gw-soft);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.gw-clock-time {
  margin-left: auto;
  padding-top: .1em;
  color: #fff;
  font-family: var(--display);
  font-size: 34px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: .03em;
  white-space: nowrap;
}
.gw-clock-u {
  margin: 0 .45em 0 .08em;
  font-size: .6em;
  letter-spacing: 0;
}
.gw-card[data-phase="ended"] .gw-clock { --gw-ring: linear-gradient(#454545, #454545); }
.gw-card[data-phase="ended"] .gw-clock-time { color: var(--gw-mute); }

.gw-when {
  margin: 0;
  color: var(--gw-mute);
  font-size: 14px;
  font-weight: 600;
}

.gw-content {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  min-width: 0;
}

.gw-main {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  gap: 26px;
  padding: 24px var(--gw-pad) 22px;
}

.gw-h-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 4px;
}
.gw-h {
  margin: 0;
  padding-top: .1em;
  color: var(--gw-ink);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.gw-cond > .gw-h,
.gw-winners > .gw-h { margin-bottom: 12px; }
.gw-h-aside {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: .14em 12px 0;
  border-radius: 36px;
  background: var(--gw-flag);
  color: #fff;
  font-family: var(--display);
  font-size: 15px;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.gw-body {
  color: var(--gw-soft);
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.gw-body:empty { display: none; }
.gw-body > :first-child { margin-top: 0; }
.gw-body > :last-child { margin-bottom: 0; }
.gw-body p { margin: 0 0 .65em; }
.gw-body strong,
.gw-body b { color: #fff; }
.gw-body a { color: var(--gw-link); text-decoration: underline; text-underline-offset: 2px; }
.gw-body a:hover { color: #e7c4ff; }
.gw-body .nw-list { margin: 0 0 .65em; padding-left: 1.3em; }
.gw-body .nw-list li { margin: .2em 0; }
.gw-body .nw-list li::marker { color: var(--gw-a); }
.gw-body .nw-quote {
  margin: 0 0 .65em;
  padding: 2px 0 2px 14px;
  border-left: 3px solid var(--gw-b);
  color: rgba(255, 255, 255, .78);
}
.gw-body code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .1);
  font-size: .92em;
}
.gw-body .nw-spoiler {
  border-radius: 4px;
  background: rgba(255, 255, 255, .26);
  color: transparent;
  cursor: pointer;
  user-select: none;
}
.gw-body .nw-spoiler.is-open {
  background: none;
  color: inherit;
  cursor: auto;
  user-select: auto;
}

.gw-prizes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 30px 0 0;
  list-style: none;
}
.gw-prize {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 58px 11px 12px;
  border-radius: 15px;
  background: var(--gw-tile);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .3);
}
.gw-prize-pic {
  position: absolute;
  left: 50%;
  top: -28px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  transform: translateX(-50%);
}
.gw-prize-pic img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 18%;
  object-fit: contain;
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .35));
}

.gw-prize-count { display: none; }

.gw-prize-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}
.gw-prize-name {
  padding-top: .1em;
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.05;
  letter-spacing: .02em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.gw-prize-win {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid #fff;
  font-family: var(--display);
  font-size: 13px;
  line-height: 1.15;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.gw-prizes.is-solo {
  grid-template-columns: minmax(0, 1fr);
  padding-top: 20px;
}
.gw-prizes.is-solo .gw-prize {
  justify-content: center;
  min-height: 92px;
  padding: 14px 18px 14px 124px;
}
.gw-prizes.is-solo .gw-prize-pic {
  left: 12px;
  top: -20px;
  width: 104px;
  height: 104px;
  transform: none;
}
.gw-prizes.is-solo .gw-prize-name { font-size: 25px; }
.gw-prizes.is-solo .gw-prize-win { align-self: flex-start; font-size: 15px; }

.gw-prizes.is-many {
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 8px;
  padding-top: 24px;
}
.gw-prizes.is-many .gw-prize { padding: 44px 8px 10px; border-radius: 13px; }
.gw-prizes.is-many .gw-prize-pic { top: -22px; width: 62px; height: 62px; }
.gw-prizes.is-many .gw-prize-name { font-size: 14px; }
.gw-prizes.is-many .gw-prize-win { font-size: 11px; }

.gw-cond-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: gw-step;
}
.gw-cond-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 7px 8px 7px 6px;
  box-sizing: border-box;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.35;
  counter-increment: gw-step;
  transition: background-color .2s;
}
.gw-cond-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 50%;
  width: 2px;
  height: calc(100% + 4px);
  background: rgba(255, 255, 255, .16);
}
.gw-cond-mark {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .3);
  box-sizing: border-box;
  background: var(--gw-solid);
  color: #fff;
  font-family: var(--display);
  font-size: 18px;
  line-height: 1;
  transition: background-color .2s, border-color .2s;
}
.gw-cond-mark::before { content: counter(gw-step); padding-top: .12em; }
.gw-cond-text { flex: 1 1 auto; min-width: 0; color: var(--gw-soft); overflow-wrap: anywhere; }

.gw-cond-item.is-ok .gw-cond-mark { border: 0; background: var(--gw-win); }
.gw-cond-item.is-ok .gw-cond-mark::before {
  content: "";
  width: 7px;
  height: 13px;
  margin-top: -3px;
  padding: 0;
  border: solid #031400;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.gw-cond-item.is-ok .gw-cond-text { color: #fff; }

.gw-cond-item.is-bad { background: rgba(255, 0, 0, .1); }
.gw-cond-item.is-bad .gw-cond-text { color: #ffd9d6; }
.gw-cond-item.is-bad .gw-cond-mark { border: 0; background: var(--gw-lose); }
.gw-cond-item.is-bad .gw-cond-mark::before,
.gw-cond-item.is-bad .gw-cond-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 15px;
  margin: -7.5px 0 0 -1.5px;
  padding: 0;
  border-radius: 2px;
  background: #fff;
  transform: rotate(45deg);
}
.gw-cond-item.is-bad .gw-cond-mark::after { transform: rotate(-45deg); }

.gw-sub {
  flex: none;
  padding: 9px 15px 7px;
  border: 1.5px dashed var(--gw-dash);
  border-radius: 999px;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font-family: var(--display);
  font-size: 15px;
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, border-color .2s;
}
.gw-cond-item.is-ok .gw-sub { display: none; }

.gw-cond-item.has-link { cursor: pointer; }
.gw-cond-item.has-link > .gw-cond-text { color: inherit; text-decoration: none; outline: none; }
.gw-cond-item.has-link:not(.is-ok):not(.is-bad) > .gw-cond-text { color: var(--gw-soft); }
.gw-cond-item.has-link > .gw-cond-text::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}
.gw-cond-item.has-link > .gw-sub { pointer-events: none; }
.gw-cond-item.has-link:has(> .gw-cond-text:focus-visible) { outline: 2px solid #fff; outline-offset: 2px; }
@media (hover: hover) {
  .gw-cond-item.has-link:not(.is-ok):not(.is-bad):hover { background: rgba(255, 255, 255, .06); }
  .gw-cond-item.has-link:hover .gw-sub {
    border-color: transparent;
    background: var(--gw-grad);
  }
}
.gw-cond-item.has-link:active .gw-sub {
  border-color: transparent;
  background: var(--gw-grad);
}

.gw-sub-btn {
  margin: 0;
  font-weight: 400;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.gw-sub-btn[hidden] { display: none; }
.gw-sub-btn:disabled { opacity: .6; cursor: progress; }
.gw-sub-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (hover: hover) {
  .gw-sub-btn:hover { border-color: transparent; background: var(--gw-grad); }
}
.gw-sub-btn:active { border-color: transparent; background: var(--gw-grad); }

.gw-entries {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--gw-soft);
  font-size: 14px;
}
.gw-tally {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gw-left {
  margin-left: auto;
  padding-top: .12em;
  color: #fff;
  font-family: var(--display);
  font-size: 16px;
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.gw-meter {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
}
.gw-meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #8400ff, #bb00ff);
}
.gw-card:not([data-phase="live"]) .gw-meter-fill { background: var(--gw-grey); }
.gw-ico {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.gw-note {
  margin: 0;
  color: var(--gw-mute);
  font-size: 14px;
}

.gw-win-groups {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gw-win-prize {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.gw-win-pic {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gw-tile);
}
.gw-win-pic img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .35));
}
.gw-win-prize-name {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: .1em;
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: .02em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.gw-win-prize-n {
  flex: none;
  padding-top: .12em;
  font-family: var(--display);
  font-size: 18px;
  line-height: 1;
}

.gw-win-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 6px 14px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.gw-win { min-width: 0; }
.gw-win-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 6px 10px 6px 6px;
  border-radius: 14px;
  color: var(--gw-ink);
  text-decoration: none;
  transition: background-color .15s;
}
@media (hover: hover) {
  .gw-win-user:hover { background: rgba(255, 255, 255, .07); }
}
.gw-win-user:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.gw-win-ava {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  object-fit: cover;
}
.gw-win-ava.is-empty {
  padding-top: .12em;
  box-sizing: border-box;
  background: var(--gw-flag);
  color: #fff;
  font-family: var(--display);
  font-size: 18px;
  line-height: 1;
}
.gw-win-names {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}
.gw-win-name,
.gw-win-handle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gw-win-name { font-size: 15px; font-weight: 600; }
.gw-win-handle { color: var(--gw-mute); font-size: 12px; }
.gw-win-none {
  margin: 8px 0 0;
  color: var(--gw-mute);
  font-size: 13px;
}

.gw-foot {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px var(--gw-pad) 18px;
  background: var(--gw-solid);
}
.gw-msg {
  margin: 0;
  color: var(--gw-soft);
  font-size: 13.5px;
  line-height: 1.45;
}
.gw-msg:empty { display: none; }
.gw-msg.is-bad { color: #ffb3ad; }

.gw-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.gw-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 1 1 220px;
  height: 56px;
  padding: .14em 24px 0;
  border: 0;
  border-radius: 999px;
  background: var(--gw-grad);
  color: #fff;
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 11px 33px rgba(83, 37, 97, .15),
    0 4.4px 8.8px rgba(180, 136, 194, .2);
  transition:
    box-shadow var(--dur-quick, .744s) var(--ease-quick, ease-out),
    scale var(--dur-quick, .744s) var(--ease-quick, ease-out);
}
.gw-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--gw-grad-hover);
  opacity: 0;
  transition: opacity var(--dur-quick, .744s) var(--ease-quick, ease-out);
}
@media (hover: hover) {
  .gw-cta:not(:disabled):hover {
    box-shadow:
      0 15px 46px rgba(83, 37, 97, .2),
      0 6.6px 17.6px rgba(180, 136, 194, .25);
  }
  .gw-cta:not(:disabled):hover::before { opacity: 1; }
}
.gw-cta:not(:disabled):active { scale: .97; }
.gw-cta:not(:disabled):active::before { opacity: 1; }
.gw-cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.gw-cta:disabled { cursor: default; opacity: .75; }
.gw-card.is-busy .gw-cta { cursor: progress; }
.gw-cta[data-key="gw.ended"] {
  background: var(--gw-idle);
  color: rgba(255, 255, 255, .6);
  box-shadow: none;
  opacity: 1;
}
.gw-card.is-joined .gw-cta {
  border: 3px solid transparent;
  background:
    linear-gradient(var(--gw-solid), var(--gw-solid)) padding-box,
    var(--gw-win) border-box;
  color: #d8ffe9;
  box-shadow: none;
  opacity: 1;
}
.gw-all {
  color: var(--gw-link);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.gw-all:hover { text-decoration: underline; }
.gw-all:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }

.gw-pop {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 3, 8, .8);
}
.gw-pop[hidden] { display: none; }
.gw-pop-box {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  animation: gw-in .6s var(--ease-gentle, ease-out) both;
}
.gw-pop-box:focus { outline: none; }
.gw-pop-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex: none;
  gap: 12px;
  padding: 0 4px 0 28px;
}
.gw-pop-tab {
  position: relative;
  top: 1px;
  padding: 10px 18px 7px;
  border-radius: 12px 12px 0 0;
  background: var(--gw-flag);
  color: #fff;
  font-family: var(--display);
  font-size: 17px;
  line-height: 1;
  letter-spacing: .06em;
}
.gw-pop-close {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  border: 0;
  border-radius: 50%;
  background: var(--gw-grad);
  color: #fff;
  cursor: pointer;
  transition: scale .3s var(--ease-quick, ease-out);
}
.gw-pop-close::before,
.gw-pop-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2.5px;
  margin: -1.25px 0 0 -8px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}
.gw-pop-close::after { transform: rotate(-45deg); }
@media (hover: hover) {
  .gw-pop-close:hover { scale: 1.08; }
}
.gw-pop-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.gw-pop-box > .gw-card {
  flex: 1 1 auto;
  width: 100%;
}
.gw-card.is-pop {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .25) transparent;
}
.gw-card.is-pop .gw-foot {
  position: sticky;
  bottom: 0;
  z-index: 3;
}
.gw-card.is-pop .gw-foot::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 22px;
  background: linear-gradient(rgba(7, 8, 13, 0), var(--gw-solid));
  pointer-events: none;
}
body.gw-locked { overflow: hidden; }

@keyframes gw-in {
  from { opacity: 0; transform: translateY(22px) scale(.97); }
  to { opacity: 1; transform: none; }
}
@keyframes gw-sheet {
  from { transform: translateY(100%); }
  to { transform: none; }
}

@media (max-width: 560px) {
  .gw-pop { align-items: flex-end; padding: 0; }
  .gw-pop-box {
    width: 100%;
    max-height: 94vh;
    max-height: 94dvh;
    animation-name: gw-sheet;
    animation-duration: .5s;
  }
  .gw-pop-top { padding: 0 12px 0 18px; }
  .gw-card.is-pop { border-radius: 22px 22px 0 0; }
  .gw-card.is-pop .gw-foot { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .gw-card { --gw-pad: 16px; }
  .gw-main { gap: 24px; }
  .gw-title { font-size: 21px; }
  .gw-clock-time { font-size: 30px; }
  .gw-cta { height: 54px; font-size: 22px; }
  .gw-prizes { gap: 8px; }
  .gw-prize { padding: 52px 8px 10px; border-radius: 13px; }
  .gw-prize-pic { top: -26px; width: 74px; height: 74px; }
  .gw-prize-name { font-size: 15px; }
  .gw-prize-win { font-size: 12px; }
  .gw-prizes.is-solo .gw-prize { padding-left: 108px; min-height: 84px; }
  .gw-prizes.is-solo .gw-prize-pic { width: 92px; height: 92px; }
  .gw-prizes.is-solo .gw-prize-name { font-size: 22px; }
  .gw-cond-item { font-size: 14.5px; gap: 12px; }
  .gw-sub { padding: 8px 12px 6px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .gw-pop-box { animation: none; }
  .gw-cta,
  .gw-cta::before,
  .gw-pop-close { transition: none; }
}

.gw-page {
  position: relative;
  z-index: 2;
  color: #fff;
  font-family: var(--ui);
}
body:has(> .gw-page) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
body > .gw-page { flex: 1 0 auto; }

.gw-head {
  position: relative;
  overflow: hidden;
  overflow-x: clip;
  overflow-y: visible;
}
.gw-head-in {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 30px;
  box-sizing: border-box;
}
.gw-page-title,
.gw-ghost {
  font-family: var(--display);
  font-size: 116px;
  font-weight: 400;
  line-height: .9;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.gw-page-title {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin: 0;
  padding-top: .08em;
  background: linear-gradient(90deg, #fff, #999);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gw-ghost {
  position: absolute;
  z-index: 0;
  padding-top: .08em;
  background: linear-gradient(to top, rgba(255, 255, 255, .2), rgba(153, 153, 153, 0));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
  user-select: none;
}
.gw-ghost-a { left: -190px; top: -26px; }
.gw-ghost-b {
  left: 300px;
  top: 118px;
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, .2), rgba(153, 153, 153, 0));
}
.gw-kicker {
  position: relative;
  z-index: 2;
  margin: 12px 0 0;
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.gw-lead {
  position: relative;
  z-index: 2;
  display: inline-block;
  max-width: 600px;
  margin: 18px 0 0;
  padding: 15px 24px;
  box-sizing: border-box;
  border-radius: 24px;
  background: var(--gw-panel);
  color: #fff;
  font-size: 17px;
  line-height: 1.45;
}
.gw-head-gift {
  position: absolute;
  z-index: 1;
  right: 80px;
  top: 16px;
  width: 270px;
  height: auto;
  rotate: -8deg;
  pointer-events: none;
}
.gw-head-branch {
  position: absolute;
  z-index: 0;
  right: calc(-250px - max(0px, (100vw - 1200px) / 2));
  top: -70px;
  width: 640px;
  height: auto;
  pointer-events: none;
}
.gw-head-branch.is-flip { scale: -1 1; }

@keyframes gw-fly-l { from { translate: -260px 0; } }
@keyframes gw-fly-r { from { translate: 220px 0; } }
@keyframes gw-fade { from { opacity: 0; } }
@keyframes gw-drop {
  from { opacity: 0; translate: 0 -46px; scale: .82; }
}
.gw-ghost-a { animation: gw-fly-l 1s .35s var(--ease-out, ease-out) both; }
.gw-ghost-b { animation: gw-fade 1s .35s var(--ease-out, ease-out) both; }
.gw-head-branch { animation: gw-fly-r 1s .35s var(--ease-out, ease-out) both; }
.gw-head-gift { animation: gw-drop var(--dur-bouncy, .958s) .2s var(--ease-bouncy, ease-out) both; }
@media (prefers-reduced-motion: reduce) {
  .gw-ghost-a,
  .gw-ghost-b,
  .gw-head-branch,
  .gw-head-gift { animation: none; }
}

.gw-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 72px;
  box-sizing: border-box;
}
.gw-state {
  margin: 0 0 22px;
  padding: 18px 22px;
  border-radius: 20px;
  background: var(--gw-panel);
  color: var(--gw-soft);
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.5;
}
.gw-state[hidden] { display: none; }

.gw-live {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.gw-page .gw-card { background: rgba(0, 0, 0, .62); }

.gw-card.is-page { padding-bottom: 24px; }
.gw-card.is-page > .gw-aside,
.gw-card.is-page > .gw-content,
.gw-card.is-page .gw-main,
.gw-card.is-page .gw-head-block { display: contents; }
.gw-card.is-page .gw-title {
  order: 1;
  align-self: flex-start;
  max-width: calc(100% - 12px);
  margin: 18px 0 0;
}
.gw-card.is-page .gw-media { order: 2; margin: 14px 12px 0; }
.gw-card.is-page .gw-clock { order: 3; width: auto; margin: 14px 12px 0; }
.gw-card.is-page .gw-when { order: 3; margin: 12px var(--gw-pad) 0; }
.gw-live .gw-media.is-stage { display: none; }
.gw-card.is-page .gw-prize-sec,
.gw-card.is-page .gw-winners { order: 3; }
.gw-card.is-page .gw-aside > .gw-tally,
.gw-card.is-page .gw-aside > .gw-entries,
.gw-card.is-page .gw-main > .gw-tally,
.gw-card.is-page .gw-main > .gw-entries,
.gw-card.is-page .gw-note { order: 4; }
.gw-card.is-page .gw-foot { order: 5; }
.gw-card.is-page .gw-body { order: 6; }
.gw-card.is-page .gw-cond { order: 7; }
.gw-card.is-page :is(.gw-prize-sec, .gw-winners, .gw-note, .gw-body, .gw-cond),
.gw-card.is-page .gw-aside > :is(.gw-tally, .gw-entries),
.gw-card.is-page .gw-main > :is(.gw-tally, .gw-entries) {
  margin: 26px var(--gw-pad) 0;
}
.gw-card.is-page .gw-foot {
  margin-top: 4px;
  padding: 14px var(--gw-pad) 0;
  background: none;
}

.gw-section-title {
  margin: 64px 0 22px;
  padding-top: .1em;
  font-family: var(--display);
  font-size: 46px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.gw-past {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.gw-past .gw-title { background: var(--gw-grey); }
.gw-card.is-page { scroll-margin-top: calc(var(--mk-top-h-stuck, 84px) + 16px); }
.gw-card.is-target {
  box-shadow: 0 0 0 3px #8400ff, 0 10px 28px rgba(0, 0, 0, .35);
}

@media (min-width: 1000px) {
  .gw-live > .gw-card {
    --gw-pad: 30px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: start;
    padding-bottom: 0;
    border-radius: 28px;
  }
  .gw-live > .gw-card > .gw-aside {
    display: flex;
    flex-direction: column;
    padding: 30px 0 30px var(--gw-pad);
  }
  .gw-live > .gw-card > .gw-content {
    display: block;
    align-self: stretch;
  }
  .gw-live > .gw-card .gw-main {
    display: flex;
    gap: 34px;
    padding: 30px var(--gw-pad) 30px 36px;
  }
  .gw-live > .gw-card .gw-main > *,
  .gw-live > .gw-card .gw-aside > * { margin: 0; }
  .gw-live > .gw-card .gw-title {
    max-width: none;
    margin: 0 0 0 calc(-1 * var(--gw-pad));
    padding: 12px 24px 10px var(--gw-pad);
    font-size: 34px;
  }
  .gw-live > .gw-card .gw-media { margin: 22px 0 0; border-radius: 18px; }
  .gw-live > .gw-card .gw-clock { min-height: 78px; margin: 22px 0 0; padding: 12px 22px 12px 14px; border-width: 4px; border-radius: 22px; }
  .gw-live > .gw-card .gw-clock-ico { width: 46px; height: 46px; padding: 9px; border-radius: 13px; }
  .gw-live > .gw-card .gw-clock-label { font-size: 20px; }
  .gw-live > .gw-card .gw-clock-time { font-size: 46px; }
  .gw-live > .gw-card.is-page .gw-aside > :is(.gw-tally, .gw-entries) { margin: 24px 0 0; }
  .gw-live > .gw-card .gw-foot { margin: 0; padding: 16px 0 0; }
  .gw-live > .gw-card .gw-cta { height: 62px; font-size: 27px; }
  .gw-live > .gw-card .gw-prizes { gap: 12px; padding-top: 36px; }
  .gw-live > .gw-card .gw-prize { padding: 70px 12px 13px; border-radius: 17px; }
  .gw-live > .gw-card .gw-prize-pic { top: -34px; width: 98px; height: 98px; }
  .gw-live > .gw-card .gw-prize-name { font-size: 18px; }
  .gw-live > .gw-card .gw-prizes.is-solo { padding-top: 24px; }
  .gw-live > .gw-card .gw-prizes.is-solo .gw-prize { min-height: 100px; padding: 16px 20px 16px 138px; }
  .gw-live > .gw-card .gw-prizes.is-solo .gw-prize-pic { top: -24px; width: 116px; height: 116px; }
  .gw-live > .gw-card .gw-prizes.is-solo .gw-prize-name { font-size: 28px; }
}

@media (min-width: 1000px) and (min-height: 820px) {
  .gw-live > .gw-card > .gw-aside {
    position: sticky;
    top: calc(var(--mk-top-h-stuck, 84px) + 12px);
  }
}

@media (min-width: 761px) {
  .gw-past > .gw-card {
    --gw-pad: 24px;
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    align-items: start;
    padding-bottom: 0;
  }
  .gw-past > .gw-card > .gw-aside {
    display: flex;
    flex-direction: column;
    padding: 24px 0 24px var(--gw-pad);
  }
  .gw-past > .gw-card > .gw-content { display: block; }
  .gw-past > .gw-card .gw-main {
    display: flex;
    gap: 22px;
    padding: 28px var(--gw-pad) 26px 32px;
  }
  .gw-past > .gw-card .gw-main > *,
  .gw-past > .gw-card.is-page .gw-main > :is(.gw-tally, .gw-entries) { margin: 0; }
  .gw-past > .gw-card .gw-title { max-width: none; margin: 0 0 0 calc(-1 * var(--gw-pad)); padding-left: var(--gw-pad); }
  .gw-past > .gw-card .gw-media { margin: 16px 0 0; }
  .gw-past > .gw-card .gw-when { margin: 12px 0 0; }
  .gw-past .gw-win-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
  }
}

@media (max-width: 1100px) {
  .gw-head-gift { right: 20px; }
}

@media (max-width: 900px) {
  .gw-head-in { min-height: 0; padding: 40px 20px 34px; }
  .gw-page-title,
  .gw-ghost { font-size: 96px; }
  .gw-ghost-a { left: -150px; top: -8px; }
  .gw-ghost-b { left: 240px; top: 110px; }
  .gw-kicker { font-size: 24px; }
  .gw-lead { max-width: 440px; font-size: 16px; }
  .gw-head-gift { right: 10px; top: 30px; width: 220px; }
  .gw-head-branch { right: -260px; top: -60px; width: 520px; }
}

@media (max-width: 760px) {
  .gw-head-in { padding: 20px 16px 22px; }
  .gw-page-title,
  .gw-ghost { font-size: 56px; }
  .gw-ghost-a { left: -96px; top: -12px; }
  .gw-ghost-b { left: 128px; top: 56px; }
  .gw-kicker { max-width: 62%; margin-top: 8px; font-size: 17px; }
  .gw-lead { max-width: none; margin-top: 16px; padding: 12px 16px; border-radius: 18px; font-size: 14.5px; }
  .gw-ghost-b { display: none; }
  .gw-head-gift { right: 6px; top: 8px; width: 116px; rotate: -10deg; }
  .gw-head-branch { right: -150px; top: -46px; width: 300px; }
  .gw-wrap { padding: 0 12px 48px; }
  .gw-live { gap: 26px; }
  .gw-section-title { margin-top: 44px; font-size: 34px; }
}

@media (max-width: 370px) {
  .gw-page-title,
  .gw-ghost { font-size: 46px; }
  .gw-head-gift { width: 96px; }
  .gw-cond-item.has-link { flex-wrap: wrap; row-gap: 6px; }
  .gw-cond-item.has-link > .gw-cond-text { flex-basis: calc(100% - 50px); }
  .gw-cond-item.has-link > .gw-sub { margin-left: 48px; }
  .gw-prizes { grid-template-columns: repeat(auto-fit, minmax(82px, 1fr)); }
  .gw-prize { padding: 50px 7px 9px; }
  .gw-prize-pic { width: 66px; height: 66px; top: -24px; }
  .gw-prize-name { font-size: 13.5px; }
  .gw-prize-win { font-size: 11px; }
}

.gw-nt {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 640px;
  margin: 18px 0 0;
  padding: 20px 26px 22px 20px;
  box-sizing: border-box;
  border-radius: 24px;
  background: var(--gw-panel);
  color: #fff;
}
.gw-nt.is-in { animation: gw-nt-in .7s var(--ease-gentle, ease-out) both; }

.gw-nt-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gw-tile);
  box-shadow: 0 8px 20px rgba(187, 0, 255, .3);
}
.gw-nt-tile svg {
  position: absolute;
  width: 26px;
  height: 26px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gw-nt-bell {
  stroke: #fff;
  stroke-width: 2;
  transform-origin: 50% 14%;
}
.gw-nt-tick {
  stroke: #031400;
  stroke-width: 3;
  stroke-dasharray: 20;
  opacity: 0;
}
.gw-nt[data-state="done"] .gw-nt-tile {
  background: var(--gw-win);
  box-shadow: 0 8px 20px rgba(0, 151, 3, .3);
}
.gw-nt[data-state="done"] .gw-nt-bell { opacity: 0; }
.gw-nt[data-state="done"] .gw-nt-tick { opacity: 1; }
.gw-nt[data-state="off"] .gw-nt-tile {
  background: var(--gw-grey);
  box-shadow: none;
}
.gw-nt[data-state="off"] .gw-nt-bell { stroke: rgba(255, 255, 255, .7); }
.gw-nt[data-state="wait"] .gw-nt-bell { animation: gw-nt-ring 2.4s ease-in-out infinite; }
.gw-nt.is-pop .gw-nt-tile { animation: gw-nt-pop var(--dur-bouncy, .958s) var(--ease-bouncy, ease-out) both; }
.gw-nt.is-pop .gw-nt-tick { animation: gw-nt-draw .45s .1s var(--ease-out, ease-out) both; }

.gw-nt-body {
  flex: 1 1 auto;
  min-width: 0;
}
.gw-nt-title {
  margin: 0;
  padding-top: .12em;
  font-family: var(--display);
  font-size: 25px;
  line-height: 1.04;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-wrap: balance;
}
.gw-nt-note {
  margin: 8px 0 0;
  color: var(--gw-soft);
  font-size: 15px;
  line-height: 1.5;
  text-wrap: pretty;
}
.gw-nt-note:empty { display: none; }

.gw-nt-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 16px;
}

.gw-nt-go,
.gw-nt-save {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  margin: 0;
  padding: .14em 26px 0;
  box-sizing: border-box;
  border: 0;
  border-radius: 999px;
  background: var(--gw-grad);
  color: #fff;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    0 11px 33px rgba(83, 37, 97, .15),
    0 4.4px 8.8px rgba(180, 136, 194, .2);
  transition:
    box-shadow var(--dur-quick, .744s) var(--ease-quick, ease-out),
    scale var(--dur-quick, .744s) var(--ease-quick, ease-out);
  -webkit-tap-highlight-color: transparent;
}
.gw-nt-go::before,
.gw-nt-save::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--gw-grad-hover);
  opacity: 0;
  transition: opacity var(--dur-quick, .744s) var(--ease-quick, ease-out);
}
@media (hover: hover) {
  .gw-nt-go:not(.is-busy):hover,
  .gw-nt-save:not(.is-busy):hover {
    box-shadow:
      0 15px 46px rgba(83, 37, 97, .2),
      0 6.6px 17.6px rgba(180, 136, 194, .25);
  }
  .gw-nt-go:not(.is-busy):hover::before,
  .gw-nt-save:not(.is-busy):hover::before { opacity: 1; }
}
.gw-nt-go:not(.is-busy):active,
.gw-nt-save:not(.is-busy):active { scale: .97; }
.gw-nt-go:not(.is-busy):active::before,
.gw-nt-save:not(.is-busy):active::before { opacity: 1; }
.gw-nt-go:focus-visible,
.gw-nt-save:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.gw-nt-go.is-busy,
.gw-nt-save.is-busy { opacity: .7; cursor: progress; }
.gw-nt-plane {
  flex: none;
  width: 22px;
  height: 22px;
  margin: -.14em 0 0 -4px;
}
.gw-nt[data-linked="1"] button.gw-nt-go .gw-nt-plane { display: none; }

.gw-nt-set {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 14px 7px 18px;
  box-sizing: border-box;
  font-size: 16px;
}
.gw-nt-chev {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: -.16em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: rotate var(--dur-quick, .744s) var(--ease-quick, ease-out);
}
.gw-nt-set[aria-expanded="true"] .gw-nt-chev { rotate: 180deg; }

.gw-nt-msg {
  margin: 12px 0 0;
  color: var(--gw-soft);
  font-size: 14px;
  line-height: 1.45;
}
.gw-nt-msg:empty { display: none; }
.gw-nt-msg.is-bad { color: #ffb3ad; }

.gw-nt-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 20px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--gw-line);
}
.gw-nt-panel:not([hidden]) { animation: gw-nt-open .55s var(--ease-gentle, ease-out) both; }

.gw-nt-sw {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
}
.gw-nt-sw-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.gw-nt-sw-name {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.gw-nt-sw-hint {
  color: var(--gw-mute);
  font-size: 13.5px;
  line-height: 1.4;
}
.gw-nt-switch {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  flex: none;
  width: 52px;
  height: 30px;
  margin: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  cursor: pointer;
  transition: background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.gw-nt-switch::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #cfcfcf;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
  transition:
    translate var(--dur-quick, .744s) var(--ease-quick, ease-out),
    background-color .2s;
}
.gw-nt-switch:checked {
  background: var(--gw-grad);
  box-shadow: none;
}
.gw-nt-switch:checked::after {
  translate: 22px 0;
  background: #fff;
}
.gw-nt-switch:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.gw-nt-rem {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  transition: opacity .2s;
}
.gw-nt-rem:disabled { opacity: .4; }
.gw-nt-legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.gw-nt-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 10px 12px;
}
.gw-nt-box { grid-area: 1 / 1; }
.gw-nt-label {
  grid-area: 1 / 2;
  color: #fff;
  font-size: 15px;
  line-height: 1.35;
  cursor: pointer;
}
.gw-nt-ctl {
  grid-column: 2;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.gw-nt-hint {
  grid-column: 2;
  margin-top: -3px;
  color: var(--gw-mute);
  font-size: 13px;
  line-height: 1.4;
}
.gw-nt-rem:disabled .gw-nt-label { cursor: default; }

.gw-nt-box {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  width: 26px;
  height: 26px;
  margin: 0;
  box-sizing: border-box;
  border: 1.5px dashed var(--gw-dash);
  border-radius: 8px;
  background: rgba(0, 0, 0, .35);
  cursor: pointer;
  transition: border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.gw-nt-box::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 12px;
  margin: -8.5px 0 0 -3.5px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  rotate: 45deg;
  scale: .4;
  opacity: 0;
  transition:
    opacity .15s,
    scale var(--dur-quick, .744s) var(--ease-quick, ease-out);
}
.gw-nt-box:checked {
  border: 0;
  background: var(--gw-grad);
}
.gw-nt-box:checked::after { scale: 1; opacity: 1; }
.gw-nt-box:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.gw-nt-box:disabled { cursor: default; }
@media (hover: hover) {
  .gw-nt-box:not(:checked):not(:disabled):hover { border-color: #8400ff; }
}

.gw-nt-num,
.gw-nt-sel select {
  height: 46px;
  margin: 0;
  box-sizing: border-box;
  border: 1.5px solid rgba(255, 255, 255, .2);
  border-radius: 14px;
  background: var(--gw-solid);
  color: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.gw-nt-num {
  -moz-appearance: textfield;
  appearance: textfield;
  width: 88px;
  padding: .16em 10px 0;
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
  letter-spacing: .03em;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.gw-nt-num::-webkit-outer-spin-button,
.gw-nt-num::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.gw-nt-sel {
  position: relative;
  display: inline-flex;
}
.gw-nt-sel::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -6px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  rotate: 45deg;
  pointer-events: none;
}
.gw-nt-sel select {
  -webkit-appearance: none;
  appearance: none;
  min-width: 124px;
  padding: 0 40px 0 16px;
  font-family: var(--ui);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.gw-nt-sel option {
  background: #07080d;
  color: #fff;
}
.gw-nt-num:focus,
.gw-nt-sel select:focus {
  outline: none;
  border-color: #8400ff;
  box-shadow: 0 0 0 3px rgba(132, 0, 255, .25);
}
.gw-nt-num:disabled,
.gw-nt-sel select:disabled {
  border-color: rgba(255, 255, 255, .1);
  color: var(--gw-mute);
  cursor: default;
}
.gw-nt-sel:has(select:disabled)::after { opacity: .45; }
.gw-nt-unit {
  color: var(--gw-soft);
  font-size: 15px;
}
.gw-nt-row:has(.gw-nt-box:not(:checked)) .gw-nt-unit { color: var(--gw-mute); }

.gw-nt-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.gw-nt-save {
  min-height: 46px;
  padding: .14em 34px 0;
  font-size: 19px;
}
.gw-nt-saved {
  position: relative;
  margin: 0;
  color: var(--gw-soft);
  font-size: 14px;
  line-height: 1.4;
}
.gw-nt-saved:empty { display: none; }
.gw-nt-saved.is-bad { color: #ffb3ad; }
.gw-nt-saved.is-ok {
  padding-left: 28px;
  color: #c9ffd2;
  font-weight: 600;
}
.gw-nt-saved.is-ok::before,
.gw-nt-saved.is-ok::after {
  content: "";
  position: absolute;
  top: 50%;
}
.gw-nt-saved.is-ok::before {
  left: 0;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  border-radius: 50%;
  background: var(--gw-win);
}
.gw-nt-saved.is-ok::after {
  left: 7px;
  width: 4px;
  height: 8px;
  margin-top: -6px;
  border: solid #031400;
  border-width: 0 2px 2px 0;
  rotate: 45deg;
}

@keyframes gw-nt-in {
  from { opacity: 0; translate: 0 12px; }
}
@keyframes gw-nt-open {
  from { opacity: 0; translate: 0 -8px; }
}
@keyframes gw-nt-pop {
  from { scale: .5; }
}
@keyframes gw-nt-draw {
  from { stroke-dashoffset: 20; }
  to { stroke-dashoffset: 0; }
}
@keyframes gw-nt-ring {
  0%, 36%, 100% { rotate: 0deg; }
  6% { rotate: 15deg; }
  12% { rotate: -12deg; }
  18% { rotate: 8deg; }
  24% { rotate: -5deg; }
  30% { rotate: 2deg; }
}

@media (max-width: 900px) {
  .gw-nt { max-width: 460px; }
  .gw-nt-title { font-size: 22px; }
}

@media (max-width: 760px) {
  .gw-nt {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 0 12px;
    max-width: none;
    margin-top: 16px;
    padding: 16px 16px 18px;
    border-radius: 18px;
  }
  .gw-nt-body,
  .gw-nt-text { display: contents; }
  .gw-nt-tile {
    grid-area: 1 / 1;
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
  .gw-nt-tile svg { width: 23px; height: 23px; }
  .gw-nt-title {
    grid-area: 1 / 2;
    font-size: 19px;
  }
  .gw-nt-note,
  .gw-nt-actions,
  .gw-nt-msg,
  .gw-nt-panel { grid-column: 1 / -1; }
  .gw-nt-note {
    margin-top: 12px;
    font-size: 14.5px;
  }
  .gw-nt-actions { margin-top: 14px; }
  .gw-nt-go {
    flex: 1 1 100%;
    min-height: 50px;
    font-size: 20px;
  }
  .gw-nt-set {
    flex: 1 1 100%;
    justify-content: center;
    min-height: 44px;
    font-size: 15px;
  }
  .gw-nt-panel {
    gap: 18px;
    margin-top: 16px;
    padding-top: 16px;
  }
  .gw-nt-sw-name { font-size: 15px; }
  .gw-nt-sw-hint { font-size: 13px; }
  .gw-nt-label { font-size: 14.5px; }
  .gw-nt-save { flex: 1 1 100%; }
  .gw-nt-foot { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .gw-nt.is-in,
  .gw-nt.is-pop .gw-nt-tile,
  .gw-nt.is-pop .gw-nt-tick,
  .gw-nt[data-state="wait"] .gw-nt-bell,
  .gw-nt-panel:not([hidden]) { animation: none; }
  .gw-nt-go,
  .gw-nt-go::before,
  .gw-nt-save,
  .gw-nt-save::before,
  .gw-nt-chev,
  .gw-nt-switch::after,
  .gw-nt-box::after { transition: none; }
}
