/* 1000形 運転台の質感（面取りの光と陰・くぼみの影・塗装のむら・TIOS液晶らしさ） */

/* 1. 日よけ（ビザ）の面取りの光と陰 */
.cab-1000 .a-visor {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -1px 0 rgba(0,0,0,.5), 0 7px 12px rgba(0,0,0,.65);
}

/* 2. 計器表示器・右の画面のくぼみの影と塗装のむら */
.cab-1000 .a-dm,
.cab-1000 .a-mon {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), inset 0 -1px 0 rgba(0,0,0,.6), 0 2px 4px rgba(0,0,0,.5);
  background:
    radial-gradient(ellipse at 30% 15%, rgba(255,255,255,.045), transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(0,0,0,.18), transparent 55%),
    radial-gradient(circle at 7px 7px, #71787e 0 2.4px, transparent 3px),
    radial-gradient(circle at calc(100% - 7px) 7px, #71787e 0 2.4px, transparent 3px),
    radial-gradient(circle at 7px calc(100% - 7px), #71787e 0 2.4px, transparent 3px),
    radial-gradient(circle at calc(100% - 7px) calc(100% - 7px), #71787e 0 2.4px, transparent 3px),
    linear-gradient(#17191c, #0a0b0d);
}

/* 3. 前面窓の上部枠の面取りの光 */
#driveScreen.c1000 .cf-top {
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.08), 0 4px 10px rgba(0,0,0,.55);
}

/* 4. バックアップ圧力計のくぼみの影 */
#driveScreen.c1000 .bk-gauge {
  box-shadow: 0 3px 6px rgba(0,0,0,.55), inset 0 1px 0 #50565c, inset 0 -1px 0 rgba(0,0,0,.5);
}

/* 5. 窓枠（ピラー）の上下の光と陰 */
#driveScreen.c1000 .pillar {
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 30%, rgba(0,0,0,.08) 70%, transparent),
    linear-gradient(90deg, #6f767c 0, #c3c9cd 28%, #e2e6e8 42%, #a7aeb3 64%, #6a7177 100%);
}

/* 6. 右の画面（モニター）のくぼみの影 */
.cab-1000 .monitor {
  box-shadow: inset 0 0 0 1px #2b2f33, inset 0 3px 8px rgba(0,0,0,.75), inset 0 -1px 0 rgba(255,255,255,.04);
}

/* 7. バックアップ圧力計のガラス面のくぼみ */
#driveScreen.c1000 .bk-gauge canvas {
  box-shadow: 0 0 0 3px #111, 0 0 0 5px #6d747a, inset 0 2px 6px rgba(0,0,0,.6);
}

/* 8. TIOS 液晶の黒浮き（四隅のむら）と文字の弱い発光 */
.cab-1000 .mbody {
  background:
    radial-gradient(ellipse at 0 0, rgba(110,140,170,.07), transparent 45%),
    radial-gradient(ellipse at 100% 0, rgba(110,140,170,.07), transparent 45%),
    radial-gradient(ellipse at 0 100%, rgba(110,140,170,.05), transparent 40%),
    radial-gradient(ellipse at 100% 100%, rgba(110,140,170,.05), transparent 40%),
    #080b0e;
  text-shadow: 0 0 2px rgba(226,246,220,.12);
}

/* 9. 項目名・ログの弱い発光 */
.cab-1000 .mrows .k {
  text-shadow: 0 0 2px rgba(111,198,242,.12);
}
.cab-1000 .mlog {
  text-shadow: 0 0 2px rgba(182,232,176,.1);
}

/* 10. TIOS 液晶の RGB 画素格子と斜めの映り込み（疑似要素） */
.cab-1000 .monitor {
  position: relative;
}
.cab-1000 .monitor::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(rgba(200,210,220,.035), rgba(200,210,220,.035)),
    radial-gradient(ellipse 60% 40% at 42% -5%, rgba(235,240,245,.08), transparent 70%),
    linear-gradient(135deg, rgba(235,240,245,.15) 0, rgba(235,240,245,.09) 20%, rgba(235,240,245,.03) 45%, transparent 65%),
    repeating-linear-gradient(90deg, rgba(255,60,60,.05) 0 1px, rgba(60,255,60,.05) 1px 2px, rgba(60,60,255,.05) 2px 3px);
}

/* 11. 環境光に連動する暗幕 */
#cab.cab-1000 {
  position: relative;
}
#cab.cab-1000::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #000;
  opacity: calc((1 - var(--amb, 1)) * 0.6);
  pointer-events: none;
  z-index: 10;
  border-radius: inherit;
}
