/* 同級生アタック・年度アタック（gen.js）。メニューは2列×4行（行高124px・間隔140px。gen.js の refreshMenu が位置を決める） */
#bMenu.eight .mrow { height: 124px; padding: 0 26px; }
#bMenu.eight .mn { font-size: 32px; letter-spacing: 2px; }
#bMenu.eight .ms { font-size: 15px; margin-top: 4px; line-height: 1.3; white-space: normal; }
#bMenu.eight .mbx { min-width: 104px; }
#bMenu.eight .ml { font-size: 14px; }
#bMenu.eight .mvl { font-size: 32px; }
#bMenu.eight .mvl small { font-size: 15px; }

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

/* ---- 同級生アタック ---- */
#gcAsk { position: absolute; left: 0; right: 0; top: 62px; text-align: center; font-size: 26px; color: #cfe0ff; }
#gcRef { position: absolute; left: 40px; right: 40px; top: 100px; height: 100px; line-height: 100px; text-align: center; font-size: 76px; color: #ffd54a; text-shadow: 0 5px 0 #000; white-space: nowrap; }
#gcRef.s1 { font-size: 60px; } #gcRef.s2 { font-size: 46px; }
#gcRefSub { position: absolute; left: 0; right: 0; top: 206px; height: 30px; text-align: center; font-size: 22px; color: #9fb3d9; }
#gcCh { position: absolute; left: 50px; top: 248px; width: 1180px; height: 276px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 129px); gap: 18px; }
#gcCh button { position: relative; color: #fff; background: rgba(255,255,255,0.12); border: 3px solid #9fb3d9; border-radius: 14px; padding: 6px 14px 6px 40px; text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; }
#gcCh button:hover:not(:disabled) { filter: brightness(1.2); }
#gcCh button i { position: absolute; left: 12px; top: 10px; font-style: normal; font-size: 18px; color: #ffe9a8; opacity: 0.85; }
#gcCh .cnm { font-size: 32px; line-height: 1.15; word-break: break-all; } #gcCh .cnm.s1 { font-size: 26px; } #gcCh .cnm.s2 { font-size: 20px; }
#gcCh .cs { display: block; min-height: 20px; margin-top: 4px; font-size: 16px; color: #ffe9a8; }
#gcCh .ct { position: absolute; right: 12px; top: 8px; font-size: 16px; }
#gcCh button.sel { background: linear-gradient(180deg, #5a8be8, #2a56b8); border-color: #ffd54a; box-shadow: 0 0 0 3px rgba(255,213,74,0.45); }
#gcCh button.sel::after { content: "✓"; position: absolute; right: 12px; top: 6px; font-size: 26px; color: #ffd54a; }
#gcCh button:disabled { cursor: default; }
#gcCh button.hit { background: #2e9b4a; border-color: #7dff9b; } #gcCh button.hit .ct { color: #eaffef; }
#gcCh button.fp { background: #b3261e; border-color: #ff9b9b; } #gcCh button.fp .ct { color: #ffe0e0; }
#gcCh button.miss { background: rgba(255,213,74,0.22); border: 3px dashed #ffd54a; } #gcCh button.miss .ct { color: #ffd54a; }
#gcCh button.non { background: rgba(255,255,255,0.08); border-color: #6f86b8; color: #9fb3d9; } #gcCh button.non .cs { color: #7f93bd; }
#gcMsg { position: absolute; left: 0; right: 0; top: 544px; height: 56px; text-align: center; font-size: 26px; color: #e8f0ff; }
#gcMsg b { font-family: Consolas, "Courier New", monospace; font-size: 32px; color: #ffd54a; }
#gcMsg .p { color: #7dff9b; font-size: 30px; }
#gcGo { position: absolute; left: 50%; top: 622px; transform: translateX(-50%); min-width: 240px; font-size: 28px; }

#gcResult h2 { position: absolute; left: 0; right: 0; top: 24px; margin: 0; text-align: center; font-size: 44px; color: #ffd54a; font-weight: normal; }
#bGen .big { position: absolute; left: 90px; top: 110px; width: 300px; text-align: center; }
#bGen .big .rk { font-size: 190px; line-height: 1; color: #ffd54a; text-shadow: 0 6px 0 #000; }
#bGen .big .tot { font-size: 40px; font-family: Consolas, "Courier New", monospace; }
#bGen .big .best { font-size: 20px; color: #cfe0ff; margin-top: 6px; line-height: 1.5; }
#bGen .big .best small { font-size: 15px; color: #9fb3d9; }
#gcRList { 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); }
#gcRList .mi { font-size: 20px; line-height: 1.4; padding: 8px 4px; border-bottom: 1px solid rgba(255,255,255,0.15); }
#gcRList .mi .n { display: inline-block; min-width: 240px; color: #ffd54a; }
#gcRList .mi b.ok { color: #7dff9b; font-weight: normal; } #gcRList .mi b.ng { color: #ff9b9b; font-weight: normal; }
#gcRList .mi .sub { font-size: 16px; color: #9fb3d9; margin-top: 2px; }
#gcResult .btns { position: absolute; left: 0; right: 0; top: 625px; text-align: center; }
#gcResult .btns .bb { margin: 0 8px; }

