:root {
  --bg: #000b05;
  --card: #101018;
  --muted: #a1a1aa;
  --text: #f5f5f7;
  --ring: rgba(255, 255, 255, 0.08);
  --brand: #10b981;
  --brand-weak: rgba(16, 185, 129, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
	background-image: url("../images/GDG_BG_PawPattern.png");
	background-size: 100px;
	background-repeat: repeat;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	margin-left: 0px;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    Apple Color Emoji, Segoe UI Emoji;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.2) blur(8px);
  background: rgba(11, 11, 16, 0.7);
  border-bottom: 1px solid var(--ring);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.logo {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  border: 1px solid var(--ring);
  background: rgba(255, 255, 255, 0.03);
  object-fit: cover;
}

.brand {
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 20px;
}

.brand em {
  color: var(--brand);
  font-style: normal;
}

.nav {
  margin-left: auto;
  display: none;
  gap: 20px;
  color: #cfcfd6;
  font-size: 14px;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.lang {
  margin-left: 12px;
  background: var(--brand-weak);
  border: 0;
  color: var(--text);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 14px;
}

.section {
  padding: 72px 0;
}

.hero {
  overflow: hidden;
}

.grid2 {
  display: grid;
  gap: 24px;
}

@media (min-width: 920px) {
  .grid2 {
    grid-template-columns: 1fr 1fr;
  }
}

.h1 {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

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

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.badges a {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.badges img[data-badge] {
  display: block;
  height: 40px;
  width: auto;
  object-fit: contain;
}

.btn {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--ring);
  border-radius: 24px;
  overflow: hidden;
}

.cardStore {
	background-color: #dedede;
	background-image: url("../images/GDG_BG_PawPattern.png");
	background-size: 100px;
	border-radius: 25px;
	box-shadow: 1px 1px 9px 1px;
  margin-top: 50px;
}

.cardStore h2,h3,li {
	color: var(--brand);
}

.cardStore p {
	color: var(--card);
}

.storeRow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.storeRow a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.socialRow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.socialRow a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
}

.card-inner {
  padding: 20px;
}

.margin {
  margin-top: 30px; 
}

.h2 {
  font-size: 28px;
  font-weight: 800;
}

.games {
  display: grid;
  gap: 20px;
}

@media (min-width: 700px) {
  .games {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .games {
    grid-template-columns: repeat(3, 1fr);
  }
}

.thumb {
  border-radius: 16px;
  overflow: hidden;
  border: 0px solid var(--brand);
  background: black;
}

.thumb > img {
  width: 100%;
  height: auto;
  display: block;
}

/* Typography helpers */
.small {
  font-size: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand);
}

/* Footer */
.footer {
  border-top: 1px solid var(--ring);
  padding: 28px 0;
  color: #b5b5bd;
  font-size: 14px;
}

/* ============================
   Modal (no-stretch carousel)
   ============================ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none; /* JS sets to flex when open */
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-panel {
  background: #0f1117;
  border: 1px solid var(--ring);
  border-radius: 16px;
  max-width: min(96vw, 1200px);
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

/* Head row (title + close) */
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 10px;
  border-bottom: 1px solid var(--ring);
}

/* Flexible viewer that preserves ratio */
.modal-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: black;
}

#mediaShot {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain; /* key: no stretch */
  background: transparent;
  border-radius: 12px;
}

/* Prev/Next controls positioned over media */
#mediaPrev,
#mediaNext {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--ring);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}

#mediaPrev {
  left: 16px;
}

#mediaNext {
  right: 16px;
}

#mediaPrev:hover,
#mediaNext:hover {
  background: rgba(255, 255, 255, 0.12);
}

#mediaPrev:focus-visible,
#mediaNext:focus-visible {
  outline: 2px solid var(--brand);
}

/* Dots */
#mediaDots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 0 16px;
}

.dot-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: currentColor;
  opacity: 0.4;
  cursor: pointer;
}

.dot-btn[aria-current="true"] {
  opacity: 1;
}

.dot-btn:focus-visible {
  outline: 2px solid var(--brand);
}

/* Generic buttons + inputs */
.button {
  background: var(--brand-weak);
  border: 0;
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 12px;
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.input,
.textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ring);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.notice {
  font-size: 12px;
  color: #a0a0a8;
}

.success {
  color: #6ee7b7;
  font-size: 14px;
}

.error {
  color: #fca5a5;
  font-size: 14px;
}

ul.clean {
  padding-left: 0;
  list-style: none;
  margin: 0;
}

/* --- Legal page helpers --- */
.legal {
  max-width: 820px;
}
.legal h1 {
  font-size: 32px;
  margin: 0 0 10px;
}
.legal p, .legal li, .legal address {
  line-height: 1.7;
}
.legal address {
  font-style: normal;
}

/* Back-to-top button */
#btt {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--ring);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
#btt:hover { background: rgba(255,255,255,.12); }
