/* 名馬アタック・名馬リベンジ（career.js）。メニューは5つ並びに合わせて行を低く（v1.6.3：行高104px・間隔114px） */
#bMenu .mrow { height: 104px; }
#bMenu .mn { font-size: 38px; }
#bMenu .ms { font-size: 19px; margin-top: 4px; }
#bMenu .ml { font-size: 17px; }
#bMenu .mvl { font-size: 44px; }
#bMenu .mvl small { font-size: 20px; }

#bCareer { position: absolute; inset: 0; z-index: 70; display: none; background: linear-gradient(180deg, #1b2f66 0%, #12224a 55%, #0a1126 100%); color: #fff; font-family: inherit; }
#bCareer button { font: inherit; cursor: pointer; user-select: none; -webkit-user-select: none; }
#crPlay, #crResult { position: absolute; inset: 0; display: none; }
#crPlay.on, #crResult.on { display: block; }
#crTop { position: absolute; left: 16px; right: 16px; top: 6px; height: 40px; display: flex; align-items: center; justify-content: space-between; font-size: 22px; }
#crTitle { font-size: 26px; letter-spacing: 3px; color: #ffd54a; text-shadow: 0 2px 0 rgba(0,0,0,0.5); }
#crProg { color: #cfe0ff; font-size: 20px; font-family: Consolas, "Courier New", monospace; }
#crTop .sc { margin-right: 84px; }
#crTop .sc span { font-family: Consolas, "Courier New", monospace; font-size: 32px; color: #ffd54a; }
#crQuit { position: absolute; right: 16px; top: 12px; font-size: 13px; padding: 0 14px; border-width: 2px; }

#crTblW { position: absolute; left: 14px; top: 50px; width: 852px; height: 594px; box-sizing: border-box; background: rgba(0,0,0,0.28); border: 2px solid #9fb3d9; border-radius: 8px; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #6f86b8 rgba(0,0,0,0.2); }
#crTbl { table-layout: fixed; border-collapse: collapse; width: 100%; font-size: 15px; }
#crTbl tr.rw { height: 34px; }
#crTbl tr.gone { display: none; }
#crTbl th { height: 26px; font-size: 13px; font-weight: normal; color: #cfe0ff; background: rgba(255,255,255,0.14); }
#crTbl td { padding: 1px 4px; line-height: 1.15; white-space: normal; word-break: break-all; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,0.1); }   /* 列幅は fitCols() が実測で決める。通常は折り返さない（長すぎる文字列だけ2行に折り返す。省略記号で隠すことはしない） */
#crTbl td.g1 { color: #ffd54a; } #crTbl td.g2 { color: #9fd0ff; } #crTbl td.g3 { color: #8fe3a0; }
#crTbl td.rs1 { color: #ffd54a; font-weight: bold; }
#crTbl tr.fl td { animation: crfl 0.6s ease-out; }

#crProf { position: absolute; left: 876px; top: 50px; width: 390px; height: 594px; box-sizing: border-box; padding: 8px 10px; background: rgba(0,0,0,0.28); border: 2px solid #9fb3d9; border-radius: 8px; overflow: hidden; }
#crProf .pg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
#crProf .pt { background: rgba(255,255,255,0.07); border-radius: 6px; padding: 3px 8px 4px; }
#crProf .pl { font-size: 11px; color: #9fb3d9; }
#crProf .pv { font-size: 13px; line-height: 17px; min-height: 17px; border-radius: 4px; }
#crProf .sec { font-size: 12px; color: #ffd54a; margin: 8px 0 3px; }
#crProf .pn { font-size: 13px; line-height: 17px; padding: 0 6px; margin: 1px 0; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#crProf .hid { color: transparent; background: rgba(255,255,255,0.13); }
#crProf .fl { animation: crfl 0.6s ease-out; }
@keyframes crfl { 0% { background-color: rgba(255,224,130,0.75); } 100% { background-color: rgba(255,224,130,0); } }

