/* [project]/app/globals.css [app-client] (css) */
:root {
  --background: #0f0f0f;
  --sidebar-bg: #1c1c1c;
  --chat-bg: #222;
  --item-hover: #2a2a2a;
  --text-primary: #eef1f5;
  --text-secondary: #aaa;
  --accent-color: #6c5ce7;
  --message-out: #6c5ce7;
  --message-in: #222;
  --border-color: #333;
}

body {
  background-color: var(--background);
  color: var(--text-primary);
  height: 100vh;
  margin: 0;
  font-family: Inter, sans-serif;
}

.app-container {
  width: 100vw;
  height: 100vh;
  display: flex;
}

.sidebar-left, .sidebar-right {
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--border-color);
  flex-direction: column;
  flex-shrink: 0;
  width: 320px;
  transition: width .3s;
  display: flex;
}

.sidebar-left.collapsed {
  width: 80px;
}

.sidebar-right {
  border-right: none;
  border-left: 1px solid var(--border-color);
}

.chat-area {
  background-color: #000;
  background-image: linear-gradient(#222 1px, #0000 1px), linear-gradient(90deg, #222 1px, #0000 1px);
  background-position: center;
  background-size: 40px 40px;
  flex-direction: column;
  flex: 1;
  display: flex;
  position: relative;
}

.sidebar-header {
  border-bottom: 1px solid var(--border-color);
  padding: 16px;
}

.search-bar {
  color: var(--text-secondary);
  background-color: #2c2c2c;
  border-radius: 8px;
  align-items: center;
  padding: 8px 12px;
  display: flex;
}

.search-input {
  color: #fff;
  background: none;
  border: none;
  outline: none;
  width: 100%;
  margin-left: 8px;
}

.list-container {
  flex: 1;
  overflow-y: auto;
}

.list-item {
  cursor: pointer;
  align-items: center;
  padding: 12px 16px;
  transition: background-color .2s;
  display: flex;
}

.list-item:hover {
  background-color: var(--item-hover);
}

.list-item.active {
  border-left: 3px solid var(--accent-color);
  background-color: #6c5ce726;
}

.avatar {
  object-fit: cover;
  background-color: #444;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  margin-right: 12px;
}

.item-info {
  flex: 1;
  min-width: 0;
}

.item-top {
  justify-content: space-between;
  margin-bottom: 4px;
  display: flex;
}

.item-name {
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 600;
  overflow: hidden;
}

.item-time {
  color: var(--text-secondary);
  font-size: 12px;
}

.item-subtitle {
  color: var(--text-secondary);
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  overflow: hidden;
}

.badge {
  background-color: var(--accent-color);
  color: #fff;
  text-align: center;
  border-radius: 10px;
  min-width: 18px;
  margin-left: 8px;
  padding: 2px 6px;
  font-size: 10px;
}

.chat-header {
  background-color: var(--sidebar-bg);
  border-bottom: 1px solid var(--border-color);
  justify-content: space-between;
  align-items: center;
  height: 60px;
  padding: 0 20px;
  display: flex;
}

.messages-list {
  flex-direction: column;
  flex: 1;
  gap: 12px;
  padding: 20px;
  display: flex;
  overflow-y: auto;
}

.message {
  word-wrap: break-word;
  border-radius: 12px;
  max-width: 60%;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
}

.message.sent {
  background-color: var(--message-out);
  color: #fff;
  border-bottom-right-radius: 2px;
  align-self: flex-end;
}

.message.received {
  background-color: var(--message-in);
  color: var(--text-primary);
  border-bottom-left-radius: 2px;
  align-self: flex-start;
}

.message-time {
  opacity: .7;
  text-align: right;
  margin-top: 4px;
  font-size: 10px;
  display: block;
}

.chat-input-area {
  background-color: var(--sidebar-bg);
  border-top: 1px solid var(--border-color);
  align-items: center;
  gap: 12px;
  padding: 16px;
  display: flex;
}

.input-field {
  color: #fff;
  background-color: #2c2c2c;
  border: none;
  border-radius: 20px;
  outline: none;
  flex: 1;
  padding: 10px 16px;
}

.icon-btn {
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border: none;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  transition: color .2s;
  display: flex;
}

.icon-btn:hover {
  color: var(--accent-color);
}

.game-room-status {
  color: #4cd137;
  font-size: 11px;
}

.game-lobby {
  background-color: #1a1a1a;
  flex-direction: column;
  flex: 1;
  padding: 20px;
  display: flex;
  position: relative;
  overflow-y: auto;
}

.lobby-header {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  display: flex;
}

.lobby-title {
  color: #fff;
  text-shadow: 0 0 20px #6c5ce766;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
  display: flex;
}

.icon-glow {
  color: var(--accent-color);
  filter: drop-shadow(0 0 5px var(--accent-color));
}

.lobby-filters {
  gap: 10px;
  display: flex;
}

.filter-btn {
  color: #aaa;
  cursor: pointer;
  background: #333;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  transition: all .3s;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--accent-color);
  color: #fff;
}

.games-grid {
  flex-direction: column;
  gap: 12px;
  display: flex;
}

.game-card {
  background: #252525;
  border: 1px solid #333;
  border-radius: 12px;
  flex-direction: row;
  align-items: center;
  height: 90px;
  padding: 12px;
  transition: transform .2s, background .2s;
  display: flex;
  overflow: hidden;
}

.game-card:hover {
  border-color: var(--accent-color);
  background: #2a2a2a;
  transform: translateX(5px);
}

.game-card-image {
  background: #303030;
  border-radius: 8px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 66px;
  height: 66px;
  margin-right: 16px;
  padding: 10px;
  display: flex;
  position: relative;
}

.game-card-image img {
  object-fit: contain;
  filter: drop-shadow(0 2px 4px #0000004d);
  width: 40px;
  height: 40px;
}

.game-status {
  color: #4cd137;
  background: #1a1a1a;
  border: 1px solid #4cd137;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 9px;
  position: absolute;
  top: -4px;
  right: -4px;
}

.game-card-info {
  flex-direction: row;
  flex: 1;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 0;
  display: flex;
}

.game-card-info h3 {
  color: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
  width: 200px;
  margin: 0;
  font-size: 16px;
  overflow: hidden;
}

.game-stats {
  color: #888;
  gap: 20px;
  font-size: 13px;
  display: flex;
}

.stat {
  align-items: center;
  gap: 4px;
  display: flex;
}

.stat.gold {
  color: gold;
}

.play-btn {
  color: #ccc;
  cursor: pointer;
  background: none;
  border: 1px solid #444;
  border-radius: 20px;
  margin-top: 0;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  transition: all .2s;
}

.play-btn:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

.chat-popup-container {
  background-color: var(--sidebar-bg);
  border: 1px solid var(--border-color);
  z-index: 1000;
  border-radius: 12px;
  flex-direction: column;
  width: 400px;
  height: 600px;
  animation: .3s ease-out slideUp;
  display: flex;
  position: absolute;
  bottom: 20px;
  right: 30px;
  overflow: hidden;
  box-shadow: 0 8px 30px #00000080;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-popup-header-controls {
  color: #aaa;
  z-index: 10;
  background-color: #252525;
  border-bottom: 1px solid #333;
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
  display: flex;
}

.chat-popup-container .chat-area {
  border-radius: 0 0 12px 12px;
  height: 100%;
  min-height: 0;
}

.packet-card-overlay {
  z-index: 10;
  background: #d63031;
  border: 2px solid #fdcb6e;
  border-radius: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
}

.packet-top-curve {
  z-index: 1;
  background: #e17055;
  border-radius: 50%;
  width: 150%;
  height: 60px;
  position: absolute;
  top: -20px;
}

.packet-open-btn {
  color: #d63031;
  z-index: 5;
  background: #ffeaa7;
  border: 2px solid #fdcb6e;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  box-shadow: 0 4px 6px #0003;
}

.packet-animating .packet-open-btn {
  animation: .6s linear infinite coinSpin;
}

@keyframes coinSpin {
  0% {
    transform: rotateY(0);
  }

  100% {
    transform: rotateY(360deg);
  }
}

@keyframes goldPulse {
  0% {
    border-color: gold;
    box-shadow: 0 0 5px gold;
  }

  50% {
    border-color: #ffeaa7;
    box-shadow: 0 0 20px gold, 0 0 10px #e17055;
  }

  100% {
    border-color: gold;
    box-shadow: 0 0 5px gold;
  }
}

@keyframes rainbowText {
  0% {
    color: red;
  }

  20% {
    color: #ff9a00;
  }

  40% {
    color: #d0de21;
  }

  60% {
    color: #4fd125;
  }

  80% {
    color: #00c0ff;
  }

  100% {
    color: #9000ff;
  }
}

.special-hand-card {
  animation: 1.5s infinite goldPulse;
  background: linear-gradient(#fff, #fffbf0) !important;
  border: 2px solid gold !important;
}

.special-hand-label {
  text-shadow: 0 1px 2px #0000004d;
  border-radius: 10px;
  font-weight: bold;
  color: #fff !important;
  background: linear-gradient(90deg, #fdcb6e, #e17055) !important;
  padding: 4px 10px !important;
}

.super-special-text {
  animation: .5s linear infinite rainbowText;
  font-size: 16px !important;
  font-weight: 800 !important;
}

.active-game-room {
  background-color: #0f0f0f;
  flex-direction: column;
  flex: 1;
  height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
}

.game-room-header {
  z-index: 10;
  background-color: #1a1a1a;
  border-bottom: 1px solid #333;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  padding: 0 20px;
  display: flex;
}

.game-room-title {
  color: #fff;
  font-size: 18px;
  font-weight: bold;
}

.chip-balance {
  color: #fff;
  background: #252525;
  border: 1px solid gold;
  border-radius: 20px;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 14px;
  display: flex;
}

.game-table-area {
  perspective: 1000px;
  background-image: radial-gradient(circle, #2c3e50 0%, #1a1a1a 100%);
  flex: 1;
  justify-content: center;
  align-items: center;
  display: flex;
  position: relative;
}

.poker-table {
  background-color: #27ae60;
  border: 15px solid #5d4037;
  border-radius: 200px;
  justify-content: center;
  align-items: center;
  width: 80%;
  height: 60%;
  display: flex;
  position: relative;
  box-shadow: 0 20px 50px #00000080, inset 0 0 100px #0009;
}

.table-center-label {
  text-align: center;
  color: #fff3;
  transform: rotateX(20deg);
}

.player-seat {
  flex-direction: column;
  align-items: center;
  gap: 5px;
  display: flex;
  position: absolute;
}

.seat-avatar {
  color: #fff;
  background: #333;
  border: 2px solid #aaa;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  font-weight: bold;
  display: flex;
}

.seat-avatar.me {
  background: var(--accent-color);
  border-color: #fff;
}

.seat-name {
  color: #fff;
  background: #0009;
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 12px;
}

.seat-1 {
  top: -40px;
  left: 20%;
}

.seat-2 {
  top: -40px;
  right: 20%;
}

.seat-3 {
  bottom: 40%;
  right: -60px;
}

.seat-4 {
  bottom: 40%;
  left: -60px;
}

.seat-5 {
  bottom: -40px;
  right: 20%;
}

.seat-user {
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
}

.game-controls {
  background: #1a1a1a;
  border-top: 1px solid #333;
  justify-content: center;
  align-items: center;
  gap: 20px;
  height: 80px;
  display: flex;
}

.game-btn {
  color: #fff;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  padding: 10px 30px;
  font-size: 16px;
  font-weight: bold;
  transition: transform .1s;
}

.game-btn:active {
  transform: scale(.95);
}

.game-btn.fold {
  background: #e74c3c;
}

.game-btn.check {
  background: #f39c12;
}

.game-btn.raise {
  background: #2ecc71;
}

.mobile-bottom-nav {
  background-color: var(--sidebar-bg);
  border-top: 1px solid var(--border-color);
  z-index: 1000;
  width: 100%;
  height: 60px;
  padding-bottom: env(safe-area-inset-bottom);
  justify-content: space-around;
  align-items: center;
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
}

.mobile-nav-item {
  color: var(--text-secondary);
  background: none;
  border: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  font-size: 10px;
  display: flex;
}

.mobile-nav-item.active {
  color: var(--accent-color);
}

.mobile-nav-icon {
  font-size: 20px;
}

.mobile-header-title {
  display: none;
}

@media (max-width: 768px) {
  .app-container {
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
  }

  .mobile-hidden {
    display: none !important;
  }

  .mobile-visible-block {
    display: block !important;
  }

  .mobile-visible-flex {
    display: flex !important;
  }

  .sidebar-left, .sidebar-right {
    border-right: none;
    flex: 1;
    width: 100%;
    padding-bottom: 60px;
    overflow: hidden;
  }

  .game-lobby {
    width: 100%;
    padding: 16px 16px 76px;
  }

  .lobby-title {
    font-size: 20px;
  }

  .game-card {
    height: auto;
    min-height: 80px;
  }

  .game-card-image {
    width: 50px;
    height: 50px;
    margin-right: 12px;
  }

  .game-card-image img {
    width: 30px;
    height: 30px;
  }

  .game-card-info h3 {
    width: auto;
    font-size: 15px;
  }

  .game-stats {
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
  }

  .play-btn {
    padding: 6px 14px;
    font-size: 12px;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .chat-popup-container {
    z-index: 2000;
    border-radius: 0;
    width: 100%;
    height: 100%;
    inset: 0;
  }

  .chat-popup-header-controls {
    height: 50px;
    padding: 0 16px;
  }

  .active-game-room {
    z-index: 100;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
  }

  .poker-table {
    border-width: 8px;
    width: 280px;
    height: 160px;
  }

  .game-table-area {
    width: 100%;
    overflow: hidden;
  }

  .seat-avatar {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .seat-name {
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 60px;
    padding: 1px 6px;
    font-size: 10px;
    overflow: hidden;
  }

  .seat-1 {
    top: -45px;
    left: 10%;
  }

  .seat-2 {
    top: -45px;
    right: 10%;
  }

  .seat-3 {
    bottom: 35%;
    right: -40px;
  }

  .seat-4 {
    bottom: 35%;
    left: -40px;
  }

  .seat-5 {
    bottom: -45px;
    right: 10%;
  }

  .seat-user {
    bottom: -50px;
  }

  .game-controls {
    flex-wrap: wrap;
    gap: 10px;
    height: auto;
    min-height: 70px;
    padding: 10px;
  }

  .game-btn {
    flex: 1;
    padding: 8px 16px;
    font-size: 14px;
  }

  .game-room-header {
    gap: 8px;
    padding: 0 10px;
  }

  .game-room-header .icon-btn span, .game-room-header button span, .game-room-header .chip-balance span {
    display: none;
  }

  .game-room-title {
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 80px;
    font-size: 14px;
    overflow: hidden;
  }

  .game-room-header .chip-balance {
    padding: 4px 8px;
  }
}

/*# sourceMappingURL=app_globals_71f961d1.css.map*/