/* Turf (turf/turf.js; look of 2026-11-04, the user: less text, more inviting): a hero with the question, the week's
   clock and your gang; a card per sector with its boss on a throne (crown, badge, flag) and the top three gangs of the
   week; how it works folded away at the bottom. */
.turfx { width: min(1240px, 100%); margin: 14px 0 110px; text-align: left; --gold: #ffd23f; }
.turfx .empty-line { color: var(--muted); font-size: 13px; padding: 10px 4px; text-align: center; list-style: none; }

.tf-hero { position: relative; display: flex; align-items: center; gap: 22px; padding: 18px 22px; border-radius: 22px; overflow: hidden;
  background: radial-gradient(ellipse at 0% 0%, rgba(255, 58, 92, .45), transparent 55%), radial-gradient(ellipse at 100% 100%, rgba(180, 92, 255, .4), transparent 55%), linear-gradient(120deg, #2a0c2e, #150a2c);
  box-shadow: inset 0 0 0 1px rgba(255, 120, 200, .3), 0 14px 34px rgba(0, 0, 0, .35); }
.tf-hero::after { content: '🚩'; position: absolute; right: 30%; top: -24px; font-size: 140px; opacity: .07; transform: rotate(12deg); pointer-events: none; }
.tf-hero-text { flex: 1; min-width: 0; }
.tf-hero h2 { margin: 2px 0 4px; font: 700 34px/1.05 var(--head, Oswald), sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #fff; text-shadow: 0 0 22px rgba(255, 58, 92, .5); }
.tf-hero-text > p:last-child { margin: 0; color: #e6dcf5; font-size: 14.5px; }
.tf-clock { display: flex; gap: 6px; flex: none; }
.tf-clock span { display: grid; place-items: center; width: 62px; padding: 8px 0 6px; border-radius: 12px; background: rgba(0, 0, 0, .4); box-shadow: inset 0 0 0 1px rgba(255, 210, 63, .35); }
.tf-clock b { font: 700 28px/1 var(--head, Oswald), sans-serif; color: var(--gold); font-variant-numeric: tabular-nums; }
.tf-clock small { margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.tf-mygang { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 16px; text-decoration: none;
  background: color-mix(in srgb, var(--crew, #ff3ea5) 18%, rgba(0, 0, 0, .35)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--crew, #ff3ea5) 60%, transparent); }
.tf-mygang .crewpic { margin: 0; }
.tf-mygang small { display: block; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.tf-mygang b { color: #fff; font: 700 17px var(--head, Oswald), sans-serif; letter-spacing: .5px; }
.tf-mygang.join { padding: 10px 16px; background: linear-gradient(90deg, #ff8a3d, #ff3ea5); box-shadow: 0 8px 22px rgba(255, 62, 165, .35); }
.tf-mygang.join small { color: rgba(255, 255, 255, .8); }

.tf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 14px; }
/* A week nobody has earned in yet (turf.js emptyWeek). */
.tf-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 14px; padding: 26px 18px; border-radius: 20px; text-align: center;
  background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px rgba(255, 210, 63, .3); }
.tf-empty > b { font: 700 22px var(--head, Oswald), sans-serif; letter-spacing: 1.5px; text-transform: uppercase; color: #fff; }
.tf-empty p { margin: 0; color: var(--muted); font-size: 14px; }
.tf-empty-sectors { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tf-empty-sectors span { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); font: 700 13px Inter, sans-serif; }
.tf-district { --sec: #ff3ea5; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 20px; min-width: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--sec) 30%, #1a0b30) 0, #140a28 46%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sec) 40%, transparent), 0 10px 26px rgba(0, 0, 0, .3);
  transition: transform .15s ease; }
.tf-district:hover { transform: translateY(-3px); }
.tf-district.d-arena { --sec: #ff3a5c; } .tf-district.d-market { --sec: #22e4d9; } .tf-district.d-bank { --sec: #3fd27a; } .tf-district.d-casino { --sec: #ff3ea5; } .tf-district.d-pack { --sec: #b45cff; }
.tf-district header { display: flex; align-items: center; gap: 10px; }
.tf-art { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; font-size: 24px; background: color-mix(in srgb, var(--sec) 28%, rgba(0, 0, 0, .3)); box-shadow: 0 0 18px color-mix(in srgb, var(--sec) 40%, transparent); }
.tf-district h3 { margin: 0; font: 700 21px var(--head, Oswald), sans-serif; letter-spacing: 1.5px; text-transform: uppercase; color: #fff; }

.tf-throne { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 8px 12px; border-radius: 16px; text-align: center;
  background: radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--crew, var(--gold)) 30%, transparent), rgba(0, 0, 0, .3) 70%); box-shadow: inset 0 0 0 1px rgba(255, 210, 63, .4); }
.tf-throne .crewpic { margin: 0; box-shadow: 0 0 0 3px var(--gold), 0 0 24px color-mix(in srgb, var(--crew) 60%, transparent); }
.tf-crown { position: absolute; top: -2px; left: 50%; transform: translateX(-50%); font-size: 26px; filter: drop-shadow(0 2px 6px rgba(255, 210, 63, .6)); animation: tf-bob 2.4s ease-in-out infinite; }
@keyframes tf-bob { 50% { transform: translate(-50%, -3px); } }
.tf-throne b { margin-top: 2px; color: #fff; font: 700 17px var(--head, Oswald), sans-serif; letter-spacing: .5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-throne small { color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.tf-throne .tf-flag { position: absolute; right: 10px; top: 10px; }
.tf-throne.free, .tf-throne.wait { box-shadow: inset 0 0 0 2px rgba(255, 210, 63, .35); border: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 10px, transparent 10px 20px), rgba(0, 0, 0, .3); }
.tf-throne.free .tf-seat, .tf-throne.wait .tf-seat { font-size: 34px; opacity: .55; filter: grayscale(.4); }
.tf-throne.free b { color: var(--muted); } .tf-throne.free small { color: #7dff6a; }
.tf-flag { position: relative; display: inline-flex; align-items: flex-start; height: 30px; padding-left: 4px; }
.tf-flag i { position: absolute; left: 0; top: 0; width: 3px; height: 30px; border-radius: 2px; background: #d8d0e6; }
.tf-flag b { display: inline-block; margin-top: 1px; padding: 3px 10px 3px 7px; font: 700 11px var(--head, Oswald), sans-serif; letter-spacing: 1.5px; color: #14081f; background: var(--crew);
  clip-path: polygon(0 0, 100% 0, 86% 50%, 100% 100%, 0 100%); animation: tf-wave 2.4s ease-in-out infinite; transform-origin: left center; }
@keyframes tf-wave { 50% { transform: skewY(3deg) scaleX(.95); } }

.tf-race { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tf-race li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 10px; background: rgba(0, 0, 0, .25); font-size: 13px; }
.tf-race li.me { box-shadow: inset 0 0 0 1px var(--gold); }
.tf-race li.empty-line { display: block; background: none; color: #ffd23f; font-weight: 700; }
.tf-pos { text-align: center; font-size: 15px; }
.tf-crew { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tf-crew .crewpic { margin: 0; }
.tf-crew b { color: #fff; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-race strong { color: var(--gold); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tf-mine { margin: auto 0 0; padding-top: 2px; color: var(--muted); font-size: 12px; text-align: center; }

.tf-how { margin: 14px auto 0; max-width: 640px; color: var(--muted); font-size: 13px; }
.tf-how summary { cursor: pointer; text-align: center; font: 600 13px var(--head, Oswald), sans-serif; letter-spacing: 1.5px; text-transform: uppercase; color: #ff9ad5; list-style: none; }
.tf-how summary::-webkit-details-marker { display: none; }
.tf-how summary::after { content: ' ▾'; } .tf-how[open] summary::after { content: ' ▴'; }
.tf-how ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.tf-how li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(0, 0, 0, .25); }
.tf-how i { font-style: normal; font-size: 18px; }

@media (max-width: 760px) {
  .tf-hero { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
  .tf-hero h2 { font-size: 28px; }
  .tf-clock span { width: 56px; }
  .tf-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .tf-flag b, .tf-crown { animation: none; } }

/* One screen on a computer (styles.css): the hero, then the five sectors side by side down to the dock. */
@media (min-width: 1041px) and (min-height: 560px) {
  .room.fit .turfx { flex: 1 1 auto; min-height: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 10px; }
  .room.fit .tf-hero { padding: 14px 20px; }
  /* the sector cards are as tall as what is in them (design review, 5 Nov 2026), not stretched empty down to the dock */
  .room.fit .tf-grid { flex: 0 1 auto; min-height: 0; margin: 0; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: start; }
  .room.fit .tf-district { min-height: 0; max-height: 100%; overflow: auto; scrollbar-width: thin; }
  .room.fit .tf-how { margin: 0 auto; }
}
