/* BountyWarz app home: a game menu with two races and the agent arena. Phone first. */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #1d120a; color: #fff4dc; }
body { font: 16px/1.3 Georgia, 'Times New Roman', serif; -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
.bwa { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; gap: 12px;
  padding: calc(env(safe-area-inset-top) + 14px) calc(env(safe-area-inset-right) + 14px) calc(env(safe-area-inset-bottom) + 14px) calc(env(safe-area-inset-left) + 14px);
  background: radial-gradient(120% 60% at 50% 0%, #3a2312 0%, #1d120a 55%, #0f0905 100%); }
.bwa-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bwa-brand { margin: 0; font: 400 1.5rem/1 Impact, 'Arial Black', sans-serif; letter-spacing: 4px; text-transform: uppercase; color: #ffd36b; text-shadow: 0 2px 0 #5a3410, 0 0 22px rgba(255, 180, 80, .35); }
.bwa-pick { margin: 0; font: 700 .8rem 'Courier New', monospace; letter-spacing: 2px; text-transform: uppercase; color: #d8b98a; }
.bwa-games { flex: 1; display: grid; grid-template-rows: 1fr 1fr 0.8fr; gap: 12px; min-height: 0; }
.bwa-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: 0; overflow: hidden;
  padding: 16px; border-radius: 16px; text-decoration: none; color: #fff4dc; isolation: isolate;
  border: 2px solid #8a5a22; box-shadow: inset 0 0 0 1px rgba(255, 211, 107, .25), 0 10px 26px rgba(0, 0, 0, .55); transition: transform .12s ease, border-color .12s ease; }
.bwa-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.bwa-london img { object-position: 62% 40%; }
.bwa-bay img { object-position: 30% 45%; }
.bwa-arena img { object-position: 40% 45%; }
.bwa-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 6, 3, 0) 30%, rgba(10, 6, 3, .55) 62%, rgba(10, 6, 3, .92) 100%); }
.bwa-tile:hover, .bwa-tile:focus-visible { border-color: #ffd36b; outline: none; transform: translateY(-2px); }
.bwa-tile:active { transform: scale(.985); }
.bwa-city { align-self: flex-start; padding: 3px 9px; border-radius: 4px; background: rgba(20, 12, 4, .8); border: 1px solid #c9973a; color: #ffd36b; font: 700 .72rem 'Courier New', monospace; letter-spacing: 2px; text-transform: uppercase; }
.bwa-bay .bwa-city { border-color: #35a8c9; color: #8fe9ff; }
.bwa-arena .bwa-city { border-color: #3fd98a; color: #9dffc8; }
.bwa-name { font: 400 clamp(1.7rem, 7.5vw, 2.6rem)/1 Impact, 'Arial Black', sans-serif; letter-spacing: 1px; text-shadow: 0 3px 12px rgba(0, 0, 0, .8); }
.bwa-goal { max-width: 30ch; font-size: 1rem; color: #f3e6cc; text-shadow: 0 1px 6px rgba(0, 0, 0, .9); }
.bwa-play { position: absolute; right: 14px; bottom: 14px; padding: 9px 16px; border-radius: 999px; background: linear-gradient(180deg, #ffe08a, #e0a838); color: #2a1604;
  font: 400 1rem Impact, 'Arial Black', sans-serif; letter-spacing: 2px; text-transform: uppercase; box-shadow: 0 4px 0 #7a4a12, 0 0 18px rgba(255, 200, 90, .45); }
.bwa-bay .bwa-play { background: linear-gradient(180deg, #a6f3ff, #35c6e6); color: #04202a; box-shadow: 0 4px 0 #0d5266, 0 0 18px rgba(60, 220, 255, .45); }
.bwa-arena .bwa-play { background: linear-gradient(180deg, #b6ffd4, #3fd98a); color: #042a16; box-shadow: 0 4px 0 #0d5a32, 0 0 18px rgba(60, 230, 140, .45); }
.bwa-tile .bwa-goal { padding-right: 96px; }
@media (min-width: 760px) {
  .bwa { padding-left: calc(env(safe-area-inset-left) + 28px); padding-right: calc(env(safe-area-inset-right) + 28px); }
  .bwa-brand { font-size: 2rem; }
  .bwa-games { grid-template-rows: none; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
  .bwa-tile { padding: 24px; }
  .bwa-play { right: 22px; bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) { .bwa-tile { transition: none; } }
