/* 次走アタック（next.js）。メニューは6つ並びに合わせて行を低く（行高86px・間隔98px。next.js の refreshMenu が位置を決める） */
#bMenu.six .mrow { height: 86px; padding: 0 40px; }
#bMenu.six .mn { font-size: 34px; letter-spacing: 3px; }
#bMenu.six .ms { font-size: 17px; margin-top: 2px; }
#bMenu.six .ml { font-size: 15px; }
#bMenu.six .mvl { font-size: 36px; }
#bMenu.six .mvl small { font-size: 17px; }

#bNextMode { position: absolute; inset: 0; z-index: 70; display: none; background: linear-gradient(180deg, #1b2f66 0%, #12224a 55%, #0a1126 100%); color: #fff; font-family: inherit; }
#bNextMode button { font: inherit; cursor: pointer; user-select: none; -webkit-user-select: none; }
#nxSel, #nxPlay, #nxResult { position: absolute; inset: 0; display: none; }
#nxSel.on, #nxPlay.on, #nxResult.on { display: block; }

/* 馬名の入力 */
#nxSel 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; }
#nxIn { position: absolute; left: 290px; width: 700px; top: 170px; height: 64px; box-sizing: border-box; font-size: 30px; padding: 0 20px; border-radius: 12px; border: 3px solid #ffd54a; background: #0d1a3d; color: #fff; }
#nxList { position: absolute; left: 290px; width: 700px; top: 256px; height: 350px; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; scrollbar-width: thin; scrollbar-color: #6f86b8 rgba(0,0,0,0.2); }
#nxList button { height: 56px; font-size: 24px; color: #fff; background: rgba(255,255,255,0.12); border: 3px solid #9fb3d9; border-radius: 12px; padding: 0 10px; }
#nxList button:hover, #nxList button.hi { border-color: #ffd54a; background: linear-gradient(180deg, #5a8be8, #2a56b8); }
#nxList .none { grid-column: 1 / 3; text-align: center; color: #9fb3d9; font-size: 22px; padding-top: 20px; }
#nxRand { position: absolute; left: 1004px; top: 170px; width: 230px; height: 64px; box-sizing: border-box; padding: 0 10px; font-size: 26px; line-height: 1.1; }
#nxRand small { display: block; font-size: 14px; color: #ffe9a8; margin-top: 2px; }
#nxRand:disabled { opacity: 0.45; cursor: default; filter: none; }
#nxSel .back { position: absolute; left: 50%; top: 626px; transform: translateX(-50%); min-width: 160px; }

/* プレイ画面 */
#nxTop { position: absolute; left: 16px; right: 16px; top: 6px; height: 40px; display: flex; align-items: center; justify-content: space-between; font-size: 22px; }
#nxTitle { font-size: 26px; letter-spacing: 3px; color: #ffd54a; text-shadow: 0 2px 0 rgba(0,0,0,0.5); }
#nxTop .sc { margin-right: 84px; }
#nxTop .sc span { font-family: Consolas, "Courier New", monospace; font-size: 32px; color: #ffd54a; }
#nxQuit { position: absolute; right: 16px; top: 12px; font-size: 13px; padding: 0 14px; border-width: 2px; }

#nxTblW { position: absolute; left: 14px; top: 50px; width: 852px; height: 520px; 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); }
#nxTbl { table-layout: fixed; border-collapse: collapse; width: 100%; font-size: 15px; }
#nxTbl tr.rw { height: 34px; }
#nxTbl 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); }   /* 列幅は HDCareer.fitCols が実測で決める（名馬アタックと同じ） */
#nxTbl td.g1 { color: #ffd54a; } #nxTbl td.g2 { color: #9fd0ff; } #nxTbl td.g3 { color: #8fe3a0; }
#nxTbl td.hid { background: rgba(255,255,255,0.12); }
#nxTbl td.nok { color: #7dff9b; font-weight: bold; } #nxTbl td.nng { color: #ff9b9b; font-weight: bold; }
#nxTbl tr.fl td { animation: nxfl 0.6s ease-out; }
#nxTbl td.fl { animation: nxfl 0.6s ease-out; }
@keyframes nxfl { 0% { background-color: rgba(255,224,130,0.75); } 100% { background-color: rgba(255,224,130,0); } }

