html:has(.zg-home[open]) { overflow: hidden; }
.zg-home {
  position: fixed;
  inset: 0;
  width: min(780px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid #d29aa057;
  border-radius: 22px;
  background: #20172a;
  color: #fff6ee;
  color-scheme: dark;
  box-shadow: 0 28px 96px #08040cd6;
  font-family: var(--font, system-ui, sans-serif);
  text-align: left;
}
.zg-home::backdrop { background: #0a0613bb; backdrop-filter: blur(7px); }
.zg-home * { box-sizing: border-box; }
.zg-home-grid { display: grid; grid-template-columns: 40% minmax(0, 1fr); }
.zg-home-art {
  position: relative;
  min-height: 350px;
  background: linear-gradient(180deg, #2c142511 44%, #251326ed 100%),
    url('/images/giveaway/gta-vi-jason-lucia.jpg') center 38% / cover;
}
.zg-home-art img {
  position: absolute;
  width: 67%;
  height: auto;
  bottom: 7%;
  left: 16.5%;
  filter: drop-shadow(0 8px 12px #241123b9);
}
.zg-home-detail {
  padding: clamp(24px, 4.25vw, 44px);
  background: radial-gradient(ellipse at 90% 0%, #573154 0%, transparent 68%), #23192d;
}
.zg-home-detail p { margin: 0; color: #e0d5e5; line-height: 1.52; }
.zg-home-detail .zg-home-date { color: #ffd5a6; font-size: .84rem; font-weight: 650; }
.zg-home h2 {
  margin: 9px 0 12px;
  padding: 0;
  color: #fff4ed;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.045em;
}
.zg-home-detail .zg-home-free { margin-top: .4rem; font-size: .89rem; color: #cfbdcf; }
.zg-home-discord, .zg-home-enter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.zg-home-discord {
  margin-top: 20px;
  color: #fff;
  background: #4a56dc;
  border: 1px solid #a0a6ff66;
  box-shadow: 0 7px 22px #1713535c;
}
.zg-home-discord:hover { color: #fff; background: #5964ec; }
.zg-home-discord img { flex: 0 0 23px; filter: brightness(0) invert(1); }
.zg-home-enter {
  margin-top: 8px;
  color: #ffe4d7;
  background: #ffffff08;
  border: 1px solid #ffffff23;
}
.zg-home-enter:hover { background: #ffffff14; }
.zg-home-optout {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 32px;
  margin-top: 8px;
  color: #d9cce2;
  font-size: .86rem;
  cursor: pointer;
}
.zg-home-optout input { width: 16px; height: 16px; margin: 0; flex: 0 0 16px; accent-color: #929aff; }
.zg-home-close {
  position: absolute;
  z-index: 1;
  inset: 11px 11px auto auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #ffffff47;
  border-radius: 50%;
  background: #20162de8;
  color: #fff;
  font: 24px/1 system-ui, sans-serif;
  cursor: pointer;
}
.zg-home :is(a,button,input):focus-visible { outline: 2px solid #ffd4aa; outline-offset: 2px; }
@media (max-width: 620px) {
  .zg-home { width: min(420px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border-radius: 16px; }
  .zg-home-grid { grid-template-columns: minmax(0, 1fr); }
  .zg-home-art { min-height: clamp(124px, 38vw, 170px); background-position: center 27%; }
  .zg-home-art img { width: 35%; left: auto; right: 7%; bottom: 4%; }
  .zg-home-detail { padding: 20px; }
  .zg-home h2 { margin: 5px 0 9px; }
  .zg-home-discord { margin-top: 15px; }
}
@media (prefers-reduced-motion: no-preference) {
  .zg-home[open] { animation: zg-home-in .22s ease-out both; }
  @keyframes zg-home-in {
    from { opacity: 0; transform: translateY(8px) scale(.985); }
    to { opacity: 1; transform: none; }
  }
}
