/* Franchise Frenzy purple + teal Home theme.
   Palette for reuse: indigo #0B0620, purple #7A00FF, teal #14E0C5,
   lavender #B964FF, white #FFFFFF.
   Only Home tiles and site title are restyled in this phase. */
:root {
  --ff-theme-bg: #0B0620;
  --ff-theme-purple: #7A00FF;
  --ff-theme-teal: #14E0C5;
  --ff-theme-lavender: #B964FF;
  --ff-theme-white: #FFFFFF;
}

/* Keep the title's original placement, centered two-line text and white outline. */
.ff-brand, .ff-brand span {
  color: #8A30FF !important;
  text-align: center;
  -webkit-text-stroke: 2px #FFFFFF;
  paint-order: stroke fill;
  text-shadow: 0 5px 25px rgba(20,224,197,.24);
}
body:has(#home.active) {
  background-color: var(--ff-theme-bg);
}

#home .ff-home-grid {
  gap: 16px;
}
#home .ff-home-tile {
  background: linear-gradient(135deg, #5D10A5 0%, #310B63 65%, #1A1038 100%);
  border: 1.5px solid var(--ff-theme-teal);
  box-shadow: inset 0 0 0 1px rgba(185,100,255,.16), 0 8px 24px rgba(0,0,0,.22);
  color: #FFFFFF;
  flex-direction: row;
  justify-content: flex-start;
  text-align: left;
  gap: clamp(9px, 1.5vw, 20px);
  padding: 18px clamp(12px, 2.4vw, 25px);
  min-height: 160px;
}
#home .ff-home-tile .ff-tile-icon {
  flex: 0 0 clamp(45px, 6vw, 76px);
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  border-right: 1px solid rgba(20,224,197,.55);
  padding-right: clamp(8px, 1vw, 16px);
}
#home .ff-home-tile .ff-tile-icon svg {
  display: block;
  width: min(100%, 64px);
  height: auto;
  max-height: 64px;
  overflow: visible;
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#home .ff-home-tile .ff-tile-icon svg .ff-accent-stroke {
  stroke: var(--ff-theme-teal);
}
#home .ff-home-tile .ff-tile-icon .ff-calendar-cells rect {
  fill: var(--ff-theme-teal);
  stroke: none;
}
#home .ff-home-tile .ff-tile-copy {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 9px;
}
#home .ff-home-tile strong {
  color: #FFFFFF;
  font-size: clamp(1.03rem, 2.2vw, 1.6rem);
  line-height: 1.2;
}
#home .ff-home-tile .ff-tile-copy span {
  color: #EDE4FF;
  font-size: clamp(.83rem, 1.35vw, 1rem);
  line-height: 1.4;
}
#home button.ff-home-tile:hover,
#home button.ff-home-tile:focus-visible {
  background: linear-gradient(135deg, #7210CF, #3B1372 75%, #1B2049);
  border-color: #FFFFFF;
  box-shadow: 0 0 0 2px rgba(20,224,197,.15), 0 10px 30px rgba(20,224,197,.10);
}
#home button.ff-home-tile:focus-visible {
  outline: 3px solid var(--ff-theme-teal);
  outline-offset: 3px;
}
#home .ff-home-tile.ff-disabled {
  grid-column: 1 / -1;
  min-height: 106px;
  background: linear-gradient(140deg, #383550, #29243E);
  border-color: #8E8AAE;
  color: #D7D3E6;
  opacity: .75;
  cursor: default;
}
#home .ff-home-tile.ff-disabled .ff-tile-icon {
  border-right-color: #8E8AAE;
}
#home .ff-home-tile.ff-disabled strong,
#home .ff-home-tile.ff-disabled .ff-tile-copy span {
  color: #D7D3E6;
}
#home .ff-disclaimer { color: #C9C1D9; }

@media (max-width: 600px) {
  #home .ff-home-grid { gap: 10px; }
  #home .ff-home-tile {
    min-height: 150px;
    padding: 13px 9px;
    gap: 8px;
  }
  #home .ff-home-tile .ff-tile-icon {
    flex-basis: 34px;
    padding-right: 7px;
  }
  #home .ff-home-tile .ff-tile-icon svg {
    max-height: 36px;
  }
  #home .ff-home-tile .ff-tile-copy { gap: 5px; }
  #home .ff-home-tile strong { font-size: clamp(.84rem, 3.2vw, 1.13rem); }
  #home .ff-home-tile .ff-tile-copy span { font-size: clamp(.72rem, 2.6vw, .86rem); }
  .ff-brand, .ff-brand span { -webkit-text-stroke: 1.5px #FFFFFF; }
}
