
.op-view { display: flex; flex-direction: column; height: 100%; }
.op-landing-view, .op-train-list-view, .op-guide-list-view { background: #050813 url(/img/minigames/tetra/generated/tetra-main-menu-bg-v2.png) center / cover no-repeat; }
.op-landing-view::before, .op-train-list-view::before, .op-guide-list-view::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg,rgba(3,6,14,.18),rgba(3,6,14,.78)); }
.op-landing-view > *, .op-train-list-view > *, .op-guide-list-view > * { position: relative; z-index: 1; }
.op-landing { flex: 1 1 auto; min-height: 0; width: min(100%,940px); margin: 0 auto; padding: clamp(24px,6vh,62px) 26px; box-sizing: border-box; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; gap: clamp(20px,3vw,34px); }
.op-entry-card { position: relative; height: clamp(290px,44vh,390px); overflow: hidden; display: flex; align-items: flex-end; gap: 18px; padding: 24px 25px; box-sizing: border-box; border: 1px solid rgba(91,224,230,.24); border-radius: 12px; color: #fff; text-align: left; cursor: pointer; background: #07101e url(/img/minigames/tetra/generated/tetra-mode-card-wide-opener-v1.png) center / cover no-repeat; box-shadow: 0 20px 54px rgba(0,0,0,.42), inset 0 0 0 1px rgba(255,255,255,.025); transition: transform .17s ease, border-color .17s ease, box-shadow .17s ease; }
.op-entry-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(2,5,12,.02) 25%,rgba(2,5,12,.76) 73%,rgba(2,5,12,.96)); }
.op-entry-card::after { content: ''; position: absolute; inset: 0; opacity: 0; pointer-events: none; background: linear-gradient(115deg,transparent 40%,rgba(255,255,255,.18) 50%,transparent 60%); background-size: 260% 100%; background-position: 130% 0; transition: opacity .15s; }
.op-entry-card:hover { transform: translateY(-6px) scale(1.012); border-color: rgba(123,233,255,.62); box-shadow: 0 28px 70px rgba(20,90,150,.35), inset 0 0 0 1px rgba(123,233,255,.16); }
.op-entry-card:hover::after { opacity: 1; animation: mgCardSheen2 .85s cubic-bezier(.25,.7,.3,1) 1; }
.op-entry-guides { background-position: 68% center; filter: hue-rotate(24deg); }
.op-entry-guides > * { filter: hue-rotate(-24deg); }
.op-entry-icon { position: relative; z-index: 1; flex: 0 0 auto; width: 82px; height: 82px; object-fit: contain; filter: drop-shadow(0 10px 20px rgba(0,0,0,.55)); }
.op-entry-copy { position: relative; z-index: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; padding-bottom: 4px; }
.op-entry-copy b { font-size: 24px; font-weight: 950; letter-spacing: -.02em; text-shadow: 0 3px 16px rgba(0,0,0,.85); }
.op-entry-copy small { font-size: 12px; font-weight: 750; line-height: 1.55; color: rgba(235,250,255,.76); text-shadow: 0 2px 10px rgba(0,0,0,.9); }
.op-select { flex: 1; overflow-y: auto; padding: 14px 16px 24px; }
.op-select-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(190px,1fr)); gap: 13px; max-width: 760px; margin: 0 auto; }
.op-card { position: relative; display: flex; flex-direction: column; gap: 7px; padding: 15px 14px 13px; border-radius: 16px; cursor: pointer; text-align: left; border: 1px solid rgba(160,120,255,.2); background: linear-gradient(165deg,rgba(36,29,54,.7),rgba(14,11,22,.65)); box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: transform .15s, box-shadow .15s, border-color .15s; overflow: hidden; }
.op-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg,#7be9ff,#a35ddf); opacity: .85; }
.op-card:hover { transform: translateY(-4px); border-color: rgba(150,110,255,.55); box-shadow: 0 18px 44px rgba(80,40,160,.4); }
.op-cat-pc::before { background: linear-gradient(180deg,#ffd23f,#e0760f); }
.op-cat-tsd::before { background: linear-gradient(180deg,#7be9ff,#2c84d6); }
.op-cat-tst::before { background: linear-gradient(180deg,#4fe06a,#1fb33f); }
.op-cat-triple::before { background: linear-gradient(180deg,#c06bff,#8a2fd6); }
.op-cat-combo::before { background: linear-gradient(180deg,#ff5a6e,#d62f43); }
.op-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.op-card-name { font-size: 16px; font-weight: 900; color: #fff; }
.op-card-tag { font-size: 10px; font-weight: 800; letter-spacing: .5px; color: rgba(255,255,255,.55); padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.06); text-transform: uppercase; }
.op-card-attack { font-size: 12px; font-weight: 700; color: #8ff0f5; }
.op-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 2px; }
.op-card-rate { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.5); }
.op-stars { display: flex; gap: 3px; }
.op-star { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.14); }
.op-star.on { background: linear-gradient(135deg,#ffd36e,#ff7a3c); box-shadow: 0 0 6px rgba(255,150,60,.5); }
.op-card-guided { position: absolute; top: 9px; right: 9px; font-size: 9px; font-weight: 900; letter-spacing: .5px; color: #0c1018; background: linear-gradient(135deg,#7be9ff,#5be0a0); padding: 2px 6px; border-radius: 5px; }

.op-intro { flex: 1; overflow-y: auto; display: flex; justify-content: center; padding: 18px 16px; }
.op-intro-card { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 11px; padding: 22px; border-radius: 20px; background: linear-gradient(165deg,rgba(34,27,50,.8),rgba(12,10,20,.7)); border: 1px solid rgba(160,120,255,.25); box-shadow: 0 18px 50px rgba(0,0,0,.5); }
.op-intro-h { display: flex; align-items: center; justify-content: space-between; }
.op-intro-name { font-size: 24px; font-weight: 900; background: linear-gradient(90deg,#7be9ff,#c79bff,#ff8aa0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.op-intro-attack { font-size: 15px; font-weight: 800; color: #8ff0f5; }
.op-intro-desc { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.72); margin: 2px 0; }
.op-intro-stat { display: flex; align-items: center; justify-content: space-between; font-size: 13px; padding: 7px 11px; border-radius: 9px; background: rgba(255,255,255,.04); }
.op-intro-stat span { color: rgba(255,255,255,.6); font-weight: 700; }
.op-intro-stat b { color: #fff; font-weight: 900; }
.op-dep-title { font-size: 13px; font-weight: 900; color: #ffd36e; margin-top: 4px; }
.op-dep-note { font-size: 11.5px; line-height: 1.5; color: rgba(255,255,255,.55); }
.op-deps { display: flex; flex-wrap: wrap; gap: 8px; }
.op-dep { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 9px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.op-dep-arrow { font-size: 11px; font-weight: 800; color: rgba(255,255,255,.5); }
.op-dep-none { font-size: 12px; color: rgba(255,255,255,.45); }
.op-mino { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px; font-size: 13px; font-weight: 900; color: #0c0c14; }
.op-mino-I { background: linear-gradient(135deg,#5be0e6,#2bb6bd); } .op-mino-J { background: linear-gradient(135deg,#5a7bff,#2f4fd6); color:#fff; }
.op-mino-L { background: linear-gradient(135deg,#ff9f43,#e06b00); } .op-mino-O { background: linear-gradient(135deg,#ffd23f,#e0a800); }
.op-mino-S { background: linear-gradient(135deg,#4fe06a,#1fb33f); } .op-mino-T { background: linear-gradient(135deg,#c06bff,#8a2fd6); color:#fff; }
.op-mino-Z { background: linear-gradient(135deg,#ff5a6e,#d62f43); color:#fff; }
.op-intro-btns { display: flex; flex-direction: column; gap: 9px; margin-top: 8px; }
.op-btn { padding: 12px 18px; border: none; border-radius: 8px; cursor: pointer; font-weight: 800; font-size: 14px; color: #fff; background-repeat: no-repeat; background-position: center; background-size: 100% 100%; transition: transform .12s ease, filter .12s ease; }
.op-btn:active { transform: translateY(1px); }
.op-btn-primary { color: #0c1018; background-image: url(/img/minigames/tetra/generated/ui-button-skins-v1/btn-primary-normal.png); }
.op-btn-primary:hover { background-image: url(/img/minigames/tetra/generated/ui-button-skins-v1/btn-primary-hover.png); }
.op-btn-primary:active { background-image: url(/img/minigames/tetra/generated/ui-button-skins-v1/btn-primary-press.png); }
.op-btn-bot { background-image: url(/img/minigames/tetra/generated/ui-button-skins-v1/btn-tab-normal.png); }
.op-btn-bot:hover { background-image: url(/img/minigames/tetra/generated/ui-button-skins-v1/btn-tab-hover.png); }
.op-btn-bot:active { background-image: url(/img/minigames/tetra/generated/ui-button-skins-v1/btn-tab-press.png); }
.op-btn-ghost, .op-btn-sm { background-image: url(/img/minigames/tetra/generated/ui-button-skins-v1/btn-ghost-normal.png); }
.op-btn-ghost:hover, .op-btn-sm:hover { background-image: url(/img/minigames/tetra/generated/ui-button-skins-v1/btn-ghost-hover.png); }
.op-btn-ghost:active, .op-btn-sm:active { background-image: url(/img/minigames/tetra/generated/ui-button-skins-v1/btn-ghost-press.png); }
.op-btn-sm { padding: 8px 14px; font-size: 12.5px; }
.op-btn-danger { background-image: url(/img/minigames/tetra/generated/ui-button-skins-v1/btn-danger-normal.png); }
.op-btn-danger:hover { background-image: url(/img/minigames/tetra/generated/ui-button-skins-v1/btn-danger-hover.png); }
.op-btn-danger:active { background-image: url(/img/minigames/tetra/generated/ui-button-skins-v1/btn-danger-press.png); }
.op-btn-success { color: #0c1018; background-image: url(/img/minigames/tetra/generated/ui-button-skins-v1/btn-success-normal.png); }
.op-btn-success:hover { background-image: url(/img/minigames/tetra/generated/ui-button-skins-v1/btn-success-hover.png); }
.op-btn-success:active { background-image: url(/img/minigames/tetra/generated/ui-button-skins-v1/btn-success-press.png); }

.op-play { overflow-y: auto; }
.op-stage { display: flex; gap: 14px; justify-content: center; align-items: flex-start; padding: 14px; }
.op-side { display: flex; flex-direction: column; gap: 8px; width: 132px; }
.op-right { width: 132px; }
.op-mini-label { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: rgba(255,255,255,.5); text-transform: uppercase; }
.op-hold, .op-next { background: #0c0c14; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; }
.op-board-wrap { position: relative; --op-cell: 30px; margin-top: calc(var(--op-cell) * 4); }
.op-board { background: #0c0c14; border: 2px solid rgba(160,120,255,.28); border-radius: 6px; box-shadow: 0 0 40px rgba(120,60,200,.2), inset 0 0 60px rgba(0,0,0,.5); display: block; }
.op-above { position: absolute; left: 0; top: calc(var(--op-cell) * -4); width: calc(var(--op-cell) * 10); height: calc(var(--op-cell) * 4); display: block; background: transparent; border: 0; pointer-events: none; z-index: 2; }
.op-board-ov { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; }
.op-flash { position: absolute; top: 34%; left: 50%; transform: translate(-50%,-50%); font-size: 22px; font-weight: 900; letter-spacing: 1px; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.85), 0 0 22px currentColor; pointer-events: none; white-space: nowrap; animation: tetraFlash .85s ease-out forwards; z-index: 4; }
.op-toast { position: absolute; top: 10px; left: 50%; transform: translateX(-50%) translateY(-12px); padding: 7px 14px; border-radius: 10px; font-size: 12.5px; font-weight: 800; color: #fff; background: rgba(20,16,30,.92); border: 1px solid rgba(160,120,255,.3); opacity: 0; transition: all .2s; pointer-events: none; white-space: nowrap; z-index: 5; }
.op-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.op-toast-bad { border-color: rgba(255,90,110,.6); color: #ffb3bd; }
.op-toast-warn { border-color: rgba(255,200,60,.5); color: #ffe08a; }
.op-toast-ok { border-color: rgba(90,224,160,.5); color: #9bf0c4; }

.op-step-panel { display: flex; flex-direction: column; gap: 6px; padding: 9px; border-radius: 11px; background: linear-gradient(160deg,rgba(91,224,230,.1),rgba(160,90,255,.06)); border: 1px solid rgba(91,224,230,.22); min-height: 40px; }
.op-step-cur { font-size: 12px; font-weight: 800; color: #eafcff; }
.op-step-keys { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.op-key { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 7px; background: linear-gradient(160deg,#221833,#160f22); border: 1px solid rgba(160,120,255,.4); box-shadow: 0 2px 0 rgba(0,0,0,.4); color: #fff; font-weight: 900; font-size: 12px; }
.op-key-drop { background: linear-gradient(160deg,#5be0e6,#a35ddf); color: #0c0c14; border-color: #8ff0f5; }
.op-key-soft { background: linear-gradient(160deg,#2a3550,#1a2238); border-color: rgba(120,160,255,.4); color: #bcd0ff; }
.op-key-spin { background: linear-gradient(160deg,#c06bff,#7a2fd6); color: #fff; border-color: #d9a8ff; box-shadow: 0 0 10px rgba(180,110,255,.6); }
.op-key-das { background: linear-gradient(160deg,#1f3a2e,#13261d); border-color: rgba(80,224,106,.5); color: #8fffb0; gap: 2px; }
.op-key-das .op-key-wall { width: 3px; height: 15px; border-radius: 1px; background: linear-gradient(180deg,#4fe06a,#1fb33f); box-shadow: 0 0 4px rgba(80,224,106,.7); }
.op-key-x { margin-left: 3px; font-size: 10px; color: #ffd36e; }
.op-key-sep { color: rgba(255,255,255,.3); font-weight: 900; font-size: 11px; }
.op-step-spin { font-size: 11px; font-weight: 800; color: #c79bff; }
.op-step-freeplace { font-size: 11.5px; color: rgba(255,255,255,.5); }
.op-step-free { margin-top: 5px; font-size: 11px; font-weight: 700; color: #ff7b86; line-height: 1.35; }
.op-step-done { color: #4fe06a; }
.op-stat { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.op-statbox { background: linear-gradient(160deg,rgba(255,255,255,.06),rgba(255,255,255,.015)); border: 1px solid rgba(255,255,255,.09); border-radius: 9px; padding: 6px 3px; text-align: center; }
.op-sv { font-size: 15px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.op-sl { font-size: 8.5px; font-weight: 800; letter-spacing: .5px; color: rgba(255,255,255,.45); text-transform: uppercase; margin-top: 2px; }

.op-controls { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 4px 16px 22px; }
.op-scope { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.6); }
.op-chip { padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.05); color: rgba(255,255,255,.7); font-weight: 800; font-size: 12px; cursor: pointer; transition: all .12s; }
.op-chip-on { background: linear-gradient(135deg,#5be0e6,#a35ddf); color: #0c1018; border-color: transparent; }
.op-check { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,.78); cursor: pointer; }
.op-check input { accent-color: #5be0e6; width: 15px; height: 15px; }
.op-pps { font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,.7); }
.op-pps b { color: #8ff0f5; }
#op-pps { width: 200px; accent-color: #5be0e6; }
.op-control-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.op-hint-bar { font-size: 11.5px; color: rgba(255,255,255,.5); text-align: center; max-width: 460px; line-height: 1.5; }

.op-imp { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px; border-radius: 18px; background: rgba(14,11,22,.96); border: 1px solid rgba(255,200,60,.4); box-shadow: 0 18px 50px rgba(0,0,0,.6); max-width: 88%; text-align: center; }
.op-imp-title { font-size: 17px; font-weight: 900; color: #ffd36e; }
.op-imp-body { display: flex; align-items: center; gap: 10px; }
.op-imp-arrow { font-size: 12px; font-weight: 800; color: rgba(255,255,255,.6); }
.op-imp-hl { width: 40px; height: 40px; font-size: 20px; border-radius: 9px; box-shadow: 0 0 16px currentColor; animation: opImpPulse 1s ease-in-out infinite; }
@keyframes opImpPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.op-imp-msg { font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.78); }
@media (max-width: 720px) {
  .op-stage { gap: 7px; padding: 8px; }
  .op-side, .op-right { width: 84px; }
  #op-pps { width: 150px; }
}

.op-pm { display: inline-block; vertical-align: middle; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
.op-imp-bag { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; justify-content: center; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.04); }
.op-bagchip { display: inline-flex; align-items: center; justify-content: center; padding: 4px; border-radius: 7px; }
.op-bagchip.op-chip-hl { background: rgba(255,200,60,.18); box-shadow: 0 0 0 2px #ffd23f, 0 0 14px rgba(255,210,60,.6); animation: opImpPulse 1s ease-in-out infinite; }
.op-bag-sep { width: 1px; height: 18px; background: rgba(255,255,255,.12); }
.op-imp-hl { transform: scale(1.05); }
.op-build-note { font-size: 11.5px; line-height: 1.5; color: rgba(143,240,245,.7); padding: 9px 12px; border-radius: 10px; background: rgba(91,224,230,.07); border: 1px solid rgba(91,224,230,.18); }
.op-botcol { width: auto; align-items: center; }
.op-bot-label { color: #ff9bb0; }
.op-bot-row { display: flex; gap: 7px; align-items: flex-start; }
.op-botnext-col { display: flex; flex-direction: column; gap: 5px; }
.op-botnext-label { font-size: 9px; color: rgba(255,200,60,.7); }
.op-botnext { background: #0c0c14; border: 1px solid rgba(255,200,60,.25); border-radius: 6px; display: block; }
.op-botboard-wrap { position: relative; }
.op-botboard { background: #0c0c14; border: 2px solid rgba(255,90,110,.3); border-radius: 6px; box-shadow: 0 0 26px rgba(214,47,67,.16); display: block; }
.op-bot-done { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; flex-direction: column; font-size: 14px; font-weight: 900; color: #5be0a0; text-align: center; background: rgba(8,10,16,.82); border-radius: 6px; text-shadow: 0 0 14px rgba(91,224,160,.6); animation: tetraFlash .5s ease-out; }
.op-botstat { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; }
@media (max-width: 720px) { .op-botcol { width: 70px; } }

.op-bot-spike { font-size: 13px; font-weight: 900; color: #ff8aa0; margin-top: 4px; text-shadow: 0 0 10px rgba(255,90,110,.6); }

.op-board-wrap { display: flex; align-items: stretch; gap: 6px; }
.op-garbage-meter { width: 12px; align-self: stretch; display: flex; flex-direction: column-reverse; gap: 1px; border-radius: 4px; overflow: hidden; background: rgba(10,10,18,0.7); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); }
.op-garbage-meter .op-gseg { flex: 1 1 0; background: transparent; transition: background .12s; }
.op-garbage-meter .op-gseg.inc { background: linear-gradient(90deg, #b8731e, #ffb340); box-shadow: 0 0 5px rgba(255,160,40,0.55); }
.op-garbage-meter .op-gseg.armed { background: linear-gradient(90deg, #c41f2e, #ff3b46); box-shadow: 0 0 7px rgba(255,50,60,0.85); }
.op-garbage-meter.danger { animation: opGaugePulse .55s ease-in-out infinite; }
@keyframes opGaugePulse { 0%,100% { box-shadow: inset 0 0 0 1px rgba(255,60,70,0.5); } 50% { box-shadow: inset 0 0 0 1px rgba(255,60,70,1), 0 0 9px rgba(255,50,60,0.7); } }

.op-card-train::before { background: linear-gradient(180deg,#ffd36e,#ff8a3d); opacity: 1; }
.op-card-train { border-color: rgba(255,180,80,.4); background: linear-gradient(165deg,rgba(54,40,20,.72),rgba(24,16,8,.66)); }
.op-card-train:hover { border-color: rgba(255,190,90,.7); box-shadow: 0 18px 44px rgba(180,110,20,.42); }
.op-card-train .op-card-name { color: #ffe1a0; }
.op-card-train .op-card-attack { color: #ffcf8a; }
.op-tag-train { color: #1a1208 !important; background: linear-gradient(135deg,#ffd36e,#ffab4d) !important; }

.op-home-tabs { display: flex; gap: 8px; max-width: 760px; margin: 0 auto 12px; padding: 0 14px; box-sizing: border-box; }
.op-home-tab { flex: 1 1 0; min-height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.045); color: rgba(255,255,255,.7); font-weight: 900; cursor: pointer; }
.op-home-tab.active { color: #081018; border-color: rgba(123,233,255,.65); background: linear-gradient(135deg,#7be9ff,#5be0a0); box-shadow: 0 8px 20px rgba(91,224,230,.22); }
.op-home-tab:not(.active):hover { color: #fff; background: rgba(123,233,255,.12); }
.op-train-home { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 18px 18px 30px; max-width: 900px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.op-train-intro { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.72); background: rgba(255,255,255,.04); border: 1px solid rgba(255,180,80,.16); border-radius: 14px; padding: 13px 15px; margin-bottom: 14px; }
.op-train-new { position: relative; width: 100%; min-height: 104px; margin-bottom: 18px; padding: 14px 22px; display: flex; align-items: center; gap: 16px; overflow: hidden; border: 1px solid rgba(255,193,87,.38); border-radius: 12px; color: #fff; text-align: left; cursor: pointer; background: linear-gradient(110deg,rgba(94,54,12,.84),rgba(25,18,26,.9)),url(/img/minigames/tetra/generated/tetra-mode-card-wide-opener-v1.png) center / cover no-repeat; box-shadow: 0 13px 34px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.04); transition: transform .15s ease,border-color .15s ease,box-shadow .15s ease; }
.op-train-new:hover { transform: translateY(-3px); border-color: rgba(255,211,110,.75); box-shadow: 0 18px 44px rgba(130,75,18,.35); }
.op-train-new-icon { width: 70px; height: 70px; object-fit: contain; flex: 0 0 auto; filter: drop-shadow(0 8px 18px rgba(0,0,0,.5)); }
.op-train-new span { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.op-train-new b { font-size: 18px; font-weight: 950; color: #fff1c4; }
.op-train-new small { font-size: 11.5px; line-height: 1.45; color: rgba(255,255,255,.68); }
.op-train-list { display: flex; flex-direction: column; gap: 10px; }
.op-train-loading, .op-train-empty { text-align: center; color: rgba(255,255,255,.5); font-size: 13px; padding: 28px 12px; }
.op-train-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border-radius: 14px; border: 1px solid rgba(160,120,255,.2); background: linear-gradient(165deg,rgba(36,29,54,.7),rgba(14,11,22,.65)); box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.op-train-row-main { min-width: 0; flex: 1 1 auto; }
.op-train-row-name { font-size: 16px; font-weight: 900; color: #fff; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-train-row-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.op-train-st { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 7px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.7); }
.op-train-st-ok { color: #5be0a0; background: rgba(91,224,160,.13); }
.op-train-st-no { color: #ff7a8a; background: rgba(255,90,110,.13); }
.op-train-st-rate { color: #8ff0f5; background: rgba(120,200,255,.12); }
.op-train-st-date { color: rgba(255,255,255,.45); background: transparent; }
.op-train-row-btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; flex: 0 1 330px; }
.op-train-del:hover { background: rgba(255,80,90,.22) !important; border-color: rgba(255,80,90,.5) !important; }

.op-train-new-form { padding: 20px 16px; max-width: 520px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 12px; }
.op-train-new-q { font-size: 19px; font-weight: 900; color: #ffe1a0; text-align: center; margin-top: 8px; }
.op-train-input { padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255,180,80,.35); background: rgba(0,0,0,.4); color: #fff; font-size: 16px; font-weight: 700; outline: none; }
.op-train-input:focus { border-color: rgba(255,200,90,.7); box-shadow: 0 0 0 3px rgba(255,180,80,.15); }
.op-train-new-hint { font-size: 12px; line-height: 1.5; color: rgba(255,255,255,.55); text-align: center; }
.op-train-new-btns { display: flex; gap: 10px; margin-top: 4px; }
.op-train-new-btns .op-btn { flex: 1 1 0; }
@media (max-width: 720px) {
  .op-landing { grid-template-columns: minmax(0,1fr); align-content: start; overflow-y: auto; padding: 18px 14px 30px; }
  .op-entry-card { height: 230px; min-height: 230px; padding: 18px; }
  .op-entry-icon { width: 66px; height: 66px; }
  .op-entry-copy b { font-size: 20px; }
  .op-train-home { padding: 14px 10px 26px; }
  .op-train-row { align-items: stretch; flex-direction: column; }
  .op-train-row-btns { flex: 0 0 auto; justify-content: stretch; }
  .op-train-row-btns .op-btn { flex: 1 1 46%; }
}

.op-train-side-tally { display: flex; gap: 5px; flex-wrap: wrap; margin: 8px 0 4px; justify-content: center; }
.op-btn-quit { background-image: url(/img/minigames/tetra/generated/ui-button-skins-v1/btn-danger-normal.png) !important; background-size: 100% 100% !important; background-repeat: no-repeat !important; border: 0 !important; color: #fff !important; }
.op-btn-quit:hover { background-image: url(/img/minigames/tetra/generated/ui-button-skins-v1/btn-danger-hover.png) !important; }
.op-btn-quit:active { background-image: url(/img/minigames/tetra/generated/ui-button-skins-v1/btn-danger-press.png) !important; }

.op-train-result { border-color: rgba(120,200,255,.45) !important; }
.op-train-result-sub { font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.7); }
.op-train-result-btns { display: flex; gap: 12px; margin: 4px 0; }
.op-train-result-foot { display: flex; gap: 10px; margin-top: 4px; }
.op-btn-success { color: #0c1018; background-image: url(/img/minigames/tetra/generated/ui-button-skins-v1/btn-success-normal.png); background-size: 100% 100%; background-repeat: no-repeat; min-width: 110px; }
.op-btn-success:hover { background-image: url(/img/minigames/tetra/generated/ui-button-skins-v1/btn-success-hover.png); }
.op-btn-success:active { background-image: url(/img/minigames/tetra/generated/ui-button-skins-v1/btn-success-press.png); }
.op-btn-fail { color: #fff; background-image: url(/img/minigames/tetra/generated/ui-button-skins-v1/btn-danger-normal.png); background-size: 100% 100%; background-repeat: no-repeat; min-width: 110px; }
.op-btn-fail:hover { background-image: url(/img/minigames/tetra/generated/ui-button-skins-v1/btn-danger-hover.png); }
.op-btn-fail:active { background-image: url(/img/minigames/tetra/generated/ui-button-skins-v1/btn-danger-press.png); }

.op-train-guide { color: #0c1018 !important; background: linear-gradient(135deg,#7be9ff,#8ff0f5) !important; border-color: rgba(123,233,255,.5) !important; font-weight: 800; }
.op-train-guide:hover { box-shadow: 0 0 16px rgba(123,233,255,.45); }
.op-guide-legend { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; font-size: 11px; color: rgba(255,255,255,.72); }
.op-gl-row { display: flex; align-items: center; gap: 7px; line-height: 1.3; }
.op-gl-swatch { flex: 0 0 auto; width: 15px; height: 15px; border-radius: 4px; }
.op-gl-fix { background: rgba(123,233,255,.38); border: 2px dashed #7be9ff; }
.op-gl-plan { background: rgba(255,255,255,.08); border: 1px dashed rgba(255,255,255,.35); }
.op-gl-res { background: rgba(255,59,70,.22); border: 2px dashed #ff5a6e; }
.op-gl-spin { background: rgba(255,225,77,.25); border: 3px dotted #ffe14d; }
.op-guide-step { margin: 9px 0 4px; padding: 9px 11px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); min-height: 20px; }
.op-gstep { font-size: 13px; font-weight: 800; color: #e8ecf5; line-height: 1.4; }
.op-gstep-go { color: #7be9ff; }
.op-gstep-hold { color: #ffd36e; }
.op-gstep-bad { color: #ff7a8a; }
.op-gstep-ok { color: #5be0a0; }
.op-gstep-spin { font-size: 11px; font-weight: 700; color: #ffe14d; margin-top: 3px; }
.op-gstep-head { font-size: 11px; font-weight: 800; color: #a8b0c0; margin-bottom: 5px; letter-spacing: .3px; }
.op-ghint { position: absolute; top: 14%; left: 50%; transform: translateX(-50%) translateY(-6px); padding: 8px 18px; border-radius: 999px; font-weight: 900; font-size: 15px; white-space: nowrap; pointer-events: none; opacity: 0; z-index: 6; box-shadow: 0 6px 20px rgba(0,0,0,.45); transition: opacity .18s ease, transform .18s ease; }
.op-ghint.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.op-ghint kbd { display: inline-block; margin-left: 7px; padding: 2px 9px; border-radius: 7px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.25); font-size: 13px; font-weight: 900; vertical-align: middle; }
.op-ghint-place { color: #08121a; background: linear-gradient(135deg,#7be9ff,#9bf0d4); box-shadow: 0 6px 22px rgba(123,233,255,.5); animation: ghintPulse 1.15s ease-in-out infinite; }
.op-ghint-spin { color: #1a1208; background: linear-gradient(135deg,#ffe14d,#ffb02e); box-shadow: 0 6px 22px rgba(255,200,60,.6); animation: ghintPulse .8s ease-in-out infinite; }
.op-ghint-hold { color: #fff; background: linear-gradient(135deg,#ff9f43,#ff5e3a); box-shadow: 0 6px 22px rgba(255,120,50,.5); animation: ghintBob 1s ease-in-out infinite; }
.op-ghint-free { color: #fff; background: linear-gradient(135deg,#ff6a7e,#d62f55); box-shadow: 0 6px 22px rgba(214,47,80,.5); }
.op-ghint-ok { color: #08121a; background: linear-gradient(135deg,#5be0a0,#7be9ff); box-shadow: 0 6px 24px rgba(91,224,160,.55); animation: ghintPop .5s ease; }
.op-ghint-algo { color: #fff; background: linear-gradient(135deg,#ff5a6e,#9c1b2e); box-shadow: 0 6px 22px rgba(156,27,46,.6); border: 1px solid rgba(255,255,255,.16); }
@keyframes ghintPulse { 0%,100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.07); } }
@keyframes ghintBob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-4px); } }
@keyframes ghintPop { 0% { transform: translateX(-50%) scale(.6); opacity: 0; } 60% { transform: translateX(-50%) scale(1.12); } 100% { transform: translateX(-50%) scale(1); opacity: 1; } }

.op-badge { grid-column: 1 / -1; font-size: 12px; font-weight: 800; padding: 4px 8px; border-radius: 6px; text-align: center; margin-top: 6px; }
.op-badge-b2b { background: linear-gradient(135deg,rgba(255,150,60,.25),rgba(255,90,45,.15)); color: #ffb86b; border: 1px solid rgba(255,150,60,.35); }
.op-badge-combo { background: rgba(124,92,255,.2); color: #c4b5fd; }
.op-badge-surge { background: linear-gradient(135deg,rgba(91,224,230,.28),rgba(160,90,255,.22)); color: #8ff0f5; border: 1px solid rgba(91,224,230,.5); font-weight: 900; letter-spacing: .5px; animation: opSurgePulse 1s ease-in-out infinite; }
@keyframes opSurgePulse { 0%,100% { box-shadow: 0 0 8px rgba(91,224,230,.25); } 50% { box-shadow: 0 0 18px rgba(91,224,230,.55); } }

.op-settings-ov { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(8,6,16,.9); z-index: 9999; }
.op-settings { width: min(420px,92%); max-height: 92%; overflow-y: auto; background: linear-gradient(165deg,#16121f,#0e0b15); border: 1px solid rgba(160,120,255,.25); border-radius: 16px; padding: 20px; color: #fff; box-shadow: 0 18px 60px rgba(0,0,0,.6); }
.op-set-title { font-size: 19px; font-weight: 900; letter-spacing: 2px; text-align: center; margin-bottom: 14px; background: linear-gradient(90deg,#5be0e6,#c06bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.op-set-sec { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(160,120,255,.8); margin: 14px 0 8px; border-bottom: 1px solid rgba(255,255,255,.08); padding-bottom: 5px; }
.op-set-row { display: grid; grid-template-columns: 120px 1fr 38px; align-items: center; gap: 10px; margin-bottom: 9px; font-size: 13px; color: rgba(255,255,255,.75); }
.op-set-row input[type=range] { width: 100%; accent-color: #c06bff; }
.op-set-row b { text-align: right; color: #fff; font-variant-numeric: tabular-nums; }
.op-key-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.op-key-btn { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 9px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: rgba(255,255,255,.6); cursor: pointer; font-size: 13px; transition: all .12s; }
.op-key-btn em { font-style: normal; font-weight: 800; color: #fff; background: rgba(0,0,0,.3); padding: 2px 8px; border-radius: 6px; min-width: 40px; text-align: center; }
.op-key-btn:hover { border-color: rgba(160,120,255,.5); }
.op-key-btn.cap { border-color: #c06bff; background: rgba(160,120,255,.18); }
.op-key-btn.cap em { color: #c06bff; }
.op-set-btns { display: flex; gap: 10px; margin-top: 18px; }
.op-set-btns .op-btn { flex: 1; }

.op-filter-toggle { display: inline-flex; align-items: center; gap: 7px; }
.op-filter-toggle .op-ft-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 2px rgba(255,255,255,.22); transition: all .18s; flex: 0 0 auto; }
.op-filter-toggle.on .op-ft-dot { background: radial-gradient(circle at 35% 30%, #c4f7dc, #2fb854); box-shadow: 0 0 9px rgba(79,224,106,.85), inset 0 0 0 1px rgba(255,255,255,.45); }
.op-filter-toggle.on { box-shadow: 0 0 0 1px rgba(79,224,106,.55), 0 0 10px rgba(79,224,106,.28); }
.op-btn-bag { color: #ffd0d6 !important; }
.op-btn-bagadd { color: #ffe0a8 !important; }

@keyframes opBagFlash { 0%,100% { box-shadow: none; } 20%,60% { box-shadow: 0 0 0 3px rgba(255,90,110,.9), 0 0 22px rgba(255,90,110,.7); } }
.op-bagflash { animation: opBagFlash .6s ease; border-radius: 8px; }

.op-bagrules { width: min(560px,94%); max-height: 92%; overflow-y: auto; background: linear-gradient(165deg,#16121f,#0e0b15); border: 1px solid rgba(160,120,255,.25); border-radius: 16px; padding: 20px; color: #fff; box-shadow: 0 18px 60px rgba(0,0,0,.6); }
.op-bagrules .op-set-title { position: relative; }
.op-bag-x { position: absolute; right: 0; top: -2px; width: 28px; height: 28px; border: none; background: rgba(255,255,255,.06); color: #cbb8ff; -webkit-text-fill-color: #cbb8ff; border-radius: 8px; font-size: 15px; cursor: pointer; }
.op-bag-x:hover { background: rgba(255,90,110,.2); color: #ffb3bd; -webkit-text-fill-color: #ffb3bd; }
.op-bag-desc { font-size: 12px; line-height: 1.5; color: rgba(220,215,235,.75); margin-bottom: 14px; }

.op-bag-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.op-bag-tab { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 62px; padding: 7px 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; cursor: pointer; color: #d7d2ea; transition: all .15s; }
.op-bag-tab:hover { border-color: rgba(160,120,255,.45); }
.op-bag-tab.active { background: rgba(160,120,255,.16); border-color: #c06bff; }
.op-bag-tab-n { font-size: 12px; font-weight: 800; }
.op-bag-tab-bar { width: 46px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.op-bag-tab-bar > span { display: block; height: 100%; background: linear-gradient(90deg,#4fe06a,#2fb854); border-radius: 3px; }
.op-bag-tab-add, .op-bag-tab-del { justify-content: center; min-width: 40px; font-size: 16px; font-weight: 900; color: #9bf0c4; }
.op-bag-tab-del { color: #ffb3bd; }

.op-bag-railhint { font-size: 11.5px; color: rgba(180,210,255,.8); margin-bottom: 8px; }
.op-bag-rail { display: grid; grid-template-columns: repeat(7,1fr); gap: 6px; margin-bottom: 12px; }
.op-bag-slot { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 9px; border: 1.5px dashed rgba(255,255,255,.18); background: rgba(255,255,255,.03); transition: all .15s; cursor: pointer; }
.op-bag-slot.empty:hover { border-color: rgba(160,120,255,.5); }
.op-bag-any { font-size: 18px; font-weight: 800; color: rgba(255,255,255,.3); animation: opAnyPulse 1.8s ease-in-out infinite; }
@keyframes opAnyPulse { 0%,100% { opacity: .35; } 50% { opacity: .8; } }
.op-bag-slot.filled { border-style: solid; border-color: transparent; background: transparent; }
.op-bag-slot.drop { border-color: #c06bff; background: rgba(192,107,255,.15); box-shadow: 0 0 10px rgba(192,107,255,.5); }
.op-pc { display: block; }
.op-bag-slot .op-pc { width: 84%; height: 84%; }
.op-pc-slot { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; flex: 0 0 auto; }
.op-pc-slot .op-pc { width: 100%; height: 100%; }
.op-pc-any { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; color: rgba(255,255,255,.32); font-weight: 900; flex: 0 0 auto; }

.op-bp { display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-weight: 900; font-size: 15px; color: rgba(0,0,0,.5); text-shadow: 0 1px 0 rgba(255,255,255,.25); box-shadow: inset 0 2px 3px rgba(255,255,255,.4), inset 0 -3px 5px rgba(0,0,0,.32), 0 2px 5px rgba(0,0,0,.3); }
.op-bp.sm { width: 20px; height: 20px; border-radius: 5px; font-size: 11px; }
.op-bp-any { background: rgba(255,255,255,.07) !important; color: rgba(255,255,255,.4) !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14) !important; text-shadow: none; }
.op-bp-I { background: linear-gradient(160deg,#5be0e6,#2bb6bd); }
.op-bp-J { background: linear-gradient(160deg,#5a7bff,#2f4fd6); }
.op-bp-L { background: linear-gradient(160deg,#ff9f43,#e06b00); }
.op-bp-O { background: linear-gradient(160deg,#ffd23f,#e0a800); }
.op-bp-S { background: linear-gradient(160deg,#4fe06a,#1fb33f); }
.op-bp-T { background: linear-gradient(160deg,#c06bff,#8a2fd6); }
.op-bp-Z { background: linear-gradient(160deg,#ff5a6e,#d62f43); }

.op-bag-palette { display: grid; grid-template-columns: repeat(7,1fr); gap: 6px; margin-bottom: 14px; }
.op-bag-pal { aspect-ratio: 1; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; background: rgba(255,255,255,.05); cursor: grab; display: flex; align-items: center; justify-content: center; transition: transform .12s, box-shadow .15s, opacity .15s; }
.op-bag-pal .op-pc { width: 86%; height: 86%; }
.op-bag-pal:hover { transform: translateY(-2px); border-color: rgba(160,120,255,.45); }
.op-bag-pal:active { cursor: grabbing; }
.op-bag-pal.used { opacity: .25; cursor: default; filter: grayscale(.6); }
.op-bag-pal.sel { outline: 3px solid #fff; outline-offset: 1px; box-shadow: 0 0 14px rgba(255,255,255,.6); }

.op-bag-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.op-bag-seg { display: inline-flex; border-radius: 9px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); }
.op-bag-segb { padding: 8px 16px; background: rgba(255,255,255,.03); border: none; color: #b9b3cf; font-weight: 800; font-size: 13px; cursor: pointer; }
.op-bag-segb.on.ok { background: linear-gradient(90deg,rgba(79,224,106,.3),rgba(47,184,84,.25)); color: #9bf0c4; }
.op-bag-segb.on.no { background: linear-gradient(90deg,rgba(255,90,110,.3),rgba(214,47,67,.25)); color: #ffb3bd; }

.op-bag-rules-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; max-height: 180px; overflow-y: auto; }
.op-bag-empty { font-size: 12px; color: rgba(220,215,235,.55); padding: 12px; text-align: center; border: 1px dashed rgba(255,255,255,.12); border-radius: 10px; }
.op-bag-rule { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.op-bag-rule.no { border-color: rgba(255,90,110,.4); }
.op-bag-rule.ok { border-color: rgba(79,224,106,.4); }
.op-bag-rule-badge { font-size: 14px; flex: 0 0 auto; }
.op-bag-rule-pat { display: flex; gap: 3px; flex: 1; flex-wrap: nowrap; }
.op-bag-rule-pat .op-pc-slot, .op-bag-rule-pat .op-pc-any { width: 20px; height: 20px; }
.op-bag-rule-del { border: none; background: transparent; color: #ffb3bd; cursor: pointer; font-size: 14px; padding: 2px 6px; border-radius: 6px; flex: 0 0 auto; }
.op-bag-rule-del:hover { background: rgba(255,90,110,.18); }

.op-bag-foot { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.op-bag-default { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #d7d2ea; flex-wrap: wrap; }
.op-bag-default > span { margin-right: 4px; font-weight: 700; }
.op-bag-defb { padding: 6px 13px; border-radius: 8px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.03); color: #b9b3cf; font-weight: 800; font-size: 12px; cursor: pointer; }
.op-bag-defb.on.ok { background: rgba(79,224,106,.22); border-color: rgba(79,224,106,.5); color: #9bf0c4; }
.op-bag-defb.on.no { background: rgba(255,90,110,.22); border-color: rgba(255,90,110,.5); color: #ffb3bd; }
.op-bag-ratio { display: flex; align-items: center; gap: 10px; }
.op-bag-ratio-lbl-pre { font-size: 11.5px; font-weight: 700; color: rgba(220,215,235,.7); flex: 0 0 auto; }
.op-bag-ratio-bar { flex: 1; height: 9px; border-radius: 5px; background: rgba(255,255,255,.08); overflow: hidden; }
.op-bag-ratio-bar > span { display: block; height: 100%; background: linear-gradient(90deg,#4fe06a,#9bf0c4); border-radius: 5px; transition: width .25s; }
.op-bag-ratio-lbl { font-size: 12px; font-weight: 800; color: #9bf0c4; min-width: 84px; text-align: right; }
.op-bag-bottom { margin-top: 16px; }
.op-bag-bottom .op-btn { width: 100%; }

.op-bag-sec-t { font-size: 12px; font-weight: 900; letter-spacing: .5px; color: #cbb8ff; margin: 16px 0 6px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.op-bag-ord-desc { font-size: 11.5px; line-height: 1.5; color: rgba(220,215,235,.7); margin-bottom: 10px; }
.op-bag-ord-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.op-bag-ord-lbl { font-size: 11.5px; font-weight: 800; color: #d7d2ea; min-width: 86px; flex: 0 0 auto; }
.op-bag-ord-pick { display: flex; gap: 5px; flex-wrap: wrap; }
.op-bag-ordp, .op-bag-ordb { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: rgba(255,255,255,.05); display: flex; align-items: center; justify-content: center; padding: 5px; cursor: pointer; transition: all .12s; }
.op-bag-ordp .op-pc, .op-bag-ordb .op-pc { width: 100%; height: 100%; opacity: .5; transition: opacity .12s; }
.op-bag-ordp:hover, .op-bag-ordb:hover { border-color: rgba(160,120,255,.45); }
.op-bag-ordp.on { border-color: #c06bff; background: rgba(192,107,255,.2); box-shadow: 0 0 8px rgba(192,107,255,.4); }
.op-bag-ordb.on { border-color: #ff5a6e; background: rgba(255,90,110,.18); box-shadow: 0 0 8px rgba(255,90,110,.35); }
.op-bag-ordp.on .op-pc, .op-bag-ordb.on .op-pc { opacity: 1; }
.op-bag-ordb.dis { opacity: .22; cursor: default; pointer-events: none; }
.op-bag-ord-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0; }
.op-bag-ord-prev { display: flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 9px; background: rgba(255,90,110,.1); border: 1px solid rgba(255,90,110,.3); }
.op-bag-ord-prev .op-pc-slot { width: 22px; height: 22px; }
.op-bag-ord-prevtxt { font-size: 11.5px; font-weight: 800; color: #ffb3bd; margin-left: 4px; }
.op-bag-ord-arw { color: rgba(255,255,255,.5); font-weight: 900; margin: 0 3px; }
.op-bag-ord-add.disabled { opacity: .4; pointer-events: none; }
.op-bag-ord-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; max-height: 150px; overflow-y: auto; }
.op-bag-ord-item { display: flex; align-items: center; gap: 4px; flex: 1; flex-wrap: wrap; }
.op-bag-ord-del { border: none; background: transparent; color: #ffb3bd; cursor: pointer; font-size: 14px; padding: 2px 6px; border-radius: 6px; flex: 0 0 auto; }
.op-bag-ord-del:hover { background: rgba(255,90,110,.18); }

@media (prefers-reduced-motion: reduce) {
  .op-bag-any { animation: none; }
  .op-bagflash { animation: none; }
}

.op-pixi-mode { position: fixed; inset: 0; background: #0a0e17; overflow: hidden; }
.op-pixi-host { position: fixed; inset: 0; z-index: 1; }
.op-pixi-mode .mg-header { position: fixed; top: 0; left: 0; right: 0; z-index: 40; margin: 0; background: linear-gradient(180deg, rgba(8,12,22,.92), rgba(8,12,22,0)); }
.op-pixi-mode .op-ghint { position: fixed; top: auto; z-index: 35; }
.op-pixi-mode .op-board-ov { position: fixed; inset: auto; z-index: 45; }
.op-pixi-mode .op-toast { position: fixed; z-index: 46; }
.op-pixi-mode .op-guide-panel { position: fixed; z-index: 20; padding: 9px 11px; border-radius: 12px; background: rgba(10,16,30,.62); border: 1px solid rgba(143,240,245,.18); }
.op-pixi-mode .op-guide-step { margin: 0 0 6px; }
.op-pixi-mode .op-guide-legend { margin-top: 6px; }
.op-pixi-mode .op-train-side-tally { margin: 0; }
.op-controls-pixi { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(8,12,22,.95), rgba(8,12,22,.45) 68%, rgba(8,12,22,0)); }
.op-controls-pixi .op-control-btns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.op-controls-pixi .op-hint-bar { text-align: center; margin-top: 5px; }

.mgsk-ov { position: fixed; inset: 0; z-index: 100060; display: flex; align-items: center; justify-content: center; background: rgba(4,7,14,.72); backdrop-filter: blur(6px); padding: 18px; }
.mgsk-modal { width: min(940px, 96vw); max-height: 92vh; display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(14,20,34,.98), rgba(8,12,22,.98)); border: 1px solid rgba(143,240,245,.28); border-radius: 16px; box-shadow: 0 24px 80px rgba(0,0,0,.6), 0 0 40px rgba(91,224,230,.1); overflow: hidden; }
.mgsk-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid rgba(143,240,245,.14); }
.mgsk-title { font-size: 17px; font-weight: 900; color: #cdeeff; letter-spacing: .3px; }
.mgsk-x { width: 34px; height: 34px; border-radius: 9px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: #cfe0f0; font-size: 16px; cursor: pointer; transition: all .15s; }
.mgsk-x:hover { background: rgba(255,90,110,.16); border-color: rgba(255,90,110,.5); color: #ffb3bd; }
.mgsk-body { display: flex; gap: 16px; padding: 16px 18px; overflow: hidden; min-height: 0; }
.mgsk-preview { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mgsk-pv-lbl { font-size: 12px; font-weight: 800; letter-spacing: 2px; color: rgba(143,240,245,.7); text-transform: uppercase; }
.mgsk-pv-host { width: 356px; height: 360px; border-radius: 12px; background: radial-gradient(120% 90% at 50% 0%, rgba(20,30,52,.6), rgba(6,10,20,.85)); border: 1px solid rgba(143,240,245,.12); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.mgsk-sections { flex: 1 1 auto; overflow-y: auto; padding-right: 6px; display: flex; flex-direction: column; gap: 14px; }
.mgsk-sec { display: flex; flex-direction: column; gap: 7px; }
.mgsk-sec-lbl { font-size: 12.5px; font-weight: 800; color: #9fb4c8; letter-spacing: .4px; }
.mgsk-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.mgsk-thumb { position: relative; display: flex; align-items: center; justify-content: center; min-width: 46px; height: 62px; padding: 5px; border-radius: 10px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); cursor: pointer; transition: transform .12s ease, border-color .15s, box-shadow .15s; }
.mgsk-thumb:hover { transform: translateY(-2px); border-color: rgba(143,240,245,.5); }
.mgsk-thumb.on { border-color: #5be0e6; box-shadow: 0 0 0 2px rgba(91,224,230,.35), 0 6px 18px rgba(91,224,230,.18); background: rgba(91,224,230,.08); }
.mgsk-thumb img { height: 100%; width: auto; max-width: 120px; object-fit: contain; display: block; border-radius: 5px; pointer-events: none; }
.mgsk-thumb-block { background: #7c8496; }
.mgsk-thumb-block.on { background: #8fb6bd; }
.mgsk-thumb-n { position: absolute; right: 3px; bottom: 2px; font-size: 9px; font-weight: 800; color: #cfe0f0; background: rgba(0,0,0,.55); padding: 0 4px; border-radius: 5px; }
.mgsk-none { min-width: 54px; font-size: 12px; font-weight: 800; color: #9fb4c8; }
.mgsk-none.on { color: #08121a; background: linear-gradient(135deg,#5be0e6,#3aa7ad); }
.mgsk-foot { display: flex; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid rgba(143,240,245,.14); }
.mgsk-done { padding: 9px 26px; border-radius: 10px; border: 1px solid rgba(143,240,245,.5); background: linear-gradient(180deg,#5be0e6,#2a8e94); color: #04121a; font-size: 14px; font-weight: 800; cursor: pointer; transition: filter .15s; }
.mgsk-done:hover { filter: brightness(1.1); }
@media (max-width: 720px) {
  .mgsk-body { flex-direction: column; overflow-y: auto; }
  .mgsk-preview { flex-direction: row; align-self: center; }
  .mgsk-pv-host { width: 280px; height: 284px; }
  .mgsk-sections { overflow: visible; }
}

.mgset-ov { position: fixed; inset: 0; z-index: 100060; display: flex; align-items: center; justify-content: center; background: rgba(4,7,14,.72); backdrop-filter: blur(6px); padding: 16px; }
.mgset-modal { width: min(880px, 96vw); max-height: 92vh; display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(14,20,34,.98), rgba(8,12,22,.98)); border: 1px solid rgba(143,240,245,.26); border-radius: 16px; box-shadow: 0 24px 80px rgba(0,0,0,.6); overflow: hidden; }
.mgset-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid rgba(143,240,245,.12); }
.mgset-title { font-size: 17px; font-weight: 900; color: #cdeeff; }
.mgset-x { width: 34px; height: 34px; border-radius: 9px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: #cfe0f0; font-size: 16px; cursor: pointer; transition: all .15s; }
.mgset-x:hover { background: rgba(255,90,110,.16); border-color: rgba(255,90,110,.5); color: #ffb3bd; }
.mgset-tabs { display: flex; gap: 4px; padding: 10px 12px 0; border-bottom: 1px solid rgba(143,240,245,.1); }
.mgset-tab { flex: 1; padding: 10px 4px; border: none; border-bottom: 2px solid transparent; background: transparent; color: #9fb4c8; font-size: 13px; font-weight: 800; cursor: pointer; border-radius: 8px 8px 0 0; transition: all .15s; }
.mgset-tab:hover { color: #cfe0f0; background: rgba(255,255,255,.03); }
.mgset-tab.on { color: #8ff0f5; border-bottom-color: #5be0e6; background: rgba(91,224,230,.08); }
.mgset-body { padding: 16px 18px; overflow-y: auto; min-height: 0; }
.mgset-sec { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: rgba(143,240,245,.7); margin: 4px 0 10px; }
.mgset-panel > .mgset-sec:not(:first-child) { margin-top: 20px; }
.mgset-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.mgset-lbl { flex: 0 0 230px; font-size: 13px; color: #cfd8e6; font-weight: 600; line-height: 1.35; }
.mgset-row input[type=range] { flex: 1; accent-color: #5be0e6; min-width: 60px; }
.mgset-row b { flex: 0 0 34px; text-align: right; font-size: 13px; color: #8ff0f5; font-weight: 800; }
.mgset-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mgset-key { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px; border-radius: 9px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); color: #9fb4c8; cursor: pointer; transition: all .15s; }
.mgset-key:hover { border-color: rgba(143,240,245,.4); }
.mgset-key.cap { border-color: #ffd23f; background: rgba(255,210,63,.12); }
.mgset-key span { font-size: 11px; }
.mgset-key em { font-size: 13px; font-weight: 800; color: #cfe0f0; font-style: normal; }
.mgset-save-row { display: flex; justify-content: flex-end; margin-top: 18px; }
.mgset-save { padding: 9px 28px; border-radius: 10px; border: 1px solid rgba(143,240,245,.5); background: linear-gradient(180deg,#5be0e6,#2a8e94); color: #04121a; font-size: 14px; font-weight: 800; cursor: pointer; transition: filter .15s; }
.mgset-save:hover { filter: brightness(1.1); }
.mgset-save.saved { background: linear-gradient(180deg,#5be0a0,#2a9464); }
.mgset-seg-row { display: flex; gap: 6px; margin-bottom: 8px; }
.mgset-seg-wrap { flex-wrap: wrap; }
.mgset-seg-wrap .mgset-seg { flex: 1 1 28%; }
.mgset-seg { flex: 1; padding: 10px; border-radius: 9px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); color: #9fb4c8; font-size: 12px; font-weight: 800; cursor: pointer; transition: all .15s; }
.mgset-seg:hover { border-color: rgba(143,240,245,.4); }
.mgset-seg.on { color: #08121a; background: linear-gradient(135deg,#5be0e6,#3aa7ad); border-color: #5be0e6; }
.mgset-wide-btn { display: block; width: 100%; padding: 12px; border-radius: 10px; border: 1px solid rgba(143,240,245,.35); background: rgba(91,224,230,.08); color: #cdeeff; font-size: 14px; font-weight: 800; cursor: pointer; transition: background .15s; }
.mgset-wide-btn:hover { background: rgba(91,224,230,.16); }
.mgset-hint { margin-top: 8px; font-size: 12px; color: rgba(255,255,255,.5); }
.mgset-skin-wrap { display: flex; gap: 16px; }
.mgset-skin-wrap .mgsk-sections { flex: 1; max-height: 62vh; overflow-y: auto; }

.mgitembar { position: fixed; left: 0; top: 0; z-index: 56; box-sizing: border-box; display: flex; align-items: center; gap: 9px; padding: 5px 8px; background: linear-gradient(180deg, rgba(10,15,28,.94), rgba(5,8,16,.94)); border: 1px solid rgba(91,224,230,.38); border-top-width: 2px; border-radius: 0 0 10px 10px; box-shadow: 0 6px 18px rgba(0,0,0,.5); font-family: system-ui, sans-serif; pointer-events: auto; }
.mgitembar .mgib-unknown { opacity: .5; }
.mgitembar .mgib-slots { display: flex; gap: 4px; align-items: center; flex: none; min-height: 40px; }
.mgitembar .mgib-slot { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 7px; overflow: hidden; flex: none; }
.mgitembar .mgib-img { width: 30px; height: 30px; object-fit: contain; display: block; image-rendering: auto; }
.mgitembar .mgib-fb { font-size: 20px; line-height: 1; }
.mgitembar .mgib-front { width: 42px; height: 42px; border-color: #ffd23f; background: rgba(255,210,63,.12); box-shadow: 0 0 10px rgba(255,210,63,.55); cursor: pointer; }
.mgitembar .mgib-front .mgib-img { width: 36px; height: 36px; }
.mgitembar .mgib-more { font-size: 11px; color: rgba(255,255,255,.55); flex: none; }
.mgitembar .mgib-pending { opacity: .55; filter: grayscale(.4); animation: mgibPend .7s ease-in-out infinite; }
@keyframes mgibPend { 0%,100% { opacity: .55; } 50% { opacity: .8; } }
.mgitembar .mgib-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mgitembar .mgib-name { font-size: 12px; font-weight: 800; color: #ffe9a8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mgitembar .mgib-name kbd { background: rgba(91,224,230,.18); border: 1px solid rgba(91,224,230,.5); border-radius: 4px; padding: 0 4px; font-size: 9.5px; color: #d8fff6; font-weight: 600; margin-left: 3px; vertical-align: 1px; }
.mgitembar .mgib-name kbd.mgib-kdel { background: rgba(255,90,110,.16); border-color: rgba(255,90,110,.5); color: #ffc3cb; }
.mgitembar .mgib-name kbd.mgib-kauto-on { background: rgba(255,210,63,.22); border-color: rgba(255,210,63,.65); color: #ffe9a8; }
.mgitembar .mgib-desc { font-size: 10.5px; color: rgba(210,230,255,.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mgitembar .mgib-empty { font-size: 11.5px; color: rgba(255,255,255,.4); }

.mgib-fly { position: fixed; z-index: 90; width: 40px; height: 40px; object-fit: contain; pointer-events: none; filter: drop-shadow(0 0 8px rgba(255,210,63,.8)); transition: transform .48s cubic-bezier(.3,-0.2,.6,1), opacity .48s ease-in; will-change: transform, opacity; }
.mgib-hit { position: fixed; z-index: 89; pointer-events: none; border-radius: 6px; box-shadow: inset 0 0 34px rgba(255,90,110,.85), 0 0 22px rgba(255,90,110,.5); animation: mgibHit .45s ease-out forwards; }
.mgib-heal { position: fixed; z-index: 89; pointer-events: none; border-radius: 6px; box-shadow: inset 0 0 30px rgba(112,240,107,.7), 0 0 18px rgba(112,240,107,.4); animation: mgibHit .45s ease-out forwards; }
@keyframes mgibHit { 0% { opacity: 1; } 100% { opacity: 0; } }

.mgfin-guide { position: fixed; z-index: 55; transform: translateX(-50%); pointer-events: none; text-align: center; padding: 10px 14px; border-radius: 14px; background: linear-gradient(180deg, rgba(22,11,17,.95), rgba(10,6,12,.95)); border: 1px solid rgba(255,90,110,.5); box-shadow: 0 10px 34px rgba(0,0,0,.5), 0 0 26px rgba(255,90,110,.16); opacity: 0; transition: opacity .18s ease; white-space: nowrap; }
.mgfin-guide.mgfin-show { opacity: 1; animation: mgfinBreath 1.7s ease-in-out infinite; }
.mgfin-head { font-size: 12.5px; font-weight: 800; color: #ffb3bd; margin-bottom: 8px; letter-spacing: .3px; }
.mgfin-head .mgfin-x { color: #ff5a6e; font-weight: 900; }
.mgfin-head b { color: #ffd23f; }
.mgfin-keys { display: flex; align-items: center; gap: 5px; justify-content: center; }
.mgfin-key { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 34px; height: 42px; padding: 0 9px; border-radius: 9px; background: linear-gradient(180deg, #2a3550, #161d30); border: 1px solid rgba(143,240,245,.4); border-bottom-width: 3px; box-shadow: 0 2px 0 rgba(0,0,0,.4); opacity: 0; transform: translateY(-6px) scale(.85); animation: mgfinPop .34s cubic-bezier(.2,1.4,.4,1) forwards; }
.mgfin-key b { font-size: 15px; font-weight: 900; color: #eaf6ff; line-height: 1; font-style: normal; }
.mgfin-key i { font-size: 8.5px; font-style: normal; font-weight: 700; color: #8ff0f5; margin-top: 2px; text-transform: uppercase; letter-spacing: .5px; }
.mgfin-key.mgfin-hold { border-color: rgba(255,180,60,.55); }
.mgfin-key.mgfin-hold i { color: #ffc061; }
.mgfin-key.mgfin-drop { border-color: rgba(91,224,160,.6); background: linear-gradient(180deg, #1f4038, #10231d); }
.mgfin-key.mgfin-drop b, .mgfin-key.mgfin-drop i { color: #9bf0c4; }
.mgfin-arrow { color: rgba(255,255,255,.32); font-size: 15px; font-weight: 900; }
@keyframes mgfinPop { 0% { opacity: 0; transform: translateY(-6px) scale(.85); } 60% { opacity: 1; transform: translateY(0) scale(1.1); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes mgfinBreath { 0%,100% { box-shadow: 0 10px 34px rgba(0,0,0,.5), 0 0 22px rgba(255,90,110,.14); } 50% { box-shadow: 0 10px 34px rgba(0,0,0,.5), 0 0 32px rgba(255,90,110,.3); } }
@media (prefers-reduced-motion: reduce) { .mgfin-key { animation: none; opacity: 1; transform: none; } .mgfin-guide.mgfin-show { animation: none; } }
@media (max-width: 980px) {
  .mgset-lbl { flex-basis: 168px; }
}
@media (max-width: 720px) {
  .mgset-skin-wrap { flex-direction: column; }
  .mgset-skin-wrap .mgsk-preview { align-self: center; }
  .mgset-keys { grid-template-columns: repeat(3, 1fr); }
  .mgset-lbl { flex-basis: 108px; }
}

.mgib-tile { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 7px; font-size: 18px; font-weight: 900; color: #fff; border: 2px solid rgba(255,255,255,.85); }
.mgib-tile-r { background: #e3273b; }
.mgib-tile-b { background: #2f6bff; }
.mgitembar .mgib-slot.mgib-good { border-color: rgba(61,123,255,.7); background: rgba(61,123,255,.1); }
.mgitembar .mgib-slot.mgib-bad { border-color: rgba(255,59,77,.7); background: rgba(255,59,77,.1); }
.op-ui-icon { display: inline-block; width: 19px; height: 19px; object-fit: contain; vertical-align: middle; flex: 0 0 auto; pointer-events: none; }
.op-set-title .op-ui-icon { width: 23px; height: 23px; }
.op-bag-x .op-ui-icon, .op-bag-rule-del .op-ui-icon, .op-bag-ord-del .op-ui-icon, .op-bag-tab-del .op-ui-icon { width: 18px; height: 18px; margin: 0; }

.op-view > .mg-header > .mg-close-btn { margin-left: auto; }
.op-btn-primary { color: #effdff; text-shadow: 0 2px 4px rgba(0,0,0,.72); }
.op-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding-inline: 14px;
  white-space: nowrap;
  overflow: hidden;
}
.op-action > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.op-action-icon {
  display: block;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  object-fit: contain;
  filter: drop-shadow(0 4px 7px rgba(0,0,0,.38));
  pointer-events: none;
}
.op-control-btns .op-action {
  min-height: 46px;
  font-size: 13px;
  background-size: 100% 100%;
  filter: drop-shadow(0 5px 8px rgba(0,0,0,.25));
}
.op-control-btns .op-action:hover { filter: brightness(1.08) drop-shadow(0 0 10px rgba(91,224,230,.2)); }
.op-control-btns .op-action-icon { width: 27px; height: 27px; flex-basis: 27px; }

.op-train-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  align-items: center;
  min-height: 112px;
  padding: 15px 16px 15px 19px;
  overflow: hidden;
  background: linear-gradient(112deg,rgba(38,31,58,.92),rgba(11,14,27,.96));
  border-color: rgba(123,233,255,.2);
  box-shadow: 0 13px 34px rgba(0,0,0,.38), inset 3px 0 0 rgba(91,224,230,.5);
}
.op-train-row:hover { border-color: rgba(123,233,255,.45); box-shadow: 0 17px 40px rgba(0,0,0,.43), inset 3px 0 0 rgba(91,224,230,.88); }
.op-train-row-name { font-size: 18px; color: #f2fbff; }
.op-train-row-btns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 360px;
  justify-self: end;
}
.op-train-row-btns .op-action { width: 100%; min-width: 0; min-height: 45px; box-sizing: border-box; }
.op-public-guide-play { grid-column: 1 / -1; min-width: 170px !important; }
.op-guide-list-view .op-train-row { grid-template-columns: minmax(0, 1fr) minmax(170px, 230px); }
.op-guide-list-view .op-train-row-btns { grid-template-columns: 1fr; max-width: 230px; }

.op-train-new {
  min-height: 124px;
  padding: 20px 26px;
  border-radius: 14px;
  background: linear-gradient(110deg,rgba(72,44,13,.76),rgba(9,16,31,.9)),url(/img/minigames/tetra/generated/tetra-mode-card-wide-opener-v1.png) center 45% / cover no-repeat;
}
.op-train-new::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(115deg,transparent 38%,rgba(255,255,255,.18) 49%,transparent 60%);
  background-size: 250% 100%;
  background-position: 130% 0;
}
.op-train-new:hover::after { opacity: 1; animation: mgCardSheen2 .85s ease 1; }
.op-train-new-icon { width: 82px; height: 82px; flex-basis: 82px; }
.op-train-new b { font-size: 21px; }
.op-train-new small { font-size: 12.5px; max-width: 620px; }

.op-bag-x,
.mgset-x,
.mgsk-x {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: transparent;
  line-height: 0;
  overflow: visible;
}
.op-bag-x:hover,
.mgset-x:hover,
.mgsk-x:hover { border: 0; background: transparent; }
.op-bag-x .op-ui-icon,
.mgset-x .mgset-icon,
.mgsk-x .mgsk-icon {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  transition: transform .15s ease, filter .15s ease;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.42));
}
.op-bag-x:hover img,
.mgset-x:hover img,
.mgsk-x:hover img { transform: translateY(-2px) scale(1.07); filter: brightness(1.2) drop-shadow(0 0 13px rgba(91,224,230,.44)); }

@media (max-width: 720px) {
  .op-train-row,
  .op-guide-list-view .op-train-row { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .op-train-row-btns,
  .op-guide-list-view .op-train-row-btns { max-width: none; justify-self: stretch; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .op-public-guide-play { grid-column: 1 / -1; }
  .op-train-new { min-height: 112px; padding: 16px 18px; }
  .op-train-new-icon { width: 68px; height: 68px; flex-basis: 68px; }
  .op-control-btns .op-action { flex: 1 1 142px; }
}
