/*---------------------------------------------------------------------------
  Version : 2026.10.02
  Purpose : 小遊戲分享鈕（games.php / game.php / game_play.php 共用）
---------------------------------------------------------------------------*/
.tg-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; position: relative; z-index: 1; }
.tg-share-label { width: 100%; text-align: center; font-size: 13px; color: #5b554d; letter-spacing: .1em; margin-bottom: 2px; }
.tg-share-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; display: inline-grid; place-items: center; font-size: 19px; color: #fff; cursor: pointer; transition: transform .15s, box-shadow .2s; box-shadow: 0 3px 10px rgba(40, 40, 40, .15); }
.tg-share-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(40, 40, 40, .22); }
.tg-share-btn:active { transform: scale(.92); }
.tg-share-btn.is-line { background: #06C755; }
.tg-share-btn.is-facebook { background: #1877F2; }
.tg-share-btn.is-threads, .tg-share-btn.is-x { background: #111; }
.tg-share-btn.is-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.tg-share-btn.is-copy { background: #8b7d6b; }
.tg-share-toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 9999; background: rgba(40, 40, 40, .92); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 14px; max-width: calc(100% - 32px); text-align: center; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; }
.tg-share-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 電腦版 IG 分享視窗 */
.tg-ig { position: fixed; inset: 0; z-index: 10000; background: rgba(40, 40, 40, .55); display: flex; align-items: center; justify-content: center; padding: 16px; animation: tgIgIn .2s ease-out; }
@keyframes tgIgIn { from { opacity: 0; } }
.tg-ig-box { position: relative; width: 100%; max-width: 380px; background: #f7f4ee; border-radius: 20px; padding: 24px 22px 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); color: #282828; font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif; text-align: center; }
.tg-ig-box h3 { margin: 0 0 6px; font-size: 19px; font-weight: 900; display: flex; align-items: center; justify-content: center; gap: 8px; }
.tg-ig-box h3 i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 17px; background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.tg-ig-x { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; font-size: 24px; line-height: 1; color: #5b554d; cursor: pointer; }
.tg-ig-x:hover { background: rgba(40, 40, 40, .08); }
.tg-ig-note { margin: 8px 0 10px; font-size: 13.5px; color: #5b554d; line-height: 1.6; }
.tg-ig-qr { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #e4dfd5; border-radius: 14px; padding: 12px; text-align: left; }
.tg-ig-qr #tg-ig-qr { flex: 0 0 148px; height: 148px; }
.tg-ig-qr #tg-ig-qr img, .tg-ig-qr #tg-ig-qr canvas { width: 148px !important; height: 148px !important; }
.tg-ig-qr span { font-size: 13px; line-height: 1.7; color: #282828; }
.tg-ig-qr b { color: #d6249f; }
.tg-ig-or { position: relative; margin: 14px 0 4px; font-size: 12px; color: #8b8478; }
.tg-ig-or::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid #e4dfd5; }
.tg-ig-or span { position: relative; background: #f7f4ee; padding: 0 10px; }
.tg-ig-copy { display: flex; gap: 6px; }
.tg-ig-copy input { flex: 1; min-width: 0; border: 1px solid #e4dfd5; border-radius: 10px; padding: 9px 10px; font-size: 12.5px; color: #5b554d; background: #fff; }
.tg-ig-recopy { border: 0; border-radius: 10px; padding: 0 14px; background: #8b7d6b; color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.tg-ig-open { display: block; margin-top: 12px; padding: 11px; border-radius: 999px; border: 1px solid #282828; color: #282828; font-size: 14px; font-weight: 700; text-decoration: none; }
.tg-ig-open:hover { background: #282828; color: #fff; }
@media (max-width: 380px) { .tg-ig-qr { flex-direction: column; text-align: center; } }
