:root {
    --bg: #0b1220;
    --panel: #111a2e;
    --panel2: #16213a;
    --line: rgba(148, 163, 184, 0.18);
    --text: #eef2ff;
    --muted: #9fb0cf;
    --green: #22c55e;
    --blue: #3b82f6;
    --yellow: #f59e0b;
    --red: #ef4444;
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, #13294f 0%, transparent 25%),
        radial-gradient(circle at top right, #0c2244 0%, transparent 22%),
        linear-gradient(180deg, #0a1120, #0b1220 50%, #0b1220);
}

.app {
    max-width: 1380px;
    margin: 0 auto;
    padding: 14px;
}

.brand {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 0.3px;
}

.brand span {
    color: var(--yellow);
}

.small-brand {
    font-size: 26px;
    margin-bottom: 6px;
}

.layout {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 16px;
}

.single-layout {
    grid-template-columns: 1fr;
}

.right-col {
    display: grid;
    gap: 14px;
}

.panel {
    background: rgba(17, 26, 46, 0.95);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    overflow: hidden;
    backdrop-filter: blur(6px);
}

.panel-head {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.panel-body {
    padding: 14px 16px;
}

.panel-mini {
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
}

.muted {
    color: var(--muted);
}

button {
    border: 0;
    border-radius: 14px;
    padding: 10px 14px;
    cursor: pointer;
    color: #fff;
    background: #263654;
    transition: 0.16s ease;
    font: inherit;
}

button:hover {
    transform: translateY(-1px);
}

button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.btn-green {
    background: var(--green);
    color: #072812;
    font-weight: 800;
}

.btn-blue {
    background: var(--blue);
    font-weight: 800;
}

.btn-yellow {
    background: var(--yellow);
    color: #1f2937;
    font-weight: 800;
}

.btn-red {
    background: var(--red);
    font-weight: 800;
}

.identity input,
.table-create input,
.identity-card input {
    width: 100%;
    background: #0b1630;
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 14px;
    padding: 12px 14px;
    outline: none;
}

.identity-card input {
    margin-bottom: 10px;
}

.wide-btn {
    width: 100%;
}

.lobby-list {
    display: grid;
    gap: 12px;
}

.table-card,
.score-card {
    background: #0c1730;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px;
    backdrop-filter: blur(6px);
}

.table-title {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #152340;
    color: #d4e0f7;
    font-size: 12px;
    margin: 4px 6px 0 0;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.seat-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.score-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.score-card {
    min-height: 96px;
}

.score-name {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 4px;
}

.score-meta {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.45;
}

.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
    margin-left: 6px;
}

.online {
    background: #07361b;
    color: #86efac;
}

.offline {
    background: #3a1111;
    color: #fda4af;
}

.ready {
    background: #172554;
    color: #93c5fd;
}

.turn {
    background: #3b2405;
    color: #fdba74;
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1.3fr 400px;
    gap: 16px;
    margin-bottom: 14px;
}

.hero-left,
.hero-right {
    background: rgba(17, 26, 46, 0.95);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

.hero-left {
    padding: 24px;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 28%),
        radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.12), transparent 24%),
        rgba(17, 26, 46, 0.95);
}

.hero-right {
    padding: 20px;
    display: flex;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.14);
    color: #bfdbfe;
    font-size: 13px;
    font-weight: 800;
    border: 1px solid rgba(59, 130, 246, 0.22);
    margin-bottom: 14px;
}

.hero-title {
    margin: 0 0 12px;
    font-size: 40px;
    line-height: 1.05;
    font-weight: 900;
}

.hero-title span {
    color: var(--yellow);
}

.hero-text {
    margin: 0;
    max-width: 700px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 14px;
}

.stat-label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 800;
}

.stat-value {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
}

.identity-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 20px;
}

.identity-title {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 8px;
}

.identity-subtitle {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 16px;
}

/* Game page */
.game-page-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.game-page-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Board shell */
.board-shell {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.1), transparent 22%),
        radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.18), transparent 26%),
        linear-gradient(180deg, #7a4a24, #4b2b14);
    border-radius: 28px;
    padding: 14px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.board-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.board-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 12px;
    color: #fff;
}

.board-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
}

.board-scroll::-webkit-scrollbar {
    height: 10px;
}

.board-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}
.board-fit {
  width: 100%;
  position: relative;
  transform-origin: top left;
}

.board-scroll.fit-mobile {
  overflow: hidden;
}

.board {
    display: grid;
    grid-template-columns: 1fr 96px 1fr;
    gap: 12px;
    background: linear-gradient(180deg, #8a552a, #5b3418 48%, #472812);
    border-radius: 24px;
    padding: 14px;
    min-height: 660px;
    min-width: 900px;
    position: relative;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.08),
        inset 0 -18px 28px rgba(0, 0, 0, 0.16);
}

.half {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
}

.row {
    display: grid;
    grid-template-columns: repeat(6, minmax(64px, 1fr));
    gap: 8px;
    align-items: stretch;
}

.bar-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(180deg, #3a2211, #2a170b);
    border-radius: 18px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -8px 16px rgba(0, 0, 0, 0.18);
}

.bar-box,
.off-box {
    width: 100%;
    min-height: 120px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.mini-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #f3f4f6;
    text-transform: uppercase;
}

.point {
    position: relative;
    min-height: 160px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.06));
    cursor: pointer;
    transition: 0.16s ease;
}

.point:hover {
    transform: translateY(-1px);
}

.point.top::before,
.point.bottom::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 28px solid transparent;
    border-right: 28px solid transparent;
    filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.18));
}

.point.top::before {
    top: 0;
}

.point.bottom::before {
    bottom: 0;
}

.point.top:nth-child(odd)::before {
    border-top: 138px solid #e2c18f;
}

