:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans TC",sans-serif;color-scheme:dark}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#071425;color:#f7f9fc}body{padding:max(10px,env(safe-area-inset-top)) 10px max(12px,env(safe-area-inset-bottom))}.app{width:420px;max-width:100%;margin:auto}header{height:58px;padding:10px 12px;display:flex;justify-content:space-between;align-items:center;border:1px solid #294866;border-radius:12px;background:#102841}h1{font-size:18px;margin:0}header p{font-size:11px;color:#91b9e1;margin:4px 0 0}header>b{display:grid;place-items:center;width:38px;height:38px;border-radius:9px;background:#2363a4}nav{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0}.tab,.modes button,.clear,.add{border:1px solid #355470;border-radius:9px;background:#10243b;color:#b9cce3;font-weight:800}.tab{height:38px}.tab.active{background:#efb536;border-color:#efb536;color:#182335}.page{display:none}.page.active{display:block}.card{border:1px solid #294866;border-radius:11px;background:#0d2037}.fields{padding:10px}.odds-row{display:flex;flex-direction:row;gap:8px;width:100%;margin:0 0 8px}.odds-row .odds-label{display:flex!important;flex:1 1 0;min-width:0;flex-direction:column;align-items:stretch;gap:6px;margin:0!important;color:#b8cae0;font-size:12px;font-weight:800}.odds-row .odds-label input{margin:0;min-width:0}.fields label{display:grid;grid-template-columns:95px 1fr;gap:8px;align-items:center;color:#b8cae0;font-size:12px;font-weight:800;margin-bottom:8px}.fields label:last-child{margin-bottom:0}.fields.one{margin-top:8px}input,select{width:100%;height:38px;border:1px solid #3f607e;border-radius:8px;background:#102943;color:#fff;padding:6px 10px;font-size:16px;outline:none}input:focus,select:focus{border-color:#65abf4}.stake-row{display:grid;grid-template-columns:1fr 34px;gap:6px;align-items:center;width:100%}.swap{width:34px;height:38px;border:1px solid #3f607e;border-radius:8px;background:#102943;color:#fff;padding:0;font-size:16px;line-height:1;display:grid;place-items:center}.swap:active{transform:scale(.98)}.modes{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:8px 0}.modes button{height:34px}.modes button.active{background:#2363a4;border-color:#64adf2;color:#fff}.hero{min-height:112px;display:grid;place-items:center;align-content:center;gap:5px;border:2px solid #3d9be4;border-radius:13px;background:linear-gradient(140deg,#113b60,#0d2945);box-shadow:0 0 18px rgba(56,153,227,.16)}.hero span{font-size:13px;color:#add5fa;font-weight:900}.hero strong{font-size:42px;line-height:1;letter-spacing:.5px}.hero em{font-size:11px;font-style:normal;color:#88aecf}.metrics{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:8px}.metrics div{min-height:66px;display:grid;place-items:center;align-content:center;gap:5px;border:1px solid #294866;border-radius:10px;background:#0d2037}.metrics span{font-size:11px;color:#9fb6cf}.metrics b{font-size:20px}.pos{color:#65e4a0}.neg{color:#ff8189}.clear{width:100%;height:35px;margin-top:8px}.row-title{display:flex;justify-content:space-between;align-items:center;margin:10px 2px 7px}.row-title b{display:block}.row-title small{display:block;color:#7f9ab5;margin-top:3px}.add{width:105px;height:34px}.bets{max-height:238px;overflow:auto;padding-right:2px}.bet{display:grid;grid-template-columns:63px 1fr 1.18fr 35px;gap:6px;margin-bottom:7px}.bet button{height:38px;border:1px solid #6a3541;border-radius:8px;background:#351d28;color:#ff9299;font-size:20px}.bet select,.bet input{font-size:14px}.arb-status{min-height:44px;margin:2px 0 8px;display:flex;align-items:center;justify-content:center;border:1px solid;border-radius:9px;font-size:18px;font-weight:900;letter-spacing:.3px;text-align:center}.arb-status.pending{color:#b9cce3;border-color:#355470;background:#10243b}.arb-status.yes{color:#8de8a6;border-color:#5aa373;background:#183346}.arb-status.no{color:#ff9aa0;border-color:#8f4550;background:#3a2028}@media(max-width:440px){body{padding-left:6px;padding-right:6px}.hero strong{font-size:38px}}@media(max-height:760px) and (min-width:500px){.app{zoom:.9}}


