/* hub-tidy.css: 18 Nov 2026, package o4a. Loaded only by games.php, after posters.css and music.css.
   Owner: "just update and make better organize the current design. fix it."
   The look stays the same (purple banner, posters). This file only tidies the top of the Games page
   so nothing sits on top of anything else. To undo: remove its <link> line from games.php. */

/* 1. Banner: the six emoji tiles sat under the player card on laptops. Removed (the card is the content). */
.ah2 .ah-float { display: none; }

/* 2. Floating extras that covered the page:
      - the round day/night button: the moon in the top bar does the same job (same memory: "theme" and "gr_theme");
      - the dark "Look around freely" bar: the banner card already says the same thing for guests. */
.ah-theme { display: none !important; }
.ps-gnote.ps-gfloat { display: none !important; }

/* 3. Today cards: one calm style. The Daily Challenge gets a solid tinted border instead of the dashed red line,
      and on laptops the three Play buttons line up at the bottom. */
.a2-tile.a2-d:not(.a2-done) { border-style: solid; border-color: color-mix(in srgb, #f43f5e 45%, var(--line)); background: color-mix(in srgb, #f43f5e 5%, var(--card)); }
@media (min-width: 861px) {
  .a2-tile { grid-template-rows: auto auto 1fr auto; align-items: start; }
  .a2-tile > i { grid-row: 1 / span 3; }
  .a2-tile .a2-go { align-self: end; }
}

/* 4. Search and filters bar (it stays at the top while you scroll).
      Before: three rows, see-through, the Order row floated over the posters.
      Now: two rows, solid background. Row 1 = search + order + view. Row 2 = the filter chips. */
.ah-tools { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "q ctl" "chips chips"; align-items: center;
  background: var(--pagebg, #f4f3fb); -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0;
  box-shadow: 0 -12px 0 var(--pagebg, #f4f3fb), 0 12px 14px -14px rgba(28, 26, 46, .35); }
.ah-tools .ah-search { grid-area: q; }
.ah-tools .ah-chips { grid-area: chips; }
.ah-tools .a2-ctl { grid-area: ctl; margin: 0; flex-wrap: nowrap; }
.ah-tools .a2-ctl select { min-height: 46px; }
.ah-tools .a2-view { margin-left: 0; }
.ah-tools .a2-view button { height: 38px; }
html.dark .ah-tools { box-shadow: 0 -12px 0 var(--pagebg, #070b1c), 0 12px 14px -14px rgba(0, 0, 0, .8); }

/* 5. Music button: now inside the banner, right after the big "Games" title (music.js puts it there),
      not floating over the cards. The player panel opens at the top right, under the site bar. */
.ah-hero h1 { display: inline-block; vertical-align: middle; }
/* a little air between the small heading, the big title and the text, so the lines don't sit on top of each other */
.ah2 .ah-hero .ah-kick { margin-bottom: 6px; }
.ah2 .ah-hero .ah-lead { margin-top: 12px; }
.ah-hero .am-fab { position: relative; top: auto; right: auto; bottom: auto; vertical-align: middle; margin: 0 0 0 14px; z-index: 2; min-height: 40px; max-width: min(170px, 38vw); padding: 0 14px 0 12px; gap: 8px;
  font-size: 14px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .4); box-shadow: none; }
.ah-hero .am-fab:hover { background: rgba(255, 255, 255, .28); }
.ah-hero .am-fab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- Tablets and phones ---------- */
@media (max-width: 860px) {
  .ah2 .ah-hero { grid-template-columns: minmax(0, 1fr); }
  /* Today: three neat rows instead of a sideways strip where cards were cut off. */
  .a2-today { display: grid; grid-template-columns: 1fr; gap: 8px; overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
  .a2-tile { flex: none; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 1px 12px; padding: 10px 12px; border-radius: 16px; }
  .a2-tile > i { grid-column: 1; grid-row: 1 / span 3; width: 44px; height: 44px; font-size: 23px; border-radius: 13px; }
  .a2-tile > .a2-k, .a2-tile > b, .a2-tile > small { grid-column: 2; min-width: 0; }
  .a2-tile b { font-size: 15.5px; }
  .a2-tile small { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .a2-tile .a2-go { grid-column: 3; grid-row: 1 / span 3; align-self: center; margin: 0; padding: 8px 14px; }
}

@media (max-width: 620px) {
  /* Banner: a little less padding; the guest card uses the full width and smaller text. */
  .ah2 .ah-hero { gap: 14px; padding: 18px 16px 16px; }
  .ah2 .ah-hero .ah-lead { font-size: 15px; margin-top: 10px; }
  .a2-me.a2-guest { max-width: none; padding: 12px 14px; border-radius: 16px; }
  .a2-me.a2-guest p { font-size: 13px; margin-bottom: 5px; }
  .a2-me.a2-guest p b { font-size: 16px; }
  .a2-me.a2-guest p:last-of-type { margin-bottom: 0; }

  /* Search bar: search + a small "order" button + view, all on one row. Tapping ⇅ opens the same order list. */
  .ah-tools { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "q sort view" "chips chips chips"; gap: 8px 6px; }
  .ah-tools .a2-ctl { display: contents; }
  .ah-tools .a2-ctl label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ah-tools .a2-ctl select { grid-area: sort; width: 46px; height: 46px; min-height: 46px; padding: 0; border-radius: 14px; color: transparent; text-shadow: none; cursor: pointer;
    -webkit-appearance: none; appearance: none;
    background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239333ea' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4v16M3 8l4-4 4 4M17 20V4M13 16l4 4 4-4'/%3E%3C/svg%3E") center / 22px no-repeat; }
  .ah-tools .a2-ctl select option { color: #1c1a2e; background: #fff; }
  .ah-tools .a2-view { grid-area: view; }

  /* Player card (signed in): smaller ring, text may wrap, so nothing is cut off at the right edge. */
  .a2-me:not(.a2-guest) { justify-self: stretch; grid-template-columns: 72px minmax(0, 1fr); gap: 3px 14px; padding: 12px 14px; border-radius: 16px; }
  .a2-me .a2-ring { width: 72px; height: 72px; } .a2-me .a2-ring > span { font-size: 18px; }
  .a2-me:not(.a2-guest) p { white-space: normal; font-size: 13px; } .a2-me:not(.a2-guest) p b { font-size: 16px; white-space: nowrap; }
}