/* =========================================================
   ETHIO TELECOM DESIGN SYSTEM
   Official Colors:
   - Lemon Green: #8DC63F
   - Dark Blue:   #0072BC
   - Light Gray:  #F4F4F4
   - White:       #FFFFFF
   - Black:       #231F20

   Typography:
   - Headline Large: Gotham Bold / Noto Sans Ethiopic Bold (Main menu)
   - Headline Small: Gotham Medium / Noto Sans Ethiopic Bold (Sub menu)
   - Body text:      Gotham Regular / Noto Sans Ethiopic Regular
   ========================================================= */

:root {
  /* Ethio Telecom Core Color Tokens */
  --c-lemon-green: #8DC63F;
  --c-lemon-green-hover: #7cb832;
  --c-lemon-green-light: #f1f9e8;
  --c-lemon-green-dark: #5b8720;

  --c-dark-blue: #0072BC;
  --c-dark-blue-hover: #005a96;
  --c-dark-blue-dark: #004573;
  --c-dark-blue-light: #e6f1f8;

  --c-light-gray: #F4F4F4;
  --c-light-gray-hover: #e8e8e8;
  --c-white: #FFFFFF;
  --c-black: #231F20;
  --c-black-soft: #3b3a39;
  --c-gray-muted: #666666;
  --c-gray-faint: #999999;
  --c-border: #e2e8f0;

  /* Layout Background Tokens (Default / Light) */
  --bg-header: #8DC63F;       /* Layout: Header Lemon Green */
  --bg-body: #FFFFFF;         /* Layout: Body White */
  --bg-footer: #F4F4F4;       /* Layout: Footer Light Gray */
  --bg-card: #FFFFFF;
  --bg-elev: #FFFFFF;
  --bg-input: #F4F4F4;

  /* Layout Text Colors */
  --text-header-title: #0072BC;
  --text-header-sub: #231F20;
  --text-body: #231F20;
  --text-dim: #555555;
  --text-footer: #231F20;

  /* Typography Stacks */
  --font-primary: "Gotham", "Montserrat", "Noto Sans Ethiopic", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-headline-large: "Gotham Bold", "Montserrat", "Noto Sans Ethiopic", sans-serif;
  --font-headline-small: "Gotham Medium", "Montserrat", "Noto Sans Ethiopic", sans-serif;
  --font-body: "Gotham", "Montserrat", "Noto Sans Ethiopic", sans-serif;

  /* Misc */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --max-w: 1280px;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 16px rgba(0, 114, 188, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 12px 28px rgba(0, 114, 188, 0.16), 0 4px 8px rgba(141, 198, 63, 0.2);
}

/* Dark Mode adaptation while preserving official Ethio Telecom brand identity */
[data-theme="dark"] {
  --bg-header: #76a831;
  --bg-body: #12161f;
  --bg-footer: #181d27;
  --bg-card: #1c2230;
  --bg-elev: #222a3b;
  --bg-input: #232c3d;

  --text-header-title: #003e66;
  --text-header-sub: #161b24;
  --text-body: #f4f4f4;
  --text-dim: #abb3c4;
  --text-footer: #d2d6df;
  --c-border: #2a3346;
  --shadow-card: 0 4px 18px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 12px 30px rgba(0, 114, 188, 0.28);
}

/* Base Styles */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-body);
  color: var(--text-body);
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--c-dark-blue);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}

