/* locker-rooms.css — THE LOCKER ROOMS (v81; college halls v84; the Classics
   Hall v85; the photo pass v86). One system, fifteen halls:
   every door is the same door, dressed by its league. Team doors wear
   the colors the league's own payload carries; wrestling and classics
   doors are name plates in our own styling, and since the photo pass
   (v86) a door carries a real photograph where an openly licensed one
   was verified on Wikimedia Commons — credited under the picture, the
   name plate standing where none was. Rooms are dressed in CSS —
   lockers, a bench, the coach's den and its whiteboard; the only real
   photographs in the wing are the credited door portraits. */

/* ---------- the hub ---------- */
.lk-halls { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 18px 0; }
.lk-hall-card { display: block; text-decoration: none; color: inherit; border: 1px solid var(--line, #2a3350); border-radius: 14px; padding: 18px; background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(0,0,0,.18)); }
.lk-hall-card h3 { margin: 0 0 4px; font-size: 1.25rem; }
.lk-hall-n { font-weight: 800; color: var(--gold, #ffd166); margin: 0 0 6px; }
.lk-hall-card p { margin: 0; opacity: .85; }

/* ---------- finder & wings ---------- */
.lk-finder { margin: 14px 0 6px; }
.lk-finder-label { display: block; font-weight: 700; margin-bottom: 6px; }
.lk-find { width: 100%; max-width: 460px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line, #2a3350); background: rgba(0,0,0,.25); color: inherit; font-size: 1rem; }
.lk-count { opacity: .8; margin: 8px 0 0; }
.lk-wings { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.lk-wing { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line, #2a3350); background: transparent; color: inherit; cursor: pointer; font: inherit; }
.lk-wing.on { background: var(--gold, #ffd166); color: #14100a; border-color: transparent; font-weight: 700; }
.lk-none { opacity: .85; }

/* ---------- doors ---------- */
.lk-doors { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 14px; margin: 16px 0 26px; }
.lk-door { perspective: 700px; border: 0; background: transparent; padding: 0; cursor: pointer; font: inherit; color: inherit; text-align: center; }
.lk-door-panel { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; min-height: 218px; padding: 16px 10px 12px; border-radius: 10px 10px 6px 6px; transform-origin: left center; transition: transform .55s ease, opacity .55s ease, box-shadow .2s ease; box-shadow: inset 0 0 0 2px rgba(0,0,0,.35), inset 0 -14px 24px rgba(0,0,0,.28), 0 6px 14px rgba(0,0,0,.35); position: relative; }
.lk-door:hover .lk-door-panel, .lk-door:focus-visible .lk-door-panel { box-shadow: inset 0 0 0 2px rgba(255,255,255,.35), inset 0 -14px 24px rgba(0,0,0,.28), 0 8px 20px rgba(0,0,0,.45); }
.lk-door.lk-opening .lk-door-panel { transform: rotateY(-82deg); opacity: .12; box-shadow: inset 0 0 0 2px rgba(255,209,102,.6), inset 0 -14px 24px rgba(0,0,0,.28), 0 0 26px rgba(255,209,102,.5); }
/* v113 — the warm light of the room behind the door, spilling out as
   the panel swings: a glow plate behind the panel that fades in only
   while the door is opening, so the tap reads as a door opening onto
   a lit room, never as a panel vanishing. */
.lk-door { position: relative; }
.lk-door::before { content: ""; position: absolute; inset: 4px; border-radius: 10px; opacity: 0; transition: opacity .45s ease; pointer-events: none;
  background: radial-gradient(90% 90% at 50% 30%, rgba(255, 226, 150, .95), rgba(217, 164, 65, .55) 55%, rgba(120, 80, 20, .25)); }
.lk-door.lk-opening::before { opacity: 1; }
.lk-door-panel { z-index: 1; }
.lk-door-panel::after { /* the door handle */
  content: ""; position: absolute; right: 9px; top: 50%; width: 7px; height: 30px; border-radius: 4px; background: rgba(0,0,0,.45); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.lk-door-team .lk-door-panel { background: linear-gradient(165deg, var(--lkc, #334155) 0%, var(--lkc, #334155) 62%, rgba(0,0,0,.38) 130%); color: #fff; }
.lk-logowrap { display: flex; align-items: center; justify-content: center; width: 92px; height: 92px; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.lk-logo { max-width: 80px; max-height: 80px; }
.lk-initials { display: none; font-size: 2rem; font-weight: 900; letter-spacing: .04em; color: var(--lka, #fff); text-shadow: 0 2px 6px rgba(0,0,0,.5); padding: 22px 0 14px; }
.lk-door-team.lk-nologo .lk-initials { display: block; }
.lk-plate { font-weight: 800; line-height: 1.2; text-shadow: 0 1px 4px rgba(0,0,0,.55); }
.lk-sub { font-size: .8rem; opacity: .85; }
/* the next-game tag (v95): a line off the hall's own live board,
   pinned under the team's name — present only when the feed shows
   the team a game in the current window, absent otherwise */
.lk-next { font-size: .72rem; font-weight: 800; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px;
  background: rgba(255,209,102,.92); color: #231a04; box-shadow: 0 2px 6px rgba(0,0,0,.35); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.lk-open-hint { margin-top: auto; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; opacity: .75; }
.lk-door-name .lk-door-panel { background: linear-gradient(170deg, #232838, #12151f 70%); color: #f3ead2; justify-content: center; }
.lk-nameplate { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 1.06rem; line-height: 1.25; padding: 12px 10px; border: 1px solid rgba(255, 209, 102, .55); border-radius: 8px; background: linear-gradient(180deg, rgba(255,209,102,.14), rgba(255,209,102,.03)); text-shadow: 0 1px 0 rgba(0,0,0,.8); width: 100%; box-sizing: border-box; }

/* ---------- rooms ---------- */
.lk-roomzone { margin: 10px 0 30px; }
.lk-room { border: 1px solid var(--line, #2a3350); border-radius: 16px; padding: 20px; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.22)); }
.lk-close { margin-bottom: 14px; }
.lk-room-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.lk-room-logo { width: 84px; height: 84px; object-fit: contain; background: #fff; border-radius: 12px; padding: 6px; box-sizing: border-box; }
.lk-room-name { margin: 0; font-size: 1.7rem; }
.lk-room-sub { margin: 4px 0 0; opacity: .85; }
.lk-champ { margin: 6px 0 0; font-weight: 800; color: var(--gold, #ffd166); }
.lk-scene { margin: 18px 0; border-radius: 12px; overflow: hidden; border: 1px solid rgba(0,0,0,.4); }
.lk-lockers { height: 92px; background:
  repeating-linear-gradient(90deg, rgba(0,0,0,.35) 0 3px, transparent 3px 64px),
  repeating-linear-gradient(0deg, transparent 0 26px, rgba(0,0,0,.22) 26px 29px),
  linear-gradient(180deg, var(--lk-scene, #3c4a63), var(--lk-scene2, #27334a)); }
.lk-bench { height: 20px; background: linear-gradient(180deg, #8a6844, #5d4429); box-shadow: inset 0 2px 0 rgba(255,255,255,.25); }
.lk-den { border: 1px solid rgba(0,0,0,.45); border-radius: 12px; padding: 16px; background: linear-gradient(180deg, #2c2118, #1d1610); margin: 18px 0; }
.lk-den h3 { margin: 0 0 10px; color: #e8d9b8; }
.lk-whiteboard { background: #f7f9f4; color: #1c2733; border-radius: 8px; padding: 16px 18px; box-shadow: inset 0 0 0 3px #9db3a8; background-image: repeating-linear-gradient(0deg, transparent 0 27px, rgba(70,110,140,.14) 27px 28px); }
.lk-board-big { font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive; font-size: 1.35rem; font-weight: 700; margin: 0 0 6px; }
.lk-board-note { margin: 0; opacity: .85; }
.lk-data { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin: 18px 0; }
.lk-block h3 { margin: 0 0 8px; }
.lk-note { opacity: .85; }
.lk-games { list-style: none; margin: 0; padding: 0; }
.lk-games li { padding: 7px 0; border-bottom: 1px dashed rgba(255,255,255,.14); }
.lk-when { opacity: .75; font-size: .85em; }
.lk-res { display: inline-block; min-width: 20px; text-align: center; border-radius: 5px; font-weight: 800; font-size: .78rem; padding: 1px 5px; background: #3f6212; color: #ecfccb; }
.lk-res-L { background: #7f1d1d; color: #fee2e2; }
.lk-res-T { background: #44403c; color: #e7e5e4; }
.lk-res-live { background: #b91c1c; color: #fff; }
.lk-group { font-weight: 700; margin: 0 0 6px; }
.lk-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.lk-table th, .lk-table td { padding: 6px 8px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.12); }
.lk-table tr.lk-me td { background: rgba(255, 209, 102, .16); font-weight: 700; }
.lk-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.lk-fact { border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 10px 12px; }
.lk-fact span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; opacity: .75; }
.lk-fact b { font-size: 1.05rem; }
.lk-official { margin: 14px 0 4px; }
.lk-ent { margin-top: 20px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 14px; }
.lk-ent-h { margin: 0 0 10px; }
.lk-ent-row { display: flex; flex-wrap: wrap; gap: 8px; }
.lk-ent-chip { border-radius: 999px; padding: 6px 12px; background: color-mix(in srgb, var(--lkc, #334155) 55%, #000); color: #fff; border: 1px solid var(--lka, rgba(255,255,255,.35)); font-size: .88rem; }
.lk-ent-note { opacity: .8; margin: 10px 0 0; }
.lk-title { margin: 12px 0; border: 1px solid var(--line, #2a3350); border-radius: 12px; padding: 12px 16px; }
.lk-title summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; }
.lk-title .lk-table { margin-top: 10px; }

/* ---------- dressing variations: same system, no two halls alike ---------- */
.lk-dress-stadium-steel { --lk-scene: #46586f; --lk-scene2: #2b3648; }
.lk-dress-hardwood { --lk-scene: #7a5a34; --lk-scene2: #4f3a20; }
.lk-dress-summer-arena { --lk-scene: #5b4a8a; --lk-scene2: #372b58; }
.lk-dress-ballpark-brick { --lk-scene: #7c4436; --lk-scene2: #4c2a20; }
.lk-dress-ice-house { --lk-scene: #7fa8bd; --lk-scene2: #476b80; }
.lk-dress-terraces { --lk-scene: #3f6b3a; --lk-scene2: #274a24; }
.lk-dress-night-lights { --lk-scene: #2c3a6e; --lk-scene2: #1a2347; }
.lk-dress-homecoming { --lk-scene: #8a5a2b; --lk-scene2: #54350f; }
.lk-dress-fieldhouse { --lk-scene: #2e4a6b; --lk-scene2: #1b2f47; }
.lk-dress-banner-hall { --lk-scene: #7c2d3e; --lk-scene2: #4a1a26; }
.lk-dress-diamond-dust { --lk-scene: #5f7038; --lk-scene2: #39481f; }
.lk-dress-gold { --lk-scene: #4a3d1c; --lk-scene2: #292008; }
.lk-dress-classics { --lk-scene: #6e5626; --lk-scene2: #42331a; }
.lk-dress-aew { --lk-scene: #17494d; --lk-scene2: #0d2c2f; }
.lk-dress-museum { --lk-scene: #6b543a; --lk-scene2: #42331f; }
.lk-scene-museum .lk-lockers { background:
  repeating-linear-gradient(90deg, rgba(0,0,0,.4) 0 3px, transparent 3px 64px),
  repeating-linear-gradient(0deg, transparent 0 26px, rgba(0,0,0,.25) 26px 29px),
  linear-gradient(180deg, #6b543a, #42331f); }
.lk-hall-card.lk-dress-museum { background: linear-gradient(160deg, rgba(214,178,110,.14), rgba(0,0,0,.25)); }
.lk-hall-card.lk-dress-gold { background: linear-gradient(160deg, rgba(255,209,102,.13), rgba(0,0,0,.25)); }
.lk-hall-card.lk-dress-aew { background: linear-gradient(160deg, rgba(45,212,191,.12), rgba(0,0,0,.25)); }
.lk-hall-card.lk-dress-ice-house { background: linear-gradient(160deg, rgba(147,197,253,.13), rgba(0,0,0,.25)); }
.lk-hall-card.lk-dress-ballpark-brick { background: linear-gradient(160deg, rgba(248,113,113,.12), rgba(0,0,0,.25)); }
.lk-hall-card.lk-dress-terraces { background: linear-gradient(160deg, rgba(74,222,128,.12), rgba(0,0,0,.25)); }
.lk-hall-card.lk-dress-homecoming { background: linear-gradient(160deg, rgba(217,164,65,.13), rgba(0,0,0,.25)); }
.lk-hall-card.lk-dress-fieldhouse { background: linear-gradient(160deg, rgba(96,150,220,.12), rgba(0,0,0,.25)); }
.lk-hall-card.lk-dress-banner-hall { background: linear-gradient(160deg, rgba(220,90,110,.12), rgba(0,0,0,.25)); }
.lk-hall-card.lk-dress-diamond-dust { background: linear-gradient(160deg, rgba(150,190,90,.12), rgba(0,0,0,.25)); }
.lk-hall-card.lk-dress-classics { background: linear-gradient(160deg, rgba(255,209,102,.16), rgba(0,0,0,.25)); }

/* ---------- the photo pass (v86): licensed portraits on the doors ---------- */
/* A verified photo rides at the top of the door panel, cropped to a
   portrait band biased toward the head of the frame; the credit line
   travels with it in small type. If the image cannot load, the
   renderer's onerror removes the whole figure and the door falls back
   to the plain name plate it always was (.lk-nophoto). */
.lk-photofig { display: block; width: 100%; }
.lk-photowrap { display: block; width: 100%; height: 104px; overflow: hidden; border-radius: 6px; background: #0a0c12; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.lk-photo { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; }
.lk-credit { display: block; font-size: .62rem; line-height: 1.35; opacity: .75; margin-top: 4px; }
.lk-door-name.lk-hasphoto .lk-door-panel { justify-content: flex-start; }
.lk-door-name.lk-nophoto .lk-door-panel { justify-content: center; }
.lk-room-photo { margin: 16px 0 4px; max-width: 340px; }
.lk-room-photo img { width: 100%; max-height: 340px; object-fit: cover; object-position: center 22%; border-radius: 10px; display: block; }
.lk-room-photo figcaption { font-size: .78rem; line-height: 1.45; opacity: .85; margin-top: 6px; }
.lk-room-photo figcaption a { color: inherit; }

/* ---------- the room strip's working chips (v85) ---------- */
/* Game chips are real buttons that launch the game in the room; show
   chips are links to the hall shelf where the show stands in full. They
   inherit the chip look exactly — only the behavior is new. */
button.lk-ent-chip { font: inherit; cursor: pointer; text-align: left; }
a.lk-ent-chip { text-decoration: none; display: inline-block; }
button.lk-ent-chip:hover, a.lk-ent-chip:hover, button.lk-ent-chip:focus-visible, a.lk-ent-chip:focus-visible { filter: brightness(1.3); }
.lk-ent-play { margin-top: 14px; }
.lk-lists { margin: 0; padding-left: 20px; }
.lk-lists li { padding: 4px 0; }

/* ---------- the decorated plate (v88) ---------- */
/* Every photo-less people door wears an engraved locker plate: brushed
   metal from CSS gradients alone, a neon edge in the hall/league color
   (--lkp), the monogram, and the honors the door's own data carries.
   No images, no extra requests — light on a phone on poor signal. */
.lk-plate2 { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 100%; box-sizing: border-box; position: relative;
  padding: 13px 9px 11px; border-radius: 8px; border: 1px solid var(--lkp, #ffd166);
  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 0 12px -3px var(--lkp, #ffd166);
  color: #f3ead2; }
.lk-plate2::before, .lk-plate2::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); }
.lk-plate2::before { left: 7px; }
.lk-plate2::after { right: 7px; }
.lk-plate-mono { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 1.85rem; line-height: 1;
  color: var(--lkp, #ffd166); text-shadow: 0 -1px 0 rgba(0,0,0,.85), 0 1px 1px rgba(255,255,255,.16), 0 0 14px var(--lkp, #ffd166); letter-spacing: .04em; }
.lk-plate-name { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 1.02rem; line-height: 1.22;
  text-shadow: 0 -1px 0 rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.13); }
.lk-plate-honors { font-size: .68rem; line-height: 1.45; letter-spacing: .05em; text-transform: uppercase; color: #cfc39f;
  text-shadow: 0 -1px 0 rgba(0,0,0,.8); }
.lk-door.lk-plated .lk-door-panel { justify-content: center; }
.lk-plate-room { max-width: 540px; margin: 16px auto 4px; padding: 28px 20px 20px; gap: 9px; border-width: 2px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -14px 22px rgba(0,0,0,.5), 0 0 22px -4px var(--lkp, #ffd166); }
.lk-plate-room .lk-plate-mono { font-size: 3.3rem; }
.lk-plate-room .lk-plate-name { font-size: 1.55rem; }
.lk-plate-room .lk-plate-honors { font-size: .8rem; }
.lk-plate-note { font-size: .76rem; line-height: 1.5; color: #b9b2a0; max-width: 44ch; }

@media (prefers-reduced-motion: reduce) {
  .lk-door-panel { transition: none; }
  .lk-door.lk-opening .lk-door-panel { transform: none; opacity: .4; }
}

/* ---------- v113: the Wonder Door ----------
   One small brass-bound door at the end of the corridor, on no hall
   list, in the house's own deep purple and gold. It swings on the
   same hinge as every locker door — panel, warm light behind it —
   and the room it reveals names its real place and its Mastercam. */
.lk-wonder { display: flex; gap: 22px; align-items: stretch; flex-wrap: wrap; }
.lk-wonder-door { perspective: 700px; border: 0; background: transparent; padding: 0; cursor: pointer; font: inherit; color: inherit; text-align: center; position: relative; }
.lk-wonder-door::before { content: ""; position: absolute; inset: 4px; border-radius: 10px; opacity: 0; transition: opacity .45s ease; pointer-events: none;
  background: radial-gradient(90% 90% at 50% 30%, rgba(255, 226, 150, .95), rgba(217, 164, 65, .55) 55%, rgba(120, 80, 20, .25)); }
.lk-wonder-door.lk-opening::before { opacity: 1; }
.lk-wonder-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; width: 196px; min-height: 252px; padding: 18px 12px; box-sizing: border-box; border-radius: 10px 10px 6px 6px; transform-origin: left center; transition: transform .55s ease, opacity .55s ease, box-shadow .2s ease; position: relative; z-index: 1;
  background: linear-gradient(165deg, #4a2d6b 0%, #2a1745 72%); color: #f3ead2;
  box-shadow: inset 0 0 0 2px rgba(255, 209, 102, .55), inset 0 -14px 24px rgba(0, 0, 0, .4), 0 6px 14px rgba(0, 0, 0, .35); }
.lk-wonder-panel::after { content: ""; position: absolute; right: 9px; top: 50%; width: 7px; height: 30px; border-radius: 4px; background: rgba(255, 209, 102, .75); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .4); }
.lk-wonder-door.lk-opening .lk-wonder-panel { transform: rotateY(-82deg); opacity: .12; box-shadow: inset 0 0 0 2px rgba(255, 209, 102, .7), 0 0 26px rgba(255, 209, 102, .5); }
.lk-wonder-orn { font-size: 1.6rem; color: var(--gold, #ffd166); }
.lk-wonder-name { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 1.3rem; line-height: 1.2; }
.lk-wonder-hint { font-size: .7rem; text-transform: uppercase; letter-spacing: .13em; opacity: .8; }
.lk-wonder-room { flex: 1 1 320px; border: 1px solid rgba(255, 209, 102, .45); border-radius: 14px; padding: 18px 20px; background: linear-gradient(180deg, rgba(255, 209, 102, .08), rgba(0, 0, 0, .22)); }
.lk-wonder-place { font-size: 1.08rem; margin: 0 0 8px; }
.lk-wonder-line { line-height: 1.6; margin: 0 0 12px; }
@media (prefers-reduced-motion: reduce) {
  .lk-wonder-panel, .lk-wonder-door::before { transition: none; }
}

/* v112: Find Your Door results list */
.lk-find-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.lk-find-list li { border: 1px solid #2b3f66; border-radius: 10px; background: #0d1730; padding: 8px 12px; }
.lk-find-list a { color: #ffd75e; font-weight: 700; text-decoration: none; }
.lk-find-list a:hover { text-decoration: underline; }