#nxSide { position: absolute; left: 876px; top: 50px; width: 390px; height: 520px; box-sizing: border-box; padding: 18px 20px; background: rgba(0,0,0,0.28); border: 2px solid #9fb3d9; border-radius: 8px; }
#nxSide .nh { font-size: 34px; color: #ffd54a; text-shadow: 0 2px 0 rgba(0,0,0,0.5); line-height: 1.2; }
#nxSide .nn { margin-top: 18px; font-size: 20px; color: #9fb3d9; }
#nxSide .nq { margin-top: 4px; font-size: 30px; line-height: 1.3; }
#nxSide .nf { margin-top: 30px; height: 40px; font-size: 34px; }
#nxSide .nf.ok { color: #7dff9b; } #nxSide .nf.ng { color: #ff9b9b; }
#nxSide .nc { margin-top: 6px; min-height: 60px; font-size: 24px; line-height: 1.35; color: #e8f0ff; word-break: break-all; }
#nxSide .ns { position: absolute; left: 20px; bottom: 20px; font-size: 22px; color: #cfe0ff; }
#nxSide .ns b { font-family: Consolas, "Courier New", monospace; font-size: 30px; color: #ffd54a; }
#nxSide .ns span { margin-left: 4px; color: #ffd54a; }
#nxNext { display: none; position: absolute; right: 16px; bottom: 14px; padding: 6px 28px; font-size: 22px; }
#nxSide.done #nxNext { display: block; }

#nxCh { position: absolute; left: 14px; top: 580px; width: 1252px; height: 128px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 60px); gap: 8px; }
#nxCh button { position: relative; font-size: 24px; line-height: 1.15; color: #fff; background: linear-gradient(180deg, #3f6fd6, #234a9c); border: 3px solid #ffd54a; border-radius: 12px; padding: 0 38px; }
#nxCh button.s1 { font-size: 20px; } #nxCh button.s2 { font-size: 16px; }
#nxCh button i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 16px; color: #ffe9a8; opacity: 0.85; }
#nxCh button:hover:not(:disabled) { filter: brightness(1.2); }
#nxCh button.ok { background: #2e9b4a; } #nxCh button.ng { background: #b3261e; }
#nxCh button:disabled { cursor: default; opacity: 0.95; }
#nxCh button:disabled:not(.ok):not(.ng) { background: rgba(255,255,255,0.1); border-color: #6f86b8; color: #9fb3d9; }

/* 結果 */
#nxResult h2 { position: absolute; left: 0; right: 0; top: 24px; margin: 0; text-align: center; font-size: 44px; color: #ffd54a; font-weight: normal; }
#nxResult .big { position: absolute; left: 90px; top: 110px; width: 300px; text-align: center; }
#nxResult .big .rk { font-size: 190px; line-height: 1; color: #ffd54a; text-shadow: 0 6px 0 #000; }
#nxResult .big .tot { font-size: 40px; font-family: Consolas, "Courier New", monospace; }
#nxResult .big .best { font-size: 20px; color: #cfe0ff; margin-top: 6px; line-height: 1.5; }
#nxResult .big .best small { font-size: 15px; color: #9fb3d9; }
#nxRList { position: absolute; left: 420px; top: 110px; width: 800px; height: 490px; box-sizing: border-box; overflow-y: auto; padding-right: 8px; scrollbar-width: thin; scrollbar-color: #6f86b8 rgba(0,0,0,0.2); }
#nxRList .sm { font-size: 26px; padding: 6px 4px 12px; border-bottom: 2px solid rgba(255,255,255,0.3); }
#nxRList .sm b { color: #ffd54a; font-family: Consolas, "Courier New", monospace; }
#nxRList .mi { font-size: 20px; line-height: 1.4; padding: 8px 4px; border-bottom: 1px solid rgba(255,255,255,0.15); }
#nxRList .mi .n { display: inline-block; min-width: 124px; color: #9fb3d9; }
#nxRList .mi b.ok { color: #7dff9b; font-weight: normal; } #nxRList .mi b.ng { color: #ff9b9b; font-weight: normal; }
#nxRList .mi.perfect { font-size: 30px; color: #7dff9b; padding: 40px 0; text-align: center; }
#nxResult .btns { position: absolute; left: 0; right: 0; top: 625px; text-align: center; }
#nxResult .btns .bb { margin: 0 8px; }
