/* cu-club: nightclub room overlay */
.club-ov { position: fixed; inset: 0; z-index: 9500; background: #050409; display: flex; flex-direction: column; color: #fff; font: 600 13px Inter, system-ui, sans-serif;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); touch-action: none; user-select: none; -webkit-user-select: none; }
.club-ov[hidden] { display: none; }
html.club-on, html.club-on body { overflow: hidden; }
.club-top { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.club-top b { font-size: 15px; letter-spacing: .3px; flex: 1; }
.club-cash { color: #ffd23f; font-weight: 800; }
.club-b, .club-x { border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; border-radius: 999px; padding: 7px 12px; font: 700 13px Inter, system-ui, sans-serif; cursor: pointer; }
.club-b.on { background: #ffd23f; color: #1a1300; border-color: #ffd23f; }
.club-x { width: 34px; height: 34px; padding: 0; }
.club-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #040308; }
.club-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.club-joy { position: absolute; left: 14px; bottom: 14px; width: 104px; height: 104px; border-radius: 50%; background: rgba(255,255,255,.07); border: 2px solid rgba(255,255,255,.18); touch-action: none; }
.club-joy i { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px; border-radius: 50%; background: rgba(255,63,180,.55); border: 2px solid rgba(255,255,255,.6); box-shadow: 0 0 14px rgba(255,63,180,.6); }
.club-sel { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px; border-radius: 14px; background: rgba(14,10,22,.92); border: 1px solid rgba(255,210,63,.5); }
.club-sel[hidden], .club-hint[hidden], .club-cat[hidden], .club-say[hidden] { display: none; }
.club-sel button { border: 0; border-radius: 10px; padding: 8px 10px; background: rgba(255,255,255,.08); color: #fff; font: 700 12.5px Inter, system-ui, sans-serif; cursor: pointer; }
.club-hint { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); max-width: 92%; padding: 6px 12px; border-radius: 999px; background: rgba(14,10,22,.9); border: 1px solid rgba(166,77,255,.5); font-size: 12px; text-align: center; }
.club-say { display: flex; gap: 6px; padding: 8px 10px 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; touch-action: pan-x; }
.club-say button { flex: 0 0 auto; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.07); color: #fff; border-radius: 999px; padding: 8px 12px; font: 700 13px Inter, system-ui, sans-serif; cursor: pointer; }
.club-cat { padding: 6px 10px 10px; border-top: 1px solid rgba(255,255,255,.08); background: #0b0812; }
.club-cat-h { font-size: 12.5px; margin: 0 2px 6px; } .club-cat-h small { opacity: .6; font-weight: 500; margin-left: 6px; }
.club-cat-l { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; touch-action: pan-x; padding-bottom: 2px; }
.club-cat-l button { flex: 0 0 auto; width: 86px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #fff; font: 600 11px Inter, system-ui, sans-serif; cursor: pointer; }
.club-cat-l canvas { width: 48px; height: 48px; image-rendering: pixelated; }
.club-cat-l b { color: #ffd23f; font-size: 12px; }
@media (orientation: landscape) and (max-height: 500px) {
  .club-ov { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; }
  .club-top { grid-column: 1 / -1; padding: 4px 10px; }
  .club-stage { grid-column: 1; grid-row: 2 / 4; }
  .club-say, .club-cat { grid-column: 2; grid-row: 2 / 4; flex-direction: column; overflow-y: auto; touch-action: pan-y; max-width: 200px; border-top: 0; }
  .club-cat-l { flex-direction: row; flex-wrap: wrap; width: 184px; overflow-y: auto; touch-action: pan-y; }
  .club-joy { width: 90px; height: 90px; }
}
/* club5: left-side room menu */
.club-rooms { position: absolute; left: 8px; top: 8px; z-index: 3; display: flex; flex-direction: column; gap: 3px; padding: 6px; border-radius: 14px; background: rgba(10,8,16,.82); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(4px); max-height: calc(100% - 140px); overflow-y: auto; touch-action: pan-y; }
.club-rooms button { display: flex; align-items: center; gap: 7px; border: 0; background: transparent; color: #cfd2dc; font: 700 12px Inter, system-ui, sans-serif; padding: 6px 8px; border-radius: 9px; cursor: pointer; text-align: left; white-space: nowrap; }
.club-rooms button i { font-style: normal; width: 18px; text-align: center; }
.club-rooms button.on { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 2px 0 0 #ff3fb4; }
@media (max-width: 520px) { .club-rooms button span { display: none; } .club-rooms button { padding: 6px; } .club-rooms { padding: 4px; } }
/* club6: zoom buttons (one big map) */
.club-zoom { position: absolute; right: 10px; bottom: 14px; z-index: 3; display: flex; flex-direction: column; gap: 6px; }
.club-zoom button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); background: rgba(10,8,16,.82); color: #fff; font: 800 18px Inter, system-ui, sans-serif; cursor: pointer; }
.club-rooms { max-height: calc(100% - 20px); }
/* cu-club-live (17i): online count, chat bar, chat log, player sheet */
.club-online { font: 800 11.5px Inter, system-ui, sans-serif; padding: 4px 8px; border-radius: 999px; background: rgba(61,255,139,.12); border: 1px solid rgba(61,255,139,.45); color: #bfffd6; white-space: nowrap; }
.club-online[hidden], .club-log[hidden], .club-ps[hidden], .club-b[hidden] { display: none; }
.club-say { flex-direction: column; gap: 6px; overflow: visible; }
.club-say-p { display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; touch-action: pan-x; scrollbar-width: none; }
.club-say-p::-webkit-scrollbar { display: none; }
.club-say-p button { flex: 0 0 auto; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.07); color: #fff; border-radius: 999px; padding: 7px 11px; font: 700 13px Inter, system-ui, sans-serif; cursor: pointer; }
.club-chat { display: flex; gap: 6px; }
.club-chat input { flex: 1; min-width: 0; border-radius: 12px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff; padding: 9px 12px; font: 600 16px Inter, system-ui, sans-serif; outline: none; }
.club-chat input:focus { border-color: #ff3fb4; }
.club-chat input:disabled { opacity: .55; }
.club-chat button { border: 0; border-radius: 12px; padding: 0 14px; background: linear-gradient(135deg, #ff3fb4, #a64dff); color: #fff; font: 800 13px Inter, system-ui, sans-serif; cursor: pointer; }
.club-log { position: absolute; right: 8px; top: 8px; z-index: 3; width: min(52%, 280px); max-height: 38%; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding: 5px; border-radius: 12px; background: rgba(8,6,14,.72); border: 1px solid rgba(255,255,255,.1); }
.club-logr { display: block; text-align: left; border: 0; background: transparent; color: #e8e8f0; font: 600 11.5px/1.3 Inter, system-ui, sans-serif; padding: 2px 4px; border-radius: 6px; cursor: pointer; overflow-wrap: anywhere; }
.club-logr b { color: #ff8fd0; font-weight: 800; }
.club-logr:active { background: rgba(255,255,255,.1); }
.club-ps { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6; width: min(86%, 300px); display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 16px; background: rgba(14,10,22,.97); border: 1px solid rgba(255,63,180,.5); box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.club-ps-h { display: flex; flex-direction: column; gap: 3px; padding: 0 2px 4px; }
.club-ps-h b { font-size: 15px; }
.club-ps-h small { color: #b9bccb; font-weight: 600; overflow-wrap: anywhere; }
.club-ps button { border: 0; border-radius: 10px; padding: 10px; background: rgba(255,255,255,.08); color: #fff; font: 700 13px Inter, system-ui, sans-serif; text-align: left; cursor: pointer; }
.club-ps button[data-ps="x"] { text-align: center; background: transparent; border: 1px solid rgba(255,255,255,.18); }
@media (orientation: landscape) and (max-height: 520px) {
  .club-say { justify-content: flex-end; }
  .club-say-p { flex-direction: column; overflow-x: visible; overflow-y: auto; touch-action: pan-y; }
  .club-chat input { font-size: 16px; padding: 7px 9px; }
  .club-log { max-height: 46%; width: min(44%, 260px); }
}
html.club-on #app-tip { display: none !important; }   /* 17i: the add-to-home-screen tip must not cover the club chat */

/* 17i-b: Netlify's site badge iframe (CU) sat over the Send button; hide it only while the club is open */
html.club-on #nl-badge-frame { display: none !important; }
