@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/outfit-latin.woff2") format("woff2");
}

:root {
  --page: #f4f4f1;
  --panel: #ffffff;
  --ink: #17171a;
  --muted: #5f5f68;
  --chip: #f1f1f4;
  --line: #e4e4df;
  --focus: #2f62d9;
  --radius: 28px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--ink);
  font: 400 17px/1.5 "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* Header */
.site-header {
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 22px;
  height: 22px;
}

/* Grid */
main {
  flex: 1 0 auto;
  padding-top: 8px;
  padding-bottom: 72px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}

.apps {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}

.apps > li {
  display: flex;
}

/* Intro */
.intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 36px;
  background: var(--panel);
  border-radius: var(--radius);
  min-height: 300px;
}

.intro h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.intro p {
  margin: 14px 0 0;
  max-width: 470px;
  font-size: 18px;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 16px;
  background: var(--chip);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

/* App tiles */
.tile {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 240px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* One colour per app. White text passes 4.5:1 on each; WorldCupper's pink takes dark text. */
.botball { --bg: #c62a24; --fg: #ffffff; }
.esfbot { --bg: #0f4a95; --fg: #ffffff; }
.omafinance { --bg: #1d212b; --fg: #ffffff; }
.ticketbot { --bg: #0f7a5a; --fg: #ffffff; }
.vmtipping { --bg: #b45309; --fg: #ffffff; }
.worldcupper { --bg: #ff5e93; --fg: #1a1a2e; }

a.tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(23, 23, 26, 0.16);
}

.tile-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.icon {
  display: block;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.92), 0 6px 14px rgba(0, 0, 0, 0.18);
}

.mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.arrow {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.tile-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.name {
  margin: 0;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.line {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}

/* Footer */
.site-footer {
  padding-top: 0;
  padding-bottom: 36px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
  font-weight: 700;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-underline-offset: 3px;
}

/* 404 */
.notfound {
  max-width: 640px;
}

.notfound .button {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 24px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

/* Two columns and up: the intro takes two cells. */
@media (min-width: 600px) {
  .intro {
    grid-column: span 2;
  }
}

/* Phones: tiles turn into compact rows so six apps stay one short scroll. */
@media (max-width: 599px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .grid {
    gap: 12px;
  }

  .intro {
    min-height: 0;
    gap: 28px;
    padding: 24px 20px;
    border-radius: 22px;
  }

  .intro p {
    font-size: 17px;
  }

  .tile {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    min-height: 0;
    padding: 16px;
    border-radius: 20px;
  }

  .tile-top {
    display: contents;
  }

  .icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    order: 0;
  }

  .tile-text {
    flex: 1 1 auto;
    order: 1;
  }

  .arrow,
  .tag {
    order: 2;
  }

  .tag {
    display: none;
  }

  .tile-text .tag-inline {
    display: inline-flex;
  }

  .name {
    font-size: 21px;
  }
}

.tag-inline {
  display: none;
  align-self: flex-start;
  margin-top: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .tile {
    transition: none;
  }

  a.tile:hover {
    transform: none;
  }
}
