/* ============================================================
 * 文件：css/base.css
 * 作用：基础布局、卡牌栏、通用按钮、结果层
 * ============================================================ */
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body {
    background: #0d0d1a;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    touch-action: none;
  }
  #gameContainer {
    position: relative;
    width: 100%;
    max-width: 648px;
    height: 100vh;
    max-height: 1296px;
    background: #0d0d1a;
    overflow: hidden;
    border: 3px solid #4a3728;
  }
  canvas { display: block; width: 100%; height: 100%; }

  #uiLayer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 10;
  }

  .gold-bar {
    position: absolute;
    bottom: 58px;
    right: 5px;
    width: 45%;
    max-width: 105px;
    height: 8px;
    background: rgba(0,0,0,0.5);
    border-radius: 5px;
    overflow: hidden;
    border: 1.5px solid #ffd700;
  }
  .gold-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ffaa00);
    width: 10%;
    transition: width 0.2s;
  }
  .gold-text {
    position: absolute;
    bottom: 69px;
    right: 5px;
    color: #ffd700;
    font-size: 8px;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000;
  }

  #cardSlots {
    position: absolute;
    bottom: 3px;
    right: 5px;
    display: flex;
    justify-content: flex-end;
    gap: 5px;
    pointer-events: auto;
    padding: 0;
  }
  .restart-btn {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 28px;
    height: 28px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.2s, transform 0.1s;
    z-index: 11;
    user-select: none;
  }
  .restart-btn:hover { background: rgba(0,0,0,0.55); }
  .restart-btn:active { transform: scale(0.92); }

