.scene {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
  perspective: 1100px;
  perspective-origin: 50% 0%;
  background: var(--wood-dark);
}

.table-felt {
  position: absolute;
  top: -30%;
  left: -15%;
  right: -15%;
  bottom: 26%;
  background:
    radial-gradient(ellipse 90% 80% at 50% 85%, var(--felt-far) 0%, var(--felt-mid) 45%, var(--felt-near) 100%);
  border-radius: 0 0 55% 55% / 0 0 25% 25%;
  transform: rotateX(28deg);
  transform-origin: 50% 100%;
  box-shadow:
    inset 0 -60px 80px rgba(0,0,0,0.4),
    inset 0 60px 80px rgba(255,255,255,0.04);
}

.table-felt::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg, transparent 0px, transparent 18px,
      rgba(0,0,0,0.04) 18px, rgba(0,0,0,0.04) 19px
    ),
    repeating-linear-gradient(
      90deg, transparent 0px, transparent 18px,
      rgba(0,0,0,0.04) 18px, rgba(0,0,0,0.04) 19px
    );
  border-radius: inherit;
  pointer-events: none;
}

.wood-rail {
  position: absolute;
  bottom: 24%;
  left: 0;
  right: 0;
  height: 44px;
  background:
    linear-gradient(180deg,
      var(--wood-highlight) 0%,
      var(--wood-light) 20%,
      var(--wood-mid) 70%,
      var(--wood-dark) 100%
    );
  border-top: 2px solid #9a6030;
  box-shadow: 0 6px 24px rgba(0,0,0,0.7);
}

.wood-rail::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      92deg,
      transparent 0px, transparent 60px,
      rgba(255,255,255,0.02) 60px, rgba(255,255,255,0.02) 61px
    );
}

.table-floor {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 74%;
  background:
    repeating-linear-gradient(
      91deg,
      transparent 0px, transparent 80px,
      rgba(255,255,255,0.015) 80px, rgba(255,255,255,0.015) 81px
    ),
    linear-gradient(180deg, var(--wood-mid) 0%, var(--wood-dark) 100%);
}

.player-label {
  position: absolute;
  bottom: 22%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  color: rgba(201,168,76,0.35);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-header {
  position: absolute;
  top: 7%;
  left: 50%;
  transform: translateX(-50%) rotateX(28deg);
  transform-origin: 50% 100%;
  text-align: center;
  z-index: 2;
  pointer-events: none;
}

.header-name {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--gold-bright);
  text-shadow: 0 0 30px rgba(201,168,76,0.45), 2px 2px 0 rgba(0,0,0,0.8);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.header-tagline {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.65rem, 1.5vw, 0.9rem);
  color: rgba(201,168,76,0.55);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 5px;
}

.header-rule {
  width: 260px;
  height: 1px;
  margin: 10px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hand-zone {
  position: absolute;
  bottom: -70px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  z-index: 10;
  width: 100%;
}

.hand-slot {
  position: relative;
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: 50% 120%;
}

.hand-slot:hover {
  z-index: 50 !important;
}

.tap-hint {
  position: absolute;
  bottom: 105px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Cinzel', serif;
  font-size: 9px;
  color: rgba(201,168,76,0.6);
  white-space: nowrap;
  letter-spacing: 0.12em;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.hand-slot:hover .tap-hint {
  opacity: 1;
}

.table-cards-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.table-card-spot {
  position: absolute;
  pointer-events: all;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.table-card-spot .mtg-card {
  width: 180px;
  height: 252px;
  box-shadow:
    0 12px 40px rgba(0,0,0,0.8),
    0 2px 8px rgba(0,0,0,0.6);
}

.table-card-spot .card-name      { font-size: 8px; }
.table-card-spot .mana-pip       { width: 13px; height: 13px; font-size: 7px; }
.table-card-spot .card-art-frame { flex: 0 0 88px; }
.table-card-spot .art-emoji      { font-size: 40px; }
.table-card-spot .card-type-row  { font-size: 6.5px; margin: 2px 4px; padding: 1px 4px; }
.table-card-spot .card-text-box  { margin: 0 4px 3px; padding: 3px 4px; }
.table-card-spot .ability-line   { font-size: 6.5px; }
.table-card-spot .flavor-text    { font-size: 6px; }
.table-card-spot .collector-info { font-size: 5px; }

.table-card-spot .shimmer-layer  { border-radius: 11px; }

.table-card-label {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Cinzel', serif;
  font-size: 8px;
  color: rgba(201,168,76,0.5);
  white-space: nowrap;
  letter-spacing: 0.1em;
  opacity: 0;
  transition: opacity 0.2s;
}

.table-card-spot:hover .table-card-label {
  opacity: 1;
}

.table-card-spot.is-dragging {
  box-shadow: 0 24px 60px rgba(0,0,0,0.9), 0 0 30px rgba(201,168,76,0.2);
}

.table-card-spot.is-dragging .shimmer-layer {
  opacity: 1;
  animation: foil-shimmer 1.5s ease infinite;
}