/* Typography Utility Classes */
.headline-large {
  font-family: var(--font-headline-large);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.headline-small {
  font-family: var(--font-headline-small);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.body-text {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
}

/* =========================================================
   BUTTON SYSTEM (Ethio Telecom Design System)
   - Modify Information
   - Qry PP of your phone
   - Primary Action
   - Ghost / Secondary
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-headline-small);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.98);
}

/* Button Type: Qry PP of your phone */
.btn-qry-pp {
  background-color: var(--c-dark-blue);
  color: var(--c-white);
  border: 2px solid var(--c-lemon-green);
  box-shadow: 0 4px 12px rgba(0, 114, 188, 0.25);
}
.btn-qry-pp:hover {
  background-color: var(--c-lemon-green);
  color: var(--c-dark-blue);
  border-color: var(--c-dark-blue);
  box-shadow: 0 6px 16px rgba(141, 198, 63, 0.4);
  transform: translateY(-1px);
}

/* Button Type: Modify Information */
.btn-modify-info {
  background-color: var(--c-white);
  color: var(--c-dark-blue);
  border: 2px solid var(--c-dark-blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.btn-modify-info:hover {
  background-color: var(--c-light-gray);
  color: var(--c-dark-blue-hover);
  border-color: var(--c-lemon-green);
  box-shadow: 0 4px 14px rgba(0, 114, 188, 0.18);
  transform: translateY(-1px);
}

/* Standard Primary Button */
.btn-primary {
  background-color: var(--c-dark-blue);
  color: var(--c-white);
  border: 2px solid var(--c-dark-blue);
  box-shadow: 0 4px 14px rgba(0, 114, 188, 0.25);
  padding: 12px 24px;
  font-size: 15px;
}
.btn-primary:hover {
  background-color: var(--c-dark-blue-hover);
  border-color: var(--c-dark-blue-hover);
  box-shadow: 0 8px 20px rgba(0, 114, 188, 0.35);
  transform: translateY(-2px);
}

/* Standard Ghost / Secondary Button */
.btn-ghost {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--c-dark-blue);
  border: 2px solid var(--c-dark-blue);
  padding: 12px 22px;
  font-size: 15px;
}
.btn-ghost:hover {
  background-color: var(--c-white);
  color: var(--c-lemon-green-dark);
  border-color: var(--c-lemon-green-dark);
  text-decoration: none;
  transform: translateY(-2px);
}

/* Icon Buttons (Theme toggle, Modals, Close) */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-sm);
  background-color: var(--c-white);
  color: var(--c-dark-blue);
  border: 1px solid rgba(0, 114, 188, 0.2);
  transition: all 0.15s ease;
}
.btn-icon:hover {
  background-color: var(--c-light-gray);
  border-color: var(--c-dark-blue);
  color: var(--c-dark-blue-hover);
  transform: scale(1.05);
}
.btn-icon--danger:hover {
  background-color: #ffebee;
  color: #d32f2f;
  border-color: #d32f2f;
}

/* Language selector */
.select-lang {
  height: 40px;
  padding: 0 34px 0 16px;
  border-radius: var(--radius-full);
  background-color: var(--c-light-gray);
  color: var(--c-dark-blue);
  border: 1.5px solid rgba(0, 114, 188, 0.25);
  font-family: var(--font-headline-small);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230072BC' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.select-lang:hover {
  background-color: var(--c-white);
  border-color: var(--c-dark-blue);
  box-shadow: 0 2px 8px rgba(0, 114, 188, 0.14);
}
.select-lang:focus {
  background-color: var(--c-white);
  border-color: var(--c-dark-blue);
  box-shadow: 0 0 0 3px rgba(0, 114, 188, 0.2);
}

/* =========================================================
   TOP NAVIGATION BAR
   Clean White (#FFFFFF) surface for official Ethio Telecom branding
   ========================================================= */

.top-nav {
  position: relative;
  z-index: 40;
  background-color: var(--c-white);
  border-bottom: 1.5px solid var(--c-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.top-nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.top-nav__left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.top-nav__center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--c-light-gray);
  padding: 4px 6px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-headline-small);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-black);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-item:hover {
  background-color: var(--c-white);
  color: var(--c-dark-blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  transform: translateY(-1px);
}

.nav-random-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-headline-small);
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--c-dark-blue) 0%, #005a96 100%);
  color: var(--c-white);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 114, 188, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-random-btn:hover {
  background: linear-gradient(135deg, #0088df 0%, var(--c-dark-blue) 100%);
  box-shadow: 0 4px 14px rgba(0, 114, 188, 0.38);
  transform: translateY(-1px) scale(1.02);
}
.nav-random-btn:active {
  transform: scale(0.98);
}
.nav-random-btn__dice {
  display: inline-block;
  transition: transform 0.4s ease;
}
.nav-random-btn:hover .nav-random-btn__dice {
  transform: rotate(180deg);
}

.top-nav__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}
.brand:hover {
  transform: scale(1.02);
  text-decoration: none;
}