/* 依使用者提供參考圖，桌面版做成接近 926x1482 的整體版面 */
@media (min-width: 700px){
  html,body{min-width:926px;overflow-x:hidden}
  body{padding:18px 18px 8px;background:#071425}
  .app{width:870px;max-width:870px;margin:0 auto}
  header{height:112px;padding:18px 24px;border-radius:24px}
  h1{font-size:34px;line-height:1.1}
  header p{font-size:14px;margin-top:10px}
  header>b{width:78px;height:78px;border-radius:18px;font-size:24px}
  nav{gap:14px;margin:18px 0}
  .tab{height:74px;border-radius:19px;font-size:28px}
  .card{border-radius:24px}
  .fields{padding:20px 22px 18px}
  .odds-row{display:flex;flex-direction:row;gap:20px;width:100%;margin:0 0 16px}
  .odds-row .odds-label{display:flex!important;flex:1 1 0;min-width:0;flex-direction:column;align-items:stretch;gap:10px;margin:0!important;font-size:22px}
  .odds-row .odds-label input{margin:0;min-width:0}
  .fields label{grid-template-columns:184px 1fr;gap:20px;align-items:center;font-size:22px;margin-bottom:16px}
  input,select{height:76px;border-radius:18px;padding:8px 20px;font-size:30px}
  .arb-status{min-height:86px;margin:8px 0 16px;border-radius:18px;font-size:26px}
  .modes{gap:12px;margin:18px 0}
  .modes button{height:68px;border-radius:18px;font-size:26px}
  .hero{min-height:222px;gap:12px;border-radius:26px}
  .hero span{font-size:22px}
  .hero strong{font-size:82px;line-height:1}
  .hero em{font-size:14px}
  .metrics{gap:18px;margin-top:18px}
  .metrics div{min-height:146px;gap:10px;border-radius:20px}
  .metrics span{font-size:19px}
  .metrics b{font-size:28px}
  .clear{height:66px;margin-top:16px;border-radius:18px;font-size:24px}
  .row-title{margin:18px 2px 10px}
  .row-title b{font-size:25px}
  .row-title small{font-size:14px;margin-top:4px}
  .add{width:140px;height:52px;border-radius:14px;font-size:22px}
  .stake-row{grid-template-columns:1fr 64px;gap:12px}
  .swap{width:64px;height:76px;border-radius:18px;font-size:24px}

  .bets{max-height:360px}
  .bet{grid-template-columns:102px 1fr 1.2fr 52px;gap:10px;margin-bottom:10px}
  .bet button{height:52px;border-radius:12px;font-size:28px}
  .bet select,.bet input{height:52px;font-size:20px}
}

.record-btn{width:58px;height:38px;border:1px solid #355470;border-radius:9px;background:#10243b;color:#b9cce3;font-weight:900;font-size:15px}
.record-btn:active{transform:scale(.98)}
.record-panel{margin-top:8px;border:1px solid #294866;border-radius:11px;background:#0d2037;padding:10px}
.record-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}
.record-head b{display:block;font-size:15px}
.record-head small{display:block;color:#7f9ab5;margin-top:3px;font-size:10px}
.clear-records{height:34px;padding:0 11px;border:1px solid #6a3541;border-radius:8px;background:#351d28;color:#ff9299;font-weight:800}
.record-total{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 8px;padding:9px 10px;border:1px solid #294866;border-radius:9px;background:#10243b;margin-bottom:7px}
.record-total span{font-size:11px;color:#9fb6cf}
.record-total strong{grid-row:1 / span 2;grid-column:2;font-size:22px}
.record-total em{font-size:10px;color:#7f9ab5;font-style:normal}
.record-list{max-height:180px;overflow:auto}
.record-row{display:grid;grid-template-columns:1fr auto;gap:2px 8px;padding:8px 6px;border-bottom:1px solid #203b55}
.record-row:last-child{border-bottom:0}
.record-row span{font-size:10px;color:#7f9ab5}
.record-row b{font-size:16px}
.record-row small{font-size:10px;color:#8ea7c0}
.record-empty{text-align:center;padding:14px 0;color:#7f9ab5;font-size:12px}
@media (min-width:700px){
  .record-btn{width:116px;height:72px;border-radius:18px;font-size:27px}
  .record-panel{margin-top:18px;border-radius:24px;padding:20px}
  .record-head{margin-bottom:14px}
  .record-head b{font-size:24px}
  .record-head small{font-size:14px}
  .clear-records{height:52px;border-radius:14px;font-size:18px;padding:0 18px}
  .record-total{padding:14px 18px;border-radius:18px}
  .record-total span{font-size:17px}
  .record-total strong{font-size:30px}
  .record-total em{font-size:13px}
  .record-list{max-height:300px}
  .record-row{padding:12px 10px}
  .record-row span{font-size:13px}
  .record-row b{font-size:22px}
  .record-row small{font-size:13px}
  .record-empty{padding:22px 0;font-size:16px}
}
