/* Glass: the frosted panel, the rows, the tiles and the buttons shared by the home globe, the /map page
   and the gift control. Light frosted glass over photographs and the globe; dark smoked glass for chips. */
/* Smoked green glass: dark enough that the globe and the map read through it, never a white box.
   Over the pale street map the panel lightens (see .is-light) so the words keep their contrast. */
.gl-panel { --ink-1: #fff; --ink-2: rgba(255,255,255,.7); --row: rgba(255,255,255,.08); --row-hover: rgba(255,255,255,.14); --row-on: rgba(255,255,255,.2); --edge: rgba(255,255,255,.16); --accent: var(--sprout); --pic-ring: #0b261c;
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 14px; padding: 18px; color: var(--ink-1); border-radius: 24px; text-shadow: none;
  background: rgba(9,32,23,.6); -webkit-backdrop-filter: blur(30px) saturate(1.5); backdrop-filter: blur(30px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 40px 80px -36px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.1);
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease); }
.gl-panel > * { position: relative; }
.gl-panel.is-light { --ink-1: var(--forest); --ink-2: var(--stone); --row: rgba(255,255,255,.55); --row-hover: rgba(255,255,255,.85); --row-on: #fff; --edge: rgba(18,56,42,.12); --accent: var(--leaf); --pic-ring: #fff;
  background: rgba(246,250,245,.8); border-color: rgba(255,255,255,.7); box-shadow: 0 40px 80px -36px rgba(6,18,12,.55), inset 0 1px 0 rgba(255,255,255,.9); }
.gl-title { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.02; color: var(--ink-1); max-width: 14ch; }
.gl-lede { font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 32em; }

.gl-search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 12px; background: var(--row); box-shadow: inset 0 0 0 1px var(--edge); transition: box-shadow .3s; }
.gl-search:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.gl-search svg { flex: none; width: 18px; height: 18px; color: var(--ink-2); }
.gl-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 15px; color: var(--ink-1); }
.gl-search input::placeholder { color: var(--ink-2); }

/* a pair as a row: both photographs, both names, the distance */
.gl-list { display: grid; gap: 8px; }
.gl-row { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; min-width: 0; width: 100%; align-items: center; gap: 14px; padding: 8px 12px 8px 8px; border-radius: 16px; text-align: left; color: var(--ink-1);
  background: var(--row); box-shadow: inset 0 0 0 1px var(--edge); transition: background-color .3s, box-shadow .3s, transform .4s var(--ease); }
.gl-row[hidden] { display: none; }
.gl-row:hover { background: var(--row-hover); transform: translateY(-1px); }
.gl-row.is-active { background: var(--row-on); box-shadow: inset 0 0 0 1.5px var(--accent); }
.gl-pics { display: flex; }
.gl-pics img { width: 46px; height: 46px; object-fit: cover; border-radius: 13px; box-shadow: 0 0 0 2px var(--pic-ring); }
.gl-pics img + img { margin-left: -12px; border-radius: 50%; }
.gl-names { display: grid; gap: 3px; min-width: 0; }
.gl-names b { font-weight: 500; font-size: 16px; line-height: 1.15; }
.gl-names b i { font-style: normal; color: var(--accent); margin: 0 1px; }
.gl-names small { font-size: 12.5px; color: var(--ink-2); }
.gl-row .tag { padding: 5px 9px; font-size: 11.5px; }

/* the pair in focus: two plates, each a way into that place's page */
.gl-focus { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gl-tile { position: relative; display: grid; align-content: end; min-height: 112px; padding: 10px; border-radius: 16px; overflow: hidden; color: #fff; isolation: isolate; text-align: left; }
.gl-tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gl-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(6,18,12,.82), rgba(6,18,12,.1) 65%); }
.gl-tile:hover img { transform: scale(1.07); }
.gl-tile .tag { position: absolute; top: 8px; left: 8px; padding: 5px 9px; font-size: 11.5px; }
.gl-tile b { font-family: var(--display); font-weight: 500; font-size: 19px; line-height: 1.05; }
.gl-tile span.go { display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 12.5px; font-weight: 500; color: var(--sprout); }
.gl-tile span.go svg { width: 13px; height: 13px; transition: transform .4s var(--ease); }
.gl-tile:hover span.go svg { transform: translateX(3px); }
/* A match still being agreed: the tile holds the place, with nowhere to go yet */
.gl-tile.is-forming span.go { display: none; }
.gl-tile.is-forming:hover img { transform: none; }
.gl-tile.is-forming b { color: rgba(255,255,255,.86); }

.map-focus-unused { display: none; }
.gl-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--stone); }
.gl-meta b { font-weight: 500; color: var(--forest); }

/* buttons: the forest button with the sprout tile, the glass button */
.gl-btn { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 54px; padding: 0 8px 0 20px; border-radius: 14px; overflow: hidden; background: var(--sprout); color: var(--forest); font: 500 16px/1.1 var(--sans); transition: background-color .3s; white-space: nowrap; }
.gl-btn:hover { background: #c4e6bc; }
.gl-btn svg { flex: none; width: 38px; height: 38px; padding: 10px; border-radius: 10px; background: var(--forest); color: var(--sprout); transition: transform .45s var(--ease); }
.is-light .gl-btn { background: var(--forest); color: #fff; }
.is-light .gl-btn:hover { background: var(--moss); }
.is-light .gl-btn svg { background: var(--sprout); color: var(--forest); }
.gl-btn:hover svg { transform: translateX(3px); }
.gl-btn[disabled] { opacity: .6; pointer-events: none; }
.gl-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 12px; font: 500 15px/1 var(--sans); color: var(--forest); background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px var(--line-strong); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background-color .3s, box-shadow .3s; white-space: nowrap; }
.gl-ghost:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--forest); }
.gl-ghost svg { width: 15px; height: 15px; }
.gl-actions { display: grid; gap: 8px; }
.gl-actions-2 { grid-template-columns: 1.25fr 1fr; }

/* the glass pill for things that float over the globe or the map */
.gl-float { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 12px; font: 500 15px/1 var(--sans); color: #fff; background: rgba(6,18,12,.34); border: 1px solid rgba(255,255,255,.34); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); transition: background-color .3s, color .3s, border-color .3s; white-space: nowrap; }
.gl-float:hover { background: #fff; color: var(--forest); border-color: #fff; }
.gl-float svg { width: 15px; height: 15px; }
.gl-float[disabled] { opacity: .6; pointer-events: none; }
.gl-float.is-light { color: var(--forest); background: rgba(251,252,249,.78); border-color: rgba(255,255,255,.8); }
.gl-float.is-light:hover { background: #fff; border-color: #fff; }

.gl-btn > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.map-focus { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--edge); }
.globe-card .map-focus { padding-top: 0; border-top: 0; }
.gl-home-list { margin-bottom: 0; }