.brand__logo-img {
  height: 52px;
  width: auto;
  max-width: min(300px, 60vw);
  display: block;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav-actions .btn-icon {
  border-radius: var(--radius-full);
  background-color: var(--c-light-gray);
  border: 1.5px solid rgba(0, 114, 188, 0.25);
}
.nav-actions .btn-icon:hover {
  background-color: var(--c-white);
  border-color: var(--c-dark-blue);
  box-shadow: 0 2px 8px rgba(0, 114, 188, 0.14);
}

[data-theme="dark"] .nav-links {
  background-color: var(--bg-input);
  border-color: var(--c-border);
}
[data-theme="dark"] .nav-item {
  color: var(--text-body);
}
[data-theme="dark"] .nav-item:hover {
  background-color: var(--bg-elev);
  color: #ffffff;
}

@media (max-width: 860px) {
  .top-nav__center {
    display: none;
  }
}

/* =========================================================
   HEADER / HERO (Main Menu Page)
   Background: Lemon Green (#8DC63F)
   Font Colors: Dark Blue (#0072BC), White (#FFFFFF)
   ========================================================= */

.hero {
  position: relative;
  background: radial-gradient(110% 120% at 50% 0%, #9dd44c 0%, #8DC63F 50%, #7ab329 100%);
  color: var(--text-header-sub);
  padding: 44px 24px 54px;
  overflow: hidden;
  text-align: center;
}

/* Subtle Ethio Telecom Brand Wave / Geometry Overlays */
.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 114, 188, 0.16) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, transparent 60%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.6);
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.badge__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--c-dark-blue);
  box-shadow: 0 0 0 3px rgba(0, 114, 188, 0.25);
  animation: badgePulse 2s infinite;
}
.badge__text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-dark-blue);
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 2px rgba(0, 114, 188, 0.3); }
  50% { transform: scale(1.15); box-shadow: 0 0 0 5px rgba(0, 114, 188, 0.1); }
}

.hero__title {
  font-size: clamp(30px, 4.8vw, 54px);
  line-height: 1.15;
  margin: 0 auto;
  max-width: 920px;
  letter-spacing: -0.025em;
  text-align: center;
}
.hero__title .title-primary {
  display: block;
  color: var(--c-dark-blue);
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.4);
}
.hero__title .title-secondary {
  display: block;
  color: #ffffff;
  margin-top: 6px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(35, 31, 32, 0.25);
}

.hero__sub {
  font-size: clamp(16px, 1.35vw, 19px);
  color: var(--c-black);
  max-width: 680px;
  margin: 0 0 28px;
  font-weight: 500;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.stats {
  display: flex;
  align-items: center;
  gap: 20px 28px;
  flex-wrap: wrap;
  margin-top: 36px;
  color: var(--c-black);
  font-size: 14px;
  font-weight: 500;
}
.stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.45);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.stat__num {
  font-family: var(--font-headline-large);
  font-weight: 800;
  color: var(--c-dark-blue);
  font-size: 16px;
}

/* =========================================================
   ETHIO TELECOM POTENTIAL LINE
   "A potential line must be included at the bottom of each main menu page."
   Signature brand ribbon running along the bottom edge
   ========================================================= */

.potential-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, 
    var(--c-dark-blue) 0%, 
    var(--c-dark-blue) 55%, 
    var(--c-lemon-green) 85%, 
    var(--c-lemon-green) 100%
  );
  z-index: 10;
}

.potential-line--subtle {
  position: relative;
  height: 4px;
  background: linear-gradient(90deg, var(--c-dark-blue) 0%, var(--c-lemon-green) 100%);
  box-shadow: none;
}

/* =========================================================
   BODY / MAIN CONTENT
   Background: White (#FFFFFF)
   Font Colors: Black (#231F20) / Dark Blue (#0072BC)
   ========================================================= */

.main-content {
  background-color: var(--bg-body);
  color: var(--text-body);
  min-height: 60vh;
}

/* Controls / Sticky Search & Filter Bar */
.controls {
  position: sticky;
  top: 0;
  z-index: 30;
  background-color: var(--bg-body);
  border-bottom: 2px solid var(--c-light-gray);
  padding: 16px 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.controls__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Search Bar */
.search {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--bg-input);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  color: var(--c-gray-muted);
  transition: all 0.2s ease;
}
.search:focus-within {
  border-color: var(--c-dark-blue);
  background-color: var(--c-white);
  box-shadow: 0 0 0 3px rgba(0, 114, 188, 0.18);
}
.search svg {
  color: var(--c-dark-blue);
  flex-shrink: 0;
}
.search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-body);
  font-size: 15px;
}
.search input::placeholder {
  color: var(--c-gray-muted);
}
.search__kbd {
  font-family: monospace;
  font-size: 12px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--c-gray-muted);
}

