/* Simos Camp — activities & station menus (owner: activities). Prefix: act-
 * Floating station card (ui.float, bottom), the top chip (folded card + current activity with Stop), the Workshop
 * Pavilion section (live / next / replays), the people picker (sleepover invites, private time) and the small
 * pinned-board fallback. Mobile-first, 44 px touch targets, cozy wood / sand / turquoise.
 */

/* ------------------------------------------------------------------ floats */
.act-float-card { width: min(440px, calc(100vw - 16px)); }
.act-float-top { max-width: calc(100vw - 16px); }

/* ------------------------------------------------------------------ the station card */
.act-card {
  background: var(--panel-bg); color: var(--ink);
  border: 3px solid var(--wood-dark); border-radius: 24px; overflow: hidden;
  box-shadow: 0 5px 0 rgba(122, 81, 50, .45), 0 16px 34px rgba(30, 50, 64, .32);
}
.act-head {
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px;
  background: var(--wood-grain), linear-gradient(180deg, var(--wood-light), var(--wood));
  color: #fff; text-shadow: 0 2px 0 rgba(122, 81, 50, .55);
  border-bottom: 3px solid var(--wood-dark);
}
.act-head-ico {
  flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 23px;
  background: radial-gradient(circle at 35% 30%, #fff, #fcf5e3 70%); border: 2px solid rgba(122, 81, 50, .35);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .07); text-shadow: none;
}
.act-head-txt { flex: 1 1 auto; min-width: 0; }
.act-head-title { font-weight: 700; font-size: 19px; line-height: 1.1; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-head-sub { display: flex; gap: 8px; align-items: baseline; font-size: 13px; font-weight: 500; opacity: .96; margin-top: 2px; }
.act-head-sub > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-head-time {
  flex: none; font-size: 11.5px; font-weight: 600; padding: 0 7px; border-radius: 999px;
  background: rgba(255, 255, 255, .22); text-shadow: none;
}
.act-x {
  flex: none; width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(122, 81, 50, .45);
  background: linear-gradient(180deg, #fff, #fcf5e3); color: #7a5132; font: 700 16px/1 var(--font); cursor: pointer;
  box-shadow: 0 3px 0 rgba(122, 81, 50, .45); pointer-events: auto; text-shadow: none;
  transition: transform .12s var(--ease-spring);
}
.act-x:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(122, 81, 50, .45); }

.act-body { padding: 10px 10px 12px; max-height: min(52vh, 440px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; }
.act-here { display: flex; align-items: center; gap: 8px; margin: -2px 2px 9px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.act-faces { display: flex; padding-left: 6px; }
.act-faces .sc-face { width: 26px !important; height: 26px !important; margin-left: -6px; border-width: 2px; }
.act-note-login { margin: 0 2px 8px; padding: 6px 10px; border-radius: 12px; background: var(--sand); font-size: 13px; font-weight: 600; }
.act-empty { padding: 14px 8px; text-align: center; color: var(--ink-soft); font-weight: 600; font-size: 14px; }

/* tiles */
.act-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(96px, 100%), 1fr)); gap: 8px; }
.act-grid > * { min-width: 0; max-width: 100%; }
.act-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 78px; padding: 9px 5px 7px; border-radius: 17px; cursor: pointer; pointer-events: auto;
  border: 2px solid var(--tile-bd, #f0dcc0); background: linear-gradient(180deg, #fff, var(--tile, #fff7ea));
  box-shadow: 0 4px 0 var(--tile-sh, #e3cc9c); color: #4a3b33; font: 600 13.5px/1.12 var(--font); text-align: center;
  transition: transform .12s var(--ease-spring), box-shadow .12s, filter .15s;
  animation: act-in .34s var(--ease-spring) backwards;
}
.act-quiet .act-tile, .act-quiet .act-chip { animation: none; }
.act-tile:hover { filter: brightness(1.03); }
.act-tile:active { transform: translateY(3px) scale(.97); box-shadow: 0 1px 0 var(--tile-sh, #e3cc9c); }
.act-tile:focus-visible { outline: 3px solid var(--turq); outline-offset: 2px; }
.act-tile-ico { font-size: 27px; line-height: 1.05; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .1)); }
.act-tile-lbl { max-width: 100%; overflow-wrap: anywhere; }
.act-tile-sub { display: block; width: 100%; max-width: 100%; font-size: 10.5px; font-weight: 500; color: #8a7466; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-tag {
  position: absolute; top: 4px; right: 4px; padding: 1px 6px; border-radius: 999px; font-size: 10.5px; font-weight: 700; line-height: 1.5;
  background: #dff6e6; color: #226b3a; border: 1.5px solid #9fe0b4;
}
.act-tag-game { background: #efe8ff; color: #5a3fb8; border-color: #cdbfff; }
.act-tag-on { background: var(--turq); color: #fff; border-color: var(--turq-dark); }
.act-tile.act-on { --tile: #dcfbf7; --tile-bd: var(--turq); --tile-sh: #1d8fa3; }
.act-tile.act-on .act-tile-ico { animation: act-bob 1.4s ease-in-out infinite; }
.act-nope { animation: act-nope .38s ease both !important; }

/* category colours (pastel tiles, same ink in light & dark themes) */
.act-c-eat { --tile: #ffeede; --tile-bd: #ffd3b4; --tile-sh: #f2b48a; }
.act-c-party { --tile: #ffe6f2; --tile-bd: #ffc3dc; --tile-sh: #eb9bbf; }
.act-c-games { --tile: #fff4d6; --tile-bd: #ffe29a; --tile-sh: #e8c567; }
.act-c-gossip { --tile: #f1e9ff; --tile-bd: #d9c9ff; --tile-sh: #b7a1f0; }
.act-c-care { --tile: #e1f8fb; --tile-bd: #b0e8ef; --tile-sh: #7fcad6; }
.act-c-sport { --tile: #e5f8e8; --tile-bd: #b6e8c0; --tile-sh: #86cf97; }
.act-c-beach { --tile: #fff6dc; --tile-bd: #f6dfa2; --tile-sh: #dfc278; }
.act-c-explore { --tile: #e6f0ff; --tile-bd: #bfd6fb; --tile-sh: #8fb2e8; }
.act-c-rest { --tile: #efeaff; --tile-bd: #d7cdfb; --tile-sh: #aea0e2; }
.act-c-neutral { --tile: #f7f2ea; --tile-bd: #e6dccb; --tile-sh: #cdbfa6; }
.act-c-learn { --tile: #e8f7ef; --tile-bd: #b9e6cb; --tile-sh: #7fc79c; }

/* ------------------------------------------------------------------ Workshop Pavilion section (station card) */
.act-ws { display: flex; flex-direction: column; gap: 8px; margin: 0 0 10px; }
.act-ws-replays { margin: 12px 0 0; padding-top: 10px; border-top: 2px dashed rgba(155, 106, 64, .25); }
.act-ws-empty { padding: 10px 12px; border-radius: 14px; background: var(--sand); font-weight: 600; font-size: 13.5px; text-align: center; }
.act-ws-kicker { display: block; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; opacity: .75; }
.act-ws-sub { display: block; font-size: 11.5px; font-weight: 500; opacity: .8; }
.act-ws-live, .act-ws-next, .act-ws-req {
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 16px; font-size: 14px; line-height: 1.2;
  border: 2px solid #b9e6cb; background: linear-gradient(180deg, #f3fcf6, #e3f6ea); color: #2f4a3a;
}
.act-ws-next { background: #f7f2ea; border-color: #e6dccb; color: #4a3b33; }
.act-ws-req { background: linear-gradient(180deg, #fff6fa, #ffe9f2); border-color: #ffc3dc; color: #6b3350; }
.act-ws-req-ico { flex: none; font-size: 22px; }
.act-ws-req-txt, .act-ws-live-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.act-ws-req-txt > span { font-size: 12px; font-weight: 500; opacity: .9; }
.act-ws-live b, .act-ws-next b, .act-ws-req b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-ws-dot {
  flex: none; width: 12px; height: 12px; border-radius: 50%; background: #ff5a5a; box-shadow: 0 0 0 3px rgba(255, 90, 90, .25);
  animation: act-live 1.4s ease-in-out infinite;
}
.act-ws-btn {
  flex: none; min-height: 44px; min-width: 64px; padding: 4px 14px; border-radius: 999px; cursor: pointer; pointer-events: auto;
  border: 2px solid #3c9a64; background: linear-gradient(180deg, #7fdca3, #4cbb7a); color: #fff; font: 700 14px/1 var(--font);
  text-shadow: 0 1px 0 rgba(30, 90, 55, .5); box-shadow: 0 3px 0 #2f7a4f; transition: transform .12s var(--ease-spring);
}
.act-ws-req .act-ws-btn { border-color: #d9709b; background: linear-gradient(180deg, #ffa6c9, #f2799f); text-shadow: 0 1px 0 rgba(140, 40, 80, .45); box-shadow: 0 3px 0 #b8507a; }
.act-ws-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #2f7a4f; }
.act-ws-btn:focus-visible, .act-ws-rep:focus-visible, .act-pick-item:focus-visible { outline: 3px solid var(--turq); outline-offset: 2px; }
.act-ws-lbl { font-size: 12px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .6px; margin: 2px 2px 0; }
.act-ws-reps { display: flex; flex-wrap: wrap; gap: 6px; }
.act-ws-rep {
  display: inline-flex; align-items: center; gap: 5px; min-height: 40px; max-width: 100%; padding: 4px 11px 4px 8px; border-radius: 999px;
  cursor: pointer; pointer-events: auto; background: #fff; color: #4a3b33; border: 2px solid #e6dccb; box-shadow: 0 2px 0 #d9ccb4;
  font: 600 12.5px/1.1 var(--font); animation: act-in .34s var(--ease-spring) backwards; animation-delay: .08s;
}
.act-quiet .act-ws-rep { animation: none; }
.act-ws-rep:active { transform: translateY(2px); box-shadow: none; }
.act-ws-rep-ico { font-size: 16px; }
.act-ws-rep-lbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-ws-done { background: #eefaf2; border-color: #b9e6cb; box-shadow: 0 2px 0 #9ed3b1; }
.act-ws-need { background: #fff0f6; border-color: #ffc3dc; box-shadow: 0 2px 0 #eb9bbf; }
.act-ws-tick { color: #2f8a55; font-weight: 700; }

/* ------------------------------------------------------------------ people picker (sleepover invite, private time) */
.act-pick-wrap { display: flex; flex-direction: column; gap: 8px; }
.act-pick-text { margin: 0; font-size: 14px; line-height: 1.35; }
.act-pick { display: flex; flex-direction: column; gap: 6px; max-height: min(46vh, 340px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 2px; }
.act-pick-item {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 12px 6px 8px; border-radius: 16px; cursor: pointer;
  pointer-events: auto; text-align: left; background: #fff; color: #4a3b33; border: 2px solid #e6dccb; box-shadow: 0 3px 0 #d9ccb4;
  font: 600 15px/1.15 var(--font); transition: transform .12s var(--ease-spring), background .15s, border-color .15s;
}
.act-pick-item:active { transform: translateY(2px); box-shadow: 0 1px 0 #d9ccb4; }
.act-pick-item:disabled { opacity: .5; cursor: default; }
.act-pick-item .sc-face { flex: none; width: 36px !important; height: 36px !important; }
.act-pick-dot { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); font-size: 18px; }
.act-pick-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.act-pick-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-pick-sub { font-size: 11.5px; font-weight: 500; color: #2f8a55; }
.act-pick-tag { flex: none; font-size: 16px; }
.act-pick-check {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700;
  border: 2px solid #e6dccb; color: transparent; background: #fbf7f0;
}
.act-pick-on { background: #e6faf7; border-color: var(--turq); box-shadow: 0 3px 0 #1d8fa3; }
.act-pick-on .act-pick-check { background: var(--turq); border-color: var(--turq-dark); color: #fff; }
.act-pick-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.act-pick-count { flex: none; padding: 1px 8px; border-radius: 999px; background: var(--sand); color: var(--ink); }
.act-pick-note { text-align: right; }

/* later today */
.act-later { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding-top: 9px; border-top: 2px dashed rgba(155, 106, 64, .25); }
.act-later-lbl { font-size: 12px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .6px; margin-right: 2px; }
.act-chip {
  display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 3px 10px 3px 8px; border-radius: 999px; cursor: pointer;
  pointer-events: auto; background: var(--sand); color: var(--ink); border: 2px solid var(--sand-dark); font: 600 12.5px/1.1 var(--font);
  opacity: .92; animation: act-in .34s var(--ease-spring) backwards; animation-delay: .12s;
}
.act-chip-when { font-weight: 500; font-size: 11px; color: var(--ink-soft); }
.act-chip:active { transform: scale(.96); }

/* ------------------------------------------------------------------ the top chip */
.act-top { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.act-pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 12px 4px 6px; border-radius: 999px; cursor: pointer;
  pointer-events: auto; border: 3px solid var(--wood-dark); color: #fff; font: 600 14.5px/1 var(--font);
  background: var(--wood-grain), linear-gradient(180deg, var(--wood-light), var(--wood)); text-shadow: 0 2px 0 rgba(122, 81, 50, .5);
  box-shadow: 0 4px 0 var(--wood-deep), 0 8px 18px rgba(30, 50, 64, .25); transition: transform .12s var(--ease-spring);
}
.act-pill:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--wood-deep); }
.act-pill-ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fffaf0; font-size: 16px; text-shadow: none; }
.act-pill-car { font-size: 11px; opacity: .85; }
.act-status {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 4px 5px 4px 8px; border-radius: 999px; background: var(--panel-bg); color: var(--ink);
  border: 3px solid var(--turq-dark); box-shadow: 0 4px 0 rgba(21, 113, 134, .45), 0 8px 18px rgba(30, 50, 64, .25);
  font: 600 14.5px/1.1 var(--font); pointer-events: auto; animation: act-in .3s var(--ease-spring) backwards;
}
.act-status-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; background: #dcfbf7; animation: act-bob 1.6s ease-in-out infinite; }
.act-status-txt { white-space: nowrap; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
.act-stop {
  min-height: 34px; padding: 3px 12px; border-radius: 999px; cursor: pointer; pointer-events: auto;
  border: 2px solid var(--red-dark); background: linear-gradient(180deg, #ff9d9d, var(--red)); color: #fff;
  font: 600 13.5px/1 var(--font); text-shadow: 0 1px 0 rgba(168, 43, 43, .6); box-shadow: 0 3px 0 #a82b2b;
  transition: transform .12s var(--ease-spring);
}
.act-stop:active { transform: translateY(2px); box-shadow: 0 1px 0 #a82b2b; }
.act-status-bar {
  position: absolute; left: 0; bottom: 0; height: 4px; width: 0; border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, var(--turq), var(--green)); transition: width .25s linear;
}

/* ------------------------------------------------------------------ pinned-board fallback (when gossipBox is missing) */
.act-board { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow-y: auto; }
.act-note {
  display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 12px; font-size: 14px; line-height: 1.3;
  background: #eef4ff; color: #4a3b33; border: 2px solid #cfdcf5; transform: rotate(-.6deg);
}
.act-note:nth-child(2n) { transform: rotate(.7deg); }
.act-note-compliment { background: #ffe9f2; border-color: #ffc3dc; }
.act-note-gossip { background: #f1e9ff; border-color: #d9c9ff; }
.act-note-ico { flex: none; }

/* ------------------------------------------------------------------ motion */
@keyframes act-in { from { opacity: 0; transform: translateY(10px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes act-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes act-live { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.8); opacity: .65; } }
@keyframes act-nope { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }

@media (max-width: 380px) {
  .act-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .act-float-card { width: calc(100vw - 12px); }
  .act-tile { min-height: 72px; font-size: 12.5px; }
  .act-tile-sub { display: none; }
}
@media (min-width: 700px) {
  .act-float-card { width: 460px; }
  .act-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .act-tile.act-on .act-tile-ico, .act-status-ico, .act-ws-dot { animation: none; }
}
