/* 20261004 RUSH 試玩（影片版）樣式。原本寫在 RUSH示範/index_影片版.html 的內聯 <style>，
   站台 CSP 不允許內聯樣式，所以搬到這裡；原稿的 style="" 屬性也改成下面的 .mt8／.hide 等類別。
   IE11：不用 object-fit（不支援），主視覺改成背景圖＋background-size:cover。 */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #f4f4f6; }
body { color: #1b1d24; font: 14px/1.6 "Microsoft JhengHei", "PingFang TC", sans-serif; }
.wrap { max-width: 430px; margin: 0 auto; background: #fff; min-height: 100vh; padding-bottom: 30px; }

/* 頂部列 */
.hdr { display: block; padding: 12px 14px; border-bottom: 1px solid #ececf0; overflow: hidden; }
.hdr .brand { float: left; font-size: 17px; font-weight: bold; letter-spacing: 1px; color: #b3122a; }
.hdr .brand i { font-style: normal; color: #1b1d24; }
.hdr .back { float: right; background: #efeff3; border-radius: 6px; padding: 5px 10px;
  font-size: 12px; color: #444; text-decoration: none; }
.hdr .back:hover { background: #e4e4ea; }
/* 一直看得到的「示範」標示 */
.demo { background: #fff4e6; color: #9a4a00; font-size: 12px; text-align: center; padding: 6px 10px;
  border-bottom: 1px solid #ffe0bf; }

/* 主視覺：背景圖（IE11 不支援 object-fit，用 img 會被拉變形） */
.hero { position: relative; height: 150px; overflow: hidden; background-color: #201812;
  background-image: url(/static/rush/img/bg_bright.jpg); background-repeat: no-repeat;
  background-position: center 35%; background-size: cover; }
.hero .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; color: #fff;
  background: #000; background: rgba(0,0,0,.55);
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.78)); }
.hero .cap b { font-size: 19px; letter-spacing: 1px; }
.hero .cap span { display: block; font-size: 12px; color: #e7c98a; }

/* 券資訊 */
.card { padding: 14px; }
.tk { border: 1px solid #ececf0; border-radius: 10px; overflow: hidden; }
.tk img { width: 100%; display: block; background: #241a12; }
.tk .meta { padding: 10px 12px; }
.tk .meta h2 { margin: 0 0 2px; font-size: 15px; }
.tk .meta p { margin: 0; font-size: 12px; color: #6a6f7d; }
.rates { margin: 12px 0 4px; font-size: 12px; color: #6a6f7d; }
.rates button { border: 1px solid #d8d8de; background: #fff; border-radius: 14px; padding: 4px 12px;
  margin-right: 6px; font-size: 12px; cursor: pointer; font-family: inherit; color: #444; }
.rates button.on { background: #b3122a; border-color: #b3122a; color: #fff; }
.btn { display: block; width: 100%; border: 0; border-radius: 9px; padding: 14px; font-size: 16px;
  font-weight: bold; cursor: pointer; font-family: inherit; margin-top: 10px; text-align: center;
  text-decoration: none; }
.btn.red { background: #c8102e; color: #fff; }
.btn.line { background: #fff; color: #b3122a; border: 1px solid #e3b7bf; }
.btn:disabled { opacity: .45; cursor: default; }
.free { display: inline-block; background: #c8102e; color: #fff; font-size: 11px; border-radius: 10px;
  padding: 1px 9px; margin-bottom: -6px; position: relative; top: 6px; }
.oldie { background: #fdeaee; color: #a2102a; border-radius: 7px; padding: 10px 12px; font-size: 13px; }

/* 對話框 */
.mask { position: fixed; left: 0; top: 0; right: 0; bottom: 0; background: rgba(20,20,26,.6);
  display: none; z-index: 40; }
.mask.on { display: block; }
.dlg { position: absolute; left: 50%; top: 50%; width: 88%; max-width: 360px; margin-left: -44%;
  transform: translateY(-50%); -webkit-transform: translateY(-50%); -ms-transform: translateY(-50%);
  background: #fff; border-radius: 14px; padding: 20px 18px; text-align: center; }
.dlg h3 { margin: 0 0 6px; font-size: 18px; }
.dlg p { margin: 0 0 12px; font-size: 13px; color: #6a6f7d; }
.dlg .warn { background: #fdeaee; color: #a2102a; font-size: 11.5px; text-align: left;
  border-radius: 7px; padding: 8px 10px; margin-bottom: 14px; }
.dlg .thumb { border: 3px solid #f0d9a8; border-radius: 10px; overflow: hidden; margin: 0 auto 14px; }
.dlg .thumb img { width: 100%; display: block; }
.dlg .x { position: absolute; right: 12px; top: 8px; border: 0; background: none; font-size: 22px;
  color: #9aa0ad; cursor: pointer; line-height: 1; }
/* 遊戲內視窗只有 400 高：對話框太高時縮小券圖 */
@media (max-height: 460px) {
  .dlg { padding: 14px 14px; }
  .dlg .thumb { width: 70%; margin-bottom: 10px; }
  .dlg .warn { margin-bottom: 10px; }
}

/* 演出：一支影片。高度預設 620，rush.js 會依視窗高度縮小（遊戲內只有 400 高） */
.stage { position: relative; width: 100%; height: 620px; background: #05070d; overflow: hidden;
  border-radius: 12px; display: none; }
.stage.on { display: block; }
.stage video { width: 100%; height: 100%; display: block; object-fit: cover; background: #05070d; }
.stage .tap { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: #ffe6a8;
  font-size: 12px; text-shadow: 0 1px 3px #000; }

/* 結果面板 */
.panel { display: none; padding: 14px; }
.panel.on { display: block; }
.phead { text-align: center; margin-bottom: 8px; }
.phead img { width: 88%; max-width: 330px; display: block; margin: 0 auto -14px; }
.phead b { position: relative; font-size: 17px; color: #7a2b12; }
.pbox { border: 1px solid #ececf0; border-radius: 10px; padding: 14px; text-align: center; }
.pbox .lbl { font-size: 12px; color: #6a6f7d; }
.pbox .big { font-size: 30px; font-weight: bold; letter-spacing: 1px; }
.pbox .big s { font-size: 13px; font-weight: normal; text-decoration: none; color: #6a6f7d; }
.cards { text-align: center; margin: 10px 0 0; }
.card1 { display: inline-block; width: 92px; vertical-align: top; margin: 4px; border: 1px solid #ececf0;
  border-radius: 9px; padding: 6px 4px; }
.card1 img { width: 62px; height: 62px; display: block; margin: 0 auto 3px; }
.card1 .n { font-size: 11.5px; }
.card1 .p { font-size: 11px; color: #a07b2a; }
.r3 { border-color: #e6c15f; background: #fffdf5; }
.r2 { border-color: #cdd7ea; }
.empty { color: #9aa0ad; font-size: 12px; }

/* 20261004 遊戲內捲動輔助：ingame.js 會在小視窗加一條固定在底部的「頂端／上頁／下頁」列
   （顯示與否由 ingame.js 直接設定 display）。這頁沒載 style.css，所以樣式寫在這裡，配色跟這頁一致。 */
.qnav { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; padding: 4px 3px;
  background: #fff; border-top: 1px solid #ececf0; box-shadow: 0 -4px 12px rgba(0,0,0,.08); }
.qnav button { flex: 1 1 auto; margin: 0 2px; padding: 7px 2px; border: 1px solid #e3b7bf; border-radius: 16px;
  background: #fff; color: #b3122a; font-size: 12px; font-weight: bold; font-family: inherit; cursor: pointer; }
.qnav button:active { background: #fdeaee; }
@media (max-width: 960px), (max-height: 500px) {
  body { padding-bottom: 44px; }   /* 留出底部列的高度，避免蓋住最後一段內容 */
}
/* 按住拖曳平移時不要反白文字 */
body.panning, body.panning * { -ms-user-select: none; -webkit-user-select: none; user-select: none; cursor: move; }

/* 原稿的 style="" 屬性改成這幾個類別 */
.mt0 { margin-top: 0; }
.mt8 { margin-top: 8px; }
.mt10 { margin-top: 10px; }
.hide { display: none; }
