/* Çekiliş vitrin, detay, hesap listesi ve oluştur formu */

.gw-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 48px 0 40px;
  color: #fff;
  background: #0a0e16 center / cover no-repeat;
}

.gw-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 14, 22, 0.86) 0%, rgba(10, 14, 22, 0.5) 55%, rgba(10, 14, 22, 0.28) 100%),
    linear-gradient(180deg, rgba(10, 14, 22, 0.12), rgba(10, 14, 22, 0.62));
  z-index: 1;
}

.gw-hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

.gw-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.gw-hero__title {
  margin: 0 0 10px;
  max-width: 18ch;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.gw-hero__sub {
  margin: 0 0 20px;
  max-width: 46ch;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.gw-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 0;
}

.gw-hero__stats > div {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.gw-hero__stats dt {
  margin: 0 0 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.gw-hero__stats dd {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.gw-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.gw-section {
  scroll-margin-top: 140px;
}

.gw-section + .gw-section {
  margin-top: 40px;
}

.gw-section__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.gw-section__title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.gw-section__count {
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: color-mix(in srgb, var(--primary) 14%, var(--muted));
  color: var(--primary);
}

.gw-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gw-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px -4px rgba(0, 0, 0, 0.12);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.gw-card:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
  box-shadow:
    0 0 0 1.5px color-mix(in srgb, var(--primary) 28%, transparent),
    0 18px 36px -12px rgba(0, 0, 0, 0.22);
  transform: translateY(-4px);
}

.gw-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: color-mix(in srgb, var(--primary) 10%, var(--muted));
}

.gw-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gw-card:hover .gw-card__media img {
  transform: scale(1.06);
}

.gw-card__veil {
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background: linear-gradient(180deg, transparent 10%, rgba(8, 10, 16, 0.72));
  pointer-events: none;
}

.gw-card__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 160px;
  font-size: 42px;
  color: var(--primary);
}

.gw-card__fallback--lg {
  min-height: 280px;
  font-size: 64px;
}

.gw-card__badge,
.gw-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.gw-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #fff;
}

.gw-card__badge--live { background: #16a34a; }
.gw-card__badge--drawn { background: #475569; }
.gw-card__badge--scheduled { background: #2563eb; }
.gw-card__badge--pending { background: #d97706; }
.gw-card__badge--cancelled { background: #dc2626; }

.gw-card__badge--live i {
  font-size: 8px;
  animation: gw-pulse 1.4s ease-in-out infinite;
}

.gw-card__aud {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.gw-card__aud--public {
  background: rgba(22, 163, 74, 0.82);
}

.gw-card__aud--ref {
  background: rgba(217, 119, 6, 0.88);
}

.gw-card__timer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  padding: 8px 8px 9px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 140, 0, 0.22), transparent 38%),
    rgba(8, 10, 16, 0.62);
  border-top: 1px solid rgba(255, 140, 0, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.gw-cd {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.gw-cd__cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 4px 2px 5px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.gw-cd__cell + .gw-cd__cell::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 50%;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: translateY(-6px);
  box-shadow: 0 8px 0 rgba(255, 255, 255, 0.45);
}

.gw-cd__cell strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.gw-cd__cell small {
  margin-top: 3px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.gw-cd__cell--sec strong {
  color: #ffb347;
}

.gw-cd__ended {
  display: none;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.gw-card__timer.is-ended .gw-cd {
  display: none;
}

.gw-card__timer.is-ended .gw-cd__ended {
  display: flex;
}

.gw-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 12px 14px;
  min-width: 0;
}

.gw-card__head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
}

.gw-card__face {
  display: block;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--muted);
  box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--border);
}

.gw-card__face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gw-card__face--site {
  box-shadow: 0 0 0 2px var(--card), 0 0 0 3px color-mix(in srgb, var(--primary) 55%, var(--border));
}

.gw-card__face.is-static {
  pointer-events: none;
}

.gw-card__id {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.gw-card__who {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.gw-card__user {
  min-width: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--foreground);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gw-card__user:hover {
  color: var(--primary);
}

.gw-card__user.is-static {
  pointer-events: none;
}

.gw-card__role {
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}

.gw-card__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.gw-card__title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.28;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gw-card__title a {
  color: inherit;
  text-decoration: none;
}

.gw-card__title a:hover {
  color: var(--primary);
}

.gw-author {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  padding: 7px 10px 7px 7px;
  border-radius: 12px;
  color: var(--foreground);
  text-decoration: none;
  background: color-mix(in srgb, var(--muted) 78%, transparent);
  border: 1px solid var(--border);
}

.gw-author img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--muted);
  box-shadow: 0 0 0 2px var(--card);
}

.gw-author--site img {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 55%, var(--card));
}

.gw-author__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.gw-author__name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gw-author__role {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-foreground);
}

.gw-author:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
  color: inherit;
}

