/* Gameco-aligned waiting room and live table surfaces. Loaded last by design. */
.gameco-social.brand-red .maritime-game-page {
  width: min(1440px, 100%);
  margin-inline: auto;
}

.gameco-social.brand-red .waiting-header,
.gameco-social.brand-red .game-header {
  width: min(1180px, 100%);
  min-height: 82px;
  margin-bottom: 18px;
  padding: 12px 18px;
  border: 0;
  border-radius: 5px;
  background: linear-gradient(105deg, #1b1e24 0%, #111318 68%, #181014 100%);
  box-shadow: 0 20px 52px rgba(0, 0, 0, .34);
}

.gameco-social.brand-red .game-header .game-identity > img {
  width: 54px;
  height: 54px;
  padding: 7px;
  border-radius: 4px;
  background: linear-gradient(145deg, #f22d35, #aa080e);
}

.gameco-social.brand-red .game-header h2 {
  color: #f5f6f8;
  font: 700 21px/1.05 Borda, "DM Sans", sans-serif !important;
  letter-spacing: .35px;
  text-transform: uppercase;
}

.gameco-social.brand-red .game-header .live-pill {
  color: #ff4d54 !important;
  background: transparent !important;
  border: 0 !important;
}

.gameco-social.brand-red .game-header .game-code {
  color: #fff;
  background: #0b0d11 !important;
  border: 0 !important;
  border-left: 3px solid #ed1c24 !important;
  border-radius: 3px !important;
}

.gameco-social.brand-red .game-header .game-code strong { color: #fff !important; }

/* Waiting room */
.gameco-social.brand-red .waiting-room {
  isolation: isolate;
  max-width: 1180px;
  min-height: 570px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 70px);
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background:
    linear-gradient(100deg, rgba(9, 11, 15, .98) 0%, rgba(15, 17, 22, .96) 48%, rgba(54, 5, 9, .84) 100%),
    url('/assets/brand-v2/party-cards.jpg') 78% center / cover no-repeat;
  box-shadow: 0 34px 86px rgba(0, 0, 0, .46);
}

.gameco-social.brand-red .waiting-room::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(122deg, transparent 0 64%, rgba(237, 28, 36, .17) 64% 71%, transparent 71%),
    radial-gradient(circle at 82% 20%, rgba(237, 28, 36, .22), transparent 31%);
}

.gameco-social.brand-red .waiting-room::after {
  content: "★";
  position: absolute;
  z-index: -1;
  right: 5%;
  bottom: -52px;
  color: rgba(237, 28, 36, .08);
  font-size: 250px;
  line-height: 1;
  transform: rotate(-12deg);
}

.gameco-social.brand-red .waiting-room > div:first-child {
  max-width: 760px;
  margin: 0 auto 34px;
}

.gameco-social.brand-red .waiting-room .eyebrow {
  color: #ed1c24;
  font: 800 9px/1 "DM Sans", sans-serif;
  letter-spacing: 4px;
}

.gameco-social.brand-red .waiting-room h1 {
  margin: 10px 0 12px;
  color: #fff;
  font: 700 clamp(38px, 5vw, 64px)/.95 Borda, "DM Sans", sans-serif;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.gameco-social.brand-red .waiting-room p {
  color: #aeb3bc;
  font-size: 14px;
  line-height: 1.55;
}

.gameco-social.brand-red .waiting-room p strong { color: #fff; }

.gameco-social.brand-red .waiting-chair-grid {
  width: min(820px, 100%);
  gap: 12px;
}

.gameco-social.brand-red .waiting-chair {
  min-height: 78px;
  padding: 14px 16px;
  position: relative;
  gap: 13px;
  overflow: hidden;
  color: #9ca2ac;
  background: rgba(15, 18, 23, .9);
  border: 0;
  border-radius: 4px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .24);
}

.gameco-social.brand-red .waiting-chair::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #343942;
}

.gameco-social.brand-red .waiting-chair.occupied {
  color: #fff;
  background: linear-gradient(100deg, rgba(38, 18, 22, .96), rgba(20, 23, 29, .96));
}

.gameco-social.brand-red .waiting-chair.occupied::before { background: #ed1c24; }

.gameco-social.brand-red .waiting-chair .avatar {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border-radius: 3px;
  color: #fff;
  background: linear-gradient(145deg, #f52e36, #b3080e);
}

.gameco-social.brand-red .waiting-chair:not(.occupied) .avatar {
  color: #707681;
  background: #242830;
}

.gameco-social.brand-red .waiting-chair strong {
  color: inherit;
  font: 700 14px "DM Sans", sans-serif;
}

.gameco-social.brand-red .waiting-chair small { color: #858c97; font-size: 10px; }
.gameco-social.brand-red .waiting-chair b { color: #ed1c24; }

.gameco-social.brand-red .waiting-actions { margin-top: 30px; }
.gameco-social.brand-red .waiting-actions .primary-button { min-width: 280px; }

/* Live game table */
.gameco-social.brand-red .game-surface {
  min-height: 650px;
  overflow: hidden;
  border: 0 !important;
  border-radius: 24px !important;
  outline: 0;
  background:
    radial-gradient(ellipse at 50% 52%, rgba(112, 8, 14, .7), rgba(17, 9, 12, .92) 61%, #08090c 100%),
    url('/assets/brand-v2/hero-game-night.jpg') center / cover no-repeat;
  box-shadow: 0 36px 90px rgba(0, 0, 0, .58), inset 0 0 140px rgba(0, 0, 0, .72);
}

.gameco-social.brand-red .game-surface::before {
  width: 62%;
  height: 52%;
  left: 19%;
  top: 25%;
  border: 0 !important;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(237, 28, 36, .08), transparent 68%);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, .25) !important;
}

.gameco-social.brand-red .game-surface::after {
  opacity: .2 !important;
  background:
    linear-gradient(128deg, transparent 0 64%, rgba(237, 28, 36, .12) 64% 70%, transparent 70%),
    radial-gradient(ellipse at center, transparent 48%, rgba(0, 0, 0, .48) 100%);
}

.gameco-social.brand-red .opponent,
.gameco-social.brand-red .you-seat {
  min-width: 132px;
  padding: 8px 11px;
  color: #f2f3f5;
  background: rgba(12, 14, 18, .94) !important;
  border: 0 !important;
  border-radius: 4px !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .48) !important;
}

.gameco-social.brand-red .opponent::before,
.gameco-social.brand-red .you-seat::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #ed1c24;
}

.gameco-social.brand-red .opponent .avatar,
.gameco-social.brand-red .you-seat .avatar {
  border-radius: 3px;
  color: #fff;
  background: #ed1c24;
}

.gameco-social.brand-red .opponent.current,
.gameco-social.brand-red .you-seat.current {
  box-shadow: 0 0 0 2px rgba(237, 28, 36, .45), 0 15px 38px rgba(0, 0, 0, .55) !important;
}

.gameco-social.brand-red .opponent-hand { top: 56px; }

.gameco-social.brand-red .card-back {
  background:
    url('/assets/brand-v2/favicon-192.png') center / 34% no-repeat,
    linear-gradient(135deg, transparent 0 68%, rgba(237, 28, 36, .86) 68% 78%, transparent 78%),
    linear-gradient(145deg, #252931, #0b0d11) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .5), inset 0 0 0 2px rgba(255, 255, 255, .05) !important;
}

.gameco-social.brand-red .card-back i { visibility: hidden; }

.gameco-social.brand-red .game-center {
  inset: 112px 150px 104px;
  min-width: 0;
}

.gameco-social.brand-red .round-chip {
  margin-bottom: 12px;
  padding: 5px 9px;
  color: #fff !important;
  background: #ed1c24;
  border: 0;
  border-radius: 2px;
  font-weight: 800;
}

.gameco-social.brand-red .game-prompt {
  width: min(620px, 100%);
  margin-bottom: 22px;
  padding: 16px 24px;
  color: #fff;
  background: rgba(10, 12, 16, .9);
  border: 0;
  border-left: 4px solid #ed1c24;
  border-radius: 3px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .38);
  font: 700 clamp(15px, 1.6vw, 21px)/1.35 "DM Sans", sans-serif;
  text-shadow: none;
}

.gameco-social.brand-red .response-grid {
  width: min(780px, 100%);
  max-width: none;
  padding: 4px 8px 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  gap: 12px;
  overflow: visible;
}

.gameco-social.brand-red .playing-card.maritime-card {
  color: #17191e !important;
  background: linear-gradient(145deg, #fff, #e8e9eb) !important;
  border: 0 !important;
  border-radius: 7px !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .42), inset 0 0 0 1px rgba(10, 12, 16, .08);
  font-family: "DM Sans", sans-serif;
}

.gameco-social.brand-red .response-card.maritime-card {
  width: 100%;
  min-width: 0;
  height: 132px;
  position: relative;
  background: linear-gradient(145deg, #fff, #e8e9eb) !important;
}

.gameco-social.brand-red .response-card.maritime-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: #ed1c24;
}

.gameco-social.brand-red .response-card .response-copy {
  margin: 31px 16px 14px 19px;
  color: #1d2026;
  font: 700 11px/1.4 "DM Sans", sans-serif;
}

.gameco-social.brand-red .response-card .card-corner-top { color: #ed1c24 !important; }

.gameco-social.brand-red .hand-zone,
.gameco-social.brand-red .game-log {
  border: 0;
  border-radius: 5px;
  background: linear-gradient(145deg, #1a1d23, #101216);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .25);
}

.gameco-social.brand-red .player-hand.responses {
  width: min(980px, 100%);
  margin-inline: auto;
  padding-inline: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  gap: 10px;
  overflow: visible;
}

.gameco-social.brand-red .player-hand.responses .playing-card { margin: 0; }
.gameco-social.brand-red .compass-mark { display: none; }

@media (max-width: 980px) {
  .gameco-social.brand-red .game-surface { min-height: 590px; }
  .gameco-social.brand-red .game-center { inset: 100px 105px 90px; }
  .gameco-social.brand-red .response-grid { grid-template-columns: repeat(2, minmax(130px, 1fr)); }
}

@media (max-width: 650px) {
  .gameco-social.brand-red .waiting-header,
  .gameco-social.brand-red .game-header { padding: 10px; }
  .gameco-social.brand-red .waiting-room {
    min-height: 0;
    padding: 30px 16px;
    background-position: 68% center;
  }
  .gameco-social.brand-red .waiting-room > div:first-child { margin-bottom: 24px; text-align: left; }
  .gameco-social.brand-red .waiting-room h1 { font-size: 40px; }
  .gameco-social.brand-red .waiting-chair-grid { grid-template-columns: 1fr; }
  .gameco-social.brand-red .waiting-actions .primary-button { width: 100%; min-width: 0; }
  .gameco-social.brand-red .game-surface { min-height: 500px !important; border-radius: 14px !important; }
  .gameco-social.brand-red .opponent {
    min-width: 0;
    width: 48px;
    height: 48px;
    padding: 6px;
    justify-content: center;
  }
  .gameco-social.brand-red .opponent .avatar { width: 34px; height: 34px; flex-basis: 34px; }
  .gameco-social.brand-red .opponent-1 { left: 50%; top: 16px; transform: translateX(-50%); }
  .gameco-social.brand-red .opponent-2 { left: 14px; top: 16px; transform: none; }
  .gameco-social.brand-red .opponent-3 { right: 14px; top: 16px; transform: none; }
  .gameco-social.brand-red .game-center { inset: 88px 45px 66px; }
  .gameco-social.brand-red .game-prompt { padding: 12px 14px; }
  .gameco-social.brand-red .response-grid { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gameco-social.brand-red .response-card.maritime-card { height: 112px; }
  .gameco-social.brand-red .response-card .response-copy { margin: 27px 9px 8px 13px; font-size: 9px; }
  .gameco-social.brand-red .player-hand.responses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .gameco-social.brand-red .game-center { inset-inline: 38px; }
  .gameco-social.brand-red .response-card.maritime-card { height: 104px; }
}
