/* Family site: Wall, Pictures, Recipes, Stories (family.js, pictures.js, recipes.js, stories.js) */
button.link { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; }
button.link:hover { text-decoration: underline; }
.avatar.lg { width: 40px; height: 40px; font-size: 14px; }
.fm-empty { text-align: center; padding: 36px 16px; }
.fm-empty .big { font-size: 44px; }
.fm-filter { padding: 10px 12px; }

/* ---------- Wall */
.fm-wall { display: grid; grid-template-columns: minmax(0, 640px) 300px; gap: 18px; justify-content: center; align-items: start; }
.fm-side { position: sticky; top: calc(var(--head-h, 64px) + 12px); }
.fm-side h3 { margin-bottom: 10px; }
@media (max-width: 980px) { .fm-wall { grid-template-columns: minmax(0, 1fr); } .fm-side { position: static; order: -1; display: none; } }
.fm-compose textarea { flex: 1; border: 0; background: var(--soft); border-radius: 20px; padding: 10px 14px; resize: none; min-height: 56px; font: inherit; font-size: 15px; }
.fm-compose textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; background: #fff; }
.fm-compose.dragging { outline: 2px dashed var(--accent); }
.fm-compose-bar { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.fm-compose-bar .pickers { display: flex; gap: 6px; flex-wrap: wrap; }
.fm-pending { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.fm-pend { position: relative; width: 84px; height: 84px; border-radius: 8px; overflow: hidden; background: var(--soft); display: grid; place-items: center; font-size: 28px; }
.fm-pend img { width: 100%; height: 100%; object-fit: cover; }
.fm-pend .x { position: absolute; top: 3px; right: 3px; padding: 0 6px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; border: 0; font-size: 12px; }
.fm-post { padding: 14px 16px 6px; }
.fm-post-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.fm-post-body { font-size: 15px; white-space: normal; word-wrap: break-word; margin-bottom: 10px; }
.fm-menu { position: relative; }
.fm-menu-pop { position: absolute; right: 0; top: 100%; z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); min-width: 170px; padding: 4px; }
.fm-menu-pop button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 6px; }
.fm-menu-pop button:hover { background: var(--soft); }
.fm-menu-pop .danger-t { color: var(--danger); }
.fm-photos { display: grid; gap: 3px; margin: 0 -16px 8px; grid-template-columns: repeat(6, 1fr); }
.fm-ph { position: relative; padding: 0; border: 0; background: var(--soft); aspect-ratio: 1; overflow: hidden; cursor: zoom-in; grid-column: span 3; border-radius: 0; }
.fm-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-photos.n1 .fm-ph { grid-column: span 6; aspect-ratio: auto; max-height: 560px; }
.fm-photos.n1 .fm-ph img { object-fit: contain; max-height: 560px; background: #111; }
.fm-photos.n3 .fm-ph:first-child { grid-column: span 6; aspect-ratio: 2 / 1; }
.fm-photos.n5 .fm-ph:nth-child(n+3) { grid-column: span 2; }
.fm-more { position: absolute; inset: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 28px; font-weight: 700; display: grid; place-items: center; }
.fm-play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.6); pointer-events: none; z-index: 1; }
.fm-act-card .fm-post-head { margin-bottom: 10px; }
.fm-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; margin: 0 -16px 10px; text-decoration: none; position: relative; }
.fm-strip span { aspect-ratio: 1; background: var(--soft); overflow: hidden; }
.fm-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-strip-more { position: absolute; right: 0; bottom: 0; width: calc(100% / 6); display: grid; place-items: center; background: rgba(0,0,0,.45) !important; color: #fff; font-weight: 700; font-size: 18px; }
.fm-link-card { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px; text-decoration: none; color: inherit; margin-bottom: 10px; }
.fm-link-card:hover { background: var(--soft); }
.fm-link-card img { width: 86px; height: 86px; object-fit: cover; border-radius: 8px; flex: none; }
.fm-link-card > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fm-link-ico { width: 86px; height: 86px; border-radius: 8px; background: var(--soft); display: grid; place-items: center; font-size: 34px; flex: none; }
.fm-clip2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* likes + comments */
.fm-counts { display: flex; justify-content: space-between; align-items: center; padding: 4px 0 6px; font-size: 13px; color: var(--muted); }
.fm-rx-sum { letter-spacing: -2px; } .fm-rx-sum span { letter-spacing: 0; margin-left: 4px; }
.fm-actions { display: flex; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -4px; }
.fm-actions > * { flex: 1; }
.fm-act { width: 100%; border: 0; background: none; padding: 7px; border-radius: 6px; color: var(--muted); font-weight: 600; cursor: pointer; }
.fm-act:hover { background: var(--soft); }
.fm-act.on { color: #e11d48; }
.fm-like-wrap { position: relative; }
.fm-emojis { position: absolute; bottom: 100%; left: 4px; display: none; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 4px 6px; box-shadow: var(--shadow); z-index: 5; }
.fm-like-wrap:hover .fm-emojis, .fm-like-wrap:focus-within .fm-emojis { display: flex; }
.fm-emojis button { border: 0; background: none; font-size: 22px; padding: 2px 4px; cursor: pointer; transition: transform .1s; }
.fm-emojis button:hover { transform: scale(1.3); }
.fm-comments { padding: 6px 0 8px; display: flex; flex-direction: column; gap: 8px; }
.fm-cm { display: flex; gap: 8px; align-items: flex-start; }
.fm-cm-b { min-width: 0; }
.fm-cm-bubble { background: var(--soft); border-radius: 14px; padding: 6px 12px; word-wrap: break-word; }
.fm-cm-new { display: flex; gap: 8px; align-items: flex-start; }
.fm-cm-new textarea { flex: 1; border-radius: 16px; border: 1px solid var(--line); padding: 6px 12px; resize: none; font: inherit; min-height: 34px; }

/* side panels */
.fm-up { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.fm-up-ico { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 17px; flex: none; }
.fm-up.today { background: #fff7ed; border-radius: 8px; padding: 4px; }
.fm-today { color: #c2410c; }
.fm-latest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 8px; }
.fm-latest button { padding: 0; border: 0; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: var(--soft); cursor: zoom-in; }
.fm-latest img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-family { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.fm-fam { display: flex; gap: 8px; align-items: center; }

/* ---------- picture viewer */
.fm-lb { position: fixed; inset: 0; z-index: 1000; background: rgba(10,10,12,.94); display: grid; grid-template-columns: 1fr 340px; }
.fm-lb-stage { display: grid; place-items: center; min-width: 0; min-height: 0; padding: 20px 56px; }
.fm-lb-stage img, .fm-lb-stage video { max-width: 100%; max-height: calc(100vh - 40px); object-fit: contain; border-radius: 4px; }
.fm-lb-file { color: #fff; text-align: center; font-size: 60px; } .fm-lb-file div { font-size: 14px; }
.fm-lb-side { background: #fff; overflow: auto; padding: 16px; }
.fm-lb-who { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.fm-lb-cap { font-size: 15px; }
.fm-lb-x { position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(255,255,255,.15); color: #fff; border: 0; border-radius: 50%; width: 40px; height: 40px; font-size: 18px; }
.fm-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(255,255,255,.15); color: #fff; border: 0; border-radius: 50%; width: 46px; height: 46px; font-size: 30px; line-height: 1; }
.fm-lb-nav.prev { left: 10px; } .fm-lb-nav.next { right: 350px; }
.fm-lb .spinner { border-color: rgba(255,255,255,.2); border-top-color: #fff; }
@media (max-width: 800px) {
  .fm-lb { grid-template-columns: 1fr; grid-template-rows: minmax(0, 62vh) auto; overflow: auto; }
  .fm-lb-stage { padding: 50px 8px 8px; }
  .fm-lb-stage img, .fm-lb-stage video { max-height: 58vh; }
  .fm-lb-nav { top: 31vh; } .fm-lb-nav.next { right: 10px; }
}

/* ---------- Pictures */
.fm-pics { position: relative; min-height: 60vh; }
.fm-drop-hint { display: none; }
.fm-pics.dragging { outline: 3px dashed var(--accent); outline-offset: 4px; border-radius: 10px; }
.fm-pics.dragging .fm-drop-hint { display: grid; place-items: center; position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); background: var(--accent); color: #fff; padding: 12px 22px; border-radius: 30px; font-weight: 700; z-index: 50; }
.fm-pics .page-head .pickers { display: flex; gap: 6px; flex-wrap: wrap; }
.fm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.fm-tile { position: relative; padding: 0; border: 0; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--soft); cursor: zoom-in; }
.fm-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.fm-tile:hover img { transform: scale(1.04); }
.fm-tile-who { position: absolute; left: 6px; bottom: 6px; opacity: 0; transition: opacity .15s; }
.fm-tile:hover .fm-tile-who { opacity: 1; }
.fm-tile-who .avatar { width: 24px; height: 24px; font-size: 10px; border: 2px solid #fff; }
.fm-check { display: none; position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.3); color: transparent; font-weight: 700; place-items: center; }
.fm-grid.selecting .fm-tile { cursor: pointer; } .fm-grid.selecting .fm-check { display: grid; }
.fm-tile.picked { outline: 3px solid var(--accent); outline-offset: -3px; }
.fm-tile.picked .fm-check { background: var(--accent); color: #fff; }
.fm-selbar { position: sticky; top: calc(var(--head-h, 64px) + 6px); z-index: 5; display: flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--accent); border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; box-shadow: var(--shadow); }
.fm-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.fm-col { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--panel); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: transform .15s; }
.fm-col:hover { transform: translateY(-2px); }
.fm-col-cover { aspect-ratio: 4 / 3; background: var(--soft); display: block; overflow: hidden; }
.fm-col-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-col-empty { display: grid; place-items: center; height: 100%; font-size: 40px; }
.fm-col-t { padding: 10px 12px; display: flex; flex-direction: column; }

/* ---------- Recipes */
.fm-recipes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.fm-rcard { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--panel); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: transform .15s; }
.fm-rcard:hover { transform: translateY(-2px); }
.fm-rcover { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #fef3c7, #fde68a); display: grid; place-items: center; font-size: 46px; overflow: hidden; }
.fm-rcover img { width: 100%; height: 100%; object-fit: cover; }
.fm-heart { position: absolute; top: 8px; right: 10px; color: #e11d48; font-style: normal; font-size: 20px; text-shadow: 0 0 4px #fff; }
.fm-rbody { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.fm-rby { display: flex; gap: 6px; align-items: center; margin-top: auto; color: var(--muted); }
.fm-rby .avatar { width: 20px; height: 20px; font-size: 9px; }
.drawer.fm-rdrawer { width: min(720px, 100vw); }
.fm-recipe h3 { margin-top: 16px; }
.fm-rphotos { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; }
.fm-rphotos button { padding: 0; border: 0; flex: none; width: 160px; height: 120px; border-radius: 8px; overflow: hidden; background: var(--soft); cursor: zoom-in; }
.fm-rphotos img { width: 100%; height: 100%; object-fit: cover; }
.fm-rfacts { display: flex; gap: 10px; flex-wrap: wrap; }
.fm-rfacts div { background: var(--soft); border-radius: 8px; padding: 6px 12px; display: flex; flex-direction: column; }
.fm-rfacts span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.fm-ing { list-style: none; padding: 0; margin: 0; columns: 2 220px; }
.fm-ing li { break-inside: avoid; padding: 3px 0; }
.fm-ing label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.fm-ing li.done span { text-decoration: line-through; color: var(--muted); }
.fm-steps { padding-left: 22px; } .fm-steps li { margin-bottom: 8px; font-size: 15px; }

/* ---------- Stories */
.fm-stories { display: grid; gap: 14px; }
.fm-scard { display: block; text-decoration: none; color: inherit; transition: transform .15s; }
.fm-scard:hover { transform: translateY(-2px); }
.fm-scard h2 { font-family: Georgia, "Times New Roman", serif; font-size: 22px; margin-bottom: 2px; }
.fm-sx { font-family: Georgia, serif; font-size: 15px; color: #374151; }
.fm-scard .avatar { width: 22px; height: 22px; font-size: 9px; }
.fm-drafts { display: flex; gap: 10px; flex-wrap: wrap; }
.fm-draft { display: flex; flex-direction: column; border: 1px dashed var(--line); border-radius: 10px; padding: 8px 12px; text-decoration: none; color: inherit; min-width: 180px; }
.fm-draft:hover { border-color: var(--accent); }
.fm-read, .fm-write { max-width: 760px; margin: 0 auto; }
.fm-story { padding: 28px 36px; }
.fm-story h1 { font-family: Georgia, "Times New Roman", serif; font-size: 32px; line-height: 1.2; margin-bottom: 10px; }
.fm-byline { display: flex; gap: 8px; align-items: center; color: var(--muted); margin-bottom: 10px; }
.fm-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; color: var(--muted); }
.fm-story-body, .fm-editor { font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.7; color: #1f2933; }
.fm-story-body blockquote, .fm-editor blockquote { border-left: 3px solid var(--accent); margin: 12px 0; padding: 2px 16px; color: #4b5563; font-style: italic; }
.fm-story-body h2, .fm-editor h2 { font-size: 22px; margin: 20px 0 6px; }
.fm-title-in { width: 100%; border: 0; font: 700 26px Georgia, serif; padding: 4px 0 10px; outline: none; background: none; }
.fm-tools { display: flex; gap: 4px; flex-wrap: wrap; border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; padding: 6px; background: var(--soft); }
.fm-tools button { min-width: 34px; padding: 4px 8px; }
.fm-editor { min-height: 340px; border: 1px solid var(--line); border-radius: 0 0 8px 8px; padding: 14px 18px; outline: none; margin-bottom: 14px; background: #fff; }
.fm-editor:focus { border-color: var(--accent); }
.fm-editor:empty::before { content: attr(data-ph); color: #9ca3af; }
.fm-write-bar { position: sticky; bottom: 0; background: var(--bg); padding: 10px 0; }
@media (max-width: 600px) { .fm-story { padding: 18px 16px; } .fm-story h1 { font-size: 26px; } .fm-story-body, .fm-editor { font-size: 17px; } }

/* ---------- Family Address Book (familybook.js, SQL 057) */
.fb-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; }
.fb-bar input[type=search] { flex: 1 1 240px; min-width: 180px; }
.fb-bar select { width: auto; max-width: 240px; }
.fb-group { margin-bottom: 18px; }
.fb-ghead { display: flex; gap: 10px; align-items: baseline; margin: 6px 2px 8px; padding-bottom: 4px; border-bottom: 2px solid var(--accent); font-size: 15px; }
.fb-ghead[data-hh] { cursor: pointer; }
.fb-ghead[data-hh]:hover b { color: var(--accent); }
.fb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.fb-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; gap: 12px; cursor: pointer; min-width: 0; }
.fb-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.fb-card.mem { background: #f8fafc; }
.fb-card .fb-main { min-width: 0; flex: 1; }
.fb-card .nm { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-card .nick { font-weight: 400; color: var(--muted); font-size: 13px; }
.fb-card .sub { font-size: 12px; color: var(--muted); }
.fb-card .ln { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-card .ln a { text-decoration: none; }
.fb-rel { display: inline-block; font-size: 11px; font-weight: 700; color: #92400e; background: #fef3c7; border-radius: 999px; padding: 1px 8px; margin: 2px 0; }
.fb-av { width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 17px; overflow: hidden; background: #94a3b8; }
.fb-av img { width: 100%; height: 100%; object-fit: cover; }
.fb-av.mem { filter: grayscale(.85); opacity: .85; }
.fb-av.big { width: 88px; height: 88px; font-size: 30px; }
.fb-av.sm { width: 32px; height: 32px; font-size: 12px; }
.fb-av.xs { width: 22px; height: 22px; font-size: 9px; }
.fb-dhead { display: flex; gap: 16px; align-items: center; margin-bottom: 6px; }
.fb-dhead h2 { margin: 0; font-size: 20px; }
.fb-act { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 6px; }
.fb-act a { text-decoration: none; }
.fb-q { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; padding: 6px 10px; min-width: 58px; }
.fb-q span { font-size: 18px; line-height: 1; }
.fb-sec { border-top: 1px solid var(--line); padding: 12px 0; }
.fb-sec > h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 8px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fb-sec > h3 button { text-transform: none; letter-spacing: 0; }
.fb-kv { display: grid; grid-template-columns: 110px 1fr auto; gap: 5px 10px; align-items: baseline; font-size: 14px; }
.fb-kv .k { font-size: 12px; color: var(--muted); }
.fb-kv .v { min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.fb-kv .v a { text-decoration: none; }
.fb-kv .x a, .fb-kv .x button { padding: 2px 6px; font-size: 12px; border: 0; background: none; text-decoration: none; }
.fb-chips { display: flex; flex-wrap: wrap; gap: 6px; white-space: normal; }
.fb-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px 2px 3px; background: var(--panel); font-size: 13px; }
.fb-chip:hover { border-color: var(--accent); }
.fb-pill { display: inline-block; border-radius: 999px; padding: 1px 8px; font-size: 12px; background: var(--soft); margin: 1px 2px; text-transform: none; letter-spacing: 0; }
.fb-hhbtn { border: 0; background: var(--soft); border-radius: 8px; padding: 8px 12px; text-align: left; width: 100%; margin-bottom: 8px; }
.fb-notes { white-space: pre-wrap; font-size: 14px; }
.fb-health { background: #fff7f7; margin: 0 -16px; padding: 12px 16px; }
.fb-ed h4 { margin: 16px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.fb-ed h4 .muted, .fb-ed h4 button { text-transform: none; letter-spacing: 0; font-weight: 400; }
.fb-photo { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.fb-li { display: grid; grid-template-columns: 130px 1fr auto; gap: 6px; margin-bottom: 6px; }
.fb-li.fb-li-pr { grid-template-columns: 130px 1fr auto auto; }
.fb-pr { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.fb-md { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 6px; }
.fb-check { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; margin: 6px 0; }
.fb-check input { width: auto; }
.fb-box { border: 1px dashed var(--line); border-radius: 8px; padding: 10px; margin: 6px 0 10px; }
.fb-addr { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 6px; }
.fb-addr input[name$=city] { grid-column: span 1; }
.fb-rel-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.fb-rel-row select { width: auto; max-width: 230px; }
.fb-rel-row .fb-md { display: inline-grid; width: 260px; }
.fb-sizes { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0 8px; }
.fb-hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.fb-hcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.fb-hcard:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.fb-hcard .nm { font-size: 15px; }
.fb-addrtxt { font-size: 14px; line-height: 1.35; }
.fb-addrtxt.big { font-size: 16px; }
.fb-faces { display: flex; align-items: center; gap: 0; flex-wrap: wrap; margin-top: 4px; }
.fb-faces > span[title] .fb-av { border: 2px solid var(--panel); margin-right: -6px; }
.fb-faces .small { margin-left: 12px; }
.fb-mlist { display: flex; flex-direction: column; gap: 6px; }
.fb-mrow { display: flex; gap: 10px; align-items: center; text-align: left; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 8px 10px; }
.fb-mrow:hover { border-color: var(--accent); }
.fb-treewrap { overflow: auto; padding: 16px 8px; }
.fb-tree { display: inline-block; min-width: 100%; }
.fb-tree ul { padding-top: 22px; position: relative; display: flex; justify-content: center; margin: 0; padding-left: 0; }
.fb-tree > ul { padding-top: 0; }
.fb-tree li { list-style: none; position: relative; padding: 22px 6px 0; display: flex; flex-direction: column; align-items: center; }
.fb-tree > ul > li { padding-top: 0; }
.fb-tree li::before, .fb-tree li::after { content: ''; position: absolute; top: 0; right: 50%; width: 50%; height: 22px; border-top: 2px solid #cbd5e1; }
.fb-tree li::after { right: auto; left: 50%; border-left: 2px solid #cbd5e1; }
.fb-tree li:only-child::before, .fb-tree li:only-child::after { display: none; }
.fb-tree li:only-child { padding-top: 22px; }
.fb-tree li:only-child::after { display: block; border-top: 0; width: 0; left: 50%; }
.fb-tree > ul > li:only-child { padding-top: 0; }
.fb-tree > ul > li:only-child::after { display: none; }
.fb-tree li:first-child::before, .fb-tree li:last-child::after { border: 0 none; }
.fb-tree li:last-child::before { border-right: 2px solid #cbd5e1; border-radius: 0 6px 0 0; }
.fb-tree li:first-child::after { border-radius: 6px 0 0 0; }
.fb-tree li:only-child::after { border-left: 2px solid #cbd5e1; border-radius: 0; }
.fb-tree > ul > li:only-child::after { display: none; }
.fb-tree ul ul::before { content: ''; position: absolute; top: 0; left: 50%; border-left: 2px solid #cbd5e1; width: 0; height: 22px; }
.fb-couple { display: flex; align-items: center; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px; white-space: nowrap; }
.fb-node { display: flex; gap: 6px; align-items: center; text-align: left; border: 0; background: none; padding: 4px 8px 4px 4px; border-radius: 8px; line-height: 1.15; font-size: 13px; }
.fb-node:hover { background: var(--soft); }
.fb-node.focus { outline: 3px solid #f59e0b; }
.fb-node.mem { color: var(--muted); }
.fb-heart { color: #db2777; font-size: 14px; }
.fb-answer { font-size: 16px; padding: 10px 2px 0; }
.fb-cols { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .fb-cols { grid-template-columns: 1fr; } }
.fb-up { display: flex; flex-direction: column; gap: 6px; }
.fb-up .ev { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); cursor: pointer; }
.fb-up .ev:hover { border-color: var(--accent); }
.fb-up .ev.today { border-color: #f59e0b; background: #fffbeb; }
.fb-up .dt { width: 46px; text-align: center; flex: none; }
.fb-up .dt small { display: block; font-size: 11px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.fb-up .dt b { font-size: 20px; line-height: 1.1; }
.fb-up .tx { flex: 1; min-width: 0; }
.fb-up .when { font-size: 12px; color: var(--muted); white-space: nowrap; }
.fb-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 10px; }
.fb-month { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.fb-month > b { display: block; border-bottom: 2px solid var(--accent); margin-bottom: 4px; }
.fb-month div[data-open] { cursor: pointer; padding: 1px 0; }
.fb-month div[data-open]:hover { color: var(--accent); }
.fb-month .d { display: inline-block; width: 18px; font-weight: 700; }
.fb-cell { display: flex; gap: 8px; align-items: center; }
.fb-warn { color: #b91c1c; font-weight: 600; }
.fb-prt { display: grid; gap: 8px; }
.fb-prt button { text-align: left; padding: 12px; }
@media (max-width: 640px) {
  .fb-li { grid-template-columns: 1fr auto; }
  .fb-li.fb-li-pr { grid-template-columns: 1fr auto auto; }
  .fb-li .lab { grid-column: 1 / -1; }
  .fb-addr, .fb-sizes { grid-template-columns: 1fr 1fr; }
  .fb-kv { grid-template-columns: 90px 1fr auto; }
  .fb-rel-row select { max-width: 100%; }
}

/* ------------------------------------------------------------------ 067: Register & Request Login (sign-in page) */
.reg-or { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.reg-or::before, .reg-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.reg-btn { width: 100%; justify-content: center; padding: 11px; font-weight: 700; font-size: 15px; border: 2px solid var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--panel)); border-radius: 10px; }
.reg-btn:hover { background: color-mix(in srgb, var(--accent) 16%, var(--panel)); }
.reg-note { text-align: center; margin: 6px 0 0; }
.reg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.reg-done { text-align: center; } .reg-done .big { font-size: 48px; } .reg-done h2 { margin: 6px 0; }
/* Registration Requests page */
.gear-btn { position: relative; }
.gear-dot { position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ef4444; color: #fff; font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center; }
.tn-link .reg-count { margin-left: auto; background: #ef4444; color: #fff; }
.reg-share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.reg-share > div { flex: 1 1 260px; } .reg-share input { flex: 1 1 260px; min-width: 0; }
.reg-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.reg-card { margin: 0; cursor: pointer; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .15s; }
.reg-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.reg-top { display: flex; align-items: center; gap: 10px; }
.reg-av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 18%, var(--panel)); color: var(--accent); font-weight: 800; flex: none; }
.reg-av.big { width: 56px; height: 56px; font-size: 20px; }
.reg-who { flex: 1; min-width: 0; } .reg-who b { font-size: 16px; }
.reg-st { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); white-space: nowrap; }
.reg-contact { display: flex; gap: 6px; flex-wrap: wrap; } .reg-contact .btn-like { font-size: 13px; padding: 5px 10px; }
.reg-msg { font-style: italic; color: var(--ink); background: var(--soft); border-radius: 8px; padding: 8px 10px; }
.reg-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; } .reg-acts button { font-size: 13px; }
.reg-dl { display: grid; grid-template-columns: 90px 1fr; gap: 6px 10px; margin: 0 0 12px; } .reg-dl dt { color: var(--muted); font-size: 13px; } .reg-dl dd { margin: 0; }
.reg-tl { list-style: none; padding: 0 0 0 14px; margin: 0; border-left: 2px solid var(--line); } .reg-tl li { margin: 0 0 12px; position: relative; }
.reg-tl li::before { content: ''; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.chip-radio { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; cursor: pointer; font-size: 13px; }
.chip-radio:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--panel)); }

/* ------------------------------------------------------------------ 067: Games */
.gm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-bottom: 16px; }
.gm-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px; text-decoration: none; color: var(--ink); background: var(--panel); border: 1px solid var(--line); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.gm-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 92px; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #fff)); }
.gm-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.12); }
.gm-art { position: relative; font-size: 46px; height: 76px; display: grid; place-items: center; filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); }
.gm-kind { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 700; background: rgba(255,255,255,.88); color: var(--c); padding: 2px 8px; border-radius: 999px; }
.gm-card b { font-size: 17px; margin-top: 8px; } .gm-card .small { color: var(--muted); }
.gm-who { margin-top: auto; } .gm-best { color: #b45309 !important; font-weight: 700; }
.gm-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.gm-room { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.gm-room.hot { border-color: #f59e0b; background: color-mix(in srgb, #f59e0b 9%, var(--panel)); }
.gm-room-ico { font-size: 28px; }
.gm-board-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gm-hs ol { margin: 6px 0 0; padding-left: 20px; } .gm-hs li span { display: inline-block; min-width: 110px; }
.gm-stage { position: relative; min-height: 420px; }
.gm-wrap { max-width: 760px; margin: 0 auto; }
.gm-setup { max-width: 520px; margin: 10px auto; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.gm-setup .big { font-size: 52px; } .gm-setup h2 { margin: 0; }
.gm-names { display: grid; gap: 8px; width: 100%; max-width: 320px; }
.gm-pl { display: flex; align-items: center; gap: 8px; } .gm-pl input { flex: 1; }
.gm-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; flex: none; }
.gm-modes { display: grid; gap: 8px; width: 100%; max-width: 360px; } .gm-modes button { justify-content: center; padding: 11px; }
.gm-over { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: color-mix(in srgb, var(--bg, #f5f6f8) 70%, transparent); backdrop-filter: blur(3px); animation: gmIn .25s ease-out; }
.gm-over-in { background: var(--panel); border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.25); padding: 26px 30px; text-align: center; max-width: 420px; width: calc(100% - 32px); }
.gm-over-in .big { font-size: 54px; } .gm-over-in h2 { margin: 4px 0 8px; } .gm-over-in p { margin: 6px 0; }
@keyframes gmIn { from { opacity: 0; transform: scale(.97); } }
.gm-bd { display: flex; gap: 18px; justify-content: center; align-items: flex-start; }
.gm-board canvas { display: block; height: min(64vh, 600px); width: auto; max-width: 100%; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.18); touch-action: none; }
.gm-board.sq canvas { height: min(62vh, 480px); }
.gm-side { display: flex; flex-direction: column; gap: 10px; width: 150px; }
.gm-stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; display: flex; flex-direction: column; }
.gm-stat span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; } .gm-stat b { font-size: 22px; }
.gm-pad { display: none; justify-content: center; gap: 8px; margin-top: 12px; }
.gm-pad button { width: 58px; height: 52px; font-size: 22px; justify-content: center; border-radius: 12px; }
.mm-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.gm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 2px solid var(--line); background: var(--panel); font-size: 14px; }
.gm-chip.on { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 20%, transparent); font-weight: 700; }
.gm-chip.wait { color: var(--muted); border-style: dashed; }
.gm-yourturn { color: #b45309; font-size: 16px; animation: gmPulse 1.4s infinite; }
@keyframes gmPulse { 50% { opacity: .55; } }
.gm-pick { display: grid; gap: 6px; max-height: 300px; overflow: auto; }
.gm-pick-p { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.gm-pick-p:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--panel)); }
.avatar.sm { width: 24px; height: 24px; font-size: 10px; }
.shake { animation: gmShake .35s; } @keyframes gmShake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
/* Five Letters */
.fl-mode { display: flex; justify-content: center; width: fit-content; margin: 0 auto; }
.fl-key { display: block; margin-top: 4px; } .fl-key i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin: 0 3px 0 8px; }
.fl-grid { display: grid; gap: 6px; justify-content: center; margin-bottom: 14px; }
.fl-row { display: grid; grid-template-columns: repeat(5, 54px); gap: 6px; }
.fl-cell { height: 54px; border: 2px solid var(--line); border-radius: 10px; display: grid; place-items: center; font-size: 26px; font-weight: 800; background: var(--panel); text-transform: uppercase; }
.fl-cell.typed { border-color: #94a3b8; animation: flPop .12s; }
.fl-cell.hit, .fl-key .hit, .fl-k.hit { background: #0d9488; border-color: #0d9488; color: #fff; }
.fl-cell.near, .fl-key .near, .fl-k.near { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.fl-cell.miss, .fl-key .miss, .fl-k.miss { background: #94a3b8; border-color: #94a3b8; color: #fff; }
.fl-cell.hit, .fl-cell.near, .fl-cell.miss { animation: flFlip .45s both; animation-delay: var(--d); }
@keyframes flPop { 50% { transform: scale(1.08); } } @keyframes flFlip { 0% { transform: rotateX(90deg); } 100% { transform: none; } }
.fl-kb { display: grid; gap: 6px; max-width: 520px; margin: 0 auto; }
.fl-kr { display: flex; gap: 5px; justify-content: center; }
.fl-k { flex: 1; max-width: 44px; height: 50px; padding: 0; justify-content: center; font-weight: 700; border-radius: 8px; background: var(--soft); }
.fl-k.wide { max-width: 72px; flex: 1.6; font-size: 13px; }
.fl-share { font-size: 20px; line-height: 1.2; margin: 6px 0; background: none; border: 0; }
/* Scramble Dash */
.sd { max-width: 560px; text-align: center; }
.sd-top { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.sd-bar { height: 8px; background: var(--soft); border-radius: 4px; overflow: hidden; margin: 10px 0 4px; } .sd-bar i { display: block; height: 100%; width: 100%; background: var(--c, var(--accent)); transition: width 1s linear; }
.sd-time { font-size: 28px; font-weight: 800; } .sd-time.low { color: #dc2626; animation: gmPulse .8s infinite; }
.sd-tiles { display: flex; justify-content: center; gap: 8px; margin: 18px 0; flex-wrap: wrap; }
.sd-tile { width: 52px; height: 58px; border-radius: 10px; display: grid; place-items: center; font-size: 28px; font-weight: 800; color: #fff; background: var(--c, var(--accent)); box-shadow: 0 4px 0 color-mix(in srgb, var(--c, var(--accent)) 60%, #000); animation: flPop .3s both; animation-delay: var(--d); }
.sd-form { display: flex; gap: 8px; justify-content: center; } .sd-form input { font-size: 18px; max-width: 240px; text-transform: uppercase; }
.sd-log { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; } .sd-log span { font-size: 13px; padding: 3px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); } .sd-log span.ok { background: #dcfce7; color: #166534; }
/* Memory Match */
.mm-grid { display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); max-width: min(440px, 44vh); margin: 0 auto; } .mm-grid.c6 { grid-template-columns: repeat(6, 1fr); max-width: min(640px, 66vh); }
.mm-card { aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: 12px; position: relative; perspective: 600px; background: none; cursor: pointer; }
.mm-card span { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 12px; backface-visibility: hidden; transition: transform .35s; font-size: clamp(26px, 6vw, 44px); }
.mm-back { background: linear-gradient(135deg, var(--c, var(--accent)), color-mix(in srgb, var(--c, var(--accent)) 50%, #fff)); color: rgba(255,255,255,.75); font-size: 26px !important; box-shadow: 0 3px 8px rgba(0,0,0,.15); }
.mm-face { background: var(--panel); border: 2px solid var(--line); transform: rotateY(180deg); }
.mm-card.up .mm-back { transform: rotateY(180deg); } .mm-card.up .mm-face { transform: none; }
.mm-card.got .mm-face { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--panel)); }
/* Slide Puzzle */
.sp-grid { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 6px; width: min(92vw, 440px); margin: 14px auto; padding: 8px; border-radius: 14px; background: #1e293b; }
.sp-tile { aspect-ratio: 1; padding: 0; border: 0; border-radius: 10px; justify-content: center; font-size: clamp(20px, 5vw, 32px); font-weight: 800; color: #fff; background: hsl(var(--h) 70% 52%); box-shadow: inset 0 -4px 0 rgba(0,0,0,.18); transition: transform .1s; }
.sp-tile:hover { background: hsl(var(--h) 70% 46%); color: #fff; } .sp-tile:active { transform: scale(.96); } .sp-tile.home { box-shadow: inset 0 -4px 0 rgba(0,0,0,.18), 0 0 0 3px rgba(255,255,255,.55); }
.sp-gap { aspect-ratio: 1; }
/* Line Up Four */
.l4 { display: flex; justify-content: center; }
.l4-cols { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 10px; border-radius: 16px; background: #1d4ed8; box-shadow: 0 10px 28px rgba(29,78,216,.35); width: min(94vw, 540px); }
.l4-col { display: grid; grid-template-rows: repeat(6, 1fr); gap: 4px; padding: 3px; border: 0; border-radius: 10px; background: transparent; }
.l4-col:not(:disabled):hover { background: rgba(255,255,255,.14); cursor: pointer; }
.l4-col:disabled { opacity: 1; cursor: default; }
.l4-cell { aspect-ratio: 1; border-radius: 50%; background: #dbeafe; box-shadow: inset 0 3px 6px rgba(0,0,0,.25); display: grid; overflow: hidden; }
.l4-cell i { border-radius: 50%; } .l4-cell i.on { background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 55%, #fff), var(--c) 60%); box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.l4-cell i.drop { animation: l4Drop .35s cubic-bezier(.3,1.4,.6,1); } @keyframes l4Drop { from { transform: translateY(calc(-110% * (var(--r) + 1))); } }
.l4-cell i.win { outline: 4px solid #fff; outline-offset: -6px; animation: gmPulse 1s infinite; }
/* Box It */
.bx-host { display: flex; justify-content: center; }
.bx { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; touch-action: manipulation; }
.bx-dot { fill: #334155; }
.bx-l .hit { stroke: transparent; stroke-width: 18; stroke-linecap: round; }
.bx-l .ink { stroke: var(--line); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 2 9; }
.bx-l.free { cursor: pointer; } .bx-l.free:hover .ink { stroke: #94a3b8; stroke-dasharray: none; }
.bx-l.on .ink { stroke-dasharray: none; stroke-width: 7; } .bx-l.last .ink { stroke-width: 9; }
@media (max-width: 760px) {
  .gm-bd { flex-direction: column; align-items: center; }
  .gm-side { width: 100%; flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .gm-side .gm-stat { flex: 1 1 70px; padding: 6px 8px; } .gm-hint { display: none; }
  .gm-pad { display: flex; }
  .gm-board canvas { height: min(52vh, 520px); }
  .fl-row { grid-template-columns: repeat(5, min(15vw, 54px)); } .fl-cell { height: min(15vw, 54px); font-size: 22px; }
  .reg-list { grid-template-columns: 1fr; }
}

/* ---------- Games library round 2 (games-more.js) + "Have an idea?" widget ---------- */
.gm-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.gm-filter .seg { flex-wrap: wrap; }
.gm-filter .seg button.on { background: var(--accent); color: #fff; }

/* Have an idea? (a card, not a one-line button: text wraps inside it) */
.fm-idea { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 14px; align-items: center; width: 100%; box-sizing: border-box;
  margin: 0 0 14px; padding: 16px; text-align: left; white-space: normal; cursor: pointer; color: #451a03; border-radius: var(--radius);
  border: 1px solid #fcd34d; background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 60%, #fde68a 100%);
  box-shadow: 0 4px 14px rgba(217, 119, 6, .14); transition: transform .15s, box-shadow .15s; }
.fm-idea:hover { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fcd34d 100%); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(217, 119, 6, .22); }
.fm-idea:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.fm-idea-bulb { grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; line-height: 1;
  background: radial-gradient(circle, #fff 0%, #fef9c3 55%, #fde047 100%); box-shadow: 0 0 0 4px rgba(253, 224, 71, .35), 0 0 18px rgba(250, 204, 21, .55);
  animation: fm-glow 2.6s ease-in-out infinite; }
@keyframes fm-glow { 50% { box-shadow: 0 0 0 4px rgba(253, 224, 71, .2), 0 0 6px rgba(250, 204, 21, .25); } }
.fm-idea-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fm-idea-t b { font-size: 17px; line-height: 1.2; }
.fm-idea-t span { font-size: 13px; line-height: 1.4; color: #78350f; overflow-wrap: anywhere; }
.fm-idea-go { justify-self: start; margin-top: 6px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border-radius: 999px;
  background: #b45309; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.fm-idea:hover .fm-idea-go { background: #92400e; }
.fm-idea-m { display: none; }
@media (max-width: 980px) { .fm-idea-m { display: grid; } }
.fm-idea-form .page-head h1 { display: none; }
.fm-idea-form #rq-form { max-width: none; }

/* shared board look */
.ttt, .fo, .ck, .ns, .ff, .so, .wh-g, .mt-grid { margin: 8px auto; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.ttt button, .fo button, .ck button, .ns button, .ff button, .so button, .wh-g button, .sp-pit, .gb-h, .ce-b, .fd-d { padding: 0; min-width: 0; }

/* Three in a Row */
.ttt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: min(360px, 86vw); }
.ttt-c { aspect-ratio: 1; font-size: clamp(40px, 12vw, 72px); font-weight: 800; border-radius: 14px; background: var(--panel); border: 2px solid var(--line); }
.ttt-c.last { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent); }
.ttt-c.win { background: #fef3c7; border-color: #f59e0b; }
.ttt-c:disabled { opacity: 1; cursor: default; }

/* Flip Over */
.fo { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; width: min(480px, 92vw); background: #14532d; padding: 6px; border-radius: 12px; }
.fo-c { aspect-ratio: 1; background: #15803d; border: 0; border-radius: 4px; display: grid; place-items: center; }
.fo-c:disabled { opacity: 1; cursor: default; }
.fo-c.can::after { content: ''; width: 26%; height: 26%; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.fo-c i { width: 82%; height: 82%; border-radius: 50%; background: var(--c); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25), 0 2px 3px rgba(0, 0, 0, .3); }
.fo-c i.last { outline: 3px solid #fde047; outline-offset: 1px; }
.fo-c i.flip { animation: fo-flip .45s ease; }
@keyframes fo-flip { 0% { transform: scaleX(1); } 50% { transform: scaleX(.05); } 100% { transform: scaleX(1); } }

/* Checkers */
.ck { display: grid; grid-template-columns: repeat(8, 1fr); width: min(480px, 92vw); border: 6px solid #78350f; border-radius: 10px; overflow: hidden; }
.ck-c { aspect-ratio: 1; border: 0; border-radius: 0; background: #fde7c3; display: grid; place-items: center; }
.ck-c.d { background: #a16207; }
.ck-c:disabled { opacity: 1; cursor: default; }
.ck-c i { width: 78%; height: 78%; border-radius: 50%; background: var(--c); color: #fde047; font-style: normal; font-size: clamp(14px, 4vw, 26px); display: grid; place-items: center;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .3), 0 2px 4px rgba(0, 0, 0, .4); }
.ck-c.sel { box-shadow: inset 0 0 0 4px #fde047; }
.ck-c.to::after { content: ''; width: 30%; height: 30%; border-radius: 50%; background: rgba(253, 224, 71, .8); }
.ck-c.last { box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .5); }

/* Stone Pits */
.spb { display: flex; gap: 8px; align-items: stretch; margin: 8px auto; max-width: 640px; background: #92400e; padding: 10px; border-radius: 40px; }
.sp-store { flex: 0 0 15%; border-radius: 30px; background: #78350f; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 3px solid var(--c); }
.sp-store span { font-size: 11px; opacity: .85; max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-store b { font-size: 26px; }
.sp-rows { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.sp-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.sp-pit { aspect-ratio: 1; border-radius: 50%; background: #78350f; border: 2px solid transparent; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sp-pit:disabled { opacity: 1; cursor: default; }
.sp-pit.can { border-color: #fde047; }
.sp-pit.last { box-shadow: 0 0 0 3px rgba(253, 224, 71, .6); }
.sp-pit b { font-size: 13px; opacity: .8; }
.sp-st { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; max-width: 80%; }
.sp-st i { width: 8px; height: 8px; border-radius: 50%; background: #e0f2fe; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .3); }

/* Merge Tiles */
.mt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: min(400px, 90vw); background: #cbb8a0; padding: 8px; border-radius: 12px; }
.mt-t { aspect-ratio: 1; border-radius: 8px; background: rgba(255, 255, 255, .35); display: grid; place-items: center; font-weight: 800; font-size: clamp(18px, 6vw, 32px); color: #4b3a2a; }
.mt-t.v2 { background: #fdf6ec; } .mt-t.v4 { background: #fbebd0; } .mt-t.v8 { background: #f8b26a; color: #fff; } .mt-t.v16 { background: #f59563; color: #fff; }
.mt-t.v32 { background: #f67c5f; color: #fff; } .mt-t.v64 { background: #f65e3b; color: #fff; } .mt-t.v128 { background: #edcf72; color: #fff; font-size: clamp(16px, 5vw, 28px); }
.mt-t.v256 { background: #edcc61; color: #fff; font-size: clamp(16px, 5vw, 28px); } .mt-t.v512 { background: #edc850; color: #fff; font-size: clamp(16px, 5vw, 28px); }
.mt-t.v1024, .mt-t.v2048, .mt-t.v4096 { background: #b45309; color: #fff; font-size: clamp(14px, 4.4vw, 24px); }

/* Field Finder */
.ff { display: grid; grid-template-columns: repeat(var(--w), 1fr); gap: 2px; width: min(calc(var(--w) * 38px), 94vw); }
.ff-c { aspect-ratio: 1; border-radius: 4px; background: #86efac; border: 0; font-weight: 800; font-size: clamp(11px, 3vw, 17px); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); }
.ff-c.o { background: #fef3c7; box-shadow: none; }
.ff-c.boom { background: #fca5a5; }
.ff-c.n1 { color: #2563eb; } .ff-c.n2 { color: #16a34a; } .ff-c.n3 { color: #dc2626; } .ff-c.n4 { color: #7c3aed; }
.ff-c.n5 { color: #b45309; } .ff-c.n6 { color: #0891b2; } .ff-c.n7 { color: #111; } .ff-c.n8 { color: #6b7280; }

/* Nine Square */
.ns { display: grid; grid-template-columns: repeat(9, 1fr); width: min(450px, 94vw); border: 3px solid var(--ink); }
.ns-c { aspect-ratio: 1; border-radius: 0; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel);
  font-size: clamp(16px, 5vw, 24px); color: var(--accent); }
.ns-c.given { color: var(--ink); font-weight: 800; }
.ns-c.br { border-right: 3px solid var(--ink); } .ns-c.bb { border-bottom: 3px solid var(--ink); }
.ns-c.rel { background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
.ns-c.same { background: color-mix(in srgb, var(--accent) 20%, var(--panel)); }
.ns-c.sel { background: color-mix(in srgb, var(--accent) 32%, var(--panel)); }
.ns-c.bad { color: #dc2626; }
.ns-pad { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; width: min(450px, 94vw); margin: 8px auto; }
.ns-pad button { padding: 10px 0; font-size: 18px; font-weight: 700; }

/* Gopher Bop */
.gb { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: min(420px, 90vw); margin: 10px auto; }
.gb-h { aspect-ratio: 1; border-radius: 50%; border: 0; background: radial-gradient(ellipse at 50% 70%, #3f2a14 45%, #65a30d 47%); overflow: hidden; position: relative; }
.gb-m { position: absolute; left: 0; right: 0; bottom: -60%; font-size: clamp(36px, 11vw, 60px); transition: bottom .12s; }
.gb-h.up .gb-m { bottom: 18%; }

/* Color Echo */
.ce { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: min(360px, 84vw); margin: 10px auto; }
.ce-b { aspect-ratio: 1; border-radius: 22px; border: 0; background: var(--c); opacity: .45; transition: opacity .1s, transform .1s; }
.ce-b.lit { opacity: 1; transform: scale(1.04); box-shadow: 0 0 24px var(--c); }

/* Word Hunt */
.wh { display: flex; gap: 16px; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.wh-g { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 2px; width: min(calc(var(--n) * 40px), 94vw); margin: 0; }
.wh-c { aspect-ratio: 1; border-radius: 6px; border: 0; background: var(--panel); font-weight: 700; font-size: clamp(12px, 3.6vw, 18px); }
.wh-c.got { background: #bbf7d0; } .wh-c.sel { background: var(--accent); color: #fff; }
.wh-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 4px 18px; font-weight: 600; }
.wh-list li.got { text-decoration: line-through; color: var(--muted); }

/* Letter Rescue */
.lr-b { font-size: 30px; display: flex; justify-content: center; gap: 4px; margin: 8px 0; }
.lr-b span { filter: hue-rotate(calc(var(--h) * 1deg)); transition: transform .3s, opacity .3s; }
.lr-b span.pop { opacity: .12; transform: scale(.6); }
.lr-w { display: flex; justify-content: center; gap: 6px; margin: 14px 0; }
.lr-w span { width: 34px; height: 44px; border-bottom: 3px solid var(--ink); font-size: 26px; font-weight: 800; display: grid; place-items: center; }
.lr-k { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; max-width: 520px; margin: 0 auto; }
.lr-k button { width: 40px; padding: 9px 0; font-weight: 700; }
.lr-k button.hit { background: #bbf7d0; } .lr-k button.miss { background: #fecaca; }

/* Switch Off */
.so { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 8px; width: min(380px, 86vw); }
.so-c { aspect-ratio: 1; border-radius: 12px; border: 0; background: #334155; }
.so-c.on { background: #fde047; box-shadow: 0 0 18px #facc15; }

/* Quick Math */
.qm-q { font-size: 44px; font-weight: 800; margin: 18px 0; }
.qm-a { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 360px; margin: 0 auto; }
.qm-a button { padding: 18px 0; font-size: 24px; font-weight: 700; }
.qm-a button.ok, .tv-a button.ok { background: #bbf7d0; border-color: #16a34a; }
.qm-a button.no, .tv-a button.no { background: #fecaca; border-color: #dc2626; }

/* Trivia */
.tv-q { max-width: 620px; margin: 10px auto; padding: 18px; text-align: center; }
.tv-q h2 { font-size: 22px; margin: 8px 0 16px; }
.tv-a { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tv-a button { padding: 14px 10px; font-size: 16px; }

/* Pig Out + Five Dice */
.pg-die { font-size: 96px; line-height: 1.1; margin: 10px 0; }
.pg-die.roll, .fd-d.roll { animation: pg-roll .4s ease; }
@keyframes pg-roll { 0% { transform: rotate(-30deg) scale(.7); } 70% { transform: rotate(12deg) scale(1.1); } 100% { transform: none; } }
.pg-msg { font-size: 17px; }
.fd { max-width: 560px; margin: 0 auto; }
.fd-dice { display: flex; justify-content: center; gap: 8px; margin: 12px 0; }
.fd-d { width: 64px; height: 64px; font-size: 48px; line-height: 1; border-radius: 12px; display: grid; place-items: center; }
.fd-d.keep { background: #fef3c7; border-color: #f59e0b; box-shadow: 0 0 0 3px #fcd34d; }
.fd-sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.fd-row { display: flex; justify-content: space-between; padding: 8px 12px; text-align: left; }
.fd-row.done { background: var(--bg); opacity: .8; }
.fd-row b i { color: var(--accent); font-style: normal; }
@media (max-width: 560px) {
  .fd-d { width: 52px; height: 52px; font-size: 40px; }
  .tv-a, .fd-sheet { grid-template-columns: 1fr; }
  .lr-k button { width: 34px; }
}
.bx-host { flex-direction: column; align-items: center; }
.spb { width: min(640px, 94vw); box-sizing: border-box; }
.sp-pit:hover, .sp-pit:disabled:hover { background: #92400e; }
.ck-c:hover:not(.d) { background: #fde7c3; } .ck-c.d:hover { background: #a16207; } .fo-c:hover { background: #16a34a; }

/* ---------- Kevin's Audiobooks box on the Wall + its category in Registration Requests (SQL 069) ---------- */
.fm-ab { position: relative; overflow: hidden; border-radius: var(--radius); padding: 16px; margin-bottom: 14px; color: #fff;
  background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .18), transparent 40%), linear-gradient(135deg, #312e81 0%, #6d28d9 55%, #db2777 100%);
  box-shadow: 0 6px 18px rgba(76, 29, 149, .25); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; align-items: center; }
.fm-ab-art { position: relative; width: 62px; height: 62px; border-radius: 16px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; }
.fm-ab-hp { font-size: 36px; line-height: 1; animation: fm-ab-bob 3s ease-in-out infinite; }
.fm-ab-bk { position: absolute; right: -6px; bottom: -6px; font-size: 22px; }
@keyframes fm-ab-bob { 50% { transform: translateY(-3px) rotate(-4deg); } }
.fm-ab-t { display: flex; flex-direction: column; gap: 3px; }
.fm-ab-t b { font-size: 18px; letter-spacing: .2px; }
.fm-ab-t span { font-size: 13px; opacity: .9; line-height: 1.35; }
.fm-ab-btns { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.fm-ab-btns .btn-like, .fm-ab-btns button { flex: 1 1 auto; justify-content: center; text-align: center; font-weight: 600; }
.fm-ab-btns .btn-like.primary { background: #fff; color: #4c1d95; border-color: #fff; }
.fm-ab-btns button { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .5); }
.fm-ab-btns button:hover { background: rgba(255, 255, 255, .25); }
.fm-ab-m { display: none; }
@media (max-width: 980px) { .fm-ab-m { display: grid; } }

.reg-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; max-width: 760px; }
.reg-cat { display: flex; align-items: center; gap: 10px; text-align: left; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink); }
.reg-cat .ic { font-size: 24px; }
.reg-cat > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.reg-cat .badge { background: #d97706; color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.reg-cat.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--panel)); }
.reg-ab { display: flex; gap: 8px; align-items: center; margin: 2px 0 12px; font-size: 14px; cursor: pointer; }
.reg-ab input { width: auto; }
@media (max-width: 560px) { .reg-cats { grid-template-columns: 1fr; } }

/* ---------- Wall "Online" box: who is on the site right now ---------- */
.fm-online { margin-bottom: 14px; }
.fm-online h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.fm-on-dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); animation: fm-on-pulse 2s ease-in-out infinite; }
@keyframes fm-on-pulse { 50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, .08); } }
.fm-on-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px 4px; }
.fm-on-p { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 2px; border: 0; background: none; border-radius: 10px; min-width: 0; white-space: normal; }
.fm-on-p:hover:not(:disabled) { background: var(--soft); }
.fm-on-p:disabled { opacity: 1; cursor: default; }
.fm-on-av { position: relative; display: inline-block; }
.fm-on-av .avatar { width: 40px; height: 40px; font-size: 15px; }
.fm-on-av i { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: #22c55e; border: 2px solid var(--panel); }
.fm-on-n { font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-online-m { display: none; }
@media (max-width: 980px) {
  .fm-online-m { display: block; }
  .fm-online-m .fm-on-list { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 2px; }
  .fm-online-m .fm-on-p { flex: 0 0 58px; }
}

/* ---------- "Want a Baumhover Family email address?" box (SQL 090) ---------- */
.fm-fe { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 14px; align-items: center; margin: 0 0 14px; padding: 16px;
  border-radius: var(--radius); color: #083344; border: 1px solid #67e8f9;
  background: linear-gradient(135deg, #ecfeff 0%, #cffafe 55%, #a5f3fc 100%); box-shadow: 0 4px 14px rgba(8, 145, 178, .15); }
.fm-fe-ic { position: relative; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(160deg, #0891b2, #0e7490); box-shadow: 0 4px 10px rgba(14, 116, 144, .35); }
.fm-fe-ic b { position: absolute; right: -6px; top: -6px; width: 22px; height: 22px; border-radius: 50%; background: #f59e0b; color: #fff;
  font-size: 13px; display: grid; place-items: center; border: 2px solid #ecfeff; }
.fm-fe-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fm-fe-t > b { font-size: 16.5px; line-height: 1.25; }
.fm-fe-t span { font-size: 13px; line-height: 1.4; color: #155e75; overflow-wrap: anywhere; }
.fm-fe-go { grid-column: 1 / -1; margin-top: 8px; justify-content: center; white-space: normal; font-weight: 600;
  background: #0e7490; border-color: #0e7490; color: #fff; padding: 9px 12px; }
.fm-fe-go:hover { background: #155e75; }
.fm-fe-m { display: none; }
@media (max-width: 980px) { .fm-fe-m { display: grid; } }
.fm-fe-addr { display: flex; align-items: center; gap: 6px; }
.fm-fe-addr input { flex: 1; min-width: 0; }
.fm-fe-addr span { color: var(--muted); white-space: nowrap; }
.reg-cats[style*="--n:3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1100px; }
@media (max-width: 760px) { .reg-cats[style*="--n:3"] { grid-template-columns: 1fr; } }