.gw-author:hover .gw-author__name {
  color: var(--primary);
}

.gw-author.is-static {
  pointer-events: none;
}

.gw-detail__title {
  min-width: 0;
}

.gw-card__excerpt {
  margin: 0;
  font-size: 13px;
  color: var(--muted-foreground);
}

.gw-card__prizes {
  --gw-prize-row: 40px;
  height: calc(var(--gw-prize-row) * 2);
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--muted) 62%, var(--card));
}

.gw-card__prizes.is-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--primary) 55%, transparent) transparent;
}

.gw-card__prizes.is-scroll::-webkit-scrollbar {
  width: 6px;
}

.gw-card__prizes.is-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 45%, var(--border));
}

.gw-card__prizes ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gw-card__prizes li {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--gw-prize-row);
  padding: 0 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}

.gw-card__prizes li:last-child {
  border-bottom: 0;
}

.gw-medal {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #1a1208;
  background: #d4d4d8;
}

.gw-medal--1 { background: #f5c451; }
.gw-medal--2 { background: #c5cdd8; }
.gw-medal--3 { background: #d7a078; }
.gw-medal--4 {
  background: color-mix(in srgb, var(--foreground) 10%, var(--card));
  color: var(--foreground);
}

.gw-card__prize {
  min-width: 0;
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gw-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.gw-card__stats > div {
  min-width: 0;
  padding: 8px 8px 9px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--muted) 70%, transparent);
}

.gw-card__stats small {
  display: block;
  margin-bottom: 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.gw-card__stats strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gw-card__meta,
.gw-card__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  font-size: 12px;
  color: var(--muted-foreground);
}

.gw-card__foot {
  justify-content: space-between;
  margin-top: auto;
}

.gw-card__go {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  background: var(--primary);
}

.gw-card__go:hover {
  background: var(--primary-hover, #e07a00);
  color: #fff;
}

.gw-card.is-drawn .gw-card__go {
  color: var(--foreground);
  background: var(--muted);
}

.gw-empty {
  margin: 0;
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted-foreground);
}

.gw-empty--panel {
  text-align: center;
  padding: 40px 20px;
  background: var(--card);
  border-radius: 18px;
}

.gw-empty--panel i {
  font-size: 32px;
  color: var(--primary);
}

.gw-empty--panel h3 {
  margin: 10px 0 6px;
  font-size: 18px;
  color: var(--foreground);
}

.gw-empty--panel p {
  margin: 0 0 16px;
}

@keyframes gw-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.gw-crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--muted-foreground);
}

.gw-crumb a { color: inherit; }

.gw-crumb span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gw-detail__card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 12px -4px rgba(0, 0, 0, 0.12);
}

.gw-detail__media {
  position: relative;
  display: block;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: color-mix(in srgb, var(--primary) 10%, var(--muted));
}

.gw-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gw-detail__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

.gw-detail__head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.gw-detail__head .gw-card__face {
  width: 56px;
  height: 56px;
}

