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

html.classic {
  --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;
}

html.classic * { box-sizing: border-box; }
html.classic { background: #fff; }
html.classic body { margin: 0; font: 13px/1.45 var(--font); color: #000; background: #fff; }
html.classic a { color: var(--link); }
html.classic a:visited { color: var(--visited); }
html.classic :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
html.classic .sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
html.classic .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; }
html.classic .small { font-size: 12px; color: var(--muted); }
html.classic .tiny { font-size: 11px; color: var(--muted); margin: 4px 0 0; }

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

/* top bar, like the forum's */
html.classic .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); }
html.classic .mini-logo { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--navy) !important;
  font-weight: bold; font-size: 18px; }
html.classic .topbar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
html.classic .topbar li { font-size: 12px; }

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

/* the Commissioner's strip: navy, gold WordArt, revolving badges */
html.classic .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; }
html.classic .commish-name { margin: 0; color: var(--gold); line-height: 1.15; }
html.classic .commish-role { display: block; font-size: clamp(11px, 1.6vw, 14px); letter-spacing: .12em; text-transform: uppercase;
  color: #fff; margin-bottom: 6px; }
html.classic .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. */
html.classic .spin-stage { perspective: 600px; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; }
html.classic .spinner { position: relative; width: clamp(56px, 12vw, 120px); aspect-ratio: 1; transform-style: preserve-3d;
  animation: commish-spin 2.4s steps(18) infinite; }
html.classic .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
html.classic .face svg { width: 100%; height: 100%; display: block; }
html.classic .face.back { transform: rotateY(180deg); filter: saturate(1.4) brightness(.85) hue-rotate(-12deg); }
html.classic .s-right { animation-duration: 2.9s; animation-delay: -.7s; }        /* never quite in sync */
html.classic .s-wrong { width: 64px; animation: commish-spin-wrong 1.7s steps(12) infinite reverse; }
html.classic .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; }
html.classic .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); } }

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

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

/* buttons */
html.classic .btn-grey { font: inherit; font-size: 12px; padding: 4px 12px; cursor: pointer; color: #000;
  background: linear-gradient(#fafafa, #d6d6d6); border: 2px outset #bbb; }
html.classic .btn-grey:active { border-style: inset; }
html.classic .enter { margin: 22px 0 6px; }
html.classic .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); }
html.classic .btn-enter:hover { background: linear-gradient(#2aa838, #158a25 55%, var(--green-dark)); }
html.classic .btn-enter:active { border-style: inset; transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--navy); }
html.classic .enter-sub { margin: 4px 0 0; font-size: 12px; color: var(--muted); }

/* headlines / fixtures / AWFUL */
html.classic .strip { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 14px; max-width: 1180px; margin: 18px auto; padding: 0 14px; }
html.classic .panel { border: 1px solid var(--lav-line); background: #fff; padding: 0 12px 10px; position: relative; }
html.classic .panel h2 { margin: 0 -12px 10px; font-size: 13px; }
html.classic .bar { display: block; background: var(--lav); border-bottom: 1px solid var(--lav-line); padding: 5px 12px; color: var(--navy); }
html.classic .headlines { list-style: none; margin: 0; padding: 0; }
html.classic .headlines li { padding: 5px 0 5px 18px; border-bottom: 1px dotted #ccc; position: relative; }
html.classic .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); }
html.classic .more { margin: 8px 0 0; font-size: 12px; text-align: right; }
html.classic .fixtures { width: 100%; border-collapse: collapse; }
html.classic .fixtures th { font-size: 11px; text-align: left; color: var(--muted); border-bottom: 1px solid #ccc; padding: 2px 4px; }
html.classic .fixtures td { padding: 4px; border-bottom: 1px dotted #ccc; }
html.classic .fixtures td:nth-child(2) { color: var(--muted); font-size: 11px; text-align: center; width: 2em; }
html.classic .fixtures tbody tr:nth-child(odd) { background: #f6f6fd; }
html.classic .awful-title { font-size: 15px; font-weight: bold; margin: 4px 0 6px; padding-right: 54px; }
html.classic .awful-sub { display: block; font-weight: normal; font-size: 12px; }
html.classic .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 */
html.classic .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; }
html.classic .counter { text-align: center; }
html.classic .counter p { margin: 0; }
html.classic .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; }
html.classic .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; }
html.classic .construction { width: 250px; text-align: center; background: #fffbe0; border: 1px solid #c9a200; }
html.classic .construction p { margin: 6px 8px; display: flex; align-items: center; justify-content: center; gap: 6px; }
html.classic .construction p.small { display: block; }
html.classic .hazard { height: 12px; background: repeating-linear-gradient(-45deg, #ffcc00 0 10px, #111 10px 20px); }
html.classic .third { display: flex; align-items: center; gap: 10px; max-width: 280px; }
html.classic .third p { margin: 0; }
html.classic .small-stage { perspective: 300px; }

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

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

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

/* ---------------- uafl2 additions: the look switch (retro bevelled button in Classic) ---------------- */
html.classic .mi { display: none; }
html.classic .look { display: flex; align-items: center; }
html.classic .skin-switch [aria-pressed="true"] { display: none; }
html.classic .skin-switch button { font: bold 11px/1.2 var(--font); color: var(--navy); cursor: pointer; padding: 3px 8px;
  background: linear-gradient(#fffdf0, #f1e3a6); border: 2px outset #d8c27a; white-space: nowrap; }
html.classic .skin-switch button:hover { text-decoration: underline; }
html.classic .skin-switch button:active { border-style: inset; }
html.classic .newflag { display: inline-block; font: bold 9px/1 var(--font); color: #fff; background: #c00000; padding: 2px 3px; letter-spacing: .5px; vertical-align: 1px; }
html.classic .foot-look { margin: 0 0 8px; }
html.classic .linklike { font: inherit; color: var(--link); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
