/* The hub, take 3 (index.html, src/ui/hub3/): on top of hub.css. A fuller Home and a simpler Play,
   the game's own look (panels, copper, teal). */

/* Play has no social column: the lobby takes the whole width */
.screen-menu.hub3.h3-playing { grid-template-columns: minmax(0, 1fr); }
.screen-menu.hub3.h3-playing .hub-social { display: none; }

/* ------------------------------------------------------------ Home */
.h3-home { gap: 10px; }
/* your corner: who you are on the left, your best champion and your mascot on a little stage */
.h3-corner { min-height: 0; padding: 18px 22px; }
.h3-who { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.h3-who .chip.gold { color: var(--gold); }
.h3-bars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; max-width: 520px; }
.h3-bars small { display: block; margin-bottom: 2px; font-size: 11px; }
.h3-stage { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(63, 224, 184, 0.14), transparent 65%); }
/* the showcase: sharp pixels (its size is set from the screen's own pixels; no filters) */
.h3-showcase-wrap { width: 100%; display: flex; justify-content: center; }
.h3-showcase { display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
.h3-names { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; text-align: center; }
.h3-name { display: flex; flex-direction: column; align-items: center; gap: 1px; max-width: 170px; }
.h3-name small { font-size: 11px; color: var(--muted); }
.h3-name b { font-size: var(--fs-xs); }
.h3-name .teal { line-height: 1.2; }

/* pick up where you left off */
.h3-continue { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.h3-cont { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 10px 12px; text-align: left; color: var(--text); font: inherit; cursor: pointer;
  border-left: 5px solid var(--teal); transition: transform 0.1s, box-shadow 0.1s; }
.h3-cont:hover, .h3-cont:focus-visible { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--gold), 0 8px 16px rgba(0, 0, 0, 0.4); outline: none; }
.h3-cont.hot { border-left-color: var(--gold); }
.h3-cont.empty { cursor: default; justify-content: center; }
.h3-cont .hub-mode-ico { width: 48px; height: 48px; }
.h3-cont-text { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.h3-cont-text b { font-size: var(--fs-xs); color: var(--copper-hi); text-transform: uppercase; letter-spacing: 1px; }
.h3-cont-text small { font-size: 12px; color: var(--text); }
.h3-cont-text .bar { height: 8px; margin-top: 2px; }
.h3-cta { flex-shrink: 0; font-size: var(--fs-xs); color: var(--gold); text-transform: uppercase; letter-spacing: 1px; }

/* this week | today */
.h3-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 10px; margin-top: 4px; }
.h3-week, .h3-today { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; }
.h3-week .hub-card-head, .h3-today .hub-card-head { width: 100%; }
.h3-event { padding: 4px 8px; color: #241405; font-weight: 700; background: linear-gradient(180deg, #ffe48a, var(--gold)); border: 2px solid #000; }
.h3-evg, .h3-linkline, .h3-quests { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; text-align: left; font: inherit; color: var(--text);
  background: rgba(18, 14, 22, 0.6); border: 2px solid #000; cursor: pointer; }
.h3-evg { color: var(--copper-hi); }
.h3-evg span:nth-child(2) { flex: 1; }
.h3-evg:hover, .h3-linkline:hover, .h3-quests:hover { box-shadow: 0 0 0 2px var(--gold); }
.h3-faces { display: flex; gap: 6px; flex-wrap: wrap; }
.h3-faces canvas { width: 56px; height: 56px; image-rendering: pixelated; background: radial-gradient(circle at 50% 38%, #3e3448, #1d1724 75%); border: 2px solid #000; box-shadow: 0 0 0 2px var(--copper-dk); }
.h3-line { display: flex; align-items: center; gap: 8px; }
.h3-line img, .h3-line canvas, .h3-evg img, .h3-evg canvas { width: 18px; height: 18px; image-rendering: pixelated; }
.h3-quests { flex-direction: column; align-items: stretch; gap: 6px; }
.h3-weekbar { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; padding-top: 6px; border-top: 1px solid var(--line); }
.h3-weekbar .bar { height: 8px; }

/* ------------------------------------------------------------ Play */
.h3-lobby { gap: 8px; }
.h3-tiles { display: grid; gap: 12px; }
.h3-tiles.versus { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.h3-tiles.adventure { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.h3-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 196px; padding: 18px 14px 14px; text-align: center; color: var(--text); font: inherit; cursor: pointer;
  border-top: 5px solid var(--copper); transition: transform 0.1s, box-shadow 0.1s; }
.h3-tile.adventure { border-top-color: var(--team-red); }
.h3-tile:hover, .h3-tile:focus-visible { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--gold), 0 10px 20px rgba(0, 0, 0, 0.45); outline: none; }
.h3-tile-ico { width: 76px; height: 76px; display: grid; place-items: center; background: #120e16; border: 2px solid #000; box-shadow: inset 0 0 0 2px rgba(255, 246, 220, 0.08); }
.h3-tile-ico canvas, .h3-tile-ico img { width: 48px; height: 48px; image-rendering: pixelated; }
/* the new art: the place's thumbnail across the top, the icon over its lower edge */
.h3-tile.has-thumb { padding-top: 0; overflow: hidden; }
.h3-thumb { display: block; width: calc(100% + 28px); margin: 0 -14px; aspect-ratio: 16 / 7; object-fit: cover; border-bottom: 2px solid #000; image-rendering: pixelated; }
.h3-tile.has-thumb .h3-tile-ico { position: relative; margin-top: -38px; }
.h3-tile b { font-size: var(--fs-s); color: var(--copper-hi); text-transform: uppercase; letter-spacing: 1px; }
.h3-tile small { font-size: 12px; line-height: 1.3; color: var(--muted); max-width: 30ch; }
.h3-status { margin-top: auto; padding: 2px 8px; font-size: 11px; color: var(--gold); background: rgba(18, 14, 22, 0.8); border: 1px solid var(--copper-dk); }
.h3-quick { margin-top: auto; }
.h3-status + .h3-quick { margin-top: 4px; }
.h3-tile.mode-closed { filter: grayscale(0.8) brightness(0.7); }
.h3-extras { display: flex; flex-wrap: wrap; gap: 8px; }
.h3-extra { position: relative; }

/* ------------------------------------------------------------ narrower screens */
@media (max-width: 1280px) {
  .h3-tiles.adventure { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .h3-row { grid-template-columns: minmax(0, 1fr); }
  .h3-corner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .h3-bars { grid-template-columns: minmax(0, 1fr); }
  .h3-tiles.versus, .h3-tiles.adventure { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h3-tile { min-height: 0; padding: 12px 8px 10px; }
  .h3-tile small { display: none; }
  .h3-tile-ico { width: 56px; height: 56px; }
  .h3-tile-ico canvas, .h3-tile-ico img { width: 36px; height: 36px; }
  .h3-thumb { width: calc(100% + 16px); margin: 0 -8px; }
  .h3-tile.has-thumb .h3-tile-ico { margin-top: -28px; }
}
/* the Tutorial's "!" sits clear of its label */
.h3-extra.badge { padding-right: 30px; }
@media (max-width: 760px) {
  /* phones: PLAY is in the bottom bar already */
  .h3-corner .hub-cta { display: none; }
}
