/* front-doors.css — THE FRONT DOORS (v93): one shared door, dressed
   eleven ways. Each door wears its hall's established dressing colors
   — the same two tones locker-rooms.css dresses that hall's rooms in
   (--fd1/--fd2 below mirror the lk-dress scene tones hall for hall) —
   and carries the league's name in an engraved plate in the v88 plate
   language: brushed metal, serif type, a bright edge. No images, no
   extra requests beyond the payloads' own team logos in the glimpse
   behind the leaves: pure CSS transforms and opacity, smooth on a
   phone over poor signal. */

/* ---------- the street ---------- */
.fd-street { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 20px; margin: 18px 0; }

/* ---------- the door ---------- */
.fd-door { position: relative; display: block; height: 308px; border-radius: 12px 12px 6px 6px; text-decoration: none; color: #fff;
  perspective: 950px; background: linear-gradient(180deg, #141824, #07090f);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.10), inset 0 -18px 30px rgba(0,0,0,.6), 0 10px 22px rgba(0,0,0,.4); overflow: hidden; }
.fd-door:focus-visible { outline: 2px solid var(--gold, #ffd166); outline-offset: 3px; }

/* the world behind the leaves: warm light, the hall's name, and its
   own first team logos standing in a row, straight from the payload */
.fd-reveal { position: absolute; inset: 12px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 14px;
  background: radial-gradient(120% 90% at 50% 0%, #fdf3d3 0%, #f0dcab 46%, #d9be82 100%); color: #2a2113; text-align: center; }
.fd-reveal-name { font-weight: 800; font-size: 1.02rem; line-height: 1.25; }
.fd-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 240px; }
.fd-chip { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px; background: #fff; box-shadow: 0 2px 6px rgba(60,40,0,.3); }
.fd-chip img { max-width: 31px; max-height: 31px; }
.fd-chip-init { background: var(--fd-tc, #334155); color: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .02em; }
.fd-reveal-n { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; opacity: .75; }

/* the two leaves */
.fd-leaf { position: absolute; top: 12px; bottom: 12px; width: calc(50% - 6px); z-index: 2;
  background: linear-gradient(165deg, var(--fd1, #46586f) 0%, var(--fd2, #2b3648) 78%);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.35), inset 0 -16px 26px rgba(0,0,0,.32);
  transition: transform .56s ease; }
.fd-leaf::before { /* the leaf's inset panel */
  content: ""; position: absolute; inset: 16px 12px 44px; border-radius: 6px;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.28), inset 0 2px 0 rgba(255,255,255,.14); }
.fd-leaf::after { /* the handle, at the meeting edge */
  content: ""; position: absolute; top: 50%; margin-top: -17px; width: 7px; height: 34px; border-radius: 4px;
  background: rgba(0,0,0,.5); box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.fd-leaf-l { left: 12px; border-radius: 8px 2px 2px 8px; transform-origin: left center; }
.fd-leaf-l::after { right: 8px; }
.fd-leaf-r { right: 12px; border-radius: 2px 8px 8px 2px; transform-origin: right center; }
.fd-leaf-r::after { left: 8px; }

/* the face: the engraved plate rides over the leaves and fades as
   they open, so the name reads until the world behind it takes over */
.fd-face { position: absolute; inset: 12px; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; pointer-events: none; transition: opacity .3s ease; }
.fd-plate { display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: 100%; box-sizing: border-box; position: relative;
  padding: 14px 16px 12px; border-radius: 8px; border: 1px solid rgba(255,209,102,.65);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.028) 0 2px, rgba(0,0,0,0) 2px 4px),
    linear-gradient(165deg, #3d4356 0%, #20242e 52%, #2b303d 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -10px 16px rgba(0,0,0,.5), 0 4px 14px rgba(0,0,0,.45);
  color: #f3ead2; text-align: center; }
.fd-plate::before, .fd-plate::after { content: ""; position: absolute; top: 6px; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e8e4d8, #6d6a5e 60%, #33312a); box-shadow: inset 0 -1px 1px rgba(0,0,0,.7); }
.fd-plate::before { left: 7px; }
.fd-plate::after { right: 7px; }
.fd-plate-name { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 1.55rem; line-height: 1.1;
  text-shadow: 0 -1px 0 rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.13); }
.fd-plate-full { font-size: .72rem; line-height: 1.35; letter-spacing: .06em; text-transform: uppercase; color: #cfc39f;
  text-shadow: 0 -1px 0 rgba(0,0,0,.8); }
.fd-count { font-weight: 800; font-size: .92rem; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.fd-hint { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; opacity: .8; text-shadow: 0 1px 3px rgba(0,0,0,.7); }

/* the league's own mark (v95 — the owner's correction): a cream
   plaque above the engraved plate, in the same white-tile language
   as the team chips behind the leaves. The image hides its own
   plaque if it ever fails to load, and the plate stands alone. */
.fd-logowell { display: flex; align-items: center; justify-content: center; background: #fffdf6; border-radius: 10px;
  padding: 7px 16px; box-shadow: 0 3px 10px rgba(0,0,0,.45), inset 0 0 0 1px rgba(0,0,0,.08); }
.fd-logo { display: block; max-height: 58px; max-width: 148px; width: auto; height: auto; }

/* ---------- the rivalry face-offs (v95) ---------- */
.fd-fo { margin: 18px 0 4px; padding: 16px 18px 10px; border-radius: 12px; text-align: left;
  background: linear-gradient(180deg, #131a2c, #0a0f1c); border: 1px solid rgba(255,209,102,.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 20px rgba(0,0,0,.35); color: #eef2ff; }
.fd-fo-h { margin: 0 0 4px; font-size: 1.05rem; }
.fd-fo-sub { margin: 0 0 10px; font-size: .8rem; line-height: 1.5; opacity: .78; max-width: 75ch; }
.fd-fo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.12); }
.fd-fo-tag { font-size: .66rem; font-weight: 800; letter-spacing: .1em; padding: 4px 8px; border-radius: 999px;
  background: rgba(255,255,255,.12); color: #dbe4ff; white-space: nowrap; }
.fd-fo-rivalry { background: rgba(255,209,102,.2); color: #ffd166; box-shadow: inset 0 0 0 1px rgba(255,209,102,.55); }
.fd-fo-side { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.fd-fo-logo { width: 30px; height: 30px; object-fit: contain; background: #fff; border-radius: 7px; padding: 2px; box-sizing: border-box; }
.fd-fo-team { font-weight: 700; font-size: .95rem; }
.fd-fo-vs { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; opacity: .65; }
.fd-fo-meta { margin-left: auto; font-size: .8rem; opacity: .8; white-space: nowrap; }

/* the opening: a crack on hover/focus for pointers that can, the full
   swing on tap — one consistent treatment on every door */
@media (hover: hover) {
  .fd-door:hover .fd-leaf-l, .fd-door:focus-visible .fd-leaf-l { transform: rotateY(-15deg); }
  .fd-door:hover .fd-leaf-r, .fd-door:focus-visible .fd-leaf-r { transform: rotateY(15deg); }
}
.fd-door.fd-opening .fd-leaf-l { transform: rotateY(-104deg); }
.fd-door.fd-opening .fd-leaf-r { transform: rotateY(104deg); }
.fd-door.fd-opening .fd-face { opacity: 0; }
/* v113 — the reveal behind the leaves comes alive as they part: the
   hall's light brightens and leans toward the visitor, and the door
   itself glows at the edges, so the opening is something you see and
   feel, not a page change. Pure filter/transform — no new requests. */
.fd-reveal { transition: filter .55s ease, transform .55s ease; }
.fd-door.fd-opening .fd-reveal { filter: brightness(1.22) saturate(1.08); transform: scale(1.035); }
.fd-door.fd-opening { box-shadow: inset 0 0 0 2px rgba(255, 209, 102, .55), inset 0 -18px 30px rgba(0, 0, 0, .6), 0 0 34px rgba(255, 209, 102, .45), 0 10px 22px rgba(0, 0, 0, .4); }

/* ---------- the dressings: the halls' own tones, hall for hall
   (the same tones locker-rooms.css dresses each hall's rooms in) --- */
.fd-dress-stadium-steel { --fd1: #46586f; --fd2: #2b3648; }
.fd-dress-hardwood { --fd1: #7a5a34; --fd2: #4f3a20; }
.fd-dress-summer-arena { --fd1: #5b4a8a; --fd2: #372b58; }
.fd-dress-ballpark-brick { --fd1: #7c4436; --fd2: #4c2a20; }
.fd-dress-ice-house { --fd1: #7fa8bd; --fd2: #476b80; }
.fd-dress-terraces { --fd1: #3f6b3a; --fd2: #274a24; }
.fd-dress-night-lights { --fd1: #2c3a6e; --fd2: #1a2347; }
.fd-dress-homecoming { --fd1: #8a5a2b; --fd2: #54350f; }
.fd-dress-fieldhouse { --fd1: #2e4a6b; --fd2: #1b2f47; }
.fd-dress-banner-hall { --fd1: #7c2d3e; --fd2: #4a1a26; }
.fd-dress-diamond-dust { --fd1: #5f7038; --fd2: #39481f; }

@media (prefers-reduced-motion: reduce) {
  .fd-leaf, .fd-face { transition: none; }
  .fd-door:hover .fd-leaf-l, .fd-door:focus-visible .fd-leaf-l,
  .fd-door:hover .fd-leaf-r, .fd-door:focus-visible .fd-leaf-r { transform: none; }
}