/* ---- 年度アタック：設定 ---- */
#gySel 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; }
#gySel .gset { position: absolute; left: 0; right: 0; height: 70px; display: flex; align-items: center; justify-content: center; gap: 18px; }
#gySel .gl { width: 130px; text-align: right; font-size: 28px; color: #cfe0ff; }
#gySel .gst { width: 76px; height: 64px; padding: 0; font-size: 26px; }
#gySel .gv2 { display: block; width: 480px; height: 64px; line-height: 58px; box-sizing: border-box; text-align: center; font-size: 32px; color: #fff; background: #0d1a3d; border: 3px solid #ffd54a; border-radius: 12px; overflow: hidden; white-space: nowrap; }
#gyInfo { position: absolute; left: 0; right: 0; top: 380px; text-align: center; font-size: 28px; color: #ffd54a; }
#gyBst { position: absolute; left: 0; right: 0; top: 428px; text-align: center; font-size: 22px; color: #9fb3d9; height: 28px; }
#gyStart { position: absolute; left: 50%; top: 500px; transform: translateX(-50%); min-width: 260px; font-size: 30px; }
#gySel .back { position: absolute; left: 50%; top: 626px; transform: translateX(-50%); min-width: 160px; }

/* ---- 年度アタック：プレイ ---- */
#gySlots { position: absolute; left: 52px; top: 62px; width: 1176px; height: 200px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
#gySlots .gySlot { position: relative; box-sizing: border-box; border: 3px dashed #9fb3d9; border-radius: 14px; background: rgba(255,255,255,0.06); }
#gySlots .gySlot.over { border-style: solid; border-color: #ffd54a; background: rgba(255,213,74,0.16); }
#gySlots .gsy { height: 50px; line-height: 50px; text-align: center; font-size: 34px; color: #ffd54a; font-family: Consolas, "Courier New", monospace; text-shadow: 0 2px 0 rgba(0,0,0,0.5); }
#gySlots .gsb { position: absolute; left: 8px; right: 8px; top: 54px; height: 100px; }
#gySlots .gsa { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 28px; line-height: 28px; text-align: center; font-size: 18px; color: #ffe9a8; white-space: nowrap; overflow: hidden; }
#gySlots .gySlot.ok { border-style: solid; border-color: #7dff9b; background: rgba(46,155,74,0.25); }
#gySlots .gySlot.ng { border-style: solid; border-color: #ff9b9b; background: rgba(179,38,30,0.25); }
#gyPool { position: absolute; left: 52px; top: 284px; width: 1176px; height: 250px; box-sizing: border-box; padding: 6px; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(2, 1fr); gap: 14px; border-radius: 14px; border: 3px solid transparent; }
#gyPool.over { border-color: #ffd54a; background: rgba(255,213,74,0.08); }
#gyPool .gyCell { border: 2px dashed rgba(159,179,217,0.35); border-radius: 12px; min-height: 0; }
#bGen .gyChip { box-sizing: border-box; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; background: linear-gradient(180deg, #3f6fd6, #234a9c); border: 3px solid #ffd54a; border-radius: 12px; cursor: grab; padding: 0 6px; }
#bGen .gyChip:hover { filter: brightness(1.18); }
#bGen .gyChip .cn { font-size: 26px; line-height: 1.15; white-space: nowrap; }
#bGen .gyChip.z7 .cn { font-size: 22px; } #bGen .gyChip.z8 .cn { font-size: 20px; } #bGen .gyChip.z9 .cn { font-size: 18px; } #bGen .gyChip.z10 .cn { font-size: 16px; }
#bGen .gyChip.z11 .cn { font-size: 15px; white-space: normal; word-break: break-all; }   /* 枠に入る幅（約176px）に収まる大きさ。11文字以上は折り返す */
#bGen .gyChip .cw { margin-top: 4px; font-size: 15px; color: #ffe9a8; }
#bGen .gyChip.sel { background: linear-gradient(180deg, #ffe082, #f5b82e); color: #1b2f66; box-shadow: 0 0 0 4px rgba(255,213,74,0.55); }
#bGen .gyChip.drag { opacity: 0.4; }
#gyPool .gyChip.used { opacity: 0.5; }   /* 枠に入れた馬も選択肢に残る（何度でも使える）。目印として薄く表示 */
#gySlots .ok .gyChip { background: #2e9b4a; border-color: #7dff9b; cursor: default; }
#gySlots .ng .gyChip { background: #b3261e; border-color: #ff9b9b; cursor: default; }
#gyPool .gyChip[draggable="false"], #gySlots .gyChip[draggable="false"] { cursor: default; }
#gyMsg { position: absolute; left: 0; right: 0; top: 548px; height: 56px; text-align: center; font-size: 28px; color: #e8f0ff; }
#gyMsg b { font-family: Consolas, "Courier New", monospace; font-size: 34px; color: #ffd54a; }
#gyMsg .p { color: #7dff9b; font-size: 32px; }
#gyMsg small { font-size: 20px; color: #cfe0ff; }
#gyBtns { position: absolute; left: 0; right: 0; top: 622px; text-align: center; }
#gyBtns .bb { margin: 0 8px; font-size: 28px; min-width: 200px; }
#gyBtns .bb.sub { font-size: 22px; min-width: 150px; }
