/* Dehayuk standalone premium game shell. */
:root {
  --wg-bg: #070b11;
  --wg-surface: rgba(14, 21, 32, 0.86);
  --wg-surface-solid: #0f1724;
  --wg-border: rgba(43, 228, 142, 0.28);
  --wg-border-soft: rgba(255, 255, 255, 0.12);
  --wg-text: #f3f8ff;
  --wg-muted: #9eb0c7;
  --wg-emerald: #24ee89;
  --wg-emerald-deep: #13a962;
  --wg-ink: #04190e;
}

.wg-hud-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  pointer-events: none;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.wg-hud-group {
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
  flex-wrap: nowrap;
  min-width: 0;
}

.wg-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--wg-border-soft);
  background: var(--wg-surface);
  color: var(--wg-text);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.wg-pill:hover {
  border-color: var(--wg-emerald);
  background: rgba(20, 31, 46, 0.94);
  transform: translateY(-1px);
}

.wg-pill.is-brand {
  border-color: var(--wg-border);
  cursor: default;
}

.wg-pill.is-brand:hover {
  transform: none;
}

.wg-pill.is-brand .wg-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wg-emerald);
  box-shadow: 0 0 10px var(--wg-emerald);
}

.wg-pill.is-stat {
  border-color: rgba(244, 200, 105, 0.32);
  color: #fde6a8;
  cursor: default;
}

.wg-pill.is-stat:hover {
  transform: none;
}

.wg-pill.is-icon {
  width: 36px;
  padding: 0;
  justify-content: center;
}

/* Flagship Glass Launch / Overlay Deck */
.wg-overlay {
  position: fixed;
  inset: 0;
  z-index: 99980;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 16px 20px;
  background: radial-gradient(circle at 50% 20%, rgba(16, 40, 34, 0.72) 0%, rgba(6, 10, 16, 0.9) 72%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--wg-text);
  overflow-y: auto;
}

.wg-overlay[hidden] {
  display: none !important;
}

.wg-deck {
  width: min(100%, 500px);
  min-width: 0;
  border-radius: 24px;
  border: 1px solid var(--wg-border);
  background: linear-gradient(180deg, rgba(19, 28, 42, 0.96) 0%, rgba(10, 15, 23, 0.98) 100%);
  box-shadow: 0 32px 84px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
}

.wg-deck-hero {
  position: relative;
  height: 156px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 20px;
}

.wg-deck-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 10, 16, 0.15) 0%, rgba(10, 15, 23, 0.96) 100%);
}

.wg-deck-hero > * {
  position: relative;
  z-index: 2;
}

.wg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(10, 38, 25, 0.88);
  border: 1px solid rgba(36, 238, 137, 0.45);
  color: var(--wg-emerald);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.wg-deck-hero h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.6px;
  color: #ffffff;
  line-height: 1.15;
}

.wg-deck-hero p {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: #c2d2e4;
  overflow-wrap: anywhere;
}

.wg-deck-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wg-field-label {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wg-muted);
  margin-bottom: 7px;
}

.wg-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.wg-chip {
  flex: 1 1 auto;
  min-height: 36px;
  padding: 0 11px;
  border-radius: 10px;
  border: 1px solid var(--wg-border-soft);
  background: rgba(255, 255, 255, 0.04);
  color: #d6e2f0;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 0;
}

.wg-chip:hover {
  border-color: rgba(36, 238, 137, 0.45);
  color: #ffffff;
}

.wg-chip.on {
  background: rgba(36, 238, 137, 0.16);
  border-color: var(--wg-emerald);
  color: var(--wg-emerald);
}

.wg-cta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.wg-btn-primary {
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #24ee89 0%, #13a962 100%);
  color: var(--wg-ink);
  font-size: 14.5px;
  font-weight: 900;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(36, 238, 137, 0.28);
  transition: transform 0.14s ease, filter 0.14s ease;
}

.wg-btn-primary:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.wg-btn-secondary {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--wg-border-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--wg-text);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.wg-btn-secondary:hover {
  border-color: var(--wg-emerald);
  color: var(--wg-emerald);
}

.wg-auto-note {
  margin: 0;
  color: var(--wg-muted, #a9b6c8);
  font: 600 13px/1.45 Inter, system-ui, sans-serif;
  text-align: center;
  overflow-wrap: anywhere;
}

.wg-key-hint {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 11.5px;
  color: var(--wg-muted);
}

.wg-key-hint b {
  color: var(--wg-text);
}

.wg-key-hint > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

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

.wg-stat-box {
  padding: 11px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.wg-stat-box small {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--wg-muted);
}

.wg-stat-box strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
}

.wg-help-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(5, 9, 15, 0.78);
  backdrop-filter: blur(8px);
}

.wg-help-modal[hidden] {
  display: none !important;
}

.wg-help-card {
  width: min(100%, 420px);
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--wg-border);
  background: var(--wg-surface-solid);
  color: var(--wg-text);
  font-family: Inter, system-ui, sans-serif;
}

.wg-help-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  color: #ffffff;
}

.wg-help-card ul {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--wg-muted);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .wg-hud-bar {
    padding: 8px 10px;
    gap: 5px;
  }
  .wg-hud-group {
    gap: 4px;
  }
  .wg-pill.is-brand,
  .wg-pill.is-stat,
  #wg-fs-btn {
    display: none;
  }
  .wg-pill {
    min-height: 32px;
    height: 32px;
    padding: 0 9px;
    font-size: 11px;
    gap: 4px;
  }
  .wg-pill.is-icon {
    width: 32px;
    padding: 0;
  }
  .wg-overlay {
    align-items: flex-start;
    padding: 50px 10px 18px;
  }
  .wg-deck {
    border-radius: 20px;
  }
  .wg-deck-hero {
    height: 118px;
    padding: 12px 14px;
  }
  .wg-deck-hero h1 {
    font-size: 21px;
  }
  .wg-deck-hero p {
    font-size: 11.5px;
  }
  .wg-deck-body {
    padding: 14px;
    gap: 11px;
  }
  .wg-chip {
    flex: 1 1 calc(50% - 4px);
    min-height: 33px;
    font-size: 11.5px;
    padding: 0 9px;
    white-space: normal;
  }
  .wg-btn-primary {
    min-height: 42px;
    font-size: 13.5px;
  }
  .wg-btn-secondary {
    min-height: 40px;
    font-size: 12.5px;
  }
  .wg-cta-grid {
    grid-template-columns: 1fr;
  }
}
