/* Home screen refinements: six core destinations and social channels */
/* Color scheme directly inspired by tabletop.me brand artwork:
   - Neon Lime: #96ea11 / #7beb00
   - Electric Cyan: #00A4FF
   - Royal / Cobalt Blue: #0329E8
   - Soft Lavender / Lilac: #BDABFF / #E1C2FF
   - Deep Violet: #673ACC / #532688
   - Vibrant Aqua / Teal: #00E5A3
   Zero pink / red / magenta.
*/

.home-app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 10px;
  margin: 22px 0 26px;
  padding: 0;
}

.home-app {
  position: relative;
  isolation: isolate;
  min-height: 0;
  overflow: visible;
  padding: 0 0 3px;
  border: 0;
  border-radius: 0;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: none;
  cursor: pointer;
}

.home-app:active .app-icon {
  transform: scale(0.95);
}

/* Palette mapping for the 6 springboard destinations */
.home-app { --neon: #96ea11; --rim: #c8fa60; }
.home-app:nth-child(1) { --neon: #96ea11; --rim: #c8fa60; } /* Agenda: Electric Lime */
.home-app:nth-child(2) { --neon: #00A4FF; --rim: #69D1FF; } /* Explore: Electric Cyan */
.home-app:nth-child(3) { --neon: #0329E8; --rim: #5A7CFF; } /* Tournament: Royal Blue */
.home-app:nth-child(4) { --neon: #BDABFF; --rim: #E1C2FF; } /* Shops: Soft Lavender */
.home-app:nth-child(5) { --neon: #ED1C24; --rim: #FC3847; } /* Experiences: RPG Red */
.home-app:nth-child(6) { --neon: #00E5A3; --rim: #7BFFD4; } /* Prize Wall: Vibrant Aqua */

.home-app .app-icon {
  position: relative;
  isolation: isolate;
  width: 86px;
  height: 86px;
  border-radius: 22px;
  color: var(--neon);
  background: radial-gradient(ellipse at 50% 20%, color-mix(in srgb, var(--neon) 22%, transparent), transparent 70%),
              linear-gradient(155deg, #141b3a, #080c24 72%, #0e1533);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14),
              inset 0 2px 4px rgba(255, 255, 255, 0.12),
              0 10px 20px rgba(0, 0, 0, 0.65),
              0 0 16px color-mix(in srgb, var(--neon) 24%, transparent);
  display: grid;
  place-items: center;
  transition: transform .25s ease, box-shadow .25s ease;
}

.home-app .app-icon:before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--neon);
  border-radius: 17px;
  background: none;
  opacity: 0.55;
  box-shadow: 0 0 4px var(--neon), inset 0 0 4px color-mix(in srgb, var(--neon) 20%, transparent);
  pointer-events: none;
}

.home-app .app-icon:after {
  content: "";
  position: absolute;
  inset: 1px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), var(--neon) 30%, rgba(255, 255, 255, 0.08) 50%, var(--rim) 85%, rgba(255, 255, 255, 0.35));
  border-radius: 21px;
  opacity: 0.85;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* FILLED-IN STYLE (solid filled vectors, no thin wireframe outlines) */
.home-app .app-icon svg {
  position: relative;
  width: 44px;
  height: 44px;
  fill: var(--neon)!important;
  stroke: none!important;
  filter: drop-shadow(0 2px 6px color-mix(in srgb, var(--neon) 50%, transparent));
  transition: transform .25s ease, filter .25s ease;
}

.home-app .app-icon svg path,
.home-app .app-icon svg circle,
.home-app .app-icon svg g {
  fill: var(--neon)!important;
  stroke: none!important;
}

.home-app:hover .app-icon {
  transform: translateY(-3px) scale(1.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22),
              inset 0 2px 4px rgba(255, 255, 255, 0.18),
              0 14px 24px rgba(0, 0, 0, 0.75),
              0 0 22px color-mix(in srgb, var(--neon) 40%, transparent);
}

.home-app:hover .app-icon svg {
  transform: scale(1.06);
  filter: drop-shadow(0 3px 10px color-mix(in srgb, var(--neon) 80%, transparent));
}

.home-app strong {
  font-family: Nunito, sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Screen top-left green aura */
.screen:before {
  content: '';
  position: absolute;
  top: -30px;
  left: -30px;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(150, 234, 17, 0.20) 0%, rgba(150, 234, 17, 0.08) 45%, transparent 72%);
  pointer-events: none;
  z-index: 0;
  filter: blur(16px);
}

.app-scroll { position: relative !important; z-index: 1 !important;
  background: radial-gradient(ellipse 120% 360px at -5% -5%, rgba(150, 234, 17, 0.42) 0%, rgba(150, 234, 17, 0.15) 50%, transparent 75%),
              radial-gradient(ellipse 100% 350px at 100% 15%, rgba(0, 164, 255, 0.2), transparent 60%),
              radial-gradient(ellipse 90% 400px at 100% 70%, rgba(3, 41, 232, 0.24), transparent 65%) !important;

}

/* Ad Spaces - Centered text on both ads */
.ad-space.filled-ad {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 100px;
  padding: 0;
  border: 1px solid rgba(0, 164, 255, 0.3);
  border-radius: 16px;
  background: #090e28;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.filled-ad img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.filled-ad:after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(8, 12, 36, 0.5) 0%, rgba(8, 12, 36, 0.8) 100%);
  pointer-events: none;
}

.filled-ad .ad-placeholder-copy,
.filled-ad .ad-copy {
  position: absolute!important;
  inset: 0!important;
  z-index: 3!important;
  display: flex!important;
  flex-direction: column!important;
  align-items: center!important;
  justify-content: center!important;
  text-align: center!important;
  margin: auto!important;
  padding: 0 16px!important;
  width: 100%!important;
  box-sizing: border-box!important;
}

.filled-ad .ad-copy strong {
  display: block;
  font: 900 10px 'DM Mono', monospace;
  letter-spacing: 2px;
  color: #96ea11;
  text-align: center;
}

.filled-ad .ad-copy b {
  display: block;
  font-family: Nunito, sans-serif;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: #ffffff;
  margin: 3px 0 2px;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.filled-ad .ad-copy small {
  display: block;
  font-size: 11px;
  color: #cad3e8;
  text-align: center;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.9);
}

.filled-ad .ad-placeholder-copy {
  font-family: Nunito, sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 2px 14px #000, 0 0 25px rgba(0, 0, 0, 0.9);
}

.filled-ad:has(.ad-placeholder-copy):after {
  background: rgba(8, 12, 36, 0.62);
}

/* Social channels section - Colourful backgrounds aligned with brand palette */
.social-section-head {
  margin-top: 25px;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.social-link {
  position: relative;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 17px;
  color: #ffffff!important;
  font-family: Nunito, sans-serif;
  font-size: 13px;
  font-weight: 850;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  text-align: left;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
  cursor: pointer;
  overflow: hidden;
}

.social-link:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.12);
}

.social-link i {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  color: #ffffff;
}

.social-link i svg {
  width: 20px;
  height: 20px;
}

.social-link i svg path,
.social-link i svg circle,
.social-link i svg g {
  fill: #ffffff!important;
  stroke: none!important;
}

/* 1: Instagram (Board Games / Classics Violet: #5C2482 -> #673ACC -> #8F66FF) */
.social-link:nth-child(1) {
  background: linear-gradient(135deg, #5C2482 0%, #673ACC 55%, #8F66FF 100%);
  border-color: rgba(189, 171, 255, 0.45);
  box-shadow: 0 10px 22px rgba(92, 36, 130, 0.45);
}

/* 2: TikTok (Midnight Navy / Electric Cyan: #060919 -> #0c1736 -> #002AA0 with Cyan rim) */
.social-link:nth-child(2) {
  background: linear-gradient(135deg, #060919 0%, #0e1d45 60%, #002AA0 100%);
  border-color: rgba(0, 164, 255, 0.5);
  box-shadow: 0 10px 22px rgba(0, 164, 255, 0.3);
}

/* 3: YouTube (RPG Red: #B70412 -> #ED1C24 -> #FC3847) */
.social-link:nth-child(3) {
  background: linear-gradient(135deg, #B70412 0%, #ED1C24 60%, #FC3847 100%);
  border-color: rgba(255, 131, 146, 0.45);
  box-shadow: 0 10px 22px rgba(237, 28, 36, 0.45);
}

/* 4: Facebook (TCG Royal Blue: #00126D -> #002AA0 -> #0329E8) */
.social-link:nth-child(4) {
  background: linear-gradient(135deg, #00126D 0%, #002AA0 40%, #0329E8 100%);
  border-color: rgba(105, 209, 255, 0.45);
  box-shadow: 0 10px 22px rgba(3, 41, 232, 0.45);
}

/* 5: LinkedIn (General Cyan / Deep Cerulean: #006FBA -> #00A4FF) */
.social-link:nth-child(5) {
  background: linear-gradient(135deg, #004d80 0%, #006FBA 45%, #00A4FF 100%);
  border-color: rgba(202, 239, 255, 0.5);
  box-shadow: 0 10px 22px rgba(0, 164, 255, 0.45);
}

@media (max-width: 390px) {
  .home-app .app-icon {
    width: 78px;
    height: 78px;
  }
  .home-app strong {
    font-size: 12px;
  }
}


/* Make .home-app match the category grid */
.home-app-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
  margin: 0 0 26px !important;
}

.home-app {
  min-height: 70px !important;
  padding: 9px 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.home-app .app-icon {
  width: 27px !important;
  height: 27px !important;
  background: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin-bottom: 7px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.home-app .app-icon:before,
.home-app .app-icon:after {
  display: none !important;
}

.home-app .app-icon svg {
  width: 24px !important;
  height: 24px !important;
  filter: none !important;
}

.home-app .app-icon svg path,
.home-app .app-icon svg circle,
.home-app .app-icon svg g {
  fill: #00A4FF !important;
}

.home-app strong {
  font-family: Nunito, sans-serif !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  text-shadow: none !important;
  color: #fff !important;
}

.home-app:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

.home-app:hover .app-icon {
  transform: none !important;
  box-shadow: none !important;
}

.home-app:hover .app-icon svg {
  transform: scale(1.05) !important;
  filter: none !important;
}