.gw-detail__title {
  margin: 0;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.gw-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.gw-stats > div {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--muted) 70%, transparent);
}

.gw-stats dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.gw-stats dd {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gw-detail__content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.gw-block {
  padding: 0;
  margin: 0;
}

.gw-block h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.gw-ranks,
.gw-winners {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: color-mix(in srgb, var(--muted) 45%, var(--card));
}

.gw-ranks li,
.gw-winners li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}

.gw-ranks li:last-child,
.gw-winners li:last-child {
  border-bottom: 0;
}

.gw-ranks__body,
.gw-winners__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gw-ranks__body span,
.gw-winners__body span {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.gw-ranks__winner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 180px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  background: color-mix(in srgb, var(--muted) 70%, transparent);
  border: 1px solid var(--border);
}

.gw-ranks__winner img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--muted);
}

.gw-ranks__winner strong {
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gw-ranks__winner:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}

.gw-ranks__winner:hover strong {
  color: var(--primary);
}

.gw-ranks__winner.is-static {
  pointer-events: none;
}

.gw-prose {
  line-height: 1.65;
}

.gw-prose :where(p, ul, ol, blockquote) {
  margin: 0 0 10px;
}

.gw-join {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--primary) 7%, var(--card));
}

.gw-join h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
}

.gw-rules {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.gw-rules li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  background: color-mix(in srgb, var(--card) 70%, transparent);
  border: 1px solid var(--border);
}

.gw-rules li i {
  color: var(--primary);
  font-size: 16px;
  line-height: 1.2;
}

.gw-ticket {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border);
}

.gw-ticket__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gw-ticket__head i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  font-size: 15px;
}

.gw-ticket h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
}

.gw-ticket__lead {
  margin: 0;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.45;
}

.gw-ticket__facts {
  margin: 0;
  padding: 0 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted-foreground);
}

.gw-ticket__hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted-foreground);
}