/* Sub Menu: Category Filters */
.filters {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar {
  display: none;
}

.chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background-color: var(--c-light-gray);
  color: var(--c-black);
  border: 1px solid var(--c-border);
  font-family: var(--font-headline-small);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}
.chip:hover {
  background-color: var(--c-dark-blue-light);
  color: var(--c-dark-blue);
  border-color: var(--c-dark-blue);
  transform: translateY(-1px);
}
.chip[aria-pressed="true"] {
  background-color: var(--c-dark-blue);
  color: var(--c-white);
  border-color: var(--c-lemon-green);
  box-shadow: 0 3px 10px rgba(0, 114, 188, 0.35);
}
.chip__count {
  font-size: 11px;
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 6px;
  border-radius: 10px;
}
.chip[aria-pressed="true"] .chip__count {
  background: var(--c-lemon-green);
  color: var(--c-dark-blue);
  font-weight: 700;
}

/* Games Grid */
.games {
  padding: 36px 24px 64px;
}
.games__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.games__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}

/* Card Styles */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  padding: 0;
  width: 100%;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--c-dark-blue);
  box-shadow: var(--shadow-card-hover);
}

.card__art {
  position: relative;
  aspect-ratio: 16 / 10;
  background-color: var(--c-light-gray);
  overflow: hidden;
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card__img {
  transform: scale(1.06);
}

.card__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--card-c1, var(--c-dark-blue)), var(--card-c2, #0d3b66));
}

.card__emoji {
  font-size: 56px;
  line-height: 1;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
.card:hover .card__emoji {
  transform: scale(1.12) rotate(-4deg);
}

.card__play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--c-lemon-green);
  color: var(--c-dark-blue);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}
.card:hover .card__play {
  opacity: 1;
  transform: translateY(0);
}

.card__body {
  padding: 14px 16px 16px;
}
.card__title {
  font-family: var(--font-headline-small);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text-body);
}
.card__desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.45;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.card__chip {
  font-family: var(--font-headline-small);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background-color: var(--c-light-gray);
  color: var(--c-dark-blue);
  border: 1px solid var(--c-border);
}
.card__tech {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--c-gray-muted);
  letter-spacing: 0.05em;
}

.games__empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}
.link {
  background: none;
  border: none;
  color: var(--c-dark-blue);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
}

/* =========================================================
   FOOTER
   Background: Light Gray (#F4F4F4)
   Font Colors: Black (#231F20) / Dark Blue (#0072BC)
   ========================================================= */

.footer {
  position: relative;
  background-color: var(--bg-footer);
  color: var(--text-footer);
  border-top: 1px solid var(--c-border);
  padding: 0 0 28px;
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 44px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
}

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

.footer__col--brand {
  gap: 16px;
}

.footer__logo {
  display: flex;
  align-items: center;
}

.footer__logo-img {
  height: 42px;
  width: auto;
  max-width: 230px;
  display: block;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

.footer__about {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0;
  max-width: 330px;
}

.footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-dark-blue);
  background: rgba(0, 114, 188, 0.08);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  width: fit-content;
  border: 1px solid rgba(0, 114, 188, 0.14);
}
.footer__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--c-lemon-green);
  box-shadow: 0 0 6px var(--c-lemon-green);
}

.footer__col-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--c-dark-blue);
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
}
.footer__links li {
  display: flex;
  align-items: center;
}
.footer__links a {
  color: var(--text-body);
  text-decoration: none;
  transition: all 0.15s ease;
}
.footer__links a:hover {
  color: var(--c-dark-blue);
  transform: translateX(3px);
  text-decoration: none;
}

.footer__link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--c-dark-blue);
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease, color 0.15s ease;
}
.footer__link-btn:hover {
  transform: translateX(3px);
  color: var(--c-dark-blue-hover);
}

.footer__feat-icon {
  display: inline-block;
  width: 20px;
}

.footer__shortcuts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dim);
}
.footer__shortcuts-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

kbd {
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  background-color: var(--c-white);
  border: 1.5px solid var(--c-border);
  border-radius: 5px;
  padding: 2px 7px;
  color: var(--c-dark-blue);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.footer__back-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  background-color: var(--c-white);
  color: var(--c-dark-blue);
  border: 1.5px solid rgba(0, 114, 188, 0.25);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.footer__back-top:hover {
  background-color: var(--c-dark-blue);
  color: #ffffff;
  border-color: var(--c-dark-blue);
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 114, 188, 0.25);
}

