.mccontainer  { margin: 0 auto; background: #1e293b; padding: 24px; border-radius: 12px; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3); border: 1px solid #334155; margin-bottom: 1em;}
.mccontainer2 { margin: 0 auto; background: #1e293b; padding: 24px; border-radius: 12px; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3); border: 1px solid #334155; margin-bottom: 1em;}
@media (max-width: 500px){.mccontainer2{padding: 12px 0;}}
.slot-list { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.slot-item { display: flex; align-items: center; background: #0f172a; padding: 14px 16px; border-radius: 8px; border: 1px solid #334155; transition: transform 0.2s, border-color 0.2s; cursor: pointer; }
.slot-item:hover { border-color: #38bdf8; background: #111827; }
.slot-item.selected { border-color: #38bdf8; background: #172554; box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.3); }
.slot-number { width: auto; font-weight: 600; color: #94a3b8; flex-shrink: 0; font-size: 0.95rem; }
@media (max-width: 479px) {.slot-item {flex-direction: column;align-items: flex-start; gap: 8px;}}

.icon-container { width: 48px; height: 48px; margin-right: 18px; background: #000; display: flex; align-items: center; justify-content: center; image-rendering: pixelated; border-radius: 6px; flex-shrink: 0; border: 1px solid #475569; overflow: hidden; }
.icon-container canvas { width: 36px; height: 36px; }
.details { display: flex; flex-direction: column; justify-content: center; flex-grow: 1; min-width: 0; }
.title-text { font-size: 16px; font-weight: 700; word-break: break-all; color: #f1f5f9; margin-bottom: 4px; }
.sub-info { font-size: 13px; color: #94a3b8; display: flex; gap: 12px; flex-wrap: wrap; }
.badge { background: #334155; padding: 2px 8px; border-radius: 4px; font-size: 12px; color: #e2e8f0; font-weight: 500; }
.empty-slot { color: #64748b; font-style: italic; }
.controls { display: flex; gap: 15px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; background: #0f172a; padding: 12px 16px; border-radius: 8px; border: 1px solid #334155; }
input[type="file"] { color: #cbd5e1; font-size: 14px; }
.stats { font-size: 14px; color: #38bdf8; margin-left: auto; font-weight: 600; }
.error-msg { color: #ac7f7f; padding: 20px; text-align: center; background: #8b7366; border-radius: 8px; border: 1px solid #9b6545; }

/* Binary Inspector Panel */
#binaryInspector { background: #0f172a; border: 1px solid #334155; border-radius: 8px; padding: 16px; display: none;min-width: 100%; }
#binaryInspector h3 { margin-top: 0; font-size: 1.1rem; color: #38bdf8; display: flex; justify-content: space-between; align-items: center; }
.hex-viewer { font-family: monospace; font-size: 12px; background: #000; color: #587269; padding: 12px; border-radius: 6px;white-space: pre; border: 1px solid #1e293b; line-height: 1.5; overflow-x: auto; }/*#020617_#34d399*/

.tcontainer {display: grid;grid-template-columns: 1fr;gap: 16px; }
@media (min-width: 800px) {.tcontainer { grid-template-columns: 1fr 1fr;}}
@media (min-width: 1000px) {.tcontainer { grid-template-columns: 1fr 1fr 1fr;}}

.wcontainer {display: grid;grid-template-columns: 1fr;gap: 20px; }
@media (min-width: 800px) {.wcontainer { grid-template-columns: 1fr 1fr;}}

/* アイテム＆装備専用 */
.wcontainer2 {display: grid;grid-template-columns: 1fr;gap: 20px; margin-bottom: 1em;}
@media (min-width: 800px) {.wcontainer2 { grid-template-columns: 1fr 1fr;}}
body:has(input[value="normal"]:checked) .wcontainer2 {display: block; }
body:has(input[value="normal"]:checked) #inventory { flex: none;}
body:has(input[value="normal"]:checked) #inventory { display: flex;flex-wrap: wrap;gap: 2px;}
body:has(input[value="normal"]:checked) #inventory .item-card {display: block;flex: 0 1 16em; }


.basetable{width: 100%; border-collapse: collapse;border: 1px solid #000000;color: black;background-color: #ddd;}
.basetable th,.basetable td {border: 1px solid #000000;text-align: center;  }
.basetable th{background-color: #aaa;}

/* eq now */
.equip-summary {cursor: pointer;padding: 6px 10px;margin: 4px 0;background: #2a2a2a;border: 1px solid #555;border-radius: 4px;user-select: none;display: flex;align-items: center;gap: 6px;font-size: 12px;}
.equip-summary:hover {background: #333;}
.equip-summary.empty {color: #888;cursor: default;}
.toggle-icon {font-size: 11px;color: #aaa;margin-left: 2px;}
.equip-details {margin-left: 8px;}        
#equipContainer .equip-summary {    margin: 0 !important;}/* listだけmargin除外 */

.ps-capsule {
display: inline-flex;
align-items: center;
justify-content: center;
width: 28px;
height: 16px;
background: linear-gradient(to bottom, #8a9bb0 0%, #3a4a5c 50%, #1f2b38 100%);
border: 1px solid #111822;
border-radius: 8px;
box-shadow: inset 0 1px 1px rgba(255,255,255,0.5), 0 1px 2px rgba(0,0,0,0.5);
font-size: 11px;
font-weight: bold;
flex-shrink: 0;
line-height: 1;font-weight: bold;
}
.square{color: #ff77ee;}
.cross{color: #44ddff;}

/* ショルダーボタン（R1, L1, R2, L2） */
.ps-shoulder {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0 4px;
height: 16px;
font-size: 12px;
font-weight: bold;
background: linear-gradient(to bottom, #e2e2e2 0%, #7d7d7d 50%, #404040 100%);
border: 1px solid #1a1a1a;
border-radius: 2px;
color: #ffffff;
text-shadow: 0 1px 1px rgba(0,0,0,0.9);
box-shadow: inset 1px 1px 1px rgba(255,255,255,0.7), 0 1px 2px rgba(0,0,0,0.5);
flex-shrink: 0;
letter-spacing: -0.5px;
}

/*---------------------------------------------------*/
.af-box {display: flex;flex-wrap: wrap;gap: 16px; }
.aflist{flex: 1 1 150px;  min-width: 0;}/* ------------R */
/* --------------------------------------------------- L */
.wrapper6x6{display: grid;user-select: none;
    width: fit-content;
    border-top: 1px solid #000;
    border-left: 1px solid #000;
     grid-template-columns: 13px 1fr 1fr 1fr 1fr 1fr 1fr;
     background-color: #94a3b8;
     color:#000
	}
.box65{
	width: 65px;height: 65px;
    display: flex;align-items: center;justify-content: center;text-align: center;
    border-right: 1px solid #000;border-bottom: 1px solid #000;font-size:10px;font-weight: 700;
    overflow: hidden;
	}
.b6cor{
	height: 13px;
    display: flex;align-items: center;justify-content: center;text-align: center;
    border-right: 1px solid #000;border-bottom: 1px solid #000;font-size:10px;
	background-color:#CCC;
}
.b6row{
	height: 65px;
    display: flex;align-items: center;justify-content: center;text-align: center;
    border-right: 1px solid #000;border-bottom: 1px solid #000;font-size:10px;
	background-color:#CCC;
}
.b6col{
	width: 65px;height: 13px;
    display: flex;align-items: center;justify-content: center;text-align: center;
    border-right: 1px solid #000;border-bottom: 1px solid #000;font-size:10px;
	background-color:#CCC;
}
/*---------------------------------------------------*/
[name="none"] {display: none;margin-bottom: 1em;}