.gw-ticket__you {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  margin: 2px 0 0;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.gw-ticket__you.is-ok {
  color: #166534;
  background: color-mix(in srgb, #16a34a 14%, var(--card));
}

.gw-ticket__you.is-empty {
  color: #9a3412;
  background: color-mix(in srgb, var(--primary) 16%, var(--card));
}

.gw-join__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1a0d00;
  cursor: pointer;
  background: linear-gradient(180deg, #ffb14a 0%, var(--primary) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 12px 22px -12px color-mix(in srgb, var(--primary) 75%, transparent);
  transition: transform 0.15s, filter 0.15s, box-shadow 0.15s;
}

.gw-join__btn i {
  font-size: 18px;
  line-height: 1;
}

.gw-join__btn:hover {
  filter: brightness(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 14px 26px -12px color-mix(in srgb, var(--primary) 85%, transparent);
}

.gw-join__btn:active {
  transform: scale(0.98);
}

.gw-join form {
  margin: 0;
}

.gw-join__ok {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  min-height: 50px;
  padding: 0 14px;
  border-radius: 14px;
  color: #166534;
  font-weight: 800;
  background: color-mix(in srgb, #16a34a 14%, var(--card));
  border: 1px solid color-mix(in srgb, #16a34a 22%, var(--border));
}

.gw-join__lock {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  color: #9a3412;
  background: color-mix(in srgb, var(--primary) 12%, var(--card));
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
}

.gw-muted { color: var(--muted-foreground); }

.gw-chip {
  background: var(--muted);
  color: var(--foreground);
}

@media (min-width: 960px) {
  .gw-detail__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    grid-template-rows: max-content max-content 1fr;
    grid-template-areas:
      "head aside"
      "stats aside"
      "content aside";
    gap: 20px 24px;
    padding: 22px;
    align-items: start;
    align-content: start;
  }

  .gw-detail__head { grid-area: head; }
  .gw-stats { grid-area: stats; }
  .gw-detail__aside { grid-area: aside; position: sticky; top: 88px; }
  .gw-detail__content { grid-area: content; }

  .gw-detail__media {
    height: 240px;
  }
}

.myp-card__badge--live { background: color-mix(in srgb, #16a34a 16%, var(--card)); color: #16a34a; }
.myp-card__badge--drawn { background: var(--muted); }
.myp-card__badge--scheduled { background: color-mix(in srgb, #2563eb 16%, var(--card)); color: #2563eb; }
.myp-card__badge--pending { background: color-mix(in srgb, #d97706 16%, var(--card)); color: #d97706; }
.myp-card__badge--cancelled { background: color-mix(in srgb, #dc2626 16%, var(--card)); color: #dc2626; }

.gw-mine {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gw-mine__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--dashboard-panel-bg, var(--card));
}

.gw-mine__intro {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.gw-mine__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary);
  font-size: 22px;
  flex-shrink: 0;
}

.gw-mine__title {
  margin: 0;
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.gw-mine__count {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-foreground);
}

.gw-mine__create {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  color: #1a0d00;
  background: linear-gradient(180deg, #ffb14a 0%, var(--primary) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.gw-mine__create:hover {
  filter: brightness(1.04);
  color: #1a0d00;
}

.gw-mine__filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.gw-mine__search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--dashboard-panel-bg, var(--card));
}

.gw-mine__search i {
  color: var(--muted-foreground);
  font-size: 18px;
}

.gw-mine__search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--foreground);
}

.gw-mine__search input:focus {
  outline: none;
}

.gw-mine__status select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--dashboard-panel-bg, var(--card));
  color: var(--foreground);
  font: inherit;
  font-weight: 600;
}

.gw-mine__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gw-mine__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.gw-mine__range {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-foreground);
}

.gw-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}

.gw-pager a,
.gw-pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--foreground);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.gw-pager a:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  color: var(--primary);
}

.gw-pager .is-current {
  background: var(--primary);
  border-color: var(--primary);
  color: #1a0d00;
}

.gw-pager .is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.gw-pager__sep {
  border: 0;
  background: transparent;
  color: var(--muted-foreground);
}

.gw-mine-card {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--dashboard-panel-bg, var(--card));
}

.gw-mine-card__media {
  height: 140px;
  background: color-mix(in srgb, var(--primary) 10%, var(--muted));
}

.gw-mine-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gw-mine-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 14px;
}

.gw-mine-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gw-mine-card__badge,
.gw-mine-card__chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.gw-mine-card__badge--live {
  background: color-mix(in srgb, #16a34a 16%, var(--card));
  color: #15803d;
}

.gw-mine-card__badge--drawn {
  background: var(--muted);
  color: var(--muted-foreground);
}

.gw-mine-card__badge--scheduled {
  background: color-mix(in srgb, #2563eb 16%, var(--card));
  color: #1d4ed8;
}

.gw-mine-card__badge--pending {
  background: color-mix(in srgb, #d97706 16%, var(--card));
  color: #b45309;
}

.gw-mine-card__badge--cancelled {
  background: color-mix(in srgb, #dc2626 14%, var(--card));
  color: #dc2626;
}

.gw-mine-card__chip {
  background: var(--muted);
  color: var(--muted-foreground);
}

.gw-mine-card__chip.is-ref {
  background: color-mix(in srgb, var(--primary) 14%, var(--card));
  color: #9a3412;
}

.gw-mine-card__chip.is-on {
  background: color-mix(in srgb, #16a34a 12%, var(--card));
  color: #15803d;
}

.gw-mine-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.gw-mine-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gw-mine-card__stats li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted-foreground);
}

.gw-mine-card__stats i {
  font-size: 15px;
  color: var(--primary);
}

.gw-mine-card__go {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.gw-mine-card__go:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
  color: var(--primary);
}

@media (min-width: 720px) {
  .gw-mine-card {
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: stretch;
  }

  .gw-mine-card__media {
    height: auto;
    min-height: 100%;
  }

  .gw-mine-card__body {
    padding: 16px 18px;
  }
}

@media (max-width: 639px) {
  .gw-mine__head {
    flex-direction: column;
    align-items: stretch;
  }

  .gw-mine__create {
    width: 100%;
  }

  .gw-mine__filters {
    grid-template-columns: 1fr;
  }

  .gw-mine__status select {
    width: 100%;
  }

  .gw-mine-card__go {
    width: 100%;
    justify-content: center;
  }
}

.gw-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--primary) 12%, var(--card));
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
  color: #9a3412;
}