#crCh, #crType, #crFb { position: absolute; left: 14px; top: 654px; width: 1252px; height: 56px; }
#crCh { display: none; grid-template-columns: repeat(6, 1fr); gap: 8px; }
#crCh button { font-size: 22px; color: #fff; background: linear-gradient(180deg, #3f6fd6, #234a9c); border: 3px solid #ffd54a; border-radius: 12px; padding: 0 4px; }
#crCh button:hover:not(:disabled) { filter: brightness(1.2); }
#crCh button.ok { background: #2e9b4a; } #crCh button.ng { background: #b3261e; }
#crCh button:disabled { cursor: default; opacity: 0.9; }
#crType { display: flex; gap: 12px; }
#crPlay.ch #crType { display: none; }   /* 全ヒントが開くまではタイピング、開いたあとは6択（馬名は1つずつ開く） */
#crPlay.ch #crCh { display: grid; }
#crCh button:disabled:not(.ok):not(.ng) { background: rgba(255,255,255,0.1); border-color: #6f86b8; color: #9fb3d9; }
#crIn { flex: 1; font-size: 26px; padding: 0 16px; border-radius: 10px; border: 3px solid #ffd54a; background: #0d1a3d; color: #fff; }
#crIn::placeholder { color: rgba(207,224,255,0.38); font-size: 20px; }
#crType .bb { height: 56px; padding: 0 40px; }
#crType .bb:disabled { cursor: default; opacity: 0.5; filter: none; }
#crFb { display: none; background: rgba(0,0,0,0.55); border: 3px solid #9fb3d9; border-radius: 12px; box-sizing: border-box; }
#crPlay.done #crCh, #crPlay.done #crType { display: none; }
#crPlay.done #crFb { display: block; }
#crFb .m { position: absolute; left: 20px; top: 8px; font-size: 32px; }
#crFb .m.ok { color: #7dff9b; } #crFb .m.ng { color: #ff9b9b; }
#crFb .c { position: absolute; left: 260px; top: 12px; right: 220px; font-size: 18px; line-height: 1.4; color: #e8f0ff; }
#crFb .c b { font-size: 30px; color: #ffd54a; margin-right: 14px; }
#crFb .bb { position: absolute; right: 14px; top: 6px; }

#crResult h2 { position: absolute; left: 0; right: 0; top: 24px; margin: 0; text-align: center; font-size: 44px; color: #ffd54a; font-weight: normal; }
#crResult .big { position: absolute; left: 90px; top: 110px; width: 300px; text-align: center; }
#crResult .big .rk { font-size: 190px; line-height: 1; color: #ffd54a; text-shadow: 0 6px 0 #000; }
#crResult .big .tot { font-size: 40px; font-family: Consolas, "Courier New", monospace; }
#crResult .big .best { font-size: 20px; color: #cfe0ff; margin-top: 6px; line-height: 1.5; }
#crResult .big .best small { font-size: 15px; color: #9fb3d9; }
#crList { position: absolute; left: 420px; top: 120px; width: 780px; border-collapse: collapse; font-size: 26px; }
#crList td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.2); }
#crList .ok { color: #7dff9b; } #crList .ng { color: #ff9b9b; }
#crResult .btns { position: absolute; left: 0; right: 0; top: 625px; text-align: center; }
#crResult .btns .bb { margin: 0 8px; }

/* 名馬アタック専用オプション（beta.js のオプション画面は7行になるので行を低く） */
#bOpt .orow { height: 56px; }   /* v1.7.4：オプションが8行（海外所属馬の除外を追加）。8×56=448px で「もどる」ボタン（top:626px）に重ならない */
#crOpt { position: absolute; inset: 0; display: none; background: linear-gradient(180deg, #1b2f66 0%, #12224a 55%, #0a1126 100%); }
#crOpt.on { display: block; }
#crOpt h1 { position: absolute; left: 0; right: 0; top: 50px; margin: 0; text-align: center; font-size: 56px; color: #ffd54a; text-shadow: 0 4px 0 #000; font-weight: normal; }
#crOpt .olist { position: absolute; left: 190px; width: 900px; top: 180px; }
#crOpt .orow { position: relative; height: 84px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(159,179,217,0.28); }
#crOpt .orow:last-child { border-bottom: none; }
#crOpt .ol { font-size: 28px; }
#crOpt .oc { display: flex; align-items: center; gap: 18px; }
#crOpt .oc button { width: 60px; padding: 4px 0; font-size: 30px; }
#crOpt .oc button.tg { width: auto; min-width: 150px; padding: 6px 18px; font-size: 21px; }
#crOpt .oc button:disabled { opacity: 0.35; cursor: default; filter: none; }
#crOpt .tg.onv { background: linear-gradient(180deg, #4caf50, #2e7d32); border-color: #ffd54a; }
#crOpt .ov { min-width: 130px; text-align: center; font-size: 40px; color: #ffd54a; font-family: Consolas, "Courier New", monospace; }
#crOpt .back { position: absolute; left: 50%; top: 626px; transform: translateX(-50%); min-width: 160px; }

/* メタ読み対策：未開示のプロフィール欄は、中身の量に関係なく同じ大きさの枠にする */
#crProf .pv.hid { height: 17px; overflow: hidden; }
#crProf .pblk.hid { height: 120px; overflow: hidden; }

#crTbl td.jk.hid { background: rgba(255,255,255,0.12); }
#crTbl td.fl { animation: crfl 0.6s ease-out; }
/* v1.6.2：出題する年の範囲（beta.css の #bOpt .yc/.yl/.yv と同じ見た目） */
#crOpt .yc { gap: 8px; }
#crOpt .yc button { width: 52px; padding: 4px 0; font-size: 28px; }
#crOpt .yl { font-size: 18px; color: #cfe0ff; margin-left: 14px; }
#crOpt .yv { min-width: 84px; text-align: center; font-size: 34px; color: #ffd54a; font-family: Consolas, "Courier New", monospace; }
#crOpt .yn { display: block; font-size: 16px; color: #cfe0ff; }
