/* Game ID web app (/app): Club Chat and the Club Owner screens, in build 113's look. Phone first; on a tablet the chat
   is a centred column, on a laptop the chat has a side panel (club, notifications, settings) beside a wide conversation. */
:root { --gc-paper: #F4F1EC; --gc-mine: #FFE3CC; --gc-day: #E4DED4; }

/* Screen bar */
.gc-bar { background: var(--ga-blaze); color: #fff; display: flex; align-items: center; gap: 8px; padding: max(env(safe-area-inset-top), 8px) 12px 10px; position: sticky; top: 0; z-index: 5; }
.gc-back { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: 34px; line-height: 1; color: #fff !important; border-radius: 12px; }
.gc-bar-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.gc-bar h1 { margin: 0; font-size: 21px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-bar-text span { font-size: 14px; opacity: .9; }

/* Shared bits */
.gc-pill { min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1.5px solid var(--ga-blaze-2); background: #fff; color: var(--ga-blaze-2); font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.gc-pill.bad { border-color: var(--ga-bad); color: var(--ga-bad); }
.gc-pill[disabled] { opacity: .5; }
.ga-btn.bad { border-color: var(--ga-bad); }
.ga-btn.primary.bad { background: var(--ga-bad); }
.gc-status { background: var(--ga-blaze-tint); color: #9A4A1C; padding: 10px 14px; margin: 0; font-size: 14.5px; }
.gc-page .gc-status, .gc-page .gc-ok { border-radius: 12px; margin: 0 0 12px; }
.gc-ok { background: #E3F2E6; color: #1E5B2C; padding: 10px 14px; font-size: 14.5px; }
.gc-empty { color: var(--ga-muted); text-align: center; margin: 40px 16px; }
.gc-field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.gc-field textarea, .gc-compose textarea { border-radius: 12px; border: 1.5px solid #D8D2CC; padding: 10px 12px; font: inherit; font-size: 16px; resize: vertical; color: var(--ga-ink); background: #fff; }
.gc-field textarea:focus, .gc-compose textarea:focus { border-color: var(--ga-blaze); outline: none; box-shadow: 0 0 0 3px rgba(226,107,43,.2); }
.gc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gc-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gc-toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--ga-ink); color: #fff; padding: 10px 18px; border-radius: 99px; z-index: 60; font-weight: 600; }

/* Club Chat */
.gc-chat { height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: var(--gc-paper); }
.gc-chat-body { flex: 1; min-height: 0; display: flex; }
.gc-side { display: none; }
.gc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--gc-paper); }
.gc-tools { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #fff; border-bottom: 1px solid var(--ga-line); }
.gc-tools .ga-small { flex: 1; min-width: 0; }
.gc-reports { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 16px; background: var(--ga-blaze); color: #fff !important; font-weight: 700; font-size: 14.5px; }
.gc-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.gc-older { align-self: center; }
.gc-day { display: flex; justify-content: center; margin: 8px 0 2px; }
.gc-day span { background: var(--gc-day); color: #5B5B5B; font-size: 12.5px; padding: 4px 12px; border-radius: 10px; }
.gc-new { display: flex; align-items: center; gap: 8px; color: var(--ga-blaze); font-weight: 700; font-size: 12.5px; margin: 6px 0; }
.gc-new::before, .gc-new::after { content: ""; flex: 1; height: 1px; background: var(--ga-blaze); }
.gc-line { display: flex; flex-direction: column; align-items: flex-start; }
.gc-line.mine { align-items: flex-end; }
.gc-bubble { max-width: min(300px, 82%); min-height: 44px; display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 6px 10px; border-radius: 14px; border: 0; background: #fff; color: var(--ga-ink); font: inherit; cursor: pointer; box-shadow: 0 1px 1px rgba(0,0,0,.05); }
.gc-bubble.mine { background: var(--gc-mine); }
.gc-sender { color: var(--ga-blaze-2); font-weight: 700; font-size: 13.5px; display: flex; gap: 6px; align-items: center; }
.gc-sender i, .gc-report header i { font-style: normal; font-weight: 500; font-size: 11.5px; background: var(--ga-blaze-tint); border-radius: 6px; padding: 0 6px; }
.gc-text { font-size: 15.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.gc-gone { font-style: italic; background: none; font-size: 15px; font-weight: 400; padding: 0; color: var(--ga-muted); }
.gc-time { align-self: flex-end; font-size: 11.5px; color: #7A7A7A; }
.gc-photo { width: 240px; max-width: 100%; height: 240px; object-fit: cover; border-radius: 10px; display: block; background: var(--gc-day); }
.gc-options { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.gc-rules { background: #fff; padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--ga-line); }
.gc-rules p { margin: 0; color: var(--ga-ink-2); }
.gc-compose { display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px max(env(safe-area-inset-bottom), 12px); background: #fff; border-top: 1px solid var(--ga-line); }
.gc-compose textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 140px; resize: none; }
.gc-add { position: relative; width: 44px; height: 44px; flex: none; border-radius: 22px; background: var(--ga-blaze-tint); color: var(--ga-blaze-2); display: inline-flex; align-items: center; justify-content: center; font-size: 24px; cursor: pointer; overflow: hidden; }
.gc-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.gc-add.busy { opacity: .5; }
.gc-send { min-height: 44px; padding: 0 16px; }

/* Bottom sheet (phone) / centred dialog (tablet, laptop) */
.gc-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 40; }
.gc-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; border-radius: 22px 22px 0 0; padding: 18px 16px max(env(safe-area-inset-bottom), 18px); display: flex; flex-direction: column; gap: 10px; max-height: 85vh; overflow-y: auto; }
.gc-sheet h2 { margin: 0 0 4px; font-size: 20px; }
.gc-sheet p { margin: 0; line-height: 1.45; }
.gc-choice { min-height: 52px; display: flex; align-items: center; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--ga-line); background: #fff; font: inherit; font-size: 17px; color: var(--ga-ink) !important; text-align: left; cursor: pointer; }

/* Other screens (Blocked people, Reports, Hunters Requesting Access, Invite Hunters) */
.gc-page { min-height: 100vh; background: #fff; }
.gc-page-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.gc-page-body .ga-section { margin: 14px 2px 0; }
.gc-person { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; min-height: 64px; flex-wrap: wrap; }
.gc-person + .gc-person { border-top: 1px solid var(--ga-line); }
.gc-person > span:first-child { display: flex; flex-direction: column; }
.gc-person small { color: var(--ga-muted); font-size: 14px; }
.gc-report { border: 1.5px solid var(--ga-line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.gc-report header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gc-report header small { color: var(--ga-muted); margin-left: auto; }
.gc-report-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.gc-report ul { margin: 0; padding-left: 18px; color: var(--ga-ink-2); font-size: 14.5px; }
.gc-empty-card { background: var(--ga-bg-2); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.gc-empty-card span { color: var(--ga-muted); }
.gc-req-grid { display: grid; gap: 12px; }
.gc-req { border: 2px solid var(--ga-blaze); border-radius: var(--ga-r); padding: 14px; }
.gc-req p { margin: 6px 0 0; }
.gc-req-head { display: flex; align-items: center; gap: 12px; }
.gc-req-head div { display: flex; flex-direction: column; min-width: 0; }
.gc-req-head b { font-size: 18px; }
.gc-req-head small { color: var(--ga-muted); overflow-wrap: anywhere; }
.gc-tag { display: inline-block; background: var(--ga-blaze-tint); color: #9A4A1C; border-radius: 99px; padding: 2px 10px; font-size: 13.5px; font-weight: 600; }
.gc-decide { background: var(--ga-bg-2); border-radius: 16px; padding: 14px; margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.gc-decide p { margin: 0; }
.gc-box { border: 1.5px solid var(--ga-line); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.gc-box.row { flex-direction: row; align-items: center; gap: 12px; }
.gc-box.row > span { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.gc-label { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ga-muted); font-weight: 600; }
.gc-link { overflow-wrap: anywhere; font-size: 17px; }
.gc-switch { position: relative; width: 56px; height: 44px; flex: none; display: inline-flex; align-items: center; cursor: pointer; }
.gc-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.gc-switch i { pointer-events: none; width: 52px; height: 32px; border-radius: 16px; background: #CFC8C1; position: relative; transition: background .15s; }
.gc-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .15s; }
.gc-switch input:checked + i { background: var(--ga-blaze); }
.gc-switch input:checked + i::after { transform: translateX(20px); }
.gc-switch input:focus-visible + i { outline: 3px solid #1D2023; outline-offset: 2px; }

/* Tablet: the conversation is a centred column; sheets are dialogs; request cards in two columns */
@media (min-width: 760px) {
  .gc-bar { padding-left: 24px; padding-right: 24px; }
  .gc-main { max-width: 820px; margin: 0 auto; box-shadow: 0 0 0 1px var(--ga-line); }
  .gc-bubble { max-width: 60%; }
  .gc-sheet { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: min(460px, 92vw); border-radius: 22px; }
  .gc-page-body { padding: 24px 28px; max-width: 980px; margin: 0 auto; }
  .gc-page-body.narrow { max-width: 620px; }
  .gc-req-grid { grid-template-columns: repeat(2, minmax(0,1fr)); align-items: start; }
}

/* Laptop: a side panel with the Hunting Club, notifications and settings; the conversation uses the rest */
@media (min-width: 1180px) {
  .gc-chat-body { max-width: 1240px; width: 100%; margin: 0 auto; }
  .gc-side { display: flex; flex-direction: column; gap: 10px; width: 300px; flex: none; padding: 22px 20px; background: #fff; border-right: 1px solid var(--ga-line); }
  .gc-side h2 { margin: 0; font-size: 22px; }
  .gc-side .gc-pill { align-self: flex-start; }
  .gc-side-link { min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 4px; border: 0; border-top: 1px solid var(--ga-line); background: none; font: inherit; font-size: 16px; color: var(--ga-ink) !important; cursor: pointer; text-align: left; }
  .gc-tools { display: none; }
  .gc-main { max-width: none; margin: 0; box-shadow: none; }
  .gc-scroll { padding: 16px 32px 20px; }
  .gc-bubble { max-width: 520px; }
  .gc-photo { width: 300px; height: 300px; }
  .gc-req-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