.gw-notice i {
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 20px;
  color: var(--primary);
}

.gw-notice strong {
  display: block;
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #7c2d12;
}

.gw-notice p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: #9a3412;
}

.gw-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gw-form__section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--muted) 35%, var(--card));
}

.gw-form__section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gw-form__section-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary);
}

.gw-form__section-icon i {
  font-size: 16px;
  line-height: 1;
}

.gw-form__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.gw-form__row--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gw-form__hint {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--muted-foreground);
}

.gw-form__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 4px;
}

.gw-form__totals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-foreground);
}

.gw-form__totals strong {
  color: var(--foreground);
  font-weight: 800;
}

.gw-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  min-width: 220px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1a0d00;
  cursor: pointer;
  background: linear-gradient(180deg, #ffb14a 0%, var(--primary) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 12px 22px -12px color-mix(in srgb, var(--primary) 75%, transparent);
  transition: transform 0.15s, filter 0.15s, box-shadow 0.15s;
}

.gw-form__submit i {
  font-size: 18px;
  line-height: 1;
}

.gw-form__submit:hover {
  filter: brightness(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 14px 26px -12px color-mix(in srgb, var(--primary) 85%, transparent);
}

.gw-form__submit:active {
  transform: scale(0.98);
}

.gw-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

.gw-field input,
.gw-field select,
.gw-editor__area {
  width: 100%;
  font: inherit;
  font-weight: 500;
  color: var(--foreground);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 12px;
  min-height: 44px;
}

.gw-field input:focus,
.gw-field select:focus,
.gw-editor__area:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent);
}

.gw-field input[type="file"] {
  padding: 9px 12px;
}

.gw-editor {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.gw-editor__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid var(--border);
  background: var(--muted);
}

.gw-editor__bar button {
  border: 0;
  background: transparent;
  color: var(--foreground);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
}

.gw-editor__bar button:hover {
  background: color-mix(in srgb, var(--primary) 14%, transparent);
}

.gw-editor__area {
  min-height: 160px;
  border: 0;
  border-radius: 0;
}

.gw-rank {
  margin: 0 0 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}

.gw-rank:last-child {
  margin-bottom: 0;
}

.gw-rank__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.gw-rank__head strong {
  font-size: 14px;
  font-weight: 800;
}

.gw-prize {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 8px;
}

.gw-prize [hidden] {
  display: none !important;
}

.gw-prize__wallet,
.gw-prize__epin {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.gw-prize__epin {
  grid-template-columns: minmax(0, 1fr) 88px;
}

.gw-epin {
  position: relative;
}

.gw-epin__search {
  position: relative;
}

.gw-epin__search > i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  pointer-events: none;
}

.gw-epin__search input {
  width: 100%;
  padding-left: 36px;
}

.gw-epin__list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.28);
}

.gw-epin__empty {
  margin: 0;
  padding: 12px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-foreground);
}

.gw-epin__item,
.gw-epin__picked {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.gw-epin__item:hover,
.gw-epin__item:focus-visible {
  background: color-mix(in srgb, var(--primary) 10%, var(--muted));
}

.gw-epin__picked {
  padding: 8px 10px;
  cursor: default;
  background: color-mix(in srgb, var(--muted) 70%, var(--card));
  border: 1px solid var(--border);
}

.gw-epin__thumb {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--muted);
  color: var(--muted-foreground);
  font-size: 18px;
}