.footer__bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__legal, .footer__contact {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-dim);
}

[data-theme="dark"] .footer__bottom {
  border-top-color: var(--c-border);
}
[data-theme="dark"] .footer__badge {
  background: rgba(0, 114, 188, 0.18);
  color: #5bc0be;
}
[data-theme="dark"] .footer__back-top {
  background-color: var(--bg-elev);
  color: #ffffff;
  border-color: var(--c-border);
}
[data-theme="dark"] kbd {
  background-color: var(--bg-elev);
  color: #ffffff;
  border-color: var(--c-border);
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}
@media (max-width: 580px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* =========================================================
   MODAL DIALOGS (Game Player, Qry PP, Modify Info)
   ========================================================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: #000;
  overflow: hidden;
}
.modal[hidden] {
  display: none;
}

.modal__backdrop {
  display: none;
}

.modal__panel {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100vh;
  background-color: #000;
  border-radius: 0;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background-color: var(--c-white);
  border-bottom: 2px solid var(--c-lemon-green);
  flex-shrink: 0;
  z-index: 10;
}

[data-theme="dark"] .modal__bar {
  background-color: #161b24;
  border-bottom-color: var(--c-lemon-green);
}
.modal__bar--lemon {
  background-color: var(--c-lemon-green);
  color: var(--c-dark-blue);
  border-bottom: 3px solid var(--c-dark-blue);
}
.modal__bar--lemon .modal__title {
  color: var(--c-dark-blue);
}

.modal__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal__chip {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background-color: var(--c-dark-blue);
  color: var(--c-white);
}
.modal__title {
  font-size: 17px;
  margin: 0;
  color: var(--c-dark-blue);
}

.modal__tools {
  display: flex;
  gap: 6px;
}

.modal__frame-wrap {
  flex: 1;
  background-color: #000;
  position: relative;
}
.modal__frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Service Modals (Qry PP & Modify Info) */
.modal__logo-wrap {
  display: inline-flex;
  align-items: center;
  background: var(--c-white);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 114, 188, 0.2);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.modal__logo-img {
  height: 24px;
  width: auto;
  max-width: 140px;
  display: block;
  object-fit: contain;
}
.service-badge {
  font-family: var(--font-headline-large);
  font-size: 11px;
  background-color: var(--c-dark-blue);
  color: var(--c-white);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.modal__service-content {
  padding: 24px;
  background-color: var(--bg-card);
}

.service-card {
  background-color: var(--c-light-gray);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}
.service-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.service-card__avatar {
  font-size: 32px;
  background: var(--c-white);
  border: 2px solid var(--c-lemon-green);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
}
.service-card__header h3 {
  margin: 0 0 2px;
  color: var(--c-dark-blue);
}
.service-card__header p {
  margin: 0;
  font-size: 13px;
}

.service-divider {
  height: 1px;
  background-color: var(--c-border);
  margin: 16px 0;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.service-item {
  display: flex;
  flex-direction: column;
}
.service-label {
  font-size: 12px;
  color: var(--text-dim);
}
.service-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-body);
  margin-top: 2px;
}

.modal__service-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

/* Service Form */
.service-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 13px;
  color: var(--text-body);
}
.form-input {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--c-border);
  background-color: var(--bg-input);
  color: var(--text-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease;
}
.form-input:focus {
  border-color: var(--c-dark-blue);
  background-color: var(--c-white);
  box-shadow: 0 0 0 3px rgba(0, 114, 188, 0.18);
}
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */

@media (max-width: 768px) {
  .hero {
    padding: 18px 16px 48px;
  }
  .hero__top {
    margin-bottom: 32px;
  }
  .hero__actions {
    width: 100%;
    justify-content: flex-start;
  }
  .btn-qry-pp, .btn-modify-info {
    font-size: 12px;
    padding: 8px 12px;
  }
  .controls {
    padding: 12px 16px;
  }
  .games {
    padding: 24px 16px 48px;
  }
  .games__grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }
  .card__art {
    aspect-ratio: 16 / 11;
  }
  .card__emoji {
    font-size: 42px;
  }
  .card__body {
    padding: 10px 12px 12px;
  }
  .card__title {
    font-size: 14px;
  }
  .card__desc {
    font-size: 12px;
  }
  .modal {
    padding: 0;
  }
  .modal__panel {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
  }
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
