/* Picture interest picker ("What I'm into"). Markup: www/js/interest-picker-ui.js.
   Phone-first; desktop layout is html.is-web inside @media (min-width: 768px). */
#interestPickerView .ip-wrap { max-width: 720px; margin: 0 auto; padding: 14px 14px 110px; }
.ip-step { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary, #8f93a3); margin: 2px 2px 4px; }
.ip-title { font-size: 22px; font-weight: 800; margin: 0 2px 4px; line-height: 1.2; color: var(--text-primary, #f3f3f6); }
.ip-sub { font-size: 13px; color: var(--text-secondary, #a7abb8); margin: 0 2px 12px; }
.ip-label { font-size: 11px; font-weight: 700; color: var(--text-secondary, #8f93a3); text-transform: uppercase; letter-spacing: .06em; margin: 14px 2px 6px; }
.ip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ip-grid.two { grid-template-columns: repeat(2, 1fr); }
.ip-tile { position: relative; aspect-ratio: 1 / 1; border: 0; border-radius: 14px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; justify-content: flex-end; padding: 7px; color: #fff; font-family: inherit; text-align: left; transition: transform .12s; -webkit-tap-highlight-color: transparent; }
.ip-grid.two .ip-tile { aspect-ratio: 4 / 3; }
.ip-tile:active { transform: scale(.96); }
.ip-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ip-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0) 60%); }
.ip-emoji { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -62%); font-size: 34px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.ip-name { position: relative; font-size: 12px; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.6); line-height: 1.15; overflow-wrap: anywhere; }
.ip-team { justify-content: center; align-items: center; text-align: center; }
.ip-team .ip-name { font-size: 15px; font-weight: 800; }
.ip-ck { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.35); border: 2px solid rgba(255,255,255,.75); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.ip-more { position: absolute; top: 4px; right: 8px; font-size: 22px; font-weight: 800; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.ip-ck, .ip-name, .ip-more { z-index: 3; }
.ip-tile::after { content: ''; position: absolute; inset: 0; border-radius: 14px; pointer-events: none; z-index: 2; transition: box-shadow .12s, background .12s; }
.ip-tile.on::after { box-shadow: inset 0 0 0 4px #3b82f6; background: rgba(59, 130, 246, .22); }
.ip-tile.on .ip-ck { background: #2563eb; border-color: #fff; width: 26px; height: 26px; font-size: 15px; top: 5px; right: 5px; }
.ip-tile.on .ip-ck::after { content: '\2713'; color: #fff; font-weight: 900; }
.ip-searchrow { display: flex; gap: 8px; margin: 0 0 12px; }
.ip-input { flex: 1; min-width: 0; background: var(--bg-card, #24262e); color: var(--text-primary, #f3f3f6); border: 1px solid var(--bg-tile-border, transparent); border-radius: 12px; padding: 11px 12px; font-size: 14px; font-family: inherit; }
.ip-mini { border: 0; border-radius: 12px; padding: 0 14px; background: var(--bg-card, #24262e); color: var(--text-primary, #f3f3f6); font-weight: 700; font-family: inherit; cursor: pointer; border: 1px solid var(--bg-tile-border, transparent); }
.ip-results { margin: 0 0 14px; }
.ip-empty { font-size: 13px; color: var(--text-secondary, #a7abb8); margin: 4px 2px 10px; }
.ip-own { margin-top: 16px; }
.ip-slot:empty { display: none; }
.ip-loc { background: var(--bg-card, #24262e); border-radius: 14px; padding: 14px; margin: 0 0 14px; }
.ip-loc-title { font-weight: 800; font-size: 15px; margin-bottom: 4px; color: var(--text-primary, #f3f3f6); }
.ip-loc-body { font-size: 13px; color: var(--text-secondary, #a7abb8); margin: 0 0 10px; }
.ip-loc-btns { display: flex; flex-direction: column; gap: 8px; }
.ip-area-err { font-size: 12px; color: #ef6a6a; min-height: 0; margin: -6px 0 8px; }
.ip-actions { position: sticky; bottom: 0; z-index: 6; display: flex; flex-direction: column; gap: 6px; align-items: center; padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, var(--bg-primary, #15161b) 70%, transparent); }
.ip-btn { width: 100%; padding: 13px; border: 0; border-radius: 14px; background: linear-gradient(180deg, #60A5FA 0%, #2563EB 55%, #1D4ED8 100%); color: #fff; font-weight: 800; font-size: 14px; font-family: inherit; cursor: pointer; }
.ip-btn.ghost { background: transparent; border: 1px solid var(--accent, #3b82f6); color: var(--accent, #3b82f6); }
.ip-link { background: none; border: 0; color: var(--text-secondary, #a7abb8); font-size: 13px; font-family: inherit; padding: 6px; cursor: pointer; text-decoration: underline; }

/* Desktop only: html.is-web is also set on phone browsers, so pair it with the 768px query (desktop.css rule). */
@media (min-width: 768px) {
  html.is-web #interestPickerView .ip-wrap { padding: 28px 24px 120px; }
  html.is-web #interestPickerView .ip-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  html.is-web #interestPickerView .ip-grid.two { grid-template-columns: repeat(3, 1fr); }
  html.is-web #interestPickerView .ip-title { font-size: 28px; }
  html.is-web #interestPickerView .ip-btn { max-width: 360px; }
}
@media (min-width: 1100px) {
  html.is-web #interestPickerView .ip-wrap { max-width: 960px; }
  html.is-web #interestPickerView .ip-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ---- Likes board + profile card (www/js/likes-board.js) ---- */
#likesBoardView .lb-wrap { max-width: 720px; margin: 0 auto; padding: 4px 14px 110px; color: var(--text-primary, #f3f3f6); }
.lb-back { background: none; border: 0; color: var(--accent, #6ea8ff); font-size: 14px; font-weight: 700; font-family: inherit; padding: 12px 14px 4px; cursor: pointer; }
.lb-head { display: flex; align-items: center; gap: 10px; margin: 6px 2px 10px; }
.lb-title { font-size: 20px; font-weight: 800; line-height: 1.15; }
.lb-meta { font-size: 12px; color: var(--text-secondary, #8f93a3); }
.lb-edit { margin-left: auto; font-size: 12px; font-weight: 700; padding: 7px 12px; border: 0; border-radius: 999px; background: var(--bg-card, #24262e); color: var(--text-primary, #c9ccd6); font-family: inherit; cursor: pointer; }
.lb-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 12px; padding-bottom: 2px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.lb-tabs::-webkit-scrollbar { display: none; }
.lb-tab { flex: 0 0 auto; font-size: 12px; padding: 6px 12px; border: 0; border-radius: 999px; background: var(--bg-card, #24262e); color: var(--text-secondary, #c9ccd6); white-space: nowrap; font-family: inherit; cursor: pointer; }
.lb-tab.on { background: var(--accent, #3b82f6); color: #fff; }
.lb-masonry { columns: 2; column-gap: 8px; }
.lb-pin { break-inside: avoid; margin: 0 0 8px; border-radius: 14px; overflow: hidden; position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 8px; color: #fff; box-sizing: border-box; }
.lb-wrap.lb-me .lb-pin { cursor: pointer; }
.lb-h0 { min-height: 150px; } .lb-h1 { min-height: 120px; } .lb-h2 { min-height: 140px; } .lb-h3 { min-height: 110px; } .lb-h4 { min-height: 130px; }
.lb-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lb-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0) 60%); }
.lb-pin .em { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%); font-size: 36px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.lb-pin .nm { position: relative; font-size: 13px; font-weight: 800; text-shadow: 0 1px 3px rgba(0,0,0,.6); overflow-wrap: anywhere; }
.lb-pin .cat { position: relative; font-size: 9.5px; font-weight: 600; opacity: .88; text-transform: uppercase; letter-spacing: .05em; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.lb-pin.team { justify-content: center; align-items: center; text-align: center; min-height: 110px; }
.lb-pin.team .big { font-size: 24px; font-weight: 900; letter-spacing: .02em; text-shadow: 0 1px 3px rgba(0,0,0,.5); overflow-wrap: anywhere; }
.lb-pin.typed { background: var(--bg-card, #24262e); border: 1.5px dashed var(--bg-tile-border, #4a4e5c); color: var(--text-primary, #e7e8ee); min-height: 96px; justify-content: center; }
.lb-pin.typed .q { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.lb-pin.typed .cat { color: var(--text-secondary, #8f93a3); text-shadow: none; }
.lb-gift { position: relative; margin-top: 6px; font-size: 11px; font-weight: 700; background: rgba(0,0,0,.5); color: #fff; border: 0; border-radius: 999px; padding: 5px 10px; align-self: flex-start; font-family: inherit; cursor: pointer; }
.lb-pin.team .lb-gift { align-self: center; }
.lb-pin.typed .lb-gift { background: var(--accent, #3b82f6); }
.lb-none { font-size: 13px; color: var(--text-secondary, #a7abb8); padding: 18px 4px; }
.lb-label { font-size: 11px; font-weight: 700; color: var(--text-secondary, #8f93a3); text-transform: uppercase; letter-spacing: .06em; margin: 14px 4px 6px; }
.lb-sugg { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.lb-sugg::-webkit-scrollbar { display: none; }
.lb-s { flex: 0 0 96px; height: 96px; border: 0; border-radius: 12px; position: relative; display: flex; align-items: flex-end; text-align: left; padding: 6px; font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); font-family: inherit; cursor: pointer; }
.lb-s .em { position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%); font-size: 28px; }
.lb-s .plus { position: absolute; top: 5px; right: 5px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; font-size: 13px; }

/* profile card */
.lb-card { background: var(--bg-card, #1d1f26); border: 1px solid var(--bg-tile-border, transparent); border-radius: 16px; padding: 12px; margin: 10px 0; }
.lb-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.lb-card-title { font-size: 15px; font-weight: 800; color: var(--text-primary, #f3f3f6); }
.lb-seeall { background: none; border: 0; color: var(--accent, #6ea8ff); font-size: 12px; font-weight: 700; font-family: inherit; cursor: pointer; padding: 4px; }
.lb-minis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; cursor: pointer; }
.lb-mini { position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; display: flex; align-items: flex-end; padding: 4px; color: #fff; box-sizing: border-box; }
.lb-mini .nm { position: relative; font-size: 9.5px; font-weight: 700; line-height: 1.1; text-shadow: 0 1px 3px rgba(0,0,0,.65); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lb-mini .em { position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%); font-size: 22px; }
.lb-mini.team { justify-content: center; text-align: center; align-items: center; }
.lb-mini.typed { background: var(--bg-dark, #15161b); border: 1px dashed var(--bg-tile-border, #4a4e5c); color: var(--text-primary, #e7e8ee); align-items: center; justify-content: center; text-align: center; }
.lb-mini.typed .nm { text-shadow: none; }
.lb-start { width: 100%; border: 1.5px dashed var(--accent, #3b82f6); border-radius: 14px; background: transparent; padding: 16px 12px; cursor: pointer; font-family: inherit; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.lb-start-t { font-size: 16px; font-weight: 800; color: var(--accent, #6ea8ff); }
.lb-start-s { font-size: 12px; color: var(--text-secondary, #a7abb8); }

/* gift ideas sheet */
.lb-gift-shop { display: block; text-align: center; text-decoration: none; box-sizing: border-box; }
.lb-gift-note { font-size: 12px; color: var(--text-secondary, #a7abb8); margin: 8px 2px 0; line-height: 1.4; }
.lb-gift-ai { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.lb-gift-card { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 12px; background: var(--bg-dark, #15161b); border: 1px solid var(--bg-tile-border, transparent); text-decoration: none; color: var(--text-primary, #f3f3f6); }
.lb-gift-ic { font-size: 26px; }
.lb-gift-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; }
.lb-gift-tx i { font-style: normal; color: #81c784; font-size: 12px; }
.lb-gift-tx em { font-style: normal; color: var(--text-secondary, #a7abb8); font-size: 11.5px; }

@media (min-width: 768px) {
  html.is-web #likesBoardView .lb-wrap { max-width: 980px; padding: 12px 24px 120px; }
  html.is-web #likesBoardView .lb-masonry { columns: 4; column-gap: 12px; }
  html.is-web #likesBoardView .lb-pin { margin-bottom: 12px; }
  html.is-web #likesBoardView .lb-title { font-size: 28px; }
  html.is-web .lb-minis { grid-template-columns: repeat(8, 1fr); }
  html.is-web .lb-card { margin: 0 0 16px; }
}

/* Typed things that match no tile: category colour + emoji instead of a grey card */
.lb-pin.typed.typed-look { border: 0; color: #fff; justify-content: flex-end; }
.lb-pin.typed.typed-look .cat { color: #fff; opacity: .85; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.lb-pin.typed.typed-look .q { text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.lb-pin.typed.typed-look .em { position: relative; top: auto; left: auto; transform: none; font-size: 24px; margin-bottom: auto; padding-bottom: 6px; align-self: flex-start; }
.lb-mini.typed.typed-look { border: 0; color: #fff; align-items: flex-end; justify-content: flex-start; text-align: left; }
.lb-mini.typed.typed-look .nm { text-shadow: 0 1px 3px rgba(0,0,0,.65); }

/* Amazon product standing in for a show / artist / team picture */
.lb-pin.lb-prod { justify-content: flex-start; }
.lb-prod-box { display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 10px; height: 130px; margin-bottom: 8px; overflow: hidden; }
.lb-prod-img { max-width: 92%; max-height: 120px; object-fit: contain; }
.lb-prod-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.lb-prod-acts .lb-gift { margin-top: 0; }
.lb-shop { position: relative; font-size: 11px; font-weight: 700; background: #ff9900; color: #111; border-radius: 999px; padding: 5px 10px; text-decoration: none; }
.lb-mini.lb-mini-prod { flex-direction: column; align-items: stretch; justify-content: flex-end; padding: 3px; }
.lb-mini-prod .lb-prod-box { height: auto; flex: 1; margin-bottom: 2px; border-radius: 7px; }
.lb-mini-prod .lb-prod-img { max-height: 100%; }
.lb-disclose { font-size: 11px; color: var(--text-secondary, #a7abb8); margin: 4px 4px 10px; }

/* Unsplash photo credit (board pins + picker tiles) */
.lb-credit, .ip-credit { position: absolute; top: 6px; left: 6px; max-width: calc(100% - 44px); font-size: 8px; line-height: 1.5; padding: 0 5px; border-radius: 6px; background: rgba(0,0,0,.35); color: rgba(255,255,255,.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 4; }
.lb-credit a, .ip-credit a { color: inherit; text-decoration: underline; }
.ip-cell { position: relative; display: block; }
.ip-cell .ip-tile { width: 100%; }

/* Phones: .main-content views are overflow:hidden, so these two bodies must scroll themselves
   (older views use .scroll-container for this). */
#interestPickerBody, #likesBoardBody { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; }

/* ---- Board | Around me switch + Around me view (www/js/around-me.js) ---- */
.lb-switch { display: inline-flex; gap: 2px; padding: 3px; margin: 0 2px 12px; border-radius: 999px; background: var(--bg-card, #24262e); }
.lb-sw { border: 0; border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 700; font-family: inherit; background: transparent; color: var(--text-secondary, #c9ccd6); cursor: pointer; }
.lb-sw.on { background: var(--accent, #3b82f6); color: #fff; }
.am-stage { position: relative; height: calc(100vh - 190px); height: calc(100dvh - 190px); min-height: 380px; overflow: hidden; touch-action: none; border-radius: 16px; background: radial-gradient(circle at 50% 50%, rgba(59,130,246,.10), transparent 70%), var(--bg-card, #1d1f26); user-select: none; -webkit-user-select: none; }
.am-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.am-cluster { position: absolute; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--am-c) 16%, transparent), transparent 72%); pointer-events: none; }
.am-pill { position: absolute; left: 50%; top: -14px; transform: translateX(-50%) scale(var(--am-pill, 1)); transform-origin: 50% 100%; white-space: nowrap; color: #fff; font-size: 15px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.am-tile { position: absolute; width: 72px; height: 72px; border: 0; border-radius: 12px; overflow: hidden; box-sizing: border-box; padding: 5px; display: flex; align-items: flex-end; color: #fff; font-family: inherit; text-align: left; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.4); -webkit-tap-highlight-color: transparent; }
.am-tile .em { position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%); font-size: 30px; }
.am-tile .nm { position: relative; z-index: 2; font-size: 9.5px; font-weight: 800; line-height: 1.1; text-shadow: 0 1px 3px rgba(0,0,0,.7); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; opacity: 0; transition: opacity .15s; }
.am-stage.am-near .am-tile .nm { opacity: 1; }
.am-tile.team, .am-tile.typed { align-items: center; justify-content: center; text-align: center; }
.am-tile.team .nm, .am-tile.typed .nm { opacity: 1; font-size: 10.5px; }
.am-tile.typed { background: var(--bg-dark, #15161b); border: 1px dashed var(--bg-tile-border, #4a4e5c); }
.am-sugg { opacity: .55; outline: 2px dashed rgba(255,255,255,.7); outline-offset: -2px; box-shadow: none; }
.am-sugg .plus { position: absolute; top: 3px; right: 4px; width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; z-index: 2; }
.am-me { position: absolute; border-radius: 50%; overflow: hidden; border: 5px solid #fff; box-sizing: border-box; box-shadow: 0 0 0 10px rgba(59,130,246,.28), 0 6px 20px rgba(0,0,0,.4); background: #1D4ED8; }
.am-me img { width: 100%; height: 100%; object-fit: cover; display: block; }
.am-empty { position: absolute; left: 0; right: 0; bottom: 24px; text-align: center; font-size: 13px; color: var(--text-secondary, #a7abb8); }
.am-ctrl { position: absolute; right: 10px; bottom: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 5; }
.am-ctrl button { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--bg-tile-border, transparent); background: var(--bg-primary, #15161b); color: var(--text-primary, #f3f3f6); font-size: 18px; font-weight: 800; font-family: inherit; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
@media (min-width: 768px) { html.is-web #likesBoardView .am-stage { height: calc(100vh - 230px); } }

/* Phones: the Around me stage fills what's left of the screen under the header + switch,
   so the fitted view and the zoom buttons are never below the bottom nav. */
#likesBoardBody.lb-around { display: flex; flex-direction: column; }
#likesBoardBody.lb-around .lb-wrap { display: flex; flex-direction: column; flex: 1; min-height: 0; width: 100%; box-sizing: border-box; padding-bottom: 0; }
#likesBoardBody.lb-around .lb-wrap > .lb-head, #likesBoardBody.lb-around .lb-switch { flex-shrink: 0; }
#likesBoardBody.lb-around .lb-switch { align-self: flex-start; }
#likesBoardBody.lb-around .am-stage { flex: 1; min-height: 0; height: auto; margin-bottom: 10px; }
/* Dragging from a photo pans the map (no browser image drag / iOS image menu). */
.am-stage img { pointer-events: none; -webkit-user-drag: none; user-select: none; }
.am-stage { -webkit-touch-callout: none; }