.point.top:nth-child(even)::before {
    border-top: 138px solid #6a3b1f;
}

.point.bottom:nth-child(odd)::before {
    border-bottom: 138px solid #6a3b1f;
}

.point.bottom:nth-child(even)::before {
    border-bottom: 138px solid #e2c18f;
}

.point.valid {
    outline: 3px solid #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.22), inset 0 0 18px rgba(34, 197, 94, 0.14);
}

.point.selected {
    outline: 3px solid #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.24), inset 0 0 18px rgba(59, 130, 246, 0.14);
}

.point-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 4px;
    gap: 4px;
}

.point.bottom .point-content {
    justify-content: flex-end;
}

.point-label {
    position: absolute;
    z-index: 3;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 900;
    color: #fff;
    background: rgba(0, 0, 0, 0.34);
    padding: 3px 8px;
    border-radius: 999px;
    letter-spacing: 0.2px;
}

.point.top .point-label {
    bottom: 7px;
}

.point.bottom .point-label {
    top: 7px;
}

.checker {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.24);
    box-shadow:
        0 8px 14px rgba(0, 0, 0, 0.24),
        inset 0 2px 2px rgba(255, 255, 255, 0.35),
        inset 0 -8px 12px rgba(0, 0, 0, 0.1);
    flex: 0 0 auto;
}

