/* UAFL homepage - same 2000s portal look as the forum, plus the Commissioner's revolving badges. */

:root {
  --font: Verdana, Tahoma, Geneva, "DejaVu Sans", sans-serif;
  --navy: #13246b;
  --navy-deep: #0b1647;
  --lav: #c9c9f2;
  --lav-line: #9f9fdc;
  --cream: #fbf3d9;
  --link: #0000cc;
  --visited: #551a8b;
  --maroon: #990033;
  --green: #127a21;
  --green-dark: #0b5a17;
  --gold: #ffd84a;
  --muted: #4a4a4a;
  --focus: #ff8c00;
}

* { box-sizing: border-box; }
html { background: #fff; }
body { margin: 0; font: 13px/1.45 var(--font); color: #000; background: #fff; }
a { color: var(--link); }
a:visited { color: var(--visited); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.small { font-size: 12px; color: var(--muted); }
.tiny { font-size: 11px; color: var(--muted); margin: 4px 0 0; }

.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 6px 10px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* top bar, like the forum's */
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px;
  padding: 6px 14px; border-bottom: 6px solid var(--navy); }
.mini-logo { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--navy) !important;
  font-weight: bold; font-size: 18px; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.topbar li { font-size: 12px; }

/* hero */
.hero { background: var(--cream); border-bottom: 1px solid #b9b39b; padding: 22px 14px 26px; text-align: center; }
.hero-logo { margin: 0 auto; max-width: 620px; font-size: 0; }
.hero-logo svg { width: 100%; height: auto; display: block; }

/* the Commissioner's strip: navy, gold WordArt, revolving badges */
.commish { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 3vw, 36px);
  max-width: 860px; margin: 22px auto 0; padding: 14px clamp(8px, 2vw, 22px);
  background: var(--navy-deep) repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 6px, transparent 6px 12px);
  border: 4px ridge #c98a07; border-radius: 4px; box-shadow: 4px 4px 0 #9f9fdc; }
.commish-name { margin: 0; color: var(--gold); line-height: 1.15; }
.commish-role { display: block; font-size: clamp(11px, 1.6vw, 14px); letter-spacing: .12em; text-transform: uppercase;
  color: #fff; margin-bottom: 6px; }
.commish-handle { display: block; font-family: Impact, "Arial Black", "Haettenschweiler", var(--font);
  font-size: clamp(22px, 5.2vw, 46px); letter-spacing: .02em; color: var(--gold);
  text-shadow: 1px 1px 0 #c98a07, 2px 2px 0 #9b6a00, 3px 3px 0 #6b4a00, 5px 5px 2px #000;
  transform: skewX(-6deg) rotate(-1.5deg); }

/* the revolving GIF, recreated with CSS 3D. steps() gives the low-frame-rate 1999 look. */
.spin-stage { perspective: 600px; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; }
.spinner { position: relative; width: clamp(56px, 12vw, 120px); aspect-ratio: 1; transform-style: preserve-3d;
  animation: commish-spin 2.4s steps(18) infinite; }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face svg { width: 100%; height: 100%; display: block; }
.face.back { transform: rotateY(180deg); filter: saturate(1.4) brightness(.85) hue-rotate(-12deg); }
.s-right { animation-duration: 2.9s; animation-delay: -.7s; }        /* never quite in sync */
.s-wrong { width: 64px; animation: commish-spin-wrong 1.7s steps(12) infinite reverse; }
.spin-shadow { width: 70%; height: 8px; margin-top: 6px; border-radius: 50%; background: rgba(0,0,0,.55);
  animation: commish-shadow 1.2s steps(9) infinite alternate; }
.s-right + .spin-shadow { animation-duration: 1.45s; }

@keyframes commish-spin {            /* the wonk: it wobbles and bobs as it turns */
  0%   { transform: rotateY(0deg)   rotateZ(-4deg) translateY(0); }
  25%  { transform: rotateY(90deg)  rotateZ(3deg)  translateY(-3px); }
  50%  { transform: rotateY(180deg) rotateZ(6deg)  translateY(0); }
  75%  { transform: rotateY(270deg) rotateZ(-2deg) translateY(-4px); }
  100% { transform: rotateY(360deg) rotateZ(-4deg) translateY(0); }
}
@keyframes commish-spin-wrong {
  0%   { transform: rotateY(0deg)   rotateZ(10deg); }
  50%  { transform: rotateY(180deg) rotateZ(-14deg) scale(1.08); }
  100% { transform: rotateY(360deg) rotateZ(10deg); }
}
@keyframes commish-shadow { from { transform: scaleX(1); } to { transform: scaleX(.35); } }

.spin-controls { margin: 12px auto 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 14px; }
.spin-caption { margin: 0; font-size: 12px; font-style: italic; color: var(--muted); min-height: 1.2em; }
.rm-only { display: none; }

.paused .spinner, .paused .spin-shadow { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .spinner, .spin-shadow { animation: none !important; }
  .spinner { transform: rotateY(-25deg) rotateZ(-4deg); }   /* frozen mid-twirl */
  .rm-only { display: inline; }
  #spin-toggle { display: none; }
}

/* buttons */
.btn-grey { font: inherit; font-size: 12px; padding: 4px 12px; cursor: pointer; color: #000;
  background: linear-gradient(#fafafa, #d6d6d6); border: 2px outset #bbb; }
.btn-grey:active { border-style: inset; }
.enter { margin: 22px 0 6px; }
.btn-enter { display: inline-block; padding: 14px 34px; font-size: clamp(18px, 3.4vw, 26px); font-weight: bold;
  text-decoration: none; color: #fff !important; border-radius: 6px; border: 3px outset #3da24a;
  background: linear-gradient(#22962f, var(--green) 55%, var(--green-dark)); text-shadow: 1px 1px 0 #053a0d;
  box-shadow: 3px 3px 0 var(--navy); }
.btn-enter:hover { background: linear-gradient(#2aa838, #158a25 55%, var(--green-dark)); }
.btn-enter:active { border-style: inset; transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--navy); }
.enter-sub { margin: 4px 0 0; font-size: 12px; color: var(--muted); }

/* headlines / fixtures / AWFUL */
.strip { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 14px; max-width: 1180px; margin: 18px auto; padding: 0 14px; }
.panel { border: 1px solid var(--lav-line); background: #fff; padding: 0 12px 10px; position: relative; }
.panel h2 { margin: 0 -12px 10px; font-size: 13px; }
.bar { display: block; background: var(--lav); border-bottom: 1px solid var(--lav-line); padding: 5px 12px; color: var(--navy); }
.headlines { list-style: none; margin: 0; padding: 0; }
.headlines li { padding: 5px 0 5px 18px; border-bottom: 1px dotted #ccc; position: relative; }
.headlines li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 9px; height: 9px;
  background: #d21b1b; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #d21b1b; transform: scale(.7); }
.more { margin: 8px 0 0; font-size: 12px; text-align: right; }
.fixtures { width: 100%; border-collapse: collapse; }
.fixtures th { font-size: 11px; text-align: left; color: var(--muted); border-bottom: 1px solid #ccc; padding: 2px 4px; }
.fixtures td { padding: 4px; border-bottom: 1px dotted #ccc; }
.fixtures td:nth-child(2) { color: var(--muted); font-size: 11px; text-align: center; width: 2em; }
.fixtures tbody tr:nth-child(odd) { background: #f6f6fd; }
.awful-title { font-size: 15px; font-weight: bold; margin: 4px 0 6px; padding-right: 54px; }
.awful-sub { display: block; font-weight: normal; font-size: 12px; }
.newburst { position: absolute; right: 8px; top: 34px; margin: 0; width: 50px; height: 50px; display: grid; place-items: center;
  font-weight: bold; font-size: 12px; color: #fff; background: #c00000; transform: rotate(14deg);
  clip-path: polygon(50% 0, 61% 18%, 82% 10%, 80% 32%, 100% 40%, 85% 56%, 96% 76%, 74% 78%, 68% 100%, 50% 86%, 32% 100%, 26% 78%, 4% 76%, 15% 56%, 0 40%, 20% 32%, 18% 10%, 39% 18%); }

/* the guestbook-era extras */
.retro { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 26px;
  max-width: 1180px; margin: 10px auto 22px; padding: 14px; border-top: 1px dashed #b9b39b; border-bottom: 1px dashed #b9b39b; }
.counter { text-align: center; }
.counter p { margin: 0; }
.digits { display: inline-block; margin-top: 4px !important; padding: 3px 6px; font: bold 20px/1 "Courier New", Courier, monospace;
  letter-spacing: .18em; color: #7dff6b; background: #000; border: 3px inset #777; }
.badge-88 { display: flex; align-items: center; gap: 6px; width: 200px; padding: 4px 6px; font-size: 10px; line-height: 1.25;
  background: linear-gradient(#e8e8e8, #bdbdbd); border: 2px outset #ddd; color: #000; }
.construction { width: 250px; text-align: center; background: #fffbe0; border: 1px solid #c9a200; }
.construction p { margin: 6px 8px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.construction p.small { display: block; }
.hazard { height: 12px; background: repeating-linear-gradient(-45deg, #ffcc00 0 10px, #111 10px 20px); }
.third { display: flex; align-items: center; gap: 10px; max-width: 280px; }
.third p { margin: 0; }
.small-stage { perspective: 300px; }

.footer { border-top: 6px solid var(--navy); padding: 10px 14px 18px; font-size: 11px; color: var(--muted); text-align: center; }
.footer p { max-width: 900px; margin: 6px auto; }

/* phone */
@media (max-width: 860px) {
  .strip { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .hero { padding-top: 14px; }
  .commish { gap: 6px; padding: 10px 6px; border-width: 3px; }
  .commish-role { letter-spacing: .04em; }
  .btn-enter { display: block; margin: 0 6px; padding: 14px 10px; }
  .retro { flex-direction: column; }
}

@media (forced-colors: active) {
  .btn-enter, .btn-grey { border: 2px solid ButtonText; }
  .commish-handle { text-shadow: none; }
}
