/* fx-casio — máy tính MTL Casio, dùng cho cửa sổ máy tính đứng riêng. */

/* ---- thân máy ---- */

.fxc-body {
  --fxc-shell: #23331a;
  --fxc-shell-2: #172410;
  --fxc-glass: #cfe3ae;
  --fxc-ink: #16210f;
  --fxc-key: #f2f8e7;
  --fxc-key-edge: rgba(18, 40, 10, .16);
  background: linear-gradient(165deg, var(--fxc-shell), var(--fxc-shell-2));
  border-radius: 22px;
  box-shadow: 0 20px 44px rgba(9, 22, 4, .28), inset 0 1px rgba(255, 255, 255, .14);
  padding: 16px 14px 18px;
}

.fxc-brand {
  align-items: baseline;
  color: rgba(240, 251, 222, .78);
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}
.fxc-brand strong { font-size: 13px; letter-spacing: .4px; }
.fxc-brand span { font-size: 8px; letter-spacing: 1.5px; text-transform: uppercase; }

.fxc-screen {
  background: var(--fxc-glass);
  border: 1px solid rgba(9, 22, 4, .5);
  border-radius: 8px;
  box-shadow: inset 0 2px 10px rgba(9, 22, 4, .28);
  display: block;
  height: auto;
  margin: 0 auto 14px;
  max-width: 100%;
  width: 100%;
}

.fxc-pad { display: grid; gap: 7px; }
.fxc-row { display: grid; gap: 6px; }
.fxc-row--fn { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.fxc-row--entry { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.fxc-top {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr)) 118px repeat(2, minmax(0, 1fr));
  margin-bottom: 8px;
}
/* Cụm mũi tên dựng như phím điều hướng thật: trên dưới trái phải quanh một tâm. */
.fxc-arrows {
  display: grid;
  gap: 2px;
  grid-area: 1 / 3;
  grid-template-areas: ". up ." "left hub right" ". down .";
  grid-template-columns: 1fr 1.3fr 1fr;
  place-self: center;
  position: relative;
  width: 118px;
}
.fxc-arrows::before {
  background: rgba(231, 239, 219, .22);
  border-radius: 50%;
  content: "";
  grid-area: hub;
  height: 22px;
  place-self: center;
  width: 22px;
}

.fxc-key {
  background: var(--fxc-key);
  border: 1px solid var(--fxc-key-edge);
  border-radius: 7px;
  box-shadow: 0 2px 0 rgba(9, 22, 4, .35);
  color: #16210f;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 650;
  min-height: 32px;
  padding: 6px 2px;
  transition: transform .06s ease, box-shadow .06s ease, background .15s ease;
}
.fxc-key:active, .fxc-key.is-hit { box-shadow: 0 0 0 rgba(9, 22, 4, .35); transform: translateY(2px); }
.fxc-key:focus-visible { outline: 2px solid var(--accent, #73ba38); outline-offset: 2px; }

.fxc-key--shift { background: #d8e7ff; }
.fxc-key--alpha { background: #ffe9bf; }
.fxc-key--menu, .fxc-key--on { background: #e7efdb; }
.fxc-key--arrow { background: #e7efdb; border-radius: 6px; font-size: 8px; min-height: 24px; padding: 4px 2px; }
.fxc-key--fn { background: #edf4e2; font-size: 10px; }
.fxc-key--entry { background: #fbfdf6; font-size: 13px; }
.fxc-key--accent { background: #ffd9cf; }
.fxc-key--equals { background: var(--accent, #73ba38); color: #0d1f05; }

.fxc-fallback {
  color: var(--ink-3, #8b9578);
  font-size: 11px;
  margin: 10px 0 0;
  text-align: center;
}

@media (max-width: 680px) {
  .fxc-key { font-size: 10px; min-height: 30px; }
  .fxc-top { gap: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)) 96px repeat(2, minmax(0, 1fr)); }
  .fxc-arrows { width: 96px; }
}

/* Cửa sổ hẹp: cụm mũi tên thu lại để không chen vào ALPHA và MENU. */
@media (max-width: 430px) {
  .fxc-body { padding: 12px 10px 14px; }
  .fxc-top { gap: 5px; grid-template-columns: repeat(2, minmax(0, 1fr)) 80px repeat(2, minmax(0, 1fr)); }
  .fxc-arrows { width: 80px; }
  .fxc-arrows::before { height: 16px; width: 16px; }
  .fxc-key { font-size: 9px; min-height: 28px; padding: 5px 1px; }
  .fxc-key--entry { font-size: 12px; }
  .fxc-pad { gap: 5px; }
  .fxc-row { gap: 4px; }
}
