/* Setgon reference pass · waiting-table portrait view
   Based on the user-provided demo.setgon.com screenshot (20 Nov 2026).
   Loaded after board-fix.css; interaction and existing SG markup remain unchanged.
*/

@media (max-width: 720px) and (orientation: portrait) {
  #sg-games {
    --felt-1: #087d55;
    --felt-2: #056342;
    --felt-3: #013a27;
    background: #0b0c0d;
  }

  /* Black Setgon-style application header. */
  #sg-games .sg-hud {
    height: 68px;
    padding: 8px 14px;
    background: linear-gradient(180deg, #0d0e10, #111214);
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 3px 12px rgba(0,0,0,.45);
  }
  #sg-games .sg-hud-left { gap: 10px; }
  #sg-games .sg-hud-left::before {
    content: '♜';
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(145deg, #ffe89a, #e9aa2e);
    color: #704b08;
    font-size: 23px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 2px 5px rgba(0,0,0,.45);
  }
  #sg-games .sg-hud-left::after {
    content: 'Oyunlar';
    color: #f5f5f5;
    font: 800 23px/1 'Trebuchet MS', sans-serif;
  }
  #sg-games .sg-level,
  #sg-games .sg-pill { display: none; }
  #sg-games .sg-hud-right { gap: 8px; }
  #sg-games .sg-hud-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
  }
  #sg-games .sg-hud-btn svg { width: 64%; height: 64%; stroke: #e7e7e7; }
  #sg-games .sg-hud-btn[data-action="sound"] { display: none; }
  #sg-games .sg-hud-chat {
    width: 124px;
    border-radius: 15px;
    background: linear-gradient(180deg, #49222d, #30151d);
    box-shadow: inset 0 0 0 1px #b24761, 0 3px 7px rgba(0,0,0,.4);
  }
  #sg-games .sg-hud-chat svg { display: none; }
  #sg-games .sg-hud-chat::after {
    content: 'Salonlar';
    color: #f49ca8;
    font: 800 17px/1 'Trebuchet MS', sans-serif;
  }
  #sg-games .sg-hud-btn[data-action="menu"] {
    background: linear-gradient(145deg, #ffe78e, #ce941d);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 3px 7px rgba(0,0,0,.45);
  }
  #sg-games .sg-hud-btn[data-action="menu"] svg { stroke: #4e3509; }
  #sg-games .sg-hud-close { display: grid; }

  /* The table begins immediately below the header, as in the reference. */
  #sg-games .sg-table-wrap {
    left: 0;
    right: 0;
    top: 68px;
    bottom: 34%;
  }
  #sg-games .sg-table {
    padding: 0;
    border-radius: 0;
    background:
      linear-gradient(180deg, #a86930 0%, #74401e 14%, #482513 55%, #2a180d 100%);
    box-shadow: inset 0 2px 0 rgba(255,220,160,.25), 0 5px 13px rgba(0,0,0,.55);
  }
  #sg-games .sg-table::after { border-radius: 0; box-shadow: inset 0 0 0 1px rgba(255,220,170,.18); }
  #sg-games .sg-felt {
    border-radius: 0;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), inset 0 9px 24px rgba(0,0,0,.18);
    background:
      radial-gradient(125% 85% at 50% 16%, #07835a 0%, #056541 56%, #01412c 100%);
  }
  #sg-games .sg-felt::after { opacity: .35; }

  /* Slim wood rails at left and right of the felt. */
  #sg-games .sg-table-wrap::before,
  #sg-games .sg-table-wrap::after {
    content: '';
    position: absolute;
    top: 22%;
    bottom: 40%;
    width: 11px;
    z-index: 5;
    background: linear-gradient(90deg, #70401f, #c5833b 45%, #75411d);
    box-shadow: 0 0 6px rgba(0,0,0,.55);
    pointer-events: none;
  }
  #sg-games .sg-table-wrap::before { left: 0; }
  #sg-games .sg-table-wrap::after { right: 0; }

  /* Empty seats: dark recessed rectangles like Setgon's waiting state. */
  #sg-games .sg-seat { z-index: 7; }
  #sg-games .sg-seat-top { top: 1%; }
  #sg-games .sg-seat-left { left: 5%; top: 12%; }
  #sg-games .sg-seat-right { right: 5%; top: 12%; }
  #sg-games .sg-seat-self { bottom: 1%; }
  #sg-games .sg-seat .sg-plate { border-radius: 999px; }

  /* Compact side controls and a tall, wood-framed lower rack. */
  #sg-games .sg-dock {
    left: 0;
    right: 0;
    bottom: 0;
    height: 32%;
    gap: 0;
    align-items: stretch;
  }
  #sg-games .sg-side {
    width: 38px;
    border-radius: 0;
    background: linear-gradient(90deg, #8a4c22, #b87532 45%, #75401d);
    box-shadow: inset 0 0 0 1px rgba(255,216,156,.25), 0 0 6px rgba(0,0,0,.5);
    color: rgba(255,245,215,.75);
  }
  #sg-games .sg-side span { font-size: 0; }
  #sg-games .sg-side span::after { content: '+ OTUR'; font-size: 8px; letter-spacing: .12em; }
  #sg-games .sg-side-left span::after,
  #sg-games .sg-side-right span::after { writing-mode: vertical-rl; transform: rotate(180deg); }
  #sg-games .sg-rack {
    border-radius: 0;
    padding: 8px 6px;
    background:
      url('./assets/setgon-board.png') center / 100% 100% no-repeat,
      linear-gradient(180deg, #d18a3d, #7b3713 50%, #b86825);
    box-shadow: inset 0 2px 0 rgba(255,236,183,.7), inset 0 -8px 13px rgba(0,0,0,.5), 0 -2px 8px rgba(0,0,0,.45);
  }
  #sg-games .sg-rack-brand { min-height: 24px; }
  #sg-games .sg-brand { display: none; }
  #sg-games .sg-rack-row { gap: 2px; }
  #sg-games .sg-controls { background: transparent; box-shadow: none; }
}