.checker.white {
    background: radial-gradient(circle at 30% 28%, #ffffff 0%, #f8fafc 38%, #d7dde6 72%, #c7d0db 100%);
}

.checker.black {
    background: radial-gradient(circle at 30% 28%, #5e6877 0%, #2f3948 40%, #141b26 76%, #0b1018 100%);
    border-color: rgba(255, 255, 255, 0.08);
}

.checker-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.checker-count {
    font-size: 11px;
    font-weight: 900;
    color: #fff;
    background: rgba(0, 0, 0, 0.42);
    border-radius: 999px;
    padding: 3px 8px;
    min-width: 28px;
    text-align: center;
}

.dice-box {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    min-height: 40px;
}

.die {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: radial-gradient(circle at 30% 28%, #ffffff 0%, #eef2f7 65%, #dfe6ef 100%);
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 17px;
    box-shadow:
        0 8px 14px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(17, 24, 39, 0.08);
}

.die.used {
    opacity: 0.38;
    transform: scale(0.95);
}

.dice-empty {
    color: #e5e7eb;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 7px 12px;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.controls button {
    min-width: 110px;
}

.status-line {
    margin-top: 10px;
    color: #f3f4f6;
    font-size: 13px;
}

.history {
    margin-top: 12px;
    background: rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px;
    max-height: 160px;
    overflow: auto;
    backdrop-filter: blur(4px);
}

.history-item {
    font-size: 12px;
    color: #e5e7eb;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Responsive */
@media (max-width: 1200px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 34px;
    }

    .score-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .app {
        padding: 12px;
    }

    .board {
        min-width: 860px;
        min-height: 620px;
    }

    .score-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
  .hero-left,
  .hero-right {
    border-radius: 20px;
  }

  .hero-left {
    padding: 16px;
  }

  .hero-right {
    padding: 14px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-text {
    font-size: 14px;
    line-height: 1.6;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .game-page-actions {
    width: 100%;
  }

  .game-page-actions button {
    flex: 1 1 calc(50% - 8px);
  }

  .small-brand {
    font-size: 20px;
  }

  .score-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .score-card {
    min-height: 82px;
    padding: 10px;
  }

  .score-name {
    font-size: 14px;
  }

  .score-meta {
    font-size: 11px;
  }

  .board-shell {
    padding: 10px;
    border-radius: 20px;
  }

  .board {
  min-width: 900px;
  min-height: 660px;
  padding: 14px;
  gap: 12px;
  border-radius: 24px;
  grid-template-columns: 1fr 96px 1fr;
}

  .half {
    gap: 8px;
  }

  .row {
    grid-template-columns: repeat(6, minmax(48px, 1fr));
    gap: 5px;
  }

  .point {
    min-height: 112px;
    border-radius: 10px;
  }

  .point.top::before,
  .point.bottom::before {
    border-left-width: 20px;
    border-right-width: 20px;
  }

  .point.top:nth-child(odd)::before,
  .point.top:nth-child(even)::before {
    border-top-width: 96px;
  }

  .point.bottom:nth-child(odd)::before,
  .point.bottom:nth-child(even)::before {
    border-bottom-width: 96px;
  }

  .point-label {
    font-size: 9px;
    padding: 2px 6px;
  }

  .checker {
    width: 28px;
    height: 28px;
  }

  .checker-stack {
    gap: 2px;
  }

  .checker-count {
    font-size: 10px;
    padding: 2px 6px;
    min-width: 22px;
  }

  .bar-area {
    gap: 8px;
    padding: 8px;
    border-radius: 14px;
  }

  .bar-box,
  .off-box {
    min-height: 92px;
    padding: 6px;
    border-radius: 10px;
  }

  .mini-title {
    font-size: 10px;
  }

  .pill {
    font-size: 11px;
    padding: 6px 9px;
  }

  .die {
    width: 34px;
    height: 34px;
    font-size: 14px;
    border-radius: 10px;
  }

  .controls {
    gap: 6px;
    margin-top: 10px;
  }

  .controls button {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    padding: 9px 10px;
    font-size: 13px;
  }

  .status-line {
    font-size: 12px;
  }

  .history {
    max-height: 130px;
    padding: 10px;
  }

  .history-item {
    font-size: 11px;
  }
}
@media (max-width: 480px) {
  .app {
    padding: 10px;
  }

  .brand {
    font-size: 22px;
  }

  .panel-head {
    padding: 12px 13px;
  }

  .panel-body {
    padding: 12px 13px;
  }

  .hero-title {
    font-size: 21px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 8px;
  }

  .hero-actions button,
  .game-page-actions button,
  .controls button {
    width: 100%;
  }

  .lux-topbar-inner {
    padding: 10px 12px;
  }

  .lux-logo-mark {
    width: 34px;
    height: 34px;
    font-size: 17px;
    border-radius: 10px;
  }

  .lux-logo-title {
    font-size: 14px;
  }

  .lux-logo-sub {
    font-size: 10px;
  }

  .lux-link-chip {
    font-size: 10px;
    padding: 5px 8px;
  }

  .board {
  min-width: 900px;
  min-height: 660px;
}

  .row {
    grid-template-columns: repeat(6, minmax(42px, 1fr));
    gap: 4px;
  }

  .point {
    min-height: 96px;
  }

  .point.top::before,
  .point.bottom::before {
    border-left-width: 16px;
    border-right-width: 16px;
  }

  .point.top:nth-child(odd)::before,
  .point.top:nth-child(even)::before {
    border-top-width: 82px;
  }

  .point.bottom:nth-child(odd)::before,
  .point.bottom:nth-child(even)::before {
    border-bottom-width: 82px;
  }

  .checker {
    width: 24px;
    height: 24px;
    border-width: 1px;
  }

  .bar-box,
  .off-box {
    min-height: 78px;
  }

  .die {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .score-card {
    min-height: 74px;
    padding: 9px;
  }

  .score-name {
    font-size: 13px;
  }

  .score-meta {
    font-size: 10px;
  }

  .lux-footer-inner {
    padding: 12px;
    border-radius: 18px;
  }

  .lux-footer-title {
    font-size: 16px;
  }

  .lux-footer-text {
    font-size: 12px;
  }

  .lux-footer-box strong {
    font-size: 18px;
  }
}
:root {
  --gold-1: #f7d774;
  --gold-2: #d4a93a;
  --gold-3: #b8860b;
  --gold-4: #7a5a12;
  --gold-soft: rgba(247, 215, 116, 0.16);
  --gold-line: rgba(247, 215, 116, 0.28);
}

body {
  background:
    radial-gradient(circle at top left, rgba(212,169,58,0.18) 0%, transparent 22%),
    radial-gradient(circle at top right, rgba(247,215,116,0.10) 0%, transparent 18%),
    linear-gradient(180deg, #08101d, #0a1220 55%, #0a1220);
}

.panel,
.hero-left,
.hero-right {
  border-color: rgba(247, 215, 116, 0.10);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(247, 215, 116, 0.04);
}

.brand span,
.hero-title span,
.small-brand span {
  color: var(--gold-1);
  text-shadow: 0 0 18px rgba(247, 215, 116, 0.18);
}

.hero-badge {
  background: linear-gradient(135deg, rgba(247,215,116,0.14), rgba(212,169,58,0.10));
  color: #f9e7aa;
  border-color: rgba(247,215,116,0.20);
}

.hero-left {
  background:
    radial-gradient(circle at top right, rgba(247,215,116,0.12), transparent 26%),
    radial-gradient(circle at bottom left, rgba(212,169,58,0.10), transparent 24%),
    rgba(17, 26, 46, 0.95);
}

.stat-card,
.identity-card,
.table-card,
.score-card {
  border-color: rgba(247,215,116,0.08);
  box-shadow: inset 0 1px 0 rgba(247,215,116,0.04);
}

.identity-card input,
.identity input,
.table-create input {
  border-color: rgba(247,215,116,0.12);
  box-shadow: inset 0 1px 0 rgba(247,215,116,0.03);
}

.identity-card input:focus,
.identity input:focus,
.table-create input:focus {
  border-color: rgba(247,215,116,0.35);
  box-shadow: 0 0 0 3px rgba(247,215,116,0.10);
}

.btn-blue {
  background: linear-gradient(135deg, #c89a2b, #f0c85f);
  color: #2d2207;
}

.btn-blue:hover {
  box-shadow: 0 8px 18px rgba(212,169,58,0.24);
}

.btn-yellow {
  background: linear-gradient(135deg, #f7d774, #d4a93a);
  color: #2d2207;
}

.btn-green {
  background: linear-gradient(135deg, #e0b84d, #b8860b);
  color: #241a06;
}

.btn-red {
  background: linear-gradient(135deg, #9b1c1c, #dc2626);
}

.badge.ready {
  background: linear-gradient(135deg, #7a5a12, #c89a2b);
  color: #fff4cc;
}

.badge.turn {
  background: linear-gradient(135deg, #f7d774, #b8860b);
  color: #2e2206;
}

.online {
  background: #07361b;
  color: #86efac;
}

.offline {
  background: #3a1111;
  color: #fda4af;
}

.chip,
.pill,
.point-label,
.checker-count,
.dice-empty {
  border-color: rgba(247,215,116,0.12);
}

.chip {
  background: linear-gradient(135deg, rgba(247,215,116,0.10), rgba(255,255,255,0.03));
  color: #f6e7bc;
}

.pill {
  background: linear-gradient(135deg, rgba(247,215,116,0.10), rgba(0,0,0,0.14));
  color: #fff5d0;
}

.board-shell {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.08), transparent 22%),
    radial-gradient(circle at bottom right, rgba(0,0,0,0.18), transparent 28%),
    linear-gradient(180deg, #8b5a21, #5a3412);
  border-color: rgba(247,215,116,0.18);
  box-shadow:
    0 20px 40px rgba(0,0,0,0.34),
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 0 0 1px rgba(247,215,116,0.06);
}

.board {
  background:
    linear-gradient(180deg, #9a6328, #6a3d14 48%, #4d2a0f);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.08),
    inset 0 -18px 28px rgba(0,0,0,0.16),
    0 0 24px rgba(212,169,58,0.08);
}

.bar-area {
  background: linear-gradient(180deg, #4a2a10, #2e1809);
  border-color: rgba(247,215,116,0.14);
}

.bar-box,
.off-box {
  border-color: rgba(247,215,116,0.10);
}

.point {
  border-color: rgba(247,215,116,0.08);
}

.point.top:nth-child(odd)::before {
  border-top-color: #f0d49b;
}
.point.top:nth-child(even)::before {
  border-top-color: #7b451d;
}
.point.bottom:nth-child(odd)::before {
  border-bottom-color: #7b451d;
}
.point.bottom:nth-child(even)::before {
  border-bottom-color: #f0d49b;
}

.point.valid {
  outline: 3px solid #f7d774;
  box-shadow:
    0 0 0 4px rgba(247,215,116,0.22),
    inset 0 0 18px rgba(247,215,116,0.12);
}

.point.selected {
  outline: 3px solid #d4a93a;
  box-shadow:
    0 0 0 4px rgba(212,169,58,0.24),
    inset 0 0 18px rgba(212,169,58,0.14);
}

.die {
  background: radial-gradient(circle at 30% 28%, #fff7dd 0%, #f6e5b5 65%, #d9b65d 100%);
  color: #3a2a09;
  border-color: rgba(122,90,18,0.14);
}

.history {
  border-color: rgba(247,215,116,0.10);
}

.panel-head,
.table-title,
.identity-title,
.score-name,
.mini-title {
  color: #fff4cf;
}
button {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.hero-title,
.brand,
.small-brand {
  letter-spacing: 0.2px;
}
.lux-topbar {
  margin-bottom: 14px;
}

.lux-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(247,215,116,0.10), rgba(255,255,255,0.03));
  border: 1px solid rgba(247,215,116,0.18);
  box-shadow:
    0 10px 24px rgba(0,0,0,0.20),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.lux-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lux-logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #2f2206;
  background: linear-gradient(135deg, #f7d774, #c89a2b);
  box-shadow:
    0 8px 18px rgba(212,169,58,0.28),
    inset 0 1px 0 rgba(255,255,255,0.35);
}

.lux-logo-title {
  font-size: 18px;
  font-weight: 900;
  color: #fff3ca;
  line-height: 1.1;
}

.lux-logo-sub {
  font-size: 12px;
  color: #d7c48c;
  margin-top: 2px;
}

.lux-top-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lux-link-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(247,215,116,0.16);
  color: #f6e7bc;
  font-size: 12px;
  font-weight: 700;
}

.lux-footer {
  margin-top: 18px;
}

.lux-footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(247,215,116,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(247,215,116,0.14);
  box-shadow:
    0 12px 28px rgba(0,0,0,0.20),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.lux-footer-title {
  font-size: 20px;
  font-weight: 900;
  color: #fff2c4;
  margin-bottom: 8px;
}

.lux-footer-text {
  color: #cbb987;
  font-size: 14px;
  line-height: 1.6;
  max-width: 640px;
}

.lux-footer-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.lux-footer-box {
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(247,215,116,0.10);
}

.lux-footer-box span {
  display: block;
  font-size: 12px;
  color: #cbb987;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .4px;
  font-weight: 700;
}

.lux-footer-box strong {
  font-size: 22px;
  color: #fff4cf;
  font-weight: 900;
}

@media (max-width: 900px) {
  .lux-footer-inner {
    grid-template-columns: 1fr;
  }

  .lux-footer-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .lux-topbar-inner {
    padding: 12px;
  }

  .lux-logo-mark {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .lux-logo-title {
    font-size: 16px;
  }

  .lux-footer-inner {
    padding: 14px;
    border-radius: 20px;
  }

  .lux-footer-title {
    font-size: 18px;
  }
}
.dice-box.rolling .die {
  animation: diceRollSpin 0.6s ease;
}

@keyframes diceRollSpin {
  0% {
    transform: rotate(0deg) scale(0.85);
    opacity: 0.4;
  }
  25% {
    transform: rotate(90deg) scale(1.05);
    opacity: 0.7;
  }
  50% {
    transform: rotate(180deg) scale(0.9);
    opacity: 1;
  }
  75% {
    transform: rotate(270deg) scale(1.04);
    opacity: 0.85;
  }
  100% {
    transform: rotate(360deg) scale(1);
    opacity: 1;
  }
}
.real-die {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(145deg, #fffdf7, #f3e7bf);
  border: 1px solid rgba(122, 90, 18, 0.18);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -3px 8px rgba(0, 0, 0, 0.08);
}

.real-die.used {
  opacity: 0.38;
  transform: scale(0.95);
}

.real-die .pip {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2c1f07;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

.real-die .pip-1 { top: 8px; left: 8px; }
.real-die .pip-2 { top: 8px; left: 50%; transform: translateX(-50%); }
.real-die .pip-3 { top: 8px; right: 8px; }

.real-die .pip-4 { top: 50%; left: 8px; transform: translateY(-50%); }
.real-die .pip-5 { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.real-die .pip-6 { top: 50%; right: 8px; transform: translateY(-50%); }

.real-die .pip-7 { bottom: 8px; left: 8px; }
.real-die .pip-8 { bottom: 8px; left: 50%; transform: translateX(-50%); }
.real-die .pip-9 { bottom: 8px; right: 8px; }

.dice-box.rolling .real-die {
  animation: diceRollSpin 0.6s ease;
}
@media (max-width: 700px) {
  .real-die {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .real-die .pip {
    width: 6px;
    height: 6px;
  }

  .real-die .pip-1,
  .real-die .pip-4,
  .real-die .pip-7 { left: 6px; }

  .real-die .pip-3,
  .real-die .pip-6,
  .real-die .pip-9 { right: 6px; }

  .real-die .pip-1,
  .real-die .pip-2,
  .real-die .pip-3 { top: 6px; }

  .real-die .pip-7,
  .real-die .pip-8,
  .real-die .pip-9 { bottom: 6px; }
}

@media (max-width: 480px) {
  .real-die {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .real-die .pip {
    width: 5px;
    height: 5px;
  }

  .real-die .pip-1,
  .real-die .pip-4,
  .real-die .pip-7 { left: 5px; }

  .real-die .pip-3,
  .real-die .pip-6,
  .real-die .pip-9 { right: 5px; }

  .real-die .pip-1,
  .real-die .pip-2,
  .real-die .pip-3 { top: 5px; }

  .real-die .pip-7,
  .real-die .pip-8,
  .real-die .pip-9 { bottom: 5px; }
}
.chat-panel {
  margin-top: 14px;
}

.chat-panel-body {
  display: grid;
  gap: 12px;
}

.chat-messages {
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
  display: grid;
  gap: 10px;
}

.chat-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(247,215,116,0.08);
  border-radius: 14px;
  padding: 10px 12px;
}

.chat-item.system {
  background: rgba(247,215,116,0.08);
  border-color: rgba(247,215,116,0.16);
}

.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.chat-head strong {
  font-size: 13px;
  color: #fff4cf;
}

.chat-head span {
  font-size: 11px;
  color: var(--muted);
}

.chat-text {
  font-size: 13px;
  line-height: 1.5;
  color: #eef2ff;
  word-break: break-word;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 10px;
}

.chat-form input {
  width: 100%;
  background: #0b1630;
  border: 1px solid rgba(247,215,116,0.12);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
}

.chat-form input:focus {
  border-color: rgba(247,215,116,0.35);
  box-shadow: 0 0 0 3px rgba(247,215,116,0.10);
}

@media (max-width: 700px) {
  .chat-messages {
    max-height: 220px;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }
}
.lobby-table-card {
  background:
    radial-gradient(circle at top left, rgba(247,215,116,0.08), transparent 24%),
    linear-gradient(180deg, rgba(13,24,47,0.98), rgba(9,18,38,0.98));
  border: 1px solid rgba(247,215,116,0.10);
  border-radius: 24px;
  padding: 16px;
  box-shadow:
    0 14px 30px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.lobby-table-card.playing {
  border-color: rgba(247,215,116,0.22);
  box-shadow:
    0 14px 30px rgba(0,0,0,0.24),
    0 0 0 1px rgba(247,215,116,0.08),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.lobby-table-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.lobby-table-title {
  font-size: 20px;
  font-weight: 900;
  color: #fff4cf;
  margin-bottom: 4px;
}

.lobby-table-sub {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.lobby-table-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(247,215,116,0.10);
  color: #f8e7bb;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.lobby-table-badge.playing {
  background: linear-gradient(135deg, rgba(247,215,116,0.18), rgba(212,169,58,0.12));
  border-color: rgba(247,215,116,0.22);
}

.lobby-table-stage {
  display: grid;
  grid-template-columns: 1fr 220px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.seat-bubble {
  min-height: 120px;
  border-radius: 22px;
  padding: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(247,215,116,0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.seat-bubble.occupied {
  background: linear-gradient(135deg, rgba(247,215,116,0.10), rgba(255,255,255,0.03));
}

.seat-bubble.empty {
  opacity: 0.85;
}

.seat-label {
  font-size: 12px;
  color: #cdbb89;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}

.seat-name {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  word-break: break-word;
}

.mini-table-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-table-felt {
  width: 220px;
  height: 140px;
  border-radius: 28px;
  background:
    radial-gradient(circle at center, rgba(37,99,52,0.22), rgba(18,63,32,0.96)),
    linear-gradient(180deg, #11512b, #0c3e20);
  border: 6px solid #7a4b1c;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.08),
    inset 0 -10px 20px rgba(0,0,0,0.18),
    0 12px 20px rgba(0,0,0,0.20);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}

.mini-table-name {
  font-size: 18px;
  font-weight: 900;
  color: #fff7da;
  margin-bottom: 8px;
}

.mini-table-players {
  font-size: 13px;
  color: #dbe7d8;
  font-weight: 700;
}

.lobby-seat-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.lobby-seat-actions button {
  min-height: 48px;
  font-size: 16px;
  font-weight: 800;
  border-radius: 16px;
}

@media (max-width: 900px) {
  .lobby-table-stage {
    grid-template-columns: 1fr;
  }

  .mini-table-felt {
    width: 100%;
    max-width: 260px;
  }
}

@media (max-width: 600px) {
  .lobby-table-card {
    padding: 14px;
    border-radius: 20px;
  }

  .lobby-table-title {
    font-size: 18px;
  }

  .seat-name {
    font-size: 18px;
  }

  .lobby-seat-actions {
    grid-template-columns: 1fr;
  }
}
/* ===== GAME PAGE COMPACT LAYOUT ===== */

.game-page-topbar {
  align-items: center;
  margin-bottom: 10px;
}

.game-page-topbar .small-brand {
  font-size: 22px;
  margin-bottom: 2px;
}

#tableHeader {
  font-size: 13px;
}

.game-page-actions {
  gap: 8px;
}

.game-page-actions button {
  padding: 8px 12px;
  font-size: 14px;
  min-height: 40px;
  border-radius: 12px;
}

.score-grid {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.score-card {
  min-height: 78px;
  padding: 10px 12px;
  border-radius: 16px;
}

.score-name {
  font-size: 14px;
  margin-bottom: 2px;
}

.score-meta {
  font-size: 11px;
  line-height: 1.35;
}

.badge {
  font-size: 10px;
  padding: 2px 7px;
}

.board-shell {
  padding: 10px;
  border-radius: 22px;
}

.board-topbar {
  margin-bottom: 8px;
}

.board-meta {
  gap: 6px;
}

.pill {
  font-size: 11px;
  padding: 6px 10px;
}

.controls {
  margin-top: 10px;
  gap: 8px;
}

.controls button {
  min-width: 0;
  min-height: 40px;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 12px;
}

.status-line {
  margin-top: 8px;
  font-size: 12px;
}

.history {
  margin-top: 8px;
  max-height: 130px;
  padding: 10px;
  border-radius: 14px;
}

.history-item {
  font-size: 11px;
  padding: 3px 0;
}

/* history + chat alanını yan yana */
.game-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
  align-items: start;
}

.game-bottom-grid .history,
.game-bottom-grid .chat-panel {
  margin-top: 0;
  height: 100%;
}

.chat-panel {
  margin-top: 0;
}

.chat-panel .panel-head {
  padding: 12px 14px;
}

.chat-panel .panel-body {
  padding: 12px 14px;
}

.chat-messages {
  max-height: 170px;
  gap: 8px;
}

.chat-item {
  padding: 8px 10px;
  border-radius: 12px;
}

.chat-head strong {
  font-size: 12px;
}

.chat-head span {
  font-size: 10px;
}

.chat-text {
  font-size: 12px;
}

.chat-form {
  grid-template-columns: 1fr 96px;
  gap: 8px;
}

.chat-form input {
  padding: 10px 12px;
  font-size: 13px;
  border-radius: 12px;
}

.chat-form button {
  min-height: 40px;
  font-size: 14px;
  border-radius: 12px;
}

/* masa üst geniş ekran sıkıştırma */
@media (min-width: 1200px) {
  .app {
    max-width: 1480px;
  }

  .board-shell {
    padding: 8px;
  }

  .board {
    min-height: 600px;
  }
}

/* tablet */
@media (max-width: 1100px) {
  .game-bottom-grid {
    grid-template-columns: 1fr;
  }

  .chat-messages {
    max-height: 180px;
  }
}

/* mobil */
@media (max-width: 700px) {
  .game-page-topbar {
    gap: 8px;
  }

  .game-page-actions {
    width: 100%;
    gap: 6px;
  }

  .game-page-actions button {
    flex: 1 1 calc(50% - 6px);
    font-size: 13px;
    padding: 8px 10px;
    min-height: 38px;
  }

  .score-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .score-card {
    min-height: 68px;
    padding: 9px 10px;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }

  .history {
    max-height: 110px;
  }

  .chat-messages {
    max-height: 150px;
  }
}
/* ===== EXTRA COMPACT GAME TWEAKS ===== */

.app {
  padding-top: 10px;
}

.lux-topbar {
  margin-bottom: 8px;
}

.lux-topbar-inner {
  padding: 10px 14px;
}

.lux-logo-mark {
  width: 40px;
  height: 40px;
  font-size: 20px;
  border-radius: 12px;
}

.lux-logo-title {
  font-size: 16px;
}

.lux-logo-sub {
  font-size: 11px;
}

.lux-link-chip {
  padding: 6px 10px;
  font-size: 11px;
}

.game-page-topbar {
  margin-bottom: 8px;
}

.game-page-topbar > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-page-topbar .small-brand {
  font-size: 18px;
  margin-bottom: 0;
}

#tableHeader {
  font-size: 12px;
  margin-top: 2px;
}

.score-grid {
  gap: 8px;
  margin-bottom: 8px;
}

.score-card {
  min-height: 64px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.score-name {
  font-size: 13px;
  margin-bottom: 1px;
}

.score-meta {
  font-size: 10px;
  line-height: 1.25;
}

.board-shell {
  padding: 8px;
  border-radius: 18px;
}

.board-topbar {
  margin-bottom: 6px;
}

.pill {
  font-size: 10px;
  padding: 5px 9px;
}

.controls {
  margin-top: 8px;
}

.controls button {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 13px;
}

.status-line {
  margin-top: 6px;
  font-size: 11px;
}

.history {
  max-height: 110px;
}

.chat-messages {
  max-height: 140px;
}

@media (min-width: 1200px) {
  .score-grid {
    grid-template-columns: 1fr 1fr;
  }

  .score-card {
    min-height: 60px;
  }

  .board {
    min-height: 560px;
  }
}

@media (max-width: 700px) {
  .lux-topbar-inner {
    padding: 8px 10px;
  }

  .game-page-topbar .small-brand {
    font-size: 16px;
  }

  .score-card {
    min-height: 60px;
  }
}
/* ===== SALON LOBBY STYLE ===== */

.salon-table-card {
  padding: 14px 16px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(247,215,116,0.06), transparent 24%),
    linear-gradient(180deg, rgba(8,20,44,0.98), rgba(6,16,36,0.98));
  border: 1px solid rgba(247,215,116,0.12);
  box-shadow:
    0 12px 26px rgba(0,0,0,0.20),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.salon-table-card.playing {
  border-color: rgba(247,215,116,0.22);
  box-shadow:
    0 14px 28px rgba(0,0,0,0.22),
    0 0 0 1px rgba(247,215,116,0.06),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.salon-table-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.salon-table-title {
  font-size: 16px;
  font-weight: 900;
  color: #fff4cf;
  margin-bottom: 2px;
}

.salon-table-sub {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.salon-table-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(247,215,116,0.14);
  color: #f6e7bc;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.salon-table-chip.playing {
  background: linear-gradient(135deg, rgba(247,215,116,0.14), rgba(212,169,58,0.10));
  border-color: rgba(247,215,116,0.22);
}

.salon-stage {
  display: grid;
  grid-template-columns: 1fr 180px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.salon-player {
  min-height: 84px;
  border-radius: 18px;
  padding: 12px 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(247,215,116,0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.salon-player.occupied {
  background:
    linear-gradient(135deg, rgba(247,215,116,0.08), rgba(255,255,255,0.02));
}

.salon-player.empty {
  opacity: 0.85;
}

.salon-player-role {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #d7c48c;
  margin-bottom: 6px;
}

.salon-player-name {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  word-break: break-word;
}

.salon-center-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.salon-table-oval {
  width: 180px;
  height: 108px;
  border-radius: 999px;
  padding: 6px;
  background:
    linear-gradient(135deg, #9a6328, #6a3d14);
  box-shadow:
    0 12px 20px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.10);
}

.salon-table-felt {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(34,197,94,0.16), rgba(10,70,34,0.95)),
    linear-gradient(180deg, #0d4b25, #08351a);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.salon-table-label {
  font-size: 15px;
  font-weight: 900;
  color: #fff7da;
  letter-spacing: .4px;
}

.salon-table-count {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 800;
  color: #dbe7d8;
}

.salon-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.salon-actions button {
  min-height: 42px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 800;
  border-radius: 14px;
}

@media (max-width: 1000px) {
  .salon-stage {
    grid-template-columns: 1fr;
  }

  .salon-center-wrap {
    order: -1;
  }
}

@media (max-width: 600px) {
  .salon-table-card {
    padding: 12px;
    border-radius: 18px;
  }

  .salon-actions {
    grid-template-columns: 1fr;
  }

  .salon-player-name {
    font-size: 14px;
  }

  .salon-table-label {
    font-size: 14px;
  }
}
/* ===== REAL SALON TABLE LOBBY ===== */

.room-table-card {
  padding: 14px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(8,20,44,0.98), rgba(6,16,36,0.98));
  border: 1px solid rgba(247,215,116,0.12);
  box-shadow:
    0 12px 26px rgba(0,0,0,0.20),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.room-table-card.playing {
  border-color: rgba(247,215,116,0.20);
}

.room-table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.room-table-title {
  font-size: 16px;
  font-weight: 900;
  color: #fff4cf;
}

.room-table-sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.room-table-badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #f5e7bc;
  border: 1px solid rgba(247,215,116,0.14);
  background: rgba(255,255,255,0.04);
}

.room-table-badge.playing {
  background: linear-gradient(135deg, rgba(247,215,116,0.14), rgba(212,169,58,0.10));
}

.room-stage {
  display: grid;
  grid-template-columns: 140px 1fr 140px;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.room-seat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 70px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(247,215,116,0.08);
}

.room-seat-role {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #d7c48c;
}

.room-seat-name {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  word-break: break-word;
}

.room-table-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.room-table-wood {
  width: 210px;
  height: 150px;
  padding: 8px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, #b77a3a, #8a5523);
  box-shadow:
    0 10px 20px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.10);
}

.room-table-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background:
    repeating-linear-gradient(
      90deg,
      #deb37c 0px,
      #d5a46d 8px,
      #e3bc88 16px,
      #c9945b 24px
    );
  overflow: visible;
}

.room-play-badge {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #3a2417;
  border: 5px solid #e0ae33;
  color: #fff7da;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0,0,0,0.22);
}

.top-badge {
  top: -26px;
}

.bottom-badge {
  bottom: -26px;
}

.room-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.room-actions button {
  min-height: 40px;
  font-size: 14px;
  border-radius: 14px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .room-stage {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .room-table-center {
    order: -1;
  }

  .room-table-wood {
    width: 220px;
    height: 150px;
  }
}

@media (max-width: 600px) {
  .room-table-card {
    padding: 12px;
    border-radius: 18px;
  }

  .room-actions {
    grid-template-columns: 1fr;
  }

  .room-table-wood {
    width: 190px;
    height: 136px;
  }

  .room-play-badge {
    width: 56px;
    height: 56px;
    font-size: 12px;
  }
}
/* ===== REAL SALON TABLE LOBBY ===== */

.room-table-card {
  padding: 14px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(8,20,44,0.98), rgba(6,16,36,0.98));
  border: 1px solid rgba(247,215,116,0.12);
  box-shadow:
    0 12px 26px rgba(0,0,0,0.20),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.room-table-card.playing {
  border-color: rgba(247,215,116,0.20);
}

.room-table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.room-table-title {
  font-size: 16px;
  font-weight: 900;
  color: #fff4cf;
}

.room-table-sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.room-table-badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #f5e7bc;
  border: 1px solid rgba(247,215,116,0.14);
  background: rgba(255,255,255,0.04);
}

.room-table-badge.playing {
  background: linear-gradient(135deg, rgba(247,215,116,0.14), rgba(212,169,58,0.10));
}

.room-stage {
  display: grid;
  grid-template-columns: 140px 1fr 140px;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.room-seat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 70px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(247,215,116,0.08);
}

.room-seat-role {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #d7c48c;
}

.room-seat-name {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  word-break: break-word;
}

.room-table-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.room-table-wood {
  width: 210px;
  height: 150px;
  padding: 8px;
  border-radius: 18px;
  background: linear-gradient(135deg, #b77a3a, #8a5523);
  box-shadow:
    0 10px 20px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.10);
}

.room-table-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background:
    repeating-linear-gradient(
      90deg,
      #deb37c 0px,
      #d5a46d 8px,
      #e3bc88 16px,
      #c9945b 24px
    );
  overflow: visible;
}

.room-play-badge {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #3a2417;
  border: 5px solid #e0ae33;
  color: #fff7da;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0,0,0,0.22);
}

.top-badge {
  top: -26px;
}

.bottom-badge {
  bottom: -26px;
}

.room-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.room-actions button {
  min-height: 40px;
  font-size: 14px;
  border-radius: 14px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .room-stage {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .room-table-center {
    order: -1;
  }

  .room-table-wood {
    width: 220px;
    height: 150px;
  }
}

@media (max-width: 600px) {
  .room-table-card {
    padding: 12px;
    border-radius: 18px;
  }

  .room-actions {
    grid-template-columns: 1fr;
  }

  .room-table-wood {
    width: 190px;
    height: 136px;
  }

  .room-play-badge {
    width: 56px;
    height: 56px;
    font-size: 12px;
  }
}


/* =========================================================
   DAHA AÇIK / YUMUŞAK TEMA DÜZELTMESİ
   Tema çok koyu gelmesin diye en sona eklendi.
   Mevcut tasarımı bozmadan arka plan ve panel tonlarını açar.
   ========================================================= */
:root {
  --bg: #182236;
  --panel: #25334e;
  --panel2: #30415f;
  --line: rgba(226, 232, 240, 0.18);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(247, 215, 116, 0.20) 0%, transparent 24%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.18) 0%, transparent 24%),
    linear-gradient(180deg, #1d2a42 0%, #182236 52%, #202b3f 100%);
}

/* Ana kartlar */
.panel,
.hero-left,
.hero-right,
.identity-card,
.stat-card,
.table-card,
.score-card,
.room-table-card {
  background: rgba(37, 51, 78, 0.94) !important;
  border-color: rgba(247, 215, 116, 0.16) !important;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

/* Hero bölümü çok siyah görünmesin */
.hero-left {
  background:
    radial-gradient(circle at top right, rgba(247, 215, 116, 0.18), transparent 30%),
    radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.16), transparent 28%),
    rgba(37, 51, 78, 0.96) !important;
}

/* Üst bar / footer */
.lux-topbar-inner,
.lux-footer-inner {
  background:
    linear-gradient(135deg, rgba(247, 215, 116, 0.13), rgba(59, 130, 246, 0.09)),
    rgba(37, 51, 78, 0.95) !important;
  border-color: rgba(247, 215, 116, 0.20) !important;
}

/* Yazılar biraz daha okunaklı */
.muted,
.hero-text,
.identity-subtitle,
.panel-mini,
.lux-logo-sub,
.lux-footer-text,
.lux-footer-box span,
.score-meta {
  color: #d6deee !important;
}

.panel-head,
.table-title,
.identity-title,
.score-name,
.mini-title,
.lux-logo-title,
.lux-footer-title {
  color: #fff7db !important;
}

/* Input alanları */
.identity-card input,
.identity input,
.table-create input,
#chatInput {
  background: #eef3fb !important;
  color: #111827 !important;
  border-color: rgba(247, 215, 116, 0.34) !important;
}

.identity-card input::placeholder,
.identity input::placeholder,
.table-create input::placeholder,
#chatInput::placeholder {
  color: #64748b !important;
}

/* Oyun sayfası kartları */
.chat-panel,
.history,
.chat-item,
.bar-box,
.off-box {
  background: rgba(48, 65, 95, 0.78) !important;
  border-color: rgba(247, 215, 116, 0.14) !important;
}

.chat-text,
.history-item,
.status-line {
  color: #f8fafc !important;
}

/* Tavla tahtasını daha sıcak ve aydınlık yap */
.board-shell {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 24%),
    radial-gradient(circle at bottom right, rgba(247, 215, 116, 0.13), transparent 30%),
    linear-gradient(180deg, #a66a2d, #714318) !important;
  border-color: rgba(247, 215, 116, 0.24) !important;
}

.board {
  background:
    linear-gradient(180deg, #b47535, #80501f 48%, #5f3816) !important;
}

.bar-area {
  background: linear-gradient(180deg, #674017, #3d230c) !important;
}

/* Hane üçgenleri biraz daha canlı */
.point.top:nth-child(odd)::before {
  border-top-color: #f6dbab !important;
}
.point.top:nth-child(even)::before {
  border-top-color: #8d5124 !important;
}
.point.bottom:nth-child(odd)::before {
  border-bottom-color: #8d5124 !important;
}
.point.bottom:nth-child(even)::before {
  border-bottom-color: #f6dbab !important;
}

/* Butonlar çok koyu görünmesin */
button {
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

.btn-blue {
  background: linear-gradient(135deg, #d7a93c, #ffd66b) !important;
  color: #2f2306 !important;
}

.btn-yellow {
  background: linear-gradient(135deg, #ffe08a, #d7a93c) !important;
  color: #2f2306 !important;
}

.btn-green {
  background: linear-gradient(135deg, #f1c75a, #c48f1d) !important;
  color: #261b04 !important;
}

.btn-red {
  background: linear-gradient(135deg, #c24141, #ef4444) !important;
  color: #fff !important;
}

/* Lobi masa görünümü */
.room-table-wood {
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.10), transparent 32%),
    linear-gradient(180deg, #a4662a, #684018) !important;
}

.room-seat {
  background: rgba(238, 243, 251, 0.10) !important;
  border-color: rgba(247, 215, 116, 0.18) !important;
}

.room-seat-name,
.room-table-title {
  color: #fff7db !important;
}

.room-table-sub,
.room-seat-role {
  color: #d6deee !important;
}

/* Mobilde de fazla koyulaşmasın */
@media (max-width: 700px) {
  body {
    background:
      radial-gradient(circle at top, rgba(247, 215, 116, 0.16) 0%, transparent 28%),
      linear-gradient(180deg, #1e2b43 0%, #1a2539 100%);
  }

  .panel,
  .hero-left,
  .hero-right,
  .identity-card,
  .score-card {
    background: rgba(39, 54, 82, 0.96) !important;
  }
}