.gw-epin__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gw-epin__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gw-epin__meta strong {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.gw-epin__meta em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

.gw-epin__clear {
  border: 0;
  background: transparent;
  color: var(--muted-foreground);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.gw-epin__clear:hover {
  color: var(--primary);
}

.gw-prize__remove {
  white-space: nowrap;
}

@media (max-width: 860px) {
  .gw-form__row,
  .gw-form__row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .gw-form__row,
  .gw-form__row--2 {
    grid-template-columns: 1fr;
  }

  .gw-form__section {
    padding: 14px;
  }

  .gw-form__foot {
    flex-direction: column;
    align-items: stretch;
  }

  .gw-form__submit {
    width: 100%;
    min-width: 0;
  }

  .gw-prize {
    grid-template-columns: 1fr;
  }

  .gw-prize__epin {
    grid-template-columns: 1fr;
  }

  .gw-prize__qty {
    max-width: 140px;
  }

  .gw-prize__remove {
    justify-self: start;
  }

  .gw-epin__list {
    max-height: min(360px, 55vh);
    padding: 8px;
  }

  .gw-epin__item,
  .gw-epin__picked {
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 10px;
  }

  .gw-epin__thumb {
    width: 52px;
    height: 52px;
  }

  .gw-epin__meta strong {
    font-size: 14px;
    -webkit-line-clamp: 3;
    white-space: normal;
  }

  .gw-epin__clear {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 479px) {
  .gw-notice {
    padding: 12px;
  }

  .gw-form__totals {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 1199px) {
  .gw-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .gw-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gw-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gw-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .gw-hero {
    padding: 28px 0 24px;
  }

  .gw-hero__title {
    max-width: none;
    font-size: clamp(24px, 7vw, 32px);
  }

  .gw-hero__sub {
    font-size: 13.5px;
    margin-bottom: 16px;
  }

  .gw-hero__stats {
    gap: 8px;
    margin-top: 16px;
  }

  .gw-hero__stats > div {
    padding: 8px 10px;
  }

  .gw-hero__stats dd {
    font-size: 15px;
  }

  .gw-wrap {
    padding: 18px 12px 48px;
  }

  .gw-section {
    scroll-margin-top: 118px;
  }

  .gw-section + .gw-section {
    margin-top: 28px;
  }

  .gw-section__title {
    font-size: 18px;
  }

  .gw-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gw-card {
    border-radius: 16px;
  }

  .gw-detail__body {
    padding: 14px;
    gap: 14px;
  }

  .gw-detail__head {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .gw-detail__head .gw-card__face {
    width: 48px;
    height: 48px;
  }

  .gw-detail__title {
    font-size: 20px;
  }

  .gw-ranks li {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .gw-ranks__winner {
    grid-column: 2;
    max-width: 100%;
    justify-self: start;
  }

  .gw-detail__media {
    height: 180px;
  }

  .gw-card__stats strong {
    font-size: 12.5px;
  }

  .gw-card__go {
    min-height: 40px;
  }
}

@media (max-width: 420px) {
  .gw-hero__stats dd {
    font-size: 14px;
  }

  .gw-card__timer {
    padding: 7px 6px 8px;
  }

  .gw-cd__cell {
    min-height: 40px;
    border-radius: 8px;
  }

  .gw-cd__cell strong {
    font-size: 14px;
  }

  .gw-cd__cell small {
    font-size: 8px;
  }
}

@media (hover: none) {
  .gw-card:hover {
    transform: none;
    box-shadow: 0 2px 12px -4px rgba(0, 0, 0, 0.12);
  }

  .gw-card:hover .gw-card__media img {
    transform: none;
  }

  .gw-join__btn:hover,
  .gw-form__submit:hover {
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gw-card,
  .gw-card__media img,
  .gw-card__badge--live i,
  .gw-join__btn,
  .gw-form__submit {
    transition: none;
    animation: none;
    transform: none;
  }
}
